Projet de remplacement du "RPiPasserelle" d'Otec.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771717727177371774717757177671777717787177971780717817178271783717847178571786717877178871789717907179171792717937179471795717967179771798717997180071801718027180371804718057180671807718087180971810718117181271813718147181571816718177181871819718207182171822718237182471825718267182771828718297183071831718327183371834718357183671837718387183971840718417184271843718447184571846718477184871849718507185171852718537185471855718567185771858718597186071861718627186371864718657186671867718687186971870718717187271873718747187571876718777187871879718807188171882718837188471885718867188771888718897189071891718927189371894718957189671897718987189971900719017190271903719047190571906719077190871909719107191171912719137191471915719167191771918719197192071921719227192371924719257192671927719287192971930719317193271933719347193571936719377193871939719407194171942719437194471945719467194771948719497195071951719527195371954719557195671957719587195971960719617196271963719647196571966719677196871969719707197171972719737197471975719767197771978719797198071981719827198371984719857198671987719887198971990719917199271993719947199571996719977199871999720007200172002720037200472005720067200772008720097201072011720127201372014720157201672017720187201972020720217202272023720247202572026720277202872029720307203172032720337203472035720367203772038720397204072041720427204372044720457204672047720487204972050720517205272053720547205572056720577205872059720607206172062720637206472065720667206772068720697207072071720727207372074720757207672077720787207972080720817208272083720847208572086720877208872089720907209172092720937209472095720967209772098720997210072101721027210372104721057210672107721087210972110721117211272113721147211572116721177211872119721207212172122721237212472125721267212772128721297213072131721327213372134721357213672137721387213972140721417214272143721447214572146721477214872149721507215172152721537215472155721567215772158721597216072161721627216372164721657216672167721687216972170721717217272173721747217572176721777217872179721807218172182721837218472185721867218772188721897219072191721927219372194721957219672197721987219972200722017220272203722047220572206722077220872209722107221172212722137221472215722167221772218722197222072221722227222372224722257222672227722287222972230722317223272233722347223572236722377223872239722407224172242722437224472245722467224772248722497225072251722527225372254722557225672257722587225972260722617226272263722647226572266722677226872269722707227172272722737227472275722767227772278722797228072281722827228372284722857228672287722887228972290722917229272293722947229572296722977229872299723007230172302723037230472305723067230772308723097231072311723127231372314723157231672317723187231972320723217232272323723247232572326723277232872329723307233172332723337233472335723367233772338723397234072341723427234372344723457234672347723487234972350723517235272353723547235572356723577235872359723607236172362723637236472365723667236772368723697237072371723727237372374723757237672377723787237972380723817238272383723847238572386723877238872389723907239172392723937239472395723967239772398723997240072401724027240372404724057240672407724087240972410724117241272413724147241572416724177241872419724207242172422724237242472425724267242772428724297243072431724327243372434724357243672437724387243972440724417244272443724447244572446724477244872449724507245172452724537245472455724567245772458724597246072461724627246372464724657246672467724687246972470724717247272473724747247572476724777247872479724807248172482724837248472485724867248772488724897249072491724927249372494724957249672497724987249972500725017250272503725047250572506725077250872509725107251172512725137251472515725167251772518725197252072521725227252372524725257252672527725287252972530725317253272533725347253572536725377253872539725407254172542725437254472545725467254772548725497255072551725527255372554725557255672557725587255972560725617256272563725647256572566725677256872569725707257172572725737257472575725767257772578725797258072581725827258372584725857258672587725887258972590725917259272593725947259572596725977259872599726007260172602726037260472605726067260772608726097261072611726127261372614726157261672617726187261972620726217262272623726247262572626726277262872629726307263172632726337263472635726367263772638726397264072641726427264372644726457264672647726487264972650726517265272653726547265572656726577265872659726607266172662726637266472665726667266772668726697267072671726727267372674726757267672677726787267972680726817268272683726847268572686726877268872689726907269172692726937269472695726967269772698726997270072701727027270372704727057270672707727087270972710727117271272713727147271572716727177271872719727207272172722727237272472725727267272772728727297273072731727327273372734727357273672737727387273972740727417274272743727447274572746727477274872749727507275172752727537275472755727567275772758727597276072761727627276372764727657276672767727687276972770727717277272773727747277572776727777277872779727807278172782727837278472785727867278772788727897279072791727927279372794727957279672797727987279972800728017280272803728047280572806728077280872809728107281172812728137281472815728167281772818728197282072821728227282372824728257282672827728287282972830728317283272833728347283572836728377283872839728407284172842728437284472845728467284772848728497285072851728527285372854728557285672857728587285972860728617286272863728647286572866728677286872869728707287172872728737287472875728767287772878728797288072881728827288372884728857288672887728887288972890728917289272893728947289572896728977289872899729007290172902729037290472905729067290772908729097291072911729127291372914729157291672917729187291972920729217292272923729247292572926729277292872929729307293172932729337293472935729367293772938729397294072941729427294372944729457294672947729487294972950729517295272953729547295572956729577295872959729607296172962729637296472965729667296772968729697297072971729727297372974729757297672977729787297972980729817298272983729847298572986729877298872989729907299172992729937299472995729967299772998729997300073001730027300373004730057300673007730087300973010730117301273013730147301573016730177301873019730207302173022730237302473025730267302773028730297303073031730327303373034730357303673037730387303973040730417304273043730447304573046730477304873049730507305173052730537305473055730567305773058730597306073061730627306373064730657306673067730687306973070730717307273073730747307573076730777307873079730807308173082730837308473085730867308773088730897309073091730927309373094730957309673097730987309973100731017310273103731047310573106731077310873109731107311173112731137311473115731167311773118731197312073121731227312373124731257312673127731287312973130731317313273133731347313573136731377313873139731407314173142731437314473145731467314773148731497315073151731527315373154731557315673157731587315973160731617316273163731647316573166731677316873169731707317173172731737317473175731767317773178731797318073181731827318373184731857318673187731887318973190731917319273193731947319573196731977319873199732007320173202732037320473205732067320773208732097321073211732127321373214732157321673217732187321973220732217322273223732247322573226732277322873229732307323173232732337323473235732367323773238732397324073241732427324373244732457324673247732487324973250732517325273253732547325573256732577325873259732607326173262732637326473265732667326773268732697327073271732727327373274732757327673277732787327973280732817328273283732847328573286732877328873289732907329173292732937329473295732967329773298732997330073301
  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. })(typeof self !== "undefined" ? self : this, 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/d3-array/src/array.js":
  136. /*!********************************************!*\
  137. !*** ./node_modules/d3-array/src/array.js ***!
  138. \********************************************/
  139. /*! exports provided: slice, map */
  140. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  141. "use strict";
  142. __webpack_require__.r(__webpack_exports__);
  143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; });
  145. var array = Array.prototype;
  146. var slice = array.slice;
  147. var map = array.map;
  148. /***/ }),
  149. /***/ "./node_modules/d3-array/src/ascending.js":
  150. /*!************************************************!*\
  151. !*** ./node_modules/d3-array/src/ascending.js ***!
  152. \************************************************/
  153. /*! exports provided: default */
  154. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  155. "use strict";
  156. __webpack_require__.r(__webpack_exports__);
  157. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  158. return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
  159. });
  160. /***/ }),
  161. /***/ "./node_modules/d3-array/src/bisect.js":
  162. /*!*********************************************!*\
  163. !*** ./node_modules/d3-array/src/bisect.js ***!
  164. \*********************************************/
  165. /*! exports provided: bisectRight, bisectLeft, default */
  166. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  167. "use strict";
  168. __webpack_require__.r(__webpack_exports__);
  169. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return bisectRight; });
  170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return bisectLeft; });
  171. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
  172. /* harmony import */ var _bisector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisector */ "./node_modules/d3-array/src/bisector.js");
  173. var ascendingBisect = Object(_bisector__WEBPACK_IMPORTED_MODULE_1__["default"])(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"]);
  174. var bisectRight = ascendingBisect.right;
  175. var bisectLeft = ascendingBisect.left;
  176. /* harmony default export */ __webpack_exports__["default"] = (bisectRight);
  177. /***/ }),
  178. /***/ "./node_modules/d3-array/src/bisector.js":
  179. /*!***********************************************!*\
  180. !*** ./node_modules/d3-array/src/bisector.js ***!
  181. \***********************************************/
  182. /*! exports provided: default */
  183. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  184. "use strict";
  185. __webpack_require__.r(__webpack_exports__);
  186. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
  187. /* harmony default export */ __webpack_exports__["default"] = (function(compare) {
  188. if (compare.length === 1) compare = ascendingComparator(compare);
  189. return {
  190. left: function(a, x, lo, hi) {
  191. if (lo == null) lo = 0;
  192. if (hi == null) hi = a.length;
  193. while (lo < hi) {
  194. var mid = lo + hi >>> 1;
  195. if (compare(a[mid], x) < 0) lo = mid + 1;
  196. else hi = mid;
  197. }
  198. return lo;
  199. },
  200. right: function(a, x, lo, hi) {
  201. if (lo == null) lo = 0;
  202. if (hi == null) hi = a.length;
  203. while (lo < hi) {
  204. var mid = lo + hi >>> 1;
  205. if (compare(a[mid], x) > 0) hi = mid;
  206. else lo = mid + 1;
  207. }
  208. return lo;
  209. }
  210. };
  211. });
  212. function ascendingComparator(f) {
  213. return function(d, x) {
  214. return Object(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"])(f(d), x);
  215. };
  216. }
  217. /***/ }),
  218. /***/ "./node_modules/d3-array/src/constant.js":
  219. /*!***********************************************!*\
  220. !*** ./node_modules/d3-array/src/constant.js ***!
  221. \***********************************************/
  222. /*! exports provided: default */
  223. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  224. "use strict";
  225. __webpack_require__.r(__webpack_exports__);
  226. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  227. return function() {
  228. return x;
  229. };
  230. });
  231. /***/ }),
  232. /***/ "./node_modules/d3-array/src/cross.js":
  233. /*!********************************************!*\
  234. !*** ./node_modules/d3-array/src/cross.js ***!
  235. \********************************************/
  236. /*! exports provided: default */
  237. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  238. "use strict";
  239. __webpack_require__.r(__webpack_exports__);
  240. /* harmony import */ var _pairs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pairs */ "./node_modules/d3-array/src/pairs.js");
  241. /* harmony default export */ __webpack_exports__["default"] = (function(values0, values1, reduce) {
  242. var n0 = values0.length,
  243. n1 = values1.length,
  244. values = new Array(n0 * n1),
  245. i0,
  246. i1,
  247. i,
  248. value0;
  249. if (reduce == null) reduce = _pairs__WEBPACK_IMPORTED_MODULE_0__["pair"];
  250. for (i0 = i = 0; i0 < n0; ++i0) {
  251. for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) {
  252. values[i] = reduce(value0, values1[i1]);
  253. }
  254. }
  255. return values;
  256. });
  257. /***/ }),
  258. /***/ "./node_modules/d3-array/src/descending.js":
  259. /*!*************************************************!*\
  260. !*** ./node_modules/d3-array/src/descending.js ***!
  261. \*************************************************/
  262. /*! exports provided: default */
  263. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  264. "use strict";
  265. __webpack_require__.r(__webpack_exports__);
  266. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  267. return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
  268. });
  269. /***/ }),
  270. /***/ "./node_modules/d3-array/src/deviation.js":
  271. /*!************************************************!*\
  272. !*** ./node_modules/d3-array/src/deviation.js ***!
  273. \************************************************/
  274. /*! exports provided: default */
  275. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  276. "use strict";
  277. __webpack_require__.r(__webpack_exports__);
  278. /* harmony import */ var _variance__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./variance */ "./node_modules/d3-array/src/variance.js");
  279. /* harmony default export */ __webpack_exports__["default"] = (function(array, f) {
  280. var v = Object(_variance__WEBPACK_IMPORTED_MODULE_0__["default"])(array, f);
  281. return v ? Math.sqrt(v) : v;
  282. });
  283. /***/ }),
  284. /***/ "./node_modules/d3-array/src/extent.js":
  285. /*!*********************************************!*\
  286. !*** ./node_modules/d3-array/src/extent.js ***!
  287. \*********************************************/
  288. /*! exports provided: default */
  289. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  290. "use strict";
  291. __webpack_require__.r(__webpack_exports__);
  292. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  293. var n = values.length,
  294. i = -1,
  295. value,
  296. min,
  297. max;
  298. if (valueof == null) {
  299. while (++i < n) { // Find the first comparable value.
  300. if ((value = values[i]) != null && value >= value) {
  301. min = max = value;
  302. while (++i < n) { // Compare the remaining values.
  303. if ((value = values[i]) != null) {
  304. if (min > value) min = value;
  305. if (max < value) max = value;
  306. }
  307. }
  308. }
  309. }
  310. }
  311. else {
  312. while (++i < n) { // Find the first comparable value.
  313. if ((value = valueof(values[i], i, values)) != null && value >= value) {
  314. min = max = value;
  315. while (++i < n) { // Compare the remaining values.
  316. if ((value = valueof(values[i], i, values)) != null) {
  317. if (min > value) min = value;
  318. if (max < value) max = value;
  319. }
  320. }
  321. }
  322. }
  323. }
  324. return [min, max];
  325. });
  326. /***/ }),
  327. /***/ "./node_modules/d3-array/src/histogram.js":
  328. /*!************************************************!*\
  329. !*** ./node_modules/d3-array/src/histogram.js ***!
  330. \************************************************/
  331. /*! exports provided: default */
  332. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  333. "use strict";
  334. __webpack_require__.r(__webpack_exports__);
  335. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-array/src/array.js");
  336. /* harmony import */ var _bisect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisect */ "./node_modules/d3-array/src/bisect.js");
  337. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-array/src/constant.js");
  338. /* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extent */ "./node_modules/d3-array/src/extent.js");
  339. /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-array/src/identity.js");
  340. /* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./range */ "./node_modules/d3-array/src/range.js");
  341. /* harmony import */ var _ticks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ticks */ "./node_modules/d3-array/src/ticks.js");
  342. /* harmony import */ var _threshold_sturges__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./threshold/sturges */ "./node_modules/d3-array/src/threshold/sturges.js");
  343. /* harmony default export */ __webpack_exports__["default"] = (function() {
  344. var value = _identity__WEBPACK_IMPORTED_MODULE_4__["default"],
  345. domain = _extent__WEBPACK_IMPORTED_MODULE_3__["default"],
  346. threshold = _threshold_sturges__WEBPACK_IMPORTED_MODULE_7__["default"];
  347. function histogram(data) {
  348. var i,
  349. n = data.length,
  350. x,
  351. values = new Array(n);
  352. for (i = 0; i < n; ++i) {
  353. values[i] = value(data[i], i, data);
  354. }
  355. var xz = domain(values),
  356. x0 = xz[0],
  357. x1 = xz[1],
  358. tz = threshold(values, x0, x1);
  359. // Convert number of thresholds into uniform thresholds.
  360. if (!Array.isArray(tz)) {
  361. tz = Object(_ticks__WEBPACK_IMPORTED_MODULE_6__["tickStep"])(x0, x1, tz);
  362. tz = Object(_range__WEBPACK_IMPORTED_MODULE_5__["default"])(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive
  363. }
  364. // Remove any thresholds outside the domain.
  365. var m = tz.length;
  366. while (tz[0] <= x0) tz.shift(), --m;
  367. while (tz[m - 1] > x1) tz.pop(), --m;
  368. var bins = new Array(m + 1),
  369. bin;
  370. // Initialize bins.
  371. for (i = 0; i <= m; ++i) {
  372. bin = bins[i] = [];
  373. bin.x0 = i > 0 ? tz[i - 1] : x0;
  374. bin.x1 = i < m ? tz[i] : x1;
  375. }
  376. // Assign data to bins by value, ignoring any outside the domain.
  377. for (i = 0; i < n; ++i) {
  378. x = values[i];
  379. if (x0 <= x && x <= x1) {
  380. bins[Object(_bisect__WEBPACK_IMPORTED_MODULE_1__["default"])(tz, x, 0, m)].push(data[i]);
  381. }
  382. }
  383. return bins;
  384. }
  385. histogram.value = function(_) {
  386. return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_), histogram) : value;
  387. };
  388. histogram.domain = function(_) {
  389. return arguments.length ? (domain = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])([_[0], _[1]]), histogram) : domain;
  390. };
  391. histogram.thresholds = function(_) {
  392. 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;
  393. };
  394. return histogram;
  395. });
  396. /***/ }),
  397. /***/ "./node_modules/d3-array/src/identity.js":
  398. /*!***********************************************!*\
  399. !*** ./node_modules/d3-array/src/identity.js ***!
  400. \***********************************************/
  401. /*! exports provided: default */
  402. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  403. "use strict";
  404. __webpack_require__.r(__webpack_exports__);
  405. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  406. return x;
  407. });
  408. /***/ }),
  409. /***/ "./node_modules/d3-array/src/index.js":
  410. /*!********************************************!*\
  411. !*** ./node_modules/d3-array/src/index.js ***!
  412. \********************************************/
  413. /*! 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 */
  414. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  415. "use strict";
  416. __webpack_require__.r(__webpack_exports__);
  417. /* harmony import */ var _bisect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bisect */ "./node_modules/d3-array/src/bisect.js");
  418. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisect", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  419. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["bisectRight"]; });
  420. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["bisectLeft"]; });
  421. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
  422. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ascending", function() { return _ascending__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  423. /* harmony import */ var _bisector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bisector */ "./node_modules/d3-array/src/bisector.js");
  424. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisector", function() { return _bisector__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  425. /* harmony import */ var _cross__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cross */ "./node_modules/d3-array/src/cross.js");
  426. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cross", function() { return _cross__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  427. /* harmony import */ var _descending__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./descending */ "./node_modules/d3-array/src/descending.js");
  428. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "descending", function() { return _descending__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  429. /* harmony import */ var _deviation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./deviation */ "./node_modules/d3-array/src/deviation.js");
  430. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deviation", function() { return _deviation__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  431. /* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./extent */ "./node_modules/d3-array/src/extent.js");
  432. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extent", function() { return _extent__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  433. /* harmony import */ var _histogram__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./histogram */ "./node_modules/d3-array/src/histogram.js");
  434. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "histogram", function() { return _histogram__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  435. /* harmony import */ var _threshold_freedmanDiaconis__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./threshold/freedmanDiaconis */ "./node_modules/d3-array/src/threshold/freedmanDiaconis.js");
  436. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdFreedmanDiaconis", function() { return _threshold_freedmanDiaconis__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  437. /* harmony import */ var _threshold_scott__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./threshold/scott */ "./node_modules/d3-array/src/threshold/scott.js");
  438. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdScott", function() { return _threshold_scott__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  439. /* harmony import */ var _threshold_sturges__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./threshold/sturges */ "./node_modules/d3-array/src/threshold/sturges.js");
  440. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdSturges", function() { return _threshold_sturges__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  441. /* harmony import */ var _max__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./max */ "./node_modules/d3-array/src/max.js");
  442. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "max", function() { return _max__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  443. /* harmony import */ var _mean__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./mean */ "./node_modules/d3-array/src/mean.js");
  444. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mean", function() { return _mean__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  445. /* harmony import */ var _median__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./median */ "./node_modules/d3-array/src/median.js");
  446. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "median", function() { return _median__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  447. /* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./merge */ "./node_modules/d3-array/src/merge.js");
  448. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return _merge__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  449. /* harmony import */ var _min__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./min */ "./node_modules/d3-array/src/min.js");
  450. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "min", function() { return _min__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  451. /* harmony import */ var _pairs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./pairs */ "./node_modules/d3-array/src/pairs.js");
  452. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return _pairs__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  453. /* harmony import */ var _permute__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./permute */ "./node_modules/d3-array/src/permute.js");
  454. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "permute", function() { return _permute__WEBPACK_IMPORTED_MODULE_17__["default"]; });
  455. /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./quantile */ "./node_modules/d3-array/src/quantile.js");
  456. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantile", function() { return _quantile__WEBPACK_IMPORTED_MODULE_18__["default"]; });
  457. /* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./range */ "./node_modules/d3-array/src/range.js");
  458. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "range", function() { return _range__WEBPACK_IMPORTED_MODULE_19__["default"]; });
  459. /* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./scan */ "./node_modules/d3-array/src/scan.js");
  460. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return _scan__WEBPACK_IMPORTED_MODULE_20__["default"]; });
  461. /* harmony import */ var _shuffle__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./shuffle */ "./node_modules/d3-array/src/shuffle.js");
  462. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shuffle", function() { return _shuffle__WEBPACK_IMPORTED_MODULE_21__["default"]; });
  463. /* harmony import */ var _sum__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./sum */ "./node_modules/d3-array/src/sum.js");
  464. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return _sum__WEBPACK_IMPORTED_MODULE_22__["default"]; });
  465. /* harmony import */ var _ticks__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ticks */ "./node_modules/d3-array/src/ticks.js");
  466. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ticks", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["default"]; });
  467. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["tickIncrement"]; });
  468. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["tickStep"]; });
  469. /* harmony import */ var _transpose__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./transpose */ "./node_modules/d3-array/src/transpose.js");
  470. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transpose", function() { return _transpose__WEBPACK_IMPORTED_MODULE_24__["default"]; });
  471. /* harmony import */ var _variance__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./variance */ "./node_modules/d3-array/src/variance.js");
  472. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "variance", function() { return _variance__WEBPACK_IMPORTED_MODULE_25__["default"]; });
  473. /* harmony import */ var _zip__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./zip */ "./node_modules/d3-array/src/zip.js");
  474. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return _zip__WEBPACK_IMPORTED_MODULE_26__["default"]; });
  475. /***/ }),
  476. /***/ "./node_modules/d3-array/src/max.js":
  477. /*!******************************************!*\
  478. !*** ./node_modules/d3-array/src/max.js ***!
  479. \******************************************/
  480. /*! exports provided: default */
  481. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  482. "use strict";
  483. __webpack_require__.r(__webpack_exports__);
  484. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  485. var n = values.length,
  486. i = -1,
  487. value,
  488. max;
  489. if (valueof == null) {
  490. while (++i < n) { // Find the first comparable value.
  491. if ((value = values[i]) != null && value >= value) {
  492. max = value;
  493. while (++i < n) { // Compare the remaining values.
  494. if ((value = values[i]) != null && value > max) {
  495. max = value;
  496. }
  497. }
  498. }
  499. }
  500. }
  501. else {
  502. while (++i < n) { // Find the first comparable value.
  503. if ((value = valueof(values[i], i, values)) != null && value >= value) {
  504. max = value;
  505. while (++i < n) { // Compare the remaining values.
  506. if ((value = valueof(values[i], i, values)) != null && value > max) {
  507. max = value;
  508. }
  509. }
  510. }
  511. }
  512. }
  513. return max;
  514. });
  515. /***/ }),
  516. /***/ "./node_modules/d3-array/src/mean.js":
  517. /*!*******************************************!*\
  518. !*** ./node_modules/d3-array/src/mean.js ***!
  519. \*******************************************/
  520. /*! exports provided: default */
  521. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  522. "use strict";
  523. __webpack_require__.r(__webpack_exports__);
  524. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");
  525. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  526. var n = values.length,
  527. m = n,
  528. i = -1,
  529. value,
  530. sum = 0;
  531. if (valueof == null) {
  532. while (++i < n) {
  533. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(values[i]))) sum += value;
  534. else --m;
  535. }
  536. }
  537. else {
  538. while (++i < n) {
  539. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(valueof(values[i], i, values)))) sum += value;
  540. else --m;
  541. }
  542. }
  543. if (m) return sum / m;
  544. });
  545. /***/ }),
  546. /***/ "./node_modules/d3-array/src/median.js":
  547. /*!*********************************************!*\
  548. !*** ./node_modules/d3-array/src/median.js ***!
  549. \*********************************************/
  550. /*! exports provided: default */
  551. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  552. "use strict";
  553. __webpack_require__.r(__webpack_exports__);
  554. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
  555. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");
  556. /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./quantile */ "./node_modules/d3-array/src/quantile.js");
  557. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  558. var n = values.length,
  559. i = -1,
  560. value,
  561. numbers = [];
  562. if (valueof == null) {
  563. while (++i < n) {
  564. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_1__["default"])(values[i]))) {
  565. numbers.push(value);
  566. }
  567. }
  568. }
  569. else {
  570. while (++i < n) {
  571. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_1__["default"])(valueof(values[i], i, values)))) {
  572. numbers.push(value);
  573. }
  574. }
  575. }
  576. return Object(_quantile__WEBPACK_IMPORTED_MODULE_2__["default"])(numbers.sort(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"]), 0.5);
  577. });
  578. /***/ }),
  579. /***/ "./node_modules/d3-array/src/merge.js":
  580. /*!********************************************!*\
  581. !*** ./node_modules/d3-array/src/merge.js ***!
  582. \********************************************/
  583. /*! exports provided: default */
  584. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  585. "use strict";
  586. __webpack_require__.r(__webpack_exports__);
  587. /* harmony default export */ __webpack_exports__["default"] = (function(arrays) {
  588. var n = arrays.length,
  589. m,
  590. i = -1,
  591. j = 0,
  592. merged,
  593. array;
  594. while (++i < n) j += arrays[i].length;
  595. merged = new Array(j);
  596. while (--n >= 0) {
  597. array = arrays[n];
  598. m = array.length;
  599. while (--m >= 0) {
  600. merged[--j] = array[m];
  601. }
  602. }
  603. return merged;
  604. });
  605. /***/ }),
  606. /***/ "./node_modules/d3-array/src/min.js":
  607. /*!******************************************!*\
  608. !*** ./node_modules/d3-array/src/min.js ***!
  609. \******************************************/
  610. /*! exports provided: default */
  611. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  612. "use strict";
  613. __webpack_require__.r(__webpack_exports__);
  614. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  615. var n = values.length,
  616. i = -1,
  617. value,
  618. min;
  619. if (valueof == null) {
  620. while (++i < n) { // Find the first comparable value.
  621. if ((value = values[i]) != null && value >= value) {
  622. min = value;
  623. while (++i < n) { // Compare the remaining values.
  624. if ((value = values[i]) != null && min > value) {
  625. min = value;
  626. }
  627. }
  628. }
  629. }
  630. }
  631. else {
  632. while (++i < n) { // Find the first comparable value.
  633. if ((value = valueof(values[i], i, values)) != null && value >= value) {
  634. min = value;
  635. while (++i < n) { // Compare the remaining values.
  636. if ((value = valueof(values[i], i, values)) != null && min > value) {
  637. min = value;
  638. }
  639. }
  640. }
  641. }
  642. }
  643. return min;
  644. });
  645. /***/ }),
  646. /***/ "./node_modules/d3-array/src/number.js":
  647. /*!*********************************************!*\
  648. !*** ./node_modules/d3-array/src/number.js ***!
  649. \*********************************************/
  650. /*! exports provided: default */
  651. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  652. "use strict";
  653. __webpack_require__.r(__webpack_exports__);
  654. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  655. return x === null ? NaN : +x;
  656. });
  657. /***/ }),
  658. /***/ "./node_modules/d3-array/src/pairs.js":
  659. /*!********************************************!*\
  660. !*** ./node_modules/d3-array/src/pairs.js ***!
  661. \********************************************/
  662. /*! exports provided: default, pair */
  663. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  664. "use strict";
  665. __webpack_require__.r(__webpack_exports__);
  666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pair", function() { return pair; });
  667. /* harmony default export */ __webpack_exports__["default"] = (function(array, f) {
  668. if (f == null) f = pair;
  669. var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n);
  670. while (i < n) pairs[i] = f(p, p = array[++i]);
  671. return pairs;
  672. });
  673. function pair(a, b) {
  674. return [a, b];
  675. }
  676. /***/ }),
  677. /***/ "./node_modules/d3-array/src/permute.js":
  678. /*!**********************************************!*\
  679. !*** ./node_modules/d3-array/src/permute.js ***!
  680. \**********************************************/
  681. /*! exports provided: default */
  682. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  683. "use strict";
  684. __webpack_require__.r(__webpack_exports__);
  685. /* harmony default export */ __webpack_exports__["default"] = (function(array, indexes) {
  686. var i = indexes.length, permutes = new Array(i);
  687. while (i--) permutes[i] = array[indexes[i]];
  688. return permutes;
  689. });
  690. /***/ }),
  691. /***/ "./node_modules/d3-array/src/quantile.js":
  692. /*!***********************************************!*\
  693. !*** ./node_modules/d3-array/src/quantile.js ***!
  694. \***********************************************/
  695. /*! exports provided: default */
  696. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  697. "use strict";
  698. __webpack_require__.r(__webpack_exports__);
  699. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");
  700. /* harmony default export */ __webpack_exports__["default"] = (function(values, p, valueof) {
  701. if (valueof == null) valueof = _number__WEBPACK_IMPORTED_MODULE_0__["default"];
  702. if (!(n = values.length)) return;
  703. if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);
  704. if (p >= 1) return +valueof(values[n - 1], n - 1, values);
  705. var n,
  706. i = (n - 1) * p,
  707. i0 = Math.floor(i),
  708. value0 = +valueof(values[i0], i0, values),
  709. value1 = +valueof(values[i0 + 1], i0 + 1, values);
  710. return value0 + (value1 - value0) * (i - i0);
  711. });
  712. /***/ }),
  713. /***/ "./node_modules/d3-array/src/range.js":
  714. /*!********************************************!*\
  715. !*** ./node_modules/d3-array/src/range.js ***!
  716. \********************************************/
  717. /*! exports provided: default */
  718. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  719. "use strict";
  720. __webpack_require__.r(__webpack_exports__);
  721. /* harmony default export */ __webpack_exports__["default"] = (function(start, stop, step) {
  722. start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;
  723. var i = -1,
  724. n = Math.max(0, Math.ceil((stop - start) / step)) | 0,
  725. range = new Array(n);
  726. while (++i < n) {
  727. range[i] = start + i * step;
  728. }
  729. return range;
  730. });
  731. /***/ }),
  732. /***/ "./node_modules/d3-array/src/scan.js":
  733. /*!*******************************************!*\
  734. !*** ./node_modules/d3-array/src/scan.js ***!
  735. \*******************************************/
  736. /*! exports provided: default */
  737. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  738. "use strict";
  739. __webpack_require__.r(__webpack_exports__);
  740. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
  741. /* harmony default export */ __webpack_exports__["default"] = (function(values, compare) {
  742. if (!(n = values.length)) return;
  743. var n,
  744. i = 0,
  745. j = 0,
  746. xi,
  747. xj = values[j];
  748. if (compare == null) compare = _ascending__WEBPACK_IMPORTED_MODULE_0__["default"];
  749. while (++i < n) {
  750. if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {
  751. xj = xi, j = i;
  752. }
  753. }
  754. if (compare(xj, xj) === 0) return j;
  755. });
  756. /***/ }),
  757. /***/ "./node_modules/d3-array/src/shuffle.js":
  758. /*!**********************************************!*\
  759. !*** ./node_modules/d3-array/src/shuffle.js ***!
  760. \**********************************************/
  761. /*! exports provided: default */
  762. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  763. "use strict";
  764. __webpack_require__.r(__webpack_exports__);
  765. /* harmony default export */ __webpack_exports__["default"] = (function(array, i0, i1) {
  766. var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0),
  767. t,
  768. i;
  769. while (m) {
  770. i = Math.random() * m-- | 0;
  771. t = array[m + i0];
  772. array[m + i0] = array[i + i0];
  773. array[i + i0] = t;
  774. }
  775. return array;
  776. });
  777. /***/ }),
  778. /***/ "./node_modules/d3-array/src/sum.js":
  779. /*!******************************************!*\
  780. !*** ./node_modules/d3-array/src/sum.js ***!
  781. \******************************************/
  782. /*! exports provided: default */
  783. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  784. "use strict";
  785. __webpack_require__.r(__webpack_exports__);
  786. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  787. var n = values.length,
  788. i = -1,
  789. value,
  790. sum = 0;
  791. if (valueof == null) {
  792. while (++i < n) {
  793. if (value = +values[i]) sum += value; // Note: zero and null are equivalent.
  794. }
  795. }
  796. else {
  797. while (++i < n) {
  798. if (value = +valueof(values[i], i, values)) sum += value;
  799. }
  800. }
  801. return sum;
  802. });
  803. /***/ }),
  804. /***/ "./node_modules/d3-array/src/threshold/freedmanDiaconis.js":
  805. /*!*****************************************************************!*\
  806. !*** ./node_modules/d3-array/src/threshold/freedmanDiaconis.js ***!
  807. \*****************************************************************/
  808. /*! exports provided: default */
  809. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  810. "use strict";
  811. __webpack_require__.r(__webpack_exports__);
  812. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../array */ "./node_modules/d3-array/src/array.js");
  813. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ascending */ "./node_modules/d3-array/src/ascending.js");
  814. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../number */ "./node_modules/d3-array/src/number.js");
  815. /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../quantile */ "./node_modules/d3-array/src/quantile.js");
  816. /* harmony default export */ __webpack_exports__["default"] = (function(values, min, max) {
  817. values = _array__WEBPACK_IMPORTED_MODULE_0__["map"].call(values, _number__WEBPACK_IMPORTED_MODULE_2__["default"]).sort(_ascending__WEBPACK_IMPORTED_MODULE_1__["default"]);
  818. 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)));
  819. });
  820. /***/ }),
  821. /***/ "./node_modules/d3-array/src/threshold/scott.js":
  822. /*!******************************************************!*\
  823. !*** ./node_modules/d3-array/src/threshold/scott.js ***!
  824. \******************************************************/
  825. /*! exports provided: default */
  826. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  827. "use strict";
  828. __webpack_require__.r(__webpack_exports__);
  829. /* harmony import */ var _deviation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../deviation */ "./node_modules/d3-array/src/deviation.js");
  830. /* harmony default export */ __webpack_exports__["default"] = (function(values, min, max) {
  831. return Math.ceil((max - min) / (3.5 * Object(_deviation__WEBPACK_IMPORTED_MODULE_0__["default"])(values) * Math.pow(values.length, -1 / 3)));
  832. });
  833. /***/ }),
  834. /***/ "./node_modules/d3-array/src/threshold/sturges.js":
  835. /*!********************************************************!*\
  836. !*** ./node_modules/d3-array/src/threshold/sturges.js ***!
  837. \********************************************************/
  838. /*! exports provided: default */
  839. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  840. "use strict";
  841. __webpack_require__.r(__webpack_exports__);
  842. /* harmony default export */ __webpack_exports__["default"] = (function(values) {
  843. return Math.ceil(Math.log(values.length) / Math.LN2) + 1;
  844. });
  845. /***/ }),
  846. /***/ "./node_modules/d3-array/src/ticks.js":
  847. /*!********************************************!*\
  848. !*** ./node_modules/d3-array/src/ticks.js ***!
  849. \********************************************/
  850. /*! exports provided: default, tickIncrement, tickStep */
  851. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  852. "use strict";
  853. __webpack_require__.r(__webpack_exports__);
  854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return tickIncrement; });
  855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return tickStep; });
  856. var e10 = Math.sqrt(50),
  857. e5 = Math.sqrt(10),
  858. e2 = Math.sqrt(2);
  859. /* harmony default export */ __webpack_exports__["default"] = (function(start, stop, count) {
  860. var reverse,
  861. i = -1,
  862. n,
  863. ticks,
  864. step;
  865. stop = +stop, start = +start, count = +count;
  866. if (start === stop && count > 0) return [start];
  867. if (reverse = stop < start) n = start, start = stop, stop = n;
  868. if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
  869. if (step > 0) {
  870. start = Math.ceil(start / step);
  871. stop = Math.floor(stop / step);
  872. ticks = new Array(n = Math.ceil(stop - start + 1));
  873. while (++i < n) ticks[i] = (start + i) * step;
  874. } else {
  875. start = Math.floor(start * step);
  876. stop = Math.ceil(stop * step);
  877. ticks = new Array(n = Math.ceil(start - stop + 1));
  878. while (++i < n) ticks[i] = (start - i) / step;
  879. }
  880. if (reverse) ticks.reverse();
  881. return ticks;
  882. });
  883. function tickIncrement(start, stop, count) {
  884. var step = (stop - start) / Math.max(0, count),
  885. power = Math.floor(Math.log(step) / Math.LN10),
  886. error = step / Math.pow(10, power);
  887. return power >= 0
  888. ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
  889. : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
  890. }
  891. function tickStep(start, stop, count) {
  892. var step0 = Math.abs(stop - start) / Math.max(0, count),
  893. step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
  894. error = step0 / step1;
  895. if (error >= e10) step1 *= 10;
  896. else if (error >= e5) step1 *= 5;
  897. else if (error >= e2) step1 *= 2;
  898. return stop < start ? -step1 : step1;
  899. }
  900. /***/ }),
  901. /***/ "./node_modules/d3-array/src/transpose.js":
  902. /*!************************************************!*\
  903. !*** ./node_modules/d3-array/src/transpose.js ***!
  904. \************************************************/
  905. /*! exports provided: default */
  906. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  907. "use strict";
  908. __webpack_require__.r(__webpack_exports__);
  909. /* harmony import */ var _min__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./min */ "./node_modules/d3-array/src/min.js");
  910. /* harmony default export */ __webpack_exports__["default"] = (function(matrix) {
  911. if (!(n = matrix.length)) return [];
  912. for (var i = -1, m = Object(_min__WEBPACK_IMPORTED_MODULE_0__["default"])(matrix, length), transpose = new Array(m); ++i < m;) {
  913. for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {
  914. row[j] = matrix[j][i];
  915. }
  916. }
  917. return transpose;
  918. });
  919. function length(d) {
  920. return d.length;
  921. }
  922. /***/ }),
  923. /***/ "./node_modules/d3-array/src/variance.js":
  924. /*!***********************************************!*\
  925. !*** ./node_modules/d3-array/src/variance.js ***!
  926. \***********************************************/
  927. /*! exports provided: default */
  928. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  929. "use strict";
  930. __webpack_require__.r(__webpack_exports__);
  931. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");
  932. /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) {
  933. var n = values.length,
  934. m = 0,
  935. i = -1,
  936. mean = 0,
  937. value,
  938. delta,
  939. sum = 0;
  940. if (valueof == null) {
  941. while (++i < n) {
  942. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(values[i]))) {
  943. delta = value - mean;
  944. mean += delta / ++m;
  945. sum += delta * (value - mean);
  946. }
  947. }
  948. }
  949. else {
  950. while (++i < n) {
  951. if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(valueof(values[i], i, values)))) {
  952. delta = value - mean;
  953. mean += delta / ++m;
  954. sum += delta * (value - mean);
  955. }
  956. }
  957. }
  958. if (m > 1) return sum / (m - 1);
  959. });
  960. /***/ }),
  961. /***/ "./node_modules/d3-array/src/zip.js":
  962. /*!******************************************!*\
  963. !*** ./node_modules/d3-array/src/zip.js ***!
  964. \******************************************/
  965. /*! exports provided: default */
  966. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  967. "use strict";
  968. __webpack_require__.r(__webpack_exports__);
  969. /* harmony import */ var _transpose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transpose */ "./node_modules/d3-array/src/transpose.js");
  970. /* harmony default export */ __webpack_exports__["default"] = (function() {
  971. return Object(_transpose__WEBPACK_IMPORTED_MODULE_0__["default"])(arguments);
  972. });
  973. /***/ }),
  974. /***/ "./node_modules/d3-axis/src/array.js":
  975. /*!*******************************************!*\
  976. !*** ./node_modules/d3-axis/src/array.js ***!
  977. \*******************************************/
  978. /*! exports provided: slice */
  979. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  980. "use strict";
  981. __webpack_require__.r(__webpack_exports__);
  982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  983. var slice = Array.prototype.slice;
  984. /***/ }),
  985. /***/ "./node_modules/d3-axis/src/axis.js":
  986. /*!******************************************!*\
  987. !*** ./node_modules/d3-axis/src/axis.js ***!
  988. \******************************************/
  989. /*! exports provided: axisTop, axisRight, axisBottom, axisLeft */
  990. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  991. "use strict";
  992. __webpack_require__.r(__webpack_exports__);
  993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "axisTop", function() { return axisTop; });
  994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "axisRight", function() { return axisRight; });
  995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "axisBottom", function() { return axisBottom; });
  996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "axisLeft", function() { return axisLeft; });
  997. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-axis/src/array.js");
  998. /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-axis/src/identity.js");
  999. var top = 1,
  1000. right = 2,
  1001. bottom = 3,
  1002. left = 4,
  1003. epsilon = 1e-6;
  1004. function translateX(x) {
  1005. return "translate(" + (x + 0.5) + ",0)";
  1006. }
  1007. function translateY(y) {
  1008. return "translate(0," + (y + 0.5) + ")";
  1009. }
  1010. function number(scale) {
  1011. return function(d) {
  1012. return +scale(d);
  1013. };
  1014. }
  1015. function center(scale) {
  1016. var offset = Math.max(0, scale.bandwidth() - 1) / 2; // Adjust for 0.5px offset.
  1017. if (scale.round()) offset = Math.round(offset);
  1018. return function(d) {
  1019. return +scale(d) + offset;
  1020. };
  1021. }
  1022. function entering() {
  1023. return !this.__axis;
  1024. }
  1025. function axis(orient, scale) {
  1026. var tickArguments = [],
  1027. tickValues = null,
  1028. tickFormat = null,
  1029. tickSizeInner = 6,
  1030. tickSizeOuter = 6,
  1031. tickPadding = 3,
  1032. k = orient === top || orient === left ? -1 : 1,
  1033. x = orient === left || orient === right ? "x" : "y",
  1034. transform = orient === top || orient === bottom ? translateX : translateY;
  1035. function axis(context) {
  1036. var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,
  1037. format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : _identity__WEBPACK_IMPORTED_MODULE_1__["default"]) : tickFormat,
  1038. spacing = Math.max(tickSizeInner, 0) + tickPadding,
  1039. range = scale.range(),
  1040. range0 = +range[0] + 0.5,
  1041. range1 = +range[range.length - 1] + 0.5,
  1042. position = (scale.bandwidth ? center : number)(scale.copy()),
  1043. selection = context.selection ? context.selection() : context,
  1044. path = selection.selectAll(".domain").data([null]),
  1045. tick = selection.selectAll(".tick").data(values, scale).order(),
  1046. tickExit = tick.exit(),
  1047. tickEnter = tick.enter().append("g").attr("class", "tick"),
  1048. line = tick.select("line"),
  1049. text = tick.select("text");
  1050. path = path.merge(path.enter().insert("path", ".tick")
  1051. .attr("class", "domain")
  1052. .attr("stroke", "currentColor"));
  1053. tick = tick.merge(tickEnter);
  1054. line = line.merge(tickEnter.append("line")
  1055. .attr("stroke", "currentColor")
  1056. .attr(x + "2", k * tickSizeInner));
  1057. text = text.merge(tickEnter.append("text")
  1058. .attr("fill", "currentColor")
  1059. .attr(x, k * spacing)
  1060. .attr("dy", orient === top ? "0em" : orient === bottom ? "0.71em" : "0.32em"));
  1061. if (context !== selection) {
  1062. path = path.transition(context);
  1063. tick = tick.transition(context);
  1064. line = line.transition(context);
  1065. text = text.transition(context);
  1066. tickExit = tickExit.transition(context)
  1067. .attr("opacity", epsilon)
  1068. .attr("transform", function(d) { return isFinite(d = position(d)) ? transform(d) : this.getAttribute("transform"); });
  1069. tickEnter
  1070. .attr("opacity", epsilon)
  1071. .attr("transform", function(d) { var p = this.parentNode.__axis; return transform(p && isFinite(p = p(d)) ? p : position(d)); });
  1072. }
  1073. tickExit.remove();
  1074. path
  1075. .attr("d", orient === left || orient == right
  1076. ? (tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H0.5V" + range1 + "H" + k * tickSizeOuter : "M0.5," + range0 + "V" + range1)
  1077. : (tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V0.5H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + ",0.5H" + range1));
  1078. tick
  1079. .attr("opacity", 1)
  1080. .attr("transform", function(d) { return transform(position(d)); });
  1081. line
  1082. .attr(x + "2", k * tickSizeInner);
  1083. text
  1084. .attr(x, k * spacing)
  1085. .text(format);
  1086. selection.filter(entering)
  1087. .attr("fill", "none")
  1088. .attr("font-size", 10)
  1089. .attr("font-family", "sans-serif")
  1090. .attr("text-anchor", orient === right ? "start" : orient === left ? "end" : "middle");
  1091. selection
  1092. .each(function() { this.__axis = position; });
  1093. }
  1094. axis.scale = function(_) {
  1095. return arguments.length ? (scale = _, axis) : scale;
  1096. };
  1097. axis.ticks = function() {
  1098. return tickArguments = _array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(arguments), axis;
  1099. };
  1100. axis.tickArguments = function(_) {
  1101. return arguments.length ? (tickArguments = _ == null ? [] : _array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_), axis) : tickArguments.slice();
  1102. };
  1103. axis.tickValues = function(_) {
  1104. return arguments.length ? (tickValues = _ == null ? null : _array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_), axis) : tickValues && tickValues.slice();
  1105. };
  1106. axis.tickFormat = function(_) {
  1107. return arguments.length ? (tickFormat = _, axis) : tickFormat;
  1108. };
  1109. axis.tickSize = function(_) {
  1110. return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;
  1111. };
  1112. axis.tickSizeInner = function(_) {
  1113. return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;
  1114. };
  1115. axis.tickSizeOuter = function(_) {
  1116. return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;
  1117. };
  1118. axis.tickPadding = function(_) {
  1119. return arguments.length ? (tickPadding = +_, axis) : tickPadding;
  1120. };
  1121. return axis;
  1122. }
  1123. function axisTop(scale) {
  1124. return axis(top, scale);
  1125. }
  1126. function axisRight(scale) {
  1127. return axis(right, scale);
  1128. }
  1129. function axisBottom(scale) {
  1130. return axis(bottom, scale);
  1131. }
  1132. function axisLeft(scale) {
  1133. return axis(left, scale);
  1134. }
  1135. /***/ }),
  1136. /***/ "./node_modules/d3-axis/src/identity.js":
  1137. /*!**********************************************!*\
  1138. !*** ./node_modules/d3-axis/src/identity.js ***!
  1139. \**********************************************/
  1140. /*! exports provided: default */
  1141. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1142. "use strict";
  1143. __webpack_require__.r(__webpack_exports__);
  1144. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  1145. return x;
  1146. });
  1147. /***/ }),
  1148. /***/ "./node_modules/d3-axis/src/index.js":
  1149. /*!*******************************************!*\
  1150. !*** ./node_modules/d3-axis/src/index.js ***!
  1151. \*******************************************/
  1152. /*! exports provided: axisTop, axisRight, axisBottom, axisLeft */
  1153. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1154. "use strict";
  1155. __webpack_require__.r(__webpack_exports__);
  1156. /* harmony import */ var _axis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./axis */ "./node_modules/d3-axis/src/axis.js");
  1157. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisTop", function() { return _axis__WEBPACK_IMPORTED_MODULE_0__["axisTop"]; });
  1158. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisRight", function() { return _axis__WEBPACK_IMPORTED_MODULE_0__["axisRight"]; });
  1159. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisBottom", function() { return _axis__WEBPACK_IMPORTED_MODULE_0__["axisBottom"]; });
  1160. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisLeft", function() { return _axis__WEBPACK_IMPORTED_MODULE_0__["axisLeft"]; });
  1161. /***/ }),
  1162. /***/ "./node_modules/d3-brush/src/brush.js":
  1163. /*!********************************************!*\
  1164. !*** ./node_modules/d3-brush/src/brush.js ***!
  1165. \********************************************/
  1166. /*! exports provided: brushSelection, brushX, brushY, default */
  1167. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1168. "use strict";
  1169. __webpack_require__.r(__webpack_exports__);
  1170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brushSelection", function() { return brushSelection; });
  1171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brushX", function() { return brushX; });
  1172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brushY", function() { return brushY; });
  1173. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  1174. /* harmony import */ var d3_drag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-drag */ "./node_modules/d3-drag/src/index.js");
  1175. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  1176. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  1177. /* harmony import */ var d3_transition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-transition */ "./node_modules/d3-transition/src/index.js");
  1178. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-brush/src/constant.js");
  1179. /* harmony import */ var _event_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./event.js */ "./node_modules/d3-brush/src/event.js");
  1180. /* harmony import */ var _noevent_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./noevent.js */ "./node_modules/d3-brush/src/noevent.js");
  1181. var MODE_DRAG = {name: "drag"},
  1182. MODE_SPACE = {name: "space"},
  1183. MODE_HANDLE = {name: "handle"},
  1184. MODE_CENTER = {name: "center"};
  1185. function number1(e) {
  1186. return [+e[0], +e[1]];
  1187. }
  1188. function number2(e) {
  1189. return [number1(e[0]), number1(e[1])];
  1190. }
  1191. function toucher(identifier) {
  1192. return function(target) {
  1193. return Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["touch"])(target, d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches, identifier);
  1194. };
  1195. }
  1196. var X = {
  1197. name: "x",
  1198. handles: ["w", "e"].map(type),
  1199. input: function(x, e) { return x == null ? null : [[+x[0], e[0][1]], [+x[1], e[1][1]]]; },
  1200. output: function(xy) { return xy && [xy[0][0], xy[1][0]]; }
  1201. };
  1202. var Y = {
  1203. name: "y",
  1204. handles: ["n", "s"].map(type),
  1205. input: function(y, e) { return y == null ? null : [[e[0][0], +y[0]], [e[1][0], +y[1]]]; },
  1206. output: function(xy) { return xy && [xy[0][1], xy[1][1]]; }
  1207. };
  1208. var XY = {
  1209. name: "xy",
  1210. handles: ["n", "w", "e", "s", "nw", "ne", "sw", "se"].map(type),
  1211. input: function(xy) { return xy == null ? null : number2(xy); },
  1212. output: function(xy) { return xy; }
  1213. };
  1214. var cursors = {
  1215. overlay: "crosshair",
  1216. selection: "move",
  1217. n: "ns-resize",
  1218. e: "ew-resize",
  1219. s: "ns-resize",
  1220. w: "ew-resize",
  1221. nw: "nwse-resize",
  1222. ne: "nesw-resize",
  1223. se: "nwse-resize",
  1224. sw: "nesw-resize"
  1225. };
  1226. var flipX = {
  1227. e: "w",
  1228. w: "e",
  1229. nw: "ne",
  1230. ne: "nw",
  1231. se: "sw",
  1232. sw: "se"
  1233. };
  1234. var flipY = {
  1235. n: "s",
  1236. s: "n",
  1237. nw: "sw",
  1238. ne: "se",
  1239. se: "ne",
  1240. sw: "nw"
  1241. };
  1242. var signsX = {
  1243. overlay: +1,
  1244. selection: +1,
  1245. n: null,
  1246. e: +1,
  1247. s: null,
  1248. w: -1,
  1249. nw: -1,
  1250. ne: +1,
  1251. se: +1,
  1252. sw: -1
  1253. };
  1254. var signsY = {
  1255. overlay: +1,
  1256. selection: +1,
  1257. n: -1,
  1258. e: null,
  1259. s: +1,
  1260. w: null,
  1261. nw: -1,
  1262. ne: -1,
  1263. se: +1,
  1264. sw: +1
  1265. };
  1266. function type(t) {
  1267. return {type: t};
  1268. }
  1269. // Ignore right-click, since that should open the context menu.
  1270. function defaultFilter() {
  1271. return !d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].ctrlKey && !d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].button;
  1272. }
  1273. function defaultExtent() {
  1274. var svg = this.ownerSVGElement || this;
  1275. if (svg.hasAttribute("viewBox")) {
  1276. svg = svg.viewBox.baseVal;
  1277. return [[svg.x, svg.y], [svg.x + svg.width, svg.y + svg.height]];
  1278. }
  1279. return [[0, 0], [svg.width.baseVal.value, svg.height.baseVal.value]];
  1280. }
  1281. function defaultTouchable() {
  1282. return navigator.maxTouchPoints || ("ontouchstart" in this);
  1283. }
  1284. // Like d3.local, but with the name “__brush” rather than auto-generated.
  1285. function local(node) {
  1286. while (!node.__brush) if (!(node = node.parentNode)) return;
  1287. return node.__brush;
  1288. }
  1289. function empty(extent) {
  1290. return extent[0][0] === extent[1][0]
  1291. || extent[0][1] === extent[1][1];
  1292. }
  1293. function brushSelection(node) {
  1294. var state = node.__brush;
  1295. return state ? state.dim.output(state.selection) : null;
  1296. }
  1297. function brushX() {
  1298. return brush(X);
  1299. }
  1300. function brushY() {
  1301. return brush(Y);
  1302. }
  1303. /* harmony default export */ __webpack_exports__["default"] = (function() {
  1304. return brush(XY);
  1305. });
  1306. function brush(dim) {
  1307. var extent = defaultExtent,
  1308. filter = defaultFilter,
  1309. touchable = defaultTouchable,
  1310. keys = true,
  1311. listeners = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("start", "brush", "end"),
  1312. handleSize = 6,
  1313. touchending;
  1314. function brush(group) {
  1315. var overlay = group
  1316. .property("__brush", initialize)
  1317. .selectAll(".overlay")
  1318. .data([type("overlay")]);
  1319. overlay.enter().append("rect")
  1320. .attr("class", "overlay")
  1321. .attr("pointer-events", "all")
  1322. .attr("cursor", cursors.overlay)
  1323. .merge(overlay)
  1324. .each(function() {
  1325. var extent = local(this).extent;
  1326. Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this)
  1327. .attr("x", extent[0][0])
  1328. .attr("y", extent[0][1])
  1329. .attr("width", extent[1][0] - extent[0][0])
  1330. .attr("height", extent[1][1] - extent[0][1]);
  1331. });
  1332. group.selectAll(".selection")
  1333. .data([type("selection")])
  1334. .enter().append("rect")
  1335. .attr("class", "selection")
  1336. .attr("cursor", cursors.selection)
  1337. .attr("fill", "#777")
  1338. .attr("fill-opacity", 0.3)
  1339. .attr("stroke", "#fff")
  1340. .attr("shape-rendering", "crispEdges");
  1341. var handle = group.selectAll(".handle")
  1342. .data(dim.handles, function(d) { return d.type; });
  1343. handle.exit().remove();
  1344. handle.enter().append("rect")
  1345. .attr("class", function(d) { return "handle handle--" + d.type; })
  1346. .attr("cursor", function(d) { return cursors[d.type]; });
  1347. group
  1348. .each(redraw)
  1349. .attr("fill", "none")
  1350. .attr("pointer-events", "all")
  1351. .on("mousedown.brush", started)
  1352. .filter(touchable)
  1353. .on("touchstart.brush", started)
  1354. .on("touchmove.brush", touchmoved)
  1355. .on("touchend.brush touchcancel.brush", touchended)
  1356. .style("touch-action", "none")
  1357. .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
  1358. }
  1359. brush.move = function(group, selection) {
  1360. if (group.selection) {
  1361. group
  1362. .on("start.brush", function() { emitter(this, arguments).beforestart().start(); })
  1363. .on("interrupt.brush end.brush", function() { emitter(this, arguments).end(); })
  1364. .tween("brush", function() {
  1365. var that = this,
  1366. state = that.__brush,
  1367. emit = emitter(that, arguments),
  1368. selection0 = state.selection,
  1369. selection1 = dim.input(typeof selection === "function" ? selection.apply(this, arguments) : selection, state.extent),
  1370. i = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["interpolate"])(selection0, selection1);
  1371. function tween(t) {
  1372. state.selection = t === 1 && selection1 === null ? null : i(t);
  1373. redraw.call(that);
  1374. emit.brush();
  1375. }
  1376. return selection0 !== null && selection1 !== null ? tween : tween(1);
  1377. });
  1378. } else {
  1379. group
  1380. .each(function() {
  1381. var that = this,
  1382. args = arguments,
  1383. state = that.__brush,
  1384. selection1 = dim.input(typeof selection === "function" ? selection.apply(that, args) : selection, state.extent),
  1385. emit = emitter(that, args).beforestart();
  1386. Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(that);
  1387. state.selection = selection1 === null ? null : selection1;
  1388. redraw.call(that);
  1389. emit.start().brush().end();
  1390. });
  1391. }
  1392. };
  1393. brush.clear = function(group) {
  1394. brush.move(group, null);
  1395. };
  1396. function redraw() {
  1397. var group = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this),
  1398. selection = local(this).selection;
  1399. if (selection) {
  1400. group.selectAll(".selection")
  1401. .style("display", null)
  1402. .attr("x", selection[0][0])
  1403. .attr("y", selection[0][1])
  1404. .attr("width", selection[1][0] - selection[0][0])
  1405. .attr("height", selection[1][1] - selection[0][1]);
  1406. group.selectAll(".handle")
  1407. .style("display", null)
  1408. .attr("x", function(d) { return d.type[d.type.length - 1] === "e" ? selection[1][0] - handleSize / 2 : selection[0][0] - handleSize / 2; })
  1409. .attr("y", function(d) { return d.type[0] === "s" ? selection[1][1] - handleSize / 2 : selection[0][1] - handleSize / 2; })
  1410. .attr("width", function(d) { return d.type === "n" || d.type === "s" ? selection[1][0] - selection[0][0] + handleSize : handleSize; })
  1411. .attr("height", function(d) { return d.type === "e" || d.type === "w" ? selection[1][1] - selection[0][1] + handleSize : handleSize; });
  1412. }
  1413. else {
  1414. group.selectAll(".selection,.handle")
  1415. .style("display", "none")
  1416. .attr("x", null)
  1417. .attr("y", null)
  1418. .attr("width", null)
  1419. .attr("height", null);
  1420. }
  1421. }
  1422. function emitter(that, args, clean) {
  1423. return (!clean && that.__brush.emitter) || new Emitter(that, args);
  1424. }
  1425. function Emitter(that, args) {
  1426. this.that = that;
  1427. this.args = args;
  1428. this.state = that.__brush;
  1429. this.active = 0;
  1430. }
  1431. Emitter.prototype = {
  1432. beforestart: function() {
  1433. if (++this.active === 1) this.state.emitter = this, this.starting = true;
  1434. return this;
  1435. },
  1436. start: function() {
  1437. if (this.starting) this.starting = false, this.emit("start");
  1438. else this.emit("brush");
  1439. return this;
  1440. },
  1441. brush: function() {
  1442. this.emit("brush");
  1443. return this;
  1444. },
  1445. end: function() {
  1446. if (--this.active === 0) delete this.state.emitter, this.emit("end");
  1447. return this;
  1448. },
  1449. emit: function(type) {
  1450. Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["customEvent"])(new _event_js__WEBPACK_IMPORTED_MODULE_6__["default"](brush, type, dim.output(this.state.selection)), listeners.apply, listeners, [type, this.that, this.args]);
  1451. }
  1452. };
  1453. function started() {
  1454. if (touchending && !d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches) return;
  1455. if (!filter.apply(this, arguments)) return;
  1456. var that = this,
  1457. type = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].target.__data__.type,
  1458. mode = (keys && d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].metaKey ? type = "overlay" : type) === "selection" ? MODE_DRAG : (keys && d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].altKey ? MODE_CENTER : MODE_HANDLE),
  1459. signX = dim === Y ? null : signsX[type],
  1460. signY = dim === X ? null : signsY[type],
  1461. state = local(that),
  1462. extent = state.extent,
  1463. selection = state.selection,
  1464. W = extent[0][0], w0, w1,
  1465. N = extent[0][1], n0, n1,
  1466. E = extent[1][0], e0, e1,
  1467. S = extent[1][1], s0, s1,
  1468. dx = 0,
  1469. dy = 0,
  1470. moving,
  1471. shifting = signX && signY && keys && d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].shiftKey,
  1472. lockX,
  1473. lockY,
  1474. pointer = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches ? toucher(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].changedTouches[0].identifier) : d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"],
  1475. point0 = pointer(that),
  1476. point = point0,
  1477. emit = emitter(that, arguments, true).beforestart();
  1478. if (type === "overlay") {
  1479. if (selection) moving = true;
  1480. state.selection = selection = [
  1481. [w0 = dim === Y ? W : point0[0], n0 = dim === X ? N : point0[1]],
  1482. [e0 = dim === Y ? E : w0, s0 = dim === X ? S : n0]
  1483. ];
  1484. } else {
  1485. w0 = selection[0][0];
  1486. n0 = selection[0][1];
  1487. e0 = selection[1][0];
  1488. s0 = selection[1][1];
  1489. }
  1490. w1 = w0;
  1491. n1 = n0;
  1492. e1 = e0;
  1493. s1 = s0;
  1494. var group = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(that)
  1495. .attr("pointer-events", "none");
  1496. var overlay = group.selectAll(".overlay")
  1497. .attr("cursor", cursors[type]);
  1498. if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches) {
  1499. emit.moved = moved;
  1500. emit.ended = ended;
  1501. } else {
  1502. var view = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view)
  1503. .on("mousemove.brush", moved, true)
  1504. .on("mouseup.brush", ended, true);
  1505. if (keys) view
  1506. .on("keydown.brush", keydowned, true)
  1507. .on("keyup.brush", keyupped, true)
  1508. Object(d3_drag__WEBPACK_IMPORTED_MODULE_1__["dragDisable"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view);
  1509. }
  1510. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_7__["nopropagation"])();
  1511. Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(that);
  1512. redraw.call(that);
  1513. emit.start();
  1514. function moved() {
  1515. var point1 = pointer(that);
  1516. if (shifting && !lockX && !lockY) {
  1517. if (Math.abs(point1[0] - point[0]) > Math.abs(point1[1] - point[1])) lockY = true;
  1518. else lockX = true;
  1519. }
  1520. point = point1;
  1521. moving = true;
  1522. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_7__["default"])();
  1523. move();
  1524. }
  1525. function move() {
  1526. var t;
  1527. dx = point[0] - point0[0];
  1528. dy = point[1] - point0[1];
  1529. switch (mode) {
  1530. case MODE_SPACE:
  1531. case MODE_DRAG: {
  1532. if (signX) dx = Math.max(W - w0, Math.min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx;
  1533. if (signY) dy = Math.max(N - n0, Math.min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy;
  1534. break;
  1535. }
  1536. case MODE_HANDLE: {
  1537. if (signX < 0) dx = Math.max(W - w0, Math.min(E - w0, dx)), w1 = w0 + dx, e1 = e0;
  1538. else if (signX > 0) dx = Math.max(W - e0, Math.min(E - e0, dx)), w1 = w0, e1 = e0 + dx;
  1539. if (signY < 0) dy = Math.max(N - n0, Math.min(S - n0, dy)), n1 = n0 + dy, s1 = s0;
  1540. else if (signY > 0) dy = Math.max(N - s0, Math.min(S - s0, dy)), n1 = n0, s1 = s0 + dy;
  1541. break;
  1542. }
  1543. case MODE_CENTER: {
  1544. if (signX) w1 = Math.max(W, Math.min(E, w0 - dx * signX)), e1 = Math.max(W, Math.min(E, e0 + dx * signX));
  1545. if (signY) n1 = Math.max(N, Math.min(S, n0 - dy * signY)), s1 = Math.max(N, Math.min(S, s0 + dy * signY));
  1546. break;
  1547. }
  1548. }
  1549. if (e1 < w1) {
  1550. signX *= -1;
  1551. t = w0, w0 = e0, e0 = t;
  1552. t = w1, w1 = e1, e1 = t;
  1553. if (type in flipX) overlay.attr("cursor", cursors[type = flipX[type]]);
  1554. }
  1555. if (s1 < n1) {
  1556. signY *= -1;
  1557. t = n0, n0 = s0, s0 = t;
  1558. t = n1, n1 = s1, s1 = t;
  1559. if (type in flipY) overlay.attr("cursor", cursors[type = flipY[type]]);
  1560. }
  1561. if (state.selection) selection = state.selection; // May be set by brush.move!
  1562. if (lockX) w1 = selection[0][0], e1 = selection[1][0];
  1563. if (lockY) n1 = selection[0][1], s1 = selection[1][1];
  1564. if (selection[0][0] !== w1
  1565. || selection[0][1] !== n1
  1566. || selection[1][0] !== e1
  1567. || selection[1][1] !== s1) {
  1568. state.selection = [[w1, n1], [e1, s1]];
  1569. redraw.call(that);
  1570. emit.brush();
  1571. }
  1572. }
  1573. function ended() {
  1574. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_7__["nopropagation"])();
  1575. if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches) {
  1576. if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches.length) return;
  1577. if (touchending) clearTimeout(touchending);
  1578. touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!
  1579. } else {
  1580. Object(d3_drag__WEBPACK_IMPORTED_MODULE_1__["dragEnable"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view, moving);
  1581. view.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
  1582. }
  1583. group.attr("pointer-events", "all");
  1584. overlay.attr("cursor", cursors.overlay);
  1585. if (state.selection) selection = state.selection; // May be set by brush.move (on start)!
  1586. if (empty(selection)) state.selection = null, redraw.call(that);
  1587. emit.end();
  1588. }
  1589. function keydowned() {
  1590. switch (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].keyCode) {
  1591. case 16: { // SHIFT
  1592. shifting = signX && signY;
  1593. break;
  1594. }
  1595. case 18: { // ALT
  1596. if (mode === MODE_HANDLE) {
  1597. if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;
  1598. if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;
  1599. mode = MODE_CENTER;
  1600. move();
  1601. }
  1602. break;
  1603. }
  1604. case 32: { // SPACE; takes priority over ALT
  1605. if (mode === MODE_HANDLE || mode === MODE_CENTER) {
  1606. if (signX < 0) e0 = e1 - dx; else if (signX > 0) w0 = w1 - dx;
  1607. if (signY < 0) s0 = s1 - dy; else if (signY > 0) n0 = n1 - dy;
  1608. mode = MODE_SPACE;
  1609. overlay.attr("cursor", cursors.selection);
  1610. move();
  1611. }
  1612. break;
  1613. }
  1614. default: return;
  1615. }
  1616. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_7__["default"])();
  1617. }
  1618. function keyupped() {
  1619. switch (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].keyCode) {
  1620. case 16: { // SHIFT
  1621. if (shifting) {
  1622. lockX = lockY = shifting = false;
  1623. move();
  1624. }
  1625. break;
  1626. }
  1627. case 18: { // ALT
  1628. if (mode === MODE_CENTER) {
  1629. if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;
  1630. if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;
  1631. mode = MODE_HANDLE;
  1632. move();
  1633. }
  1634. break;
  1635. }
  1636. case 32: { // SPACE
  1637. if (mode === MODE_SPACE) {
  1638. if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].altKey) {
  1639. if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;
  1640. if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;
  1641. mode = MODE_CENTER;
  1642. } else {
  1643. if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;
  1644. if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;
  1645. mode = MODE_HANDLE;
  1646. }
  1647. overlay.attr("cursor", cursors[type]);
  1648. move();
  1649. }
  1650. break;
  1651. }
  1652. default: return;
  1653. }
  1654. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_7__["default"])();
  1655. }
  1656. }
  1657. function touchmoved() {
  1658. emitter(this, arguments).moved();
  1659. }
  1660. function touchended() {
  1661. emitter(this, arguments).ended();
  1662. }
  1663. function initialize() {
  1664. var state = this.__brush || {selection: null};
  1665. state.extent = number2(extent.apply(this, arguments));
  1666. state.dim = dim;
  1667. return state;
  1668. }
  1669. brush.extent = function(_) {
  1670. return arguments.length ? (extent = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_5__["default"])(number2(_)), brush) : extent;
  1671. };
  1672. brush.filter = function(_) {
  1673. return arguments.length ? (filter = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_5__["default"])(!!_), brush) : filter;
  1674. };
  1675. brush.touchable = function(_) {
  1676. return arguments.length ? (touchable = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_5__["default"])(!!_), brush) : touchable;
  1677. };
  1678. brush.handleSize = function(_) {
  1679. return arguments.length ? (handleSize = +_, brush) : handleSize;
  1680. };
  1681. brush.keyModifiers = function(_) {
  1682. return arguments.length ? (keys = !!_, brush) : keys;
  1683. };
  1684. brush.on = function() {
  1685. var value = listeners.on.apply(listeners, arguments);
  1686. return value === listeners ? brush : value;
  1687. };
  1688. return brush;
  1689. }
  1690. /***/ }),
  1691. /***/ "./node_modules/d3-brush/src/constant.js":
  1692. /*!***********************************************!*\
  1693. !*** ./node_modules/d3-brush/src/constant.js ***!
  1694. \***********************************************/
  1695. /*! exports provided: default */
  1696. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1697. "use strict";
  1698. __webpack_require__.r(__webpack_exports__);
  1699. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  1700. return function() {
  1701. return x;
  1702. };
  1703. });
  1704. /***/ }),
  1705. /***/ "./node_modules/d3-brush/src/event.js":
  1706. /*!********************************************!*\
  1707. !*** ./node_modules/d3-brush/src/event.js ***!
  1708. \********************************************/
  1709. /*! exports provided: default */
  1710. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1711. "use strict";
  1712. __webpack_require__.r(__webpack_exports__);
  1713. /* harmony default export */ __webpack_exports__["default"] = (function(target, type, selection) {
  1714. this.target = target;
  1715. this.type = type;
  1716. this.selection = selection;
  1717. });
  1718. /***/ }),
  1719. /***/ "./node_modules/d3-brush/src/index.js":
  1720. /*!********************************************!*\
  1721. !*** ./node_modules/d3-brush/src/index.js ***!
  1722. \********************************************/
  1723. /*! exports provided: brush, brushX, brushY, brushSelection */
  1724. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1725. "use strict";
  1726. __webpack_require__.r(__webpack_exports__);
  1727. /* harmony import */ var _brush_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./brush.js */ "./node_modules/d3-brush/src/brush.js");
  1728. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brush", function() { return _brush_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  1729. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushX", function() { return _brush_js__WEBPACK_IMPORTED_MODULE_0__["brushX"]; });
  1730. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushY", function() { return _brush_js__WEBPACK_IMPORTED_MODULE_0__["brushY"]; });
  1731. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushSelection", function() { return _brush_js__WEBPACK_IMPORTED_MODULE_0__["brushSelection"]; });
  1732. /***/ }),
  1733. /***/ "./node_modules/d3-brush/src/noevent.js":
  1734. /*!**********************************************!*\
  1735. !*** ./node_modules/d3-brush/src/noevent.js ***!
  1736. \**********************************************/
  1737. /*! exports provided: nopropagation, default */
  1738. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1739. "use strict";
  1740. __webpack_require__.r(__webpack_exports__);
  1741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nopropagation", function() { return nopropagation; });
  1742. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  1743. function nopropagation() {
  1744. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  1745. }
  1746. /* harmony default export */ __webpack_exports__["default"] = (function() {
  1747. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].preventDefault();
  1748. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  1749. });
  1750. /***/ }),
  1751. /***/ "./node_modules/d3-chord/src/array.js":
  1752. /*!********************************************!*\
  1753. !*** ./node_modules/d3-chord/src/array.js ***!
  1754. \********************************************/
  1755. /*! exports provided: slice */
  1756. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1757. "use strict";
  1758. __webpack_require__.r(__webpack_exports__);
  1759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  1760. var slice = Array.prototype.slice;
  1761. /***/ }),
  1762. /***/ "./node_modules/d3-chord/src/chord.js":
  1763. /*!********************************************!*\
  1764. !*** ./node_modules/d3-chord/src/chord.js ***!
  1765. \********************************************/
  1766. /*! exports provided: default */
  1767. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1768. "use strict";
  1769. __webpack_require__.r(__webpack_exports__);
  1770. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  1771. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math */ "./node_modules/d3-chord/src/math.js");
  1772. function compareValue(compare) {
  1773. return function(a, b) {
  1774. return compare(
  1775. a.source.value + a.target.value,
  1776. b.source.value + b.target.value
  1777. );
  1778. };
  1779. }
  1780. /* harmony default export */ __webpack_exports__["default"] = (function() {
  1781. var padAngle = 0,
  1782. sortGroups = null,
  1783. sortSubgroups = null,
  1784. sortChords = null;
  1785. function chord(matrix) {
  1786. var n = matrix.length,
  1787. groupSums = [],
  1788. groupIndex = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(n),
  1789. subgroupIndex = [],
  1790. chords = [],
  1791. groups = chords.groups = new Array(n),
  1792. subgroups = new Array(n * n),
  1793. k,
  1794. x,
  1795. x0,
  1796. dx,
  1797. i,
  1798. j;
  1799. // Compute the sum.
  1800. k = 0, i = -1; while (++i < n) {
  1801. x = 0, j = -1; while (++j < n) {
  1802. x += matrix[i][j];
  1803. }
  1804. groupSums.push(x);
  1805. subgroupIndex.push(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(n));
  1806. k += x;
  1807. }
  1808. // Sort groups…
  1809. if (sortGroups) groupIndex.sort(function(a, b) {
  1810. return sortGroups(groupSums[a], groupSums[b]);
  1811. });
  1812. // Sort subgroups…
  1813. if (sortSubgroups) subgroupIndex.forEach(function(d, i) {
  1814. d.sort(function(a, b) {
  1815. return sortSubgroups(matrix[i][a], matrix[i][b]);
  1816. });
  1817. });
  1818. // Convert the sum to scaling factor for [0, 2pi].
  1819. // TODO Allow start and end angle to be specified?
  1820. // TODO Allow padding to be specified as percentage?
  1821. k = Object(_math__WEBPACK_IMPORTED_MODULE_1__["max"])(0, _math__WEBPACK_IMPORTED_MODULE_1__["tau"] - padAngle * n) / k;
  1822. dx = k ? padAngle : _math__WEBPACK_IMPORTED_MODULE_1__["tau"] / n;
  1823. // Compute the start and end angle for each group and subgroup.
  1824. // Note: Opera has a bug reordering object literal properties!
  1825. x = 0, i = -1; while (++i < n) {
  1826. x0 = x, j = -1; while (++j < n) {
  1827. var di = groupIndex[i],
  1828. dj = subgroupIndex[di][j],
  1829. v = matrix[di][dj],
  1830. a0 = x,
  1831. a1 = x += v * k;
  1832. subgroups[dj * n + di] = {
  1833. index: di,
  1834. subindex: dj,
  1835. startAngle: a0,
  1836. endAngle: a1,
  1837. value: v
  1838. };
  1839. }
  1840. groups[di] = {
  1841. index: di,
  1842. startAngle: x0,
  1843. endAngle: x,
  1844. value: groupSums[di]
  1845. };
  1846. x += dx;
  1847. }
  1848. // Generate chords for each (non-empty) subgroup-subgroup link.
  1849. i = -1; while (++i < n) {
  1850. j = i - 1; while (++j < n) {
  1851. var source = subgroups[j * n + i],
  1852. target = subgroups[i * n + j];
  1853. if (source.value || target.value) {
  1854. chords.push(source.value < target.value
  1855. ? {source: target, target: source}
  1856. : {source: source, target: target});
  1857. }
  1858. }
  1859. }
  1860. return sortChords ? chords.sort(sortChords) : chords;
  1861. }
  1862. chord.padAngle = function(_) {
  1863. return arguments.length ? (padAngle = Object(_math__WEBPACK_IMPORTED_MODULE_1__["max"])(0, _), chord) : padAngle;
  1864. };
  1865. chord.sortGroups = function(_) {
  1866. return arguments.length ? (sortGroups = _, chord) : sortGroups;
  1867. };
  1868. chord.sortSubgroups = function(_) {
  1869. return arguments.length ? (sortSubgroups = _, chord) : sortSubgroups;
  1870. };
  1871. chord.sortChords = function(_) {
  1872. return arguments.length ? (_ == null ? sortChords = null : (sortChords = compareValue(_))._ = _, chord) : sortChords && sortChords._;
  1873. };
  1874. return chord;
  1875. });
  1876. /***/ }),
  1877. /***/ "./node_modules/d3-chord/src/constant.js":
  1878. /*!***********************************************!*\
  1879. !*** ./node_modules/d3-chord/src/constant.js ***!
  1880. \***********************************************/
  1881. /*! exports provided: default */
  1882. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1883. "use strict";
  1884. __webpack_require__.r(__webpack_exports__);
  1885. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  1886. return function() {
  1887. return x;
  1888. };
  1889. });
  1890. /***/ }),
  1891. /***/ "./node_modules/d3-chord/src/index.js":
  1892. /*!********************************************!*\
  1893. !*** ./node_modules/d3-chord/src/index.js ***!
  1894. \********************************************/
  1895. /*! exports provided: chord, ribbon */
  1896. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1897. "use strict";
  1898. __webpack_require__.r(__webpack_exports__);
  1899. /* harmony import */ var _chord__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chord */ "./node_modules/d3-chord/src/chord.js");
  1900. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "chord", function() { return _chord__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  1901. /* harmony import */ var _ribbon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ribbon */ "./node_modules/d3-chord/src/ribbon.js");
  1902. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ribbon", function() { return _ribbon__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  1903. /***/ }),
  1904. /***/ "./node_modules/d3-chord/src/math.js":
  1905. /*!*******************************************!*\
  1906. !*** ./node_modules/d3-chord/src/math.js ***!
  1907. \*******************************************/
  1908. /*! exports provided: cos, sin, pi, halfPi, tau, max */
  1909. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1910. "use strict";
  1911. __webpack_require__.r(__webpack_exports__);
  1912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cos", function() { return cos; });
  1913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sin", function() { return sin; });
  1914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pi", function() { return pi; });
  1915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "halfPi", function() { return halfPi; });
  1916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tau", function() { return tau; });
  1917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "max", function() { return max; });
  1918. var cos = Math.cos;
  1919. var sin = Math.sin;
  1920. var pi = Math.PI;
  1921. var halfPi = pi / 2;
  1922. var tau = pi * 2;
  1923. var max = Math.max;
  1924. /***/ }),
  1925. /***/ "./node_modules/d3-chord/src/ribbon.js":
  1926. /*!*********************************************!*\
  1927. !*** ./node_modules/d3-chord/src/ribbon.js ***!
  1928. \*********************************************/
  1929. /*! exports provided: default */
  1930. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1931. "use strict";
  1932. __webpack_require__.r(__webpack_exports__);
  1933. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-chord/src/array.js");
  1934. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-chord/src/constant.js");
  1935. /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math */ "./node_modules/d3-chord/src/math.js");
  1936. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  1937. function defaultSource(d) {
  1938. return d.source;
  1939. }
  1940. function defaultTarget(d) {
  1941. return d.target;
  1942. }
  1943. function defaultRadius(d) {
  1944. return d.radius;
  1945. }
  1946. function defaultStartAngle(d) {
  1947. return d.startAngle;
  1948. }
  1949. function defaultEndAngle(d) {
  1950. return d.endAngle;
  1951. }
  1952. /* harmony default export */ __webpack_exports__["default"] = (function() {
  1953. var source = defaultSource,
  1954. target = defaultTarget,
  1955. radius = defaultRadius,
  1956. startAngle = defaultStartAngle,
  1957. endAngle = defaultEndAngle,
  1958. context = null;
  1959. function ribbon() {
  1960. var buffer,
  1961. argv = _array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(arguments),
  1962. s = source.apply(this, argv),
  1963. t = target.apply(this, argv),
  1964. sr = +radius.apply(this, (argv[0] = s, argv)),
  1965. sa0 = startAngle.apply(this, argv) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"],
  1966. sa1 = endAngle.apply(this, argv) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"],
  1967. sx0 = sr * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(sa0),
  1968. sy0 = sr * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(sa0),
  1969. tr = +radius.apply(this, (argv[0] = t, argv)),
  1970. ta0 = startAngle.apply(this, argv) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"],
  1971. ta1 = endAngle.apply(this, argv) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"];
  1972. if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_3__["path"])();
  1973. context.moveTo(sx0, sy0);
  1974. context.arc(0, 0, sr, sa0, sa1);
  1975. if (sa0 !== ta0 || sa1 !== ta1) { // TODO sr !== tr?
  1976. context.quadraticCurveTo(0, 0, tr * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(ta0), tr * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(ta0));
  1977. context.arc(0, 0, tr, ta0, ta1);
  1978. }
  1979. context.quadraticCurveTo(0, 0, sx0, sy0);
  1980. context.closePath();
  1981. if (buffer) return context = null, buffer + "" || null;
  1982. }
  1983. ribbon.radius = function(_) {
  1984. return arguments.length ? (radius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), ribbon) : radius;
  1985. };
  1986. ribbon.startAngle = function(_) {
  1987. return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), ribbon) : startAngle;
  1988. };
  1989. ribbon.endAngle = function(_) {
  1990. return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), ribbon) : endAngle;
  1991. };
  1992. ribbon.source = function(_) {
  1993. return arguments.length ? (source = _, ribbon) : source;
  1994. };
  1995. ribbon.target = function(_) {
  1996. return arguments.length ? (target = _, ribbon) : target;
  1997. };
  1998. ribbon.context = function(_) {
  1999. return arguments.length ? ((context = _ == null ? null : _), ribbon) : context;
  2000. };
  2001. return ribbon;
  2002. });
  2003. /***/ }),
  2004. /***/ "./node_modules/d3-collection/src/entries.js":
  2005. /*!***************************************************!*\
  2006. !*** ./node_modules/d3-collection/src/entries.js ***!
  2007. \***************************************************/
  2008. /*! exports provided: default */
  2009. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2010. "use strict";
  2011. __webpack_require__.r(__webpack_exports__);
  2012. /* harmony default export */ __webpack_exports__["default"] = (function(map) {
  2013. var entries = [];
  2014. for (var key in map) entries.push({key: key, value: map[key]});
  2015. return entries;
  2016. });
  2017. /***/ }),
  2018. /***/ "./node_modules/d3-collection/src/index.js":
  2019. /*!*************************************************!*\
  2020. !*** ./node_modules/d3-collection/src/index.js ***!
  2021. \*************************************************/
  2022. /*! exports provided: nest, set, map, keys, values, entries */
  2023. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2024. "use strict";
  2025. __webpack_require__.r(__webpack_exports__);
  2026. /* harmony import */ var _nest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nest */ "./node_modules/d3-collection/src/nest.js");
  2027. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "nest", function() { return _nest__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  2028. /* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./set */ "./node_modules/d3-collection/src/set.js");
  2029. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "set", function() { return _set__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  2030. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./map */ "./node_modules/d3-collection/src/map.js");
  2031. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "map", function() { return _map__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  2032. /* harmony import */ var _keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./keys */ "./node_modules/d3-collection/src/keys.js");
  2033. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "keys", function() { return _keys__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  2034. /* harmony import */ var _values__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./values */ "./node_modules/d3-collection/src/values.js");
  2035. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "values", function() { return _values__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  2036. /* harmony import */ var _entries__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./entries */ "./node_modules/d3-collection/src/entries.js");
  2037. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "entries", function() { return _entries__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  2038. /***/ }),
  2039. /***/ "./node_modules/d3-collection/src/keys.js":
  2040. /*!************************************************!*\
  2041. !*** ./node_modules/d3-collection/src/keys.js ***!
  2042. \************************************************/
  2043. /*! exports provided: default */
  2044. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2045. "use strict";
  2046. __webpack_require__.r(__webpack_exports__);
  2047. /* harmony default export */ __webpack_exports__["default"] = (function(map) {
  2048. var keys = [];
  2049. for (var key in map) keys.push(key);
  2050. return keys;
  2051. });
  2052. /***/ }),
  2053. /***/ "./node_modules/d3-collection/src/map.js":
  2054. /*!***********************************************!*\
  2055. !*** ./node_modules/d3-collection/src/map.js ***!
  2056. \***********************************************/
  2057. /*! exports provided: prefix, default */
  2058. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2059. "use strict";
  2060. __webpack_require__.r(__webpack_exports__);
  2061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  2062. var prefix = "$";
  2063. function Map() {}
  2064. Map.prototype = map.prototype = {
  2065. constructor: Map,
  2066. has: function(key) {
  2067. return (prefix + key) in this;
  2068. },
  2069. get: function(key) {
  2070. return this[prefix + key];
  2071. },
  2072. set: function(key, value) {
  2073. this[prefix + key] = value;
  2074. return this;
  2075. },
  2076. remove: function(key) {
  2077. var property = prefix + key;
  2078. return property in this && delete this[property];
  2079. },
  2080. clear: function() {
  2081. for (var property in this) if (property[0] === prefix) delete this[property];
  2082. },
  2083. keys: function() {
  2084. var keys = [];
  2085. for (var property in this) if (property[0] === prefix) keys.push(property.slice(1));
  2086. return keys;
  2087. },
  2088. values: function() {
  2089. var values = [];
  2090. for (var property in this) if (property[0] === prefix) values.push(this[property]);
  2091. return values;
  2092. },
  2093. entries: function() {
  2094. var entries = [];
  2095. for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]});
  2096. return entries;
  2097. },
  2098. size: function() {
  2099. var size = 0;
  2100. for (var property in this) if (property[0] === prefix) ++size;
  2101. return size;
  2102. },
  2103. empty: function() {
  2104. for (var property in this) if (property[0] === prefix) return false;
  2105. return true;
  2106. },
  2107. each: function(f) {
  2108. for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this);
  2109. }
  2110. };
  2111. function map(object, f) {
  2112. var map = new Map;
  2113. // Copy constructor.
  2114. if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });
  2115. // Index array by numeric index or specified key function.
  2116. else if (Array.isArray(object)) {
  2117. var i = -1,
  2118. n = object.length,
  2119. o;
  2120. if (f == null) while (++i < n) map.set(i, object[i]);
  2121. else while (++i < n) map.set(f(o = object[i], i, object), o);
  2122. }
  2123. // Convert object to map.
  2124. else if (object) for (var key in object) map.set(key, object[key]);
  2125. return map;
  2126. }
  2127. /* harmony default export */ __webpack_exports__["default"] = (map);
  2128. /***/ }),
  2129. /***/ "./node_modules/d3-collection/src/nest.js":
  2130. /*!************************************************!*\
  2131. !*** ./node_modules/d3-collection/src/nest.js ***!
  2132. \************************************************/
  2133. /*! exports provided: default */
  2134. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2135. "use strict";
  2136. __webpack_require__.r(__webpack_exports__);
  2137. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "./node_modules/d3-collection/src/map.js");
  2138. /* harmony default export */ __webpack_exports__["default"] = (function() {
  2139. var keys = [],
  2140. sortKeys = [],
  2141. sortValues,
  2142. rollup,
  2143. nest;
  2144. function apply(array, depth, createResult, setResult) {
  2145. if (depth >= keys.length) {
  2146. if (sortValues != null) array.sort(sortValues);
  2147. return rollup != null ? rollup(array) : array;
  2148. }
  2149. var i = -1,
  2150. n = array.length,
  2151. key = keys[depth++],
  2152. keyValue,
  2153. value,
  2154. valuesByKey = Object(_map__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  2155. values,
  2156. result = createResult();
  2157. while (++i < n) {
  2158. if (values = valuesByKey.get(keyValue = key(value = array[i]) + "")) {
  2159. values.push(value);
  2160. } else {
  2161. valuesByKey.set(keyValue, [value]);
  2162. }
  2163. }
  2164. valuesByKey.each(function(values, key) {
  2165. setResult(result, key, apply(values, depth, createResult, setResult));
  2166. });
  2167. return result;
  2168. }
  2169. function entries(map, depth) {
  2170. if (++depth > keys.length) return map;
  2171. var array, sortKey = sortKeys[depth - 1];
  2172. if (rollup != null && depth >= keys.length) array = map.entries();
  2173. else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); });
  2174. return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array;
  2175. }
  2176. return nest = {
  2177. object: function(array) { return apply(array, 0, createObject, setObject); },
  2178. map: function(array) { return apply(array, 0, createMap, setMap); },
  2179. entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); },
  2180. key: function(d) { keys.push(d); return nest; },
  2181. sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; },
  2182. sortValues: function(order) { sortValues = order; return nest; },
  2183. rollup: function(f) { rollup = f; return nest; }
  2184. };
  2185. });
  2186. function createObject() {
  2187. return {};
  2188. }
  2189. function setObject(object, key, value) {
  2190. object[key] = value;
  2191. }
  2192. function createMap() {
  2193. return Object(_map__WEBPACK_IMPORTED_MODULE_0__["default"])();
  2194. }
  2195. function setMap(map, key, value) {
  2196. map.set(key, value);
  2197. }
  2198. /***/ }),
  2199. /***/ "./node_modules/d3-collection/src/set.js":
  2200. /*!***********************************************!*\
  2201. !*** ./node_modules/d3-collection/src/set.js ***!
  2202. \***********************************************/
  2203. /*! exports provided: default */
  2204. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2205. "use strict";
  2206. __webpack_require__.r(__webpack_exports__);
  2207. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "./node_modules/d3-collection/src/map.js");
  2208. function Set() {}
  2209. var proto = _map__WEBPACK_IMPORTED_MODULE_0__["default"].prototype;
  2210. Set.prototype = set.prototype = {
  2211. constructor: Set,
  2212. has: proto.has,
  2213. add: function(value) {
  2214. value += "";
  2215. this[_map__WEBPACK_IMPORTED_MODULE_0__["prefix"] + value] = value;
  2216. return this;
  2217. },
  2218. remove: proto.remove,
  2219. clear: proto.clear,
  2220. values: proto.keys,
  2221. size: proto.size,
  2222. empty: proto.empty,
  2223. each: proto.each
  2224. };
  2225. function set(object, f) {
  2226. var set = new Set;
  2227. // Copy constructor.
  2228. if (object instanceof Set) object.each(function(value) { set.add(value); });
  2229. // Otherwise, assume it’s an array.
  2230. else if (object) {
  2231. var i = -1, n = object.length;
  2232. if (f == null) while (++i < n) set.add(object[i]);
  2233. else while (++i < n) set.add(f(object[i], i, object));
  2234. }
  2235. return set;
  2236. }
  2237. /* harmony default export */ __webpack_exports__["default"] = (set);
  2238. /***/ }),
  2239. /***/ "./node_modules/d3-collection/src/values.js":
  2240. /*!**************************************************!*\
  2241. !*** ./node_modules/d3-collection/src/values.js ***!
  2242. \**************************************************/
  2243. /*! exports provided: default */
  2244. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2245. "use strict";
  2246. __webpack_require__.r(__webpack_exports__);
  2247. /* harmony default export */ __webpack_exports__["default"] = (function(map) {
  2248. var values = [];
  2249. for (var key in map) values.push(map[key]);
  2250. return values;
  2251. });
  2252. /***/ }),
  2253. /***/ "./node_modules/d3-color/src/color.js":
  2254. /*!********************************************!*\
  2255. !*** ./node_modules/d3-color/src/color.js ***!
  2256. \********************************************/
  2257. /*! exports provided: Color, darker, brighter, default, rgbConvert, rgb, Rgb, hslConvert, hsl */
  2258. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2259. "use strict";
  2260. __webpack_require__.r(__webpack_exports__);
  2261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color", function() { return Color; });
  2262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darker", function() { return darker; });
  2263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brighter", function() { return brighter; });
  2264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return color; });
  2265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbConvert", function() { return rgbConvert; });
  2266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgb", function() { return rgb; });
  2267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rgb", function() { return Rgb; });
  2268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslConvert", function() { return hslConvert; });
  2269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hsl", function() { return hsl; });
  2270. /* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "./node_modules/d3-color/src/define.js");
  2271. function Color() {}
  2272. var darker = 0.7;
  2273. var brighter = 1 / darker;
  2274. var reI = "\\s*([+-]?\\d+)\\s*",
  2275. reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
  2276. reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
  2277. reHex = /^#([0-9a-f]{3,8})$/,
  2278. reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
  2279. reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
  2280. reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
  2281. reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
  2282. reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
  2283. reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
  2284. var named = {
  2285. aliceblue: 0xf0f8ff,
  2286. antiquewhite: 0xfaebd7,
  2287. aqua: 0x00ffff,
  2288. aquamarine: 0x7fffd4,
  2289. azure: 0xf0ffff,
  2290. beige: 0xf5f5dc,
  2291. bisque: 0xffe4c4,
  2292. black: 0x000000,
  2293. blanchedalmond: 0xffebcd,
  2294. blue: 0x0000ff,
  2295. blueviolet: 0x8a2be2,
  2296. brown: 0xa52a2a,
  2297. burlywood: 0xdeb887,
  2298. cadetblue: 0x5f9ea0,
  2299. chartreuse: 0x7fff00,
  2300. chocolate: 0xd2691e,
  2301. coral: 0xff7f50,
  2302. cornflowerblue: 0x6495ed,
  2303. cornsilk: 0xfff8dc,
  2304. crimson: 0xdc143c,
  2305. cyan: 0x00ffff,
  2306. darkblue: 0x00008b,
  2307. darkcyan: 0x008b8b,
  2308. darkgoldenrod: 0xb8860b,
  2309. darkgray: 0xa9a9a9,
  2310. darkgreen: 0x006400,
  2311. darkgrey: 0xa9a9a9,
  2312. darkkhaki: 0xbdb76b,
  2313. darkmagenta: 0x8b008b,
  2314. darkolivegreen: 0x556b2f,
  2315. darkorange: 0xff8c00,
  2316. darkorchid: 0x9932cc,
  2317. darkred: 0x8b0000,
  2318. darksalmon: 0xe9967a,
  2319. darkseagreen: 0x8fbc8f,
  2320. darkslateblue: 0x483d8b,
  2321. darkslategray: 0x2f4f4f,
  2322. darkslategrey: 0x2f4f4f,
  2323. darkturquoise: 0x00ced1,
  2324. darkviolet: 0x9400d3,
  2325. deeppink: 0xff1493,
  2326. deepskyblue: 0x00bfff,
  2327. dimgray: 0x696969,
  2328. dimgrey: 0x696969,
  2329. dodgerblue: 0x1e90ff,
  2330. firebrick: 0xb22222,
  2331. floralwhite: 0xfffaf0,
  2332. forestgreen: 0x228b22,
  2333. fuchsia: 0xff00ff,
  2334. gainsboro: 0xdcdcdc,
  2335. ghostwhite: 0xf8f8ff,
  2336. gold: 0xffd700,
  2337. goldenrod: 0xdaa520,
  2338. gray: 0x808080,
  2339. green: 0x008000,
  2340. greenyellow: 0xadff2f,
  2341. grey: 0x808080,
  2342. honeydew: 0xf0fff0,
  2343. hotpink: 0xff69b4,
  2344. indianred: 0xcd5c5c,
  2345. indigo: 0x4b0082,
  2346. ivory: 0xfffff0,
  2347. khaki: 0xf0e68c,
  2348. lavender: 0xe6e6fa,
  2349. lavenderblush: 0xfff0f5,
  2350. lawngreen: 0x7cfc00,
  2351. lemonchiffon: 0xfffacd,
  2352. lightblue: 0xadd8e6,
  2353. lightcoral: 0xf08080,
  2354. lightcyan: 0xe0ffff,
  2355. lightgoldenrodyellow: 0xfafad2,
  2356. lightgray: 0xd3d3d3,
  2357. lightgreen: 0x90ee90,
  2358. lightgrey: 0xd3d3d3,
  2359. lightpink: 0xffb6c1,
  2360. lightsalmon: 0xffa07a,
  2361. lightseagreen: 0x20b2aa,
  2362. lightskyblue: 0x87cefa,
  2363. lightslategray: 0x778899,
  2364. lightslategrey: 0x778899,
  2365. lightsteelblue: 0xb0c4de,
  2366. lightyellow: 0xffffe0,
  2367. lime: 0x00ff00,
  2368. limegreen: 0x32cd32,
  2369. linen: 0xfaf0e6,
  2370. magenta: 0xff00ff,
  2371. maroon: 0x800000,
  2372. mediumaquamarine: 0x66cdaa,
  2373. mediumblue: 0x0000cd,
  2374. mediumorchid: 0xba55d3,
  2375. mediumpurple: 0x9370db,
  2376. mediumseagreen: 0x3cb371,
  2377. mediumslateblue: 0x7b68ee,
  2378. mediumspringgreen: 0x00fa9a,
  2379. mediumturquoise: 0x48d1cc,
  2380. mediumvioletred: 0xc71585,
  2381. midnightblue: 0x191970,
  2382. mintcream: 0xf5fffa,
  2383. mistyrose: 0xffe4e1,
  2384. moccasin: 0xffe4b5,
  2385. navajowhite: 0xffdead,
  2386. navy: 0x000080,
  2387. oldlace: 0xfdf5e6,
  2388. olive: 0x808000,
  2389. olivedrab: 0x6b8e23,
  2390. orange: 0xffa500,
  2391. orangered: 0xff4500,
  2392. orchid: 0xda70d6,
  2393. palegoldenrod: 0xeee8aa,
  2394. palegreen: 0x98fb98,
  2395. paleturquoise: 0xafeeee,
  2396. palevioletred: 0xdb7093,
  2397. papayawhip: 0xffefd5,
  2398. peachpuff: 0xffdab9,
  2399. peru: 0xcd853f,
  2400. pink: 0xffc0cb,
  2401. plum: 0xdda0dd,
  2402. powderblue: 0xb0e0e6,
  2403. purple: 0x800080,
  2404. rebeccapurple: 0x663399,
  2405. red: 0xff0000,
  2406. rosybrown: 0xbc8f8f,
  2407. royalblue: 0x4169e1,
  2408. saddlebrown: 0x8b4513,
  2409. salmon: 0xfa8072,
  2410. sandybrown: 0xf4a460,
  2411. seagreen: 0x2e8b57,
  2412. seashell: 0xfff5ee,
  2413. sienna: 0xa0522d,
  2414. silver: 0xc0c0c0,
  2415. skyblue: 0x87ceeb,
  2416. slateblue: 0x6a5acd,
  2417. slategray: 0x708090,
  2418. slategrey: 0x708090,
  2419. snow: 0xfffafa,
  2420. springgreen: 0x00ff7f,
  2421. steelblue: 0x4682b4,
  2422. tan: 0xd2b48c,
  2423. teal: 0x008080,
  2424. thistle: 0xd8bfd8,
  2425. tomato: 0xff6347,
  2426. turquoise: 0x40e0d0,
  2427. violet: 0xee82ee,
  2428. wheat: 0xf5deb3,
  2429. white: 0xffffff,
  2430. whitesmoke: 0xf5f5f5,
  2431. yellow: 0xffff00,
  2432. yellowgreen: 0x9acd32
  2433. };
  2434. Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Color, color, {
  2435. copy: function(channels) {
  2436. return Object.assign(new this.constructor, this, channels);
  2437. },
  2438. displayable: function() {
  2439. return this.rgb().displayable();
  2440. },
  2441. hex: color_formatHex, // Deprecated! Use color.formatHex.
  2442. formatHex: color_formatHex,
  2443. formatHsl: color_formatHsl,
  2444. formatRgb: color_formatRgb,
  2445. toString: color_formatRgb
  2446. });
  2447. function color_formatHex() {
  2448. return this.rgb().formatHex();
  2449. }
  2450. function color_formatHsl() {
  2451. return hslConvert(this).formatHsl();
  2452. }
  2453. function color_formatRgb() {
  2454. return this.rgb().formatRgb();
  2455. }
  2456. function color(format) {
  2457. var m, l;
  2458. format = (format + "").trim().toLowerCase();
  2459. return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
  2460. : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00
  2461. : l === 8 ? new Rgb(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
  2462. : l === 4 ? new Rgb((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000
  2463. : null) // invalid hex
  2464. : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
  2465. : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
  2466. : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
  2467. : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
  2468. : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
  2469. : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
  2470. : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
  2471. : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0)
  2472. : null;
  2473. }
  2474. function rgbn(n) {
  2475. return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
  2476. }
  2477. function rgba(r, g, b, a) {
  2478. if (a <= 0) r = g = b = NaN;
  2479. return new Rgb(r, g, b, a);
  2480. }
  2481. function rgbConvert(o) {
  2482. if (!(o instanceof Color)) o = color(o);
  2483. if (!o) return new Rgb;
  2484. o = o.rgb();
  2485. return new Rgb(o.r, o.g, o.b, o.opacity);
  2486. }
  2487. function rgb(r, g, b, opacity) {
  2488. return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
  2489. }
  2490. function Rgb(r, g, b, opacity) {
  2491. this.r = +r;
  2492. this.g = +g;
  2493. this.b = +b;
  2494. this.opacity = +opacity;
  2495. }
  2496. Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Rgb, rgb, Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(Color, {
  2497. brighter: function(k) {
  2498. k = k == null ? brighter : Math.pow(brighter, k);
  2499. return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
  2500. },
  2501. darker: function(k) {
  2502. k = k == null ? darker : Math.pow(darker, k);
  2503. return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
  2504. },
  2505. rgb: function() {
  2506. return this;
  2507. },
  2508. displayable: function() {
  2509. return (-0.5 <= this.r && this.r < 255.5)
  2510. && (-0.5 <= this.g && this.g < 255.5)
  2511. && (-0.5 <= this.b && this.b < 255.5)
  2512. && (0 <= this.opacity && this.opacity <= 1);
  2513. },
  2514. hex: rgb_formatHex, // Deprecated! Use color.formatHex.
  2515. formatHex: rgb_formatHex,
  2516. formatRgb: rgb_formatRgb,
  2517. toString: rgb_formatRgb
  2518. }));
  2519. function rgb_formatHex() {
  2520. return "#" + hex(this.r) + hex(this.g) + hex(this.b);
  2521. }
  2522. function rgb_formatRgb() {
  2523. var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
  2524. return (a === 1 ? "rgb(" : "rgba(")
  2525. + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", "
  2526. + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", "
  2527. + Math.max(0, Math.min(255, Math.round(this.b) || 0))
  2528. + (a === 1 ? ")" : ", " + a + ")");
  2529. }
  2530. function hex(value) {
  2531. value = Math.max(0, Math.min(255, Math.round(value) || 0));
  2532. return (value < 16 ? "0" : "") + value.toString(16);
  2533. }
  2534. function hsla(h, s, l, a) {
  2535. if (a <= 0) h = s = l = NaN;
  2536. else if (l <= 0 || l >= 1) h = s = NaN;
  2537. else if (s <= 0) h = NaN;
  2538. return new Hsl(h, s, l, a);
  2539. }
  2540. function hslConvert(o) {
  2541. if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
  2542. if (!(o instanceof Color)) o = color(o);
  2543. if (!o) return new Hsl;
  2544. if (o instanceof Hsl) return o;
  2545. o = o.rgb();
  2546. var r = o.r / 255,
  2547. g = o.g / 255,
  2548. b = o.b / 255,
  2549. min = Math.min(r, g, b),
  2550. max = Math.max(r, g, b),
  2551. h = NaN,
  2552. s = max - min,
  2553. l = (max + min) / 2;
  2554. if (s) {
  2555. if (r === max) h = (g - b) / s + (g < b) * 6;
  2556. else if (g === max) h = (b - r) / s + 2;
  2557. else h = (r - g) / s + 4;
  2558. s /= l < 0.5 ? max + min : 2 - max - min;
  2559. h *= 60;
  2560. } else {
  2561. s = l > 0 && l < 1 ? 0 : h;
  2562. }
  2563. return new Hsl(h, s, l, o.opacity);
  2564. }
  2565. function hsl(h, s, l, opacity) {
  2566. return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
  2567. }
  2568. function Hsl(h, s, l, opacity) {
  2569. this.h = +h;
  2570. this.s = +s;
  2571. this.l = +l;
  2572. this.opacity = +opacity;
  2573. }
  2574. Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Hsl, hsl, Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(Color, {
  2575. brighter: function(k) {
  2576. k = k == null ? brighter : Math.pow(brighter, k);
  2577. return new Hsl(this.h, this.s, this.l * k, this.opacity);
  2578. },
  2579. darker: function(k) {
  2580. k = k == null ? darker : Math.pow(darker, k);
  2581. return new Hsl(this.h, this.s, this.l * k, this.opacity);
  2582. },
  2583. rgb: function() {
  2584. var h = this.h % 360 + (this.h < 0) * 360,
  2585. s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
  2586. l = this.l,
  2587. m2 = l + (l < 0.5 ? l : 1 - l) * s,
  2588. m1 = 2 * l - m2;
  2589. return new Rgb(
  2590. hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
  2591. hsl2rgb(h, m1, m2),
  2592. hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
  2593. this.opacity
  2594. );
  2595. },
  2596. displayable: function() {
  2597. return (0 <= this.s && this.s <= 1 || isNaN(this.s))
  2598. && (0 <= this.l && this.l <= 1)
  2599. && (0 <= this.opacity && this.opacity <= 1);
  2600. },
  2601. formatHsl: function() {
  2602. var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
  2603. return (a === 1 ? "hsl(" : "hsla(")
  2604. + (this.h || 0) + ", "
  2605. + (this.s || 0) * 100 + "%, "
  2606. + (this.l || 0) * 100 + "%"
  2607. + (a === 1 ? ")" : ", " + a + ")");
  2608. }
  2609. }));
  2610. /* From FvD 13.37, CSS Color Module Level 3 */
  2611. function hsl2rgb(h, m1, m2) {
  2612. return (h < 60 ? m1 + (m2 - m1) * h / 60
  2613. : h < 180 ? m2
  2614. : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60
  2615. : m1) * 255;
  2616. }
  2617. /***/ }),
  2618. /***/ "./node_modules/d3-color/src/cubehelix.js":
  2619. /*!************************************************!*\
  2620. !*** ./node_modules/d3-color/src/cubehelix.js ***!
  2621. \************************************************/
  2622. /*! exports provided: default, Cubehelix */
  2623. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2624. "use strict";
  2625. __webpack_require__.r(__webpack_exports__);
  2626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return cubehelix; });
  2627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cubehelix", function() { return Cubehelix; });
  2628. /* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "./node_modules/d3-color/src/define.js");
  2629. /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-color/src/color.js");
  2630. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-color/src/math.js");
  2631. var A = -0.14861,
  2632. B = +1.78277,
  2633. C = -0.29227,
  2634. D = -0.90649,
  2635. E = +1.97294,
  2636. ED = E * D,
  2637. EB = E * B,
  2638. BC_DA = B * C - D * A;
  2639. function cubehelixConvert(o) {
  2640. if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
  2641. if (!(o instanceof _color_js__WEBPACK_IMPORTED_MODULE_1__["Rgb"])) o = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["rgbConvert"])(o);
  2642. var r = o.r / 255,
  2643. g = o.g / 255,
  2644. b = o.b / 255,
  2645. l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),
  2646. bl = b - l,
  2647. k = (E * (g - l) - C * bl) / D,
  2648. s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1
  2649. h = s ? Math.atan2(k, bl) * _math_js__WEBPACK_IMPORTED_MODULE_2__["rad2deg"] - 120 : NaN;
  2650. return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);
  2651. }
  2652. function cubehelix(h, s, l, opacity) {
  2653. return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);
  2654. }
  2655. function Cubehelix(h, s, l, opacity) {
  2656. this.h = +h;
  2657. this.s = +s;
  2658. this.l = +l;
  2659. this.opacity = +opacity;
  2660. }
  2661. Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Cubehelix, cubehelix, Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color_js__WEBPACK_IMPORTED_MODULE_1__["Color"], {
  2662. brighter: function(k) {
  2663. k = k == null ? _color_js__WEBPACK_IMPORTED_MODULE_1__["brighter"] : Math.pow(_color_js__WEBPACK_IMPORTED_MODULE_1__["brighter"], k);
  2664. return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
  2665. },
  2666. darker: function(k) {
  2667. k = k == null ? _color_js__WEBPACK_IMPORTED_MODULE_1__["darker"] : Math.pow(_color_js__WEBPACK_IMPORTED_MODULE_1__["darker"], k);
  2668. return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
  2669. },
  2670. rgb: function() {
  2671. var h = isNaN(this.h) ? 0 : (this.h + 120) * _math_js__WEBPACK_IMPORTED_MODULE_2__["deg2rad"],
  2672. l = +this.l,
  2673. a = isNaN(this.s) ? 0 : this.s * l * (1 - l),
  2674. cosh = Math.cos(h),
  2675. sinh = Math.sin(h);
  2676. return new _color_js__WEBPACK_IMPORTED_MODULE_1__["Rgb"](
  2677. 255 * (l + a * (A * cosh + B * sinh)),
  2678. 255 * (l + a * (C * cosh + D * sinh)),
  2679. 255 * (l + a * (E * cosh)),
  2680. this.opacity
  2681. );
  2682. }
  2683. }));
  2684. /***/ }),
  2685. /***/ "./node_modules/d3-color/src/define.js":
  2686. /*!*********************************************!*\
  2687. !*** ./node_modules/d3-color/src/define.js ***!
  2688. \*********************************************/
  2689. /*! exports provided: default, extend */
  2690. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2691. "use strict";
  2692. __webpack_require__.r(__webpack_exports__);
  2693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extend", function() { return extend; });
  2694. /* harmony default export */ __webpack_exports__["default"] = (function(constructor, factory, prototype) {
  2695. constructor.prototype = factory.prototype = prototype;
  2696. prototype.constructor = constructor;
  2697. });
  2698. function extend(parent, definition) {
  2699. var prototype = Object.create(parent.prototype);
  2700. for (var key in definition) prototype[key] = definition[key];
  2701. return prototype;
  2702. }
  2703. /***/ }),
  2704. /***/ "./node_modules/d3-color/src/index.js":
  2705. /*!********************************************!*\
  2706. !*** ./node_modules/d3-color/src/index.js ***!
  2707. \********************************************/
  2708. /*! exports provided: color, rgb, hsl, lab, hcl, lch, gray, cubehelix */
  2709. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2710. "use strict";
  2711. __webpack_require__.r(__webpack_exports__);
  2712. /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-color/src/color.js");
  2713. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "color", function() { return _color_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  2714. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgb", function() { return _color_js__WEBPACK_IMPORTED_MODULE_0__["rgb"]; });
  2715. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsl", function() { return _color_js__WEBPACK_IMPORTED_MODULE_0__["hsl"]; });
  2716. /* harmony import */ var _lab_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lab.js */ "./node_modules/d3-color/src/lab.js");
  2717. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lab", function() { return _lab_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  2718. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hcl", function() { return _lab_js__WEBPACK_IMPORTED_MODULE_1__["hcl"]; });
  2719. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lch", function() { return _lab_js__WEBPACK_IMPORTED_MODULE_1__["lch"]; });
  2720. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "gray", function() { return _lab_js__WEBPACK_IMPORTED_MODULE_1__["gray"]; });
  2721. /* harmony import */ var _cubehelix_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cubehelix.js */ "./node_modules/d3-color/src/cubehelix.js");
  2722. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cubehelix", function() { return _cubehelix_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  2723. /***/ }),
  2724. /***/ "./node_modules/d3-color/src/lab.js":
  2725. /*!******************************************!*\
  2726. !*** ./node_modules/d3-color/src/lab.js ***!
  2727. \******************************************/
  2728. /*! exports provided: gray, default, Lab, lch, hcl, Hcl */
  2729. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2730. "use strict";
  2731. __webpack_require__.r(__webpack_exports__);
  2732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gray", function() { return gray; });
  2733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return lab; });
  2734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lab", function() { return Lab; });
  2735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lch", function() { return lch; });
  2736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hcl", function() { return hcl; });
  2737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hcl", function() { return Hcl; });
  2738. /* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "./node_modules/d3-color/src/define.js");
  2739. /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-color/src/color.js");
  2740. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-color/src/math.js");
  2741. // https://observablehq.com/@mbostock/lab-and-rgb
  2742. var K = 18,
  2743. Xn = 0.96422,
  2744. Yn = 1,
  2745. Zn = 0.82521,
  2746. t0 = 4 / 29,
  2747. t1 = 6 / 29,
  2748. t2 = 3 * t1 * t1,
  2749. t3 = t1 * t1 * t1;
  2750. function labConvert(o) {
  2751. if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
  2752. if (o instanceof Hcl) return hcl2lab(o);
  2753. if (!(o instanceof _color_js__WEBPACK_IMPORTED_MODULE_1__["Rgb"])) o = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["rgbConvert"])(o);
  2754. var r = rgb2lrgb(o.r),
  2755. g = rgb2lrgb(o.g),
  2756. b = rgb2lrgb(o.b),
  2757. y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;
  2758. if (r === g && g === b) x = z = y; else {
  2759. x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);
  2760. z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);
  2761. }
  2762. return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
  2763. }
  2764. function gray(l, opacity) {
  2765. return new Lab(l, 0, 0, opacity == null ? 1 : opacity);
  2766. }
  2767. function lab(l, a, b, opacity) {
  2768. return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
  2769. }
  2770. function Lab(l, a, b, opacity) {
  2771. this.l = +l;
  2772. this.a = +a;
  2773. this.b = +b;
  2774. this.opacity = +opacity;
  2775. }
  2776. Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Lab, lab, Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color_js__WEBPACK_IMPORTED_MODULE_1__["Color"], {
  2777. brighter: function(k) {
  2778. return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
  2779. },
  2780. darker: function(k) {
  2781. return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);
  2782. },
  2783. rgb: function() {
  2784. var y = (this.l + 16) / 116,
  2785. x = isNaN(this.a) ? y : y + this.a / 500,
  2786. z = isNaN(this.b) ? y : y - this.b / 200;
  2787. x = Xn * lab2xyz(x);
  2788. y = Yn * lab2xyz(y);
  2789. z = Zn * lab2xyz(z);
  2790. return new _color_js__WEBPACK_IMPORTED_MODULE_1__["Rgb"](
  2791. lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),
  2792. lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),
  2793. lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),
  2794. this.opacity
  2795. );
  2796. }
  2797. }));
  2798. function xyz2lab(t) {
  2799. return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;
  2800. }
  2801. function lab2xyz(t) {
  2802. return t > t1 ? t * t * t : t2 * (t - t0);
  2803. }
  2804. function lrgb2rgb(x) {
  2805. return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);
  2806. }
  2807. function rgb2lrgb(x) {
  2808. return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);
  2809. }
  2810. function hclConvert(o) {
  2811. if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);
  2812. if (!(o instanceof Lab)) o = labConvert(o);
  2813. if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);
  2814. var h = Math.atan2(o.b, o.a) * _math_js__WEBPACK_IMPORTED_MODULE_2__["rad2deg"];
  2815. return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
  2816. }
  2817. function lch(l, c, h, opacity) {
  2818. return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
  2819. }
  2820. function hcl(h, c, l, opacity) {
  2821. return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
  2822. }
  2823. function Hcl(h, c, l, opacity) {
  2824. this.h = +h;
  2825. this.c = +c;
  2826. this.l = +l;
  2827. this.opacity = +opacity;
  2828. }
  2829. function hcl2lab(o) {
  2830. if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
  2831. var h = o.h * _math_js__WEBPACK_IMPORTED_MODULE_2__["deg2rad"];
  2832. return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
  2833. }
  2834. Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Hcl, hcl, Object(_define_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color_js__WEBPACK_IMPORTED_MODULE_1__["Color"], {
  2835. brighter: function(k) {
  2836. return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
  2837. },
  2838. darker: function(k) {
  2839. return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);
  2840. },
  2841. rgb: function() {
  2842. return hcl2lab(this).rgb();
  2843. }
  2844. }));
  2845. /***/ }),
  2846. /***/ "./node_modules/d3-color/src/math.js":
  2847. /*!*******************************************!*\
  2848. !*** ./node_modules/d3-color/src/math.js ***!
  2849. \*******************************************/
  2850. /*! exports provided: deg2rad, rad2deg */
  2851. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2852. "use strict";
  2853. __webpack_require__.r(__webpack_exports__);
  2854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deg2rad", function() { return deg2rad; });
  2855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rad2deg", function() { return rad2deg; });
  2856. var deg2rad = Math.PI / 180;
  2857. var rad2deg = 180 / Math.PI;
  2858. /***/ }),
  2859. /***/ "./node_modules/d3-contour/src/area.js":
  2860. /*!*********************************************!*\
  2861. !*** ./node_modules/d3-contour/src/area.js ***!
  2862. \*********************************************/
  2863. /*! exports provided: default */
  2864. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2865. "use strict";
  2866. __webpack_require__.r(__webpack_exports__);
  2867. /* harmony default export */ __webpack_exports__["default"] = (function(ring) {
  2868. var i = 0, n = ring.length, area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];
  2869. while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];
  2870. return area;
  2871. });
  2872. /***/ }),
  2873. /***/ "./node_modules/d3-contour/src/array.js":
  2874. /*!**********************************************!*\
  2875. !*** ./node_modules/d3-contour/src/array.js ***!
  2876. \**********************************************/
  2877. /*! exports provided: slice */
  2878. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2879. "use strict";
  2880. __webpack_require__.r(__webpack_exports__);
  2881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  2882. var array = Array.prototype;
  2883. var slice = array.slice;
  2884. /***/ }),
  2885. /***/ "./node_modules/d3-contour/src/ascending.js":
  2886. /*!**************************************************!*\
  2887. !*** ./node_modules/d3-contour/src/ascending.js ***!
  2888. \**************************************************/
  2889. /*! exports provided: default */
  2890. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2891. "use strict";
  2892. __webpack_require__.r(__webpack_exports__);
  2893. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  2894. return a - b;
  2895. });
  2896. /***/ }),
  2897. /***/ "./node_modules/d3-contour/src/blur.js":
  2898. /*!*********************************************!*\
  2899. !*** ./node_modules/d3-contour/src/blur.js ***!
  2900. \*********************************************/
  2901. /*! exports provided: blurX, blurY */
  2902. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2903. "use strict";
  2904. __webpack_require__.r(__webpack_exports__);
  2905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blurX", function() { return blurX; });
  2906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blurY", function() { return blurY; });
  2907. // TODO Optimize edge cases.
  2908. // TODO Optimize index calculation.
  2909. // TODO Optimize arguments.
  2910. function blurX(source, target, r) {
  2911. var n = source.width,
  2912. m = source.height,
  2913. w = (r << 1) + 1;
  2914. for (var j = 0; j < m; ++j) {
  2915. for (var i = 0, sr = 0; i < n + r; ++i) {
  2916. if (i < n) {
  2917. sr += source.data[i + j * n];
  2918. }
  2919. if (i >= r) {
  2920. if (i >= w) {
  2921. sr -= source.data[i - w + j * n];
  2922. }
  2923. target.data[i - r + j * n] = sr / Math.min(i + 1, n - 1 + w - i, w);
  2924. }
  2925. }
  2926. }
  2927. }
  2928. // TODO Optimize edge cases.
  2929. // TODO Optimize index calculation.
  2930. // TODO Optimize arguments.
  2931. function blurY(source, target, r) {
  2932. var n = source.width,
  2933. m = source.height,
  2934. w = (r << 1) + 1;
  2935. for (var i = 0; i < n; ++i) {
  2936. for (var j = 0, sr = 0; j < m + r; ++j) {
  2937. if (j < m) {
  2938. sr += source.data[i + j * n];
  2939. }
  2940. if (j >= r) {
  2941. if (j >= w) {
  2942. sr -= source.data[i + (j - w) * n];
  2943. }
  2944. target.data[i + (j - r) * n] = sr / Math.min(j + 1, m - 1 + w - j, w);
  2945. }
  2946. }
  2947. }
  2948. }
  2949. /***/ }),
  2950. /***/ "./node_modules/d3-contour/src/constant.js":
  2951. /*!*************************************************!*\
  2952. !*** ./node_modules/d3-contour/src/constant.js ***!
  2953. \*************************************************/
  2954. /*! exports provided: default */
  2955. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2956. "use strict";
  2957. __webpack_require__.r(__webpack_exports__);
  2958. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  2959. return function() {
  2960. return x;
  2961. };
  2962. });
  2963. /***/ }),
  2964. /***/ "./node_modules/d3-contour/src/contains.js":
  2965. /*!*************************************************!*\
  2966. !*** ./node_modules/d3-contour/src/contains.js ***!
  2967. \*************************************************/
  2968. /*! exports provided: default */
  2969. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2970. "use strict";
  2971. __webpack_require__.r(__webpack_exports__);
  2972. /* harmony default export */ __webpack_exports__["default"] = (function(ring, hole) {
  2973. var i = -1, n = hole.length, c;
  2974. while (++i < n) if (c = ringContains(ring, hole[i])) return c;
  2975. return 0;
  2976. });
  2977. function ringContains(ring, point) {
  2978. var x = point[0], y = point[1], contains = -1;
  2979. for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {
  2980. var pi = ring[i], xi = pi[0], yi = pi[1], pj = ring[j], xj = pj[0], yj = pj[1];
  2981. if (segmentContains(pi, pj, point)) return 0;
  2982. if (((yi > y) !== (yj > y)) && ((x < (xj - xi) * (y - yi) / (yj - yi) + xi))) contains = -contains;
  2983. }
  2984. return contains;
  2985. }
  2986. function segmentContains(a, b, c) {
  2987. var i; return collinear(a, b, c) && within(a[i = +(a[0] === b[0])], c[i], b[i]);
  2988. }
  2989. function collinear(a, b, c) {
  2990. return (b[0] - a[0]) * (c[1] - a[1]) === (c[0] - a[0]) * (b[1] - a[1]);
  2991. }
  2992. function within(p, q, r) {
  2993. return p <= q && q <= r || r <= q && q <= p;
  2994. }
  2995. /***/ }),
  2996. /***/ "./node_modules/d3-contour/src/contours.js":
  2997. /*!*************************************************!*\
  2998. !*** ./node_modules/d3-contour/src/contours.js ***!
  2999. \*************************************************/
  3000. /*! exports provided: default */
  3001. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3002. "use strict";
  3003. __webpack_require__.r(__webpack_exports__);
  3004. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  3005. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-contour/src/array.js");
  3006. /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-contour/src/ascending.js");
  3007. /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./area */ "./node_modules/d3-contour/src/area.js");
  3008. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-contour/src/constant.js");
  3009. /* harmony import */ var _contains__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./contains */ "./node_modules/d3-contour/src/contains.js");
  3010. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./noop */ "./node_modules/d3-contour/src/noop.js");
  3011. var cases = [
  3012. [],
  3013. [[[1.0, 1.5], [0.5, 1.0]]],
  3014. [[[1.5, 1.0], [1.0, 1.5]]],
  3015. [[[1.5, 1.0], [0.5, 1.0]]],
  3016. [[[1.0, 0.5], [1.5, 1.0]]],
  3017. [[[1.0, 1.5], [0.5, 1.0]], [[1.0, 0.5], [1.5, 1.0]]],
  3018. [[[1.0, 0.5], [1.0, 1.5]]],
  3019. [[[1.0, 0.5], [0.5, 1.0]]],
  3020. [[[0.5, 1.0], [1.0, 0.5]]],
  3021. [[[1.0, 1.5], [1.0, 0.5]]],
  3022. [[[0.5, 1.0], [1.0, 0.5]], [[1.5, 1.0], [1.0, 1.5]]],
  3023. [[[1.5, 1.0], [1.0, 0.5]]],
  3024. [[[0.5, 1.0], [1.5, 1.0]]],
  3025. [[[1.0, 1.5], [1.5, 1.0]]],
  3026. [[[0.5, 1.0], [1.0, 1.5]]],
  3027. []
  3028. ];
  3029. /* harmony default export */ __webpack_exports__["default"] = (function() {
  3030. var dx = 1,
  3031. dy = 1,
  3032. threshold = d3_array__WEBPACK_IMPORTED_MODULE_0__["thresholdSturges"],
  3033. smooth = smoothLinear;
  3034. function contours(values) {
  3035. var tz = threshold(values);
  3036. // Convert number of thresholds into uniform thresholds.
  3037. if (!Array.isArray(tz)) {
  3038. var domain = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["extent"])(values), start = domain[0], stop = domain[1];
  3039. tz = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start, stop, tz);
  3040. tz = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(Math.floor(start / tz) * tz, Math.floor(stop / tz) * tz, tz);
  3041. } else {
  3042. tz = tz.slice().sort(_ascending__WEBPACK_IMPORTED_MODULE_2__["default"]);
  3043. }
  3044. return tz.map(function(value) {
  3045. return contour(values, value);
  3046. });
  3047. }
  3048. // Accumulate, smooth contour rings, assign holes to exterior rings.
  3049. // Based on https://github.com/mbostock/shapefile/blob/v0.6.2/shp/polygon.js
  3050. function contour(values, value) {
  3051. var polygons = [],
  3052. holes = [];
  3053. isorings(values, value, function(ring) {
  3054. smooth(ring, values, value);
  3055. if (Object(_area__WEBPACK_IMPORTED_MODULE_3__["default"])(ring) > 0) polygons.push([ring]);
  3056. else holes.push(ring);
  3057. });
  3058. holes.forEach(function(hole) {
  3059. for (var i = 0, n = polygons.length, polygon; i < n; ++i) {
  3060. if (Object(_contains__WEBPACK_IMPORTED_MODULE_5__["default"])((polygon = polygons[i])[0], hole) !== -1) {
  3061. polygon.push(hole);
  3062. return;
  3063. }
  3064. }
  3065. });
  3066. return {
  3067. type: "MultiPolygon",
  3068. value: value,
  3069. coordinates: polygons
  3070. };
  3071. }
  3072. // Marching squares with isolines stitched into rings.
  3073. // Based on https://github.com/topojson/topojson-client/blob/v3.0.0/src/stitch.js
  3074. function isorings(values, value, callback) {
  3075. var fragmentByStart = new Array,
  3076. fragmentByEnd = new Array,
  3077. x, y, t0, t1, t2, t3;
  3078. // Special case for the first row (y = -1, t2 = t3 = 0).
  3079. x = y = -1;
  3080. t1 = values[0] >= value;
  3081. cases[t1 << 1].forEach(stitch);
  3082. while (++x < dx - 1) {
  3083. t0 = t1, t1 = values[x + 1] >= value;
  3084. cases[t0 | t1 << 1].forEach(stitch);
  3085. }
  3086. cases[t1 << 0].forEach(stitch);
  3087. // General case for the intermediate rows.
  3088. while (++y < dy - 1) {
  3089. x = -1;
  3090. t1 = values[y * dx + dx] >= value;
  3091. t2 = values[y * dx] >= value;
  3092. cases[t1 << 1 | t2 << 2].forEach(stitch);
  3093. while (++x < dx - 1) {
  3094. t0 = t1, t1 = values[y * dx + dx + x + 1] >= value;
  3095. t3 = t2, t2 = values[y * dx + x + 1] >= value;
  3096. cases[t0 | t1 << 1 | t2 << 2 | t3 << 3].forEach(stitch);
  3097. }
  3098. cases[t1 | t2 << 3].forEach(stitch);
  3099. }
  3100. // Special case for the last row (y = dy - 1, t0 = t1 = 0).
  3101. x = -1;
  3102. t2 = values[y * dx] >= value;
  3103. cases[t2 << 2].forEach(stitch);
  3104. while (++x < dx - 1) {
  3105. t3 = t2, t2 = values[y * dx + x + 1] >= value;
  3106. cases[t2 << 2 | t3 << 3].forEach(stitch);
  3107. }
  3108. cases[t2 << 3].forEach(stitch);
  3109. function stitch(line) {
  3110. var start = [line[0][0] + x, line[0][1] + y],
  3111. end = [line[1][0] + x, line[1][1] + y],
  3112. startIndex = index(start),
  3113. endIndex = index(end),
  3114. f, g;
  3115. if (f = fragmentByEnd[startIndex]) {
  3116. if (g = fragmentByStart[endIndex]) {
  3117. delete fragmentByEnd[f.end];
  3118. delete fragmentByStart[g.start];
  3119. if (f === g) {
  3120. f.ring.push(end);
  3121. callback(f.ring);
  3122. } else {
  3123. fragmentByStart[f.start] = fragmentByEnd[g.end] = {start: f.start, end: g.end, ring: f.ring.concat(g.ring)};
  3124. }
  3125. } else {
  3126. delete fragmentByEnd[f.end];
  3127. f.ring.push(end);
  3128. fragmentByEnd[f.end = endIndex] = f;
  3129. }
  3130. } else if (f = fragmentByStart[endIndex]) {
  3131. if (g = fragmentByEnd[startIndex]) {
  3132. delete fragmentByStart[f.start];
  3133. delete fragmentByEnd[g.end];
  3134. if (f === g) {
  3135. f.ring.push(end);
  3136. callback(f.ring);
  3137. } else {
  3138. fragmentByStart[g.start] = fragmentByEnd[f.end] = {start: g.start, end: f.end, ring: g.ring.concat(f.ring)};
  3139. }
  3140. } else {
  3141. delete fragmentByStart[f.start];
  3142. f.ring.unshift(start);
  3143. fragmentByStart[f.start = startIndex] = f;
  3144. }
  3145. } else {
  3146. fragmentByStart[startIndex] = fragmentByEnd[endIndex] = {start: startIndex, end: endIndex, ring: [start, end]};
  3147. }
  3148. }
  3149. }
  3150. function index(point) {
  3151. return point[0] * 2 + point[1] * (dx + 1) * 4;
  3152. }
  3153. function smoothLinear(ring, values, value) {
  3154. ring.forEach(function(point) {
  3155. var x = point[0],
  3156. y = point[1],
  3157. xt = x | 0,
  3158. yt = y | 0,
  3159. v0,
  3160. v1 = values[yt * dx + xt];
  3161. if (x > 0 && x < dx && xt === x) {
  3162. v0 = values[yt * dx + xt - 1];
  3163. point[0] = x + (value - v0) / (v1 - v0) - 0.5;
  3164. }
  3165. if (y > 0 && y < dy && yt === y) {
  3166. v0 = values[(yt - 1) * dx + xt];
  3167. point[1] = y + (value - v0) / (v1 - v0) - 0.5;
  3168. }
  3169. });
  3170. }
  3171. contours.contour = contour;
  3172. contours.size = function(_) {
  3173. if (!arguments.length) return [dx, dy];
  3174. var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);
  3175. if (!(_0 > 0) || !(_1 > 0)) throw new Error("invalid size");
  3176. return dx = _0, dy = _1, contours;
  3177. };
  3178. contours.thresholds = function(_) {
  3179. 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;
  3180. };
  3181. contours.smooth = function(_) {
  3182. return arguments.length ? (smooth = _ ? smoothLinear : _noop__WEBPACK_IMPORTED_MODULE_6__["default"], contours) : smooth === smoothLinear;
  3183. };
  3184. return contours;
  3185. });
  3186. /***/ }),
  3187. /***/ "./node_modules/d3-contour/src/density.js":
  3188. /*!************************************************!*\
  3189. !*** ./node_modules/d3-contour/src/density.js ***!
  3190. \************************************************/
  3191. /*! exports provided: default */
  3192. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3193. "use strict";
  3194. __webpack_require__.r(__webpack_exports__);
  3195. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  3196. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-contour/src/array.js");
  3197. /* harmony import */ var _blur__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./blur */ "./node_modules/d3-contour/src/blur.js");
  3198. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-contour/src/constant.js");
  3199. /* harmony import */ var _contours__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./contours */ "./node_modules/d3-contour/src/contours.js");
  3200. function defaultX(d) {
  3201. return d[0];
  3202. }
  3203. function defaultY(d) {
  3204. return d[1];
  3205. }
  3206. function defaultWeight() {
  3207. return 1;
  3208. }
  3209. /* harmony default export */ __webpack_exports__["default"] = (function() {
  3210. var x = defaultX,
  3211. y = defaultY,
  3212. weight = defaultWeight,
  3213. dx = 960,
  3214. dy = 500,
  3215. r = 20, // blur radius
  3216. k = 2, // log2(grid cell size)
  3217. o = r * 3, // grid offset, to pad for blur
  3218. n = (dx + o * 2) >> k, // grid width
  3219. m = (dy + o * 2) >> k, // grid height
  3220. threshold = Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(20);
  3221. function density(data) {
  3222. var values0 = new Float32Array(n * m),
  3223. values1 = new Float32Array(n * m);
  3224. data.forEach(function(d, i, data) {
  3225. var xi = (+x(d, i, data) + o) >> k,
  3226. yi = (+y(d, i, data) + o) >> k,
  3227. wi = +weight(d, i, data);
  3228. if (xi >= 0 && xi < n && yi >= 0 && yi < m) {
  3229. values0[xi + yi * n] += wi;
  3230. }
  3231. });
  3232. // TODO Optimize.
  3233. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurX"])({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);
  3234. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurY"])({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);
  3235. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurX"])({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);
  3236. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurY"])({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);
  3237. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurX"])({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);
  3238. Object(_blur__WEBPACK_IMPORTED_MODULE_2__["blurY"])({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);
  3239. var tz = threshold(values0);
  3240. // Convert number of thresholds into uniform thresholds.
  3241. if (!Array.isArray(tz)) {
  3242. var stop = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["max"])(values0);
  3243. tz = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(0, stop, tz);
  3244. tz = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(0, Math.floor(stop / tz) * tz, tz);
  3245. tz.shift();
  3246. }
  3247. return Object(_contours__WEBPACK_IMPORTED_MODULE_4__["default"])()
  3248. .thresholds(tz)
  3249. .size([n, m])
  3250. (values0)
  3251. .map(transform);
  3252. }
  3253. function transform(geometry) {
  3254. geometry.value *= Math.pow(2, -2 * k); // Density in points per square pixel.
  3255. geometry.coordinates.forEach(transformPolygon);
  3256. return geometry;
  3257. }
  3258. function transformPolygon(coordinates) {
  3259. coordinates.forEach(transformRing);
  3260. }
  3261. function transformRing(coordinates) {
  3262. coordinates.forEach(transformPoint);
  3263. }
  3264. // TODO Optimize.
  3265. function transformPoint(coordinates) {
  3266. coordinates[0] = coordinates[0] * Math.pow(2, k) - o;
  3267. coordinates[1] = coordinates[1] * Math.pow(2, k) - o;
  3268. }
  3269. function resize() {
  3270. o = r * 3;
  3271. n = (dx + o * 2) >> k;
  3272. m = (dy + o * 2) >> k;
  3273. return density;
  3274. }
  3275. density.x = function(_) {
  3276. return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+_), density) : x;
  3277. };
  3278. density.y = function(_) {
  3279. return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+_), density) : y;
  3280. };
  3281. density.weight = function(_) {
  3282. return arguments.length ? (weight = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+_), density) : weight;
  3283. };
  3284. density.size = function(_) {
  3285. if (!arguments.length) return [dx, dy];
  3286. var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);
  3287. if (!(_0 >= 0) && !(_0 >= 0)) throw new Error("invalid size");
  3288. return dx = _0, dy = _1, resize();
  3289. };
  3290. density.cellSize = function(_) {
  3291. if (!arguments.length) return 1 << k;
  3292. if (!((_ = +_) >= 1)) throw new Error("invalid cell size");
  3293. return k = Math.floor(Math.log(_) / Math.LN2), resize();
  3294. };
  3295. density.thresholds = function(_) {
  3296. 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;
  3297. };
  3298. density.bandwidth = function(_) {
  3299. if (!arguments.length) return Math.sqrt(r * (r + 1));
  3300. if (!((_ = +_) >= 0)) throw new Error("invalid bandwidth");
  3301. return r = Math.round((Math.sqrt(4 * _ * _ + 1) - 1) / 2), resize();
  3302. };
  3303. return density;
  3304. });
  3305. /***/ }),
  3306. /***/ "./node_modules/d3-contour/src/index.js":
  3307. /*!**********************************************!*\
  3308. !*** ./node_modules/d3-contour/src/index.js ***!
  3309. \**********************************************/
  3310. /*! exports provided: contours, contourDensity */
  3311. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3312. "use strict";
  3313. __webpack_require__.r(__webpack_exports__);
  3314. /* harmony import */ var _contours__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./contours */ "./node_modules/d3-contour/src/contours.js");
  3315. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "contours", function() { return _contours__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  3316. /* harmony import */ var _density__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./density */ "./node_modules/d3-contour/src/density.js");
  3317. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "contourDensity", function() { return _density__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  3318. /***/ }),
  3319. /***/ "./node_modules/d3-contour/src/noop.js":
  3320. /*!*********************************************!*\
  3321. !*** ./node_modules/d3-contour/src/noop.js ***!
  3322. \*********************************************/
  3323. /*! exports provided: default */
  3324. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3325. "use strict";
  3326. __webpack_require__.r(__webpack_exports__);
  3327. /* harmony default export */ __webpack_exports__["default"] = (function() {});
  3328. /***/ }),
  3329. /***/ "./node_modules/d3-dispatch/src/dispatch.js":
  3330. /*!**************************************************!*\
  3331. !*** ./node_modules/d3-dispatch/src/dispatch.js ***!
  3332. \**************************************************/
  3333. /*! exports provided: default */
  3334. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3335. "use strict";
  3336. __webpack_require__.r(__webpack_exports__);
  3337. var noop = {value: function() {}};
  3338. function dispatch() {
  3339. for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {
  3340. if (!(t = arguments[i] + "") || (t in _) || /[\s.]/.test(t)) throw new Error("illegal type: " + t);
  3341. _[t] = [];
  3342. }
  3343. return new Dispatch(_);
  3344. }
  3345. function Dispatch(_) {
  3346. this._ = _;
  3347. }
  3348. function parseTypenames(typenames, types) {
  3349. return typenames.trim().split(/^|\s+/).map(function(t) {
  3350. var name = "", i = t.indexOf(".");
  3351. if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
  3352. if (t && !types.hasOwnProperty(t)) throw new Error("unknown type: " + t);
  3353. return {type: t, name: name};
  3354. });
  3355. }
  3356. Dispatch.prototype = dispatch.prototype = {
  3357. constructor: Dispatch,
  3358. on: function(typename, callback) {
  3359. var _ = this._,
  3360. T = parseTypenames(typename + "", _),
  3361. t,
  3362. i = -1,
  3363. n = T.length;
  3364. // If no callback was specified, return the callback of the given type and name.
  3365. if (arguments.length < 2) {
  3366. while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;
  3367. return;
  3368. }
  3369. // If a type was specified, set the callback for the given type and name.
  3370. // Otherwise, if a null callback was specified, remove callbacks of the given name.
  3371. if (callback != null && typeof callback !== "function") throw new Error("invalid callback: " + callback);
  3372. while (++i < n) {
  3373. if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);
  3374. else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);
  3375. }
  3376. return this;
  3377. },
  3378. copy: function() {
  3379. var copy = {}, _ = this._;
  3380. for (var t in _) copy[t] = _[t].slice();
  3381. return new Dispatch(copy);
  3382. },
  3383. call: function(type, that) {
  3384. if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];
  3385. if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
  3386. for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
  3387. },
  3388. apply: function(type, that, args) {
  3389. if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
  3390. for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
  3391. }
  3392. };
  3393. function get(type, name) {
  3394. for (var i = 0, n = type.length, c; i < n; ++i) {
  3395. if ((c = type[i]).name === name) {
  3396. return c.value;
  3397. }
  3398. }
  3399. }
  3400. function set(type, name, callback) {
  3401. for (var i = 0, n = type.length; i < n; ++i) {
  3402. if (type[i].name === name) {
  3403. type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));
  3404. break;
  3405. }
  3406. }
  3407. if (callback != null) type.push({name: name, value: callback});
  3408. return type;
  3409. }
  3410. /* harmony default export */ __webpack_exports__["default"] = (dispatch);
  3411. /***/ }),
  3412. /***/ "./node_modules/d3-dispatch/src/index.js":
  3413. /*!***********************************************!*\
  3414. !*** ./node_modules/d3-dispatch/src/index.js ***!
  3415. \***********************************************/
  3416. /*! exports provided: dispatch */
  3417. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3418. "use strict";
  3419. __webpack_require__.r(__webpack_exports__);
  3420. /* harmony import */ var _dispatch_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dispatch.js */ "./node_modules/d3-dispatch/src/dispatch.js");
  3421. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return _dispatch_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  3422. /***/ }),
  3423. /***/ "./node_modules/d3-drag/src/constant.js":
  3424. /*!**********************************************!*\
  3425. !*** ./node_modules/d3-drag/src/constant.js ***!
  3426. \**********************************************/
  3427. /*! exports provided: default */
  3428. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3429. "use strict";
  3430. __webpack_require__.r(__webpack_exports__);
  3431. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  3432. return function() {
  3433. return x;
  3434. };
  3435. });
  3436. /***/ }),
  3437. /***/ "./node_modules/d3-drag/src/drag.js":
  3438. /*!******************************************!*\
  3439. !*** ./node_modules/d3-drag/src/drag.js ***!
  3440. \******************************************/
  3441. /*! exports provided: default */
  3442. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3443. "use strict";
  3444. __webpack_require__.r(__webpack_exports__);
  3445. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  3446. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  3447. /* harmony import */ var _nodrag_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nodrag.js */ "./node_modules/d3-drag/src/nodrag.js");
  3448. /* harmony import */ var _noevent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./noevent.js */ "./node_modules/d3-drag/src/noevent.js");
  3449. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-drag/src/constant.js");
  3450. /* harmony import */ var _event_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./event.js */ "./node_modules/d3-drag/src/event.js");
  3451. // Ignore right-click, since that should open the context menu.
  3452. function defaultFilter() {
  3453. return !d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].ctrlKey && !d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].button;
  3454. }
  3455. function defaultContainer() {
  3456. return this.parentNode;
  3457. }
  3458. function defaultSubject(d) {
  3459. return d == null ? {x: d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].x, y: d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].y} : d;
  3460. }
  3461. function defaultTouchable() {
  3462. return navigator.maxTouchPoints || ("ontouchstart" in this);
  3463. }
  3464. /* harmony default export */ __webpack_exports__["default"] = (function() {
  3465. var filter = defaultFilter,
  3466. container = defaultContainer,
  3467. subject = defaultSubject,
  3468. touchable = defaultTouchable,
  3469. gestures = {},
  3470. listeners = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("start", "drag", "end"),
  3471. active = 0,
  3472. mousedownx,
  3473. mousedowny,
  3474. mousemoving,
  3475. touchending,
  3476. clickDistance2 = 0;
  3477. function drag(selection) {
  3478. selection
  3479. .on("mousedown.drag", mousedowned)
  3480. .filter(touchable)
  3481. .on("touchstart.drag", touchstarted)
  3482. .on("touchmove.drag", touchmoved)
  3483. .on("touchend.drag touchcancel.drag", touchended)
  3484. .style("touch-action", "none")
  3485. .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
  3486. }
  3487. function mousedowned() {
  3488. if (touchending || !filter.apply(this, arguments)) return;
  3489. var gesture = beforestart("mouse", container.apply(this, arguments), d3_selection__WEBPACK_IMPORTED_MODULE_1__["mouse"], this, arguments);
  3490. if (!gesture) return;
  3491. 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);
  3492. Object(_nodrag_js__WEBPACK_IMPORTED_MODULE_2__["default"])(d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].view);
  3493. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_3__["nopropagation"])();
  3494. mousemoving = false;
  3495. mousedownx = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientX;
  3496. mousedowny = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientY;
  3497. gesture("start");
  3498. }
  3499. function mousemoved() {
  3500. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
  3501. if (!mousemoving) {
  3502. var dx = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientX - mousedownx, dy = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientY - mousedowny;
  3503. mousemoving = dx * dx + dy * dy > clickDistance2;
  3504. }
  3505. gestures.mouse("drag");
  3506. }
  3507. function mouseupped() {
  3508. Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["select"])(d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].view).on("mousemove.drag mouseup.drag", null);
  3509. Object(_nodrag_js__WEBPACK_IMPORTED_MODULE_2__["yesdrag"])(d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].view, mousemoving);
  3510. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
  3511. gestures.mouse("end");
  3512. }
  3513. function touchstarted() {
  3514. if (!filter.apply(this, arguments)) return;
  3515. var touches = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].changedTouches,
  3516. c = container.apply(this, arguments),
  3517. n = touches.length, i, gesture;
  3518. for (i = 0; i < n; ++i) {
  3519. if (gesture = beforestart(touches[i].identifier, c, d3_selection__WEBPACK_IMPORTED_MODULE_1__["touch"], this, arguments)) {
  3520. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_3__["nopropagation"])();
  3521. gesture("start");
  3522. }
  3523. }
  3524. }
  3525. function touchmoved() {
  3526. var touches = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].changedTouches,
  3527. n = touches.length, i, gesture;
  3528. for (i = 0; i < n; ++i) {
  3529. if (gesture = gestures[touches[i].identifier]) {
  3530. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
  3531. gesture("drag");
  3532. }
  3533. }
  3534. }
  3535. function touchended() {
  3536. var touches = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].changedTouches,
  3537. n = touches.length, i, gesture;
  3538. if (touchending) clearTimeout(touchending);
  3539. touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!
  3540. for (i = 0; i < n; ++i) {
  3541. if (gesture = gestures[touches[i].identifier]) {
  3542. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_3__["nopropagation"])();
  3543. gesture("end");
  3544. }
  3545. }
  3546. }
  3547. function beforestart(id, container, point, that, args) {
  3548. var p = point(container, id), s, dx, dy,
  3549. sublisteners = listeners.copy();
  3550. if (!Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["customEvent"])(new _event_js__WEBPACK_IMPORTED_MODULE_5__["default"](drag, "beforestart", s, id, active, p[0], p[1], 0, 0, sublisteners), function() {
  3551. if ((d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].subject = s = subject.apply(that, args)) == null) return false;
  3552. dx = s.x - p[0] || 0;
  3553. dy = s.y - p[1] || 0;
  3554. return true;
  3555. })) return;
  3556. return function gesture(type) {
  3557. var p0 = p, n;
  3558. switch (type) {
  3559. case "start": gestures[id] = gesture, n = active++; break;
  3560. case "end": delete gestures[id], --active; // nobreak
  3561. case "drag": p = point(container, id), n = active; break;
  3562. }
  3563. Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["customEvent"])(new _event_js__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]);
  3564. };
  3565. }
  3566. drag.filter = function(_) {
  3567. return arguments.length ? (filter = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_4__["default"])(!!_), drag) : filter;
  3568. };
  3569. drag.container = function(_) {
  3570. return arguments.length ? (container = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_4__["default"])(_), drag) : container;
  3571. };
  3572. drag.subject = function(_) {
  3573. return arguments.length ? (subject = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_4__["default"])(_), drag) : subject;
  3574. };
  3575. drag.touchable = function(_) {
  3576. return arguments.length ? (touchable = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_4__["default"])(!!_), drag) : touchable;
  3577. };
  3578. drag.on = function() {
  3579. var value = listeners.on.apply(listeners, arguments);
  3580. return value === listeners ? drag : value;
  3581. };
  3582. drag.clickDistance = function(_) {
  3583. return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);
  3584. };
  3585. return drag;
  3586. });
  3587. /***/ }),
  3588. /***/ "./node_modules/d3-drag/src/event.js":
  3589. /*!*******************************************!*\
  3590. !*** ./node_modules/d3-drag/src/event.js ***!
  3591. \*******************************************/
  3592. /*! exports provided: default */
  3593. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3594. "use strict";
  3595. __webpack_require__.r(__webpack_exports__);
  3596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DragEvent; });
  3597. function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {
  3598. this.target = target;
  3599. this.type = type;
  3600. this.subject = subject;
  3601. this.identifier = id;
  3602. this.active = active;
  3603. this.x = x;
  3604. this.y = y;
  3605. this.dx = dx;
  3606. this.dy = dy;
  3607. this._ = dispatch;
  3608. }
  3609. DragEvent.prototype.on = function() {
  3610. var value = this._.on.apply(this._, arguments);
  3611. return value === this._ ? this : value;
  3612. };
  3613. /***/ }),
  3614. /***/ "./node_modules/d3-drag/src/index.js":
  3615. /*!*******************************************!*\
  3616. !*** ./node_modules/d3-drag/src/index.js ***!
  3617. \*******************************************/
  3618. /*! exports provided: drag, dragDisable, dragEnable */
  3619. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3620. "use strict";
  3621. __webpack_require__.r(__webpack_exports__);
  3622. /* harmony import */ var _drag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./drag.js */ "./node_modules/d3-drag/src/drag.js");
  3623. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "drag", function() { return _drag_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  3624. /* harmony import */ var _nodrag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./nodrag.js */ "./node_modules/d3-drag/src/nodrag.js");
  3625. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dragDisable", function() { return _nodrag_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  3626. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dragEnable", function() { return _nodrag_js__WEBPACK_IMPORTED_MODULE_1__["yesdrag"]; });
  3627. /***/ }),
  3628. /***/ "./node_modules/d3-drag/src/nodrag.js":
  3629. /*!********************************************!*\
  3630. !*** ./node_modules/d3-drag/src/nodrag.js ***!
  3631. \********************************************/
  3632. /*! exports provided: default, yesdrag */
  3633. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3634. "use strict";
  3635. __webpack_require__.r(__webpack_exports__);
  3636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yesdrag", function() { return yesdrag; });
  3637. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  3638. /* harmony import */ var _noevent_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./noevent.js */ "./node_modules/d3-drag/src/noevent.js");
  3639. /* harmony default export */ __webpack_exports__["default"] = (function(view) {
  3640. var root = view.document.documentElement,
  3641. selection = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["select"])(view).on("dragstart.drag", _noevent_js__WEBPACK_IMPORTED_MODULE_1__["default"], true);
  3642. if ("onselectstart" in root) {
  3643. selection.on("selectstart.drag", _noevent_js__WEBPACK_IMPORTED_MODULE_1__["default"], true);
  3644. } else {
  3645. root.__noselect = root.style.MozUserSelect;
  3646. root.style.MozUserSelect = "none";
  3647. }
  3648. });
  3649. function yesdrag(view, noclick) {
  3650. var root = view.document.documentElement,
  3651. selection = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["select"])(view).on("dragstart.drag", null);
  3652. if (noclick) {
  3653. selection.on("click.drag", _noevent_js__WEBPACK_IMPORTED_MODULE_1__["default"], true);
  3654. setTimeout(function() { selection.on("click.drag", null); }, 0);
  3655. }
  3656. if ("onselectstart" in root) {
  3657. selection.on("selectstart.drag", null);
  3658. } else {
  3659. root.style.MozUserSelect = root.__noselect;
  3660. delete root.__noselect;
  3661. }
  3662. }
  3663. /***/ }),
  3664. /***/ "./node_modules/d3-drag/src/noevent.js":
  3665. /*!*********************************************!*\
  3666. !*** ./node_modules/d3-drag/src/noevent.js ***!
  3667. \*********************************************/
  3668. /*! exports provided: nopropagation, default */
  3669. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3670. "use strict";
  3671. __webpack_require__.r(__webpack_exports__);
  3672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nopropagation", function() { return nopropagation; });
  3673. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  3674. function nopropagation() {
  3675. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  3676. }
  3677. /* harmony default export */ __webpack_exports__["default"] = (function() {
  3678. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].preventDefault();
  3679. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  3680. });
  3681. /***/ }),
  3682. /***/ "./node_modules/d3-dsv/src/autoType.js":
  3683. /*!*********************************************!*\
  3684. !*** ./node_modules/d3-dsv/src/autoType.js ***!
  3685. \*********************************************/
  3686. /*! exports provided: default */
  3687. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3688. "use strict";
  3689. __webpack_require__.r(__webpack_exports__);
  3690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return autoType; });
  3691. function autoType(object) {
  3692. for (var key in object) {
  3693. var value = object[key].trim(), number, m;
  3694. if (!value) value = null;
  3695. else if (value === "true") value = true;
  3696. else if (value === "false") value = false;
  3697. else if (value === "NaN") value = NaN;
  3698. else if (!isNaN(number = +value)) value = number;
  3699. else if (m = value.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)) {
  3700. if (fixtz && !!m[4] && !m[7]) value = value.replace(/-/g, "/").replace(/T/, " ");
  3701. value = new Date(value);
  3702. }
  3703. else continue;
  3704. object[key] = value;
  3705. }
  3706. return object;
  3707. }
  3708. // https://github.com/d3/d3-dsv/issues/45
  3709. var fixtz = new Date("2019-01-01T00:00").getHours() || new Date("2019-07-01T00:00").getHours();
  3710. /***/ }),
  3711. /***/ "./node_modules/d3-dsv/src/csv.js":
  3712. /*!****************************************!*\
  3713. !*** ./node_modules/d3-dsv/src/csv.js ***!
  3714. \****************************************/
  3715. /*! exports provided: csvParse, csvParseRows, csvFormat, csvFormatBody, csvFormatRows, csvFormatRow, csvFormatValue */
  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__, "csvParse", function() { return csvParse; });
  3720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csvParseRows", function() { return csvParseRows; });
  3721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csvFormat", function() { return csvFormat; });
  3722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csvFormatBody", function() { return csvFormatBody; });
  3723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csvFormatRows", function() { return csvFormatRows; });
  3724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csvFormatRow", function() { return csvFormatRow; });
  3725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csvFormatValue", function() { return csvFormatValue; });
  3726. /* harmony import */ var _dsv_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dsv.js */ "./node_modules/d3-dsv/src/dsv.js");
  3727. var csv = Object(_dsv_js__WEBPACK_IMPORTED_MODULE_0__["default"])(",");
  3728. var csvParse = csv.parse;
  3729. var csvParseRows = csv.parseRows;
  3730. var csvFormat = csv.format;
  3731. var csvFormatBody = csv.formatBody;
  3732. var csvFormatRows = csv.formatRows;
  3733. var csvFormatRow = csv.formatRow;
  3734. var csvFormatValue = csv.formatValue;
  3735. /***/ }),
  3736. /***/ "./node_modules/d3-dsv/src/dsv.js":
  3737. /*!****************************************!*\
  3738. !*** ./node_modules/d3-dsv/src/dsv.js ***!
  3739. \****************************************/
  3740. /*! exports provided: default */
  3741. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3742. "use strict";
  3743. __webpack_require__.r(__webpack_exports__);
  3744. var EOL = {},
  3745. EOF = {},
  3746. QUOTE = 34,
  3747. NEWLINE = 10,
  3748. RETURN = 13;
  3749. function objectConverter(columns) {
  3750. return new Function("d", "return {" + columns.map(function(name, i) {
  3751. return JSON.stringify(name) + ": d[" + i + "] || \"\"";
  3752. }).join(",") + "}");
  3753. }
  3754. function customConverter(columns, f) {
  3755. var object = objectConverter(columns);
  3756. return function(row, i) {
  3757. return f(object(row), i, columns);
  3758. };
  3759. }
  3760. // Compute unique columns in order of discovery.
  3761. function inferColumns(rows) {
  3762. var columnSet = Object.create(null),
  3763. columns = [];
  3764. rows.forEach(function(row) {
  3765. for (var column in row) {
  3766. if (!(column in columnSet)) {
  3767. columns.push(columnSet[column] = column);
  3768. }
  3769. }
  3770. });
  3771. return columns;
  3772. }
  3773. function pad(value, width) {
  3774. var s = value + "", length = s.length;
  3775. return length < width ? new Array(width - length + 1).join(0) + s : s;
  3776. }
  3777. function formatYear(year) {
  3778. return year < 0 ? "-" + pad(-year, 6)
  3779. : year > 9999 ? "+" + pad(year, 6)
  3780. : pad(year, 4);
  3781. }
  3782. function formatDate(date) {
  3783. var hours = date.getUTCHours(),
  3784. minutes = date.getUTCMinutes(),
  3785. seconds = date.getUTCSeconds(),
  3786. milliseconds = date.getUTCMilliseconds();
  3787. return isNaN(date) ? "Invalid Date"
  3788. : formatYear(date.getUTCFullYear(), 4) + "-" + pad(date.getUTCMonth() + 1, 2) + "-" + pad(date.getUTCDate(), 2)
  3789. + (milliseconds ? "T" + pad(hours, 2) + ":" + pad(minutes, 2) + ":" + pad(seconds, 2) + "." + pad(milliseconds, 3) + "Z"
  3790. : seconds ? "T" + pad(hours, 2) + ":" + pad(minutes, 2) + ":" + pad(seconds, 2) + "Z"
  3791. : minutes || hours ? "T" + pad(hours, 2) + ":" + pad(minutes, 2) + "Z"
  3792. : "");
  3793. }
  3794. /* harmony default export */ __webpack_exports__["default"] = (function(delimiter) {
  3795. var reFormat = new RegExp("[\"" + delimiter + "\n\r]"),
  3796. DELIMITER = delimiter.charCodeAt(0);
  3797. function parse(text, f) {
  3798. var convert, columns, rows = parseRows(text, function(row, i) {
  3799. if (convert) return convert(row, i - 1);
  3800. columns = row, convert = f ? customConverter(row, f) : objectConverter(row);
  3801. });
  3802. rows.columns = columns || [];
  3803. return rows;
  3804. }
  3805. function parseRows(text, f) {
  3806. var rows = [], // output rows
  3807. N = text.length,
  3808. I = 0, // current character index
  3809. n = 0, // current line number
  3810. t, // current token
  3811. eof = N <= 0, // current token followed by EOF?
  3812. eol = false; // current token followed by EOL?
  3813. // Strip the trailing newline.
  3814. if (text.charCodeAt(N - 1) === NEWLINE) --N;
  3815. if (text.charCodeAt(N - 1) === RETURN) --N;
  3816. function token() {
  3817. if (eof) return EOF;
  3818. if (eol) return eol = false, EOL;
  3819. // Unescape quotes.
  3820. var i, j = I, c;
  3821. if (text.charCodeAt(j) === QUOTE) {
  3822. while (I++ < N && text.charCodeAt(I) !== QUOTE || text.charCodeAt(++I) === QUOTE);
  3823. if ((i = I) >= N) eof = true;
  3824. else if ((c = text.charCodeAt(I++)) === NEWLINE) eol = true;
  3825. else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }
  3826. return text.slice(j + 1, i - 1).replace(/""/g, "\"");
  3827. }
  3828. // Find next delimiter or newline.
  3829. while (I < N) {
  3830. if ((c = text.charCodeAt(i = I++)) === NEWLINE) eol = true;
  3831. else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }
  3832. else if (c !== DELIMITER) continue;
  3833. return text.slice(j, i);
  3834. }
  3835. // Return last token before EOF.
  3836. return eof = true, text.slice(j, N);
  3837. }
  3838. while ((t = token()) !== EOF) {
  3839. var row = [];
  3840. while (t !== EOL && t !== EOF) row.push(t), t = token();
  3841. if (f && (row = f(row, n++)) == null) continue;
  3842. rows.push(row);
  3843. }
  3844. return rows;
  3845. }
  3846. function preformatBody(rows, columns) {
  3847. return rows.map(function(row) {
  3848. return columns.map(function(column) {
  3849. return formatValue(row[column]);
  3850. }).join(delimiter);
  3851. });
  3852. }
  3853. function format(rows, columns) {
  3854. if (columns == null) columns = inferColumns(rows);
  3855. return [columns.map(formatValue).join(delimiter)].concat(preformatBody(rows, columns)).join("\n");
  3856. }
  3857. function formatBody(rows, columns) {
  3858. if (columns == null) columns = inferColumns(rows);
  3859. return preformatBody(rows, columns).join("\n");
  3860. }
  3861. function formatRows(rows) {
  3862. return rows.map(formatRow).join("\n");
  3863. }
  3864. function formatRow(row) {
  3865. return row.map(formatValue).join(delimiter);
  3866. }
  3867. function formatValue(value) {
  3868. return value == null ? ""
  3869. : value instanceof Date ? formatDate(value)
  3870. : reFormat.test(value += "") ? "\"" + value.replace(/"/g, "\"\"") + "\""
  3871. : value;
  3872. }
  3873. return {
  3874. parse: parse,
  3875. parseRows: parseRows,
  3876. format: format,
  3877. formatBody: formatBody,
  3878. formatRows: formatRows,
  3879. formatRow: formatRow,
  3880. formatValue: formatValue
  3881. };
  3882. });
  3883. /***/ }),
  3884. /***/ "./node_modules/d3-dsv/src/index.js":
  3885. /*!******************************************!*\
  3886. !*** ./node_modules/d3-dsv/src/index.js ***!
  3887. \******************************************/
  3888. /*! exports provided: dsvFormat, csvParse, csvParseRows, csvFormat, csvFormatBody, csvFormatRows, csvFormatRow, csvFormatValue, tsvParse, tsvParseRows, tsvFormat, tsvFormatBody, tsvFormatRows, tsvFormatRow, tsvFormatValue, autoType */
  3889. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3890. "use strict";
  3891. __webpack_require__.r(__webpack_exports__);
  3892. /* harmony import */ var _dsv_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dsv.js */ "./node_modules/d3-dsv/src/dsv.js");
  3893. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dsvFormat", function() { return _dsv_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  3894. /* harmony import */ var _csv_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./csv.js */ "./node_modules/d3-dsv/src/csv.js");
  3895. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvParse", function() { return _csv_js__WEBPACK_IMPORTED_MODULE_1__["csvParse"]; });
  3896. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvParseRows", function() { return _csv_js__WEBPACK_IMPORTED_MODULE_1__["csvParseRows"]; });
  3897. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormat", function() { return _csv_js__WEBPACK_IMPORTED_MODULE_1__["csvFormat"]; });
  3898. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormatBody", function() { return _csv_js__WEBPACK_IMPORTED_MODULE_1__["csvFormatBody"]; });
  3899. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormatRows", function() { return _csv_js__WEBPACK_IMPORTED_MODULE_1__["csvFormatRows"]; });
  3900. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormatRow", function() { return _csv_js__WEBPACK_IMPORTED_MODULE_1__["csvFormatRow"]; });
  3901. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormatValue", function() { return _csv_js__WEBPACK_IMPORTED_MODULE_1__["csvFormatValue"]; });
  3902. /* harmony import */ var _tsv_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tsv.js */ "./node_modules/d3-dsv/src/tsv.js");
  3903. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvParse", function() { return _tsv_js__WEBPACK_IMPORTED_MODULE_2__["tsvParse"]; });
  3904. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvParseRows", function() { return _tsv_js__WEBPACK_IMPORTED_MODULE_2__["tsvParseRows"]; });
  3905. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormat", function() { return _tsv_js__WEBPACK_IMPORTED_MODULE_2__["tsvFormat"]; });
  3906. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormatBody", function() { return _tsv_js__WEBPACK_IMPORTED_MODULE_2__["tsvFormatBody"]; });
  3907. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormatRows", function() { return _tsv_js__WEBPACK_IMPORTED_MODULE_2__["tsvFormatRows"]; });
  3908. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormatRow", function() { return _tsv_js__WEBPACK_IMPORTED_MODULE_2__["tsvFormatRow"]; });
  3909. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormatValue", function() { return _tsv_js__WEBPACK_IMPORTED_MODULE_2__["tsvFormatValue"]; });
  3910. /* harmony import */ var _autoType_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./autoType.js */ "./node_modules/d3-dsv/src/autoType.js");
  3911. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "autoType", function() { return _autoType_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  3912. /***/ }),
  3913. /***/ "./node_modules/d3-dsv/src/tsv.js":
  3914. /*!****************************************!*\
  3915. !*** ./node_modules/d3-dsv/src/tsv.js ***!
  3916. \****************************************/
  3917. /*! exports provided: tsvParse, tsvParseRows, tsvFormat, tsvFormatBody, tsvFormatRows, tsvFormatRow, tsvFormatValue */
  3918. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3919. "use strict";
  3920. __webpack_require__.r(__webpack_exports__);
  3921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsvParse", function() { return tsvParse; });
  3922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsvParseRows", function() { return tsvParseRows; });
  3923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsvFormat", function() { return tsvFormat; });
  3924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsvFormatBody", function() { return tsvFormatBody; });
  3925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsvFormatRows", function() { return tsvFormatRows; });
  3926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsvFormatRow", function() { return tsvFormatRow; });
  3927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsvFormatValue", function() { return tsvFormatValue; });
  3928. /* harmony import */ var _dsv_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dsv.js */ "./node_modules/d3-dsv/src/dsv.js");
  3929. var tsv = Object(_dsv_js__WEBPACK_IMPORTED_MODULE_0__["default"])("\t");
  3930. var tsvParse = tsv.parse;
  3931. var tsvParseRows = tsv.parseRows;
  3932. var tsvFormat = tsv.format;
  3933. var tsvFormatBody = tsv.formatBody;
  3934. var tsvFormatRows = tsv.formatRows;
  3935. var tsvFormatRow = tsv.formatRow;
  3936. var tsvFormatValue = tsv.formatValue;
  3937. /***/ }),
  3938. /***/ "./node_modules/d3-ease/src/back.js":
  3939. /*!******************************************!*\
  3940. !*** ./node_modules/d3-ease/src/back.js ***!
  3941. \******************************************/
  3942. /*! exports provided: backIn, backOut, backInOut */
  3943. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3944. "use strict";
  3945. __webpack_require__.r(__webpack_exports__);
  3946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backIn", function() { return backIn; });
  3947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backOut", function() { return backOut; });
  3948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backInOut", function() { return backInOut; });
  3949. var overshoot = 1.70158;
  3950. var backIn = (function custom(s) {
  3951. s = +s;
  3952. function backIn(t) {
  3953. return t * t * ((s + 1) * t - s);
  3954. }
  3955. backIn.overshoot = custom;
  3956. return backIn;
  3957. })(overshoot);
  3958. var backOut = (function custom(s) {
  3959. s = +s;
  3960. function backOut(t) {
  3961. return --t * t * ((s + 1) * t + s) + 1;
  3962. }
  3963. backOut.overshoot = custom;
  3964. return backOut;
  3965. })(overshoot);
  3966. var backInOut = (function custom(s) {
  3967. s = +s;
  3968. function backInOut(t) {
  3969. return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;
  3970. }
  3971. backInOut.overshoot = custom;
  3972. return backInOut;
  3973. })(overshoot);
  3974. /***/ }),
  3975. /***/ "./node_modules/d3-ease/src/bounce.js":
  3976. /*!********************************************!*\
  3977. !*** ./node_modules/d3-ease/src/bounce.js ***!
  3978. \********************************************/
  3979. /*! exports provided: bounceIn, bounceOut, bounceInOut */
  3980. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3981. "use strict";
  3982. __webpack_require__.r(__webpack_exports__);
  3983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceIn", function() { return bounceIn; });
  3984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceOut", function() { return bounceOut; });
  3985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceInOut", function() { return bounceInOut; });
  3986. var b1 = 4 / 11,
  3987. b2 = 6 / 11,
  3988. b3 = 8 / 11,
  3989. b4 = 3 / 4,
  3990. b5 = 9 / 11,
  3991. b6 = 10 / 11,
  3992. b7 = 15 / 16,
  3993. b8 = 21 / 22,
  3994. b9 = 63 / 64,
  3995. b0 = 1 / b1 / b1;
  3996. function bounceIn(t) {
  3997. return 1 - bounceOut(1 - t);
  3998. }
  3999. function bounceOut(t) {
  4000. 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;
  4001. }
  4002. function bounceInOut(t) {
  4003. return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;
  4004. }
  4005. /***/ }),
  4006. /***/ "./node_modules/d3-ease/src/circle.js":
  4007. /*!********************************************!*\
  4008. !*** ./node_modules/d3-ease/src/circle.js ***!
  4009. \********************************************/
  4010. /*! exports provided: circleIn, circleOut, circleInOut */
  4011. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4012. "use strict";
  4013. __webpack_require__.r(__webpack_exports__);
  4014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleIn", function() { return circleIn; });
  4015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleOut", function() { return circleOut; });
  4016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleInOut", function() { return circleInOut; });
  4017. function circleIn(t) {
  4018. return 1 - Math.sqrt(1 - t * t);
  4019. }
  4020. function circleOut(t) {
  4021. return Math.sqrt(1 - --t * t);
  4022. }
  4023. function circleInOut(t) {
  4024. return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
  4025. }
  4026. /***/ }),
  4027. /***/ "./node_modules/d3-ease/src/cubic.js":
  4028. /*!*******************************************!*\
  4029. !*** ./node_modules/d3-ease/src/cubic.js ***!
  4030. \*******************************************/
  4031. /*! exports provided: cubicIn, cubicOut, cubicInOut */
  4032. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4033. "use strict";
  4034. __webpack_require__.r(__webpack_exports__);
  4035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicIn", function() { return cubicIn; });
  4036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicOut", function() { return cubicOut; });
  4037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicInOut", function() { return cubicInOut; });
  4038. function cubicIn(t) {
  4039. return t * t * t;
  4040. }
  4041. function cubicOut(t) {
  4042. return --t * t * t + 1;
  4043. }
  4044. function cubicInOut(t) {
  4045. return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
  4046. }
  4047. /***/ }),
  4048. /***/ "./node_modules/d3-ease/src/elastic.js":
  4049. /*!*********************************************!*\
  4050. !*** ./node_modules/d3-ease/src/elastic.js ***!
  4051. \*********************************************/
  4052. /*! exports provided: elasticIn, elasticOut, elasticInOut */
  4053. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4054. "use strict";
  4055. __webpack_require__.r(__webpack_exports__);
  4056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticIn", function() { return elasticIn; });
  4057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticOut", function() { return elasticOut; });
  4058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticInOut", function() { return elasticInOut; });
  4059. var tau = 2 * Math.PI,
  4060. amplitude = 1,
  4061. period = 0.3;
  4062. var elasticIn = (function custom(a, p) {
  4063. var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
  4064. function elasticIn(t) {
  4065. return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);
  4066. }
  4067. elasticIn.amplitude = function(a) { return custom(a, p * tau); };
  4068. elasticIn.period = function(p) { return custom(a, p); };
  4069. return elasticIn;
  4070. })(amplitude, period);
  4071. var elasticOut = (function custom(a, p) {
  4072. var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
  4073. function elasticOut(t) {
  4074. return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);
  4075. }
  4076. elasticOut.amplitude = function(a) { return custom(a, p * tau); };
  4077. elasticOut.period = function(p) { return custom(a, p); };
  4078. return elasticOut;
  4079. })(amplitude, period);
  4080. var elasticInOut = (function custom(a, p) {
  4081. var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
  4082. function elasticInOut(t) {
  4083. return ((t = t * 2 - 1) < 0
  4084. ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)
  4085. : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;
  4086. }
  4087. elasticInOut.amplitude = function(a) { return custom(a, p * tau); };
  4088. elasticInOut.period = function(p) { return custom(a, p); };
  4089. return elasticInOut;
  4090. })(amplitude, period);
  4091. /***/ }),
  4092. /***/ "./node_modules/d3-ease/src/exp.js":
  4093. /*!*****************************************!*\
  4094. !*** ./node_modules/d3-ease/src/exp.js ***!
  4095. \*****************************************/
  4096. /*! exports provided: expIn, expOut, expInOut */
  4097. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4098. "use strict";
  4099. __webpack_require__.r(__webpack_exports__);
  4100. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expIn", function() { return expIn; });
  4101. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expOut", function() { return expOut; });
  4102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expInOut", function() { return expInOut; });
  4103. function expIn(t) {
  4104. return Math.pow(2, 10 * t - 10);
  4105. }
  4106. function expOut(t) {
  4107. return 1 - Math.pow(2, -10 * t);
  4108. }
  4109. function expInOut(t) {
  4110. return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;
  4111. }
  4112. /***/ }),
  4113. /***/ "./node_modules/d3-ease/src/index.js":
  4114. /*!*******************************************!*\
  4115. !*** ./node_modules/d3-ease/src/index.js ***!
  4116. \*******************************************/
  4117. /*! 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 */
  4118. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4119. "use strict";
  4120. __webpack_require__.r(__webpack_exports__);
  4121. /* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "./node_modules/d3-ease/src/linear.js");
  4122. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeLinear", function() { return _linear_js__WEBPACK_IMPORTED_MODULE_0__["linear"]; });
  4123. /* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./quad.js */ "./node_modules/d3-ease/src/quad.js");
  4124. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuad", function() { return _quad_js__WEBPACK_IMPORTED_MODULE_1__["quadInOut"]; });
  4125. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadIn", function() { return _quad_js__WEBPACK_IMPORTED_MODULE_1__["quadIn"]; });
  4126. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadOut", function() { return _quad_js__WEBPACK_IMPORTED_MODULE_1__["quadOut"]; });
  4127. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadInOut", function() { return _quad_js__WEBPACK_IMPORTED_MODULE_1__["quadInOut"]; });
  4128. /* harmony import */ var _cubic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cubic.js */ "./node_modules/d3-ease/src/cubic.js");
  4129. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubic", function() { return _cubic_js__WEBPACK_IMPORTED_MODULE_2__["cubicInOut"]; });
  4130. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicIn", function() { return _cubic_js__WEBPACK_IMPORTED_MODULE_2__["cubicIn"]; });
  4131. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicOut", function() { return _cubic_js__WEBPACK_IMPORTED_MODULE_2__["cubicOut"]; });
  4132. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicInOut", function() { return _cubic_js__WEBPACK_IMPORTED_MODULE_2__["cubicInOut"]; });
  4133. /* harmony import */ var _poly_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./poly.js */ "./node_modules/d3-ease/src/poly.js");
  4134. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePoly", function() { return _poly_js__WEBPACK_IMPORTED_MODULE_3__["polyInOut"]; });
  4135. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyIn", function() { return _poly_js__WEBPACK_IMPORTED_MODULE_3__["polyIn"]; });
  4136. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyOut", function() { return _poly_js__WEBPACK_IMPORTED_MODULE_3__["polyOut"]; });
  4137. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyInOut", function() { return _poly_js__WEBPACK_IMPORTED_MODULE_3__["polyInOut"]; });
  4138. /* harmony import */ var _sin_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sin.js */ "./node_modules/d3-ease/src/sin.js");
  4139. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSin", function() { return _sin_js__WEBPACK_IMPORTED_MODULE_4__["sinInOut"]; });
  4140. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinIn", function() { return _sin_js__WEBPACK_IMPORTED_MODULE_4__["sinIn"]; });
  4141. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinOut", function() { return _sin_js__WEBPACK_IMPORTED_MODULE_4__["sinOut"]; });
  4142. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinInOut", function() { return _sin_js__WEBPACK_IMPORTED_MODULE_4__["sinInOut"]; });
  4143. /* harmony import */ var _exp_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./exp.js */ "./node_modules/d3-ease/src/exp.js");
  4144. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExp", function() { return _exp_js__WEBPACK_IMPORTED_MODULE_5__["expInOut"]; });
  4145. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpIn", function() { return _exp_js__WEBPACK_IMPORTED_MODULE_5__["expIn"]; });
  4146. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpOut", function() { return _exp_js__WEBPACK_IMPORTED_MODULE_5__["expOut"]; });
  4147. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpInOut", function() { return _exp_js__WEBPACK_IMPORTED_MODULE_5__["expInOut"]; });
  4148. /* harmony import */ var _circle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./circle.js */ "./node_modules/d3-ease/src/circle.js");
  4149. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircle", function() { return _circle_js__WEBPACK_IMPORTED_MODULE_6__["circleInOut"]; });
  4150. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleIn", function() { return _circle_js__WEBPACK_IMPORTED_MODULE_6__["circleIn"]; });
  4151. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleOut", function() { return _circle_js__WEBPACK_IMPORTED_MODULE_6__["circleOut"]; });
  4152. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleInOut", function() { return _circle_js__WEBPACK_IMPORTED_MODULE_6__["circleInOut"]; });
  4153. /* harmony import */ var _bounce_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./bounce.js */ "./node_modules/d3-ease/src/bounce.js");
  4154. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounce", function() { return _bounce_js__WEBPACK_IMPORTED_MODULE_7__["bounceOut"]; });
  4155. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceIn", function() { return _bounce_js__WEBPACK_IMPORTED_MODULE_7__["bounceIn"]; });
  4156. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceOut", function() { return _bounce_js__WEBPACK_IMPORTED_MODULE_7__["bounceOut"]; });
  4157. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceInOut", function() { return _bounce_js__WEBPACK_IMPORTED_MODULE_7__["bounceInOut"]; });
  4158. /* harmony import */ var _back_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./back.js */ "./node_modules/d3-ease/src/back.js");
  4159. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBack", function() { return _back_js__WEBPACK_IMPORTED_MODULE_8__["backInOut"]; });
  4160. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackIn", function() { return _back_js__WEBPACK_IMPORTED_MODULE_8__["backIn"]; });
  4161. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackOut", function() { return _back_js__WEBPACK_IMPORTED_MODULE_8__["backOut"]; });
  4162. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackInOut", function() { return _back_js__WEBPACK_IMPORTED_MODULE_8__["backInOut"]; });
  4163. /* harmony import */ var _elastic_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./elastic.js */ "./node_modules/d3-ease/src/elastic.js");
  4164. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElastic", function() { return _elastic_js__WEBPACK_IMPORTED_MODULE_9__["elasticOut"]; });
  4165. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticIn", function() { return _elastic_js__WEBPACK_IMPORTED_MODULE_9__["elasticIn"]; });
  4166. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticOut", function() { return _elastic_js__WEBPACK_IMPORTED_MODULE_9__["elasticOut"]; });
  4167. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticInOut", function() { return _elastic_js__WEBPACK_IMPORTED_MODULE_9__["elasticInOut"]; });
  4168. /***/ }),
  4169. /***/ "./node_modules/d3-ease/src/linear.js":
  4170. /*!********************************************!*\
  4171. !*** ./node_modules/d3-ease/src/linear.js ***!
  4172. \********************************************/
  4173. /*! exports provided: linear */
  4174. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4175. "use strict";
  4176. __webpack_require__.r(__webpack_exports__);
  4177. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linear", function() { return linear; });
  4178. function linear(t) {
  4179. return +t;
  4180. }
  4181. /***/ }),
  4182. /***/ "./node_modules/d3-ease/src/poly.js":
  4183. /*!******************************************!*\
  4184. !*** ./node_modules/d3-ease/src/poly.js ***!
  4185. \******************************************/
  4186. /*! exports provided: polyIn, polyOut, polyInOut */
  4187. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4188. "use strict";
  4189. __webpack_require__.r(__webpack_exports__);
  4190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyIn", function() { return polyIn; });
  4191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyOut", function() { return polyOut; });
  4192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyInOut", function() { return polyInOut; });
  4193. var exponent = 3;
  4194. var polyIn = (function custom(e) {
  4195. e = +e;
  4196. function polyIn(t) {
  4197. return Math.pow(t, e);
  4198. }
  4199. polyIn.exponent = custom;
  4200. return polyIn;
  4201. })(exponent);
  4202. var polyOut = (function custom(e) {
  4203. e = +e;
  4204. function polyOut(t) {
  4205. return 1 - Math.pow(1 - t, e);
  4206. }
  4207. polyOut.exponent = custom;
  4208. return polyOut;
  4209. })(exponent);
  4210. var polyInOut = (function custom(e) {
  4211. e = +e;
  4212. function polyInOut(t) {
  4213. return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;
  4214. }
  4215. polyInOut.exponent = custom;
  4216. return polyInOut;
  4217. })(exponent);
  4218. /***/ }),
  4219. /***/ "./node_modules/d3-ease/src/quad.js":
  4220. /*!******************************************!*\
  4221. !*** ./node_modules/d3-ease/src/quad.js ***!
  4222. \******************************************/
  4223. /*! exports provided: quadIn, quadOut, quadInOut */
  4224. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4225. "use strict";
  4226. __webpack_require__.r(__webpack_exports__);
  4227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadIn", function() { return quadIn; });
  4228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadOut", function() { return quadOut; });
  4229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadInOut", function() { return quadInOut; });
  4230. function quadIn(t) {
  4231. return t * t;
  4232. }
  4233. function quadOut(t) {
  4234. return t * (2 - t);
  4235. }
  4236. function quadInOut(t) {
  4237. return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;
  4238. }
  4239. /***/ }),
  4240. /***/ "./node_modules/d3-ease/src/sin.js":
  4241. /*!*****************************************!*\
  4242. !*** ./node_modules/d3-ease/src/sin.js ***!
  4243. \*****************************************/
  4244. /*! exports provided: sinIn, sinOut, sinInOut */
  4245. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4246. "use strict";
  4247. __webpack_require__.r(__webpack_exports__);
  4248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinIn", function() { return sinIn; });
  4249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinOut", function() { return sinOut; });
  4250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinInOut", function() { return sinInOut; });
  4251. var pi = Math.PI,
  4252. halfPi = pi / 2;
  4253. function sinIn(t) {
  4254. return 1 - Math.cos(t * halfPi);
  4255. }
  4256. function sinOut(t) {
  4257. return Math.sin(t * halfPi);
  4258. }
  4259. function sinInOut(t) {
  4260. return (1 - Math.cos(pi * t)) / 2;
  4261. }
  4262. /***/ }),
  4263. /***/ "./node_modules/d3-fetch/src/blob.js":
  4264. /*!*******************************************!*\
  4265. !*** ./node_modules/d3-fetch/src/blob.js ***!
  4266. \*******************************************/
  4267. /*! exports provided: default */
  4268. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4269. "use strict";
  4270. __webpack_require__.r(__webpack_exports__);
  4271. function responseBlob(response) {
  4272. if (!response.ok) throw new Error(response.status + " " + response.statusText);
  4273. return response.blob();
  4274. }
  4275. /* harmony default export */ __webpack_exports__["default"] = (function(input, init) {
  4276. return fetch(input, init).then(responseBlob);
  4277. });
  4278. /***/ }),
  4279. /***/ "./node_modules/d3-fetch/src/buffer.js":
  4280. /*!*********************************************!*\
  4281. !*** ./node_modules/d3-fetch/src/buffer.js ***!
  4282. \*********************************************/
  4283. /*! exports provided: default */
  4284. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4285. "use strict";
  4286. __webpack_require__.r(__webpack_exports__);
  4287. function responseArrayBuffer(response) {
  4288. if (!response.ok) throw new Error(response.status + " " + response.statusText);
  4289. return response.arrayBuffer();
  4290. }
  4291. /* harmony default export */ __webpack_exports__["default"] = (function(input, init) {
  4292. return fetch(input, init).then(responseArrayBuffer);
  4293. });
  4294. /***/ }),
  4295. /***/ "./node_modules/d3-fetch/src/dsv.js":
  4296. /*!******************************************!*\
  4297. !*** ./node_modules/d3-fetch/src/dsv.js ***!
  4298. \******************************************/
  4299. /*! exports provided: default, csv, tsv */
  4300. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4301. "use strict";
  4302. __webpack_require__.r(__webpack_exports__);
  4303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return dsv; });
  4304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "csv", function() { return csv; });
  4305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tsv", function() { return tsv; });
  4306. /* harmony import */ var d3_dsv__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dsv */ "./node_modules/d3-dsv/src/index.js");
  4307. /* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./text */ "./node_modules/d3-fetch/src/text.js");
  4308. function dsvParse(parse) {
  4309. return function(input, init, row) {
  4310. if (arguments.length === 2 && typeof init === "function") row = init, init = undefined;
  4311. return Object(_text__WEBPACK_IMPORTED_MODULE_1__["default"])(input, init).then(function(response) {
  4312. return parse(response, row);
  4313. });
  4314. };
  4315. }
  4316. function dsv(delimiter, input, init, row) {
  4317. if (arguments.length === 3 && typeof init === "function") row = init, init = undefined;
  4318. var format = Object(d3_dsv__WEBPACK_IMPORTED_MODULE_0__["dsvFormat"])(delimiter);
  4319. return Object(_text__WEBPACK_IMPORTED_MODULE_1__["default"])(input, init).then(function(response) {
  4320. return format.parse(response, row);
  4321. });
  4322. }
  4323. var csv = dsvParse(d3_dsv__WEBPACK_IMPORTED_MODULE_0__["csvParse"]);
  4324. var tsv = dsvParse(d3_dsv__WEBPACK_IMPORTED_MODULE_0__["tsvParse"]);
  4325. /***/ }),
  4326. /***/ "./node_modules/d3-fetch/src/image.js":
  4327. /*!********************************************!*\
  4328. !*** ./node_modules/d3-fetch/src/image.js ***!
  4329. \********************************************/
  4330. /*! exports provided: default */
  4331. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4332. "use strict";
  4333. __webpack_require__.r(__webpack_exports__);
  4334. /* harmony default export */ __webpack_exports__["default"] = (function(input, init) {
  4335. return new Promise(function(resolve, reject) {
  4336. var image = new Image;
  4337. for (var key in init) image[key] = init[key];
  4338. image.onerror = reject;
  4339. image.onload = function() { resolve(image); };
  4340. image.src = input;
  4341. });
  4342. });
  4343. /***/ }),
  4344. /***/ "./node_modules/d3-fetch/src/index.js":
  4345. /*!********************************************!*\
  4346. !*** ./node_modules/d3-fetch/src/index.js ***!
  4347. \********************************************/
  4348. /*! exports provided: blob, buffer, dsv, csv, tsv, image, json, text, xml, html, svg */
  4349. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4350. "use strict";
  4351. __webpack_require__.r(__webpack_exports__);
  4352. /* harmony import */ var _blob__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./blob */ "./node_modules/d3-fetch/src/blob.js");
  4353. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "blob", function() { return _blob__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  4354. /* harmony import */ var _buffer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./buffer */ "./node_modules/d3-fetch/src/buffer.js");
  4355. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return _buffer__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  4356. /* harmony import */ var _dsv__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dsv */ "./node_modules/d3-fetch/src/dsv.js");
  4357. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dsv", function() { return _dsv__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  4358. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csv", function() { return _dsv__WEBPACK_IMPORTED_MODULE_2__["csv"]; });
  4359. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsv", function() { return _dsv__WEBPACK_IMPORTED_MODULE_2__["tsv"]; });
  4360. /* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./image */ "./node_modules/d3-fetch/src/image.js");
  4361. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "image", function() { return _image__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  4362. /* harmony import */ var _json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./json */ "./node_modules/d3-fetch/src/json.js");
  4363. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "json", function() { return _json__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  4364. /* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./text */ "./node_modules/d3-fetch/src/text.js");
  4365. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "text", function() { return _text__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  4366. /* harmony import */ var _xml__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./xml */ "./node_modules/d3-fetch/src/xml.js");
  4367. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "xml", function() { return _xml__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  4368. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "html", function() { return _xml__WEBPACK_IMPORTED_MODULE_6__["html"]; });
  4369. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svg", function() { return _xml__WEBPACK_IMPORTED_MODULE_6__["svg"]; });
  4370. /***/ }),
  4371. /***/ "./node_modules/d3-fetch/src/json.js":
  4372. /*!*******************************************!*\
  4373. !*** ./node_modules/d3-fetch/src/json.js ***!
  4374. \*******************************************/
  4375. /*! exports provided: default */
  4376. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4377. "use strict";
  4378. __webpack_require__.r(__webpack_exports__);
  4379. function responseJson(response) {
  4380. if (!response.ok) throw new Error(response.status + " " + response.statusText);
  4381. return response.json();
  4382. }
  4383. /* harmony default export */ __webpack_exports__["default"] = (function(input, init) {
  4384. return fetch(input, init).then(responseJson);
  4385. });
  4386. /***/ }),
  4387. /***/ "./node_modules/d3-fetch/src/text.js":
  4388. /*!*******************************************!*\
  4389. !*** ./node_modules/d3-fetch/src/text.js ***!
  4390. \*******************************************/
  4391. /*! exports provided: default */
  4392. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4393. "use strict";
  4394. __webpack_require__.r(__webpack_exports__);
  4395. function responseText(response) {
  4396. if (!response.ok) throw new Error(response.status + " " + response.statusText);
  4397. return response.text();
  4398. }
  4399. /* harmony default export */ __webpack_exports__["default"] = (function(input, init) {
  4400. return fetch(input, init).then(responseText);
  4401. });
  4402. /***/ }),
  4403. /***/ "./node_modules/d3-fetch/src/xml.js":
  4404. /*!******************************************!*\
  4405. !*** ./node_modules/d3-fetch/src/xml.js ***!
  4406. \******************************************/
  4407. /*! exports provided: default, html, svg */
  4408. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4409. "use strict";
  4410. __webpack_require__.r(__webpack_exports__);
  4411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "html", function() { return html; });
  4412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "svg", function() { return svg; });
  4413. /* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./text */ "./node_modules/d3-fetch/src/text.js");
  4414. function parser(type) {
  4415. return function(input, init) {
  4416. return Object(_text__WEBPACK_IMPORTED_MODULE_0__["default"])(input, init).then(function(text) {
  4417. return (new DOMParser).parseFromString(text, type);
  4418. });
  4419. };
  4420. }
  4421. /* harmony default export */ __webpack_exports__["default"] = (parser("application/xml"));
  4422. var html = parser("text/html");
  4423. var svg = parser("image/svg+xml");
  4424. /***/ }),
  4425. /***/ "./node_modules/d3-force/src/center.js":
  4426. /*!*********************************************!*\
  4427. !*** ./node_modules/d3-force/src/center.js ***!
  4428. \*********************************************/
  4429. /*! exports provided: default */
  4430. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4431. "use strict";
  4432. __webpack_require__.r(__webpack_exports__);
  4433. /* harmony default export */ __webpack_exports__["default"] = (function(x, y) {
  4434. var nodes;
  4435. if (x == null) x = 0;
  4436. if (y == null) y = 0;
  4437. function force() {
  4438. var i,
  4439. n = nodes.length,
  4440. node,
  4441. sx = 0,
  4442. sy = 0;
  4443. for (i = 0; i < n; ++i) {
  4444. node = nodes[i], sx += node.x, sy += node.y;
  4445. }
  4446. for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) {
  4447. node = nodes[i], node.x -= sx, node.y -= sy;
  4448. }
  4449. }
  4450. force.initialize = function(_) {
  4451. nodes = _;
  4452. };
  4453. force.x = function(_) {
  4454. return arguments.length ? (x = +_, force) : x;
  4455. };
  4456. force.y = function(_) {
  4457. return arguments.length ? (y = +_, force) : y;
  4458. };
  4459. return force;
  4460. });
  4461. /***/ }),
  4462. /***/ "./node_modules/d3-force/src/collide.js":
  4463. /*!**********************************************!*\
  4464. !*** ./node_modules/d3-force/src/collide.js ***!
  4465. \**********************************************/
  4466. /*! exports provided: default */
  4467. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4468. "use strict";
  4469. __webpack_require__.r(__webpack_exports__);
  4470. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  4471. /* harmony import */ var _jiggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./jiggle */ "./node_modules/d3-force/src/jiggle.js");
  4472. /* harmony import */ var d3_quadtree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-quadtree */ "./node_modules/d3-quadtree/src/index.js");
  4473. function x(d) {
  4474. return d.x + d.vx;
  4475. }
  4476. function y(d) {
  4477. return d.y + d.vy;
  4478. }
  4479. /* harmony default export */ __webpack_exports__["default"] = (function(radius) {
  4480. var nodes,
  4481. radii,
  4482. strength = 1,
  4483. iterations = 1;
  4484. if (typeof radius !== "function") radius = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(radius == null ? 1 : +radius);
  4485. function force() {
  4486. var i, n = nodes.length,
  4487. tree,
  4488. node,
  4489. xi,
  4490. yi,
  4491. ri,
  4492. ri2;
  4493. for (var k = 0; k < iterations; ++k) {
  4494. tree = Object(d3_quadtree__WEBPACK_IMPORTED_MODULE_2__["quadtree"])(nodes, x, y).visitAfter(prepare);
  4495. for (i = 0; i < n; ++i) {
  4496. node = nodes[i];
  4497. ri = radii[node.index], ri2 = ri * ri;
  4498. xi = node.x + node.vx;
  4499. yi = node.y + node.vy;
  4500. tree.visit(apply);
  4501. }
  4502. }
  4503. function apply(quad, x0, y0, x1, y1) {
  4504. var data = quad.data, rj = quad.r, r = ri + rj;
  4505. if (data) {
  4506. if (data.index > node.index) {
  4507. var x = xi - data.x - data.vx,
  4508. y = yi - data.y - data.vy,
  4509. l = x * x + y * y;
  4510. if (l < r * r) {
  4511. if (x === 0) x = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += x * x;
  4512. if (y === 0) y = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += y * y;
  4513. l = (r - (l = Math.sqrt(l))) / l * strength;
  4514. node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj));
  4515. node.vy += (y *= l) * r;
  4516. data.vx -= x * (r = 1 - r);
  4517. data.vy -= y * r;
  4518. }
  4519. }
  4520. return;
  4521. }
  4522. return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;
  4523. }
  4524. }
  4525. function prepare(quad) {
  4526. if (quad.data) return quad.r = radii[quad.data.index];
  4527. for (var i = quad.r = 0; i < 4; ++i) {
  4528. if (quad[i] && quad[i].r > quad.r) {
  4529. quad.r = quad[i].r;
  4530. }
  4531. }
  4532. }
  4533. function initialize() {
  4534. if (!nodes) return;
  4535. var i, n = nodes.length, node;
  4536. radii = new Array(n);
  4537. for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes);
  4538. }
  4539. force.initialize = function(_) {
  4540. nodes = _;
  4541. initialize();
  4542. };
  4543. force.iterations = function(_) {
  4544. return arguments.length ? (iterations = +_, force) : iterations;
  4545. };
  4546. force.strength = function(_) {
  4547. return arguments.length ? (strength = +_, force) : strength;
  4548. };
  4549. force.radius = function(_) {
  4550. return arguments.length ? (radius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : radius;
  4551. };
  4552. return force;
  4553. });
  4554. /***/ }),
  4555. /***/ "./node_modules/d3-force/src/constant.js":
  4556. /*!***********************************************!*\
  4557. !*** ./node_modules/d3-force/src/constant.js ***!
  4558. \***********************************************/
  4559. /*! exports provided: default */
  4560. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4561. "use strict";
  4562. __webpack_require__.r(__webpack_exports__);
  4563. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  4564. return function() {
  4565. return x;
  4566. };
  4567. });
  4568. /***/ }),
  4569. /***/ "./node_modules/d3-force/src/index.js":
  4570. /*!********************************************!*\
  4571. !*** ./node_modules/d3-force/src/index.js ***!
  4572. \********************************************/
  4573. /*! exports provided: forceCenter, forceCollide, forceLink, forceManyBody, forceRadial, forceSimulation, forceX, forceY */
  4574. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4575. "use strict";
  4576. __webpack_require__.r(__webpack_exports__);
  4577. /* harmony import */ var _center__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./center */ "./node_modules/d3-force/src/center.js");
  4578. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceCenter", function() { return _center__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  4579. /* harmony import */ var _collide__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./collide */ "./node_modules/d3-force/src/collide.js");
  4580. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceCollide", function() { return _collide__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  4581. /* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./link */ "./node_modules/d3-force/src/link.js");
  4582. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceLink", function() { return _link__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  4583. /* harmony import */ var _manyBody__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./manyBody */ "./node_modules/d3-force/src/manyBody.js");
  4584. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceManyBody", function() { return _manyBody__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  4585. /* harmony import */ var _radial__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./radial */ "./node_modules/d3-force/src/radial.js");
  4586. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceRadial", function() { return _radial__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  4587. /* harmony import */ var _simulation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./simulation */ "./node_modules/d3-force/src/simulation.js");
  4588. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceSimulation", function() { return _simulation__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  4589. /* harmony import */ var _x__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./x */ "./node_modules/d3-force/src/x.js");
  4590. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceX", function() { return _x__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  4591. /* harmony import */ var _y__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./y */ "./node_modules/d3-force/src/y.js");
  4592. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceY", function() { return _y__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  4593. /***/ }),
  4594. /***/ "./node_modules/d3-force/src/jiggle.js":
  4595. /*!*********************************************!*\
  4596. !*** ./node_modules/d3-force/src/jiggle.js ***!
  4597. \*********************************************/
  4598. /*! exports provided: default */
  4599. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4600. "use strict";
  4601. __webpack_require__.r(__webpack_exports__);
  4602. /* harmony default export */ __webpack_exports__["default"] = (function() {
  4603. return (Math.random() - 0.5) * 1e-6;
  4604. });
  4605. /***/ }),
  4606. /***/ "./node_modules/d3-force/src/link.js":
  4607. /*!*******************************************!*\
  4608. !*** ./node_modules/d3-force/src/link.js ***!
  4609. \*******************************************/
  4610. /*! exports provided: default */
  4611. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4612. "use strict";
  4613. __webpack_require__.r(__webpack_exports__);
  4614. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  4615. /* harmony import */ var _jiggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./jiggle */ "./node_modules/d3-force/src/jiggle.js");
  4616. /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/src/index.js");
  4617. function index(d) {
  4618. return d.index;
  4619. }
  4620. function find(nodeById, nodeId) {
  4621. var node = nodeById.get(nodeId);
  4622. if (!node) throw new Error("missing: " + nodeId);
  4623. return node;
  4624. }
  4625. /* harmony default export */ __webpack_exports__["default"] = (function(links) {
  4626. var id = index,
  4627. strength = defaultStrength,
  4628. strengths,
  4629. distance = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(30),
  4630. distances,
  4631. nodes,
  4632. count,
  4633. bias,
  4634. iterations = 1;
  4635. if (links == null) links = [];
  4636. function defaultStrength(link) {
  4637. return 1 / Math.min(count[link.source.index], count[link.target.index]);
  4638. }
  4639. function force(alpha) {
  4640. for (var k = 0, n = links.length; k < iterations; ++k) {
  4641. for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) {
  4642. link = links[i], source = link.source, target = link.target;
  4643. x = target.x + target.vx - source.x - source.vx || Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])();
  4644. y = target.y + target.vy - source.y - source.vy || Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])();
  4645. l = Math.sqrt(x * x + y * y);
  4646. l = (l - distances[i]) / l * alpha * strengths[i];
  4647. x *= l, y *= l;
  4648. target.vx -= x * (b = bias[i]);
  4649. target.vy -= y * b;
  4650. source.vx += x * (b = 1 - b);
  4651. source.vy += y * b;
  4652. }
  4653. }
  4654. }
  4655. function initialize() {
  4656. if (!nodes) return;
  4657. var i,
  4658. n = nodes.length,
  4659. m = links.length,
  4660. nodeById = Object(d3_collection__WEBPACK_IMPORTED_MODULE_2__["map"])(nodes, id),
  4661. link;
  4662. for (i = 0, count = new Array(n); i < m; ++i) {
  4663. link = links[i], link.index = i;
  4664. if (typeof link.source !== "object") link.source = find(nodeById, link.source);
  4665. if (typeof link.target !== "object") link.target = find(nodeById, link.target);
  4666. count[link.source.index] = (count[link.source.index] || 0) + 1;
  4667. count[link.target.index] = (count[link.target.index] || 0) + 1;
  4668. }
  4669. for (i = 0, bias = new Array(m); i < m; ++i) {
  4670. link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]);
  4671. }
  4672. strengths = new Array(m), initializeStrength();
  4673. distances = new Array(m), initializeDistance();
  4674. }
  4675. function initializeStrength() {
  4676. if (!nodes) return;
  4677. for (var i = 0, n = links.length; i < n; ++i) {
  4678. strengths[i] = +strength(links[i], i, links);
  4679. }
  4680. }
  4681. function initializeDistance() {
  4682. if (!nodes) return;
  4683. for (var i = 0, n = links.length; i < n; ++i) {
  4684. distances[i] = +distance(links[i], i, links);
  4685. }
  4686. }
  4687. force.initialize = function(_) {
  4688. nodes = _;
  4689. initialize();
  4690. };
  4691. force.links = function(_) {
  4692. return arguments.length ? (links = _, initialize(), force) : links;
  4693. };
  4694. force.id = function(_) {
  4695. return arguments.length ? (id = _, force) : id;
  4696. };
  4697. force.iterations = function(_) {
  4698. return arguments.length ? (iterations = +_, force) : iterations;
  4699. };
  4700. force.strength = function(_) {
  4701. return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initializeStrength(), force) : strength;
  4702. };
  4703. force.distance = function(_) {
  4704. return arguments.length ? (distance = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initializeDistance(), force) : distance;
  4705. };
  4706. return force;
  4707. });
  4708. /***/ }),
  4709. /***/ "./node_modules/d3-force/src/manyBody.js":
  4710. /*!***********************************************!*\
  4711. !*** ./node_modules/d3-force/src/manyBody.js ***!
  4712. \***********************************************/
  4713. /*! exports provided: default */
  4714. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4715. "use strict";
  4716. __webpack_require__.r(__webpack_exports__);
  4717. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  4718. /* harmony import */ var _jiggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./jiggle */ "./node_modules/d3-force/src/jiggle.js");
  4719. /* harmony import */ var d3_quadtree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-quadtree */ "./node_modules/d3-quadtree/src/index.js");
  4720. /* harmony import */ var _simulation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./simulation */ "./node_modules/d3-force/src/simulation.js");
  4721. /* harmony default export */ __webpack_exports__["default"] = (function() {
  4722. var nodes,
  4723. node,
  4724. alpha,
  4725. strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(-30),
  4726. strengths,
  4727. distanceMin2 = 1,
  4728. distanceMax2 = Infinity,
  4729. theta2 = 0.81;
  4730. function force(_) {
  4731. 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);
  4732. for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply);
  4733. }
  4734. function initialize() {
  4735. if (!nodes) return;
  4736. var i, n = nodes.length, node;
  4737. strengths = new Array(n);
  4738. for (i = 0; i < n; ++i) node = nodes[i], strengths[node.index] = +strength(node, i, nodes);
  4739. }
  4740. function accumulate(quad) {
  4741. var strength = 0, q, c, weight = 0, x, y, i;
  4742. // For internal nodes, accumulate forces from child quadrants.
  4743. if (quad.length) {
  4744. for (x = y = i = 0; i < 4; ++i) {
  4745. if ((q = quad[i]) && (c = Math.abs(q.value))) {
  4746. strength += q.value, weight += c, x += c * q.x, y += c * q.y;
  4747. }
  4748. }
  4749. quad.x = x / weight;
  4750. quad.y = y / weight;
  4751. }
  4752. // For leaf nodes, accumulate forces from coincident quadrants.
  4753. else {
  4754. q = quad;
  4755. q.x = q.data.x;
  4756. q.y = q.data.y;
  4757. do strength += strengths[q.data.index];
  4758. while (q = q.next);
  4759. }
  4760. quad.value = strength;
  4761. }
  4762. function apply(quad, x1, _, x2) {
  4763. if (!quad.value) return true;
  4764. var x = quad.x - node.x,
  4765. y = quad.y - node.y,
  4766. w = x2 - x1,
  4767. l = x * x + y * y;
  4768. // Apply the Barnes-Hut approximation if possible.
  4769. // Limit forces for very close nodes; randomize direction if coincident.
  4770. if (w * w / theta2 < l) {
  4771. if (l < distanceMax2) {
  4772. if (x === 0) x = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += x * x;
  4773. if (y === 0) y = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += y * y;
  4774. if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);
  4775. node.vx += x * quad.value * alpha / l;
  4776. node.vy += y * quad.value * alpha / l;
  4777. }
  4778. return true;
  4779. }
  4780. // Otherwise, process points directly.
  4781. else if (quad.length || l >= distanceMax2) return;
  4782. // Limit forces for very close nodes; randomize direction if coincident.
  4783. if (quad.data !== node || quad.next) {
  4784. if (x === 0) x = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += x * x;
  4785. if (y === 0) y = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += y * y;
  4786. if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);
  4787. }
  4788. do if (quad.data !== node) {
  4789. w = strengths[quad.data.index] * alpha / l;
  4790. node.vx += x * w;
  4791. node.vy += y * w;
  4792. } while (quad = quad.next);
  4793. }
  4794. force.initialize = function(_) {
  4795. nodes = _;
  4796. initialize();
  4797. };
  4798. force.strength = function(_) {
  4799. return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength;
  4800. };
  4801. force.distanceMin = function(_) {
  4802. return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2);
  4803. };
  4804. force.distanceMax = function(_) {
  4805. return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2);
  4806. };
  4807. force.theta = function(_) {
  4808. return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2);
  4809. };
  4810. return force;
  4811. });
  4812. /***/ }),
  4813. /***/ "./node_modules/d3-force/src/radial.js":
  4814. /*!*********************************************!*\
  4815. !*** ./node_modules/d3-force/src/radial.js ***!
  4816. \*********************************************/
  4817. /*! exports provided: default */
  4818. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4819. "use strict";
  4820. __webpack_require__.r(__webpack_exports__);
  4821. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  4822. /* harmony default export */ __webpack_exports__["default"] = (function(radius, x, y) {
  4823. var nodes,
  4824. strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0.1),
  4825. strengths,
  4826. radiuses;
  4827. if (typeof radius !== "function") radius = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+radius);
  4828. if (x == null) x = 0;
  4829. if (y == null) y = 0;
  4830. function force(alpha) {
  4831. for (var i = 0, n = nodes.length; i < n; ++i) {
  4832. var node = nodes[i],
  4833. dx = node.x - x || 1e-6,
  4834. dy = node.y - y || 1e-6,
  4835. r = Math.sqrt(dx * dx + dy * dy),
  4836. k = (radiuses[i] - r) * strengths[i] * alpha / r;
  4837. node.vx += dx * k;
  4838. node.vy += dy * k;
  4839. }
  4840. }
  4841. function initialize() {
  4842. if (!nodes) return;
  4843. var i, n = nodes.length;
  4844. strengths = new Array(n);
  4845. radiuses = new Array(n);
  4846. for (i = 0; i < n; ++i) {
  4847. radiuses[i] = +radius(nodes[i], i, nodes);
  4848. strengths[i] = isNaN(radiuses[i]) ? 0 : +strength(nodes[i], i, nodes);
  4849. }
  4850. }
  4851. force.initialize = function(_) {
  4852. nodes = _, initialize();
  4853. };
  4854. force.strength = function(_) {
  4855. return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength;
  4856. };
  4857. force.radius = function(_) {
  4858. return arguments.length ? (radius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : radius;
  4859. };
  4860. force.x = function(_) {
  4861. return arguments.length ? (x = +_, force) : x;
  4862. };
  4863. force.y = function(_) {
  4864. return arguments.length ? (y = +_, force) : y;
  4865. };
  4866. return force;
  4867. });
  4868. /***/ }),
  4869. /***/ "./node_modules/d3-force/src/simulation.js":
  4870. /*!*************************************************!*\
  4871. !*** ./node_modules/d3-force/src/simulation.js ***!
  4872. \*************************************************/
  4873. /*! exports provided: x, y, default */
  4874. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4875. "use strict";
  4876. __webpack_require__.r(__webpack_exports__);
  4877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return x; });
  4878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return y; });
  4879. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  4880. /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/src/index.js");
  4881. /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/src/index.js");
  4882. function x(d) {
  4883. return d.x;
  4884. }
  4885. function y(d) {
  4886. return d.y;
  4887. }
  4888. var initialRadius = 10,
  4889. initialAngle = Math.PI * (3 - Math.sqrt(5));
  4890. /* harmony default export */ __webpack_exports__["default"] = (function(nodes) {
  4891. var simulation,
  4892. alpha = 1,
  4893. alphaMin = 0.001,
  4894. alphaDecay = 1 - Math.pow(alphaMin, 1 / 300),
  4895. alphaTarget = 0,
  4896. velocityDecay = 0.6,
  4897. forces = Object(d3_collection__WEBPACK_IMPORTED_MODULE_1__["map"])(),
  4898. stepper = Object(d3_timer__WEBPACK_IMPORTED_MODULE_2__["timer"])(step),
  4899. event = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("tick", "end");
  4900. if (nodes == null) nodes = [];
  4901. function step() {
  4902. tick();
  4903. event.call("tick", simulation);
  4904. if (alpha < alphaMin) {
  4905. stepper.stop();
  4906. event.call("end", simulation);
  4907. }
  4908. }
  4909. function tick(iterations) {
  4910. var i, n = nodes.length, node;
  4911. if (iterations === undefined) iterations = 1;
  4912. for (var k = 0; k < iterations; ++k) {
  4913. alpha += (alphaTarget - alpha) * alphaDecay;
  4914. forces.each(function (force) {
  4915. force(alpha);
  4916. });
  4917. for (i = 0; i < n; ++i) {
  4918. node = nodes[i];
  4919. if (node.fx == null) node.x += node.vx *= velocityDecay;
  4920. else node.x = node.fx, node.vx = 0;
  4921. if (node.fy == null) node.y += node.vy *= velocityDecay;
  4922. else node.y = node.fy, node.vy = 0;
  4923. }
  4924. }
  4925. return simulation;
  4926. }
  4927. function initializeNodes() {
  4928. for (var i = 0, n = nodes.length, node; i < n; ++i) {
  4929. node = nodes[i], node.index = i;
  4930. if (node.fx != null) node.x = node.fx;
  4931. if (node.fy != null) node.y = node.fy;
  4932. if (isNaN(node.x) || isNaN(node.y)) {
  4933. var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle;
  4934. node.x = radius * Math.cos(angle);
  4935. node.y = radius * Math.sin(angle);
  4936. }
  4937. if (isNaN(node.vx) || isNaN(node.vy)) {
  4938. node.vx = node.vy = 0;
  4939. }
  4940. }
  4941. }
  4942. function initializeForce(force) {
  4943. if (force.initialize) force.initialize(nodes);
  4944. return force;
  4945. }
  4946. initializeNodes();
  4947. return simulation = {
  4948. tick: tick,
  4949. restart: function() {
  4950. return stepper.restart(step), simulation;
  4951. },
  4952. stop: function() {
  4953. return stepper.stop(), simulation;
  4954. },
  4955. nodes: function(_) {
  4956. return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes;
  4957. },
  4958. alpha: function(_) {
  4959. return arguments.length ? (alpha = +_, simulation) : alpha;
  4960. },
  4961. alphaMin: function(_) {
  4962. return arguments.length ? (alphaMin = +_, simulation) : alphaMin;
  4963. },
  4964. alphaDecay: function(_) {
  4965. return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay;
  4966. },
  4967. alphaTarget: function(_) {
  4968. return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget;
  4969. },
  4970. velocityDecay: function(_) {
  4971. return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay;
  4972. },
  4973. force: function(name, _) {
  4974. return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name);
  4975. },
  4976. find: function(x, y, radius) {
  4977. var i = 0,
  4978. n = nodes.length,
  4979. dx,
  4980. dy,
  4981. d2,
  4982. node,
  4983. closest;
  4984. if (radius == null) radius = Infinity;
  4985. else radius *= radius;
  4986. for (i = 0; i < n; ++i) {
  4987. node = nodes[i];
  4988. dx = x - node.x;
  4989. dy = y - node.y;
  4990. d2 = dx * dx + dy * dy;
  4991. if (d2 < radius) closest = node, radius = d2;
  4992. }
  4993. return closest;
  4994. },
  4995. on: function(name, _) {
  4996. return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name);
  4997. }
  4998. };
  4999. });
  5000. /***/ }),
  5001. /***/ "./node_modules/d3-force/src/x.js":
  5002. /*!****************************************!*\
  5003. !*** ./node_modules/d3-force/src/x.js ***!
  5004. \****************************************/
  5005. /*! exports provided: default */
  5006. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5007. "use strict";
  5008. __webpack_require__.r(__webpack_exports__);
  5009. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  5010. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  5011. var strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0.1),
  5012. nodes,
  5013. strengths,
  5014. xz;
  5015. if (typeof x !== "function") x = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(x == null ? 0 : +x);
  5016. function force(alpha) {
  5017. for (var i = 0, n = nodes.length, node; i < n; ++i) {
  5018. node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha;
  5019. }
  5020. }
  5021. function initialize() {
  5022. if (!nodes) return;
  5023. var i, n = nodes.length;
  5024. strengths = new Array(n);
  5025. xz = new Array(n);
  5026. for (i = 0; i < n; ++i) {
  5027. strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);
  5028. }
  5029. }
  5030. force.initialize = function(_) {
  5031. nodes = _;
  5032. initialize();
  5033. };
  5034. force.strength = function(_) {
  5035. return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength;
  5036. };
  5037. force.x = function(_) {
  5038. return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : x;
  5039. };
  5040. return force;
  5041. });
  5042. /***/ }),
  5043. /***/ "./node_modules/d3-force/src/y.js":
  5044. /*!****************************************!*\
  5045. !*** ./node_modules/d3-force/src/y.js ***!
  5046. \****************************************/
  5047. /*! exports provided: default */
  5048. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5049. "use strict";
  5050. __webpack_require__.r(__webpack_exports__);
  5051. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js");
  5052. /* harmony default export */ __webpack_exports__["default"] = (function(y) {
  5053. var strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0.1),
  5054. nodes,
  5055. strengths,
  5056. yz;
  5057. if (typeof y !== "function") y = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(y == null ? 0 : +y);
  5058. function force(alpha) {
  5059. for (var i = 0, n = nodes.length, node; i < n; ++i) {
  5060. node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha;
  5061. }
  5062. }
  5063. function initialize() {
  5064. if (!nodes) return;
  5065. var i, n = nodes.length;
  5066. strengths = new Array(n);
  5067. yz = new Array(n);
  5068. for (i = 0; i < n; ++i) {
  5069. strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);
  5070. }
  5071. }
  5072. force.initialize = function(_) {
  5073. nodes = _;
  5074. initialize();
  5075. };
  5076. force.strength = function(_) {
  5077. return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength;
  5078. };
  5079. force.y = function(_) {
  5080. return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : y;
  5081. };
  5082. return force;
  5083. });
  5084. /***/ }),
  5085. /***/ "./node_modules/d3-format/src/defaultLocale.js":
  5086. /*!*****************************************************!*\
  5087. !*** ./node_modules/d3-format/src/defaultLocale.js ***!
  5088. \*****************************************************/
  5089. /*! exports provided: format, formatPrefix, default */
  5090. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5091. "use strict";
  5092. __webpack_require__.r(__webpack_exports__);
  5093. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "format", function() { return format; });
  5094. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatPrefix", function() { return formatPrefix; });
  5095. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return defaultLocale; });
  5096. /* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "./node_modules/d3-format/src/locale.js");
  5097. var locale;
  5098. var format;
  5099. var formatPrefix;
  5100. defaultLocale({
  5101. decimal: ".",
  5102. thousands: ",",
  5103. grouping: [3],
  5104. currency: ["$", ""],
  5105. minus: "-"
  5106. });
  5107. function defaultLocale(definition) {
  5108. locale = Object(_locale_js__WEBPACK_IMPORTED_MODULE_0__["default"])(definition);
  5109. format = locale.format;
  5110. formatPrefix = locale.formatPrefix;
  5111. return locale;
  5112. }
  5113. /***/ }),
  5114. /***/ "./node_modules/d3-format/src/exponent.js":
  5115. /*!************************************************!*\
  5116. !*** ./node_modules/d3-format/src/exponent.js ***!
  5117. \************************************************/
  5118. /*! exports provided: default */
  5119. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5120. "use strict";
  5121. __webpack_require__.r(__webpack_exports__);
  5122. /* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "./node_modules/d3-format/src/formatDecimal.js");
  5123. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  5124. return x = Object(_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(x)), x ? x[1] : NaN;
  5125. });
  5126. /***/ }),
  5127. /***/ "./node_modules/d3-format/src/formatDecimal.js":
  5128. /*!*****************************************************!*\
  5129. !*** ./node_modules/d3-format/src/formatDecimal.js ***!
  5130. \*****************************************************/
  5131. /*! exports provided: default */
  5132. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5133. "use strict";
  5134. __webpack_require__.r(__webpack_exports__);
  5135. // Computes the decimal coefficient and exponent of the specified number x with
  5136. // significant digits p, where x is positive and p is in [1, 21] or undefined.
  5137. // For example, formatDecimal(1.23) returns ["123", 0].
  5138. /* harmony default export */ __webpack_exports__["default"] = (function(x, p) {
  5139. if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity
  5140. var i, coefficient = x.slice(0, i);
  5141. // The string returned by toExponential either has the form \d\.\d+e[-+]\d+
  5142. // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3).
  5143. return [
  5144. coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
  5145. +x.slice(i + 1)
  5146. ];
  5147. });
  5148. /***/ }),
  5149. /***/ "./node_modules/d3-format/src/formatGroup.js":
  5150. /*!***************************************************!*\
  5151. !*** ./node_modules/d3-format/src/formatGroup.js ***!
  5152. \***************************************************/
  5153. /*! exports provided: default */
  5154. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5155. "use strict";
  5156. __webpack_require__.r(__webpack_exports__);
  5157. /* harmony default export */ __webpack_exports__["default"] = (function(grouping, thousands) {
  5158. return function(value, width) {
  5159. var i = value.length,
  5160. t = [],
  5161. j = 0,
  5162. g = grouping[0],
  5163. length = 0;
  5164. while (i > 0 && g > 0) {
  5165. if (length + g + 1 > width) g = Math.max(1, width - length);
  5166. t.push(value.substring(i -= g, i + g));
  5167. if ((length += g + 1) > width) break;
  5168. g = grouping[j = (j + 1) % grouping.length];
  5169. }
  5170. return t.reverse().join(thousands);
  5171. };
  5172. });
  5173. /***/ }),
  5174. /***/ "./node_modules/d3-format/src/formatNumerals.js":
  5175. /*!******************************************************!*\
  5176. !*** ./node_modules/d3-format/src/formatNumerals.js ***!
  5177. \******************************************************/
  5178. /*! exports provided: default */
  5179. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5180. "use strict";
  5181. __webpack_require__.r(__webpack_exports__);
  5182. /* harmony default export */ __webpack_exports__["default"] = (function(numerals) {
  5183. return function(value) {
  5184. return value.replace(/[0-9]/g, function(i) {
  5185. return numerals[+i];
  5186. });
  5187. };
  5188. });
  5189. /***/ }),
  5190. /***/ "./node_modules/d3-format/src/formatPrefixAuto.js":
  5191. /*!********************************************************!*\
  5192. !*** ./node_modules/d3-format/src/formatPrefixAuto.js ***!
  5193. \********************************************************/
  5194. /*! exports provided: prefixExponent, default */
  5195. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5196. "use strict";
  5197. __webpack_require__.r(__webpack_exports__);
  5198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefixExponent", function() { return prefixExponent; });
  5199. /* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "./node_modules/d3-format/src/formatDecimal.js");
  5200. var prefixExponent;
  5201. /* harmony default export */ __webpack_exports__["default"] = (function(x, p) {
  5202. var d = Object(_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__["default"])(x, p);
  5203. if (!d) return x + "";
  5204. var coefficient = d[0],
  5205. exponent = d[1],
  5206. i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
  5207. n = coefficient.length;
  5208. return i === n ? coefficient
  5209. : i > n ? coefficient + new Array(i - n + 1).join("0")
  5210. : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i)
  5211. : "0." + new Array(1 - i).join("0") + Object(_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__["default"])(x, Math.max(0, p + i - 1))[0]; // less than 1y!
  5212. });
  5213. /***/ }),
  5214. /***/ "./node_modules/d3-format/src/formatRounded.js":
  5215. /*!*****************************************************!*\
  5216. !*** ./node_modules/d3-format/src/formatRounded.js ***!
  5217. \*****************************************************/
  5218. /*! exports provided: default */
  5219. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5220. "use strict";
  5221. __webpack_require__.r(__webpack_exports__);
  5222. /* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "./node_modules/d3-format/src/formatDecimal.js");
  5223. /* harmony default export */ __webpack_exports__["default"] = (function(x, p) {
  5224. var d = Object(_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__["default"])(x, p);
  5225. if (!d) return x + "";
  5226. var coefficient = d[0],
  5227. exponent = d[1];
  5228. return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient
  5229. : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1)
  5230. : coefficient + new Array(exponent - coefficient.length + 2).join("0");
  5231. });
  5232. /***/ }),
  5233. /***/ "./node_modules/d3-format/src/formatSpecifier.js":
  5234. /*!*******************************************************!*\
  5235. !*** ./node_modules/d3-format/src/formatSpecifier.js ***!
  5236. \*******************************************************/
  5237. /*! exports provided: default, FormatSpecifier */
  5238. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5239. "use strict";
  5240. __webpack_require__.r(__webpack_exports__);
  5241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return formatSpecifier; });
  5242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormatSpecifier", function() { return FormatSpecifier; });
  5243. // [[fill]align][sign][symbol][0][width][,][.precision][~][type]
  5244. var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
  5245. function formatSpecifier(specifier) {
  5246. if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
  5247. var match;
  5248. return new FormatSpecifier({
  5249. fill: match[1],
  5250. align: match[2],
  5251. sign: match[3],
  5252. symbol: match[4],
  5253. zero: match[5],
  5254. width: match[6],
  5255. comma: match[7],
  5256. precision: match[8] && match[8].slice(1),
  5257. trim: match[9],
  5258. type: match[10]
  5259. });
  5260. }
  5261. formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof
  5262. function FormatSpecifier(specifier) {
  5263. this.fill = specifier.fill === undefined ? " " : specifier.fill + "";
  5264. this.align = specifier.align === undefined ? ">" : specifier.align + "";
  5265. this.sign = specifier.sign === undefined ? "-" : specifier.sign + "";
  5266. this.symbol = specifier.symbol === undefined ? "" : specifier.symbol + "";
  5267. this.zero = !!specifier.zero;
  5268. this.width = specifier.width === undefined ? undefined : +specifier.width;
  5269. this.comma = !!specifier.comma;
  5270. this.precision = specifier.precision === undefined ? undefined : +specifier.precision;
  5271. this.trim = !!specifier.trim;
  5272. this.type = specifier.type === undefined ? "" : specifier.type + "";
  5273. }
  5274. FormatSpecifier.prototype.toString = function() {
  5275. return this.fill
  5276. + this.align
  5277. + this.sign
  5278. + this.symbol
  5279. + (this.zero ? "0" : "")
  5280. + (this.width === undefined ? "" : Math.max(1, this.width | 0))
  5281. + (this.comma ? "," : "")
  5282. + (this.precision === undefined ? "" : "." + Math.max(0, this.precision | 0))
  5283. + (this.trim ? "~" : "")
  5284. + this.type;
  5285. };
  5286. /***/ }),
  5287. /***/ "./node_modules/d3-format/src/formatTrim.js":
  5288. /*!**************************************************!*\
  5289. !*** ./node_modules/d3-format/src/formatTrim.js ***!
  5290. \**************************************************/
  5291. /*! exports provided: default */
  5292. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5293. "use strict";
  5294. __webpack_require__.r(__webpack_exports__);
  5295. // Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
  5296. /* harmony default export */ __webpack_exports__["default"] = (function(s) {
  5297. out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
  5298. switch (s[i]) {
  5299. case ".": i0 = i1 = i; break;
  5300. case "0": if (i0 === 0) i0 = i; i1 = i; break;
  5301. default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;
  5302. }
  5303. }
  5304. return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
  5305. });
  5306. /***/ }),
  5307. /***/ "./node_modules/d3-format/src/formatTypes.js":
  5308. /*!***************************************************!*\
  5309. !*** ./node_modules/d3-format/src/formatTypes.js ***!
  5310. \***************************************************/
  5311. /*! exports provided: default */
  5312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5313. "use strict";
  5314. __webpack_require__.r(__webpack_exports__);
  5315. /* harmony import */ var _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatPrefixAuto.js */ "./node_modules/d3-format/src/formatPrefixAuto.js");
  5316. /* harmony import */ var _formatRounded_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatRounded.js */ "./node_modules/d3-format/src/formatRounded.js");
  5317. /* harmony default export */ __webpack_exports__["default"] = ({
  5318. "%": function(x, p) { return (x * 100).toFixed(p); },
  5319. "b": function(x) { return Math.round(x).toString(2); },
  5320. "c": function(x) { return x + ""; },
  5321. "d": function(x) { return Math.round(x).toString(10); },
  5322. "e": function(x, p) { return x.toExponential(p); },
  5323. "f": function(x, p) { return x.toFixed(p); },
  5324. "g": function(x, p) { return x.toPrecision(p); },
  5325. "o": function(x) { return Math.round(x).toString(8); },
  5326. "p": function(x, p) { return Object(_formatRounded_js__WEBPACK_IMPORTED_MODULE_1__["default"])(x * 100, p); },
  5327. "r": _formatRounded_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  5328. "s": _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  5329. "X": function(x) { return Math.round(x).toString(16).toUpperCase(); },
  5330. "x": function(x) { return Math.round(x).toString(16); }
  5331. });
  5332. /***/ }),
  5333. /***/ "./node_modules/d3-format/src/identity.js":
  5334. /*!************************************************!*\
  5335. !*** ./node_modules/d3-format/src/identity.js ***!
  5336. \************************************************/
  5337. /*! exports provided: default */
  5338. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5339. "use strict";
  5340. __webpack_require__.r(__webpack_exports__);
  5341. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  5342. return x;
  5343. });
  5344. /***/ }),
  5345. /***/ "./node_modules/d3-format/src/index.js":
  5346. /*!*********************************************!*\
  5347. !*** ./node_modules/d3-format/src/index.js ***!
  5348. \*********************************************/
  5349. /*! exports provided: formatDefaultLocale, format, formatPrefix, formatLocale, formatSpecifier, FormatSpecifier, precisionFixed, precisionPrefix, precisionRound */
  5350. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5351. "use strict";
  5352. __webpack_require__.r(__webpack_exports__);
  5353. /* harmony import */ var _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale.js */ "./node_modules/d3-format/src/defaultLocale.js");
  5354. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatDefaultLocale", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  5355. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "format", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["format"]; });
  5356. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatPrefix", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["formatPrefix"]; });
  5357. /* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./locale.js */ "./node_modules/d3-format/src/locale.js");
  5358. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatLocale", function() { return _locale_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  5359. /* harmony import */ var _formatSpecifier_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatSpecifier.js */ "./node_modules/d3-format/src/formatSpecifier.js");
  5360. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatSpecifier", function() { return _formatSpecifier_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  5361. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormatSpecifier", function() { return _formatSpecifier_js__WEBPACK_IMPORTED_MODULE_2__["FormatSpecifier"]; });
  5362. /* harmony import */ var _precisionFixed_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./precisionFixed.js */ "./node_modules/d3-format/src/precisionFixed.js");
  5363. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionFixed", function() { return _precisionFixed_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  5364. /* harmony import */ var _precisionPrefix_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./precisionPrefix.js */ "./node_modules/d3-format/src/precisionPrefix.js");
  5365. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionPrefix", function() { return _precisionPrefix_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  5366. /* harmony import */ var _precisionRound_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./precisionRound.js */ "./node_modules/d3-format/src/precisionRound.js");
  5367. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionRound", function() { return _precisionRound_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  5368. /***/ }),
  5369. /***/ "./node_modules/d3-format/src/locale.js":
  5370. /*!**********************************************!*\
  5371. !*** ./node_modules/d3-format/src/locale.js ***!
  5372. \**********************************************/
  5373. /*! exports provided: default */
  5374. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5375. "use strict";
  5376. __webpack_require__.r(__webpack_exports__);
  5377. /* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent.js */ "./node_modules/d3-format/src/exponent.js");
  5378. /* harmony import */ var _formatGroup_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatGroup.js */ "./node_modules/d3-format/src/formatGroup.js");
  5379. /* harmony import */ var _formatNumerals_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatNumerals.js */ "./node_modules/d3-format/src/formatNumerals.js");
  5380. /* harmony import */ var _formatSpecifier_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./formatSpecifier.js */ "./node_modules/d3-format/src/formatSpecifier.js");
  5381. /* harmony import */ var _formatTrim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./formatTrim.js */ "./node_modules/d3-format/src/formatTrim.js");
  5382. /* harmony import */ var _formatTypes_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./formatTypes.js */ "./node_modules/d3-format/src/formatTypes.js");
  5383. /* harmony import */ var _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./formatPrefixAuto.js */ "./node_modules/d3-format/src/formatPrefixAuto.js");
  5384. /* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./identity.js */ "./node_modules/d3-format/src/identity.js");
  5385. var map = Array.prototype.map,
  5386. prefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];
  5387. /* harmony default export */ __webpack_exports__["default"] = (function(locale) {
  5388. var group = locale.grouping === undefined || locale.thousands === undefined ? _identity_js__WEBPACK_IMPORTED_MODULE_7__["default"] : Object(_formatGroup_js__WEBPACK_IMPORTED_MODULE_1__["default"])(map.call(locale.grouping, Number), locale.thousands + ""),
  5389. currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
  5390. currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
  5391. decimal = locale.decimal === undefined ? "." : locale.decimal + "",
  5392. numerals = locale.numerals === undefined ? _identity_js__WEBPACK_IMPORTED_MODULE_7__["default"] : Object(_formatNumerals_js__WEBPACK_IMPORTED_MODULE_2__["default"])(map.call(locale.numerals, String)),
  5393. percent = locale.percent === undefined ? "%" : locale.percent + "",
  5394. minus = locale.minus === undefined ? "-" : locale.minus + "",
  5395. nan = locale.nan === undefined ? "NaN" : locale.nan + "";
  5396. function newFormat(specifier) {
  5397. specifier = Object(_formatSpecifier_js__WEBPACK_IMPORTED_MODULE_3__["default"])(specifier);
  5398. var fill = specifier.fill,
  5399. align = specifier.align,
  5400. sign = specifier.sign,
  5401. symbol = specifier.symbol,
  5402. zero = specifier.zero,
  5403. width = specifier.width,
  5404. comma = specifier.comma,
  5405. precision = specifier.precision,
  5406. trim = specifier.trim,
  5407. type = specifier.type;
  5408. // The "n" type is an alias for ",g".
  5409. if (type === "n") comma = true, type = "g";
  5410. // The "" type, and any invalid type, is an alias for ".12~g".
  5411. else if (!_formatTypes_js__WEBPACK_IMPORTED_MODULE_5__["default"][type]) precision === undefined && (precision = 12), trim = true, type = "g";
  5412. // If zero fill is specified, padding goes after sign and before digits.
  5413. if (zero || (fill === "0" && align === "=")) zero = true, fill = "0", align = "=";
  5414. // Compute the prefix and suffix.
  5415. // For SI-prefix, the suffix is lazily computed.
  5416. var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "",
  5417. suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "";
  5418. // What format function should we use?
  5419. // Is this an integer type?
  5420. // Can this type generate exponential notation?
  5421. var formatType = _formatTypes_js__WEBPACK_IMPORTED_MODULE_5__["default"][type],
  5422. maybeSuffix = /[defgprs%]/.test(type);
  5423. // Set the default precision if not specified,
  5424. // or clamp the specified precision to the supported range.
  5425. // For significant precision, it must be in [1, 21].
  5426. // For fixed precision, it must be in [0, 20].
  5427. precision = precision === undefined ? 6
  5428. : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))
  5429. : Math.max(0, Math.min(20, precision));
  5430. function format(value) {
  5431. var valuePrefix = prefix,
  5432. valueSuffix = suffix,
  5433. i, n, c;
  5434. if (type === "c") {
  5435. valueSuffix = formatType(value) + valueSuffix;
  5436. value = "";
  5437. } else {
  5438. value = +value;
  5439. // Perform the initial formatting.
  5440. var valueNegative = value < 0;
  5441. value = isNaN(value) ? nan : formatType(Math.abs(value), precision);
  5442. // Trim insignificant zeros.
  5443. if (trim) value = Object(_formatTrim_js__WEBPACK_IMPORTED_MODULE_4__["default"])(value);
  5444. // If a negative value rounds to zero during formatting, treat as positive.
  5445. if (valueNegative && +value === 0) valueNegative = false;
  5446. // Compute the prefix and suffix.
  5447. valuePrefix = (valueNegative ? (sign === "(" ? sign : minus) : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
  5448. valueSuffix = (type === "s" ? prefixes[8 + _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_6__["prefixExponent"] / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
  5449. // Break the formatted value into the integer “value” part that can be
  5450. // grouped, and fractional or exponential “suffix” part that is not.
  5451. if (maybeSuffix) {
  5452. i = -1, n = value.length;
  5453. while (++i < n) {
  5454. if (c = value.charCodeAt(i), 48 > c || c > 57) {
  5455. valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
  5456. value = value.slice(0, i);
  5457. break;
  5458. }
  5459. }
  5460. }
  5461. }
  5462. // If the fill character is not "0", grouping is applied before padding.
  5463. if (comma && !zero) value = group(value, Infinity);
  5464. // Compute the padding.
  5465. var length = valuePrefix.length + value.length + valueSuffix.length,
  5466. padding = length < width ? new Array(width - length + 1).join(fill) : "";
  5467. // If the fill character is "0", grouping is applied after padding.
  5468. if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
  5469. // Reconstruct the final output based on the desired alignment.
  5470. switch (align) {
  5471. case "<": value = valuePrefix + value + valueSuffix + padding; break;
  5472. case "=": value = valuePrefix + padding + value + valueSuffix; break;
  5473. case "^": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;
  5474. default: value = padding + valuePrefix + value + valueSuffix; break;
  5475. }
  5476. return numerals(value);
  5477. }
  5478. format.toString = function() {
  5479. return specifier + "";
  5480. };
  5481. return format;
  5482. }
  5483. function formatPrefix(specifier, value) {
  5484. var f = newFormat((specifier = Object(_formatSpecifier_js__WEBPACK_IMPORTED_MODULE_3__["default"])(specifier), specifier.type = "f", specifier)),
  5485. e = Math.max(-8, Math.min(8, Math.floor(Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) / 3))) * 3,
  5486. k = Math.pow(10, -e),
  5487. prefix = prefixes[8 + e / 3];
  5488. return function(value) {
  5489. return f(k * value) + prefix;
  5490. };
  5491. }
  5492. return {
  5493. format: newFormat,
  5494. formatPrefix: formatPrefix
  5495. };
  5496. });
  5497. /***/ }),
  5498. /***/ "./node_modules/d3-format/src/precisionFixed.js":
  5499. /*!******************************************************!*\
  5500. !*** ./node_modules/d3-format/src/precisionFixed.js ***!
  5501. \******************************************************/
  5502. /*! exports provided: default */
  5503. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5504. "use strict";
  5505. __webpack_require__.r(__webpack_exports__);
  5506. /* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent.js */ "./node_modules/d3-format/src/exponent.js");
  5507. /* harmony default export */ __webpack_exports__["default"] = (function(step) {
  5508. return Math.max(0, -Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(step)));
  5509. });
  5510. /***/ }),
  5511. /***/ "./node_modules/d3-format/src/precisionPrefix.js":
  5512. /*!*******************************************************!*\
  5513. !*** ./node_modules/d3-format/src/precisionPrefix.js ***!
  5514. \*******************************************************/
  5515. /*! exports provided: default */
  5516. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5517. "use strict";
  5518. __webpack_require__.r(__webpack_exports__);
  5519. /* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent.js */ "./node_modules/d3-format/src/exponent.js");
  5520. /* harmony default export */ __webpack_exports__["default"] = (function(step, value) {
  5521. return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) / 3))) * 3 - Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(step)));
  5522. });
  5523. /***/ }),
  5524. /***/ "./node_modules/d3-format/src/precisionRound.js":
  5525. /*!******************************************************!*\
  5526. !*** ./node_modules/d3-format/src/precisionRound.js ***!
  5527. \******************************************************/
  5528. /*! exports provided: default */
  5529. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5530. "use strict";
  5531. __webpack_require__.r(__webpack_exports__);
  5532. /* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent.js */ "./node_modules/d3-format/src/exponent.js");
  5533. /* harmony default export */ __webpack_exports__["default"] = (function(step, max) {
  5534. step = Math.abs(step), max = Math.abs(max) - step;
  5535. return Math.max(0, Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(max) - Object(_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(step)) + 1;
  5536. });
  5537. /***/ }),
  5538. /***/ "./node_modules/d3-geo/src/adder.js":
  5539. /*!******************************************!*\
  5540. !*** ./node_modules/d3-geo/src/adder.js ***!
  5541. \******************************************/
  5542. /*! exports provided: default */
  5543. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5544. "use strict";
  5545. __webpack_require__.r(__webpack_exports__);
  5546. // Adds floating point numbers with twice the normal precision.
  5547. // Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and
  5548. // Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)
  5549. // 305–363 (1997).
  5550. // Code adapted from GeographicLib by Charles F. F. Karney,
  5551. // http://geographiclib.sourceforge.net/
  5552. /* harmony default export */ __webpack_exports__["default"] = (function() {
  5553. return new Adder;
  5554. });
  5555. function Adder() {
  5556. this.reset();
  5557. }
  5558. Adder.prototype = {
  5559. constructor: Adder,
  5560. reset: function() {
  5561. this.s = // rounded value
  5562. this.t = 0; // exact error
  5563. },
  5564. add: function(y) {
  5565. add(temp, y, this.t);
  5566. add(this, temp.s, this.s);
  5567. if (this.s) this.t += temp.t;
  5568. else this.s = temp.t;
  5569. },
  5570. valueOf: function() {
  5571. return this.s;
  5572. }
  5573. };
  5574. var temp = new Adder;
  5575. function add(adder, a, b) {
  5576. var x = adder.s = a + b,
  5577. bv = x - a,
  5578. av = x - bv;
  5579. adder.t = (a - av) + (b - bv);
  5580. }
  5581. /***/ }),
  5582. /***/ "./node_modules/d3-geo/src/area.js":
  5583. /*!*****************************************!*\
  5584. !*** ./node_modules/d3-geo/src/area.js ***!
  5585. \*****************************************/
  5586. /*! exports provided: areaRingSum, areaStream, default */
  5587. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5588. "use strict";
  5589. __webpack_require__.r(__webpack_exports__);
  5590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "areaRingSum", function() { return areaRingSum; });
  5591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "areaStream", function() { return areaStream; });
  5592. /* harmony import */ var _adder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./adder.js */ "./node_modules/d3-geo/src/adder.js");
  5593. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  5594. /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./noop.js */ "./node_modules/d3-geo/src/noop.js");
  5595. /* harmony import */ var _stream_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./stream.js */ "./node_modules/d3-geo/src/stream.js");
  5596. var areaRingSum = Object(_adder_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
  5597. var areaSum = Object(_adder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  5598. lambda00,
  5599. phi00,
  5600. lambda0,
  5601. cosPhi0,
  5602. sinPhi0;
  5603. var areaStream = {
  5604. point: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  5605. lineStart: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  5606. lineEnd: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  5607. polygonStart: function() {
  5608. areaRingSum.reset();
  5609. areaStream.lineStart = areaRingStart;
  5610. areaStream.lineEnd = areaRingEnd;
  5611. },
  5612. polygonEnd: function() {
  5613. var areaRing = +areaRingSum;
  5614. areaSum.add(areaRing < 0 ? _math_js__WEBPACK_IMPORTED_MODULE_1__["tau"] + areaRing : areaRing);
  5615. this.lineStart = this.lineEnd = this.point = _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"];
  5616. },
  5617. sphere: function() {
  5618. areaSum.add(_math_js__WEBPACK_IMPORTED_MODULE_1__["tau"]);
  5619. }
  5620. };
  5621. function areaRingStart() {
  5622. areaStream.point = areaPointFirst;
  5623. }
  5624. function areaRingEnd() {
  5625. areaPoint(lambda00, phi00);
  5626. }
  5627. function areaPointFirst(lambda, phi) {
  5628. areaStream.point = areaPoint;
  5629. lambda00 = lambda, phi00 = phi;
  5630. lambda *= _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"], phi *= _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"];
  5631. lambda0 = lambda, cosPhi0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi = phi / 2 + _math_js__WEBPACK_IMPORTED_MODULE_1__["quarterPi"]), sinPhi0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi);
  5632. }
  5633. function areaPoint(lambda, phi) {
  5634. lambda *= _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"], phi *= _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"];
  5635. phi = phi / 2 + _math_js__WEBPACK_IMPORTED_MODULE_1__["quarterPi"]; // half the angular distance from south pole
  5636. // Spherical excess E for a spherical triangle with vertices: south pole,
  5637. // previous point, current point. Uses a formula derived from Cagnoli’s
  5638. // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).
  5639. var dLambda = lambda - lambda0,
  5640. sdLambda = dLambda >= 0 ? 1 : -1,
  5641. adLambda = sdLambda * dLambda,
  5642. cosPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi),
  5643. sinPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi),
  5644. k = sinPhi0 * sinPhi,
  5645. u = cosPhi0 * cosPhi + k * Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(adLambda),
  5646. v = k * sdLambda * Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(adLambda);
  5647. areaRingSum.add(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["atan2"])(v, u));
  5648. // Advance the previous points.
  5649. lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;
  5650. }
  5651. /* harmony default export */ __webpack_exports__["default"] = (function(object) {
  5652. areaSum.reset();
  5653. Object(_stream_js__WEBPACK_IMPORTED_MODULE_3__["default"])(object, areaStream);
  5654. return areaSum * 2;
  5655. });
  5656. /***/ }),
  5657. /***/ "./node_modules/d3-geo/src/bounds.js":
  5658. /*!*******************************************!*\
  5659. !*** ./node_modules/d3-geo/src/bounds.js ***!
  5660. \*******************************************/
  5661. /*! exports provided: default */
  5662. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5663. "use strict";
  5664. __webpack_require__.r(__webpack_exports__);
  5665. /* harmony import */ var _adder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./adder.js */ "./node_modules/d3-geo/src/adder.js");
  5666. /* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area.js */ "./node_modules/d3-geo/src/area.js");
  5667. /* harmony import */ var _cartesian_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cartesian.js */ "./node_modules/d3-geo/src/cartesian.js");
  5668. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  5669. /* harmony import */ var _stream_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./stream.js */ "./node_modules/d3-geo/src/stream.js");
  5670. var lambda0, phi0, lambda1, phi1, // bounds
  5671. lambda2, // previous lambda-coordinate
  5672. lambda00, phi00, // first point
  5673. p0, // previous 3D point
  5674. deltaSum = Object(_adder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  5675. ranges,
  5676. range;
  5677. var boundsStream = {
  5678. point: boundsPoint,
  5679. lineStart: boundsLineStart,
  5680. lineEnd: boundsLineEnd,
  5681. polygonStart: function() {
  5682. boundsStream.point = boundsRingPoint;
  5683. boundsStream.lineStart = boundsRingStart;
  5684. boundsStream.lineEnd = boundsRingEnd;
  5685. deltaSum.reset();
  5686. _area_js__WEBPACK_IMPORTED_MODULE_1__["areaStream"].polygonStart();
  5687. },
  5688. polygonEnd: function() {
  5689. _area_js__WEBPACK_IMPORTED_MODULE_1__["areaStream"].polygonEnd();
  5690. boundsStream.point = boundsPoint;
  5691. boundsStream.lineStart = boundsLineStart;
  5692. boundsStream.lineEnd = boundsLineEnd;
  5693. if (_area_js__WEBPACK_IMPORTED_MODULE_1__["areaRingSum"] < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);
  5694. else if (deltaSum > _math_js__WEBPACK_IMPORTED_MODULE_3__["epsilon"]) phi1 = 90;
  5695. else if (deltaSum < -_math_js__WEBPACK_IMPORTED_MODULE_3__["epsilon"]) phi0 = -90;
  5696. range[0] = lambda0, range[1] = lambda1;
  5697. },
  5698. sphere: function() {
  5699. lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);
  5700. }
  5701. };
  5702. function boundsPoint(lambda, phi) {
  5703. ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);
  5704. if (phi < phi0) phi0 = phi;
  5705. if (phi > phi1) phi1 = phi;
  5706. }
  5707. function linePoint(lambda, phi) {
  5708. var p = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_2__["cartesian"])([lambda * _math_js__WEBPACK_IMPORTED_MODULE_3__["radians"], phi * _math_js__WEBPACK_IMPORTED_MODULE_3__["radians"]]);
  5709. if (p0) {
  5710. var normal = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_2__["cartesianCross"])(p0, p),
  5711. equatorial = [normal[1], -normal[0], 0],
  5712. inflection = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_2__["cartesianCross"])(equatorial, normal);
  5713. Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_2__["cartesianNormalizeInPlace"])(inflection);
  5714. inflection = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_2__["spherical"])(inflection);
  5715. var delta = lambda - lambda2,
  5716. sign = delta > 0 ? 1 : -1,
  5717. lambdai = inflection[0] * _math_js__WEBPACK_IMPORTED_MODULE_3__["degrees"] * sign,
  5718. phii,
  5719. antimeridian = Object(_math_js__WEBPACK_IMPORTED_MODULE_3__["abs"])(delta) > 180;
  5720. if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {
  5721. phii = inflection[1] * _math_js__WEBPACK_IMPORTED_MODULE_3__["degrees"];
  5722. if (phii > phi1) phi1 = phii;
  5723. } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {
  5724. phii = -inflection[1] * _math_js__WEBPACK_IMPORTED_MODULE_3__["degrees"];
  5725. if (phii < phi0) phi0 = phii;
  5726. } else {
  5727. if (phi < phi0) phi0 = phi;
  5728. if (phi > phi1) phi1 = phi;
  5729. }
  5730. if (antimeridian) {
  5731. if (lambda < lambda2) {
  5732. if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;
  5733. } else {
  5734. if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;
  5735. }
  5736. } else {
  5737. if (lambda1 >= lambda0) {
  5738. if (lambda < lambda0) lambda0 = lambda;
  5739. if (lambda > lambda1) lambda1 = lambda;
  5740. } else {
  5741. if (lambda > lambda2) {
  5742. if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;
  5743. } else {
  5744. if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;
  5745. }
  5746. }
  5747. }
  5748. } else {
  5749. ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);
  5750. }
  5751. if (phi < phi0) phi0 = phi;
  5752. if (phi > phi1) phi1 = phi;
  5753. p0 = p, lambda2 = lambda;
  5754. }
  5755. function boundsLineStart() {
  5756. boundsStream.point = linePoint;
  5757. }
  5758. function boundsLineEnd() {
  5759. range[0] = lambda0, range[1] = lambda1;
  5760. boundsStream.point = boundsPoint;
  5761. p0 = null;
  5762. }
  5763. function boundsRingPoint(lambda, phi) {
  5764. if (p0) {
  5765. var delta = lambda - lambda2;
  5766. deltaSum.add(Object(_math_js__WEBPACK_IMPORTED_MODULE_3__["abs"])(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);
  5767. } else {
  5768. lambda00 = lambda, phi00 = phi;
  5769. }
  5770. _area_js__WEBPACK_IMPORTED_MODULE_1__["areaStream"].point(lambda, phi);
  5771. linePoint(lambda, phi);
  5772. }
  5773. function boundsRingStart() {
  5774. _area_js__WEBPACK_IMPORTED_MODULE_1__["areaStream"].lineStart();
  5775. }
  5776. function boundsRingEnd() {
  5777. boundsRingPoint(lambda00, phi00);
  5778. _area_js__WEBPACK_IMPORTED_MODULE_1__["areaStream"].lineEnd();
  5779. if (Object(_math_js__WEBPACK_IMPORTED_MODULE_3__["abs"])(deltaSum) > _math_js__WEBPACK_IMPORTED_MODULE_3__["epsilon"]) lambda0 = -(lambda1 = 180);
  5780. range[0] = lambda0, range[1] = lambda1;
  5781. p0 = null;
  5782. }
  5783. // Finds the left-right distance between two longitudes.
  5784. // This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want
  5785. // the distance between ±180° to be 360°.
  5786. function angle(lambda0, lambda1) {
  5787. return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;
  5788. }
  5789. function rangeCompare(a, b) {
  5790. return a[0] - b[0];
  5791. }
  5792. function rangeContains(range, x) {
  5793. return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;
  5794. }
  5795. /* harmony default export */ __webpack_exports__["default"] = (function(feature) {
  5796. var i, n, a, b, merged, deltaMax, delta;
  5797. phi1 = lambda1 = -(lambda0 = phi0 = Infinity);
  5798. ranges = [];
  5799. Object(_stream_js__WEBPACK_IMPORTED_MODULE_4__["default"])(feature, boundsStream);
  5800. // First, sort ranges by their minimum longitudes.
  5801. if (n = ranges.length) {
  5802. ranges.sort(rangeCompare);
  5803. // Then, merge any ranges that overlap.
  5804. for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {
  5805. b = ranges[i];
  5806. if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {
  5807. if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];
  5808. if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];
  5809. } else {
  5810. merged.push(a = b);
  5811. }
  5812. }
  5813. // Finally, find the largest gap between the merged ranges.
  5814. // The final bounding box will be the inverse of this gap.
  5815. for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {
  5816. b = merged[i];
  5817. if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0 = b[0], lambda1 = a[1];
  5818. }
  5819. }
  5820. ranges = range = null;
  5821. return lambda0 === Infinity || phi0 === Infinity
  5822. ? [[NaN, NaN], [NaN, NaN]]
  5823. : [[lambda0, phi0], [lambda1, phi1]];
  5824. });
  5825. /***/ }),
  5826. /***/ "./node_modules/d3-geo/src/cartesian.js":
  5827. /*!**********************************************!*\
  5828. !*** ./node_modules/d3-geo/src/cartesian.js ***!
  5829. \**********************************************/
  5830. /*! exports provided: spherical, cartesian, cartesianDot, cartesianCross, cartesianAddInPlace, cartesianScale, cartesianNormalizeInPlace */
  5831. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5832. "use strict";
  5833. __webpack_require__.r(__webpack_exports__);
  5834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "spherical", function() { return spherical; });
  5835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesian", function() { return cartesian; });
  5836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesianDot", function() { return cartesianDot; });
  5837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesianCross", function() { return cartesianCross; });
  5838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesianAddInPlace", function() { return cartesianAddInPlace; });
  5839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesianScale", function() { return cartesianScale; });
  5840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesianNormalizeInPlace", function() { return cartesianNormalizeInPlace; });
  5841. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  5842. function spherical(cartesian) {
  5843. return [Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan2"])(cartesian[1], cartesian[0]), Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["asin"])(cartesian[2])];
  5844. }
  5845. function cartesian(spherical) {
  5846. var lambda = spherical[0], phi = spherical[1], cosPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi);
  5847. return [cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda), cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda), Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi)];
  5848. }
  5849. function cartesianDot(a, b) {
  5850. return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
  5851. }
  5852. function cartesianCross(a, b) {
  5853. 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]];
  5854. }
  5855. // TODO return a
  5856. function cartesianAddInPlace(a, b) {
  5857. a[0] += b[0], a[1] += b[1], a[2] += b[2];
  5858. }
  5859. function cartesianScale(vector, k) {
  5860. return [vector[0] * k, vector[1] * k, vector[2] * k];
  5861. }
  5862. // TODO return d
  5863. function cartesianNormalizeInPlace(d) {
  5864. var l = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
  5865. d[0] /= l, d[1] /= l, d[2] /= l;
  5866. }
  5867. /***/ }),
  5868. /***/ "./node_modules/d3-geo/src/centroid.js":
  5869. /*!*********************************************!*\
  5870. !*** ./node_modules/d3-geo/src/centroid.js ***!
  5871. \*********************************************/
  5872. /*! exports provided: default */
  5873. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5874. "use strict";
  5875. __webpack_require__.r(__webpack_exports__);
  5876. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  5877. /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./noop.js */ "./node_modules/d3-geo/src/noop.js");
  5878. /* harmony import */ var _stream_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stream.js */ "./node_modules/d3-geo/src/stream.js");
  5879. var W0, W1,
  5880. X0, Y0, Z0,
  5881. X1, Y1, Z1,
  5882. X2, Y2, Z2,
  5883. lambda00, phi00, // first point
  5884. x0, y0, z0; // previous point
  5885. var centroidStream = {
  5886. sphere: _noop_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  5887. point: centroidPoint,
  5888. lineStart: centroidLineStart,
  5889. lineEnd: centroidLineEnd,
  5890. polygonStart: function() {
  5891. centroidStream.lineStart = centroidRingStart;
  5892. centroidStream.lineEnd = centroidRingEnd;
  5893. },
  5894. polygonEnd: function() {
  5895. centroidStream.lineStart = centroidLineStart;
  5896. centroidStream.lineEnd = centroidLineEnd;
  5897. }
  5898. };
  5899. // Arithmetic mean of Cartesian vectors.
  5900. function centroidPoint(lambda, phi) {
  5901. lambda *= _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"];
  5902. var cosPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi);
  5903. centroidPointCartesian(cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda), cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda), Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi));
  5904. }
  5905. function centroidPointCartesian(x, y, z) {
  5906. ++W0;
  5907. X0 += (x - X0) / W0;
  5908. Y0 += (y - Y0) / W0;
  5909. Z0 += (z - Z0) / W0;
  5910. }
  5911. function centroidLineStart() {
  5912. centroidStream.point = centroidLinePointFirst;
  5913. }
  5914. function centroidLinePointFirst(lambda, phi) {
  5915. lambda *= _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"];
  5916. var cosPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi);
  5917. x0 = cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda);
  5918. y0 = cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda);
  5919. z0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi);
  5920. centroidStream.point = centroidLinePoint;
  5921. centroidPointCartesian(x0, y0, z0);
  5922. }
  5923. function centroidLinePoint(lambda, phi) {
  5924. lambda *= _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"];
  5925. var cosPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi),
  5926. x = cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda),
  5927. y = cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda),
  5928. z = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi),
  5929. w = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan2"])(Object(_math_js__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);
  5930. W1 += w;
  5931. X1 += w * (x0 + (x0 = x));
  5932. Y1 += w * (y0 + (y0 = y));
  5933. Z1 += w * (z0 + (z0 = z));
  5934. centroidPointCartesian(x0, y0, z0);
  5935. }
  5936. function centroidLineEnd() {
  5937. centroidStream.point = centroidPoint;
  5938. }
  5939. // See J. E. Brock, The Inertia Tensor for a Spherical Triangle,
  5940. // J. Applied Mechanics 42, 239 (1975).
  5941. function centroidRingStart() {
  5942. centroidStream.point = centroidRingPointFirst;
  5943. }
  5944. function centroidRingEnd() {
  5945. centroidRingPoint(lambda00, phi00);
  5946. centroidStream.point = centroidPoint;
  5947. }
  5948. function centroidRingPointFirst(lambda, phi) {
  5949. lambda00 = lambda, phi00 = phi;
  5950. lambda *= _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"];
  5951. centroidStream.point = centroidRingPoint;
  5952. var cosPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi);
  5953. x0 = cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda);
  5954. y0 = cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda);
  5955. z0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi);
  5956. centroidPointCartesian(x0, y0, z0);
  5957. }
  5958. function centroidRingPoint(lambda, phi) {
  5959. lambda *= _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"], phi *= _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"];
  5960. var cosPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi),
  5961. x = cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(lambda),
  5962. y = cosPhi * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(lambda),
  5963. z = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi),
  5964. cx = y0 * z - z0 * y,
  5965. cy = z0 * x - x0 * z,
  5966. cz = x0 * y - y0 * x,
  5967. m = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(cx * cx + cy * cy + cz * cz),
  5968. w = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["asin"])(m), // line weight = angle
  5969. v = m && -w / m; // area weight multiplier
  5970. X2 += v * cx;
  5971. Y2 += v * cy;
  5972. Z2 += v * cz;
  5973. W1 += w;
  5974. X1 += w * (x0 + (x0 = x));
  5975. Y1 += w * (y0 + (y0 = y));
  5976. Z1 += w * (z0 + (z0 = z));
  5977. centroidPointCartesian(x0, y0, z0);
  5978. }
  5979. /* harmony default export */ __webpack_exports__["default"] = (function(object) {
  5980. W0 = W1 =
  5981. X0 = Y0 = Z0 =
  5982. X1 = Y1 = Z1 =
  5983. X2 = Y2 = Z2 = 0;
  5984. Object(_stream_js__WEBPACK_IMPORTED_MODULE_2__["default"])(object, centroidStream);
  5985. var x = X2,
  5986. y = Y2,
  5987. z = Z2,
  5988. m = x * x + y * y + z * z;
  5989. // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.
  5990. if (m < _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon2"]) {
  5991. x = X1, y = Y1, z = Z1;
  5992. // If the feature has zero length, fall back to arithmetic mean of point vectors.
  5993. if (W1 < _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) x = X0, y = Y0, z = Z0;
  5994. m = x * x + y * y + z * z;
  5995. // If the feature still has an undefined ccentroid, then return.
  5996. if (m < _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon2"]) return [NaN, NaN];
  5997. }
  5998. return [Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan2"])(y, x) * _math_js__WEBPACK_IMPORTED_MODULE_0__["degrees"], Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["asin"])(z / Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(m)) * _math_js__WEBPACK_IMPORTED_MODULE_0__["degrees"]];
  5999. });
  6000. /***/ }),
  6001. /***/ "./node_modules/d3-geo/src/circle.js":
  6002. /*!*******************************************!*\
  6003. !*** ./node_modules/d3-geo/src/circle.js ***!
  6004. \*******************************************/
  6005. /*! exports provided: circleStream, default */
  6006. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6007. "use strict";
  6008. __webpack_require__.r(__webpack_exports__);
  6009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleStream", function() { return circleStream; });
  6010. /* harmony import */ var _cartesian_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cartesian.js */ "./node_modules/d3-geo/src/cartesian.js");
  6011. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-geo/src/constant.js");
  6012. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  6013. /* harmony import */ var _rotation_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rotation.js */ "./node_modules/d3-geo/src/rotation.js");
  6014. // Generates a circle centered at [0°, 0°], with a given radius and precision.
  6015. function circleStream(stream, radius, delta, direction, t0, t1) {
  6016. if (!delta) return;
  6017. var cosRadius = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(radius),
  6018. sinRadius = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(radius),
  6019. step = direction * delta;
  6020. if (t0 == null) {
  6021. t0 = radius + direction * _math_js__WEBPACK_IMPORTED_MODULE_2__["tau"];
  6022. t1 = radius - step / 2;
  6023. } else {
  6024. t0 = circleRadius(cosRadius, t0);
  6025. t1 = circleRadius(cosRadius, t1);
  6026. if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * _math_js__WEBPACK_IMPORTED_MODULE_2__["tau"];
  6027. }
  6028. for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {
  6029. point = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["spherical"])([cosRadius, -sinRadius * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(t), -sinRadius * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(t)]);
  6030. stream.point(point[0], point[1]);
  6031. }
  6032. }
  6033. // Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].
  6034. function circleRadius(cosRadius, point) {
  6035. point = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesian"])(point), point[0] -= cosRadius;
  6036. Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianNormalizeInPlace"])(point);
  6037. var radius = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["acos"])(-point[1]);
  6038. return ((-point[2] < 0 ? -radius : radius) + _math_js__WEBPACK_IMPORTED_MODULE_2__["tau"] - _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) % _math_js__WEBPACK_IMPORTED_MODULE_2__["tau"];
  6039. }
  6040. /* harmony default export */ __webpack_exports__["default"] = (function() {
  6041. var center = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])([0, 0]),
  6042. radius = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(90),
  6043. precision = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(6),
  6044. ring,
  6045. rotate,
  6046. stream = {point: point};
  6047. function point(x, y) {
  6048. ring.push(x = rotate(x, y));
  6049. x[0] *= _math_js__WEBPACK_IMPORTED_MODULE_2__["degrees"], x[1] *= _math_js__WEBPACK_IMPORTED_MODULE_2__["degrees"];
  6050. }
  6051. function circle() {
  6052. var c = center.apply(this, arguments),
  6053. r = radius.apply(this, arguments) * _math_js__WEBPACK_IMPORTED_MODULE_2__["radians"],
  6054. p = precision.apply(this, arguments) * _math_js__WEBPACK_IMPORTED_MODULE_2__["radians"];
  6055. ring = [];
  6056. rotate = Object(_rotation_js__WEBPACK_IMPORTED_MODULE_3__["rotateRadians"])(-c[0] * _math_js__WEBPACK_IMPORTED_MODULE_2__["radians"], -c[1] * _math_js__WEBPACK_IMPORTED_MODULE_2__["radians"], 0).invert;
  6057. circleStream(stream, r, p, 1);
  6058. c = {type: "Polygon", coordinates: [ring]};
  6059. ring = rotate = null;
  6060. return c;
  6061. }
  6062. circle.center = function(_) {
  6063. return arguments.length ? (center = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])([+_[0], +_[1]]), circle) : center;
  6064. };
  6065. circle.radius = function(_) {
  6066. return arguments.length ? (radius = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), circle) : radius;
  6067. };
  6068. circle.precision = function(_) {
  6069. return arguments.length ? (precision = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), circle) : precision;
  6070. };
  6071. return circle;
  6072. });
  6073. /***/ }),
  6074. /***/ "./node_modules/d3-geo/src/clip/antimeridian.js":
  6075. /*!******************************************************!*\
  6076. !*** ./node_modules/d3-geo/src/clip/antimeridian.js ***!
  6077. \******************************************************/
  6078. /*! exports provided: default */
  6079. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6080. "use strict";
  6081. __webpack_require__.r(__webpack_exports__);
  6082. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/clip/index.js");
  6083. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  6084. /* harmony default export */ __webpack_exports__["default"] = (Object(_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
  6085. function() { return true; },
  6086. clipAntimeridianLine,
  6087. clipAntimeridianInterpolate,
  6088. [-_math_js__WEBPACK_IMPORTED_MODULE_1__["pi"], -_math_js__WEBPACK_IMPORTED_MODULE_1__["halfPi"]]
  6089. ));
  6090. // Takes a line and cuts into visible segments. Return values: 0 - there were
  6091. // intersections or the line was empty; 1 - no intersections; 2 - there were
  6092. // intersections, and the first and last segments should be rejoined.
  6093. function clipAntimeridianLine(stream) {
  6094. var lambda0 = NaN,
  6095. phi0 = NaN,
  6096. sign0 = NaN,
  6097. clean; // no intersections
  6098. return {
  6099. lineStart: function() {
  6100. stream.lineStart();
  6101. clean = 1;
  6102. },
  6103. point: function(lambda1, phi1) {
  6104. var sign1 = lambda1 > 0 ? _math_js__WEBPACK_IMPORTED_MODULE_1__["pi"] : -_math_js__WEBPACK_IMPORTED_MODULE_1__["pi"],
  6105. delta = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda1 - lambda0);
  6106. if (Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(delta - _math_js__WEBPACK_IMPORTED_MODULE_1__["pi"]) < _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]) { // line crosses a pole
  6107. stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? _math_js__WEBPACK_IMPORTED_MODULE_1__["halfPi"] : -_math_js__WEBPACK_IMPORTED_MODULE_1__["halfPi"]);
  6108. stream.point(sign0, phi0);
  6109. stream.lineEnd();
  6110. stream.lineStart();
  6111. stream.point(sign1, phi0);
  6112. stream.point(lambda1, phi0);
  6113. clean = 0;
  6114. } else if (sign0 !== sign1 && delta >= _math_js__WEBPACK_IMPORTED_MODULE_1__["pi"]) { // line crosses antimeridian
  6115. if (Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda0 - sign0) < _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]) lambda0 -= sign0 * _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]; // handle degeneracies
  6116. if (Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda1 - sign1) < _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]) lambda1 -= sign1 * _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"];
  6117. phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);
  6118. stream.point(sign0, phi0);
  6119. stream.lineEnd();
  6120. stream.lineStart();
  6121. stream.point(sign1, phi0);
  6122. clean = 0;
  6123. }
  6124. stream.point(lambda0 = lambda1, phi0 = phi1);
  6125. sign0 = sign1;
  6126. },
  6127. lineEnd: function() {
  6128. stream.lineEnd();
  6129. lambda0 = phi0 = NaN;
  6130. },
  6131. clean: function() {
  6132. return 2 - clean; // if intersections, rejoin first and last segments
  6133. }
  6134. };
  6135. }
  6136. function clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {
  6137. var cosPhi0,
  6138. cosPhi1,
  6139. sinLambda0Lambda1 = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(lambda0 - lambda1);
  6140. return Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(sinLambda0Lambda1) > _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]
  6141. ? Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["atan"])((Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi0) * (cosPhi1 = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi1)) * Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(lambda1)
  6142. - Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi1) * (cosPhi0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi0)) * Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(lambda0))
  6143. / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))
  6144. : (phi0 + phi1) / 2;
  6145. }
  6146. function clipAntimeridianInterpolate(from, to, direction, stream) {
  6147. var phi;
  6148. if (from == null) {
  6149. phi = direction * _math_js__WEBPACK_IMPORTED_MODULE_1__["halfPi"];
  6150. stream.point(-_math_js__WEBPACK_IMPORTED_MODULE_1__["pi"], phi);
  6151. stream.point(0, phi);
  6152. stream.point(_math_js__WEBPACK_IMPORTED_MODULE_1__["pi"], phi);
  6153. stream.point(_math_js__WEBPACK_IMPORTED_MODULE_1__["pi"], 0);
  6154. stream.point(_math_js__WEBPACK_IMPORTED_MODULE_1__["pi"], -phi);
  6155. stream.point(0, -phi);
  6156. stream.point(-_math_js__WEBPACK_IMPORTED_MODULE_1__["pi"], -phi);
  6157. stream.point(-_math_js__WEBPACK_IMPORTED_MODULE_1__["pi"], 0);
  6158. stream.point(-_math_js__WEBPACK_IMPORTED_MODULE_1__["pi"], phi);
  6159. } else if (Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(from[0] - to[0]) > _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]) {
  6160. var lambda = from[0] < to[0] ? _math_js__WEBPACK_IMPORTED_MODULE_1__["pi"] : -_math_js__WEBPACK_IMPORTED_MODULE_1__["pi"];
  6161. phi = direction * lambda / 2;
  6162. stream.point(-lambda, phi);
  6163. stream.point(0, phi);
  6164. stream.point(lambda, phi);
  6165. } else {
  6166. stream.point(to[0], to[1]);
  6167. }
  6168. }
  6169. /***/ }),
  6170. /***/ "./node_modules/d3-geo/src/clip/buffer.js":
  6171. /*!************************************************!*\
  6172. !*** ./node_modules/d3-geo/src/clip/buffer.js ***!
  6173. \************************************************/
  6174. /*! exports provided: default */
  6175. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6176. "use strict";
  6177. __webpack_require__.r(__webpack_exports__);
  6178. /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-geo/src/noop.js");
  6179. /* harmony default export */ __webpack_exports__["default"] = (function() {
  6180. var lines = [],
  6181. line;
  6182. return {
  6183. point: function(x, y) {
  6184. line.push([x, y]);
  6185. },
  6186. lineStart: function() {
  6187. lines.push(line = []);
  6188. },
  6189. lineEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  6190. rejoin: function() {
  6191. if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));
  6192. },
  6193. result: function() {
  6194. var result = lines;
  6195. lines = [];
  6196. line = null;
  6197. return result;
  6198. }
  6199. };
  6200. });
  6201. /***/ }),
  6202. /***/ "./node_modules/d3-geo/src/clip/circle.js":
  6203. /*!************************************************!*\
  6204. !*** ./node_modules/d3-geo/src/clip/circle.js ***!
  6205. \************************************************/
  6206. /*! exports provided: default */
  6207. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6208. "use strict";
  6209. __webpack_require__.r(__webpack_exports__);
  6210. /* harmony import */ var _cartesian_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cartesian.js */ "./node_modules/d3-geo/src/cartesian.js");
  6211. /* harmony import */ var _circle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../circle.js */ "./node_modules/d3-geo/src/circle.js");
  6212. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  6213. /* harmony import */ var _pointEqual_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../pointEqual.js */ "./node_modules/d3-geo/src/pointEqual.js");
  6214. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/clip/index.js");
  6215. /* harmony default export */ __webpack_exports__["default"] = (function(radius) {
  6216. var cr = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(radius),
  6217. delta = 6 * _math_js__WEBPACK_IMPORTED_MODULE_2__["radians"],
  6218. smallRadius = cr > 0,
  6219. notHemisphere = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["abs"])(cr) > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]; // TODO optimise for this common case
  6220. function interpolate(from, to, direction, stream) {
  6221. Object(_circle_js__WEBPACK_IMPORTED_MODULE_1__["circleStream"])(stream, radius, delta, direction, from, to);
  6222. }
  6223. function visible(lambda, phi) {
  6224. return Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(lambda) * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(phi) > cr;
  6225. }
  6226. // Takes a line and cuts into visible segments. Return values used for polygon
  6227. // clipping: 0 - there were intersections or the line was empty; 1 - no
  6228. // intersections 2 - there were intersections, and the first and last segments
  6229. // should be rejoined.
  6230. function clipLine(stream) {
  6231. var point0, // previous point
  6232. c0, // code for previous point
  6233. v0, // visibility of previous point
  6234. v00, // visibility of first point
  6235. clean; // no intersections
  6236. return {
  6237. lineStart: function() {
  6238. v00 = v0 = false;
  6239. clean = 1;
  6240. },
  6241. point: function(lambda, phi) {
  6242. var point1 = [lambda, phi],
  6243. point2,
  6244. v = visible(lambda, phi),
  6245. c = smallRadius
  6246. ? v ? 0 : code(lambda, phi)
  6247. : v ? code(lambda + (lambda < 0 ? _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"] : -_math_js__WEBPACK_IMPORTED_MODULE_2__["pi"]), phi) : 0;
  6248. if (!point0 && (v00 = v0 = v)) stream.lineStart();
  6249. // Handle degeneracies.
  6250. // TODO ignore if not clipping polygons.
  6251. if (v !== v0) {
  6252. point2 = intersect(point0, point1);
  6253. if (!point2 || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__["default"])(point0, point2) || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__["default"])(point1, point2)) {
  6254. point1[0] += _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"];
  6255. point1[1] += _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"];
  6256. v = visible(point1[0], point1[1]);
  6257. }
  6258. }
  6259. if (v !== v0) {
  6260. clean = 0;
  6261. if (v) {
  6262. // outside going in
  6263. stream.lineStart();
  6264. point2 = intersect(point1, point0);
  6265. stream.point(point2[0], point2[1]);
  6266. } else {
  6267. // inside going out
  6268. point2 = intersect(point0, point1);
  6269. stream.point(point2[0], point2[1]);
  6270. stream.lineEnd();
  6271. }
  6272. point0 = point2;
  6273. } else if (notHemisphere && point0 && smallRadius ^ v) {
  6274. var t;
  6275. // If the codes for two points are different, or are both zero,
  6276. // and there this segment intersects with the small circle.
  6277. if (!(c & c0) && (t = intersect(point1, point0, true))) {
  6278. clean = 0;
  6279. if (smallRadius) {
  6280. stream.lineStart();
  6281. stream.point(t[0][0], t[0][1]);
  6282. stream.point(t[1][0], t[1][1]);
  6283. stream.lineEnd();
  6284. } else {
  6285. stream.point(t[1][0], t[1][1]);
  6286. stream.lineEnd();
  6287. stream.lineStart();
  6288. stream.point(t[0][0], t[0][1]);
  6289. }
  6290. }
  6291. }
  6292. if (v && (!point0 || !Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__["default"])(point0, point1))) {
  6293. stream.point(point1[0], point1[1]);
  6294. }
  6295. point0 = point1, v0 = v, c0 = c;
  6296. },
  6297. lineEnd: function() {
  6298. if (v0) stream.lineEnd();
  6299. point0 = null;
  6300. },
  6301. // Rejoin first and last segments if there were intersections and the first
  6302. // and last points were visible.
  6303. clean: function() {
  6304. return clean | ((v00 && v0) << 1);
  6305. }
  6306. };
  6307. }
  6308. // Intersects the great circle between a and b with the clip circle.
  6309. function intersect(a, b, two) {
  6310. var pa = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesian"])(a),
  6311. pb = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesian"])(b);
  6312. // We have two planes, n1.p = d1 and n2.p = d2.
  6313. // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).
  6314. var n1 = [1, 0, 0], // normal
  6315. n2 = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianCross"])(pa, pb),
  6316. n2n2 = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianDot"])(n2, n2),
  6317. n1n2 = n2[0], // cartesianDot(n1, n2),
  6318. determinant = n2n2 - n1n2 * n1n2;
  6319. // Two polar points.
  6320. if (!determinant) return !two && a;
  6321. var c1 = cr * n2n2 / determinant,
  6322. c2 = -cr * n1n2 / determinant,
  6323. n1xn2 = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianCross"])(n1, n2),
  6324. A = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianScale"])(n1, c1),
  6325. B = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianScale"])(n2, c2);
  6326. Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianAddInPlace"])(A, B);
  6327. // Solve |p(t)|^2 = 1.
  6328. var u = n1xn2,
  6329. w = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianDot"])(A, u),
  6330. uu = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianDot"])(u, u),
  6331. t2 = w * w - uu * (Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianDot"])(A, A) - 1);
  6332. if (t2 < 0) return;
  6333. var t = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(t2),
  6334. q = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianScale"])(u, (-w - t) / uu);
  6335. Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianAddInPlace"])(q, A);
  6336. q = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["spherical"])(q);
  6337. if (!two) return q;
  6338. // Two intersection points.
  6339. var lambda0 = a[0],
  6340. lambda1 = b[0],
  6341. phi0 = a[1],
  6342. phi1 = b[1],
  6343. z;
  6344. if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;
  6345. var delta = lambda1 - lambda0,
  6346. polar = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["abs"])(delta - _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"]) < _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"],
  6347. meridian = polar || delta < _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"];
  6348. if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;
  6349. // Check that the first point is between a and b.
  6350. if (meridian
  6351. ? polar
  6352. ? phi0 + phi1 > 0 ^ q[1] < (Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["abs"])(q[0] - lambda0) < _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"] ? phi0 : phi1)
  6353. : phi0 <= q[1] && q[1] <= phi1
  6354. : delta > _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"] ^ (lambda0 <= q[0] && q[0] <= lambda1)) {
  6355. var q1 = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianScale"])(u, (-w + t) / uu);
  6356. Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesianAddInPlace"])(q1, A);
  6357. return [q, Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["spherical"])(q1)];
  6358. }
  6359. }
  6360. // Generates a 4-bit vector representing the location of a point relative to
  6361. // the small circle's bounding box.
  6362. function code(lambda, phi) {
  6363. var r = smallRadius ? radius : _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"] - radius,
  6364. code = 0;
  6365. if (lambda < -r) code |= 1; // left
  6366. else if (lambda > r) code |= 2; // right
  6367. if (phi < -r) code |= 4; // below
  6368. else if (phi > r) code |= 8; // above
  6369. return code;
  6370. }
  6371. return Object(_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-_math_js__WEBPACK_IMPORTED_MODULE_2__["pi"], radius - _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"]]);
  6372. });
  6373. /***/ }),
  6374. /***/ "./node_modules/d3-geo/src/clip/extent.js":
  6375. /*!************************************************!*\
  6376. !*** ./node_modules/d3-geo/src/clip/extent.js ***!
  6377. \************************************************/
  6378. /*! exports provided: default */
  6379. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6380. "use strict";
  6381. __webpack_require__.r(__webpack_exports__);
  6382. /* harmony import */ var _rectangle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rectangle.js */ "./node_modules/d3-geo/src/clip/rectangle.js");
  6383. /* harmony default export */ __webpack_exports__["default"] = (function() {
  6384. var x0 = 0,
  6385. y0 = 0,
  6386. x1 = 960,
  6387. y1 = 500,
  6388. cache,
  6389. cacheStream,
  6390. clip;
  6391. return clip = {
  6392. stream: function(stream) {
  6393. return cache && cacheStream === stream ? cache : cache = Object(_rectangle_js__WEBPACK_IMPORTED_MODULE_0__["default"])(x0, y0, x1, y1)(cacheStream = stream);
  6394. },
  6395. extent: function(_) {
  6396. return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];
  6397. }
  6398. };
  6399. });
  6400. /***/ }),
  6401. /***/ "./node_modules/d3-geo/src/clip/index.js":
  6402. /*!***********************************************!*\
  6403. !*** ./node_modules/d3-geo/src/clip/index.js ***!
  6404. \***********************************************/
  6405. /*! exports provided: default */
  6406. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6407. "use strict";
  6408. __webpack_require__.r(__webpack_exports__);
  6409. /* harmony import */ var _buffer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./buffer.js */ "./node_modules/d3-geo/src/clip/buffer.js");
  6410. /* harmony import */ var _rejoin_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rejoin.js */ "./node_modules/d3-geo/src/clip/rejoin.js");
  6411. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  6412. /* harmony import */ var _polygonContains_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../polygonContains.js */ "./node_modules/d3-geo/src/polygonContains.js");
  6413. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  6414. /* harmony default export */ __webpack_exports__["default"] = (function(pointVisible, clipLine, interpolate, start) {
  6415. return function(sink) {
  6416. var line = clipLine(sink),
  6417. ringBuffer = Object(_buffer_js__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  6418. ringSink = clipLine(ringBuffer),
  6419. polygonStarted = false,
  6420. polygon,
  6421. segments,
  6422. ring;
  6423. var clip = {
  6424. point: point,
  6425. lineStart: lineStart,
  6426. lineEnd: lineEnd,
  6427. polygonStart: function() {
  6428. clip.point = pointRing;
  6429. clip.lineStart = ringStart;
  6430. clip.lineEnd = ringEnd;
  6431. segments = [];
  6432. polygon = [];
  6433. },
  6434. polygonEnd: function() {
  6435. clip.point = point;
  6436. clip.lineStart = lineStart;
  6437. clip.lineEnd = lineEnd;
  6438. segments = Object(d3_array__WEBPACK_IMPORTED_MODULE_4__["merge"])(segments);
  6439. var startInside = Object(_polygonContains_js__WEBPACK_IMPORTED_MODULE_3__["default"])(polygon, start);
  6440. if (segments.length) {
  6441. if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
  6442. Object(_rejoin_js__WEBPACK_IMPORTED_MODULE_1__["default"])(segments, compareIntersection, startInside, interpolate, sink);
  6443. } else if (startInside) {
  6444. if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
  6445. sink.lineStart();
  6446. interpolate(null, null, 1, sink);
  6447. sink.lineEnd();
  6448. }
  6449. if (polygonStarted) sink.polygonEnd(), polygonStarted = false;
  6450. segments = polygon = null;
  6451. },
  6452. sphere: function() {
  6453. sink.polygonStart();
  6454. sink.lineStart();
  6455. interpolate(null, null, 1, sink);
  6456. sink.lineEnd();
  6457. sink.polygonEnd();
  6458. }
  6459. };
  6460. function point(lambda, phi) {
  6461. if (pointVisible(lambda, phi)) sink.point(lambda, phi);
  6462. }
  6463. function pointLine(lambda, phi) {
  6464. line.point(lambda, phi);
  6465. }
  6466. function lineStart() {
  6467. clip.point = pointLine;
  6468. line.lineStart();
  6469. }
  6470. function lineEnd() {
  6471. clip.point = point;
  6472. line.lineEnd();
  6473. }
  6474. function pointRing(lambda, phi) {
  6475. ring.push([lambda, phi]);
  6476. ringSink.point(lambda, phi);
  6477. }
  6478. function ringStart() {
  6479. ringSink.lineStart();
  6480. ring = [];
  6481. }
  6482. function ringEnd() {
  6483. pointRing(ring[0][0], ring[0][1]);
  6484. ringSink.lineEnd();
  6485. var clean = ringSink.clean(),
  6486. ringSegments = ringBuffer.result(),
  6487. i, n = ringSegments.length, m,
  6488. segment,
  6489. point;
  6490. ring.pop();
  6491. polygon.push(ring);
  6492. ring = null;
  6493. if (!n) return;
  6494. // No intersections.
  6495. if (clean & 1) {
  6496. segment = ringSegments[0];
  6497. if ((m = segment.length - 1) > 0) {
  6498. if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
  6499. sink.lineStart();
  6500. for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);
  6501. sink.lineEnd();
  6502. }
  6503. return;
  6504. }
  6505. // Rejoin connected segments.
  6506. // TODO reuse ringBuffer.rejoin()?
  6507. if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));
  6508. segments.push(ringSegments.filter(validSegment));
  6509. }
  6510. return clip;
  6511. };
  6512. });
  6513. function validSegment(segment) {
  6514. return segment.length > 1;
  6515. }
  6516. // Intersections are sorted along the clip edge. For both antimeridian cutting
  6517. // and circle clipping, the same comparison is used.
  6518. function compareIntersection(a, b) {
  6519. return ((a = a.x)[0] < 0 ? a[1] - _math_js__WEBPACK_IMPORTED_MODULE_2__["halfPi"] - _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"] : _math_js__WEBPACK_IMPORTED_MODULE_2__["halfPi"] - a[1])
  6520. - ((b = b.x)[0] < 0 ? b[1] - _math_js__WEBPACK_IMPORTED_MODULE_2__["halfPi"] - _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"] : _math_js__WEBPACK_IMPORTED_MODULE_2__["halfPi"] - b[1]);
  6521. }
  6522. /***/ }),
  6523. /***/ "./node_modules/d3-geo/src/clip/line.js":
  6524. /*!**********************************************!*\
  6525. !*** ./node_modules/d3-geo/src/clip/line.js ***!
  6526. \**********************************************/
  6527. /*! exports provided: default */
  6528. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6529. "use strict";
  6530. __webpack_require__.r(__webpack_exports__);
  6531. /* harmony default export */ __webpack_exports__["default"] = (function(a, b, x0, y0, x1, y1) {
  6532. var ax = a[0],
  6533. ay = a[1],
  6534. bx = b[0],
  6535. by = b[1],
  6536. t0 = 0,
  6537. t1 = 1,
  6538. dx = bx - ax,
  6539. dy = by - ay,
  6540. r;
  6541. r = x0 - ax;
  6542. if (!dx && r > 0) return;
  6543. r /= dx;
  6544. if (dx < 0) {
  6545. if (r < t0) return;
  6546. if (r < t1) t1 = r;
  6547. } else if (dx > 0) {
  6548. if (r > t1) return;
  6549. if (r > t0) t0 = r;
  6550. }
  6551. r = x1 - ax;
  6552. if (!dx && r < 0) return;
  6553. r /= dx;
  6554. if (dx < 0) {
  6555. if (r > t1) return;
  6556. if (r > t0) t0 = r;
  6557. } else if (dx > 0) {
  6558. if (r < t0) return;
  6559. if (r < t1) t1 = r;
  6560. }
  6561. r = y0 - ay;
  6562. if (!dy && r > 0) return;
  6563. r /= dy;
  6564. if (dy < 0) {
  6565. if (r < t0) return;
  6566. if (r < t1) t1 = r;
  6567. } else if (dy > 0) {
  6568. if (r > t1) return;
  6569. if (r > t0) t0 = r;
  6570. }
  6571. r = y1 - ay;
  6572. if (!dy && r < 0) return;
  6573. r /= dy;
  6574. if (dy < 0) {
  6575. if (r > t1) return;
  6576. if (r > t0) t0 = r;
  6577. } else if (dy > 0) {
  6578. if (r < t0) return;
  6579. if (r < t1) t1 = r;
  6580. }
  6581. if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;
  6582. if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;
  6583. return true;
  6584. });
  6585. /***/ }),
  6586. /***/ "./node_modules/d3-geo/src/clip/rectangle.js":
  6587. /*!***************************************************!*\
  6588. !*** ./node_modules/d3-geo/src/clip/rectangle.js ***!
  6589. \***************************************************/
  6590. /*! exports provided: default */
  6591. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6592. "use strict";
  6593. __webpack_require__.r(__webpack_exports__);
  6594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return clipRectangle; });
  6595. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  6596. /* harmony import */ var _buffer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./buffer.js */ "./node_modules/d3-geo/src/clip/buffer.js");
  6597. /* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line.js */ "./node_modules/d3-geo/src/clip/line.js");
  6598. /* harmony import */ var _rejoin_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rejoin.js */ "./node_modules/d3-geo/src/clip/rejoin.js");
  6599. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  6600. var clipMax = 1e9, clipMin = -clipMax;
  6601. // TODO Use d3-polygon’s polygonContains here for the ring check?
  6602. // TODO Eliminate duplicate buffering in clipBuffer and polygon.push?
  6603. function clipRectangle(x0, y0, x1, y1) {
  6604. function visible(x, y) {
  6605. return x0 <= x && x <= x1 && y0 <= y && y <= y1;
  6606. }
  6607. function interpolate(from, to, direction, stream) {
  6608. var a = 0, a1 = 0;
  6609. if (from == null
  6610. || (a = corner(from, direction)) !== (a1 = corner(to, direction))
  6611. || comparePoint(from, to) < 0 ^ direction > 0) {
  6612. do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);
  6613. while ((a = (a + direction + 4) % 4) !== a1);
  6614. } else {
  6615. stream.point(to[0], to[1]);
  6616. }
  6617. }
  6618. function corner(p, direction) {
  6619. return Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["abs"])(p[0] - x0) < _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"] ? direction > 0 ? 0 : 3
  6620. : Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["abs"])(p[0] - x1) < _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"] ? direction > 0 ? 2 : 1
  6621. : Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["abs"])(p[1] - y0) < _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"] ? direction > 0 ? 1 : 0
  6622. : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon
  6623. }
  6624. function compareIntersection(a, b) {
  6625. return comparePoint(a.x, b.x);
  6626. }
  6627. function comparePoint(a, b) {
  6628. var ca = corner(a, 1),
  6629. cb = corner(b, 1);
  6630. return ca !== cb ? ca - cb
  6631. : ca === 0 ? b[1] - a[1]
  6632. : ca === 1 ? a[0] - b[0]
  6633. : ca === 2 ? a[1] - b[1]
  6634. : b[0] - a[0];
  6635. }
  6636. return function(stream) {
  6637. var activeStream = stream,
  6638. bufferStream = Object(_buffer_js__WEBPACK_IMPORTED_MODULE_1__["default"])(),
  6639. segments,
  6640. polygon,
  6641. ring,
  6642. x__, y__, v__, // first point
  6643. x_, y_, v_, // previous point
  6644. first,
  6645. clean;
  6646. var clipStream = {
  6647. point: point,
  6648. lineStart: lineStart,
  6649. lineEnd: lineEnd,
  6650. polygonStart: polygonStart,
  6651. polygonEnd: polygonEnd
  6652. };
  6653. function point(x, y) {
  6654. if (visible(x, y)) activeStream.point(x, y);
  6655. }
  6656. function polygonInside() {
  6657. var winding = 0;
  6658. for (var i = 0, n = polygon.length; i < n; ++i) {
  6659. for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {
  6660. a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];
  6661. if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }
  6662. else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; }
  6663. }
  6664. }
  6665. return winding;
  6666. }
  6667. // Buffer geometry within a polygon and then clip it en masse.
  6668. function polygonStart() {
  6669. activeStream = bufferStream, segments = [], polygon = [], clean = true;
  6670. }
  6671. function polygonEnd() {
  6672. var startInside = polygonInside(),
  6673. cleanInside = clean && startInside,
  6674. visible = (segments = Object(d3_array__WEBPACK_IMPORTED_MODULE_4__["merge"])(segments)).length;
  6675. if (cleanInside || visible) {
  6676. stream.polygonStart();
  6677. if (cleanInside) {
  6678. stream.lineStart();
  6679. interpolate(null, null, 1, stream);
  6680. stream.lineEnd();
  6681. }
  6682. if (visible) {
  6683. Object(_rejoin_js__WEBPACK_IMPORTED_MODULE_3__["default"])(segments, compareIntersection, startInside, interpolate, stream);
  6684. }
  6685. stream.polygonEnd();
  6686. }
  6687. activeStream = stream, segments = polygon = ring = null;
  6688. }
  6689. function lineStart() {
  6690. clipStream.point = linePoint;
  6691. if (polygon) polygon.push(ring = []);
  6692. first = true;
  6693. v_ = false;
  6694. x_ = y_ = NaN;
  6695. }
  6696. // TODO rather than special-case polygons, simply handle them separately.
  6697. // Ideally, coincident intersection points should be jittered to avoid
  6698. // clipping issues.
  6699. function lineEnd() {
  6700. if (segments) {
  6701. linePoint(x__, y__);
  6702. if (v__ && v_) bufferStream.rejoin();
  6703. segments.push(bufferStream.result());
  6704. }
  6705. clipStream.point = point;
  6706. if (v_) activeStream.lineEnd();
  6707. }
  6708. function linePoint(x, y) {
  6709. var v = visible(x, y);
  6710. if (polygon) ring.push([x, y]);
  6711. if (first) {
  6712. x__ = x, y__ = y, v__ = v;
  6713. first = false;
  6714. if (v) {
  6715. activeStream.lineStart();
  6716. activeStream.point(x, y);
  6717. }
  6718. } else {
  6719. if (v && v_) activeStream.point(x, y);
  6720. else {
  6721. var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))],
  6722. b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];
  6723. if (Object(_line_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b, x0, y0, x1, y1)) {
  6724. if (!v_) {
  6725. activeStream.lineStart();
  6726. activeStream.point(a[0], a[1]);
  6727. }
  6728. activeStream.point(b[0], b[1]);
  6729. if (!v) activeStream.lineEnd();
  6730. clean = false;
  6731. } else if (v) {
  6732. activeStream.lineStart();
  6733. activeStream.point(x, y);
  6734. clean = false;
  6735. }
  6736. }
  6737. }
  6738. x_ = x, y_ = y, v_ = v;
  6739. }
  6740. return clipStream;
  6741. };
  6742. }
  6743. /***/ }),
  6744. /***/ "./node_modules/d3-geo/src/clip/rejoin.js":
  6745. /*!************************************************!*\
  6746. !*** ./node_modules/d3-geo/src/clip/rejoin.js ***!
  6747. \************************************************/
  6748. /*! exports provided: default */
  6749. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6750. "use strict";
  6751. __webpack_require__.r(__webpack_exports__);
  6752. /* harmony import */ var _pointEqual_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../pointEqual.js */ "./node_modules/d3-geo/src/pointEqual.js");
  6753. function Intersection(point, points, other, entry) {
  6754. this.x = point;
  6755. this.z = points;
  6756. this.o = other; // another intersection
  6757. this.e = entry; // is an entry?
  6758. this.v = false; // visited
  6759. this.n = this.p = null; // next & previous
  6760. }
  6761. // A generalized polygon clipping algorithm: given a polygon that has been cut
  6762. // into its visible line segments, and rejoins the segments by interpolating
  6763. // along the clip edge.
  6764. /* harmony default export */ __webpack_exports__["default"] = (function(segments, compareIntersection, startInside, interpolate, stream) {
  6765. var subject = [],
  6766. clip = [],
  6767. i,
  6768. n;
  6769. segments.forEach(function(segment) {
  6770. if ((n = segment.length - 1) <= 0) return;
  6771. var n, p0 = segment[0], p1 = segment[n], x;
  6772. // If the first and last points of a segment are coincident, then treat as a
  6773. // closed ring. TODO if all rings are closed, then the winding order of the
  6774. // exterior ring should be checked.
  6775. if (Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_0__["default"])(p0, p1)) {
  6776. stream.lineStart();
  6777. for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);
  6778. stream.lineEnd();
  6779. return;
  6780. }
  6781. subject.push(x = new Intersection(p0, segment, null, true));
  6782. clip.push(x.o = new Intersection(p0, null, x, false));
  6783. subject.push(x = new Intersection(p1, segment, null, false));
  6784. clip.push(x.o = new Intersection(p1, null, x, true));
  6785. });
  6786. if (!subject.length) return;
  6787. clip.sort(compareIntersection);
  6788. link(subject);
  6789. link(clip);
  6790. for (i = 0, n = clip.length; i < n; ++i) {
  6791. clip[i].e = startInside = !startInside;
  6792. }
  6793. var start = subject[0],
  6794. points,
  6795. point;
  6796. while (1) {
  6797. // Find first unvisited intersection.
  6798. var current = start,
  6799. isSubject = true;
  6800. while (current.v) if ((current = current.n) === start) return;
  6801. points = current.z;
  6802. stream.lineStart();
  6803. do {
  6804. current.v = current.o.v = true;
  6805. if (current.e) {
  6806. if (isSubject) {
  6807. for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);
  6808. } else {
  6809. interpolate(current.x, current.n.x, 1, stream);
  6810. }
  6811. current = current.n;
  6812. } else {
  6813. if (isSubject) {
  6814. points = current.p.z;
  6815. for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);
  6816. } else {
  6817. interpolate(current.x, current.p.x, -1, stream);
  6818. }
  6819. current = current.p;
  6820. }
  6821. current = current.o;
  6822. points = current.z;
  6823. isSubject = !isSubject;
  6824. } while (!current.v);
  6825. stream.lineEnd();
  6826. }
  6827. });
  6828. function link(array) {
  6829. if (!(n = array.length)) return;
  6830. var n,
  6831. i = 0,
  6832. a = array[0],
  6833. b;
  6834. while (++i < n) {
  6835. a.n = b = array[i];
  6836. b.p = a;
  6837. a = b;
  6838. }
  6839. a.n = b = array[0];
  6840. b.p = a;
  6841. }
  6842. /***/ }),
  6843. /***/ "./node_modules/d3-geo/src/compose.js":
  6844. /*!********************************************!*\
  6845. !*** ./node_modules/d3-geo/src/compose.js ***!
  6846. \********************************************/
  6847. /*! exports provided: default */
  6848. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6849. "use strict";
  6850. __webpack_require__.r(__webpack_exports__);
  6851. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  6852. function compose(x, y) {
  6853. return x = a(x, y), b(x[0], x[1]);
  6854. }
  6855. if (a.invert && b.invert) compose.invert = function(x, y) {
  6856. return x = b.invert(x, y), x && a.invert(x[0], x[1]);
  6857. };
  6858. return compose;
  6859. });
  6860. /***/ }),
  6861. /***/ "./node_modules/d3-geo/src/constant.js":
  6862. /*!*********************************************!*\
  6863. !*** ./node_modules/d3-geo/src/constant.js ***!
  6864. \*********************************************/
  6865. /*! exports provided: default */
  6866. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6867. "use strict";
  6868. __webpack_require__.r(__webpack_exports__);
  6869. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  6870. return function() {
  6871. return x;
  6872. };
  6873. });
  6874. /***/ }),
  6875. /***/ "./node_modules/d3-geo/src/contains.js":
  6876. /*!*********************************************!*\
  6877. !*** ./node_modules/d3-geo/src/contains.js ***!
  6878. \*********************************************/
  6879. /*! exports provided: default */
  6880. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6881. "use strict";
  6882. __webpack_require__.r(__webpack_exports__);
  6883. /* harmony import */ var _polygonContains_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./polygonContains.js */ "./node_modules/d3-geo/src/polygonContains.js");
  6884. /* harmony import */ var _distance_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./distance.js */ "./node_modules/d3-geo/src/distance.js");
  6885. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  6886. var containsObjectType = {
  6887. Feature: function(object, point) {
  6888. return containsGeometry(object.geometry, point);
  6889. },
  6890. FeatureCollection: function(object, point) {
  6891. var features = object.features, i = -1, n = features.length;
  6892. while (++i < n) if (containsGeometry(features[i].geometry, point)) return true;
  6893. return false;
  6894. }
  6895. };
  6896. var containsGeometryType = {
  6897. Sphere: function() {
  6898. return true;
  6899. },
  6900. Point: function(object, point) {
  6901. return containsPoint(object.coordinates, point);
  6902. },
  6903. MultiPoint: function(object, point) {
  6904. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  6905. while (++i < n) if (containsPoint(coordinates[i], point)) return true;
  6906. return false;
  6907. },
  6908. LineString: function(object, point) {
  6909. return containsLine(object.coordinates, point);
  6910. },
  6911. MultiLineString: function(object, point) {
  6912. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  6913. while (++i < n) if (containsLine(coordinates[i], point)) return true;
  6914. return false;
  6915. },
  6916. Polygon: function(object, point) {
  6917. return containsPolygon(object.coordinates, point);
  6918. },
  6919. MultiPolygon: function(object, point) {
  6920. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  6921. while (++i < n) if (containsPolygon(coordinates[i], point)) return true;
  6922. return false;
  6923. },
  6924. GeometryCollection: function(object, point) {
  6925. var geometries = object.geometries, i = -1, n = geometries.length;
  6926. while (++i < n) if (containsGeometry(geometries[i], point)) return true;
  6927. return false;
  6928. }
  6929. };
  6930. function containsGeometry(geometry, point) {
  6931. return geometry && containsGeometryType.hasOwnProperty(geometry.type)
  6932. ? containsGeometryType[geometry.type](geometry, point)
  6933. : false;
  6934. }
  6935. function containsPoint(coordinates, point) {
  6936. return Object(_distance_js__WEBPACK_IMPORTED_MODULE_1__["default"])(coordinates, point) === 0;
  6937. }
  6938. function containsLine(coordinates, point) {
  6939. var ao, bo, ab;
  6940. for (var i = 0, n = coordinates.length; i < n; i++) {
  6941. bo = Object(_distance_js__WEBPACK_IMPORTED_MODULE_1__["default"])(coordinates[i], point);
  6942. if (bo === 0) return true;
  6943. if (i > 0) {
  6944. ab = Object(_distance_js__WEBPACK_IMPORTED_MODULE_1__["default"])(coordinates[i], coordinates[i - 1]);
  6945. if (
  6946. ab > 0 &&
  6947. ao <= ab &&
  6948. bo <= ab &&
  6949. (ao + bo - ab) * (1 - Math.pow((ao - bo) / ab, 2)) < _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon2"] * ab
  6950. )
  6951. return true;
  6952. }
  6953. ao = bo;
  6954. }
  6955. return false;
  6956. }
  6957. function containsPolygon(coordinates, point) {
  6958. return !!Object(_polygonContains_js__WEBPACK_IMPORTED_MODULE_0__["default"])(coordinates.map(ringRadians), pointRadians(point));
  6959. }
  6960. function ringRadians(ring) {
  6961. return ring = ring.map(pointRadians), ring.pop(), ring;
  6962. }
  6963. function pointRadians(point) {
  6964. return [point[0] * _math_js__WEBPACK_IMPORTED_MODULE_2__["radians"], point[1] * _math_js__WEBPACK_IMPORTED_MODULE_2__["radians"]];
  6965. }
  6966. /* harmony default export */ __webpack_exports__["default"] = (function(object, point) {
  6967. return (object && containsObjectType.hasOwnProperty(object.type)
  6968. ? containsObjectType[object.type]
  6969. : containsGeometry)(object, point);
  6970. });
  6971. /***/ }),
  6972. /***/ "./node_modules/d3-geo/src/distance.js":
  6973. /*!*********************************************!*\
  6974. !*** ./node_modules/d3-geo/src/distance.js ***!
  6975. \*********************************************/
  6976. /*! exports provided: default */
  6977. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6978. "use strict";
  6979. __webpack_require__.r(__webpack_exports__);
  6980. /* harmony import */ var _length_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./length.js */ "./node_modules/d3-geo/src/length.js");
  6981. var coordinates = [null, null],
  6982. object = {type: "LineString", coordinates: coordinates};
  6983. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  6984. coordinates[0] = a;
  6985. coordinates[1] = b;
  6986. return Object(_length_js__WEBPACK_IMPORTED_MODULE_0__["default"])(object);
  6987. });
  6988. /***/ }),
  6989. /***/ "./node_modules/d3-geo/src/graticule.js":
  6990. /*!**********************************************!*\
  6991. !*** ./node_modules/d3-geo/src/graticule.js ***!
  6992. \**********************************************/
  6993. /*! exports provided: default, graticule10 */
  6994. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6995. "use strict";
  6996. __webpack_require__.r(__webpack_exports__);
  6997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return graticule; });
  6998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "graticule10", function() { return graticule10; });
  6999. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  7000. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  7001. function graticuleX(y0, y1, dy) {
  7002. var y = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(y0, y1 - _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"], dy).concat(y1);
  7003. return function(x) { return y.map(function(y) { return [x, y]; }); };
  7004. }
  7005. function graticuleY(x0, x1, dx) {
  7006. var x = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(x0, x1 - _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"], dx).concat(x1);
  7007. return function(y) { return x.map(function(x) { return [x, y]; }); };
  7008. }
  7009. function graticule() {
  7010. var x1, x0, X1, X0,
  7011. y1, y0, Y1, Y0,
  7012. dx = 10, dy = dx, DX = 90, DY = 360,
  7013. x, y, X, Y,
  7014. precision = 2.5;
  7015. function graticule() {
  7016. return {type: "MultiLineString", coordinates: lines()};
  7017. }
  7018. function lines() {
  7019. return Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["ceil"])(X0 / DX) * DX, X1, DX).map(X)
  7020. .concat(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["ceil"])(Y0 / DY) * DY, Y1, DY).map(Y))
  7021. .concat(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["ceil"])(x0 / dx) * dx, x1, dx).filter(function(x) { return Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(x % DX) > _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]; }).map(x))
  7022. .concat(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["ceil"])(y0 / dy) * dy, y1, dy).filter(function(y) { return Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(y % DY) > _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]; }).map(y));
  7023. }
  7024. graticule.lines = function() {
  7025. return lines().map(function(coordinates) { return {type: "LineString", coordinates: coordinates}; });
  7026. };
  7027. graticule.outline = function() {
  7028. return {
  7029. type: "Polygon",
  7030. coordinates: [
  7031. X(X0).concat(
  7032. Y(Y1).slice(1),
  7033. X(X1).reverse().slice(1),
  7034. Y(Y0).reverse().slice(1))
  7035. ]
  7036. };
  7037. };
  7038. graticule.extent = function(_) {
  7039. if (!arguments.length) return graticule.extentMinor();
  7040. return graticule.extentMajor(_).extentMinor(_);
  7041. };
  7042. graticule.extentMajor = function(_) {
  7043. if (!arguments.length) return [[X0, Y0], [X1, Y1]];
  7044. X0 = +_[0][0], X1 = +_[1][0];
  7045. Y0 = +_[0][1], Y1 = +_[1][1];
  7046. if (X0 > X1) _ = X0, X0 = X1, X1 = _;
  7047. if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;
  7048. return graticule.precision(precision);
  7049. };
  7050. graticule.extentMinor = function(_) {
  7051. if (!arguments.length) return [[x0, y0], [x1, y1]];
  7052. x0 = +_[0][0], x1 = +_[1][0];
  7053. y0 = +_[0][1], y1 = +_[1][1];
  7054. if (x0 > x1) _ = x0, x0 = x1, x1 = _;
  7055. if (y0 > y1) _ = y0, y0 = y1, y1 = _;
  7056. return graticule.precision(precision);
  7057. };
  7058. graticule.step = function(_) {
  7059. if (!arguments.length) return graticule.stepMinor();
  7060. return graticule.stepMajor(_).stepMinor(_);
  7061. };
  7062. graticule.stepMajor = function(_) {
  7063. if (!arguments.length) return [DX, DY];
  7064. DX = +_[0], DY = +_[1];
  7065. return graticule;
  7066. };
  7067. graticule.stepMinor = function(_) {
  7068. if (!arguments.length) return [dx, dy];
  7069. dx = +_[0], dy = +_[1];
  7070. return graticule;
  7071. };
  7072. graticule.precision = function(_) {
  7073. if (!arguments.length) return precision;
  7074. precision = +_;
  7075. x = graticuleX(y0, y1, 90);
  7076. y = graticuleY(x0, x1, precision);
  7077. X = graticuleX(Y0, Y1, 90);
  7078. Y = graticuleY(X0, X1, precision);
  7079. return graticule;
  7080. };
  7081. return graticule
  7082. .extentMajor([[-180, -90 + _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]], [180, 90 - _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]]])
  7083. .extentMinor([[-180, -80 - _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]], [180, 80 + _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"]]]);
  7084. }
  7085. function graticule10() {
  7086. return graticule()();
  7087. }
  7088. /***/ }),
  7089. /***/ "./node_modules/d3-geo/src/identity.js":
  7090. /*!*********************************************!*\
  7091. !*** ./node_modules/d3-geo/src/identity.js ***!
  7092. \*********************************************/
  7093. /*! exports provided: default */
  7094. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7095. "use strict";
  7096. __webpack_require__.r(__webpack_exports__);
  7097. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  7098. return x;
  7099. });
  7100. /***/ }),
  7101. /***/ "./node_modules/d3-geo/src/index.js":
  7102. /*!******************************************!*\
  7103. !*** ./node_modules/d3-geo/src/index.js ***!
  7104. \******************************************/
  7105. /*! 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 */
  7106. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7107. "use strict";
  7108. __webpack_require__.r(__webpack_exports__);
  7109. /* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./area.js */ "./node_modules/d3-geo/src/area.js");
  7110. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoArea", function() { return _area_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  7111. /* harmony import */ var _bounds_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bounds.js */ "./node_modules/d3-geo/src/bounds.js");
  7112. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoBounds", function() { return _bounds_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  7113. /* harmony import */ var _centroid_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./centroid.js */ "./node_modules/d3-geo/src/centroid.js");
  7114. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoCentroid", function() { return _centroid_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  7115. /* harmony import */ var _circle_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./circle.js */ "./node_modules/d3-geo/src/circle.js");
  7116. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoCircle", function() { return _circle_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  7117. /* harmony import */ var _clip_antimeridian_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./clip/antimeridian.js */ "./node_modules/d3-geo/src/clip/antimeridian.js");
  7118. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipAntimeridian", function() { return _clip_antimeridian_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  7119. /* harmony import */ var _clip_circle_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./clip/circle.js */ "./node_modules/d3-geo/src/clip/circle.js");
  7120. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipCircle", function() { return _clip_circle_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  7121. /* harmony import */ var _clip_extent_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./clip/extent.js */ "./node_modules/d3-geo/src/clip/extent.js");
  7122. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipExtent", function() { return _clip_extent_js__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  7123. /* harmony import */ var _clip_rectangle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./clip/rectangle.js */ "./node_modules/d3-geo/src/clip/rectangle.js");
  7124. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipRectangle", function() { return _clip_rectangle_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  7125. /* harmony import */ var _contains_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./contains.js */ "./node_modules/d3-geo/src/contains.js");
  7126. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoContains", function() { return _contains_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  7127. /* harmony import */ var _distance_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./distance.js */ "./node_modules/d3-geo/src/distance.js");
  7128. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoDistance", function() { return _distance_js__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  7129. /* harmony import */ var _graticule_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./graticule.js */ "./node_modules/d3-geo/src/graticule.js");
  7130. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGraticule", function() { return _graticule_js__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  7131. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGraticule10", function() { return _graticule_js__WEBPACK_IMPORTED_MODULE_10__["graticule10"]; });
  7132. /* harmony import */ var _interpolate_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./interpolate.js */ "./node_modules/d3-geo/src/interpolate.js");
  7133. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoInterpolate", function() { return _interpolate_js__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  7134. /* harmony import */ var _length_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./length.js */ "./node_modules/d3-geo/src/length.js");
  7135. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoLength", function() { return _length_js__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  7136. /* harmony import */ var _path_index_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./path/index.js */ "./node_modules/d3-geo/src/path/index.js");
  7137. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoPath", function() { return _path_index_js__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  7138. /* harmony import */ var _projection_albers_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./projection/albers.js */ "./node_modules/d3-geo/src/projection/albers.js");
  7139. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAlbers", function() { return _projection_albers_js__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  7140. /* harmony import */ var _projection_albersUsa_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./projection/albersUsa.js */ "./node_modules/d3-geo/src/projection/albersUsa.js");
  7141. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAlbersUsa", function() { return _projection_albersUsa_js__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  7142. /* harmony import */ var _projection_azimuthalEqualArea_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./projection/azimuthalEqualArea.js */ "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js");
  7143. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEqualArea", function() { return _projection_azimuthalEqualArea_js__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  7144. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEqualAreaRaw", function() { return _projection_azimuthalEqualArea_js__WEBPACK_IMPORTED_MODULE_16__["azimuthalEqualAreaRaw"]; });
  7145. /* harmony import */ var _projection_azimuthalEquidistant_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./projection/azimuthalEquidistant.js */ "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js");
  7146. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEquidistant", function() { return _projection_azimuthalEquidistant_js__WEBPACK_IMPORTED_MODULE_17__["default"]; });
  7147. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEquidistantRaw", function() { return _projection_azimuthalEquidistant_js__WEBPACK_IMPORTED_MODULE_17__["azimuthalEquidistantRaw"]; });
  7148. /* harmony import */ var _projection_conicConformal_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./projection/conicConformal.js */ "./node_modules/d3-geo/src/projection/conicConformal.js");
  7149. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicConformal", function() { return _projection_conicConformal_js__WEBPACK_IMPORTED_MODULE_18__["default"]; });
  7150. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicConformalRaw", function() { return _projection_conicConformal_js__WEBPACK_IMPORTED_MODULE_18__["conicConformalRaw"]; });
  7151. /* harmony import */ var _projection_conicEqualArea_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./projection/conicEqualArea.js */ "./node_modules/d3-geo/src/projection/conicEqualArea.js");
  7152. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEqualArea", function() { return _projection_conicEqualArea_js__WEBPACK_IMPORTED_MODULE_19__["default"]; });
  7153. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEqualAreaRaw", function() { return _projection_conicEqualArea_js__WEBPACK_IMPORTED_MODULE_19__["conicEqualAreaRaw"]; });
  7154. /* harmony import */ var _projection_conicEquidistant_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./projection/conicEquidistant.js */ "./node_modules/d3-geo/src/projection/conicEquidistant.js");
  7155. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEquidistant", function() { return _projection_conicEquidistant_js__WEBPACK_IMPORTED_MODULE_20__["default"]; });
  7156. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEquidistantRaw", function() { return _projection_conicEquidistant_js__WEBPACK_IMPORTED_MODULE_20__["conicEquidistantRaw"]; });
  7157. /* harmony import */ var _projection_equalEarth_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./projection/equalEarth.js */ "./node_modules/d3-geo/src/projection/equalEarth.js");
  7158. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEqualEarth", function() { return _projection_equalEarth_js__WEBPACK_IMPORTED_MODULE_21__["default"]; });
  7159. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEqualEarthRaw", function() { return _projection_equalEarth_js__WEBPACK_IMPORTED_MODULE_21__["equalEarthRaw"]; });
  7160. /* harmony import */ var _projection_equirectangular_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./projection/equirectangular.js */ "./node_modules/d3-geo/src/projection/equirectangular.js");
  7161. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEquirectangular", function() { return _projection_equirectangular_js__WEBPACK_IMPORTED_MODULE_22__["default"]; });
  7162. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEquirectangularRaw", function() { return _projection_equirectangular_js__WEBPACK_IMPORTED_MODULE_22__["equirectangularRaw"]; });
  7163. /* harmony import */ var _projection_gnomonic_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./projection/gnomonic.js */ "./node_modules/d3-geo/src/projection/gnomonic.js");
  7164. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGnomonic", function() { return _projection_gnomonic_js__WEBPACK_IMPORTED_MODULE_23__["default"]; });
  7165. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGnomonicRaw", function() { return _projection_gnomonic_js__WEBPACK_IMPORTED_MODULE_23__["gnomonicRaw"]; });
  7166. /* harmony import */ var _projection_identity_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./projection/identity.js */ "./node_modules/d3-geo/src/projection/identity.js");
  7167. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoIdentity", function() { return _projection_identity_js__WEBPACK_IMPORTED_MODULE_24__["default"]; });
  7168. /* harmony import */ var _projection_index_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./projection/index.js */ "./node_modules/d3-geo/src/projection/index.js");
  7169. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoProjection", function() { return _projection_index_js__WEBPACK_IMPORTED_MODULE_25__["default"]; });
  7170. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoProjectionMutator", function() { return _projection_index_js__WEBPACK_IMPORTED_MODULE_25__["projectionMutator"]; });
  7171. /* harmony import */ var _projection_mercator_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./projection/mercator.js */ "./node_modules/d3-geo/src/projection/mercator.js");
  7172. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoMercator", function() { return _projection_mercator_js__WEBPACK_IMPORTED_MODULE_26__["default"]; });
  7173. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoMercatorRaw", function() { return _projection_mercator_js__WEBPACK_IMPORTED_MODULE_26__["mercatorRaw"]; });
  7174. /* harmony import */ var _projection_naturalEarth1_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./projection/naturalEarth1.js */ "./node_modules/d3-geo/src/projection/naturalEarth1.js");
  7175. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoNaturalEarth1", function() { return _projection_naturalEarth1_js__WEBPACK_IMPORTED_MODULE_27__["default"]; });
  7176. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoNaturalEarth1Raw", function() { return _projection_naturalEarth1_js__WEBPACK_IMPORTED_MODULE_27__["naturalEarth1Raw"]; });
  7177. /* harmony import */ var _projection_orthographic_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./projection/orthographic.js */ "./node_modules/d3-geo/src/projection/orthographic.js");
  7178. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoOrthographic", function() { return _projection_orthographic_js__WEBPACK_IMPORTED_MODULE_28__["default"]; });
  7179. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoOrthographicRaw", function() { return _projection_orthographic_js__WEBPACK_IMPORTED_MODULE_28__["orthographicRaw"]; });
  7180. /* harmony import */ var _projection_stereographic_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./projection/stereographic.js */ "./node_modules/d3-geo/src/projection/stereographic.js");
  7181. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStereographic", function() { return _projection_stereographic_js__WEBPACK_IMPORTED_MODULE_29__["default"]; });
  7182. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStereographicRaw", function() { return _projection_stereographic_js__WEBPACK_IMPORTED_MODULE_29__["stereographicRaw"]; });
  7183. /* harmony import */ var _projection_transverseMercator_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./projection/transverseMercator.js */ "./node_modules/d3-geo/src/projection/transverseMercator.js");
  7184. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransverseMercator", function() { return _projection_transverseMercator_js__WEBPACK_IMPORTED_MODULE_30__["default"]; });
  7185. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransverseMercatorRaw", function() { return _projection_transverseMercator_js__WEBPACK_IMPORTED_MODULE_30__["transverseMercatorRaw"]; });
  7186. /* harmony import */ var _rotation_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./rotation.js */ "./node_modules/d3-geo/src/rotation.js");
  7187. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoRotation", function() { return _rotation_js__WEBPACK_IMPORTED_MODULE_31__["default"]; });
  7188. /* harmony import */ var _stream_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./stream.js */ "./node_modules/d3-geo/src/stream.js");
  7189. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStream", function() { return _stream_js__WEBPACK_IMPORTED_MODULE_32__["default"]; });
  7190. /* harmony import */ var _transform_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./transform.js */ "./node_modules/d3-geo/src/transform.js");
  7191. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransform", function() { return _transform_js__WEBPACK_IMPORTED_MODULE_33__["default"]; });
  7192. // DEPRECATED! Use d3.geoIdentity().clipExtent(…).
  7193. /***/ }),
  7194. /***/ "./node_modules/d3-geo/src/interpolate.js":
  7195. /*!************************************************!*\
  7196. !*** ./node_modules/d3-geo/src/interpolate.js ***!
  7197. \************************************************/
  7198. /*! exports provided: default */
  7199. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7200. "use strict";
  7201. __webpack_require__.r(__webpack_exports__);
  7202. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  7203. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  7204. var x0 = a[0] * _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"],
  7205. y0 = a[1] * _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"],
  7206. x1 = b[0] * _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"],
  7207. y1 = b[1] * _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"],
  7208. cy0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(y0),
  7209. sy0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(y0),
  7210. cy1 = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(y1),
  7211. sy1 = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(y1),
  7212. kx0 = cy0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(x0),
  7213. ky0 = cy0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(x0),
  7214. kx1 = cy1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(x1),
  7215. ky1 = cy1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(x1),
  7216. d = 2 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["asin"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["haversin"])(y1 - y0) + cy0 * cy1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["haversin"])(x1 - x0))),
  7217. k = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(d);
  7218. var interpolate = d ? function(t) {
  7219. var B = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(t *= d) / k,
  7220. A = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(d - t) / k,
  7221. x = A * kx0 + B * kx1,
  7222. y = A * ky0 + B * ky1,
  7223. z = A * sy0 + B * sy1;
  7224. return [
  7225. Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan2"])(y, x) * _math_js__WEBPACK_IMPORTED_MODULE_0__["degrees"],
  7226. Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan2"])(z, Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(x * x + y * y)) * _math_js__WEBPACK_IMPORTED_MODULE_0__["degrees"]
  7227. ];
  7228. } : function() {
  7229. return [x0 * _math_js__WEBPACK_IMPORTED_MODULE_0__["degrees"], y0 * _math_js__WEBPACK_IMPORTED_MODULE_0__["degrees"]];
  7230. };
  7231. interpolate.distance = d;
  7232. return interpolate;
  7233. });
  7234. /***/ }),
  7235. /***/ "./node_modules/d3-geo/src/length.js":
  7236. /*!*******************************************!*\
  7237. !*** ./node_modules/d3-geo/src/length.js ***!
  7238. \*******************************************/
  7239. /*! exports provided: default */
  7240. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7241. "use strict";
  7242. __webpack_require__.r(__webpack_exports__);
  7243. /* harmony import */ var _adder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./adder.js */ "./node_modules/d3-geo/src/adder.js");
  7244. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  7245. /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./noop.js */ "./node_modules/d3-geo/src/noop.js");
  7246. /* harmony import */ var _stream_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./stream.js */ "./node_modules/d3-geo/src/stream.js");
  7247. var lengthSum = Object(_adder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  7248. lambda0,
  7249. sinPhi0,
  7250. cosPhi0;
  7251. var lengthStream = {
  7252. sphere: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  7253. point: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  7254. lineStart: lengthLineStart,
  7255. lineEnd: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  7256. polygonStart: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  7257. polygonEnd: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"]
  7258. };
  7259. function lengthLineStart() {
  7260. lengthStream.point = lengthPointFirst;
  7261. lengthStream.lineEnd = lengthLineEnd;
  7262. }
  7263. function lengthLineEnd() {
  7264. lengthStream.point = lengthStream.lineEnd = _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"];
  7265. }
  7266. function lengthPointFirst(lambda, phi) {
  7267. lambda *= _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"], phi *= _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"];
  7268. lambda0 = lambda, sinPhi0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi), cosPhi0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi);
  7269. lengthStream.point = lengthPoint;
  7270. }
  7271. function lengthPoint(lambda, phi) {
  7272. lambda *= _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"], phi *= _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"];
  7273. var sinPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi),
  7274. cosPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi),
  7275. delta = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda - lambda0),
  7276. cosDelta = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(delta),
  7277. sinDelta = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(delta),
  7278. x = cosPhi * sinDelta,
  7279. y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,
  7280. z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;
  7281. lengthSum.add(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["atan2"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sqrt"])(x * x + y * y), z));
  7282. lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;
  7283. }
  7284. /* harmony default export */ __webpack_exports__["default"] = (function(object) {
  7285. lengthSum.reset();
  7286. Object(_stream_js__WEBPACK_IMPORTED_MODULE_3__["default"])(object, lengthStream);
  7287. return +lengthSum;
  7288. });
  7289. /***/ }),
  7290. /***/ "./node_modules/d3-geo/src/math.js":
  7291. /*!*****************************************!*\
  7292. !*** ./node_modules/d3-geo/src/math.js ***!
  7293. \*****************************************/
  7294. /*! 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 */
  7295. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7296. "use strict";
  7297. __webpack_require__.r(__webpack_exports__);
  7298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon", function() { return epsilon; });
  7299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon2", function() { return epsilon2; });
  7300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pi", function() { return pi; });
  7301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "halfPi", function() { return halfPi; });
  7302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quarterPi", function() { return quarterPi; });
  7303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tau", function() { return tau; });
  7304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "degrees", function() { return degrees; });
  7305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "radians", function() { return radians; });
  7306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "abs", function() { return abs; });
  7307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "atan", function() { return atan; });
  7308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "atan2", function() { return atan2; });
  7309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cos", function() { return cos; });
  7310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ceil", function() { return ceil; });
  7311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "exp", function() { return exp; });
  7312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "floor", function() { return floor; });
  7313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "log", function() { return log; });
  7314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pow", function() { return pow; });
  7315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sin", function() { return sin; });
  7316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sign", function() { return sign; });
  7317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sqrt", function() { return sqrt; });
  7318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tan", function() { return tan; });
  7319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "acos", function() { return acos; });
  7320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asin", function() { return asin; });
  7321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "haversin", function() { return haversin; });
  7322. var epsilon = 1e-6;
  7323. var epsilon2 = 1e-12;
  7324. var pi = Math.PI;
  7325. var halfPi = pi / 2;
  7326. var quarterPi = pi / 4;
  7327. var tau = pi * 2;
  7328. var degrees = 180 / pi;
  7329. var radians = pi / 180;
  7330. var abs = Math.abs;
  7331. var atan = Math.atan;
  7332. var atan2 = Math.atan2;
  7333. var cos = Math.cos;
  7334. var ceil = Math.ceil;
  7335. var exp = Math.exp;
  7336. var floor = Math.floor;
  7337. var log = Math.log;
  7338. var pow = Math.pow;
  7339. var sin = Math.sin;
  7340. var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };
  7341. var sqrt = Math.sqrt;
  7342. var tan = Math.tan;
  7343. function acos(x) {
  7344. return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
  7345. }
  7346. function asin(x) {
  7347. return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);
  7348. }
  7349. function haversin(x) {
  7350. return (x = sin(x / 2)) * x;
  7351. }
  7352. /***/ }),
  7353. /***/ "./node_modules/d3-geo/src/noop.js":
  7354. /*!*****************************************!*\
  7355. !*** ./node_modules/d3-geo/src/noop.js ***!
  7356. \*****************************************/
  7357. /*! exports provided: default */
  7358. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7359. "use strict";
  7360. __webpack_require__.r(__webpack_exports__);
  7361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return noop; });
  7362. function noop() {}
  7363. /***/ }),
  7364. /***/ "./node_modules/d3-geo/src/path/area.js":
  7365. /*!**********************************************!*\
  7366. !*** ./node_modules/d3-geo/src/path/area.js ***!
  7367. \**********************************************/
  7368. /*! exports provided: default */
  7369. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7370. "use strict";
  7371. __webpack_require__.r(__webpack_exports__);
  7372. /* harmony import */ var _adder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../adder.js */ "./node_modules/d3-geo/src/adder.js");
  7373. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  7374. /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-geo/src/noop.js");
  7375. var areaSum = Object(_adder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  7376. areaRingSum = Object(_adder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  7377. x00,
  7378. y00,
  7379. x0,
  7380. y0;
  7381. var areaStream = {
  7382. point: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  7383. lineStart: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  7384. lineEnd: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  7385. polygonStart: function() {
  7386. areaStream.lineStart = areaRingStart;
  7387. areaStream.lineEnd = areaRingEnd;
  7388. },
  7389. polygonEnd: function() {
  7390. areaStream.lineStart = areaStream.lineEnd = areaStream.point = _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"];
  7391. areaSum.add(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(areaRingSum));
  7392. areaRingSum.reset();
  7393. },
  7394. result: function() {
  7395. var area = areaSum / 2;
  7396. areaSum.reset();
  7397. return area;
  7398. }
  7399. };
  7400. function areaRingStart() {
  7401. areaStream.point = areaPointFirst;
  7402. }
  7403. function areaPointFirst(x, y) {
  7404. areaStream.point = areaPoint;
  7405. x00 = x0 = x, y00 = y0 = y;
  7406. }
  7407. function areaPoint(x, y) {
  7408. areaRingSum.add(y0 * x - x0 * y);
  7409. x0 = x, y0 = y;
  7410. }
  7411. function areaRingEnd() {
  7412. areaPoint(x00, y00);
  7413. }
  7414. /* harmony default export */ __webpack_exports__["default"] = (areaStream);
  7415. /***/ }),
  7416. /***/ "./node_modules/d3-geo/src/path/bounds.js":
  7417. /*!************************************************!*\
  7418. !*** ./node_modules/d3-geo/src/path/bounds.js ***!
  7419. \************************************************/
  7420. /*! exports provided: default */
  7421. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7422. "use strict";
  7423. __webpack_require__.r(__webpack_exports__);
  7424. /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-geo/src/noop.js");
  7425. var x0 = Infinity,
  7426. y0 = x0,
  7427. x1 = -x0,
  7428. y1 = x1;
  7429. var boundsStream = {
  7430. point: boundsPoint,
  7431. lineStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  7432. lineEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  7433. polygonStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  7434. polygonEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  7435. result: function() {
  7436. var bounds = [[x0, y0], [x1, y1]];
  7437. x1 = y1 = -(y0 = x0 = Infinity);
  7438. return bounds;
  7439. }
  7440. };
  7441. function boundsPoint(x, y) {
  7442. if (x < x0) x0 = x;
  7443. if (x > x1) x1 = x;
  7444. if (y < y0) y0 = y;
  7445. if (y > y1) y1 = y;
  7446. }
  7447. /* harmony default export */ __webpack_exports__["default"] = (boundsStream);
  7448. /***/ }),
  7449. /***/ "./node_modules/d3-geo/src/path/centroid.js":
  7450. /*!**************************************************!*\
  7451. !*** ./node_modules/d3-geo/src/path/centroid.js ***!
  7452. \**************************************************/
  7453. /*! exports provided: default */
  7454. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7455. "use strict";
  7456. __webpack_require__.r(__webpack_exports__);
  7457. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  7458. // TODO Enforce positive area for exterior, negative area for interior?
  7459. var X0 = 0,
  7460. Y0 = 0,
  7461. Z0 = 0,
  7462. X1 = 0,
  7463. Y1 = 0,
  7464. Z1 = 0,
  7465. X2 = 0,
  7466. Y2 = 0,
  7467. Z2 = 0,
  7468. x00,
  7469. y00,
  7470. x0,
  7471. y0;
  7472. var centroidStream = {
  7473. point: centroidPoint,
  7474. lineStart: centroidLineStart,
  7475. lineEnd: centroidLineEnd,
  7476. polygonStart: function() {
  7477. centroidStream.lineStart = centroidRingStart;
  7478. centroidStream.lineEnd = centroidRingEnd;
  7479. },
  7480. polygonEnd: function() {
  7481. centroidStream.point = centroidPoint;
  7482. centroidStream.lineStart = centroidLineStart;
  7483. centroidStream.lineEnd = centroidLineEnd;
  7484. },
  7485. result: function() {
  7486. var centroid = Z2 ? [X2 / Z2, Y2 / Z2]
  7487. : Z1 ? [X1 / Z1, Y1 / Z1]
  7488. : Z0 ? [X0 / Z0, Y0 / Z0]
  7489. : [NaN, NaN];
  7490. X0 = Y0 = Z0 =
  7491. X1 = Y1 = Z1 =
  7492. X2 = Y2 = Z2 = 0;
  7493. return centroid;
  7494. }
  7495. };
  7496. function centroidPoint(x, y) {
  7497. X0 += x;
  7498. Y0 += y;
  7499. ++Z0;
  7500. }
  7501. function centroidLineStart() {
  7502. centroidStream.point = centroidPointFirstLine;
  7503. }
  7504. function centroidPointFirstLine(x, y) {
  7505. centroidStream.point = centroidPointLine;
  7506. centroidPoint(x0 = x, y0 = y);
  7507. }
  7508. function centroidPointLine(x, y) {
  7509. var dx = x - x0, dy = y - y0, z = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(dx * dx + dy * dy);
  7510. X1 += z * (x0 + x) / 2;
  7511. Y1 += z * (y0 + y) / 2;
  7512. Z1 += z;
  7513. centroidPoint(x0 = x, y0 = y);
  7514. }
  7515. function centroidLineEnd() {
  7516. centroidStream.point = centroidPoint;
  7517. }
  7518. function centroidRingStart() {
  7519. centroidStream.point = centroidPointFirstRing;
  7520. }
  7521. function centroidRingEnd() {
  7522. centroidPointRing(x00, y00);
  7523. }
  7524. function centroidPointFirstRing(x, y) {
  7525. centroidStream.point = centroidPointRing;
  7526. centroidPoint(x00 = x0 = x, y00 = y0 = y);
  7527. }
  7528. function centroidPointRing(x, y) {
  7529. var dx = x - x0,
  7530. dy = y - y0,
  7531. z = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(dx * dx + dy * dy);
  7532. X1 += z * (x0 + x) / 2;
  7533. Y1 += z * (y0 + y) / 2;
  7534. Z1 += z;
  7535. z = y0 * x - x0 * y;
  7536. X2 += z * (x0 + x);
  7537. Y2 += z * (y0 + y);
  7538. Z2 += z * 3;
  7539. centroidPoint(x0 = x, y0 = y);
  7540. }
  7541. /* harmony default export */ __webpack_exports__["default"] = (centroidStream);
  7542. /***/ }),
  7543. /***/ "./node_modules/d3-geo/src/path/context.js":
  7544. /*!*************************************************!*\
  7545. !*** ./node_modules/d3-geo/src/path/context.js ***!
  7546. \*************************************************/
  7547. /*! exports provided: default */
  7548. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7549. "use strict";
  7550. __webpack_require__.r(__webpack_exports__);
  7551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PathContext; });
  7552. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  7553. /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-geo/src/noop.js");
  7554. function PathContext(context) {
  7555. this._context = context;
  7556. }
  7557. PathContext.prototype = {
  7558. _radius: 4.5,
  7559. pointRadius: function(_) {
  7560. return this._radius = _, this;
  7561. },
  7562. polygonStart: function() {
  7563. this._line = 0;
  7564. },
  7565. polygonEnd: function() {
  7566. this._line = NaN;
  7567. },
  7568. lineStart: function() {
  7569. this._point = 0;
  7570. },
  7571. lineEnd: function() {
  7572. if (this._line === 0) this._context.closePath();
  7573. this._point = NaN;
  7574. },
  7575. point: function(x, y) {
  7576. switch (this._point) {
  7577. case 0: {
  7578. this._context.moveTo(x, y);
  7579. this._point = 1;
  7580. break;
  7581. }
  7582. case 1: {
  7583. this._context.lineTo(x, y);
  7584. break;
  7585. }
  7586. default: {
  7587. this._context.moveTo(x + this._radius, y);
  7588. this._context.arc(x, y, this._radius, 0, _math_js__WEBPACK_IMPORTED_MODULE_0__["tau"]);
  7589. break;
  7590. }
  7591. }
  7592. },
  7593. result: _noop_js__WEBPACK_IMPORTED_MODULE_1__["default"]
  7594. };
  7595. /***/ }),
  7596. /***/ "./node_modules/d3-geo/src/path/index.js":
  7597. /*!***********************************************!*\
  7598. !*** ./node_modules/d3-geo/src/path/index.js ***!
  7599. \***********************************************/
  7600. /*! exports provided: default */
  7601. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7602. "use strict";
  7603. __webpack_require__.r(__webpack_exports__);
  7604. /* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../identity.js */ "./node_modules/d3-geo/src/identity.js");
  7605. /* harmony import */ var _stream_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../stream.js */ "./node_modules/d3-geo/src/stream.js");
  7606. /* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./area.js */ "./node_modules/d3-geo/src/path/area.js");
  7607. /* harmony import */ var _bounds_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bounds.js */ "./node_modules/d3-geo/src/path/bounds.js");
  7608. /* harmony import */ var _centroid_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./centroid.js */ "./node_modules/d3-geo/src/path/centroid.js");
  7609. /* harmony import */ var _context_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context.js */ "./node_modules/d3-geo/src/path/context.js");
  7610. /* harmony import */ var _measure_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./measure.js */ "./node_modules/d3-geo/src/path/measure.js");
  7611. /* harmony import */ var _string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./string.js */ "./node_modules/d3-geo/src/path/string.js");
  7612. /* harmony default export */ __webpack_exports__["default"] = (function(projection, context) {
  7613. var pointRadius = 4.5,
  7614. projectionStream,
  7615. contextStream;
  7616. function path(object) {
  7617. if (object) {
  7618. if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
  7619. Object(_stream_js__WEBPACK_IMPORTED_MODULE_1__["default"])(object, projectionStream(contextStream));
  7620. }
  7621. return contextStream.result();
  7622. }
  7623. path.area = function(object) {
  7624. Object(_stream_js__WEBPACK_IMPORTED_MODULE_1__["default"])(object, projectionStream(_area_js__WEBPACK_IMPORTED_MODULE_2__["default"]));
  7625. return _area_js__WEBPACK_IMPORTED_MODULE_2__["default"].result();
  7626. };
  7627. path.measure = function(object) {
  7628. Object(_stream_js__WEBPACK_IMPORTED_MODULE_1__["default"])(object, projectionStream(_measure_js__WEBPACK_IMPORTED_MODULE_6__["default"]));
  7629. return _measure_js__WEBPACK_IMPORTED_MODULE_6__["default"].result();
  7630. };
  7631. path.bounds = function(object) {
  7632. Object(_stream_js__WEBPACK_IMPORTED_MODULE_1__["default"])(object, projectionStream(_bounds_js__WEBPACK_IMPORTED_MODULE_3__["default"]));
  7633. return _bounds_js__WEBPACK_IMPORTED_MODULE_3__["default"].result();
  7634. };
  7635. path.centroid = function(object) {
  7636. Object(_stream_js__WEBPACK_IMPORTED_MODULE_1__["default"])(object, projectionStream(_centroid_js__WEBPACK_IMPORTED_MODULE_4__["default"]));
  7637. return _centroid_js__WEBPACK_IMPORTED_MODULE_4__["default"].result();
  7638. };
  7639. path.projection = function(_) {
  7640. return arguments.length ? (projectionStream = _ == null ? (projection = null, _identity_js__WEBPACK_IMPORTED_MODULE_0__["default"]) : (projection = _).stream, path) : projection;
  7641. };
  7642. path.context = function(_) {
  7643. if (!arguments.length) return context;
  7644. contextStream = _ == null ? (context = null, new _string_js__WEBPACK_IMPORTED_MODULE_7__["default"]) : new _context_js__WEBPACK_IMPORTED_MODULE_5__["default"](context = _);
  7645. if (typeof pointRadius !== "function") contextStream.pointRadius(pointRadius);
  7646. return path;
  7647. };
  7648. path.pointRadius = function(_) {
  7649. if (!arguments.length) return pointRadius;
  7650. pointRadius = typeof _ === "function" ? _ : (contextStream.pointRadius(+_), +_);
  7651. return path;
  7652. };
  7653. return path.projection(projection).context(context);
  7654. });
  7655. /***/ }),
  7656. /***/ "./node_modules/d3-geo/src/path/measure.js":
  7657. /*!*************************************************!*\
  7658. !*** ./node_modules/d3-geo/src/path/measure.js ***!
  7659. \*************************************************/
  7660. /*! exports provided: default */
  7661. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7662. "use strict";
  7663. __webpack_require__.r(__webpack_exports__);
  7664. /* harmony import */ var _adder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../adder.js */ "./node_modules/d3-geo/src/adder.js");
  7665. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  7666. /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-geo/src/noop.js");
  7667. var lengthSum = Object(_adder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(),
  7668. lengthRing,
  7669. x00,
  7670. y00,
  7671. x0,
  7672. y0;
  7673. var lengthStream = {
  7674. point: _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  7675. lineStart: function() {
  7676. lengthStream.point = lengthPointFirst;
  7677. },
  7678. lineEnd: function() {
  7679. if (lengthRing) lengthPoint(x00, y00);
  7680. lengthStream.point = _noop_js__WEBPACK_IMPORTED_MODULE_2__["default"];
  7681. },
  7682. polygonStart: function() {
  7683. lengthRing = true;
  7684. },
  7685. polygonEnd: function() {
  7686. lengthRing = null;
  7687. },
  7688. result: function() {
  7689. var length = +lengthSum;
  7690. lengthSum.reset();
  7691. return length;
  7692. }
  7693. };
  7694. function lengthPointFirst(x, y) {
  7695. lengthStream.point = lengthPoint;
  7696. x00 = x0 = x, y00 = y0 = y;
  7697. }
  7698. function lengthPoint(x, y) {
  7699. x0 -= x, y0 -= y;
  7700. lengthSum.add(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sqrt"])(x0 * x0 + y0 * y0));
  7701. x0 = x, y0 = y;
  7702. }
  7703. /* harmony default export */ __webpack_exports__["default"] = (lengthStream);
  7704. /***/ }),
  7705. /***/ "./node_modules/d3-geo/src/path/string.js":
  7706. /*!************************************************!*\
  7707. !*** ./node_modules/d3-geo/src/path/string.js ***!
  7708. \************************************************/
  7709. /*! exports provided: default */
  7710. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7711. "use strict";
  7712. __webpack_require__.r(__webpack_exports__);
  7713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PathString; });
  7714. function PathString() {
  7715. this._string = [];
  7716. }
  7717. PathString.prototype = {
  7718. _radius: 4.5,
  7719. _circle: circle(4.5),
  7720. pointRadius: function(_) {
  7721. if ((_ = +_) !== this._radius) this._radius = _, this._circle = null;
  7722. return this;
  7723. },
  7724. polygonStart: function() {
  7725. this._line = 0;
  7726. },
  7727. polygonEnd: function() {
  7728. this._line = NaN;
  7729. },
  7730. lineStart: function() {
  7731. this._point = 0;
  7732. },
  7733. lineEnd: function() {
  7734. if (this._line === 0) this._string.push("Z");
  7735. this._point = NaN;
  7736. },
  7737. point: function(x, y) {
  7738. switch (this._point) {
  7739. case 0: {
  7740. this._string.push("M", x, ",", y);
  7741. this._point = 1;
  7742. break;
  7743. }
  7744. case 1: {
  7745. this._string.push("L", x, ",", y);
  7746. break;
  7747. }
  7748. default: {
  7749. if (this._circle == null) this._circle = circle(this._radius);
  7750. this._string.push("M", x, ",", y, this._circle);
  7751. break;
  7752. }
  7753. }
  7754. },
  7755. result: function() {
  7756. if (this._string.length) {
  7757. var result = this._string.join("");
  7758. this._string = [];
  7759. return result;
  7760. } else {
  7761. return null;
  7762. }
  7763. }
  7764. };
  7765. function circle(radius) {
  7766. return "m0," + radius
  7767. + "a" + radius + "," + radius + " 0 1,1 0," + -2 * radius
  7768. + "a" + radius + "," + radius + " 0 1,1 0," + 2 * radius
  7769. + "z";
  7770. }
  7771. /***/ }),
  7772. /***/ "./node_modules/d3-geo/src/pointEqual.js":
  7773. /*!***********************************************!*\
  7774. !*** ./node_modules/d3-geo/src/pointEqual.js ***!
  7775. \***********************************************/
  7776. /*! exports provided: default */
  7777. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7778. "use strict";
  7779. __webpack_require__.r(__webpack_exports__);
  7780. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  7781. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  7782. return Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["abs"])(a[0] - b[0]) < _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"] && Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["abs"])(a[1] - b[1]) < _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"];
  7783. });
  7784. /***/ }),
  7785. /***/ "./node_modules/d3-geo/src/polygonContains.js":
  7786. /*!****************************************************!*\
  7787. !*** ./node_modules/d3-geo/src/polygonContains.js ***!
  7788. \****************************************************/
  7789. /*! exports provided: default */
  7790. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7791. "use strict";
  7792. __webpack_require__.r(__webpack_exports__);
  7793. /* harmony import */ var _adder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./adder.js */ "./node_modules/d3-geo/src/adder.js");
  7794. /* harmony import */ var _cartesian_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cartesian.js */ "./node_modules/d3-geo/src/cartesian.js");
  7795. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  7796. var sum = Object(_adder_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
  7797. function longitude(point) {
  7798. if (Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["abs"])(point[0]) <= _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"])
  7799. return point[0];
  7800. else
  7801. return Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sign"])(point[0]) * ((Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["abs"])(point[0]) + _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"]) % _math_js__WEBPACK_IMPORTED_MODULE_2__["tau"] - _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"]);
  7802. }
  7803. /* harmony default export */ __webpack_exports__["default"] = (function(polygon, point) {
  7804. var lambda = longitude(point),
  7805. phi = point[1],
  7806. sinPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(phi),
  7807. normal = [Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(lambda), -Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(lambda), 0],
  7808. angle = 0,
  7809. winding = 0;
  7810. sum.reset();
  7811. if (sinPhi === 1) phi = _math_js__WEBPACK_IMPORTED_MODULE_2__["halfPi"] + _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"];
  7812. else if (sinPhi === -1) phi = -_math_js__WEBPACK_IMPORTED_MODULE_2__["halfPi"] - _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"];
  7813. for (var i = 0, n = polygon.length; i < n; ++i) {
  7814. if (!(m = (ring = polygon[i]).length)) continue;
  7815. var ring,
  7816. m,
  7817. point0 = ring[m - 1],
  7818. lambda0 = longitude(point0),
  7819. phi0 = point0[1] / 2 + _math_js__WEBPACK_IMPORTED_MODULE_2__["quarterPi"],
  7820. sinPhi0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(phi0),
  7821. cosPhi0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(phi0);
  7822. for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {
  7823. var point1 = ring[j],
  7824. lambda1 = longitude(point1),
  7825. phi1 = point1[1] / 2 + _math_js__WEBPACK_IMPORTED_MODULE_2__["quarterPi"],
  7826. sinPhi1 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(phi1),
  7827. cosPhi1 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(phi1),
  7828. delta = lambda1 - lambda0,
  7829. sign = delta >= 0 ? 1 : -1,
  7830. absDelta = sign * delta,
  7831. antimeridian = absDelta > _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"],
  7832. k = sinPhi0 * sinPhi1;
  7833. sum.add(Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(k * sign * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(absDelta), cosPhi0 * cosPhi1 + k * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(absDelta)));
  7834. angle += antimeridian ? delta + sign * _math_js__WEBPACK_IMPORTED_MODULE_2__["tau"] : delta;
  7835. // Are the longitudes either side of the point’s meridian (lambda),
  7836. // and are the latitudes smaller than the parallel (phi)?
  7837. if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {
  7838. var arc = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_1__["cartesianCross"])(Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_1__["cartesian"])(point0), Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_1__["cartesian"])(point1));
  7839. Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_1__["cartesianNormalizeInPlace"])(arc);
  7840. var intersection = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_1__["cartesianCross"])(normal, arc);
  7841. Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_1__["cartesianNormalizeInPlace"])(intersection);
  7842. var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["asin"])(intersection[2]);
  7843. if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {
  7844. winding += antimeridian ^ delta >= 0 ? 1 : -1;
  7845. }
  7846. }
  7847. }
  7848. }
  7849. // First, determine whether the South pole is inside or outside:
  7850. //
  7851. // It is inside if:
  7852. // * the polygon winds around it in a clockwise direction.
  7853. // * the polygon does not (cumulatively) wind around it, but has a negative
  7854. // (counter-clockwise) area.
  7855. //
  7856. // Second, count the (signed) number of times a segment crosses a lambda
  7857. // from the point to the South pole. If it is zero, then the point is the
  7858. // same side as the South pole.
  7859. return (angle < -_math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"] || angle < _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"] && sum < -_math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) ^ (winding & 1);
  7860. });
  7861. /***/ }),
  7862. /***/ "./node_modules/d3-geo/src/projection/albers.js":
  7863. /*!******************************************************!*\
  7864. !*** ./node_modules/d3-geo/src/projection/albers.js ***!
  7865. \******************************************************/
  7866. /*! exports provided: default */
  7867. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7868. "use strict";
  7869. __webpack_require__.r(__webpack_exports__);
  7870. /* harmony import */ var _conicEqualArea_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./conicEqualArea.js */ "./node_modules/d3-geo/src/projection/conicEqualArea.js");
  7871. /* harmony default export */ __webpack_exports__["default"] = (function() {
  7872. return Object(_conicEqualArea_js__WEBPACK_IMPORTED_MODULE_0__["default"])()
  7873. .parallels([29.5, 45.5])
  7874. .scale(1070)
  7875. .translate([480, 250])
  7876. .rotate([96, 0])
  7877. .center([-0.6, 38.7]);
  7878. });
  7879. /***/ }),
  7880. /***/ "./node_modules/d3-geo/src/projection/albersUsa.js":
  7881. /*!*********************************************************!*\
  7882. !*** ./node_modules/d3-geo/src/projection/albersUsa.js ***!
  7883. \*********************************************************/
  7884. /*! exports provided: default */
  7885. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7886. "use strict";
  7887. __webpack_require__.r(__webpack_exports__);
  7888. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  7889. /* harmony import */ var _albers_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./albers.js */ "./node_modules/d3-geo/src/projection/albers.js");
  7890. /* harmony import */ var _conicEqualArea_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./conicEqualArea.js */ "./node_modules/d3-geo/src/projection/conicEqualArea.js");
  7891. /* harmony import */ var _fit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fit.js */ "./node_modules/d3-geo/src/projection/fit.js");
  7892. // The projections must have mutually exclusive clip regions on the sphere,
  7893. // as this will avoid emitting interleaving lines and polygons.
  7894. function multiplex(streams) {
  7895. var n = streams.length;
  7896. return {
  7897. point: function(x, y) { var i = -1; while (++i < n) streams[i].point(x, y); },
  7898. sphere: function() { var i = -1; while (++i < n) streams[i].sphere(); },
  7899. lineStart: function() { var i = -1; while (++i < n) streams[i].lineStart(); },
  7900. lineEnd: function() { var i = -1; while (++i < n) streams[i].lineEnd(); },
  7901. polygonStart: function() { var i = -1; while (++i < n) streams[i].polygonStart(); },
  7902. polygonEnd: function() { var i = -1; while (++i < n) streams[i].polygonEnd(); }
  7903. };
  7904. }
  7905. // A composite projection for the United States, configured by default for
  7906. // 960×500. The projection also works quite well at 960×600 if you change the
  7907. // scale to 1285 and adjust the translate accordingly. The set of standard
  7908. // parallels for each region comes from USGS, which is published here:
  7909. // http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers
  7910. /* harmony default export */ __webpack_exports__["default"] = (function() {
  7911. var cache,
  7912. cacheStream,
  7913. lower48 = Object(_albers_js__WEBPACK_IMPORTED_MODULE_1__["default"])(), lower48Point,
  7914. alaska = Object(_conicEqualArea_js__WEBPACK_IMPORTED_MODULE_2__["default"])().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), alaskaPoint, // EPSG:3338
  7915. hawaii = Object(_conicEqualArea_js__WEBPACK_IMPORTED_MODULE_2__["default"])().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), hawaiiPoint, // ESRI:102007
  7916. point, pointStream = {point: function(x, y) { point = [x, y]; }};
  7917. function albersUsa(coordinates) {
  7918. var x = coordinates[0], y = coordinates[1];
  7919. return point = null,
  7920. (lower48Point.point(x, y), point)
  7921. || (alaskaPoint.point(x, y), point)
  7922. || (hawaiiPoint.point(x, y), point);
  7923. }
  7924. albersUsa.invert = function(coordinates) {
  7925. var k = lower48.scale(),
  7926. t = lower48.translate(),
  7927. x = (coordinates[0] - t[0]) / k,
  7928. y = (coordinates[1] - t[1]) / k;
  7929. return (y >= 0.120 && y < 0.234 && x >= -0.425 && x < -0.214 ? alaska
  7930. : y >= 0.166 && y < 0.234 && x >= -0.214 && x < -0.115 ? hawaii
  7931. : lower48).invert(coordinates);
  7932. };
  7933. albersUsa.stream = function(stream) {
  7934. return cache && cacheStream === stream ? cache : cache = multiplex([lower48.stream(cacheStream = stream), alaska.stream(stream), hawaii.stream(stream)]);
  7935. };
  7936. albersUsa.precision = function(_) {
  7937. if (!arguments.length) return lower48.precision();
  7938. lower48.precision(_), alaska.precision(_), hawaii.precision(_);
  7939. return reset();
  7940. };
  7941. albersUsa.scale = function(_) {
  7942. if (!arguments.length) return lower48.scale();
  7943. lower48.scale(_), alaska.scale(_ * 0.35), hawaii.scale(_);
  7944. return albersUsa.translate(lower48.translate());
  7945. };
  7946. albersUsa.translate = function(_) {
  7947. if (!arguments.length) return lower48.translate();
  7948. var k = lower48.scale(), x = +_[0], y = +_[1];
  7949. lower48Point = lower48
  7950. .translate(_)
  7951. .clipExtent([[x - 0.455 * k, y - 0.238 * k], [x + 0.455 * k, y + 0.238 * k]])
  7952. .stream(pointStream);
  7953. alaskaPoint = alaska
  7954. .translate([x - 0.307 * k, y + 0.201 * k])
  7955. .clipExtent([[x - 0.425 * k + _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"], y + 0.120 * k + _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]], [x - 0.214 * k - _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"], y + 0.234 * k - _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]]])
  7956. .stream(pointStream);
  7957. hawaiiPoint = hawaii
  7958. .translate([x - 0.205 * k, y + 0.212 * k])
  7959. .clipExtent([[x - 0.214 * k + _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"], y + 0.166 * k + _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]], [x - 0.115 * k - _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"], y + 0.234 * k - _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]]])
  7960. .stream(pointStream);
  7961. return reset();
  7962. };
  7963. albersUsa.fitExtent = function(extent, object) {
  7964. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_3__["fitExtent"])(albersUsa, extent, object);
  7965. };
  7966. albersUsa.fitSize = function(size, object) {
  7967. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_3__["fitSize"])(albersUsa, size, object);
  7968. };
  7969. albersUsa.fitWidth = function(width, object) {
  7970. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_3__["fitWidth"])(albersUsa, width, object);
  7971. };
  7972. albersUsa.fitHeight = function(height, object) {
  7973. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_3__["fitHeight"])(albersUsa, height, object);
  7974. };
  7975. function reset() {
  7976. cache = cacheStream = null;
  7977. return albersUsa;
  7978. }
  7979. return albersUsa.scale(1070);
  7980. });
  7981. /***/ }),
  7982. /***/ "./node_modules/d3-geo/src/projection/azimuthal.js":
  7983. /*!*********************************************************!*\
  7984. !*** ./node_modules/d3-geo/src/projection/azimuthal.js ***!
  7985. \*********************************************************/
  7986. /*! exports provided: azimuthalRaw, azimuthalInvert */
  7987. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7988. "use strict";
  7989. __webpack_require__.r(__webpack_exports__);
  7990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "azimuthalRaw", function() { return azimuthalRaw; });
  7991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "azimuthalInvert", function() { return azimuthalInvert; });
  7992. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  7993. function azimuthalRaw(scale) {
  7994. return function(x, y) {
  7995. var cx = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(x),
  7996. cy = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(y),
  7997. k = scale(cx * cy);
  7998. return [
  7999. k * cy * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(x),
  8000. k * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(y)
  8001. ];
  8002. }
  8003. }
  8004. function azimuthalInvert(angle) {
  8005. return function(x, y) {
  8006. var z = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(x * x + y * y),
  8007. c = angle(z),
  8008. sc = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(c),
  8009. cc = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(c);
  8010. return [
  8011. Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan2"])(x * sc, z * cc),
  8012. Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["asin"])(z && y * sc / z)
  8013. ];
  8014. }
  8015. }
  8016. /***/ }),
  8017. /***/ "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js":
  8018. /*!******************************************************************!*\
  8019. !*** ./node_modules/d3-geo/src/projection/azimuthalEqualArea.js ***!
  8020. \******************************************************************/
  8021. /*! exports provided: azimuthalEqualAreaRaw, default */
  8022. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8023. "use strict";
  8024. __webpack_require__.r(__webpack_exports__);
  8025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "azimuthalEqualAreaRaw", function() { return azimuthalEqualAreaRaw; });
  8026. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8027. /* harmony import */ var _azimuthal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./azimuthal.js */ "./node_modules/d3-geo/src/projection/azimuthal.js");
  8028. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/projection/index.js");
  8029. var azimuthalEqualAreaRaw = Object(_azimuthal_js__WEBPACK_IMPORTED_MODULE_1__["azimuthalRaw"])(function(cxcy) {
  8030. return Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(2 / (1 + cxcy));
  8031. });
  8032. azimuthalEqualAreaRaw.invert = Object(_azimuthal_js__WEBPACK_IMPORTED_MODULE_1__["azimuthalInvert"])(function(z) {
  8033. return 2 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["asin"])(z / 2);
  8034. });
  8035. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8036. return Object(_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(azimuthalEqualAreaRaw)
  8037. .scale(124.75)
  8038. .clipAngle(180 - 1e-3);
  8039. });
  8040. /***/ }),
  8041. /***/ "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js":
  8042. /*!********************************************************************!*\
  8043. !*** ./node_modules/d3-geo/src/projection/azimuthalEquidistant.js ***!
  8044. \********************************************************************/
  8045. /*! exports provided: azimuthalEquidistantRaw, default */
  8046. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8047. "use strict";
  8048. __webpack_require__.r(__webpack_exports__);
  8049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "azimuthalEquidistantRaw", function() { return azimuthalEquidistantRaw; });
  8050. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8051. /* harmony import */ var _azimuthal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./azimuthal.js */ "./node_modules/d3-geo/src/projection/azimuthal.js");
  8052. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/projection/index.js");
  8053. var azimuthalEquidistantRaw = Object(_azimuthal_js__WEBPACK_IMPORTED_MODULE_1__["azimuthalRaw"])(function(c) {
  8054. return (c = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["acos"])(c)) && c / Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(c);
  8055. });
  8056. azimuthalEquidistantRaw.invert = Object(_azimuthal_js__WEBPACK_IMPORTED_MODULE_1__["azimuthalInvert"])(function(z) {
  8057. return z;
  8058. });
  8059. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8060. return Object(_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(azimuthalEquidistantRaw)
  8061. .scale(79.4188)
  8062. .clipAngle(180 - 1e-3);
  8063. });
  8064. /***/ }),
  8065. /***/ "./node_modules/d3-geo/src/projection/conic.js":
  8066. /*!*****************************************************!*\
  8067. !*** ./node_modules/d3-geo/src/projection/conic.js ***!
  8068. \*****************************************************/
  8069. /*! exports provided: conicProjection */
  8070. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8071. "use strict";
  8072. __webpack_require__.r(__webpack_exports__);
  8073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conicProjection", function() { return conicProjection; });
  8074. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8075. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/projection/index.js");
  8076. function conicProjection(projectAt) {
  8077. var phi0 = 0,
  8078. phi1 = _math_js__WEBPACK_IMPORTED_MODULE_0__["pi"] / 3,
  8079. m = Object(_index_js__WEBPACK_IMPORTED_MODULE_1__["projectionMutator"])(projectAt),
  8080. p = m(phi0, phi1);
  8081. p.parallels = function(_) {
  8082. return arguments.length ? m(phi0 = _[0] * _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"], phi1 = _[1] * _math_js__WEBPACK_IMPORTED_MODULE_0__["radians"]) : [phi0 * _math_js__WEBPACK_IMPORTED_MODULE_0__["degrees"], phi1 * _math_js__WEBPACK_IMPORTED_MODULE_0__["degrees"]];
  8083. };
  8084. return p;
  8085. }
  8086. /***/ }),
  8087. /***/ "./node_modules/d3-geo/src/projection/conicConformal.js":
  8088. /*!**************************************************************!*\
  8089. !*** ./node_modules/d3-geo/src/projection/conicConformal.js ***!
  8090. \**************************************************************/
  8091. /*! exports provided: conicConformalRaw, default */
  8092. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8093. "use strict";
  8094. __webpack_require__.r(__webpack_exports__);
  8095. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conicConformalRaw", function() { return conicConformalRaw; });
  8096. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8097. /* harmony import */ var _conic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./conic.js */ "./node_modules/d3-geo/src/projection/conic.js");
  8098. /* harmony import */ var _mercator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mercator.js */ "./node_modules/d3-geo/src/projection/mercator.js");
  8099. function tany(y) {
  8100. return Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["tan"])((_math_js__WEBPACK_IMPORTED_MODULE_0__["halfPi"] + y) / 2);
  8101. }
  8102. function conicConformalRaw(y0, y1) {
  8103. var cy0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(y0),
  8104. n = y0 === y1 ? Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(y0) : Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["log"])(cy0 / Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(y1)) / Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["log"])(tany(y1) / tany(y0)),
  8105. f = cy0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["pow"])(tany(y0), n) / n;
  8106. if (!n) return _mercator_js__WEBPACK_IMPORTED_MODULE_2__["mercatorRaw"];
  8107. function project(x, y) {
  8108. if (f > 0) { if (y < -_math_js__WEBPACK_IMPORTED_MODULE_0__["halfPi"] + _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) y = -_math_js__WEBPACK_IMPORTED_MODULE_0__["halfPi"] + _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]; }
  8109. else { if (y > _math_js__WEBPACK_IMPORTED_MODULE_0__["halfPi"] - _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) y = _math_js__WEBPACK_IMPORTED_MODULE_0__["halfPi"] - _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]; }
  8110. var r = f / Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["pow"])(tany(y), n);
  8111. return [r * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(n * x), f - r * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(n * x)];
  8112. }
  8113. project.invert = function(x, y) {
  8114. var fy = f - y, r = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sign"])(n) * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(x * x + fy * fy);
  8115. return [Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan2"])(x, Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["abs"])(fy)) / n * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sign"])(fy), 2 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["pow"])(f / r, 1 / n)) - _math_js__WEBPACK_IMPORTED_MODULE_0__["halfPi"]];
  8116. };
  8117. return project;
  8118. }
  8119. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8120. return Object(_conic_js__WEBPACK_IMPORTED_MODULE_1__["conicProjection"])(conicConformalRaw)
  8121. .scale(109.5)
  8122. .parallels([30, 30]);
  8123. });
  8124. /***/ }),
  8125. /***/ "./node_modules/d3-geo/src/projection/conicEqualArea.js":
  8126. /*!**************************************************************!*\
  8127. !*** ./node_modules/d3-geo/src/projection/conicEqualArea.js ***!
  8128. \**************************************************************/
  8129. /*! exports provided: conicEqualAreaRaw, default */
  8130. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8131. "use strict";
  8132. __webpack_require__.r(__webpack_exports__);
  8133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conicEqualAreaRaw", function() { return conicEqualAreaRaw; });
  8134. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8135. /* harmony import */ var _conic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./conic.js */ "./node_modules/d3-geo/src/projection/conic.js");
  8136. /* harmony import */ var _cylindricalEqualArea_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cylindricalEqualArea.js */ "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js");
  8137. function conicEqualAreaRaw(y0, y1) {
  8138. var sy0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(y0), n = (sy0 + Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(y1)) / 2;
  8139. // Are the parallels symmetrical around the Equator?
  8140. if (Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["abs"])(n) < _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) return Object(_cylindricalEqualArea_js__WEBPACK_IMPORTED_MODULE_2__["cylindricalEqualAreaRaw"])(y0);
  8141. var c = 1 + sy0 * (2 * n - sy0), r0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(c) / n;
  8142. function project(x, y) {
  8143. var r = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(c - 2 * n * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(y)) / n;
  8144. return [r * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(x *= n), r0 - r * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(x)];
  8145. }
  8146. project.invert = function(x, y) {
  8147. var r0y = r0 - y;
  8148. return [Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan2"])(x, Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["abs"])(r0y)) / n * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sign"])(r0y), Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["asin"])((c - (x * x + r0y * r0y) * n * n) / (2 * n))];
  8149. };
  8150. return project;
  8151. }
  8152. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8153. return Object(_conic_js__WEBPACK_IMPORTED_MODULE_1__["conicProjection"])(conicEqualAreaRaw)
  8154. .scale(155.424)
  8155. .center([0, 33.6442]);
  8156. });
  8157. /***/ }),
  8158. /***/ "./node_modules/d3-geo/src/projection/conicEquidistant.js":
  8159. /*!****************************************************************!*\
  8160. !*** ./node_modules/d3-geo/src/projection/conicEquidistant.js ***!
  8161. \****************************************************************/
  8162. /*! exports provided: conicEquidistantRaw, default */
  8163. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8164. "use strict";
  8165. __webpack_require__.r(__webpack_exports__);
  8166. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conicEquidistantRaw", function() { return conicEquidistantRaw; });
  8167. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8168. /* harmony import */ var _conic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./conic.js */ "./node_modules/d3-geo/src/projection/conic.js");
  8169. /* harmony import */ var _equirectangular_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./equirectangular.js */ "./node_modules/d3-geo/src/projection/equirectangular.js");
  8170. function conicEquidistantRaw(y0, y1) {
  8171. var cy0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(y0),
  8172. n = y0 === y1 ? Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(y0) : (cy0 - Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(y1)) / (y1 - y0),
  8173. g = cy0 / n + y0;
  8174. if (Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["abs"])(n) < _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) return _equirectangular_js__WEBPACK_IMPORTED_MODULE_2__["equirectangularRaw"];
  8175. function project(x, y) {
  8176. var gy = g - y, nx = n * x;
  8177. return [gy * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(nx), g - gy * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(nx)];
  8178. }
  8179. project.invert = function(x, y) {
  8180. var gy = g - y;
  8181. return [Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan2"])(x, Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["abs"])(gy)) / n * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sign"])(gy), g - Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sign"])(n) * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(x * x + gy * gy)];
  8182. };
  8183. return project;
  8184. }
  8185. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8186. return Object(_conic_js__WEBPACK_IMPORTED_MODULE_1__["conicProjection"])(conicEquidistantRaw)
  8187. .scale(131.154)
  8188. .center([0, 13.9389]);
  8189. });
  8190. /***/ }),
  8191. /***/ "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js":
  8192. /*!********************************************************************!*\
  8193. !*** ./node_modules/d3-geo/src/projection/cylindricalEqualArea.js ***!
  8194. \********************************************************************/
  8195. /*! exports provided: cylindricalEqualAreaRaw */
  8196. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8197. "use strict";
  8198. __webpack_require__.r(__webpack_exports__);
  8199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cylindricalEqualAreaRaw", function() { return cylindricalEqualAreaRaw; });
  8200. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8201. function cylindricalEqualAreaRaw(phi0) {
  8202. var cosPhi0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(phi0);
  8203. function forward(lambda, phi) {
  8204. return [lambda * cosPhi0, Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(phi) / cosPhi0];
  8205. }
  8206. forward.invert = function(x, y) {
  8207. return [x / cosPhi0, Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["asin"])(y * cosPhi0)];
  8208. };
  8209. return forward;
  8210. }
  8211. /***/ }),
  8212. /***/ "./node_modules/d3-geo/src/projection/equalEarth.js":
  8213. /*!**********************************************************!*\
  8214. !*** ./node_modules/d3-geo/src/projection/equalEarth.js ***!
  8215. \**********************************************************/
  8216. /*! exports provided: equalEarthRaw, default */
  8217. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8218. "use strict";
  8219. __webpack_require__.r(__webpack_exports__);
  8220. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "equalEarthRaw", function() { return equalEarthRaw; });
  8221. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/projection/index.js");
  8222. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8223. var A1 = 1.340264,
  8224. A2 = -0.081106,
  8225. A3 = 0.000893,
  8226. A4 = 0.003796,
  8227. M = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sqrt"])(3) / 2,
  8228. iterations = 12;
  8229. function equalEarthRaw(lambda, phi) {
  8230. 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;
  8231. return [
  8232. lambda * Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(l) / (M * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2))),
  8233. l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2))
  8234. ];
  8235. }
  8236. equalEarthRaw.invert = function(x, y) {
  8237. var l = y, l2 = l * l, l6 = l2 * l2 * l2;
  8238. for (var i = 0, delta, fy, fpy; i < iterations; ++i) {
  8239. fy = l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2)) - y;
  8240. fpy = A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2);
  8241. l -= delta = fy / fpy, l2 = l * l, l6 = l2 * l2 * l2;
  8242. if (Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(delta) < _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon2"]) break;
  8243. }
  8244. return [
  8245. M * x * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2)) / Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(l),
  8246. Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["asin"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(l) / M)
  8247. ];
  8248. };
  8249. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8250. return Object(_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(equalEarthRaw)
  8251. .scale(177.158);
  8252. });
  8253. /***/ }),
  8254. /***/ "./node_modules/d3-geo/src/projection/equirectangular.js":
  8255. /*!***************************************************************!*\
  8256. !*** ./node_modules/d3-geo/src/projection/equirectangular.js ***!
  8257. \***************************************************************/
  8258. /*! exports provided: equirectangularRaw, default */
  8259. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8260. "use strict";
  8261. __webpack_require__.r(__webpack_exports__);
  8262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "equirectangularRaw", function() { return equirectangularRaw; });
  8263. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/projection/index.js");
  8264. function equirectangularRaw(lambda, phi) {
  8265. return [lambda, phi];
  8266. }
  8267. equirectangularRaw.invert = equirectangularRaw;
  8268. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8269. return Object(_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(equirectangularRaw)
  8270. .scale(152.63);
  8271. });
  8272. /***/ }),
  8273. /***/ "./node_modules/d3-geo/src/projection/fit.js":
  8274. /*!***************************************************!*\
  8275. !*** ./node_modules/d3-geo/src/projection/fit.js ***!
  8276. \***************************************************/
  8277. /*! exports provided: fitExtent, fitSize, fitWidth, fitHeight */
  8278. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8279. "use strict";
  8280. __webpack_require__.r(__webpack_exports__);
  8281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitExtent", function() { return fitExtent; });
  8282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitSize", function() { return fitSize; });
  8283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitWidth", function() { return fitWidth; });
  8284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fitHeight", function() { return fitHeight; });
  8285. /* harmony import */ var _stream_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../stream.js */ "./node_modules/d3-geo/src/stream.js");
  8286. /* harmony import */ var _path_bounds_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../path/bounds.js */ "./node_modules/d3-geo/src/path/bounds.js");
  8287. function fit(projection, fitBounds, object) {
  8288. var clip = projection.clipExtent && projection.clipExtent();
  8289. projection.scale(150).translate([0, 0]);
  8290. if (clip != null) projection.clipExtent(null);
  8291. Object(_stream_js__WEBPACK_IMPORTED_MODULE_0__["default"])(object, projection.stream(_path_bounds_js__WEBPACK_IMPORTED_MODULE_1__["default"]));
  8292. fitBounds(_path_bounds_js__WEBPACK_IMPORTED_MODULE_1__["default"].result());
  8293. if (clip != null) projection.clipExtent(clip);
  8294. return projection;
  8295. }
  8296. function fitExtent(projection, extent, object) {
  8297. return fit(projection, function(b) {
  8298. var w = extent[1][0] - extent[0][0],
  8299. h = extent[1][1] - extent[0][1],
  8300. k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),
  8301. x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,
  8302. y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;
  8303. projection.scale(150 * k).translate([x, y]);
  8304. }, object);
  8305. }
  8306. function fitSize(projection, size, object) {
  8307. return fitExtent(projection, [[0, 0], size], object);
  8308. }
  8309. function fitWidth(projection, width, object) {
  8310. return fit(projection, function(b) {
  8311. var w = +width,
  8312. k = w / (b[1][0] - b[0][0]),
  8313. x = (w - k * (b[1][0] + b[0][0])) / 2,
  8314. y = -k * b[0][1];
  8315. projection.scale(150 * k).translate([x, y]);
  8316. }, object);
  8317. }
  8318. function fitHeight(projection, height, object) {
  8319. return fit(projection, function(b) {
  8320. var h = +height,
  8321. k = h / (b[1][1] - b[0][1]),
  8322. x = -k * b[0][0],
  8323. y = (h - k * (b[1][1] + b[0][1])) / 2;
  8324. projection.scale(150 * k).translate([x, y]);
  8325. }, object);
  8326. }
  8327. /***/ }),
  8328. /***/ "./node_modules/d3-geo/src/projection/gnomonic.js":
  8329. /*!********************************************************!*\
  8330. !*** ./node_modules/d3-geo/src/projection/gnomonic.js ***!
  8331. \********************************************************/
  8332. /*! exports provided: gnomonicRaw, default */
  8333. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8334. "use strict";
  8335. __webpack_require__.r(__webpack_exports__);
  8336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gnomonicRaw", function() { return gnomonicRaw; });
  8337. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8338. /* harmony import */ var _azimuthal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./azimuthal.js */ "./node_modules/d3-geo/src/projection/azimuthal.js");
  8339. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/projection/index.js");
  8340. function gnomonicRaw(x, y) {
  8341. var cy = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(y), k = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(x) * cy;
  8342. return [cy * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(x) / k, Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(y) / k];
  8343. }
  8344. gnomonicRaw.invert = Object(_azimuthal_js__WEBPACK_IMPORTED_MODULE_1__["azimuthalInvert"])(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan"]);
  8345. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8346. return Object(_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(gnomonicRaw)
  8347. .scale(144.049)
  8348. .clipAngle(60);
  8349. });
  8350. /***/ }),
  8351. /***/ "./node_modules/d3-geo/src/projection/identity.js":
  8352. /*!********************************************************!*\
  8353. !*** ./node_modules/d3-geo/src/projection/identity.js ***!
  8354. \********************************************************/
  8355. /*! exports provided: default */
  8356. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8357. "use strict";
  8358. __webpack_require__.r(__webpack_exports__);
  8359. /* harmony import */ var _clip_rectangle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../clip/rectangle.js */ "./node_modules/d3-geo/src/clip/rectangle.js");
  8360. /* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../identity.js */ "./node_modules/d3-geo/src/identity.js");
  8361. /* harmony import */ var _transform_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../transform.js */ "./node_modules/d3-geo/src/transform.js");
  8362. /* harmony import */ var _fit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fit.js */ "./node_modules/d3-geo/src/projection/fit.js");
  8363. function scaleTranslate(kx, ky, tx, ty) {
  8364. return kx === 1 && ky === 1 && tx === 0 && ty === 0 ? _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"] : Object(_transform_js__WEBPACK_IMPORTED_MODULE_2__["transformer"])({
  8365. point: function(x, y) {
  8366. this.stream.point(x * kx + tx, y * ky + ty);
  8367. }
  8368. });
  8369. }
  8370. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8371. var k = 1, tx = 0, ty = 0, sx = 1, sy = 1, transform = _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"], // scale, translate and reflect
  8372. x0 = null, y0, x1, y1, // clip extent
  8373. postclip = _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  8374. cache,
  8375. cacheStream,
  8376. projection;
  8377. function reset() {
  8378. cache = cacheStream = null;
  8379. return projection;
  8380. }
  8381. return projection = {
  8382. stream: function(stream) {
  8383. return cache && cacheStream === stream ? cache : cache = transform(postclip(cacheStream = stream));
  8384. },
  8385. postclip: function(_) {
  8386. return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;
  8387. },
  8388. clipExtent: function(_) {
  8389. return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"]) : Object(_clip_rectangle_js__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]];
  8390. },
  8391. scale: function(_) {
  8392. return arguments.length ? (transform = scaleTranslate((k = +_) * sx, k * sy, tx, ty), reset()) : k;
  8393. },
  8394. translate: function(_) {
  8395. return arguments.length ? (transform = scaleTranslate(k * sx, k * sy, tx = +_[0], ty = +_[1]), reset()) : [tx, ty];
  8396. },
  8397. reflectX: function(_) {
  8398. return arguments.length ? (transform = scaleTranslate(k * (sx = _ ? -1 : 1), k * sy, tx, ty), reset()) : sx < 0;
  8399. },
  8400. reflectY: function(_) {
  8401. return arguments.length ? (transform = scaleTranslate(k * sx, k * (sy = _ ? -1 : 1), tx, ty), reset()) : sy < 0;
  8402. },
  8403. fitExtent: function(extent, object) {
  8404. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_3__["fitExtent"])(projection, extent, object);
  8405. },
  8406. fitSize: function(size, object) {
  8407. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_3__["fitSize"])(projection, size, object);
  8408. },
  8409. fitWidth: function(width, object) {
  8410. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_3__["fitWidth"])(projection, width, object);
  8411. },
  8412. fitHeight: function(height, object) {
  8413. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_3__["fitHeight"])(projection, height, object);
  8414. }
  8415. };
  8416. });
  8417. /***/ }),
  8418. /***/ "./node_modules/d3-geo/src/projection/index.js":
  8419. /*!*****************************************************!*\
  8420. !*** ./node_modules/d3-geo/src/projection/index.js ***!
  8421. \*****************************************************/
  8422. /*! exports provided: default, projectionMutator */
  8423. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8424. "use strict";
  8425. __webpack_require__.r(__webpack_exports__);
  8426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return projection; });
  8427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "projectionMutator", function() { return projectionMutator; });
  8428. /* harmony import */ var _clip_antimeridian_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../clip/antimeridian.js */ "./node_modules/d3-geo/src/clip/antimeridian.js");
  8429. /* harmony import */ var _clip_circle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../clip/circle.js */ "./node_modules/d3-geo/src/clip/circle.js");
  8430. /* harmony import */ var _clip_rectangle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../clip/rectangle.js */ "./node_modules/d3-geo/src/clip/rectangle.js");
  8431. /* harmony import */ var _compose_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../compose.js */ "./node_modules/d3-geo/src/compose.js");
  8432. /* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../identity.js */ "./node_modules/d3-geo/src/identity.js");
  8433. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8434. /* harmony import */ var _rotation_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../rotation.js */ "./node_modules/d3-geo/src/rotation.js");
  8435. /* harmony import */ var _transform_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../transform.js */ "./node_modules/d3-geo/src/transform.js");
  8436. /* harmony import */ var _fit_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./fit.js */ "./node_modules/d3-geo/src/projection/fit.js");
  8437. /* harmony import */ var _resample_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./resample.js */ "./node_modules/d3-geo/src/projection/resample.js");
  8438. var transformRadians = Object(_transform_js__WEBPACK_IMPORTED_MODULE_7__["transformer"])({
  8439. point: function(x, y) {
  8440. this.stream.point(x * _math_js__WEBPACK_IMPORTED_MODULE_5__["radians"], y * _math_js__WEBPACK_IMPORTED_MODULE_5__["radians"]);
  8441. }
  8442. });
  8443. function transformRotate(rotate) {
  8444. return Object(_transform_js__WEBPACK_IMPORTED_MODULE_7__["transformer"])({
  8445. point: function(x, y) {
  8446. var r = rotate(x, y);
  8447. return this.stream.point(r[0], r[1]);
  8448. }
  8449. });
  8450. }
  8451. function scaleTranslate(k, dx, dy) {
  8452. function transform(x, y) {
  8453. return [dx + k * x, dy - k * y];
  8454. }
  8455. transform.invert = function(x, y) {
  8456. return [(x - dx) / k, (dy - y) / k];
  8457. };
  8458. return transform;
  8459. }
  8460. function scaleTranslateRotate(k, dx, dy, alpha) {
  8461. var cosAlpha = Object(_math_js__WEBPACK_IMPORTED_MODULE_5__["cos"])(alpha),
  8462. sinAlpha = Object(_math_js__WEBPACK_IMPORTED_MODULE_5__["sin"])(alpha),
  8463. a = cosAlpha * k,
  8464. b = sinAlpha * k,
  8465. ai = cosAlpha / k,
  8466. bi = sinAlpha / k,
  8467. ci = (sinAlpha * dy - cosAlpha * dx) / k,
  8468. fi = (sinAlpha * dx + cosAlpha * dy) / k;
  8469. function transform(x, y) {
  8470. return [a * x - b * y + dx, dy - b * x - a * y];
  8471. }
  8472. transform.invert = function(x, y) {
  8473. return [ai * x - bi * y + ci, fi - bi * x - ai * y];
  8474. };
  8475. return transform;
  8476. }
  8477. function projection(project) {
  8478. return projectionMutator(function() { return project; })();
  8479. }
  8480. function projectionMutator(projectAt) {
  8481. var project,
  8482. k = 150, // scale
  8483. x = 480, y = 250, // translate
  8484. lambda = 0, phi = 0, // center
  8485. deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, // pre-rotate
  8486. alpha = 0, // post-rotate
  8487. theta = null, preclip = _clip_antimeridian_js__WEBPACK_IMPORTED_MODULE_0__["default"], // pre-clip angle
  8488. x0 = null, y0, x1, y1, postclip = _identity_js__WEBPACK_IMPORTED_MODULE_4__["default"], // post-clip extent
  8489. delta2 = 0.5, // precision
  8490. projectResample,
  8491. projectTransform,
  8492. projectRotateTransform,
  8493. cache,
  8494. cacheStream;
  8495. function projection(point) {
  8496. return projectRotateTransform(point[0] * _math_js__WEBPACK_IMPORTED_MODULE_5__["radians"], point[1] * _math_js__WEBPACK_IMPORTED_MODULE_5__["radians"]);
  8497. }
  8498. function invert(point) {
  8499. point = projectRotateTransform.invert(point[0], point[1]);
  8500. return point && [point[0] * _math_js__WEBPACK_IMPORTED_MODULE_5__["degrees"], point[1] * _math_js__WEBPACK_IMPORTED_MODULE_5__["degrees"]];
  8501. }
  8502. projection.stream = function(stream) {
  8503. return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));
  8504. };
  8505. projection.preclip = function(_) {
  8506. return arguments.length ? (preclip = _, theta = undefined, reset()) : preclip;
  8507. };
  8508. projection.postclip = function(_) {
  8509. return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;
  8510. };
  8511. projection.clipAngle = function(_) {
  8512. return arguments.length ? (preclip = +_ ? Object(_clip_circle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(theta = _ * _math_js__WEBPACK_IMPORTED_MODULE_5__["radians"]) : (theta = null, _clip_antimeridian_js__WEBPACK_IMPORTED_MODULE_0__["default"]), reset()) : theta * _math_js__WEBPACK_IMPORTED_MODULE_5__["degrees"];
  8513. };
  8514. projection.clipExtent = function(_) {
  8515. return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, _identity_js__WEBPACK_IMPORTED_MODULE_4__["default"]) : Object(_clip_rectangle_js__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]];
  8516. };
  8517. projection.scale = function(_) {
  8518. return arguments.length ? (k = +_, recenter()) : k;
  8519. };
  8520. projection.translate = function(_) {
  8521. return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];
  8522. };
  8523. projection.center = function(_) {
  8524. return arguments.length ? (lambda = _[0] % 360 * _math_js__WEBPACK_IMPORTED_MODULE_5__["radians"], phi = _[1] % 360 * _math_js__WEBPACK_IMPORTED_MODULE_5__["radians"], recenter()) : [lambda * _math_js__WEBPACK_IMPORTED_MODULE_5__["degrees"], phi * _math_js__WEBPACK_IMPORTED_MODULE_5__["degrees"]];
  8525. };
  8526. projection.rotate = function(_) {
  8527. return arguments.length ? (deltaLambda = _[0] % 360 * _math_js__WEBPACK_IMPORTED_MODULE_5__["radians"], deltaPhi = _[1] % 360 * _math_js__WEBPACK_IMPORTED_MODULE_5__["radians"], deltaGamma = _.length > 2 ? _[2] % 360 * _math_js__WEBPACK_IMPORTED_MODULE_5__["radians"] : 0, recenter()) : [deltaLambda * _math_js__WEBPACK_IMPORTED_MODULE_5__["degrees"], deltaPhi * _math_js__WEBPACK_IMPORTED_MODULE_5__["degrees"], deltaGamma * _math_js__WEBPACK_IMPORTED_MODULE_5__["degrees"]];
  8528. };
  8529. projection.angle = function(_) {
  8530. return arguments.length ? (alpha = _ % 360 * _math_js__WEBPACK_IMPORTED_MODULE_5__["radians"], recenter()) : alpha * _math_js__WEBPACK_IMPORTED_MODULE_5__["degrees"];
  8531. };
  8532. projection.precision = function(_) {
  8533. return arguments.length ? (projectResample = Object(_resample_js__WEBPACK_IMPORTED_MODULE_9__["default"])(projectTransform, delta2 = _ * _), reset()) : Object(_math_js__WEBPACK_IMPORTED_MODULE_5__["sqrt"])(delta2);
  8534. };
  8535. projection.fitExtent = function(extent, object) {
  8536. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_8__["fitExtent"])(projection, extent, object);
  8537. };
  8538. projection.fitSize = function(size, object) {
  8539. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_8__["fitSize"])(projection, size, object);
  8540. };
  8541. projection.fitWidth = function(width, object) {
  8542. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_8__["fitWidth"])(projection, width, object);
  8543. };
  8544. projection.fitHeight = function(height, object) {
  8545. return Object(_fit_js__WEBPACK_IMPORTED_MODULE_8__["fitHeight"])(projection, height, object);
  8546. };
  8547. function recenter() {
  8548. var center = scaleTranslateRotate(k, 0, 0, alpha).apply(null, project(lambda, phi)),
  8549. transform = (alpha ? scaleTranslateRotate : scaleTranslate)(k, x - center[0], y - center[1], alpha);
  8550. rotate = Object(_rotation_js__WEBPACK_IMPORTED_MODULE_6__["rotateRadians"])(deltaLambda, deltaPhi, deltaGamma);
  8551. projectTransform = Object(_compose_js__WEBPACK_IMPORTED_MODULE_3__["default"])(project, transform);
  8552. projectRotateTransform = Object(_compose_js__WEBPACK_IMPORTED_MODULE_3__["default"])(rotate, projectTransform);
  8553. projectResample = Object(_resample_js__WEBPACK_IMPORTED_MODULE_9__["default"])(projectTransform, delta2);
  8554. return reset();
  8555. }
  8556. function reset() {
  8557. cache = cacheStream = null;
  8558. return projection;
  8559. }
  8560. return function() {
  8561. project = projectAt.apply(this, arguments);
  8562. projection.invert = project.invert && invert;
  8563. return recenter();
  8564. };
  8565. }
  8566. /***/ }),
  8567. /***/ "./node_modules/d3-geo/src/projection/mercator.js":
  8568. /*!********************************************************!*\
  8569. !*** ./node_modules/d3-geo/src/projection/mercator.js ***!
  8570. \********************************************************/
  8571. /*! exports provided: mercatorRaw, default, mercatorProjection */
  8572. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8573. "use strict";
  8574. __webpack_require__.r(__webpack_exports__);
  8575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mercatorRaw", function() { return mercatorRaw; });
  8576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mercatorProjection", function() { return mercatorProjection; });
  8577. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8578. /* harmony import */ var _rotation_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../rotation.js */ "./node_modules/d3-geo/src/rotation.js");
  8579. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/projection/index.js");
  8580. function mercatorRaw(lambda, phi) {
  8581. return [lambda, Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["log"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["tan"])((_math_js__WEBPACK_IMPORTED_MODULE_0__["halfPi"] + phi) / 2))];
  8582. }
  8583. mercatorRaw.invert = function(x, y) {
  8584. return [x, 2 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["exp"])(y)) - _math_js__WEBPACK_IMPORTED_MODULE_0__["halfPi"]];
  8585. };
  8586. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8587. return mercatorProjection(mercatorRaw)
  8588. .scale(961 / _math_js__WEBPACK_IMPORTED_MODULE_0__["tau"]);
  8589. });
  8590. function mercatorProjection(project) {
  8591. var m = Object(_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(project),
  8592. center = m.center,
  8593. scale = m.scale,
  8594. translate = m.translate,
  8595. clipExtent = m.clipExtent,
  8596. x0 = null, y0, x1, y1; // clip extent
  8597. m.scale = function(_) {
  8598. return arguments.length ? (scale(_), reclip()) : scale();
  8599. };
  8600. m.translate = function(_) {
  8601. return arguments.length ? (translate(_), reclip()) : translate();
  8602. };
  8603. m.center = function(_) {
  8604. return arguments.length ? (center(_), reclip()) : center();
  8605. };
  8606. m.clipExtent = function(_) {
  8607. 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]];
  8608. };
  8609. function reclip() {
  8610. var k = _math_js__WEBPACK_IMPORTED_MODULE_0__["pi"] * scale(),
  8611. t = m(Object(_rotation_js__WEBPACK_IMPORTED_MODULE_1__["default"])(m.rotate()).invert([0, 0]));
  8612. return clipExtent(x0 == null
  8613. ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw
  8614. ? [[Math.max(t[0] - k, x0), y0], [Math.min(t[0] + k, x1), y1]]
  8615. : [[x0, Math.max(t[1] - k, y0)], [x1, Math.min(t[1] + k, y1)]]);
  8616. }
  8617. return reclip();
  8618. }
  8619. /***/ }),
  8620. /***/ "./node_modules/d3-geo/src/projection/naturalEarth1.js":
  8621. /*!*************************************************************!*\
  8622. !*** ./node_modules/d3-geo/src/projection/naturalEarth1.js ***!
  8623. \*************************************************************/
  8624. /*! exports provided: naturalEarth1Raw, default */
  8625. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8626. "use strict";
  8627. __webpack_require__.r(__webpack_exports__);
  8628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "naturalEarth1Raw", function() { return naturalEarth1Raw; });
  8629. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/projection/index.js");
  8630. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8631. function naturalEarth1Raw(lambda, phi) {
  8632. var phi2 = phi * phi, phi4 = phi2 * phi2;
  8633. return [
  8634. lambda * (0.8707 - 0.131979 * phi2 + phi4 * (-0.013791 + phi4 * (0.003971 * phi2 - 0.001529 * phi4))),
  8635. phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4)))
  8636. ];
  8637. }
  8638. naturalEarth1Raw.invert = function(x, y) {
  8639. var phi = y, i = 25, delta;
  8640. do {
  8641. var phi2 = phi * phi, phi4 = phi2 * phi2;
  8642. phi -= delta = (phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4))) - y) /
  8643. (1.007226 + phi2 * (0.015085 * 3 + phi4 * (-0.044475 * 7 + 0.028874 * 9 * phi2 - 0.005916 * 11 * phi4)));
  8644. } while (Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(delta) > _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"] && --i > 0);
  8645. return [
  8646. x / (0.8707 + (phi2 = phi * phi) * (-0.131979 + phi2 * (-0.013791 + phi2 * phi2 * phi2 * (0.003971 - 0.001529 * phi2)))),
  8647. phi
  8648. ];
  8649. };
  8650. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8651. return Object(_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(naturalEarth1Raw)
  8652. .scale(175.295);
  8653. });
  8654. /***/ }),
  8655. /***/ "./node_modules/d3-geo/src/projection/orthographic.js":
  8656. /*!************************************************************!*\
  8657. !*** ./node_modules/d3-geo/src/projection/orthographic.js ***!
  8658. \************************************************************/
  8659. /*! exports provided: orthographicRaw, default */
  8660. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8661. "use strict";
  8662. __webpack_require__.r(__webpack_exports__);
  8663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "orthographicRaw", function() { return orthographicRaw; });
  8664. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8665. /* harmony import */ var _azimuthal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./azimuthal.js */ "./node_modules/d3-geo/src/projection/azimuthal.js");
  8666. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/projection/index.js");
  8667. function orthographicRaw(x, y) {
  8668. return [Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(y) * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(x), Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(y)];
  8669. }
  8670. orthographicRaw.invert = Object(_azimuthal_js__WEBPACK_IMPORTED_MODULE_1__["azimuthalInvert"])(_math_js__WEBPACK_IMPORTED_MODULE_0__["asin"]);
  8671. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8672. return Object(_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(orthographicRaw)
  8673. .scale(249.5)
  8674. .clipAngle(90 + _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]);
  8675. });
  8676. /***/ }),
  8677. /***/ "./node_modules/d3-geo/src/projection/resample.js":
  8678. /*!********************************************************!*\
  8679. !*** ./node_modules/d3-geo/src/projection/resample.js ***!
  8680. \********************************************************/
  8681. /*! exports provided: default */
  8682. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8683. "use strict";
  8684. __webpack_require__.r(__webpack_exports__);
  8685. /* harmony import */ var _cartesian_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cartesian.js */ "./node_modules/d3-geo/src/cartesian.js");
  8686. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8687. /* harmony import */ var _transform_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../transform.js */ "./node_modules/d3-geo/src/transform.js");
  8688. var maxDepth = 16, // maximum depth of subdivision
  8689. cosMinDistance = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(30 * _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"]); // cos(minimum angular distance)
  8690. /* harmony default export */ __webpack_exports__["default"] = (function(project, delta2) {
  8691. return +delta2 ? resample(project, delta2) : resampleNone(project);
  8692. });
  8693. function resampleNone(project) {
  8694. return Object(_transform_js__WEBPACK_IMPORTED_MODULE_2__["transformer"])({
  8695. point: function(x, y) {
  8696. x = project(x, y);
  8697. this.stream.point(x[0], x[1]);
  8698. }
  8699. });
  8700. }
  8701. function resample(project, delta2) {
  8702. function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {
  8703. var dx = x1 - x0,
  8704. dy = y1 - y0,
  8705. d2 = dx * dx + dy * dy;
  8706. if (d2 > 4 * delta2 && depth--) {
  8707. var a = a0 + a1,
  8708. b = b0 + b1,
  8709. c = c0 + c1,
  8710. m = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sqrt"])(a * a + b * b + c * c),
  8711. phi2 = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["asin"])(c /= m),
  8712. lambda2 = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(c) - 1) < _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"] || Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda0 - lambda1) < _math_js__WEBPACK_IMPORTED_MODULE_1__["epsilon"] ? (lambda0 + lambda1) / 2 : Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["atan2"])(b, a),
  8713. p = project(lambda2, phi2),
  8714. x2 = p[0],
  8715. y2 = p[1],
  8716. dx2 = x2 - x0,
  8717. dy2 = y2 - y0,
  8718. dz = dy * dx2 - dx * dy2;
  8719. if (dz * dz / d2 > delta2 // perpendicular projected distance
  8720. || Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end
  8721. || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { // angular distance
  8722. resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);
  8723. stream.point(x2, y2);
  8724. resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);
  8725. }
  8726. }
  8727. }
  8728. return function(stream) {
  8729. var lambda00, x00, y00, a00, b00, c00, // first point
  8730. lambda0, x0, y0, a0, b0, c0; // previous point
  8731. var resampleStream = {
  8732. point: point,
  8733. lineStart: lineStart,
  8734. lineEnd: lineEnd,
  8735. polygonStart: function() { stream.polygonStart(); resampleStream.lineStart = ringStart; },
  8736. polygonEnd: function() { stream.polygonEnd(); resampleStream.lineStart = lineStart; }
  8737. };
  8738. function point(x, y) {
  8739. x = project(x, y);
  8740. stream.point(x[0], x[1]);
  8741. }
  8742. function lineStart() {
  8743. x0 = NaN;
  8744. resampleStream.point = linePoint;
  8745. stream.lineStart();
  8746. }
  8747. function linePoint(lambda, phi) {
  8748. var c = Object(_cartesian_js__WEBPACK_IMPORTED_MODULE_0__["cartesian"])([lambda, phi]), p = project(lambda, phi);
  8749. 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);
  8750. stream.point(x0, y0);
  8751. }
  8752. function lineEnd() {
  8753. resampleStream.point = point;
  8754. stream.lineEnd();
  8755. }
  8756. function ringStart() {
  8757. lineStart();
  8758. resampleStream.point = ringPoint;
  8759. resampleStream.lineEnd = ringEnd;
  8760. }
  8761. function ringPoint(lambda, phi) {
  8762. linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;
  8763. resampleStream.point = linePoint;
  8764. }
  8765. function ringEnd() {
  8766. resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);
  8767. resampleStream.lineEnd = lineEnd;
  8768. lineEnd();
  8769. }
  8770. return resampleStream;
  8771. };
  8772. }
  8773. /***/ }),
  8774. /***/ "./node_modules/d3-geo/src/projection/stereographic.js":
  8775. /*!*************************************************************!*\
  8776. !*** ./node_modules/d3-geo/src/projection/stereographic.js ***!
  8777. \*************************************************************/
  8778. /*! exports provided: stereographicRaw, default */
  8779. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8780. "use strict";
  8781. __webpack_require__.r(__webpack_exports__);
  8782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stereographicRaw", function() { return stereographicRaw; });
  8783. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8784. /* harmony import */ var _azimuthal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./azimuthal.js */ "./node_modules/d3-geo/src/projection/azimuthal.js");
  8785. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-geo/src/projection/index.js");
  8786. function stereographicRaw(x, y) {
  8787. var cy = Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(y), k = 1 + Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["cos"])(x) * cy;
  8788. return [cy * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(x) / k, Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["sin"])(y) / k];
  8789. }
  8790. stereographicRaw.invert = Object(_azimuthal_js__WEBPACK_IMPORTED_MODULE_1__["azimuthalInvert"])(function(z) {
  8791. return 2 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan"])(z);
  8792. });
  8793. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8794. return Object(_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(stereographicRaw)
  8795. .scale(250)
  8796. .clipAngle(142);
  8797. });
  8798. /***/ }),
  8799. /***/ "./node_modules/d3-geo/src/projection/transverseMercator.js":
  8800. /*!******************************************************************!*\
  8801. !*** ./node_modules/d3-geo/src/projection/transverseMercator.js ***!
  8802. \******************************************************************/
  8803. /*! exports provided: transverseMercatorRaw, default */
  8804. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8805. "use strict";
  8806. __webpack_require__.r(__webpack_exports__);
  8807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transverseMercatorRaw", function() { return transverseMercatorRaw; });
  8808. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-geo/src/math.js");
  8809. /* harmony import */ var _mercator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mercator.js */ "./node_modules/d3-geo/src/projection/mercator.js");
  8810. function transverseMercatorRaw(lambda, phi) {
  8811. return [Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["log"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["tan"])((_math_js__WEBPACK_IMPORTED_MODULE_0__["halfPi"] + phi) / 2)), -lambda];
  8812. }
  8813. transverseMercatorRaw.invert = function(x, y) {
  8814. return [-y, 2 * Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["atan"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["exp"])(x)) - _math_js__WEBPACK_IMPORTED_MODULE_0__["halfPi"]];
  8815. };
  8816. /* harmony default export */ __webpack_exports__["default"] = (function() {
  8817. var m = Object(_mercator_js__WEBPACK_IMPORTED_MODULE_1__["mercatorProjection"])(transverseMercatorRaw),
  8818. center = m.center,
  8819. rotate = m.rotate;
  8820. m.center = function(_) {
  8821. return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]);
  8822. };
  8823. m.rotate = function(_) {
  8824. return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);
  8825. };
  8826. return rotate([0, 0, 90])
  8827. .scale(159.155);
  8828. });
  8829. /***/ }),
  8830. /***/ "./node_modules/d3-geo/src/rotation.js":
  8831. /*!*********************************************!*\
  8832. !*** ./node_modules/d3-geo/src/rotation.js ***!
  8833. \*********************************************/
  8834. /*! exports provided: rotateRadians, default */
  8835. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8836. "use strict";
  8837. __webpack_require__.r(__webpack_exports__);
  8838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rotateRadians", function() { return rotateRadians; });
  8839. /* harmony import */ var _compose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./compose.js */ "./node_modules/d3-geo/src/compose.js");
  8840. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-geo/src/math.js");
  8841. function rotationIdentity(lambda, phi) {
  8842. return [Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["abs"])(lambda) > _math_js__WEBPACK_IMPORTED_MODULE_1__["pi"] ? lambda + Math.round(-lambda / _math_js__WEBPACK_IMPORTED_MODULE_1__["tau"]) * _math_js__WEBPACK_IMPORTED_MODULE_1__["tau"] : lambda, phi];
  8843. }
  8844. rotationIdentity.invert = rotationIdentity;
  8845. function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {
  8846. return (deltaLambda %= _math_js__WEBPACK_IMPORTED_MODULE_1__["tau"]) ? (deltaPhi || deltaGamma ? Object(_compose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma))
  8847. : rotationLambda(deltaLambda))
  8848. : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma)
  8849. : rotationIdentity);
  8850. }
  8851. function forwardRotationLambda(deltaLambda) {
  8852. return function(lambda, phi) {
  8853. return lambda += deltaLambda, [lambda > _math_js__WEBPACK_IMPORTED_MODULE_1__["pi"] ? lambda - _math_js__WEBPACK_IMPORTED_MODULE_1__["tau"] : lambda < -_math_js__WEBPACK_IMPORTED_MODULE_1__["pi"] ? lambda + _math_js__WEBPACK_IMPORTED_MODULE_1__["tau"] : lambda, phi];
  8854. };
  8855. }
  8856. function rotationLambda(deltaLambda) {
  8857. var rotation = forwardRotationLambda(deltaLambda);
  8858. rotation.invert = forwardRotationLambda(-deltaLambda);
  8859. return rotation;
  8860. }
  8861. function rotationPhiGamma(deltaPhi, deltaGamma) {
  8862. var cosDeltaPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(deltaPhi),
  8863. sinDeltaPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(deltaPhi),
  8864. cosDeltaGamma = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(deltaGamma),
  8865. sinDeltaGamma = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(deltaGamma);
  8866. function rotation(lambda, phi) {
  8867. var cosPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi),
  8868. x = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(lambda) * cosPhi,
  8869. y = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(lambda) * cosPhi,
  8870. z = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi),
  8871. k = z * cosDeltaPhi + x * sinDeltaPhi;
  8872. return [
  8873. Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["atan2"])(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),
  8874. Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["asin"])(k * cosDeltaGamma + y * sinDeltaGamma)
  8875. ];
  8876. }
  8877. rotation.invert = function(lambda, phi) {
  8878. var cosPhi = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(phi),
  8879. x = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["cos"])(lambda) * cosPhi,
  8880. y = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(lambda) * cosPhi,
  8881. z = Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["sin"])(phi),
  8882. k = z * cosDeltaGamma - y * sinDeltaGamma;
  8883. return [
  8884. Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["atan2"])(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi),
  8885. Object(_math_js__WEBPACK_IMPORTED_MODULE_1__["asin"])(k * cosDeltaPhi - x * sinDeltaPhi)
  8886. ];
  8887. };
  8888. return rotation;
  8889. }
  8890. /* harmony default export */ __webpack_exports__["default"] = (function(rotate) {
  8891. rotate = rotateRadians(rotate[0] * _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"], rotate[1] * _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"], rotate.length > 2 ? rotate[2] * _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"] : 0);
  8892. function forward(coordinates) {
  8893. coordinates = rotate(coordinates[0] * _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"], coordinates[1] * _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"]);
  8894. return coordinates[0] *= _math_js__WEBPACK_IMPORTED_MODULE_1__["degrees"], coordinates[1] *= _math_js__WEBPACK_IMPORTED_MODULE_1__["degrees"], coordinates;
  8895. }
  8896. forward.invert = function(coordinates) {
  8897. coordinates = rotate.invert(coordinates[0] * _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"], coordinates[1] * _math_js__WEBPACK_IMPORTED_MODULE_1__["radians"]);
  8898. return coordinates[0] *= _math_js__WEBPACK_IMPORTED_MODULE_1__["degrees"], coordinates[1] *= _math_js__WEBPACK_IMPORTED_MODULE_1__["degrees"], coordinates;
  8899. };
  8900. return forward;
  8901. });
  8902. /***/ }),
  8903. /***/ "./node_modules/d3-geo/src/stream.js":
  8904. /*!*******************************************!*\
  8905. !*** ./node_modules/d3-geo/src/stream.js ***!
  8906. \*******************************************/
  8907. /*! exports provided: default */
  8908. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8909. "use strict";
  8910. __webpack_require__.r(__webpack_exports__);
  8911. function streamGeometry(geometry, stream) {
  8912. if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {
  8913. streamGeometryType[geometry.type](geometry, stream);
  8914. }
  8915. }
  8916. var streamObjectType = {
  8917. Feature: function(object, stream) {
  8918. streamGeometry(object.geometry, stream);
  8919. },
  8920. FeatureCollection: function(object, stream) {
  8921. var features = object.features, i = -1, n = features.length;
  8922. while (++i < n) streamGeometry(features[i].geometry, stream);
  8923. }
  8924. };
  8925. var streamGeometryType = {
  8926. Sphere: function(object, stream) {
  8927. stream.sphere();
  8928. },
  8929. Point: function(object, stream) {
  8930. object = object.coordinates;
  8931. stream.point(object[0], object[1], object[2]);
  8932. },
  8933. MultiPoint: function(object, stream) {
  8934. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  8935. while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);
  8936. },
  8937. LineString: function(object, stream) {
  8938. streamLine(object.coordinates, stream, 0);
  8939. },
  8940. MultiLineString: function(object, stream) {
  8941. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  8942. while (++i < n) streamLine(coordinates[i], stream, 0);
  8943. },
  8944. Polygon: function(object, stream) {
  8945. streamPolygon(object.coordinates, stream);
  8946. },
  8947. MultiPolygon: function(object, stream) {
  8948. var coordinates = object.coordinates, i = -1, n = coordinates.length;
  8949. while (++i < n) streamPolygon(coordinates[i], stream);
  8950. },
  8951. GeometryCollection: function(object, stream) {
  8952. var geometries = object.geometries, i = -1, n = geometries.length;
  8953. while (++i < n) streamGeometry(geometries[i], stream);
  8954. }
  8955. };
  8956. function streamLine(coordinates, stream, closed) {
  8957. var i = -1, n = coordinates.length - closed, coordinate;
  8958. stream.lineStart();
  8959. while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);
  8960. stream.lineEnd();
  8961. }
  8962. function streamPolygon(coordinates, stream) {
  8963. var i = -1, n = coordinates.length;
  8964. stream.polygonStart();
  8965. while (++i < n) streamLine(coordinates[i], stream, 1);
  8966. stream.polygonEnd();
  8967. }
  8968. /* harmony default export */ __webpack_exports__["default"] = (function(object, stream) {
  8969. if (object && streamObjectType.hasOwnProperty(object.type)) {
  8970. streamObjectType[object.type](object, stream);
  8971. } else {
  8972. streamGeometry(object, stream);
  8973. }
  8974. });
  8975. /***/ }),
  8976. /***/ "./node_modules/d3-geo/src/transform.js":
  8977. /*!**********************************************!*\
  8978. !*** ./node_modules/d3-geo/src/transform.js ***!
  8979. \**********************************************/
  8980. /*! exports provided: default, transformer */
  8981. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8982. "use strict";
  8983. __webpack_require__.r(__webpack_exports__);
  8984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transformer", function() { return transformer; });
  8985. /* harmony default export */ __webpack_exports__["default"] = (function(methods) {
  8986. return {
  8987. stream: transformer(methods)
  8988. };
  8989. });
  8990. function transformer(methods) {
  8991. return function(stream) {
  8992. var s = new TransformStream;
  8993. for (var key in methods) s[key] = methods[key];
  8994. s.stream = stream;
  8995. return s;
  8996. };
  8997. }
  8998. function TransformStream() {}
  8999. TransformStream.prototype = {
  9000. constructor: TransformStream,
  9001. point: function(x, y) { this.stream.point(x, y); },
  9002. sphere: function() { this.stream.sphere(); },
  9003. lineStart: function() { this.stream.lineStart(); },
  9004. lineEnd: function() { this.stream.lineEnd(); },
  9005. polygonStart: function() { this.stream.polygonStart(); },
  9006. polygonEnd: function() { this.stream.polygonEnd(); }
  9007. };
  9008. /***/ }),
  9009. /***/ "./node_modules/d3-hierarchy/src/accessors.js":
  9010. /*!****************************************************!*\
  9011. !*** ./node_modules/d3-hierarchy/src/accessors.js ***!
  9012. \****************************************************/
  9013. /*! exports provided: optional, required */
  9014. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9015. "use strict";
  9016. __webpack_require__.r(__webpack_exports__);
  9017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "optional", function() { return optional; });
  9018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "required", function() { return required; });
  9019. function optional(f) {
  9020. return f == null ? null : required(f);
  9021. }
  9022. function required(f) {
  9023. if (typeof f !== "function") throw new Error;
  9024. return f;
  9025. }
  9026. /***/ }),
  9027. /***/ "./node_modules/d3-hierarchy/src/array.js":
  9028. /*!************************************************!*\
  9029. !*** ./node_modules/d3-hierarchy/src/array.js ***!
  9030. \************************************************/
  9031. /*! exports provided: slice, shuffle */
  9032. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9033. "use strict";
  9034. __webpack_require__.r(__webpack_exports__);
  9035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  9036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shuffle", function() { return shuffle; });
  9037. var slice = Array.prototype.slice;
  9038. function shuffle(array) {
  9039. var m = array.length,
  9040. t,
  9041. i;
  9042. while (m) {
  9043. i = Math.random() * m-- | 0;
  9044. t = array[m];
  9045. array[m] = array[i];
  9046. array[i] = t;
  9047. }
  9048. return array;
  9049. }
  9050. /***/ }),
  9051. /***/ "./node_modules/d3-hierarchy/src/cluster.js":
  9052. /*!**************************************************!*\
  9053. !*** ./node_modules/d3-hierarchy/src/cluster.js ***!
  9054. \**************************************************/
  9055. /*! exports provided: default */
  9056. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9057. "use strict";
  9058. __webpack_require__.r(__webpack_exports__);
  9059. function defaultSeparation(a, b) {
  9060. return a.parent === b.parent ? 1 : 2;
  9061. }
  9062. function meanX(children) {
  9063. return children.reduce(meanXReduce, 0) / children.length;
  9064. }
  9065. function meanXReduce(x, c) {
  9066. return x + c.x;
  9067. }
  9068. function maxY(children) {
  9069. return 1 + children.reduce(maxYReduce, 0);
  9070. }
  9071. function maxYReduce(y, c) {
  9072. return Math.max(y, c.y);
  9073. }
  9074. function leafLeft(node) {
  9075. var children;
  9076. while (children = node.children) node = children[0];
  9077. return node;
  9078. }
  9079. function leafRight(node) {
  9080. var children;
  9081. while (children = node.children) node = children[children.length - 1];
  9082. return node;
  9083. }
  9084. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9085. var separation = defaultSeparation,
  9086. dx = 1,
  9087. dy = 1,
  9088. nodeSize = false;
  9089. function cluster(root) {
  9090. var previousNode,
  9091. x = 0;
  9092. // First walk, computing the initial x & y values.
  9093. root.eachAfter(function(node) {
  9094. var children = node.children;
  9095. if (children) {
  9096. node.x = meanX(children);
  9097. node.y = maxY(children);
  9098. } else {
  9099. node.x = previousNode ? x += separation(node, previousNode) : 0;
  9100. node.y = 0;
  9101. previousNode = node;
  9102. }
  9103. });
  9104. var left = leafLeft(root),
  9105. right = leafRight(root),
  9106. x0 = left.x - separation(left, right) / 2,
  9107. x1 = right.x + separation(right, left) / 2;
  9108. // Second walk, normalizing x & y to the desired size.
  9109. return root.eachAfter(nodeSize ? function(node) {
  9110. node.x = (node.x - root.x) * dx;
  9111. node.y = (root.y - node.y) * dy;
  9112. } : function(node) {
  9113. node.x = (node.x - x0) / (x1 - x0) * dx;
  9114. node.y = (1 - (root.y ? node.y / root.y : 1)) * dy;
  9115. });
  9116. }
  9117. cluster.separation = function(x) {
  9118. return arguments.length ? (separation = x, cluster) : separation;
  9119. };
  9120. cluster.size = function(x) {
  9121. return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]);
  9122. };
  9123. cluster.nodeSize = function(x) {
  9124. return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null);
  9125. };
  9126. return cluster;
  9127. });
  9128. /***/ }),
  9129. /***/ "./node_modules/d3-hierarchy/src/constant.js":
  9130. /*!***************************************************!*\
  9131. !*** ./node_modules/d3-hierarchy/src/constant.js ***!
  9132. \***************************************************/
  9133. /*! exports provided: constantZero, default */
  9134. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9135. "use strict";
  9136. __webpack_require__.r(__webpack_exports__);
  9137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "constantZero", function() { return constantZero; });
  9138. function constantZero() {
  9139. return 0;
  9140. }
  9141. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  9142. return function() {
  9143. return x;
  9144. };
  9145. });
  9146. /***/ }),
  9147. /***/ "./node_modules/d3-hierarchy/src/hierarchy/ancestors.js":
  9148. /*!**************************************************************!*\
  9149. !*** ./node_modules/d3-hierarchy/src/hierarchy/ancestors.js ***!
  9150. \**************************************************************/
  9151. /*! exports provided: default */
  9152. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9153. "use strict";
  9154. __webpack_require__.r(__webpack_exports__);
  9155. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9156. var node = this, nodes = [node];
  9157. while (node = node.parent) {
  9158. nodes.push(node);
  9159. }
  9160. return nodes;
  9161. });
  9162. /***/ }),
  9163. /***/ "./node_modules/d3-hierarchy/src/hierarchy/count.js":
  9164. /*!**********************************************************!*\
  9165. !*** ./node_modules/d3-hierarchy/src/hierarchy/count.js ***!
  9166. \**********************************************************/
  9167. /*! exports provided: default */
  9168. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9169. "use strict";
  9170. __webpack_require__.r(__webpack_exports__);
  9171. function count(node) {
  9172. var sum = 0,
  9173. children = node.children,
  9174. i = children && children.length;
  9175. if (!i) sum = 1;
  9176. else while (--i >= 0) sum += children[i].value;
  9177. node.value = sum;
  9178. }
  9179. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9180. return this.eachAfter(count);
  9181. });
  9182. /***/ }),
  9183. /***/ "./node_modules/d3-hierarchy/src/hierarchy/descendants.js":
  9184. /*!****************************************************************!*\
  9185. !*** ./node_modules/d3-hierarchy/src/hierarchy/descendants.js ***!
  9186. \****************************************************************/
  9187. /*! exports provided: default */
  9188. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9189. "use strict";
  9190. __webpack_require__.r(__webpack_exports__);
  9191. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9192. var nodes = [];
  9193. this.each(function(node) {
  9194. nodes.push(node);
  9195. });
  9196. return nodes;
  9197. });
  9198. /***/ }),
  9199. /***/ "./node_modules/d3-hierarchy/src/hierarchy/each.js":
  9200. /*!*********************************************************!*\
  9201. !*** ./node_modules/d3-hierarchy/src/hierarchy/each.js ***!
  9202. \*********************************************************/
  9203. /*! exports provided: default */
  9204. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9205. "use strict";
  9206. __webpack_require__.r(__webpack_exports__);
  9207. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  9208. var node = this, current, next = [node], children, i, n;
  9209. do {
  9210. current = next.reverse(), next = [];
  9211. while (node = current.pop()) {
  9212. callback(node), children = node.children;
  9213. if (children) for (i = 0, n = children.length; i < n; ++i) {
  9214. next.push(children[i]);
  9215. }
  9216. }
  9217. } while (next.length);
  9218. return this;
  9219. });
  9220. /***/ }),
  9221. /***/ "./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js":
  9222. /*!**************************************************************!*\
  9223. !*** ./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js ***!
  9224. \**************************************************************/
  9225. /*! exports provided: default */
  9226. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9227. "use strict";
  9228. __webpack_require__.r(__webpack_exports__);
  9229. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  9230. var node = this, nodes = [node], next = [], children, i, n;
  9231. while (node = nodes.pop()) {
  9232. next.push(node), children = node.children;
  9233. if (children) for (i = 0, n = children.length; i < n; ++i) {
  9234. nodes.push(children[i]);
  9235. }
  9236. }
  9237. while (node = next.pop()) {
  9238. callback(node);
  9239. }
  9240. return this;
  9241. });
  9242. /***/ }),
  9243. /***/ "./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js":
  9244. /*!***************************************************************!*\
  9245. !*** ./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js ***!
  9246. \***************************************************************/
  9247. /*! exports provided: default */
  9248. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9249. "use strict";
  9250. __webpack_require__.r(__webpack_exports__);
  9251. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  9252. var node = this, nodes = [node], children, i;
  9253. while (node = nodes.pop()) {
  9254. callback(node), children = node.children;
  9255. if (children) for (i = children.length - 1; i >= 0; --i) {
  9256. nodes.push(children[i]);
  9257. }
  9258. }
  9259. return this;
  9260. });
  9261. /***/ }),
  9262. /***/ "./node_modules/d3-hierarchy/src/hierarchy/index.js":
  9263. /*!**********************************************************!*\
  9264. !*** ./node_modules/d3-hierarchy/src/hierarchy/index.js ***!
  9265. \**********************************************************/
  9266. /*! exports provided: default, computeHeight, Node */
  9267. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9268. "use strict";
  9269. __webpack_require__.r(__webpack_exports__);
  9270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return hierarchy; });
  9271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "computeHeight", function() { return computeHeight; });
  9272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Node", function() { return Node; });
  9273. /* harmony import */ var _count_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./count.js */ "./node_modules/d3-hierarchy/src/hierarchy/count.js");
  9274. /* harmony import */ var _each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./each.js */ "./node_modules/d3-hierarchy/src/hierarchy/each.js");
  9275. /* harmony import */ var _eachBefore_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./eachBefore.js */ "./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js");
  9276. /* harmony import */ var _eachAfter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./eachAfter.js */ "./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js");
  9277. /* harmony import */ var _sum_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sum.js */ "./node_modules/d3-hierarchy/src/hierarchy/sum.js");
  9278. /* harmony import */ var _sort_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sort.js */ "./node_modules/d3-hierarchy/src/hierarchy/sort.js");
  9279. /* harmony import */ var _path_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./path.js */ "./node_modules/d3-hierarchy/src/hierarchy/path.js");
  9280. /* harmony import */ var _ancestors_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ancestors.js */ "./node_modules/d3-hierarchy/src/hierarchy/ancestors.js");
  9281. /* harmony import */ var _descendants_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./descendants.js */ "./node_modules/d3-hierarchy/src/hierarchy/descendants.js");
  9282. /* harmony import */ var _leaves_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./leaves.js */ "./node_modules/d3-hierarchy/src/hierarchy/leaves.js");
  9283. /* harmony import */ var _links_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./links.js */ "./node_modules/d3-hierarchy/src/hierarchy/links.js");
  9284. function hierarchy(data, children) {
  9285. var root = new Node(data),
  9286. valued = +data.value && (root.value = data.value),
  9287. node,
  9288. nodes = [root],
  9289. child,
  9290. childs,
  9291. i,
  9292. n;
  9293. if (children == null) children = defaultChildren;
  9294. while (node = nodes.pop()) {
  9295. if (valued) node.value = +node.data.value;
  9296. if ((childs = children(node.data)) && (n = childs.length)) {
  9297. node.children = new Array(n);
  9298. for (i = n - 1; i >= 0; --i) {
  9299. nodes.push(child = node.children[i] = new Node(childs[i]));
  9300. child.parent = node;
  9301. child.depth = node.depth + 1;
  9302. }
  9303. }
  9304. }
  9305. return root.eachBefore(computeHeight);
  9306. }
  9307. function node_copy() {
  9308. return hierarchy(this).eachBefore(copyData);
  9309. }
  9310. function defaultChildren(d) {
  9311. return d.children;
  9312. }
  9313. function copyData(node) {
  9314. node.data = node.data.data;
  9315. }
  9316. function computeHeight(node) {
  9317. var height = 0;
  9318. do node.height = height;
  9319. while ((node = node.parent) && (node.height < ++height));
  9320. }
  9321. function Node(data) {
  9322. this.data = data;
  9323. this.depth =
  9324. this.height = 0;
  9325. this.parent = null;
  9326. }
  9327. Node.prototype = hierarchy.prototype = {
  9328. constructor: Node,
  9329. count: _count_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  9330. each: _each_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  9331. eachAfter: _eachAfter_js__WEBPACK_IMPORTED_MODULE_3__["default"],
  9332. eachBefore: _eachBefore_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  9333. sum: _sum_js__WEBPACK_IMPORTED_MODULE_4__["default"],
  9334. sort: _sort_js__WEBPACK_IMPORTED_MODULE_5__["default"],
  9335. path: _path_js__WEBPACK_IMPORTED_MODULE_6__["default"],
  9336. ancestors: _ancestors_js__WEBPACK_IMPORTED_MODULE_7__["default"],
  9337. descendants: _descendants_js__WEBPACK_IMPORTED_MODULE_8__["default"],
  9338. leaves: _leaves_js__WEBPACK_IMPORTED_MODULE_9__["default"],
  9339. links: _links_js__WEBPACK_IMPORTED_MODULE_10__["default"],
  9340. copy: node_copy
  9341. };
  9342. /***/ }),
  9343. /***/ "./node_modules/d3-hierarchy/src/hierarchy/leaves.js":
  9344. /*!***********************************************************!*\
  9345. !*** ./node_modules/d3-hierarchy/src/hierarchy/leaves.js ***!
  9346. \***********************************************************/
  9347. /*! exports provided: default */
  9348. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9349. "use strict";
  9350. __webpack_require__.r(__webpack_exports__);
  9351. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9352. var leaves = [];
  9353. this.eachBefore(function(node) {
  9354. if (!node.children) {
  9355. leaves.push(node);
  9356. }
  9357. });
  9358. return leaves;
  9359. });
  9360. /***/ }),
  9361. /***/ "./node_modules/d3-hierarchy/src/hierarchy/links.js":
  9362. /*!**********************************************************!*\
  9363. !*** ./node_modules/d3-hierarchy/src/hierarchy/links.js ***!
  9364. \**********************************************************/
  9365. /*! exports provided: default */
  9366. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9367. "use strict";
  9368. __webpack_require__.r(__webpack_exports__);
  9369. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9370. var root = this, links = [];
  9371. root.each(function(node) {
  9372. if (node !== root) { // Don’t include the root’s parent, if any.
  9373. links.push({source: node.parent, target: node});
  9374. }
  9375. });
  9376. return links;
  9377. });
  9378. /***/ }),
  9379. /***/ "./node_modules/d3-hierarchy/src/hierarchy/path.js":
  9380. /*!*********************************************************!*\
  9381. !*** ./node_modules/d3-hierarchy/src/hierarchy/path.js ***!
  9382. \*********************************************************/
  9383. /*! exports provided: default */
  9384. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9385. "use strict";
  9386. __webpack_require__.r(__webpack_exports__);
  9387. /* harmony default export */ __webpack_exports__["default"] = (function(end) {
  9388. var start = this,
  9389. ancestor = leastCommonAncestor(start, end),
  9390. nodes = [start];
  9391. while (start !== ancestor) {
  9392. start = start.parent;
  9393. nodes.push(start);
  9394. }
  9395. var k = nodes.length;
  9396. while (end !== ancestor) {
  9397. nodes.splice(k, 0, end);
  9398. end = end.parent;
  9399. }
  9400. return nodes;
  9401. });
  9402. function leastCommonAncestor(a, b) {
  9403. if (a === b) return a;
  9404. var aNodes = a.ancestors(),
  9405. bNodes = b.ancestors(),
  9406. c = null;
  9407. a = aNodes.pop();
  9408. b = bNodes.pop();
  9409. while (a === b) {
  9410. c = a;
  9411. a = aNodes.pop();
  9412. b = bNodes.pop();
  9413. }
  9414. return c;
  9415. }
  9416. /***/ }),
  9417. /***/ "./node_modules/d3-hierarchy/src/hierarchy/sort.js":
  9418. /*!*********************************************************!*\
  9419. !*** ./node_modules/d3-hierarchy/src/hierarchy/sort.js ***!
  9420. \*********************************************************/
  9421. /*! exports provided: default */
  9422. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9423. "use strict";
  9424. __webpack_require__.r(__webpack_exports__);
  9425. /* harmony default export */ __webpack_exports__["default"] = (function(compare) {
  9426. return this.eachBefore(function(node) {
  9427. if (node.children) {
  9428. node.children.sort(compare);
  9429. }
  9430. });
  9431. });
  9432. /***/ }),
  9433. /***/ "./node_modules/d3-hierarchy/src/hierarchy/sum.js":
  9434. /*!********************************************************!*\
  9435. !*** ./node_modules/d3-hierarchy/src/hierarchy/sum.js ***!
  9436. \********************************************************/
  9437. /*! exports provided: default */
  9438. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9439. "use strict";
  9440. __webpack_require__.r(__webpack_exports__);
  9441. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  9442. return this.eachAfter(function(node) {
  9443. var sum = +value(node.data) || 0,
  9444. children = node.children,
  9445. i = children && children.length;
  9446. while (--i >= 0) sum += children[i].value;
  9447. node.value = sum;
  9448. });
  9449. });
  9450. /***/ }),
  9451. /***/ "./node_modules/d3-hierarchy/src/index.js":
  9452. /*!************************************************!*\
  9453. !*** ./node_modules/d3-hierarchy/src/index.js ***!
  9454. \************************************************/
  9455. /*! exports provided: cluster, hierarchy, pack, packSiblings, packEnclose, partition, stratify, tree, treemap, treemapBinary, treemapDice, treemapSlice, treemapSliceDice, treemapSquarify, treemapResquarify */
  9456. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9457. "use strict";
  9458. __webpack_require__.r(__webpack_exports__);
  9459. /* harmony import */ var _cluster_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cluster.js */ "./node_modules/d3-hierarchy/src/cluster.js");
  9460. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cluster", function() { return _cluster_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  9461. /* harmony import */ var _hierarchy_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hierarchy/index.js */ "./node_modules/d3-hierarchy/src/hierarchy/index.js");
  9462. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hierarchy", function() { return _hierarchy_index_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  9463. /* harmony import */ var _pack_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pack/index.js */ "./node_modules/d3-hierarchy/src/pack/index.js");
  9464. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pack", function() { return _pack_index_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  9465. /* harmony import */ var _pack_siblings_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pack/siblings.js */ "./node_modules/d3-hierarchy/src/pack/siblings.js");
  9466. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "packSiblings", function() { return _pack_siblings_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  9467. /* harmony import */ var _pack_enclose_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pack/enclose.js */ "./node_modules/d3-hierarchy/src/pack/enclose.js");
  9468. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "packEnclose", function() { return _pack_enclose_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  9469. /* harmony import */ var _partition_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./partition.js */ "./node_modules/d3-hierarchy/src/partition.js");
  9470. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return _partition_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  9471. /* harmony import */ var _stratify_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./stratify.js */ "./node_modules/d3-hierarchy/src/stratify.js");
  9472. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stratify", function() { return _stratify_js__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  9473. /* harmony import */ var _tree_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tree.js */ "./node_modules/d3-hierarchy/src/tree.js");
  9474. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tree", function() { return _tree_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  9475. /* harmony import */ var _treemap_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./treemap/index.js */ "./node_modules/d3-hierarchy/src/treemap/index.js");
  9476. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemap", function() { return _treemap_index_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  9477. /* harmony import */ var _treemap_binary_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./treemap/binary.js */ "./node_modules/d3-hierarchy/src/treemap/binary.js");
  9478. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapBinary", function() { return _treemap_binary_js__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  9479. /* harmony import */ var _treemap_dice_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./treemap/dice.js */ "./node_modules/d3-hierarchy/src/treemap/dice.js");
  9480. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapDice", function() { return _treemap_dice_js__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  9481. /* harmony import */ var _treemap_slice_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./treemap/slice.js */ "./node_modules/d3-hierarchy/src/treemap/slice.js");
  9482. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSlice", function() { return _treemap_slice_js__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  9483. /* harmony import */ var _treemap_sliceDice_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./treemap/sliceDice.js */ "./node_modules/d3-hierarchy/src/treemap/sliceDice.js");
  9484. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSliceDice", function() { return _treemap_sliceDice_js__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  9485. /* harmony import */ var _treemap_squarify_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./treemap/squarify.js */ "./node_modules/d3-hierarchy/src/treemap/squarify.js");
  9486. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSquarify", function() { return _treemap_squarify_js__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  9487. /* harmony import */ var _treemap_resquarify_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./treemap/resquarify.js */ "./node_modules/d3-hierarchy/src/treemap/resquarify.js");
  9488. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapResquarify", function() { return _treemap_resquarify_js__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  9489. /***/ }),
  9490. /***/ "./node_modules/d3-hierarchy/src/pack/enclose.js":
  9491. /*!*******************************************************!*\
  9492. !*** ./node_modules/d3-hierarchy/src/pack/enclose.js ***!
  9493. \*******************************************************/
  9494. /*! exports provided: default */
  9495. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9496. "use strict";
  9497. __webpack_require__.r(__webpack_exports__);
  9498. /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../array.js */ "./node_modules/d3-hierarchy/src/array.js");
  9499. /* harmony default export */ __webpack_exports__["default"] = (function(circles) {
  9500. var i = 0, n = (circles = Object(_array_js__WEBPACK_IMPORTED_MODULE_0__["shuffle"])(_array_js__WEBPACK_IMPORTED_MODULE_0__["slice"].call(circles))).length, B = [], p, e;
  9501. while (i < n) {
  9502. p = circles[i];
  9503. if (e && enclosesWeak(e, p)) ++i;
  9504. else e = encloseBasis(B = extendBasis(B, p)), i = 0;
  9505. }
  9506. return e;
  9507. });
  9508. function extendBasis(B, p) {
  9509. var i, j;
  9510. if (enclosesWeakAll(p, B)) return [p];
  9511. // If we get here then B must have at least one element.
  9512. for (i = 0; i < B.length; ++i) {
  9513. if (enclosesNot(p, B[i])
  9514. && enclosesWeakAll(encloseBasis2(B[i], p), B)) {
  9515. return [B[i], p];
  9516. }
  9517. }
  9518. // If we get here then B must have at least two elements.
  9519. for (i = 0; i < B.length - 1; ++i) {
  9520. for (j = i + 1; j < B.length; ++j) {
  9521. if (enclosesNot(encloseBasis2(B[i], B[j]), p)
  9522. && enclosesNot(encloseBasis2(B[i], p), B[j])
  9523. && enclosesNot(encloseBasis2(B[j], p), B[i])
  9524. && enclosesWeakAll(encloseBasis3(B[i], B[j], p), B)) {
  9525. return [B[i], B[j], p];
  9526. }
  9527. }
  9528. }
  9529. // If we get here then something is very wrong.
  9530. throw new Error;
  9531. }
  9532. function enclosesNot(a, b) {
  9533. var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y;
  9534. return dr < 0 || dr * dr < dx * dx + dy * dy;
  9535. }
  9536. function enclosesWeak(a, b) {
  9537. var dr = a.r - b.r + 1e-6, dx = b.x - a.x, dy = b.y - a.y;
  9538. return dr > 0 && dr * dr > dx * dx + dy * dy;
  9539. }
  9540. function enclosesWeakAll(a, B) {
  9541. for (var i = 0; i < B.length; ++i) {
  9542. if (!enclosesWeak(a, B[i])) {
  9543. return false;
  9544. }
  9545. }
  9546. return true;
  9547. }
  9548. function encloseBasis(B) {
  9549. switch (B.length) {
  9550. case 1: return encloseBasis1(B[0]);
  9551. case 2: return encloseBasis2(B[0], B[1]);
  9552. case 3: return encloseBasis3(B[0], B[1], B[2]);
  9553. }
  9554. }
  9555. function encloseBasis1(a) {
  9556. return {
  9557. x: a.x,
  9558. y: a.y,
  9559. r: a.r
  9560. };
  9561. }
  9562. function encloseBasis2(a, b) {
  9563. var x1 = a.x, y1 = a.y, r1 = a.r,
  9564. x2 = b.x, y2 = b.y, r2 = b.r,
  9565. x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1,
  9566. l = Math.sqrt(x21 * x21 + y21 * y21);
  9567. return {
  9568. x: (x1 + x2 + x21 / l * r21) / 2,
  9569. y: (y1 + y2 + y21 / l * r21) / 2,
  9570. r: (l + r1 + r2) / 2
  9571. };
  9572. }
  9573. function encloseBasis3(a, b, c) {
  9574. var x1 = a.x, y1 = a.y, r1 = a.r,
  9575. x2 = b.x, y2 = b.y, r2 = b.r,
  9576. x3 = c.x, y3 = c.y, r3 = c.r,
  9577. a2 = x1 - x2,
  9578. a3 = x1 - x3,
  9579. b2 = y1 - y2,
  9580. b3 = y1 - y3,
  9581. c2 = r2 - r1,
  9582. c3 = r3 - r1,
  9583. d1 = x1 * x1 + y1 * y1 - r1 * r1,
  9584. d2 = d1 - x2 * x2 - y2 * y2 + r2 * r2,
  9585. d3 = d1 - x3 * x3 - y3 * y3 + r3 * r3,
  9586. ab = a3 * b2 - a2 * b3,
  9587. xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1,
  9588. xb = (b3 * c2 - b2 * c3) / ab,
  9589. ya = (a3 * d2 - a2 * d3) / (ab * 2) - y1,
  9590. yb = (a2 * c3 - a3 * c2) / ab,
  9591. A = xb * xb + yb * yb - 1,
  9592. B = 2 * (r1 + xa * xb + ya * yb),
  9593. C = xa * xa + ya * ya - r1 * r1,
  9594. r = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B);
  9595. return {
  9596. x: x1 + xa + xb * r,
  9597. y: y1 + ya + yb * r,
  9598. r: r
  9599. };
  9600. }
  9601. /***/ }),
  9602. /***/ "./node_modules/d3-hierarchy/src/pack/index.js":
  9603. /*!*****************************************************!*\
  9604. !*** ./node_modules/d3-hierarchy/src/pack/index.js ***!
  9605. \*****************************************************/
  9606. /*! exports provided: default */
  9607. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9608. "use strict";
  9609. __webpack_require__.r(__webpack_exports__);
  9610. /* harmony import */ var _siblings_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./siblings.js */ "./node_modules/d3-hierarchy/src/pack/siblings.js");
  9611. /* harmony import */ var _accessors_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../accessors.js */ "./node_modules/d3-hierarchy/src/accessors.js");
  9612. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constant.js */ "./node_modules/d3-hierarchy/src/constant.js");
  9613. function defaultRadius(d) {
  9614. return Math.sqrt(d.value);
  9615. }
  9616. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9617. var radius = null,
  9618. dx = 1,
  9619. dy = 1,
  9620. padding = _constant_js__WEBPACK_IMPORTED_MODULE_2__["constantZero"];
  9621. function pack(root) {
  9622. root.x = dx / 2, root.y = dy / 2;
  9623. if (radius) {
  9624. root.eachBefore(radiusLeaf(radius))
  9625. .eachAfter(packChildren(padding, 0.5))
  9626. .eachBefore(translateChild(1));
  9627. } else {
  9628. root.eachBefore(radiusLeaf(defaultRadius))
  9629. .eachAfter(packChildren(_constant_js__WEBPACK_IMPORTED_MODULE_2__["constantZero"], 1))
  9630. .eachAfter(packChildren(padding, root.r / Math.min(dx, dy)))
  9631. .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r)));
  9632. }
  9633. return root;
  9634. }
  9635. pack.radius = function(x) {
  9636. return arguments.length ? (radius = Object(_accessors_js__WEBPACK_IMPORTED_MODULE_1__["optional"])(x), pack) : radius;
  9637. };
  9638. pack.size = function(x) {
  9639. return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy];
  9640. };
  9641. pack.padding = function(x) {
  9642. return arguments.length ? (padding = typeof x === "function" ? x : Object(_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(+x), pack) : padding;
  9643. };
  9644. return pack;
  9645. });
  9646. function radiusLeaf(radius) {
  9647. return function(node) {
  9648. if (!node.children) {
  9649. node.r = Math.max(0, +radius(node) || 0);
  9650. }
  9651. };
  9652. }
  9653. function packChildren(padding, k) {
  9654. return function(node) {
  9655. if (children = node.children) {
  9656. var children,
  9657. i,
  9658. n = children.length,
  9659. r = padding(node) * k || 0,
  9660. e;
  9661. if (r) for (i = 0; i < n; ++i) children[i].r += r;
  9662. e = Object(_siblings_js__WEBPACK_IMPORTED_MODULE_0__["packEnclose"])(children);
  9663. if (r) for (i = 0; i < n; ++i) children[i].r -= r;
  9664. node.r = e + r;
  9665. }
  9666. };
  9667. }
  9668. function translateChild(k) {
  9669. return function(node) {
  9670. var parent = node.parent;
  9671. node.r *= k;
  9672. if (parent) {
  9673. node.x = parent.x + k * node.x;
  9674. node.y = parent.y + k * node.y;
  9675. }
  9676. };
  9677. }
  9678. /***/ }),
  9679. /***/ "./node_modules/d3-hierarchy/src/pack/siblings.js":
  9680. /*!********************************************************!*\
  9681. !*** ./node_modules/d3-hierarchy/src/pack/siblings.js ***!
  9682. \********************************************************/
  9683. /*! exports provided: packEnclose, default */
  9684. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9685. "use strict";
  9686. __webpack_require__.r(__webpack_exports__);
  9687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "packEnclose", function() { return packEnclose; });
  9688. /* harmony import */ var _enclose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./enclose.js */ "./node_modules/d3-hierarchy/src/pack/enclose.js");
  9689. function place(b, a, c) {
  9690. var dx = b.x - a.x, x, a2,
  9691. dy = b.y - a.y, y, b2,
  9692. d2 = dx * dx + dy * dy;
  9693. if (d2) {
  9694. a2 = a.r + c.r, a2 *= a2;
  9695. b2 = b.r + c.r, b2 *= b2;
  9696. if (a2 > b2) {
  9697. x = (d2 + b2 - a2) / (2 * d2);
  9698. y = Math.sqrt(Math.max(0, b2 / d2 - x * x));
  9699. c.x = b.x - x * dx - y * dy;
  9700. c.y = b.y - x * dy + y * dx;
  9701. } else {
  9702. x = (d2 + a2 - b2) / (2 * d2);
  9703. y = Math.sqrt(Math.max(0, a2 / d2 - x * x));
  9704. c.x = a.x + x * dx - y * dy;
  9705. c.y = a.y + x * dy + y * dx;
  9706. }
  9707. } else {
  9708. c.x = a.x + c.r;
  9709. c.y = a.y;
  9710. }
  9711. }
  9712. function intersects(a, b) {
  9713. var dr = a.r + b.r - 1e-6, dx = b.x - a.x, dy = b.y - a.y;
  9714. return dr > 0 && dr * dr > dx * dx + dy * dy;
  9715. }
  9716. function score(node) {
  9717. var a = node._,
  9718. b = node.next._,
  9719. ab = a.r + b.r,
  9720. dx = (a.x * b.r + b.x * a.r) / ab,
  9721. dy = (a.y * b.r + b.y * a.r) / ab;
  9722. return dx * dx + dy * dy;
  9723. }
  9724. function Node(circle) {
  9725. this._ = circle;
  9726. this.next = null;
  9727. this.previous = null;
  9728. }
  9729. function packEnclose(circles) {
  9730. if (!(n = circles.length)) return 0;
  9731. var a, b, c, n, aa, ca, i, j, k, sj, sk;
  9732. // Place the first circle.
  9733. a = circles[0], a.x = 0, a.y = 0;
  9734. if (!(n > 1)) return a.r;
  9735. // Place the second circle.
  9736. b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0;
  9737. if (!(n > 2)) return a.r + b.r;
  9738. // Place the third circle.
  9739. place(b, a, c = circles[2]);
  9740. // Initialize the front-chain using the first three circles a, b and c.
  9741. a = new Node(a), b = new Node(b), c = new Node(c);
  9742. a.next = c.previous = b;
  9743. b.next = a.previous = c;
  9744. c.next = b.previous = a;
  9745. // Attempt to place each remaining circle…
  9746. pack: for (i = 3; i < n; ++i) {
  9747. place(a._, b._, c = circles[i]), c = new Node(c);
  9748. // Find the closest intersecting circle on the front-chain, if any.
  9749. // “Closeness” is determined by linear distance along the front-chain.
  9750. // “Ahead” or “behind” is likewise determined by linear distance.
  9751. j = b.next, k = a.previous, sj = b._.r, sk = a._.r;
  9752. do {
  9753. if (sj <= sk) {
  9754. if (intersects(j._, c._)) {
  9755. b = j, a.next = b, b.previous = a, --i;
  9756. continue pack;
  9757. }
  9758. sj += j._.r, j = j.next;
  9759. } else {
  9760. if (intersects(k._, c._)) {
  9761. a = k, a.next = b, b.previous = a, --i;
  9762. continue pack;
  9763. }
  9764. sk += k._.r, k = k.previous;
  9765. }
  9766. } while (j !== k.next);
  9767. // Success! Insert the new circle c between a and b.
  9768. c.previous = a, c.next = b, a.next = b.previous = b = c;
  9769. // Compute the new closest circle pair to the centroid.
  9770. aa = score(a);
  9771. while ((c = c.next) !== b) {
  9772. if ((ca = score(c)) < aa) {
  9773. a = c, aa = ca;
  9774. }
  9775. }
  9776. b = a.next;
  9777. }
  9778. // Compute the enclosing circle of the front chain.
  9779. a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = Object(_enclose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a);
  9780. // Translate the circles to put the enclosing circle around the origin.
  9781. for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y;
  9782. return c.r;
  9783. }
  9784. /* harmony default export */ __webpack_exports__["default"] = (function(circles) {
  9785. packEnclose(circles);
  9786. return circles;
  9787. });
  9788. /***/ }),
  9789. /***/ "./node_modules/d3-hierarchy/src/partition.js":
  9790. /*!****************************************************!*\
  9791. !*** ./node_modules/d3-hierarchy/src/partition.js ***!
  9792. \****************************************************/
  9793. /*! exports provided: default */
  9794. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9795. "use strict";
  9796. __webpack_require__.r(__webpack_exports__);
  9797. /* harmony import */ var _treemap_round_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./treemap/round.js */ "./node_modules/d3-hierarchy/src/treemap/round.js");
  9798. /* harmony import */ var _treemap_dice_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./treemap/dice.js */ "./node_modules/d3-hierarchy/src/treemap/dice.js");
  9799. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9800. var dx = 1,
  9801. dy = 1,
  9802. padding = 0,
  9803. round = false;
  9804. function partition(root) {
  9805. var n = root.height + 1;
  9806. root.x0 =
  9807. root.y0 = padding;
  9808. root.x1 = dx;
  9809. root.y1 = dy / n;
  9810. root.eachBefore(positionNode(dy, n));
  9811. if (round) root.eachBefore(_treemap_round_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  9812. return root;
  9813. }
  9814. function positionNode(dy, n) {
  9815. return function(node) {
  9816. if (node.children) {
  9817. Object(_treemap_dice_js__WEBPACK_IMPORTED_MODULE_1__["default"])(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n);
  9818. }
  9819. var x0 = node.x0,
  9820. y0 = node.y0,
  9821. x1 = node.x1 - padding,
  9822. y1 = node.y1 - padding;
  9823. if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
  9824. if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
  9825. node.x0 = x0;
  9826. node.y0 = y0;
  9827. node.x1 = x1;
  9828. node.y1 = y1;
  9829. };
  9830. }
  9831. partition.round = function(x) {
  9832. return arguments.length ? (round = !!x, partition) : round;
  9833. };
  9834. partition.size = function(x) {
  9835. return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy];
  9836. };
  9837. partition.padding = function(x) {
  9838. return arguments.length ? (padding = +x, partition) : padding;
  9839. };
  9840. return partition;
  9841. });
  9842. /***/ }),
  9843. /***/ "./node_modules/d3-hierarchy/src/stratify.js":
  9844. /*!***************************************************!*\
  9845. !*** ./node_modules/d3-hierarchy/src/stratify.js ***!
  9846. \***************************************************/
  9847. /*! exports provided: default */
  9848. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9849. "use strict";
  9850. __webpack_require__.r(__webpack_exports__);
  9851. /* harmony import */ var _accessors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./accessors.js */ "./node_modules/d3-hierarchy/src/accessors.js");
  9852. /* harmony import */ var _hierarchy_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hierarchy/index.js */ "./node_modules/d3-hierarchy/src/hierarchy/index.js");
  9853. var keyPrefix = "$", // Protect against keys like “__proto__”.
  9854. preroot = {depth: -1},
  9855. ambiguous = {};
  9856. function defaultId(d) {
  9857. return d.id;
  9858. }
  9859. function defaultParentId(d) {
  9860. return d.parentId;
  9861. }
  9862. /* harmony default export */ __webpack_exports__["default"] = (function() {
  9863. var id = defaultId,
  9864. parentId = defaultParentId;
  9865. function stratify(data) {
  9866. var d,
  9867. i,
  9868. n = data.length,
  9869. root,
  9870. parent,
  9871. node,
  9872. nodes = new Array(n),
  9873. nodeId,
  9874. nodeKey,
  9875. nodeByKey = {};
  9876. for (i = 0; i < n; ++i) {
  9877. d = data[i], node = nodes[i] = new _hierarchy_index_js__WEBPACK_IMPORTED_MODULE_1__["Node"](d);
  9878. if ((nodeId = id(d, i, data)) != null && (nodeId += "")) {
  9879. nodeKey = keyPrefix + (node.id = nodeId);
  9880. nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node;
  9881. }
  9882. }
  9883. for (i = 0; i < n; ++i) {
  9884. node = nodes[i], nodeId = parentId(data[i], i, data);
  9885. if (nodeId == null || !(nodeId += "")) {
  9886. if (root) throw new Error("multiple roots");
  9887. root = node;
  9888. } else {
  9889. parent = nodeByKey[keyPrefix + nodeId];
  9890. if (!parent) throw new Error("missing: " + nodeId);
  9891. if (parent === ambiguous) throw new Error("ambiguous: " + nodeId);
  9892. if (parent.children) parent.children.push(node);
  9893. else parent.children = [node];
  9894. node.parent = parent;
  9895. }
  9896. }
  9897. if (!root) throw new Error("no root");
  9898. root.parent = preroot;
  9899. root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(_hierarchy_index_js__WEBPACK_IMPORTED_MODULE_1__["computeHeight"]);
  9900. root.parent = null;
  9901. if (n > 0) throw new Error("cycle");
  9902. return root;
  9903. }
  9904. stratify.id = function(x) {
  9905. return arguments.length ? (id = Object(_accessors_js__WEBPACK_IMPORTED_MODULE_0__["required"])(x), stratify) : id;
  9906. };
  9907. stratify.parentId = function(x) {
  9908. return arguments.length ? (parentId = Object(_accessors_js__WEBPACK_IMPORTED_MODULE_0__["required"])(x), stratify) : parentId;
  9909. };
  9910. return stratify;
  9911. });
  9912. /***/ }),
  9913. /***/ "./node_modules/d3-hierarchy/src/tree.js":
  9914. /*!***********************************************!*\
  9915. !*** ./node_modules/d3-hierarchy/src/tree.js ***!
  9916. \***********************************************/
  9917. /*! exports provided: default */
  9918. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9919. "use strict";
  9920. __webpack_require__.r(__webpack_exports__);
  9921. /* harmony import */ var _hierarchy_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hierarchy/index.js */ "./node_modules/d3-hierarchy/src/hierarchy/index.js");
  9922. function defaultSeparation(a, b) {
  9923. return a.parent === b.parent ? 1 : 2;
  9924. }
  9925. // function radialSeparation(a, b) {
  9926. // return (a.parent === b.parent ? 1 : 2) / a.depth;
  9927. // }
  9928. // This function is used to traverse the left contour of a subtree (or
  9929. // subforest). It returns the successor of v on this contour. This successor is
  9930. // either given by the leftmost child of v or by the thread of v. The function
  9931. // returns null if and only if v is on the highest level of its subtree.
  9932. function nextLeft(v) {
  9933. var children = v.children;
  9934. return children ? children[0] : v.t;
  9935. }
  9936. // This function works analogously to nextLeft.
  9937. function nextRight(v) {
  9938. var children = v.children;
  9939. return children ? children[children.length - 1] : v.t;
  9940. }
  9941. // Shifts the current subtree rooted at w+. This is done by increasing
  9942. // prelim(w+) and mod(w+) by shift.
  9943. function moveSubtree(wm, wp, shift) {
  9944. var change = shift / (wp.i - wm.i);
  9945. wp.c -= change;
  9946. wp.s += shift;
  9947. wm.c += change;
  9948. wp.z += shift;
  9949. wp.m += shift;
  9950. }
  9951. // All other shifts, applied to the smaller subtrees between w- and w+, are
  9952. // performed by this function. To prepare the shifts, we have to adjust
  9953. // change(w+), shift(w+), and change(w-).
  9954. function executeShifts(v) {
  9955. var shift = 0,
  9956. change = 0,
  9957. children = v.children,
  9958. i = children.length,
  9959. w;
  9960. while (--i >= 0) {
  9961. w = children[i];
  9962. w.z += shift;
  9963. w.m += shift;
  9964. shift += w.s + (change += w.c);
  9965. }
  9966. }
  9967. // If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,
  9968. // returns the specified (default) ancestor.
  9969. function nextAncestor(vim, v, ancestor) {
  9970. return vim.a.parent === v.parent ? vim.a : ancestor;
  9971. }
  9972. function TreeNode(node, i) {
  9973. this._ = node;
  9974. this.parent = null;
  9975. this.children = null;
  9976. this.A = null; // default ancestor
  9977. this.a = this; // ancestor
  9978. this.z = 0; // prelim
  9979. this.m = 0; // mod
  9980. this.c = 0; // change
  9981. this.s = 0; // shift
  9982. this.t = null; // thread
  9983. this.i = i; // number
  9984. }
  9985. TreeNode.prototype = Object.create(_hierarchy_index_js__WEBPACK_IMPORTED_MODULE_0__["Node"].prototype);
  9986. function treeRoot(root) {
  9987. var tree = new TreeNode(root, 0),
  9988. node,
  9989. nodes = [tree],
  9990. child,
  9991. children,
  9992. i,
  9993. n;
  9994. while (node = nodes.pop()) {
  9995. if (children = node._.children) {
  9996. node.children = new Array(n = children.length);
  9997. for (i = n - 1; i >= 0; --i) {
  9998. nodes.push(child = node.children[i] = new TreeNode(children[i], i));
  9999. child.parent = node;
  10000. }
  10001. }
  10002. }
  10003. (tree.parent = new TreeNode(null, 0)).children = [tree];
  10004. return tree;
  10005. }
  10006. // Node-link tree diagram using the Reingold-Tilford "tidy" algorithm
  10007. /* harmony default export */ __webpack_exports__["default"] = (function() {
  10008. var separation = defaultSeparation,
  10009. dx = 1,
  10010. dy = 1,
  10011. nodeSize = null;
  10012. function tree(root) {
  10013. var t = treeRoot(root);
  10014. // Compute the layout using Buchheim et al.’s algorithm.
  10015. t.eachAfter(firstWalk), t.parent.m = -t.z;
  10016. t.eachBefore(secondWalk);
  10017. // If a fixed node size is specified, scale x and y.
  10018. if (nodeSize) root.eachBefore(sizeNode);
  10019. // If a fixed tree size is specified, scale x and y based on the extent.
  10020. // Compute the left-most, right-most, and depth-most nodes for extents.
  10021. else {
  10022. var left = root,
  10023. right = root,
  10024. bottom = root;
  10025. root.eachBefore(function(node) {
  10026. if (node.x < left.x) left = node;
  10027. if (node.x > right.x) right = node;
  10028. if (node.depth > bottom.depth) bottom = node;
  10029. });
  10030. var s = left === right ? 1 : separation(left, right) / 2,
  10031. tx = s - left.x,
  10032. kx = dx / (right.x + s + tx),
  10033. ky = dy / (bottom.depth || 1);
  10034. root.eachBefore(function(node) {
  10035. node.x = (node.x + tx) * kx;
  10036. node.y = node.depth * ky;
  10037. });
  10038. }
  10039. return root;
  10040. }
  10041. // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is
  10042. // applied recursively to the children of v, as well as the function
  10043. // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the
  10044. // node v is placed to the midpoint of its outermost children.
  10045. function firstWalk(v) {
  10046. var children = v.children,
  10047. siblings = v.parent.children,
  10048. w = v.i ? siblings[v.i - 1] : null;
  10049. if (children) {
  10050. executeShifts(v);
  10051. var midpoint = (children[0].z + children[children.length - 1].z) / 2;
  10052. if (w) {
  10053. v.z = w.z + separation(v._, w._);
  10054. v.m = v.z - midpoint;
  10055. } else {
  10056. v.z = midpoint;
  10057. }
  10058. } else if (w) {
  10059. v.z = w.z + separation(v._, w._);
  10060. }
  10061. v.parent.A = apportion(v, w, v.parent.A || siblings[0]);
  10062. }
  10063. // Computes all real x-coordinates by summing up the modifiers recursively.
  10064. function secondWalk(v) {
  10065. v._.x = v.z + v.parent.m;
  10066. v.m += v.parent.m;
  10067. }
  10068. // The core of the algorithm. Here, a new subtree is combined with the
  10069. // previous subtrees. Threads are used to traverse the inside and outside
  10070. // contours of the left and right subtree up to the highest common level. The
  10071. // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the
  10072. // superscript o means outside and i means inside, the subscript - means left
  10073. // subtree and + means right subtree. For summing up the modifiers along the
  10074. // contour, we use respective variables si+, si-, so-, and so+. Whenever two
  10075. // nodes of the inside contours conflict, we compute the left one of the
  10076. // greatest uncommon ancestors using the function ANCESTOR and call MOVE
  10077. // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.
  10078. // Finally, we add a new thread (if necessary).
  10079. function apportion(v, w, ancestor) {
  10080. if (w) {
  10081. var vip = v,
  10082. vop = v,
  10083. vim = w,
  10084. vom = vip.parent.children[0],
  10085. sip = vip.m,
  10086. sop = vop.m,
  10087. sim = vim.m,
  10088. som = vom.m,
  10089. shift;
  10090. while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {
  10091. vom = nextLeft(vom);
  10092. vop = nextRight(vop);
  10093. vop.a = v;
  10094. shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);
  10095. if (shift > 0) {
  10096. moveSubtree(nextAncestor(vim, v, ancestor), v, shift);
  10097. sip += shift;
  10098. sop += shift;
  10099. }
  10100. sim += vim.m;
  10101. sip += vip.m;
  10102. som += vom.m;
  10103. sop += vop.m;
  10104. }
  10105. if (vim && !nextRight(vop)) {
  10106. vop.t = vim;
  10107. vop.m += sim - sop;
  10108. }
  10109. if (vip && !nextLeft(vom)) {
  10110. vom.t = vip;
  10111. vom.m += sip - som;
  10112. ancestor = v;
  10113. }
  10114. }
  10115. return ancestor;
  10116. }
  10117. function sizeNode(node) {
  10118. node.x *= dx;
  10119. node.y = node.depth * dy;
  10120. }
  10121. tree.separation = function(x) {
  10122. return arguments.length ? (separation = x, tree) : separation;
  10123. };
  10124. tree.size = function(x) {
  10125. return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);
  10126. };
  10127. tree.nodeSize = function(x) {
  10128. return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);
  10129. };
  10130. return tree;
  10131. });
  10132. /***/ }),
  10133. /***/ "./node_modules/d3-hierarchy/src/treemap/binary.js":
  10134. /*!*********************************************************!*\
  10135. !*** ./node_modules/d3-hierarchy/src/treemap/binary.js ***!
  10136. \*********************************************************/
  10137. /*! exports provided: default */
  10138. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10139. "use strict";
  10140. __webpack_require__.r(__webpack_exports__);
  10141. /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) {
  10142. var nodes = parent.children,
  10143. i, n = nodes.length,
  10144. sum, sums = new Array(n + 1);
  10145. for (sums[0] = sum = i = 0; i < n; ++i) {
  10146. sums[i + 1] = sum += nodes[i].value;
  10147. }
  10148. partition(0, n, parent.value, x0, y0, x1, y1);
  10149. function partition(i, j, value, x0, y0, x1, y1) {
  10150. if (i >= j - 1) {
  10151. var node = nodes[i];
  10152. node.x0 = x0, node.y0 = y0;
  10153. node.x1 = x1, node.y1 = y1;
  10154. return;
  10155. }
  10156. var valueOffset = sums[i],
  10157. valueTarget = (value / 2) + valueOffset,
  10158. k = i + 1,
  10159. hi = j - 1;
  10160. while (k < hi) {
  10161. var mid = k + hi >>> 1;
  10162. if (sums[mid] < valueTarget) k = mid + 1;
  10163. else hi = mid;
  10164. }
  10165. if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k;
  10166. var valueLeft = sums[k] - valueOffset,
  10167. valueRight = value - valueLeft;
  10168. if ((x1 - x0) > (y1 - y0)) {
  10169. var xk = (x0 * valueRight + x1 * valueLeft) / value;
  10170. partition(i, k, valueLeft, x0, y0, xk, y1);
  10171. partition(k, j, valueRight, xk, y0, x1, y1);
  10172. } else {
  10173. var yk = (y0 * valueRight + y1 * valueLeft) / value;
  10174. partition(i, k, valueLeft, x0, y0, x1, yk);
  10175. partition(k, j, valueRight, x0, yk, x1, y1);
  10176. }
  10177. }
  10178. });
  10179. /***/ }),
  10180. /***/ "./node_modules/d3-hierarchy/src/treemap/dice.js":
  10181. /*!*******************************************************!*\
  10182. !*** ./node_modules/d3-hierarchy/src/treemap/dice.js ***!
  10183. \*******************************************************/
  10184. /*! exports provided: default */
  10185. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10186. "use strict";
  10187. __webpack_require__.r(__webpack_exports__);
  10188. /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) {
  10189. var nodes = parent.children,
  10190. node,
  10191. i = -1,
  10192. n = nodes.length,
  10193. k = parent.value && (x1 - x0) / parent.value;
  10194. while (++i < n) {
  10195. node = nodes[i], node.y0 = y0, node.y1 = y1;
  10196. node.x0 = x0, node.x1 = x0 += node.value * k;
  10197. }
  10198. });
  10199. /***/ }),
  10200. /***/ "./node_modules/d3-hierarchy/src/treemap/index.js":
  10201. /*!********************************************************!*\
  10202. !*** ./node_modules/d3-hierarchy/src/treemap/index.js ***!
  10203. \********************************************************/
  10204. /*! exports provided: default */
  10205. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10206. "use strict";
  10207. __webpack_require__.r(__webpack_exports__);
  10208. /* harmony import */ var _round_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./round.js */ "./node_modules/d3-hierarchy/src/treemap/round.js");
  10209. /* harmony import */ var _squarify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./squarify.js */ "./node_modules/d3-hierarchy/src/treemap/squarify.js");
  10210. /* harmony import */ var _accessors_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../accessors.js */ "./node_modules/d3-hierarchy/src/accessors.js");
  10211. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constant.js */ "./node_modules/d3-hierarchy/src/constant.js");
  10212. /* harmony default export */ __webpack_exports__["default"] = (function() {
  10213. var tile = _squarify_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  10214. round = false,
  10215. dx = 1,
  10216. dy = 1,
  10217. paddingStack = [0],
  10218. paddingInner = _constant_js__WEBPACK_IMPORTED_MODULE_3__["constantZero"],
  10219. paddingTop = _constant_js__WEBPACK_IMPORTED_MODULE_3__["constantZero"],
  10220. paddingRight = _constant_js__WEBPACK_IMPORTED_MODULE_3__["constantZero"],
  10221. paddingBottom = _constant_js__WEBPACK_IMPORTED_MODULE_3__["constantZero"],
  10222. paddingLeft = _constant_js__WEBPACK_IMPORTED_MODULE_3__["constantZero"];
  10223. function treemap(root) {
  10224. root.x0 =
  10225. root.y0 = 0;
  10226. root.x1 = dx;
  10227. root.y1 = dy;
  10228. root.eachBefore(positionNode);
  10229. paddingStack = [0];
  10230. if (round) root.eachBefore(_round_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  10231. return root;
  10232. }
  10233. function positionNode(node) {
  10234. var p = paddingStack[node.depth],
  10235. x0 = node.x0 + p,
  10236. y0 = node.y0 + p,
  10237. x1 = node.x1 - p,
  10238. y1 = node.y1 - p;
  10239. if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
  10240. if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
  10241. node.x0 = x0;
  10242. node.y0 = y0;
  10243. node.x1 = x1;
  10244. node.y1 = y1;
  10245. if (node.children) {
  10246. p = paddingStack[node.depth + 1] = paddingInner(node) / 2;
  10247. x0 += paddingLeft(node) - p;
  10248. y0 += paddingTop(node) - p;
  10249. x1 -= paddingRight(node) - p;
  10250. y1 -= paddingBottom(node) - p;
  10251. if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
  10252. if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
  10253. tile(node, x0, y0, x1, y1);
  10254. }
  10255. }
  10256. treemap.round = function(x) {
  10257. return arguments.length ? (round = !!x, treemap) : round;
  10258. };
  10259. treemap.size = function(x) {
  10260. return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];
  10261. };
  10262. treemap.tile = function(x) {
  10263. return arguments.length ? (tile = Object(_accessors_js__WEBPACK_IMPORTED_MODULE_2__["required"])(x), treemap) : tile;
  10264. };
  10265. treemap.padding = function(x) {
  10266. return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();
  10267. };
  10268. treemap.paddingInner = function(x) {
  10269. return arguments.length ? (paddingInner = typeof x === "function" ? x : Object(_constant_js__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingInner;
  10270. };
  10271. treemap.paddingOuter = function(x) {
  10272. return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();
  10273. };
  10274. treemap.paddingTop = function(x) {
  10275. return arguments.length ? (paddingTop = typeof x === "function" ? x : Object(_constant_js__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingTop;
  10276. };
  10277. treemap.paddingRight = function(x) {
  10278. return arguments.length ? (paddingRight = typeof x === "function" ? x : Object(_constant_js__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingRight;
  10279. };
  10280. treemap.paddingBottom = function(x) {
  10281. return arguments.length ? (paddingBottom = typeof x === "function" ? x : Object(_constant_js__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingBottom;
  10282. };
  10283. treemap.paddingLeft = function(x) {
  10284. return arguments.length ? (paddingLeft = typeof x === "function" ? x : Object(_constant_js__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingLeft;
  10285. };
  10286. return treemap;
  10287. });
  10288. /***/ }),
  10289. /***/ "./node_modules/d3-hierarchy/src/treemap/resquarify.js":
  10290. /*!*************************************************************!*\
  10291. !*** ./node_modules/d3-hierarchy/src/treemap/resquarify.js ***!
  10292. \*************************************************************/
  10293. /*! exports provided: default */
  10294. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10295. "use strict";
  10296. __webpack_require__.r(__webpack_exports__);
  10297. /* harmony import */ var _dice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dice.js */ "./node_modules/d3-hierarchy/src/treemap/dice.js");
  10298. /* harmony import */ var _slice_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slice.js */ "./node_modules/d3-hierarchy/src/treemap/slice.js");
  10299. /* harmony import */ var _squarify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./squarify.js */ "./node_modules/d3-hierarchy/src/treemap/squarify.js");
  10300. /* harmony default export */ __webpack_exports__["default"] = ((function custom(ratio) {
  10301. function resquarify(parent, x0, y0, x1, y1) {
  10302. if ((rows = parent._squarify) && (rows.ratio === ratio)) {
  10303. var rows,
  10304. row,
  10305. nodes,
  10306. i,
  10307. j = -1,
  10308. n,
  10309. m = rows.length,
  10310. value = parent.value;
  10311. while (++j < m) {
  10312. row = rows[j], nodes = row.children;
  10313. for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;
  10314. if (row.dice) Object(_dice_js__WEBPACK_IMPORTED_MODULE_0__["default"])(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value);
  10315. else Object(_slice_js__WEBPACK_IMPORTED_MODULE_1__["default"])(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1);
  10316. value -= row.value;
  10317. }
  10318. } else {
  10319. parent._squarify = rows = Object(_squarify_js__WEBPACK_IMPORTED_MODULE_2__["squarifyRatio"])(ratio, parent, x0, y0, x1, y1);
  10320. rows.ratio = ratio;
  10321. }
  10322. }
  10323. resquarify.ratio = function(x) {
  10324. return custom((x = +x) > 1 ? x : 1);
  10325. };
  10326. return resquarify;
  10327. })(_squarify_js__WEBPACK_IMPORTED_MODULE_2__["phi"]));
  10328. /***/ }),
  10329. /***/ "./node_modules/d3-hierarchy/src/treemap/round.js":
  10330. /*!********************************************************!*\
  10331. !*** ./node_modules/d3-hierarchy/src/treemap/round.js ***!
  10332. \********************************************************/
  10333. /*! exports provided: default */
  10334. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10335. "use strict";
  10336. __webpack_require__.r(__webpack_exports__);
  10337. /* harmony default export */ __webpack_exports__["default"] = (function(node) {
  10338. node.x0 = Math.round(node.x0);
  10339. node.y0 = Math.round(node.y0);
  10340. node.x1 = Math.round(node.x1);
  10341. node.y1 = Math.round(node.y1);
  10342. });
  10343. /***/ }),
  10344. /***/ "./node_modules/d3-hierarchy/src/treemap/slice.js":
  10345. /*!********************************************************!*\
  10346. !*** ./node_modules/d3-hierarchy/src/treemap/slice.js ***!
  10347. \********************************************************/
  10348. /*! exports provided: default */
  10349. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10350. "use strict";
  10351. __webpack_require__.r(__webpack_exports__);
  10352. /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) {
  10353. var nodes = parent.children,
  10354. node,
  10355. i = -1,
  10356. n = nodes.length,
  10357. k = parent.value && (y1 - y0) / parent.value;
  10358. while (++i < n) {
  10359. node = nodes[i], node.x0 = x0, node.x1 = x1;
  10360. node.y0 = y0, node.y1 = y0 += node.value * k;
  10361. }
  10362. });
  10363. /***/ }),
  10364. /***/ "./node_modules/d3-hierarchy/src/treemap/sliceDice.js":
  10365. /*!************************************************************!*\
  10366. !*** ./node_modules/d3-hierarchy/src/treemap/sliceDice.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 _dice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dice.js */ "./node_modules/d3-hierarchy/src/treemap/dice.js");
  10373. /* harmony import */ var _slice_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slice.js */ "./node_modules/d3-hierarchy/src/treemap/slice.js");
  10374. /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) {
  10375. (parent.depth & 1 ? _slice_js__WEBPACK_IMPORTED_MODULE_1__["default"] : _dice_js__WEBPACK_IMPORTED_MODULE_0__["default"])(parent, x0, y0, x1, y1);
  10376. });
  10377. /***/ }),
  10378. /***/ "./node_modules/d3-hierarchy/src/treemap/squarify.js":
  10379. /*!***********************************************************!*\
  10380. !*** ./node_modules/d3-hierarchy/src/treemap/squarify.js ***!
  10381. \***********************************************************/
  10382. /*! exports provided: phi, squarifyRatio, default */
  10383. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10384. "use strict";
  10385. __webpack_require__.r(__webpack_exports__);
  10386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "phi", function() { return phi; });
  10387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "squarifyRatio", function() { return squarifyRatio; });
  10388. /* harmony import */ var _dice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dice.js */ "./node_modules/d3-hierarchy/src/treemap/dice.js");
  10389. /* harmony import */ var _slice_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slice.js */ "./node_modules/d3-hierarchy/src/treemap/slice.js");
  10390. var phi = (1 + Math.sqrt(5)) / 2;
  10391. function squarifyRatio(ratio, parent, x0, y0, x1, y1) {
  10392. var rows = [],
  10393. nodes = parent.children,
  10394. row,
  10395. nodeValue,
  10396. i0 = 0,
  10397. i1 = 0,
  10398. n = nodes.length,
  10399. dx, dy,
  10400. value = parent.value,
  10401. sumValue,
  10402. minValue,
  10403. maxValue,
  10404. newRatio,
  10405. minRatio,
  10406. alpha,
  10407. beta;
  10408. while (i0 < n) {
  10409. dx = x1 - x0, dy = y1 - y0;
  10410. // Find the next non-empty node.
  10411. do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);
  10412. minValue = maxValue = sumValue;
  10413. alpha = Math.max(dy / dx, dx / dy) / (value * ratio);
  10414. beta = sumValue * sumValue * alpha;
  10415. minRatio = Math.max(maxValue / beta, beta / minValue);
  10416. // Keep adding nodes while the aspect ratio maintains or improves.
  10417. for (; i1 < n; ++i1) {
  10418. sumValue += nodeValue = nodes[i1].value;
  10419. if (nodeValue < minValue) minValue = nodeValue;
  10420. if (nodeValue > maxValue) maxValue = nodeValue;
  10421. beta = sumValue * sumValue * alpha;
  10422. newRatio = Math.max(maxValue / beta, beta / minValue);
  10423. if (newRatio > minRatio) { sumValue -= nodeValue; break; }
  10424. minRatio = newRatio;
  10425. }
  10426. // Position and record the row orientation.
  10427. rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});
  10428. if (row.dice) Object(_dice_js__WEBPACK_IMPORTED_MODULE_0__["default"])(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);
  10429. else Object(_slice_js__WEBPACK_IMPORTED_MODULE_1__["default"])(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);
  10430. value -= sumValue, i0 = i1;
  10431. }
  10432. return rows;
  10433. }
  10434. /* harmony default export */ __webpack_exports__["default"] = ((function custom(ratio) {
  10435. function squarify(parent, x0, y0, x1, y1) {
  10436. squarifyRatio(ratio, parent, x0, y0, x1, y1);
  10437. }
  10438. squarify.ratio = function(x) {
  10439. return custom((x = +x) > 1 ? x : 1);
  10440. };
  10441. return squarify;
  10442. })(phi));
  10443. /***/ }),
  10444. /***/ "./node_modules/d3-interpolate/src/array.js":
  10445. /*!**************************************************!*\
  10446. !*** ./node_modules/d3-interpolate/src/array.js ***!
  10447. \**************************************************/
  10448. /*! exports provided: default, genericArray */
  10449. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10450. "use strict";
  10451. __webpack_require__.r(__webpack_exports__);
  10452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genericArray", function() { return genericArray; });
  10453. /* harmony import */ var _value_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value.js */ "./node_modules/d3-interpolate/src/value.js");
  10454. /* harmony import */ var _numberArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./numberArray.js */ "./node_modules/d3-interpolate/src/numberArray.js");
  10455. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10456. return (Object(_numberArray_js__WEBPACK_IMPORTED_MODULE_1__["isNumberArray"])(b) ? _numberArray_js__WEBPACK_IMPORTED_MODULE_1__["default"] : genericArray)(a, b);
  10457. });
  10458. function genericArray(a, b) {
  10459. var nb = b ? b.length : 0,
  10460. na = a ? Math.min(nb, a.length) : 0,
  10461. x = new Array(na),
  10462. c = new Array(nb),
  10463. i;
  10464. for (i = 0; i < na; ++i) x[i] = Object(_value_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a[i], b[i]);
  10465. for (; i < nb; ++i) c[i] = b[i];
  10466. return function(t) {
  10467. for (i = 0; i < na; ++i) c[i] = x[i](t);
  10468. return c;
  10469. };
  10470. }
  10471. /***/ }),
  10472. /***/ "./node_modules/d3-interpolate/src/basis.js":
  10473. /*!**************************************************!*\
  10474. !*** ./node_modules/d3-interpolate/src/basis.js ***!
  10475. \**************************************************/
  10476. /*! exports provided: basis, default */
  10477. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10478. "use strict";
  10479. __webpack_require__.r(__webpack_exports__);
  10480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "basis", function() { return basis; });
  10481. function basis(t1, v0, v1, v2, v3) {
  10482. var t2 = t1 * t1, t3 = t2 * t1;
  10483. return ((1 - 3 * t1 + 3 * t2 - t3) * v0
  10484. + (4 - 6 * t2 + 3 * t3) * v1
  10485. + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2
  10486. + t3 * v3) / 6;
  10487. }
  10488. /* harmony default export */ __webpack_exports__["default"] = (function(values) {
  10489. var n = values.length - 1;
  10490. return function(t) {
  10491. var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),
  10492. v1 = values[i],
  10493. v2 = values[i + 1],
  10494. v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,
  10495. v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;
  10496. return basis((t - i / n) * n, v0, v1, v2, v3);
  10497. };
  10498. });
  10499. /***/ }),
  10500. /***/ "./node_modules/d3-interpolate/src/basisClosed.js":
  10501. /*!********************************************************!*\
  10502. !*** ./node_modules/d3-interpolate/src/basisClosed.js ***!
  10503. \********************************************************/
  10504. /*! exports provided: default */
  10505. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10506. "use strict";
  10507. __webpack_require__.r(__webpack_exports__);
  10508. /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "./node_modules/d3-interpolate/src/basis.js");
  10509. /* harmony default export */ __webpack_exports__["default"] = (function(values) {
  10510. var n = values.length;
  10511. return function(t) {
  10512. var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),
  10513. v0 = values[(i + n - 1) % n],
  10514. v1 = values[i % n],
  10515. v2 = values[(i + 1) % n],
  10516. v3 = values[(i + 2) % n];
  10517. return Object(_basis_js__WEBPACK_IMPORTED_MODULE_0__["basis"])((t - i / n) * n, v0, v1, v2, v3);
  10518. };
  10519. });
  10520. /***/ }),
  10521. /***/ "./node_modules/d3-interpolate/src/color.js":
  10522. /*!**************************************************!*\
  10523. !*** ./node_modules/d3-interpolate/src/color.js ***!
  10524. \**************************************************/
  10525. /*! exports provided: hue, gamma, default */
  10526. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10527. "use strict";
  10528. __webpack_require__.r(__webpack_exports__);
  10529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hue", function() { return hue; });
  10530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gamma", function() { return gamma; });
  10531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return nogamma; });
  10532. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-interpolate/src/constant.js");
  10533. function linear(a, d) {
  10534. return function(t) {
  10535. return a + t * d;
  10536. };
  10537. }
  10538. function exponential(a, b, y) {
  10539. return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {
  10540. return Math.pow(a + t * b, y);
  10541. };
  10542. }
  10543. function hue(a, b) {
  10544. var d = b - a;
  10545. return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a);
  10546. }
  10547. function gamma(y) {
  10548. return (y = +y) === 1 ? nogamma : function(a, b) {
  10549. return b - a ? exponential(a, b, y) : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a);
  10550. };
  10551. }
  10552. function nogamma(a, b) {
  10553. var d = b - a;
  10554. return d ? linear(a, d) : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a);
  10555. }
  10556. /***/ }),
  10557. /***/ "./node_modules/d3-interpolate/src/constant.js":
  10558. /*!*****************************************************!*\
  10559. !*** ./node_modules/d3-interpolate/src/constant.js ***!
  10560. \*****************************************************/
  10561. /*! exports provided: default */
  10562. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10563. "use strict";
  10564. __webpack_require__.r(__webpack_exports__);
  10565. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  10566. return function() {
  10567. return x;
  10568. };
  10569. });
  10570. /***/ }),
  10571. /***/ "./node_modules/d3-interpolate/src/cubehelix.js":
  10572. /*!******************************************************!*\
  10573. !*** ./node_modules/d3-interpolate/src/cubehelix.js ***!
  10574. \******************************************************/
  10575. /*! exports provided: default, cubehelixLong */
  10576. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10577. "use strict";
  10578. __webpack_require__.r(__webpack_exports__);
  10579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubehelixLong", function() { return cubehelixLong; });
  10580. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  10581. /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-interpolate/src/color.js");
  10582. function cubehelix(hue) {
  10583. return (function cubehelixGamma(y) {
  10584. y = +y;
  10585. function cubehelix(start, end) {
  10586. 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),
  10587. s = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.s, end.s),
  10588. l = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l),
  10589. opacity = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity);
  10590. return function(t) {
  10591. start.h = h(t);
  10592. start.s = s(t);
  10593. start.l = l(Math.pow(t, y));
  10594. start.opacity = opacity(t);
  10595. return start + "";
  10596. };
  10597. }
  10598. cubehelix.gamma = cubehelixGamma;
  10599. return cubehelix;
  10600. })(1);
  10601. }
  10602. /* harmony default export */ __webpack_exports__["default"] = (cubehelix(_color_js__WEBPACK_IMPORTED_MODULE_1__["hue"]));
  10603. var cubehelixLong = cubehelix(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
  10604. /***/ }),
  10605. /***/ "./node_modules/d3-interpolate/src/date.js":
  10606. /*!*************************************************!*\
  10607. !*** ./node_modules/d3-interpolate/src/date.js ***!
  10608. \*************************************************/
  10609. /*! exports provided: default */
  10610. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10611. "use strict";
  10612. __webpack_require__.r(__webpack_exports__);
  10613. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10614. var d = new Date;
  10615. return a = +a, b = +b, function(t) {
  10616. return d.setTime(a * (1 - t) + b * t), d;
  10617. };
  10618. });
  10619. /***/ }),
  10620. /***/ "./node_modules/d3-interpolate/src/discrete.js":
  10621. /*!*****************************************************!*\
  10622. !*** ./node_modules/d3-interpolate/src/discrete.js ***!
  10623. \*****************************************************/
  10624. /*! exports provided: default */
  10625. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10626. "use strict";
  10627. __webpack_require__.r(__webpack_exports__);
  10628. /* harmony default export */ __webpack_exports__["default"] = (function(range) {
  10629. var n = range.length;
  10630. return function(t) {
  10631. return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
  10632. };
  10633. });
  10634. /***/ }),
  10635. /***/ "./node_modules/d3-interpolate/src/hcl.js":
  10636. /*!************************************************!*\
  10637. !*** ./node_modules/d3-interpolate/src/hcl.js ***!
  10638. \************************************************/
  10639. /*! exports provided: default, hclLong */
  10640. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10641. "use strict";
  10642. __webpack_require__.r(__webpack_exports__);
  10643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hclLong", function() { return hclLong; });
  10644. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  10645. /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-interpolate/src/color.js");
  10646. function hcl(hue) {
  10647. return function(start, end) {
  10648. 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),
  10649. c = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.c, end.c),
  10650. l = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l),
  10651. opacity = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity);
  10652. return function(t) {
  10653. start.h = h(t);
  10654. start.c = c(t);
  10655. start.l = l(t);
  10656. start.opacity = opacity(t);
  10657. return start + "";
  10658. };
  10659. }
  10660. }
  10661. /* harmony default export */ __webpack_exports__["default"] = (hcl(_color_js__WEBPACK_IMPORTED_MODULE_1__["hue"]));
  10662. var hclLong = hcl(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
  10663. /***/ }),
  10664. /***/ "./node_modules/d3-interpolate/src/hsl.js":
  10665. /*!************************************************!*\
  10666. !*** ./node_modules/d3-interpolate/src/hsl.js ***!
  10667. \************************************************/
  10668. /*! exports provided: default, hslLong */
  10669. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10670. "use strict";
  10671. __webpack_require__.r(__webpack_exports__);
  10672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslLong", function() { return hslLong; });
  10673. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  10674. /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-interpolate/src/color.js");
  10675. function hsl(hue) {
  10676. return function(start, end) {
  10677. 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),
  10678. s = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.s, end.s),
  10679. l = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l),
  10680. opacity = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity);
  10681. return function(t) {
  10682. start.h = h(t);
  10683. start.s = s(t);
  10684. start.l = l(t);
  10685. start.opacity = opacity(t);
  10686. return start + "";
  10687. };
  10688. }
  10689. }
  10690. /* harmony default export */ __webpack_exports__["default"] = (hsl(_color_js__WEBPACK_IMPORTED_MODULE_1__["hue"]));
  10691. var hslLong = hsl(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
  10692. /***/ }),
  10693. /***/ "./node_modules/d3-interpolate/src/hue.js":
  10694. /*!************************************************!*\
  10695. !*** ./node_modules/d3-interpolate/src/hue.js ***!
  10696. \************************************************/
  10697. /*! exports provided: default */
  10698. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10699. "use strict";
  10700. __webpack_require__.r(__webpack_exports__);
  10701. /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-interpolate/src/color.js");
  10702. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10703. var i = Object(_color_js__WEBPACK_IMPORTED_MODULE_0__["hue"])(+a, +b);
  10704. return function(t) {
  10705. var x = i(t);
  10706. return x - 360 * Math.floor(x / 360);
  10707. };
  10708. });
  10709. /***/ }),
  10710. /***/ "./node_modules/d3-interpolate/src/index.js":
  10711. /*!**************************************************!*\
  10712. !*** ./node_modules/d3-interpolate/src/index.js ***!
  10713. \**************************************************/
  10714. /*! exports provided: interpolate, interpolateArray, interpolateBasis, interpolateBasisClosed, interpolateDate, interpolateDiscrete, interpolateHue, interpolateNumber, interpolateNumberArray, interpolateObject, interpolateRound, interpolateString, interpolateTransformCss, interpolateTransformSvg, interpolateZoom, interpolateRgb, interpolateRgbBasis, interpolateRgbBasisClosed, interpolateHsl, interpolateHslLong, interpolateLab, interpolateHcl, interpolateHclLong, interpolateCubehelix, interpolateCubehelixLong, piecewise, quantize */
  10715. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10716. "use strict";
  10717. __webpack_require__.r(__webpack_exports__);
  10718. /* harmony import */ var _value_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value.js */ "./node_modules/d3-interpolate/src/value.js");
  10719. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolate", function() { return _value_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  10720. /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array.js */ "./node_modules/d3-interpolate/src/array.js");
  10721. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateArray", function() { return _array_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  10722. /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./basis.js */ "./node_modules/d3-interpolate/src/basis.js");
  10723. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasis", function() { return _basis_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  10724. /* harmony import */ var _basisClosed_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./basisClosed.js */ "./node_modules/d3-interpolate/src/basisClosed.js");
  10725. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasisClosed", function() { return _basisClosed_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  10726. /* harmony import */ var _date_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./date.js */ "./node_modules/d3-interpolate/src/date.js");
  10727. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDate", function() { return _date_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  10728. /* harmony import */ var _discrete_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./discrete.js */ "./node_modules/d3-interpolate/src/discrete.js");
  10729. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDiscrete", function() { return _discrete_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  10730. /* harmony import */ var _hue_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./hue.js */ "./node_modules/d3-interpolate/src/hue.js");
  10731. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHue", function() { return _hue_js__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  10732. /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./number.js */ "./node_modules/d3-interpolate/src/number.js");
  10733. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateNumber", function() { return _number_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  10734. /* harmony import */ var _numberArray_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./numberArray.js */ "./node_modules/d3-interpolate/src/numberArray.js");
  10735. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateNumberArray", function() { return _numberArray_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  10736. /* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./object.js */ "./node_modules/d3-interpolate/src/object.js");
  10737. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateObject", function() { return _object_js__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  10738. /* harmony import */ var _round_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./round.js */ "./node_modules/d3-interpolate/src/round.js");
  10739. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRound", function() { return _round_js__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  10740. /* harmony import */ var _string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./string.js */ "./node_modules/d3-interpolate/src/string.js");
  10741. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateString", function() { return _string_js__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  10742. /* harmony import */ var _transform_index_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./transform/index.js */ "./node_modules/d3-interpolate/src/transform/index.js");
  10743. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformCss", function() { return _transform_index_js__WEBPACK_IMPORTED_MODULE_12__["interpolateTransformCss"]; });
  10744. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformSvg", function() { return _transform_index_js__WEBPACK_IMPORTED_MODULE_12__["interpolateTransformSvg"]; });
  10745. /* harmony import */ var _zoom_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./zoom.js */ "./node_modules/d3-interpolate/src/zoom.js");
  10746. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateZoom", function() { return _zoom_js__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  10747. /* harmony import */ var _rgb_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./rgb.js */ "./node_modules/d3-interpolate/src/rgb.js");
  10748. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgb", function() { return _rgb_js__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  10749. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasis", function() { return _rgb_js__WEBPACK_IMPORTED_MODULE_14__["rgbBasis"]; });
  10750. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasisClosed", function() { return _rgb_js__WEBPACK_IMPORTED_MODULE_14__["rgbBasisClosed"]; });
  10751. /* harmony import */ var _hsl_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./hsl.js */ "./node_modules/d3-interpolate/src/hsl.js");
  10752. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHsl", function() { return _hsl_js__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  10753. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHslLong", function() { return _hsl_js__WEBPACK_IMPORTED_MODULE_15__["hslLong"]; });
  10754. /* harmony import */ var _lab_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./lab.js */ "./node_modules/d3-interpolate/src/lab.js");
  10755. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateLab", function() { return _lab_js__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  10756. /* harmony import */ var _hcl_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./hcl.js */ "./node_modules/d3-interpolate/src/hcl.js");
  10757. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHcl", function() { return _hcl_js__WEBPACK_IMPORTED_MODULE_17__["default"]; });
  10758. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHclLong", function() { return _hcl_js__WEBPACK_IMPORTED_MODULE_17__["hclLong"]; });
  10759. /* harmony import */ var _cubehelix_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./cubehelix.js */ "./node_modules/d3-interpolate/src/cubehelix.js");
  10760. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelix", function() { return _cubehelix_js__WEBPACK_IMPORTED_MODULE_18__["default"]; });
  10761. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixLong", function() { return _cubehelix_js__WEBPACK_IMPORTED_MODULE_18__["cubehelixLong"]; });
  10762. /* harmony import */ var _piecewise_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./piecewise.js */ "./node_modules/d3-interpolate/src/piecewise.js");
  10763. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "piecewise", function() { return _piecewise_js__WEBPACK_IMPORTED_MODULE_19__["default"]; });
  10764. /* harmony import */ var _quantize_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./quantize.js */ "./node_modules/d3-interpolate/src/quantize.js");
  10765. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantize", function() { return _quantize_js__WEBPACK_IMPORTED_MODULE_20__["default"]; });
  10766. /***/ }),
  10767. /***/ "./node_modules/d3-interpolate/src/lab.js":
  10768. /*!************************************************!*\
  10769. !*** ./node_modules/d3-interpolate/src/lab.js ***!
  10770. \************************************************/
  10771. /*! exports provided: default */
  10772. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10773. "use strict";
  10774. __webpack_require__.r(__webpack_exports__);
  10775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return lab; });
  10776. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  10777. /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-interpolate/src/color.js");
  10778. function lab(start, end) {
  10779. var l = Object(_color_js__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),
  10780. a = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.a, end.a),
  10781. b = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.b, end.b),
  10782. opacity = Object(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity);
  10783. return function(t) {
  10784. start.l = l(t);
  10785. start.a = a(t);
  10786. start.b = b(t);
  10787. start.opacity = opacity(t);
  10788. return start + "";
  10789. };
  10790. }
  10791. /***/ }),
  10792. /***/ "./node_modules/d3-interpolate/src/number.js":
  10793. /*!***************************************************!*\
  10794. !*** ./node_modules/d3-interpolate/src/number.js ***!
  10795. \***************************************************/
  10796. /*! exports provided: default */
  10797. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10798. "use strict";
  10799. __webpack_require__.r(__webpack_exports__);
  10800. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10801. return a = +a, b = +b, function(t) {
  10802. return a * (1 - t) + b * t;
  10803. };
  10804. });
  10805. /***/ }),
  10806. /***/ "./node_modules/d3-interpolate/src/numberArray.js":
  10807. /*!********************************************************!*\
  10808. !*** ./node_modules/d3-interpolate/src/numberArray.js ***!
  10809. \********************************************************/
  10810. /*! exports provided: default, isNumberArray */
  10811. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10812. "use strict";
  10813. __webpack_require__.r(__webpack_exports__);
  10814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumberArray", function() { return isNumberArray; });
  10815. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10816. if (!b) b = [];
  10817. var n = a ? Math.min(b.length, a.length) : 0,
  10818. c = b.slice(),
  10819. i;
  10820. return function(t) {
  10821. for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
  10822. return c;
  10823. };
  10824. });
  10825. function isNumberArray(x) {
  10826. return ArrayBuffer.isView(x) && !(x instanceof DataView);
  10827. }
  10828. /***/ }),
  10829. /***/ "./node_modules/d3-interpolate/src/object.js":
  10830. /*!***************************************************!*\
  10831. !*** ./node_modules/d3-interpolate/src/object.js ***!
  10832. \***************************************************/
  10833. /*! exports provided: default */
  10834. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10835. "use strict";
  10836. __webpack_require__.r(__webpack_exports__);
  10837. /* harmony import */ var _value_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value.js */ "./node_modules/d3-interpolate/src/value.js");
  10838. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10839. var i = {},
  10840. c = {},
  10841. k;
  10842. if (a === null || typeof a !== "object") a = {};
  10843. if (b === null || typeof b !== "object") b = {};
  10844. for (k in b) {
  10845. if (k in a) {
  10846. i[k] = Object(_value_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a[k], b[k]);
  10847. } else {
  10848. c[k] = b[k];
  10849. }
  10850. }
  10851. return function(t) {
  10852. for (k in i) c[k] = i[k](t);
  10853. return c;
  10854. };
  10855. });
  10856. /***/ }),
  10857. /***/ "./node_modules/d3-interpolate/src/piecewise.js":
  10858. /*!******************************************************!*\
  10859. !*** ./node_modules/d3-interpolate/src/piecewise.js ***!
  10860. \******************************************************/
  10861. /*! exports provided: default */
  10862. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10863. "use strict";
  10864. __webpack_require__.r(__webpack_exports__);
  10865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return piecewise; });
  10866. function piecewise(interpolate, values) {
  10867. var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);
  10868. while (i < n) I[i] = interpolate(v, v = values[++i]);
  10869. return function(t) {
  10870. var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));
  10871. return I[i](t - i);
  10872. };
  10873. }
  10874. /***/ }),
  10875. /***/ "./node_modules/d3-interpolate/src/quantize.js":
  10876. /*!*****************************************************!*\
  10877. !*** ./node_modules/d3-interpolate/src/quantize.js ***!
  10878. \*****************************************************/
  10879. /*! exports provided: default */
  10880. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10881. "use strict";
  10882. __webpack_require__.r(__webpack_exports__);
  10883. /* harmony default export */ __webpack_exports__["default"] = (function(interpolator, n) {
  10884. var samples = new Array(n);
  10885. for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));
  10886. return samples;
  10887. });
  10888. /***/ }),
  10889. /***/ "./node_modules/d3-interpolate/src/rgb.js":
  10890. /*!************************************************!*\
  10891. !*** ./node_modules/d3-interpolate/src/rgb.js ***!
  10892. \************************************************/
  10893. /*! exports provided: default, rgbBasis, rgbBasisClosed */
  10894. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10895. "use strict";
  10896. __webpack_require__.r(__webpack_exports__);
  10897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbBasis", function() { return rgbBasis; });
  10898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbBasisClosed", function() { return rgbBasisClosed; });
  10899. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  10900. /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basis.js */ "./node_modules/d3-interpolate/src/basis.js");
  10901. /* harmony import */ var _basisClosed_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./basisClosed.js */ "./node_modules/d3-interpolate/src/basisClosed.js");
  10902. /* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-interpolate/src/color.js");
  10903. /* harmony default export */ __webpack_exports__["default"] = ((function rgbGamma(y) {
  10904. var color = Object(_color_js__WEBPACK_IMPORTED_MODULE_3__["gamma"])(y);
  10905. function rgb(start, end) {
  10906. 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),
  10907. g = color(start.g, end.g),
  10908. b = color(start.b, end.b),
  10909. opacity = Object(_color_js__WEBPACK_IMPORTED_MODULE_3__["default"])(start.opacity, end.opacity);
  10910. return function(t) {
  10911. start.r = r(t);
  10912. start.g = g(t);
  10913. start.b = b(t);
  10914. start.opacity = opacity(t);
  10915. return start + "";
  10916. };
  10917. }
  10918. rgb.gamma = rgbGamma;
  10919. return rgb;
  10920. })(1));
  10921. function rgbSpline(spline) {
  10922. return function(colors) {
  10923. var n = colors.length,
  10924. r = new Array(n),
  10925. g = new Array(n),
  10926. b = new Array(n),
  10927. i, color;
  10928. for (i = 0; i < n; ++i) {
  10929. color = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(colors[i]);
  10930. r[i] = color.r || 0;
  10931. g[i] = color.g || 0;
  10932. b[i] = color.b || 0;
  10933. }
  10934. r = spline(r);
  10935. g = spline(g);
  10936. b = spline(b);
  10937. color.opacity = 1;
  10938. return function(t) {
  10939. color.r = r(t);
  10940. color.g = g(t);
  10941. color.b = b(t);
  10942. return color + "";
  10943. };
  10944. };
  10945. }
  10946. var rgbBasis = rgbSpline(_basis_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
  10947. var rgbBasisClosed = rgbSpline(_basisClosed_js__WEBPACK_IMPORTED_MODULE_2__["default"]);
  10948. /***/ }),
  10949. /***/ "./node_modules/d3-interpolate/src/round.js":
  10950. /*!**************************************************!*\
  10951. !*** ./node_modules/d3-interpolate/src/round.js ***!
  10952. \**************************************************/
  10953. /*! exports provided: default */
  10954. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10955. "use strict";
  10956. __webpack_require__.r(__webpack_exports__);
  10957. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10958. return a = +a, b = +b, function(t) {
  10959. return Math.round(a * (1 - t) + b * t);
  10960. };
  10961. });
  10962. /***/ }),
  10963. /***/ "./node_modules/d3-interpolate/src/string.js":
  10964. /*!***************************************************!*\
  10965. !*** ./node_modules/d3-interpolate/src/string.js ***!
  10966. \***************************************************/
  10967. /*! exports provided: default */
  10968. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10969. "use strict";
  10970. __webpack_require__.r(__webpack_exports__);
  10971. /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number.js */ "./node_modules/d3-interpolate/src/number.js");
  10972. var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
  10973. reB = new RegExp(reA.source, "g");
  10974. function zero(b) {
  10975. return function() {
  10976. return b;
  10977. };
  10978. }
  10979. function one(b) {
  10980. return function(t) {
  10981. return b(t) + "";
  10982. };
  10983. }
  10984. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  10985. var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b
  10986. am, // current match in a
  10987. bm, // current match in b
  10988. bs, // string preceding current number in b, if any
  10989. i = -1, // index in s
  10990. s = [], // string constants and placeholders
  10991. q = []; // number interpolators
  10992. // Coerce inputs to strings.
  10993. a = a + "", b = b + "";
  10994. // Interpolate pairs of numbers in a & b.
  10995. while ((am = reA.exec(a))
  10996. && (bm = reB.exec(b))) {
  10997. if ((bs = bm.index) > bi) { // a string precedes the next number in b
  10998. bs = b.slice(bi, bs);
  10999. if (s[i]) s[i] += bs; // coalesce with previous string
  11000. else s[++i] = bs;
  11001. }
  11002. if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match
  11003. if (s[i]) s[i] += bm; // coalesce with previous string
  11004. else s[++i] = bm;
  11005. } else { // interpolate non-matching numbers
  11006. s[++i] = null;
  11007. q.push({i: i, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(am, bm)});
  11008. }
  11009. bi = reB.lastIndex;
  11010. }
  11011. // Add remains of b.
  11012. if (bi < b.length) {
  11013. bs = b.slice(bi);
  11014. if (s[i]) s[i] += bs; // coalesce with previous string
  11015. else s[++i] = bs;
  11016. }
  11017. // Special optimization for only a single match.
  11018. // Otherwise, interpolate each of the numbers and rejoin the string.
  11019. return s.length < 2 ? (q[0]
  11020. ? one(q[0].x)
  11021. : zero(b))
  11022. : (b = q.length, function(t) {
  11023. for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
  11024. return s.join("");
  11025. });
  11026. });
  11027. /***/ }),
  11028. /***/ "./node_modules/d3-interpolate/src/transform/decompose.js":
  11029. /*!****************************************************************!*\
  11030. !*** ./node_modules/d3-interpolate/src/transform/decompose.js ***!
  11031. \****************************************************************/
  11032. /*! exports provided: identity, default */
  11033. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11034. "use strict";
  11035. __webpack_require__.r(__webpack_exports__);
  11036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; });
  11037. var degrees = 180 / Math.PI;
  11038. var identity = {
  11039. translateX: 0,
  11040. translateY: 0,
  11041. rotate: 0,
  11042. skewX: 0,
  11043. scaleX: 1,
  11044. scaleY: 1
  11045. };
  11046. /* harmony default export */ __webpack_exports__["default"] = (function(a, b, c, d, e, f) {
  11047. var scaleX, scaleY, skewX;
  11048. if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;
  11049. if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;
  11050. if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;
  11051. if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;
  11052. return {
  11053. translateX: e,
  11054. translateY: f,
  11055. rotate: Math.atan2(b, a) * degrees,
  11056. skewX: Math.atan(skewX) * degrees,
  11057. scaleX: scaleX,
  11058. scaleY: scaleY
  11059. };
  11060. });
  11061. /***/ }),
  11062. /***/ "./node_modules/d3-interpolate/src/transform/index.js":
  11063. /*!************************************************************!*\
  11064. !*** ./node_modules/d3-interpolate/src/transform/index.js ***!
  11065. \************************************************************/
  11066. /*! exports provided: interpolateTransformCss, interpolateTransformSvg */
  11067. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11068. "use strict";
  11069. __webpack_require__.r(__webpack_exports__);
  11070. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformCss", function() { return interpolateTransformCss; });
  11071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformSvg", function() { return interpolateTransformSvg; });
  11072. /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../number.js */ "./node_modules/d3-interpolate/src/number.js");
  11073. /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse.js */ "./node_modules/d3-interpolate/src/transform/parse.js");
  11074. function interpolateTransform(parse, pxComma, pxParen, degParen) {
  11075. function pop(s) {
  11076. return s.length ? s.pop() + " " : "";
  11077. }
  11078. function translate(xa, ya, xb, yb, s, q) {
  11079. if (xa !== xb || ya !== yb) {
  11080. var i = s.push("translate(", null, pxComma, null, pxParen);
  11081. q.push({i: i - 4, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(xa, xb)}, {i: i - 2, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ya, yb)});
  11082. } else if (xb || yb) {
  11083. s.push("translate(" + xb + pxComma + yb + pxParen);
  11084. }
  11085. }
  11086. function rotate(a, b, s, q) {
  11087. if (a !== b) {
  11088. if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path
  11089. q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a, b)});
  11090. } else if (b) {
  11091. s.push(pop(s) + "rotate(" + b + degParen);
  11092. }
  11093. }
  11094. function skewX(a, b, s, q) {
  11095. if (a !== b) {
  11096. q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a, b)});
  11097. } else if (b) {
  11098. s.push(pop(s) + "skewX(" + b + degParen);
  11099. }
  11100. }
  11101. function scale(xa, ya, xb, yb, s, q) {
  11102. if (xa !== xb || ya !== yb) {
  11103. var i = s.push(pop(s) + "scale(", null, ",", null, ")");
  11104. q.push({i: i - 4, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(xa, xb)}, {i: i - 2, x: Object(_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ya, yb)});
  11105. } else if (xb !== 1 || yb !== 1) {
  11106. s.push(pop(s) + "scale(" + xb + "," + yb + ")");
  11107. }
  11108. }
  11109. return function(a, b) {
  11110. var s = [], // string constants and placeholders
  11111. q = []; // number interpolators
  11112. a = parse(a), b = parse(b);
  11113. translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);
  11114. rotate(a.rotate, b.rotate, s, q);
  11115. skewX(a.skewX, b.skewX, s, q);
  11116. scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);
  11117. a = b = null; // gc
  11118. return function(t) {
  11119. var i = -1, n = q.length, o;
  11120. while (++i < n) s[(o = q[i]).i] = o.x(t);
  11121. return s.join("");
  11122. };
  11123. };
  11124. }
  11125. var interpolateTransformCss = interpolateTransform(_parse_js__WEBPACK_IMPORTED_MODULE_1__["parseCss"], "px, ", "px)", "deg)");
  11126. var interpolateTransformSvg = interpolateTransform(_parse_js__WEBPACK_IMPORTED_MODULE_1__["parseSvg"], ", ", ")", ")");
  11127. /***/ }),
  11128. /***/ "./node_modules/d3-interpolate/src/transform/parse.js":
  11129. /*!************************************************************!*\
  11130. !*** ./node_modules/d3-interpolate/src/transform/parse.js ***!
  11131. \************************************************************/
  11132. /*! exports provided: parseCss, parseSvg */
  11133. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11134. "use strict";
  11135. __webpack_require__.r(__webpack_exports__);
  11136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCss", function() { return parseCss; });
  11137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseSvg", function() { return parseSvg; });
  11138. /* harmony import */ var _decompose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./decompose.js */ "./node_modules/d3-interpolate/src/transform/decompose.js");
  11139. var cssNode,
  11140. cssRoot,
  11141. cssView,
  11142. svgNode;
  11143. function parseCss(value) {
  11144. if (value === "none") return _decompose_js__WEBPACK_IMPORTED_MODULE_0__["identity"];
  11145. if (!cssNode) cssNode = document.createElement("DIV"), cssRoot = document.documentElement, cssView = document.defaultView;
  11146. cssNode.style.transform = value;
  11147. value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue("transform");
  11148. cssRoot.removeChild(cssNode);
  11149. value = value.slice(7, -1).split(",");
  11150. return Object(_decompose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]);
  11151. }
  11152. function parseSvg(value) {
  11153. if (value == null) return _decompose_js__WEBPACK_IMPORTED_MODULE_0__["identity"];
  11154. if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g");
  11155. svgNode.setAttribute("transform", value);
  11156. if (!(value = svgNode.transform.baseVal.consolidate())) return _decompose_js__WEBPACK_IMPORTED_MODULE_0__["identity"];
  11157. value = value.matrix;
  11158. return Object(_decompose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value.a, value.b, value.c, value.d, value.e, value.f);
  11159. }
  11160. /***/ }),
  11161. /***/ "./node_modules/d3-interpolate/src/value.js":
  11162. /*!**************************************************!*\
  11163. !*** ./node_modules/d3-interpolate/src/value.js ***!
  11164. \**************************************************/
  11165. /*! exports provided: default */
  11166. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11167. "use strict";
  11168. __webpack_require__.r(__webpack_exports__);
  11169. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  11170. /* harmony import */ var _rgb_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rgb.js */ "./node_modules/d3-interpolate/src/rgb.js");
  11171. /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./array.js */ "./node_modules/d3-interpolate/src/array.js");
  11172. /* harmony import */ var _date_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./date.js */ "./node_modules/d3-interpolate/src/date.js");
  11173. /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./number.js */ "./node_modules/d3-interpolate/src/number.js");
  11174. /* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./object.js */ "./node_modules/d3-interpolate/src/object.js");
  11175. /* harmony import */ var _string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./string.js */ "./node_modules/d3-interpolate/src/string.js");
  11176. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-interpolate/src/constant.js");
  11177. /* harmony import */ var _numberArray_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./numberArray.js */ "./node_modules/d3-interpolate/src/numberArray.js");
  11178. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  11179. var t = typeof b, c;
  11180. return b == null || t === "boolean" ? Object(_constant_js__WEBPACK_IMPORTED_MODULE_7__["default"])(b)
  11181. : (t === "number" ? _number_js__WEBPACK_IMPORTED_MODULE_4__["default"]
  11182. : t === "string" ? ((c = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["color"])(b)) ? (b = c, _rgb_js__WEBPACK_IMPORTED_MODULE_1__["default"]) : _string_js__WEBPACK_IMPORTED_MODULE_6__["default"])
  11183. : b instanceof d3_color__WEBPACK_IMPORTED_MODULE_0__["color"] ? _rgb_js__WEBPACK_IMPORTED_MODULE_1__["default"]
  11184. : b instanceof Date ? _date_js__WEBPACK_IMPORTED_MODULE_3__["default"]
  11185. : Object(_numberArray_js__WEBPACK_IMPORTED_MODULE_8__["isNumberArray"])(b) ? _numberArray_js__WEBPACK_IMPORTED_MODULE_8__["default"]
  11186. : Array.isArray(b) ? _array_js__WEBPACK_IMPORTED_MODULE_2__["genericArray"]
  11187. : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? _object_js__WEBPACK_IMPORTED_MODULE_5__["default"]
  11188. : _number_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a, b);
  11189. });
  11190. /***/ }),
  11191. /***/ "./node_modules/d3-interpolate/src/zoom.js":
  11192. /*!*************************************************!*\
  11193. !*** ./node_modules/d3-interpolate/src/zoom.js ***!
  11194. \*************************************************/
  11195. /*! exports provided: default */
  11196. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11197. "use strict";
  11198. __webpack_require__.r(__webpack_exports__);
  11199. var rho = Math.SQRT2,
  11200. rho2 = 2,
  11201. rho4 = 4,
  11202. epsilon2 = 1e-12;
  11203. function cosh(x) {
  11204. return ((x = Math.exp(x)) + 1 / x) / 2;
  11205. }
  11206. function sinh(x) {
  11207. return ((x = Math.exp(x)) - 1 / x) / 2;
  11208. }
  11209. function tanh(x) {
  11210. return ((x = Math.exp(2 * x)) - 1) / (x + 1);
  11211. }
  11212. // p0 = [ux0, uy0, w0]
  11213. // p1 = [ux1, uy1, w1]
  11214. /* harmony default export */ __webpack_exports__["default"] = (function(p0, p1) {
  11215. var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],
  11216. ux1 = p1[0], uy1 = p1[1], w1 = p1[2],
  11217. dx = ux1 - ux0,
  11218. dy = uy1 - uy0,
  11219. d2 = dx * dx + dy * dy,
  11220. i,
  11221. S;
  11222. // Special case for u0 ≅ u1.
  11223. if (d2 < epsilon2) {
  11224. S = Math.log(w1 / w0) / rho;
  11225. i = function(t) {
  11226. return [
  11227. ux0 + t * dx,
  11228. uy0 + t * dy,
  11229. w0 * Math.exp(rho * t * S)
  11230. ];
  11231. }
  11232. }
  11233. // General case.
  11234. else {
  11235. var d1 = Math.sqrt(d2),
  11236. b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),
  11237. b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),
  11238. r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),
  11239. r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);
  11240. S = (r1 - r0) / rho;
  11241. i = function(t) {
  11242. var s = t * S,
  11243. coshr0 = cosh(r0),
  11244. u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));
  11245. return [
  11246. ux0 + u * dx,
  11247. uy0 + u * dy,
  11248. w0 * coshr0 / cosh(rho * s + r0)
  11249. ];
  11250. }
  11251. }
  11252. i.duration = S * 1000;
  11253. return i;
  11254. });
  11255. /***/ }),
  11256. /***/ "./node_modules/d3-path/src/index.js":
  11257. /*!*******************************************!*\
  11258. !*** ./node_modules/d3-path/src/index.js ***!
  11259. \*******************************************/
  11260. /*! exports provided: path */
  11261. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11262. "use strict";
  11263. __webpack_require__.r(__webpack_exports__);
  11264. /* harmony import */ var _path_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./path.js */ "./node_modules/d3-path/src/path.js");
  11265. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "path", function() { return _path_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  11266. /***/ }),
  11267. /***/ "./node_modules/d3-path/src/path.js":
  11268. /*!******************************************!*\
  11269. !*** ./node_modules/d3-path/src/path.js ***!
  11270. \******************************************/
  11271. /*! exports provided: default */
  11272. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11273. "use strict";
  11274. __webpack_require__.r(__webpack_exports__);
  11275. var pi = Math.PI,
  11276. tau = 2 * pi,
  11277. epsilon = 1e-6,
  11278. tauEpsilon = tau - epsilon;
  11279. function Path() {
  11280. this._x0 = this._y0 = // start of current subpath
  11281. this._x1 = this._y1 = null; // end of current subpath
  11282. this._ = "";
  11283. }
  11284. function path() {
  11285. return new Path;
  11286. }
  11287. Path.prototype = path.prototype = {
  11288. constructor: Path,
  11289. moveTo: function(x, y) {
  11290. this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y);
  11291. },
  11292. closePath: function() {
  11293. if (this._x1 !== null) {
  11294. this._x1 = this._x0, this._y1 = this._y0;
  11295. this._ += "Z";
  11296. }
  11297. },
  11298. lineTo: function(x, y) {
  11299. this._ += "L" + (this._x1 = +x) + "," + (this._y1 = +y);
  11300. },
  11301. quadraticCurveTo: function(x1, y1, x, y) {
  11302. this._ += "Q" + (+x1) + "," + (+y1) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
  11303. },
  11304. bezierCurveTo: function(x1, y1, x2, y2, x, y) {
  11305. this._ += "C" + (+x1) + "," + (+y1) + "," + (+x2) + "," + (+y2) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
  11306. },
  11307. arcTo: function(x1, y1, x2, y2, r) {
  11308. x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;
  11309. var x0 = this._x1,
  11310. y0 = this._y1,
  11311. x21 = x2 - x1,
  11312. y21 = y2 - y1,
  11313. x01 = x0 - x1,
  11314. y01 = y0 - y1,
  11315. l01_2 = x01 * x01 + y01 * y01;
  11316. // Is the radius negative? Error.
  11317. if (r < 0) throw new Error("negative radius: " + r);
  11318. // Is this path empty? Move to (x1,y1).
  11319. if (this._x1 === null) {
  11320. this._ += "M" + (this._x1 = x1) + "," + (this._y1 = y1);
  11321. }
  11322. // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.
  11323. else if (!(l01_2 > epsilon));
  11324. // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?
  11325. // Equivalently, is (x1,y1) coincident with (x2,y2)?
  11326. // Or, is the radius zero? Line to (x1,y1).
  11327. else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {
  11328. this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1);
  11329. }
  11330. // Otherwise, draw an arc!
  11331. else {
  11332. var x20 = x2 - x0,
  11333. y20 = y2 - y0,
  11334. l21_2 = x21 * x21 + y21 * y21,
  11335. l20_2 = x20 * x20 + y20 * y20,
  11336. l21 = Math.sqrt(l21_2),
  11337. l01 = Math.sqrt(l01_2),
  11338. l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),
  11339. t01 = l / l01,
  11340. t21 = l / l21;
  11341. // If the start tangent is not coincident with (x0,y0), line to.
  11342. if (Math.abs(t01 - 1) > epsilon) {
  11343. this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01);
  11344. }
  11345. this._ += "A" + r + "," + r + ",0,0," + (+(y01 * x20 > x01 * y20)) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21);
  11346. }
  11347. },
  11348. arc: function(x, y, r, a0, a1, ccw) {
  11349. x = +x, y = +y, r = +r, ccw = !!ccw;
  11350. var dx = r * Math.cos(a0),
  11351. dy = r * Math.sin(a0),
  11352. x0 = x + dx,
  11353. y0 = y + dy,
  11354. cw = 1 ^ ccw,
  11355. da = ccw ? a0 - a1 : a1 - a0;
  11356. // Is the radius negative? Error.
  11357. if (r < 0) throw new Error("negative radius: " + r);
  11358. // Is this path empty? Move to (x0,y0).
  11359. if (this._x1 === null) {
  11360. this._ += "M" + x0 + "," + y0;
  11361. }
  11362. // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).
  11363. else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {
  11364. this._ += "L" + x0 + "," + y0;
  11365. }
  11366. // Is this arc empty? We’re done.
  11367. if (!r) return;
  11368. // Does the angle go the wrong way? Flip the direction.
  11369. if (da < 0) da = da % tau + tau;
  11370. // Is this a complete circle? Draw two arcs to complete the circle.
  11371. if (da > tauEpsilon) {
  11372. this._ += "A" + r + "," + r + ",0,1," + cw + "," + (x - dx) + "," + (y - dy) + "A" + r + "," + r + ",0,1," + cw + "," + (this._x1 = x0) + "," + (this._y1 = y0);
  11373. }
  11374. // Is this arc non-empty? Draw an arc!
  11375. else if (da > epsilon) {
  11376. this._ += "A" + r + "," + r + ",0," + (+(da >= pi)) + "," + cw + "," + (this._x1 = x + r * Math.cos(a1)) + "," + (this._y1 = y + r * Math.sin(a1));
  11377. }
  11378. },
  11379. rect: function(x, y, w, h) {
  11380. this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y) + "h" + (+w) + "v" + (+h) + "h" + (-w) + "Z";
  11381. },
  11382. toString: function() {
  11383. return this._;
  11384. }
  11385. };
  11386. /* harmony default export */ __webpack_exports__["default"] = (path);
  11387. /***/ }),
  11388. /***/ "./node_modules/d3-polygon/src/area.js":
  11389. /*!*********************************************!*\
  11390. !*** ./node_modules/d3-polygon/src/area.js ***!
  11391. \*********************************************/
  11392. /*! exports provided: default */
  11393. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11394. "use strict";
  11395. __webpack_require__.r(__webpack_exports__);
  11396. /* harmony default export */ __webpack_exports__["default"] = (function(polygon) {
  11397. var i = -1,
  11398. n = polygon.length,
  11399. a,
  11400. b = polygon[n - 1],
  11401. area = 0;
  11402. while (++i < n) {
  11403. a = b;
  11404. b = polygon[i];
  11405. area += a[1] * b[0] - a[0] * b[1];
  11406. }
  11407. return area / 2;
  11408. });
  11409. /***/ }),
  11410. /***/ "./node_modules/d3-polygon/src/centroid.js":
  11411. /*!*************************************************!*\
  11412. !*** ./node_modules/d3-polygon/src/centroid.js ***!
  11413. \*************************************************/
  11414. /*! exports provided: default */
  11415. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11416. "use strict";
  11417. __webpack_require__.r(__webpack_exports__);
  11418. /* harmony default export */ __webpack_exports__["default"] = (function(polygon) {
  11419. var i = -1,
  11420. n = polygon.length,
  11421. x = 0,
  11422. y = 0,
  11423. a,
  11424. b = polygon[n - 1],
  11425. c,
  11426. k = 0;
  11427. while (++i < n) {
  11428. a = b;
  11429. b = polygon[i];
  11430. k += c = a[0] * b[1] - b[0] * a[1];
  11431. x += (a[0] + b[0]) * c;
  11432. y += (a[1] + b[1]) * c;
  11433. }
  11434. return k *= 3, [x / k, y / k];
  11435. });
  11436. /***/ }),
  11437. /***/ "./node_modules/d3-polygon/src/contains.js":
  11438. /*!*************************************************!*\
  11439. !*** ./node_modules/d3-polygon/src/contains.js ***!
  11440. \*************************************************/
  11441. /*! exports provided: default */
  11442. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11443. "use strict";
  11444. __webpack_require__.r(__webpack_exports__);
  11445. /* harmony default export */ __webpack_exports__["default"] = (function(polygon, point) {
  11446. var n = polygon.length,
  11447. p = polygon[n - 1],
  11448. x = point[0], y = point[1],
  11449. x0 = p[0], y0 = p[1],
  11450. x1, y1,
  11451. inside = false;
  11452. for (var i = 0; i < n; ++i) {
  11453. p = polygon[i], x1 = p[0], y1 = p[1];
  11454. if (((y1 > y) !== (y0 > y)) && (x < (x0 - x1) * (y - y1) / (y0 - y1) + x1)) inside = !inside;
  11455. x0 = x1, y0 = y1;
  11456. }
  11457. return inside;
  11458. });
  11459. /***/ }),
  11460. /***/ "./node_modules/d3-polygon/src/cross.js":
  11461. /*!**********************************************!*\
  11462. !*** ./node_modules/d3-polygon/src/cross.js ***!
  11463. \**********************************************/
  11464. /*! exports provided: default */
  11465. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11466. "use strict";
  11467. __webpack_require__.r(__webpack_exports__);
  11468. // Returns the 2D cross product of AB and AC vectors, i.e., the z-component of
  11469. // the 3D cross product in a quadrant I Cartesian coordinate system (+x is
  11470. // right, +y is up). Returns a positive value if ABC is counter-clockwise,
  11471. // negative if clockwise, and zero if the points are collinear.
  11472. /* harmony default export */ __webpack_exports__["default"] = (function(a, b, c) {
  11473. return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);
  11474. });
  11475. /***/ }),
  11476. /***/ "./node_modules/d3-polygon/src/hull.js":
  11477. /*!*********************************************!*\
  11478. !*** ./node_modules/d3-polygon/src/hull.js ***!
  11479. \*********************************************/
  11480. /*! exports provided: default */
  11481. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11482. "use strict";
  11483. __webpack_require__.r(__webpack_exports__);
  11484. /* harmony import */ var _cross_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cross.js */ "./node_modules/d3-polygon/src/cross.js");
  11485. function lexicographicOrder(a, b) {
  11486. return a[0] - b[0] || a[1] - b[1];
  11487. }
  11488. // Computes the upper convex hull per the monotone chain algorithm.
  11489. // Assumes points.length >= 3, is sorted by x, unique in y.
  11490. // Returns an array of indices into points in left-to-right order.
  11491. function computeUpperHullIndexes(points) {
  11492. var n = points.length,
  11493. indexes = [0, 1],
  11494. size = 2;
  11495. for (var i = 2; i < n; ++i) {
  11496. while (size > 1 && Object(_cross_js__WEBPACK_IMPORTED_MODULE_0__["default"])(points[indexes[size - 2]], points[indexes[size - 1]], points[i]) <= 0) --size;
  11497. indexes[size++] = i;
  11498. }
  11499. return indexes.slice(0, size); // remove popped points
  11500. }
  11501. /* harmony default export */ __webpack_exports__["default"] = (function(points) {
  11502. if ((n = points.length) < 3) return null;
  11503. var i,
  11504. n,
  11505. sortedPoints = new Array(n),
  11506. flippedPoints = new Array(n);
  11507. for (i = 0; i < n; ++i) sortedPoints[i] = [+points[i][0], +points[i][1], i];
  11508. sortedPoints.sort(lexicographicOrder);
  11509. for (i = 0; i < n; ++i) flippedPoints[i] = [sortedPoints[i][0], -sortedPoints[i][1]];
  11510. var upperIndexes = computeUpperHullIndexes(sortedPoints),
  11511. lowerIndexes = computeUpperHullIndexes(flippedPoints);
  11512. // Construct the hull polygon, removing possible duplicate endpoints.
  11513. var skipLeft = lowerIndexes[0] === upperIndexes[0],
  11514. skipRight = lowerIndexes[lowerIndexes.length - 1] === upperIndexes[upperIndexes.length - 1],
  11515. hull = [];
  11516. // Add upper hull in right-to-l order.
  11517. // Then add lower hull in left-to-right order.
  11518. for (i = upperIndexes.length - 1; i >= 0; --i) hull.push(points[sortedPoints[upperIndexes[i]][2]]);
  11519. for (i = +skipLeft; i < lowerIndexes.length - skipRight; ++i) hull.push(points[sortedPoints[lowerIndexes[i]][2]]);
  11520. return hull;
  11521. });
  11522. /***/ }),
  11523. /***/ "./node_modules/d3-polygon/src/index.js":
  11524. /*!**********************************************!*\
  11525. !*** ./node_modules/d3-polygon/src/index.js ***!
  11526. \**********************************************/
  11527. /*! exports provided: polygonArea, polygonCentroid, polygonHull, polygonContains, polygonLength */
  11528. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11529. "use strict";
  11530. __webpack_require__.r(__webpack_exports__);
  11531. /* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./area.js */ "./node_modules/d3-polygon/src/area.js");
  11532. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonArea", function() { return _area_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  11533. /* harmony import */ var _centroid_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./centroid.js */ "./node_modules/d3-polygon/src/centroid.js");
  11534. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonCentroid", function() { return _centroid_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  11535. /* harmony import */ var _hull_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hull.js */ "./node_modules/d3-polygon/src/hull.js");
  11536. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonHull", function() { return _hull_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  11537. /* harmony import */ var _contains_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./contains.js */ "./node_modules/d3-polygon/src/contains.js");
  11538. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonContains", function() { return _contains_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  11539. /* harmony import */ var _length_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./length.js */ "./node_modules/d3-polygon/src/length.js");
  11540. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonLength", function() { return _length_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  11541. /***/ }),
  11542. /***/ "./node_modules/d3-polygon/src/length.js":
  11543. /*!***********************************************!*\
  11544. !*** ./node_modules/d3-polygon/src/length.js ***!
  11545. \***********************************************/
  11546. /*! exports provided: default */
  11547. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11548. "use strict";
  11549. __webpack_require__.r(__webpack_exports__);
  11550. /* harmony default export */ __webpack_exports__["default"] = (function(polygon) {
  11551. var i = -1,
  11552. n = polygon.length,
  11553. b = polygon[n - 1],
  11554. xa,
  11555. ya,
  11556. xb = b[0],
  11557. yb = b[1],
  11558. perimeter = 0;
  11559. while (++i < n) {
  11560. xa = xb;
  11561. ya = yb;
  11562. b = polygon[i];
  11563. xb = b[0];
  11564. yb = b[1];
  11565. xa -= xb;
  11566. ya -= yb;
  11567. perimeter += Math.sqrt(xa * xa + ya * ya);
  11568. }
  11569. return perimeter;
  11570. });
  11571. /***/ }),
  11572. /***/ "./node_modules/d3-quadtree/src/add.js":
  11573. /*!*********************************************!*\
  11574. !*** ./node_modules/d3-quadtree/src/add.js ***!
  11575. \*********************************************/
  11576. /*! exports provided: default, addAll */
  11577. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11578. "use strict";
  11579. __webpack_require__.r(__webpack_exports__);
  11580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addAll", function() { return addAll; });
  11581. /* harmony default export */ __webpack_exports__["default"] = (function(d) {
  11582. var x = +this._x.call(null, d),
  11583. y = +this._y.call(null, d);
  11584. return add(this.cover(x, y), x, y, d);
  11585. });
  11586. function add(tree, x, y, d) {
  11587. if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points
  11588. var parent,
  11589. node = tree._root,
  11590. leaf = {data: d},
  11591. x0 = tree._x0,
  11592. y0 = tree._y0,
  11593. x1 = tree._x1,
  11594. y1 = tree._y1,
  11595. xm,
  11596. ym,
  11597. xp,
  11598. yp,
  11599. right,
  11600. bottom,
  11601. i,
  11602. j;
  11603. // If the tree is empty, initialize the root as a leaf.
  11604. if (!node) return tree._root = leaf, tree;
  11605. // Find the existing leaf for the new point, or add it.
  11606. while (node.length) {
  11607. if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;
  11608. if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;
  11609. if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree;
  11610. }
  11611. // Is the new point is exactly coincident with the existing point?
  11612. xp = +tree._x.call(null, node.data);
  11613. yp = +tree._y.call(null, node.data);
  11614. if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree;
  11615. // Otherwise, split the leaf node until the old and new point are separated.
  11616. do {
  11617. parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4);
  11618. if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;
  11619. if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;
  11620. } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm)));
  11621. return parent[j] = node, parent[i] = leaf, tree;
  11622. }
  11623. function addAll(data) {
  11624. var d, i, n = data.length,
  11625. x,
  11626. y,
  11627. xz = new Array(n),
  11628. yz = new Array(n),
  11629. x0 = Infinity,
  11630. y0 = Infinity,
  11631. x1 = -Infinity,
  11632. y1 = -Infinity;
  11633. // Compute the points and their extent.
  11634. for (i = 0; i < n; ++i) {
  11635. if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue;
  11636. xz[i] = x;
  11637. yz[i] = y;
  11638. if (x < x0) x0 = x;
  11639. if (x > x1) x1 = x;
  11640. if (y < y0) y0 = y;
  11641. if (y > y1) y1 = y;
  11642. }
  11643. // If there were no (valid) points, abort.
  11644. if (x0 > x1 || y0 > y1) return this;
  11645. // Expand the tree to cover the new points.
  11646. this.cover(x0, y0).cover(x1, y1);
  11647. // Add the new points.
  11648. for (i = 0; i < n; ++i) {
  11649. add(this, xz[i], yz[i], data[i]);
  11650. }
  11651. return this;
  11652. }
  11653. /***/ }),
  11654. /***/ "./node_modules/d3-quadtree/src/cover.js":
  11655. /*!***********************************************!*\
  11656. !*** ./node_modules/d3-quadtree/src/cover.js ***!
  11657. \***********************************************/
  11658. /*! exports provided: default */
  11659. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11660. "use strict";
  11661. __webpack_require__.r(__webpack_exports__);
  11662. /* harmony default export */ __webpack_exports__["default"] = (function(x, y) {
  11663. if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points
  11664. var x0 = this._x0,
  11665. y0 = this._y0,
  11666. x1 = this._x1,
  11667. y1 = this._y1;
  11668. // If the quadtree has no extent, initialize them.
  11669. // Integer extent are necessary so that if we later double the extent,
  11670. // the existing quadrant boundaries don’t change due to floating point error!
  11671. if (isNaN(x0)) {
  11672. x1 = (x0 = Math.floor(x)) + 1;
  11673. y1 = (y0 = Math.floor(y)) + 1;
  11674. }
  11675. // Otherwise, double repeatedly to cover.
  11676. else {
  11677. var z = x1 - x0,
  11678. node = this._root,
  11679. parent,
  11680. i;
  11681. while (x0 > x || x >= x1 || y0 > y || y >= y1) {
  11682. i = (y < y0) << 1 | (x < x0);
  11683. parent = new Array(4), parent[i] = node, node = parent, z *= 2;
  11684. switch (i) {
  11685. case 0: x1 = x0 + z, y1 = y0 + z; break;
  11686. case 1: x0 = x1 - z, y1 = y0 + z; break;
  11687. case 2: x1 = x0 + z, y0 = y1 - z; break;
  11688. case 3: x0 = x1 - z, y0 = y1 - z; break;
  11689. }
  11690. }
  11691. if (this._root && this._root.length) this._root = node;
  11692. }
  11693. this._x0 = x0;
  11694. this._y0 = y0;
  11695. this._x1 = x1;
  11696. this._y1 = y1;
  11697. return this;
  11698. });
  11699. /***/ }),
  11700. /***/ "./node_modules/d3-quadtree/src/data.js":
  11701. /*!**********************************************!*\
  11702. !*** ./node_modules/d3-quadtree/src/data.js ***!
  11703. \**********************************************/
  11704. /*! exports provided: default */
  11705. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11706. "use strict";
  11707. __webpack_require__.r(__webpack_exports__);
  11708. /* harmony default export */ __webpack_exports__["default"] = (function() {
  11709. var data = [];
  11710. this.visit(function(node) {
  11711. if (!node.length) do data.push(node.data); while (node = node.next)
  11712. });
  11713. return data;
  11714. });
  11715. /***/ }),
  11716. /***/ "./node_modules/d3-quadtree/src/extent.js":
  11717. /*!************************************************!*\
  11718. !*** ./node_modules/d3-quadtree/src/extent.js ***!
  11719. \************************************************/
  11720. /*! exports provided: default */
  11721. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11722. "use strict";
  11723. __webpack_require__.r(__webpack_exports__);
  11724. /* harmony default export */ __webpack_exports__["default"] = (function(_) {
  11725. return arguments.length
  11726. ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1])
  11727. : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]];
  11728. });
  11729. /***/ }),
  11730. /***/ "./node_modules/d3-quadtree/src/find.js":
  11731. /*!**********************************************!*\
  11732. !*** ./node_modules/d3-quadtree/src/find.js ***!
  11733. \**********************************************/
  11734. /*! exports provided: default */
  11735. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11736. "use strict";
  11737. __webpack_require__.r(__webpack_exports__);
  11738. /* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quad.js */ "./node_modules/d3-quadtree/src/quad.js");
  11739. /* harmony default export */ __webpack_exports__["default"] = (function(x, y, radius) {
  11740. var data,
  11741. x0 = this._x0,
  11742. y0 = this._y0,
  11743. x1,
  11744. y1,
  11745. x2,
  11746. y2,
  11747. x3 = this._x1,
  11748. y3 = this._y1,
  11749. quads = [],
  11750. node = this._root,
  11751. q,
  11752. i;
  11753. if (node) quads.push(new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](node, x0, y0, x3, y3));
  11754. if (radius == null) radius = Infinity;
  11755. else {
  11756. x0 = x - radius, y0 = y - radius;
  11757. x3 = x + radius, y3 = y + radius;
  11758. radius *= radius;
  11759. }
  11760. while (q = quads.pop()) {
  11761. // Stop searching if this quadrant can’t contain a closer node.
  11762. if (!(node = q.node)
  11763. || (x1 = q.x0) > x3
  11764. || (y1 = q.y0) > y3
  11765. || (x2 = q.x1) < x0
  11766. || (y2 = q.y1) < y0) continue;
  11767. // Bisect the current quadrant.
  11768. if (node.length) {
  11769. var xm = (x1 + x2) / 2,
  11770. ym = (y1 + y2) / 2;
  11771. quads.push(
  11772. new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](node[3], xm, ym, x2, y2),
  11773. new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](node[2], x1, ym, xm, y2),
  11774. new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](node[1], xm, y1, x2, ym),
  11775. new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](node[0], x1, y1, xm, ym)
  11776. );
  11777. // Visit the closest quadrant first.
  11778. if (i = (y >= ym) << 1 | (x >= xm)) {
  11779. q = quads[quads.length - 1];
  11780. quads[quads.length - 1] = quads[quads.length - 1 - i];
  11781. quads[quads.length - 1 - i] = q;
  11782. }
  11783. }
  11784. // Visit this point. (Visiting coincident points isn’t necessary!)
  11785. else {
  11786. var dx = x - +this._x.call(null, node.data),
  11787. dy = y - +this._y.call(null, node.data),
  11788. d2 = dx * dx + dy * dy;
  11789. if (d2 < radius) {
  11790. var d = Math.sqrt(radius = d2);
  11791. x0 = x - d, y0 = y - d;
  11792. x3 = x + d, y3 = y + d;
  11793. data = node.data;
  11794. }
  11795. }
  11796. }
  11797. return data;
  11798. });
  11799. /***/ }),
  11800. /***/ "./node_modules/d3-quadtree/src/index.js":
  11801. /*!***********************************************!*\
  11802. !*** ./node_modules/d3-quadtree/src/index.js ***!
  11803. \***********************************************/
  11804. /*! exports provided: quadtree */
  11805. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11806. "use strict";
  11807. __webpack_require__.r(__webpack_exports__);
  11808. /* harmony import */ var _quadtree_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quadtree.js */ "./node_modules/d3-quadtree/src/quadtree.js");
  11809. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quadtree", function() { return _quadtree_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  11810. /***/ }),
  11811. /***/ "./node_modules/d3-quadtree/src/quad.js":
  11812. /*!**********************************************!*\
  11813. !*** ./node_modules/d3-quadtree/src/quad.js ***!
  11814. \**********************************************/
  11815. /*! exports provided: default */
  11816. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11817. "use strict";
  11818. __webpack_require__.r(__webpack_exports__);
  11819. /* harmony default export */ __webpack_exports__["default"] = (function(node, x0, y0, x1, y1) {
  11820. this.node = node;
  11821. this.x0 = x0;
  11822. this.y0 = y0;
  11823. this.x1 = x1;
  11824. this.y1 = y1;
  11825. });
  11826. /***/ }),
  11827. /***/ "./node_modules/d3-quadtree/src/quadtree.js":
  11828. /*!**************************************************!*\
  11829. !*** ./node_modules/d3-quadtree/src/quadtree.js ***!
  11830. \**************************************************/
  11831. /*! exports provided: default */
  11832. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11833. "use strict";
  11834. __webpack_require__.r(__webpack_exports__);
  11835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quadtree; });
  11836. /* harmony import */ var _add_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add.js */ "./node_modules/d3-quadtree/src/add.js");
  11837. /* harmony import */ var _cover_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cover.js */ "./node_modules/d3-quadtree/src/cover.js");
  11838. /* harmony import */ var _data_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./data.js */ "./node_modules/d3-quadtree/src/data.js");
  11839. /* harmony import */ var _extent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extent.js */ "./node_modules/d3-quadtree/src/extent.js");
  11840. /* harmony import */ var _find_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./find.js */ "./node_modules/d3-quadtree/src/find.js");
  11841. /* harmony import */ var _remove_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./remove.js */ "./node_modules/d3-quadtree/src/remove.js");
  11842. /* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./root.js */ "./node_modules/d3-quadtree/src/root.js");
  11843. /* harmony import */ var _size_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./size.js */ "./node_modules/d3-quadtree/src/size.js");
  11844. /* harmony import */ var _visit_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./visit.js */ "./node_modules/d3-quadtree/src/visit.js");
  11845. /* harmony import */ var _visitAfter_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./visitAfter.js */ "./node_modules/d3-quadtree/src/visitAfter.js");
  11846. /* harmony import */ var _x_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./x.js */ "./node_modules/d3-quadtree/src/x.js");
  11847. /* harmony import */ var _y_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./y.js */ "./node_modules/d3-quadtree/src/y.js");
  11848. function quadtree(nodes, x, y) {
  11849. var tree = new Quadtree(x == null ? _x_js__WEBPACK_IMPORTED_MODULE_10__["defaultX"] : x, y == null ? _y_js__WEBPACK_IMPORTED_MODULE_11__["defaultY"] : y, NaN, NaN, NaN, NaN);
  11850. return nodes == null ? tree : tree.addAll(nodes);
  11851. }
  11852. function Quadtree(x, y, x0, y0, x1, y1) {
  11853. this._x = x;
  11854. this._y = y;
  11855. this._x0 = x0;
  11856. this._y0 = y0;
  11857. this._x1 = x1;
  11858. this._y1 = y1;
  11859. this._root = undefined;
  11860. }
  11861. function leaf_copy(leaf) {
  11862. var copy = {data: leaf.data}, next = copy;
  11863. while (leaf = leaf.next) next = next.next = {data: leaf.data};
  11864. return copy;
  11865. }
  11866. var treeProto = quadtree.prototype = Quadtree.prototype;
  11867. treeProto.copy = function() {
  11868. var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1),
  11869. node = this._root,
  11870. nodes,
  11871. child;
  11872. if (!node) return copy;
  11873. if (!node.length) return copy._root = leaf_copy(node), copy;
  11874. nodes = [{source: node, target: copy._root = new Array(4)}];
  11875. while (node = nodes.pop()) {
  11876. for (var i = 0; i < 4; ++i) {
  11877. if (child = node.source[i]) {
  11878. if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)});
  11879. else node.target[i] = leaf_copy(child);
  11880. }
  11881. }
  11882. }
  11883. return copy;
  11884. };
  11885. treeProto.add = _add_js__WEBPACK_IMPORTED_MODULE_0__["default"];
  11886. treeProto.addAll = _add_js__WEBPACK_IMPORTED_MODULE_0__["addAll"];
  11887. treeProto.cover = _cover_js__WEBPACK_IMPORTED_MODULE_1__["default"];
  11888. treeProto.data = _data_js__WEBPACK_IMPORTED_MODULE_2__["default"];
  11889. treeProto.extent = _extent_js__WEBPACK_IMPORTED_MODULE_3__["default"];
  11890. treeProto.find = _find_js__WEBPACK_IMPORTED_MODULE_4__["default"];
  11891. treeProto.remove = _remove_js__WEBPACK_IMPORTED_MODULE_5__["default"];
  11892. treeProto.removeAll = _remove_js__WEBPACK_IMPORTED_MODULE_5__["removeAll"];
  11893. treeProto.root = _root_js__WEBPACK_IMPORTED_MODULE_6__["default"];
  11894. treeProto.size = _size_js__WEBPACK_IMPORTED_MODULE_7__["default"];
  11895. treeProto.visit = _visit_js__WEBPACK_IMPORTED_MODULE_8__["default"];
  11896. treeProto.visitAfter = _visitAfter_js__WEBPACK_IMPORTED_MODULE_9__["default"];
  11897. treeProto.x = _x_js__WEBPACK_IMPORTED_MODULE_10__["default"];
  11898. treeProto.y = _y_js__WEBPACK_IMPORTED_MODULE_11__["default"];
  11899. /***/ }),
  11900. /***/ "./node_modules/d3-quadtree/src/remove.js":
  11901. /*!************************************************!*\
  11902. !*** ./node_modules/d3-quadtree/src/remove.js ***!
  11903. \************************************************/
  11904. /*! exports provided: default, removeAll */
  11905. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11906. "use strict";
  11907. __webpack_require__.r(__webpack_exports__);
  11908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAll", function() { return removeAll; });
  11909. /* harmony default export */ __webpack_exports__["default"] = (function(d) {
  11910. if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points
  11911. var parent,
  11912. node = this._root,
  11913. retainer,
  11914. previous,
  11915. next,
  11916. x0 = this._x0,
  11917. y0 = this._y0,
  11918. x1 = this._x1,
  11919. y1 = this._y1,
  11920. x,
  11921. y,
  11922. xm,
  11923. ym,
  11924. right,
  11925. bottom,
  11926. i,
  11927. j;
  11928. // If the tree is empty, initialize the root as a leaf.
  11929. if (!node) return this;
  11930. // Find the leaf node for the point.
  11931. // While descending, also retain the deepest parent with a non-removed sibling.
  11932. if (node.length) while (true) {
  11933. if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;
  11934. if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;
  11935. if (!(parent = node, node = node[i = bottom << 1 | right])) return this;
  11936. if (!node.length) break;
  11937. if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i;
  11938. }
  11939. // Find the point to remove.
  11940. while (node.data !== d) if (!(previous = node, node = node.next)) return this;
  11941. if (next = node.next) delete node.next;
  11942. // If there are multiple coincident points, remove just the point.
  11943. if (previous) return (next ? previous.next = next : delete previous.next), this;
  11944. // If this is the root point, remove it.
  11945. if (!parent) return this._root = next, this;
  11946. // Remove this leaf.
  11947. next ? parent[i] = next : delete parent[i];
  11948. // If the parent now contains exactly one leaf, collapse superfluous parents.
  11949. if ((node = parent[0] || parent[1] || parent[2] || parent[3])
  11950. && node === (parent[3] || parent[2] || parent[1] || parent[0])
  11951. && !node.length) {
  11952. if (retainer) retainer[j] = node;
  11953. else this._root = node;
  11954. }
  11955. return this;
  11956. });
  11957. function removeAll(data) {
  11958. for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]);
  11959. return this;
  11960. }
  11961. /***/ }),
  11962. /***/ "./node_modules/d3-quadtree/src/root.js":
  11963. /*!**********************************************!*\
  11964. !*** ./node_modules/d3-quadtree/src/root.js ***!
  11965. \**********************************************/
  11966. /*! exports provided: default */
  11967. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11968. "use strict";
  11969. __webpack_require__.r(__webpack_exports__);
  11970. /* harmony default export */ __webpack_exports__["default"] = (function() {
  11971. return this._root;
  11972. });
  11973. /***/ }),
  11974. /***/ "./node_modules/d3-quadtree/src/size.js":
  11975. /*!**********************************************!*\
  11976. !*** ./node_modules/d3-quadtree/src/size.js ***!
  11977. \**********************************************/
  11978. /*! exports provided: default */
  11979. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11980. "use strict";
  11981. __webpack_require__.r(__webpack_exports__);
  11982. /* harmony default export */ __webpack_exports__["default"] = (function() {
  11983. var size = 0;
  11984. this.visit(function(node) {
  11985. if (!node.length) do ++size; while (node = node.next)
  11986. });
  11987. return size;
  11988. });
  11989. /***/ }),
  11990. /***/ "./node_modules/d3-quadtree/src/visit.js":
  11991. /*!***********************************************!*\
  11992. !*** ./node_modules/d3-quadtree/src/visit.js ***!
  11993. \***********************************************/
  11994. /*! exports provided: default */
  11995. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11996. "use strict";
  11997. __webpack_require__.r(__webpack_exports__);
  11998. /* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quad.js */ "./node_modules/d3-quadtree/src/quad.js");
  11999. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  12000. var quads = [], q, node = this._root, child, x0, y0, x1, y1;
  12001. if (node) quads.push(new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](node, this._x0, this._y0, this._x1, this._y1));
  12002. while (q = quads.pop()) {
  12003. if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) {
  12004. var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;
  12005. if (child = node[3]) quads.push(new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, ym, x1, y1));
  12006. if (child = node[2]) quads.push(new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, ym, xm, y1));
  12007. if (child = node[1]) quads.push(new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, y0, x1, ym));
  12008. if (child = node[0]) quads.push(new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, y0, xm, ym));
  12009. }
  12010. }
  12011. return this;
  12012. });
  12013. /***/ }),
  12014. /***/ "./node_modules/d3-quadtree/src/visitAfter.js":
  12015. /*!****************************************************!*\
  12016. !*** ./node_modules/d3-quadtree/src/visitAfter.js ***!
  12017. \****************************************************/
  12018. /*! exports provided: default */
  12019. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12020. "use strict";
  12021. __webpack_require__.r(__webpack_exports__);
  12022. /* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quad.js */ "./node_modules/d3-quadtree/src/quad.js");
  12023. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  12024. var quads = [], next = [], q;
  12025. if (this._root) quads.push(new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](this._root, this._x0, this._y0, this._x1, this._y1));
  12026. while (q = quads.pop()) {
  12027. var node = q.node;
  12028. if (node.length) {
  12029. var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;
  12030. if (child = node[0]) quads.push(new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, y0, xm, ym));
  12031. if (child = node[1]) quads.push(new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, y0, x1, ym));
  12032. if (child = node[2]) quads.push(new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, ym, xm, y1));
  12033. if (child = node[3]) quads.push(new _quad_js__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, ym, x1, y1));
  12034. }
  12035. next.push(q);
  12036. }
  12037. while (q = next.pop()) {
  12038. callback(q.node, q.x0, q.y0, q.x1, q.y1);
  12039. }
  12040. return this;
  12041. });
  12042. /***/ }),
  12043. /***/ "./node_modules/d3-quadtree/src/x.js":
  12044. /*!*******************************************!*\
  12045. !*** ./node_modules/d3-quadtree/src/x.js ***!
  12046. \*******************************************/
  12047. /*! exports provided: defaultX, default */
  12048. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12049. "use strict";
  12050. __webpack_require__.r(__webpack_exports__);
  12051. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultX", function() { return defaultX; });
  12052. function defaultX(d) {
  12053. return d[0];
  12054. }
  12055. /* harmony default export */ __webpack_exports__["default"] = (function(_) {
  12056. return arguments.length ? (this._x = _, this) : this._x;
  12057. });
  12058. /***/ }),
  12059. /***/ "./node_modules/d3-quadtree/src/y.js":
  12060. /*!*******************************************!*\
  12061. !*** ./node_modules/d3-quadtree/src/y.js ***!
  12062. \*******************************************/
  12063. /*! exports provided: defaultY, default */
  12064. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12065. "use strict";
  12066. __webpack_require__.r(__webpack_exports__);
  12067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultY", function() { return defaultY; });
  12068. function defaultY(d) {
  12069. return d[1];
  12070. }
  12071. /* harmony default export */ __webpack_exports__["default"] = (function(_) {
  12072. return arguments.length ? (this._y = _, this) : this._y;
  12073. });
  12074. /***/ }),
  12075. /***/ "./node_modules/d3-random/src/bates.js":
  12076. /*!*********************************************!*\
  12077. !*** ./node_modules/d3-random/src/bates.js ***!
  12078. \*********************************************/
  12079. /*! exports provided: default */
  12080. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12081. "use strict";
  12082. __webpack_require__.r(__webpack_exports__);
  12083. /* harmony import */ var _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  12084. /* harmony import */ var _irwinHall__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./irwinHall */ "./node_modules/d3-random/src/irwinHall.js");
  12085. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomBates(source) {
  12086. function randomBates(n) {
  12087. var randomIrwinHall = _irwinHall__WEBPACK_IMPORTED_MODULE_1__["default"].source(source)(n);
  12088. return function() {
  12089. return randomIrwinHall() / n;
  12090. };
  12091. }
  12092. randomBates.source = sourceRandomBates;
  12093. return randomBates;
  12094. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  12095. /***/ }),
  12096. /***/ "./node_modules/d3-random/src/defaultSource.js":
  12097. /*!*****************************************************!*\
  12098. !*** ./node_modules/d3-random/src/defaultSource.js ***!
  12099. \*****************************************************/
  12100. /*! exports provided: default */
  12101. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12102. "use strict";
  12103. __webpack_require__.r(__webpack_exports__);
  12104. /* harmony default export */ __webpack_exports__["default"] = (function() {
  12105. return Math.random();
  12106. });
  12107. /***/ }),
  12108. /***/ "./node_modules/d3-random/src/exponential.js":
  12109. /*!***************************************************!*\
  12110. !*** ./node_modules/d3-random/src/exponential.js ***!
  12111. \***************************************************/
  12112. /*! exports provided: default */
  12113. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12114. "use strict";
  12115. __webpack_require__.r(__webpack_exports__);
  12116. /* harmony import */ var _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  12117. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomExponential(source) {
  12118. function randomExponential(lambda) {
  12119. return function() {
  12120. return -Math.log(1 - source()) / lambda;
  12121. };
  12122. }
  12123. randomExponential.source = sourceRandomExponential;
  12124. return randomExponential;
  12125. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  12126. /***/ }),
  12127. /***/ "./node_modules/d3-random/src/index.js":
  12128. /*!*********************************************!*\
  12129. !*** ./node_modules/d3-random/src/index.js ***!
  12130. \*********************************************/
  12131. /*! exports provided: randomUniform, randomNormal, randomLogNormal, randomBates, randomIrwinHall, randomExponential */
  12132. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12133. "use strict";
  12134. __webpack_require__.r(__webpack_exports__);
  12135. /* harmony import */ var _uniform__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./uniform */ "./node_modules/d3-random/src/uniform.js");
  12136. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomUniform", function() { return _uniform__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  12137. /* harmony import */ var _normal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./normal */ "./node_modules/d3-random/src/normal.js");
  12138. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomNormal", function() { return _normal__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  12139. /* harmony import */ var _logNormal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logNormal */ "./node_modules/d3-random/src/logNormal.js");
  12140. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomLogNormal", function() { return _logNormal__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  12141. /* harmony import */ var _bates__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bates */ "./node_modules/d3-random/src/bates.js");
  12142. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomBates", function() { return _bates__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  12143. /* harmony import */ var _irwinHall__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./irwinHall */ "./node_modules/d3-random/src/irwinHall.js");
  12144. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomIrwinHall", function() { return _irwinHall__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  12145. /* harmony import */ var _exponential__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./exponential */ "./node_modules/d3-random/src/exponential.js");
  12146. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomExponential", function() { return _exponential__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  12147. /***/ }),
  12148. /***/ "./node_modules/d3-random/src/irwinHall.js":
  12149. /*!*************************************************!*\
  12150. !*** ./node_modules/d3-random/src/irwinHall.js ***!
  12151. \*************************************************/
  12152. /*! exports provided: default */
  12153. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12154. "use strict";
  12155. __webpack_require__.r(__webpack_exports__);
  12156. /* harmony import */ var _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  12157. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomIrwinHall(source) {
  12158. function randomIrwinHall(n) {
  12159. return function() {
  12160. for (var sum = 0, i = 0; i < n; ++i) sum += source();
  12161. return sum;
  12162. };
  12163. }
  12164. randomIrwinHall.source = sourceRandomIrwinHall;
  12165. return randomIrwinHall;
  12166. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  12167. /***/ }),
  12168. /***/ "./node_modules/d3-random/src/logNormal.js":
  12169. /*!*************************************************!*\
  12170. !*** ./node_modules/d3-random/src/logNormal.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 _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  12177. /* harmony import */ var _normal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./normal */ "./node_modules/d3-random/src/normal.js");
  12178. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomLogNormal(source) {
  12179. function randomLogNormal() {
  12180. var randomNormal = _normal__WEBPACK_IMPORTED_MODULE_1__["default"].source(source).apply(this, arguments);
  12181. return function() {
  12182. return Math.exp(randomNormal());
  12183. };
  12184. }
  12185. randomLogNormal.source = sourceRandomLogNormal;
  12186. return randomLogNormal;
  12187. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  12188. /***/ }),
  12189. /***/ "./node_modules/d3-random/src/normal.js":
  12190. /*!**********************************************!*\
  12191. !*** ./node_modules/d3-random/src/normal.js ***!
  12192. \**********************************************/
  12193. /*! exports provided: default */
  12194. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12195. "use strict";
  12196. __webpack_require__.r(__webpack_exports__);
  12197. /* harmony import */ var _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  12198. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomNormal(source) {
  12199. function randomNormal(mu, sigma) {
  12200. var x, r;
  12201. mu = mu == null ? 0 : +mu;
  12202. sigma = sigma == null ? 1 : +sigma;
  12203. return function() {
  12204. var y;
  12205. // If available, use the second previously-generated uniform random.
  12206. if (x != null) y = x, x = null;
  12207. // Otherwise, generate a new x and y.
  12208. else do {
  12209. x = source() * 2 - 1;
  12210. y = source() * 2 - 1;
  12211. r = x * x + y * y;
  12212. } while (!r || r > 1);
  12213. return mu + sigma * y * Math.sqrt(-2 * Math.log(r) / r);
  12214. };
  12215. }
  12216. randomNormal.source = sourceRandomNormal;
  12217. return randomNormal;
  12218. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  12219. /***/ }),
  12220. /***/ "./node_modules/d3-random/src/uniform.js":
  12221. /*!***********************************************!*\
  12222. !*** ./node_modules/d3-random/src/uniform.js ***!
  12223. \***********************************************/
  12224. /*! exports provided: default */
  12225. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12226. "use strict";
  12227. __webpack_require__.r(__webpack_exports__);
  12228. /* harmony import */ var _defaultSource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultSource */ "./node_modules/d3-random/src/defaultSource.js");
  12229. /* harmony default export */ __webpack_exports__["default"] = ((function sourceRandomUniform(source) {
  12230. function randomUniform(min, max) {
  12231. min = min == null ? 0 : +min;
  12232. max = max == null ? 1 : +max;
  12233. if (arguments.length === 1) max = min, min = 0;
  12234. else max -= min;
  12235. return function() {
  12236. return source() * max + min;
  12237. };
  12238. }
  12239. randomUniform.source = sourceRandomUniform;
  12240. return randomUniform;
  12241. })(_defaultSource__WEBPACK_IMPORTED_MODULE_0__["default"]));
  12242. /***/ }),
  12243. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Accent.js":
  12244. /*!*******************************************************************!*\
  12245. !*** ./node_modules/d3-scale-chromatic/src/categorical/Accent.js ***!
  12246. \*******************************************************************/
  12247. /*! exports provided: default */
  12248. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12249. "use strict";
  12250. __webpack_require__.r(__webpack_exports__);
  12251. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12252. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"));
  12253. /***/ }),
  12254. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js":
  12255. /*!******************************************************************!*\
  12256. !*** ./node_modules/d3-scale-chromatic/src/categorical/Dark2.js ***!
  12257. \******************************************************************/
  12258. /*! exports provided: default */
  12259. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12260. "use strict";
  12261. __webpack_require__.r(__webpack_exports__);
  12262. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12263. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"));
  12264. /***/ }),
  12265. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Paired.js":
  12266. /*!*******************************************************************!*\
  12267. !*** ./node_modules/d3-scale-chromatic/src/categorical/Paired.js ***!
  12268. \*******************************************************************/
  12269. /*! exports provided: default */
  12270. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12271. "use strict";
  12272. __webpack_require__.r(__webpack_exports__);
  12273. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12274. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"));
  12275. /***/ }),
  12276. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js":
  12277. /*!********************************************************************!*\
  12278. !*** ./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js ***!
  12279. \********************************************************************/
  12280. /*! exports provided: default */
  12281. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12282. "use strict";
  12283. __webpack_require__.r(__webpack_exports__);
  12284. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12285. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"));
  12286. /***/ }),
  12287. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js":
  12288. /*!********************************************************************!*\
  12289. !*** ./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js ***!
  12290. \********************************************************************/
  12291. /*! exports provided: default */
  12292. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12293. "use strict";
  12294. __webpack_require__.r(__webpack_exports__);
  12295. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12296. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"));
  12297. /***/ }),
  12298. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Set1.js":
  12299. /*!*****************************************************************!*\
  12300. !*** ./node_modules/d3-scale-chromatic/src/categorical/Set1.js ***!
  12301. \*****************************************************************/
  12302. /*! exports provided: default */
  12303. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12304. "use strict";
  12305. __webpack_require__.r(__webpack_exports__);
  12306. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12307. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"));
  12308. /***/ }),
  12309. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Set2.js":
  12310. /*!*****************************************************************!*\
  12311. !*** ./node_modules/d3-scale-chromatic/src/categorical/Set2.js ***!
  12312. \*****************************************************************/
  12313. /*! exports provided: default */
  12314. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12315. "use strict";
  12316. __webpack_require__.r(__webpack_exports__);
  12317. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12318. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"));
  12319. /***/ }),
  12320. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Set3.js":
  12321. /*!*****************************************************************!*\
  12322. !*** ./node_modules/d3-scale-chromatic/src/categorical/Set3.js ***!
  12323. \*****************************************************************/
  12324. /*! exports provided: default */
  12325. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12326. "use strict";
  12327. __webpack_require__.r(__webpack_exports__);
  12328. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12329. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"));
  12330. /***/ }),
  12331. /***/ "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js":
  12332. /*!**********************************************************************!*\
  12333. !*** ./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js ***!
  12334. \**********************************************************************/
  12335. /*! exports provided: default */
  12336. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12337. "use strict";
  12338. __webpack_require__.r(__webpack_exports__);
  12339. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12340. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"));
  12341. /***/ }),
  12342. /***/ "./node_modules/d3-scale-chromatic/src/categorical/category10.js":
  12343. /*!***********************************************************************!*\
  12344. !*** ./node_modules/d3-scale-chromatic/src/categorical/category10.js ***!
  12345. \***********************************************************************/
  12346. /*! exports provided: default */
  12347. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12348. "use strict";
  12349. __webpack_require__.r(__webpack_exports__);
  12350. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12351. /* harmony default export */ __webpack_exports__["default"] = (Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"));
  12352. /***/ }),
  12353. /***/ "./node_modules/d3-scale-chromatic/src/colors.js":
  12354. /*!*******************************************************!*\
  12355. !*** ./node_modules/d3-scale-chromatic/src/colors.js ***!
  12356. \*******************************************************/
  12357. /*! exports provided: default */
  12358. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12359. "use strict";
  12360. __webpack_require__.r(__webpack_exports__);
  12361. /* harmony default export */ __webpack_exports__["default"] = (function(specifier) {
  12362. var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;
  12363. while (i < n) colors[i] = "#" + specifier.slice(i * 6, ++i * 6);
  12364. return colors;
  12365. });
  12366. /***/ }),
  12367. /***/ "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js":
  12368. /*!***************************************************************!*\
  12369. !*** ./node_modules/d3-scale-chromatic/src/diverging/BrBG.js ***!
  12370. \***************************************************************/
  12371. /*! exports provided: scheme, default */
  12372. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12373. "use strict";
  12374. __webpack_require__.r(__webpack_exports__);
  12375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12376. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12377. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12378. var scheme = new Array(3).concat(
  12379. "d8b365f5f5f55ab4ac",
  12380. "a6611adfc27d80cdc1018571",
  12381. "a6611adfc27df5f5f580cdc1018571",
  12382. "8c510ad8b365f6e8c3c7eae55ab4ac01665e",
  12383. "8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e",
  12384. "8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
  12385. "8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e",
  12386. "5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30",
  12387. "5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30"
  12388. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12389. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12390. /***/ }),
  12391. /***/ "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js":
  12392. /*!***************************************************************!*\
  12393. !*** ./node_modules/d3-scale-chromatic/src/diverging/PRGn.js ***!
  12394. \***************************************************************/
  12395. /*! exports provided: scheme, default */
  12396. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12397. "use strict";
  12398. __webpack_require__.r(__webpack_exports__);
  12399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12400. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12401. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12402. var scheme = new Array(3).concat(
  12403. "af8dc3f7f7f77fbf7b",
  12404. "7b3294c2a5cfa6dba0008837",
  12405. "7b3294c2a5cff7f7f7a6dba0008837",
  12406. "762a83af8dc3e7d4e8d9f0d37fbf7b1b7837",
  12407. "762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837",
  12408. "762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837",
  12409. "762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
  12410. "40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b",
  12411. "40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b"
  12412. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12413. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12414. /***/ }),
  12415. /***/ "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js":
  12416. /*!***************************************************************!*\
  12417. !*** ./node_modules/d3-scale-chromatic/src/diverging/PiYG.js ***!
  12418. \***************************************************************/
  12419. /*! exports provided: scheme, default */
  12420. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12421. "use strict";
  12422. __webpack_require__.r(__webpack_exports__);
  12423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12424. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12425. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12426. var scheme = new Array(3).concat(
  12427. "e9a3c9f7f7f7a1d76a",
  12428. "d01c8bf1b6dab8e1864dac26",
  12429. "d01c8bf1b6daf7f7f7b8e1864dac26",
  12430. "c51b7de9a3c9fde0efe6f5d0a1d76a4d9221",
  12431. "c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221",
  12432. "c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221",
  12433. "c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221",
  12434. "8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
  12435. "8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419"
  12436. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12437. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12438. /***/ }),
  12439. /***/ "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js":
  12440. /*!***************************************************************!*\
  12441. !*** ./node_modules/d3-scale-chromatic/src/diverging/PuOr.js ***!
  12442. \***************************************************************/
  12443. /*! exports provided: scheme, default */
  12444. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12445. "use strict";
  12446. __webpack_require__.r(__webpack_exports__);
  12447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12448. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12449. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12450. var scheme = new Array(3).concat(
  12451. "998ec3f7f7f7f1a340",
  12452. "5e3c99b2abd2fdb863e66101",
  12453. "5e3c99b2abd2f7f7f7fdb863e66101",
  12454. "542788998ec3d8daebfee0b6f1a340b35806",
  12455. "542788998ec3d8daebf7f7f7fee0b6f1a340b35806",
  12456. "5427888073acb2abd2d8daebfee0b6fdb863e08214b35806",
  12457. "5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806",
  12458. "2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08",
  12459. "2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08"
  12460. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12461. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12462. /***/ }),
  12463. /***/ "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js":
  12464. /*!***************************************************************!*\
  12465. !*** ./node_modules/d3-scale-chromatic/src/diverging/RdBu.js ***!
  12466. \***************************************************************/
  12467. /*! exports provided: scheme, default */
  12468. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12469. "use strict";
  12470. __webpack_require__.r(__webpack_exports__);
  12471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12472. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12473. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12474. var scheme = new Array(3).concat(
  12475. "ef8a62f7f7f767a9cf",
  12476. "ca0020f4a58292c5de0571b0",
  12477. "ca0020f4a582f7f7f792c5de0571b0",
  12478. "b2182bef8a62fddbc7d1e5f067a9cf2166ac",
  12479. "b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac",
  12480. "b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac",
  12481. "b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac",
  12482. "67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061",
  12483. "67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061"
  12484. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12485. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12486. /***/ }),
  12487. /***/ "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js":
  12488. /*!***************************************************************!*\
  12489. !*** ./node_modules/d3-scale-chromatic/src/diverging/RdGy.js ***!
  12490. \***************************************************************/
  12491. /*! exports provided: scheme, default */
  12492. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12493. "use strict";
  12494. __webpack_require__.r(__webpack_exports__);
  12495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12496. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12497. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12498. var scheme = new Array(3).concat(
  12499. "ef8a62ffffff999999",
  12500. "ca0020f4a582bababa404040",
  12501. "ca0020f4a582ffffffbababa404040",
  12502. "b2182bef8a62fddbc7e0e0e09999994d4d4d",
  12503. "b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d",
  12504. "b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d",
  12505. "b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d",
  12506. "67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a",
  12507. "67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a"
  12508. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12509. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12510. /***/ }),
  12511. /***/ "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js":
  12512. /*!*****************************************************************!*\
  12513. !*** ./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js ***!
  12514. \*****************************************************************/
  12515. /*! exports provided: scheme, default */
  12516. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12517. "use strict";
  12518. __webpack_require__.r(__webpack_exports__);
  12519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12520. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12521. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12522. var scheme = new Array(3).concat(
  12523. "fc8d59ffffbf91bfdb",
  12524. "d7191cfdae61abd9e92c7bb6",
  12525. "d7191cfdae61ffffbfabd9e92c7bb6",
  12526. "d73027fc8d59fee090e0f3f891bfdb4575b4",
  12527. "d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4",
  12528. "d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4",
  12529. "d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4",
  12530. "a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695",
  12531. "a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695"
  12532. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12533. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12534. /***/ }),
  12535. /***/ "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js":
  12536. /*!*****************************************************************!*\
  12537. !*** ./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js ***!
  12538. \*****************************************************************/
  12539. /*! exports provided: scheme, default */
  12540. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12541. "use strict";
  12542. __webpack_require__.r(__webpack_exports__);
  12543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12544. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12545. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12546. var scheme = new Array(3).concat(
  12547. "fc8d59ffffbf91cf60",
  12548. "d7191cfdae61a6d96a1a9641",
  12549. "d7191cfdae61ffffbfa6d96a1a9641",
  12550. "d73027fc8d59fee08bd9ef8b91cf601a9850",
  12551. "d73027fc8d59fee08bffffbfd9ef8b91cf601a9850",
  12552. "d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
  12553. "d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850",
  12554. "a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837",
  12555. "a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837"
  12556. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12557. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12558. /***/ }),
  12559. /***/ "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js":
  12560. /*!*******************************************************************!*\
  12561. !*** ./node_modules/d3-scale-chromatic/src/diverging/Spectral.js ***!
  12562. \*******************************************************************/
  12563. /*! exports provided: scheme, default */
  12564. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12565. "use strict";
  12566. __webpack_require__.r(__webpack_exports__);
  12567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12568. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12569. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12570. var scheme = new Array(3).concat(
  12571. "fc8d59ffffbf99d594",
  12572. "d7191cfdae61abdda42b83ba",
  12573. "d7191cfdae61ffffbfabdda42b83ba",
  12574. "d53e4ffc8d59fee08be6f59899d5943288bd",
  12575. "d53e4ffc8d59fee08bffffbfe6f59899d5943288bd",
  12576. "d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd",
  12577. "d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
  12578. "9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2",
  12579. "9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2"
  12580. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12581. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12582. /***/ }),
  12583. /***/ "./node_modules/d3-scale-chromatic/src/index.js":
  12584. /*!******************************************************!*\
  12585. !*** ./node_modules/d3-scale-chromatic/src/index.js ***!
  12586. \******************************************************/
  12587. /*! exports provided: schemeCategory10, schemeAccent, schemeDark2, schemePaired, schemePastel1, schemePastel2, schemeSet1, schemeSet2, schemeSet3, schemeTableau10, 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, interpolateCividis, interpolateCubehelixDefault, interpolateRainbow, interpolateWarm, interpolateCool, interpolateSinebow, interpolateTurbo, interpolateViridis, interpolateMagma, interpolateInferno, interpolatePlasma */
  12588. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12589. "use strict";
  12590. __webpack_require__.r(__webpack_exports__);
  12591. /* harmony import */ var _categorical_category10_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./categorical/category10.js */ "./node_modules/d3-scale-chromatic/src/categorical/category10.js");
  12592. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory10", function() { return _categorical_category10_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  12593. /* harmony import */ var _categorical_Accent_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./categorical/Accent.js */ "./node_modules/d3-scale-chromatic/src/categorical/Accent.js");
  12594. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeAccent", function() { return _categorical_Accent_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  12595. /* harmony import */ var _categorical_Dark2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./categorical/Dark2.js */ "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js");
  12596. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeDark2", function() { return _categorical_Dark2_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  12597. /* harmony import */ var _categorical_Paired_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./categorical/Paired.js */ "./node_modules/d3-scale-chromatic/src/categorical/Paired.js");
  12598. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePaired", function() { return _categorical_Paired_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  12599. /* harmony import */ var _categorical_Pastel1_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./categorical/Pastel1.js */ "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js");
  12600. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePastel1", function() { return _categorical_Pastel1_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  12601. /* harmony import */ var _categorical_Pastel2_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./categorical/Pastel2.js */ "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js");
  12602. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePastel2", function() { return _categorical_Pastel2_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  12603. /* harmony import */ var _categorical_Set1_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./categorical/Set1.js */ "./node_modules/d3-scale-chromatic/src/categorical/Set1.js");
  12604. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet1", function() { return _categorical_Set1_js__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  12605. /* harmony import */ var _categorical_Set2_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./categorical/Set2.js */ "./node_modules/d3-scale-chromatic/src/categorical/Set2.js");
  12606. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet2", function() { return _categorical_Set2_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  12607. /* harmony import */ var _categorical_Set3_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./categorical/Set3.js */ "./node_modules/d3-scale-chromatic/src/categorical/Set3.js");
  12608. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet3", function() { return _categorical_Set3_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  12609. /* harmony import */ var _categorical_Tableau10_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./categorical/Tableau10.js */ "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js");
  12610. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeTableau10", function() { return _categorical_Tableau10_js__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  12611. /* harmony import */ var _diverging_BrBG_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./diverging/BrBG.js */ "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js");
  12612. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBrBG", function() { return _diverging_BrBG_js__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  12613. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBrBG", function() { return _diverging_BrBG_js__WEBPACK_IMPORTED_MODULE_10__["scheme"]; });
  12614. /* harmony import */ var _diverging_PRGn_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./diverging/PRGn.js */ "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js");
  12615. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePRGn", function() { return _diverging_PRGn_js__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  12616. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePRGn", function() { return _diverging_PRGn_js__WEBPACK_IMPORTED_MODULE_11__["scheme"]; });
  12617. /* harmony import */ var _diverging_PiYG_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./diverging/PiYG.js */ "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js");
  12618. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePiYG", function() { return _diverging_PiYG_js__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  12619. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePiYG", function() { return _diverging_PiYG_js__WEBPACK_IMPORTED_MODULE_12__["scheme"]; });
  12620. /* harmony import */ var _diverging_PuOr_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./diverging/PuOr.js */ "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js");
  12621. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuOr", function() { return _diverging_PuOr_js__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  12622. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuOr", function() { return _diverging_PuOr_js__WEBPACK_IMPORTED_MODULE_13__["scheme"]; });
  12623. /* harmony import */ var _diverging_RdBu_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diverging/RdBu.js */ "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js");
  12624. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdBu", function() { return _diverging_RdBu_js__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  12625. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdBu", function() { return _diverging_RdBu_js__WEBPACK_IMPORTED_MODULE_14__["scheme"]; });
  12626. /* harmony import */ var _diverging_RdGy_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./diverging/RdGy.js */ "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js");
  12627. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdGy", function() { return _diverging_RdGy_js__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  12628. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdGy", function() { return _diverging_RdGy_js__WEBPACK_IMPORTED_MODULE_15__["scheme"]; });
  12629. /* harmony import */ var _diverging_RdYlBu_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./diverging/RdYlBu.js */ "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js");
  12630. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdYlBu", function() { return _diverging_RdYlBu_js__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  12631. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdYlBu", function() { return _diverging_RdYlBu_js__WEBPACK_IMPORTED_MODULE_16__["scheme"]; });
  12632. /* harmony import */ var _diverging_RdYlGn_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./diverging/RdYlGn.js */ "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js");
  12633. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdYlGn", function() { return _diverging_RdYlGn_js__WEBPACK_IMPORTED_MODULE_17__["default"]; });
  12634. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdYlGn", function() { return _diverging_RdYlGn_js__WEBPACK_IMPORTED_MODULE_17__["scheme"]; });
  12635. /* harmony import */ var _diverging_Spectral_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./diverging/Spectral.js */ "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js");
  12636. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateSpectral", function() { return _diverging_Spectral_js__WEBPACK_IMPORTED_MODULE_18__["default"]; });
  12637. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSpectral", function() { return _diverging_Spectral_js__WEBPACK_IMPORTED_MODULE_18__["scheme"]; });
  12638. /* harmony import */ var _sequential_multi_BuGn_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./sequential-multi/BuGn.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js");
  12639. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBuGn", function() { return _sequential_multi_BuGn_js__WEBPACK_IMPORTED_MODULE_19__["default"]; });
  12640. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBuGn", function() { return _sequential_multi_BuGn_js__WEBPACK_IMPORTED_MODULE_19__["scheme"]; });
  12641. /* harmony import */ var _sequential_multi_BuPu_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./sequential-multi/BuPu.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js");
  12642. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBuPu", function() { return _sequential_multi_BuPu_js__WEBPACK_IMPORTED_MODULE_20__["default"]; });
  12643. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBuPu", function() { return _sequential_multi_BuPu_js__WEBPACK_IMPORTED_MODULE_20__["scheme"]; });
  12644. /* harmony import */ var _sequential_multi_GnBu_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./sequential-multi/GnBu.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js");
  12645. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGnBu", function() { return _sequential_multi_GnBu_js__WEBPACK_IMPORTED_MODULE_21__["default"]; });
  12646. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGnBu", function() { return _sequential_multi_GnBu_js__WEBPACK_IMPORTED_MODULE_21__["scheme"]; });
  12647. /* harmony import */ var _sequential_multi_OrRd_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./sequential-multi/OrRd.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js");
  12648. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateOrRd", function() { return _sequential_multi_OrRd_js__WEBPACK_IMPORTED_MODULE_22__["default"]; });
  12649. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeOrRd", function() { return _sequential_multi_OrRd_js__WEBPACK_IMPORTED_MODULE_22__["scheme"]; });
  12650. /* harmony import */ var _sequential_multi_PuBuGn_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./sequential-multi/PuBuGn.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js");
  12651. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuBuGn", function() { return _sequential_multi_PuBuGn_js__WEBPACK_IMPORTED_MODULE_23__["default"]; });
  12652. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuBuGn", function() { return _sequential_multi_PuBuGn_js__WEBPACK_IMPORTED_MODULE_23__["scheme"]; });
  12653. /* harmony import */ var _sequential_multi_PuBu_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./sequential-multi/PuBu.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js");
  12654. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuBu", function() { return _sequential_multi_PuBu_js__WEBPACK_IMPORTED_MODULE_24__["default"]; });
  12655. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuBu", function() { return _sequential_multi_PuBu_js__WEBPACK_IMPORTED_MODULE_24__["scheme"]; });
  12656. /* harmony import */ var _sequential_multi_PuRd_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./sequential-multi/PuRd.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js");
  12657. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuRd", function() { return _sequential_multi_PuRd_js__WEBPACK_IMPORTED_MODULE_25__["default"]; });
  12658. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuRd", function() { return _sequential_multi_PuRd_js__WEBPACK_IMPORTED_MODULE_25__["scheme"]; });
  12659. /* harmony import */ var _sequential_multi_RdPu_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./sequential-multi/RdPu.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js");
  12660. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdPu", function() { return _sequential_multi_RdPu_js__WEBPACK_IMPORTED_MODULE_26__["default"]; });
  12661. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdPu", function() { return _sequential_multi_RdPu_js__WEBPACK_IMPORTED_MODULE_26__["scheme"]; });
  12662. /* harmony import */ var _sequential_multi_YlGnBu_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./sequential-multi/YlGnBu.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js");
  12663. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlGnBu", function() { return _sequential_multi_YlGnBu_js__WEBPACK_IMPORTED_MODULE_27__["default"]; });
  12664. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlGnBu", function() { return _sequential_multi_YlGnBu_js__WEBPACK_IMPORTED_MODULE_27__["scheme"]; });
  12665. /* harmony import */ var _sequential_multi_YlGn_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./sequential-multi/YlGn.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js");
  12666. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlGn", function() { return _sequential_multi_YlGn_js__WEBPACK_IMPORTED_MODULE_28__["default"]; });
  12667. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlGn", function() { return _sequential_multi_YlGn_js__WEBPACK_IMPORTED_MODULE_28__["scheme"]; });
  12668. /* harmony import */ var _sequential_multi_YlOrBr_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./sequential-multi/YlOrBr.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js");
  12669. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlOrBr", function() { return _sequential_multi_YlOrBr_js__WEBPACK_IMPORTED_MODULE_29__["default"]; });
  12670. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlOrBr", function() { return _sequential_multi_YlOrBr_js__WEBPACK_IMPORTED_MODULE_29__["scheme"]; });
  12671. /* harmony import */ var _sequential_multi_YlOrRd_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./sequential-multi/YlOrRd.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js");
  12672. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlOrRd", function() { return _sequential_multi_YlOrRd_js__WEBPACK_IMPORTED_MODULE_30__["default"]; });
  12673. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlOrRd", function() { return _sequential_multi_YlOrRd_js__WEBPACK_IMPORTED_MODULE_30__["scheme"]; });
  12674. /* harmony import */ var _sequential_single_Blues_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./sequential-single/Blues.js */ "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js");
  12675. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBlues", function() { return _sequential_single_Blues_js__WEBPACK_IMPORTED_MODULE_31__["default"]; });
  12676. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBlues", function() { return _sequential_single_Blues_js__WEBPACK_IMPORTED_MODULE_31__["scheme"]; });
  12677. /* harmony import */ var _sequential_single_Greens_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./sequential-single/Greens.js */ "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js");
  12678. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGreens", function() { return _sequential_single_Greens_js__WEBPACK_IMPORTED_MODULE_32__["default"]; });
  12679. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGreens", function() { return _sequential_single_Greens_js__WEBPACK_IMPORTED_MODULE_32__["scheme"]; });
  12680. /* harmony import */ var _sequential_single_Greys_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./sequential-single/Greys.js */ "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js");
  12681. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGreys", function() { return _sequential_single_Greys_js__WEBPACK_IMPORTED_MODULE_33__["default"]; });
  12682. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGreys", function() { return _sequential_single_Greys_js__WEBPACK_IMPORTED_MODULE_33__["scheme"]; });
  12683. /* harmony import */ var _sequential_single_Purples_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./sequential-single/Purples.js */ "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js");
  12684. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePurples", function() { return _sequential_single_Purples_js__WEBPACK_IMPORTED_MODULE_34__["default"]; });
  12685. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePurples", function() { return _sequential_single_Purples_js__WEBPACK_IMPORTED_MODULE_34__["scheme"]; });
  12686. /* harmony import */ var _sequential_single_Reds_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./sequential-single/Reds.js */ "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js");
  12687. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateReds", function() { return _sequential_single_Reds_js__WEBPACK_IMPORTED_MODULE_35__["default"]; });
  12688. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeReds", function() { return _sequential_single_Reds_js__WEBPACK_IMPORTED_MODULE_35__["scheme"]; });
  12689. /* harmony import */ var _sequential_single_Oranges_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./sequential-single/Oranges.js */ "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js");
  12690. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateOranges", function() { return _sequential_single_Oranges_js__WEBPACK_IMPORTED_MODULE_36__["default"]; });
  12691. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeOranges", function() { return _sequential_single_Oranges_js__WEBPACK_IMPORTED_MODULE_36__["scheme"]; });
  12692. /* harmony import */ var _sequential_multi_cividis_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./sequential-multi/cividis.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js");
  12693. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCividis", function() { return _sequential_multi_cividis_js__WEBPACK_IMPORTED_MODULE_37__["default"]; });
  12694. /* harmony import */ var _sequential_multi_cubehelix_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./sequential-multi/cubehelix.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js");
  12695. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixDefault", function() { return _sequential_multi_cubehelix_js__WEBPACK_IMPORTED_MODULE_38__["default"]; });
  12696. /* harmony import */ var _sequential_multi_rainbow_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./sequential-multi/rainbow.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js");
  12697. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRainbow", function() { return _sequential_multi_rainbow_js__WEBPACK_IMPORTED_MODULE_39__["default"]; });
  12698. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateWarm", function() { return _sequential_multi_rainbow_js__WEBPACK_IMPORTED_MODULE_39__["warm"]; });
  12699. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCool", function() { return _sequential_multi_rainbow_js__WEBPACK_IMPORTED_MODULE_39__["cool"]; });
  12700. /* harmony import */ var _sequential_multi_sinebow_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./sequential-multi/sinebow.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js");
  12701. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateSinebow", function() { return _sequential_multi_sinebow_js__WEBPACK_IMPORTED_MODULE_40__["default"]; });
  12702. /* harmony import */ var _sequential_multi_turbo_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./sequential-multi/turbo.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js");
  12703. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTurbo", function() { return _sequential_multi_turbo_js__WEBPACK_IMPORTED_MODULE_41__["default"]; });
  12704. /* harmony import */ var _sequential_multi_viridis_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./sequential-multi/viridis.js */ "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js");
  12705. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateViridis", function() { return _sequential_multi_viridis_js__WEBPACK_IMPORTED_MODULE_42__["default"]; });
  12706. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateMagma", function() { return _sequential_multi_viridis_js__WEBPACK_IMPORTED_MODULE_42__["magma"]; });
  12707. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateInferno", function() { return _sequential_multi_viridis_js__WEBPACK_IMPORTED_MODULE_42__["inferno"]; });
  12708. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePlasma", function() { return _sequential_multi_viridis_js__WEBPACK_IMPORTED_MODULE_42__["plasma"]; });
  12709. /***/ }),
  12710. /***/ "./node_modules/d3-scale-chromatic/src/ramp.js":
  12711. /*!*****************************************************!*\
  12712. !*** ./node_modules/d3-scale-chromatic/src/ramp.js ***!
  12713. \*****************************************************/
  12714. /*! exports provided: default */
  12715. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12716. "use strict";
  12717. __webpack_require__.r(__webpack_exports__);
  12718. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  12719. /* harmony default export */ __webpack_exports__["default"] = (function(scheme) {
  12720. return Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_0__["interpolateRgbBasis"])(scheme[scheme.length - 1]);
  12721. });
  12722. /***/ }),
  12723. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js":
  12724. /*!**********************************************************************!*\
  12725. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js ***!
  12726. \**********************************************************************/
  12727. /*! exports provided: scheme, default */
  12728. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12729. "use strict";
  12730. __webpack_require__.r(__webpack_exports__);
  12731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12732. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12733. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12734. var scheme = new Array(3).concat(
  12735. "e5f5f999d8c92ca25f",
  12736. "edf8fbb2e2e266c2a4238b45",
  12737. "edf8fbb2e2e266c2a42ca25f006d2c",
  12738. "edf8fbccece699d8c966c2a42ca25f006d2c",
  12739. "edf8fbccece699d8c966c2a441ae76238b45005824",
  12740. "f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824",
  12741. "f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b"
  12742. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12743. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12744. /***/ }),
  12745. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js":
  12746. /*!**********************************************************************!*\
  12747. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js ***!
  12748. \**********************************************************************/
  12749. /*! exports provided: scheme, default */
  12750. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12751. "use strict";
  12752. __webpack_require__.r(__webpack_exports__);
  12753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12754. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12755. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12756. var scheme = new Array(3).concat(
  12757. "e0ecf49ebcda8856a7",
  12758. "edf8fbb3cde38c96c688419d",
  12759. "edf8fbb3cde38c96c68856a7810f7c",
  12760. "edf8fbbfd3e69ebcda8c96c68856a7810f7c",
  12761. "edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b",
  12762. "f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b",
  12763. "f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b"
  12764. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12765. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12766. /***/ }),
  12767. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js":
  12768. /*!**********************************************************************!*\
  12769. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js ***!
  12770. \**********************************************************************/
  12771. /*! exports provided: scheme, default */
  12772. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12773. "use strict";
  12774. __webpack_require__.r(__webpack_exports__);
  12775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12776. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12777. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12778. var scheme = new Array(3).concat(
  12779. "e0f3dba8ddb543a2ca",
  12780. "f0f9e8bae4bc7bccc42b8cbe",
  12781. "f0f9e8bae4bc7bccc443a2ca0868ac",
  12782. "f0f9e8ccebc5a8ddb57bccc443a2ca0868ac",
  12783. "f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e",
  12784. "f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
  12785. "f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081"
  12786. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12787. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12788. /***/ }),
  12789. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js":
  12790. /*!**********************************************************************!*\
  12791. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js ***!
  12792. \**********************************************************************/
  12793. /*! exports provided: scheme, default */
  12794. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12795. "use strict";
  12796. __webpack_require__.r(__webpack_exports__);
  12797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12798. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12799. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12800. var scheme = new Array(3).concat(
  12801. "fee8c8fdbb84e34a33",
  12802. "fef0d9fdcc8afc8d59d7301f",
  12803. "fef0d9fdcc8afc8d59e34a33b30000",
  12804. "fef0d9fdd49efdbb84fc8d59e34a33b30000",
  12805. "fef0d9fdd49efdbb84fc8d59ef6548d7301f990000",
  12806. "fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000",
  12807. "fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000"
  12808. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12809. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12810. /***/ }),
  12811. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js":
  12812. /*!**********************************************************************!*\
  12813. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js ***!
  12814. \**********************************************************************/
  12815. /*! exports provided: scheme, default */
  12816. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12817. "use strict";
  12818. __webpack_require__.r(__webpack_exports__);
  12819. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12820. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12821. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12822. var scheme = new Array(3).concat(
  12823. "ece7f2a6bddb2b8cbe",
  12824. "f1eef6bdc9e174a9cf0570b0",
  12825. "f1eef6bdc9e174a9cf2b8cbe045a8d",
  12826. "f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d",
  12827. "f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b",
  12828. "fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b",
  12829. "fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858"
  12830. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12831. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12832. /***/ }),
  12833. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js":
  12834. /*!************************************************************************!*\
  12835. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js ***!
  12836. \************************************************************************/
  12837. /*! exports provided: scheme, default */
  12838. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12839. "use strict";
  12840. __webpack_require__.r(__webpack_exports__);
  12841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12842. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12843. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12844. var scheme = new Array(3).concat(
  12845. "ece2f0a6bddb1c9099",
  12846. "f6eff7bdc9e167a9cf02818a",
  12847. "f6eff7bdc9e167a9cf1c9099016c59",
  12848. "f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
  12849. "f6eff7d0d1e6a6bddb67a9cf3690c002818a016450",
  12850. "fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450",
  12851. "fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636"
  12852. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12853. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12854. /***/ }),
  12855. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js":
  12856. /*!**********************************************************************!*\
  12857. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js ***!
  12858. \**********************************************************************/
  12859. /*! exports provided: scheme, default */
  12860. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12861. "use strict";
  12862. __webpack_require__.r(__webpack_exports__);
  12863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12864. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12865. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12866. var scheme = new Array(3).concat(
  12867. "e7e1efc994c7dd1c77",
  12868. "f1eef6d7b5d8df65b0ce1256",
  12869. "f1eef6d7b5d8df65b0dd1c77980043",
  12870. "f1eef6d4b9dac994c7df65b0dd1c77980043",
  12871. "f1eef6d4b9dac994c7df65b0e7298ace125691003f",
  12872. "f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f",
  12873. "f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f"
  12874. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12875. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12876. /***/ }),
  12877. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js":
  12878. /*!**********************************************************************!*\
  12879. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js ***!
  12880. \**********************************************************************/
  12881. /*! exports provided: scheme, default */
  12882. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12883. "use strict";
  12884. __webpack_require__.r(__webpack_exports__);
  12885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12886. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12887. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12888. var scheme = new Array(3).concat(
  12889. "fde0ddfa9fb5c51b8a",
  12890. "feebe2fbb4b9f768a1ae017e",
  12891. "feebe2fbb4b9f768a1c51b8a7a0177",
  12892. "feebe2fcc5c0fa9fb5f768a1c51b8a7a0177",
  12893. "feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177",
  12894. "fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
  12895. "fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a"
  12896. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12897. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12898. /***/ }),
  12899. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js":
  12900. /*!**********************************************************************!*\
  12901. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js ***!
  12902. \**********************************************************************/
  12903. /*! exports provided: scheme, default */
  12904. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12905. "use strict";
  12906. __webpack_require__.r(__webpack_exports__);
  12907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12908. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12909. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12910. var scheme = new Array(3).concat(
  12911. "f7fcb9addd8e31a354",
  12912. "ffffccc2e69978c679238443",
  12913. "ffffccc2e69978c67931a354006837",
  12914. "ffffccd9f0a3addd8e78c67931a354006837",
  12915. "ffffccd9f0a3addd8e78c67941ab5d238443005a32",
  12916. "ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32",
  12917. "ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529"
  12918. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12919. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12920. /***/ }),
  12921. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js":
  12922. /*!************************************************************************!*\
  12923. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js ***!
  12924. \************************************************************************/
  12925. /*! exports provided: scheme, default */
  12926. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12927. "use strict";
  12928. __webpack_require__.r(__webpack_exports__);
  12929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12930. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12931. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12932. var scheme = new Array(3).concat(
  12933. "edf8b17fcdbb2c7fb8",
  12934. "ffffcca1dab441b6c4225ea8",
  12935. "ffffcca1dab441b6c42c7fb8253494",
  12936. "ffffccc7e9b47fcdbb41b6c42c7fb8253494",
  12937. "ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84",
  12938. "ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84",
  12939. "ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58"
  12940. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12941. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12942. /***/ }),
  12943. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js":
  12944. /*!************************************************************************!*\
  12945. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js ***!
  12946. \************************************************************************/
  12947. /*! exports provided: scheme, default */
  12948. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12949. "use strict";
  12950. __webpack_require__.r(__webpack_exports__);
  12951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12952. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12953. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12954. var scheme = new Array(3).concat(
  12955. "fff7bcfec44fd95f0e",
  12956. "ffffd4fed98efe9929cc4c02",
  12957. "ffffd4fed98efe9929d95f0e993404",
  12958. "ffffd4fee391fec44ffe9929d95f0e993404",
  12959. "ffffd4fee391fec44ffe9929ec7014cc4c028c2d04",
  12960. "ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04",
  12961. "ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506"
  12962. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12963. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12964. /***/ }),
  12965. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js":
  12966. /*!************************************************************************!*\
  12967. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js ***!
  12968. \************************************************************************/
  12969. /*! exports provided: scheme, default */
  12970. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12971. "use strict";
  12972. __webpack_require__.r(__webpack_exports__);
  12973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  12974. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  12975. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  12976. var scheme = new Array(3).concat(
  12977. "ffeda0feb24cf03b20",
  12978. "ffffb2fecc5cfd8d3ce31a1c",
  12979. "ffffb2fecc5cfd8d3cf03b20bd0026",
  12980. "ffffb2fed976feb24cfd8d3cf03b20bd0026",
  12981. "ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026",
  12982. "ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026",
  12983. "ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026"
  12984. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12985. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  12986. /***/ }),
  12987. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js":
  12988. /*!*************************************************************************!*\
  12989. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js ***!
  12990. \*************************************************************************/
  12991. /*! exports provided: default */
  12992. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12993. "use strict";
  12994. __webpack_require__.r(__webpack_exports__);
  12995. /* harmony default export */ __webpack_exports__["default"] = (function(t) {
  12996. t = Math.max(0, Math.min(1, t));
  12997. return "rgb("
  12998. + Math.max(0, Math.min(255, Math.round(-4.54 - t * (35.34 - t * (2381.73 - t * (6402.7 - t * (7024.72 - t * 2710.57))))))) + ", "
  12999. + Math.max(0, Math.min(255, Math.round(32.49 + t * (170.73 + t * (52.82 - t * (131.46 - t * (176.58 - t * 67.37))))))) + ", "
  13000. + Math.max(0, Math.min(255, Math.round(81.24 + t * (442.36 - t * (2482.43 - t * (6167.24 - t * (6614.94 - t * 2475.67)))))))
  13001. + ")";
  13002. });
  13003. /***/ }),
  13004. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js":
  13005. /*!***************************************************************************!*\
  13006. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js ***!
  13007. \***************************************************************************/
  13008. /*! exports provided: default */
  13009. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13010. "use strict";
  13011. __webpack_require__.r(__webpack_exports__);
  13012. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  13013. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  13014. /* 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)));
  13015. /***/ }),
  13016. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js":
  13017. /*!*************************************************************************!*\
  13018. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js ***!
  13019. \*************************************************************************/
  13020. /*! exports provided: warm, cool, default */
  13021. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13022. "use strict";
  13023. __webpack_require__.r(__webpack_exports__);
  13024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warm", function() { return warm; });
  13025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cool", function() { return cool; });
  13026. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  13027. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  13028. 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));
  13029. 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));
  13030. var c = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])();
  13031. /* harmony default export */ __webpack_exports__["default"] = (function(t) {
  13032. if (t < 0 || t > 1) t -= Math.floor(t);
  13033. var ts = Math.abs(t - 0.5);
  13034. c.h = 360 * t - 100;
  13035. c.s = 1.5 - 1.5 * ts;
  13036. c.l = 0.8 - 0.9 * ts;
  13037. return c + "";
  13038. });
  13039. /***/ }),
  13040. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js":
  13041. /*!*************************************************************************!*\
  13042. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js ***!
  13043. \*************************************************************************/
  13044. /*! exports provided: default */
  13045. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13046. "use strict";
  13047. __webpack_require__.r(__webpack_exports__);
  13048. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  13049. var c = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(),
  13050. pi_1_3 = Math.PI / 3,
  13051. pi_2_3 = Math.PI * 2 / 3;
  13052. /* harmony default export */ __webpack_exports__["default"] = (function(t) {
  13053. var x;
  13054. t = (0.5 - t) * Math.PI;
  13055. c.r = 255 * (x = Math.sin(t)) * x;
  13056. c.g = 255 * (x = Math.sin(t + pi_1_3)) * x;
  13057. c.b = 255 * (x = Math.sin(t + pi_2_3)) * x;
  13058. return c + "";
  13059. });
  13060. /***/ }),
  13061. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js":
  13062. /*!***********************************************************************!*\
  13063. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js ***!
  13064. \***********************************************************************/
  13065. /*! exports provided: default */
  13066. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13067. "use strict";
  13068. __webpack_require__.r(__webpack_exports__);
  13069. /* harmony default export */ __webpack_exports__["default"] = (function(t) {
  13070. t = Math.max(0, Math.min(1, t));
  13071. return "rgb("
  13072. + Math.max(0, Math.min(255, Math.round(34.61 + t * (1172.33 - t * (10793.56 - t * (33300.12 - t * (38394.49 - t * 14825.05))))))) + ", "
  13073. + Math.max(0, Math.min(255, Math.round(23.31 + t * (557.33 + t * (1225.33 - t * (3574.96 - t * (1073.77 + t * 707.56))))))) + ", "
  13074. + Math.max(0, Math.min(255, Math.round(27.2 + t * (3211.1 - t * (15327.97 - t * (27814 - t * (22569.18 - t * 6838.66)))))))
  13075. + ")";
  13076. });
  13077. /***/ }),
  13078. /***/ "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js":
  13079. /*!*************************************************************************!*\
  13080. !*** ./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js ***!
  13081. \*************************************************************************/
  13082. /*! exports provided: default, magma, inferno, plasma */
  13083. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13084. "use strict";
  13085. __webpack_require__.r(__webpack_exports__);
  13086. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "magma", function() { return magma; });
  13087. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inferno", function() { return inferno; });
  13088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "plasma", function() { return plasma; });
  13089. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  13090. function ramp(range) {
  13091. var n = range.length;
  13092. return function(t) {
  13093. return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
  13094. };
  13095. }
  13096. /* harmony default export */ __webpack_exports__["default"] = (ramp(Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")));
  13097. var magma = ramp(Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
  13098. var inferno = ramp(Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
  13099. var plasma = ramp(Object(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"])("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
  13100. /***/ }),
  13101. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js":
  13102. /*!************************************************************************!*\
  13103. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js ***!
  13104. \************************************************************************/
  13105. /*! exports provided: scheme, default */
  13106. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13107. "use strict";
  13108. __webpack_require__.r(__webpack_exports__);
  13109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  13110. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  13111. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  13112. var scheme = new Array(3).concat(
  13113. "deebf79ecae13182bd",
  13114. "eff3ffbdd7e76baed62171b5",
  13115. "eff3ffbdd7e76baed63182bd08519c",
  13116. "eff3ffc6dbef9ecae16baed63182bd08519c",
  13117. "eff3ffc6dbef9ecae16baed64292c62171b5084594",
  13118. "f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
  13119. "f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b"
  13120. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  13121. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  13122. /***/ }),
  13123. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js":
  13124. /*!*************************************************************************!*\
  13125. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js ***!
  13126. \*************************************************************************/
  13127. /*! exports provided: scheme, default */
  13128. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13129. "use strict";
  13130. __webpack_require__.r(__webpack_exports__);
  13131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  13132. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  13133. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  13134. var scheme = new Array(3).concat(
  13135. "e5f5e0a1d99b31a354",
  13136. "edf8e9bae4b374c476238b45",
  13137. "edf8e9bae4b374c47631a354006d2c",
  13138. "edf8e9c7e9c0a1d99b74c47631a354006d2c",
  13139. "edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32",
  13140. "f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32",
  13141. "f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b"
  13142. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  13143. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  13144. /***/ }),
  13145. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js":
  13146. /*!************************************************************************!*\
  13147. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js ***!
  13148. \************************************************************************/
  13149. /*! exports provided: scheme, default */
  13150. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13151. "use strict";
  13152. __webpack_require__.r(__webpack_exports__);
  13153. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  13154. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  13155. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  13156. var scheme = new Array(3).concat(
  13157. "f0f0f0bdbdbd636363",
  13158. "f7f7f7cccccc969696525252",
  13159. "f7f7f7cccccc969696636363252525",
  13160. "f7f7f7d9d9d9bdbdbd969696636363252525",
  13161. "f7f7f7d9d9d9bdbdbd969696737373525252252525",
  13162. "fffffff0f0f0d9d9d9bdbdbd969696737373525252252525",
  13163. "fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000"
  13164. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  13165. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  13166. /***/ }),
  13167. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js":
  13168. /*!**************************************************************************!*\
  13169. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js ***!
  13170. \**************************************************************************/
  13171. /*! exports provided: scheme, default */
  13172. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13173. "use strict";
  13174. __webpack_require__.r(__webpack_exports__);
  13175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  13176. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  13177. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  13178. var scheme = new Array(3).concat(
  13179. "fee6cefdae6be6550d",
  13180. "feeddefdbe85fd8d3cd94701",
  13181. "feeddefdbe85fd8d3ce6550da63603",
  13182. "feeddefdd0a2fdae6bfd8d3ce6550da63603",
  13183. "feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04",
  13184. "fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
  13185. "fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704"
  13186. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  13187. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  13188. /***/ }),
  13189. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js":
  13190. /*!**************************************************************************!*\
  13191. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js ***!
  13192. \**************************************************************************/
  13193. /*! exports provided: scheme, default */
  13194. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13195. "use strict";
  13196. __webpack_require__.r(__webpack_exports__);
  13197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  13198. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  13199. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  13200. var scheme = new Array(3).concat(
  13201. "efedf5bcbddc756bb1",
  13202. "f2f0f7cbc9e29e9ac86a51a3",
  13203. "f2f0f7cbc9e29e9ac8756bb154278f",
  13204. "f2f0f7dadaebbcbddc9e9ac8756bb154278f",
  13205. "f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486",
  13206. "fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486",
  13207. "fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d"
  13208. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  13209. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  13210. /***/ }),
  13211. /***/ "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js":
  13212. /*!***********************************************************************!*\
  13213. !*** ./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js ***!
  13214. \***********************************************************************/
  13215. /*! exports provided: scheme, default */
  13216. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13217. "use strict";
  13218. __webpack_require__.r(__webpack_exports__);
  13219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheme", function() { return scheme; });
  13220. /* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../colors.js */ "./node_modules/d3-scale-chromatic/src/colors.js");
  13221. /* harmony import */ var _ramp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ramp.js */ "./node_modules/d3-scale-chromatic/src/ramp.js");
  13222. var scheme = new Array(3).concat(
  13223. "fee0d2fc9272de2d26",
  13224. "fee5d9fcae91fb6a4acb181d",
  13225. "fee5d9fcae91fb6a4ade2d26a50f15",
  13226. "fee5d9fcbba1fc9272fb6a4ade2d26a50f15",
  13227. "fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d",
  13228. "fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d",
  13229. "fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d"
  13230. ).map(_colors_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  13231. /* harmony default export */ __webpack_exports__["default"] = (Object(_ramp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(scheme));
  13232. /***/ }),
  13233. /***/ "./node_modules/d3-scale/src/array.js":
  13234. /*!********************************************!*\
  13235. !*** ./node_modules/d3-scale/src/array.js ***!
  13236. \********************************************/
  13237. /*! exports provided: map, slice */
  13238. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13239. "use strict";
  13240. __webpack_require__.r(__webpack_exports__);
  13241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; });
  13242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  13243. var array = Array.prototype;
  13244. var map = array.map;
  13245. var slice = array.slice;
  13246. /***/ }),
  13247. /***/ "./node_modules/d3-scale/src/band.js":
  13248. /*!*******************************************!*\
  13249. !*** ./node_modules/d3-scale/src/band.js ***!
  13250. \*******************************************/
  13251. /*! exports provided: default, point */
  13252. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13253. "use strict";
  13254. __webpack_require__.r(__webpack_exports__);
  13255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return band; });
  13256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; });
  13257. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13258. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  13259. /* harmony import */ var _ordinal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ordinal */ "./node_modules/d3-scale/src/ordinal.js");
  13260. function band() {
  13261. var scale = Object(_ordinal__WEBPACK_IMPORTED_MODULE_2__["default"])().unknown(undefined),
  13262. domain = scale.domain,
  13263. ordinalRange = scale.range,
  13264. range = [0, 1],
  13265. step,
  13266. bandwidth,
  13267. round = false,
  13268. paddingInner = 0,
  13269. paddingOuter = 0,
  13270. align = 0.5;
  13271. delete scale.unknown;
  13272. function rescale() {
  13273. var n = domain().length,
  13274. reverse = range[1] < range[0],
  13275. start = range[reverse - 0],
  13276. stop = range[1 - reverse];
  13277. step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);
  13278. if (round) step = Math.floor(step);
  13279. start += (stop - start - step * (n - paddingInner)) * align;
  13280. bandwidth = step * (1 - paddingInner);
  13281. if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);
  13282. var values = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(n).map(function(i) { return start + step * i; });
  13283. return ordinalRange(reverse ? values.reverse() : values);
  13284. }
  13285. scale.domain = function(_) {
  13286. return arguments.length ? (domain(_), rescale()) : domain();
  13287. };
  13288. scale.range = function(_) {
  13289. return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice();
  13290. };
  13291. scale.rangeRound = function(_) {
  13292. return range = [+_[0], +_[1]], round = true, rescale();
  13293. };
  13294. scale.bandwidth = function() {
  13295. return bandwidth;
  13296. };
  13297. scale.step = function() {
  13298. return step;
  13299. };
  13300. scale.round = function(_) {
  13301. return arguments.length ? (round = !!_, rescale()) : round;
  13302. };
  13303. scale.padding = function(_) {
  13304. return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;
  13305. };
  13306. scale.paddingInner = function(_) {
  13307. return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner;
  13308. };
  13309. scale.paddingOuter = function(_) {
  13310. return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter;
  13311. };
  13312. scale.align = function(_) {
  13313. return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;
  13314. };
  13315. scale.copy = function() {
  13316. return band(domain(), range)
  13317. .round(round)
  13318. .paddingInner(paddingInner)
  13319. .paddingOuter(paddingOuter)
  13320. .align(align);
  13321. };
  13322. return _init__WEBPACK_IMPORTED_MODULE_1__["initRange"].apply(rescale(), arguments);
  13323. }
  13324. function pointish(scale) {
  13325. var copy = scale.copy;
  13326. scale.padding = scale.paddingOuter;
  13327. delete scale.paddingInner;
  13328. delete scale.paddingOuter;
  13329. scale.copy = function() {
  13330. return pointish(copy());
  13331. };
  13332. return scale;
  13333. }
  13334. function point() {
  13335. return pointish(band.apply(null, arguments).paddingInner(1));
  13336. }
  13337. /***/ }),
  13338. /***/ "./node_modules/d3-scale/src/constant.js":
  13339. /*!***********************************************!*\
  13340. !*** ./node_modules/d3-scale/src/constant.js ***!
  13341. \***********************************************/
  13342. /*! exports provided: default */
  13343. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13344. "use strict";
  13345. __webpack_require__.r(__webpack_exports__);
  13346. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  13347. return function() {
  13348. return x;
  13349. };
  13350. });
  13351. /***/ }),
  13352. /***/ "./node_modules/d3-scale/src/continuous.js":
  13353. /*!*************************************************!*\
  13354. !*** ./node_modules/d3-scale/src/continuous.js ***!
  13355. \*************************************************/
  13356. /*! exports provided: identity, copy, transformer, default */
  13357. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13358. "use strict";
  13359. __webpack_require__.r(__webpack_exports__);
  13360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; });
  13361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copy", function() { return copy; });
  13362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transformer", function() { return transformer; });
  13363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return continuous; });
  13364. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13365. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  13366. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  13367. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-scale/src/constant.js");
  13368. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./number */ "./node_modules/d3-scale/src/number.js");
  13369. var unit = [0, 1];
  13370. function identity(x) {
  13371. return x;
  13372. }
  13373. function normalize(a, b) {
  13374. return (b -= (a = +a))
  13375. ? function(x) { return (x - a) / b; }
  13376. : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(isNaN(b) ? NaN : 0.5);
  13377. }
  13378. function clamper(domain) {
  13379. var a = domain[0], b = domain[domain.length - 1], t;
  13380. if (a > b) t = a, a = b, b = t;
  13381. return function(x) { return Math.max(a, Math.min(b, x)); };
  13382. }
  13383. // normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
  13384. // interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].
  13385. function bimap(domain, range, interpolate) {
  13386. var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];
  13387. if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);
  13388. else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);
  13389. return function(x) { return r0(d0(x)); };
  13390. }
  13391. function polymap(domain, range, interpolate) {
  13392. var j = Math.min(domain.length, range.length) - 1,
  13393. d = new Array(j),
  13394. r = new Array(j),
  13395. i = -1;
  13396. // Reverse descending domains.
  13397. if (domain[j] < domain[0]) {
  13398. domain = domain.slice().reverse();
  13399. range = range.slice().reverse();
  13400. }
  13401. while (++i < j) {
  13402. d[i] = normalize(domain[i], domain[i + 1]);
  13403. r[i] = interpolate(range[i], range[i + 1]);
  13404. }
  13405. return function(x) {
  13406. var i = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 1, j) - 1;
  13407. return r[i](d[i](x));
  13408. };
  13409. }
  13410. function copy(source, target) {
  13411. return target
  13412. .domain(source.domain())
  13413. .range(source.range())
  13414. .interpolate(source.interpolate())
  13415. .clamp(source.clamp())
  13416. .unknown(source.unknown());
  13417. }
  13418. function transformer() {
  13419. var domain = unit,
  13420. range = unit,
  13421. interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolate"],
  13422. transform,
  13423. untransform,
  13424. unknown,
  13425. clamp = identity,
  13426. piecewise,
  13427. output,
  13428. input;
  13429. function rescale() {
  13430. piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap;
  13431. output = input = null;
  13432. return scale;
  13433. }
  13434. function scale(x) {
  13435. return isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));
  13436. }
  13437. scale.invert = function(y) {
  13438. return clamp(untransform((input || (input = piecewise(range, domain.map(transform), d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateNumber"])))(y)));
  13439. };
  13440. scale.domain = function(_) {
  13441. return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_2__["map"].call(_, _number__WEBPACK_IMPORTED_MODULE_4__["default"]), clamp === identity || (clamp = clamper(domain)), rescale()) : domain.slice();
  13442. };
  13443. scale.range = function(_) {
  13444. return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_2__["slice"].call(_), rescale()) : range.slice();
  13445. };
  13446. scale.rangeRound = function(_) {
  13447. return range = _array__WEBPACK_IMPORTED_MODULE_2__["slice"].call(_), interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateRound"], rescale();
  13448. };
  13449. scale.clamp = function(_) {
  13450. return arguments.length ? (clamp = _ ? clamper(domain) : identity, scale) : clamp !== identity;
  13451. };
  13452. scale.interpolate = function(_) {
  13453. return arguments.length ? (interpolate = _, rescale()) : interpolate;
  13454. };
  13455. scale.unknown = function(_) {
  13456. return arguments.length ? (unknown = _, scale) : unknown;
  13457. };
  13458. return function(t, u) {
  13459. transform = t, untransform = u;
  13460. return rescale();
  13461. };
  13462. }
  13463. function continuous(transform, untransform) {
  13464. return transformer()(transform, untransform);
  13465. }
  13466. /***/ }),
  13467. /***/ "./node_modules/d3-scale/src/diverging.js":
  13468. /*!************************************************!*\
  13469. !*** ./node_modules/d3-scale/src/diverging.js ***!
  13470. \************************************************/
  13471. /*! exports provided: default, divergingLog, divergingSymlog, divergingPow, divergingSqrt */
  13472. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13473. "use strict";
  13474. __webpack_require__.r(__webpack_exports__);
  13475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return diverging; });
  13476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "divergingLog", function() { return divergingLog; });
  13477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "divergingSymlog", function() { return divergingSymlog; });
  13478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "divergingPow", function() { return divergingPow; });
  13479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "divergingSqrt", function() { return divergingSqrt; });
  13480. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  13481. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  13482. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  13483. /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "./node_modules/d3-scale/src/log.js");
  13484. /* harmony import */ var _sequential__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sequential */ "./node_modules/d3-scale/src/sequential.js");
  13485. /* harmony import */ var _symlog__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./symlog */ "./node_modules/d3-scale/src/symlog.js");
  13486. /* harmony import */ var _pow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pow */ "./node_modules/d3-scale/src/pow.js");
  13487. function transformer() {
  13488. var x0 = 0,
  13489. x1 = 0.5,
  13490. x2 = 1,
  13491. t0,
  13492. t1,
  13493. t2,
  13494. k10,
  13495. k21,
  13496. interpolator = _continuous__WEBPACK_IMPORTED_MODULE_0__["identity"],
  13497. transform,
  13498. clamp = false,
  13499. unknown;
  13500. function scale(x) {
  13501. return isNaN(x = +x) ? unknown : (x = 0.5 + ((x = +transform(x)) - t1) * (x < t1 ? k10 : k21), interpolator(clamp ? Math.max(0, Math.min(1, x)) : x));
  13502. }
  13503. scale.domain = function(_) {
  13504. return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), t2 = transform(x2 = +_[2]), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), scale) : [x0, x1, x2];
  13505. };
  13506. scale.clamp = function(_) {
  13507. return arguments.length ? (clamp = !!_, scale) : clamp;
  13508. };
  13509. scale.interpolator = function(_) {
  13510. return arguments.length ? (interpolator = _, scale) : interpolator;
  13511. };
  13512. scale.unknown = function(_) {
  13513. return arguments.length ? (unknown = _, scale) : unknown;
  13514. };
  13515. return function(t) {
  13516. transform = t, t0 = t(x0), t1 = t(x1), t2 = t(x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1);
  13517. return scale;
  13518. };
  13519. }
  13520. function diverging() {
  13521. var scale = Object(_linear__WEBPACK_IMPORTED_MODULE_2__["linearish"])(transformer()(_continuous__WEBPACK_IMPORTED_MODULE_0__["identity"]));
  13522. scale.copy = function() {
  13523. return Object(_sequential__WEBPACK_IMPORTED_MODULE_4__["copy"])(scale, diverging());
  13524. };
  13525. return _init__WEBPACK_IMPORTED_MODULE_1__["initInterpolator"].apply(scale, arguments);
  13526. }
  13527. function divergingLog() {
  13528. var scale = Object(_log__WEBPACK_IMPORTED_MODULE_3__["loggish"])(transformer()).domain([0.1, 1, 10]);
  13529. scale.copy = function() {
  13530. return Object(_sequential__WEBPACK_IMPORTED_MODULE_4__["copy"])(scale, divergingLog()).base(scale.base());
  13531. };
  13532. return _init__WEBPACK_IMPORTED_MODULE_1__["initInterpolator"].apply(scale, arguments);
  13533. }
  13534. function divergingSymlog() {
  13535. var scale = Object(_symlog__WEBPACK_IMPORTED_MODULE_5__["symlogish"])(transformer());
  13536. scale.copy = function() {
  13537. return Object(_sequential__WEBPACK_IMPORTED_MODULE_4__["copy"])(scale, divergingSymlog()).constant(scale.constant());
  13538. };
  13539. return _init__WEBPACK_IMPORTED_MODULE_1__["initInterpolator"].apply(scale, arguments);
  13540. }
  13541. function divergingPow() {
  13542. var scale = Object(_pow__WEBPACK_IMPORTED_MODULE_6__["powish"])(transformer());
  13543. scale.copy = function() {
  13544. return Object(_sequential__WEBPACK_IMPORTED_MODULE_4__["copy"])(scale, divergingPow()).exponent(scale.exponent());
  13545. };
  13546. return _init__WEBPACK_IMPORTED_MODULE_1__["initInterpolator"].apply(scale, arguments);
  13547. }
  13548. function divergingSqrt() {
  13549. return divergingPow.apply(null, arguments).exponent(0.5);
  13550. }
  13551. /***/ }),
  13552. /***/ "./node_modules/d3-scale/src/identity.js":
  13553. /*!***********************************************!*\
  13554. !*** ./node_modules/d3-scale/src/identity.js ***!
  13555. \***********************************************/
  13556. /*! exports provided: default */
  13557. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13558. "use strict";
  13559. __webpack_require__.r(__webpack_exports__);
  13560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return identity; });
  13561. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  13562. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  13563. /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./number */ "./node_modules/d3-scale/src/number.js");
  13564. function identity(domain) {
  13565. var unknown;
  13566. function scale(x) {
  13567. return isNaN(x = +x) ? unknown : x;
  13568. }
  13569. scale.invert = scale;
  13570. scale.domain = scale.range = function(_) {
  13571. return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_0__["map"].call(_, _number__WEBPACK_IMPORTED_MODULE_2__["default"]), scale) : domain.slice();
  13572. };
  13573. scale.unknown = function(_) {
  13574. return arguments.length ? (unknown = _, scale) : unknown;
  13575. };
  13576. scale.copy = function() {
  13577. return identity(domain).unknown(unknown);
  13578. };
  13579. domain = arguments.length ? _array__WEBPACK_IMPORTED_MODULE_0__["map"].call(domain, _number__WEBPACK_IMPORTED_MODULE_2__["default"]) : [0, 1];
  13580. return Object(_linear__WEBPACK_IMPORTED_MODULE_1__["linearish"])(scale);
  13581. }
  13582. /***/ }),
  13583. /***/ "./node_modules/d3-scale/src/index.js":
  13584. /*!********************************************!*\
  13585. !*** ./node_modules/d3-scale/src/index.js ***!
  13586. \********************************************/
  13587. /*! exports provided: scaleBand, scalePoint, scaleIdentity, scaleLinear, scaleLog, scaleSymlog, scaleOrdinal, scaleImplicit, scalePow, scaleSqrt, scaleQuantile, scaleQuantize, scaleThreshold, scaleTime, scaleUtc, scaleSequential, scaleSequentialLog, scaleSequentialPow, scaleSequentialSqrt, scaleSequentialSymlog, scaleSequentialQuantile, scaleDiverging, scaleDivergingLog, scaleDivergingPow, scaleDivergingSqrt, scaleDivergingSymlog, tickFormat */
  13588. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13589. "use strict";
  13590. __webpack_require__.r(__webpack_exports__);
  13591. /* harmony import */ var _band__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./band */ "./node_modules/d3-scale/src/band.js");
  13592. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleBand", function() { return _band__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  13593. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePoint", function() { return _band__WEBPACK_IMPORTED_MODULE_0__["point"]; });
  13594. /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-scale/src/identity.js");
  13595. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleIdentity", function() { return _identity__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  13596. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  13597. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLinear", function() { return _linear__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  13598. /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "./node_modules/d3-scale/src/log.js");
  13599. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLog", function() { return _log__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  13600. /* harmony import */ var _symlog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./symlog */ "./node_modules/d3-scale/src/symlog.js");
  13601. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSymlog", function() { return _symlog__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  13602. /* harmony import */ var _ordinal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ordinal */ "./node_modules/d3-scale/src/ordinal.js");
  13603. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleOrdinal", function() { return _ordinal__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  13604. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleImplicit", function() { return _ordinal__WEBPACK_IMPORTED_MODULE_5__["implicit"]; });
  13605. /* harmony import */ var _pow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pow */ "./node_modules/d3-scale/src/pow.js");
  13606. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePow", function() { return _pow__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  13607. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSqrt", function() { return _pow__WEBPACK_IMPORTED_MODULE_6__["sqrt"]; });
  13608. /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./quantile */ "./node_modules/d3-scale/src/quantile.js");
  13609. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantile", function() { return _quantile__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  13610. /* harmony import */ var _quantize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./quantize */ "./node_modules/d3-scale/src/quantize.js");
  13611. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantize", function() { return _quantize__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  13612. /* harmony import */ var _threshold__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./threshold */ "./node_modules/d3-scale/src/threshold.js");
  13613. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleThreshold", function() { return _threshold__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  13614. /* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./time */ "./node_modules/d3-scale/src/time.js");
  13615. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleTime", function() { return _time__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  13616. /* harmony import */ var _utcTime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utcTime */ "./node_modules/d3-scale/src/utcTime.js");
  13617. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleUtc", function() { return _utcTime__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  13618. /* harmony import */ var _sequential__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./sequential */ "./node_modules/d3-scale/src/sequential.js");
  13619. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequential", function() { return _sequential__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  13620. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequentialLog", function() { return _sequential__WEBPACK_IMPORTED_MODULE_12__["sequentialLog"]; });
  13621. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequentialPow", function() { return _sequential__WEBPACK_IMPORTED_MODULE_12__["sequentialPow"]; });
  13622. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequentialSqrt", function() { return _sequential__WEBPACK_IMPORTED_MODULE_12__["sequentialSqrt"]; });
  13623. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequentialSymlog", function() { return _sequential__WEBPACK_IMPORTED_MODULE_12__["sequentialSymlog"]; });
  13624. /* harmony import */ var _sequentialQuantile__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./sequentialQuantile */ "./node_modules/d3-scale/src/sequentialQuantile.js");
  13625. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequentialQuantile", function() { return _sequentialQuantile__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  13626. /* harmony import */ var _diverging__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diverging */ "./node_modules/d3-scale/src/diverging.js");
  13627. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDiverging", function() { return _diverging__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  13628. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDivergingLog", function() { return _diverging__WEBPACK_IMPORTED_MODULE_14__["divergingLog"]; });
  13629. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDivergingPow", function() { return _diverging__WEBPACK_IMPORTED_MODULE_14__["divergingPow"]; });
  13630. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDivergingSqrt", function() { return _diverging__WEBPACK_IMPORTED_MODULE_14__["divergingSqrt"]; });
  13631. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDivergingSymlog", function() { return _diverging__WEBPACK_IMPORTED_MODULE_14__["divergingSymlog"]; });
  13632. /* harmony import */ var _tickFormat__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./tickFormat */ "./node_modules/d3-scale/src/tickFormat.js");
  13633. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickFormat", function() { return _tickFormat__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  13634. /***/ }),
  13635. /***/ "./node_modules/d3-scale/src/init.js":
  13636. /*!*******************************************!*\
  13637. !*** ./node_modules/d3-scale/src/init.js ***!
  13638. \*******************************************/
  13639. /*! exports provided: initRange, initInterpolator */
  13640. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13641. "use strict";
  13642. __webpack_require__.r(__webpack_exports__);
  13643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initRange", function() { return initRange; });
  13644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initInterpolator", function() { return initInterpolator; });
  13645. function initRange(domain, range) {
  13646. switch (arguments.length) {
  13647. case 0: break;
  13648. case 1: this.range(domain); break;
  13649. default: this.range(range).domain(domain); break;
  13650. }
  13651. return this;
  13652. }
  13653. function initInterpolator(domain, interpolator) {
  13654. switch (arguments.length) {
  13655. case 0: break;
  13656. case 1: this.interpolator(domain); break;
  13657. default: this.interpolator(interpolator).domain(domain); break;
  13658. }
  13659. return this;
  13660. }
  13661. /***/ }),
  13662. /***/ "./node_modules/d3-scale/src/linear.js":
  13663. /*!*********************************************!*\
  13664. !*** ./node_modules/d3-scale/src/linear.js ***!
  13665. \*********************************************/
  13666. /*! exports provided: linearish, default */
  13667. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13668. "use strict";
  13669. __webpack_require__.r(__webpack_exports__);
  13670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linearish", function() { return linearish; });
  13671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return linear; });
  13672. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13673. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  13674. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  13675. /* harmony import */ var _tickFormat__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tickFormat */ "./node_modules/d3-scale/src/tickFormat.js");
  13676. function linearish(scale) {
  13677. var domain = scale.domain;
  13678. scale.ticks = function(count) {
  13679. var d = domain();
  13680. return Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["ticks"])(d[0], d[d.length - 1], count == null ? 10 : count);
  13681. };
  13682. scale.tickFormat = function(count, specifier) {
  13683. var d = domain();
  13684. return Object(_tickFormat__WEBPACK_IMPORTED_MODULE_3__["default"])(d[0], d[d.length - 1], count == null ? 10 : count, specifier);
  13685. };
  13686. scale.nice = function(count) {
  13687. if (count == null) count = 10;
  13688. var d = domain(),
  13689. i0 = 0,
  13690. i1 = d.length - 1,
  13691. start = d[i0],
  13692. stop = d[i1],
  13693. step;
  13694. if (stop < start) {
  13695. step = start, start = stop, stop = step;
  13696. step = i0, i0 = i1, i1 = step;
  13697. }
  13698. step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count);
  13699. if (step > 0) {
  13700. start = Math.floor(start / step) * step;
  13701. stop = Math.ceil(stop / step) * step;
  13702. step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count);
  13703. } else if (step < 0) {
  13704. start = Math.ceil(start * step) / step;
  13705. stop = Math.floor(stop * step) / step;
  13706. step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count);
  13707. }
  13708. if (step > 0) {
  13709. d[i0] = Math.floor(start / step) * step;
  13710. d[i1] = Math.ceil(stop / step) * step;
  13711. domain(d);
  13712. } else if (step < 0) {
  13713. d[i0] = Math.ceil(start * step) / step;
  13714. d[i1] = Math.floor(stop * step) / step;
  13715. domain(d);
  13716. }
  13717. return scale;
  13718. };
  13719. return scale;
  13720. }
  13721. function linear() {
  13722. var scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_1__["default"])(_continuous__WEBPACK_IMPORTED_MODULE_1__["identity"], _continuous__WEBPACK_IMPORTED_MODULE_1__["identity"]);
  13723. scale.copy = function() {
  13724. return Object(_continuous__WEBPACK_IMPORTED_MODULE_1__["copy"])(scale, linear());
  13725. };
  13726. _init__WEBPACK_IMPORTED_MODULE_2__["initRange"].apply(scale, arguments);
  13727. return linearish(scale);
  13728. }
  13729. /***/ }),
  13730. /***/ "./node_modules/d3-scale/src/log.js":
  13731. /*!******************************************!*\
  13732. !*** ./node_modules/d3-scale/src/log.js ***!
  13733. \******************************************/
  13734. /*! exports provided: loggish, default */
  13735. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13736. "use strict";
  13737. __webpack_require__.r(__webpack_exports__);
  13738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loggish", function() { return loggish; });
  13739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return log; });
  13740. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  13741. /* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/index.js");
  13742. /* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nice */ "./node_modules/d3-scale/src/nice.js");
  13743. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  13744. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  13745. function transformLog(x) {
  13746. return Math.log(x);
  13747. }
  13748. function transformExp(x) {
  13749. return Math.exp(x);
  13750. }
  13751. function transformLogn(x) {
  13752. return -Math.log(-x);
  13753. }
  13754. function transformExpn(x) {
  13755. return -Math.exp(-x);
  13756. }
  13757. function pow10(x) {
  13758. return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x;
  13759. }
  13760. function powp(base) {
  13761. return base === 10 ? pow10
  13762. : base === Math.E ? Math.exp
  13763. : function(x) { return Math.pow(base, x); };
  13764. }
  13765. function logp(base) {
  13766. return base === Math.E ? Math.log
  13767. : base === 10 && Math.log10
  13768. || base === 2 && Math.log2
  13769. || (base = Math.log(base), function(x) { return Math.log(x) / base; });
  13770. }
  13771. function reflect(f) {
  13772. return function(x) {
  13773. return -f(-x);
  13774. };
  13775. }
  13776. function loggish(transform) {
  13777. var scale = transform(transformLog, transformExp),
  13778. domain = scale.domain,
  13779. base = 10,
  13780. logs,
  13781. pows;
  13782. function rescale() {
  13783. logs = logp(base), pows = powp(base);
  13784. if (domain()[0] < 0) {
  13785. logs = reflect(logs), pows = reflect(pows);
  13786. transform(transformLogn, transformExpn);
  13787. } else {
  13788. transform(transformLog, transformExp);
  13789. }
  13790. return scale;
  13791. }
  13792. scale.base = function(_) {
  13793. return arguments.length ? (base = +_, rescale()) : base;
  13794. };
  13795. scale.domain = function(_) {
  13796. return arguments.length ? (domain(_), rescale()) : domain();
  13797. };
  13798. scale.ticks = function(count) {
  13799. var d = domain(),
  13800. u = d[0],
  13801. v = d[d.length - 1],
  13802. r;
  13803. if (r = v < u) i = u, u = v, v = i;
  13804. var i = logs(u),
  13805. j = logs(v),
  13806. p,
  13807. k,
  13808. t,
  13809. n = count == null ? 10 : +count,
  13810. z = [];
  13811. if (!(base % 1) && j - i < n) {
  13812. i = Math.round(i) - 1, j = Math.round(j) + 1;
  13813. if (u > 0) for (; i < j; ++i) {
  13814. for (k = 1, p = pows(i); k < base; ++k) {
  13815. t = p * k;
  13816. if (t < u) continue;
  13817. if (t > v) break;
  13818. z.push(t);
  13819. }
  13820. } else for (; i < j; ++i) {
  13821. for (k = base - 1, p = pows(i); k >= 1; --k) {
  13822. t = p * k;
  13823. if (t < u) continue;
  13824. if (t > v) break;
  13825. z.push(t);
  13826. }
  13827. }
  13828. } else {
  13829. z = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["ticks"])(i, j, Math.min(j - i, n)).map(pows);
  13830. }
  13831. return r ? z.reverse() : z;
  13832. };
  13833. scale.tickFormat = function(count, specifier) {
  13834. if (specifier == null) specifier = base === 10 ? ".0e" : ",";
  13835. if (typeof specifier !== "function") specifier = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["format"])(specifier);
  13836. if (count === Infinity) return specifier;
  13837. if (count == null) count = 10;
  13838. var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate?
  13839. return function(d) {
  13840. var i = d / pows(Math.round(logs(d)));
  13841. if (i * base < base - 0.5) i *= base;
  13842. return i <= k ? specifier(d) : "";
  13843. };
  13844. };
  13845. scale.nice = function() {
  13846. return domain(Object(_nice__WEBPACK_IMPORTED_MODULE_2__["default"])(domain(), {
  13847. floor: function(x) { return pows(Math.floor(logs(x))); },
  13848. ceil: function(x) { return pows(Math.ceil(logs(x))); }
  13849. }));
  13850. };
  13851. return scale;
  13852. }
  13853. function log() {
  13854. var scale = loggish(Object(_continuous__WEBPACK_IMPORTED_MODULE_3__["transformer"])()).domain([1, 10]);
  13855. scale.copy = function() {
  13856. return Object(_continuous__WEBPACK_IMPORTED_MODULE_3__["copy"])(scale, log()).base(scale.base());
  13857. };
  13858. _init__WEBPACK_IMPORTED_MODULE_4__["initRange"].apply(scale, arguments);
  13859. return scale;
  13860. }
  13861. /***/ }),
  13862. /***/ "./node_modules/d3-scale/src/nice.js":
  13863. /*!*******************************************!*\
  13864. !*** ./node_modules/d3-scale/src/nice.js ***!
  13865. \*******************************************/
  13866. /*! exports provided: default */
  13867. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13868. "use strict";
  13869. __webpack_require__.r(__webpack_exports__);
  13870. /* harmony default export */ __webpack_exports__["default"] = (function(domain, interval) {
  13871. domain = domain.slice();
  13872. var i0 = 0,
  13873. i1 = domain.length - 1,
  13874. x0 = domain[i0],
  13875. x1 = domain[i1],
  13876. t;
  13877. if (x1 < x0) {
  13878. t = i0, i0 = i1, i1 = t;
  13879. t = x0, x0 = x1, x1 = t;
  13880. }
  13881. domain[i0] = interval.floor(x0);
  13882. domain[i1] = interval.ceil(x1);
  13883. return domain;
  13884. });
  13885. /***/ }),
  13886. /***/ "./node_modules/d3-scale/src/number.js":
  13887. /*!*********************************************!*\
  13888. !*** ./node_modules/d3-scale/src/number.js ***!
  13889. \*********************************************/
  13890. /*! exports provided: default */
  13891. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13892. "use strict";
  13893. __webpack_require__.r(__webpack_exports__);
  13894. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  13895. return +x;
  13896. });
  13897. /***/ }),
  13898. /***/ "./node_modules/d3-scale/src/ordinal.js":
  13899. /*!**********************************************!*\
  13900. !*** ./node_modules/d3-scale/src/ordinal.js ***!
  13901. \**********************************************/
  13902. /*! exports provided: implicit, default */
  13903. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13904. "use strict";
  13905. __webpack_require__.r(__webpack_exports__);
  13906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "implicit", function() { return implicit; });
  13907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ordinal; });
  13908. /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/src/index.js");
  13909. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  13910. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  13911. var implicit = {name: "implicit"};
  13912. function ordinal() {
  13913. var index = Object(d3_collection__WEBPACK_IMPORTED_MODULE_0__["map"])(),
  13914. domain = [],
  13915. range = [],
  13916. unknown = implicit;
  13917. function scale(d) {
  13918. var key = d + "", i = index.get(key);
  13919. if (!i) {
  13920. if (unknown !== implicit) return unknown;
  13921. index.set(key, i = domain.push(d));
  13922. }
  13923. return range[(i - 1) % range.length];
  13924. }
  13925. scale.domain = function(_) {
  13926. if (!arguments.length) return domain.slice();
  13927. domain = [], index = Object(d3_collection__WEBPACK_IMPORTED_MODULE_0__["map"])();
  13928. var i = -1, n = _.length, d, key;
  13929. while (++i < n) if (!index.has(key = (d = _[i]) + "")) index.set(key, domain.push(d));
  13930. return scale;
  13931. };
  13932. scale.range = function(_) {
  13933. return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), scale) : range.slice();
  13934. };
  13935. scale.unknown = function(_) {
  13936. return arguments.length ? (unknown = _, scale) : unknown;
  13937. };
  13938. scale.copy = function() {
  13939. return ordinal(domain, range).unknown(unknown);
  13940. };
  13941. _init__WEBPACK_IMPORTED_MODULE_2__["initRange"].apply(scale, arguments);
  13942. return scale;
  13943. }
  13944. /***/ }),
  13945. /***/ "./node_modules/d3-scale/src/pow.js":
  13946. /*!******************************************!*\
  13947. !*** ./node_modules/d3-scale/src/pow.js ***!
  13948. \******************************************/
  13949. /*! exports provided: powish, default, sqrt */
  13950. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13951. "use strict";
  13952. __webpack_require__.r(__webpack_exports__);
  13953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "powish", function() { return powish; });
  13954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return pow; });
  13955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sqrt", function() { return sqrt; });
  13956. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  13957. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  13958. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  13959. function transformPow(exponent) {
  13960. return function(x) {
  13961. return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);
  13962. };
  13963. }
  13964. function transformSqrt(x) {
  13965. return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x);
  13966. }
  13967. function transformSquare(x) {
  13968. return x < 0 ? -x * x : x * x;
  13969. }
  13970. function powish(transform) {
  13971. var scale = transform(_continuous__WEBPACK_IMPORTED_MODULE_1__["identity"], _continuous__WEBPACK_IMPORTED_MODULE_1__["identity"]),
  13972. exponent = 1;
  13973. function rescale() {
  13974. return exponent === 1 ? transform(_continuous__WEBPACK_IMPORTED_MODULE_1__["identity"], _continuous__WEBPACK_IMPORTED_MODULE_1__["identity"])
  13975. : exponent === 0.5 ? transform(transformSqrt, transformSquare)
  13976. : transform(transformPow(exponent), transformPow(1 / exponent));
  13977. }
  13978. scale.exponent = function(_) {
  13979. return arguments.length ? (exponent = +_, rescale()) : exponent;
  13980. };
  13981. return Object(_linear__WEBPACK_IMPORTED_MODULE_0__["linearish"])(scale);
  13982. }
  13983. function pow() {
  13984. var scale = powish(Object(_continuous__WEBPACK_IMPORTED_MODULE_1__["transformer"])());
  13985. scale.copy = function() {
  13986. return Object(_continuous__WEBPACK_IMPORTED_MODULE_1__["copy"])(scale, pow()).exponent(scale.exponent());
  13987. };
  13988. _init__WEBPACK_IMPORTED_MODULE_2__["initRange"].apply(scale, arguments);
  13989. return scale;
  13990. }
  13991. function sqrt() {
  13992. return pow.apply(null, arguments).exponent(0.5);
  13993. }
  13994. /***/ }),
  13995. /***/ "./node_modules/d3-scale/src/quantile.js":
  13996. /*!***********************************************!*\
  13997. !*** ./node_modules/d3-scale/src/quantile.js ***!
  13998. \***********************************************/
  13999. /*! exports provided: default */
  14000. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14001. "use strict";
  14002. __webpack_require__.r(__webpack_exports__);
  14003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quantile; });
  14004. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  14005. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  14006. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  14007. function quantile() {
  14008. var domain = [],
  14009. range = [],
  14010. thresholds = [],
  14011. unknown;
  14012. function rescale() {
  14013. var i = 0, n = Math.max(1, range.length);
  14014. thresholds = new Array(n - 1);
  14015. while (++i < n) thresholds[i - 1] = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["quantile"])(domain, i / n);
  14016. return scale;
  14017. }
  14018. function scale(x) {
  14019. return isNaN(x = +x) ? unknown : range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(thresholds, x)];
  14020. }
  14021. scale.invertExtent = function(y) {
  14022. var i = range.indexOf(y);
  14023. return i < 0 ? [NaN, NaN] : [
  14024. i > 0 ? thresholds[i - 1] : domain[0],
  14025. i < thresholds.length ? thresholds[i] : domain[domain.length - 1]
  14026. ];
  14027. };
  14028. scale.domain = function(_) {
  14029. if (!arguments.length) return domain.slice();
  14030. domain = [];
  14031. for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);
  14032. domain.sort(d3_array__WEBPACK_IMPORTED_MODULE_0__["ascending"]);
  14033. return rescale();
  14034. };
  14035. scale.range = function(_) {
  14036. return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), rescale()) : range.slice();
  14037. };
  14038. scale.unknown = function(_) {
  14039. return arguments.length ? (unknown = _, scale) : unknown;
  14040. };
  14041. scale.quantiles = function() {
  14042. return thresholds.slice();
  14043. };
  14044. scale.copy = function() {
  14045. return quantile()
  14046. .domain(domain)
  14047. .range(range)
  14048. .unknown(unknown);
  14049. };
  14050. return _init__WEBPACK_IMPORTED_MODULE_2__["initRange"].apply(scale, arguments);
  14051. }
  14052. /***/ }),
  14053. /***/ "./node_modules/d3-scale/src/quantize.js":
  14054. /*!***********************************************!*\
  14055. !*** ./node_modules/d3-scale/src/quantize.js ***!
  14056. \***********************************************/
  14057. /*! exports provided: default */
  14058. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14059. "use strict";
  14060. __webpack_require__.r(__webpack_exports__);
  14061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quantize; });
  14062. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  14063. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  14064. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  14065. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  14066. function quantize() {
  14067. var x0 = 0,
  14068. x1 = 1,
  14069. n = 1,
  14070. domain = [0.5],
  14071. range = [0, 1],
  14072. unknown;
  14073. function scale(x) {
  14074. return x <= x ? range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 0, n)] : unknown;
  14075. }
  14076. function rescale() {
  14077. var i = -1;
  14078. domain = new Array(n);
  14079. while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1);
  14080. return scale;
  14081. }
  14082. scale.domain = function(_) {
  14083. return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1];
  14084. };
  14085. scale.range = function(_) {
  14086. return arguments.length ? (n = (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_)).length - 1, rescale()) : range.slice();
  14087. };
  14088. scale.invertExtent = function(y) {
  14089. var i = range.indexOf(y);
  14090. return i < 0 ? [NaN, NaN]
  14091. : i < 1 ? [x0, domain[0]]
  14092. : i >= n ? [domain[n - 1], x1]
  14093. : [domain[i - 1], domain[i]];
  14094. };
  14095. scale.unknown = function(_) {
  14096. return arguments.length ? (unknown = _, scale) : scale;
  14097. };
  14098. scale.thresholds = function() {
  14099. return domain.slice();
  14100. };
  14101. scale.copy = function() {
  14102. return quantize()
  14103. .domain([x0, x1])
  14104. .range(range)
  14105. .unknown(unknown);
  14106. };
  14107. return _init__WEBPACK_IMPORTED_MODULE_3__["initRange"].apply(Object(_linear__WEBPACK_IMPORTED_MODULE_2__["linearish"])(scale), arguments);
  14108. }
  14109. /***/ }),
  14110. /***/ "./node_modules/d3-scale/src/sequential.js":
  14111. /*!*************************************************!*\
  14112. !*** ./node_modules/d3-scale/src/sequential.js ***!
  14113. \*************************************************/
  14114. /*! exports provided: copy, default, sequentialLog, sequentialSymlog, sequentialPow, sequentialSqrt */
  14115. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14116. "use strict";
  14117. __webpack_require__.r(__webpack_exports__);
  14118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copy", function() { return copy; });
  14119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return sequential; });
  14120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sequentialLog", function() { return sequentialLog; });
  14121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sequentialSymlog", function() { return sequentialSymlog; });
  14122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sequentialPow", function() { return sequentialPow; });
  14123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sequentialSqrt", function() { return sequentialSqrt; });
  14124. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  14125. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  14126. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  14127. /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "./node_modules/d3-scale/src/log.js");
  14128. /* harmony import */ var _symlog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./symlog */ "./node_modules/d3-scale/src/symlog.js");
  14129. /* harmony import */ var _pow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pow */ "./node_modules/d3-scale/src/pow.js");
  14130. function transformer() {
  14131. var x0 = 0,
  14132. x1 = 1,
  14133. t0,
  14134. t1,
  14135. k10,
  14136. transform,
  14137. interpolator = _continuous__WEBPACK_IMPORTED_MODULE_0__["identity"],
  14138. clamp = false,
  14139. unknown;
  14140. function scale(x) {
  14141. return isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x));
  14142. }
  14143. scale.domain = function(_) {
  14144. return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1];
  14145. };
  14146. scale.clamp = function(_) {
  14147. return arguments.length ? (clamp = !!_, scale) : clamp;
  14148. };
  14149. scale.interpolator = function(_) {
  14150. return arguments.length ? (interpolator = _, scale) : interpolator;
  14151. };
  14152. scale.unknown = function(_) {
  14153. return arguments.length ? (unknown = _, scale) : unknown;
  14154. };
  14155. return function(t) {
  14156. transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0);
  14157. return scale;
  14158. };
  14159. }
  14160. function copy(source, target) {
  14161. return target
  14162. .domain(source.domain())
  14163. .interpolator(source.interpolator())
  14164. .clamp(source.clamp())
  14165. .unknown(source.unknown());
  14166. }
  14167. function sequential() {
  14168. var scale = Object(_linear__WEBPACK_IMPORTED_MODULE_2__["linearish"])(transformer()(_continuous__WEBPACK_IMPORTED_MODULE_0__["identity"]));
  14169. scale.copy = function() {
  14170. return copy(scale, sequential());
  14171. };
  14172. return _init__WEBPACK_IMPORTED_MODULE_1__["initInterpolator"].apply(scale, arguments);
  14173. }
  14174. function sequentialLog() {
  14175. var scale = Object(_log__WEBPACK_IMPORTED_MODULE_3__["loggish"])(transformer()).domain([1, 10]);
  14176. scale.copy = function() {
  14177. return copy(scale, sequentialLog()).base(scale.base());
  14178. };
  14179. return _init__WEBPACK_IMPORTED_MODULE_1__["initInterpolator"].apply(scale, arguments);
  14180. }
  14181. function sequentialSymlog() {
  14182. var scale = Object(_symlog__WEBPACK_IMPORTED_MODULE_4__["symlogish"])(transformer());
  14183. scale.copy = function() {
  14184. return copy(scale, sequentialSymlog()).constant(scale.constant());
  14185. };
  14186. return _init__WEBPACK_IMPORTED_MODULE_1__["initInterpolator"].apply(scale, arguments);
  14187. }
  14188. function sequentialPow() {
  14189. var scale = Object(_pow__WEBPACK_IMPORTED_MODULE_5__["powish"])(transformer());
  14190. scale.copy = function() {
  14191. return copy(scale, sequentialPow()).exponent(scale.exponent());
  14192. };
  14193. return _init__WEBPACK_IMPORTED_MODULE_1__["initInterpolator"].apply(scale, arguments);
  14194. }
  14195. function sequentialSqrt() {
  14196. return sequentialPow.apply(null, arguments).exponent(0.5);
  14197. }
  14198. /***/ }),
  14199. /***/ "./node_modules/d3-scale/src/sequentialQuantile.js":
  14200. /*!*********************************************************!*\
  14201. !*** ./node_modules/d3-scale/src/sequentialQuantile.js ***!
  14202. \*********************************************************/
  14203. /*! exports provided: default */
  14204. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14205. "use strict";
  14206. __webpack_require__.r(__webpack_exports__);
  14207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return sequentialQuantile; });
  14208. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  14209. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  14210. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  14211. function sequentialQuantile() {
  14212. var domain = [],
  14213. interpolator = _continuous__WEBPACK_IMPORTED_MODULE_1__["identity"];
  14214. function scale(x) {
  14215. if (!isNaN(x = +x)) return interpolator((Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x) - 1) / (domain.length - 1));
  14216. }
  14217. scale.domain = function(_) {
  14218. if (!arguments.length) return domain.slice();
  14219. domain = [];
  14220. for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);
  14221. domain.sort(d3_array__WEBPACK_IMPORTED_MODULE_0__["ascending"]);
  14222. return scale;
  14223. };
  14224. scale.interpolator = function(_) {
  14225. return arguments.length ? (interpolator = _, scale) : interpolator;
  14226. };
  14227. scale.copy = function() {
  14228. return sequentialQuantile(interpolator).domain(domain);
  14229. };
  14230. return _init__WEBPACK_IMPORTED_MODULE_2__["initInterpolator"].apply(scale, arguments);
  14231. }
  14232. /***/ }),
  14233. /***/ "./node_modules/d3-scale/src/symlog.js":
  14234. /*!*********************************************!*\
  14235. !*** ./node_modules/d3-scale/src/symlog.js ***!
  14236. \*********************************************/
  14237. /*! exports provided: symlogish, default */
  14238. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14239. "use strict";
  14240. __webpack_require__.r(__webpack_exports__);
  14241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "symlogish", function() { return symlogish; });
  14242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return symlog; });
  14243. /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
  14244. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  14245. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  14246. function transformSymlog(c) {
  14247. return function(x) {
  14248. return Math.sign(x) * Math.log1p(Math.abs(x / c));
  14249. };
  14250. }
  14251. function transformSymexp(c) {
  14252. return function(x) {
  14253. return Math.sign(x) * Math.expm1(Math.abs(x)) * c;
  14254. };
  14255. }
  14256. function symlogish(transform) {
  14257. var c = 1, scale = transform(transformSymlog(c), transformSymexp(c));
  14258. scale.constant = function(_) {
  14259. return arguments.length ? transform(transformSymlog(c = +_), transformSymexp(c)) : c;
  14260. };
  14261. return Object(_linear__WEBPACK_IMPORTED_MODULE_0__["linearish"])(scale);
  14262. }
  14263. function symlog() {
  14264. var scale = symlogish(Object(_continuous__WEBPACK_IMPORTED_MODULE_1__["transformer"])());
  14265. scale.copy = function() {
  14266. return Object(_continuous__WEBPACK_IMPORTED_MODULE_1__["copy"])(scale, symlog()).constant(scale.constant());
  14267. };
  14268. return _init__WEBPACK_IMPORTED_MODULE_2__["initRange"].apply(scale, arguments);
  14269. }
  14270. /***/ }),
  14271. /***/ "./node_modules/d3-scale/src/threshold.js":
  14272. /*!************************************************!*\
  14273. !*** ./node_modules/d3-scale/src/threshold.js ***!
  14274. \************************************************/
  14275. /*! exports provided: 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__, "default", function() { return threshold; });
  14280. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  14281. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  14282. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  14283. function threshold() {
  14284. var domain = [0.5],
  14285. range = [0, 1],
  14286. unknown,
  14287. n = 1;
  14288. function scale(x) {
  14289. return x <= x ? range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 0, n)] : unknown;
  14290. }
  14291. scale.domain = function(_) {
  14292. return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice();
  14293. };
  14294. scale.range = function(_) {
  14295. return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice();
  14296. };
  14297. scale.invertExtent = function(y) {
  14298. var i = range.indexOf(y);
  14299. return [domain[i - 1], domain[i]];
  14300. };
  14301. scale.unknown = function(_) {
  14302. return arguments.length ? (unknown = _, scale) : unknown;
  14303. };
  14304. scale.copy = function() {
  14305. return threshold()
  14306. .domain(domain)
  14307. .range(range)
  14308. .unknown(unknown);
  14309. };
  14310. return _init__WEBPACK_IMPORTED_MODULE_2__["initRange"].apply(scale, arguments);
  14311. }
  14312. /***/ }),
  14313. /***/ "./node_modules/d3-scale/src/tickFormat.js":
  14314. /*!*************************************************!*\
  14315. !*** ./node_modules/d3-scale/src/tickFormat.js ***!
  14316. \*************************************************/
  14317. /*! exports provided: default */
  14318. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14319. "use strict";
  14320. __webpack_require__.r(__webpack_exports__);
  14321. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  14322. /* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/index.js");
  14323. /* harmony default export */ __webpack_exports__["default"] = (function(start, stop, count, specifier) {
  14324. var step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start, stop, count),
  14325. precision;
  14326. specifier = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["formatSpecifier"])(specifier == null ? ",f" : specifier);
  14327. switch (specifier.type) {
  14328. case "s": {
  14329. var value = Math.max(Math.abs(start), Math.abs(stop));
  14330. if (specifier.precision == null && !isNaN(precision = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["precisionPrefix"])(step, value))) specifier.precision = precision;
  14331. return Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["formatPrefix"])(specifier, value);
  14332. }
  14333. case "":
  14334. case "e":
  14335. case "g":
  14336. case "p":
  14337. case "r": {
  14338. 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");
  14339. break;
  14340. }
  14341. case "f":
  14342. case "%": {
  14343. if (specifier.precision == null && !isNaN(precision = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["precisionFixed"])(step))) specifier.precision = precision - (specifier.type === "%") * 2;
  14344. break;
  14345. }
  14346. }
  14347. return Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["format"])(specifier);
  14348. });
  14349. /***/ }),
  14350. /***/ "./node_modules/d3-scale/src/time.js":
  14351. /*!*******************************************!*\
  14352. !*** ./node_modules/d3-scale/src/time.js ***!
  14353. \*******************************************/
  14354. /*! exports provided: calendar, default */
  14355. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14356. "use strict";
  14357. __webpack_require__.r(__webpack_exports__);
  14358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calendar", function() { return calendar; });
  14359. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  14360. /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/index.js");
  14361. /* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time-format */ "./node_modules/d3-time-format/src/index.js");
  14362. /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
  14363. /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
  14364. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  14365. /* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nice */ "./node_modules/d3-scale/src/nice.js");
  14366. var durationSecond = 1000,
  14367. durationMinute = durationSecond * 60,
  14368. durationHour = durationMinute * 60,
  14369. durationDay = durationHour * 24,
  14370. durationWeek = durationDay * 7,
  14371. durationMonth = durationDay * 30,
  14372. durationYear = durationDay * 365;
  14373. function date(t) {
  14374. return new Date(t);
  14375. }
  14376. function number(t) {
  14377. return t instanceof Date ? +t : +new Date(+t);
  14378. }
  14379. function calendar(year, month, week, day, hour, minute, second, millisecond, format) {
  14380. var scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_4__["default"])(_continuous__WEBPACK_IMPORTED_MODULE_4__["identity"], _continuous__WEBPACK_IMPORTED_MODULE_4__["identity"]),
  14381. invert = scale.invert,
  14382. domain = scale.domain;
  14383. var formatMillisecond = format(".%L"),
  14384. formatSecond = format(":%S"),
  14385. formatMinute = format("%I:%M"),
  14386. formatHour = format("%I %p"),
  14387. formatDay = format("%a %d"),
  14388. formatWeek = format("%b %d"),
  14389. formatMonth = format("%B"),
  14390. formatYear = format("%Y");
  14391. var tickIntervals = [
  14392. [second, 1, durationSecond],
  14393. [second, 5, 5 * durationSecond],
  14394. [second, 15, 15 * durationSecond],
  14395. [second, 30, 30 * durationSecond],
  14396. [minute, 1, durationMinute],
  14397. [minute, 5, 5 * durationMinute],
  14398. [minute, 15, 15 * durationMinute],
  14399. [minute, 30, 30 * durationMinute],
  14400. [ hour, 1, durationHour ],
  14401. [ hour, 3, 3 * durationHour ],
  14402. [ hour, 6, 6 * durationHour ],
  14403. [ hour, 12, 12 * durationHour ],
  14404. [ day, 1, durationDay ],
  14405. [ day, 2, 2 * durationDay ],
  14406. [ week, 1, durationWeek ],
  14407. [ month, 1, durationMonth ],
  14408. [ month, 3, 3 * durationMonth ],
  14409. [ year, 1, durationYear ]
  14410. ];
  14411. function tickFormat(date) {
  14412. return (second(date) < date ? formatMillisecond
  14413. : minute(date) < date ? formatSecond
  14414. : hour(date) < date ? formatMinute
  14415. : day(date) < date ? formatHour
  14416. : month(date) < date ? (week(date) < date ? formatDay : formatWeek)
  14417. : year(date) < date ? formatMonth
  14418. : formatYear)(date);
  14419. }
  14420. function tickInterval(interval, start, stop, step) {
  14421. if (interval == null) interval = 10;
  14422. // If a desired tick count is specified, pick a reasonable tick interval
  14423. // based on the extent of the domain and a rough estimate of tick size.
  14424. // Otherwise, assume interval is already a time interval and use it.
  14425. if (typeof interval === "number") {
  14426. var target = Math.abs(stop - start) / interval,
  14427. i = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisector"])(function(i) { return i[2]; }).right(tickIntervals, target);
  14428. if (i === tickIntervals.length) {
  14429. step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start / durationYear, stop / durationYear, interval);
  14430. interval = year;
  14431. } else if (i) {
  14432. i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];
  14433. step = i[1];
  14434. interval = i[0];
  14435. } else {
  14436. step = Math.max(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start, stop, interval), 1);
  14437. interval = millisecond;
  14438. }
  14439. }
  14440. return step == null ? interval : interval.every(step);
  14441. }
  14442. scale.invert = function(y) {
  14443. return new Date(invert(y));
  14444. };
  14445. scale.domain = function(_) {
  14446. return arguments.length ? domain(_array__WEBPACK_IMPORTED_MODULE_3__["map"].call(_, number)) : domain().map(date);
  14447. };
  14448. scale.ticks = function(interval, step) {
  14449. var d = domain(),
  14450. t0 = d[0],
  14451. t1 = d[d.length - 1],
  14452. r = t1 < t0,
  14453. t;
  14454. if (r) t = t0, t0 = t1, t1 = t;
  14455. t = tickInterval(interval, t0, t1, step);
  14456. t = t ? t.range(t0, t1 + 1) : []; // inclusive stop
  14457. return r ? t.reverse() : t;
  14458. };
  14459. scale.tickFormat = function(count, specifier) {
  14460. return specifier == null ? tickFormat : format(specifier);
  14461. };
  14462. scale.nice = function(interval, step) {
  14463. var d = domain();
  14464. return (interval = tickInterval(interval, d[0], d[d.length - 1], step))
  14465. ? domain(Object(_nice__WEBPACK_IMPORTED_MODULE_6__["default"])(d, interval))
  14466. : scale;
  14467. };
  14468. scale.copy = function() {
  14469. return Object(_continuous__WEBPACK_IMPORTED_MODULE_4__["copy"])(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));
  14470. };
  14471. return scale;
  14472. }
  14473. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14474. return _init__WEBPACK_IMPORTED_MODULE_5__["initRange"].apply(calendar(d3_time__WEBPACK_IMPORTED_MODULE_1__["timeYear"], d3_time__WEBPACK_IMPORTED_MODULE_1__["timeMonth"], d3_time__WEBPACK_IMPORTED_MODULE_1__["timeWeek"], d3_time__WEBPACK_IMPORTED_MODULE_1__["timeDay"], d3_time__WEBPACK_IMPORTED_MODULE_1__["timeHour"], d3_time__WEBPACK_IMPORTED_MODULE_1__["timeMinute"], d3_time__WEBPACK_IMPORTED_MODULE_1__["timeSecond"], d3_time__WEBPACK_IMPORTED_MODULE_1__["timeMillisecond"], d3_time_format__WEBPACK_IMPORTED_MODULE_2__["timeFormat"]).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]), arguments);
  14475. });
  14476. /***/ }),
  14477. /***/ "./node_modules/d3-scale/src/utcTime.js":
  14478. /*!**********************************************!*\
  14479. !*** ./node_modules/d3-scale/src/utcTime.js ***!
  14480. \**********************************************/
  14481. /*! exports provided: default */
  14482. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14483. "use strict";
  14484. __webpack_require__.r(__webpack_exports__);
  14485. /* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./time */ "./node_modules/d3-scale/src/time.js");
  14486. /* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-time-format */ "./node_modules/d3-time-format/src/index.js");
  14487. /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/index.js");
  14488. /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./init */ "./node_modules/d3-scale/src/init.js");
  14489. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14490. return _init__WEBPACK_IMPORTED_MODULE_3__["initRange"].apply(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)]), arguments);
  14491. });
  14492. /***/ }),
  14493. /***/ "./node_modules/d3-selection/src/constant.js":
  14494. /*!***************************************************!*\
  14495. !*** ./node_modules/d3-selection/src/constant.js ***!
  14496. \***************************************************/
  14497. /*! exports provided: default */
  14498. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14499. "use strict";
  14500. __webpack_require__.r(__webpack_exports__);
  14501. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  14502. return function() {
  14503. return x;
  14504. };
  14505. });
  14506. /***/ }),
  14507. /***/ "./node_modules/d3-selection/src/create.js":
  14508. /*!*************************************************!*\
  14509. !*** ./node_modules/d3-selection/src/create.js ***!
  14510. \*************************************************/
  14511. /*! exports provided: default */
  14512. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14513. "use strict";
  14514. __webpack_require__.r(__webpack_exports__);
  14515. /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./creator */ "./node_modules/d3-selection/src/creator.js");
  14516. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./select */ "./node_modules/d3-selection/src/select.js");
  14517. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  14518. return Object(_select__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_creator__WEBPACK_IMPORTED_MODULE_0__["default"])(name).call(document.documentElement));
  14519. });
  14520. /***/ }),
  14521. /***/ "./node_modules/d3-selection/src/creator.js":
  14522. /*!**************************************************!*\
  14523. !*** ./node_modules/d3-selection/src/creator.js ***!
  14524. \**************************************************/
  14525. /*! exports provided: default */
  14526. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14527. "use strict";
  14528. __webpack_require__.r(__webpack_exports__);
  14529. /* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./namespace */ "./node_modules/d3-selection/src/namespace.js");
  14530. /* harmony import */ var _namespaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./namespaces */ "./node_modules/d3-selection/src/namespaces.js");
  14531. function creatorInherit(name) {
  14532. return function() {
  14533. var document = this.ownerDocument,
  14534. uri = this.namespaceURI;
  14535. return uri === _namespaces__WEBPACK_IMPORTED_MODULE_1__["xhtml"] && document.documentElement.namespaceURI === _namespaces__WEBPACK_IMPORTED_MODULE_1__["xhtml"]
  14536. ? document.createElement(name)
  14537. : document.createElementNS(uri, name);
  14538. };
  14539. }
  14540. function creatorFixed(fullname) {
  14541. return function() {
  14542. return this.ownerDocument.createElementNS(fullname.space, fullname.local);
  14543. };
  14544. }
  14545. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  14546. var fullname = Object(_namespace__WEBPACK_IMPORTED_MODULE_0__["default"])(name);
  14547. return (fullname.local
  14548. ? creatorFixed
  14549. : creatorInherit)(fullname);
  14550. });
  14551. /***/ }),
  14552. /***/ "./node_modules/d3-selection/src/index.js":
  14553. /*!************************************************!*\
  14554. !*** ./node_modules/d3-selection/src/index.js ***!
  14555. \************************************************/
  14556. /*! exports provided: create, creator, local, matcher, mouse, namespace, namespaces, clientPoint, select, selectAll, selection, selector, selectorAll, style, touch, touches, window, event, customEvent */
  14557. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14558. "use strict";
  14559. __webpack_require__.r(__webpack_exports__);
  14560. /* harmony import */ var _create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./create */ "./node_modules/d3-selection/src/create.js");
  14561. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "create", function() { return _create__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  14562. /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./creator */ "./node_modules/d3-selection/src/creator.js");
  14563. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "creator", function() { return _creator__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  14564. /* harmony import */ var _local__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./local */ "./node_modules/d3-selection/src/local.js");
  14565. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "local", function() { return _local__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  14566. /* harmony import */ var _matcher__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./matcher */ "./node_modules/d3-selection/src/matcher.js");
  14567. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "matcher", function() { return _matcher__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  14568. /* harmony import */ var _mouse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mouse */ "./node_modules/d3-selection/src/mouse.js");
  14569. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mouse", function() { return _mouse__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  14570. /* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./namespace */ "./node_modules/d3-selection/src/namespace.js");
  14571. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "namespace", function() { return _namespace__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  14572. /* harmony import */ var _namespaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./namespaces */ "./node_modules/d3-selection/src/namespaces.js");
  14573. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "namespaces", function() { return _namespaces__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  14574. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js");
  14575. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clientPoint", function() { return _point__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  14576. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./select */ "./node_modules/d3-selection/src/select.js");
  14577. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return _select__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  14578. /* harmony import */ var _selectAll__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./selectAll */ "./node_modules/d3-selection/src/selectAll.js");
  14579. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectAll", function() { return _selectAll__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  14580. /* harmony import */ var _selection_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./selection/index */ "./node_modules/d3-selection/src/selection/index.js");
  14581. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selection", function() { return _selection_index__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  14582. /* harmony import */ var _selector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./selector */ "./node_modules/d3-selection/src/selector.js");
  14583. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selector", function() { return _selector__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  14584. /* harmony import */ var _selectorAll__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./selectorAll */ "./node_modules/d3-selection/src/selectorAll.js");
  14585. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectorAll", function() { return _selectorAll__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  14586. /* harmony import */ var _selection_style__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./selection/style */ "./node_modules/d3-selection/src/selection/style.js");
  14587. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "style", function() { return _selection_style__WEBPACK_IMPORTED_MODULE_13__["styleValue"]; });
  14588. /* harmony import */ var _touch__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./touch */ "./node_modules/d3-selection/src/touch.js");
  14589. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "touch", function() { return _touch__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  14590. /* harmony import */ var _touches__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./touches */ "./node_modules/d3-selection/src/touches.js");
  14591. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "touches", function() { return _touches__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  14592. /* harmony import */ var _window__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./window */ "./node_modules/d3-selection/src/window.js");
  14593. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "window", function() { return _window__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  14594. /* harmony import */ var _selection_on__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./selection/on */ "./node_modules/d3-selection/src/selection/on.js");
  14595. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "event", function() { return _selection_on__WEBPACK_IMPORTED_MODULE_17__["event"]; });
  14596. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "customEvent", function() { return _selection_on__WEBPACK_IMPORTED_MODULE_17__["customEvent"]; });
  14597. /***/ }),
  14598. /***/ "./node_modules/d3-selection/src/local.js":
  14599. /*!************************************************!*\
  14600. !*** ./node_modules/d3-selection/src/local.js ***!
  14601. \************************************************/
  14602. /*! exports provided: default */
  14603. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14604. "use strict";
  14605. __webpack_require__.r(__webpack_exports__);
  14606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return local; });
  14607. var nextId = 0;
  14608. function local() {
  14609. return new Local;
  14610. }
  14611. function Local() {
  14612. this._ = "@" + (++nextId).toString(36);
  14613. }
  14614. Local.prototype = local.prototype = {
  14615. constructor: Local,
  14616. get: function(node) {
  14617. var id = this._;
  14618. while (!(id in node)) if (!(node = node.parentNode)) return;
  14619. return node[id];
  14620. },
  14621. set: function(node, value) {
  14622. return node[this._] = value;
  14623. },
  14624. remove: function(node) {
  14625. return this._ in node && delete node[this._];
  14626. },
  14627. toString: function() {
  14628. return this._;
  14629. }
  14630. };
  14631. /***/ }),
  14632. /***/ "./node_modules/d3-selection/src/matcher.js":
  14633. /*!**************************************************!*\
  14634. !*** ./node_modules/d3-selection/src/matcher.js ***!
  14635. \**************************************************/
  14636. /*! exports provided: default */
  14637. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14638. "use strict";
  14639. __webpack_require__.r(__webpack_exports__);
  14640. /* harmony default export */ __webpack_exports__["default"] = (function(selector) {
  14641. return function() {
  14642. return this.matches(selector);
  14643. };
  14644. });
  14645. /***/ }),
  14646. /***/ "./node_modules/d3-selection/src/mouse.js":
  14647. /*!************************************************!*\
  14648. !*** ./node_modules/d3-selection/src/mouse.js ***!
  14649. \************************************************/
  14650. /*! exports provided: default */
  14651. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14652. "use strict";
  14653. __webpack_require__.r(__webpack_exports__);
  14654. /* harmony import */ var _sourceEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sourceEvent */ "./node_modules/d3-selection/src/sourceEvent.js");
  14655. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js");
  14656. /* harmony default export */ __webpack_exports__["default"] = (function(node) {
  14657. var event = Object(_sourceEvent__WEBPACK_IMPORTED_MODULE_0__["default"])();
  14658. if (event.changedTouches) event = event.changedTouches[0];
  14659. return Object(_point__WEBPACK_IMPORTED_MODULE_1__["default"])(node, event);
  14660. });
  14661. /***/ }),
  14662. /***/ "./node_modules/d3-selection/src/namespace.js":
  14663. /*!****************************************************!*\
  14664. !*** ./node_modules/d3-selection/src/namespace.js ***!
  14665. \****************************************************/
  14666. /*! exports provided: default */
  14667. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14668. "use strict";
  14669. __webpack_require__.r(__webpack_exports__);
  14670. /* harmony import */ var _namespaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./namespaces */ "./node_modules/d3-selection/src/namespaces.js");
  14671. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  14672. var prefix = name += "", i = prefix.indexOf(":");
  14673. if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1);
  14674. return _namespaces__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProperty(prefix) ? {space: _namespaces__WEBPACK_IMPORTED_MODULE_0__["default"][prefix], local: name} : name;
  14675. });
  14676. /***/ }),
  14677. /***/ "./node_modules/d3-selection/src/namespaces.js":
  14678. /*!*****************************************************!*\
  14679. !*** ./node_modules/d3-selection/src/namespaces.js ***!
  14680. \*****************************************************/
  14681. /*! exports provided: xhtml, default */
  14682. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14683. "use strict";
  14684. __webpack_require__.r(__webpack_exports__);
  14685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xhtml", function() { return xhtml; });
  14686. var xhtml = "http://www.w3.org/1999/xhtml";
  14687. /* harmony default export */ __webpack_exports__["default"] = ({
  14688. svg: "http://www.w3.org/2000/svg",
  14689. xhtml: xhtml,
  14690. xlink: "http://www.w3.org/1999/xlink",
  14691. xml: "http://www.w3.org/XML/1998/namespace",
  14692. xmlns: "http://www.w3.org/2000/xmlns/"
  14693. });
  14694. /***/ }),
  14695. /***/ "./node_modules/d3-selection/src/point.js":
  14696. /*!************************************************!*\
  14697. !*** ./node_modules/d3-selection/src/point.js ***!
  14698. \************************************************/
  14699. /*! exports provided: default */
  14700. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14701. "use strict";
  14702. __webpack_require__.r(__webpack_exports__);
  14703. /* harmony default export */ __webpack_exports__["default"] = (function(node, event) {
  14704. var svg = node.ownerSVGElement || node;
  14705. if (svg.createSVGPoint) {
  14706. var point = svg.createSVGPoint();
  14707. point.x = event.clientX, point.y = event.clientY;
  14708. point = point.matrixTransform(node.getScreenCTM().inverse());
  14709. return [point.x, point.y];
  14710. }
  14711. var rect = node.getBoundingClientRect();
  14712. return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];
  14713. });
  14714. /***/ }),
  14715. /***/ "./node_modules/d3-selection/src/select.js":
  14716. /*!*************************************************!*\
  14717. !*** ./node_modules/d3-selection/src/select.js ***!
  14718. \*************************************************/
  14719. /*! exports provided: default */
  14720. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14721. "use strict";
  14722. __webpack_require__.r(__webpack_exports__);
  14723. /* harmony import */ var _selection_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selection/index */ "./node_modules/d3-selection/src/selection/index.js");
  14724. /* harmony default export */ __webpack_exports__["default"] = (function(selector) {
  14725. return typeof selector === "string"
  14726. ? new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([[document.querySelector(selector)]], [document.documentElement])
  14727. : new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([[selector]], _selection_index__WEBPACK_IMPORTED_MODULE_0__["root"]);
  14728. });
  14729. /***/ }),
  14730. /***/ "./node_modules/d3-selection/src/selectAll.js":
  14731. /*!****************************************************!*\
  14732. !*** ./node_modules/d3-selection/src/selectAll.js ***!
  14733. \****************************************************/
  14734. /*! exports provided: default */
  14735. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14736. "use strict";
  14737. __webpack_require__.r(__webpack_exports__);
  14738. /* harmony import */ var _selection_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selection/index */ "./node_modules/d3-selection/src/selection/index.js");
  14739. /* harmony default export */ __webpack_exports__["default"] = (function(selector) {
  14740. return typeof selector === "string"
  14741. ? new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([document.querySelectorAll(selector)], [document.documentElement])
  14742. : new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([selector == null ? [] : selector], _selection_index__WEBPACK_IMPORTED_MODULE_0__["root"]);
  14743. });
  14744. /***/ }),
  14745. /***/ "./node_modules/d3-selection/src/selection/append.js":
  14746. /*!***********************************************************!*\
  14747. !*** ./node_modules/d3-selection/src/selection/append.js ***!
  14748. \***********************************************************/
  14749. /*! exports provided: default */
  14750. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14751. "use strict";
  14752. __webpack_require__.r(__webpack_exports__);
  14753. /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../creator */ "./node_modules/d3-selection/src/creator.js");
  14754. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  14755. var create = typeof name === "function" ? name : Object(_creator__WEBPACK_IMPORTED_MODULE_0__["default"])(name);
  14756. return this.select(function() {
  14757. return this.appendChild(create.apply(this, arguments));
  14758. });
  14759. });
  14760. /***/ }),
  14761. /***/ "./node_modules/d3-selection/src/selection/attr.js":
  14762. /*!*********************************************************!*\
  14763. !*** ./node_modules/d3-selection/src/selection/attr.js ***!
  14764. \*********************************************************/
  14765. /*! exports provided: default */
  14766. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14767. "use strict";
  14768. __webpack_require__.r(__webpack_exports__);
  14769. /* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../namespace */ "./node_modules/d3-selection/src/namespace.js");
  14770. function attrRemove(name) {
  14771. return function() {
  14772. this.removeAttribute(name);
  14773. };
  14774. }
  14775. function attrRemoveNS(fullname) {
  14776. return function() {
  14777. this.removeAttributeNS(fullname.space, fullname.local);
  14778. };
  14779. }
  14780. function attrConstant(name, value) {
  14781. return function() {
  14782. this.setAttribute(name, value);
  14783. };
  14784. }
  14785. function attrConstantNS(fullname, value) {
  14786. return function() {
  14787. this.setAttributeNS(fullname.space, fullname.local, value);
  14788. };
  14789. }
  14790. function attrFunction(name, value) {
  14791. return function() {
  14792. var v = value.apply(this, arguments);
  14793. if (v == null) this.removeAttribute(name);
  14794. else this.setAttribute(name, v);
  14795. };
  14796. }
  14797. function attrFunctionNS(fullname, value) {
  14798. return function() {
  14799. var v = value.apply(this, arguments);
  14800. if (v == null) this.removeAttributeNS(fullname.space, fullname.local);
  14801. else this.setAttributeNS(fullname.space, fullname.local, v);
  14802. };
  14803. }
  14804. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  14805. var fullname = Object(_namespace__WEBPACK_IMPORTED_MODULE_0__["default"])(name);
  14806. if (arguments.length < 2) {
  14807. var node = this.node();
  14808. return fullname.local
  14809. ? node.getAttributeNS(fullname.space, fullname.local)
  14810. : node.getAttribute(fullname);
  14811. }
  14812. return this.each((value == null
  14813. ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === "function"
  14814. ? (fullname.local ? attrFunctionNS : attrFunction)
  14815. : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));
  14816. });
  14817. /***/ }),
  14818. /***/ "./node_modules/d3-selection/src/selection/call.js":
  14819. /*!*********************************************************!*\
  14820. !*** ./node_modules/d3-selection/src/selection/call.js ***!
  14821. \*********************************************************/
  14822. /*! exports provided: default */
  14823. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14824. "use strict";
  14825. __webpack_require__.r(__webpack_exports__);
  14826. /* harmony default export */ __webpack_exports__["default"] = (function() {
  14827. var callback = arguments[0];
  14828. arguments[0] = this;
  14829. callback.apply(null, arguments);
  14830. return this;
  14831. });
  14832. /***/ }),
  14833. /***/ "./node_modules/d3-selection/src/selection/classed.js":
  14834. /*!************************************************************!*\
  14835. !*** ./node_modules/d3-selection/src/selection/classed.js ***!
  14836. \************************************************************/
  14837. /*! exports provided: default */
  14838. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14839. "use strict";
  14840. __webpack_require__.r(__webpack_exports__);
  14841. function classArray(string) {
  14842. return string.trim().split(/^|\s+/);
  14843. }
  14844. function classList(node) {
  14845. return node.classList || new ClassList(node);
  14846. }
  14847. function ClassList(node) {
  14848. this._node = node;
  14849. this._names = classArray(node.getAttribute("class") || "");
  14850. }
  14851. ClassList.prototype = {
  14852. add: function(name) {
  14853. var i = this._names.indexOf(name);
  14854. if (i < 0) {
  14855. this._names.push(name);
  14856. this._node.setAttribute("class", this._names.join(" "));
  14857. }
  14858. },
  14859. remove: function(name) {
  14860. var i = this._names.indexOf(name);
  14861. if (i >= 0) {
  14862. this._names.splice(i, 1);
  14863. this._node.setAttribute("class", this._names.join(" "));
  14864. }
  14865. },
  14866. contains: function(name) {
  14867. return this._names.indexOf(name) >= 0;
  14868. }
  14869. };
  14870. function classedAdd(node, names) {
  14871. var list = classList(node), i = -1, n = names.length;
  14872. while (++i < n) list.add(names[i]);
  14873. }
  14874. function classedRemove(node, names) {
  14875. var list = classList(node), i = -1, n = names.length;
  14876. while (++i < n) list.remove(names[i]);
  14877. }
  14878. function classedTrue(names) {
  14879. return function() {
  14880. classedAdd(this, names);
  14881. };
  14882. }
  14883. function classedFalse(names) {
  14884. return function() {
  14885. classedRemove(this, names);
  14886. };
  14887. }
  14888. function classedFunction(names, value) {
  14889. return function() {
  14890. (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);
  14891. };
  14892. }
  14893. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  14894. var names = classArray(name + "");
  14895. if (arguments.length < 2) {
  14896. var list = classList(this.node()), i = -1, n = names.length;
  14897. while (++i < n) if (!list.contains(names[i])) return false;
  14898. return true;
  14899. }
  14900. return this.each((typeof value === "function"
  14901. ? classedFunction : value
  14902. ? classedTrue
  14903. : classedFalse)(names, value));
  14904. });
  14905. /***/ }),
  14906. /***/ "./node_modules/d3-selection/src/selection/clone.js":
  14907. /*!**********************************************************!*\
  14908. !*** ./node_modules/d3-selection/src/selection/clone.js ***!
  14909. \**********************************************************/
  14910. /*! exports provided: default */
  14911. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14912. "use strict";
  14913. __webpack_require__.r(__webpack_exports__);
  14914. function selection_cloneShallow() {
  14915. var clone = this.cloneNode(false), parent = this.parentNode;
  14916. return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
  14917. }
  14918. function selection_cloneDeep() {
  14919. var clone = this.cloneNode(true), parent = this.parentNode;
  14920. return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
  14921. }
  14922. /* harmony default export */ __webpack_exports__["default"] = (function(deep) {
  14923. return this.select(deep ? selection_cloneDeep : selection_cloneShallow);
  14924. });
  14925. /***/ }),
  14926. /***/ "./node_modules/d3-selection/src/selection/data.js":
  14927. /*!*********************************************************!*\
  14928. !*** ./node_modules/d3-selection/src/selection/data.js ***!
  14929. \*********************************************************/
  14930. /*! exports provided: default */
  14931. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14932. "use strict";
  14933. __webpack_require__.r(__webpack_exports__);
  14934. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  14935. /* harmony import */ var _enter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./enter */ "./node_modules/d3-selection/src/selection/enter.js");
  14936. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constant */ "./node_modules/d3-selection/src/constant.js");
  14937. var keyPrefix = "$"; // Protect against keys like “__proto__”.
  14938. function bindIndex(parent, group, enter, update, exit, data) {
  14939. var i = 0,
  14940. node,
  14941. groupLength = group.length,
  14942. dataLength = data.length;
  14943. // Put any non-null nodes that fit into update.
  14944. // Put any null nodes into enter.
  14945. // Put any remaining data into enter.
  14946. for (; i < dataLength; ++i) {
  14947. if (node = group[i]) {
  14948. node.__data__ = data[i];
  14949. update[i] = node;
  14950. } else {
  14951. enter[i] = new _enter__WEBPACK_IMPORTED_MODULE_1__["EnterNode"](parent, data[i]);
  14952. }
  14953. }
  14954. // Put any non-null nodes that don’t fit into exit.
  14955. for (; i < groupLength; ++i) {
  14956. if (node = group[i]) {
  14957. exit[i] = node;
  14958. }
  14959. }
  14960. }
  14961. function bindKey(parent, group, enter, update, exit, data, key) {
  14962. var i,
  14963. node,
  14964. nodeByKeyValue = {},
  14965. groupLength = group.length,
  14966. dataLength = data.length,
  14967. keyValues = new Array(groupLength),
  14968. keyValue;
  14969. // Compute the key for each node.
  14970. // If multiple nodes have the same key, the duplicates are added to exit.
  14971. for (i = 0; i < groupLength; ++i) {
  14972. if (node = group[i]) {
  14973. keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);
  14974. if (keyValue in nodeByKeyValue) {
  14975. exit[i] = node;
  14976. } else {
  14977. nodeByKeyValue[keyValue] = node;
  14978. }
  14979. }
  14980. }
  14981. // Compute the key for each datum.
  14982. // If there a node associated with this key, join and add it to update.
  14983. // If there is not (or the key is a duplicate), add it to enter.
  14984. for (i = 0; i < dataLength; ++i) {
  14985. keyValue = keyPrefix + key.call(parent, data[i], i, data);
  14986. if (node = nodeByKeyValue[keyValue]) {
  14987. update[i] = node;
  14988. node.__data__ = data[i];
  14989. nodeByKeyValue[keyValue] = null;
  14990. } else {
  14991. enter[i] = new _enter__WEBPACK_IMPORTED_MODULE_1__["EnterNode"](parent, data[i]);
  14992. }
  14993. }
  14994. // Add any remaining nodes that were not bound to data to exit.
  14995. for (i = 0; i < groupLength; ++i) {
  14996. if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {
  14997. exit[i] = node;
  14998. }
  14999. }
  15000. }
  15001. /* harmony default export */ __webpack_exports__["default"] = (function(value, key) {
  15002. if (!value) {
  15003. data = new Array(this.size()), j = -1;
  15004. this.each(function(d) { data[++j] = d; });
  15005. return data;
  15006. }
  15007. var bind = key ? bindKey : bindIndex,
  15008. parents = this._parents,
  15009. groups = this._groups;
  15010. if (typeof value !== "function") value = Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(value);
  15011. for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {
  15012. var parent = parents[j],
  15013. group = groups[j],
  15014. groupLength = group.length,
  15015. data = value.call(parent, parent && parent.__data__, j, parents),
  15016. dataLength = data.length,
  15017. enterGroup = enter[j] = new Array(dataLength),
  15018. updateGroup = update[j] = new Array(dataLength),
  15019. exitGroup = exit[j] = new Array(groupLength);
  15020. bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);
  15021. // Now connect the enter nodes to their following update node, such that
  15022. // appendChild can insert the materialized enter node before this node,
  15023. // rather than at the end of the parent node.
  15024. for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {
  15025. if (previous = enterGroup[i0]) {
  15026. if (i0 >= i1) i1 = i0 + 1;
  15027. while (!(next = updateGroup[i1]) && ++i1 < dataLength);
  15028. previous._next = next || null;
  15029. }
  15030. }
  15031. }
  15032. update = new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](update, parents);
  15033. update._enter = enter;
  15034. update._exit = exit;
  15035. return update;
  15036. });
  15037. /***/ }),
  15038. /***/ "./node_modules/d3-selection/src/selection/datum.js":
  15039. /*!**********************************************************!*\
  15040. !*** ./node_modules/d3-selection/src/selection/datum.js ***!
  15041. \**********************************************************/
  15042. /*! exports provided: default */
  15043. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15044. "use strict";
  15045. __webpack_require__.r(__webpack_exports__);
  15046. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  15047. return arguments.length
  15048. ? this.property("__data__", value)
  15049. : this.node().__data__;
  15050. });
  15051. /***/ }),
  15052. /***/ "./node_modules/d3-selection/src/selection/dispatch.js":
  15053. /*!*************************************************************!*\
  15054. !*** ./node_modules/d3-selection/src/selection/dispatch.js ***!
  15055. \*************************************************************/
  15056. /*! exports provided: default */
  15057. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15058. "use strict";
  15059. __webpack_require__.r(__webpack_exports__);
  15060. /* harmony import */ var _window__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../window */ "./node_modules/d3-selection/src/window.js");
  15061. function dispatchEvent(node, type, params) {
  15062. var window = Object(_window__WEBPACK_IMPORTED_MODULE_0__["default"])(node),
  15063. event = window.CustomEvent;
  15064. if (typeof event === "function") {
  15065. event = new event(type, params);
  15066. } else {
  15067. event = window.document.createEvent("Event");
  15068. if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;
  15069. else event.initEvent(type, false, false);
  15070. }
  15071. node.dispatchEvent(event);
  15072. }
  15073. function dispatchConstant(type, params) {
  15074. return function() {
  15075. return dispatchEvent(this, type, params);
  15076. };
  15077. }
  15078. function dispatchFunction(type, params) {
  15079. return function() {
  15080. return dispatchEvent(this, type, params.apply(this, arguments));
  15081. };
  15082. }
  15083. /* harmony default export */ __webpack_exports__["default"] = (function(type, params) {
  15084. return this.each((typeof params === "function"
  15085. ? dispatchFunction
  15086. : dispatchConstant)(type, params));
  15087. });
  15088. /***/ }),
  15089. /***/ "./node_modules/d3-selection/src/selection/each.js":
  15090. /*!*********************************************************!*\
  15091. !*** ./node_modules/d3-selection/src/selection/each.js ***!
  15092. \*********************************************************/
  15093. /*! exports provided: default */
  15094. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15095. "use strict";
  15096. __webpack_require__.r(__webpack_exports__);
  15097. /* harmony default export */ __webpack_exports__["default"] = (function(callback) {
  15098. for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
  15099. for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {
  15100. if (node = group[i]) callback.call(node, node.__data__, i, group);
  15101. }
  15102. }
  15103. return this;
  15104. });
  15105. /***/ }),
  15106. /***/ "./node_modules/d3-selection/src/selection/empty.js":
  15107. /*!**********************************************************!*\
  15108. !*** ./node_modules/d3-selection/src/selection/empty.js ***!
  15109. \**********************************************************/
  15110. /*! exports provided: default */
  15111. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15112. "use strict";
  15113. __webpack_require__.r(__webpack_exports__);
  15114. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15115. return !this.node();
  15116. });
  15117. /***/ }),
  15118. /***/ "./node_modules/d3-selection/src/selection/enter.js":
  15119. /*!**********************************************************!*\
  15120. !*** ./node_modules/d3-selection/src/selection/enter.js ***!
  15121. \**********************************************************/
  15122. /*! exports provided: default, EnterNode */
  15123. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15124. "use strict";
  15125. __webpack_require__.r(__webpack_exports__);
  15126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnterNode", function() { return EnterNode; });
  15127. /* harmony import */ var _sparse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sparse */ "./node_modules/d3-selection/src/selection/sparse.js");
  15128. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  15129. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15130. return new _index__WEBPACK_IMPORTED_MODULE_1__["Selection"](this._enter || this._groups.map(_sparse__WEBPACK_IMPORTED_MODULE_0__["default"]), this._parents);
  15131. });
  15132. function EnterNode(parent, datum) {
  15133. this.ownerDocument = parent.ownerDocument;
  15134. this.namespaceURI = parent.namespaceURI;
  15135. this._next = null;
  15136. this._parent = parent;
  15137. this.__data__ = datum;
  15138. }
  15139. EnterNode.prototype = {
  15140. constructor: EnterNode,
  15141. appendChild: function(child) { return this._parent.insertBefore(child, this._next); },
  15142. insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },
  15143. querySelector: function(selector) { return this._parent.querySelector(selector); },
  15144. querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }
  15145. };
  15146. /***/ }),
  15147. /***/ "./node_modules/d3-selection/src/selection/exit.js":
  15148. /*!*********************************************************!*\
  15149. !*** ./node_modules/d3-selection/src/selection/exit.js ***!
  15150. \*********************************************************/
  15151. /*! exports provided: default */
  15152. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15153. "use strict";
  15154. __webpack_require__.r(__webpack_exports__);
  15155. /* harmony import */ var _sparse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sparse */ "./node_modules/d3-selection/src/selection/sparse.js");
  15156. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  15157. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15158. return new _index__WEBPACK_IMPORTED_MODULE_1__["Selection"](this._exit || this._groups.map(_sparse__WEBPACK_IMPORTED_MODULE_0__["default"]), this._parents);
  15159. });
  15160. /***/ }),
  15161. /***/ "./node_modules/d3-selection/src/selection/filter.js":
  15162. /*!***********************************************************!*\
  15163. !*** ./node_modules/d3-selection/src/selection/filter.js ***!
  15164. \***********************************************************/
  15165. /*! exports provided: default */
  15166. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15167. "use strict";
  15168. __webpack_require__.r(__webpack_exports__);
  15169. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  15170. /* harmony import */ var _matcher__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../matcher */ "./node_modules/d3-selection/src/matcher.js");
  15171. /* harmony default export */ __webpack_exports__["default"] = (function(match) {
  15172. if (typeof match !== "function") match = Object(_matcher__WEBPACK_IMPORTED_MODULE_1__["default"])(match);
  15173. for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
  15174. for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
  15175. if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
  15176. subgroup.push(node);
  15177. }
  15178. }
  15179. }
  15180. return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](subgroups, this._parents);
  15181. });
  15182. /***/ }),
  15183. /***/ "./node_modules/d3-selection/src/selection/html.js":
  15184. /*!*********************************************************!*\
  15185. !*** ./node_modules/d3-selection/src/selection/html.js ***!
  15186. \*********************************************************/
  15187. /*! exports provided: default */
  15188. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15189. "use strict";
  15190. __webpack_require__.r(__webpack_exports__);
  15191. function htmlRemove() {
  15192. this.innerHTML = "";
  15193. }
  15194. function htmlConstant(value) {
  15195. return function() {
  15196. this.innerHTML = value;
  15197. };
  15198. }
  15199. function htmlFunction(value) {
  15200. return function() {
  15201. var v = value.apply(this, arguments);
  15202. this.innerHTML = v == null ? "" : v;
  15203. };
  15204. }
  15205. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  15206. return arguments.length
  15207. ? this.each(value == null
  15208. ? htmlRemove : (typeof value === "function"
  15209. ? htmlFunction
  15210. : htmlConstant)(value))
  15211. : this.node().innerHTML;
  15212. });
  15213. /***/ }),
  15214. /***/ "./node_modules/d3-selection/src/selection/index.js":
  15215. /*!**********************************************************!*\
  15216. !*** ./node_modules/d3-selection/src/selection/index.js ***!
  15217. \**********************************************************/
  15218. /*! exports provided: root, Selection, default */
  15219. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15220. "use strict";
  15221. __webpack_require__.r(__webpack_exports__);
  15222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "root", function() { return root; });
  15223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Selection", function() { return Selection; });
  15224. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./select */ "./node_modules/d3-selection/src/selection/select.js");
  15225. /* harmony import */ var _selectAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./selectAll */ "./node_modules/d3-selection/src/selection/selectAll.js");
  15226. /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./filter */ "./node_modules/d3-selection/src/selection/filter.js");
  15227. /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./data */ "./node_modules/d3-selection/src/selection/data.js");
  15228. /* harmony import */ var _enter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./enter */ "./node_modules/d3-selection/src/selection/enter.js");
  15229. /* harmony import */ var _exit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./exit */ "./node_modules/d3-selection/src/selection/exit.js");
  15230. /* harmony import */ var _join__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./join */ "./node_modules/d3-selection/src/selection/join.js");
  15231. /* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./merge */ "./node_modules/d3-selection/src/selection/merge.js");
  15232. /* harmony import */ var _order__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./order */ "./node_modules/d3-selection/src/selection/order.js");
  15233. /* harmony import */ var _sort__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./sort */ "./node_modules/d3-selection/src/selection/sort.js");
  15234. /* harmony import */ var _call__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./call */ "./node_modules/d3-selection/src/selection/call.js");
  15235. /* harmony import */ var _nodes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./nodes */ "./node_modules/d3-selection/src/selection/nodes.js");
  15236. /* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./node */ "./node_modules/d3-selection/src/selection/node.js");
  15237. /* harmony import */ var _size__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./size */ "./node_modules/d3-selection/src/selection/size.js");
  15238. /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./empty */ "./node_modules/d3-selection/src/selection/empty.js");
  15239. /* harmony import */ var _each__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./each */ "./node_modules/d3-selection/src/selection/each.js");
  15240. /* harmony import */ var _attr__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./attr */ "./node_modules/d3-selection/src/selection/attr.js");
  15241. /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./style */ "./node_modules/d3-selection/src/selection/style.js");
  15242. /* harmony import */ var _property__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./property */ "./node_modules/d3-selection/src/selection/property.js");
  15243. /* harmony import */ var _classed__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./classed */ "./node_modules/d3-selection/src/selection/classed.js");
  15244. /* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./text */ "./node_modules/d3-selection/src/selection/text.js");
  15245. /* harmony import */ var _html__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./html */ "./node_modules/d3-selection/src/selection/html.js");
  15246. /* harmony import */ var _raise__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./raise */ "./node_modules/d3-selection/src/selection/raise.js");
  15247. /* harmony import */ var _lower__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./lower */ "./node_modules/d3-selection/src/selection/lower.js");
  15248. /* harmony import */ var _append__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./append */ "./node_modules/d3-selection/src/selection/append.js");
  15249. /* harmony import */ var _insert__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./insert */ "./node_modules/d3-selection/src/selection/insert.js");
  15250. /* harmony import */ var _remove__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./remove */ "./node_modules/d3-selection/src/selection/remove.js");
  15251. /* harmony import */ var _clone__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./clone */ "./node_modules/d3-selection/src/selection/clone.js");
  15252. /* harmony import */ var _datum__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./datum */ "./node_modules/d3-selection/src/selection/datum.js");
  15253. /* harmony import */ var _on__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./on */ "./node_modules/d3-selection/src/selection/on.js");
  15254. /* harmony import */ var _dispatch__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./dispatch */ "./node_modules/d3-selection/src/selection/dispatch.js");
  15255. var root = [null];
  15256. function Selection(groups, parents) {
  15257. this._groups = groups;
  15258. this._parents = parents;
  15259. }
  15260. function selection() {
  15261. return new Selection([[document.documentElement]], root);
  15262. }
  15263. Selection.prototype = selection.prototype = {
  15264. constructor: Selection,
  15265. select: _select__WEBPACK_IMPORTED_MODULE_0__["default"],
  15266. selectAll: _selectAll__WEBPACK_IMPORTED_MODULE_1__["default"],
  15267. filter: _filter__WEBPACK_IMPORTED_MODULE_2__["default"],
  15268. data: _data__WEBPACK_IMPORTED_MODULE_3__["default"],
  15269. enter: _enter__WEBPACK_IMPORTED_MODULE_4__["default"],
  15270. exit: _exit__WEBPACK_IMPORTED_MODULE_5__["default"],
  15271. join: _join__WEBPACK_IMPORTED_MODULE_6__["default"],
  15272. merge: _merge__WEBPACK_IMPORTED_MODULE_7__["default"],
  15273. order: _order__WEBPACK_IMPORTED_MODULE_8__["default"],
  15274. sort: _sort__WEBPACK_IMPORTED_MODULE_9__["default"],
  15275. call: _call__WEBPACK_IMPORTED_MODULE_10__["default"],
  15276. nodes: _nodes__WEBPACK_IMPORTED_MODULE_11__["default"],
  15277. node: _node__WEBPACK_IMPORTED_MODULE_12__["default"],
  15278. size: _size__WEBPACK_IMPORTED_MODULE_13__["default"],
  15279. empty: _empty__WEBPACK_IMPORTED_MODULE_14__["default"],
  15280. each: _each__WEBPACK_IMPORTED_MODULE_15__["default"],
  15281. attr: _attr__WEBPACK_IMPORTED_MODULE_16__["default"],
  15282. style: _style__WEBPACK_IMPORTED_MODULE_17__["default"],
  15283. property: _property__WEBPACK_IMPORTED_MODULE_18__["default"],
  15284. classed: _classed__WEBPACK_IMPORTED_MODULE_19__["default"],
  15285. text: _text__WEBPACK_IMPORTED_MODULE_20__["default"],
  15286. html: _html__WEBPACK_IMPORTED_MODULE_21__["default"],
  15287. raise: _raise__WEBPACK_IMPORTED_MODULE_22__["default"],
  15288. lower: _lower__WEBPACK_IMPORTED_MODULE_23__["default"],
  15289. append: _append__WEBPACK_IMPORTED_MODULE_24__["default"],
  15290. insert: _insert__WEBPACK_IMPORTED_MODULE_25__["default"],
  15291. remove: _remove__WEBPACK_IMPORTED_MODULE_26__["default"],
  15292. clone: _clone__WEBPACK_IMPORTED_MODULE_27__["default"],
  15293. datum: _datum__WEBPACK_IMPORTED_MODULE_28__["default"],
  15294. on: _on__WEBPACK_IMPORTED_MODULE_29__["default"],
  15295. dispatch: _dispatch__WEBPACK_IMPORTED_MODULE_30__["default"]
  15296. };
  15297. /* harmony default export */ __webpack_exports__["default"] = (selection);
  15298. /***/ }),
  15299. /***/ "./node_modules/d3-selection/src/selection/insert.js":
  15300. /*!***********************************************************!*\
  15301. !*** ./node_modules/d3-selection/src/selection/insert.js ***!
  15302. \***********************************************************/
  15303. /*! exports provided: default */
  15304. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15305. "use strict";
  15306. __webpack_require__.r(__webpack_exports__);
  15307. /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../creator */ "./node_modules/d3-selection/src/creator.js");
  15308. /* harmony import */ var _selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selector */ "./node_modules/d3-selection/src/selector.js");
  15309. function constantNull() {
  15310. return null;
  15311. }
  15312. /* harmony default export */ __webpack_exports__["default"] = (function(name, before) {
  15313. var create = typeof name === "function" ? name : Object(_creator__WEBPACK_IMPORTED_MODULE_0__["default"])(name),
  15314. select = before == null ? constantNull : typeof before === "function" ? before : Object(_selector__WEBPACK_IMPORTED_MODULE_1__["default"])(before);
  15315. return this.select(function() {
  15316. return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);
  15317. });
  15318. });
  15319. /***/ }),
  15320. /***/ "./node_modules/d3-selection/src/selection/join.js":
  15321. /*!*********************************************************!*\
  15322. !*** ./node_modules/d3-selection/src/selection/join.js ***!
  15323. \*********************************************************/
  15324. /*! exports provided: default */
  15325. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15326. "use strict";
  15327. __webpack_require__.r(__webpack_exports__);
  15328. /* harmony default export */ __webpack_exports__["default"] = (function(onenter, onupdate, onexit) {
  15329. var enter = this.enter(), update = this, exit = this.exit();
  15330. enter = typeof onenter === "function" ? onenter(enter) : enter.append(onenter + "");
  15331. if (onupdate != null) update = onupdate(update);
  15332. if (onexit == null) exit.remove(); else onexit(exit);
  15333. return enter && update ? enter.merge(update).order() : update;
  15334. });
  15335. /***/ }),
  15336. /***/ "./node_modules/d3-selection/src/selection/lower.js":
  15337. /*!**********************************************************!*\
  15338. !*** ./node_modules/d3-selection/src/selection/lower.js ***!
  15339. \**********************************************************/
  15340. /*! exports provided: default */
  15341. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15342. "use strict";
  15343. __webpack_require__.r(__webpack_exports__);
  15344. function lower() {
  15345. if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);
  15346. }
  15347. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15348. return this.each(lower);
  15349. });
  15350. /***/ }),
  15351. /***/ "./node_modules/d3-selection/src/selection/merge.js":
  15352. /*!**********************************************************!*\
  15353. !*** ./node_modules/d3-selection/src/selection/merge.js ***!
  15354. \**********************************************************/
  15355. /*! exports provided: default */
  15356. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15357. "use strict";
  15358. __webpack_require__.r(__webpack_exports__);
  15359. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  15360. /* harmony default export */ __webpack_exports__["default"] = (function(selection) {
  15361. 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) {
  15362. for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {
  15363. if (node = group0[i] || group1[i]) {
  15364. merge[i] = node;
  15365. }
  15366. }
  15367. }
  15368. for (; j < m0; ++j) {
  15369. merges[j] = groups0[j];
  15370. }
  15371. return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](merges, this._parents);
  15372. });
  15373. /***/ }),
  15374. /***/ "./node_modules/d3-selection/src/selection/node.js":
  15375. /*!*********************************************************!*\
  15376. !*** ./node_modules/d3-selection/src/selection/node.js ***!
  15377. \*********************************************************/
  15378. /*! exports provided: default */
  15379. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15380. "use strict";
  15381. __webpack_require__.r(__webpack_exports__);
  15382. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15383. for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {
  15384. for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {
  15385. var node = group[i];
  15386. if (node) return node;
  15387. }
  15388. }
  15389. return null;
  15390. });
  15391. /***/ }),
  15392. /***/ "./node_modules/d3-selection/src/selection/nodes.js":
  15393. /*!**********************************************************!*\
  15394. !*** ./node_modules/d3-selection/src/selection/nodes.js ***!
  15395. \**********************************************************/
  15396. /*! exports provided: default */
  15397. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15398. "use strict";
  15399. __webpack_require__.r(__webpack_exports__);
  15400. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15401. var nodes = new Array(this.size()), i = -1;
  15402. this.each(function() { nodes[++i] = this; });
  15403. return nodes;
  15404. });
  15405. /***/ }),
  15406. /***/ "./node_modules/d3-selection/src/selection/on.js":
  15407. /*!*******************************************************!*\
  15408. !*** ./node_modules/d3-selection/src/selection/on.js ***!
  15409. \*******************************************************/
  15410. /*! exports provided: event, default, customEvent */
  15411. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15412. "use strict";
  15413. __webpack_require__.r(__webpack_exports__);
  15414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "event", function() { return event; });
  15415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "customEvent", function() { return customEvent; });
  15416. var filterEvents = {};
  15417. var event = null;
  15418. if (typeof document !== "undefined") {
  15419. var element = document.documentElement;
  15420. if (!("onmouseenter" in element)) {
  15421. filterEvents = {mouseenter: "mouseover", mouseleave: "mouseout"};
  15422. }
  15423. }
  15424. function filterContextListener(listener, index, group) {
  15425. listener = contextListener(listener, index, group);
  15426. return function(event) {
  15427. var related = event.relatedTarget;
  15428. if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {
  15429. listener.call(this, event);
  15430. }
  15431. };
  15432. }
  15433. function contextListener(listener, index, group) {
  15434. return function(event1) {
  15435. var event0 = event; // Events can be reentrant (e.g., focus).
  15436. event = event1;
  15437. try {
  15438. listener.call(this, this.__data__, index, group);
  15439. } finally {
  15440. event = event0;
  15441. }
  15442. };
  15443. }
  15444. function parseTypenames(typenames) {
  15445. return typenames.trim().split(/^|\s+/).map(function(t) {
  15446. var name = "", i = t.indexOf(".");
  15447. if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
  15448. return {type: t, name: name};
  15449. });
  15450. }
  15451. function onRemove(typename) {
  15452. return function() {
  15453. var on = this.__on;
  15454. if (!on) return;
  15455. for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {
  15456. if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {
  15457. this.removeEventListener(o.type, o.listener, o.capture);
  15458. } else {
  15459. on[++i] = o;
  15460. }
  15461. }
  15462. if (++i) on.length = i;
  15463. else delete this.__on;
  15464. };
  15465. }
  15466. function onAdd(typename, value, capture) {
  15467. var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;
  15468. return function(d, i, group) {
  15469. var on = this.__on, o, listener = wrap(value, i, group);
  15470. if (on) for (var j = 0, m = on.length; j < m; ++j) {
  15471. if ((o = on[j]).type === typename.type && o.name === typename.name) {
  15472. this.removeEventListener(o.type, o.listener, o.capture);
  15473. this.addEventListener(o.type, o.listener = listener, o.capture = capture);
  15474. o.value = value;
  15475. return;
  15476. }
  15477. }
  15478. this.addEventListener(typename.type, listener, capture);
  15479. o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};
  15480. if (!on) this.__on = [o];
  15481. else on.push(o);
  15482. };
  15483. }
  15484. /* harmony default export */ __webpack_exports__["default"] = (function(typename, value, capture) {
  15485. var typenames = parseTypenames(typename + ""), i, n = typenames.length, t;
  15486. if (arguments.length < 2) {
  15487. var on = this.node().__on;
  15488. if (on) for (var j = 0, m = on.length, o; j < m; ++j) {
  15489. for (i = 0, o = on[j]; i < n; ++i) {
  15490. if ((t = typenames[i]).type === o.type && t.name === o.name) {
  15491. return o.value;
  15492. }
  15493. }
  15494. }
  15495. return;
  15496. }
  15497. on = value ? onAdd : onRemove;
  15498. if (capture == null) capture = false;
  15499. for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));
  15500. return this;
  15501. });
  15502. function customEvent(event1, listener, that, args) {
  15503. var event0 = event;
  15504. event1.sourceEvent = event;
  15505. event = event1;
  15506. try {
  15507. return listener.apply(that, args);
  15508. } finally {
  15509. event = event0;
  15510. }
  15511. }
  15512. /***/ }),
  15513. /***/ "./node_modules/d3-selection/src/selection/order.js":
  15514. /*!**********************************************************!*\
  15515. !*** ./node_modules/d3-selection/src/selection/order.js ***!
  15516. \**********************************************************/
  15517. /*! exports provided: default */
  15518. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15519. "use strict";
  15520. __webpack_require__.r(__webpack_exports__);
  15521. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15522. for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {
  15523. for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {
  15524. if (node = group[i]) {
  15525. if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);
  15526. next = node;
  15527. }
  15528. }
  15529. }
  15530. return this;
  15531. });
  15532. /***/ }),
  15533. /***/ "./node_modules/d3-selection/src/selection/property.js":
  15534. /*!*************************************************************!*\
  15535. !*** ./node_modules/d3-selection/src/selection/property.js ***!
  15536. \*************************************************************/
  15537. /*! exports provided: default */
  15538. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15539. "use strict";
  15540. __webpack_require__.r(__webpack_exports__);
  15541. function propertyRemove(name) {
  15542. return function() {
  15543. delete this[name];
  15544. };
  15545. }
  15546. function propertyConstant(name, value) {
  15547. return function() {
  15548. this[name] = value;
  15549. };
  15550. }
  15551. function propertyFunction(name, value) {
  15552. return function() {
  15553. var v = value.apply(this, arguments);
  15554. if (v == null) delete this[name];
  15555. else this[name] = v;
  15556. };
  15557. }
  15558. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  15559. return arguments.length > 1
  15560. ? this.each((value == null
  15561. ? propertyRemove : typeof value === "function"
  15562. ? propertyFunction
  15563. : propertyConstant)(name, value))
  15564. : this.node()[name];
  15565. });
  15566. /***/ }),
  15567. /***/ "./node_modules/d3-selection/src/selection/raise.js":
  15568. /*!**********************************************************!*\
  15569. !*** ./node_modules/d3-selection/src/selection/raise.js ***!
  15570. \**********************************************************/
  15571. /*! exports provided: default */
  15572. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15573. "use strict";
  15574. __webpack_require__.r(__webpack_exports__);
  15575. function raise() {
  15576. if (this.nextSibling) this.parentNode.appendChild(this);
  15577. }
  15578. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15579. return this.each(raise);
  15580. });
  15581. /***/ }),
  15582. /***/ "./node_modules/d3-selection/src/selection/remove.js":
  15583. /*!***********************************************************!*\
  15584. !*** ./node_modules/d3-selection/src/selection/remove.js ***!
  15585. \***********************************************************/
  15586. /*! exports provided: default */
  15587. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15588. "use strict";
  15589. __webpack_require__.r(__webpack_exports__);
  15590. function remove() {
  15591. var parent = this.parentNode;
  15592. if (parent) parent.removeChild(this);
  15593. }
  15594. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15595. return this.each(remove);
  15596. });
  15597. /***/ }),
  15598. /***/ "./node_modules/d3-selection/src/selection/select.js":
  15599. /*!***********************************************************!*\
  15600. !*** ./node_modules/d3-selection/src/selection/select.js ***!
  15601. \***********************************************************/
  15602. /*! exports provided: default */
  15603. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15604. "use strict";
  15605. __webpack_require__.r(__webpack_exports__);
  15606. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  15607. /* harmony import */ var _selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selector */ "./node_modules/d3-selection/src/selector.js");
  15608. /* harmony default export */ __webpack_exports__["default"] = (function(select) {
  15609. if (typeof select !== "function") select = Object(_selector__WEBPACK_IMPORTED_MODULE_1__["default"])(select);
  15610. for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
  15611. for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
  15612. if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
  15613. if ("__data__" in node) subnode.__data__ = node.__data__;
  15614. subgroup[i] = subnode;
  15615. }
  15616. }
  15617. }
  15618. return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](subgroups, this._parents);
  15619. });
  15620. /***/ }),
  15621. /***/ "./node_modules/d3-selection/src/selection/selectAll.js":
  15622. /*!**************************************************************!*\
  15623. !*** ./node_modules/d3-selection/src/selection/selectAll.js ***!
  15624. \**************************************************************/
  15625. /*! exports provided: default */
  15626. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15627. "use strict";
  15628. __webpack_require__.r(__webpack_exports__);
  15629. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  15630. /* harmony import */ var _selectorAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selectorAll */ "./node_modules/d3-selection/src/selectorAll.js");
  15631. /* harmony default export */ __webpack_exports__["default"] = (function(select) {
  15632. if (typeof select !== "function") select = Object(_selectorAll__WEBPACK_IMPORTED_MODULE_1__["default"])(select);
  15633. for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
  15634. for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
  15635. if (node = group[i]) {
  15636. subgroups.push(select.call(node, node.__data__, i, group));
  15637. parents.push(node);
  15638. }
  15639. }
  15640. }
  15641. return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](subgroups, parents);
  15642. });
  15643. /***/ }),
  15644. /***/ "./node_modules/d3-selection/src/selection/size.js":
  15645. /*!*********************************************************!*\
  15646. !*** ./node_modules/d3-selection/src/selection/size.js ***!
  15647. \*********************************************************/
  15648. /*! exports provided: default */
  15649. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15650. "use strict";
  15651. __webpack_require__.r(__webpack_exports__);
  15652. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15653. var size = 0;
  15654. this.each(function() { ++size; });
  15655. return size;
  15656. });
  15657. /***/ }),
  15658. /***/ "./node_modules/d3-selection/src/selection/sort.js":
  15659. /*!*********************************************************!*\
  15660. !*** ./node_modules/d3-selection/src/selection/sort.js ***!
  15661. \*********************************************************/
  15662. /*! exports provided: default */
  15663. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15664. "use strict";
  15665. __webpack_require__.r(__webpack_exports__);
  15666. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js");
  15667. /* harmony default export */ __webpack_exports__["default"] = (function(compare) {
  15668. if (!compare) compare = ascending;
  15669. function compareNode(a, b) {
  15670. return a && b ? compare(a.__data__, b.__data__) : !a - !b;
  15671. }
  15672. for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {
  15673. for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {
  15674. if (node = group[i]) {
  15675. sortgroup[i] = node;
  15676. }
  15677. }
  15678. sortgroup.sort(compareNode);
  15679. }
  15680. return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](sortgroups, this._parents).order();
  15681. });
  15682. function ascending(a, b) {
  15683. return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
  15684. }
  15685. /***/ }),
  15686. /***/ "./node_modules/d3-selection/src/selection/sparse.js":
  15687. /*!***********************************************************!*\
  15688. !*** ./node_modules/d3-selection/src/selection/sparse.js ***!
  15689. \***********************************************************/
  15690. /*! exports provided: default */
  15691. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15692. "use strict";
  15693. __webpack_require__.r(__webpack_exports__);
  15694. /* harmony default export */ __webpack_exports__["default"] = (function(update) {
  15695. return new Array(update.length);
  15696. });
  15697. /***/ }),
  15698. /***/ "./node_modules/d3-selection/src/selection/style.js":
  15699. /*!**********************************************************!*\
  15700. !*** ./node_modules/d3-selection/src/selection/style.js ***!
  15701. \**********************************************************/
  15702. /*! exports provided: default, styleValue */
  15703. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15704. "use strict";
  15705. __webpack_require__.r(__webpack_exports__);
  15706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styleValue", function() { return styleValue; });
  15707. /* harmony import */ var _window__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../window */ "./node_modules/d3-selection/src/window.js");
  15708. function styleRemove(name) {
  15709. return function() {
  15710. this.style.removeProperty(name);
  15711. };
  15712. }
  15713. function styleConstant(name, value, priority) {
  15714. return function() {
  15715. this.style.setProperty(name, value, priority);
  15716. };
  15717. }
  15718. function styleFunction(name, value, priority) {
  15719. return function() {
  15720. var v = value.apply(this, arguments);
  15721. if (v == null) this.style.removeProperty(name);
  15722. else this.style.setProperty(name, v, priority);
  15723. };
  15724. }
  15725. /* harmony default export */ __webpack_exports__["default"] = (function(name, value, priority) {
  15726. return arguments.length > 1
  15727. ? this.each((value == null
  15728. ? styleRemove : typeof value === "function"
  15729. ? styleFunction
  15730. : styleConstant)(name, value, priority == null ? "" : priority))
  15731. : styleValue(this.node(), name);
  15732. });
  15733. function styleValue(node, name) {
  15734. return node.style.getPropertyValue(name)
  15735. || Object(_window__WEBPACK_IMPORTED_MODULE_0__["default"])(node).getComputedStyle(node, null).getPropertyValue(name);
  15736. }
  15737. /***/ }),
  15738. /***/ "./node_modules/d3-selection/src/selection/text.js":
  15739. /*!*********************************************************!*\
  15740. !*** ./node_modules/d3-selection/src/selection/text.js ***!
  15741. \*********************************************************/
  15742. /*! exports provided: default */
  15743. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15744. "use strict";
  15745. __webpack_require__.r(__webpack_exports__);
  15746. function textRemove() {
  15747. this.textContent = "";
  15748. }
  15749. function textConstant(value) {
  15750. return function() {
  15751. this.textContent = value;
  15752. };
  15753. }
  15754. function textFunction(value) {
  15755. return function() {
  15756. var v = value.apply(this, arguments);
  15757. this.textContent = v == null ? "" : v;
  15758. };
  15759. }
  15760. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  15761. return arguments.length
  15762. ? this.each(value == null
  15763. ? textRemove : (typeof value === "function"
  15764. ? textFunction
  15765. : textConstant)(value))
  15766. : this.node().textContent;
  15767. });
  15768. /***/ }),
  15769. /***/ "./node_modules/d3-selection/src/selector.js":
  15770. /*!***************************************************!*\
  15771. !*** ./node_modules/d3-selection/src/selector.js ***!
  15772. \***************************************************/
  15773. /*! exports provided: default */
  15774. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15775. "use strict";
  15776. __webpack_require__.r(__webpack_exports__);
  15777. function none() {}
  15778. /* harmony default export */ __webpack_exports__["default"] = (function(selector) {
  15779. return selector == null ? none : function() {
  15780. return this.querySelector(selector);
  15781. };
  15782. });
  15783. /***/ }),
  15784. /***/ "./node_modules/d3-selection/src/selectorAll.js":
  15785. /*!******************************************************!*\
  15786. !*** ./node_modules/d3-selection/src/selectorAll.js ***!
  15787. \******************************************************/
  15788. /*! exports provided: default */
  15789. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15790. "use strict";
  15791. __webpack_require__.r(__webpack_exports__);
  15792. function empty() {
  15793. return [];
  15794. }
  15795. /* harmony default export */ __webpack_exports__["default"] = (function(selector) {
  15796. return selector == null ? empty : function() {
  15797. return this.querySelectorAll(selector);
  15798. };
  15799. });
  15800. /***/ }),
  15801. /***/ "./node_modules/d3-selection/src/sourceEvent.js":
  15802. /*!******************************************************!*\
  15803. !*** ./node_modules/d3-selection/src/sourceEvent.js ***!
  15804. \******************************************************/
  15805. /*! exports provided: default */
  15806. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15807. "use strict";
  15808. __webpack_require__.r(__webpack_exports__);
  15809. /* harmony import */ var _selection_on__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selection/on */ "./node_modules/d3-selection/src/selection/on.js");
  15810. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15811. var current = _selection_on__WEBPACK_IMPORTED_MODULE_0__["event"], source;
  15812. while (source = current.sourceEvent) current = source;
  15813. return current;
  15814. });
  15815. /***/ }),
  15816. /***/ "./node_modules/d3-selection/src/touch.js":
  15817. /*!************************************************!*\
  15818. !*** ./node_modules/d3-selection/src/touch.js ***!
  15819. \************************************************/
  15820. /*! exports provided: default */
  15821. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15822. "use strict";
  15823. __webpack_require__.r(__webpack_exports__);
  15824. /* harmony import */ var _sourceEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sourceEvent */ "./node_modules/d3-selection/src/sourceEvent.js");
  15825. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js");
  15826. /* harmony default export */ __webpack_exports__["default"] = (function(node, touches, identifier) {
  15827. if (arguments.length < 3) identifier = touches, touches = Object(_sourceEvent__WEBPACK_IMPORTED_MODULE_0__["default"])().changedTouches;
  15828. for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) {
  15829. if ((touch = touches[i]).identifier === identifier) {
  15830. return Object(_point__WEBPACK_IMPORTED_MODULE_1__["default"])(node, touch);
  15831. }
  15832. }
  15833. return null;
  15834. });
  15835. /***/ }),
  15836. /***/ "./node_modules/d3-selection/src/touches.js":
  15837. /*!**************************************************!*\
  15838. !*** ./node_modules/d3-selection/src/touches.js ***!
  15839. \**************************************************/
  15840. /*! exports provided: default */
  15841. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15842. "use strict";
  15843. __webpack_require__.r(__webpack_exports__);
  15844. /* harmony import */ var _sourceEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sourceEvent */ "./node_modules/d3-selection/src/sourceEvent.js");
  15845. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js");
  15846. /* harmony default export */ __webpack_exports__["default"] = (function(node, touches) {
  15847. if (touches == null) touches = Object(_sourceEvent__WEBPACK_IMPORTED_MODULE_0__["default"])().touches;
  15848. for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) {
  15849. points[i] = Object(_point__WEBPACK_IMPORTED_MODULE_1__["default"])(node, touches[i]);
  15850. }
  15851. return points;
  15852. });
  15853. /***/ }),
  15854. /***/ "./node_modules/d3-selection/src/window.js":
  15855. /*!*************************************************!*\
  15856. !*** ./node_modules/d3-selection/src/window.js ***!
  15857. \*************************************************/
  15858. /*! exports provided: default */
  15859. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15860. "use strict";
  15861. __webpack_require__.r(__webpack_exports__);
  15862. /* harmony default export */ __webpack_exports__["default"] = (function(node) {
  15863. return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node
  15864. || (node.document && node) // node is a Window
  15865. || node.defaultView; // node is a Document
  15866. });
  15867. /***/ }),
  15868. /***/ "./node_modules/d3-shape/src/arc.js":
  15869. /*!******************************************!*\
  15870. !*** ./node_modules/d3-shape/src/arc.js ***!
  15871. \******************************************/
  15872. /*! exports provided: default */
  15873. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15874. "use strict";
  15875. __webpack_require__.r(__webpack_exports__);
  15876. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  15877. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");
  15878. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-shape/src/math.js");
  15879. function arcInnerRadius(d) {
  15880. return d.innerRadius;
  15881. }
  15882. function arcOuterRadius(d) {
  15883. return d.outerRadius;
  15884. }
  15885. function arcStartAngle(d) {
  15886. return d.startAngle;
  15887. }
  15888. function arcEndAngle(d) {
  15889. return d.endAngle;
  15890. }
  15891. function arcPadAngle(d) {
  15892. return d && d.padAngle; // Note: optional!
  15893. }
  15894. function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
  15895. var x10 = x1 - x0, y10 = y1 - y0,
  15896. x32 = x3 - x2, y32 = y3 - y2,
  15897. t = y32 * x10 - x32 * y10;
  15898. if (t * t < _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) return;
  15899. t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;
  15900. return [x0 + t * x10, y0 + t * y10];
  15901. }
  15902. // Compute perpendicular offset line of length rc.
  15903. // http://mathworld.wolfram.com/Circle-LineIntersection.html
  15904. function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
  15905. var x01 = x0 - x1,
  15906. y01 = y0 - y1,
  15907. lo = (cw ? rc : -rc) / Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(x01 * x01 + y01 * y01),
  15908. ox = lo * y01,
  15909. oy = -lo * x01,
  15910. x11 = x0 + ox,
  15911. y11 = y0 + oy,
  15912. x10 = x1 + ox,
  15913. y10 = y1 + oy,
  15914. x00 = (x11 + x10) / 2,
  15915. y00 = (y11 + y10) / 2,
  15916. dx = x10 - x11,
  15917. dy = y10 - y11,
  15918. d2 = dx * dx + dy * dy,
  15919. r = r1 - rc,
  15920. D = x11 * y10 - x10 * y11,
  15921. d = (dy < 0 ? -1 : 1) * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["max"])(0, r * r * d2 - D * D)),
  15922. cx0 = (D * dy - dx * d) / d2,
  15923. cy0 = (-D * dx - dy * d) / d2,
  15924. cx1 = (D * dy + dx * d) / d2,
  15925. cy1 = (-D * dx + dy * d) / d2,
  15926. dx0 = cx0 - x00,
  15927. dy0 = cy0 - y00,
  15928. dx1 = cx1 - x00,
  15929. dy1 = cy1 - y00;
  15930. // Pick the closer of the two intersection points.
  15931. // TODO Is there a faster way to determine which intersection to use?
  15932. if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
  15933. return {
  15934. cx: cx0,
  15935. cy: cy0,
  15936. x01: -ox,
  15937. y01: -oy,
  15938. x11: cx0 * (r1 / r - 1),
  15939. y11: cy0 * (r1 / r - 1)
  15940. };
  15941. }
  15942. /* harmony default export */ __webpack_exports__["default"] = (function() {
  15943. var innerRadius = arcInnerRadius,
  15944. outerRadius = arcOuterRadius,
  15945. cornerRadius = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0),
  15946. padRadius = null,
  15947. startAngle = arcStartAngle,
  15948. endAngle = arcEndAngle,
  15949. padAngle = arcPadAngle,
  15950. context = null;
  15951. function arc() {
  15952. var buffer,
  15953. r,
  15954. r0 = +innerRadius.apply(this, arguments),
  15955. r1 = +outerRadius.apply(this, arguments),
  15956. a0 = startAngle.apply(this, arguments) - _math_js__WEBPACK_IMPORTED_MODULE_2__["halfPi"],
  15957. a1 = endAngle.apply(this, arguments) - _math_js__WEBPACK_IMPORTED_MODULE_2__["halfPi"],
  15958. da = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["abs"])(a1 - a0),
  15959. cw = a1 > a0;
  15960. if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])();
  15961. // Ensure that the outer radius is always larger than the inner radius.
  15962. if (r1 < r0) r = r1, r1 = r0, r0 = r;
  15963. // Is it a point?
  15964. if (!(r1 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.moveTo(0, 0);
  15965. // Or is it a circle or annulus?
  15966. else if (da > _math_js__WEBPACK_IMPORTED_MODULE_2__["tau"] - _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  15967. context.moveTo(r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a0), r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a0));
  15968. context.arc(0, 0, r1, a0, a1, !cw);
  15969. if (r0 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  15970. context.moveTo(r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a1), r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a1));
  15971. context.arc(0, 0, r0, a1, a0, cw);
  15972. }
  15973. }
  15974. // Or is it a circular or annular sector?
  15975. else {
  15976. var a01 = a0,
  15977. a11 = a1,
  15978. a00 = a0,
  15979. a10 = a1,
  15980. da0 = da,
  15981. da1 = da,
  15982. ap = padAngle.apply(this, arguments) / 2,
  15983. rp = (ap > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) && (padRadius ? +padRadius.apply(this, arguments) : Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(r0 * r0 + r1 * r1)),
  15984. rc = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["min"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["abs"])(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),
  15985. rc0 = rc,
  15986. rc1 = rc,
  15987. t0,
  15988. t1;
  15989. // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.
  15990. if (rp > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  15991. var p0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["asin"])(rp / r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(ap)),
  15992. p1 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["asin"])(rp / r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(ap));
  15993. if ((da0 -= p0 * 2) > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;
  15994. else da0 = 0, a00 = a10 = (a0 + a1) / 2;
  15995. if ((da1 -= p1 * 2) > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;
  15996. else da1 = 0, a01 = a11 = (a0 + a1) / 2;
  15997. }
  15998. var x01 = r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a01),
  15999. y01 = r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a01),
  16000. x10 = r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a10),
  16001. y10 = r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a10);
  16002. // Apply rounded corners?
  16003. if (rc > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  16004. var x11 = r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a11),
  16005. y11 = r1 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a11),
  16006. x00 = r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a00),
  16007. y00 = r0 * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a00),
  16008. oc;
  16009. // Restrict the corner radius according to the sector angle.
  16010. if (da < _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"] && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {
  16011. var ax = x01 - oc[0],
  16012. ay = y01 - oc[1],
  16013. bx = x11 - oc[0],
  16014. by = y11 - oc[1],
  16015. kc = 1 / Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["acos"])((ax * bx + ay * by) / (Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(ax * ax + ay * ay) * Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(bx * bx + by * by))) / 2),
  16016. lc = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(oc[0] * oc[0] + oc[1] * oc[1]);
  16017. rc0 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["min"])(rc, (r0 - lc) / (kc - 1));
  16018. rc1 = Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["min"])(rc, (r1 - lc) / (kc + 1));
  16019. }
  16020. }
  16021. // Is the sector collapsed to a line?
  16022. if (!(da1 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.moveTo(x01, y01);
  16023. // Does the sector’s outer ring have rounded corners?
  16024. else if (rc1 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  16025. t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
  16026. t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
  16027. context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
  16028. // Have the corners merged?
  16029. if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw);
  16030. // Otherwise, draw the two corners and the ring.
  16031. else {
  16032. context.arc(t0.cx, t0.cy, rc1, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y11, t0.x11), !cw);
  16033. context.arc(0, 0, r1, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.cy + t0.y11, t0.cx + t0.x11), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
  16034. context.arc(t1.cx, t1.cy, rc1, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y11, t1.x11), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw);
  16035. }
  16036. }
  16037. // Or is the outer ring just a circular arc?
  16038. else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);
  16039. // Is there no inner ring, and it’s a circular sector?
  16040. // Or perhaps it’s an annular sector collapsed due to padding?
  16041. if (!(r0 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) || !(da0 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.lineTo(x10, y10);
  16042. // Does the sector’s inner ring (or point) have rounded corners?
  16043. else if (rc0 > _math_js__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) {
  16044. t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
  16045. t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
  16046. context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
  16047. // Have the corners merged?
  16048. if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw);
  16049. // Otherwise, draw the two corners and the ring.
  16050. else {
  16051. context.arc(t0.cx, t0.cy, rc0, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y11, t0.x11), !cw);
  16052. context.arc(0, 0, r0, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.cy + t0.y11, t0.cx + t0.x11), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.cy + t1.y11, t1.cx + t1.x11), cw);
  16053. context.arc(t1.cx, t1.cy, rc0, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y11, t1.x11), Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw);
  16054. }
  16055. }
  16056. // Or is the inner ring just a circular arc?
  16057. else context.arc(0, 0, r0, a10, a00, cw);
  16058. }
  16059. context.closePath();
  16060. if (buffer) return context = null, buffer + "" || null;
  16061. }
  16062. arc.centroid = function() {
  16063. var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,
  16064. a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - _math_js__WEBPACK_IMPORTED_MODULE_2__["pi"] / 2;
  16065. return [Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["cos"])(a) * r, Object(_math_js__WEBPACK_IMPORTED_MODULE_2__["sin"])(a) * r];
  16066. };
  16067. arc.innerRadius = function(_) {
  16068. return arguments.length ? (innerRadius = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : innerRadius;
  16069. };
  16070. arc.outerRadius = function(_) {
  16071. return arguments.length ? (outerRadius = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : outerRadius;
  16072. };
  16073. arc.cornerRadius = function(_) {
  16074. return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : cornerRadius;
  16075. };
  16076. arc.padRadius = function(_) {
  16077. return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : padRadius;
  16078. };
  16079. arc.startAngle = function(_) {
  16080. return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : startAngle;
  16081. };
  16082. arc.endAngle = function(_) {
  16083. return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : endAngle;
  16084. };
  16085. arc.padAngle = function(_) {
  16086. return arguments.length ? (padAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : padAngle;
  16087. };
  16088. arc.context = function(_) {
  16089. return arguments.length ? ((context = _ == null ? null : _), arc) : context;
  16090. };
  16091. return arc;
  16092. });
  16093. /***/ }),
  16094. /***/ "./node_modules/d3-shape/src/area.js":
  16095. /*!*******************************************!*\
  16096. !*** ./node_modules/d3-shape/src/area.js ***!
  16097. \*******************************************/
  16098. /*! exports provided: default */
  16099. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16100. "use strict";
  16101. __webpack_require__.r(__webpack_exports__);
  16102. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  16103. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");
  16104. /* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear.js */ "./node_modules/d3-shape/src/curve/linear.js");
  16105. /* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line.js */ "./node_modules/d3-shape/src/line.js");
  16106. /* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./point.js */ "./node_modules/d3-shape/src/point.js");
  16107. /* harmony default export */ __webpack_exports__["default"] = (function() {
  16108. var x0 = _point_js__WEBPACK_IMPORTED_MODULE_4__["x"],
  16109. x1 = null,
  16110. y0 = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0),
  16111. y1 = _point_js__WEBPACK_IMPORTED_MODULE_4__["y"],
  16112. defined = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(true),
  16113. context = null,
  16114. curve = _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  16115. output = null;
  16116. function area(data) {
  16117. var i,
  16118. j,
  16119. k,
  16120. n = data.length,
  16121. d,
  16122. defined0 = false,
  16123. buffer,
  16124. x0z = new Array(n),
  16125. y0z = new Array(n);
  16126. if (context == null) output = curve(buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])());
  16127. for (i = 0; i <= n; ++i) {
  16128. if (!(i < n && defined(d = data[i], i, data)) === defined0) {
  16129. if (defined0 = !defined0) {
  16130. j = i;
  16131. output.areaStart();
  16132. output.lineStart();
  16133. } else {
  16134. output.lineEnd();
  16135. output.lineStart();
  16136. for (k = i - 1; k >= j; --k) {
  16137. output.point(x0z[k], y0z[k]);
  16138. }
  16139. output.lineEnd();
  16140. output.areaEnd();
  16141. }
  16142. }
  16143. if (defined0) {
  16144. x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);
  16145. output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);
  16146. }
  16147. }
  16148. if (buffer) return output = null, buffer + "" || null;
  16149. }
  16150. function arealine() {
  16151. return Object(_line_js__WEBPACK_IMPORTED_MODULE_3__["default"])().defined(defined).curve(curve).context(context);
  16152. }
  16153. area.x = function(_) {
  16154. return arguments.length ? (x0 = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), x1 = null, area) : x0;
  16155. };
  16156. area.x0 = function(_) {
  16157. return arguments.length ? (x0 = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : x0;
  16158. };
  16159. area.x1 = function(_) {
  16160. return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : x1;
  16161. };
  16162. area.y = function(_) {
  16163. return arguments.length ? (y0 = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), y1 = null, area) : y0;
  16164. };
  16165. area.y0 = function(_) {
  16166. return arguments.length ? (y0 = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : y0;
  16167. };
  16168. area.y1 = function(_) {
  16169. return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : y1;
  16170. };
  16171. area.lineX0 =
  16172. area.lineY0 = function() {
  16173. return arealine().x(x0).y(y0);
  16174. };
  16175. area.lineY1 = function() {
  16176. return arealine().x(x0).y(y1);
  16177. };
  16178. area.lineX1 = function() {
  16179. return arealine().x(x1).y(y0);
  16180. };
  16181. area.defined = function(_) {
  16182. return arguments.length ? (defined = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(!!_), area) : defined;
  16183. };
  16184. area.curve = function(_) {
  16185. return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;
  16186. };
  16187. area.context = function(_) {
  16188. return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;
  16189. };
  16190. return area;
  16191. });
  16192. /***/ }),
  16193. /***/ "./node_modules/d3-shape/src/areaRadial.js":
  16194. /*!*************************************************!*\
  16195. !*** ./node_modules/d3-shape/src/areaRadial.js ***!
  16196. \*************************************************/
  16197. /*! exports provided: default */
  16198. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16199. "use strict";
  16200. __webpack_require__.r(__webpack_exports__);
  16201. /* harmony import */ var _curve_radial_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./curve/radial.js */ "./node_modules/d3-shape/src/curve/radial.js");
  16202. /* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area.js */ "./node_modules/d3-shape/src/area.js");
  16203. /* harmony import */ var _lineRadial_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lineRadial.js */ "./node_modules/d3-shape/src/lineRadial.js");
  16204. /* harmony default export */ __webpack_exports__["default"] = (function() {
  16205. var a = Object(_area_js__WEBPACK_IMPORTED_MODULE_1__["default"])().curve(_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__["curveRadialLinear"]),
  16206. c = a.curve,
  16207. x0 = a.lineX0,
  16208. x1 = a.lineX1,
  16209. y0 = a.lineY0,
  16210. y1 = a.lineY1;
  16211. a.angle = a.x, delete a.x;
  16212. a.startAngle = a.x0, delete a.x0;
  16213. a.endAngle = a.x1, delete a.x1;
  16214. a.radius = a.y, delete a.y;
  16215. a.innerRadius = a.y0, delete a.y0;
  16216. a.outerRadius = a.y1, delete a.y1;
  16217. a.lineStartAngle = function() { return Object(_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(x0()); }, delete a.lineX0;
  16218. a.lineEndAngle = function() { return Object(_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(x1()); }, delete a.lineX1;
  16219. a.lineInnerRadius = function() { return Object(_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(y0()); }, delete a.lineY0;
  16220. a.lineOuterRadius = function() { return Object(_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(y1()); }, delete a.lineY1;
  16221. a.curve = function(_) {
  16222. return arguments.length ? c(Object(_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_)) : c()._curve;
  16223. };
  16224. return a;
  16225. });
  16226. /***/ }),
  16227. /***/ "./node_modules/d3-shape/src/array.js":
  16228. /*!********************************************!*\
  16229. !*** ./node_modules/d3-shape/src/array.js ***!
  16230. \********************************************/
  16231. /*! exports provided: slice */
  16232. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16233. "use strict";
  16234. __webpack_require__.r(__webpack_exports__);
  16235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; });
  16236. var slice = Array.prototype.slice;
  16237. /***/ }),
  16238. /***/ "./node_modules/d3-shape/src/constant.js":
  16239. /*!***********************************************!*\
  16240. !*** ./node_modules/d3-shape/src/constant.js ***!
  16241. \***********************************************/
  16242. /*! exports provided: default */
  16243. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16244. "use strict";
  16245. __webpack_require__.r(__webpack_exports__);
  16246. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  16247. return function constant() {
  16248. return x;
  16249. };
  16250. });
  16251. /***/ }),
  16252. /***/ "./node_modules/d3-shape/src/curve/basis.js":
  16253. /*!**************************************************!*\
  16254. !*** ./node_modules/d3-shape/src/curve/basis.js ***!
  16255. \**************************************************/
  16256. /*! exports provided: point, Basis, default */
  16257. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16258. "use strict";
  16259. __webpack_require__.r(__webpack_exports__);
  16260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; });
  16261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Basis", function() { return Basis; });
  16262. function point(that, x, y) {
  16263. that._context.bezierCurveTo(
  16264. (2 * that._x0 + that._x1) / 3,
  16265. (2 * that._y0 + that._y1) / 3,
  16266. (that._x0 + 2 * that._x1) / 3,
  16267. (that._y0 + 2 * that._y1) / 3,
  16268. (that._x0 + 4 * that._x1 + x) / 6,
  16269. (that._y0 + 4 * that._y1 + y) / 6
  16270. );
  16271. }
  16272. function Basis(context) {
  16273. this._context = context;
  16274. }
  16275. Basis.prototype = {
  16276. areaStart: function() {
  16277. this._line = 0;
  16278. },
  16279. areaEnd: function() {
  16280. this._line = NaN;
  16281. },
  16282. lineStart: function() {
  16283. this._x0 = this._x1 =
  16284. this._y0 = this._y1 = NaN;
  16285. this._point = 0;
  16286. },
  16287. lineEnd: function() {
  16288. switch (this._point) {
  16289. case 3: point(this, this._x1, this._y1); // proceed
  16290. case 2: this._context.lineTo(this._x1, this._y1); break;
  16291. }
  16292. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  16293. this._line = 1 - this._line;
  16294. },
  16295. point: function(x, y) {
  16296. x = +x, y = +y;
  16297. switch (this._point) {
  16298. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  16299. case 1: this._point = 2; break;
  16300. case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed
  16301. default: point(this, x, y); break;
  16302. }
  16303. this._x0 = this._x1, this._x1 = x;
  16304. this._y0 = this._y1, this._y1 = y;
  16305. }
  16306. };
  16307. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  16308. return new Basis(context);
  16309. });
  16310. /***/ }),
  16311. /***/ "./node_modules/d3-shape/src/curve/basisClosed.js":
  16312. /*!********************************************************!*\
  16313. !*** ./node_modules/d3-shape/src/curve/basisClosed.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 _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-shape/src/noop.js");
  16320. /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basis.js */ "./node_modules/d3-shape/src/curve/basis.js");
  16321. function BasisClosed(context) {
  16322. this._context = context;
  16323. }
  16324. BasisClosed.prototype = {
  16325. areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  16326. areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  16327. lineStart: function() {
  16328. this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =
  16329. this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;
  16330. this._point = 0;
  16331. },
  16332. lineEnd: function() {
  16333. switch (this._point) {
  16334. case 1: {
  16335. this._context.moveTo(this._x2, this._y2);
  16336. this._context.closePath();
  16337. break;
  16338. }
  16339. case 2: {
  16340. this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);
  16341. this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);
  16342. this._context.closePath();
  16343. break;
  16344. }
  16345. case 3: {
  16346. this.point(this._x2, this._y2);
  16347. this.point(this._x3, this._y3);
  16348. this.point(this._x4, this._y4);
  16349. break;
  16350. }
  16351. }
  16352. },
  16353. point: function(x, y) {
  16354. x = +x, y = +y;
  16355. switch (this._point) {
  16356. case 0: this._point = 1; this._x2 = x, this._y2 = y; break;
  16357. case 1: this._point = 2; this._x3 = x, this._y3 = y; break;
  16358. 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;
  16359. default: Object(_basis_js__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break;
  16360. }
  16361. this._x0 = this._x1, this._x1 = x;
  16362. this._y0 = this._y1, this._y1 = y;
  16363. }
  16364. };
  16365. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  16366. return new BasisClosed(context);
  16367. });
  16368. /***/ }),
  16369. /***/ "./node_modules/d3-shape/src/curve/basisOpen.js":
  16370. /*!******************************************************!*\
  16371. !*** ./node_modules/d3-shape/src/curve/basisOpen.js ***!
  16372. \******************************************************/
  16373. /*! exports provided: default */
  16374. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16375. "use strict";
  16376. __webpack_require__.r(__webpack_exports__);
  16377. /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "./node_modules/d3-shape/src/curve/basis.js");
  16378. function BasisOpen(context) {
  16379. this._context = context;
  16380. }
  16381. BasisOpen.prototype = {
  16382. areaStart: function() {
  16383. this._line = 0;
  16384. },
  16385. areaEnd: function() {
  16386. this._line = NaN;
  16387. },
  16388. lineStart: function() {
  16389. this._x0 = this._x1 =
  16390. this._y0 = this._y1 = NaN;
  16391. this._point = 0;
  16392. },
  16393. lineEnd: function() {
  16394. if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
  16395. this._line = 1 - this._line;
  16396. },
  16397. point: function(x, y) {
  16398. x = +x, y = +y;
  16399. switch (this._point) {
  16400. case 0: this._point = 1; break;
  16401. case 1: this._point = 2; break;
  16402. 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;
  16403. case 3: this._point = 4; // proceed
  16404. default: Object(_basis_js__WEBPACK_IMPORTED_MODULE_0__["point"])(this, x, y); break;
  16405. }
  16406. this._x0 = this._x1, this._x1 = x;
  16407. this._y0 = this._y1, this._y1 = y;
  16408. }
  16409. };
  16410. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  16411. return new BasisOpen(context);
  16412. });
  16413. /***/ }),
  16414. /***/ "./node_modules/d3-shape/src/curve/bundle.js":
  16415. /*!***************************************************!*\
  16416. !*** ./node_modules/d3-shape/src/curve/bundle.js ***!
  16417. \***************************************************/
  16418. /*! exports provided: default */
  16419. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16420. "use strict";
  16421. __webpack_require__.r(__webpack_exports__);
  16422. /* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "./node_modules/d3-shape/src/curve/basis.js");
  16423. function Bundle(context, beta) {
  16424. this._basis = new _basis_js__WEBPACK_IMPORTED_MODULE_0__["Basis"](context);
  16425. this._beta = beta;
  16426. }
  16427. Bundle.prototype = {
  16428. lineStart: function() {
  16429. this._x = [];
  16430. this._y = [];
  16431. this._basis.lineStart();
  16432. },
  16433. lineEnd: function() {
  16434. var x = this._x,
  16435. y = this._y,
  16436. j = x.length - 1;
  16437. if (j > 0) {
  16438. var x0 = x[0],
  16439. y0 = y[0],
  16440. dx = x[j] - x0,
  16441. dy = y[j] - y0,
  16442. i = -1,
  16443. t;
  16444. while (++i <= j) {
  16445. t = i / j;
  16446. this._basis.point(
  16447. this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),
  16448. this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)
  16449. );
  16450. }
  16451. }
  16452. this._x = this._y = null;
  16453. this._basis.lineEnd();
  16454. },
  16455. point: function(x, y) {
  16456. this._x.push(+x);
  16457. this._y.push(+y);
  16458. }
  16459. };
  16460. /* harmony default export */ __webpack_exports__["default"] = ((function custom(beta) {
  16461. function bundle(context) {
  16462. return beta === 1 ? new _basis_js__WEBPACK_IMPORTED_MODULE_0__["Basis"](context) : new Bundle(context, beta);
  16463. }
  16464. bundle.beta = function(beta) {
  16465. return custom(+beta);
  16466. };
  16467. return bundle;
  16468. })(0.85));
  16469. /***/ }),
  16470. /***/ "./node_modules/d3-shape/src/curve/cardinal.js":
  16471. /*!*****************************************************!*\
  16472. !*** ./node_modules/d3-shape/src/curve/cardinal.js ***!
  16473. \*****************************************************/
  16474. /*! exports provided: point, Cardinal, default */
  16475. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16476. "use strict";
  16477. __webpack_require__.r(__webpack_exports__);
  16478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; });
  16479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cardinal", function() { return Cardinal; });
  16480. function point(that, x, y) {
  16481. that._context.bezierCurveTo(
  16482. that._x1 + that._k * (that._x2 - that._x0),
  16483. that._y1 + that._k * (that._y2 - that._y0),
  16484. that._x2 + that._k * (that._x1 - x),
  16485. that._y2 + that._k * (that._y1 - y),
  16486. that._x2,
  16487. that._y2
  16488. );
  16489. }
  16490. function Cardinal(context, tension) {
  16491. this._context = context;
  16492. this._k = (1 - tension) / 6;
  16493. }
  16494. Cardinal.prototype = {
  16495. areaStart: function() {
  16496. this._line = 0;
  16497. },
  16498. areaEnd: function() {
  16499. this._line = NaN;
  16500. },
  16501. lineStart: function() {
  16502. this._x0 = this._x1 = this._x2 =
  16503. this._y0 = this._y1 = this._y2 = NaN;
  16504. this._point = 0;
  16505. },
  16506. lineEnd: function() {
  16507. switch (this._point) {
  16508. case 2: this._context.lineTo(this._x2, this._y2); break;
  16509. case 3: point(this, this._x1, this._y1); break;
  16510. }
  16511. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  16512. this._line = 1 - this._line;
  16513. },
  16514. point: function(x, y) {
  16515. x = +x, y = +y;
  16516. switch (this._point) {
  16517. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  16518. case 1: this._point = 2; this._x1 = x, this._y1 = y; break;
  16519. case 2: this._point = 3; // proceed
  16520. default: point(this, x, y); break;
  16521. }
  16522. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16523. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16524. }
  16525. };
  16526. /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) {
  16527. function cardinal(context) {
  16528. return new Cardinal(context, tension);
  16529. }
  16530. cardinal.tension = function(tension) {
  16531. return custom(+tension);
  16532. };
  16533. return cardinal;
  16534. })(0));
  16535. /***/ }),
  16536. /***/ "./node_modules/d3-shape/src/curve/cardinalClosed.js":
  16537. /*!***********************************************************!*\
  16538. !*** ./node_modules/d3-shape/src/curve/cardinalClosed.js ***!
  16539. \***********************************************************/
  16540. /*! exports provided: CardinalClosed, default */
  16541. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16542. "use strict";
  16543. __webpack_require__.r(__webpack_exports__);
  16544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardinalClosed", function() { return CardinalClosed; });
  16545. /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-shape/src/noop.js");
  16546. /* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal.js */ "./node_modules/d3-shape/src/curve/cardinal.js");
  16547. function CardinalClosed(context, tension) {
  16548. this._context = context;
  16549. this._k = (1 - tension) / 6;
  16550. }
  16551. CardinalClosed.prototype = {
  16552. areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  16553. areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  16554. lineStart: function() {
  16555. this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
  16556. this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
  16557. this._point = 0;
  16558. },
  16559. lineEnd: function() {
  16560. switch (this._point) {
  16561. case 1: {
  16562. this._context.moveTo(this._x3, this._y3);
  16563. this._context.closePath();
  16564. break;
  16565. }
  16566. case 2: {
  16567. this._context.lineTo(this._x3, this._y3);
  16568. this._context.closePath();
  16569. break;
  16570. }
  16571. case 3: {
  16572. this.point(this._x3, this._y3);
  16573. this.point(this._x4, this._y4);
  16574. this.point(this._x5, this._y5);
  16575. break;
  16576. }
  16577. }
  16578. },
  16579. point: function(x, y) {
  16580. x = +x, y = +y;
  16581. switch (this._point) {
  16582. case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
  16583. case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
  16584. case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
  16585. default: Object(_cardinal_js__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break;
  16586. }
  16587. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16588. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16589. }
  16590. };
  16591. /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) {
  16592. function cardinal(context) {
  16593. return new CardinalClosed(context, tension);
  16594. }
  16595. cardinal.tension = function(tension) {
  16596. return custom(+tension);
  16597. };
  16598. return cardinal;
  16599. })(0));
  16600. /***/ }),
  16601. /***/ "./node_modules/d3-shape/src/curve/cardinalOpen.js":
  16602. /*!*********************************************************!*\
  16603. !*** ./node_modules/d3-shape/src/curve/cardinalOpen.js ***!
  16604. \*********************************************************/
  16605. /*! exports provided: CardinalOpen, default */
  16606. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16607. "use strict";
  16608. __webpack_require__.r(__webpack_exports__);
  16609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardinalOpen", function() { return CardinalOpen; });
  16610. /* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinal.js */ "./node_modules/d3-shape/src/curve/cardinal.js");
  16611. function CardinalOpen(context, tension) {
  16612. this._context = context;
  16613. this._k = (1 - tension) / 6;
  16614. }
  16615. CardinalOpen.prototype = {
  16616. areaStart: function() {
  16617. this._line = 0;
  16618. },
  16619. areaEnd: function() {
  16620. this._line = NaN;
  16621. },
  16622. lineStart: function() {
  16623. this._x0 = this._x1 = this._x2 =
  16624. this._y0 = this._y1 = this._y2 = NaN;
  16625. this._point = 0;
  16626. },
  16627. lineEnd: function() {
  16628. if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
  16629. this._line = 1 - this._line;
  16630. },
  16631. point: function(x, y) {
  16632. x = +x, y = +y;
  16633. switch (this._point) {
  16634. case 0: this._point = 1; break;
  16635. case 1: this._point = 2; break;
  16636. case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
  16637. case 3: this._point = 4; // proceed
  16638. default: Object(_cardinal_js__WEBPACK_IMPORTED_MODULE_0__["point"])(this, x, y); break;
  16639. }
  16640. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16641. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16642. }
  16643. };
  16644. /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) {
  16645. function cardinal(context) {
  16646. return new CardinalOpen(context, tension);
  16647. }
  16648. cardinal.tension = function(tension) {
  16649. return custom(+tension);
  16650. };
  16651. return cardinal;
  16652. })(0));
  16653. /***/ }),
  16654. /***/ "./node_modules/d3-shape/src/curve/catmullRom.js":
  16655. /*!*******************************************************!*\
  16656. !*** ./node_modules/d3-shape/src/curve/catmullRom.js ***!
  16657. \*******************************************************/
  16658. /*! exports provided: point, default */
  16659. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16660. "use strict";
  16661. __webpack_require__.r(__webpack_exports__);
  16662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; });
  16663. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-shape/src/math.js");
  16664. /* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal.js */ "./node_modules/d3-shape/src/curve/cardinal.js");
  16665. function point(that, x, y) {
  16666. var x1 = that._x1,
  16667. y1 = that._y1,
  16668. x2 = that._x2,
  16669. y2 = that._y2;
  16670. if (that._l01_a > _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) {
  16671. var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,
  16672. n = 3 * that._l01_a * (that._l01_a + that._l12_a);
  16673. x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;
  16674. y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;
  16675. }
  16676. if (that._l23_a > _math_js__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) {
  16677. var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,
  16678. m = 3 * that._l23_a * (that._l23_a + that._l12_a);
  16679. x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;
  16680. y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;
  16681. }
  16682. that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);
  16683. }
  16684. function CatmullRom(context, alpha) {
  16685. this._context = context;
  16686. this._alpha = alpha;
  16687. }
  16688. CatmullRom.prototype = {
  16689. areaStart: function() {
  16690. this._line = 0;
  16691. },
  16692. areaEnd: function() {
  16693. this._line = NaN;
  16694. },
  16695. lineStart: function() {
  16696. this._x0 = this._x1 = this._x2 =
  16697. this._y0 = this._y1 = this._y2 = NaN;
  16698. this._l01_a = this._l12_a = this._l23_a =
  16699. this._l01_2a = this._l12_2a = this._l23_2a =
  16700. this._point = 0;
  16701. },
  16702. lineEnd: function() {
  16703. switch (this._point) {
  16704. case 2: this._context.lineTo(this._x2, this._y2); break;
  16705. case 3: this.point(this._x2, this._y2); break;
  16706. }
  16707. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  16708. this._line = 1 - this._line;
  16709. },
  16710. point: function(x, y) {
  16711. x = +x, y = +y;
  16712. if (this._point) {
  16713. var x23 = this._x2 - x,
  16714. y23 = this._y2 - y;
  16715. this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
  16716. }
  16717. switch (this._point) {
  16718. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  16719. case 1: this._point = 2; break;
  16720. case 2: this._point = 3; // proceed
  16721. default: point(this, x, y); break;
  16722. }
  16723. this._l01_a = this._l12_a, this._l12_a = this._l23_a;
  16724. this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
  16725. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16726. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16727. }
  16728. };
  16729. /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) {
  16730. function catmullRom(context) {
  16731. return alpha ? new CatmullRom(context, alpha) : new _cardinal_js__WEBPACK_IMPORTED_MODULE_1__["Cardinal"](context, 0);
  16732. }
  16733. catmullRom.alpha = function(alpha) {
  16734. return custom(+alpha);
  16735. };
  16736. return catmullRom;
  16737. })(0.5));
  16738. /***/ }),
  16739. /***/ "./node_modules/d3-shape/src/curve/catmullRomClosed.js":
  16740. /*!*************************************************************!*\
  16741. !*** ./node_modules/d3-shape/src/curve/catmullRomClosed.js ***!
  16742. \*************************************************************/
  16743. /*! exports provided: default */
  16744. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16745. "use strict";
  16746. __webpack_require__.r(__webpack_exports__);
  16747. /* harmony import */ var _cardinalClosed_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinalClosed.js */ "./node_modules/d3-shape/src/curve/cardinalClosed.js");
  16748. /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-shape/src/noop.js");
  16749. /* harmony import */ var _catmullRom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./catmullRom.js */ "./node_modules/d3-shape/src/curve/catmullRom.js");
  16750. function CatmullRomClosed(context, alpha) {
  16751. this._context = context;
  16752. this._alpha = alpha;
  16753. }
  16754. CatmullRomClosed.prototype = {
  16755. areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  16756. areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  16757. lineStart: function() {
  16758. this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
  16759. this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
  16760. this._l01_a = this._l12_a = this._l23_a =
  16761. this._l01_2a = this._l12_2a = this._l23_2a =
  16762. this._point = 0;
  16763. },
  16764. lineEnd: function() {
  16765. switch (this._point) {
  16766. case 1: {
  16767. this._context.moveTo(this._x3, this._y3);
  16768. this._context.closePath();
  16769. break;
  16770. }
  16771. case 2: {
  16772. this._context.lineTo(this._x3, this._y3);
  16773. this._context.closePath();
  16774. break;
  16775. }
  16776. case 3: {
  16777. this.point(this._x3, this._y3);
  16778. this.point(this._x4, this._y4);
  16779. this.point(this._x5, this._y5);
  16780. break;
  16781. }
  16782. }
  16783. },
  16784. point: function(x, y) {
  16785. x = +x, y = +y;
  16786. if (this._point) {
  16787. var x23 = this._x2 - x,
  16788. y23 = this._y2 - y;
  16789. this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
  16790. }
  16791. switch (this._point) {
  16792. case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
  16793. case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
  16794. case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
  16795. default: Object(_catmullRom_js__WEBPACK_IMPORTED_MODULE_2__["point"])(this, x, y); break;
  16796. }
  16797. this._l01_a = this._l12_a, this._l12_a = this._l23_a;
  16798. this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
  16799. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16800. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16801. }
  16802. };
  16803. /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) {
  16804. function catmullRom(context) {
  16805. return alpha ? new CatmullRomClosed(context, alpha) : new _cardinalClosed_js__WEBPACK_IMPORTED_MODULE_0__["CardinalClosed"](context, 0);
  16806. }
  16807. catmullRom.alpha = function(alpha) {
  16808. return custom(+alpha);
  16809. };
  16810. return catmullRom;
  16811. })(0.5));
  16812. /***/ }),
  16813. /***/ "./node_modules/d3-shape/src/curve/catmullRomOpen.js":
  16814. /*!***********************************************************!*\
  16815. !*** ./node_modules/d3-shape/src/curve/catmullRomOpen.js ***!
  16816. \***********************************************************/
  16817. /*! exports provided: default */
  16818. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16819. "use strict";
  16820. __webpack_require__.r(__webpack_exports__);
  16821. /* harmony import */ var _cardinalOpen_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinalOpen.js */ "./node_modules/d3-shape/src/curve/cardinalOpen.js");
  16822. /* harmony import */ var _catmullRom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./catmullRom.js */ "./node_modules/d3-shape/src/curve/catmullRom.js");
  16823. function CatmullRomOpen(context, alpha) {
  16824. this._context = context;
  16825. this._alpha = alpha;
  16826. }
  16827. CatmullRomOpen.prototype = {
  16828. areaStart: function() {
  16829. this._line = 0;
  16830. },
  16831. areaEnd: function() {
  16832. this._line = NaN;
  16833. },
  16834. lineStart: function() {
  16835. this._x0 = this._x1 = this._x2 =
  16836. this._y0 = this._y1 = this._y2 = NaN;
  16837. this._l01_a = this._l12_a = this._l23_a =
  16838. this._l01_2a = this._l12_2a = this._l23_2a =
  16839. this._point = 0;
  16840. },
  16841. lineEnd: function() {
  16842. if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
  16843. this._line = 1 - this._line;
  16844. },
  16845. point: function(x, y) {
  16846. x = +x, y = +y;
  16847. if (this._point) {
  16848. var x23 = this._x2 - x,
  16849. y23 = this._y2 - y;
  16850. this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
  16851. }
  16852. switch (this._point) {
  16853. case 0: this._point = 1; break;
  16854. case 1: this._point = 2; break;
  16855. case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
  16856. case 3: this._point = 4; // proceed
  16857. default: Object(_catmullRom_js__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break;
  16858. }
  16859. this._l01_a = this._l12_a, this._l12_a = this._l23_a;
  16860. this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
  16861. this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
  16862. this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  16863. }
  16864. };
  16865. /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) {
  16866. function catmullRom(context) {
  16867. return alpha ? new CatmullRomOpen(context, alpha) : new _cardinalOpen_js__WEBPACK_IMPORTED_MODULE_0__["CardinalOpen"](context, 0);
  16868. }
  16869. catmullRom.alpha = function(alpha) {
  16870. return custom(+alpha);
  16871. };
  16872. return catmullRom;
  16873. })(0.5));
  16874. /***/ }),
  16875. /***/ "./node_modules/d3-shape/src/curve/linear.js":
  16876. /*!***************************************************!*\
  16877. !*** ./node_modules/d3-shape/src/curve/linear.js ***!
  16878. \***************************************************/
  16879. /*! exports provided: default */
  16880. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16881. "use strict";
  16882. __webpack_require__.r(__webpack_exports__);
  16883. function Linear(context) {
  16884. this._context = context;
  16885. }
  16886. Linear.prototype = {
  16887. areaStart: function() {
  16888. this._line = 0;
  16889. },
  16890. areaEnd: function() {
  16891. this._line = NaN;
  16892. },
  16893. lineStart: function() {
  16894. this._point = 0;
  16895. },
  16896. lineEnd: function() {
  16897. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  16898. this._line = 1 - this._line;
  16899. },
  16900. point: function(x, y) {
  16901. x = +x, y = +y;
  16902. switch (this._point) {
  16903. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  16904. case 1: this._point = 2; // proceed
  16905. default: this._context.lineTo(x, y); break;
  16906. }
  16907. }
  16908. };
  16909. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  16910. return new Linear(context);
  16911. });
  16912. /***/ }),
  16913. /***/ "./node_modules/d3-shape/src/curve/linearClosed.js":
  16914. /*!*********************************************************!*\
  16915. !*** ./node_modules/d3-shape/src/curve/linearClosed.js ***!
  16916. \*********************************************************/
  16917. /*! exports provided: default */
  16918. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16919. "use strict";
  16920. __webpack_require__.r(__webpack_exports__);
  16921. /* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-shape/src/noop.js");
  16922. function LinearClosed(context) {
  16923. this._context = context;
  16924. }
  16925. LinearClosed.prototype = {
  16926. areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  16927. areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  16928. lineStart: function() {
  16929. this._point = 0;
  16930. },
  16931. lineEnd: function() {
  16932. if (this._point) this._context.closePath();
  16933. },
  16934. point: function(x, y) {
  16935. x = +x, y = +y;
  16936. if (this._point) this._context.lineTo(x, y);
  16937. else this._point = 1, this._context.moveTo(x, y);
  16938. }
  16939. };
  16940. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  16941. return new LinearClosed(context);
  16942. });
  16943. /***/ }),
  16944. /***/ "./node_modules/d3-shape/src/curve/monotone.js":
  16945. /*!*****************************************************!*\
  16946. !*** ./node_modules/d3-shape/src/curve/monotone.js ***!
  16947. \*****************************************************/
  16948. /*! exports provided: monotoneX, monotoneY */
  16949. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16950. "use strict";
  16951. __webpack_require__.r(__webpack_exports__);
  16952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monotoneX", function() { return monotoneX; });
  16953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monotoneY", function() { return monotoneY; });
  16954. function sign(x) {
  16955. return x < 0 ? -1 : 1;
  16956. }
  16957. // Calculate the slopes of the tangents (Hermite-type interpolation) based on
  16958. // the following paper: Steffen, M. 1990. A Simple Method for Monotonic
  16959. // Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.
  16960. // NOV(II), P. 443, 1990.
  16961. function slope3(that, x2, y2) {
  16962. var h0 = that._x1 - that._x0,
  16963. h1 = x2 - that._x1,
  16964. s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),
  16965. s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),
  16966. p = (s0 * h1 + s1 * h0) / (h0 + h1);
  16967. return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
  16968. }
  16969. // Calculate a one-sided slope.
  16970. function slope2(that, t) {
  16971. var h = that._x1 - that._x0;
  16972. return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
  16973. }
  16974. // According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations
  16975. // "you can express cubic Hermite interpolation in terms of cubic Bézier curves
  16976. // with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1".
  16977. function point(that, t0, t1) {
  16978. var x0 = that._x0,
  16979. y0 = that._y0,
  16980. x1 = that._x1,
  16981. y1 = that._y1,
  16982. dx = (x1 - x0) / 3;
  16983. that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
  16984. }
  16985. function MonotoneX(context) {
  16986. this._context = context;
  16987. }
  16988. MonotoneX.prototype = {
  16989. areaStart: function() {
  16990. this._line = 0;
  16991. },
  16992. areaEnd: function() {
  16993. this._line = NaN;
  16994. },
  16995. lineStart: function() {
  16996. this._x0 = this._x1 =
  16997. this._y0 = this._y1 =
  16998. this._t0 = NaN;
  16999. this._point = 0;
  17000. },
  17001. lineEnd: function() {
  17002. switch (this._point) {
  17003. case 2: this._context.lineTo(this._x1, this._y1); break;
  17004. case 3: point(this, this._t0, slope2(this, this._t0)); break;
  17005. }
  17006. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  17007. this._line = 1 - this._line;
  17008. },
  17009. point: function(x, y) {
  17010. var t1 = NaN;
  17011. x = +x, y = +y;
  17012. if (x === this._x1 && y === this._y1) return; // Ignore coincident points.
  17013. switch (this._point) {
  17014. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  17015. case 1: this._point = 2; break;
  17016. case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;
  17017. default: point(this, this._t0, t1 = slope3(this, x, y)); break;
  17018. }
  17019. this._x0 = this._x1, this._x1 = x;
  17020. this._y0 = this._y1, this._y1 = y;
  17021. this._t0 = t1;
  17022. }
  17023. }
  17024. function MonotoneY(context) {
  17025. this._context = new ReflectContext(context);
  17026. }
  17027. (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {
  17028. MonotoneX.prototype.point.call(this, y, x);
  17029. };
  17030. function ReflectContext(context) {
  17031. this._context = context;
  17032. }
  17033. ReflectContext.prototype = {
  17034. moveTo: function(x, y) { this._context.moveTo(y, x); },
  17035. closePath: function() { this._context.closePath(); },
  17036. lineTo: function(x, y) { this._context.lineTo(y, x); },
  17037. bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }
  17038. };
  17039. function monotoneX(context) {
  17040. return new MonotoneX(context);
  17041. }
  17042. function monotoneY(context) {
  17043. return new MonotoneY(context);
  17044. }
  17045. /***/ }),
  17046. /***/ "./node_modules/d3-shape/src/curve/natural.js":
  17047. /*!****************************************************!*\
  17048. !*** ./node_modules/d3-shape/src/curve/natural.js ***!
  17049. \****************************************************/
  17050. /*! exports provided: default */
  17051. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17052. "use strict";
  17053. __webpack_require__.r(__webpack_exports__);
  17054. function Natural(context) {
  17055. this._context = context;
  17056. }
  17057. Natural.prototype = {
  17058. areaStart: function() {
  17059. this._line = 0;
  17060. },
  17061. areaEnd: function() {
  17062. this._line = NaN;
  17063. },
  17064. lineStart: function() {
  17065. this._x = [];
  17066. this._y = [];
  17067. },
  17068. lineEnd: function() {
  17069. var x = this._x,
  17070. y = this._y,
  17071. n = x.length;
  17072. if (n) {
  17073. this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);
  17074. if (n === 2) {
  17075. this._context.lineTo(x[1], y[1]);
  17076. } else {
  17077. var px = controlPoints(x),
  17078. py = controlPoints(y);
  17079. for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {
  17080. this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);
  17081. }
  17082. }
  17083. }
  17084. if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();
  17085. this._line = 1 - this._line;
  17086. this._x = this._y = null;
  17087. },
  17088. point: function(x, y) {
  17089. this._x.push(+x);
  17090. this._y.push(+y);
  17091. }
  17092. };
  17093. // See https://www.particleincell.com/2012/bezier-splines/ for derivation.
  17094. function controlPoints(x) {
  17095. var i,
  17096. n = x.length - 1,
  17097. m,
  17098. a = new Array(n),
  17099. b = new Array(n),
  17100. r = new Array(n);
  17101. a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];
  17102. for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];
  17103. a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];
  17104. for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];
  17105. a[n - 1] = r[n - 1] / b[n - 1];
  17106. for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];
  17107. b[n - 1] = (x[n] + a[n - 1]) / 2;
  17108. for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];
  17109. return [a, b];
  17110. }
  17111. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  17112. return new Natural(context);
  17113. });
  17114. /***/ }),
  17115. /***/ "./node_modules/d3-shape/src/curve/radial.js":
  17116. /*!***************************************************!*\
  17117. !*** ./node_modules/d3-shape/src/curve/radial.js ***!
  17118. \***************************************************/
  17119. /*! exports provided: curveRadialLinear, default */
  17120. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17121. "use strict";
  17122. __webpack_require__.r(__webpack_exports__);
  17123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "curveRadialLinear", function() { return curveRadialLinear; });
  17124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return curveRadial; });
  17125. /* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "./node_modules/d3-shape/src/curve/linear.js");
  17126. var curveRadialLinear = curveRadial(_linear_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
  17127. function Radial(curve) {
  17128. this._curve = curve;
  17129. }
  17130. Radial.prototype = {
  17131. areaStart: function() {
  17132. this._curve.areaStart();
  17133. },
  17134. areaEnd: function() {
  17135. this._curve.areaEnd();
  17136. },
  17137. lineStart: function() {
  17138. this._curve.lineStart();
  17139. },
  17140. lineEnd: function() {
  17141. this._curve.lineEnd();
  17142. },
  17143. point: function(a, r) {
  17144. this._curve.point(r * Math.sin(a), r * -Math.cos(a));
  17145. }
  17146. };
  17147. function curveRadial(curve) {
  17148. function radial(context) {
  17149. return new Radial(curve(context));
  17150. }
  17151. radial._curve = curve;
  17152. return radial;
  17153. }
  17154. /***/ }),
  17155. /***/ "./node_modules/d3-shape/src/curve/step.js":
  17156. /*!*************************************************!*\
  17157. !*** ./node_modules/d3-shape/src/curve/step.js ***!
  17158. \*************************************************/
  17159. /*! exports provided: default, stepBefore, stepAfter */
  17160. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17161. "use strict";
  17162. __webpack_require__.r(__webpack_exports__);
  17163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stepBefore", function() { return stepBefore; });
  17164. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stepAfter", function() { return stepAfter; });
  17165. function Step(context, t) {
  17166. this._context = context;
  17167. this._t = t;
  17168. }
  17169. Step.prototype = {
  17170. areaStart: function() {
  17171. this._line = 0;
  17172. },
  17173. areaEnd: function() {
  17174. this._line = NaN;
  17175. },
  17176. lineStart: function() {
  17177. this._x = this._y = NaN;
  17178. this._point = 0;
  17179. },
  17180. lineEnd: function() {
  17181. if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);
  17182. if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
  17183. if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;
  17184. },
  17185. point: function(x, y) {
  17186. x = +x, y = +y;
  17187. switch (this._point) {
  17188. case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
  17189. case 1: this._point = 2; // proceed
  17190. default: {
  17191. if (this._t <= 0) {
  17192. this._context.lineTo(this._x, y);
  17193. this._context.lineTo(x, y);
  17194. } else {
  17195. var x1 = this._x * (1 - this._t) + x * this._t;
  17196. this._context.lineTo(x1, this._y);
  17197. this._context.lineTo(x1, y);
  17198. }
  17199. break;
  17200. }
  17201. }
  17202. this._x = x, this._y = y;
  17203. }
  17204. };
  17205. /* harmony default export */ __webpack_exports__["default"] = (function(context) {
  17206. return new Step(context, 0.5);
  17207. });
  17208. function stepBefore(context) {
  17209. return new Step(context, 0);
  17210. }
  17211. function stepAfter(context) {
  17212. return new Step(context, 1);
  17213. }
  17214. /***/ }),
  17215. /***/ "./node_modules/d3-shape/src/descending.js":
  17216. /*!*************************************************!*\
  17217. !*** ./node_modules/d3-shape/src/descending.js ***!
  17218. \*************************************************/
  17219. /*! exports provided: default */
  17220. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17221. "use strict";
  17222. __webpack_require__.r(__webpack_exports__);
  17223. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  17224. return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
  17225. });
  17226. /***/ }),
  17227. /***/ "./node_modules/d3-shape/src/identity.js":
  17228. /*!***********************************************!*\
  17229. !*** ./node_modules/d3-shape/src/identity.js ***!
  17230. \***********************************************/
  17231. /*! exports provided: default */
  17232. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17233. "use strict";
  17234. __webpack_require__.r(__webpack_exports__);
  17235. /* harmony default export */ __webpack_exports__["default"] = (function(d) {
  17236. return d;
  17237. });
  17238. /***/ }),
  17239. /***/ "./node_modules/d3-shape/src/index.js":
  17240. /*!********************************************!*\
  17241. !*** ./node_modules/d3-shape/src/index.js ***!
  17242. \********************************************/
  17243. /*! 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, stackOrderAppearance, stackOrderAscending, stackOrderDescending, stackOrderInsideOut, stackOrderNone, stackOrderReverse */
  17244. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17245. "use strict";
  17246. __webpack_require__.r(__webpack_exports__);
  17247. /* harmony import */ var _arc_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arc.js */ "./node_modules/d3-shape/src/arc.js");
  17248. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "arc", function() { return _arc_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  17249. /* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area.js */ "./node_modules/d3-shape/src/area.js");
  17250. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "area", function() { return _area_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  17251. /* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line.js */ "./node_modules/d3-shape/src/line.js");
  17252. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "line", function() { return _line_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  17253. /* harmony import */ var _pie_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pie.js */ "./node_modules/d3-shape/src/pie.js");
  17254. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pie", function() { return _pie_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  17255. /* harmony import */ var _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./areaRadial.js */ "./node_modules/d3-shape/src/areaRadial.js");
  17256. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "areaRadial", function() { return _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  17257. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialArea", function() { return _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  17258. /* harmony import */ var _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lineRadial.js */ "./node_modules/d3-shape/src/lineRadial.js");
  17259. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lineRadial", function() { return _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  17260. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialLine", function() { return _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  17261. /* harmony import */ var _pointRadial_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pointRadial.js */ "./node_modules/d3-shape/src/pointRadial.js");
  17262. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pointRadial", function() { return _pointRadial_js__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  17263. /* harmony import */ var _link_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./link/index.js */ "./node_modules/d3-shape/src/link/index.js");
  17264. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkHorizontal", function() { return _link_index_js__WEBPACK_IMPORTED_MODULE_7__["linkHorizontal"]; });
  17265. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkVertical", function() { return _link_index_js__WEBPACK_IMPORTED_MODULE_7__["linkVertical"]; });
  17266. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkRadial", function() { return _link_index_js__WEBPACK_IMPORTED_MODULE_7__["linkRadial"]; });
  17267. /* harmony import */ var _symbol_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./symbol.js */ "./node_modules/d3-shape/src/symbol.js");
  17268. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbol", function() { return _symbol_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  17269. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbols", function() { return _symbol_js__WEBPACK_IMPORTED_MODULE_8__["symbols"]; });
  17270. /* harmony import */ var _symbol_circle_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./symbol/circle.js */ "./node_modules/d3-shape/src/symbol/circle.js");
  17271. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCircle", function() { return _symbol_circle_js__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  17272. /* harmony import */ var _symbol_cross_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./symbol/cross.js */ "./node_modules/d3-shape/src/symbol/cross.js");
  17273. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCross", function() { return _symbol_cross_js__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  17274. /* harmony import */ var _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./symbol/diamond.js */ "./node_modules/d3-shape/src/symbol/diamond.js");
  17275. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolDiamond", function() { return _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  17276. /* harmony import */ var _symbol_square_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./symbol/square.js */ "./node_modules/d3-shape/src/symbol/square.js");
  17277. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolSquare", function() { return _symbol_square_js__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  17278. /* harmony import */ var _symbol_star_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./symbol/star.js */ "./node_modules/d3-shape/src/symbol/star.js");
  17279. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolStar", function() { return _symbol_star_js__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  17280. /* harmony import */ var _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./symbol/triangle.js */ "./node_modules/d3-shape/src/symbol/triangle.js");
  17281. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolTriangle", function() { return _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  17282. /* harmony import */ var _symbol_wye_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./symbol/wye.js */ "./node_modules/d3-shape/src/symbol/wye.js");
  17283. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolWye", function() { return _symbol_wye_js__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  17284. /* harmony import */ var _curve_basisClosed_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./curve/basisClosed.js */ "./node_modules/d3-shape/src/curve/basisClosed.js");
  17285. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisClosed", function() { return _curve_basisClosed_js__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  17286. /* harmony import */ var _curve_basisOpen_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./curve/basisOpen.js */ "./node_modules/d3-shape/src/curve/basisOpen.js");
  17287. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisOpen", function() { return _curve_basisOpen_js__WEBPACK_IMPORTED_MODULE_17__["default"]; });
  17288. /* harmony import */ var _curve_basis_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./curve/basis.js */ "./node_modules/d3-shape/src/curve/basis.js");
  17289. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasis", function() { return _curve_basis_js__WEBPACK_IMPORTED_MODULE_18__["default"]; });
  17290. /* harmony import */ var _curve_bundle_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./curve/bundle.js */ "./node_modules/d3-shape/src/curve/bundle.js");
  17291. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBundle", function() { return _curve_bundle_js__WEBPACK_IMPORTED_MODULE_19__["default"]; });
  17292. /* harmony import */ var _curve_cardinalClosed_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./curve/cardinalClosed.js */ "./node_modules/d3-shape/src/curve/cardinalClosed.js");
  17293. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalClosed", function() { return _curve_cardinalClosed_js__WEBPACK_IMPORTED_MODULE_20__["default"]; });
  17294. /* harmony import */ var _curve_cardinalOpen_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./curve/cardinalOpen.js */ "./node_modules/d3-shape/src/curve/cardinalOpen.js");
  17295. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalOpen", function() { return _curve_cardinalOpen_js__WEBPACK_IMPORTED_MODULE_21__["default"]; });
  17296. /* harmony import */ var _curve_cardinal_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./curve/cardinal.js */ "./node_modules/d3-shape/src/curve/cardinal.js");
  17297. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinal", function() { return _curve_cardinal_js__WEBPACK_IMPORTED_MODULE_22__["default"]; });
  17298. /* harmony import */ var _curve_catmullRomClosed_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./curve/catmullRomClosed.js */ "./node_modules/d3-shape/src/curve/catmullRomClosed.js");
  17299. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomClosed", function() { return _curve_catmullRomClosed_js__WEBPACK_IMPORTED_MODULE_23__["default"]; });
  17300. /* harmony import */ var _curve_catmullRomOpen_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./curve/catmullRomOpen.js */ "./node_modules/d3-shape/src/curve/catmullRomOpen.js");
  17301. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomOpen", function() { return _curve_catmullRomOpen_js__WEBPACK_IMPORTED_MODULE_24__["default"]; });
  17302. /* harmony import */ var _curve_catmullRom_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./curve/catmullRom.js */ "./node_modules/d3-shape/src/curve/catmullRom.js");
  17303. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRom", function() { return _curve_catmullRom_js__WEBPACK_IMPORTED_MODULE_25__["default"]; });
  17304. /* harmony import */ var _curve_linearClosed_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./curve/linearClosed.js */ "./node_modules/d3-shape/src/curve/linearClosed.js");
  17305. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinearClosed", function() { return _curve_linearClosed_js__WEBPACK_IMPORTED_MODULE_26__["default"]; });
  17306. /* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./curve/linear.js */ "./node_modules/d3-shape/src/curve/linear.js");
  17307. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinear", function() { return _curve_linear_js__WEBPACK_IMPORTED_MODULE_27__["default"]; });
  17308. /* harmony import */ var _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./curve/monotone.js */ "./node_modules/d3-shape/src/curve/monotone.js");
  17309. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneX", function() { return _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__["monotoneX"]; });
  17310. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneY", function() { return _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__["monotoneY"]; });
  17311. /* harmony import */ var _curve_natural_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./curve/natural.js */ "./node_modules/d3-shape/src/curve/natural.js");
  17312. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveNatural", function() { return _curve_natural_js__WEBPACK_IMPORTED_MODULE_29__["default"]; });
  17313. /* harmony import */ var _curve_step_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./curve/step.js */ "./node_modules/d3-shape/src/curve/step.js");
  17314. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStep", function() { return _curve_step_js__WEBPACK_IMPORTED_MODULE_30__["default"]; });
  17315. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepAfter", function() { return _curve_step_js__WEBPACK_IMPORTED_MODULE_30__["stepAfter"]; });
  17316. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepBefore", function() { return _curve_step_js__WEBPACK_IMPORTED_MODULE_30__["stepBefore"]; });
  17317. /* harmony import */ var _stack_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./stack.js */ "./node_modules/d3-shape/src/stack.js");
  17318. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stack", function() { return _stack_js__WEBPACK_IMPORTED_MODULE_31__["default"]; });
  17319. /* harmony import */ var _offset_expand_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./offset/expand.js */ "./node_modules/d3-shape/src/offset/expand.js");
  17320. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetExpand", function() { return _offset_expand_js__WEBPACK_IMPORTED_MODULE_32__["default"]; });
  17321. /* harmony import */ var _offset_diverging_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./offset/diverging.js */ "./node_modules/d3-shape/src/offset/diverging.js");
  17322. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetDiverging", function() { return _offset_diverging_js__WEBPACK_IMPORTED_MODULE_33__["default"]; });
  17323. /* harmony import */ var _offset_none_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./offset/none.js */ "./node_modules/d3-shape/src/offset/none.js");
  17324. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetNone", function() { return _offset_none_js__WEBPACK_IMPORTED_MODULE_34__["default"]; });
  17325. /* harmony import */ var _offset_silhouette_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./offset/silhouette.js */ "./node_modules/d3-shape/src/offset/silhouette.js");
  17326. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetSilhouette", function() { return _offset_silhouette_js__WEBPACK_IMPORTED_MODULE_35__["default"]; });
  17327. /* harmony import */ var _offset_wiggle_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./offset/wiggle.js */ "./node_modules/d3-shape/src/offset/wiggle.js");
  17328. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetWiggle", function() { return _offset_wiggle_js__WEBPACK_IMPORTED_MODULE_36__["default"]; });
  17329. /* harmony import */ var _order_appearance_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./order/appearance.js */ "./node_modules/d3-shape/src/order/appearance.js");
  17330. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderAppearance", function() { return _order_appearance_js__WEBPACK_IMPORTED_MODULE_37__["default"]; });
  17331. /* harmony import */ var _order_ascending_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./order/ascending.js */ "./node_modules/d3-shape/src/order/ascending.js");
  17332. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderAscending", function() { return _order_ascending_js__WEBPACK_IMPORTED_MODULE_38__["default"]; });
  17333. /* harmony import */ var _order_descending_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./order/descending.js */ "./node_modules/d3-shape/src/order/descending.js");
  17334. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderDescending", function() { return _order_descending_js__WEBPACK_IMPORTED_MODULE_39__["default"]; });
  17335. /* harmony import */ var _order_insideOut_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./order/insideOut.js */ "./node_modules/d3-shape/src/order/insideOut.js");
  17336. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderInsideOut", function() { return _order_insideOut_js__WEBPACK_IMPORTED_MODULE_40__["default"]; });
  17337. /* harmony import */ var _order_none_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./order/none.js */ "./node_modules/d3-shape/src/order/none.js");
  17338. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderNone", function() { return _order_none_js__WEBPACK_IMPORTED_MODULE_41__["default"]; });
  17339. /* harmony import */ var _order_reverse_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./order/reverse.js */ "./node_modules/d3-shape/src/order/reverse.js");
  17340. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderReverse", function() { return _order_reverse_js__WEBPACK_IMPORTED_MODULE_42__["default"]; });
  17341. // Note: radialArea is deprecated!
  17342. // Note: radialLine is deprecated!
  17343. /***/ }),
  17344. /***/ "./node_modules/d3-shape/src/line.js":
  17345. /*!*******************************************!*\
  17346. !*** ./node_modules/d3-shape/src/line.js ***!
  17347. \*******************************************/
  17348. /*! exports provided: default */
  17349. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17350. "use strict";
  17351. __webpack_require__.r(__webpack_exports__);
  17352. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  17353. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");
  17354. /* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear.js */ "./node_modules/d3-shape/src/curve/linear.js");
  17355. /* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./point.js */ "./node_modules/d3-shape/src/point.js");
  17356. /* harmony default export */ __webpack_exports__["default"] = (function() {
  17357. var x = _point_js__WEBPACK_IMPORTED_MODULE_3__["x"],
  17358. y = _point_js__WEBPACK_IMPORTED_MODULE_3__["y"],
  17359. defined = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(true),
  17360. context = null,
  17361. curve = _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  17362. output = null;
  17363. function line(data) {
  17364. var i,
  17365. n = data.length,
  17366. d,
  17367. defined0 = false,
  17368. buffer;
  17369. if (context == null) output = curve(buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])());
  17370. for (i = 0; i <= n; ++i) {
  17371. if (!(i < n && defined(d = data[i], i, data)) === defined0) {
  17372. if (defined0 = !defined0) output.lineStart();
  17373. else output.lineEnd();
  17374. }
  17375. if (defined0) output.point(+x(d, i, data), +y(d, i, data));
  17376. }
  17377. if (buffer) return output = null, buffer + "" || null;
  17378. }
  17379. line.x = function(_) {
  17380. return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), line) : x;
  17381. };
  17382. line.y = function(_) {
  17383. return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), line) : y;
  17384. };
  17385. line.defined = function(_) {
  17386. return arguments.length ? (defined = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(!!_), line) : defined;
  17387. };
  17388. line.curve = function(_) {
  17389. return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;
  17390. };
  17391. line.context = function(_) {
  17392. return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;
  17393. };
  17394. return line;
  17395. });
  17396. /***/ }),
  17397. /***/ "./node_modules/d3-shape/src/lineRadial.js":
  17398. /*!*************************************************!*\
  17399. !*** ./node_modules/d3-shape/src/lineRadial.js ***!
  17400. \*************************************************/
  17401. /*! exports provided: lineRadial, default */
  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__, "lineRadial", function() { return lineRadial; });
  17406. /* harmony import */ var _curve_radial_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./curve/radial.js */ "./node_modules/d3-shape/src/curve/radial.js");
  17407. /* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./line.js */ "./node_modules/d3-shape/src/line.js");
  17408. function lineRadial(l) {
  17409. var c = l.curve;
  17410. l.angle = l.x, delete l.x;
  17411. l.radius = l.y, delete l.y;
  17412. l.curve = function(_) {
  17413. return arguments.length ? c(Object(_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_)) : c()._curve;
  17414. };
  17415. return l;
  17416. }
  17417. /* harmony default export */ __webpack_exports__["default"] = (function() {
  17418. return lineRadial(Object(_line_js__WEBPACK_IMPORTED_MODULE_1__["default"])().curve(_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__["curveRadialLinear"]));
  17419. });
  17420. /***/ }),
  17421. /***/ "./node_modules/d3-shape/src/link/index.js":
  17422. /*!*************************************************!*\
  17423. !*** ./node_modules/d3-shape/src/link/index.js ***!
  17424. \*************************************************/
  17425. /*! exports provided: linkHorizontal, linkVertical, linkRadial */
  17426. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17427. "use strict";
  17428. __webpack_require__.r(__webpack_exports__);
  17429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkHorizontal", function() { return linkHorizontal; });
  17430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkVertical", function() { return linkVertical; });
  17431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkRadial", function() { return linkRadial; });
  17432. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  17433. /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../array.js */ "./node_modules/d3-shape/src/array.js");
  17434. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constant.js */ "./node_modules/d3-shape/src/constant.js");
  17435. /* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../point.js */ "./node_modules/d3-shape/src/point.js");
  17436. /* harmony import */ var _pointRadial_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../pointRadial.js */ "./node_modules/d3-shape/src/pointRadial.js");
  17437. function linkSource(d) {
  17438. return d.source;
  17439. }
  17440. function linkTarget(d) {
  17441. return d.target;
  17442. }
  17443. function link(curve) {
  17444. var source = linkSource,
  17445. target = linkTarget,
  17446. x = _point_js__WEBPACK_IMPORTED_MODULE_3__["x"],
  17447. y = _point_js__WEBPACK_IMPORTED_MODULE_3__["y"],
  17448. context = null;
  17449. function link() {
  17450. var buffer, argv = _array_js__WEBPACK_IMPORTED_MODULE_1__["slice"].call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);
  17451. if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])();
  17452. curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv));
  17453. if (buffer) return context = null, buffer + "" || null;
  17454. }
  17455. link.source = function(_) {
  17456. return arguments.length ? (source = _, link) : source;
  17457. };
  17458. link.target = function(_) {
  17459. return arguments.length ? (target = _, link) : target;
  17460. };
  17461. link.x = function(_) {
  17462. return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), link) : x;
  17463. };
  17464. link.y = function(_) {
  17465. return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), link) : y;
  17466. };
  17467. link.context = function(_) {
  17468. return arguments.length ? ((context = _ == null ? null : _), link) : context;
  17469. };
  17470. return link;
  17471. }
  17472. function curveHorizontal(context, x0, y0, x1, y1) {
  17473. context.moveTo(x0, y0);
  17474. context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);
  17475. }
  17476. function curveVertical(context, x0, y0, x1, y1) {
  17477. context.moveTo(x0, y0);
  17478. context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);
  17479. }
  17480. function curveRadial(context, x0, y0, x1, y1) {
  17481. var p0 = Object(_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x0, y0),
  17482. p1 = Object(_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x0, y0 = (y0 + y1) / 2),
  17483. p2 = Object(_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x1, y0),
  17484. p3 = Object(_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x1, y1);
  17485. context.moveTo(p0[0], p0[1]);
  17486. context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);
  17487. }
  17488. function linkHorizontal() {
  17489. return link(curveHorizontal);
  17490. }
  17491. function linkVertical() {
  17492. return link(curveVertical);
  17493. }
  17494. function linkRadial() {
  17495. var l = link(curveRadial);
  17496. l.angle = l.x, delete l.x;
  17497. l.radius = l.y, delete l.y;
  17498. return l;
  17499. }
  17500. /***/ }),
  17501. /***/ "./node_modules/d3-shape/src/math.js":
  17502. /*!*******************************************!*\
  17503. !*** ./node_modules/d3-shape/src/math.js ***!
  17504. \*******************************************/
  17505. /*! exports provided: abs, atan2, cos, max, min, sin, sqrt, epsilon, pi, halfPi, tau, acos, asin */
  17506. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17507. "use strict";
  17508. __webpack_require__.r(__webpack_exports__);
  17509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "abs", function() { return abs; });
  17510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "atan2", function() { return atan2; });
  17511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cos", function() { return cos; });
  17512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "max", function() { return max; });
  17513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "min", function() { return min; });
  17514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sin", function() { return sin; });
  17515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sqrt", function() { return sqrt; });
  17516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon", function() { return epsilon; });
  17517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pi", function() { return pi; });
  17518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "halfPi", function() { return halfPi; });
  17519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tau", function() { return tau; });
  17520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "acos", function() { return acos; });
  17521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asin", function() { return asin; });
  17522. var abs = Math.abs;
  17523. var atan2 = Math.atan2;
  17524. var cos = Math.cos;
  17525. var max = Math.max;
  17526. var min = Math.min;
  17527. var sin = Math.sin;
  17528. var sqrt = Math.sqrt;
  17529. var epsilon = 1e-12;
  17530. var pi = Math.PI;
  17531. var halfPi = pi / 2;
  17532. var tau = 2 * pi;
  17533. function acos(x) {
  17534. return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
  17535. }
  17536. function asin(x) {
  17537. return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
  17538. }
  17539. /***/ }),
  17540. /***/ "./node_modules/d3-shape/src/noop.js":
  17541. /*!*******************************************!*\
  17542. !*** ./node_modules/d3-shape/src/noop.js ***!
  17543. \*******************************************/
  17544. /*! exports provided: default */
  17545. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17546. "use strict";
  17547. __webpack_require__.r(__webpack_exports__);
  17548. /* harmony default export */ __webpack_exports__["default"] = (function() {});
  17549. /***/ }),
  17550. /***/ "./node_modules/d3-shape/src/offset/diverging.js":
  17551. /*!*******************************************************!*\
  17552. !*** ./node_modules/d3-shape/src/offset/diverging.js ***!
  17553. \*******************************************************/
  17554. /*! exports provided: default */
  17555. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17556. "use strict";
  17557. __webpack_require__.r(__webpack_exports__);
  17558. /* harmony default export */ __webpack_exports__["default"] = (function(series, order) {
  17559. if (!((n = series.length) > 0)) return;
  17560. for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {
  17561. for (yp = yn = 0, i = 0; i < n; ++i) {
  17562. if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) {
  17563. d[0] = yp, d[1] = yp += dy;
  17564. } else if (dy < 0) {
  17565. d[1] = yn, d[0] = yn += dy;
  17566. } else {
  17567. d[0] = 0, d[1] = dy;
  17568. }
  17569. }
  17570. }
  17571. });
  17572. /***/ }),
  17573. /***/ "./node_modules/d3-shape/src/offset/expand.js":
  17574. /*!****************************************************!*\
  17575. !*** ./node_modules/d3-shape/src/offset/expand.js ***!
  17576. \****************************************************/
  17577. /*! exports provided: default */
  17578. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17579. "use strict";
  17580. __webpack_require__.r(__webpack_exports__);
  17581. /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/offset/none.js");
  17582. /* harmony default export */ __webpack_exports__["default"] = (function(series, order) {
  17583. if (!((n = series.length) > 0)) return;
  17584. for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {
  17585. for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;
  17586. if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;
  17587. }
  17588. Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order);
  17589. });
  17590. /***/ }),
  17591. /***/ "./node_modules/d3-shape/src/offset/none.js":
  17592. /*!**************************************************!*\
  17593. !*** ./node_modules/d3-shape/src/offset/none.js ***!
  17594. \**************************************************/
  17595. /*! exports provided: default */
  17596. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17597. "use strict";
  17598. __webpack_require__.r(__webpack_exports__);
  17599. /* harmony default export */ __webpack_exports__["default"] = (function(series, order) {
  17600. if (!((n = series.length) > 1)) return;
  17601. for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {
  17602. s0 = s1, s1 = series[order[i]];
  17603. for (j = 0; j < m; ++j) {
  17604. s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];
  17605. }
  17606. }
  17607. });
  17608. /***/ }),
  17609. /***/ "./node_modules/d3-shape/src/offset/silhouette.js":
  17610. /*!********************************************************!*\
  17611. !*** ./node_modules/d3-shape/src/offset/silhouette.js ***!
  17612. \********************************************************/
  17613. /*! exports provided: default */
  17614. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17615. "use strict";
  17616. __webpack_require__.r(__webpack_exports__);
  17617. /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/offset/none.js");
  17618. /* harmony default export */ __webpack_exports__["default"] = (function(series, order) {
  17619. if (!((n = series.length) > 0)) return;
  17620. for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {
  17621. for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;
  17622. s0[j][1] += s0[j][0] = -y / 2;
  17623. }
  17624. Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order);
  17625. });
  17626. /***/ }),
  17627. /***/ "./node_modules/d3-shape/src/offset/wiggle.js":
  17628. /*!****************************************************!*\
  17629. !*** ./node_modules/d3-shape/src/offset/wiggle.js ***!
  17630. \****************************************************/
  17631. /*! exports provided: default */
  17632. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17633. "use strict";
  17634. __webpack_require__.r(__webpack_exports__);
  17635. /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/offset/none.js");
  17636. /* harmony default export */ __webpack_exports__["default"] = (function(series, order) {
  17637. if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;
  17638. for (var y = 0, j = 1, s0, m, n; j < m; ++j) {
  17639. for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {
  17640. var si = series[order[i]],
  17641. sij0 = si[j][1] || 0,
  17642. sij1 = si[j - 1][1] || 0,
  17643. s3 = (sij0 - sij1) / 2;
  17644. for (var k = 0; k < i; ++k) {
  17645. var sk = series[order[k]],
  17646. skj0 = sk[j][1] || 0,
  17647. skj1 = sk[j - 1][1] || 0;
  17648. s3 += skj0 - skj1;
  17649. }
  17650. s1 += sij0, s2 += s3 * sij0;
  17651. }
  17652. s0[j - 1][1] += s0[j - 1][0] = y;
  17653. if (s1) y -= s2 / s1;
  17654. }
  17655. s0[j - 1][1] += s0[j - 1][0] = y;
  17656. Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order);
  17657. });
  17658. /***/ }),
  17659. /***/ "./node_modules/d3-shape/src/order/appearance.js":
  17660. /*!*******************************************************!*\
  17661. !*** ./node_modules/d3-shape/src/order/appearance.js ***!
  17662. \*******************************************************/
  17663. /*! exports provided: default */
  17664. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17665. "use strict";
  17666. __webpack_require__.r(__webpack_exports__);
  17667. /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/order/none.js");
  17668. /* harmony default export */ __webpack_exports__["default"] = (function(series) {
  17669. var peaks = series.map(peak);
  17670. return Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).sort(function(a, b) { return peaks[a] - peaks[b]; });
  17671. });
  17672. function peak(series) {
  17673. var i = -1, j = 0, n = series.length, vi, vj = -Infinity;
  17674. while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;
  17675. return j;
  17676. }
  17677. /***/ }),
  17678. /***/ "./node_modules/d3-shape/src/order/ascending.js":
  17679. /*!******************************************************!*\
  17680. !*** ./node_modules/d3-shape/src/order/ascending.js ***!
  17681. \******************************************************/
  17682. /*! exports provided: default, sum */
  17683. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17684. "use strict";
  17685. __webpack_require__.r(__webpack_exports__);
  17686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return sum; });
  17687. /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/order/none.js");
  17688. /* harmony default export */ __webpack_exports__["default"] = (function(series) {
  17689. var sums = series.map(sum);
  17690. return Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).sort(function(a, b) { return sums[a] - sums[b]; });
  17691. });
  17692. function sum(series) {
  17693. var s = 0, i = -1, n = series.length, v;
  17694. while (++i < n) if (v = +series[i][1]) s += v;
  17695. return s;
  17696. }
  17697. /***/ }),
  17698. /***/ "./node_modules/d3-shape/src/order/descending.js":
  17699. /*!*******************************************************!*\
  17700. !*** ./node_modules/d3-shape/src/order/descending.js ***!
  17701. \*******************************************************/
  17702. /*! exports provided: default */
  17703. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17704. "use strict";
  17705. __webpack_require__.r(__webpack_exports__);
  17706. /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "./node_modules/d3-shape/src/order/ascending.js");
  17707. /* harmony default export */ __webpack_exports__["default"] = (function(series) {
  17708. return Object(_ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).reverse();
  17709. });
  17710. /***/ }),
  17711. /***/ "./node_modules/d3-shape/src/order/insideOut.js":
  17712. /*!******************************************************!*\
  17713. !*** ./node_modules/d3-shape/src/order/insideOut.js ***!
  17714. \******************************************************/
  17715. /*! exports provided: default */
  17716. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17717. "use strict";
  17718. __webpack_require__.r(__webpack_exports__);
  17719. /* harmony import */ var _appearance_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./appearance.js */ "./node_modules/d3-shape/src/order/appearance.js");
  17720. /* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "./node_modules/d3-shape/src/order/ascending.js");
  17721. /* harmony default export */ __webpack_exports__["default"] = (function(series) {
  17722. var n = series.length,
  17723. i,
  17724. j,
  17725. sums = series.map(_ascending_js__WEBPACK_IMPORTED_MODULE_1__["sum"]),
  17726. order = Object(_appearance_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series),
  17727. top = 0,
  17728. bottom = 0,
  17729. tops = [],
  17730. bottoms = [];
  17731. for (i = 0; i < n; ++i) {
  17732. j = order[i];
  17733. if (top < bottom) {
  17734. top += sums[j];
  17735. tops.push(j);
  17736. } else {
  17737. bottom += sums[j];
  17738. bottoms.push(j);
  17739. }
  17740. }
  17741. return bottoms.reverse().concat(tops);
  17742. });
  17743. /***/ }),
  17744. /***/ "./node_modules/d3-shape/src/order/none.js":
  17745. /*!*************************************************!*\
  17746. !*** ./node_modules/d3-shape/src/order/none.js ***!
  17747. \*************************************************/
  17748. /*! exports provided: default */
  17749. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17750. "use strict";
  17751. __webpack_require__.r(__webpack_exports__);
  17752. /* harmony default export */ __webpack_exports__["default"] = (function(series) {
  17753. var n = series.length, o = new Array(n);
  17754. while (--n >= 0) o[n] = n;
  17755. return o;
  17756. });
  17757. /***/ }),
  17758. /***/ "./node_modules/d3-shape/src/order/reverse.js":
  17759. /*!****************************************************!*\
  17760. !*** ./node_modules/d3-shape/src/order/reverse.js ***!
  17761. \****************************************************/
  17762. /*! exports provided: default */
  17763. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17764. "use strict";
  17765. __webpack_require__.r(__webpack_exports__);
  17766. /* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/order/none.js");
  17767. /* harmony default export */ __webpack_exports__["default"] = (function(series) {
  17768. return Object(_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).reverse();
  17769. });
  17770. /***/ }),
  17771. /***/ "./node_modules/d3-shape/src/pie.js":
  17772. /*!******************************************!*\
  17773. !*** ./node_modules/d3-shape/src/pie.js ***!
  17774. \******************************************/
  17775. /*! exports provided: default */
  17776. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17777. "use strict";
  17778. __webpack_require__.r(__webpack_exports__);
  17779. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");
  17780. /* harmony import */ var _descending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./descending.js */ "./node_modules/d3-shape/src/descending.js");
  17781. /* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./identity.js */ "./node_modules/d3-shape/src/identity.js");
  17782. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-shape/src/math.js");
  17783. /* harmony default export */ __webpack_exports__["default"] = (function() {
  17784. var value = _identity_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  17785. sortValues = _descending_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  17786. sort = null,
  17787. startAngle = Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(0),
  17788. endAngle = Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_math_js__WEBPACK_IMPORTED_MODULE_3__["tau"]),
  17789. padAngle = Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(0);
  17790. function pie(data) {
  17791. var i,
  17792. n = data.length,
  17793. j,
  17794. k,
  17795. sum = 0,
  17796. index = new Array(n),
  17797. arcs = new Array(n),
  17798. a0 = +startAngle.apply(this, arguments),
  17799. da = Math.min(_math_js__WEBPACK_IMPORTED_MODULE_3__["tau"], Math.max(-_math_js__WEBPACK_IMPORTED_MODULE_3__["tau"], endAngle.apply(this, arguments) - a0)),
  17800. a1,
  17801. p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),
  17802. pa = p * (da < 0 ? -1 : 1),
  17803. v;
  17804. for (i = 0; i < n; ++i) {
  17805. if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {
  17806. sum += v;
  17807. }
  17808. }
  17809. // Optionally sort the arcs by previously-computed values or by data.
  17810. if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });
  17811. else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });
  17812. // Compute the arcs! They are stored in the original data's order.
  17813. for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {
  17814. j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {
  17815. data: data[j],
  17816. index: i,
  17817. value: v,
  17818. startAngle: a0,
  17819. endAngle: a1,
  17820. padAngle: p
  17821. };
  17822. }
  17823. return arcs;
  17824. }
  17825. pie.value = function(_) {
  17826. return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : value;
  17827. };
  17828. pie.sortValues = function(_) {
  17829. return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;
  17830. };
  17831. pie.sort = function(_) {
  17832. return arguments.length ? (sort = _, sortValues = null, pie) : sort;
  17833. };
  17834. pie.startAngle = function(_) {
  17835. return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : startAngle;
  17836. };
  17837. pie.endAngle = function(_) {
  17838. return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : endAngle;
  17839. };
  17840. pie.padAngle = function(_) {
  17841. return arguments.length ? (padAngle = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : padAngle;
  17842. };
  17843. return pie;
  17844. });
  17845. /***/ }),
  17846. /***/ "./node_modules/d3-shape/src/point.js":
  17847. /*!********************************************!*\
  17848. !*** ./node_modules/d3-shape/src/point.js ***!
  17849. \********************************************/
  17850. /*! exports provided: x, y */
  17851. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17852. "use strict";
  17853. __webpack_require__.r(__webpack_exports__);
  17854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return x; });
  17855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return y; });
  17856. function x(p) {
  17857. return p[0];
  17858. }
  17859. function y(p) {
  17860. return p[1];
  17861. }
  17862. /***/ }),
  17863. /***/ "./node_modules/d3-shape/src/pointRadial.js":
  17864. /*!**************************************************!*\
  17865. !*** ./node_modules/d3-shape/src/pointRadial.js ***!
  17866. \**************************************************/
  17867. /*! exports provided: default */
  17868. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17869. "use strict";
  17870. __webpack_require__.r(__webpack_exports__);
  17871. /* harmony default export */ __webpack_exports__["default"] = (function(x, y) {
  17872. return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];
  17873. });
  17874. /***/ }),
  17875. /***/ "./node_modules/d3-shape/src/stack.js":
  17876. /*!********************************************!*\
  17877. !*** ./node_modules/d3-shape/src/stack.js ***!
  17878. \********************************************/
  17879. /*! exports provided: default */
  17880. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17881. "use strict";
  17882. __webpack_require__.r(__webpack_exports__);
  17883. /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array.js */ "./node_modules/d3-shape/src/array.js");
  17884. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");
  17885. /* harmony import */ var _offset_none_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./offset/none.js */ "./node_modules/d3-shape/src/offset/none.js");
  17886. /* harmony import */ var _order_none_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./order/none.js */ "./node_modules/d3-shape/src/order/none.js");
  17887. function stackValue(d, key) {
  17888. return d[key];
  17889. }
  17890. /* harmony default export */ __webpack_exports__["default"] = (function() {
  17891. var keys = Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])([]),
  17892. order = _order_none_js__WEBPACK_IMPORTED_MODULE_3__["default"],
  17893. offset = _offset_none_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  17894. value = stackValue;
  17895. function stack(data) {
  17896. var kz = keys.apply(this, arguments),
  17897. i,
  17898. m = data.length,
  17899. n = kz.length,
  17900. sz = new Array(n),
  17901. oz;
  17902. for (i = 0; i < n; ++i) {
  17903. for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {
  17904. si[j] = sij = [0, +value(data[j], ki, j, data)];
  17905. sij.data = data[j];
  17906. }
  17907. si.key = ki;
  17908. }
  17909. for (i = 0, oz = order(sz); i < n; ++i) {
  17910. sz[oz[i]].index = i;
  17911. }
  17912. offset(sz, oz);
  17913. return sz;
  17914. }
  17915. stack.keys = function(_) {
  17916. return arguments.length ? (keys = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_array_js__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)), stack) : keys;
  17917. };
  17918. stack.value = function(_) {
  17919. return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), stack) : value;
  17920. };
  17921. stack.order = function(_) {
  17922. return arguments.length ? (order = _ == null ? _order_none_js__WEBPACK_IMPORTED_MODULE_3__["default"] : typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_array_js__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)), stack) : order;
  17923. };
  17924. stack.offset = function(_) {
  17925. return arguments.length ? (offset = _ == null ? _offset_none_js__WEBPACK_IMPORTED_MODULE_2__["default"] : _, stack) : offset;
  17926. };
  17927. return stack;
  17928. });
  17929. /***/ }),
  17930. /***/ "./node_modules/d3-shape/src/symbol.js":
  17931. /*!*********************************************!*\
  17932. !*** ./node_modules/d3-shape/src/symbol.js ***!
  17933. \*********************************************/
  17934. /*! exports provided: symbols, default */
  17935. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17936. "use strict";
  17937. __webpack_require__.r(__webpack_exports__);
  17938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "symbols", function() { return symbols; });
  17939. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  17940. /* harmony import */ var _symbol_circle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./symbol/circle.js */ "./node_modules/d3-shape/src/symbol/circle.js");
  17941. /* harmony import */ var _symbol_cross_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./symbol/cross.js */ "./node_modules/d3-shape/src/symbol/cross.js");
  17942. /* harmony import */ var _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./symbol/diamond.js */ "./node_modules/d3-shape/src/symbol/diamond.js");
  17943. /* harmony import */ var _symbol_star_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./symbol/star.js */ "./node_modules/d3-shape/src/symbol/star.js");
  17944. /* harmony import */ var _symbol_square_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./symbol/square.js */ "./node_modules/d3-shape/src/symbol/square.js");
  17945. /* harmony import */ var _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./symbol/triangle.js */ "./node_modules/d3-shape/src/symbol/triangle.js");
  17946. /* harmony import */ var _symbol_wye_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./symbol/wye.js */ "./node_modules/d3-shape/src/symbol/wye.js");
  17947. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");
  17948. var symbols = [
  17949. _symbol_circle_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  17950. _symbol_cross_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  17951. _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_3__["default"],
  17952. _symbol_square_js__WEBPACK_IMPORTED_MODULE_5__["default"],
  17953. _symbol_star_js__WEBPACK_IMPORTED_MODULE_4__["default"],
  17954. _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_6__["default"],
  17955. _symbol_wye_js__WEBPACK_IMPORTED_MODULE_7__["default"]
  17956. ];
  17957. /* harmony default export */ __webpack_exports__["default"] = (function() {
  17958. var type = Object(_constant_js__WEBPACK_IMPORTED_MODULE_8__["default"])(_symbol_circle_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
  17959. size = Object(_constant_js__WEBPACK_IMPORTED_MODULE_8__["default"])(64),
  17960. context = null;
  17961. function symbol() {
  17962. var buffer;
  17963. if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])();
  17964. type.apply(this, arguments).draw(context, +size.apply(this, arguments));
  17965. if (buffer) return context = null, buffer + "" || null;
  17966. }
  17967. symbol.type = function(_) {
  17968. return arguments.length ? (type = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_8__["default"])(_), symbol) : type;
  17969. };
  17970. symbol.size = function(_) {
  17971. return arguments.length ? (size = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_8__["default"])(+_), symbol) : size;
  17972. };
  17973. symbol.context = function(_) {
  17974. return arguments.length ? (context = _ == null ? null : _, symbol) : context;
  17975. };
  17976. return symbol;
  17977. });
  17978. /***/ }),
  17979. /***/ "./node_modules/d3-shape/src/symbol/circle.js":
  17980. /*!****************************************************!*\
  17981. !*** ./node_modules/d3-shape/src/symbol/circle.js ***!
  17982. \****************************************************/
  17983. /*! exports provided: default */
  17984. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17985. "use strict";
  17986. __webpack_require__.r(__webpack_exports__);
  17987. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-shape/src/math.js");
  17988. /* harmony default export */ __webpack_exports__["default"] = ({
  17989. draw: function(context, size) {
  17990. var r = Math.sqrt(size / _math_js__WEBPACK_IMPORTED_MODULE_0__["pi"]);
  17991. context.moveTo(r, 0);
  17992. context.arc(0, 0, r, 0, _math_js__WEBPACK_IMPORTED_MODULE_0__["tau"]);
  17993. }
  17994. });
  17995. /***/ }),
  17996. /***/ "./node_modules/d3-shape/src/symbol/cross.js":
  17997. /*!***************************************************!*\
  17998. !*** ./node_modules/d3-shape/src/symbol/cross.js ***!
  17999. \***************************************************/
  18000. /*! exports provided: default */
  18001. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18002. "use strict";
  18003. __webpack_require__.r(__webpack_exports__);
  18004. /* harmony default export */ __webpack_exports__["default"] = ({
  18005. draw: function(context, size) {
  18006. var r = Math.sqrt(size / 5) / 2;
  18007. context.moveTo(-3 * r, -r);
  18008. context.lineTo(-r, -r);
  18009. context.lineTo(-r, -3 * r);
  18010. context.lineTo(r, -3 * r);
  18011. context.lineTo(r, -r);
  18012. context.lineTo(3 * r, -r);
  18013. context.lineTo(3 * r, r);
  18014. context.lineTo(r, r);
  18015. context.lineTo(r, 3 * r);
  18016. context.lineTo(-r, 3 * r);
  18017. context.lineTo(-r, r);
  18018. context.lineTo(-3 * r, r);
  18019. context.closePath();
  18020. }
  18021. });
  18022. /***/ }),
  18023. /***/ "./node_modules/d3-shape/src/symbol/diamond.js":
  18024. /*!*****************************************************!*\
  18025. !*** ./node_modules/d3-shape/src/symbol/diamond.js ***!
  18026. \*****************************************************/
  18027. /*! exports provided: default */
  18028. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18029. "use strict";
  18030. __webpack_require__.r(__webpack_exports__);
  18031. var tan30 = Math.sqrt(1 / 3),
  18032. tan30_2 = tan30 * 2;
  18033. /* harmony default export */ __webpack_exports__["default"] = ({
  18034. draw: function(context, size) {
  18035. var y = Math.sqrt(size / tan30_2),
  18036. x = y * tan30;
  18037. context.moveTo(0, -y);
  18038. context.lineTo(x, 0);
  18039. context.lineTo(0, y);
  18040. context.lineTo(-x, 0);
  18041. context.closePath();
  18042. }
  18043. });
  18044. /***/ }),
  18045. /***/ "./node_modules/d3-shape/src/symbol/square.js":
  18046. /*!****************************************************!*\
  18047. !*** ./node_modules/d3-shape/src/symbol/square.js ***!
  18048. \****************************************************/
  18049. /*! exports provided: default */
  18050. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18051. "use strict";
  18052. __webpack_require__.r(__webpack_exports__);
  18053. /* harmony default export */ __webpack_exports__["default"] = ({
  18054. draw: function(context, size) {
  18055. var w = Math.sqrt(size),
  18056. x = -w / 2;
  18057. context.rect(x, x, w, w);
  18058. }
  18059. });
  18060. /***/ }),
  18061. /***/ "./node_modules/d3-shape/src/symbol/star.js":
  18062. /*!**************************************************!*\
  18063. !*** ./node_modules/d3-shape/src/symbol/star.js ***!
  18064. \**************************************************/
  18065. /*! exports provided: default */
  18066. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18067. "use strict";
  18068. __webpack_require__.r(__webpack_exports__);
  18069. /* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-shape/src/math.js");
  18070. var ka = 0.89081309152928522810,
  18071. kr = Math.sin(_math_js__WEBPACK_IMPORTED_MODULE_0__["pi"] / 10) / Math.sin(7 * _math_js__WEBPACK_IMPORTED_MODULE_0__["pi"] / 10),
  18072. kx = Math.sin(_math_js__WEBPACK_IMPORTED_MODULE_0__["tau"] / 10) * kr,
  18073. ky = -Math.cos(_math_js__WEBPACK_IMPORTED_MODULE_0__["tau"] / 10) * kr;
  18074. /* harmony default export */ __webpack_exports__["default"] = ({
  18075. draw: function(context, size) {
  18076. var r = Math.sqrt(size * ka),
  18077. x = kx * r,
  18078. y = ky * r;
  18079. context.moveTo(0, -r);
  18080. context.lineTo(x, y);
  18081. for (var i = 1; i < 5; ++i) {
  18082. var a = _math_js__WEBPACK_IMPORTED_MODULE_0__["tau"] * i / 5,
  18083. c = Math.cos(a),
  18084. s = Math.sin(a);
  18085. context.lineTo(s * r, -c * r);
  18086. context.lineTo(c * x - s * y, s * x + c * y);
  18087. }
  18088. context.closePath();
  18089. }
  18090. });
  18091. /***/ }),
  18092. /***/ "./node_modules/d3-shape/src/symbol/triangle.js":
  18093. /*!******************************************************!*\
  18094. !*** ./node_modules/d3-shape/src/symbol/triangle.js ***!
  18095. \******************************************************/
  18096. /*! exports provided: default */
  18097. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18098. "use strict";
  18099. __webpack_require__.r(__webpack_exports__);
  18100. var sqrt3 = Math.sqrt(3);
  18101. /* harmony default export */ __webpack_exports__["default"] = ({
  18102. draw: function(context, size) {
  18103. var y = -Math.sqrt(size / (sqrt3 * 3));
  18104. context.moveTo(0, y * 2);
  18105. context.lineTo(-sqrt3 * y, -y);
  18106. context.lineTo(sqrt3 * y, -y);
  18107. context.closePath();
  18108. }
  18109. });
  18110. /***/ }),
  18111. /***/ "./node_modules/d3-shape/src/symbol/wye.js":
  18112. /*!*************************************************!*\
  18113. !*** ./node_modules/d3-shape/src/symbol/wye.js ***!
  18114. \*************************************************/
  18115. /*! exports provided: default */
  18116. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18117. "use strict";
  18118. __webpack_require__.r(__webpack_exports__);
  18119. var c = -0.5,
  18120. s = Math.sqrt(3) / 2,
  18121. k = 1 / Math.sqrt(12),
  18122. a = (k / 2 + 1) * 3;
  18123. /* harmony default export */ __webpack_exports__["default"] = ({
  18124. draw: function(context, size) {
  18125. var r = Math.sqrt(size / a),
  18126. x0 = r / 2,
  18127. y0 = r * k,
  18128. x1 = x0,
  18129. y1 = r * k + r,
  18130. x2 = -x1,
  18131. y2 = y1;
  18132. context.moveTo(x0, y0);
  18133. context.lineTo(x1, y1);
  18134. context.lineTo(x2, y2);
  18135. context.lineTo(c * x0 - s * y0, s * x0 + c * y0);
  18136. context.lineTo(c * x1 - s * y1, s * x1 + c * y1);
  18137. context.lineTo(c * x2 - s * y2, s * x2 + c * y2);
  18138. context.lineTo(c * x0 + s * y0, c * y0 - s * x0);
  18139. context.lineTo(c * x1 + s * y1, c * y1 - s * x1);
  18140. context.lineTo(c * x2 + s * y2, c * y2 - s * x2);
  18141. context.closePath();
  18142. }
  18143. });
  18144. /***/ }),
  18145. /***/ "./node_modules/d3-time-format/src/defaultLocale.js":
  18146. /*!**********************************************************!*\
  18147. !*** ./node_modules/d3-time-format/src/defaultLocale.js ***!
  18148. \**********************************************************/
  18149. /*! exports provided: timeFormat, timeParse, utcFormat, utcParse, default */
  18150. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18151. "use strict";
  18152. __webpack_require__.r(__webpack_exports__);
  18153. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeFormat", function() { return timeFormat; });
  18154. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeParse", function() { return timeParse; });
  18155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFormat", function() { return utcFormat; });
  18156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcParse", function() { return utcParse; });
  18157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return defaultLocale; });
  18158. /* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "./node_modules/d3-time-format/src/locale.js");
  18159. var locale;
  18160. var timeFormat;
  18161. var timeParse;
  18162. var utcFormat;
  18163. var utcParse;
  18164. defaultLocale({
  18165. dateTime: "%x, %X",
  18166. date: "%-m/%-d/%Y",
  18167. time: "%-I:%M:%S %p",
  18168. periods: ["AM", "PM"],
  18169. days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  18170. shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  18171. months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  18172. shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
  18173. });
  18174. function defaultLocale(definition) {
  18175. locale = Object(_locale_js__WEBPACK_IMPORTED_MODULE_0__["default"])(definition);
  18176. timeFormat = locale.format;
  18177. timeParse = locale.parse;
  18178. utcFormat = locale.utcFormat;
  18179. utcParse = locale.utcParse;
  18180. return locale;
  18181. }
  18182. /***/ }),
  18183. /***/ "./node_modules/d3-time-format/src/index.js":
  18184. /*!**************************************************!*\
  18185. !*** ./node_modules/d3-time-format/src/index.js ***!
  18186. \**************************************************/
  18187. /*! exports provided: timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse, timeFormatLocale, isoFormat, isoParse */
  18188. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18189. "use strict";
  18190. __webpack_require__.r(__webpack_exports__);
  18191. /* harmony import */ var _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale.js */ "./node_modules/d3-time-format/src/defaultLocale.js");
  18192. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatDefaultLocale", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  18193. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormat", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["timeFormat"]; });
  18194. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeParse", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["timeParse"]; });
  18195. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFormat", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["utcFormat"]; });
  18196. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcParse", function() { return _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["utcParse"]; });
  18197. /* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./locale.js */ "./node_modules/d3-time-format/src/locale.js");
  18198. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatLocale", function() { return _locale_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  18199. /* harmony import */ var _isoFormat_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isoFormat.js */ "./node_modules/d3-time-format/src/isoFormat.js");
  18200. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoFormat", function() { return _isoFormat_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  18201. /* harmony import */ var _isoParse_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isoParse.js */ "./node_modules/d3-time-format/src/isoParse.js");
  18202. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoParse", function() { return _isoParse_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  18203. /***/ }),
  18204. /***/ "./node_modules/d3-time-format/src/isoFormat.js":
  18205. /*!******************************************************!*\
  18206. !*** ./node_modules/d3-time-format/src/isoFormat.js ***!
  18207. \******************************************************/
  18208. /*! exports provided: isoSpecifier, default */
  18209. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18210. "use strict";
  18211. __webpack_require__.r(__webpack_exports__);
  18212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isoSpecifier", function() { return isoSpecifier; });
  18213. /* harmony import */ var _defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale.js */ "./node_modules/d3-time-format/src/defaultLocale.js");
  18214. var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ";
  18215. function formatIsoNative(date) {
  18216. return date.toISOString();
  18217. }
  18218. var formatIso = Date.prototype.toISOString
  18219. ? formatIsoNative
  18220. : Object(_defaultLocale_js__WEBPACK_IMPORTED_MODULE_0__["utcFormat"])(isoSpecifier);
  18221. /* harmony default export */ __webpack_exports__["default"] = (formatIso);
  18222. /***/ }),
  18223. /***/ "./node_modules/d3-time-format/src/isoParse.js":
  18224. /*!*****************************************************!*\
  18225. !*** ./node_modules/d3-time-format/src/isoParse.js ***!
  18226. \*****************************************************/
  18227. /*! exports provided: default */
  18228. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18229. "use strict";
  18230. __webpack_require__.r(__webpack_exports__);
  18231. /* harmony import */ var _isoFormat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isoFormat.js */ "./node_modules/d3-time-format/src/isoFormat.js");
  18232. /* harmony import */ var _defaultLocale_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultLocale.js */ "./node_modules/d3-time-format/src/defaultLocale.js");
  18233. function parseIsoNative(string) {
  18234. var date = new Date(string);
  18235. return isNaN(date) ? null : date;
  18236. }
  18237. var parseIso = +new Date("2000-01-01T00:00:00.000Z")
  18238. ? parseIsoNative
  18239. : Object(_defaultLocale_js__WEBPACK_IMPORTED_MODULE_1__["utcParse"])(_isoFormat_js__WEBPACK_IMPORTED_MODULE_0__["isoSpecifier"]);
  18240. /* harmony default export */ __webpack_exports__["default"] = (parseIso);
  18241. /***/ }),
  18242. /***/ "./node_modules/d3-time-format/src/locale.js":
  18243. /*!***************************************************!*\
  18244. !*** ./node_modules/d3-time-format/src/locale.js ***!
  18245. \***************************************************/
  18246. /*! exports provided: default */
  18247. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18248. "use strict";
  18249. __webpack_require__.r(__webpack_exports__);
  18250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return formatLocale; });
  18251. /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/index.js");
  18252. function localDate(d) {
  18253. if (0 <= d.y && d.y < 100) {
  18254. var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
  18255. date.setFullYear(d.y);
  18256. return date;
  18257. }
  18258. return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);
  18259. }
  18260. function utcDate(d) {
  18261. if (0 <= d.y && d.y < 100) {
  18262. var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));
  18263. date.setUTCFullYear(d.y);
  18264. return date;
  18265. }
  18266. return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));
  18267. }
  18268. function newDate(y, m, d) {
  18269. return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};
  18270. }
  18271. function formatLocale(locale) {
  18272. var locale_dateTime = locale.dateTime,
  18273. locale_date = locale.date,
  18274. locale_time = locale.time,
  18275. locale_periods = locale.periods,
  18276. locale_weekdays = locale.days,
  18277. locale_shortWeekdays = locale.shortDays,
  18278. locale_months = locale.months,
  18279. locale_shortMonths = locale.shortMonths;
  18280. var periodRe = formatRe(locale_periods),
  18281. periodLookup = formatLookup(locale_periods),
  18282. weekdayRe = formatRe(locale_weekdays),
  18283. weekdayLookup = formatLookup(locale_weekdays),
  18284. shortWeekdayRe = formatRe(locale_shortWeekdays),
  18285. shortWeekdayLookup = formatLookup(locale_shortWeekdays),
  18286. monthRe = formatRe(locale_months),
  18287. monthLookup = formatLookup(locale_months),
  18288. shortMonthRe = formatRe(locale_shortMonths),
  18289. shortMonthLookup = formatLookup(locale_shortMonths);
  18290. var formats = {
  18291. "a": formatShortWeekday,
  18292. "A": formatWeekday,
  18293. "b": formatShortMonth,
  18294. "B": formatMonth,
  18295. "c": null,
  18296. "d": formatDayOfMonth,
  18297. "e": formatDayOfMonth,
  18298. "f": formatMicroseconds,
  18299. "H": formatHour24,
  18300. "I": formatHour12,
  18301. "j": formatDayOfYear,
  18302. "L": formatMilliseconds,
  18303. "m": formatMonthNumber,
  18304. "M": formatMinutes,
  18305. "p": formatPeriod,
  18306. "q": formatQuarter,
  18307. "Q": formatUnixTimestamp,
  18308. "s": formatUnixTimestampSeconds,
  18309. "S": formatSeconds,
  18310. "u": formatWeekdayNumberMonday,
  18311. "U": formatWeekNumberSunday,
  18312. "V": formatWeekNumberISO,
  18313. "w": formatWeekdayNumberSunday,
  18314. "W": formatWeekNumberMonday,
  18315. "x": null,
  18316. "X": null,
  18317. "y": formatYear,
  18318. "Y": formatFullYear,
  18319. "Z": formatZone,
  18320. "%": formatLiteralPercent
  18321. };
  18322. var utcFormats = {
  18323. "a": formatUTCShortWeekday,
  18324. "A": formatUTCWeekday,
  18325. "b": formatUTCShortMonth,
  18326. "B": formatUTCMonth,
  18327. "c": null,
  18328. "d": formatUTCDayOfMonth,
  18329. "e": formatUTCDayOfMonth,
  18330. "f": formatUTCMicroseconds,
  18331. "H": formatUTCHour24,
  18332. "I": formatUTCHour12,
  18333. "j": formatUTCDayOfYear,
  18334. "L": formatUTCMilliseconds,
  18335. "m": formatUTCMonthNumber,
  18336. "M": formatUTCMinutes,
  18337. "p": formatUTCPeriod,
  18338. "q": formatUTCQuarter,
  18339. "Q": formatUnixTimestamp,
  18340. "s": formatUnixTimestampSeconds,
  18341. "S": formatUTCSeconds,
  18342. "u": formatUTCWeekdayNumberMonday,
  18343. "U": formatUTCWeekNumberSunday,
  18344. "V": formatUTCWeekNumberISO,
  18345. "w": formatUTCWeekdayNumberSunday,
  18346. "W": formatUTCWeekNumberMonday,
  18347. "x": null,
  18348. "X": null,
  18349. "y": formatUTCYear,
  18350. "Y": formatUTCFullYear,
  18351. "Z": formatUTCZone,
  18352. "%": formatLiteralPercent
  18353. };
  18354. var parses = {
  18355. "a": parseShortWeekday,
  18356. "A": parseWeekday,
  18357. "b": parseShortMonth,
  18358. "B": parseMonth,
  18359. "c": parseLocaleDateTime,
  18360. "d": parseDayOfMonth,
  18361. "e": parseDayOfMonth,
  18362. "f": parseMicroseconds,
  18363. "H": parseHour24,
  18364. "I": parseHour24,
  18365. "j": parseDayOfYear,
  18366. "L": parseMilliseconds,
  18367. "m": parseMonthNumber,
  18368. "M": parseMinutes,
  18369. "p": parsePeriod,
  18370. "q": parseQuarter,
  18371. "Q": parseUnixTimestamp,
  18372. "s": parseUnixTimestampSeconds,
  18373. "S": parseSeconds,
  18374. "u": parseWeekdayNumberMonday,
  18375. "U": parseWeekNumberSunday,
  18376. "V": parseWeekNumberISO,
  18377. "w": parseWeekdayNumberSunday,
  18378. "W": parseWeekNumberMonday,
  18379. "x": parseLocaleDate,
  18380. "X": parseLocaleTime,
  18381. "y": parseYear,
  18382. "Y": parseFullYear,
  18383. "Z": parseZone,
  18384. "%": parseLiteralPercent
  18385. };
  18386. // These recursive directive definitions must be deferred.
  18387. formats.x = newFormat(locale_date, formats);
  18388. formats.X = newFormat(locale_time, formats);
  18389. formats.c = newFormat(locale_dateTime, formats);
  18390. utcFormats.x = newFormat(locale_date, utcFormats);
  18391. utcFormats.X = newFormat(locale_time, utcFormats);
  18392. utcFormats.c = newFormat(locale_dateTime, utcFormats);
  18393. function newFormat(specifier, formats) {
  18394. return function(date) {
  18395. var string = [],
  18396. i = -1,
  18397. j = 0,
  18398. n = specifier.length,
  18399. c,
  18400. pad,
  18401. format;
  18402. if (!(date instanceof Date)) date = new Date(+date);
  18403. while (++i < n) {
  18404. if (specifier.charCodeAt(i) === 37) {
  18405. string.push(specifier.slice(j, i));
  18406. if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);
  18407. else pad = c === "e" ? " " : "0";
  18408. if (format = formats[c]) c = format(date, pad);
  18409. string.push(c);
  18410. j = i + 1;
  18411. }
  18412. }
  18413. string.push(specifier.slice(j, i));
  18414. return string.join("");
  18415. };
  18416. }
  18417. function newParse(specifier, Z) {
  18418. return function(string) {
  18419. var d = newDate(1900, undefined, 1),
  18420. i = parseSpecifier(d, specifier, string += "", 0),
  18421. week, day;
  18422. if (i != string.length) return null;
  18423. // If a UNIX timestamp is specified, return it.
  18424. if ("Q" in d) return new Date(d.Q);
  18425. if ("s" in d) return new Date(d.s * 1000 + ("L" in d ? d.L : 0));
  18426. // If this is utcParse, never use the local timezone.
  18427. if (Z && !("Z" in d)) d.Z = 0;
  18428. // The am-pm flag is 0 for AM, and 1 for PM.
  18429. if ("p" in d) d.H = d.H % 12 + d.p * 12;
  18430. // If the month was not specified, inherit from the quarter.
  18431. if (d.m === undefined) d.m = "q" in d ? d.q : 0;
  18432. // Convert day-of-week and week-of-year to day-of-year.
  18433. if ("V" in d) {
  18434. if (d.V < 1 || d.V > 53) return null;
  18435. if (!("w" in d)) d.w = 1;
  18436. if ("Z" in d) {
  18437. week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();
  18438. week = day > 4 || day === 0 ? d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"].ceil(week) : Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"])(week);
  18439. week = d3_time__WEBPACK_IMPORTED_MODULE_0__["utcDay"].offset(week, (d.V - 1) * 7);
  18440. d.y = week.getUTCFullYear();
  18441. d.m = week.getUTCMonth();
  18442. d.d = week.getUTCDate() + (d.w + 6) % 7;
  18443. } else {
  18444. week = localDate(newDate(d.y, 0, 1)), day = week.getDay();
  18445. week = day > 4 || day === 0 ? d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"].ceil(week) : Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"])(week);
  18446. week = d3_time__WEBPACK_IMPORTED_MODULE_0__["timeDay"].offset(week, (d.V - 1) * 7);
  18447. d.y = week.getFullYear();
  18448. d.m = week.getMonth();
  18449. d.d = week.getDate() + (d.w + 6) % 7;
  18450. }
  18451. } else if ("W" in d || "U" in d) {
  18452. if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
  18453. day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
  18454. d.m = 0;
  18455. d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
  18456. }
  18457. // If a time zone is specified, all fields are interpreted as UTC and then
  18458. // offset according to the specified time zone.
  18459. if ("Z" in d) {
  18460. d.H += d.Z / 100 | 0;
  18461. d.M += d.Z % 100;
  18462. return utcDate(d);
  18463. }
  18464. // Otherwise, all fields are in local time.
  18465. return localDate(d);
  18466. };
  18467. }
  18468. function parseSpecifier(d, specifier, string, j) {
  18469. var i = 0,
  18470. n = specifier.length,
  18471. m = string.length,
  18472. c,
  18473. parse;
  18474. while (i < n) {
  18475. if (j >= m) return -1;
  18476. c = specifier.charCodeAt(i++);
  18477. if (c === 37) {
  18478. c = specifier.charAt(i++);
  18479. parse = parses[c in pads ? specifier.charAt(i++) : c];
  18480. if (!parse || ((j = parse(d, string, j)) < 0)) return -1;
  18481. } else if (c != string.charCodeAt(j++)) {
  18482. return -1;
  18483. }
  18484. }
  18485. return j;
  18486. }
  18487. function parsePeriod(d, string, i) {
  18488. var n = periodRe.exec(string.slice(i));
  18489. return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  18490. }
  18491. function parseShortWeekday(d, string, i) {
  18492. var n = shortWeekdayRe.exec(string.slice(i));
  18493. return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  18494. }
  18495. function parseWeekday(d, string, i) {
  18496. var n = weekdayRe.exec(string.slice(i));
  18497. return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  18498. }
  18499. function parseShortMonth(d, string, i) {
  18500. var n = shortMonthRe.exec(string.slice(i));
  18501. return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  18502. }
  18503. function parseMonth(d, string, i) {
  18504. var n = monthRe.exec(string.slice(i));
  18505. return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  18506. }
  18507. function parseLocaleDateTime(d, string, i) {
  18508. return parseSpecifier(d, locale_dateTime, string, i);
  18509. }
  18510. function parseLocaleDate(d, string, i) {
  18511. return parseSpecifier(d, locale_date, string, i);
  18512. }
  18513. function parseLocaleTime(d, string, i) {
  18514. return parseSpecifier(d, locale_time, string, i);
  18515. }
  18516. function formatShortWeekday(d) {
  18517. return locale_shortWeekdays[d.getDay()];
  18518. }
  18519. function formatWeekday(d) {
  18520. return locale_weekdays[d.getDay()];
  18521. }
  18522. function formatShortMonth(d) {
  18523. return locale_shortMonths[d.getMonth()];
  18524. }
  18525. function formatMonth(d) {
  18526. return locale_months[d.getMonth()];
  18527. }
  18528. function formatPeriod(d) {
  18529. return locale_periods[+(d.getHours() >= 12)];
  18530. }
  18531. function formatQuarter(d) {
  18532. return 1 + ~~(d.getMonth() / 3);
  18533. }
  18534. function formatUTCShortWeekday(d) {
  18535. return locale_shortWeekdays[d.getUTCDay()];
  18536. }
  18537. function formatUTCWeekday(d) {
  18538. return locale_weekdays[d.getUTCDay()];
  18539. }
  18540. function formatUTCShortMonth(d) {
  18541. return locale_shortMonths[d.getUTCMonth()];
  18542. }
  18543. function formatUTCMonth(d) {
  18544. return locale_months[d.getUTCMonth()];
  18545. }
  18546. function formatUTCPeriod(d) {
  18547. return locale_periods[+(d.getUTCHours() >= 12)];
  18548. }
  18549. function formatUTCQuarter(d) {
  18550. return 1 + ~~(d.getUTCMonth() / 3);
  18551. }
  18552. return {
  18553. format: function(specifier) {
  18554. var f = newFormat(specifier += "", formats);
  18555. f.toString = function() { return specifier; };
  18556. return f;
  18557. },
  18558. parse: function(specifier) {
  18559. var p = newParse(specifier += "", false);
  18560. p.toString = function() { return specifier; };
  18561. return p;
  18562. },
  18563. utcFormat: function(specifier) {
  18564. var f = newFormat(specifier += "", utcFormats);
  18565. f.toString = function() { return specifier; };
  18566. return f;
  18567. },
  18568. utcParse: function(specifier) {
  18569. var p = newParse(specifier += "", true);
  18570. p.toString = function() { return specifier; };
  18571. return p;
  18572. }
  18573. };
  18574. }
  18575. var pads = {"-": "", "_": " ", "0": "0"},
  18576. numberRe = /^\s*\d+/, // note: ignores next directive
  18577. percentRe = /^%/,
  18578. requoteRe = /[\\^$*+?|[\]().{}]/g;
  18579. function pad(value, fill, width) {
  18580. var sign = value < 0 ? "-" : "",
  18581. string = (sign ? -value : value) + "",
  18582. length = string.length;
  18583. return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
  18584. }
  18585. function requote(s) {
  18586. return s.replace(requoteRe, "\\$&");
  18587. }
  18588. function formatRe(names) {
  18589. return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
  18590. }
  18591. function formatLookup(names) {
  18592. var map = {}, i = -1, n = names.length;
  18593. while (++i < n) map[names[i].toLowerCase()] = i;
  18594. return map;
  18595. }
  18596. function parseWeekdayNumberSunday(d, string, i) {
  18597. var n = numberRe.exec(string.slice(i, i + 1));
  18598. return n ? (d.w = +n[0], i + n[0].length) : -1;
  18599. }
  18600. function parseWeekdayNumberMonday(d, string, i) {
  18601. var n = numberRe.exec(string.slice(i, i + 1));
  18602. return n ? (d.u = +n[0], i + n[0].length) : -1;
  18603. }
  18604. function parseWeekNumberSunday(d, string, i) {
  18605. var n = numberRe.exec(string.slice(i, i + 2));
  18606. return n ? (d.U = +n[0], i + n[0].length) : -1;
  18607. }
  18608. function parseWeekNumberISO(d, string, i) {
  18609. var n = numberRe.exec(string.slice(i, i + 2));
  18610. return n ? (d.V = +n[0], i + n[0].length) : -1;
  18611. }
  18612. function parseWeekNumberMonday(d, string, i) {
  18613. var n = numberRe.exec(string.slice(i, i + 2));
  18614. return n ? (d.W = +n[0], i + n[0].length) : -1;
  18615. }
  18616. function parseFullYear(d, string, i) {
  18617. var n = numberRe.exec(string.slice(i, i + 4));
  18618. return n ? (d.y = +n[0], i + n[0].length) : -1;
  18619. }
  18620. function parseYear(d, string, i) {
  18621. var n = numberRe.exec(string.slice(i, i + 2));
  18622. return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;
  18623. }
  18624. function parseZone(d, string, i) {
  18625. var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));
  18626. return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1;
  18627. }
  18628. function parseQuarter(d, string, i) {
  18629. var n = numberRe.exec(string.slice(i, i + 1));
  18630. return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;
  18631. }
  18632. function parseMonthNumber(d, string, i) {
  18633. var n = numberRe.exec(string.slice(i, i + 2));
  18634. return n ? (d.m = n[0] - 1, i + n[0].length) : -1;
  18635. }
  18636. function parseDayOfMonth(d, string, i) {
  18637. var n = numberRe.exec(string.slice(i, i + 2));
  18638. return n ? (d.d = +n[0], i + n[0].length) : -1;
  18639. }
  18640. function parseDayOfYear(d, string, i) {
  18641. var n = numberRe.exec(string.slice(i, i + 3));
  18642. return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;
  18643. }
  18644. function parseHour24(d, string, i) {
  18645. var n = numberRe.exec(string.slice(i, i + 2));
  18646. return n ? (d.H = +n[0], i + n[0].length) : -1;
  18647. }
  18648. function parseMinutes(d, string, i) {
  18649. var n = numberRe.exec(string.slice(i, i + 2));
  18650. return n ? (d.M = +n[0], i + n[0].length) : -1;
  18651. }
  18652. function parseSeconds(d, string, i) {
  18653. var n = numberRe.exec(string.slice(i, i + 2));
  18654. return n ? (d.S = +n[0], i + n[0].length) : -1;
  18655. }
  18656. function parseMilliseconds(d, string, i) {
  18657. var n = numberRe.exec(string.slice(i, i + 3));
  18658. return n ? (d.L = +n[0], i + n[0].length) : -1;
  18659. }
  18660. function parseMicroseconds(d, string, i) {
  18661. var n = numberRe.exec(string.slice(i, i + 6));
  18662. return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;
  18663. }
  18664. function parseLiteralPercent(d, string, i) {
  18665. var n = percentRe.exec(string.slice(i, i + 1));
  18666. return n ? i + n[0].length : -1;
  18667. }
  18668. function parseUnixTimestamp(d, string, i) {
  18669. var n = numberRe.exec(string.slice(i));
  18670. return n ? (d.Q = +n[0], i + n[0].length) : -1;
  18671. }
  18672. function parseUnixTimestampSeconds(d, string, i) {
  18673. var n = numberRe.exec(string.slice(i));
  18674. return n ? (d.s = +n[0], i + n[0].length) : -1;
  18675. }
  18676. function formatDayOfMonth(d, p) {
  18677. return pad(d.getDate(), p, 2);
  18678. }
  18679. function formatHour24(d, p) {
  18680. return pad(d.getHours(), p, 2);
  18681. }
  18682. function formatHour12(d, p) {
  18683. return pad(d.getHours() % 12 || 12, p, 2);
  18684. }
  18685. function formatDayOfYear(d, p) {
  18686. return pad(1 + d3_time__WEBPACK_IMPORTED_MODULE_0__["timeDay"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d), d), p, 3);
  18687. }
  18688. function formatMilliseconds(d, p) {
  18689. return pad(d.getMilliseconds(), p, 3);
  18690. }
  18691. function formatMicroseconds(d, p) {
  18692. return formatMilliseconds(d, p) + "000";
  18693. }
  18694. function formatMonthNumber(d, p) {
  18695. return pad(d.getMonth() + 1, p, 2);
  18696. }
  18697. function formatMinutes(d, p) {
  18698. return pad(d.getMinutes(), p, 2);
  18699. }
  18700. function formatSeconds(d, p) {
  18701. return pad(d.getSeconds(), p, 2);
  18702. }
  18703. function formatWeekdayNumberMonday(d) {
  18704. var day = d.getDay();
  18705. return day === 0 ? 7 : day;
  18706. }
  18707. function formatWeekNumberSunday(d, p) {
  18708. return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeSunday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d) - 1, d), p, 2);
  18709. }
  18710. function formatWeekNumberISO(d, p) {
  18711. var day = d.getDay();
  18712. d = (day >= 4 || day === 0) ? Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeThursday"])(d) : d3_time__WEBPACK_IMPORTED_MODULE_0__["timeThursday"].ceil(d);
  18713. 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);
  18714. }
  18715. function formatWeekdayNumberSunday(d) {
  18716. return d.getDay();
  18717. }
  18718. function formatWeekNumberMonday(d, p) {
  18719. return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d) - 1, d), p, 2);
  18720. }
  18721. function formatYear(d, p) {
  18722. return pad(d.getFullYear() % 100, p, 2);
  18723. }
  18724. function formatFullYear(d, p) {
  18725. return pad(d.getFullYear() % 10000, p, 4);
  18726. }
  18727. function formatZone(d) {
  18728. var z = d.getTimezoneOffset();
  18729. return (z > 0 ? "-" : (z *= -1, "+"))
  18730. + pad(z / 60 | 0, "0", 2)
  18731. + pad(z % 60, "0", 2);
  18732. }
  18733. function formatUTCDayOfMonth(d, p) {
  18734. return pad(d.getUTCDate(), p, 2);
  18735. }
  18736. function formatUTCHour24(d, p) {
  18737. return pad(d.getUTCHours(), p, 2);
  18738. }
  18739. function formatUTCHour12(d, p) {
  18740. return pad(d.getUTCHours() % 12 || 12, p, 2);
  18741. }
  18742. function formatUTCDayOfYear(d, p) {
  18743. return pad(1 + d3_time__WEBPACK_IMPORTED_MODULE_0__["utcDay"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d), d), p, 3);
  18744. }
  18745. function formatUTCMilliseconds(d, p) {
  18746. return pad(d.getUTCMilliseconds(), p, 3);
  18747. }
  18748. function formatUTCMicroseconds(d, p) {
  18749. return formatUTCMilliseconds(d, p) + "000";
  18750. }
  18751. function formatUTCMonthNumber(d, p) {
  18752. return pad(d.getUTCMonth() + 1, p, 2);
  18753. }
  18754. function formatUTCMinutes(d, p) {
  18755. return pad(d.getUTCMinutes(), p, 2);
  18756. }
  18757. function formatUTCSeconds(d, p) {
  18758. return pad(d.getUTCSeconds(), p, 2);
  18759. }
  18760. function formatUTCWeekdayNumberMonday(d) {
  18761. var dow = d.getUTCDay();
  18762. return dow === 0 ? 7 : dow;
  18763. }
  18764. function formatUTCWeekNumberSunday(d, p) {
  18765. return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcSunday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d) - 1, d), p, 2);
  18766. }
  18767. function formatUTCWeekNumberISO(d, p) {
  18768. var day = d.getUTCDay();
  18769. d = (day >= 4 || day === 0) ? Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcThursday"])(d) : d3_time__WEBPACK_IMPORTED_MODULE_0__["utcThursday"].ceil(d);
  18770. 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);
  18771. }
  18772. function formatUTCWeekdayNumberSunday(d) {
  18773. return d.getUTCDay();
  18774. }
  18775. function formatUTCWeekNumberMonday(d, p) {
  18776. return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d) - 1, d), p, 2);
  18777. }
  18778. function formatUTCYear(d, p) {
  18779. return pad(d.getUTCFullYear() % 100, p, 2);
  18780. }
  18781. function formatUTCFullYear(d, p) {
  18782. return pad(d.getUTCFullYear() % 10000, p, 4);
  18783. }
  18784. function formatUTCZone() {
  18785. return "+0000";
  18786. }
  18787. function formatLiteralPercent() {
  18788. return "%";
  18789. }
  18790. function formatUnixTimestamp(d) {
  18791. return +d;
  18792. }
  18793. function formatUnixTimestampSeconds(d) {
  18794. return Math.floor(+d / 1000);
  18795. }
  18796. /***/ }),
  18797. /***/ "./node_modules/d3-time/src/day.js":
  18798. /*!*****************************************!*\
  18799. !*** ./node_modules/d3-time/src/day.js ***!
  18800. \*****************************************/
  18801. /*! exports provided: default, days */
  18802. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18803. "use strict";
  18804. __webpack_require__.r(__webpack_exports__);
  18805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "days", function() { return days; });
  18806. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  18807. /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");
  18808. var day = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18809. date.setHours(0, 0, 0, 0);
  18810. }, function(date, step) {
  18811. date.setDate(date.getDate() + step);
  18812. }, function(start, end) {
  18813. return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationDay"];
  18814. }, function(date) {
  18815. return date.getDate() - 1;
  18816. });
  18817. /* harmony default export */ __webpack_exports__["default"] = (day);
  18818. var days = day.range;
  18819. /***/ }),
  18820. /***/ "./node_modules/d3-time/src/duration.js":
  18821. /*!**********************************************!*\
  18822. !*** ./node_modules/d3-time/src/duration.js ***!
  18823. \**********************************************/
  18824. /*! exports provided: durationSecond, durationMinute, durationHour, durationDay, durationWeek */
  18825. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18826. "use strict";
  18827. __webpack_require__.r(__webpack_exports__);
  18828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationSecond", function() { return durationSecond; });
  18829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationMinute", function() { return durationMinute; });
  18830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationHour", function() { return durationHour; });
  18831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationDay", function() { return durationDay; });
  18832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationWeek", function() { return durationWeek; });
  18833. var durationSecond = 1e3;
  18834. var durationMinute = 6e4;
  18835. var durationHour = 36e5;
  18836. var durationDay = 864e5;
  18837. var durationWeek = 6048e5;
  18838. /***/ }),
  18839. /***/ "./node_modules/d3-time/src/hour.js":
  18840. /*!******************************************!*\
  18841. !*** ./node_modules/d3-time/src/hour.js ***!
  18842. \******************************************/
  18843. /*! exports provided: default, hours */
  18844. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18845. "use strict";
  18846. __webpack_require__.r(__webpack_exports__);
  18847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hours", function() { return hours; });
  18848. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  18849. /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");
  18850. var hour = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  18851. date.setTime(date - date.getMilliseconds() - date.getSeconds() * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"] - date.getMinutes() * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]);
  18852. }, function(date, step) {
  18853. date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"]);
  18854. }, function(start, end) {
  18855. return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"];
  18856. }, function(date) {
  18857. return date.getHours();
  18858. });
  18859. /* harmony default export */ __webpack_exports__["default"] = (hour);
  18860. var hours = hour.range;
  18861. /***/ }),
  18862. /***/ "./node_modules/d3-time/src/index.js":
  18863. /*!*******************************************!*\
  18864. !*** ./node_modules/d3-time/src/index.js ***!
  18865. \*******************************************/
  18866. /*! 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 */
  18867. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18868. "use strict";
  18869. __webpack_require__.r(__webpack_exports__);
  18870. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  18871. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return _interval_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  18872. /* harmony import */ var _millisecond_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./millisecond.js */ "./node_modules/d3-time/src/millisecond.js");
  18873. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMillisecond", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  18874. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMilliseconds", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["milliseconds"]; });
  18875. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMillisecond", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  18876. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMilliseconds", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["milliseconds"]; });
  18877. /* harmony import */ var _second_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./second.js */ "./node_modules/d3-time/src/second.js");
  18878. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSecond", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  18879. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSeconds", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["seconds"]; });
  18880. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSecond", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  18881. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSeconds", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["seconds"]; });
  18882. /* harmony import */ var _minute_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./minute.js */ "./node_modules/d3-time/src/minute.js");
  18883. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinute", function() { return _minute_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  18884. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinutes", function() { return _minute_js__WEBPACK_IMPORTED_MODULE_3__["minutes"]; });
  18885. /* harmony import */ var _hour_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hour.js */ "./node_modules/d3-time/src/hour.js");
  18886. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHour", function() { return _hour_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  18887. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHours", function() { return _hour_js__WEBPACK_IMPORTED_MODULE_4__["hours"]; });
  18888. /* harmony import */ var _day_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./day.js */ "./node_modules/d3-time/src/day.js");
  18889. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDay", function() { return _day_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  18890. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDays", function() { return _day_js__WEBPACK_IMPORTED_MODULE_5__["days"]; });
  18891. /* harmony import */ var _week_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./week.js */ "./node_modules/d3-time/src/week.js");
  18892. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeek", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sunday"]; });
  18893. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeeks", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sundays"]; });
  18894. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSunday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sunday"]; });
  18895. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSundays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sundays"]; });
  18896. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["monday"]; });
  18897. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMondays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["mondays"]; });
  18898. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["tuesday"]; });
  18899. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["tuesdays"]; });
  18900. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["wednesday"]; });
  18901. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["wednesdays"]; });
  18902. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["thursday"]; });
  18903. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["thursdays"]; });
  18904. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFriday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["friday"]; });
  18905. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFridays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["fridays"]; });
  18906. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["saturday"]; });
  18907. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["saturdays"]; });
  18908. /* harmony import */ var _month_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./month.js */ "./node_modules/d3-time/src/month.js");
  18909. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonth", function() { return _month_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  18910. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonths", function() { return _month_js__WEBPACK_IMPORTED_MODULE_7__["months"]; });
  18911. /* harmony import */ var _year_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./year.js */ "./node_modules/d3-time/src/year.js");
  18912. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYear", function() { return _year_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  18913. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYears", function() { return _year_js__WEBPACK_IMPORTED_MODULE_8__["years"]; });
  18914. /* harmony import */ var _utcMinute_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utcMinute.js */ "./node_modules/d3-time/src/utcMinute.js");
  18915. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinute", function() { return _utcMinute_js__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  18916. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return _utcMinute_js__WEBPACK_IMPORTED_MODULE_9__["utcMinutes"]; });
  18917. /* harmony import */ var _utcHour_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utcHour.js */ "./node_modules/d3-time/src/utcHour.js");
  18918. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHour", function() { return _utcHour_js__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  18919. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return _utcHour_js__WEBPACK_IMPORTED_MODULE_10__["utcHours"]; });
  18920. /* harmony import */ var _utcDay_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utcDay.js */ "./node_modules/d3-time/src/utcDay.js");
  18921. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDay", function() { return _utcDay_js__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  18922. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return _utcDay_js__WEBPACK_IMPORTED_MODULE_11__["utcDays"]; });
  18923. /* harmony import */ var _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utcWeek.js */ "./node_modules/d3-time/src/utcWeek.js");
  18924. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeek", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSunday"]; });
  18925. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeeks", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSundays"]; });
  18926. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSunday"]; });
  18927. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSundays"]; });
  18928. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcMonday"]; });
  18929. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcMondays"]; });
  18930. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcTuesday"]; });
  18931. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcTuesdays"]; });
  18932. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcWednesday"]; });
  18933. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcWednesdays"]; });
  18934. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcThursday"]; });
  18935. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcThursdays"]; });
  18936. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcFriday"]; });
  18937. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcFridays"]; });
  18938. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSaturday"]; });
  18939. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSaturdays"]; });
  18940. /* harmony import */ var _utcMonth_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utcMonth.js */ "./node_modules/d3-time/src/utcMonth.js");
  18941. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonth", function() { return _utcMonth_js__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  18942. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return _utcMonth_js__WEBPACK_IMPORTED_MODULE_13__["utcMonths"]; });
  18943. /* harmony import */ var _utcYear_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./utcYear.js */ "./node_modules/d3-time/src/utcYear.js");
  18944. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYear", function() { return _utcYear_js__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  18945. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return _utcYear_js__WEBPACK_IMPORTED_MODULE_14__["utcYears"]; });
  18946. /***/ }),
  18947. /***/ "./node_modules/d3-time/src/interval.js":
  18948. /*!**********************************************!*\
  18949. !*** ./node_modules/d3-time/src/interval.js ***!
  18950. \**********************************************/
  18951. /*! exports provided: default */
  18952. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18953. "use strict";
  18954. __webpack_require__.r(__webpack_exports__);
  18955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return newInterval; });
  18956. var t0 = new Date,
  18957. t1 = new Date;
  18958. function newInterval(floori, offseti, count, field) {
  18959. function interval(date) {
  18960. return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;
  18961. }
  18962. interval.floor = function(date) {
  18963. return floori(date = new Date(+date)), date;
  18964. };
  18965. interval.ceil = function(date) {
  18966. return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;
  18967. };
  18968. interval.round = function(date) {
  18969. var d0 = interval(date),
  18970. d1 = interval.ceil(date);
  18971. return date - d0 < d1 - date ? d0 : d1;
  18972. };
  18973. interval.offset = function(date, step) {
  18974. return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;
  18975. };
  18976. interval.range = function(start, stop, step) {
  18977. var range = [], previous;
  18978. start = interval.ceil(start);
  18979. step = step == null ? 1 : Math.floor(step);
  18980. if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date
  18981. do range.push(previous = new Date(+start)), offseti(start, step), floori(start);
  18982. while (previous < start && start < stop);
  18983. return range;
  18984. };
  18985. interval.filter = function(test) {
  18986. return newInterval(function(date) {
  18987. if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);
  18988. }, function(date, step) {
  18989. if (date >= date) {
  18990. if (step < 0) while (++step <= 0) {
  18991. while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty
  18992. } else while (--step >= 0) {
  18993. while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty
  18994. }
  18995. }
  18996. });
  18997. };
  18998. if (count) {
  18999. interval.count = function(start, end) {
  19000. t0.setTime(+start), t1.setTime(+end);
  19001. floori(t0), floori(t1);
  19002. return Math.floor(count(t0, t1));
  19003. };
  19004. interval.every = function(step) {
  19005. step = Math.floor(step);
  19006. return !isFinite(step) || !(step > 0) ? null
  19007. : !(step > 1) ? interval
  19008. : interval.filter(field
  19009. ? function(d) { return field(d) % step === 0; }
  19010. : function(d) { return interval.count(0, d) % step === 0; });
  19011. };
  19012. }
  19013. return interval;
  19014. }
  19015. /***/ }),
  19016. /***/ "./node_modules/d3-time/src/millisecond.js":
  19017. /*!*************************************************!*\
  19018. !*** ./node_modules/d3-time/src/millisecond.js ***!
  19019. \*************************************************/
  19020. /*! exports provided: default, milliseconds */
  19021. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19022. "use strict";
  19023. __webpack_require__.r(__webpack_exports__);
  19024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "milliseconds", function() { return milliseconds; });
  19025. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19026. var millisecond = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function() {
  19027. // noop
  19028. }, function(date, step) {
  19029. date.setTime(+date + step);
  19030. }, function(start, end) {
  19031. return end - start;
  19032. });
  19033. // An optimized implementation for this simple case.
  19034. millisecond.every = function(k) {
  19035. k = Math.floor(k);
  19036. if (!isFinite(k) || !(k > 0)) return null;
  19037. if (!(k > 1)) return millisecond;
  19038. return Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19039. date.setTime(Math.floor(date / k) * k);
  19040. }, function(date, step) {
  19041. date.setTime(+date + step * k);
  19042. }, function(start, end) {
  19043. return (end - start) / k;
  19044. });
  19045. };
  19046. /* harmony default export */ __webpack_exports__["default"] = (millisecond);
  19047. var milliseconds = millisecond.range;
  19048. /***/ }),
  19049. /***/ "./node_modules/d3-time/src/minute.js":
  19050. /*!********************************************!*\
  19051. !*** ./node_modules/d3-time/src/minute.js ***!
  19052. \********************************************/
  19053. /*! exports provided: default, minutes */
  19054. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19055. "use strict";
  19056. __webpack_require__.r(__webpack_exports__);
  19057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "minutes", function() { return minutes; });
  19058. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19059. /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");
  19060. var minute = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19061. date.setTime(date - date.getMilliseconds() - date.getSeconds() * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]);
  19062. }, function(date, step) {
  19063. date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]);
  19064. }, function(start, end) {
  19065. return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"];
  19066. }, function(date) {
  19067. return date.getMinutes();
  19068. });
  19069. /* harmony default export */ __webpack_exports__["default"] = (minute);
  19070. var minutes = minute.range;
  19071. /***/ }),
  19072. /***/ "./node_modules/d3-time/src/month.js":
  19073. /*!*******************************************!*\
  19074. !*** ./node_modules/d3-time/src/month.js ***!
  19075. \*******************************************/
  19076. /*! exports provided: default, months */
  19077. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19078. "use strict";
  19079. __webpack_require__.r(__webpack_exports__);
  19080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "months", function() { return months; });
  19081. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19082. var month = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19083. date.setDate(1);
  19084. date.setHours(0, 0, 0, 0);
  19085. }, function(date, step) {
  19086. date.setMonth(date.getMonth() + step);
  19087. }, function(start, end) {
  19088. return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
  19089. }, function(date) {
  19090. return date.getMonth();
  19091. });
  19092. /* harmony default export */ __webpack_exports__["default"] = (month);
  19093. var months = month.range;
  19094. /***/ }),
  19095. /***/ "./node_modules/d3-time/src/second.js":
  19096. /*!********************************************!*\
  19097. !*** ./node_modules/d3-time/src/second.js ***!
  19098. \********************************************/
  19099. /*! exports provided: default, seconds */
  19100. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19101. "use strict";
  19102. __webpack_require__.r(__webpack_exports__);
  19103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "seconds", function() { return seconds; });
  19104. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19105. /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");
  19106. var second = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19107. date.setTime(date - date.getMilliseconds());
  19108. }, function(date, step) {
  19109. date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]);
  19110. }, function(start, end) {
  19111. return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"];
  19112. }, function(date) {
  19113. return date.getUTCSeconds();
  19114. });
  19115. /* harmony default export */ __webpack_exports__["default"] = (second);
  19116. var seconds = second.range;
  19117. /***/ }),
  19118. /***/ "./node_modules/d3-time/src/utcDay.js":
  19119. /*!********************************************!*\
  19120. !*** ./node_modules/d3-time/src/utcDay.js ***!
  19121. \********************************************/
  19122. /*! exports provided: default, utcDays */
  19123. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19124. "use strict";
  19125. __webpack_require__.r(__webpack_exports__);
  19126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return utcDays; });
  19127. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19128. /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");
  19129. var utcDay = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19130. date.setUTCHours(0, 0, 0, 0);
  19131. }, function(date, step) {
  19132. date.setUTCDate(date.getUTCDate() + step);
  19133. }, function(start, end) {
  19134. return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationDay"];
  19135. }, function(date) {
  19136. return date.getUTCDate() - 1;
  19137. });
  19138. /* harmony default export */ __webpack_exports__["default"] = (utcDay);
  19139. var utcDays = utcDay.range;
  19140. /***/ }),
  19141. /***/ "./node_modules/d3-time/src/utcHour.js":
  19142. /*!*********************************************!*\
  19143. !*** ./node_modules/d3-time/src/utcHour.js ***!
  19144. \*********************************************/
  19145. /*! exports provided: default, utcHours */
  19146. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19147. "use strict";
  19148. __webpack_require__.r(__webpack_exports__);
  19149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return utcHours; });
  19150. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19151. /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");
  19152. var utcHour = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19153. date.setUTCMinutes(0, 0, 0);
  19154. }, function(date, step) {
  19155. date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"]);
  19156. }, function(start, end) {
  19157. return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"];
  19158. }, function(date) {
  19159. return date.getUTCHours();
  19160. });
  19161. /* harmony default export */ __webpack_exports__["default"] = (utcHour);
  19162. var utcHours = utcHour.range;
  19163. /***/ }),
  19164. /***/ "./node_modules/d3-time/src/utcMinute.js":
  19165. /*!***********************************************!*\
  19166. !*** ./node_modules/d3-time/src/utcMinute.js ***!
  19167. \***********************************************/
  19168. /*! exports provided: default, utcMinutes */
  19169. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19170. "use strict";
  19171. __webpack_require__.r(__webpack_exports__);
  19172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return utcMinutes; });
  19173. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19174. /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");
  19175. var utcMinute = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19176. date.setUTCSeconds(0, 0);
  19177. }, function(date, step) {
  19178. date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]);
  19179. }, function(start, end) {
  19180. return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"];
  19181. }, function(date) {
  19182. return date.getUTCMinutes();
  19183. });
  19184. /* harmony default export */ __webpack_exports__["default"] = (utcMinute);
  19185. var utcMinutes = utcMinute.range;
  19186. /***/ }),
  19187. /***/ "./node_modules/d3-time/src/utcMonth.js":
  19188. /*!**********************************************!*\
  19189. !*** ./node_modules/d3-time/src/utcMonth.js ***!
  19190. \**********************************************/
  19191. /*! exports provided: default, utcMonths */
  19192. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19193. "use strict";
  19194. __webpack_require__.r(__webpack_exports__);
  19195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return utcMonths; });
  19196. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19197. var utcMonth = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19198. date.setUTCDate(1);
  19199. date.setUTCHours(0, 0, 0, 0);
  19200. }, function(date, step) {
  19201. date.setUTCMonth(date.getUTCMonth() + step);
  19202. }, function(start, end) {
  19203. return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;
  19204. }, function(date) {
  19205. return date.getUTCMonth();
  19206. });
  19207. /* harmony default export */ __webpack_exports__["default"] = (utcMonth);
  19208. var utcMonths = utcMonth.range;
  19209. /***/ }),
  19210. /***/ "./node_modules/d3-time/src/utcWeek.js":
  19211. /*!*********************************************!*\
  19212. !*** ./node_modules/d3-time/src/utcWeek.js ***!
  19213. \*********************************************/
  19214. /*! exports provided: utcSunday, utcMonday, utcTuesday, utcWednesday, utcThursday, utcFriday, utcSaturday, utcSundays, utcMondays, utcTuesdays, utcWednesdays, utcThursdays, utcFridays, utcSaturdays */
  19215. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19216. "use strict";
  19217. __webpack_require__.r(__webpack_exports__);
  19218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return utcSunday; });
  19219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return utcMonday; });
  19220. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return utcTuesday; });
  19221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return utcWednesday; });
  19222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return utcThursday; });
  19223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return utcFriday; });
  19224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return utcSaturday; });
  19225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return utcSundays; });
  19226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return utcMondays; });
  19227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return utcTuesdays; });
  19228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return utcWednesdays; });
  19229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return utcThursdays; });
  19230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return utcFridays; });
  19231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return utcSaturdays; });
  19232. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19233. /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");
  19234. function utcWeekday(i) {
  19235. return Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19236. date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);
  19237. date.setUTCHours(0, 0, 0, 0);
  19238. }, function(date, step) {
  19239. date.setUTCDate(date.getUTCDate() + step * 7);
  19240. }, function(start, end) {
  19241. return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationWeek"];
  19242. });
  19243. }
  19244. var utcSunday = utcWeekday(0);
  19245. var utcMonday = utcWeekday(1);
  19246. var utcTuesday = utcWeekday(2);
  19247. var utcWednesday = utcWeekday(3);
  19248. var utcThursday = utcWeekday(4);
  19249. var utcFriday = utcWeekday(5);
  19250. var utcSaturday = utcWeekday(6);
  19251. var utcSundays = utcSunday.range;
  19252. var utcMondays = utcMonday.range;
  19253. var utcTuesdays = utcTuesday.range;
  19254. var utcWednesdays = utcWednesday.range;
  19255. var utcThursdays = utcThursday.range;
  19256. var utcFridays = utcFriday.range;
  19257. var utcSaturdays = utcSaturday.range;
  19258. /***/ }),
  19259. /***/ "./node_modules/d3-time/src/utcYear.js":
  19260. /*!*********************************************!*\
  19261. !*** ./node_modules/d3-time/src/utcYear.js ***!
  19262. \*********************************************/
  19263. /*! exports provided: default, utcYears */
  19264. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19265. "use strict";
  19266. __webpack_require__.r(__webpack_exports__);
  19267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return utcYears; });
  19268. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19269. var utcYear = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19270. date.setUTCMonth(0, 1);
  19271. date.setUTCHours(0, 0, 0, 0);
  19272. }, function(date, step) {
  19273. date.setUTCFullYear(date.getUTCFullYear() + step);
  19274. }, function(start, end) {
  19275. return end.getUTCFullYear() - start.getUTCFullYear();
  19276. }, function(date) {
  19277. return date.getUTCFullYear();
  19278. });
  19279. // An optimized implementation for this simple case.
  19280. utcYear.every = function(k) {
  19281. return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19282. date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);
  19283. date.setUTCMonth(0, 1);
  19284. date.setUTCHours(0, 0, 0, 0);
  19285. }, function(date, step) {
  19286. date.setUTCFullYear(date.getUTCFullYear() + step * k);
  19287. });
  19288. };
  19289. /* harmony default export */ __webpack_exports__["default"] = (utcYear);
  19290. var utcYears = utcYear.range;
  19291. /***/ }),
  19292. /***/ "./node_modules/d3-time/src/week.js":
  19293. /*!******************************************!*\
  19294. !*** ./node_modules/d3-time/src/week.js ***!
  19295. \******************************************/
  19296. /*! exports provided: sunday, monday, tuesday, wednesday, thursday, friday, saturday, sundays, mondays, tuesdays, wednesdays, thursdays, fridays, saturdays */
  19297. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19298. "use strict";
  19299. __webpack_require__.r(__webpack_exports__);
  19300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sunday", function() { return sunday; });
  19301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monday", function() { return monday; });
  19302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuesday", function() { return tuesday; });
  19303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wednesday", function() { return wednesday; });
  19304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "thursday", function() { return thursday; });
  19305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "friday", function() { return friday; });
  19306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturday", function() { return saturday; });
  19307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sundays", function() { return sundays; });
  19308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mondays", function() { return mondays; });
  19309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuesdays", function() { return tuesdays; });
  19310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wednesdays", function() { return wednesdays; });
  19311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "thursdays", function() { return thursdays; });
  19312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fridays", function() { return fridays; });
  19313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturdays", function() { return saturdays; });
  19314. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19315. /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");
  19316. function weekday(i) {
  19317. return Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19318. date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);
  19319. date.setHours(0, 0, 0, 0);
  19320. }, function(date, step) {
  19321. date.setDate(date.getDate() + step * 7);
  19322. }, function(start, end) {
  19323. return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationWeek"];
  19324. });
  19325. }
  19326. var sunday = weekday(0);
  19327. var monday = weekday(1);
  19328. var tuesday = weekday(2);
  19329. var wednesday = weekday(3);
  19330. var thursday = weekday(4);
  19331. var friday = weekday(5);
  19332. var saturday = weekday(6);
  19333. var sundays = sunday.range;
  19334. var mondays = monday.range;
  19335. var tuesdays = tuesday.range;
  19336. var wednesdays = wednesday.range;
  19337. var thursdays = thursday.range;
  19338. var fridays = friday.range;
  19339. var saturdays = saturday.range;
  19340. /***/ }),
  19341. /***/ "./node_modules/d3-time/src/year.js":
  19342. /*!******************************************!*\
  19343. !*** ./node_modules/d3-time/src/year.js ***!
  19344. \******************************************/
  19345. /*! exports provided: default, years */
  19346. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19347. "use strict";
  19348. __webpack_require__.r(__webpack_exports__);
  19349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "years", function() { return years; });
  19350. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
  19351. var year = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19352. date.setMonth(0, 1);
  19353. date.setHours(0, 0, 0, 0);
  19354. }, function(date, step) {
  19355. date.setFullYear(date.getFullYear() + step);
  19356. }, function(start, end) {
  19357. return end.getFullYear() - start.getFullYear();
  19358. }, function(date) {
  19359. return date.getFullYear();
  19360. });
  19361. // An optimized implementation for this simple case.
  19362. year.every = function(k) {
  19363. return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  19364. date.setFullYear(Math.floor(date.getFullYear() / k) * k);
  19365. date.setMonth(0, 1);
  19366. date.setHours(0, 0, 0, 0);
  19367. }, function(date, step) {
  19368. date.setFullYear(date.getFullYear() + step * k);
  19369. });
  19370. };
  19371. /* harmony default export */ __webpack_exports__["default"] = (year);
  19372. var years = year.range;
  19373. /***/ }),
  19374. /***/ "./node_modules/d3-timer/src/index.js":
  19375. /*!********************************************!*\
  19376. !*** ./node_modules/d3-timer/src/index.js ***!
  19377. \********************************************/
  19378. /*! exports provided: now, timer, timerFlush, timeout, interval */
  19379. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19380. "use strict";
  19381. __webpack_require__.r(__webpack_exports__);
  19382. /* harmony import */ var _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "./node_modules/d3-timer/src/timer.js");
  19383. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "now", function() { return _timer_js__WEBPACK_IMPORTED_MODULE_0__["now"]; });
  19384. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return _timer_js__WEBPACK_IMPORTED_MODULE_0__["timer"]; });
  19385. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timerFlush", function() { return _timer_js__WEBPACK_IMPORTED_MODULE_0__["timerFlush"]; });
  19386. /* harmony import */ var _timeout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./timeout.js */ "./node_modules/d3-timer/src/timeout.js");
  19387. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeout", function() { return _timeout_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  19388. /* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-timer/src/interval.js");
  19389. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interval", function() { return _interval_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  19390. /***/ }),
  19391. /***/ "./node_modules/d3-timer/src/interval.js":
  19392. /*!***********************************************!*\
  19393. !*** ./node_modules/d3-timer/src/interval.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 _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "./node_modules/d3-timer/src/timer.js");
  19400. /* harmony default export */ __webpack_exports__["default"] = (function(callback, delay, time) {
  19401. var t = new _timer_js__WEBPACK_IMPORTED_MODULE_0__["Timer"], total = delay;
  19402. if (delay == null) return t.restart(callback, delay, time), t;
  19403. delay = +delay, time = time == null ? Object(_timer_js__WEBPACK_IMPORTED_MODULE_0__["now"])() : +time;
  19404. t.restart(function tick(elapsed) {
  19405. elapsed += total;
  19406. t.restart(tick, total += delay, time);
  19407. callback(elapsed);
  19408. }, delay, time);
  19409. return t;
  19410. });
  19411. /***/ }),
  19412. /***/ "./node_modules/d3-timer/src/timeout.js":
  19413. /*!**********************************************!*\
  19414. !*** ./node_modules/d3-timer/src/timeout.js ***!
  19415. \**********************************************/
  19416. /*! exports provided: default */
  19417. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19418. "use strict";
  19419. __webpack_require__.r(__webpack_exports__);
  19420. /* harmony import */ var _timer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer.js */ "./node_modules/d3-timer/src/timer.js");
  19421. /* harmony default export */ __webpack_exports__["default"] = (function(callback, delay, time) {
  19422. var t = new _timer_js__WEBPACK_IMPORTED_MODULE_0__["Timer"];
  19423. delay = delay == null ? 0 : +delay;
  19424. t.restart(function(elapsed) {
  19425. t.stop();
  19426. callback(elapsed + delay);
  19427. }, delay, time);
  19428. return t;
  19429. });
  19430. /***/ }),
  19431. /***/ "./node_modules/d3-timer/src/timer.js":
  19432. /*!********************************************!*\
  19433. !*** ./node_modules/d3-timer/src/timer.js ***!
  19434. \********************************************/
  19435. /*! exports provided: now, Timer, timer, timerFlush */
  19436. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19437. "use strict";
  19438. __webpack_require__.r(__webpack_exports__);
  19439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "now", function() { return now; });
  19440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Timer", function() { return Timer; });
  19441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return timer; });
  19442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timerFlush", function() { return timerFlush; });
  19443. var frame = 0, // is an animation frame pending?
  19444. timeout = 0, // is a timeout pending?
  19445. interval = 0, // are any timers active?
  19446. pokeDelay = 1000, // how frequently we check for clock skew
  19447. taskHead,
  19448. taskTail,
  19449. clockLast = 0,
  19450. clockNow = 0,
  19451. clockSkew = 0,
  19452. clock = typeof performance === "object" && performance.now ? performance : Date,
  19453. setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };
  19454. function now() {
  19455. return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
  19456. }
  19457. function clearNow() {
  19458. clockNow = 0;
  19459. }
  19460. function Timer() {
  19461. this._call =
  19462. this._time =
  19463. this._next = null;
  19464. }
  19465. Timer.prototype = timer.prototype = {
  19466. constructor: Timer,
  19467. restart: function(callback, delay, time) {
  19468. if (typeof callback !== "function") throw new TypeError("callback is not a function");
  19469. time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
  19470. if (!this._next && taskTail !== this) {
  19471. if (taskTail) taskTail._next = this;
  19472. else taskHead = this;
  19473. taskTail = this;
  19474. }
  19475. this._call = callback;
  19476. this._time = time;
  19477. sleep();
  19478. },
  19479. stop: function() {
  19480. if (this._call) {
  19481. this._call = null;
  19482. this._time = Infinity;
  19483. sleep();
  19484. }
  19485. }
  19486. };
  19487. function timer(callback, delay, time) {
  19488. var t = new Timer;
  19489. t.restart(callback, delay, time);
  19490. return t;
  19491. }
  19492. function timerFlush() {
  19493. now(); // Get the current time, if not already set.
  19494. ++frame; // Pretend we’ve set an alarm, if we haven’t already.
  19495. var t = taskHead, e;
  19496. while (t) {
  19497. if ((e = clockNow - t._time) >= 0) t._call.call(null, e);
  19498. t = t._next;
  19499. }
  19500. --frame;
  19501. }
  19502. function wake() {
  19503. clockNow = (clockLast = clock.now()) + clockSkew;
  19504. frame = timeout = 0;
  19505. try {
  19506. timerFlush();
  19507. } finally {
  19508. frame = 0;
  19509. nap();
  19510. clockNow = 0;
  19511. }
  19512. }
  19513. function poke() {
  19514. var now = clock.now(), delay = now - clockLast;
  19515. if (delay > pokeDelay) clockSkew -= delay, clockLast = now;
  19516. }
  19517. function nap() {
  19518. var t0, t1 = taskHead, t2, time = Infinity;
  19519. while (t1) {
  19520. if (t1._call) {
  19521. if (time > t1._time) time = t1._time;
  19522. t0 = t1, t1 = t1._next;
  19523. } else {
  19524. t2 = t1._next, t1._next = null;
  19525. t1 = t0 ? t0._next = t2 : taskHead = t2;
  19526. }
  19527. }
  19528. taskTail = t0;
  19529. sleep(time);
  19530. }
  19531. function sleep(time) {
  19532. if (frame) return; // Soonest alarm already set, or will be.
  19533. if (timeout) timeout = clearTimeout(timeout);
  19534. var delay = time - clockNow; // Strictly less than if we recomputed clockNow.
  19535. if (delay > 24) {
  19536. if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);
  19537. if (interval) interval = clearInterval(interval);
  19538. } else {
  19539. if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
  19540. frame = 1, setFrame(wake);
  19541. }
  19542. }
  19543. /***/ }),
  19544. /***/ "./node_modules/d3-transition/src/active.js":
  19545. /*!**************************************************!*\
  19546. !*** ./node_modules/d3-transition/src/active.js ***!
  19547. \**************************************************/
  19548. /*! exports provided: default */
  19549. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19550. "use strict";
  19551. __webpack_require__.r(__webpack_exports__);
  19552. /* harmony import */ var _transition_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transition/index.js */ "./node_modules/d3-transition/src/transition/index.js");
  19553. /* harmony import */ var _transition_schedule_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transition/schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  19554. var root = [null];
  19555. /* harmony default export */ __webpack_exports__["default"] = (function(node, name) {
  19556. var schedules = node.__transition,
  19557. schedule,
  19558. i;
  19559. if (schedules) {
  19560. name = name == null ? null : name + "";
  19561. for (i in schedules) {
  19562. if ((schedule = schedules[i]).state > _transition_schedule_js__WEBPACK_IMPORTED_MODULE_1__["SCHEDULED"] && schedule.name === name) {
  19563. return new _transition_index_js__WEBPACK_IMPORTED_MODULE_0__["Transition"]([[node]], root, name, +i);
  19564. }
  19565. }
  19566. }
  19567. return null;
  19568. });
  19569. /***/ }),
  19570. /***/ "./node_modules/d3-transition/src/index.js":
  19571. /*!*************************************************!*\
  19572. !*** ./node_modules/d3-transition/src/index.js ***!
  19573. \*************************************************/
  19574. /*! exports provided: transition, active, interrupt */
  19575. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19576. "use strict";
  19577. __webpack_require__.r(__webpack_exports__);
  19578. /* harmony import */ var _selection_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selection/index.js */ "./node_modules/d3-transition/src/selection/index.js");
  19579. /* harmony import */ var _transition_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transition/index.js */ "./node_modules/d3-transition/src/transition/index.js");
  19580. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transition", function() { return _transition_index_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  19581. /* harmony import */ var _active_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./active.js */ "./node_modules/d3-transition/src/active.js");
  19582. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "active", function() { return _active_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  19583. /* harmony import */ var _interrupt_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interrupt.js */ "./node_modules/d3-transition/src/interrupt.js");
  19584. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interrupt", function() { return _interrupt_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  19585. /***/ }),
  19586. /***/ "./node_modules/d3-transition/src/interrupt.js":
  19587. /*!*****************************************************!*\
  19588. !*** ./node_modules/d3-transition/src/interrupt.js ***!
  19589. \*****************************************************/
  19590. /*! exports provided: default */
  19591. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19592. "use strict";
  19593. __webpack_require__.r(__webpack_exports__);
  19594. /* harmony import */ var _transition_schedule_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transition/schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  19595. /* harmony default export */ __webpack_exports__["default"] = (function(node, name) {
  19596. var schedules = node.__transition,
  19597. schedule,
  19598. active,
  19599. empty = true,
  19600. i;
  19601. if (!schedules) return;
  19602. name = name == null ? null : name + "";
  19603. for (i in schedules) {
  19604. if ((schedule = schedules[i]).name !== name) { empty = false; continue; }
  19605. active = schedule.state > _transition_schedule_js__WEBPACK_IMPORTED_MODULE_0__["STARTING"] && schedule.state < _transition_schedule_js__WEBPACK_IMPORTED_MODULE_0__["ENDING"];
  19606. schedule.state = _transition_schedule_js__WEBPACK_IMPORTED_MODULE_0__["ENDED"];
  19607. schedule.timer.stop();
  19608. schedule.on.call(active ? "interrupt" : "cancel", node, node.__data__, schedule.index, schedule.group);
  19609. delete schedules[i];
  19610. }
  19611. if (empty) delete node.__transition;
  19612. });
  19613. /***/ }),
  19614. /***/ "./node_modules/d3-transition/src/selection/index.js":
  19615. /*!***********************************************************!*\
  19616. !*** ./node_modules/d3-transition/src/selection/index.js ***!
  19617. \***********************************************************/
  19618. /*! no exports provided */
  19619. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19620. "use strict";
  19621. __webpack_require__.r(__webpack_exports__);
  19622. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19623. /* harmony import */ var _interrupt_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./interrupt.js */ "./node_modules/d3-transition/src/selection/interrupt.js");
  19624. /* harmony import */ var _transition_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transition.js */ "./node_modules/d3-transition/src/selection/transition.js");
  19625. d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype.interrupt = _interrupt_js__WEBPACK_IMPORTED_MODULE_1__["default"];
  19626. d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype.transition = _transition_js__WEBPACK_IMPORTED_MODULE_2__["default"];
  19627. /***/ }),
  19628. /***/ "./node_modules/d3-transition/src/selection/interrupt.js":
  19629. /*!***************************************************************!*\
  19630. !*** ./node_modules/d3-transition/src/selection/interrupt.js ***!
  19631. \***************************************************************/
  19632. /*! exports provided: default */
  19633. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19634. "use strict";
  19635. __webpack_require__.r(__webpack_exports__);
  19636. /* harmony import */ var _interrupt_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../interrupt.js */ "./node_modules/d3-transition/src/interrupt.js");
  19637. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  19638. return this.each(function() {
  19639. Object(_interrupt_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, name);
  19640. });
  19641. });
  19642. /***/ }),
  19643. /***/ "./node_modules/d3-transition/src/selection/transition.js":
  19644. /*!****************************************************************!*\
  19645. !*** ./node_modules/d3-transition/src/selection/transition.js ***!
  19646. \****************************************************************/
  19647. /*! exports provided: default */
  19648. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19649. "use strict";
  19650. __webpack_require__.r(__webpack_exports__);
  19651. /* harmony import */ var _transition_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../transition/index.js */ "./node_modules/d3-transition/src/transition/index.js");
  19652. /* harmony import */ var _transition_schedule_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../transition/schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  19653. /* harmony import */ var d3_ease__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-ease */ "./node_modules/d3-ease/src/index.js");
  19654. /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/src/index.js");
  19655. var defaultTiming = {
  19656. time: null, // Set on use.
  19657. delay: 0,
  19658. duration: 250,
  19659. ease: d3_ease__WEBPACK_IMPORTED_MODULE_2__["easeCubicInOut"]
  19660. };
  19661. function inherit(node, id) {
  19662. var timing;
  19663. while (!(timing = node.__transition) || !(timing = timing[id])) {
  19664. if (!(node = node.parentNode)) {
  19665. return defaultTiming.time = Object(d3_timer__WEBPACK_IMPORTED_MODULE_3__["now"])(), defaultTiming;
  19666. }
  19667. }
  19668. return timing;
  19669. }
  19670. /* harmony default export */ __webpack_exports__["default"] = (function(name) {
  19671. var id,
  19672. timing;
  19673. if (name instanceof _transition_index_js__WEBPACK_IMPORTED_MODULE_0__["Transition"]) {
  19674. id = name._id, name = name._name;
  19675. } else {
  19676. id = Object(_transition_index_js__WEBPACK_IMPORTED_MODULE_0__["newId"])(), (timing = defaultTiming).time = Object(d3_timer__WEBPACK_IMPORTED_MODULE_3__["now"])(), name = name == null ? null : name + "";
  19677. }
  19678. for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {
  19679. for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
  19680. if (node = group[i]) {
  19681. Object(_transition_schedule_js__WEBPACK_IMPORTED_MODULE_1__["default"])(node, name, id, i, group, timing || inherit(node, id));
  19682. }
  19683. }
  19684. }
  19685. return new _transition_index_js__WEBPACK_IMPORTED_MODULE_0__["Transition"](groups, this._parents, name, id);
  19686. });
  19687. /***/ }),
  19688. /***/ "./node_modules/d3-transition/src/transition/attr.js":
  19689. /*!***********************************************************!*\
  19690. !*** ./node_modules/d3-transition/src/transition/attr.js ***!
  19691. \***********************************************************/
  19692. /*! exports provided: default */
  19693. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19694. "use strict";
  19695. __webpack_require__.r(__webpack_exports__);
  19696. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  19697. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19698. /* harmony import */ var _tween_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tween.js */ "./node_modules/d3-transition/src/transition/tween.js");
  19699. /* harmony import */ var _interpolate_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interpolate.js */ "./node_modules/d3-transition/src/transition/interpolate.js");
  19700. function attrRemove(name) {
  19701. return function() {
  19702. this.removeAttribute(name);
  19703. };
  19704. }
  19705. function attrRemoveNS(fullname) {
  19706. return function() {
  19707. this.removeAttributeNS(fullname.space, fullname.local);
  19708. };
  19709. }
  19710. function attrConstant(name, interpolate, value1) {
  19711. var string00,
  19712. string1 = value1 + "",
  19713. interpolate0;
  19714. return function() {
  19715. var string0 = this.getAttribute(name);
  19716. return string0 === string1 ? null
  19717. : string0 === string00 ? interpolate0
  19718. : interpolate0 = interpolate(string00 = string0, value1);
  19719. };
  19720. }
  19721. function attrConstantNS(fullname, interpolate, value1) {
  19722. var string00,
  19723. string1 = value1 + "",
  19724. interpolate0;
  19725. return function() {
  19726. var string0 = this.getAttributeNS(fullname.space, fullname.local);
  19727. return string0 === string1 ? null
  19728. : string0 === string00 ? interpolate0
  19729. : interpolate0 = interpolate(string00 = string0, value1);
  19730. };
  19731. }
  19732. function attrFunction(name, interpolate, value) {
  19733. var string00,
  19734. string10,
  19735. interpolate0;
  19736. return function() {
  19737. var string0, value1 = value(this), string1;
  19738. if (value1 == null) return void this.removeAttribute(name);
  19739. string0 = this.getAttribute(name);
  19740. string1 = value1 + "";
  19741. return string0 === string1 ? null
  19742. : string0 === string00 && string1 === string10 ? interpolate0
  19743. : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
  19744. };
  19745. }
  19746. function attrFunctionNS(fullname, interpolate, value) {
  19747. var string00,
  19748. string10,
  19749. interpolate0;
  19750. return function() {
  19751. var string0, value1 = value(this), string1;
  19752. if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);
  19753. string0 = this.getAttributeNS(fullname.space, fullname.local);
  19754. string1 = value1 + "";
  19755. return string0 === string1 ? null
  19756. : string0 === string00 && string1 === string10 ? interpolate0
  19757. : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
  19758. };
  19759. }
  19760. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  19761. var fullname = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["namespace"])(name), i = fullname === "transform" ? d3_interpolate__WEBPACK_IMPORTED_MODULE_0__["interpolateTransformSvg"] : _interpolate_js__WEBPACK_IMPORTED_MODULE_3__["default"];
  19762. return this.attrTween(name, typeof value === "function"
  19763. ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, Object(_tween_js__WEBPACK_IMPORTED_MODULE_2__["tweenValue"])(this, "attr." + name, value))
  19764. : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)
  19765. : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));
  19766. });
  19767. /***/ }),
  19768. /***/ "./node_modules/d3-transition/src/transition/attrTween.js":
  19769. /*!****************************************************************!*\
  19770. !*** ./node_modules/d3-transition/src/transition/attrTween.js ***!
  19771. \****************************************************************/
  19772. /*! exports provided: default */
  19773. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19774. "use strict";
  19775. __webpack_require__.r(__webpack_exports__);
  19776. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19777. function attrInterpolate(name, i) {
  19778. return function(t) {
  19779. this.setAttribute(name, i.call(this, t));
  19780. };
  19781. }
  19782. function attrInterpolateNS(fullname, i) {
  19783. return function(t) {
  19784. this.setAttributeNS(fullname.space, fullname.local, i.call(this, t));
  19785. };
  19786. }
  19787. function attrTweenNS(fullname, value) {
  19788. var t0, i0;
  19789. function tween() {
  19790. var i = value.apply(this, arguments);
  19791. if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);
  19792. return t0;
  19793. }
  19794. tween._value = value;
  19795. return tween;
  19796. }
  19797. function attrTween(name, value) {
  19798. var t0, i0;
  19799. function tween() {
  19800. var i = value.apply(this, arguments);
  19801. if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);
  19802. return t0;
  19803. }
  19804. tween._value = value;
  19805. return tween;
  19806. }
  19807. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  19808. var key = "attr." + name;
  19809. if (arguments.length < 2) return (key = this.tween(key)) && key._value;
  19810. if (value == null) return this.tween(key, null);
  19811. if (typeof value !== "function") throw new Error;
  19812. var fullname = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["namespace"])(name);
  19813. return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));
  19814. });
  19815. /***/ }),
  19816. /***/ "./node_modules/d3-transition/src/transition/delay.js":
  19817. /*!************************************************************!*\
  19818. !*** ./node_modules/d3-transition/src/transition/delay.js ***!
  19819. \************************************************************/
  19820. /*! exports provided: default */
  19821. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19822. "use strict";
  19823. __webpack_require__.r(__webpack_exports__);
  19824. /* harmony import */ var _schedule_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  19825. function delayFunction(id, value) {
  19826. return function() {
  19827. Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["init"])(this, id).delay = +value.apply(this, arguments);
  19828. };
  19829. }
  19830. function delayConstant(id, value) {
  19831. return value = +value, function() {
  19832. Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["init"])(this, id).delay = value;
  19833. };
  19834. }
  19835. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  19836. var id = this._id;
  19837. return arguments.length
  19838. ? this.each((typeof value === "function"
  19839. ? delayFunction
  19840. : delayConstant)(id, value))
  19841. : Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).delay;
  19842. });
  19843. /***/ }),
  19844. /***/ "./node_modules/d3-transition/src/transition/duration.js":
  19845. /*!***************************************************************!*\
  19846. !*** ./node_modules/d3-transition/src/transition/duration.js ***!
  19847. \***************************************************************/
  19848. /*! exports provided: default */
  19849. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19850. "use strict";
  19851. __webpack_require__.r(__webpack_exports__);
  19852. /* harmony import */ var _schedule_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  19853. function durationFunction(id, value) {
  19854. return function() {
  19855. Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id).duration = +value.apply(this, arguments);
  19856. };
  19857. }
  19858. function durationConstant(id, value) {
  19859. return value = +value, function() {
  19860. Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id).duration = value;
  19861. };
  19862. }
  19863. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  19864. var id = this._id;
  19865. return arguments.length
  19866. ? this.each((typeof value === "function"
  19867. ? durationFunction
  19868. : durationConstant)(id, value))
  19869. : Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).duration;
  19870. });
  19871. /***/ }),
  19872. /***/ "./node_modules/d3-transition/src/transition/ease.js":
  19873. /*!***********************************************************!*\
  19874. !*** ./node_modules/d3-transition/src/transition/ease.js ***!
  19875. \***********************************************************/
  19876. /*! exports provided: default */
  19877. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19878. "use strict";
  19879. __webpack_require__.r(__webpack_exports__);
  19880. /* harmony import */ var _schedule_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  19881. function easeConstant(id, value) {
  19882. if (typeof value !== "function") throw new Error;
  19883. return function() {
  19884. Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id).ease = value;
  19885. };
  19886. }
  19887. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  19888. var id = this._id;
  19889. return arguments.length
  19890. ? this.each(easeConstant(id, value))
  19891. : Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).ease;
  19892. });
  19893. /***/ }),
  19894. /***/ "./node_modules/d3-transition/src/transition/end.js":
  19895. /*!**********************************************************!*\
  19896. !*** ./node_modules/d3-transition/src/transition/end.js ***!
  19897. \**********************************************************/
  19898. /*! exports provided: default */
  19899. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19900. "use strict";
  19901. __webpack_require__.r(__webpack_exports__);
  19902. /* harmony import */ var _schedule_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  19903. /* harmony default export */ __webpack_exports__["default"] = (function() {
  19904. var on0, on1, that = this, id = that._id, size = that.size();
  19905. return new Promise(function(resolve, reject) {
  19906. var cancel = {value: reject},
  19907. end = {value: function() { if (--size === 0) resolve(); }};
  19908. that.each(function() {
  19909. var schedule = Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id),
  19910. on = schedule.on;
  19911. // If this node shared a dispatch with the previous node,
  19912. // just assign the updated shared dispatch and we’re done!
  19913. // Otherwise, copy-on-write.
  19914. if (on !== on0) {
  19915. on1 = (on0 = on).copy();
  19916. on1._.cancel.push(cancel);
  19917. on1._.interrupt.push(cancel);
  19918. on1._.end.push(end);
  19919. }
  19920. schedule.on = on1;
  19921. });
  19922. });
  19923. });
  19924. /***/ }),
  19925. /***/ "./node_modules/d3-transition/src/transition/filter.js":
  19926. /*!*************************************************************!*\
  19927. !*** ./node_modules/d3-transition/src/transition/filter.js ***!
  19928. \*************************************************************/
  19929. /*! exports provided: default */
  19930. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19931. "use strict";
  19932. __webpack_require__.r(__webpack_exports__);
  19933. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19934. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-transition/src/transition/index.js");
  19935. /* harmony default export */ __webpack_exports__["default"] = (function(match) {
  19936. if (typeof match !== "function") match = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["matcher"])(match);
  19937. for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
  19938. for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
  19939. if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
  19940. subgroup.push(node);
  19941. }
  19942. }
  19943. }
  19944. return new _index_js__WEBPACK_IMPORTED_MODULE_1__["Transition"](subgroups, this._parents, this._name, this._id);
  19945. });
  19946. /***/ }),
  19947. /***/ "./node_modules/d3-transition/src/transition/index.js":
  19948. /*!************************************************************!*\
  19949. !*** ./node_modules/d3-transition/src/transition/index.js ***!
  19950. \************************************************************/
  19951. /*! exports provided: Transition, default, newId */
  19952. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19953. "use strict";
  19954. __webpack_require__.r(__webpack_exports__);
  19955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Transition", function() { return Transition; });
  19956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return transition; });
  19957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "newId", function() { return newId; });
  19958. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  19959. /* harmony import */ var _attr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./attr.js */ "./node_modules/d3-transition/src/transition/attr.js");
  19960. /* harmony import */ var _attrTween_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./attrTween.js */ "./node_modules/d3-transition/src/transition/attrTween.js");
  19961. /* harmony import */ var _delay_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./delay.js */ "./node_modules/d3-transition/src/transition/delay.js");
  19962. /* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-transition/src/transition/duration.js");
  19963. /* harmony import */ var _ease_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ease.js */ "./node_modules/d3-transition/src/transition/ease.js");
  19964. /* harmony import */ var _filter_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./filter.js */ "./node_modules/d3-transition/src/transition/filter.js");
  19965. /* harmony import */ var _merge_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./merge.js */ "./node_modules/d3-transition/src/transition/merge.js");
  19966. /* harmony import */ var _on_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./on.js */ "./node_modules/d3-transition/src/transition/on.js");
  19967. /* harmony import */ var _remove_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./remove.js */ "./node_modules/d3-transition/src/transition/remove.js");
  19968. /* harmony import */ var _select_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./select.js */ "./node_modules/d3-transition/src/transition/select.js");
  19969. /* harmony import */ var _selectAll_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./selectAll.js */ "./node_modules/d3-transition/src/transition/selectAll.js");
  19970. /* harmony import */ var _selection_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./selection.js */ "./node_modules/d3-transition/src/transition/selection.js");
  19971. /* harmony import */ var _style_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./style.js */ "./node_modules/d3-transition/src/transition/style.js");
  19972. /* harmony import */ var _styleTween_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./styleTween.js */ "./node_modules/d3-transition/src/transition/styleTween.js");
  19973. /* harmony import */ var _text_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./text.js */ "./node_modules/d3-transition/src/transition/text.js");
  19974. /* harmony import */ var _textTween_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./textTween.js */ "./node_modules/d3-transition/src/transition/textTween.js");
  19975. /* harmony import */ var _transition_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./transition.js */ "./node_modules/d3-transition/src/transition/transition.js");
  19976. /* harmony import */ var _tween_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./tween.js */ "./node_modules/d3-transition/src/transition/tween.js");
  19977. /* harmony import */ var _end_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./end.js */ "./node_modules/d3-transition/src/transition/end.js");
  19978. var id = 0;
  19979. function Transition(groups, parents, name, id) {
  19980. this._groups = groups;
  19981. this._parents = parents;
  19982. this._name = name;
  19983. this._id = id;
  19984. }
  19985. function transition(name) {
  19986. return Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"])().transition(name);
  19987. }
  19988. function newId() {
  19989. return ++id;
  19990. }
  19991. var selection_prototype = d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype;
  19992. Transition.prototype = transition.prototype = {
  19993. constructor: Transition,
  19994. select: _select_js__WEBPACK_IMPORTED_MODULE_10__["default"],
  19995. selectAll: _selectAll_js__WEBPACK_IMPORTED_MODULE_11__["default"],
  19996. filter: _filter_js__WEBPACK_IMPORTED_MODULE_6__["default"],
  19997. merge: _merge_js__WEBPACK_IMPORTED_MODULE_7__["default"],
  19998. selection: _selection_js__WEBPACK_IMPORTED_MODULE_12__["default"],
  19999. transition: _transition_js__WEBPACK_IMPORTED_MODULE_17__["default"],
  20000. call: selection_prototype.call,
  20001. nodes: selection_prototype.nodes,
  20002. node: selection_prototype.node,
  20003. size: selection_prototype.size,
  20004. empty: selection_prototype.empty,
  20005. each: selection_prototype.each,
  20006. on: _on_js__WEBPACK_IMPORTED_MODULE_8__["default"],
  20007. attr: _attr_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  20008. attrTween: _attrTween_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  20009. style: _style_js__WEBPACK_IMPORTED_MODULE_13__["default"],
  20010. styleTween: _styleTween_js__WEBPACK_IMPORTED_MODULE_14__["default"],
  20011. text: _text_js__WEBPACK_IMPORTED_MODULE_15__["default"],
  20012. textTween: _textTween_js__WEBPACK_IMPORTED_MODULE_16__["default"],
  20013. remove: _remove_js__WEBPACK_IMPORTED_MODULE_9__["default"],
  20014. tween: _tween_js__WEBPACK_IMPORTED_MODULE_18__["default"],
  20015. delay: _delay_js__WEBPACK_IMPORTED_MODULE_3__["default"],
  20016. duration: _duration_js__WEBPACK_IMPORTED_MODULE_4__["default"],
  20017. ease: _ease_js__WEBPACK_IMPORTED_MODULE_5__["default"],
  20018. end: _end_js__WEBPACK_IMPORTED_MODULE_19__["default"]
  20019. };
  20020. /***/ }),
  20021. /***/ "./node_modules/d3-transition/src/transition/interpolate.js":
  20022. /*!******************************************************************!*\
  20023. !*** ./node_modules/d3-transition/src/transition/interpolate.js ***!
  20024. \******************************************************************/
  20025. /*! exports provided: default */
  20026. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20027. "use strict";
  20028. __webpack_require__.r(__webpack_exports__);
  20029. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  20030. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  20031. /* harmony default export */ __webpack_exports__["default"] = (function(a, b) {
  20032. var c;
  20033. return (typeof b === "number" ? d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateNumber"]
  20034. : b instanceof d3_color__WEBPACK_IMPORTED_MODULE_0__["color"] ? d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateRgb"]
  20035. : (c = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["color"])(b)) ? (b = c, d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateRgb"])
  20036. : d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateString"])(a, b);
  20037. });
  20038. /***/ }),
  20039. /***/ "./node_modules/d3-transition/src/transition/merge.js":
  20040. /*!************************************************************!*\
  20041. !*** ./node_modules/d3-transition/src/transition/merge.js ***!
  20042. \************************************************************/
  20043. /*! exports provided: default */
  20044. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20045. "use strict";
  20046. __webpack_require__.r(__webpack_exports__);
  20047. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-transition/src/transition/index.js");
  20048. /* harmony default export */ __webpack_exports__["default"] = (function(transition) {
  20049. if (transition._id !== this._id) throw new Error;
  20050. 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) {
  20051. for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {
  20052. if (node = group0[i] || group1[i]) {
  20053. merge[i] = node;
  20054. }
  20055. }
  20056. }
  20057. for (; j < m0; ++j) {
  20058. merges[j] = groups0[j];
  20059. }
  20060. return new _index_js__WEBPACK_IMPORTED_MODULE_0__["Transition"](merges, this._parents, this._name, this._id);
  20061. });
  20062. /***/ }),
  20063. /***/ "./node_modules/d3-transition/src/transition/on.js":
  20064. /*!*********************************************************!*\
  20065. !*** ./node_modules/d3-transition/src/transition/on.js ***!
  20066. \*********************************************************/
  20067. /*! exports provided: default */
  20068. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20069. "use strict";
  20070. __webpack_require__.r(__webpack_exports__);
  20071. /* harmony import */ var _schedule_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  20072. function start(name) {
  20073. return (name + "").trim().split(/^|\s+/).every(function(t) {
  20074. var i = t.indexOf(".");
  20075. if (i >= 0) t = t.slice(0, i);
  20076. return !t || t === "start";
  20077. });
  20078. }
  20079. function onFunction(id, name, listener) {
  20080. var on0, on1, sit = start(name) ? _schedule_js__WEBPACK_IMPORTED_MODULE_0__["init"] : _schedule_js__WEBPACK_IMPORTED_MODULE_0__["set"];
  20081. return function() {
  20082. var schedule = sit(this, id),
  20083. on = schedule.on;
  20084. // If this node shared a dispatch with the previous node,
  20085. // just assign the updated shared dispatch and we’re done!
  20086. // Otherwise, copy-on-write.
  20087. if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);
  20088. schedule.on = on1;
  20089. };
  20090. }
  20091. /* harmony default export */ __webpack_exports__["default"] = (function(name, listener) {
  20092. var id = this._id;
  20093. return arguments.length < 2
  20094. ? Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).on.on(name)
  20095. : this.each(onFunction(id, name, listener));
  20096. });
  20097. /***/ }),
  20098. /***/ "./node_modules/d3-transition/src/transition/remove.js":
  20099. /*!*************************************************************!*\
  20100. !*** ./node_modules/d3-transition/src/transition/remove.js ***!
  20101. \*************************************************************/
  20102. /*! exports provided: default */
  20103. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20104. "use strict";
  20105. __webpack_require__.r(__webpack_exports__);
  20106. function removeFunction(id) {
  20107. return function() {
  20108. var parent = this.parentNode;
  20109. for (var i in this.__transition) if (+i !== id) return;
  20110. if (parent) parent.removeChild(this);
  20111. };
  20112. }
  20113. /* harmony default export */ __webpack_exports__["default"] = (function() {
  20114. return this.on("end.remove", removeFunction(this._id));
  20115. });
  20116. /***/ }),
  20117. /***/ "./node_modules/d3-transition/src/transition/schedule.js":
  20118. /*!***************************************************************!*\
  20119. !*** ./node_modules/d3-transition/src/transition/schedule.js ***!
  20120. \***************************************************************/
  20121. /*! exports provided: CREATED, SCHEDULED, STARTING, STARTED, RUNNING, ENDING, ENDED, default, init, set, get */
  20122. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20123. "use strict";
  20124. __webpack_require__.r(__webpack_exports__);
  20125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CREATED", function() { return CREATED; });
  20126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SCHEDULED", function() { return SCHEDULED; });
  20127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STARTING", function() { return STARTING; });
  20128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STARTED", function() { return STARTED; });
  20129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RUNNING", function() { return RUNNING; });
  20130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENDING", function() { return ENDING; });
  20131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENDED", function() { return ENDED; });
  20132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "init", function() { return init; });
  20133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "set", function() { return set; });
  20134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
  20135. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  20136. /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/src/index.js");
  20137. var emptyOn = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("start", "end", "cancel", "interrupt");
  20138. var emptyTween = [];
  20139. var CREATED = 0;
  20140. var SCHEDULED = 1;
  20141. var STARTING = 2;
  20142. var STARTED = 3;
  20143. var RUNNING = 4;
  20144. var ENDING = 5;
  20145. var ENDED = 6;
  20146. /* harmony default export */ __webpack_exports__["default"] = (function(node, name, id, index, group, timing) {
  20147. var schedules = node.__transition;
  20148. if (!schedules) node.__transition = {};
  20149. else if (id in schedules) return;
  20150. create(node, id, {
  20151. name: name,
  20152. index: index, // For context during callback.
  20153. group: group, // For context during callback.
  20154. on: emptyOn,
  20155. tween: emptyTween,
  20156. time: timing.time,
  20157. delay: timing.delay,
  20158. duration: timing.duration,
  20159. ease: timing.ease,
  20160. timer: null,
  20161. state: CREATED
  20162. });
  20163. });
  20164. function init(node, id) {
  20165. var schedule = get(node, id);
  20166. if (schedule.state > CREATED) throw new Error("too late; already scheduled");
  20167. return schedule;
  20168. }
  20169. function set(node, id) {
  20170. var schedule = get(node, id);
  20171. if (schedule.state > STARTED) throw new Error("too late; already running");
  20172. return schedule;
  20173. }
  20174. function get(node, id) {
  20175. var schedule = node.__transition;
  20176. if (!schedule || !(schedule = schedule[id])) throw new Error("transition not found");
  20177. return schedule;
  20178. }
  20179. function create(node, id, self) {
  20180. var schedules = node.__transition,
  20181. tween;
  20182. // Initialize the self timer when the transition is created.
  20183. // Note the actual delay is not known until the first callback!
  20184. schedules[id] = self;
  20185. self.timer = Object(d3_timer__WEBPACK_IMPORTED_MODULE_1__["timer"])(schedule, 0, self.time);
  20186. function schedule(elapsed) {
  20187. self.state = SCHEDULED;
  20188. self.timer.restart(start, self.delay, self.time);
  20189. // If the elapsed delay is less than our first sleep, start immediately.
  20190. if (self.delay <= elapsed) start(elapsed - self.delay);
  20191. }
  20192. function start(elapsed) {
  20193. var i, j, n, o;
  20194. // If the state is not SCHEDULED, then we previously errored on start.
  20195. if (self.state !== SCHEDULED) return stop();
  20196. for (i in schedules) {
  20197. o = schedules[i];
  20198. if (o.name !== self.name) continue;
  20199. // While this element already has a starting transition during this frame,
  20200. // defer starting an interrupting transition until that transition has a
  20201. // chance to tick (and possibly end); see d3/d3-transition#54!
  20202. if (o.state === STARTED) return Object(d3_timer__WEBPACK_IMPORTED_MODULE_1__["timeout"])(start);
  20203. // Interrupt the active transition, if any.
  20204. if (o.state === RUNNING) {
  20205. o.state = ENDED;
  20206. o.timer.stop();
  20207. o.on.call("interrupt", node, node.__data__, o.index, o.group);
  20208. delete schedules[i];
  20209. }
  20210. // Cancel any pre-empted transitions.
  20211. else if (+i < id) {
  20212. o.state = ENDED;
  20213. o.timer.stop();
  20214. o.on.call("cancel", node, node.__data__, o.index, o.group);
  20215. delete schedules[i];
  20216. }
  20217. }
  20218. // Defer the first tick to end of the current frame; see d3/d3#1576.
  20219. // Note the transition may be canceled after start and before the first tick!
  20220. // Note this must be scheduled before the start event; see d3/d3-transition#16!
  20221. // Assuming this is successful, subsequent callbacks go straight to tick.
  20222. Object(d3_timer__WEBPACK_IMPORTED_MODULE_1__["timeout"])(function() {
  20223. if (self.state === STARTED) {
  20224. self.state = RUNNING;
  20225. self.timer.restart(tick, self.delay, self.time);
  20226. tick(elapsed);
  20227. }
  20228. });
  20229. // Dispatch the start event.
  20230. // Note this must be done before the tween are initialized.
  20231. self.state = STARTING;
  20232. self.on.call("start", node, node.__data__, self.index, self.group);
  20233. if (self.state !== STARTING) return; // interrupted
  20234. self.state = STARTED;
  20235. // Initialize the tween, deleting null tween.
  20236. tween = new Array(n = self.tween.length);
  20237. for (i = 0, j = -1; i < n; ++i) {
  20238. if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {
  20239. tween[++j] = o;
  20240. }
  20241. }
  20242. tween.length = j + 1;
  20243. }
  20244. function tick(elapsed) {
  20245. var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),
  20246. i = -1,
  20247. n = tween.length;
  20248. while (++i < n) {
  20249. tween[i].call(node, t);
  20250. }
  20251. // Dispatch the end event.
  20252. if (self.state === ENDING) {
  20253. self.on.call("end", node, node.__data__, self.index, self.group);
  20254. stop();
  20255. }
  20256. }
  20257. function stop() {
  20258. self.state = ENDED;
  20259. self.timer.stop();
  20260. delete schedules[id];
  20261. for (var i in schedules) return; // eslint-disable-line no-unused-vars
  20262. delete node.__transition;
  20263. }
  20264. }
  20265. /***/ }),
  20266. /***/ "./node_modules/d3-transition/src/transition/select.js":
  20267. /*!*************************************************************!*\
  20268. !*** ./node_modules/d3-transition/src/transition/select.js ***!
  20269. \*************************************************************/
  20270. /*! exports provided: default */
  20271. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20272. "use strict";
  20273. __webpack_require__.r(__webpack_exports__);
  20274. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  20275. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-transition/src/transition/index.js");
  20276. /* harmony import */ var _schedule_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  20277. /* harmony default export */ __webpack_exports__["default"] = (function(select) {
  20278. var name = this._name,
  20279. id = this._id;
  20280. if (typeof select !== "function") select = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["selector"])(select);
  20281. for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
  20282. for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {
  20283. if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
  20284. if ("__data__" in node) subnode.__data__ = node.__data__;
  20285. subgroup[i] = subnode;
  20286. Object(_schedule_js__WEBPACK_IMPORTED_MODULE_2__["default"])(subgroup[i], name, id, i, subgroup, Object(_schedule_js__WEBPACK_IMPORTED_MODULE_2__["get"])(node, id));
  20287. }
  20288. }
  20289. }
  20290. return new _index_js__WEBPACK_IMPORTED_MODULE_1__["Transition"](subgroups, this._parents, name, id);
  20291. });
  20292. /***/ }),
  20293. /***/ "./node_modules/d3-transition/src/transition/selectAll.js":
  20294. /*!****************************************************************!*\
  20295. !*** ./node_modules/d3-transition/src/transition/selectAll.js ***!
  20296. \****************************************************************/
  20297. /*! exports provided: default */
  20298. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20299. "use strict";
  20300. __webpack_require__.r(__webpack_exports__);
  20301. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  20302. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-transition/src/transition/index.js");
  20303. /* harmony import */ var _schedule_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  20304. /* harmony default export */ __webpack_exports__["default"] = (function(select) {
  20305. var name = this._name,
  20306. id = this._id;
  20307. if (typeof select !== "function") select = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["selectorAll"])(select);
  20308. for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {
  20309. for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
  20310. if (node = group[i]) {
  20311. for (var children = select.call(node, node.__data__, i, group), child, inherit = Object(_schedule_js__WEBPACK_IMPORTED_MODULE_2__["get"])(node, id), k = 0, l = children.length; k < l; ++k) {
  20312. if (child = children[k]) {
  20313. Object(_schedule_js__WEBPACK_IMPORTED_MODULE_2__["default"])(child, name, id, k, children, inherit);
  20314. }
  20315. }
  20316. subgroups.push(children);
  20317. parents.push(node);
  20318. }
  20319. }
  20320. }
  20321. return new _index_js__WEBPACK_IMPORTED_MODULE_1__["Transition"](subgroups, parents, name, id);
  20322. });
  20323. /***/ }),
  20324. /***/ "./node_modules/d3-transition/src/transition/selection.js":
  20325. /*!****************************************************************!*\
  20326. !*** ./node_modules/d3-transition/src/transition/selection.js ***!
  20327. \****************************************************************/
  20328. /*! exports provided: default */
  20329. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20330. "use strict";
  20331. __webpack_require__.r(__webpack_exports__);
  20332. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  20333. var Selection = d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype.constructor;
  20334. /* harmony default export */ __webpack_exports__["default"] = (function() {
  20335. return new Selection(this._groups, this._parents);
  20336. });
  20337. /***/ }),
  20338. /***/ "./node_modules/d3-transition/src/transition/style.js":
  20339. /*!************************************************************!*\
  20340. !*** ./node_modules/d3-transition/src/transition/style.js ***!
  20341. \************************************************************/
  20342. /*! exports provided: default */
  20343. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20344. "use strict";
  20345. __webpack_require__.r(__webpack_exports__);
  20346. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  20347. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  20348. /* harmony import */ var _schedule_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  20349. /* harmony import */ var _tween_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tween.js */ "./node_modules/d3-transition/src/transition/tween.js");
  20350. /* harmony import */ var _interpolate_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./interpolate.js */ "./node_modules/d3-transition/src/transition/interpolate.js");
  20351. function styleNull(name, interpolate) {
  20352. var string00,
  20353. string10,
  20354. interpolate0;
  20355. return function() {
  20356. var string0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name),
  20357. string1 = (this.style.removeProperty(name), Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name));
  20358. return string0 === string1 ? null
  20359. : string0 === string00 && string1 === string10 ? interpolate0
  20360. : interpolate0 = interpolate(string00 = string0, string10 = string1);
  20361. };
  20362. }
  20363. function styleRemove(name) {
  20364. return function() {
  20365. this.style.removeProperty(name);
  20366. };
  20367. }
  20368. function styleConstant(name, interpolate, value1) {
  20369. var string00,
  20370. string1 = value1 + "",
  20371. interpolate0;
  20372. return function() {
  20373. var string0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name);
  20374. return string0 === string1 ? null
  20375. : string0 === string00 ? interpolate0
  20376. : interpolate0 = interpolate(string00 = string0, value1);
  20377. };
  20378. }
  20379. function styleFunction(name, interpolate, value) {
  20380. var string00,
  20381. string10,
  20382. interpolate0;
  20383. return function() {
  20384. var string0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name),
  20385. value1 = value(this),
  20386. string1 = value1 + "";
  20387. if (value1 == null) string1 = value1 = (this.style.removeProperty(name), Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name));
  20388. return string0 === string1 ? null
  20389. : string0 === string00 && string1 === string10 ? interpolate0
  20390. : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
  20391. };
  20392. }
  20393. function styleMaybeRemove(id, name) {
  20394. var on0, on1, listener0, key = "style." + name, event = "end." + key, remove;
  20395. return function() {
  20396. var schedule = Object(_schedule_js__WEBPACK_IMPORTED_MODULE_2__["set"])(this, id),
  20397. on = schedule.on,
  20398. listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : undefined;
  20399. // If this node shared a dispatch with the previous node,
  20400. // just assign the updated shared dispatch and we’re done!
  20401. // Otherwise, copy-on-write.
  20402. if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);
  20403. schedule.on = on1;
  20404. };
  20405. }
  20406. /* harmony default export */ __webpack_exports__["default"] = (function(name, value, priority) {
  20407. var i = (name += "") === "transform" ? d3_interpolate__WEBPACK_IMPORTED_MODULE_0__["interpolateTransformCss"] : _interpolate_js__WEBPACK_IMPORTED_MODULE_4__["default"];
  20408. return value == null ? this
  20409. .styleTween(name, styleNull(name, i))
  20410. .on("end.style." + name, styleRemove(name))
  20411. : typeof value === "function" ? this
  20412. .styleTween(name, styleFunction(name, i, Object(_tween_js__WEBPACK_IMPORTED_MODULE_3__["tweenValue"])(this, "style." + name, value)))
  20413. .each(styleMaybeRemove(this._id, name))
  20414. : this
  20415. .styleTween(name, styleConstant(name, i, value), priority)
  20416. .on("end.style." + name, null);
  20417. });
  20418. /***/ }),
  20419. /***/ "./node_modules/d3-transition/src/transition/styleTween.js":
  20420. /*!*****************************************************************!*\
  20421. !*** ./node_modules/d3-transition/src/transition/styleTween.js ***!
  20422. \*****************************************************************/
  20423. /*! exports provided: default */
  20424. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20425. "use strict";
  20426. __webpack_require__.r(__webpack_exports__);
  20427. function styleInterpolate(name, i, priority) {
  20428. return function(t) {
  20429. this.style.setProperty(name, i.call(this, t), priority);
  20430. };
  20431. }
  20432. function styleTween(name, value, priority) {
  20433. var t, i0;
  20434. function tween() {
  20435. var i = value.apply(this, arguments);
  20436. if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);
  20437. return t;
  20438. }
  20439. tween._value = value;
  20440. return tween;
  20441. }
  20442. /* harmony default export */ __webpack_exports__["default"] = (function(name, value, priority) {
  20443. var key = "style." + (name += "");
  20444. if (arguments.length < 2) return (key = this.tween(key)) && key._value;
  20445. if (value == null) return this.tween(key, null);
  20446. if (typeof value !== "function") throw new Error;
  20447. return this.tween(key, styleTween(name, value, priority == null ? "" : priority));
  20448. });
  20449. /***/ }),
  20450. /***/ "./node_modules/d3-transition/src/transition/text.js":
  20451. /*!***********************************************************!*\
  20452. !*** ./node_modules/d3-transition/src/transition/text.js ***!
  20453. \***********************************************************/
  20454. /*! exports provided: default */
  20455. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20456. "use strict";
  20457. __webpack_require__.r(__webpack_exports__);
  20458. /* harmony import */ var _tween_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tween.js */ "./node_modules/d3-transition/src/transition/tween.js");
  20459. function textConstant(value) {
  20460. return function() {
  20461. this.textContent = value;
  20462. };
  20463. }
  20464. function textFunction(value) {
  20465. return function() {
  20466. var value1 = value(this);
  20467. this.textContent = value1 == null ? "" : value1;
  20468. };
  20469. }
  20470. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  20471. return this.tween("text", typeof value === "function"
  20472. ? textFunction(Object(_tween_js__WEBPACK_IMPORTED_MODULE_0__["tweenValue"])(this, "text", value))
  20473. : textConstant(value == null ? "" : value + ""));
  20474. });
  20475. /***/ }),
  20476. /***/ "./node_modules/d3-transition/src/transition/textTween.js":
  20477. /*!****************************************************************!*\
  20478. !*** ./node_modules/d3-transition/src/transition/textTween.js ***!
  20479. \****************************************************************/
  20480. /*! exports provided: default */
  20481. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20482. "use strict";
  20483. __webpack_require__.r(__webpack_exports__);
  20484. function textInterpolate(i) {
  20485. return function(t) {
  20486. this.textContent = i.call(this, t);
  20487. };
  20488. }
  20489. function textTween(value) {
  20490. var t0, i0;
  20491. function tween() {
  20492. var i = value.apply(this, arguments);
  20493. if (i !== i0) t0 = (i0 = i) && textInterpolate(i);
  20494. return t0;
  20495. }
  20496. tween._value = value;
  20497. return tween;
  20498. }
  20499. /* harmony default export */ __webpack_exports__["default"] = (function(value) {
  20500. var key = "text";
  20501. if (arguments.length < 1) return (key = this.tween(key)) && key._value;
  20502. if (value == null) return this.tween(key, null);
  20503. if (typeof value !== "function") throw new Error;
  20504. return this.tween(key, textTween(value));
  20505. });
  20506. /***/ }),
  20507. /***/ "./node_modules/d3-transition/src/transition/transition.js":
  20508. /*!*****************************************************************!*\
  20509. !*** ./node_modules/d3-transition/src/transition/transition.js ***!
  20510. \*****************************************************************/
  20511. /*! exports provided: default */
  20512. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20513. "use strict";
  20514. __webpack_require__.r(__webpack_exports__);
  20515. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.js */ "./node_modules/d3-transition/src/transition/index.js");
  20516. /* harmony import */ var _schedule_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  20517. /* harmony default export */ __webpack_exports__["default"] = (function() {
  20518. var name = this._name,
  20519. id0 = this._id,
  20520. id1 = Object(_index_js__WEBPACK_IMPORTED_MODULE_0__["newId"])();
  20521. for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {
  20522. for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
  20523. if (node = group[i]) {
  20524. var inherit = Object(_schedule_js__WEBPACK_IMPORTED_MODULE_1__["get"])(node, id0);
  20525. Object(_schedule_js__WEBPACK_IMPORTED_MODULE_1__["default"])(node, name, id1, i, group, {
  20526. time: inherit.time + inherit.delay + inherit.duration,
  20527. delay: 0,
  20528. duration: inherit.duration,
  20529. ease: inherit.ease
  20530. });
  20531. }
  20532. }
  20533. }
  20534. return new _index_js__WEBPACK_IMPORTED_MODULE_0__["Transition"](groups, this._parents, name, id1);
  20535. });
  20536. /***/ }),
  20537. /***/ "./node_modules/d3-transition/src/transition/tween.js":
  20538. /*!************************************************************!*\
  20539. !*** ./node_modules/d3-transition/src/transition/tween.js ***!
  20540. \************************************************************/
  20541. /*! exports provided: default, tweenValue */
  20542. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20543. "use strict";
  20544. __webpack_require__.r(__webpack_exports__);
  20545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tweenValue", function() { return tweenValue; });
  20546. /* harmony import */ var _schedule_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule.js */ "./node_modules/d3-transition/src/transition/schedule.js");
  20547. function tweenRemove(id, name) {
  20548. var tween0, tween1;
  20549. return function() {
  20550. var schedule = Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id),
  20551. tween = schedule.tween;
  20552. // If this node shared tween with the previous node,
  20553. // just assign the updated shared tween and we’re done!
  20554. // Otherwise, copy-on-write.
  20555. if (tween !== tween0) {
  20556. tween1 = tween0 = tween;
  20557. for (var i = 0, n = tween1.length; i < n; ++i) {
  20558. if (tween1[i].name === name) {
  20559. tween1 = tween1.slice();
  20560. tween1.splice(i, 1);
  20561. break;
  20562. }
  20563. }
  20564. }
  20565. schedule.tween = tween1;
  20566. };
  20567. }
  20568. function tweenFunction(id, name, value) {
  20569. var tween0, tween1;
  20570. if (typeof value !== "function") throw new Error;
  20571. return function() {
  20572. var schedule = Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id),
  20573. tween = schedule.tween;
  20574. // If this node shared tween with the previous node,
  20575. // just assign the updated shared tween and we’re done!
  20576. // Otherwise, copy-on-write.
  20577. if (tween !== tween0) {
  20578. tween1 = (tween0 = tween).slice();
  20579. for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {
  20580. if (tween1[i].name === name) {
  20581. tween1[i] = t;
  20582. break;
  20583. }
  20584. }
  20585. if (i === n) tween1.push(t);
  20586. }
  20587. schedule.tween = tween1;
  20588. };
  20589. }
  20590. /* harmony default export */ __webpack_exports__["default"] = (function(name, value) {
  20591. var id = this._id;
  20592. name += "";
  20593. if (arguments.length < 2) {
  20594. var tween = Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).tween;
  20595. for (var i = 0, n = tween.length, t; i < n; ++i) {
  20596. if ((t = tween[i]).name === name) {
  20597. return t.value;
  20598. }
  20599. }
  20600. return null;
  20601. }
  20602. return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));
  20603. });
  20604. function tweenValue(transition, name, value) {
  20605. var id = transition._id;
  20606. transition.each(function() {
  20607. var schedule = Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id);
  20608. (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);
  20609. });
  20610. return function(node) {
  20611. return Object(_schedule_js__WEBPACK_IMPORTED_MODULE_0__["get"])(node, id).value[name];
  20612. };
  20613. }
  20614. /***/ }),
  20615. /***/ "./node_modules/d3-voronoi/src/Beach.js":
  20616. /*!**********************************************!*\
  20617. !*** ./node_modules/d3-voronoi/src/Beach.js ***!
  20618. \**********************************************/
  20619. /*! exports provided: removeBeach, addBeach */
  20620. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20621. "use strict";
  20622. __webpack_require__.r(__webpack_exports__);
  20623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeBeach", function() { return removeBeach; });
  20624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addBeach", function() { return addBeach; });
  20625. /* harmony import */ var _RedBlackTree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RedBlackTree */ "./node_modules/d3-voronoi/src/RedBlackTree.js");
  20626. /* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Cell */ "./node_modules/d3-voronoi/src/Cell.js");
  20627. /* harmony import */ var _Circle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Circle */ "./node_modules/d3-voronoi/src/Circle.js");
  20628. /* harmony import */ var _Edge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Edge */ "./node_modules/d3-voronoi/src/Edge.js");
  20629. /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Diagram */ "./node_modules/d3-voronoi/src/Diagram.js");
  20630. var beachPool = [];
  20631. function Beach() {
  20632. Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(this);
  20633. this.edge =
  20634. this.site =
  20635. this.circle = null;
  20636. }
  20637. function createBeach(site) {
  20638. var beach = beachPool.pop() || new Beach;
  20639. beach.site = site;
  20640. return beach;
  20641. }
  20642. function detachBeach(beach) {
  20643. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(beach);
  20644. _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"].remove(beach);
  20645. beachPool.push(beach);
  20646. Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(beach);
  20647. }
  20648. function removeBeach(beach) {
  20649. var circle = beach.circle,
  20650. x = circle.x,
  20651. y = circle.cy,
  20652. vertex = [x, y],
  20653. previous = beach.P,
  20654. next = beach.N,
  20655. disappearing = [beach];
  20656. detachBeach(beach);
  20657. var lArc = previous;
  20658. while (lArc.circle
  20659. && Math.abs(x - lArc.circle.x) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]
  20660. && Math.abs(y - lArc.circle.cy) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) {
  20661. previous = lArc.P;
  20662. disappearing.unshift(lArc);
  20663. detachBeach(lArc);
  20664. lArc = previous;
  20665. }
  20666. disappearing.unshift(lArc);
  20667. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(lArc);
  20668. var rArc = next;
  20669. while (rArc.circle
  20670. && Math.abs(x - rArc.circle.x) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]
  20671. && Math.abs(y - rArc.circle.cy) < _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) {
  20672. next = rArc.N;
  20673. disappearing.push(rArc);
  20674. detachBeach(rArc);
  20675. rArc = next;
  20676. }
  20677. disappearing.push(rArc);
  20678. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(rArc);
  20679. var nArcs = disappearing.length,
  20680. iArc;
  20681. for (iArc = 1; iArc < nArcs; ++iArc) {
  20682. rArc = disappearing[iArc];
  20683. lArc = disappearing[iArc - 1];
  20684. Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["setEdgeEnd"])(rArc.edge, lArc.site, rArc.site, vertex);
  20685. }
  20686. lArc = disappearing[0];
  20687. rArc = disappearing[nArcs - 1];
  20688. rArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lArc.site, rArc.site, null, vertex);
  20689. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(lArc);
  20690. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(rArc);
  20691. }
  20692. function addBeach(site) {
  20693. var x = site[0],
  20694. directrix = site[1],
  20695. lArc,
  20696. rArc,
  20697. dxl,
  20698. dxr,
  20699. node = _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"]._;
  20700. while (node) {
  20701. dxl = leftBreakPoint(node, directrix) - x;
  20702. if (dxl > _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) node = node.L; else {
  20703. dxr = x - rightBreakPoint(node, directrix);
  20704. if (dxr > _Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) {
  20705. if (!node.R) {
  20706. lArc = node;
  20707. break;
  20708. }
  20709. node = node.R;
  20710. } else {
  20711. if (dxl > -_Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) {
  20712. lArc = node.P;
  20713. rArc = node;
  20714. } else if (dxr > -_Diagram__WEBPACK_IMPORTED_MODULE_4__["epsilon"]) {
  20715. lArc = node;
  20716. rArc = node.N;
  20717. } else {
  20718. lArc = rArc = node;
  20719. }
  20720. break;
  20721. }
  20722. }
  20723. }
  20724. Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["createCell"])(site);
  20725. var newArc = createBeach(site);
  20726. _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"].insert(lArc, newArc);
  20727. if (!lArc && !rArc) return;
  20728. if (lArc === rArc) {
  20729. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(lArc);
  20730. rArc = createBeach(lArc.site);
  20731. _Diagram__WEBPACK_IMPORTED_MODULE_4__["beaches"].insert(newArc, rArc);
  20732. newArc.edge = rArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lArc.site, newArc.site);
  20733. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(lArc);
  20734. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(rArc);
  20735. return;
  20736. }
  20737. if (!rArc) { // && lArc
  20738. newArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lArc.site, newArc.site);
  20739. return;
  20740. }
  20741. // else lArc !== rArc
  20742. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(lArc);
  20743. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["detachCircle"])(rArc);
  20744. var lSite = lArc.site,
  20745. ax = lSite[0],
  20746. ay = lSite[1],
  20747. bx = site[0] - ax,
  20748. by = site[1] - ay,
  20749. rSite = rArc.site,
  20750. cx = rSite[0] - ax,
  20751. cy = rSite[1] - ay,
  20752. d = 2 * (bx * cy - by * cx),
  20753. hb = bx * bx + by * by,
  20754. hc = cx * cx + cy * cy,
  20755. vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay];
  20756. Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["setEdgeEnd"])(rArc.edge, lSite, rSite, vertex);
  20757. newArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(lSite, site, null, vertex);
  20758. rArc.edge = Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["createEdge"])(site, rSite, null, vertex);
  20759. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(lArc);
  20760. Object(_Circle__WEBPACK_IMPORTED_MODULE_2__["attachCircle"])(rArc);
  20761. }
  20762. function leftBreakPoint(arc, directrix) {
  20763. var site = arc.site,
  20764. rfocx = site[0],
  20765. rfocy = site[1],
  20766. pby2 = rfocy - directrix;
  20767. if (!pby2) return rfocx;
  20768. var lArc = arc.P;
  20769. if (!lArc) return -Infinity;
  20770. site = lArc.site;
  20771. var lfocx = site[0],
  20772. lfocy = site[1],
  20773. plby2 = lfocy - directrix;
  20774. if (!plby2) return lfocx;
  20775. var hl = lfocx - rfocx,
  20776. aby2 = 1 / pby2 - 1 / plby2,
  20777. b = hl / plby2;
  20778. if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;
  20779. return (rfocx + lfocx) / 2;
  20780. }
  20781. function rightBreakPoint(arc, directrix) {
  20782. var rArc = arc.N;
  20783. if (rArc) return leftBreakPoint(rArc, directrix);
  20784. var site = arc.site;
  20785. return site[1] === directrix ? site[0] : Infinity;
  20786. }
  20787. /***/ }),
  20788. /***/ "./node_modules/d3-voronoi/src/Cell.js":
  20789. /*!*********************************************!*\
  20790. !*** ./node_modules/d3-voronoi/src/Cell.js ***!
  20791. \*********************************************/
  20792. /*! exports provided: createCell, cellHalfedgeStart, cellHalfedgeEnd, sortCellHalfedges, clipCells */
  20793. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20794. "use strict";
  20795. __webpack_require__.r(__webpack_exports__);
  20796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createCell", function() { return createCell; });
  20797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cellHalfedgeStart", function() { return cellHalfedgeStart; });
  20798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cellHalfedgeEnd", function() { return cellHalfedgeEnd; });
  20799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortCellHalfedges", function() { return sortCellHalfedges; });
  20800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clipCells", function() { return clipCells; });
  20801. /* harmony import */ var _Edge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Edge */ "./node_modules/d3-voronoi/src/Edge.js");
  20802. /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Diagram */ "./node_modules/d3-voronoi/src/Diagram.js");
  20803. function createCell(site) {
  20804. return _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][site.index] = {
  20805. site: site,
  20806. halfedges: []
  20807. };
  20808. }
  20809. function cellHalfedgeAngle(cell, edge) {
  20810. var site = cell.site,
  20811. va = edge.left,
  20812. vb = edge.right;
  20813. if (site === vb) vb = va, va = site;
  20814. if (vb) return Math.atan2(vb[1] - va[1], vb[0] - va[0]);
  20815. if (site === va) va = edge[1], vb = edge[0];
  20816. else va = edge[0], vb = edge[1];
  20817. return Math.atan2(va[0] - vb[0], vb[1] - va[1]);
  20818. }
  20819. function cellHalfedgeStart(cell, edge) {
  20820. return edge[+(edge.left !== cell.site)];
  20821. }
  20822. function cellHalfedgeEnd(cell, edge) {
  20823. return edge[+(edge.left === cell.site)];
  20824. }
  20825. function sortCellHalfedges() {
  20826. for (var i = 0, n = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"].length, cell, halfedges, j, m; i < n; ++i) {
  20827. if ((cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][i]) && (m = (halfedges = cell.halfedges).length)) {
  20828. var index = new Array(m),
  20829. array = new Array(m);
  20830. for (j = 0; j < m; ++j) index[j] = j, array[j] = cellHalfedgeAngle(cell, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[j]]);
  20831. index.sort(function(i, j) { return array[j] - array[i]; });
  20832. for (j = 0; j < m; ++j) array[j] = halfedges[index[j]];
  20833. for (j = 0; j < m; ++j) halfedges[j] = array[j];
  20834. }
  20835. }
  20836. }
  20837. function clipCells(x0, y0, x1, y1) {
  20838. var nCells = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"].length,
  20839. iCell,
  20840. cell,
  20841. site,
  20842. iHalfedge,
  20843. halfedges,
  20844. nHalfedges,
  20845. start,
  20846. startX,
  20847. startY,
  20848. end,
  20849. endX,
  20850. endY,
  20851. cover = true;
  20852. for (iCell = 0; iCell < nCells; ++iCell) {
  20853. if (cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell]) {
  20854. site = cell.site;
  20855. halfedges = cell.halfedges;
  20856. iHalfedge = halfedges.length;
  20857. // Remove any dangling clipped edges.
  20858. while (iHalfedge--) {
  20859. if (!_Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[iHalfedge]]) {
  20860. halfedges.splice(iHalfedge, 1);
  20861. }
  20862. }
  20863. // Insert any border edges as necessary.
  20864. iHalfedge = 0, nHalfedges = halfedges.length;
  20865. while (iHalfedge < nHalfedges) {
  20866. end = cellHalfedgeEnd(cell, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[iHalfedge]]), endX = end[0], endY = end[1];
  20867. start = cellHalfedgeStart(cell, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"][halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1];
  20868. if (Math.abs(endX - startX) > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"] || Math.abs(endY - startY) > _Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon"]) {
  20869. halfedges.splice(iHalfedge, 0, _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, end,
  20870. 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]
  20871. : 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]
  20872. : 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]
  20873. : 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]
  20874. : null)) - 1);
  20875. ++nHalfedges;
  20876. }
  20877. }
  20878. if (nHalfedges) cover = false;
  20879. }
  20880. }
  20881. // If there weren’t any edges, have the closest site cover the extent.
  20882. // It doesn’t matter which corner of the extent we measure!
  20883. if (cover) {
  20884. var dx, dy, d2, dc = Infinity;
  20885. for (iCell = 0, cover = null; iCell < nCells; ++iCell) {
  20886. if (cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell]) {
  20887. site = cell.site;
  20888. dx = site[0] - x0;
  20889. dy = site[1] - y0;
  20890. d2 = dx * dx + dy * dy;
  20891. if (d2 < dc) dc = d2, cover = cell;
  20892. }
  20893. }
  20894. if (cover) {
  20895. var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0];
  20896. cover.halfedges.push(
  20897. _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site = cover.site, v00, v01)) - 1,
  20898. _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, v01, v11)) - 1,
  20899. _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, v11, v10)) - 1,
  20900. _Diagram__WEBPACK_IMPORTED_MODULE_1__["edges"].push(Object(_Edge__WEBPACK_IMPORTED_MODULE_0__["createBorderEdge"])(site, v10, v00)) - 1
  20901. );
  20902. }
  20903. }
  20904. // Lastly delete any cells with no edges; these were entirely clipped.
  20905. for (iCell = 0; iCell < nCells; ++iCell) {
  20906. if (cell = _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell]) {
  20907. if (!cell.halfedges.length) {
  20908. delete _Diagram__WEBPACK_IMPORTED_MODULE_1__["cells"][iCell];
  20909. }
  20910. }
  20911. }
  20912. }
  20913. /***/ }),
  20914. /***/ "./node_modules/d3-voronoi/src/Circle.js":
  20915. /*!***********************************************!*\
  20916. !*** ./node_modules/d3-voronoi/src/Circle.js ***!
  20917. \***********************************************/
  20918. /*! exports provided: firstCircle, attachCircle, detachCircle */
  20919. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20920. "use strict";
  20921. __webpack_require__.r(__webpack_exports__);
  20922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "firstCircle", function() { return firstCircle; });
  20923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "attachCircle", function() { return attachCircle; });
  20924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "detachCircle", function() { return detachCircle; });
  20925. /* harmony import */ var _RedBlackTree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RedBlackTree */ "./node_modules/d3-voronoi/src/RedBlackTree.js");
  20926. /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Diagram */ "./node_modules/d3-voronoi/src/Diagram.js");
  20927. var circlePool = [];
  20928. var firstCircle;
  20929. function Circle() {
  20930. Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(this);
  20931. this.x =
  20932. this.y =
  20933. this.arc =
  20934. this.site =
  20935. this.cy = null;
  20936. }
  20937. function attachCircle(arc) {
  20938. var lArc = arc.P,
  20939. rArc = arc.N;
  20940. if (!lArc || !rArc) return;
  20941. var lSite = lArc.site,
  20942. cSite = arc.site,
  20943. rSite = rArc.site;
  20944. if (lSite === rSite) return;
  20945. var bx = cSite[0],
  20946. by = cSite[1],
  20947. ax = lSite[0] - bx,
  20948. ay = lSite[1] - by,
  20949. cx = rSite[0] - bx,
  20950. cy = rSite[1] - by;
  20951. var d = 2 * (ax * cy - ay * cx);
  20952. if (d >= -_Diagram__WEBPACK_IMPORTED_MODULE_1__["epsilon2"]) return;
  20953. var ha = ax * ax + ay * ay,
  20954. hc = cx * cx + cy * cy,
  20955. x = (cy * ha - ay * hc) / d,
  20956. y = (ax * hc - cx * ha) / d;
  20957. var circle = circlePool.pop() || new Circle;
  20958. circle.arc = arc;
  20959. circle.site = cSite;
  20960. circle.x = x + bx;
  20961. circle.y = (circle.cy = y + by) + Math.sqrt(x * x + y * y); // y bottom
  20962. arc.circle = circle;
  20963. var before = null,
  20964. node = _Diagram__WEBPACK_IMPORTED_MODULE_1__["circles"]._;
  20965. while (node) {
  20966. if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) {
  20967. if (node.L) node = node.L;
  20968. else { before = node.P; break; }
  20969. } else {
  20970. if (node.R) node = node.R;
  20971. else { before = node; break; }
  20972. }
  20973. }
  20974. _Diagram__WEBPACK_IMPORTED_MODULE_1__["circles"].insert(before, circle);
  20975. if (!before) firstCircle = circle;
  20976. }
  20977. function detachCircle(arc) {
  20978. var circle = arc.circle;
  20979. if (circle) {
  20980. if (!circle.P) firstCircle = circle.N;
  20981. _Diagram__WEBPACK_IMPORTED_MODULE_1__["circles"].remove(circle);
  20982. circlePool.push(circle);
  20983. Object(_RedBlackTree__WEBPACK_IMPORTED_MODULE_0__["RedBlackNode"])(circle);
  20984. arc.circle = null;
  20985. }
  20986. }
  20987. /***/ }),
  20988. /***/ "./node_modules/d3-voronoi/src/Diagram.js":
  20989. /*!************************************************!*\
  20990. !*** ./node_modules/d3-voronoi/src/Diagram.js ***!
  20991. \************************************************/
  20992. /*! exports provided: epsilon, epsilon2, beaches, cells, circles, edges, default */
  20993. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20994. "use strict";
  20995. __webpack_require__.r(__webpack_exports__);
  20996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon", function() { return epsilon; });
  20997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon2", function() { return epsilon2; });
  20998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "beaches", function() { return beaches; });
  20999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cells", function() { return cells; });
  21000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circles", function() { return circles; });
  21001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "edges", function() { return edges; });
  21002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Diagram; });
  21003. /* harmony import */ var _Beach__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Beach */ "./node_modules/d3-voronoi/src/Beach.js");
  21004. /* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Cell */ "./node_modules/d3-voronoi/src/Cell.js");
  21005. /* harmony import */ var _Circle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Circle */ "./node_modules/d3-voronoi/src/Circle.js");
  21006. /* harmony import */ var _Edge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Edge */ "./node_modules/d3-voronoi/src/Edge.js");
  21007. /* harmony import */ var _RedBlackTree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RedBlackTree */ "./node_modules/d3-voronoi/src/RedBlackTree.js");
  21008. var epsilon = 1e-6;
  21009. var epsilon2 = 1e-12;
  21010. var beaches;
  21011. var cells;
  21012. var circles;
  21013. var edges;
  21014. function triangleArea(a, b, c) {
  21015. return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]);
  21016. }
  21017. function lexicographic(a, b) {
  21018. return b[1] - a[1]
  21019. || b[0] - a[0];
  21020. }
  21021. function Diagram(sites, extent) {
  21022. var site = sites.sort(lexicographic).pop(),
  21023. x,
  21024. y,
  21025. circle;
  21026. edges = [];
  21027. cells = new Array(sites.length);
  21028. beaches = new _RedBlackTree__WEBPACK_IMPORTED_MODULE_4__["default"];
  21029. circles = new _RedBlackTree__WEBPACK_IMPORTED_MODULE_4__["default"];
  21030. while (true) {
  21031. circle = _Circle__WEBPACK_IMPORTED_MODULE_2__["firstCircle"];
  21032. if (site && (!circle || site[1] < circle.y || (site[1] === circle.y && site[0] < circle.x))) {
  21033. if (site[0] !== x || site[1] !== y) {
  21034. Object(_Beach__WEBPACK_IMPORTED_MODULE_0__["addBeach"])(site);
  21035. x = site[0], y = site[1];
  21036. }
  21037. site = sites.pop();
  21038. } else if (circle) {
  21039. Object(_Beach__WEBPACK_IMPORTED_MODULE_0__["removeBeach"])(circle.arc);
  21040. } else {
  21041. break;
  21042. }
  21043. }
  21044. Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["sortCellHalfedges"])();
  21045. if (extent) {
  21046. var x0 = +extent[0][0],
  21047. y0 = +extent[0][1],
  21048. x1 = +extent[1][0],
  21049. y1 = +extent[1][1];
  21050. Object(_Edge__WEBPACK_IMPORTED_MODULE_3__["clipEdges"])(x0, y0, x1, y1);
  21051. Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["clipCells"])(x0, y0, x1, y1);
  21052. }
  21053. this.edges = edges;
  21054. this.cells = cells;
  21055. beaches =
  21056. circles =
  21057. edges =
  21058. cells = null;
  21059. }
  21060. Diagram.prototype = {
  21061. constructor: Diagram,
  21062. polygons: function() {
  21063. var edges = this.edges;
  21064. return this.cells.map(function(cell) {
  21065. var polygon = cell.halfedges.map(function(i) { return Object(_Cell__WEBPACK_IMPORTED_MODULE_1__["cellHalfedgeStart"])(cell, edges[i]); });
  21066. polygon.data = cell.site.data;
  21067. return polygon;
  21068. });
  21069. },
  21070. triangles: function() {
  21071. var triangles = [],
  21072. edges = this.edges;
  21073. this.cells.forEach(function(cell, i) {
  21074. if (!(m = (halfedges = cell.halfedges).length)) return;
  21075. var site = cell.site,
  21076. halfedges,
  21077. j = -1,
  21078. m,
  21079. s0,
  21080. e1 = edges[halfedges[m - 1]],
  21081. s1 = e1.left === site ? e1.right : e1.left;
  21082. while (++j < m) {
  21083. s0 = s1;
  21084. e1 = edges[halfedges[j]];
  21085. s1 = e1.left === site ? e1.right : e1.left;
  21086. if (s0 && s1 && i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) {
  21087. triangles.push([site.data, s0.data, s1.data]);
  21088. }
  21089. }
  21090. });
  21091. return triangles;
  21092. },
  21093. links: function() {
  21094. return this.edges.filter(function(edge) {
  21095. return edge.right;
  21096. }).map(function(edge) {
  21097. return {
  21098. source: edge.left.data,
  21099. target: edge.right.data
  21100. };
  21101. });
  21102. },
  21103. find: function(x, y, radius) {
  21104. var that = this, i0, i1 = that._found || 0, n = that.cells.length, cell;
  21105. // Use the previously-found cell, or start with an arbitrary one.
  21106. while (!(cell = that.cells[i1])) if (++i1 >= n) return null;
  21107. var dx = x - cell.site[0], dy = y - cell.site[1], d2 = dx * dx + dy * dy;
  21108. // Traverse the half-edges to find a closer cell, if any.
  21109. do {
  21110. cell = that.cells[i0 = i1], i1 = null;
  21111. cell.halfedges.forEach(function(e) {
  21112. var edge = that.edges[e], v = edge.left;
  21113. if ((v === cell.site || !v) && !(v = edge.right)) return;
  21114. var vx = x - v[0], vy = y - v[1], v2 = vx * vx + vy * vy;
  21115. if (v2 < d2) d2 = v2, i1 = v.index;
  21116. });
  21117. } while (i1 !== null);
  21118. that._found = i0;
  21119. return radius == null || d2 <= radius * radius ? cell.site : null;
  21120. }
  21121. }
  21122. /***/ }),
  21123. /***/ "./node_modules/d3-voronoi/src/Edge.js":
  21124. /*!*********************************************!*\
  21125. !*** ./node_modules/d3-voronoi/src/Edge.js ***!
  21126. \*********************************************/
  21127. /*! exports provided: createEdge, createBorderEdge, setEdgeEnd, clipEdges */
  21128. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21129. "use strict";
  21130. __webpack_require__.r(__webpack_exports__);
  21131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEdge", function() { return createEdge; });
  21132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createBorderEdge", function() { return createBorderEdge; });
  21133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setEdgeEnd", function() { return setEdgeEnd; });
  21134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clipEdges", function() { return clipEdges; });
  21135. /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Diagram */ "./node_modules/d3-voronoi/src/Diagram.js");
  21136. function createEdge(left, right, v0, v1) {
  21137. var edge = [null, null],
  21138. index = _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"].push(edge) - 1;
  21139. edge.left = left;
  21140. edge.right = right;
  21141. if (v0) setEdgeEnd(edge, left, right, v0);
  21142. if (v1) setEdgeEnd(edge, right, left, v1);
  21143. _Diagram__WEBPACK_IMPORTED_MODULE_0__["cells"][left.index].halfedges.push(index);
  21144. _Diagram__WEBPACK_IMPORTED_MODULE_0__["cells"][right.index].halfedges.push(index);
  21145. return edge;
  21146. }
  21147. function createBorderEdge(left, v0, v1) {
  21148. var edge = [v0, v1];
  21149. edge.left = left;
  21150. return edge;
  21151. }
  21152. function setEdgeEnd(edge, left, right, vertex) {
  21153. if (!edge[0] && !edge[1]) {
  21154. edge[0] = vertex;
  21155. edge.left = left;
  21156. edge.right = right;
  21157. } else if (edge.left === right) {
  21158. edge[1] = vertex;
  21159. } else {
  21160. edge[0] = vertex;
  21161. }
  21162. }
  21163. // Liang–Barsky line clipping.
  21164. function clipEdge(edge, x0, y0, x1, y1) {
  21165. var a = edge[0],
  21166. b = edge[1],
  21167. ax = a[0],
  21168. ay = a[1],
  21169. bx = b[0],
  21170. by = b[1],
  21171. t0 = 0,
  21172. t1 = 1,
  21173. dx = bx - ax,
  21174. dy = by - ay,
  21175. r;
  21176. r = x0 - ax;
  21177. if (!dx && r > 0) return;
  21178. r /= dx;
  21179. if (dx < 0) {
  21180. if (r < t0) return;
  21181. if (r < t1) t1 = r;
  21182. } else if (dx > 0) {
  21183. if (r > t1) return;
  21184. if (r > t0) t0 = r;
  21185. }
  21186. r = x1 - ax;
  21187. if (!dx && r < 0) return;
  21188. r /= dx;
  21189. if (dx < 0) {
  21190. if (r > t1) return;
  21191. if (r > t0) t0 = r;
  21192. } else if (dx > 0) {
  21193. if (r < t0) return;
  21194. if (r < t1) t1 = r;
  21195. }
  21196. r = y0 - ay;
  21197. if (!dy && r > 0) return;
  21198. r /= dy;
  21199. if (dy < 0) {
  21200. if (r < t0) return;
  21201. if (r < t1) t1 = r;
  21202. } else if (dy > 0) {
  21203. if (r > t1) return;
  21204. if (r > t0) t0 = r;
  21205. }
  21206. r = y1 - ay;
  21207. if (!dy && r < 0) return;
  21208. r /= dy;
  21209. if (dy < 0) {
  21210. if (r > t1) return;
  21211. if (r > t0) t0 = r;
  21212. } else if (dy > 0) {
  21213. if (r < t0) return;
  21214. if (r < t1) t1 = r;
  21215. }
  21216. if (!(t0 > 0) && !(t1 < 1)) return true; // TODO Better check?
  21217. if (t0 > 0) edge[0] = [ax + t0 * dx, ay + t0 * dy];
  21218. if (t1 < 1) edge[1] = [ax + t1 * dx, ay + t1 * dy];
  21219. return true;
  21220. }
  21221. function connectEdge(edge, x0, y0, x1, y1) {
  21222. var v1 = edge[1];
  21223. if (v1) return true;
  21224. var v0 = edge[0],
  21225. left = edge.left,
  21226. right = edge.right,
  21227. lx = left[0],
  21228. ly = left[1],
  21229. rx = right[0],
  21230. ry = right[1],
  21231. fx = (lx + rx) / 2,
  21232. fy = (ly + ry) / 2,
  21233. fm,
  21234. fb;
  21235. if (ry === ly) {
  21236. if (fx < x0 || fx >= x1) return;
  21237. if (lx > rx) {
  21238. if (!v0) v0 = [fx, y0];
  21239. else if (v0[1] >= y1) return;
  21240. v1 = [fx, y1];
  21241. } else {
  21242. if (!v0) v0 = [fx, y1];
  21243. else if (v0[1] < y0) return;
  21244. v1 = [fx, y0];
  21245. }
  21246. } else {
  21247. fm = (lx - rx) / (ry - ly);
  21248. fb = fy - fm * fx;
  21249. if (fm < -1 || fm > 1) {
  21250. if (lx > rx) {
  21251. if (!v0) v0 = [(y0 - fb) / fm, y0];
  21252. else if (v0[1] >= y1) return;
  21253. v1 = [(y1 - fb) / fm, y1];
  21254. } else {
  21255. if (!v0) v0 = [(y1 - fb) / fm, y1];
  21256. else if (v0[1] < y0) return;
  21257. v1 = [(y0 - fb) / fm, y0];
  21258. }
  21259. } else {
  21260. if (ly < ry) {
  21261. if (!v0) v0 = [x0, fm * x0 + fb];
  21262. else if (v0[0] >= x1) return;
  21263. v1 = [x1, fm * x1 + fb];
  21264. } else {
  21265. if (!v0) v0 = [x1, fm * x1 + fb];
  21266. else if (v0[0] < x0) return;
  21267. v1 = [x0, fm * x0 + fb];
  21268. }
  21269. }
  21270. }
  21271. edge[0] = v0;
  21272. edge[1] = v1;
  21273. return true;
  21274. }
  21275. function clipEdges(x0, y0, x1, y1) {
  21276. var i = _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"].length,
  21277. edge;
  21278. while (i--) {
  21279. if (!connectEdge(edge = _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"][i], x0, y0, x1, y1)
  21280. || !clipEdge(edge, x0, y0, x1, y1)
  21281. || !(Math.abs(edge[0][0] - edge[1][0]) > _Diagram__WEBPACK_IMPORTED_MODULE_0__["epsilon"]
  21282. || Math.abs(edge[0][1] - edge[1][1]) > _Diagram__WEBPACK_IMPORTED_MODULE_0__["epsilon"])) {
  21283. delete _Diagram__WEBPACK_IMPORTED_MODULE_0__["edges"][i];
  21284. }
  21285. }
  21286. }
  21287. /***/ }),
  21288. /***/ "./node_modules/d3-voronoi/src/RedBlackTree.js":
  21289. /*!*****************************************************!*\
  21290. !*** ./node_modules/d3-voronoi/src/RedBlackTree.js ***!
  21291. \*****************************************************/
  21292. /*! exports provided: RedBlackNode, default */
  21293. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21294. "use strict";
  21295. __webpack_require__.r(__webpack_exports__);
  21296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedBlackNode", function() { return RedBlackNode; });
  21297. function RedBlackTree() {
  21298. this._ = null; // root node
  21299. }
  21300. function RedBlackNode(node) {
  21301. node.U = // parent node
  21302. node.C = // color - true for red, false for black
  21303. node.L = // left node
  21304. node.R = // right node
  21305. node.P = // previous node
  21306. node.N = null; // next node
  21307. }
  21308. RedBlackTree.prototype = {
  21309. constructor: RedBlackTree,
  21310. insert: function(after, node) {
  21311. var parent, grandpa, uncle;
  21312. if (after) {
  21313. node.P = after;
  21314. node.N = after.N;
  21315. if (after.N) after.N.P = node;
  21316. after.N = node;
  21317. if (after.R) {
  21318. after = after.R;
  21319. while (after.L) after = after.L;
  21320. after.L = node;
  21321. } else {
  21322. after.R = node;
  21323. }
  21324. parent = after;
  21325. } else if (this._) {
  21326. after = RedBlackFirst(this._);
  21327. node.P = null;
  21328. node.N = after;
  21329. after.P = after.L = node;
  21330. parent = after;
  21331. } else {
  21332. node.P = node.N = null;
  21333. this._ = node;
  21334. parent = null;
  21335. }
  21336. node.L = node.R = null;
  21337. node.U = parent;
  21338. node.C = true;
  21339. after = node;
  21340. while (parent && parent.C) {
  21341. grandpa = parent.U;
  21342. if (parent === grandpa.L) {
  21343. uncle = grandpa.R;
  21344. if (uncle && uncle.C) {
  21345. parent.C = uncle.C = false;
  21346. grandpa.C = true;
  21347. after = grandpa;
  21348. } else {
  21349. if (after === parent.R) {
  21350. RedBlackRotateLeft(this, parent);
  21351. after = parent;
  21352. parent = after.U;
  21353. }
  21354. parent.C = false;
  21355. grandpa.C = true;
  21356. RedBlackRotateRight(this, grandpa);
  21357. }
  21358. } else {
  21359. uncle = grandpa.L;
  21360. if (uncle && uncle.C) {
  21361. parent.C = uncle.C = false;
  21362. grandpa.C = true;
  21363. after = grandpa;
  21364. } else {
  21365. if (after === parent.L) {
  21366. RedBlackRotateRight(this, parent);
  21367. after = parent;
  21368. parent = after.U;
  21369. }
  21370. parent.C = false;
  21371. grandpa.C = true;
  21372. RedBlackRotateLeft(this, grandpa);
  21373. }
  21374. }
  21375. parent = after.U;
  21376. }
  21377. this._.C = false;
  21378. },
  21379. remove: function(node) {
  21380. if (node.N) node.N.P = node.P;
  21381. if (node.P) node.P.N = node.N;
  21382. node.N = node.P = null;
  21383. var parent = node.U,
  21384. sibling,
  21385. left = node.L,
  21386. right = node.R,
  21387. next,
  21388. red;
  21389. if (!left) next = right;
  21390. else if (!right) next = left;
  21391. else next = RedBlackFirst(right);
  21392. if (parent) {
  21393. if (parent.L === node) parent.L = next;
  21394. else parent.R = next;
  21395. } else {
  21396. this._ = next;
  21397. }
  21398. if (left && right) {
  21399. red = next.C;
  21400. next.C = node.C;
  21401. next.L = left;
  21402. left.U = next;
  21403. if (next !== right) {
  21404. parent = next.U;
  21405. next.U = node.U;
  21406. node = next.R;
  21407. parent.L = node;
  21408. next.R = right;
  21409. right.U = next;
  21410. } else {
  21411. next.U = parent;
  21412. parent = next;
  21413. node = next.R;
  21414. }
  21415. } else {
  21416. red = node.C;
  21417. node = next;
  21418. }
  21419. if (node) node.U = parent;
  21420. if (red) return;
  21421. if (node && node.C) { node.C = false; return; }
  21422. do {
  21423. if (node === this._) break;
  21424. if (node === parent.L) {
  21425. sibling = parent.R;
  21426. if (sibling.C) {
  21427. sibling.C = false;
  21428. parent.C = true;
  21429. RedBlackRotateLeft(this, parent);
  21430. sibling = parent.R;
  21431. }
  21432. if ((sibling.L && sibling.L.C)
  21433. || (sibling.R && sibling.R.C)) {
  21434. if (!sibling.R || !sibling.R.C) {
  21435. sibling.L.C = false;
  21436. sibling.C = true;
  21437. RedBlackRotateRight(this, sibling);
  21438. sibling = parent.R;
  21439. }
  21440. sibling.C = parent.C;
  21441. parent.C = sibling.R.C = false;
  21442. RedBlackRotateLeft(this, parent);
  21443. node = this._;
  21444. break;
  21445. }
  21446. } else {
  21447. sibling = parent.L;
  21448. if (sibling.C) {
  21449. sibling.C = false;
  21450. parent.C = true;
  21451. RedBlackRotateRight(this, parent);
  21452. sibling = parent.L;
  21453. }
  21454. if ((sibling.L && sibling.L.C)
  21455. || (sibling.R && sibling.R.C)) {
  21456. if (!sibling.L || !sibling.L.C) {
  21457. sibling.R.C = false;
  21458. sibling.C = true;
  21459. RedBlackRotateLeft(this, sibling);
  21460. sibling = parent.L;
  21461. }
  21462. sibling.C = parent.C;
  21463. parent.C = sibling.L.C = false;
  21464. RedBlackRotateRight(this, parent);
  21465. node = this._;
  21466. break;
  21467. }
  21468. }
  21469. sibling.C = true;
  21470. node = parent;
  21471. parent = parent.U;
  21472. } while (!node.C);
  21473. if (node) node.C = false;
  21474. }
  21475. };
  21476. function RedBlackRotateLeft(tree, node) {
  21477. var p = node,
  21478. q = node.R,
  21479. parent = p.U;
  21480. if (parent) {
  21481. if (parent.L === p) parent.L = q;
  21482. else parent.R = q;
  21483. } else {
  21484. tree._ = q;
  21485. }
  21486. q.U = parent;
  21487. p.U = q;
  21488. p.R = q.L;
  21489. if (p.R) p.R.U = p;
  21490. q.L = p;
  21491. }
  21492. function RedBlackRotateRight(tree, node) {
  21493. var p = node,
  21494. q = node.L,
  21495. parent = p.U;
  21496. if (parent) {
  21497. if (parent.L === p) parent.L = q;
  21498. else parent.R = q;
  21499. } else {
  21500. tree._ = q;
  21501. }
  21502. q.U = parent;
  21503. p.U = q;
  21504. p.L = q.R;
  21505. if (p.L) p.L.U = p;
  21506. q.R = p;
  21507. }
  21508. function RedBlackFirst(node) {
  21509. while (node.L) node = node.L;
  21510. return node;
  21511. }
  21512. /* harmony default export */ __webpack_exports__["default"] = (RedBlackTree);
  21513. /***/ }),
  21514. /***/ "./node_modules/d3-voronoi/src/constant.js":
  21515. /*!*************************************************!*\
  21516. !*** ./node_modules/d3-voronoi/src/constant.js ***!
  21517. \*************************************************/
  21518. /*! exports provided: default */
  21519. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21520. "use strict";
  21521. __webpack_require__.r(__webpack_exports__);
  21522. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  21523. return function() {
  21524. return x;
  21525. };
  21526. });
  21527. /***/ }),
  21528. /***/ "./node_modules/d3-voronoi/src/index.js":
  21529. /*!**********************************************!*\
  21530. !*** ./node_modules/d3-voronoi/src/index.js ***!
  21531. \**********************************************/
  21532. /*! exports provided: voronoi */
  21533. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21534. "use strict";
  21535. __webpack_require__.r(__webpack_exports__);
  21536. /* harmony import */ var _voronoi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./voronoi */ "./node_modules/d3-voronoi/src/voronoi.js");
  21537. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "voronoi", function() { return _voronoi__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  21538. /***/ }),
  21539. /***/ "./node_modules/d3-voronoi/src/point.js":
  21540. /*!**********************************************!*\
  21541. !*** ./node_modules/d3-voronoi/src/point.js ***!
  21542. \**********************************************/
  21543. /*! exports provided: x, y */
  21544. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21545. "use strict";
  21546. __webpack_require__.r(__webpack_exports__);
  21547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return x; });
  21548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return y; });
  21549. function x(d) {
  21550. return d[0];
  21551. }
  21552. function y(d) {
  21553. return d[1];
  21554. }
  21555. /***/ }),
  21556. /***/ "./node_modules/d3-voronoi/src/voronoi.js":
  21557. /*!************************************************!*\
  21558. !*** ./node_modules/d3-voronoi/src/voronoi.js ***!
  21559. \************************************************/
  21560. /*! exports provided: default */
  21561. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21562. "use strict";
  21563. __webpack_require__.r(__webpack_exports__);
  21564. /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-voronoi/src/constant.js");
  21565. /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "./node_modules/d3-voronoi/src/point.js");
  21566. /* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Diagram */ "./node_modules/d3-voronoi/src/Diagram.js");
  21567. /* harmony default export */ __webpack_exports__["default"] = (function() {
  21568. var x = _point__WEBPACK_IMPORTED_MODULE_1__["x"],
  21569. y = _point__WEBPACK_IMPORTED_MODULE_1__["y"],
  21570. extent = null;
  21571. function voronoi(data) {
  21572. return new _Diagram__WEBPACK_IMPORTED_MODULE_2__["default"](data.map(function(d, i) {
  21573. 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"]];
  21574. s.index = i;
  21575. s.data = d;
  21576. return s;
  21577. }), extent);
  21578. }
  21579. voronoi.polygons = function(data) {
  21580. return voronoi(data).polygons();
  21581. };
  21582. voronoi.links = function(data) {
  21583. return voronoi(data).links();
  21584. };
  21585. voronoi.triangles = function(data) {
  21586. return voronoi(data).triangles();
  21587. };
  21588. voronoi.x = function(_) {
  21589. return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), voronoi) : x;
  21590. };
  21591. voronoi.y = function(_) {
  21592. return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), voronoi) : y;
  21593. };
  21594. voronoi.extent = function(_) {
  21595. 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]]];
  21596. };
  21597. voronoi.size = function(_) {
  21598. return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]];
  21599. };
  21600. return voronoi;
  21601. });
  21602. /***/ }),
  21603. /***/ "./node_modules/d3-zoom/src/constant.js":
  21604. /*!**********************************************!*\
  21605. !*** ./node_modules/d3-zoom/src/constant.js ***!
  21606. \**********************************************/
  21607. /*! exports provided: default */
  21608. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21609. "use strict";
  21610. __webpack_require__.r(__webpack_exports__);
  21611. /* harmony default export */ __webpack_exports__["default"] = (function(x) {
  21612. return function() {
  21613. return x;
  21614. };
  21615. });
  21616. /***/ }),
  21617. /***/ "./node_modules/d3-zoom/src/event.js":
  21618. /*!*******************************************!*\
  21619. !*** ./node_modules/d3-zoom/src/event.js ***!
  21620. \*******************************************/
  21621. /*! exports provided: default */
  21622. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21623. "use strict";
  21624. __webpack_require__.r(__webpack_exports__);
  21625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ZoomEvent; });
  21626. function ZoomEvent(target, type, transform) {
  21627. this.target = target;
  21628. this.type = type;
  21629. this.transform = transform;
  21630. }
  21631. /***/ }),
  21632. /***/ "./node_modules/d3-zoom/src/index.js":
  21633. /*!*******************************************!*\
  21634. !*** ./node_modules/d3-zoom/src/index.js ***!
  21635. \*******************************************/
  21636. /*! exports provided: zoom, zoomTransform, zoomIdentity */
  21637. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21638. "use strict";
  21639. __webpack_require__.r(__webpack_exports__);
  21640. /* harmony import */ var _zoom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./zoom.js */ "./node_modules/d3-zoom/src/zoom.js");
  21641. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoom", function() { return _zoom_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  21642. /* harmony import */ var _transform_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transform.js */ "./node_modules/d3-zoom/src/transform.js");
  21643. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoomTransform", function() { return _transform_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  21644. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoomIdentity", function() { return _transform_js__WEBPACK_IMPORTED_MODULE_1__["identity"]; });
  21645. /***/ }),
  21646. /***/ "./node_modules/d3-zoom/src/noevent.js":
  21647. /*!*********************************************!*\
  21648. !*** ./node_modules/d3-zoom/src/noevent.js ***!
  21649. \*********************************************/
  21650. /*! exports provided: nopropagation, default */
  21651. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21652. "use strict";
  21653. __webpack_require__.r(__webpack_exports__);
  21654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nopropagation", function() { return nopropagation; });
  21655. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  21656. function nopropagation() {
  21657. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  21658. }
  21659. /* harmony default export */ __webpack_exports__["default"] = (function() {
  21660. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].preventDefault();
  21661. d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation();
  21662. });
  21663. /***/ }),
  21664. /***/ "./node_modules/d3-zoom/src/transform.js":
  21665. /*!***********************************************!*\
  21666. !*** ./node_modules/d3-zoom/src/transform.js ***!
  21667. \***********************************************/
  21668. /*! exports provided: Transform, identity, default */
  21669. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21670. "use strict";
  21671. __webpack_require__.r(__webpack_exports__);
  21672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Transform", function() { return Transform; });
  21673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; });
  21674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return transform; });
  21675. function Transform(k, x, y) {
  21676. this.k = k;
  21677. this.x = x;
  21678. this.y = y;
  21679. }
  21680. Transform.prototype = {
  21681. constructor: Transform,
  21682. scale: function(k) {
  21683. return k === 1 ? this : new Transform(this.k * k, this.x, this.y);
  21684. },
  21685. translate: function(x, y) {
  21686. return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);
  21687. },
  21688. apply: function(point) {
  21689. return [point[0] * this.k + this.x, point[1] * this.k + this.y];
  21690. },
  21691. applyX: function(x) {
  21692. return x * this.k + this.x;
  21693. },
  21694. applyY: function(y) {
  21695. return y * this.k + this.y;
  21696. },
  21697. invert: function(location) {
  21698. return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];
  21699. },
  21700. invertX: function(x) {
  21701. return (x - this.x) / this.k;
  21702. },
  21703. invertY: function(y) {
  21704. return (y - this.y) / this.k;
  21705. },
  21706. rescaleX: function(x) {
  21707. return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));
  21708. },
  21709. rescaleY: function(y) {
  21710. return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));
  21711. },
  21712. toString: function() {
  21713. return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
  21714. }
  21715. };
  21716. var identity = new Transform(1, 0, 0);
  21717. transform.prototype = Transform.prototype;
  21718. function transform(node) {
  21719. while (!node.__zoom) if (!(node = node.parentNode)) return identity;
  21720. return node.__zoom;
  21721. }
  21722. /***/ }),
  21723. /***/ "./node_modules/d3-zoom/src/zoom.js":
  21724. /*!******************************************!*\
  21725. !*** ./node_modules/d3-zoom/src/zoom.js ***!
  21726. \******************************************/
  21727. /*! exports provided: default */
  21728. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21729. "use strict";
  21730. __webpack_require__.r(__webpack_exports__);
  21731. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  21732. /* harmony import */ var d3_drag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-drag */ "./node_modules/d3-drag/src/index.js");
  21733. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  21734. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  21735. /* harmony import */ var d3_transition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-transition */ "./node_modules/d3-transition/src/index.js");
  21736. /* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-zoom/src/constant.js");
  21737. /* harmony import */ var _event_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./event.js */ "./node_modules/d3-zoom/src/event.js");
  21738. /* harmony import */ var _transform_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./transform.js */ "./node_modules/d3-zoom/src/transform.js");
  21739. /* harmony import */ var _noevent_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./noevent.js */ "./node_modules/d3-zoom/src/noevent.js");
  21740. // Ignore right-click, since that should open the context menu.
  21741. function defaultFilter() {
  21742. return !d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].ctrlKey && !d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].button;
  21743. }
  21744. function defaultExtent() {
  21745. var e = this;
  21746. if (e instanceof SVGElement) {
  21747. e = e.ownerSVGElement || e;
  21748. if (e.hasAttribute("viewBox")) {
  21749. e = e.viewBox.baseVal;
  21750. return [[e.x, e.y], [e.x + e.width, e.y + e.height]];
  21751. }
  21752. return [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]];
  21753. }
  21754. return [[0, 0], [e.clientWidth, e.clientHeight]];
  21755. }
  21756. function defaultTransform() {
  21757. return this.__zoom || _transform_js__WEBPACK_IMPORTED_MODULE_7__["identity"];
  21758. }
  21759. function defaultWheelDelta() {
  21760. return -d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].deltaY * (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].deltaMode === 1 ? 0.05 : d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].deltaMode ? 1 : 0.002);
  21761. }
  21762. function defaultTouchable() {
  21763. return navigator.maxTouchPoints || ("ontouchstart" in this);
  21764. }
  21765. function defaultConstrain(transform, extent, translateExtent) {
  21766. var dx0 = transform.invertX(extent[0][0]) - translateExtent[0][0],
  21767. dx1 = transform.invertX(extent[1][0]) - translateExtent[1][0],
  21768. dy0 = transform.invertY(extent[0][1]) - translateExtent[0][1],
  21769. dy1 = transform.invertY(extent[1][1]) - translateExtent[1][1];
  21770. return transform.translate(
  21771. dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),
  21772. dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)
  21773. );
  21774. }
  21775. /* harmony default export */ __webpack_exports__["default"] = (function() {
  21776. var filter = defaultFilter,
  21777. extent = defaultExtent,
  21778. constrain = defaultConstrain,
  21779. wheelDelta = defaultWheelDelta,
  21780. touchable = defaultTouchable,
  21781. scaleExtent = [0, Infinity],
  21782. translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]],
  21783. duration = 250,
  21784. interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["interpolateZoom"],
  21785. listeners = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("start", "zoom", "end"),
  21786. touchstarting,
  21787. touchending,
  21788. touchDelay = 500,
  21789. wheelDelay = 150,
  21790. clickDistance2 = 0;
  21791. function zoom(selection) {
  21792. selection
  21793. .property("__zoom", defaultTransform)
  21794. .on("wheel.zoom", wheeled)
  21795. .on("mousedown.zoom", mousedowned)
  21796. .on("dblclick.zoom", dblclicked)
  21797. .filter(touchable)
  21798. .on("touchstart.zoom", touchstarted)
  21799. .on("touchmove.zoom", touchmoved)
  21800. .on("touchend.zoom touchcancel.zoom", touchended)
  21801. .style("touch-action", "none")
  21802. .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
  21803. }
  21804. zoom.transform = function(collection, transform, point) {
  21805. var selection = collection.selection ? collection.selection() : collection;
  21806. selection.property("__zoom", defaultTransform);
  21807. if (collection !== selection) {
  21808. schedule(collection, transform, point);
  21809. } else {
  21810. selection.interrupt().each(function() {
  21811. gesture(this, arguments)
  21812. .start()
  21813. .zoom(null, typeof transform === "function" ? transform.apply(this, arguments) : transform)
  21814. .end();
  21815. });
  21816. }
  21817. };
  21818. zoom.scaleBy = function(selection, k, p) {
  21819. zoom.scaleTo(selection, function() {
  21820. var k0 = this.__zoom.k,
  21821. k1 = typeof k === "function" ? k.apply(this, arguments) : k;
  21822. return k0 * k1;
  21823. }, p);
  21824. };
  21825. zoom.scaleTo = function(selection, k, p) {
  21826. zoom.transform(selection, function() {
  21827. var e = extent.apply(this, arguments),
  21828. t0 = this.__zoom,
  21829. p0 = p == null ? centroid(e) : typeof p === "function" ? p.apply(this, arguments) : p,
  21830. p1 = t0.invert(p0),
  21831. k1 = typeof k === "function" ? k.apply(this, arguments) : k;
  21832. return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);
  21833. }, p);
  21834. };
  21835. zoom.translateBy = function(selection, x, y) {
  21836. zoom.transform(selection, function() {
  21837. return constrain(this.__zoom.translate(
  21838. typeof x === "function" ? x.apply(this, arguments) : x,
  21839. typeof y === "function" ? y.apply(this, arguments) : y
  21840. ), extent.apply(this, arguments), translateExtent);
  21841. });
  21842. };
  21843. zoom.translateTo = function(selection, x, y, p) {
  21844. zoom.transform(selection, function() {
  21845. var e = extent.apply(this, arguments),
  21846. t = this.__zoom,
  21847. p0 = p == null ? centroid(e) : typeof p === "function" ? p.apply(this, arguments) : p;
  21848. return constrain(_transform_js__WEBPACK_IMPORTED_MODULE_7__["identity"].translate(p0[0], p0[1]).scale(t.k).translate(
  21849. typeof x === "function" ? -x.apply(this, arguments) : -x,
  21850. typeof y === "function" ? -y.apply(this, arguments) : -y
  21851. ), e, translateExtent);
  21852. }, p);
  21853. };
  21854. function scale(transform, k) {
  21855. k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k));
  21856. return k === transform.k ? transform : new _transform_js__WEBPACK_IMPORTED_MODULE_7__["Transform"](k, transform.x, transform.y);
  21857. }
  21858. function translate(transform, p0, p1) {
  21859. var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k;
  21860. return x === transform.x && y === transform.y ? transform : new _transform_js__WEBPACK_IMPORTED_MODULE_7__["Transform"](transform.k, x, y);
  21861. }
  21862. function centroid(extent) {
  21863. return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2];
  21864. }
  21865. function schedule(transition, transform, point) {
  21866. transition
  21867. .on("start.zoom", function() { gesture(this, arguments).start(); })
  21868. .on("interrupt.zoom end.zoom", function() { gesture(this, arguments).end(); })
  21869. .tween("zoom", function() {
  21870. var that = this,
  21871. args = arguments,
  21872. g = gesture(that, args),
  21873. e = extent.apply(that, args),
  21874. p = point == null ? centroid(e) : typeof point === "function" ? point.apply(that, args) : point,
  21875. w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]),
  21876. a = that.__zoom,
  21877. b = typeof transform === "function" ? transform.apply(that, args) : transform,
  21878. i = interpolate(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k));
  21879. return function(t) {
  21880. if (t === 1) t = b; // Avoid rounding error on end.
  21881. else { var l = i(t), k = w / l[2]; t = new _transform_js__WEBPACK_IMPORTED_MODULE_7__["Transform"](k, p[0] - l[0] * k, p[1] - l[1] * k); }
  21882. g.zoom(null, t);
  21883. };
  21884. });
  21885. }
  21886. function gesture(that, args, clean) {
  21887. return (!clean && that.__zooming) || new Gesture(that, args);
  21888. }
  21889. function Gesture(that, args) {
  21890. this.that = that;
  21891. this.args = args;
  21892. this.active = 0;
  21893. this.extent = extent.apply(that, args);
  21894. this.taps = 0;
  21895. }
  21896. Gesture.prototype = {
  21897. start: function() {
  21898. if (++this.active === 1) {
  21899. this.that.__zooming = this;
  21900. this.emit("start");
  21901. }
  21902. return this;
  21903. },
  21904. zoom: function(key, transform) {
  21905. if (this.mouse && key !== "mouse") this.mouse[1] = transform.invert(this.mouse[0]);
  21906. if (this.touch0 && key !== "touch") this.touch0[1] = transform.invert(this.touch0[0]);
  21907. if (this.touch1 && key !== "touch") this.touch1[1] = transform.invert(this.touch1[0]);
  21908. this.that.__zoom = transform;
  21909. this.emit("zoom");
  21910. return this;
  21911. },
  21912. end: function() {
  21913. if (--this.active === 0) {
  21914. delete this.that.__zooming;
  21915. this.emit("end");
  21916. }
  21917. return this;
  21918. },
  21919. emit: function(type) {
  21920. Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["customEvent"])(new _event_js__WEBPACK_IMPORTED_MODULE_6__["default"](zoom, type, this.that.__zoom), listeners.apply, listeners, [type, this.that, this.args]);
  21921. }
  21922. };
  21923. function wheeled() {
  21924. if (!filter.apply(this, arguments)) return;
  21925. var g = gesture(this, arguments),
  21926. t = this.__zoom,
  21927. k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),
  21928. p = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"])(this);
  21929. // If the mouse is in the same location as before, reuse it.
  21930. // If there were recent wheel events, reset the wheel idle timeout.
  21931. if (g.wheel) {
  21932. if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {
  21933. g.mouse[1] = t.invert(g.mouse[0] = p);
  21934. }
  21935. clearTimeout(g.wheel);
  21936. }
  21937. // If this wheel event won’t trigger a transform change, ignore it.
  21938. else if (t.k === k) return;
  21939. // Otherwise, capture the mouse point and location at the start.
  21940. else {
  21941. g.mouse = [p, t.invert(p)];
  21942. Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(this);
  21943. g.start();
  21944. }
  21945. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_8__["default"])();
  21946. g.wheel = setTimeout(wheelidled, wheelDelay);
  21947. g.zoom("mouse", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent, translateExtent));
  21948. function wheelidled() {
  21949. g.wheel = null;
  21950. g.end();
  21951. }
  21952. }
  21953. function mousedowned() {
  21954. if (touchending || !filter.apply(this, arguments)) return;
  21955. var g = gesture(this, arguments, true),
  21956. 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),
  21957. p = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"])(this),
  21958. x0 = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].clientX,
  21959. y0 = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].clientY;
  21960. Object(d3_drag__WEBPACK_IMPORTED_MODULE_1__["dragDisable"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view);
  21961. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_8__["nopropagation"])();
  21962. g.mouse = [p, this.__zoom.invert(p)];
  21963. Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(this);
  21964. g.start();
  21965. function mousemoved() {
  21966. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_8__["default"])();
  21967. if (!g.moved) {
  21968. var dx = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].clientX - x0, dy = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].clientY - y0;
  21969. g.moved = dx * dx + dy * dy > clickDistance2;
  21970. }
  21971. 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));
  21972. }
  21973. function mouseupped() {
  21974. v.on("mousemove.zoom mouseup.zoom", null);
  21975. Object(d3_drag__WEBPACK_IMPORTED_MODULE_1__["dragEnable"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view, g.moved);
  21976. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_8__["default"])();
  21977. g.end();
  21978. }
  21979. }
  21980. function dblclicked() {
  21981. if (!filter.apply(this, arguments)) return;
  21982. var t0 = this.__zoom,
  21983. p0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"])(this),
  21984. p1 = t0.invert(p0),
  21985. k1 = t0.k * (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].shiftKey ? 0.5 : 2),
  21986. t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, arguments), translateExtent);
  21987. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_8__["default"])();
  21988. if (duration > 0) Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this).transition().duration(duration).call(schedule, t1, p0);
  21989. else Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this).call(zoom.transform, t1);
  21990. }
  21991. function touchstarted() {
  21992. if (!filter.apply(this, arguments)) return;
  21993. var touches = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches,
  21994. n = touches.length,
  21995. g = gesture(this, arguments, d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].changedTouches.length === n),
  21996. started, i, t, p;
  21997. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_8__["nopropagation"])();
  21998. for (i = 0; i < n; ++i) {
  21999. t = touches[i], p = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["touch"])(this, touches, t.identifier);
  22000. p = [p, this.__zoom.invert(p), t.identifier];
  22001. if (!g.touch0) g.touch0 = p, started = true, g.taps = 1 + !!touchstarting;
  22002. else if (!g.touch1 && g.touch0[2] !== p[2]) g.touch1 = p, g.taps = 0;
  22003. }
  22004. if (touchstarting) touchstarting = clearTimeout(touchstarting);
  22005. if (started) {
  22006. if (g.taps < 2) touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);
  22007. Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(this);
  22008. g.start();
  22009. }
  22010. }
  22011. function touchmoved() {
  22012. if (!this.__zooming) return;
  22013. var g = gesture(this, arguments),
  22014. touches = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].changedTouches,
  22015. n = touches.length, i, t, p, l;
  22016. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_8__["default"])();
  22017. if (touchstarting) touchstarting = clearTimeout(touchstarting);
  22018. g.taps = 0;
  22019. for (i = 0; i < n; ++i) {
  22020. t = touches[i], p = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["touch"])(this, touches, t.identifier);
  22021. if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;
  22022. else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;
  22023. }
  22024. t = g.that.__zoom;
  22025. if (g.touch1) {
  22026. var p0 = g.touch0[0], l0 = g.touch0[1],
  22027. p1 = g.touch1[0], l1 = g.touch1[1],
  22028. dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp,
  22029. dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;
  22030. t = scale(t, Math.sqrt(dp / dl));
  22031. p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];
  22032. l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];
  22033. }
  22034. else if (g.touch0) p = g.touch0[0], l = g.touch0[1];
  22035. else return;
  22036. g.zoom("touch", constrain(translate(t, p, l), g.extent, translateExtent));
  22037. }
  22038. function touchended() {
  22039. if (!this.__zooming) return;
  22040. var g = gesture(this, arguments),
  22041. touches = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].changedTouches,
  22042. n = touches.length, i, t;
  22043. Object(_noevent_js__WEBPACK_IMPORTED_MODULE_8__["nopropagation"])();
  22044. if (touchending) clearTimeout(touchending);
  22045. touchending = setTimeout(function() { touchending = null; }, touchDelay);
  22046. for (i = 0; i < n; ++i) {
  22047. t = touches[i];
  22048. if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;
  22049. else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;
  22050. }
  22051. if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;
  22052. if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);
  22053. else {
  22054. g.end();
  22055. // If this was a dbltap, reroute to the (optional) dblclick.zoom handler.
  22056. if (g.taps === 2) {
  22057. var p = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this).on("dblclick.zoom");
  22058. if (p) p.apply(this, arguments);
  22059. }
  22060. }
  22061. }
  22062. zoom.wheelDelta = function(_) {
  22063. return arguments.length ? (wheelDelta = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_5__["default"])(+_), zoom) : wheelDelta;
  22064. };
  22065. zoom.filter = function(_) {
  22066. return arguments.length ? (filter = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_5__["default"])(!!_), zoom) : filter;
  22067. };
  22068. zoom.touchable = function(_) {
  22069. return arguments.length ? (touchable = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_5__["default"])(!!_), zoom) : touchable;
  22070. };
  22071. zoom.extent = function(_) {
  22072. return arguments.length ? (extent = typeof _ === "function" ? _ : Object(_constant_js__WEBPACK_IMPORTED_MODULE_5__["default"])([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;
  22073. };
  22074. zoom.scaleExtent = function(_) {
  22075. return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];
  22076. };
  22077. zoom.translateExtent = function(_) {
  22078. 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]]];
  22079. };
  22080. zoom.constrain = function(_) {
  22081. return arguments.length ? (constrain = _, zoom) : constrain;
  22082. };
  22083. zoom.duration = function(_) {
  22084. return arguments.length ? (duration = +_, zoom) : duration;
  22085. };
  22086. zoom.interpolate = function(_) {
  22087. return arguments.length ? (interpolate = _, zoom) : interpolate;
  22088. };
  22089. zoom.on = function() {
  22090. var value = listeners.on.apply(listeners, arguments);
  22091. return value === listeners ? zoom : value;
  22092. };
  22093. zoom.clickDistance = function(_) {
  22094. return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);
  22095. };
  22096. return zoom;
  22097. });
  22098. /***/ }),
  22099. /***/ "./node_modules/d3/dist/package.js":
  22100. /*!*****************************************!*\
  22101. !*** ./node_modules/d3/dist/package.js ***!
  22102. \*****************************************/
  22103. /*! exports provided: name, version, description, keywords, homepage, license, author, main, unpkg, jsdelivr, module, repository, files, scripts, devDependencies, dependencies */
  22104. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22105. "use strict";
  22106. __webpack_require__.r(__webpack_exports__);
  22107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; });
  22108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; });
  22109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "description", function() { return description; });
  22110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keywords", function() { return keywords; });
  22111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "homepage", function() { return homepage; });
  22112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "license", function() { return license; });
  22113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "author", function() { return author; });
  22114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "main", function() { return main; });
  22115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unpkg", function() { return unpkg; });
  22116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jsdelivr", function() { return jsdelivr; });
  22117. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "module", function() { return module; });
  22118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "repository", function() { return repository; });
  22119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "files", function() { return files; });
  22120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scripts", function() { return scripts; });
  22121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "devDependencies", function() { return devDependencies; });
  22122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dependencies", function() { return dependencies; });
  22123. var name = "d3";
  22124. var version = "5.15.0";
  22125. var description = "Data-Driven Documents";
  22126. var keywords = ["dom","visualization","svg","animation","canvas"];
  22127. var homepage = "https://d3js.org";
  22128. var license = "BSD-3-Clause";
  22129. var author = {"name":"Mike Bostock","url":"https://bost.ocks.org/mike"};
  22130. var main = "dist/d3.node.js";
  22131. var unpkg = "dist/d3.min.js";
  22132. var jsdelivr = "dist/d3.min.js";
  22133. var module = "index.js";
  22134. var repository = {"type":"git","url":"https://github.com/d3/d3.git"};
  22135. var files = ["dist/**/*.js","index.js"];
  22136. var scripts = {"pretest":"rimraf dist && mkdir dist && json2module package.json > dist/package.js && rollup -c","test":"tape 'test/**/*-test.js'","prepublishOnly":"yarn test","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"};
  22137. var devDependencies = {"json2module":"0.0","rimraf":"2","rollup":"1","rollup-plugin-ascii":"0.0","rollup-plugin-node-resolve":"3","rollup-plugin-terser":"5","tape":"4"};
  22138. 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"};
  22139. /***/ }),
  22140. /***/ "./node_modules/d3/index.js":
  22141. /*!**********************************!*\
  22142. !*** ./node_modules/d3/index.js ***!
  22143. \**********************************/
  22144. /*! 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, csvFormatBody, csvFormatRows, csvFormatRow, csvFormatValue, tsvParse, tsvParseRows, tsvFormat, tsvFormatBody, tsvFormatRows, tsvFormatRow, tsvFormatValue, autoType, 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, 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, interpolateNumberArray, 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, scaleSymlog, scaleOrdinal, scaleImplicit, scalePow, scaleSqrt, scaleQuantile, scaleQuantize, scaleThreshold, scaleTime, scaleUtc, scaleSequential, scaleSequentialLog, scaleSequentialPow, scaleSequentialSqrt, scaleSequentialSymlog, scaleSequentialQuantile, scaleDiverging, scaleDivergingLog, scaleDivergingPow, scaleDivergingSqrt, scaleDivergingSymlog, tickFormat, schemeCategory10, schemeAccent, schemeDark2, schemePaired, schemePastel1, schemePastel2, schemeSet1, schemeSet2, schemeSet3, schemeTableau10, 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, interpolateCividis, interpolateCubehelixDefault, interpolateRainbow, interpolateWarm, interpolateCool, interpolateSinebow, interpolateTurbo, 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, stackOrderAppearance, 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 */
  22145. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22146. "use strict";
  22147. __webpack_require__.r(__webpack_exports__);
  22148. /* harmony import */ var _dist_package_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dist/package.js */ "./node_modules/d3/dist/package.js");
  22149. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _dist_package_js__WEBPACK_IMPORTED_MODULE_0__["version"]; });
  22150. /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
  22151. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisect", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["bisect"]; });
  22152. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["bisectRight"]; });
  22153. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["bisectLeft"]; });
  22154. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ascending", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["ascending"]; });
  22155. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisector", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["bisector"]; });
  22156. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cross", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["cross"]; });
  22157. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "descending", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["descending"]; });
  22158. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deviation", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["deviation"]; });
  22159. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extent", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["extent"]; });
  22160. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "histogram", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["histogram"]; });
  22161. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdFreedmanDiaconis", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["thresholdFreedmanDiaconis"]; });
  22162. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdScott", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["thresholdScott"]; });
  22163. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdSturges", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["thresholdSturges"]; });
  22164. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "max", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["max"]; });
  22165. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mean", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["mean"]; });
  22166. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "median", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["median"]; });
  22167. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["merge"]; });
  22168. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "min", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["min"]; });
  22169. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["pairs"]; });
  22170. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "permute", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["permute"]; });
  22171. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantile", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["quantile"]; });
  22172. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "range", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["range"]; });
  22173. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["scan"]; });
  22174. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shuffle", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["shuffle"]; });
  22175. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["sum"]; });
  22176. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ticks", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["ticks"]; });
  22177. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["tickIncrement"]; });
  22178. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["tickStep"]; });
  22179. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transpose", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["transpose"]; });
  22180. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "variance", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["variance"]; });
  22181. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return d3_array__WEBPACK_IMPORTED_MODULE_1__["zip"]; });
  22182. /* harmony import */ var d3_axis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-axis */ "./node_modules/d3-axis/src/index.js");
  22183. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisTop", function() { return d3_axis__WEBPACK_IMPORTED_MODULE_2__["axisTop"]; });
  22184. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisRight", function() { return d3_axis__WEBPACK_IMPORTED_MODULE_2__["axisRight"]; });
  22185. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisBottom", function() { return d3_axis__WEBPACK_IMPORTED_MODULE_2__["axisBottom"]; });
  22186. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "axisLeft", function() { return d3_axis__WEBPACK_IMPORTED_MODULE_2__["axisLeft"]; });
  22187. /* harmony import */ var d3_brush__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-brush */ "./node_modules/d3-brush/src/index.js");
  22188. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brush", function() { return d3_brush__WEBPACK_IMPORTED_MODULE_3__["brush"]; });
  22189. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushX", function() { return d3_brush__WEBPACK_IMPORTED_MODULE_3__["brushX"]; });
  22190. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushY", function() { return d3_brush__WEBPACK_IMPORTED_MODULE_3__["brushY"]; });
  22191. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushSelection", function() { return d3_brush__WEBPACK_IMPORTED_MODULE_3__["brushSelection"]; });
  22192. /* harmony import */ var d3_chord__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-chord */ "./node_modules/d3-chord/src/index.js");
  22193. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "chord", function() { return d3_chord__WEBPACK_IMPORTED_MODULE_4__["chord"]; });
  22194. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ribbon", function() { return d3_chord__WEBPACK_IMPORTED_MODULE_4__["ribbon"]; });
  22195. /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/src/index.js");
  22196. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "nest", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["nest"]; });
  22197. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "set", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["set"]; });
  22198. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "map", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["map"]; });
  22199. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "keys", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["keys"]; });
  22200. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "values", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["values"]; });
  22201. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "entries", function() { return d3_collection__WEBPACK_IMPORTED_MODULE_5__["entries"]; });
  22202. /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js");
  22203. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "color", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["color"]; });
  22204. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgb", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["rgb"]; });
  22205. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsl", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["hsl"]; });
  22206. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lab", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["lab"]; });
  22207. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hcl", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["hcl"]; });
  22208. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lch", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["lch"]; });
  22209. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "gray", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["gray"]; });
  22210. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cubehelix", function() { return d3_color__WEBPACK_IMPORTED_MODULE_6__["cubehelix"]; });
  22211. /* harmony import */ var d3_contour__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! d3-contour */ "./node_modules/d3-contour/src/index.js");
  22212. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "contours", function() { return d3_contour__WEBPACK_IMPORTED_MODULE_7__["contours"]; });
  22213. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "contourDensity", function() { return d3_contour__WEBPACK_IMPORTED_MODULE_7__["contourDensity"]; });
  22214. /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/src/index.js");
  22215. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return d3_dispatch__WEBPACK_IMPORTED_MODULE_8__["dispatch"]; });
  22216. /* harmony import */ var d3_drag__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! d3-drag */ "./node_modules/d3-drag/src/index.js");
  22217. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "drag", function() { return d3_drag__WEBPACK_IMPORTED_MODULE_9__["drag"]; });
  22218. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dragDisable", function() { return d3_drag__WEBPACK_IMPORTED_MODULE_9__["dragDisable"]; });
  22219. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dragEnable", function() { return d3_drag__WEBPACK_IMPORTED_MODULE_9__["dragEnable"]; });
  22220. /* harmony import */ var d3_dsv__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! d3-dsv */ "./node_modules/d3-dsv/src/index.js");
  22221. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dsvFormat", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["dsvFormat"]; });
  22222. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvParse", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["csvParse"]; });
  22223. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvParseRows", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["csvParseRows"]; });
  22224. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormat", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["csvFormat"]; });
  22225. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormatBody", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["csvFormatBody"]; });
  22226. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormatRows", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["csvFormatRows"]; });
  22227. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormatRow", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["csvFormatRow"]; });
  22228. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csvFormatValue", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["csvFormatValue"]; });
  22229. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvParse", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["tsvParse"]; });
  22230. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvParseRows", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["tsvParseRows"]; });
  22231. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormat", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["tsvFormat"]; });
  22232. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormatBody", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["tsvFormatBody"]; });
  22233. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormatRows", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["tsvFormatRows"]; });
  22234. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormatRow", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["tsvFormatRow"]; });
  22235. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsvFormatValue", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["tsvFormatValue"]; });
  22236. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "autoType", function() { return d3_dsv__WEBPACK_IMPORTED_MODULE_10__["autoType"]; });
  22237. /* harmony import */ var d3_ease__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! d3-ease */ "./node_modules/d3-ease/src/index.js");
  22238. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeLinear", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeLinear"]; });
  22239. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuad", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeQuad"]; });
  22240. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeQuadIn"]; });
  22241. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeQuadOut"]; });
  22242. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeQuadInOut"]; });
  22243. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubic", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCubic"]; });
  22244. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCubicIn"]; });
  22245. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCubicOut"]; });
  22246. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCubicInOut"]; });
  22247. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePoly", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easePoly"]; });
  22248. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easePolyIn"]; });
  22249. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easePolyOut"]; });
  22250. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easePolyInOut"]; });
  22251. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSin", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeSin"]; });
  22252. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeSinIn"]; });
  22253. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeSinOut"]; });
  22254. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeSinInOut"]; });
  22255. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExp", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeExp"]; });
  22256. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeExpIn"]; });
  22257. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeExpOut"]; });
  22258. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeExpInOut"]; });
  22259. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircle", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCircle"]; });
  22260. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCircleIn"]; });
  22261. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCircleOut"]; });
  22262. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeCircleInOut"]; });
  22263. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounce", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBounce"]; });
  22264. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBounceIn"]; });
  22265. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBounceOut"]; });
  22266. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBounceInOut"]; });
  22267. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBack", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBack"]; });
  22268. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBackIn"]; });
  22269. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBackOut"]; });
  22270. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeBackInOut"]; });
  22271. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElastic", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeElastic"]; });
  22272. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticIn", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeElasticIn"]; });
  22273. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeElasticOut"]; });
  22274. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticInOut", function() { return d3_ease__WEBPACK_IMPORTED_MODULE_11__["easeElasticInOut"]; });
  22275. /* harmony import */ var d3_fetch__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! d3-fetch */ "./node_modules/d3-fetch/src/index.js");
  22276. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "blob", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["blob"]; });
  22277. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["buffer"]; });
  22278. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dsv", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["dsv"]; });
  22279. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "csv", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["csv"]; });
  22280. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tsv", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["tsv"]; });
  22281. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "image", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["image"]; });
  22282. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "json", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["json"]; });
  22283. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "text", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["text"]; });
  22284. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "xml", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["xml"]; });
  22285. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "html", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["html"]; });
  22286. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svg", function() { return d3_fetch__WEBPACK_IMPORTED_MODULE_12__["svg"]; });
  22287. /* harmony import */ var d3_force__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! d3-force */ "./node_modules/d3-force/src/index.js");
  22288. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceCenter", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceCenter"]; });
  22289. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceCollide", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceCollide"]; });
  22290. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceLink", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceLink"]; });
  22291. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceManyBody", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceManyBody"]; });
  22292. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceRadial", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceRadial"]; });
  22293. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceSimulation", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceSimulation"]; });
  22294. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceX", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceX"]; });
  22295. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceY", function() { return d3_force__WEBPACK_IMPORTED_MODULE_13__["forceY"]; });
  22296. /* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/index.js");
  22297. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatDefaultLocale", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["formatDefaultLocale"]; });
  22298. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "format", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["format"]; });
  22299. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatPrefix", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["formatPrefix"]; });
  22300. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatLocale", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["formatLocale"]; });
  22301. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatSpecifier", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["formatSpecifier"]; });
  22302. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormatSpecifier", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["FormatSpecifier"]; });
  22303. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionFixed", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["precisionFixed"]; });
  22304. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionPrefix", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["precisionPrefix"]; });
  22305. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionRound", function() { return d3_format__WEBPACK_IMPORTED_MODULE_14__["precisionRound"]; });
  22306. /* harmony import */ var d3_geo__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! d3-geo */ "./node_modules/d3-geo/src/index.js");
  22307. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoArea", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoArea"]; });
  22308. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoBounds", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoBounds"]; });
  22309. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoCentroid", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoCentroid"]; });
  22310. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoCircle", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoCircle"]; });
  22311. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipAntimeridian", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoClipAntimeridian"]; });
  22312. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipCircle", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoClipCircle"]; });
  22313. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipExtent", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoClipExtent"]; });
  22314. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoClipRectangle", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoClipRectangle"]; });
  22315. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoContains", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoContains"]; });
  22316. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoDistance", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoDistance"]; });
  22317. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGraticule", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoGraticule"]; });
  22318. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGraticule10", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoGraticule10"]; });
  22319. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoInterpolate", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoInterpolate"]; });
  22320. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoLength", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoLength"]; });
  22321. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoPath", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoPath"]; });
  22322. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAlbers", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAlbers"]; });
  22323. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAlbersUsa", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAlbersUsa"]; });
  22324. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEqualArea", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAzimuthalEqualArea"]; });
  22325. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEqualAreaRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAzimuthalEqualAreaRaw"]; });
  22326. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEquidistant", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAzimuthalEquidistant"]; });
  22327. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoAzimuthalEquidistantRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoAzimuthalEquidistantRaw"]; });
  22328. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicConformal", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicConformal"]; });
  22329. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicConformalRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicConformalRaw"]; });
  22330. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEqualArea", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicEqualArea"]; });
  22331. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEqualAreaRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicEqualAreaRaw"]; });
  22332. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEquidistant", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicEquidistant"]; });
  22333. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoConicEquidistantRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoConicEquidistantRaw"]; });
  22334. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEqualEarth", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoEqualEarth"]; });
  22335. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEqualEarthRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoEqualEarthRaw"]; });
  22336. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEquirectangular", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoEquirectangular"]; });
  22337. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoEquirectangularRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoEquirectangularRaw"]; });
  22338. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGnomonic", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoGnomonic"]; });
  22339. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoGnomonicRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoGnomonicRaw"]; });
  22340. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoIdentity", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoIdentity"]; });
  22341. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoProjection", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoProjection"]; });
  22342. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoProjectionMutator", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoProjectionMutator"]; });
  22343. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoMercator", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoMercator"]; });
  22344. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoMercatorRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoMercatorRaw"]; });
  22345. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoNaturalEarth1", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoNaturalEarth1"]; });
  22346. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoNaturalEarth1Raw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoNaturalEarth1Raw"]; });
  22347. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoOrthographic", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoOrthographic"]; });
  22348. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoOrthographicRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoOrthographicRaw"]; });
  22349. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStereographic", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoStereographic"]; });
  22350. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStereographicRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoStereographicRaw"]; });
  22351. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransverseMercator", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoTransverseMercator"]; });
  22352. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransverseMercatorRaw", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoTransverseMercatorRaw"]; });
  22353. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoRotation", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoRotation"]; });
  22354. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoStream", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoStream"]; });
  22355. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geoTransform", function() { return d3_geo__WEBPACK_IMPORTED_MODULE_15__["geoTransform"]; });
  22356. /* harmony import */ var d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! d3-hierarchy */ "./node_modules/d3-hierarchy/src/index.js");
  22357. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cluster", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["cluster"]; });
  22358. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hierarchy", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["hierarchy"]; });
  22359. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pack", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["pack"]; });
  22360. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "packSiblings", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["packSiblings"]; });
  22361. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "packEnclose", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["packEnclose"]; });
  22362. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["partition"]; });
  22363. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stratify", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["stratify"]; });
  22364. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tree", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["tree"]; });
  22365. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemap", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemap"]; });
  22366. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapBinary", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapBinary"]; });
  22367. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapDice", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapDice"]; });
  22368. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSlice", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapSlice"]; });
  22369. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSliceDice", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapSliceDice"]; });
  22370. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSquarify", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapSquarify"]; });
  22371. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapResquarify", function() { return d3_hierarchy__WEBPACK_IMPORTED_MODULE_16__["treemapResquarify"]; });
  22372. /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js");
  22373. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolate", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolate"]; });
  22374. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateArray", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateArray"]; });
  22375. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasis", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateBasis"]; });
  22376. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasisClosed", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateBasisClosed"]; });
  22377. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDate", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateDate"]; });
  22378. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDiscrete", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateDiscrete"]; });
  22379. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHue", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateHue"]; });
  22380. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateNumber", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateNumber"]; });
  22381. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateNumberArray", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateNumberArray"]; });
  22382. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateObject", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateObject"]; });
  22383. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRound", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateRound"]; });
  22384. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateString", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateString"]; });
  22385. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformCss", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateTransformCss"]; });
  22386. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformSvg", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateTransformSvg"]; });
  22387. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateZoom", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateZoom"]; });
  22388. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgb", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateRgb"]; });
  22389. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasis", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateRgbBasis"]; });
  22390. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasisClosed", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateRgbBasisClosed"]; });
  22391. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHsl", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateHsl"]; });
  22392. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHslLong", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateHslLong"]; });
  22393. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateLab", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateLab"]; });
  22394. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHcl", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateHcl"]; });
  22395. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHclLong", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateHclLong"]; });
  22396. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelix", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateCubehelix"]; });
  22397. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixLong", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["interpolateCubehelixLong"]; });
  22398. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "piecewise", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["piecewise"]; });
  22399. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantize", function() { return d3_interpolate__WEBPACK_IMPORTED_MODULE_17__["quantize"]; });
  22400. /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/index.js");
  22401. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "path", function() { return d3_path__WEBPACK_IMPORTED_MODULE_18__["path"]; });
  22402. /* harmony import */ var d3_polygon__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! d3-polygon */ "./node_modules/d3-polygon/src/index.js");
  22403. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonArea", function() { return d3_polygon__WEBPACK_IMPORTED_MODULE_19__["polygonArea"]; });
  22404. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonCentroid", function() { return d3_polygon__WEBPACK_IMPORTED_MODULE_19__["polygonCentroid"]; });
  22405. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonHull", function() { return d3_polygon__WEBPACK_IMPORTED_MODULE_19__["polygonHull"]; });
  22406. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonContains", function() { return d3_polygon__WEBPACK_IMPORTED_MODULE_19__["polygonContains"]; });
  22407. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "polygonLength", function() { return d3_polygon__WEBPACK_IMPORTED_MODULE_19__["polygonLength"]; });
  22408. /* harmony import */ var d3_quadtree__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! d3-quadtree */ "./node_modules/d3-quadtree/src/index.js");
  22409. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quadtree", function() { return d3_quadtree__WEBPACK_IMPORTED_MODULE_20__["quadtree"]; });
  22410. /* harmony import */ var d3_random__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! d3-random */ "./node_modules/d3-random/src/index.js");
  22411. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomUniform", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomUniform"]; });
  22412. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomNormal", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomNormal"]; });
  22413. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomLogNormal", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomLogNormal"]; });
  22414. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomBates", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomBates"]; });
  22415. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomIrwinHall", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomIrwinHall"]; });
  22416. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "randomExponential", function() { return d3_random__WEBPACK_IMPORTED_MODULE_21__["randomExponential"]; });
  22417. /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/src/index.js");
  22418. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleBand", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleBand"]; });
  22419. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePoint", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scalePoint"]; });
  22420. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleIdentity", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleIdentity"]; });
  22421. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLinear", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleLinear"]; });
  22422. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLog", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleLog"]; });
  22423. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSymlog", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleSymlog"]; });
  22424. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleOrdinal", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleOrdinal"]; });
  22425. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleImplicit", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleImplicit"]; });
  22426. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePow", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scalePow"]; });
  22427. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSqrt", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleSqrt"]; });
  22428. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantile", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleQuantile"]; });
  22429. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantize", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleQuantize"]; });
  22430. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleThreshold", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleThreshold"]; });
  22431. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleTime", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleTime"]; });
  22432. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleUtc", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleUtc"]; });
  22433. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequential", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleSequential"]; });
  22434. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequentialLog", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleSequentialLog"]; });
  22435. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequentialPow", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleSequentialPow"]; });
  22436. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequentialSqrt", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleSequentialSqrt"]; });
  22437. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequentialSymlog", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleSequentialSymlog"]; });
  22438. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequentialQuantile", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleSequentialQuantile"]; });
  22439. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDiverging", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleDiverging"]; });
  22440. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDivergingLog", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleDivergingLog"]; });
  22441. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDivergingPow", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleDivergingPow"]; });
  22442. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDivergingSqrt", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleDivergingSqrt"]; });
  22443. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleDivergingSymlog", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["scaleDivergingSymlog"]; });
  22444. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickFormat", function() { return d3_scale__WEBPACK_IMPORTED_MODULE_22__["tickFormat"]; });
  22445. /* harmony import */ var d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! d3-scale-chromatic */ "./node_modules/d3-scale-chromatic/src/index.js");
  22446. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory10", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeCategory10"]; });
  22447. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeAccent", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeAccent"]; });
  22448. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeDark2", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeDark2"]; });
  22449. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePaired", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePaired"]; });
  22450. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePastel1", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePastel1"]; });
  22451. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePastel2", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePastel2"]; });
  22452. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet1", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeSet1"]; });
  22453. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet2", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeSet2"]; });
  22454. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSet3", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeSet3"]; });
  22455. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeTableau10", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeTableau10"]; });
  22456. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBrBG", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateBrBG"]; });
  22457. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBrBG", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeBrBG"]; });
  22458. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePRGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePRGn"]; });
  22459. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePRGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePRGn"]; });
  22460. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePiYG", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePiYG"]; });
  22461. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePiYG", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePiYG"]; });
  22462. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuOr", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePuOr"]; });
  22463. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuOr", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePuOr"]; });
  22464. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRdBu"]; });
  22465. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeRdBu"]; });
  22466. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdGy", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRdGy"]; });
  22467. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdGy", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeRdGy"]; });
  22468. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdYlBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRdYlBu"]; });
  22469. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdYlBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeRdYlBu"]; });
  22470. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdYlGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRdYlGn"]; });
  22471. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdYlGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeRdYlGn"]; });
  22472. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateSpectral", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateSpectral"]; });
  22473. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeSpectral", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeSpectral"]; });
  22474. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBuGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateBuGn"]; });
  22475. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBuGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeBuGn"]; });
  22476. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBuPu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateBuPu"]; });
  22477. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBuPu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeBuPu"]; });
  22478. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGnBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateGnBu"]; });
  22479. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGnBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeGnBu"]; });
  22480. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateOrRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateOrRd"]; });
  22481. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeOrRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeOrRd"]; });
  22482. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuBuGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePuBuGn"]; });
  22483. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuBuGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePuBuGn"]; });
  22484. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePuBu"]; });
  22485. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePuBu"]; });
  22486. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePuRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePuRd"]; });
  22487. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePuRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePuRd"]; });
  22488. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRdPu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRdPu"]; });
  22489. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeRdPu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeRdPu"]; });
  22490. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlGnBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateYlGnBu"]; });
  22491. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlGnBu", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeYlGnBu"]; });
  22492. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateYlGn"]; });
  22493. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlGn", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeYlGn"]; });
  22494. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlOrBr", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateYlOrBr"]; });
  22495. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlOrBr", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeYlOrBr"]; });
  22496. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateYlOrRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateYlOrRd"]; });
  22497. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeYlOrRd", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeYlOrRd"]; });
  22498. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBlues", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateBlues"]; });
  22499. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeBlues", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeBlues"]; });
  22500. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGreens", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateGreens"]; });
  22501. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGreens", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeGreens"]; });
  22502. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateGreys", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateGreys"]; });
  22503. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeGreys", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeGreys"]; });
  22504. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePurples", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePurples"]; });
  22505. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemePurples", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemePurples"]; });
  22506. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateReds", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateReds"]; });
  22507. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeReds", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeReds"]; });
  22508. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateOranges", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateOranges"]; });
  22509. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeOranges", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["schemeOranges"]; });
  22510. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCividis", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateCividis"]; });
  22511. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixDefault", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateCubehelixDefault"]; });
  22512. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRainbow", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateRainbow"]; });
  22513. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateWarm", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateWarm"]; });
  22514. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCool", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateCool"]; });
  22515. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateSinebow", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateSinebow"]; });
  22516. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTurbo", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateTurbo"]; });
  22517. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateViridis", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateViridis"]; });
  22518. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateMagma", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateMagma"]; });
  22519. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateInferno", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolateInferno"]; });
  22520. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePlasma", function() { return d3_scale_chromatic__WEBPACK_IMPORTED_MODULE_23__["interpolatePlasma"]; });
  22521. /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js");
  22522. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "create", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["create"]; });
  22523. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "creator", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["creator"]; });
  22524. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "local", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["local"]; });
  22525. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "matcher", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["matcher"]; });
  22526. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mouse", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["mouse"]; });
  22527. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "namespace", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["namespace"]; });
  22528. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "namespaces", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["namespaces"]; });
  22529. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clientPoint", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["clientPoint"]; });
  22530. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["select"]; });
  22531. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectAll", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["selectAll"]; });
  22532. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selection", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["selection"]; });
  22533. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selector", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["selector"]; });
  22534. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectorAll", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["selectorAll"]; });
  22535. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "style", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["style"]; });
  22536. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "touch", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["touch"]; });
  22537. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "touches", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["touches"]; });
  22538. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "window", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["window"]; });
  22539. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "event", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["event"]; });
  22540. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "customEvent", function() { return d3_selection__WEBPACK_IMPORTED_MODULE_24__["customEvent"]; });
  22541. /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js");
  22542. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "arc", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["arc"]; });
  22543. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "area", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["area"]; });
  22544. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "line", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["line"]; });
  22545. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pie", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["pie"]; });
  22546. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "areaRadial", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["areaRadial"]; });
  22547. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialArea", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["radialArea"]; });
  22548. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lineRadial", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["lineRadial"]; });
  22549. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialLine", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["radialLine"]; });
  22550. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pointRadial", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["pointRadial"]; });
  22551. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkHorizontal", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["linkHorizontal"]; });
  22552. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkVertical", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["linkVertical"]; });
  22553. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkRadial", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["linkRadial"]; });
  22554. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbol", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbol"]; });
  22555. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbols", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbols"]; });
  22556. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCircle", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolCircle"]; });
  22557. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCross", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolCross"]; });
  22558. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolDiamond", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolDiamond"]; });
  22559. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolSquare", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolSquare"]; });
  22560. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolStar", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolStar"]; });
  22561. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolTriangle", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolTriangle"]; });
  22562. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolWye", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["symbolWye"]; });
  22563. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisClosed", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveBasisClosed"]; });
  22564. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisOpen", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveBasisOpen"]; });
  22565. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasis", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveBasis"]; });
  22566. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBundle", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveBundle"]; });
  22567. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalClosed", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCardinalClosed"]; });
  22568. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalOpen", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCardinalOpen"]; });
  22569. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinal", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCardinal"]; });
  22570. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomClosed", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCatmullRomClosed"]; });
  22571. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomOpen", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCatmullRomOpen"]; });
  22572. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRom", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveCatmullRom"]; });
  22573. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinearClosed", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveLinearClosed"]; });
  22574. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinear", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveLinear"]; });
  22575. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneX", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveMonotoneX"]; });
  22576. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneY", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveMonotoneY"]; });
  22577. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveNatural", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveNatural"]; });
  22578. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStep", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveStep"]; });
  22579. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepAfter", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveStepAfter"]; });
  22580. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepBefore", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["curveStepBefore"]; });
  22581. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stack", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stack"]; });
  22582. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetExpand", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOffsetExpand"]; });
  22583. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetDiverging", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOffsetDiverging"]; });
  22584. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetNone", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOffsetNone"]; });
  22585. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetSilhouette", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOffsetSilhouette"]; });
  22586. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetWiggle", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOffsetWiggle"]; });
  22587. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderAppearance", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOrderAppearance"]; });
  22588. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderAscending", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOrderAscending"]; });
  22589. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderDescending", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOrderDescending"]; });
  22590. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderInsideOut", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOrderInsideOut"]; });
  22591. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderNone", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOrderNone"]; });
  22592. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderReverse", function() { return d3_shape__WEBPACK_IMPORTED_MODULE_25__["stackOrderReverse"]; });
  22593. /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/index.js");
  22594. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeInterval"]; });
  22595. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMillisecond", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMillisecond"]; });
  22596. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMilliseconds", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMilliseconds"]; });
  22597. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMillisecond", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMillisecond"]; });
  22598. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMilliseconds", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMilliseconds"]; });
  22599. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSecond", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSecond"]; });
  22600. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSeconds", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSeconds"]; });
  22601. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSecond", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSecond"]; });
  22602. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSeconds", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSeconds"]; });
  22603. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinute", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMinute"]; });
  22604. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinutes", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMinutes"]; });
  22605. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHour", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeHour"]; });
  22606. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHours", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeHours"]; });
  22607. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDay", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeDay"]; });
  22608. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeDays"]; });
  22609. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeek", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeWeek"]; });
  22610. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeeks", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeWeeks"]; });
  22611. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSunday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSunday"]; });
  22612. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSundays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSundays"]; });
  22613. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMonday"]; });
  22614. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMondays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMondays"]; });
  22615. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeTuesday"]; });
  22616. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeTuesdays"]; });
  22617. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeWednesday"]; });
  22618. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeWednesdays"]; });
  22619. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeThursday"]; });
  22620. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeThursdays"]; });
  22621. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFriday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeFriday"]; });
  22622. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFridays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeFridays"]; });
  22623. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSaturday"]; });
  22624. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeSaturdays"]; });
  22625. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonth", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMonth"]; });
  22626. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonths", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeMonths"]; });
  22627. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYear", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeYear"]; });
  22628. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYears", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["timeYears"]; });
  22629. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinute", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMinute"]; });
  22630. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMinutes"]; });
  22631. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHour", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcHour"]; });
  22632. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcHours"]; });
  22633. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDay", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcDay"]; });
  22634. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcDays"]; });
  22635. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeek", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcWeek"]; });
  22636. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeeks", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcWeeks"]; });
  22637. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSunday"]; });
  22638. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSundays"]; });
  22639. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMonday"]; });
  22640. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMondays"]; });
  22641. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcTuesday"]; });
  22642. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcTuesdays"]; });
  22643. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcWednesday"]; });
  22644. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcWednesdays"]; });
  22645. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcThursday"]; });
  22646. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcThursdays"]; });
  22647. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcFriday"]; });
  22648. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcFridays"]; });
  22649. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSaturday"]; });
  22650. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcSaturdays"]; });
  22651. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonth", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMonth"]; });
  22652. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcMonths"]; });
  22653. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYear", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcYear"]; });
  22654. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return d3_time__WEBPACK_IMPORTED_MODULE_26__["utcYears"]; });
  22655. /* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! d3-time-format */ "./node_modules/d3-time-format/src/index.js");
  22656. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatDefaultLocale", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["timeFormatDefaultLocale"]; });
  22657. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormat", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["timeFormat"]; });
  22658. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeParse", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["timeParse"]; });
  22659. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFormat", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["utcFormat"]; });
  22660. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcParse", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["utcParse"]; });
  22661. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatLocale", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["timeFormatLocale"]; });
  22662. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoFormat", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["isoFormat"]; });
  22663. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoParse", function() { return d3_time_format__WEBPACK_IMPORTED_MODULE_27__["isoParse"]; });
  22664. /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/src/index.js");
  22665. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "now", function() { return d3_timer__WEBPACK_IMPORTED_MODULE_28__["now"]; });
  22666. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return d3_timer__WEBPACK_IMPORTED_MODULE_28__["timer"]; });
  22667. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timerFlush", function() { return d3_timer__WEBPACK_IMPORTED_MODULE_28__["timerFlush"]; });
  22668. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeout", function() { return d3_timer__WEBPACK_IMPORTED_MODULE_28__["timeout"]; });
  22669. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interval", function() { return d3_timer__WEBPACK_IMPORTED_MODULE_28__["interval"]; });
  22670. /* harmony import */ var d3_transition__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! d3-transition */ "./node_modules/d3-transition/src/index.js");
  22671. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transition", function() { return d3_transition__WEBPACK_IMPORTED_MODULE_29__["transition"]; });
  22672. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "active", function() { return d3_transition__WEBPACK_IMPORTED_MODULE_29__["active"]; });
  22673. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interrupt", function() { return d3_transition__WEBPACK_IMPORTED_MODULE_29__["interrupt"]; });
  22674. /* harmony import */ var d3_voronoi__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! d3-voronoi */ "./node_modules/d3-voronoi/src/index.js");
  22675. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "voronoi", function() { return d3_voronoi__WEBPACK_IMPORTED_MODULE_30__["voronoi"]; });
  22676. /* harmony import */ var d3_zoom__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! d3-zoom */ "./node_modules/d3-zoom/src/index.js");
  22677. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoom", function() { return d3_zoom__WEBPACK_IMPORTED_MODULE_31__["zoom"]; });
  22678. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoomTransform", function() { return d3_zoom__WEBPACK_IMPORTED_MODULE_31__["zoomTransform"]; });
  22679. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zoomIdentity", function() { return d3_zoom__WEBPACK_IMPORTED_MODULE_31__["zoomIdentity"]; });
  22680. /***/ }),
  22681. /***/ "./node_modules/dagre-d3/index.js":
  22682. /*!****************************************!*\
  22683. !*** ./node_modules/dagre-d3/index.js ***!
  22684. \****************************************/
  22685. /*! no static exports found */
  22686. /***/ (function(module, exports, __webpack_require__) {
  22687. /**
  22688. * @license
  22689. * Copyright (c) 2012-2013 Chris Pettitt
  22690. *
  22691. * Permission is hereby granted, free of charge, to any person obtaining a copy
  22692. * of this software and associated documentation files (the "Software"), to deal
  22693. * in the Software without restriction, including without limitation the rights
  22694. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  22695. * copies of the Software, and to permit persons to whom the Software is
  22696. * furnished to do so, subject to the following conditions:
  22697. *
  22698. * The above copyright notice and this permission notice shall be included in
  22699. * all copies or substantial portions of the Software.
  22700. *
  22701. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  22702. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  22703. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  22704. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22705. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  22706. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  22707. * THE SOFTWARE.
  22708. */
  22709. module.exports = {
  22710. graphlib: __webpack_require__(/*! ./lib/graphlib */ "./node_modules/dagre-d3/lib/graphlib.js"),
  22711. dagre: __webpack_require__(/*! ./lib/dagre */ "./node_modules/dagre-d3/lib/dagre.js"),
  22712. intersect: __webpack_require__(/*! ./lib/intersect */ "./node_modules/dagre-d3/lib/intersect/index.js"),
  22713. render: __webpack_require__(/*! ./lib/render */ "./node_modules/dagre-d3/lib/render.js"),
  22714. util: __webpack_require__(/*! ./lib/util */ "./node_modules/dagre-d3/lib/util.js"),
  22715. version: __webpack_require__(/*! ./lib/version */ "./node_modules/dagre-d3/lib/version.js")
  22716. };
  22717. /***/ }),
  22718. /***/ "./node_modules/dagre-d3/lib/arrows.js":
  22719. /*!*********************************************!*\
  22720. !*** ./node_modules/dagre-d3/lib/arrows.js ***!
  22721. \*********************************************/
  22722. /*! no static exports found */
  22723. /***/ (function(module, exports, __webpack_require__) {
  22724. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre-d3/lib/util.js");
  22725. module.exports = {
  22726. "default": normal,
  22727. "normal": normal,
  22728. "vee": vee,
  22729. "undirected": undirected
  22730. };
  22731. function normal(parent, id, edge, type) {
  22732. var marker = parent.append("marker")
  22733. .attr("id", id)
  22734. .attr("viewBox", "0 0 10 10")
  22735. .attr("refX", 9)
  22736. .attr("refY", 5)
  22737. .attr("markerUnits", "strokeWidth")
  22738. .attr("markerWidth", 8)
  22739. .attr("markerHeight", 6)
  22740. .attr("orient", "auto");
  22741. var path = marker.append("path")
  22742. .attr("d", "M 0 0 L 10 5 L 0 10 z")
  22743. .style("stroke-width", 1)
  22744. .style("stroke-dasharray", "1,0");
  22745. util.applyStyle(path, edge[type + "Style"]);
  22746. if (edge[type + "Class"]) {
  22747. path.attr("class", edge[type + "Class"]);
  22748. }
  22749. }
  22750. function vee(parent, id, edge, type) {
  22751. var marker = parent.append("marker")
  22752. .attr("id", id)
  22753. .attr("viewBox", "0 0 10 10")
  22754. .attr("refX", 9)
  22755. .attr("refY", 5)
  22756. .attr("markerUnits", "strokeWidth")
  22757. .attr("markerWidth", 8)
  22758. .attr("markerHeight", 6)
  22759. .attr("orient", "auto");
  22760. var path = marker.append("path")
  22761. .attr("d", "M 0 0 L 10 5 L 0 10 L 4 5 z")
  22762. .style("stroke-width", 1)
  22763. .style("stroke-dasharray", "1,0");
  22764. util.applyStyle(path, edge[type + "Style"]);
  22765. if (edge[type + "Class"]) {
  22766. path.attr("class", edge[type + "Class"]);
  22767. }
  22768. }
  22769. function undirected(parent, id, edge, type) {
  22770. var marker = parent.append("marker")
  22771. .attr("id", id)
  22772. .attr("viewBox", "0 0 10 10")
  22773. .attr("refX", 9)
  22774. .attr("refY", 5)
  22775. .attr("markerUnits", "strokeWidth")
  22776. .attr("markerWidth", 8)
  22777. .attr("markerHeight", 6)
  22778. .attr("orient", "auto");
  22779. var path = marker.append("path")
  22780. .attr("d", "M 0 5 L 10 5")
  22781. .style("stroke-width", 1)
  22782. .style("stroke-dasharray", "1,0");
  22783. util.applyStyle(path, edge[type + "Style"]);
  22784. if (edge[type + "Class"]) {
  22785. path.attr("class", edge[type + "Class"]);
  22786. }
  22787. }
  22788. /***/ }),
  22789. /***/ "./node_modules/dagre-d3/lib/create-clusters.js":
  22790. /*!******************************************************!*\
  22791. !*** ./node_modules/dagre-d3/lib/create-clusters.js ***!
  22792. \******************************************************/
  22793. /*! no static exports found */
  22794. /***/ (function(module, exports, __webpack_require__) {
  22795. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre-d3/lib/util.js");
  22796. var d3 = __webpack_require__(/*! ./d3 */ "./node_modules/dagre-d3/lib/d3.js");
  22797. var addLabel = __webpack_require__(/*! ./label/add-label */ "./node_modules/dagre-d3/lib/label/add-label.js");
  22798. module.exports = createClusters;
  22799. function createClusters(selection, g) {
  22800. var clusters = g.nodes().filter(function(v) { return util.isSubgraph(g, v); });
  22801. var svgClusters = selection.selectAll("g.cluster")
  22802. .data(clusters, function(v) { return v; });
  22803. svgClusters.selectAll("*").remove();
  22804. svgClusters.enter().append("g")
  22805. .attr("class", "cluster")
  22806. .attr("id",function(v){
  22807. var node = g.node(v);
  22808. return node.id;
  22809. })
  22810. .style("opacity", 0);
  22811. svgClusters = selection.selectAll("g.cluster");
  22812. util.applyTransition(svgClusters, g)
  22813. .style("opacity", 1);
  22814. svgClusters.each(function(v) {
  22815. var node = g.node(v);
  22816. var thisGroup = d3.select(this);
  22817. d3.select(this).append("rect");
  22818. var labelGroup = thisGroup.append("g").attr("class", "label");
  22819. addLabel(labelGroup, node, node.clusterLabelPos);
  22820. });
  22821. svgClusters.selectAll("rect").each(function(c) {
  22822. var node = g.node(c);
  22823. var domCluster = d3.select(this);
  22824. util.applyStyle(domCluster, node.style);
  22825. });
  22826. var exitSelection;
  22827. if (svgClusters.exit) {
  22828. exitSelection = svgClusters.exit();
  22829. } else {
  22830. exitSelection = svgClusters.selectAll(null); // empty selection
  22831. }
  22832. util.applyTransition(exitSelection, g)
  22833. .style("opacity", 0)
  22834. .remove();
  22835. return svgClusters;
  22836. }
  22837. /***/ }),
  22838. /***/ "./node_modules/dagre-d3/lib/create-edge-labels.js":
  22839. /*!*********************************************************!*\
  22840. !*** ./node_modules/dagre-d3/lib/create-edge-labels.js ***!
  22841. \*********************************************************/
  22842. /*! no static exports found */
  22843. /***/ (function(module, exports, __webpack_require__) {
  22844. "use strict";
  22845. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre-d3/lib/lodash.js");
  22846. var addLabel = __webpack_require__(/*! ./label/add-label */ "./node_modules/dagre-d3/lib/label/add-label.js");
  22847. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre-d3/lib/util.js");
  22848. var d3 = __webpack_require__(/*! ./d3 */ "./node_modules/dagre-d3/lib/d3.js");
  22849. module.exports = createEdgeLabels;
  22850. function createEdgeLabels(selection, g) {
  22851. var svgEdgeLabels = selection.selectAll("g.edgeLabel")
  22852. .data(g.edges(), function(e) { return util.edgeToId(e); })
  22853. .classed("update", true);
  22854. svgEdgeLabels.exit().remove();
  22855. svgEdgeLabels.enter().append("g")
  22856. .classed("edgeLabel", true)
  22857. .style("opacity", 0);
  22858. svgEdgeLabels = selection.selectAll("g.edgeLabel");
  22859. svgEdgeLabels.each(function(e) {
  22860. var root = d3.select(this);
  22861. root.select(".label").remove();
  22862. var edge = g.edge(e);
  22863. var label = addLabel(root, g.edge(e), 0, 0).classed("label", true);
  22864. var bbox = label.node().getBBox();
  22865. if (edge.labelId) { label.attr("id", edge.labelId); }
  22866. if (!_.has(edge, "width")) { edge.width = bbox.width; }
  22867. if (!_.has(edge, "height")) { edge.height = bbox.height; }
  22868. });
  22869. var exitSelection;
  22870. if (svgEdgeLabels.exit) {
  22871. exitSelection = svgEdgeLabels.exit();
  22872. } else {
  22873. exitSelection = svgEdgeLabels.selectAll(null); // empty selection
  22874. }
  22875. util.applyTransition(exitSelection, g)
  22876. .style("opacity", 0)
  22877. .remove();
  22878. return svgEdgeLabels;
  22879. }
  22880. /***/ }),
  22881. /***/ "./node_modules/dagre-d3/lib/create-edge-paths.js":
  22882. /*!********************************************************!*\
  22883. !*** ./node_modules/dagre-d3/lib/create-edge-paths.js ***!
  22884. \********************************************************/
  22885. /*! no static exports found */
  22886. /***/ (function(module, exports, __webpack_require__) {
  22887. "use strict";
  22888. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre-d3/lib/lodash.js");
  22889. var intersectNode = __webpack_require__(/*! ./intersect/intersect-node */ "./node_modules/dagre-d3/lib/intersect/intersect-node.js");
  22890. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre-d3/lib/util.js");
  22891. var d3 = __webpack_require__(/*! ./d3 */ "./node_modules/dagre-d3/lib/d3.js");
  22892. module.exports = createEdgePaths;
  22893. function createEdgePaths(selection, g, arrows) {
  22894. var previousPaths = selection.selectAll("g.edgePath")
  22895. .data(g.edges(), function(e) { return util.edgeToId(e); })
  22896. .classed("update", true);
  22897. var newPaths = enter(previousPaths, g);
  22898. exit(previousPaths, g);
  22899. var svgPaths = previousPaths.merge !== undefined ? previousPaths.merge(newPaths) : previousPaths;
  22900. util.applyTransition(svgPaths, g)
  22901. .style("opacity", 1);
  22902. // Save DOM element in the path group, and set ID and class
  22903. svgPaths.each(function(e) {
  22904. var domEdge = d3.select(this);
  22905. var edge = g.edge(e);
  22906. edge.elem = this;
  22907. if (edge.id) {
  22908. domEdge.attr("id", edge.id);
  22909. }
  22910. util.applyClass(domEdge, edge["class"],
  22911. (domEdge.classed("update") ? "update " : "") + "edgePath");
  22912. });
  22913. svgPaths.selectAll("path.path")
  22914. .each(function(e) {
  22915. var edge = g.edge(e);
  22916. edge.arrowheadId = _.uniqueId("arrowhead");
  22917. var domEdge = d3.select(this)
  22918. .attr("marker-end", function() {
  22919. return "url(" + makeFragmentRef(location.href, edge.arrowheadId) + ")";
  22920. })
  22921. .style("fill", "none");
  22922. util.applyTransition(domEdge, g)
  22923. .attr("d", function(e) { return calcPoints(g, e); });
  22924. util.applyStyle(domEdge, edge.style);
  22925. });
  22926. svgPaths.selectAll("defs *").remove();
  22927. svgPaths.selectAll("defs")
  22928. .each(function(e) {
  22929. var edge = g.edge(e);
  22930. var arrowhead = arrows[edge.arrowhead];
  22931. arrowhead(d3.select(this), edge.arrowheadId, edge, "arrowhead");
  22932. });
  22933. return svgPaths;
  22934. }
  22935. function makeFragmentRef(url, fragmentId) {
  22936. var baseUrl = url.split("#")[0];
  22937. return baseUrl + "#" + fragmentId;
  22938. }
  22939. function calcPoints(g, e) {
  22940. var edge = g.edge(e);
  22941. var tail = g.node(e.v);
  22942. var head = g.node(e.w);
  22943. var points = edge.points.slice(1, edge.points.length - 1);
  22944. points.unshift(intersectNode(tail, points[0]));
  22945. points.push(intersectNode(head, points[points.length - 1]));
  22946. return createLine(edge, points);
  22947. }
  22948. function createLine(edge, points) {
  22949. var line = (d3.line || d3.svg.line)()
  22950. .x(function(d) { return d.x; })
  22951. .y(function(d) { return d.y; });
  22952. (line.curve || line.interpolate)(edge.curve);
  22953. return line(points);
  22954. }
  22955. function getCoords(elem) {
  22956. var bbox = elem.getBBox();
  22957. var matrix = elem.ownerSVGElement.getScreenCTM()
  22958. .inverse()
  22959. .multiply(elem.getScreenCTM())
  22960. .translate(bbox.width / 2, bbox.height / 2);
  22961. return { x: matrix.e, y: matrix.f };
  22962. }
  22963. function enter(svgPaths, g) {
  22964. var svgPathsEnter = svgPaths.enter().append("g")
  22965. .attr("class", "edgePath")
  22966. .style("opacity", 0);
  22967. svgPathsEnter.append("path")
  22968. .attr("class", "path")
  22969. .attr("d", function(e) {
  22970. var edge = g.edge(e);
  22971. var sourceElem = g.node(e.v).elem;
  22972. var points = _.range(edge.points.length).map(function() { return getCoords(sourceElem); });
  22973. return createLine(edge, points);
  22974. });
  22975. svgPathsEnter.append("defs");
  22976. return svgPathsEnter;
  22977. }
  22978. function exit(svgPaths, g) {
  22979. var svgPathExit = svgPaths.exit();
  22980. util.applyTransition(svgPathExit, g)
  22981. .style("opacity", 0)
  22982. .remove();
  22983. }
  22984. /***/ }),
  22985. /***/ "./node_modules/dagre-d3/lib/create-nodes.js":
  22986. /*!***************************************************!*\
  22987. !*** ./node_modules/dagre-d3/lib/create-nodes.js ***!
  22988. \***************************************************/
  22989. /*! no static exports found */
  22990. /***/ (function(module, exports, __webpack_require__) {
  22991. "use strict";
  22992. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre-d3/lib/lodash.js");
  22993. var addLabel = __webpack_require__(/*! ./label/add-label */ "./node_modules/dagre-d3/lib/label/add-label.js");
  22994. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre-d3/lib/util.js");
  22995. var d3 = __webpack_require__(/*! ./d3 */ "./node_modules/dagre-d3/lib/d3.js");
  22996. module.exports = createNodes;
  22997. function createNodes(selection, g, shapes) {
  22998. var simpleNodes = g.nodes().filter(function(v) { return !util.isSubgraph(g, v); });
  22999. var svgNodes = selection.selectAll("g.node")
  23000. .data(simpleNodes, function(v) { return v; })
  23001. .classed("update", true);
  23002. svgNodes.exit().remove();
  23003. svgNodes.enter().append("g")
  23004. .attr("class", "node")
  23005. .style("opacity", 0);
  23006. svgNodes = selection.selectAll("g.node");
  23007. svgNodes.each(function(v) {
  23008. var node = g.node(v);
  23009. var thisGroup = d3.select(this);
  23010. util.applyClass(thisGroup, node["class"],
  23011. (thisGroup.classed("update") ? "update " : "") + "node");
  23012. thisGroup.select("g.label").remove();
  23013. var labelGroup = thisGroup.append("g").attr("class", "label");
  23014. var labelDom = addLabel(labelGroup, node);
  23015. var shape = shapes[node.shape];
  23016. var bbox = _.pick(labelDom.node().getBBox(), "width", "height");
  23017. node.elem = this;
  23018. if (node.id) { thisGroup.attr("id", node.id); }
  23019. if (node.labelId) { labelGroup.attr("id", node.labelId); }
  23020. if (_.has(node, "width")) { bbox.width = node.width; }
  23021. if (_.has(node, "height")) { bbox.height = node.height; }
  23022. bbox.width += node.paddingLeft + node.paddingRight;
  23023. bbox.height += node.paddingTop + node.paddingBottom;
  23024. labelGroup.attr("transform", "translate(" +
  23025. ((node.paddingLeft - node.paddingRight) / 2) + "," +
  23026. ((node.paddingTop - node.paddingBottom) / 2) + ")");
  23027. var root = d3.select(this);
  23028. root.select(".label-container").remove();
  23029. var shapeSvg = shape(root, bbox, node).classed("label-container", true);
  23030. util.applyStyle(shapeSvg, node.style);
  23031. var shapeBBox = shapeSvg.node().getBBox();
  23032. node.width = shapeBBox.width;
  23033. node.height = shapeBBox.height;
  23034. });
  23035. var exitSelection;
  23036. if (svgNodes.exit) {
  23037. exitSelection = svgNodes.exit();
  23038. } else {
  23039. exitSelection = svgNodes.selectAll(null); // empty selection
  23040. }
  23041. util.applyTransition(exitSelection, g)
  23042. .style("opacity", 0)
  23043. .remove();
  23044. return svgNodes;
  23045. }
  23046. /***/ }),
  23047. /***/ "./node_modules/dagre-d3/lib/d3.js":
  23048. /*!*****************************************!*\
  23049. !*** ./node_modules/dagre-d3/lib/d3.js ***!
  23050. \*****************************************/
  23051. /*! no static exports found */
  23052. /***/ (function(module, exports, __webpack_require__) {
  23053. // Stub to get D3 either via NPM or from the global object
  23054. var d3;
  23055. if (!d3) {
  23056. if (true) {
  23057. try {
  23058. d3 = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  23059. }
  23060. catch (e) {
  23061. // continue regardless of error
  23062. }
  23063. }
  23064. }
  23065. if (!d3) {
  23066. d3 = window.d3;
  23067. }
  23068. module.exports = d3;
  23069. /***/ }),
  23070. /***/ "./node_modules/dagre-d3/lib/dagre.js":
  23071. /*!********************************************!*\
  23072. !*** ./node_modules/dagre-d3/lib/dagre.js ***!
  23073. \********************************************/
  23074. /*! no static exports found */
  23075. /***/ (function(module, exports, __webpack_require__) {
  23076. /* global window */
  23077. var dagre;
  23078. if (true) {
  23079. try {
  23080. dagre = __webpack_require__(/*! dagre */ "./node_modules/dagre/index.js");
  23081. } catch (e) {
  23082. // continue regardless of error
  23083. }
  23084. }
  23085. if (!dagre) {
  23086. dagre = window.dagre;
  23087. }
  23088. module.exports = dagre;
  23089. /***/ }),
  23090. /***/ "./node_modules/dagre-d3/lib/graphlib.js":
  23091. /*!***********************************************!*\
  23092. !*** ./node_modules/dagre-d3/lib/graphlib.js ***!
  23093. \***********************************************/
  23094. /*! no static exports found */
  23095. /***/ (function(module, exports, __webpack_require__) {
  23096. /* global window */
  23097. var graphlib;
  23098. if (true) {
  23099. try {
  23100. graphlib = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
  23101. }
  23102. catch (e) {
  23103. // continue regardless of error
  23104. }
  23105. }
  23106. if (!graphlib) {
  23107. graphlib = window.graphlib;
  23108. }
  23109. module.exports = graphlib;
  23110. /***/ }),
  23111. /***/ "./node_modules/dagre-d3/lib/intersect/index.js":
  23112. /*!******************************************************!*\
  23113. !*** ./node_modules/dagre-d3/lib/intersect/index.js ***!
  23114. \******************************************************/
  23115. /*! no static exports found */
  23116. /***/ (function(module, exports, __webpack_require__) {
  23117. module.exports = {
  23118. node: __webpack_require__(/*! ./intersect-node */ "./node_modules/dagre-d3/lib/intersect/intersect-node.js"),
  23119. circle: __webpack_require__(/*! ./intersect-circle */ "./node_modules/dagre-d3/lib/intersect/intersect-circle.js"),
  23120. ellipse: __webpack_require__(/*! ./intersect-ellipse */ "./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js"),
  23121. polygon: __webpack_require__(/*! ./intersect-polygon */ "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js"),
  23122. rect: __webpack_require__(/*! ./intersect-rect */ "./node_modules/dagre-d3/lib/intersect/intersect-rect.js")
  23123. };
  23124. /***/ }),
  23125. /***/ "./node_modules/dagre-d3/lib/intersect/intersect-circle.js":
  23126. /*!*****************************************************************!*\
  23127. !*** ./node_modules/dagre-d3/lib/intersect/intersect-circle.js ***!
  23128. \*****************************************************************/
  23129. /*! no static exports found */
  23130. /***/ (function(module, exports, __webpack_require__) {
  23131. var intersectEllipse = __webpack_require__(/*! ./intersect-ellipse */ "./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js");
  23132. module.exports = intersectCircle;
  23133. function intersectCircle(node, rx, point) {
  23134. return intersectEllipse(node, rx, rx, point);
  23135. }
  23136. /***/ }),
  23137. /***/ "./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js":
  23138. /*!******************************************************************!*\
  23139. !*** ./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js ***!
  23140. \******************************************************************/
  23141. /*! no static exports found */
  23142. /***/ (function(module, exports) {
  23143. module.exports = intersectEllipse;
  23144. function intersectEllipse(node, rx, ry, point) {
  23145. // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html
  23146. var cx = node.x;
  23147. var cy = node.y;
  23148. var px = cx - point.x;
  23149. var py = cy - point.y;
  23150. var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);
  23151. var dx = Math.abs(rx * ry * px / det);
  23152. if (point.x < cx) {
  23153. dx = -dx;
  23154. }
  23155. var dy = Math.abs(rx * ry * py / det);
  23156. if (point.y < cy) {
  23157. dy = -dy;
  23158. }
  23159. return {x: cx + dx, y: cy + dy};
  23160. }
  23161. /***/ }),
  23162. /***/ "./node_modules/dagre-d3/lib/intersect/intersect-line.js":
  23163. /*!***************************************************************!*\
  23164. !*** ./node_modules/dagre-d3/lib/intersect/intersect-line.js ***!
  23165. \***************************************************************/
  23166. /*! no static exports found */
  23167. /***/ (function(module, exports) {
  23168. module.exports = intersectLine;
  23169. /*
  23170. * Returns the point at which two lines, p and q, intersect or returns
  23171. * undefined if they do not intersect.
  23172. */
  23173. function intersectLine(p1, p2, q1, q2) {
  23174. // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,
  23175. // p7 and p473.
  23176. var a1, a2, b1, b2, c1, c2;
  23177. var r1, r2 , r3, r4;
  23178. var denom, offset, num;
  23179. var x, y;
  23180. // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +
  23181. // b1 y + c1 = 0.
  23182. a1 = p2.y - p1.y;
  23183. b1 = p1.x - p2.x;
  23184. c1 = (p2.x * p1.y) - (p1.x * p2.y);
  23185. // Compute r3 and r4.
  23186. r3 = ((a1 * q1.x) + (b1 * q1.y) + c1);
  23187. r4 = ((a1 * q2.x) + (b1 * q2.y) + c1);
  23188. // Check signs of r3 and r4. If both point 3 and point 4 lie on
  23189. // same side of line 1, the line segments do not intersect.
  23190. if ((r3 !== 0) && (r4 !== 0) && sameSign(r3, r4)) {
  23191. return /*DONT_INTERSECT*/;
  23192. }
  23193. // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0
  23194. a2 = q2.y - q1.y;
  23195. b2 = q1.x - q2.x;
  23196. c2 = (q2.x * q1.y) - (q1.x * q2.y);
  23197. // Compute r1 and r2
  23198. r1 = (a2 * p1.x) + (b2 * p1.y) + c2;
  23199. r2 = (a2 * p2.x) + (b2 * p2.y) + c2;
  23200. // Check signs of r1 and r2. If both point 1 and point 2 lie
  23201. // on same side of second line segment, the line segments do
  23202. // not intersect.
  23203. if ((r1 !== 0) && (r2 !== 0) && (sameSign(r1, r2))) {
  23204. return /*DONT_INTERSECT*/;
  23205. }
  23206. // Line segments intersect: compute intersection point.
  23207. denom = (a1 * b2) - (a2 * b1);
  23208. if (denom === 0) {
  23209. return /*COLLINEAR*/;
  23210. }
  23211. offset = Math.abs(denom / 2);
  23212. // The denom/2 is to get rounding instead of truncating. It
  23213. // is added or subtracted to the numerator, depending upon the
  23214. // sign of the numerator.
  23215. num = (b1 * c2) - (b2 * c1);
  23216. x = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);
  23217. num = (a2 * c1) - (a1 * c2);
  23218. y = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);
  23219. return { x: x, y: y };
  23220. }
  23221. function sameSign(r1, r2) {
  23222. return r1 * r2 > 0;
  23223. }
  23224. /***/ }),
  23225. /***/ "./node_modules/dagre-d3/lib/intersect/intersect-node.js":
  23226. /*!***************************************************************!*\
  23227. !*** ./node_modules/dagre-d3/lib/intersect/intersect-node.js ***!
  23228. \***************************************************************/
  23229. /*! no static exports found */
  23230. /***/ (function(module, exports) {
  23231. module.exports = intersectNode;
  23232. function intersectNode(node, point) {
  23233. return node.intersect(point);
  23234. }
  23235. /***/ }),
  23236. /***/ "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js":
  23237. /*!******************************************************************!*\
  23238. !*** ./node_modules/dagre-d3/lib/intersect/intersect-polygon.js ***!
  23239. \******************************************************************/
  23240. /*! no static exports found */
  23241. /***/ (function(module, exports, __webpack_require__) {
  23242. /* eslint "no-console": off */
  23243. var intersectLine = __webpack_require__(/*! ./intersect-line */ "./node_modules/dagre-d3/lib/intersect/intersect-line.js");
  23244. module.exports = intersectPolygon;
  23245. /*
  23246. * Returns the point ({x, y}) at which the point argument intersects with the
  23247. * node argument assuming that it has the shape specified by polygon.
  23248. */
  23249. function intersectPolygon(node, polyPoints, point) {
  23250. var x1 = node.x;
  23251. var y1 = node.y;
  23252. var intersections = [];
  23253. var minX = Number.POSITIVE_INFINITY;
  23254. var minY = Number.POSITIVE_INFINITY;
  23255. polyPoints.forEach(function(entry) {
  23256. minX = Math.min(minX, entry.x);
  23257. minY = Math.min(minY, entry.y);
  23258. });
  23259. var left = x1 - node.width / 2 - minX;
  23260. var top = y1 - node.height / 2 - minY;
  23261. for (var i = 0; i < polyPoints.length; i++) {
  23262. var p1 = polyPoints[i];
  23263. var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];
  23264. var intersect = intersectLine(node, point,
  23265. {x: left + p1.x, y: top + p1.y}, {x: left + p2.x, y: top + p2.y});
  23266. if (intersect) {
  23267. intersections.push(intersect);
  23268. }
  23269. }
  23270. if (!intersections.length) {
  23271. console.log("NO INTERSECTION FOUND, RETURN NODE CENTER", node);
  23272. return node;
  23273. }
  23274. if (intersections.length > 1) {
  23275. // More intersections, find the one nearest to edge end point
  23276. intersections.sort(function(p, q) {
  23277. var pdx = p.x - point.x;
  23278. var pdy = p.y - point.y;
  23279. var distp = Math.sqrt(pdx * pdx + pdy * pdy);
  23280. var qdx = q.x - point.x;
  23281. var qdy = q.y - point.y;
  23282. var distq = Math.sqrt(qdx * qdx + qdy * qdy);
  23283. return (distp < distq) ? -1 : (distp === distq ? 0 : 1);
  23284. });
  23285. }
  23286. return intersections[0];
  23287. }
  23288. /***/ }),
  23289. /***/ "./node_modules/dagre-d3/lib/intersect/intersect-rect.js":
  23290. /*!***************************************************************!*\
  23291. !*** ./node_modules/dagre-d3/lib/intersect/intersect-rect.js ***!
  23292. \***************************************************************/
  23293. /*! no static exports found */
  23294. /***/ (function(module, exports) {
  23295. module.exports = intersectRect;
  23296. function intersectRect(node, point) {
  23297. var x = node.x;
  23298. var y = node.y;
  23299. // Rectangle intersection algorithm from:
  23300. // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
  23301. var dx = point.x - x;
  23302. var dy = point.y - y;
  23303. var w = node.width / 2;
  23304. var h = node.height / 2;
  23305. var sx, sy;
  23306. if (Math.abs(dy) * w > Math.abs(dx) * h) {
  23307. // Intersection is top or bottom of rect.
  23308. if (dy < 0) {
  23309. h = -h;
  23310. }
  23311. sx = dy === 0 ? 0 : h * dx / dy;
  23312. sy = h;
  23313. } else {
  23314. // Intersection is left or right of rect.
  23315. if (dx < 0) {
  23316. w = -w;
  23317. }
  23318. sx = w;
  23319. sy = dx === 0 ? 0 : w * dy / dx;
  23320. }
  23321. return {x: x + sx, y: y + sy};
  23322. }
  23323. /***/ }),
  23324. /***/ "./node_modules/dagre-d3/lib/label/add-html-label.js":
  23325. /*!***********************************************************!*\
  23326. !*** ./node_modules/dagre-d3/lib/label/add-html-label.js ***!
  23327. \***********************************************************/
  23328. /*! no static exports found */
  23329. /***/ (function(module, exports, __webpack_require__) {
  23330. var util = __webpack_require__(/*! ../util */ "./node_modules/dagre-d3/lib/util.js");
  23331. module.exports = addHtmlLabel;
  23332. function addHtmlLabel(root, node) {
  23333. var fo = root
  23334. .append("foreignObject")
  23335. .attr("width", "100000");
  23336. var div = fo
  23337. .append("xhtml:div");
  23338. div.attr("xmlns", "http://www.w3.org/1999/xhtml");
  23339. var label = node.label;
  23340. switch(typeof label) {
  23341. case "function":
  23342. div.insert(label);
  23343. break;
  23344. case "object":
  23345. // Currently we assume this is a DOM object.
  23346. div.insert(function() { return label; });
  23347. break;
  23348. default: div.html(label);
  23349. }
  23350. util.applyStyle(div, node.labelStyle);
  23351. div.style("display", "inline-block");
  23352. // Fix for firefox
  23353. div.style("white-space", "nowrap");
  23354. var client = div.node().getBoundingClientRect();
  23355. fo
  23356. .attr("width", client.width)
  23357. .attr("height", client.height);
  23358. return fo;
  23359. }
  23360. /***/ }),
  23361. /***/ "./node_modules/dagre-d3/lib/label/add-label.js":
  23362. /*!******************************************************!*\
  23363. !*** ./node_modules/dagre-d3/lib/label/add-label.js ***!
  23364. \******************************************************/
  23365. /*! no static exports found */
  23366. /***/ (function(module, exports, __webpack_require__) {
  23367. var addTextLabel = __webpack_require__(/*! ./add-text-label */ "./node_modules/dagre-d3/lib/label/add-text-label.js");
  23368. var addHtmlLabel = __webpack_require__(/*! ./add-html-label */ "./node_modules/dagre-d3/lib/label/add-html-label.js");
  23369. var addSVGLabel = __webpack_require__(/*! ./add-svg-label */ "./node_modules/dagre-d3/lib/label/add-svg-label.js");
  23370. module.exports = addLabel;
  23371. function addLabel(root, node, location) {
  23372. var label = node.label;
  23373. var labelSvg = root.append("g");
  23374. // Allow the label to be a string, a function that returns a DOM element, or
  23375. // a DOM element itself.
  23376. if (node.labelType === "svg") {
  23377. addSVGLabel(labelSvg, node);
  23378. } else if (typeof label !== "string" || node.labelType === "html") {
  23379. addHtmlLabel(labelSvg, node);
  23380. } else {
  23381. addTextLabel(labelSvg, node);
  23382. }
  23383. var labelBBox = labelSvg.node().getBBox();
  23384. var y;
  23385. switch(location) {
  23386. case "top":
  23387. y = (-node.height / 2);
  23388. break;
  23389. case "bottom":
  23390. y = (node.height / 2) - labelBBox.height;
  23391. break;
  23392. default:
  23393. y = (-labelBBox.height / 2);
  23394. }
  23395. labelSvg.attr(
  23396. "transform",
  23397. "translate(" + (-labelBBox.width / 2) + "," + y + ")");
  23398. return labelSvg;
  23399. }
  23400. /***/ }),
  23401. /***/ "./node_modules/dagre-d3/lib/label/add-svg-label.js":
  23402. /*!**********************************************************!*\
  23403. !*** ./node_modules/dagre-d3/lib/label/add-svg-label.js ***!
  23404. \**********************************************************/
  23405. /*! no static exports found */
  23406. /***/ (function(module, exports, __webpack_require__) {
  23407. var util = __webpack_require__(/*! ../util */ "./node_modules/dagre-d3/lib/util.js");
  23408. module.exports = addSVGLabel;
  23409. function addSVGLabel(root, node) {
  23410. var domNode = root;
  23411. domNode.node().appendChild(node.label);
  23412. util.applyStyle(domNode, node.labelStyle);
  23413. return domNode;
  23414. }
  23415. /***/ }),
  23416. /***/ "./node_modules/dagre-d3/lib/label/add-text-label.js":
  23417. /*!***********************************************************!*\
  23418. !*** ./node_modules/dagre-d3/lib/label/add-text-label.js ***!
  23419. \***********************************************************/
  23420. /*! no static exports found */
  23421. /***/ (function(module, exports, __webpack_require__) {
  23422. var util = __webpack_require__(/*! ../util */ "./node_modules/dagre-d3/lib/util.js");
  23423. module.exports = addTextLabel;
  23424. /*
  23425. * Attaches a text label to the specified root. Handles escape sequences.
  23426. */
  23427. function addTextLabel(root, node) {
  23428. var domNode = root.append("text");
  23429. var lines = processEscapeSequences(node.label).split("\n");
  23430. for (var i = 0; i < lines.length; i++) {
  23431. domNode.append("tspan")
  23432. .attr("xml:space", "preserve")
  23433. .attr("dy", "1em")
  23434. .attr("x", "1")
  23435. .text(lines[i]);
  23436. }
  23437. util.applyStyle(domNode, node.labelStyle);
  23438. return domNode;
  23439. }
  23440. function processEscapeSequences(text) {
  23441. var newText = "";
  23442. var escaped = false;
  23443. var ch;
  23444. for (var i = 0; i < text.length; ++i) {
  23445. ch = text[i];
  23446. if (escaped) {
  23447. switch(ch) {
  23448. case "n": newText += "\n"; break;
  23449. default: newText += ch;
  23450. }
  23451. escaped = false;
  23452. } else if (ch === "\\") {
  23453. escaped = true;
  23454. } else {
  23455. newText += ch;
  23456. }
  23457. }
  23458. return newText;
  23459. }
  23460. /***/ }),
  23461. /***/ "./node_modules/dagre-d3/lib/lodash.js":
  23462. /*!*********************************************!*\
  23463. !*** ./node_modules/dagre-d3/lib/lodash.js ***!
  23464. \*********************************************/
  23465. /*! no static exports found */
  23466. /***/ (function(module, exports, __webpack_require__) {
  23467. /* global window */
  23468. var lodash;
  23469. if (true) {
  23470. try {
  23471. lodash = {
  23472. defaults: __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js"),
  23473. each: __webpack_require__(/*! lodash/each */ "./node_modules/lodash/each.js"),
  23474. isFunction: __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js"),
  23475. isPlainObject: __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js"),
  23476. pick: __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js"),
  23477. has: __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js"),
  23478. range: __webpack_require__(/*! lodash/range */ "./node_modules/lodash/range.js"),
  23479. uniqueId: __webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js")
  23480. };
  23481. }
  23482. catch (e) {
  23483. // continue regardless of error
  23484. }
  23485. }
  23486. if (!lodash) {
  23487. lodash = window._;
  23488. }
  23489. module.exports = lodash;
  23490. /***/ }),
  23491. /***/ "./node_modules/dagre-d3/lib/position-clusters.js":
  23492. /*!********************************************************!*\
  23493. !*** ./node_modules/dagre-d3/lib/position-clusters.js ***!
  23494. \********************************************************/
  23495. /*! no static exports found */
  23496. /***/ (function(module, exports, __webpack_require__) {
  23497. "use strict";
  23498. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre-d3/lib/util.js");
  23499. var d3 = __webpack_require__(/*! ./d3 */ "./node_modules/dagre-d3/lib/d3.js");
  23500. module.exports = positionClusters;
  23501. function positionClusters(selection, g) {
  23502. var created = selection.filter(function() { return !d3.select(this).classed("update"); });
  23503. function translate(v) {
  23504. var node = g.node(v);
  23505. return "translate(" + node.x + "," + node.y + ")";
  23506. }
  23507. created.attr("transform", translate);
  23508. util.applyTransition(selection, g)
  23509. .style("opacity", 1)
  23510. .attr("transform", translate);
  23511. util.applyTransition(created.selectAll("rect"), g)
  23512. .attr("width", function(v) { return g.node(v).width; })
  23513. .attr("height", function(v) { return g.node(v).height; })
  23514. .attr("x", function(v) {
  23515. var node = g.node(v);
  23516. return -node.width / 2;
  23517. })
  23518. .attr("y", function(v) {
  23519. var node = g.node(v);
  23520. return -node.height / 2;
  23521. });
  23522. }
  23523. /***/ }),
  23524. /***/ "./node_modules/dagre-d3/lib/position-edge-labels.js":
  23525. /*!***********************************************************!*\
  23526. !*** ./node_modules/dagre-d3/lib/position-edge-labels.js ***!
  23527. \***********************************************************/
  23528. /*! no static exports found */
  23529. /***/ (function(module, exports, __webpack_require__) {
  23530. "use strict";
  23531. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre-d3/lib/util.js");
  23532. var d3 = __webpack_require__(/*! ./d3 */ "./node_modules/dagre-d3/lib/d3.js");
  23533. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre-d3/lib/lodash.js");
  23534. module.exports = positionEdgeLabels;
  23535. function positionEdgeLabels(selection, g) {
  23536. var created = selection.filter(function() { return !d3.select(this).classed("update"); });
  23537. function translate(e) {
  23538. var edge = g.edge(e);
  23539. return _.has(edge, "x") ? "translate(" + edge.x + "," + edge.y + ")" : "";
  23540. }
  23541. created.attr("transform", translate);
  23542. util.applyTransition(selection, g)
  23543. .style("opacity", 1)
  23544. .attr("transform", translate);
  23545. }
  23546. /***/ }),
  23547. /***/ "./node_modules/dagre-d3/lib/position-nodes.js":
  23548. /*!*****************************************************!*\
  23549. !*** ./node_modules/dagre-d3/lib/position-nodes.js ***!
  23550. \*****************************************************/
  23551. /*! no static exports found */
  23552. /***/ (function(module, exports, __webpack_require__) {
  23553. "use strict";
  23554. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre-d3/lib/util.js");
  23555. var d3 = __webpack_require__(/*! ./d3 */ "./node_modules/dagre-d3/lib/d3.js");
  23556. module.exports = positionNodes;
  23557. function positionNodes(selection, g) {
  23558. var created = selection.filter(function() { return !d3.select(this).classed("update"); });
  23559. function translate(v) {
  23560. var node = g.node(v);
  23561. return "translate(" + node.x + "," + node.y + ")";
  23562. }
  23563. created.attr("transform", translate);
  23564. util.applyTransition(selection, g)
  23565. .style("opacity", 1)
  23566. .attr("transform", translate);
  23567. }
  23568. /***/ }),
  23569. /***/ "./node_modules/dagre-d3/lib/render.js":
  23570. /*!*********************************************!*\
  23571. !*** ./node_modules/dagre-d3/lib/render.js ***!
  23572. \*********************************************/
  23573. /*! no static exports found */
  23574. /***/ (function(module, exports, __webpack_require__) {
  23575. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre-d3/lib/lodash.js");
  23576. var d3 = __webpack_require__(/*! ./d3 */ "./node_modules/dagre-d3/lib/d3.js");
  23577. var layout = __webpack_require__(/*! ./dagre */ "./node_modules/dagre-d3/lib/dagre.js").layout;
  23578. module.exports = render;
  23579. // This design is based on http://bost.ocks.org/mike/chart/.
  23580. function render() {
  23581. var createNodes = __webpack_require__(/*! ./create-nodes */ "./node_modules/dagre-d3/lib/create-nodes.js");
  23582. var createClusters = __webpack_require__(/*! ./create-clusters */ "./node_modules/dagre-d3/lib/create-clusters.js");
  23583. var createEdgeLabels = __webpack_require__(/*! ./create-edge-labels */ "./node_modules/dagre-d3/lib/create-edge-labels.js");
  23584. var createEdgePaths = __webpack_require__(/*! ./create-edge-paths */ "./node_modules/dagre-d3/lib/create-edge-paths.js");
  23585. var positionNodes = __webpack_require__(/*! ./position-nodes */ "./node_modules/dagre-d3/lib/position-nodes.js");
  23586. var positionEdgeLabels = __webpack_require__(/*! ./position-edge-labels */ "./node_modules/dagre-d3/lib/position-edge-labels.js");
  23587. var positionClusters = __webpack_require__(/*! ./position-clusters */ "./node_modules/dagre-d3/lib/position-clusters.js");
  23588. var shapes = __webpack_require__(/*! ./shapes */ "./node_modules/dagre-d3/lib/shapes.js");
  23589. var arrows = __webpack_require__(/*! ./arrows */ "./node_modules/dagre-d3/lib/arrows.js");
  23590. var fn = function(svg, g) {
  23591. preProcessGraph(g);
  23592. var outputGroup = createOrSelectGroup(svg, "output");
  23593. var clustersGroup = createOrSelectGroup(outputGroup, "clusters");
  23594. var edgePathsGroup = createOrSelectGroup(outputGroup, "edgePaths");
  23595. var edgeLabels = createEdgeLabels(createOrSelectGroup(outputGroup, "edgeLabels"), g);
  23596. var nodes = createNodes(createOrSelectGroup(outputGroup, "nodes"), g, shapes);
  23597. layout(g);
  23598. positionNodes(nodes, g);
  23599. positionEdgeLabels(edgeLabels, g);
  23600. createEdgePaths(edgePathsGroup, g, arrows);
  23601. var clusters = createClusters(clustersGroup, g);
  23602. positionClusters(clusters, g);
  23603. postProcessGraph(g);
  23604. };
  23605. fn.createNodes = function(value) {
  23606. if (!arguments.length) return createNodes;
  23607. createNodes = value;
  23608. return fn;
  23609. };
  23610. fn.createClusters = function(value) {
  23611. if (!arguments.length) return createClusters;
  23612. createClusters = value;
  23613. return fn;
  23614. };
  23615. fn.createEdgeLabels = function(value) {
  23616. if (!arguments.length) return createEdgeLabels;
  23617. createEdgeLabels = value;
  23618. return fn;
  23619. };
  23620. fn.createEdgePaths = function(value) {
  23621. if (!arguments.length) return createEdgePaths;
  23622. createEdgePaths = value;
  23623. return fn;
  23624. };
  23625. fn.shapes = function(value) {
  23626. if (!arguments.length) return shapes;
  23627. shapes = value;
  23628. return fn;
  23629. };
  23630. fn.arrows = function(value) {
  23631. if (!arguments.length) return arrows;
  23632. arrows = value;
  23633. return fn;
  23634. };
  23635. return fn;
  23636. }
  23637. var NODE_DEFAULT_ATTRS = {
  23638. paddingLeft: 10,
  23639. paddingRight: 10,
  23640. paddingTop: 10,
  23641. paddingBottom: 10,
  23642. rx: 0,
  23643. ry: 0,
  23644. shape: "rect"
  23645. };
  23646. var EDGE_DEFAULT_ATTRS = {
  23647. arrowhead: "normal",
  23648. curve: d3.curveLinear
  23649. };
  23650. function preProcessGraph(g) {
  23651. g.nodes().forEach(function(v) {
  23652. var node = g.node(v);
  23653. if (!_.has(node, "label") && !g.children(v).length) { node.label = v; }
  23654. if (_.has(node, "paddingX")) {
  23655. _.defaults(node, {
  23656. paddingLeft: node.paddingX,
  23657. paddingRight: node.paddingX
  23658. });
  23659. }
  23660. if (_.has(node, "paddingY")) {
  23661. _.defaults(node, {
  23662. paddingTop: node.paddingY,
  23663. paddingBottom: node.paddingY
  23664. });
  23665. }
  23666. if (_.has(node, "padding")) {
  23667. _.defaults(node, {
  23668. paddingLeft: node.padding,
  23669. paddingRight: node.padding,
  23670. paddingTop: node.padding,
  23671. paddingBottom: node.padding
  23672. });
  23673. }
  23674. _.defaults(node, NODE_DEFAULT_ATTRS);
  23675. _.each(["paddingLeft", "paddingRight", "paddingTop", "paddingBottom"], function(k) {
  23676. node[k] = Number(node[k]);
  23677. });
  23678. // Save dimensions for restore during post-processing
  23679. if (_.has(node, "width")) { node._prevWidth = node.width; }
  23680. if (_.has(node, "height")) { node._prevHeight = node.height; }
  23681. });
  23682. g.edges().forEach(function(e) {
  23683. var edge = g.edge(e);
  23684. if (!_.has(edge, "label")) { edge.label = ""; }
  23685. _.defaults(edge, EDGE_DEFAULT_ATTRS);
  23686. });
  23687. }
  23688. function postProcessGraph(g) {
  23689. _.each(g.nodes(), function(v) {
  23690. var node = g.node(v);
  23691. // Restore original dimensions
  23692. if (_.has(node, "_prevWidth")) {
  23693. node.width = node._prevWidth;
  23694. } else {
  23695. delete node.width;
  23696. }
  23697. if (_.has(node, "_prevHeight")) {
  23698. node.height = node._prevHeight;
  23699. } else {
  23700. delete node.height;
  23701. }
  23702. delete node._prevWidth;
  23703. delete node._prevHeight;
  23704. });
  23705. }
  23706. function createOrSelectGroup(root, name) {
  23707. var selection = root.select("g." + name);
  23708. if (selection.empty()) {
  23709. selection = root.append("g").attr("class", name);
  23710. }
  23711. return selection;
  23712. }
  23713. /***/ }),
  23714. /***/ "./node_modules/dagre-d3/lib/shapes.js":
  23715. /*!*********************************************!*\
  23716. !*** ./node_modules/dagre-d3/lib/shapes.js ***!
  23717. \*********************************************/
  23718. /*! no static exports found */
  23719. /***/ (function(module, exports, __webpack_require__) {
  23720. "use strict";
  23721. var intersectRect = __webpack_require__(/*! ./intersect/intersect-rect */ "./node_modules/dagre-d3/lib/intersect/intersect-rect.js");
  23722. var intersectEllipse = __webpack_require__(/*! ./intersect/intersect-ellipse */ "./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js");
  23723. var intersectCircle = __webpack_require__(/*! ./intersect/intersect-circle */ "./node_modules/dagre-d3/lib/intersect/intersect-circle.js");
  23724. var intersectPolygon = __webpack_require__(/*! ./intersect/intersect-polygon */ "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js");
  23725. module.exports = {
  23726. rect: rect,
  23727. ellipse: ellipse,
  23728. circle: circle,
  23729. diamond: diamond
  23730. };
  23731. function rect(parent, bbox, node) {
  23732. var shapeSvg = parent.insert("rect", ":first-child")
  23733. .attr("rx", node.rx)
  23734. .attr("ry", node.ry)
  23735. .attr("x", -bbox.width / 2)
  23736. .attr("y", -bbox.height / 2)
  23737. .attr("width", bbox.width)
  23738. .attr("height", bbox.height);
  23739. node.intersect = function(point) {
  23740. return intersectRect(node, point);
  23741. };
  23742. return shapeSvg;
  23743. }
  23744. function ellipse(parent, bbox, node) {
  23745. var rx = bbox.width / 2;
  23746. var ry = bbox.height / 2;
  23747. var shapeSvg = parent.insert("ellipse", ":first-child")
  23748. .attr("x", -bbox.width / 2)
  23749. .attr("y", -bbox.height / 2)
  23750. .attr("rx", rx)
  23751. .attr("ry", ry);
  23752. node.intersect = function(point) {
  23753. return intersectEllipse(node, rx, ry, point);
  23754. };
  23755. return shapeSvg;
  23756. }
  23757. function circle(parent, bbox, node) {
  23758. var r = Math.max(bbox.width, bbox.height) / 2;
  23759. var shapeSvg = parent.insert("circle", ":first-child")
  23760. .attr("x", -bbox.width / 2)
  23761. .attr("y", -bbox.height / 2)
  23762. .attr("r", r);
  23763. node.intersect = function(point) {
  23764. return intersectCircle(node, r, point);
  23765. };
  23766. return shapeSvg;
  23767. }
  23768. // Circumscribe an ellipse for the bounding box with a diamond shape. I derived
  23769. // the function to calculate the diamond shape from:
  23770. // http://mathforum.org/kb/message.jspa?messageID=3750236
  23771. function diamond(parent, bbox, node) {
  23772. var w = (bbox.width * Math.SQRT2) / 2;
  23773. var h = (bbox.height * Math.SQRT2) / 2;
  23774. var points = [
  23775. { x: 0, y: -h },
  23776. { x: -w, y: 0 },
  23777. { x: 0, y: h },
  23778. { x: w, y: 0 }
  23779. ];
  23780. var shapeSvg = parent.insert("polygon", ":first-child")
  23781. .attr("points", points.map(function(p) { return p.x + "," + p.y; }).join(" "));
  23782. node.intersect = function(p) {
  23783. return intersectPolygon(node, points, p);
  23784. };
  23785. return shapeSvg;
  23786. }
  23787. /***/ }),
  23788. /***/ "./node_modules/dagre-d3/lib/util.js":
  23789. /*!*******************************************!*\
  23790. !*** ./node_modules/dagre-d3/lib/util.js ***!
  23791. \*******************************************/
  23792. /*! no static exports found */
  23793. /***/ (function(module, exports, __webpack_require__) {
  23794. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre-d3/lib/lodash.js");
  23795. // Public utility functions
  23796. module.exports = {
  23797. isSubgraph: isSubgraph,
  23798. edgeToId: edgeToId,
  23799. applyStyle: applyStyle,
  23800. applyClass: applyClass,
  23801. applyTransition: applyTransition
  23802. };
  23803. /*
  23804. * Returns true if the specified node in the graph is a subgraph node. A
  23805. * subgraph node is one that contains other nodes.
  23806. */
  23807. function isSubgraph(g, v) {
  23808. return !!g.children(v).length;
  23809. }
  23810. function edgeToId(e) {
  23811. return escapeId(e.v) + ":" + escapeId(e.w) + ":" + escapeId(e.name);
  23812. }
  23813. var ID_DELIM = /:/g;
  23814. function escapeId(str) {
  23815. return str ? String(str).replace(ID_DELIM, "\\:") : "";
  23816. }
  23817. function applyStyle(dom, styleFn) {
  23818. if (styleFn) {
  23819. dom.attr("style", styleFn);
  23820. }
  23821. }
  23822. function applyClass(dom, classFn, otherClasses) {
  23823. if (classFn) {
  23824. dom
  23825. .attr("class", classFn)
  23826. .attr("class", otherClasses + " " + dom.attr("class"));
  23827. }
  23828. }
  23829. function applyTransition(selection, g) {
  23830. var graph = g.graph();
  23831. if (_.isPlainObject(graph)) {
  23832. var transition = graph.transition;
  23833. if (_.isFunction(transition)) {
  23834. return transition(selection);
  23835. }
  23836. }
  23837. return selection;
  23838. }
  23839. /***/ }),
  23840. /***/ "./node_modules/dagre-d3/lib/version.js":
  23841. /*!**********************************************!*\
  23842. !*** ./node_modules/dagre-d3/lib/version.js ***!
  23843. \**********************************************/
  23844. /*! no static exports found */
  23845. /***/ (function(module, exports) {
  23846. module.exports = "0.6.4";
  23847. /***/ }),
  23848. /***/ "./node_modules/dagre/index.js":
  23849. /*!*************************************!*\
  23850. !*** ./node_modules/dagre/index.js ***!
  23851. \*************************************/
  23852. /*! no static exports found */
  23853. /***/ (function(module, exports, __webpack_require__) {
  23854. /*
  23855. Copyright (c) 2012-2014 Chris Pettitt
  23856. Permission is hereby granted, free of charge, to any person obtaining a copy
  23857. of this software and associated documentation files (the "Software"), to deal
  23858. in the Software without restriction, including without limitation the rights
  23859. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  23860. copies of the Software, and to permit persons to whom the Software is
  23861. furnished to do so, subject to the following conditions:
  23862. The above copyright notice and this permission notice shall be included in
  23863. all copies or substantial portions of the Software.
  23864. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  23865. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  23866. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  23867. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  23868. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23869. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  23870. THE SOFTWARE.
  23871. */
  23872. module.exports = {
  23873. graphlib: __webpack_require__(/*! ./lib/graphlib */ "./node_modules/dagre/lib/graphlib.js"),
  23874. layout: __webpack_require__(/*! ./lib/layout */ "./node_modules/dagre/lib/layout.js"),
  23875. debug: __webpack_require__(/*! ./lib/debug */ "./node_modules/dagre/lib/debug.js"),
  23876. util: {
  23877. time: __webpack_require__(/*! ./lib/util */ "./node_modules/dagre/lib/util.js").time,
  23878. notime: __webpack_require__(/*! ./lib/util */ "./node_modules/dagre/lib/util.js").notime
  23879. },
  23880. version: __webpack_require__(/*! ./lib/version */ "./node_modules/dagre/lib/version.js")
  23881. };
  23882. /***/ }),
  23883. /***/ "./node_modules/dagre/lib/acyclic.js":
  23884. /*!*******************************************!*\
  23885. !*** ./node_modules/dagre/lib/acyclic.js ***!
  23886. \*******************************************/
  23887. /*! no static exports found */
  23888. /***/ (function(module, exports, __webpack_require__) {
  23889. "use strict";
  23890. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
  23891. var greedyFAS = __webpack_require__(/*! ./greedy-fas */ "./node_modules/dagre/lib/greedy-fas.js");
  23892. module.exports = {
  23893. run: run,
  23894. undo: undo
  23895. };
  23896. function run(g) {
  23897. var fas = (g.graph().acyclicer === "greedy"
  23898. ? greedyFAS(g, weightFn(g))
  23899. : dfsFAS(g));
  23900. _.forEach(fas, function(e) {
  23901. var label = g.edge(e);
  23902. g.removeEdge(e);
  23903. label.forwardName = e.name;
  23904. label.reversed = true;
  23905. g.setEdge(e.w, e.v, label, _.uniqueId("rev"));
  23906. });
  23907. function weightFn(g) {
  23908. return function(e) {
  23909. return g.edge(e).weight;
  23910. };
  23911. }
  23912. }
  23913. function dfsFAS(g) {
  23914. var fas = [];
  23915. var stack = {};
  23916. var visited = {};
  23917. function dfs(v) {
  23918. if (_.has(visited, v)) {
  23919. return;
  23920. }
  23921. visited[v] = true;
  23922. stack[v] = true;
  23923. _.forEach(g.outEdges(v), function(e) {
  23924. if (_.has(stack, e.w)) {
  23925. fas.push(e);
  23926. } else {
  23927. dfs(e.w);
  23928. }
  23929. });
  23930. delete stack[v];
  23931. }
  23932. _.forEach(g.nodes(), dfs);
  23933. return fas;
  23934. }
  23935. function undo(g) {
  23936. _.forEach(g.edges(), function(e) {
  23937. var label = g.edge(e);
  23938. if (label.reversed) {
  23939. g.removeEdge(e);
  23940. var forwardName = label.forwardName;
  23941. delete label.reversed;
  23942. delete label.forwardName;
  23943. g.setEdge(e.w, e.v, label, forwardName);
  23944. }
  23945. });
  23946. }
  23947. /***/ }),
  23948. /***/ "./node_modules/dagre/lib/add-border-segments.js":
  23949. /*!*******************************************************!*\
  23950. !*** ./node_modules/dagre/lib/add-border-segments.js ***!
  23951. \*******************************************************/
  23952. /*! no static exports found */
  23953. /***/ (function(module, exports, __webpack_require__) {
  23954. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
  23955. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
  23956. module.exports = addBorderSegments;
  23957. function addBorderSegments(g) {
  23958. function dfs(v) {
  23959. var children = g.children(v);
  23960. var node = g.node(v);
  23961. if (children.length) {
  23962. _.forEach(children, dfs);
  23963. }
  23964. if (_.has(node, "minRank")) {
  23965. node.borderLeft = [];
  23966. node.borderRight = [];
  23967. for (var rank = node.minRank, maxRank = node.maxRank + 1;
  23968. rank < maxRank;
  23969. ++rank) {
  23970. addBorderNode(g, "borderLeft", "_bl", v, node, rank);
  23971. addBorderNode(g, "borderRight", "_br", v, node, rank);
  23972. }
  23973. }
  23974. }
  23975. _.forEach(g.children(), dfs);
  23976. }
  23977. function addBorderNode(g, prop, prefix, sg, sgNode, rank) {
  23978. var label = { width: 0, height: 0, rank: rank, borderType: prop };
  23979. var prev = sgNode[prop][rank - 1];
  23980. var curr = util.addDummyNode(g, "border", label, prefix);
  23981. sgNode[prop][rank] = curr;
  23982. g.setParent(curr, sg);
  23983. if (prev) {
  23984. g.setEdge(prev, curr, { weight: 1 });
  23985. }
  23986. }
  23987. /***/ }),
  23988. /***/ "./node_modules/dagre/lib/coordinate-system.js":
  23989. /*!*****************************************************!*\
  23990. !*** ./node_modules/dagre/lib/coordinate-system.js ***!
  23991. \*****************************************************/
  23992. /*! no static exports found */
  23993. /***/ (function(module, exports, __webpack_require__) {
  23994. "use strict";
  23995. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
  23996. module.exports = {
  23997. adjust: adjust,
  23998. undo: undo
  23999. };
  24000. function adjust(g) {
  24001. var rankDir = g.graph().rankdir.toLowerCase();
  24002. if (rankDir === "lr" || rankDir === "rl") {
  24003. swapWidthHeight(g);
  24004. }
  24005. }
  24006. function undo(g) {
  24007. var rankDir = g.graph().rankdir.toLowerCase();
  24008. if (rankDir === "bt" || rankDir === "rl") {
  24009. reverseY(g);
  24010. }
  24011. if (rankDir === "lr" || rankDir === "rl") {
  24012. swapXY(g);
  24013. swapWidthHeight(g);
  24014. }
  24015. }
  24016. function swapWidthHeight(g) {
  24017. _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });
  24018. _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });
  24019. }
  24020. function swapWidthHeightOne(attrs) {
  24021. var w = attrs.width;
  24022. attrs.width = attrs.height;
  24023. attrs.height = w;
  24024. }
  24025. function reverseY(g) {
  24026. _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });
  24027. _.forEach(g.edges(), function(e) {
  24028. var edge = g.edge(e);
  24029. _.forEach(edge.points, reverseYOne);
  24030. if (_.has(edge, "y")) {
  24031. reverseYOne(edge);
  24032. }
  24033. });
  24034. }
  24035. function reverseYOne(attrs) {
  24036. attrs.y = -attrs.y;
  24037. }
  24038. function swapXY(g) {
  24039. _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });
  24040. _.forEach(g.edges(), function(e) {
  24041. var edge = g.edge(e);
  24042. _.forEach(edge.points, swapXYOne);
  24043. if (_.has(edge, "x")) {
  24044. swapXYOne(edge);
  24045. }
  24046. });
  24047. }
  24048. function swapXYOne(attrs) {
  24049. var x = attrs.x;
  24050. attrs.x = attrs.y;
  24051. attrs.y = x;
  24052. }
  24053. /***/ }),
  24054. /***/ "./node_modules/dagre/lib/data/list.js":
  24055. /*!*********************************************!*\
  24056. !*** ./node_modules/dagre/lib/data/list.js ***!
  24057. \*********************************************/
  24058. /*! no static exports found */
  24059. /***/ (function(module, exports) {
  24060. /*
  24061. * Simple doubly linked list implementation derived from Cormen, et al.,
  24062. * "Introduction to Algorithms".
  24063. */
  24064. module.exports = List;
  24065. function List() {
  24066. var sentinel = {};
  24067. sentinel._next = sentinel._prev = sentinel;
  24068. this._sentinel = sentinel;
  24069. }
  24070. List.prototype.dequeue = function() {
  24071. var sentinel = this._sentinel;
  24072. var entry = sentinel._prev;
  24073. if (entry !== sentinel) {
  24074. unlink(entry);
  24075. return entry;
  24076. }
  24077. };
  24078. List.prototype.enqueue = function(entry) {
  24079. var sentinel = this._sentinel;
  24080. if (entry._prev && entry._next) {
  24081. unlink(entry);
  24082. }
  24083. entry._next = sentinel._next;
  24084. sentinel._next._prev = entry;
  24085. sentinel._next = entry;
  24086. entry._prev = sentinel;
  24087. };
  24088. List.prototype.toString = function() {
  24089. var strs = [];
  24090. var sentinel = this._sentinel;
  24091. var curr = sentinel._prev;
  24092. while (curr !== sentinel) {
  24093. strs.push(JSON.stringify(curr, filterOutLinks));
  24094. curr = curr._prev;
  24095. }
  24096. return "[" + strs.join(", ") + "]";
  24097. };
  24098. function unlink(entry) {
  24099. entry._prev._next = entry._next;
  24100. entry._next._prev = entry._prev;
  24101. delete entry._next;
  24102. delete entry._prev;
  24103. }
  24104. function filterOutLinks(k, v) {
  24105. if (k !== "_next" && k !== "_prev") {
  24106. return v;
  24107. }
  24108. }
  24109. /***/ }),
  24110. /***/ "./node_modules/dagre/lib/debug.js":
  24111. /*!*****************************************!*\
  24112. !*** ./node_modules/dagre/lib/debug.js ***!
  24113. \*****************************************/
  24114. /*! no static exports found */
  24115. /***/ (function(module, exports, __webpack_require__) {
  24116. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
  24117. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
  24118. var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
  24119. module.exports = {
  24120. debugOrdering: debugOrdering
  24121. };
  24122. /* istanbul ignore next */
  24123. function debugOrdering(g) {
  24124. var layerMatrix = util.buildLayerMatrix(g);
  24125. var h = new Graph({ compound: true, multigraph: true }).setGraph({});
  24126. _.forEach(g.nodes(), function(v) {
  24127. h.setNode(v, { label: v });
  24128. h.setParent(v, "layer" + g.node(v).rank);
  24129. });
  24130. _.forEach(g.edges(), function(e) {
  24131. h.setEdge(e.v, e.w, {}, e.name);
  24132. });
  24133. _.forEach(layerMatrix, function(layer, i) {
  24134. var layerV = "layer" + i;
  24135. h.setNode(layerV, { rank: "same" });
  24136. _.reduce(layer, function(u, v) {
  24137. h.setEdge(u, v, { style: "invis" });
  24138. return v;
  24139. });
  24140. });
  24141. return h;
  24142. }
  24143. /***/ }),
  24144. /***/ "./node_modules/dagre/lib/graphlib.js":
  24145. /*!********************************************!*\
  24146. !*** ./node_modules/dagre/lib/graphlib.js ***!
  24147. \********************************************/
  24148. /*! no static exports found */
  24149. /***/ (function(module, exports, __webpack_require__) {
  24150. /* global window */
  24151. var graphlib;
  24152. if (true) {
  24153. try {
  24154. graphlib = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
  24155. } catch (e) {
  24156. // continue regardless of error
  24157. }
  24158. }
  24159. if (!graphlib) {
  24160. graphlib = window.graphlib;
  24161. }
  24162. module.exports = graphlib;
  24163. /***/ }),
  24164. /***/ "./node_modules/dagre/lib/greedy-fas.js":
  24165. /*!**********************************************!*\
  24166. !*** ./node_modules/dagre/lib/greedy-fas.js ***!
  24167. \**********************************************/
  24168. /*! no static exports found */
  24169. /***/ (function(module, exports, __webpack_require__) {
  24170. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
  24171. var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
  24172. var List = __webpack_require__(/*! ./data/list */ "./node_modules/dagre/lib/data/list.js");
  24173. /*
  24174. * A greedy heuristic for finding a feedback arc set for a graph. A feedback
  24175. * arc set is a set of edges that can be removed to make a graph acyclic.
  24176. * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, "A fast and
  24177. * effective heuristic for the feedback arc set problem." This implementation
  24178. * adjusts that from the paper to allow for weighted edges.
  24179. */
  24180. module.exports = greedyFAS;
  24181. var DEFAULT_WEIGHT_FN = _.constant(1);
  24182. function greedyFAS(g, weightFn) {
  24183. if (g.nodeCount() <= 1) {
  24184. return [];
  24185. }
  24186. var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);
  24187. var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);
  24188. // Expand multi-edges
  24189. return _.flatten(_.map(results, function(e) {
  24190. return g.outEdges(e.v, e.w);
  24191. }), true);
  24192. }
  24193. function doGreedyFAS(g, buckets, zeroIdx) {
  24194. var results = [];
  24195. var sources = buckets[buckets.length - 1];
  24196. var sinks = buckets[0];
  24197. var entry;
  24198. while (g.nodeCount()) {
  24199. while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  24200. while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  24201. if (g.nodeCount()) {
  24202. for (var i = buckets.length - 2; i > 0; --i) {
  24203. entry = buckets[i].dequeue();
  24204. if (entry) {
  24205. results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));
  24206. break;
  24207. }
  24208. }
  24209. }
  24210. }
  24211. return results;
  24212. }
  24213. function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
  24214. var results = collectPredecessors ? [] : undefined;
  24215. _.forEach(g.inEdges(entry.v), function(edge) {
  24216. var weight = g.edge(edge);
  24217. var uEntry = g.node(edge.v);
  24218. if (collectPredecessors) {
  24219. results.push({ v: edge.v, w: edge.w });
  24220. }
  24221. uEntry.out -= weight;
  24222. assignBucket(buckets, zeroIdx, uEntry);
  24223. });
  24224. _.forEach(g.outEdges(entry.v), function(edge) {
  24225. var weight = g.edge(edge);
  24226. var w = edge.w;
  24227. var wEntry = g.node(w);
  24228. wEntry["in"] -= weight;
  24229. assignBucket(buckets, zeroIdx, wEntry);
  24230. });
  24231. g.removeNode(entry.v);
  24232. return results;
  24233. }
  24234. function buildState(g, weightFn) {
  24235. var fasGraph = new Graph();
  24236. var maxIn = 0;
  24237. var maxOut = 0;
  24238. _.forEach(g.nodes(), function(v) {
  24239. fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
  24240. });
  24241. // Aggregate weights on nodes, but also sum the weights across multi-edges
  24242. // into a single edge for the fasGraph.
  24243. _.forEach(g.edges(), function(e) {
  24244. var prevWeight = fasGraph.edge(e.v, e.w) || 0;
  24245. var weight = weightFn(e);
  24246. var edgeWeight = prevWeight + weight;
  24247. fasGraph.setEdge(e.v, e.w, edgeWeight);
  24248. maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
  24249. maxIn = Math.max(maxIn, fasGraph.node(e.w)["in"] += weight);
  24250. });
  24251. var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
  24252. var zeroIdx = maxIn + 1;
  24253. _.forEach(fasGraph.nodes(), function(v) {
  24254. assignBucket(buckets, zeroIdx, fasGraph.node(v));
  24255. });
  24256. return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };
  24257. }
  24258. function assignBucket(buckets, zeroIdx, entry) {
  24259. if (!entry.out) {
  24260. buckets[0].enqueue(entry);
  24261. } else if (!entry["in"]) {
  24262. buckets[buckets.length - 1].enqueue(entry);
  24263. } else {
  24264. buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
  24265. }
  24266. }
  24267. /***/ }),
  24268. /***/ "./node_modules/dagre/lib/layout.js":
  24269. /*!******************************************!*\
  24270. !*** ./node_modules/dagre/lib/layout.js ***!
  24271. \******************************************/
  24272. /*! no static exports found */
  24273. /***/ (function(module, exports, __webpack_require__) {
  24274. "use strict";
  24275. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
  24276. var acyclic = __webpack_require__(/*! ./acyclic */ "./node_modules/dagre/lib/acyclic.js");
  24277. var normalize = __webpack_require__(/*! ./normalize */ "./node_modules/dagre/lib/normalize.js");
  24278. var rank = __webpack_require__(/*! ./rank */ "./node_modules/dagre/lib/rank/index.js");
  24279. var normalizeRanks = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js").normalizeRanks;
  24280. var parentDummyChains = __webpack_require__(/*! ./parent-dummy-chains */ "./node_modules/dagre/lib/parent-dummy-chains.js");
  24281. var removeEmptyRanks = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js").removeEmptyRanks;
  24282. var nestingGraph = __webpack_require__(/*! ./nesting-graph */ "./node_modules/dagre/lib/nesting-graph.js");
  24283. var addBorderSegments = __webpack_require__(/*! ./add-border-segments */ "./node_modules/dagre/lib/add-border-segments.js");
  24284. var coordinateSystem = __webpack_require__(/*! ./coordinate-system */ "./node_modules/dagre/lib/coordinate-system.js");
  24285. var order = __webpack_require__(/*! ./order */ "./node_modules/dagre/lib/order/index.js");
  24286. var position = __webpack_require__(/*! ./position */ "./node_modules/dagre/lib/position/index.js");
  24287. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
  24288. var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
  24289. module.exports = layout;
  24290. function layout(g, opts) {
  24291. var time = opts && opts.debugTiming ? util.time : util.notime;
  24292. time("layout", function() {
  24293. var layoutGraph =
  24294. time(" buildLayoutGraph", function() { return buildLayoutGraph(g); });
  24295. time(" runLayout", function() { runLayout(layoutGraph, time); });
  24296. time(" updateInputGraph", function() { updateInputGraph(g, layoutGraph); });
  24297. });
  24298. }
  24299. function runLayout(g, time) {
  24300. time(" makeSpaceForEdgeLabels", function() { makeSpaceForEdgeLabels(g); });
  24301. time(" removeSelfEdges", function() { removeSelfEdges(g); });
  24302. time(" acyclic", function() { acyclic.run(g); });
  24303. time(" nestingGraph.run", function() { nestingGraph.run(g); });
  24304. time(" rank", function() { rank(util.asNonCompoundGraph(g)); });
  24305. time(" injectEdgeLabelProxies", function() { injectEdgeLabelProxies(g); });
  24306. time(" removeEmptyRanks", function() { removeEmptyRanks(g); });
  24307. time(" nestingGraph.cleanup", function() { nestingGraph.cleanup(g); });
  24308. time(" normalizeRanks", function() { normalizeRanks(g); });
  24309. time(" assignRankMinMax", function() { assignRankMinMax(g); });
  24310. time(" removeEdgeLabelProxies", function() { removeEdgeLabelProxies(g); });
  24311. time(" normalize.run", function() { normalize.run(g); });
  24312. time(" parentDummyChains", function() { parentDummyChains(g); });
  24313. time(" addBorderSegments", function() { addBorderSegments(g); });
  24314. time(" order", function() { order(g); });
  24315. time(" insertSelfEdges", function() { insertSelfEdges(g); });
  24316. time(" adjustCoordinateSystem", function() { coordinateSystem.adjust(g); });
  24317. time(" position", function() { position(g); });
  24318. time(" positionSelfEdges", function() { positionSelfEdges(g); });
  24319. time(" removeBorderNodes", function() { removeBorderNodes(g); });
  24320. time(" normalize.undo", function() { normalize.undo(g); });
  24321. time(" fixupEdgeLabelCoords", function() { fixupEdgeLabelCoords(g); });
  24322. time(" undoCoordinateSystem", function() { coordinateSystem.undo(g); });
  24323. time(" translateGraph", function() { translateGraph(g); });
  24324. time(" assignNodeIntersects", function() { assignNodeIntersects(g); });
  24325. time(" reversePoints", function() { reversePointsForReversedEdges(g); });
  24326. time(" acyclic.undo", function() { acyclic.undo(g); });
  24327. }
  24328. /*
  24329. * Copies final layout information from the layout graph back to the input
  24330. * graph. This process only copies whitelisted attributes from the layout graph
  24331. * to the input graph, so it serves as a good place to determine what
  24332. * attributes can influence layout.
  24333. */
  24334. function updateInputGraph(inputGraph, layoutGraph) {
  24335. _.forEach(inputGraph.nodes(), function(v) {
  24336. var inputLabel = inputGraph.node(v);
  24337. var layoutLabel = layoutGraph.node(v);
  24338. if (inputLabel) {
  24339. inputLabel.x = layoutLabel.x;
  24340. inputLabel.y = layoutLabel.y;
  24341. if (layoutGraph.children(v).length) {
  24342. inputLabel.width = layoutLabel.width;
  24343. inputLabel.height = layoutLabel.height;
  24344. }
  24345. }
  24346. });
  24347. _.forEach(inputGraph.edges(), function(e) {
  24348. var inputLabel = inputGraph.edge(e);
  24349. var layoutLabel = layoutGraph.edge(e);
  24350. inputLabel.points = layoutLabel.points;
  24351. if (_.has(layoutLabel, "x")) {
  24352. inputLabel.x = layoutLabel.x;
  24353. inputLabel.y = layoutLabel.y;
  24354. }
  24355. });
  24356. inputGraph.graph().width = layoutGraph.graph().width;
  24357. inputGraph.graph().height = layoutGraph.graph().height;
  24358. }
  24359. var graphNumAttrs = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"];
  24360. var graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" };
  24361. var graphAttrs = ["acyclicer", "ranker", "rankdir", "align"];
  24362. var nodeNumAttrs = ["width", "height"];
  24363. var nodeDefaults = { width: 0, height: 0 };
  24364. var edgeNumAttrs = ["minlen", "weight", "width", "height", "labeloffset"];
  24365. var edgeDefaults = {
  24366. minlen: 1, weight: 1, width: 0, height: 0,
  24367. labeloffset: 10, labelpos: "r"
  24368. };
  24369. var edgeAttrs = ["labelpos"];
  24370. /*
  24371. * Constructs a new graph from the input graph, which can be used for layout.
  24372. * This process copies only whitelisted attributes from the input graph to the
  24373. * layout graph. Thus this function serves as a good place to determine what
  24374. * attributes can influence layout.
  24375. */
  24376. function buildLayoutGraph(inputGraph) {
  24377. var g = new Graph({ multigraph: true, compound: true });
  24378. var graph = canonicalize(inputGraph.graph());
  24379. g.setGraph(_.merge({},
  24380. graphDefaults,
  24381. selectNumberAttrs(graph, graphNumAttrs),
  24382. _.pick(graph, graphAttrs)));
  24383. _.forEach(inputGraph.nodes(), function(v) {
  24384. var node = canonicalize(inputGraph.node(v));
  24385. g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));
  24386. g.setParent(v, inputGraph.parent(v));
  24387. });
  24388. _.forEach(inputGraph.edges(), function(e) {
  24389. var edge = canonicalize(inputGraph.edge(e));
  24390. g.setEdge(e, _.merge({},
  24391. edgeDefaults,
  24392. selectNumberAttrs(edge, edgeNumAttrs),
  24393. _.pick(edge, edgeAttrs)));
  24394. });
  24395. return g;
  24396. }
  24397. /*
  24398. * This idea comes from the Gansner paper: to account for edge labels in our
  24399. * layout we split each rank in half by doubling minlen and halving ranksep.
  24400. * Then we can place labels at these mid-points between nodes.
  24401. *
  24402. * We also add some minimal padding to the width to push the label for the edge
  24403. * away from the edge itself a bit.
  24404. */
  24405. function makeSpaceForEdgeLabels(g) {
  24406. var graph = g.graph();
  24407. graph.ranksep /= 2;
  24408. _.forEach(g.edges(), function(e) {
  24409. var edge = g.edge(e);
  24410. edge.minlen *= 2;
  24411. if (edge.labelpos.toLowerCase() !== "c") {
  24412. if (graph.rankdir === "TB" || graph.rankdir === "BT") {
  24413. edge.width += edge.labeloffset;
  24414. } else {
  24415. edge.height += edge.labeloffset;
  24416. }
  24417. }
  24418. });
  24419. }
  24420. /*
  24421. * Creates temporary dummy nodes that capture the rank in which each edge's
  24422. * label is going to, if it has one of non-zero width and height. We do this
  24423. * so that we can safely remove empty ranks while preserving balance for the
  24424. * label's position.
  24425. */
  24426. function injectEdgeLabelProxies(g) {
  24427. _.forEach(g.edges(), function(e) {
  24428. var edge = g.edge(e);
  24429. if (edge.width && edge.height) {
  24430. var v = g.node(e.v);
  24431. var w = g.node(e.w);
  24432. var label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };
  24433. util.addDummyNode(g, "edge-proxy", label, "_ep");
  24434. }
  24435. });
  24436. }
  24437. function assignRankMinMax(g) {
  24438. var maxRank = 0;
  24439. _.forEach(g.nodes(), function(v) {
  24440. var node = g.node(v);
  24441. if (node.borderTop) {
  24442. node.minRank = g.node(node.borderTop).rank;
  24443. node.maxRank = g.node(node.borderBottom).rank;
  24444. maxRank = _.max(maxRank, node.maxRank);
  24445. }
  24446. });
  24447. g.graph().maxRank = maxRank;
  24448. }
  24449. function removeEdgeLabelProxies(g) {
  24450. _.forEach(g.nodes(), function(v) {
  24451. var node = g.node(v);
  24452. if (node.dummy === "edge-proxy") {
  24453. g.edge(node.e).labelRank = node.rank;
  24454. g.removeNode(v);
  24455. }
  24456. });
  24457. }
  24458. function translateGraph(g) {
  24459. var minX = Number.POSITIVE_INFINITY;
  24460. var maxX = 0;
  24461. var minY = Number.POSITIVE_INFINITY;
  24462. var maxY = 0;
  24463. var graphLabel = g.graph();
  24464. var marginX = graphLabel.marginx || 0;
  24465. var marginY = graphLabel.marginy || 0;
  24466. function getExtremes(attrs) {
  24467. var x = attrs.x;
  24468. var y = attrs.y;
  24469. var w = attrs.width;
  24470. var h = attrs.height;
  24471. minX = Math.min(minX, x - w / 2);
  24472. maxX = Math.max(maxX, x + w / 2);
  24473. minY = Math.min(minY, y - h / 2);
  24474. maxY = Math.max(maxY, y + h / 2);
  24475. }
  24476. _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });
  24477. _.forEach(g.edges(), function(e) {
  24478. var edge = g.edge(e);
  24479. if (_.has(edge, "x")) {
  24480. getExtremes(edge);
  24481. }
  24482. });
  24483. minX -= marginX;
  24484. minY -= marginY;
  24485. _.forEach(g.nodes(), function(v) {
  24486. var node = g.node(v);
  24487. node.x -= minX;
  24488. node.y -= minY;
  24489. });
  24490. _.forEach(g.edges(), function(e) {
  24491. var edge = g.edge(e);
  24492. _.forEach(edge.points, function(p) {
  24493. p.x -= minX;
  24494. p.y -= minY;
  24495. });
  24496. if (_.has(edge, "x")) { edge.x -= minX; }
  24497. if (_.has(edge, "y")) { edge.y -= minY; }
  24498. });
  24499. graphLabel.width = maxX - minX + marginX;
  24500. graphLabel.height = maxY - minY + marginY;
  24501. }
  24502. function assignNodeIntersects(g) {
  24503. _.forEach(g.edges(), function(e) {
  24504. var edge = g.edge(e);
  24505. var nodeV = g.node(e.v);
  24506. var nodeW = g.node(e.w);
  24507. var p1, p2;
  24508. if (!edge.points) {
  24509. edge.points = [];
  24510. p1 = nodeW;
  24511. p2 = nodeV;
  24512. } else {
  24513. p1 = edge.points[0];
  24514. p2 = edge.points[edge.points.length - 1];
  24515. }
  24516. edge.points.unshift(util.intersectRect(nodeV, p1));
  24517. edge.points.push(util.intersectRect(nodeW, p2));
  24518. });
  24519. }
  24520. function fixupEdgeLabelCoords(g) {
  24521. _.forEach(g.edges(), function(e) {
  24522. var edge = g.edge(e);
  24523. if (_.has(edge, "x")) {
  24524. if (edge.labelpos === "l" || edge.labelpos === "r") {
  24525. edge.width -= edge.labeloffset;
  24526. }
  24527. switch (edge.labelpos) {
  24528. case "l": edge.x -= edge.width / 2 + edge.labeloffset; break;
  24529. case "r": edge.x += edge.width / 2 + edge.labeloffset; break;
  24530. }
  24531. }
  24532. });
  24533. }
  24534. function reversePointsForReversedEdges(g) {
  24535. _.forEach(g.edges(), function(e) {
  24536. var edge = g.edge(e);
  24537. if (edge.reversed) {
  24538. edge.points.reverse();
  24539. }
  24540. });
  24541. }
  24542. function removeBorderNodes(g) {
  24543. _.forEach(g.nodes(), function(v) {
  24544. if (g.children(v).length) {
  24545. var node = g.node(v);
  24546. var t = g.node(node.borderTop);
  24547. var b = g.node(node.borderBottom);
  24548. var l = g.node(_.last(node.borderLeft));
  24549. var r = g.node(_.last(node.borderRight));
  24550. node.width = Math.abs(r.x - l.x);
  24551. node.height = Math.abs(b.y - t.y);
  24552. node.x = l.x + node.width / 2;
  24553. node.y = t.y + node.height / 2;
  24554. }
  24555. });
  24556. _.forEach(g.nodes(), function(v) {
  24557. if (g.node(v).dummy === "border") {
  24558. g.removeNode(v);
  24559. }
  24560. });
  24561. }
  24562. function removeSelfEdges(g) {
  24563. _.forEach(g.edges(), function(e) {
  24564. if (e.v === e.w) {
  24565. var node = g.node(e.v);
  24566. if (!node.selfEdges) {
  24567. node.selfEdges = [];
  24568. }
  24569. node.selfEdges.push({ e: e, label: g.edge(e) });
  24570. g.removeEdge(e);
  24571. }
  24572. });
  24573. }
  24574. function insertSelfEdges(g) {
  24575. var layers = util.buildLayerMatrix(g);
  24576. _.forEach(layers, function(layer) {
  24577. var orderShift = 0;
  24578. _.forEach(layer, function(v, i) {
  24579. var node = g.node(v);
  24580. node.order = i + orderShift;
  24581. _.forEach(node.selfEdges, function(selfEdge) {
  24582. util.addDummyNode(g, "selfedge", {
  24583. width: selfEdge.label.width,
  24584. height: selfEdge.label.height,
  24585. rank: node.rank,
  24586. order: i + (++orderShift),
  24587. e: selfEdge.e,
  24588. label: selfEdge.label
  24589. }, "_se");
  24590. });
  24591. delete node.selfEdges;
  24592. });
  24593. });
  24594. }
  24595. function positionSelfEdges(g) {
  24596. _.forEach(g.nodes(), function(v) {
  24597. var node = g.node(v);
  24598. if (node.dummy === "selfedge") {
  24599. var selfNode = g.node(node.e.v);
  24600. var x = selfNode.x + selfNode.width / 2;
  24601. var y = selfNode.y;
  24602. var dx = node.x - x;
  24603. var dy = selfNode.height / 2;
  24604. g.setEdge(node.e, node.label);
  24605. g.removeNode(v);
  24606. node.label.points = [
  24607. { x: x + 2 * dx / 3, y: y - dy },
  24608. { x: x + 5 * dx / 6, y: y - dy },
  24609. { x: x + dx , y: y },
  24610. { x: x + 5 * dx / 6, y: y + dy },
  24611. { x: x + 2 * dx / 3, y: y + dy }
  24612. ];
  24613. node.label.x = node.x;
  24614. node.label.y = node.y;
  24615. }
  24616. });
  24617. }
  24618. function selectNumberAttrs(obj, attrs) {
  24619. return _.mapValues(_.pick(obj, attrs), Number);
  24620. }
  24621. function canonicalize(attrs) {
  24622. var newAttrs = {};
  24623. _.forEach(attrs, function(v, k) {
  24624. newAttrs[k.toLowerCase()] = v;
  24625. });
  24626. return newAttrs;
  24627. }
  24628. /***/ }),
  24629. /***/ "./node_modules/dagre/lib/lodash.js":
  24630. /*!******************************************!*\
  24631. !*** ./node_modules/dagre/lib/lodash.js ***!
  24632. \******************************************/
  24633. /*! no static exports found */
  24634. /***/ (function(module, exports, __webpack_require__) {
  24635. /* global window */
  24636. var lodash;
  24637. if (true) {
  24638. try {
  24639. lodash = {
  24640. cloneDeep: __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js"),
  24641. constant: __webpack_require__(/*! lodash/constant */ "./node_modules/lodash/constant.js"),
  24642. defaults: __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js"),
  24643. each: __webpack_require__(/*! lodash/each */ "./node_modules/lodash/each.js"),
  24644. filter: __webpack_require__(/*! lodash/filter */ "./node_modules/lodash/filter.js"),
  24645. find: __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js"),
  24646. flatten: __webpack_require__(/*! lodash/flatten */ "./node_modules/lodash/flatten.js"),
  24647. forEach: __webpack_require__(/*! lodash/forEach */ "./node_modules/lodash/forEach.js"),
  24648. forIn: __webpack_require__(/*! lodash/forIn */ "./node_modules/lodash/forIn.js"),
  24649. has: __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js"),
  24650. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "./node_modules/lodash/isUndefined.js"),
  24651. last: __webpack_require__(/*! lodash/last */ "./node_modules/lodash/last.js"),
  24652. map: __webpack_require__(/*! lodash/map */ "./node_modules/lodash/map.js"),
  24653. mapValues: __webpack_require__(/*! lodash/mapValues */ "./node_modules/lodash/mapValues.js"),
  24654. max: __webpack_require__(/*! lodash/max */ "./node_modules/lodash/max.js"),
  24655. merge: __webpack_require__(/*! lodash/merge */ "./node_modules/lodash/merge.js"),
  24656. min: __webpack_require__(/*! lodash/min */ "./node_modules/lodash/min.js"),
  24657. minBy: __webpack_require__(/*! lodash/minBy */ "./node_modules/lodash/minBy.js"),
  24658. now: __webpack_require__(/*! lodash/now */ "./node_modules/lodash/now.js"),
  24659. pick: __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js"),
  24660. range: __webpack_require__(/*! lodash/range */ "./node_modules/lodash/range.js"),
  24661. reduce: __webpack_require__(/*! lodash/reduce */ "./node_modules/lodash/reduce.js"),
  24662. sortBy: __webpack_require__(/*! lodash/sortBy */ "./node_modules/lodash/sortBy.js"),
  24663. uniqueId: __webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js"),
  24664. values: __webpack_require__(/*! lodash/values */ "./node_modules/lodash/values.js"),
  24665. zipObject: __webpack_require__(/*! lodash/zipObject */ "./node_modules/lodash/zipObject.js"),
  24666. };
  24667. } catch (e) {
  24668. // continue regardless of error
  24669. }
  24670. }
  24671. if (!lodash) {
  24672. lodash = window._;
  24673. }
  24674. module.exports = lodash;
  24675. /***/ }),
  24676. /***/ "./node_modules/dagre/lib/nesting-graph.js":
  24677. /*!*************************************************!*\
  24678. !*** ./node_modules/dagre/lib/nesting-graph.js ***!
  24679. \*************************************************/
  24680. /*! no static exports found */
  24681. /***/ (function(module, exports, __webpack_require__) {
  24682. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
  24683. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
  24684. module.exports = {
  24685. run: run,
  24686. cleanup: cleanup
  24687. };
  24688. /*
  24689. * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,
  24690. * adds appropriate edges to ensure that all cluster nodes are placed between
  24691. * these boundries, and ensures that the graph is connected.
  24692. *
  24693. * In addition we ensure, through the use of the minlen property, that nodes
  24694. * and subgraph border nodes to not end up on the same rank.
  24695. *
  24696. * Preconditions:
  24697. *
  24698. * 1. Input graph is a DAG
  24699. * 2. Nodes in the input graph has a minlen attribute
  24700. *
  24701. * Postconditions:
  24702. *
  24703. * 1. Input graph is connected.
  24704. * 2. Dummy nodes are added for the tops and bottoms of subgraphs.
  24705. * 3. The minlen attribute for nodes is adjusted to ensure nodes do not
  24706. * get placed on the same rank as subgraph border nodes.
  24707. *
  24708. * The nesting graph idea comes from Sander, "Layout of Compound Directed
  24709. * Graphs."
  24710. */
  24711. function run(g) {
  24712. var root = util.addDummyNode(g, "root", {}, "_root");
  24713. var depths = treeDepths(g);
  24714. var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array
  24715. var nodeSep = 2 * height + 1;
  24716. g.graph().nestingRoot = root;
  24717. // Multiply minlen by nodeSep to align nodes on non-border ranks.
  24718. _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });
  24719. // Calculate a weight that is sufficient to keep subgraphs vertically compact
  24720. var weight = sumWeights(g) + 1;
  24721. // Create border nodes and link them up
  24722. _.forEach(g.children(), function(child) {
  24723. dfs(g, root, nodeSep, weight, height, depths, child);
  24724. });
  24725. // Save the multiplier for node layers for later removal of empty border
  24726. // layers.
  24727. g.graph().nodeRankFactor = nodeSep;
  24728. }
  24729. function dfs(g, root, nodeSep, weight, height, depths, v) {
  24730. var children = g.children(v);
  24731. if (!children.length) {
  24732. if (v !== root) {
  24733. g.setEdge(root, v, { weight: 0, minlen: nodeSep });
  24734. }
  24735. return;
  24736. }
  24737. var top = util.addBorderNode(g, "_bt");
  24738. var bottom = util.addBorderNode(g, "_bb");
  24739. var label = g.node(v);
  24740. g.setParent(top, v);
  24741. label.borderTop = top;
  24742. g.setParent(bottom, v);
  24743. label.borderBottom = bottom;
  24744. _.forEach(children, function(child) {
  24745. dfs(g, root, nodeSep, weight, height, depths, child);
  24746. var childNode = g.node(child);
  24747. var childTop = childNode.borderTop ? childNode.borderTop : child;
  24748. var childBottom = childNode.borderBottom ? childNode.borderBottom : child;
  24749. var thisWeight = childNode.borderTop ? weight : 2 * weight;
  24750. var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;
  24751. g.setEdge(top, childTop, {
  24752. weight: thisWeight,
  24753. minlen: minlen,
  24754. nestingEdge: true
  24755. });
  24756. g.setEdge(childBottom, bottom, {
  24757. weight: thisWeight,
  24758. minlen: minlen,
  24759. nestingEdge: true
  24760. });
  24761. });
  24762. if (!g.parent(v)) {
  24763. g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });
  24764. }
  24765. }
  24766. function treeDepths(g) {
  24767. var depths = {};
  24768. function dfs(v, depth) {
  24769. var children = g.children(v);
  24770. if (children && children.length) {
  24771. _.forEach(children, function(child) {
  24772. dfs(child, depth + 1);
  24773. });
  24774. }
  24775. depths[v] = depth;
  24776. }
  24777. _.forEach(g.children(), function(v) { dfs(v, 1); });
  24778. return depths;
  24779. }
  24780. function sumWeights(g) {
  24781. return _.reduce(g.edges(), function(acc, e) {
  24782. return acc + g.edge(e).weight;
  24783. }, 0);
  24784. }
  24785. function cleanup(g) {
  24786. var graphLabel = g.graph();
  24787. g.removeNode(graphLabel.nestingRoot);
  24788. delete graphLabel.nestingRoot;
  24789. _.forEach(g.edges(), function(e) {
  24790. var edge = g.edge(e);
  24791. if (edge.nestingEdge) {
  24792. g.removeEdge(e);
  24793. }
  24794. });
  24795. }
  24796. /***/ }),
  24797. /***/ "./node_modules/dagre/lib/normalize.js":
  24798. /*!*********************************************!*\
  24799. !*** ./node_modules/dagre/lib/normalize.js ***!
  24800. \*********************************************/
  24801. /*! no static exports found */
  24802. /***/ (function(module, exports, __webpack_require__) {
  24803. "use strict";
  24804. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
  24805. var util = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/util.js");
  24806. module.exports = {
  24807. run: run,
  24808. undo: undo
  24809. };
  24810. /*
  24811. * Breaks any long edges in the graph into short segments that span 1 layer
  24812. * each. This operation is undoable with the denormalize function.
  24813. *
  24814. * Pre-conditions:
  24815. *
  24816. * 1. The input graph is a DAG.
  24817. * 2. Each node in the graph has a "rank" property.
  24818. *
  24819. * Post-condition:
  24820. *
  24821. * 1. All edges in the graph have a length of 1.
  24822. * 2. Dummy nodes are added where edges have been split into segments.
  24823. * 3. The graph is augmented with a "dummyChains" attribute which contains
  24824. * the first dummy in each chain of dummy nodes produced.
  24825. */
  24826. function run(g) {
  24827. g.graph().dummyChains = [];
  24828. _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });
  24829. }
  24830. function normalizeEdge(g, e) {
  24831. var v = e.v;
  24832. var vRank = g.node(v).rank;
  24833. var w = e.w;
  24834. var wRank = g.node(w).rank;
  24835. var name = e.name;
  24836. var edgeLabel = g.edge(e);
  24837. var labelRank = edgeLabel.labelRank;
  24838. if (wRank === vRank + 1) return;
  24839. g.removeEdge(e);
  24840. var dummy, attrs, i;
  24841. for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {
  24842. edgeLabel.points = [];
  24843. attrs = {
  24844. width: 0, height: 0,
  24845. edgeLabel: edgeLabel, edgeObj: e,
  24846. rank: vRank
  24847. };
  24848. dummy = util.addDummyNode(g, "edge", attrs, "_d");
  24849. if (vRank === labelRank) {
  24850. attrs.width = edgeLabel.width;
  24851. attrs.height = edgeLabel.height;
  24852. attrs.dummy = "edge-label";
  24853. attrs.labelpos = edgeLabel.labelpos;
  24854. }
  24855. g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);
  24856. if (i === 0) {
  24857. g.graph().dummyChains.push(dummy);
  24858. }
  24859. v = dummy;
  24860. }
  24861. g.setEdge(v, w, { weight: edgeLabel.weight }, name);
  24862. }
  24863. function undo(g) {
  24864. _.forEach(g.graph().dummyChains, function(v) {
  24865. var node = g.node(v);
  24866. var origLabel = node.edgeLabel;
  24867. var w;
  24868. g.setEdge(node.edgeObj, origLabel);
  24869. while (node.dummy) {
  24870. w = g.successors(v)[0];
  24871. g.removeNode(v);
  24872. origLabel.points.push({ x: node.x, y: node.y });
  24873. if (node.dummy === "edge-label") {
  24874. origLabel.x = node.x;
  24875. origLabel.y = node.y;
  24876. origLabel.width = node.width;
  24877. origLabel.height = node.height;
  24878. }
  24879. v = w;
  24880. node = g.node(v);
  24881. }
  24882. });
  24883. }
  24884. /***/ }),
  24885. /***/ "./node_modules/dagre/lib/order/add-subgraph-constraints.js":
  24886. /*!******************************************************************!*\
  24887. !*** ./node_modules/dagre/lib/order/add-subgraph-constraints.js ***!
  24888. \******************************************************************/
  24889. /*! no static exports found */
  24890. /***/ (function(module, exports, __webpack_require__) {
  24891. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  24892. module.exports = addSubgraphConstraints;
  24893. function addSubgraphConstraints(g, cg, vs) {
  24894. var prev = {},
  24895. rootPrev;
  24896. _.forEach(vs, function(v) {
  24897. var child = g.parent(v),
  24898. parent,
  24899. prevChild;
  24900. while (child) {
  24901. parent = g.parent(child);
  24902. if (parent) {
  24903. prevChild = prev[parent];
  24904. prev[parent] = child;
  24905. } else {
  24906. prevChild = rootPrev;
  24907. rootPrev = child;
  24908. }
  24909. if (prevChild && prevChild !== child) {
  24910. cg.setEdge(prevChild, child);
  24911. return;
  24912. }
  24913. child = parent;
  24914. }
  24915. });
  24916. /*
  24917. function dfs(v) {
  24918. var children = v ? g.children(v) : g.children();
  24919. if (children.length) {
  24920. var min = Number.POSITIVE_INFINITY,
  24921. subgraphs = [];
  24922. _.each(children, function(child) {
  24923. var childMin = dfs(child);
  24924. if (g.children(child).length) {
  24925. subgraphs.push({ v: child, order: childMin });
  24926. }
  24927. min = Math.min(min, childMin);
  24928. });
  24929. _.reduce(_.sortBy(subgraphs, "order"), function(prev, curr) {
  24930. cg.setEdge(prev.v, curr.v);
  24931. return curr;
  24932. });
  24933. return min;
  24934. }
  24935. return g.node(v).order;
  24936. }
  24937. dfs(undefined);
  24938. */
  24939. }
  24940. /***/ }),
  24941. /***/ "./node_modules/dagre/lib/order/barycenter.js":
  24942. /*!****************************************************!*\
  24943. !*** ./node_modules/dagre/lib/order/barycenter.js ***!
  24944. \****************************************************/
  24945. /*! no static exports found */
  24946. /***/ (function(module, exports, __webpack_require__) {
  24947. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  24948. module.exports = barycenter;
  24949. function barycenter(g, movable) {
  24950. return _.map(movable, function(v) {
  24951. var inV = g.inEdges(v);
  24952. if (!inV.length) {
  24953. return { v: v };
  24954. } else {
  24955. var result = _.reduce(inV, function(acc, e) {
  24956. var edge = g.edge(e),
  24957. nodeU = g.node(e.v);
  24958. return {
  24959. sum: acc.sum + (edge.weight * nodeU.order),
  24960. weight: acc.weight + edge.weight
  24961. };
  24962. }, { sum: 0, weight: 0 });
  24963. return {
  24964. v: v,
  24965. barycenter: result.sum / result.weight,
  24966. weight: result.weight
  24967. };
  24968. }
  24969. });
  24970. }
  24971. /***/ }),
  24972. /***/ "./node_modules/dagre/lib/order/build-layer-graph.js":
  24973. /*!***********************************************************!*\
  24974. !*** ./node_modules/dagre/lib/order/build-layer-graph.js ***!
  24975. \***********************************************************/
  24976. /*! no static exports found */
  24977. /***/ (function(module, exports, __webpack_require__) {
  24978. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  24979. var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
  24980. module.exports = buildLayerGraph;
  24981. /*
  24982. * Constructs a graph that can be used to sort a layer of nodes. The graph will
  24983. * contain all base and subgraph nodes from the request layer in their original
  24984. * hierarchy and any edges that are incident on these nodes and are of the type
  24985. * requested by the "relationship" parameter.
  24986. *
  24987. * Nodes from the requested rank that do not have parents are assigned a root
  24988. * node in the output graph, which is set in the root graph attribute. This
  24989. * makes it easy to walk the hierarchy of movable nodes during ordering.
  24990. *
  24991. * Pre-conditions:
  24992. *
  24993. * 1. Input graph is a DAG
  24994. * 2. Base nodes in the input graph have a rank attribute
  24995. * 3. Subgraph nodes in the input graph has minRank and maxRank attributes
  24996. * 4. Edges have an assigned weight
  24997. *
  24998. * Post-conditions:
  24999. *
  25000. * 1. Output graph has all nodes in the movable rank with preserved
  25001. * hierarchy.
  25002. * 2. Root nodes in the movable layer are made children of the node
  25003. * indicated by the root attribute of the graph.
  25004. * 3. Non-movable nodes incident on movable nodes, selected by the
  25005. * relationship parameter, are included in the graph (without hierarchy).
  25006. * 4. Edges incident on movable nodes, selected by the relationship
  25007. * parameter, are added to the output graph.
  25008. * 5. The weights for copied edges are aggregated as need, since the output
  25009. * graph is not a multi-graph.
  25010. */
  25011. function buildLayerGraph(g, rank, relationship) {
  25012. var root = createRootNode(g),
  25013. result = new Graph({ compound: true }).setGraph({ root: root })
  25014. .setDefaultNodeLabel(function(v) { return g.node(v); });
  25015. _.forEach(g.nodes(), function(v) {
  25016. var node = g.node(v),
  25017. parent = g.parent(v);
  25018. if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {
  25019. result.setNode(v);
  25020. result.setParent(v, parent || root);
  25021. // This assumes we have only short edges!
  25022. _.forEach(g[relationship](v), function(e) {
  25023. var u = e.v === v ? e.w : e.v,
  25024. edge = result.edge(u, v),
  25025. weight = !_.isUndefined(edge) ? edge.weight : 0;
  25026. result.setEdge(u, v, { weight: g.edge(e).weight + weight });
  25027. });
  25028. if (_.has(node, "minRank")) {
  25029. result.setNode(v, {
  25030. borderLeft: node.borderLeft[rank],
  25031. borderRight: node.borderRight[rank]
  25032. });
  25033. }
  25034. }
  25035. });
  25036. return result;
  25037. }
  25038. function createRootNode(g) {
  25039. var v;
  25040. while (g.hasNode((v = _.uniqueId("_root"))));
  25041. return v;
  25042. }
  25043. /***/ }),
  25044. /***/ "./node_modules/dagre/lib/order/cross-count.js":
  25045. /*!*****************************************************!*\
  25046. !*** ./node_modules/dagre/lib/order/cross-count.js ***!
  25047. \*****************************************************/
  25048. /*! no static exports found */
  25049. /***/ (function(module, exports, __webpack_require__) {
  25050. "use strict";
  25051. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  25052. module.exports = crossCount;
  25053. /*
  25054. * A function that takes a layering (an array of layers, each with an array of
  25055. * ordererd nodes) and a graph and returns a weighted crossing count.
  25056. *
  25057. * Pre-conditions:
  25058. *
  25059. * 1. Input graph must be simple (not a multigraph), directed, and include
  25060. * only simple edges.
  25061. * 2. Edges in the input graph must have assigned weights.
  25062. *
  25063. * Post-conditions:
  25064. *
  25065. * 1. The graph and layering matrix are left unchanged.
  25066. *
  25067. * This algorithm is derived from Barth, et al., "Bilayer Cross Counting."
  25068. */
  25069. function crossCount(g, layering) {
  25070. var cc = 0;
  25071. for (var i = 1; i < layering.length; ++i) {
  25072. cc += twoLayerCrossCount(g, layering[i-1], layering[i]);
  25073. }
  25074. return cc;
  25075. }
  25076. function twoLayerCrossCount(g, northLayer, southLayer) {
  25077. // Sort all of the edges between the north and south layers by their position
  25078. // in the north layer and then the south. Map these edges to the position of
  25079. // their head in the south layer.
  25080. var southPos = _.zipObject(southLayer,
  25081. _.map(southLayer, function (v, i) { return i; }));
  25082. var southEntries = _.flatten(_.map(northLayer, function(v) {
  25083. return _.sortBy(_.map(g.outEdges(v), function(e) {
  25084. return { pos: southPos[e.w], weight: g.edge(e).weight };
  25085. }), "pos");
  25086. }), true);
  25087. // Build the accumulator tree
  25088. var firstIndex = 1;
  25089. while (firstIndex < southLayer.length) firstIndex <<= 1;
  25090. var treeSize = 2 * firstIndex - 1;
  25091. firstIndex -= 1;
  25092. var tree = _.map(new Array(treeSize), function() { return 0; });
  25093. // Calculate the weighted crossings
  25094. var cc = 0;
  25095. _.forEach(southEntries.forEach(function(entry) {
  25096. var index = entry.pos + firstIndex;
  25097. tree[index] += entry.weight;
  25098. var weightSum = 0;
  25099. while (index > 0) {
  25100. if (index % 2) {
  25101. weightSum += tree[index + 1];
  25102. }
  25103. index = (index - 1) >> 1;
  25104. tree[index] += entry.weight;
  25105. }
  25106. cc += entry.weight * weightSum;
  25107. }));
  25108. return cc;
  25109. }
  25110. /***/ }),
  25111. /***/ "./node_modules/dagre/lib/order/index.js":
  25112. /*!***********************************************!*\
  25113. !*** ./node_modules/dagre/lib/order/index.js ***!
  25114. \***********************************************/
  25115. /*! no static exports found */
  25116. /***/ (function(module, exports, __webpack_require__) {
  25117. "use strict";
  25118. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  25119. var initOrder = __webpack_require__(/*! ./init-order */ "./node_modules/dagre/lib/order/init-order.js");
  25120. var crossCount = __webpack_require__(/*! ./cross-count */ "./node_modules/dagre/lib/order/cross-count.js");
  25121. var sortSubgraph = __webpack_require__(/*! ./sort-subgraph */ "./node_modules/dagre/lib/order/sort-subgraph.js");
  25122. var buildLayerGraph = __webpack_require__(/*! ./build-layer-graph */ "./node_modules/dagre/lib/order/build-layer-graph.js");
  25123. var addSubgraphConstraints = __webpack_require__(/*! ./add-subgraph-constraints */ "./node_modules/dagre/lib/order/add-subgraph-constraints.js");
  25124. var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
  25125. var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
  25126. module.exports = order;
  25127. /*
  25128. * Applies heuristics to minimize edge crossings in the graph and sets the best
  25129. * order solution as an order attribute on each node.
  25130. *
  25131. * Pre-conditions:
  25132. *
  25133. * 1. Graph must be DAG
  25134. * 2. Graph nodes must be objects with a "rank" attribute
  25135. * 3. Graph edges must have the "weight" attribute
  25136. *
  25137. * Post-conditions:
  25138. *
  25139. * 1. Graph nodes will have an "order" attribute based on the results of the
  25140. * algorithm.
  25141. */
  25142. function order(g) {
  25143. var maxRank = util.maxRank(g),
  25144. downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), "inEdges"),
  25145. upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), "outEdges");
  25146. var layering = initOrder(g);
  25147. assignOrder(g, layering);
  25148. var bestCC = Number.POSITIVE_INFINITY,
  25149. best;
  25150. for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {
  25151. sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);
  25152. layering = util.buildLayerMatrix(g);
  25153. var cc = crossCount(g, layering);
  25154. if (cc < bestCC) {
  25155. lastBest = 0;
  25156. best = _.cloneDeep(layering);
  25157. bestCC = cc;
  25158. }
  25159. }
  25160. assignOrder(g, best);
  25161. }
  25162. function buildLayerGraphs(g, ranks, relationship) {
  25163. return _.map(ranks, function(rank) {
  25164. return buildLayerGraph(g, rank, relationship);
  25165. });
  25166. }
  25167. function sweepLayerGraphs(layerGraphs, biasRight) {
  25168. var cg = new Graph();
  25169. _.forEach(layerGraphs, function(lg) {
  25170. var root = lg.graph().root;
  25171. var sorted = sortSubgraph(lg, root, cg, biasRight);
  25172. _.forEach(sorted.vs, function(v, i) {
  25173. lg.node(v).order = i;
  25174. });
  25175. addSubgraphConstraints(lg, cg, sorted.vs);
  25176. });
  25177. }
  25178. function assignOrder(g, layering) {
  25179. _.forEach(layering, function(layer) {
  25180. _.forEach(layer, function(v, i) {
  25181. g.node(v).order = i;
  25182. });
  25183. });
  25184. }
  25185. /***/ }),
  25186. /***/ "./node_modules/dagre/lib/order/init-order.js":
  25187. /*!****************************************************!*\
  25188. !*** ./node_modules/dagre/lib/order/init-order.js ***!
  25189. \****************************************************/
  25190. /*! no static exports found */
  25191. /***/ (function(module, exports, __webpack_require__) {
  25192. "use strict";
  25193. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  25194. module.exports = initOrder;
  25195. /*
  25196. * Assigns an initial order value for each node by performing a DFS search
  25197. * starting from nodes in the first rank. Nodes are assigned an order in their
  25198. * rank as they are first visited.
  25199. *
  25200. * This approach comes from Gansner, et al., "A Technique for Drawing Directed
  25201. * Graphs."
  25202. *
  25203. * Returns a layering matrix with an array per layer and each layer sorted by
  25204. * the order of its nodes.
  25205. */
  25206. function initOrder(g) {
  25207. var visited = {};
  25208. var simpleNodes = _.filter(g.nodes(), function(v) {
  25209. return !g.children(v).length;
  25210. });
  25211. var maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; }));
  25212. var layers = _.map(_.range(maxRank + 1), function() { return []; });
  25213. function dfs(v) {
  25214. if (_.has(visited, v)) return;
  25215. visited[v] = true;
  25216. var node = g.node(v);
  25217. layers[node.rank].push(v);
  25218. _.forEach(g.successors(v), dfs);
  25219. }
  25220. var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });
  25221. _.forEach(orderedVs, dfs);
  25222. return layers;
  25223. }
  25224. /***/ }),
  25225. /***/ "./node_modules/dagre/lib/order/resolve-conflicts.js":
  25226. /*!***********************************************************!*\
  25227. !*** ./node_modules/dagre/lib/order/resolve-conflicts.js ***!
  25228. \***********************************************************/
  25229. /*! no static exports found */
  25230. /***/ (function(module, exports, __webpack_require__) {
  25231. "use strict";
  25232. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  25233. module.exports = resolveConflicts;
  25234. /*
  25235. * Given a list of entries of the form {v, barycenter, weight} and a
  25236. * constraint graph this function will resolve any conflicts between the
  25237. * constraint graph and the barycenters for the entries. If the barycenters for
  25238. * an entry would violate a constraint in the constraint graph then we coalesce
  25239. * the nodes in the conflict into a new node that respects the contraint and
  25240. * aggregates barycenter and weight information.
  25241. *
  25242. * This implementation is based on the description in Forster, "A Fast and
  25243. * Simple Hueristic for Constrained Two-Level Crossing Reduction," thought it
  25244. * differs in some specific details.
  25245. *
  25246. * Pre-conditions:
  25247. *
  25248. * 1. Each entry has the form {v, barycenter, weight}, or if the node has
  25249. * no barycenter, then {v}.
  25250. *
  25251. * Returns:
  25252. *
  25253. * A new list of entries of the form {vs, i, barycenter, weight}. The list
  25254. * `vs` may either be a singleton or it may be an aggregation of nodes
  25255. * ordered such that they do not violate constraints from the constraint
  25256. * graph. The property `i` is the lowest original index of any of the
  25257. * elements in `vs`.
  25258. */
  25259. function resolveConflicts(entries, cg) {
  25260. var mappedEntries = {};
  25261. _.forEach(entries, function(entry, i) {
  25262. var tmp = mappedEntries[entry.v] = {
  25263. indegree: 0,
  25264. "in": [],
  25265. out: [],
  25266. vs: [entry.v],
  25267. i: i
  25268. };
  25269. if (!_.isUndefined(entry.barycenter)) {
  25270. tmp.barycenter = entry.barycenter;
  25271. tmp.weight = entry.weight;
  25272. }
  25273. });
  25274. _.forEach(cg.edges(), function(e) {
  25275. var entryV = mappedEntries[e.v];
  25276. var entryW = mappedEntries[e.w];
  25277. if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {
  25278. entryW.indegree++;
  25279. entryV.out.push(mappedEntries[e.w]);
  25280. }
  25281. });
  25282. var sourceSet = _.filter(mappedEntries, function(entry) {
  25283. return !entry.indegree;
  25284. });
  25285. return doResolveConflicts(sourceSet);
  25286. }
  25287. function doResolveConflicts(sourceSet) {
  25288. var entries = [];
  25289. function handleIn(vEntry) {
  25290. return function(uEntry) {
  25291. if (uEntry.merged) {
  25292. return;
  25293. }
  25294. if (_.isUndefined(uEntry.barycenter) ||
  25295. _.isUndefined(vEntry.barycenter) ||
  25296. uEntry.barycenter >= vEntry.barycenter) {
  25297. mergeEntries(vEntry, uEntry);
  25298. }
  25299. };
  25300. }
  25301. function handleOut(vEntry) {
  25302. return function(wEntry) {
  25303. wEntry["in"].push(vEntry);
  25304. if (--wEntry.indegree === 0) {
  25305. sourceSet.push(wEntry);
  25306. }
  25307. };
  25308. }
  25309. while (sourceSet.length) {
  25310. var entry = sourceSet.pop();
  25311. entries.push(entry);
  25312. _.forEach(entry["in"].reverse(), handleIn(entry));
  25313. _.forEach(entry.out, handleOut(entry));
  25314. }
  25315. return _.map(_.filter(entries, function(entry) { return !entry.merged; }),
  25316. function(entry) {
  25317. return _.pick(entry, ["vs", "i", "barycenter", "weight"]);
  25318. });
  25319. }
  25320. function mergeEntries(target, source) {
  25321. var sum = 0;
  25322. var weight = 0;
  25323. if (target.weight) {
  25324. sum += target.barycenter * target.weight;
  25325. weight += target.weight;
  25326. }
  25327. if (source.weight) {
  25328. sum += source.barycenter * source.weight;
  25329. weight += source.weight;
  25330. }
  25331. target.vs = source.vs.concat(target.vs);
  25332. target.barycenter = sum / weight;
  25333. target.weight = weight;
  25334. target.i = Math.min(source.i, target.i);
  25335. source.merged = true;
  25336. }
  25337. /***/ }),
  25338. /***/ "./node_modules/dagre/lib/order/sort-subgraph.js":
  25339. /*!*******************************************************!*\
  25340. !*** ./node_modules/dagre/lib/order/sort-subgraph.js ***!
  25341. \*******************************************************/
  25342. /*! no static exports found */
  25343. /***/ (function(module, exports, __webpack_require__) {
  25344. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  25345. var barycenter = __webpack_require__(/*! ./barycenter */ "./node_modules/dagre/lib/order/barycenter.js");
  25346. var resolveConflicts = __webpack_require__(/*! ./resolve-conflicts */ "./node_modules/dagre/lib/order/resolve-conflicts.js");
  25347. var sort = __webpack_require__(/*! ./sort */ "./node_modules/dagre/lib/order/sort.js");
  25348. module.exports = sortSubgraph;
  25349. function sortSubgraph(g, v, cg, biasRight) {
  25350. var movable = g.children(v);
  25351. var node = g.node(v);
  25352. var bl = node ? node.borderLeft : undefined;
  25353. var br = node ? node.borderRight: undefined;
  25354. var subgraphs = {};
  25355. if (bl) {
  25356. movable = _.filter(movable, function(w) {
  25357. return w !== bl && w !== br;
  25358. });
  25359. }
  25360. var barycenters = barycenter(g, movable);
  25361. _.forEach(barycenters, function(entry) {
  25362. if (g.children(entry.v).length) {
  25363. var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);
  25364. subgraphs[entry.v] = subgraphResult;
  25365. if (_.has(subgraphResult, "barycenter")) {
  25366. mergeBarycenters(entry, subgraphResult);
  25367. }
  25368. }
  25369. });
  25370. var entries = resolveConflicts(barycenters, cg);
  25371. expandSubgraphs(entries, subgraphs);
  25372. var result = sort(entries, biasRight);
  25373. if (bl) {
  25374. result.vs = _.flatten([bl, result.vs, br], true);
  25375. if (g.predecessors(bl).length) {
  25376. var blPred = g.node(g.predecessors(bl)[0]),
  25377. brPred = g.node(g.predecessors(br)[0]);
  25378. if (!_.has(result, "barycenter")) {
  25379. result.barycenter = 0;
  25380. result.weight = 0;
  25381. }
  25382. result.barycenter = (result.barycenter * result.weight +
  25383. blPred.order + brPred.order) / (result.weight + 2);
  25384. result.weight += 2;
  25385. }
  25386. }
  25387. return result;
  25388. }
  25389. function expandSubgraphs(entries, subgraphs) {
  25390. _.forEach(entries, function(entry) {
  25391. entry.vs = _.flatten(entry.vs.map(function(v) {
  25392. if (subgraphs[v]) {
  25393. return subgraphs[v].vs;
  25394. }
  25395. return v;
  25396. }), true);
  25397. });
  25398. }
  25399. function mergeBarycenters(target, other) {
  25400. if (!_.isUndefined(target.barycenter)) {
  25401. target.barycenter = (target.barycenter * target.weight +
  25402. other.barycenter * other.weight) /
  25403. (target.weight + other.weight);
  25404. target.weight += other.weight;
  25405. } else {
  25406. target.barycenter = other.barycenter;
  25407. target.weight = other.weight;
  25408. }
  25409. }
  25410. /***/ }),
  25411. /***/ "./node_modules/dagre/lib/order/sort.js":
  25412. /*!**********************************************!*\
  25413. !*** ./node_modules/dagre/lib/order/sort.js ***!
  25414. \**********************************************/
  25415. /*! no static exports found */
  25416. /***/ (function(module, exports, __webpack_require__) {
  25417. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  25418. var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
  25419. module.exports = sort;
  25420. function sort(entries, biasRight) {
  25421. var parts = util.partition(entries, function(entry) {
  25422. return _.has(entry, "barycenter");
  25423. });
  25424. var sortable = parts.lhs,
  25425. unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),
  25426. vs = [],
  25427. sum = 0,
  25428. weight = 0,
  25429. vsIndex = 0;
  25430. sortable.sort(compareWithBias(!!biasRight));
  25431. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  25432. _.forEach(sortable, function (entry) {
  25433. vsIndex += entry.vs.length;
  25434. vs.push(entry.vs);
  25435. sum += entry.barycenter * entry.weight;
  25436. weight += entry.weight;
  25437. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  25438. });
  25439. var result = { vs: _.flatten(vs, true) };
  25440. if (weight) {
  25441. result.barycenter = sum / weight;
  25442. result.weight = weight;
  25443. }
  25444. return result;
  25445. }
  25446. function consumeUnsortable(vs, unsortable, index) {
  25447. var last;
  25448. while (unsortable.length && (last = _.last(unsortable)).i <= index) {
  25449. unsortable.pop();
  25450. vs.push(last.vs);
  25451. index++;
  25452. }
  25453. return index;
  25454. }
  25455. function compareWithBias(bias) {
  25456. return function(entryV, entryW) {
  25457. if (entryV.barycenter < entryW.barycenter) {
  25458. return -1;
  25459. } else if (entryV.barycenter > entryW.barycenter) {
  25460. return 1;
  25461. }
  25462. return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;
  25463. };
  25464. }
  25465. /***/ }),
  25466. /***/ "./node_modules/dagre/lib/parent-dummy-chains.js":
  25467. /*!*******************************************************!*\
  25468. !*** ./node_modules/dagre/lib/parent-dummy-chains.js ***!
  25469. \*******************************************************/
  25470. /*! no static exports found */
  25471. /***/ (function(module, exports, __webpack_require__) {
  25472. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
  25473. module.exports = parentDummyChains;
  25474. function parentDummyChains(g) {
  25475. var postorderNums = postorder(g);
  25476. _.forEach(g.graph().dummyChains, function(v) {
  25477. var node = g.node(v);
  25478. var edgeObj = node.edgeObj;
  25479. var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);
  25480. var path = pathData.path;
  25481. var lca = pathData.lca;
  25482. var pathIdx = 0;
  25483. var pathV = path[pathIdx];
  25484. var ascending = true;
  25485. while (v !== edgeObj.w) {
  25486. node = g.node(v);
  25487. if (ascending) {
  25488. while ((pathV = path[pathIdx]) !== lca &&
  25489. g.node(pathV).maxRank < node.rank) {
  25490. pathIdx++;
  25491. }
  25492. if (pathV === lca) {
  25493. ascending = false;
  25494. }
  25495. }
  25496. if (!ascending) {
  25497. while (pathIdx < path.length - 1 &&
  25498. g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {
  25499. pathIdx++;
  25500. }
  25501. pathV = path[pathIdx];
  25502. }
  25503. g.setParent(v, pathV);
  25504. v = g.successors(v)[0];
  25505. }
  25506. });
  25507. }
  25508. // Find a path from v to w through the lowest common ancestor (LCA). Return the
  25509. // full path and the LCA.
  25510. function findPath(g, postorderNums, v, w) {
  25511. var vPath = [];
  25512. var wPath = [];
  25513. var low = Math.min(postorderNums[v].low, postorderNums[w].low);
  25514. var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);
  25515. var parent;
  25516. var lca;
  25517. // Traverse up from v to find the LCA
  25518. parent = v;
  25519. do {
  25520. parent = g.parent(parent);
  25521. vPath.push(parent);
  25522. } while (parent &&
  25523. (postorderNums[parent].low > low || lim > postorderNums[parent].lim));
  25524. lca = parent;
  25525. // Traverse from w to LCA
  25526. parent = w;
  25527. while ((parent = g.parent(parent)) !== lca) {
  25528. wPath.push(parent);
  25529. }
  25530. return { path: vPath.concat(wPath.reverse()), lca: lca };
  25531. }
  25532. function postorder(g) {
  25533. var result = {};
  25534. var lim = 0;
  25535. function dfs(v) {
  25536. var low = lim;
  25537. _.forEach(g.children(v), dfs);
  25538. result[v] = { low: low, lim: lim++ };
  25539. }
  25540. _.forEach(g.children(), dfs);
  25541. return result;
  25542. }
  25543. /***/ }),
  25544. /***/ "./node_modules/dagre/lib/position/bk.js":
  25545. /*!***********************************************!*\
  25546. !*** ./node_modules/dagre/lib/position/bk.js ***!
  25547. \***********************************************/
  25548. /*! no static exports found */
  25549. /***/ (function(module, exports, __webpack_require__) {
  25550. "use strict";
  25551. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  25552. var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
  25553. var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
  25554. /*
  25555. * This module provides coordinate assignment based on Brandes and Köpf, "Fast
  25556. * and Simple Horizontal Coordinate Assignment."
  25557. */
  25558. module.exports = {
  25559. positionX: positionX,
  25560. findType1Conflicts: findType1Conflicts,
  25561. findType2Conflicts: findType2Conflicts,
  25562. addConflict: addConflict,
  25563. hasConflict: hasConflict,
  25564. verticalAlignment: verticalAlignment,
  25565. horizontalCompaction: horizontalCompaction,
  25566. alignCoordinates: alignCoordinates,
  25567. findSmallestWidthAlignment: findSmallestWidthAlignment,
  25568. balance: balance
  25569. };
  25570. /*
  25571. * Marks all edges in the graph with a type-1 conflict with the "type1Conflict"
  25572. * property. A type-1 conflict is one where a non-inner segment crosses an
  25573. * inner segment. An inner segment is an edge with both incident nodes marked
  25574. * with the "dummy" property.
  25575. *
  25576. * This algorithm scans layer by layer, starting with the second, for type-1
  25577. * conflicts between the current layer and the previous layer. For each layer
  25578. * it scans the nodes from left to right until it reaches one that is incident
  25579. * on an inner segment. It then scans predecessors to determine if they have
  25580. * edges that cross that inner segment. At the end a final scan is done for all
  25581. * nodes on the current rank to see if they cross the last visited inner
  25582. * segment.
  25583. *
  25584. * This algorithm (safely) assumes that a dummy node will only be incident on a
  25585. * single node in the layers being scanned.
  25586. */
  25587. function findType1Conflicts(g, layering) {
  25588. var conflicts = {};
  25589. function visitLayer(prevLayer, layer) {
  25590. var
  25591. // last visited node in the previous layer that is incident on an inner
  25592. // segment.
  25593. k0 = 0,
  25594. // Tracks the last node in this layer scanned for crossings with a type-1
  25595. // segment.
  25596. scanPos = 0,
  25597. prevLayerLength = prevLayer.length,
  25598. lastNode = _.last(layer);
  25599. _.forEach(layer, function(v, i) {
  25600. var w = findOtherInnerSegmentNode(g, v),
  25601. k1 = w ? g.node(w).order : prevLayerLength;
  25602. if (w || v === lastNode) {
  25603. _.forEach(layer.slice(scanPos, i +1), function(scanNode) {
  25604. _.forEach(g.predecessors(scanNode), function(u) {
  25605. var uLabel = g.node(u),
  25606. uPos = uLabel.order;
  25607. if ((uPos < k0 || k1 < uPos) &&
  25608. !(uLabel.dummy && g.node(scanNode).dummy)) {
  25609. addConflict(conflicts, u, scanNode);
  25610. }
  25611. });
  25612. });
  25613. scanPos = i + 1;
  25614. k0 = k1;
  25615. }
  25616. });
  25617. return layer;
  25618. }
  25619. _.reduce(layering, visitLayer);
  25620. return conflicts;
  25621. }
  25622. function findType2Conflicts(g, layering) {
  25623. var conflicts = {};
  25624. function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
  25625. var v;
  25626. _.forEach(_.range(southPos, southEnd), function(i) {
  25627. v = south[i];
  25628. if (g.node(v).dummy) {
  25629. _.forEach(g.predecessors(v), function(u) {
  25630. var uNode = g.node(u);
  25631. if (uNode.dummy &&
  25632. (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {
  25633. addConflict(conflicts, u, v);
  25634. }
  25635. });
  25636. }
  25637. });
  25638. }
  25639. function visitLayer(north, south) {
  25640. var prevNorthPos = -1,
  25641. nextNorthPos,
  25642. southPos = 0;
  25643. _.forEach(south, function(v, southLookahead) {
  25644. if (g.node(v).dummy === "border") {
  25645. var predecessors = g.predecessors(v);
  25646. if (predecessors.length) {
  25647. nextNorthPos = g.node(predecessors[0]).order;
  25648. scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
  25649. southPos = southLookahead;
  25650. prevNorthPos = nextNorthPos;
  25651. }
  25652. }
  25653. scan(south, southPos, south.length, nextNorthPos, north.length);
  25654. });
  25655. return south;
  25656. }
  25657. _.reduce(layering, visitLayer);
  25658. return conflicts;
  25659. }
  25660. function findOtherInnerSegmentNode(g, v) {
  25661. if (g.node(v).dummy) {
  25662. return _.find(g.predecessors(v), function(u) {
  25663. return g.node(u).dummy;
  25664. });
  25665. }
  25666. }
  25667. function addConflict(conflicts, v, w) {
  25668. if (v > w) {
  25669. var tmp = v;
  25670. v = w;
  25671. w = tmp;
  25672. }
  25673. var conflictsV = conflicts[v];
  25674. if (!conflictsV) {
  25675. conflicts[v] = conflictsV = {};
  25676. }
  25677. conflictsV[w] = true;
  25678. }
  25679. function hasConflict(conflicts, v, w) {
  25680. if (v > w) {
  25681. var tmp = v;
  25682. v = w;
  25683. w = tmp;
  25684. }
  25685. return _.has(conflicts[v], w);
  25686. }
  25687. /*
  25688. * Try to align nodes into vertical "blocks" where possible. This algorithm
  25689. * attempts to align a node with one of its median neighbors. If the edge
  25690. * connecting a neighbor is a type-1 conflict then we ignore that possibility.
  25691. * If a previous node has already formed a block with a node after the node
  25692. * we're trying to form a block with, we also ignore that possibility - our
  25693. * blocks would be split in that scenario.
  25694. */
  25695. function verticalAlignment(g, layering, conflicts, neighborFn) {
  25696. var root = {},
  25697. align = {},
  25698. pos = {};
  25699. // We cache the position here based on the layering because the graph and
  25700. // layering may be out of sync. The layering matrix is manipulated to
  25701. // generate different extreme alignments.
  25702. _.forEach(layering, function(layer) {
  25703. _.forEach(layer, function(v, order) {
  25704. root[v] = v;
  25705. align[v] = v;
  25706. pos[v] = order;
  25707. });
  25708. });
  25709. _.forEach(layering, function(layer) {
  25710. var prevIdx = -1;
  25711. _.forEach(layer, function(v) {
  25712. var ws = neighborFn(v);
  25713. if (ws.length) {
  25714. ws = _.sortBy(ws, function(w) { return pos[w]; });
  25715. var mp = (ws.length - 1) / 2;
  25716. for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
  25717. var w = ws[i];
  25718. if (align[v] === v &&
  25719. prevIdx < pos[w] &&
  25720. !hasConflict(conflicts, v, w)) {
  25721. align[w] = v;
  25722. align[v] = root[v] = root[w];
  25723. prevIdx = pos[w];
  25724. }
  25725. }
  25726. }
  25727. });
  25728. });
  25729. return { root: root, align: align };
  25730. }
  25731. function horizontalCompaction(g, layering, root, align, reverseSep) {
  25732. // This portion of the algorithm differs from BK due to a number of problems.
  25733. // Instead of their algorithm we construct a new block graph and do two
  25734. // sweeps. The first sweep places blocks with the smallest possible
  25735. // coordinates. The second sweep removes unused space by moving blocks to the
  25736. // greatest coordinates without violating separation.
  25737. var xs = {},
  25738. blockG = buildBlockGraph(g, layering, root, reverseSep),
  25739. borderType = reverseSep ? "borderLeft" : "borderRight";
  25740. function iterate(setXsFunc, nextNodesFunc) {
  25741. var stack = blockG.nodes();
  25742. var elem = stack.pop();
  25743. var visited = {};
  25744. while (elem) {
  25745. if (visited[elem]) {
  25746. setXsFunc(elem);
  25747. } else {
  25748. visited[elem] = true;
  25749. stack.push(elem);
  25750. stack = stack.concat(nextNodesFunc(elem));
  25751. }
  25752. elem = stack.pop();
  25753. }
  25754. }
  25755. // First pass, assign smallest coordinates
  25756. function pass1(elem) {
  25757. xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
  25758. return Math.max(acc, xs[e.v] + blockG.edge(e));
  25759. }, 0);
  25760. }
  25761. // Second pass, assign greatest coordinates
  25762. function pass2(elem) {
  25763. var min = blockG.outEdges(elem).reduce(function(acc, e) {
  25764. return Math.min(acc, xs[e.w] - blockG.edge(e));
  25765. }, Number.POSITIVE_INFINITY);
  25766. var node = g.node(elem);
  25767. if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {
  25768. xs[elem] = Math.max(xs[elem], min);
  25769. }
  25770. }
  25771. iterate(pass1, blockG.predecessors.bind(blockG));
  25772. iterate(pass2, blockG.successors.bind(blockG));
  25773. // Assign x coordinates to all nodes
  25774. _.forEach(align, function(v) {
  25775. xs[v] = xs[root[v]];
  25776. });
  25777. return xs;
  25778. }
  25779. function buildBlockGraph(g, layering, root, reverseSep) {
  25780. var blockGraph = new Graph(),
  25781. graphLabel = g.graph(),
  25782. sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
  25783. _.forEach(layering, function(layer) {
  25784. var u;
  25785. _.forEach(layer, function(v) {
  25786. var vRoot = root[v];
  25787. blockGraph.setNode(vRoot);
  25788. if (u) {
  25789. var uRoot = root[u],
  25790. prevMax = blockGraph.edge(uRoot, vRoot);
  25791. blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
  25792. }
  25793. u = v;
  25794. });
  25795. });
  25796. return blockGraph;
  25797. }
  25798. /*
  25799. * Returns the alignment that has the smallest width of the given alignments.
  25800. */
  25801. function findSmallestWidthAlignment(g, xss) {
  25802. return _.minBy(_.values(xss), function (xs) {
  25803. var max = Number.NEGATIVE_INFINITY;
  25804. var min = Number.POSITIVE_INFINITY;
  25805. _.forIn(xs, function (x, v) {
  25806. var halfWidth = width(g, v) / 2;
  25807. max = Math.max(x + halfWidth, max);
  25808. min = Math.min(x - halfWidth, min);
  25809. });
  25810. return max - min;
  25811. });
  25812. }
  25813. /*
  25814. * Align the coordinates of each of the layout alignments such that
  25815. * left-biased alignments have their minimum coordinate at the same point as
  25816. * the minimum coordinate of the smallest width alignment and right-biased
  25817. * alignments have their maximum coordinate at the same point as the maximum
  25818. * coordinate of the smallest width alignment.
  25819. */
  25820. function alignCoordinates(xss, alignTo) {
  25821. var alignToVals = _.values(alignTo),
  25822. alignToMin = _.min(alignToVals),
  25823. alignToMax = _.max(alignToVals);
  25824. _.forEach(["u", "d"], function(vert) {
  25825. _.forEach(["l", "r"], function(horiz) {
  25826. var alignment = vert + horiz,
  25827. xs = xss[alignment],
  25828. delta;
  25829. if (xs === alignTo) return;
  25830. var xsVals = _.values(xs);
  25831. delta = horiz === "l" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);
  25832. if (delta) {
  25833. xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });
  25834. }
  25835. });
  25836. });
  25837. }
  25838. function balance(xss, align) {
  25839. return _.mapValues(xss.ul, function(ignore, v) {
  25840. if (align) {
  25841. return xss[align.toLowerCase()][v];
  25842. } else {
  25843. var xs = _.sortBy(_.map(xss, v));
  25844. return (xs[1] + xs[2]) / 2;
  25845. }
  25846. });
  25847. }
  25848. function positionX(g) {
  25849. var layering = util.buildLayerMatrix(g);
  25850. var conflicts = _.merge(
  25851. findType1Conflicts(g, layering),
  25852. findType2Conflicts(g, layering));
  25853. var xss = {};
  25854. var adjustedLayering;
  25855. _.forEach(["u", "d"], function(vert) {
  25856. adjustedLayering = vert === "u" ? layering : _.values(layering).reverse();
  25857. _.forEach(["l", "r"], function(horiz) {
  25858. if (horiz === "r") {
  25859. adjustedLayering = _.map(adjustedLayering, function(inner) {
  25860. return _.values(inner).reverse();
  25861. });
  25862. }
  25863. var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
  25864. var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
  25865. var xs = horizontalCompaction(g, adjustedLayering,
  25866. align.root, align.align, horiz === "r");
  25867. if (horiz === "r") {
  25868. xs = _.mapValues(xs, function(x) { return -x; });
  25869. }
  25870. xss[vert + horiz] = xs;
  25871. });
  25872. });
  25873. var smallestWidth = findSmallestWidthAlignment(g, xss);
  25874. alignCoordinates(xss, smallestWidth);
  25875. return balance(xss, g.graph().align);
  25876. }
  25877. function sep(nodeSep, edgeSep, reverseSep) {
  25878. return function(g, v, w) {
  25879. var vLabel = g.node(v);
  25880. var wLabel = g.node(w);
  25881. var sum = 0;
  25882. var delta;
  25883. sum += vLabel.width / 2;
  25884. if (_.has(vLabel, "labelpos")) {
  25885. switch (vLabel.labelpos.toLowerCase()) {
  25886. case "l": delta = -vLabel.width / 2; break;
  25887. case "r": delta = vLabel.width / 2; break;
  25888. }
  25889. }
  25890. if (delta) {
  25891. sum += reverseSep ? delta : -delta;
  25892. }
  25893. delta = 0;
  25894. sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
  25895. sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
  25896. sum += wLabel.width / 2;
  25897. if (_.has(wLabel, "labelpos")) {
  25898. switch (wLabel.labelpos.toLowerCase()) {
  25899. case "l": delta = wLabel.width / 2; break;
  25900. case "r": delta = -wLabel.width / 2; break;
  25901. }
  25902. }
  25903. if (delta) {
  25904. sum += reverseSep ? delta : -delta;
  25905. }
  25906. delta = 0;
  25907. return sum;
  25908. };
  25909. }
  25910. function width(g, v) {
  25911. return g.node(v).width;
  25912. }
  25913. /***/ }),
  25914. /***/ "./node_modules/dagre/lib/position/index.js":
  25915. /*!**************************************************!*\
  25916. !*** ./node_modules/dagre/lib/position/index.js ***!
  25917. \**************************************************/
  25918. /*! no static exports found */
  25919. /***/ (function(module, exports, __webpack_require__) {
  25920. "use strict";
  25921. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  25922. var util = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js");
  25923. var positionX = __webpack_require__(/*! ./bk */ "./node_modules/dagre/lib/position/bk.js").positionX;
  25924. module.exports = position;
  25925. function position(g) {
  25926. g = util.asNonCompoundGraph(g);
  25927. positionY(g);
  25928. _.forEach(positionX(g), function(x, v) {
  25929. g.node(v).x = x;
  25930. });
  25931. }
  25932. function positionY(g) {
  25933. var layering = util.buildLayerMatrix(g);
  25934. var rankSep = g.graph().ranksep;
  25935. var prevY = 0;
  25936. _.forEach(layering, function(layer) {
  25937. var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));
  25938. _.forEach(layer, function(v) {
  25939. g.node(v).y = prevY + maxHeight / 2;
  25940. });
  25941. prevY += maxHeight + rankSep;
  25942. });
  25943. }
  25944. /***/ }),
  25945. /***/ "./node_modules/dagre/lib/rank/feasible-tree.js":
  25946. /*!******************************************************!*\
  25947. !*** ./node_modules/dagre/lib/rank/feasible-tree.js ***!
  25948. \******************************************************/
  25949. /*! no static exports found */
  25950. /***/ (function(module, exports, __webpack_require__) {
  25951. "use strict";
  25952. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  25953. var Graph = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
  25954. var slack = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js").slack;
  25955. module.exports = feasibleTree;
  25956. /*
  25957. * Constructs a spanning tree with tight edges and adjusted the input node's
  25958. * ranks to achieve this. A tight edge is one that is has a length that matches
  25959. * its "minlen" attribute.
  25960. *
  25961. * The basic structure for this function is derived from Gansner, et al., "A
  25962. * Technique for Drawing Directed Graphs."
  25963. *
  25964. * Pre-conditions:
  25965. *
  25966. * 1. Graph must be a DAG.
  25967. * 2. Graph must be connected.
  25968. * 3. Graph must have at least one node.
  25969. * 5. Graph nodes must have been previously assigned a "rank" property that
  25970. * respects the "minlen" property of incident edges.
  25971. * 6. Graph edges must have a "minlen" property.
  25972. *
  25973. * Post-conditions:
  25974. *
  25975. * - Graph nodes will have their rank adjusted to ensure that all edges are
  25976. * tight.
  25977. *
  25978. * Returns a tree (undirected graph) that is constructed using only "tight"
  25979. * edges.
  25980. */
  25981. function feasibleTree(g) {
  25982. var t = new Graph({ directed: false });
  25983. // Choose arbitrary node from which to start our tree
  25984. var start = g.nodes()[0];
  25985. var size = g.nodeCount();
  25986. t.setNode(start, {});
  25987. var edge, delta;
  25988. while (tightTree(t, g) < size) {
  25989. edge = findMinSlackEdge(t, g);
  25990. delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
  25991. shiftRanks(t, g, delta);
  25992. }
  25993. return t;
  25994. }
  25995. /*
  25996. * Finds a maximal tree of tight edges and returns the number of nodes in the
  25997. * tree.
  25998. */
  25999. function tightTree(t, g) {
  26000. function dfs(v) {
  26001. _.forEach(g.nodeEdges(v), function(e) {
  26002. var edgeV = e.v,
  26003. w = (v === edgeV) ? e.w : edgeV;
  26004. if (!t.hasNode(w) && !slack(g, e)) {
  26005. t.setNode(w, {});
  26006. t.setEdge(v, w, {});
  26007. dfs(w);
  26008. }
  26009. });
  26010. }
  26011. _.forEach(t.nodes(), dfs);
  26012. return t.nodeCount();
  26013. }
  26014. /*
  26015. * Finds the edge with the smallest slack that is incident on tree and returns
  26016. * it.
  26017. */
  26018. function findMinSlackEdge(t, g) {
  26019. return _.minBy(g.edges(), function(e) {
  26020. if (t.hasNode(e.v) !== t.hasNode(e.w)) {
  26021. return slack(g, e);
  26022. }
  26023. });
  26024. }
  26025. function shiftRanks(t, g, delta) {
  26026. _.forEach(t.nodes(), function(v) {
  26027. g.node(v).rank += delta;
  26028. });
  26029. }
  26030. /***/ }),
  26031. /***/ "./node_modules/dagre/lib/rank/index.js":
  26032. /*!**********************************************!*\
  26033. !*** ./node_modules/dagre/lib/rank/index.js ***!
  26034. \**********************************************/
  26035. /*! no static exports found */
  26036. /***/ (function(module, exports, __webpack_require__) {
  26037. "use strict";
  26038. var rankUtil = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js");
  26039. var longestPath = rankUtil.longestPath;
  26040. var feasibleTree = __webpack_require__(/*! ./feasible-tree */ "./node_modules/dagre/lib/rank/feasible-tree.js");
  26041. var networkSimplex = __webpack_require__(/*! ./network-simplex */ "./node_modules/dagre/lib/rank/network-simplex.js");
  26042. module.exports = rank;
  26043. /*
  26044. * Assigns a rank to each node in the input graph that respects the "minlen"
  26045. * constraint specified on edges between nodes.
  26046. *
  26047. * This basic structure is derived from Gansner, et al., "A Technique for
  26048. * Drawing Directed Graphs."
  26049. *
  26050. * Pre-conditions:
  26051. *
  26052. * 1. Graph must be a connected DAG
  26053. * 2. Graph nodes must be objects
  26054. * 3. Graph edges must have "weight" and "minlen" attributes
  26055. *
  26056. * Post-conditions:
  26057. *
  26058. * 1. Graph nodes will have a "rank" attribute based on the results of the
  26059. * algorithm. Ranks can start at any index (including negative), we'll
  26060. * fix them up later.
  26061. */
  26062. function rank(g) {
  26063. switch(g.graph().ranker) {
  26064. case "network-simplex": networkSimplexRanker(g); break;
  26065. case "tight-tree": tightTreeRanker(g); break;
  26066. case "longest-path": longestPathRanker(g); break;
  26067. default: networkSimplexRanker(g);
  26068. }
  26069. }
  26070. // A fast and simple ranker, but results are far from optimal.
  26071. var longestPathRanker = longestPath;
  26072. function tightTreeRanker(g) {
  26073. longestPath(g);
  26074. feasibleTree(g);
  26075. }
  26076. function networkSimplexRanker(g) {
  26077. networkSimplex(g);
  26078. }
  26079. /***/ }),
  26080. /***/ "./node_modules/dagre/lib/rank/network-simplex.js":
  26081. /*!********************************************************!*\
  26082. !*** ./node_modules/dagre/lib/rank/network-simplex.js ***!
  26083. \********************************************************/
  26084. /*! no static exports found */
  26085. /***/ (function(module, exports, __webpack_require__) {
  26086. "use strict";
  26087. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  26088. var feasibleTree = __webpack_require__(/*! ./feasible-tree */ "./node_modules/dagre/lib/rank/feasible-tree.js");
  26089. var slack = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js").slack;
  26090. var initRank = __webpack_require__(/*! ./util */ "./node_modules/dagre/lib/rank/util.js").longestPath;
  26091. var preorder = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").alg.preorder;
  26092. var postorder = __webpack_require__(/*! ../graphlib */ "./node_modules/dagre/lib/graphlib.js").alg.postorder;
  26093. var simplify = __webpack_require__(/*! ../util */ "./node_modules/dagre/lib/util.js").simplify;
  26094. module.exports = networkSimplex;
  26095. // Expose some internals for testing purposes
  26096. networkSimplex.initLowLimValues = initLowLimValues;
  26097. networkSimplex.initCutValues = initCutValues;
  26098. networkSimplex.calcCutValue = calcCutValue;
  26099. networkSimplex.leaveEdge = leaveEdge;
  26100. networkSimplex.enterEdge = enterEdge;
  26101. networkSimplex.exchangeEdges = exchangeEdges;
  26102. /*
  26103. * The network simplex algorithm assigns ranks to each node in the input graph
  26104. * and iteratively improves the ranking to reduce the length of edges.
  26105. *
  26106. * Preconditions:
  26107. *
  26108. * 1. The input graph must be a DAG.
  26109. * 2. All nodes in the graph must have an object value.
  26110. * 3. All edges in the graph must have "minlen" and "weight" attributes.
  26111. *
  26112. * Postconditions:
  26113. *
  26114. * 1. All nodes in the graph will have an assigned "rank" attribute that has
  26115. * been optimized by the network simplex algorithm. Ranks start at 0.
  26116. *
  26117. *
  26118. * A rough sketch of the algorithm is as follows:
  26119. *
  26120. * 1. Assign initial ranks to each node. We use the longest path algorithm,
  26121. * which assigns ranks to the lowest position possible. In general this
  26122. * leads to very wide bottom ranks and unnecessarily long edges.
  26123. * 2. Construct a feasible tight tree. A tight tree is one such that all
  26124. * edges in the tree have no slack (difference between length of edge
  26125. * and minlen for the edge). This by itself greatly improves the assigned
  26126. * rankings by shorting edges.
  26127. * 3. Iteratively find edges that have negative cut values. Generally a
  26128. * negative cut value indicates that the edge could be removed and a new
  26129. * tree edge could be added to produce a more compact graph.
  26130. *
  26131. * Much of the algorithms here are derived from Gansner, et al., "A Technique
  26132. * for Drawing Directed Graphs." The structure of the file roughly follows the
  26133. * structure of the overall algorithm.
  26134. */
  26135. function networkSimplex(g) {
  26136. g = simplify(g);
  26137. initRank(g);
  26138. var t = feasibleTree(g);
  26139. initLowLimValues(t);
  26140. initCutValues(t, g);
  26141. var e, f;
  26142. while ((e = leaveEdge(t))) {
  26143. f = enterEdge(t, g, e);
  26144. exchangeEdges(t, g, e, f);
  26145. }
  26146. }
  26147. /*
  26148. * Initializes cut values for all edges in the tree.
  26149. */
  26150. function initCutValues(t, g) {
  26151. var vs = postorder(t, t.nodes());
  26152. vs = vs.slice(0, vs.length - 1);
  26153. _.forEach(vs, function(v) {
  26154. assignCutValue(t, g, v);
  26155. });
  26156. }
  26157. function assignCutValue(t, g, child) {
  26158. var childLab = t.node(child);
  26159. var parent = childLab.parent;
  26160. t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
  26161. }
  26162. /*
  26163. * Given the tight tree, its graph, and a child in the graph calculate and
  26164. * return the cut value for the edge between the child and its parent.
  26165. */
  26166. function calcCutValue(t, g, child) {
  26167. var childLab = t.node(child);
  26168. var parent = childLab.parent;
  26169. // True if the child is on the tail end of the edge in the directed graph
  26170. var childIsTail = true;
  26171. // The graph's view of the tree edge we're inspecting
  26172. var graphEdge = g.edge(child, parent);
  26173. // The accumulated cut value for the edge between this node and its parent
  26174. var cutValue = 0;
  26175. if (!graphEdge) {
  26176. childIsTail = false;
  26177. graphEdge = g.edge(parent, child);
  26178. }
  26179. cutValue = graphEdge.weight;
  26180. _.forEach(g.nodeEdges(child), function(e) {
  26181. var isOutEdge = e.v === child,
  26182. other = isOutEdge ? e.w : e.v;
  26183. if (other !== parent) {
  26184. var pointsToHead = isOutEdge === childIsTail,
  26185. otherWeight = g.edge(e).weight;
  26186. cutValue += pointsToHead ? otherWeight : -otherWeight;
  26187. if (isTreeEdge(t, child, other)) {
  26188. var otherCutValue = t.edge(child, other).cutvalue;
  26189. cutValue += pointsToHead ? -otherCutValue : otherCutValue;
  26190. }
  26191. }
  26192. });
  26193. return cutValue;
  26194. }
  26195. function initLowLimValues(tree, root) {
  26196. if (arguments.length < 2) {
  26197. root = tree.nodes()[0];
  26198. }
  26199. dfsAssignLowLim(tree, {}, 1, root);
  26200. }
  26201. function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
  26202. var low = nextLim;
  26203. var label = tree.node(v);
  26204. visited[v] = true;
  26205. _.forEach(tree.neighbors(v), function(w) {
  26206. if (!_.has(visited, w)) {
  26207. nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
  26208. }
  26209. });
  26210. label.low = low;
  26211. label.lim = nextLim++;
  26212. if (parent) {
  26213. label.parent = parent;
  26214. } else {
  26215. // TODO should be able to remove this when we incrementally update low lim
  26216. delete label.parent;
  26217. }
  26218. return nextLim;
  26219. }
  26220. function leaveEdge(tree) {
  26221. return _.find(tree.edges(), function(e) {
  26222. return tree.edge(e).cutvalue < 0;
  26223. });
  26224. }
  26225. function enterEdge(t, g, edge) {
  26226. var v = edge.v;
  26227. var w = edge.w;
  26228. // For the rest of this function we assume that v is the tail and w is the
  26229. // head, so if we don't have this edge in the graph we should flip it to
  26230. // match the correct orientation.
  26231. if (!g.hasEdge(v, w)) {
  26232. v = edge.w;
  26233. w = edge.v;
  26234. }
  26235. var vLabel = t.node(v);
  26236. var wLabel = t.node(w);
  26237. var tailLabel = vLabel;
  26238. var flip = false;
  26239. // If the root is in the tail of the edge then we need to flip the logic that
  26240. // checks for the head and tail nodes in the candidates function below.
  26241. if (vLabel.lim > wLabel.lim) {
  26242. tailLabel = wLabel;
  26243. flip = true;
  26244. }
  26245. var candidates = _.filter(g.edges(), function(edge) {
  26246. return flip === isDescendant(t, t.node(edge.v), tailLabel) &&
  26247. flip !== isDescendant(t, t.node(edge.w), tailLabel);
  26248. });
  26249. return _.minBy(candidates, function(edge) { return slack(g, edge); });
  26250. }
  26251. function exchangeEdges(t, g, e, f) {
  26252. var v = e.v;
  26253. var w = e.w;
  26254. t.removeEdge(v, w);
  26255. t.setEdge(f.v, f.w, {});
  26256. initLowLimValues(t);
  26257. initCutValues(t, g);
  26258. updateRanks(t, g);
  26259. }
  26260. function updateRanks(t, g) {
  26261. var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });
  26262. var vs = preorder(t, root);
  26263. vs = vs.slice(1);
  26264. _.forEach(vs, function(v) {
  26265. var parent = t.node(v).parent,
  26266. edge = g.edge(v, parent),
  26267. flipped = false;
  26268. if (!edge) {
  26269. edge = g.edge(parent, v);
  26270. flipped = true;
  26271. }
  26272. g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
  26273. });
  26274. }
  26275. /*
  26276. * Returns true if the edge is in the tree.
  26277. */
  26278. function isTreeEdge(tree, u, v) {
  26279. return tree.hasEdge(u, v);
  26280. }
  26281. /*
  26282. * Returns true if the specified node is descendant of the root node per the
  26283. * assigned low and lim attributes in the tree.
  26284. */
  26285. function isDescendant(tree, vLabel, rootLabel) {
  26286. return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
  26287. }
  26288. /***/ }),
  26289. /***/ "./node_modules/dagre/lib/rank/util.js":
  26290. /*!*********************************************!*\
  26291. !*** ./node_modules/dagre/lib/rank/util.js ***!
  26292. \*********************************************/
  26293. /*! no static exports found */
  26294. /***/ (function(module, exports, __webpack_require__) {
  26295. "use strict";
  26296. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/dagre/lib/lodash.js");
  26297. module.exports = {
  26298. longestPath: longestPath,
  26299. slack: slack
  26300. };
  26301. /*
  26302. * Initializes ranks for the input graph using the longest path algorithm. This
  26303. * algorithm scales well and is fast in practice, it yields rather poor
  26304. * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
  26305. * ranks wide and leaving edges longer than necessary. However, due to its
  26306. * speed, this algorithm is good for getting an initial ranking that can be fed
  26307. * into other algorithms.
  26308. *
  26309. * This algorithm does not normalize layers because it will be used by other
  26310. * algorithms in most cases. If using this algorithm directly, be sure to
  26311. * run normalize at the end.
  26312. *
  26313. * Pre-conditions:
  26314. *
  26315. * 1. Input graph is a DAG.
  26316. * 2. Input graph node labels can be assigned properties.
  26317. *
  26318. * Post-conditions:
  26319. *
  26320. * 1. Each node will be assign an (unnormalized) "rank" property.
  26321. */
  26322. function longestPath(g) {
  26323. var visited = {};
  26324. function dfs(v) {
  26325. var label = g.node(v);
  26326. if (_.has(visited, v)) {
  26327. return label.rank;
  26328. }
  26329. visited[v] = true;
  26330. var rank = _.min(_.map(g.outEdges(v), function(e) {
  26331. return dfs(e.w) - g.edge(e).minlen;
  26332. }));
  26333. if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
  26334. rank === undefined || // return value of _.map([]) for Lodash 4
  26335. rank === null) { // return value of _.map([null])
  26336. rank = 0;
  26337. }
  26338. return (label.rank = rank);
  26339. }
  26340. _.forEach(g.sources(), dfs);
  26341. }
  26342. /*
  26343. * Returns the amount of slack for the given edge. The slack is defined as the
  26344. * difference between the length of the edge and its minimum length.
  26345. */
  26346. function slack(g, e) {
  26347. return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
  26348. }
  26349. /***/ }),
  26350. /***/ "./node_modules/dagre/lib/util.js":
  26351. /*!****************************************!*\
  26352. !*** ./node_modules/dagre/lib/util.js ***!
  26353. \****************************************/
  26354. /*! no static exports found */
  26355. /***/ (function(module, exports, __webpack_require__) {
  26356. "use strict";
  26357. /* eslint "no-console": off */
  26358. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/dagre/lib/lodash.js");
  26359. var Graph = __webpack_require__(/*! ./graphlib */ "./node_modules/dagre/lib/graphlib.js").Graph;
  26360. module.exports = {
  26361. addDummyNode: addDummyNode,
  26362. simplify: simplify,
  26363. asNonCompoundGraph: asNonCompoundGraph,
  26364. successorWeights: successorWeights,
  26365. predecessorWeights: predecessorWeights,
  26366. intersectRect: intersectRect,
  26367. buildLayerMatrix: buildLayerMatrix,
  26368. normalizeRanks: normalizeRanks,
  26369. removeEmptyRanks: removeEmptyRanks,
  26370. addBorderNode: addBorderNode,
  26371. maxRank: maxRank,
  26372. partition: partition,
  26373. time: time,
  26374. notime: notime
  26375. };
  26376. /*
  26377. * Adds a dummy node to the graph and return v.
  26378. */
  26379. function addDummyNode(g, type, attrs, name) {
  26380. var v;
  26381. do {
  26382. v = _.uniqueId(name);
  26383. } while (g.hasNode(v));
  26384. attrs.dummy = type;
  26385. g.setNode(v, attrs);
  26386. return v;
  26387. }
  26388. /*
  26389. * Returns a new graph with only simple edges. Handles aggregation of data
  26390. * associated with multi-edges.
  26391. */
  26392. function simplify(g) {
  26393. var simplified = new Graph().setGraph(g.graph());
  26394. _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });
  26395. _.forEach(g.edges(), function(e) {
  26396. var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };
  26397. var label = g.edge(e);
  26398. simplified.setEdge(e.v, e.w, {
  26399. weight: simpleLabel.weight + label.weight,
  26400. minlen: Math.max(simpleLabel.minlen, label.minlen)
  26401. });
  26402. });
  26403. return simplified;
  26404. }
  26405. function asNonCompoundGraph(g) {
  26406. var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
  26407. _.forEach(g.nodes(), function(v) {
  26408. if (!g.children(v).length) {
  26409. simplified.setNode(v, g.node(v));
  26410. }
  26411. });
  26412. _.forEach(g.edges(), function(e) {
  26413. simplified.setEdge(e, g.edge(e));
  26414. });
  26415. return simplified;
  26416. }
  26417. function successorWeights(g) {
  26418. var weightMap = _.map(g.nodes(), function(v) {
  26419. var sucs = {};
  26420. _.forEach(g.outEdges(v), function(e) {
  26421. sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;
  26422. });
  26423. return sucs;
  26424. });
  26425. return _.zipObject(g.nodes(), weightMap);
  26426. }
  26427. function predecessorWeights(g) {
  26428. var weightMap = _.map(g.nodes(), function(v) {
  26429. var preds = {};
  26430. _.forEach(g.inEdges(v), function(e) {
  26431. preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;
  26432. });
  26433. return preds;
  26434. });
  26435. return _.zipObject(g.nodes(), weightMap);
  26436. }
  26437. /*
  26438. * Finds where a line starting at point ({x, y}) would intersect a rectangle
  26439. * ({x, y, width, height}) if it were pointing at the rectangle's center.
  26440. */
  26441. function intersectRect(rect, point) {
  26442. var x = rect.x;
  26443. var y = rect.y;
  26444. // Rectangle intersection algorithm from:
  26445. // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
  26446. var dx = point.x - x;
  26447. var dy = point.y - y;
  26448. var w = rect.width / 2;
  26449. var h = rect.height / 2;
  26450. if (!dx && !dy) {
  26451. throw new Error("Not possible to find intersection inside of the rectangle");
  26452. }
  26453. var sx, sy;
  26454. if (Math.abs(dy) * w > Math.abs(dx) * h) {
  26455. // Intersection is top or bottom of rect.
  26456. if (dy < 0) {
  26457. h = -h;
  26458. }
  26459. sx = h * dx / dy;
  26460. sy = h;
  26461. } else {
  26462. // Intersection is left or right of rect.
  26463. if (dx < 0) {
  26464. w = -w;
  26465. }
  26466. sx = w;
  26467. sy = w * dy / dx;
  26468. }
  26469. return { x: x + sx, y: y + sy };
  26470. }
  26471. /*
  26472. * Given a DAG with each node assigned "rank" and "order" properties, this
  26473. * function will produce a matrix with the ids of each node.
  26474. */
  26475. function buildLayerMatrix(g) {
  26476. var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });
  26477. _.forEach(g.nodes(), function(v) {
  26478. var node = g.node(v);
  26479. var rank = node.rank;
  26480. if (!_.isUndefined(rank)) {
  26481. layering[rank][node.order] = v;
  26482. }
  26483. });
  26484. return layering;
  26485. }
  26486. /*
  26487. * Adjusts the ranks for all nodes in the graph such that all nodes v have
  26488. * rank(v) >= 0 and at least one node w has rank(w) = 0.
  26489. */
  26490. function normalizeRanks(g) {
  26491. var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  26492. _.forEach(g.nodes(), function(v) {
  26493. var node = g.node(v);
  26494. if (_.has(node, "rank")) {
  26495. node.rank -= min;
  26496. }
  26497. });
  26498. }
  26499. function removeEmptyRanks(g) {
  26500. // Ranks may not start at 0, so we need to offset them
  26501. var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  26502. var layers = [];
  26503. _.forEach(g.nodes(), function(v) {
  26504. var rank = g.node(v).rank - offset;
  26505. if (!layers[rank]) {
  26506. layers[rank] = [];
  26507. }
  26508. layers[rank].push(v);
  26509. });
  26510. var delta = 0;
  26511. var nodeRankFactor = g.graph().nodeRankFactor;
  26512. _.forEach(layers, function(vs, i) {
  26513. if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {
  26514. --delta;
  26515. } else if (delta) {
  26516. _.forEach(vs, function(v) { g.node(v).rank += delta; });
  26517. }
  26518. });
  26519. }
  26520. function addBorderNode(g, prefix, rank, order) {
  26521. var node = {
  26522. width: 0,
  26523. height: 0
  26524. };
  26525. if (arguments.length >= 4) {
  26526. node.rank = rank;
  26527. node.order = order;
  26528. }
  26529. return addDummyNode(g, "border", node, prefix);
  26530. }
  26531. function maxRank(g) {
  26532. return _.max(_.map(g.nodes(), function(v) {
  26533. var rank = g.node(v).rank;
  26534. if (!_.isUndefined(rank)) {
  26535. return rank;
  26536. }
  26537. }));
  26538. }
  26539. /*
  26540. * Partition a collection into two groups: `lhs` and `rhs`. If the supplied
  26541. * function returns true for an entry it goes into `lhs`. Otherwise it goes
  26542. * into `rhs.
  26543. */
  26544. function partition(collection, fn) {
  26545. var result = { lhs: [], rhs: [] };
  26546. _.forEach(collection, function(value) {
  26547. if (fn(value)) {
  26548. result.lhs.push(value);
  26549. } else {
  26550. result.rhs.push(value);
  26551. }
  26552. });
  26553. return result;
  26554. }
  26555. /*
  26556. * Returns a new function that wraps `fn` with a timer. The wrapper logs the
  26557. * time it takes to execute the function.
  26558. */
  26559. function time(name, fn) {
  26560. var start = _.now();
  26561. try {
  26562. return fn();
  26563. } finally {
  26564. console.log(name + " time: " + (_.now() - start) + "ms");
  26565. }
  26566. }
  26567. function notime(name, fn) {
  26568. return fn();
  26569. }
  26570. /***/ }),
  26571. /***/ "./node_modules/dagre/lib/version.js":
  26572. /*!*******************************************!*\
  26573. !*** ./node_modules/dagre/lib/version.js ***!
  26574. \*******************************************/
  26575. /*! no static exports found */
  26576. /***/ (function(module, exports) {
  26577. module.exports = "0.8.5";
  26578. /***/ }),
  26579. /***/ "./node_modules/entity-decode/browser.js":
  26580. /*!***********************************************!*\
  26581. !*** ./node_modules/entity-decode/browser.js ***!
  26582. \***********************************************/
  26583. /*! exports provided: default */
  26584. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26585. "use strict";
  26586. __webpack_require__.r(__webpack_exports__);
  26587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return decode; });
  26588. /**
  26589. * @see https://github.com/vuejs/vue/commit/a855dd0564a657a73b7249469490d39817f27cf7#diff-c0a2623ea5896a83e3b630f236b47b52
  26590. * @see https://stackoverflow.com/a/13091266/4936667
  26591. */
  26592. var decoder;
  26593. function decode(html) {
  26594. decoder = decoder || document.createElement('div');
  26595. // Escape HTML before decoding for HTML Entities
  26596. html = escape(html).replace(/%26/g,'&').replace(/%23/g,'#').replace(/%3B/g,';');
  26597. // decoding
  26598. decoder.innerHTML = html;
  26599. return unescape(decoder.textContent);
  26600. }
  26601. /***/ }),
  26602. /***/ "./node_modules/graphlib/index.js":
  26603. /*!****************************************!*\
  26604. !*** ./node_modules/graphlib/index.js ***!
  26605. \****************************************/
  26606. /*! no static exports found */
  26607. /***/ (function(module, exports, __webpack_require__) {
  26608. /**
  26609. * Copyright (c) 2014, Chris Pettitt
  26610. * All rights reserved.
  26611. *
  26612. * Redistribution and use in source and binary forms, with or without
  26613. * modification, are permitted provided that the following conditions are met:
  26614. *
  26615. * 1. Redistributions of source code must retain the above copyright notice, this
  26616. * list of conditions and the following disclaimer.
  26617. *
  26618. * 2. Redistributions in binary form must reproduce the above copyright notice,
  26619. * this list of conditions and the following disclaimer in the documentation
  26620. * and/or other materials provided with the distribution.
  26621. *
  26622. * 3. Neither the name of the copyright holder nor the names of its contributors
  26623. * may be used to endorse or promote products derived from this software without
  26624. * specific prior written permission.
  26625. *
  26626. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  26627. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  26628. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  26629. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  26630. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  26631. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  26632. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  26633. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  26634. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  26635. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26636. */
  26637. var lib = __webpack_require__(/*! ./lib */ "./node_modules/graphlib/lib/index.js");
  26638. module.exports = {
  26639. Graph: lib.Graph,
  26640. json: __webpack_require__(/*! ./lib/json */ "./node_modules/graphlib/lib/json.js"),
  26641. alg: __webpack_require__(/*! ./lib/alg */ "./node_modules/graphlib/lib/alg/index.js"),
  26642. version: lib.version
  26643. };
  26644. /***/ }),
  26645. /***/ "./node_modules/graphlib/lib/alg/components.js":
  26646. /*!*****************************************************!*\
  26647. !*** ./node_modules/graphlib/lib/alg/components.js ***!
  26648. \*****************************************************/
  26649. /*! no static exports found */
  26650. /***/ (function(module, exports, __webpack_require__) {
  26651. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
  26652. module.exports = components;
  26653. function components(g) {
  26654. var visited = {};
  26655. var cmpts = [];
  26656. var cmpt;
  26657. function dfs(v) {
  26658. if (_.has(visited, v)) return;
  26659. visited[v] = true;
  26660. cmpt.push(v);
  26661. _.each(g.successors(v), dfs);
  26662. _.each(g.predecessors(v), dfs);
  26663. }
  26664. _.each(g.nodes(), function(v) {
  26665. cmpt = [];
  26666. dfs(v);
  26667. if (cmpt.length) {
  26668. cmpts.push(cmpt);
  26669. }
  26670. });
  26671. return cmpts;
  26672. }
  26673. /***/ }),
  26674. /***/ "./node_modules/graphlib/lib/alg/dfs.js":
  26675. /*!**********************************************!*\
  26676. !*** ./node_modules/graphlib/lib/alg/dfs.js ***!
  26677. \**********************************************/
  26678. /*! no static exports found */
  26679. /***/ (function(module, exports, __webpack_require__) {
  26680. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
  26681. module.exports = dfs;
  26682. /*
  26683. * A helper that preforms a pre- or post-order traversal on the input graph
  26684. * and returns the nodes in the order they were visited. If the graph is
  26685. * undirected then this algorithm will navigate using neighbors. If the graph
  26686. * is directed then this algorithm will navigate using successors.
  26687. *
  26688. * Order must be one of "pre" or "post".
  26689. */
  26690. function dfs(g, vs, order) {
  26691. if (!_.isArray(vs)) {
  26692. vs = [vs];
  26693. }
  26694. var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
  26695. var acc = [];
  26696. var visited = {};
  26697. _.each(vs, function(v) {
  26698. if (!g.hasNode(v)) {
  26699. throw new Error("Graph does not have node: " + v);
  26700. }
  26701. doDfs(g, v, order === "post", visited, navigation, acc);
  26702. });
  26703. return acc;
  26704. }
  26705. function doDfs(g, v, postorder, visited, navigation, acc) {
  26706. if (!_.has(visited, v)) {
  26707. visited[v] = true;
  26708. if (!postorder) { acc.push(v); }
  26709. _.each(navigation(v), function(w) {
  26710. doDfs(g, w, postorder, visited, navigation, acc);
  26711. });
  26712. if (postorder) { acc.push(v); }
  26713. }
  26714. }
  26715. /***/ }),
  26716. /***/ "./node_modules/graphlib/lib/alg/dijkstra-all.js":
  26717. /*!*******************************************************!*\
  26718. !*** ./node_modules/graphlib/lib/alg/dijkstra-all.js ***!
  26719. \*******************************************************/
  26720. /*! no static exports found */
  26721. /***/ (function(module, exports, __webpack_require__) {
  26722. var dijkstra = __webpack_require__(/*! ./dijkstra */ "./node_modules/graphlib/lib/alg/dijkstra.js");
  26723. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
  26724. module.exports = dijkstraAll;
  26725. function dijkstraAll(g, weightFunc, edgeFunc) {
  26726. return _.transform(g.nodes(), function(acc, v) {
  26727. acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
  26728. }, {});
  26729. }
  26730. /***/ }),
  26731. /***/ "./node_modules/graphlib/lib/alg/dijkstra.js":
  26732. /*!***************************************************!*\
  26733. !*** ./node_modules/graphlib/lib/alg/dijkstra.js ***!
  26734. \***************************************************/
  26735. /*! no static exports found */
  26736. /***/ (function(module, exports, __webpack_require__) {
  26737. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
  26738. var PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "./node_modules/graphlib/lib/data/priority-queue.js");
  26739. module.exports = dijkstra;
  26740. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  26741. function dijkstra(g, source, weightFn, edgeFn) {
  26742. return runDijkstra(g, String(source),
  26743. weightFn || DEFAULT_WEIGHT_FUNC,
  26744. edgeFn || function(v) { return g.outEdges(v); });
  26745. }
  26746. function runDijkstra(g, source, weightFn, edgeFn) {
  26747. var results = {};
  26748. var pq = new PriorityQueue();
  26749. var v, vEntry;
  26750. var updateNeighbors = function(edge) {
  26751. var w = edge.v !== v ? edge.v : edge.w;
  26752. var wEntry = results[w];
  26753. var weight = weightFn(edge);
  26754. var distance = vEntry.distance + weight;
  26755. if (weight < 0) {
  26756. throw new Error("dijkstra does not allow negative edge weights. " +
  26757. "Bad edge: " + edge + " Weight: " + weight);
  26758. }
  26759. if (distance < wEntry.distance) {
  26760. wEntry.distance = distance;
  26761. wEntry.predecessor = v;
  26762. pq.decrease(w, distance);
  26763. }
  26764. };
  26765. g.nodes().forEach(function(v) {
  26766. var distance = v === source ? 0 : Number.POSITIVE_INFINITY;
  26767. results[v] = { distance: distance };
  26768. pq.add(v, distance);
  26769. });
  26770. while (pq.size() > 0) {
  26771. v = pq.removeMin();
  26772. vEntry = results[v];
  26773. if (vEntry.distance === Number.POSITIVE_INFINITY) {
  26774. break;
  26775. }
  26776. edgeFn(v).forEach(updateNeighbors);
  26777. }
  26778. return results;
  26779. }
  26780. /***/ }),
  26781. /***/ "./node_modules/graphlib/lib/alg/find-cycles.js":
  26782. /*!******************************************************!*\
  26783. !*** ./node_modules/graphlib/lib/alg/find-cycles.js ***!
  26784. \******************************************************/
  26785. /*! no static exports found */
  26786. /***/ (function(module, exports, __webpack_require__) {
  26787. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
  26788. var tarjan = __webpack_require__(/*! ./tarjan */ "./node_modules/graphlib/lib/alg/tarjan.js");
  26789. module.exports = findCycles;
  26790. function findCycles(g) {
  26791. return _.filter(tarjan(g), function(cmpt) {
  26792. return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
  26793. });
  26794. }
  26795. /***/ }),
  26796. /***/ "./node_modules/graphlib/lib/alg/floyd-warshall.js":
  26797. /*!*********************************************************!*\
  26798. !*** ./node_modules/graphlib/lib/alg/floyd-warshall.js ***!
  26799. \*********************************************************/
  26800. /*! no static exports found */
  26801. /***/ (function(module, exports, __webpack_require__) {
  26802. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
  26803. module.exports = floydWarshall;
  26804. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  26805. function floydWarshall(g, weightFn, edgeFn) {
  26806. return runFloydWarshall(g,
  26807. weightFn || DEFAULT_WEIGHT_FUNC,
  26808. edgeFn || function(v) { return g.outEdges(v); });
  26809. }
  26810. function runFloydWarshall(g, weightFn, edgeFn) {
  26811. var results = {};
  26812. var nodes = g.nodes();
  26813. nodes.forEach(function(v) {
  26814. results[v] = {};
  26815. results[v][v] = { distance: 0 };
  26816. nodes.forEach(function(w) {
  26817. if (v !== w) {
  26818. results[v][w] = { distance: Number.POSITIVE_INFINITY };
  26819. }
  26820. });
  26821. edgeFn(v).forEach(function(edge) {
  26822. var w = edge.v === v ? edge.w : edge.v;
  26823. var d = weightFn(edge);
  26824. results[v][w] = { distance: d, predecessor: v };
  26825. });
  26826. });
  26827. nodes.forEach(function(k) {
  26828. var rowK = results[k];
  26829. nodes.forEach(function(i) {
  26830. var rowI = results[i];
  26831. nodes.forEach(function(j) {
  26832. var ik = rowI[k];
  26833. var kj = rowK[j];
  26834. var ij = rowI[j];
  26835. var altDistance = ik.distance + kj.distance;
  26836. if (altDistance < ij.distance) {
  26837. ij.distance = altDistance;
  26838. ij.predecessor = kj.predecessor;
  26839. }
  26840. });
  26841. });
  26842. });
  26843. return results;
  26844. }
  26845. /***/ }),
  26846. /***/ "./node_modules/graphlib/lib/alg/index.js":
  26847. /*!************************************************!*\
  26848. !*** ./node_modules/graphlib/lib/alg/index.js ***!
  26849. \************************************************/
  26850. /*! no static exports found */
  26851. /***/ (function(module, exports, __webpack_require__) {
  26852. module.exports = {
  26853. components: __webpack_require__(/*! ./components */ "./node_modules/graphlib/lib/alg/components.js"),
  26854. dijkstra: __webpack_require__(/*! ./dijkstra */ "./node_modules/graphlib/lib/alg/dijkstra.js"),
  26855. dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "./node_modules/graphlib/lib/alg/dijkstra-all.js"),
  26856. findCycles: __webpack_require__(/*! ./find-cycles */ "./node_modules/graphlib/lib/alg/find-cycles.js"),
  26857. floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "./node_modules/graphlib/lib/alg/floyd-warshall.js"),
  26858. isAcyclic: __webpack_require__(/*! ./is-acyclic */ "./node_modules/graphlib/lib/alg/is-acyclic.js"),
  26859. postorder: __webpack_require__(/*! ./postorder */ "./node_modules/graphlib/lib/alg/postorder.js"),
  26860. preorder: __webpack_require__(/*! ./preorder */ "./node_modules/graphlib/lib/alg/preorder.js"),
  26861. prim: __webpack_require__(/*! ./prim */ "./node_modules/graphlib/lib/alg/prim.js"),
  26862. tarjan: __webpack_require__(/*! ./tarjan */ "./node_modules/graphlib/lib/alg/tarjan.js"),
  26863. topsort: __webpack_require__(/*! ./topsort */ "./node_modules/graphlib/lib/alg/topsort.js")
  26864. };
  26865. /***/ }),
  26866. /***/ "./node_modules/graphlib/lib/alg/is-acyclic.js":
  26867. /*!*****************************************************!*\
  26868. !*** ./node_modules/graphlib/lib/alg/is-acyclic.js ***!
  26869. \*****************************************************/
  26870. /*! no static exports found */
  26871. /***/ (function(module, exports, __webpack_require__) {
  26872. var topsort = __webpack_require__(/*! ./topsort */ "./node_modules/graphlib/lib/alg/topsort.js");
  26873. module.exports = isAcyclic;
  26874. function isAcyclic(g) {
  26875. try {
  26876. topsort(g);
  26877. } catch (e) {
  26878. if (e instanceof topsort.CycleException) {
  26879. return false;
  26880. }
  26881. throw e;
  26882. }
  26883. return true;
  26884. }
  26885. /***/ }),
  26886. /***/ "./node_modules/graphlib/lib/alg/postorder.js":
  26887. /*!****************************************************!*\
  26888. !*** ./node_modules/graphlib/lib/alg/postorder.js ***!
  26889. \****************************************************/
  26890. /*! no static exports found */
  26891. /***/ (function(module, exports, __webpack_require__) {
  26892. var dfs = __webpack_require__(/*! ./dfs */ "./node_modules/graphlib/lib/alg/dfs.js");
  26893. module.exports = postorder;
  26894. function postorder(g, vs) {
  26895. return dfs(g, vs, "post");
  26896. }
  26897. /***/ }),
  26898. /***/ "./node_modules/graphlib/lib/alg/preorder.js":
  26899. /*!***************************************************!*\
  26900. !*** ./node_modules/graphlib/lib/alg/preorder.js ***!
  26901. \***************************************************/
  26902. /*! no static exports found */
  26903. /***/ (function(module, exports, __webpack_require__) {
  26904. var dfs = __webpack_require__(/*! ./dfs */ "./node_modules/graphlib/lib/alg/dfs.js");
  26905. module.exports = preorder;
  26906. function preorder(g, vs) {
  26907. return dfs(g, vs, "pre");
  26908. }
  26909. /***/ }),
  26910. /***/ "./node_modules/graphlib/lib/alg/prim.js":
  26911. /*!***********************************************!*\
  26912. !*** ./node_modules/graphlib/lib/alg/prim.js ***!
  26913. \***********************************************/
  26914. /*! no static exports found */
  26915. /***/ (function(module, exports, __webpack_require__) {
  26916. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
  26917. var Graph = __webpack_require__(/*! ../graph */ "./node_modules/graphlib/lib/graph.js");
  26918. var PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "./node_modules/graphlib/lib/data/priority-queue.js");
  26919. module.exports = prim;
  26920. function prim(g, weightFunc) {
  26921. var result = new Graph();
  26922. var parents = {};
  26923. var pq = new PriorityQueue();
  26924. var v;
  26925. function updateNeighbors(edge) {
  26926. var w = edge.v === v ? edge.w : edge.v;
  26927. var pri = pq.priority(w);
  26928. if (pri !== undefined) {
  26929. var edgeWeight = weightFunc(edge);
  26930. if (edgeWeight < pri) {
  26931. parents[w] = v;
  26932. pq.decrease(w, edgeWeight);
  26933. }
  26934. }
  26935. }
  26936. if (g.nodeCount() === 0) {
  26937. return result;
  26938. }
  26939. _.each(g.nodes(), function(v) {
  26940. pq.add(v, Number.POSITIVE_INFINITY);
  26941. result.setNode(v);
  26942. });
  26943. // Start from an arbitrary node
  26944. pq.decrease(g.nodes()[0], 0);
  26945. var init = false;
  26946. while (pq.size() > 0) {
  26947. v = pq.removeMin();
  26948. if (_.has(parents, v)) {
  26949. result.setEdge(v, parents[v]);
  26950. } else if (init) {
  26951. throw new Error("Input graph is not connected: " + g);
  26952. } else {
  26953. init = true;
  26954. }
  26955. g.nodeEdges(v).forEach(updateNeighbors);
  26956. }
  26957. return result;
  26958. }
  26959. /***/ }),
  26960. /***/ "./node_modules/graphlib/lib/alg/tarjan.js":
  26961. /*!*************************************************!*\
  26962. !*** ./node_modules/graphlib/lib/alg/tarjan.js ***!
  26963. \*************************************************/
  26964. /*! no static exports found */
  26965. /***/ (function(module, exports, __webpack_require__) {
  26966. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
  26967. module.exports = tarjan;
  26968. function tarjan(g) {
  26969. var index = 0;
  26970. var stack = [];
  26971. var visited = {}; // node id -> { onStack, lowlink, index }
  26972. var results = [];
  26973. function dfs(v) {
  26974. var entry = visited[v] = {
  26975. onStack: true,
  26976. lowlink: index,
  26977. index: index++
  26978. };
  26979. stack.push(v);
  26980. g.successors(v).forEach(function(w) {
  26981. if (!_.has(visited, w)) {
  26982. dfs(w);
  26983. entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);
  26984. } else if (visited[w].onStack) {
  26985. entry.lowlink = Math.min(entry.lowlink, visited[w].index);
  26986. }
  26987. });
  26988. if (entry.lowlink === entry.index) {
  26989. var cmpt = [];
  26990. var w;
  26991. do {
  26992. w = stack.pop();
  26993. visited[w].onStack = false;
  26994. cmpt.push(w);
  26995. } while (v !== w);
  26996. results.push(cmpt);
  26997. }
  26998. }
  26999. g.nodes().forEach(function(v) {
  27000. if (!_.has(visited, v)) {
  27001. dfs(v);
  27002. }
  27003. });
  27004. return results;
  27005. }
  27006. /***/ }),
  27007. /***/ "./node_modules/graphlib/lib/alg/topsort.js":
  27008. /*!**************************************************!*\
  27009. !*** ./node_modules/graphlib/lib/alg/topsort.js ***!
  27010. \**************************************************/
  27011. /*! no static exports found */
  27012. /***/ (function(module, exports, __webpack_require__) {
  27013. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
  27014. module.exports = topsort;
  27015. topsort.CycleException = CycleException;
  27016. function topsort(g) {
  27017. var visited = {};
  27018. var stack = {};
  27019. var results = [];
  27020. function visit(node) {
  27021. if (_.has(stack, node)) {
  27022. throw new CycleException();
  27023. }
  27024. if (!_.has(visited, node)) {
  27025. stack[node] = true;
  27026. visited[node] = true;
  27027. _.each(g.predecessors(node), visit);
  27028. delete stack[node];
  27029. results.push(node);
  27030. }
  27031. }
  27032. _.each(g.sinks(), visit);
  27033. if (_.size(visited) !== g.nodeCount()) {
  27034. throw new CycleException();
  27035. }
  27036. return results;
  27037. }
  27038. function CycleException() {}
  27039. CycleException.prototype = new Error(); // must be an instance of Error to pass testing
  27040. /***/ }),
  27041. /***/ "./node_modules/graphlib/lib/data/priority-queue.js":
  27042. /*!**********************************************************!*\
  27043. !*** ./node_modules/graphlib/lib/data/priority-queue.js ***!
  27044. \**********************************************************/
  27045. /*! no static exports found */
  27046. /***/ (function(module, exports, __webpack_require__) {
  27047. var _ = __webpack_require__(/*! ../lodash */ "./node_modules/graphlib/lib/lodash.js");
  27048. module.exports = PriorityQueue;
  27049. /**
  27050. * A min-priority queue data structure. This algorithm is derived from Cormen,
  27051. * et al., "Introduction to Algorithms". The basic idea of a min-priority
  27052. * queue is that you can efficiently (in O(1) time) get the smallest key in
  27053. * the queue. Adding and removing elements takes O(log n) time. A key can
  27054. * have its priority decreased in O(log n) time.
  27055. */
  27056. function PriorityQueue() {
  27057. this._arr = [];
  27058. this._keyIndices = {};
  27059. }
  27060. /**
  27061. * Returns the number of elements in the queue. Takes `O(1)` time.
  27062. */
  27063. PriorityQueue.prototype.size = function() {
  27064. return this._arr.length;
  27065. };
  27066. /**
  27067. * Returns the keys that are in the queue. Takes `O(n)` time.
  27068. */
  27069. PriorityQueue.prototype.keys = function() {
  27070. return this._arr.map(function(x) { return x.key; });
  27071. };
  27072. /**
  27073. * Returns `true` if **key** is in the queue and `false` if not.
  27074. */
  27075. PriorityQueue.prototype.has = function(key) {
  27076. return _.has(this._keyIndices, key);
  27077. };
  27078. /**
  27079. * Returns the priority for **key**. If **key** is not present in the queue
  27080. * then this function returns `undefined`. Takes `O(1)` time.
  27081. *
  27082. * @param {Object} key
  27083. */
  27084. PriorityQueue.prototype.priority = function(key) {
  27085. var index = this._keyIndices[key];
  27086. if (index !== undefined) {
  27087. return this._arr[index].priority;
  27088. }
  27089. };
  27090. /**
  27091. * Returns the key for the minimum element in this queue. If the queue is
  27092. * empty this function throws an Error. Takes `O(1)` time.
  27093. */
  27094. PriorityQueue.prototype.min = function() {
  27095. if (this.size() === 0) {
  27096. throw new Error("Queue underflow");
  27097. }
  27098. return this._arr[0].key;
  27099. };
  27100. /**
  27101. * Inserts a new key into the priority queue. If the key already exists in
  27102. * the queue this function returns `false`; otherwise it will return `true`.
  27103. * Takes `O(n)` time.
  27104. *
  27105. * @param {Object} key the key to add
  27106. * @param {Number} priority the initial priority for the key
  27107. */
  27108. PriorityQueue.prototype.add = function(key, priority) {
  27109. var keyIndices = this._keyIndices;
  27110. key = String(key);
  27111. if (!_.has(keyIndices, key)) {
  27112. var arr = this._arr;
  27113. var index = arr.length;
  27114. keyIndices[key] = index;
  27115. arr.push({key: key, priority: priority});
  27116. this._decrease(index);
  27117. return true;
  27118. }
  27119. return false;
  27120. };
  27121. /**
  27122. * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
  27123. */
  27124. PriorityQueue.prototype.removeMin = function() {
  27125. this._swap(0, this._arr.length - 1);
  27126. var min = this._arr.pop();
  27127. delete this._keyIndices[min.key];
  27128. this._heapify(0);
  27129. return min.key;
  27130. };
  27131. /**
  27132. * Decreases the priority for **key** to **priority**. If the new priority is
  27133. * greater than the previous priority, this function will throw an Error.
  27134. *
  27135. * @param {Object} key the key for which to raise priority
  27136. * @param {Number} priority the new priority for the key
  27137. */
  27138. PriorityQueue.prototype.decrease = function(key, priority) {
  27139. var index = this._keyIndices[key];
  27140. if (priority > this._arr[index].priority) {
  27141. throw new Error("New priority is greater than current priority. " +
  27142. "Key: " + key + " Old: " + this._arr[index].priority + " New: " + priority);
  27143. }
  27144. this._arr[index].priority = priority;
  27145. this._decrease(index);
  27146. };
  27147. PriorityQueue.prototype._heapify = function(i) {
  27148. var arr = this._arr;
  27149. var l = 2 * i;
  27150. var r = l + 1;
  27151. var largest = i;
  27152. if (l < arr.length) {
  27153. largest = arr[l].priority < arr[largest].priority ? l : largest;
  27154. if (r < arr.length) {
  27155. largest = arr[r].priority < arr[largest].priority ? r : largest;
  27156. }
  27157. if (largest !== i) {
  27158. this._swap(i, largest);
  27159. this._heapify(largest);
  27160. }
  27161. }
  27162. };
  27163. PriorityQueue.prototype._decrease = function(index) {
  27164. var arr = this._arr;
  27165. var priority = arr[index].priority;
  27166. var parent;
  27167. while (index !== 0) {
  27168. parent = index >> 1;
  27169. if (arr[parent].priority < priority) {
  27170. break;
  27171. }
  27172. this._swap(index, parent);
  27173. index = parent;
  27174. }
  27175. };
  27176. PriorityQueue.prototype._swap = function(i, j) {
  27177. var arr = this._arr;
  27178. var keyIndices = this._keyIndices;
  27179. var origArrI = arr[i];
  27180. var origArrJ = arr[j];
  27181. arr[i] = origArrJ;
  27182. arr[j] = origArrI;
  27183. keyIndices[origArrJ.key] = i;
  27184. keyIndices[origArrI.key] = j;
  27185. };
  27186. /***/ }),
  27187. /***/ "./node_modules/graphlib/lib/graph.js":
  27188. /*!********************************************!*\
  27189. !*** ./node_modules/graphlib/lib/graph.js ***!
  27190. \********************************************/
  27191. /*! no static exports found */
  27192. /***/ (function(module, exports, __webpack_require__) {
  27193. "use strict";
  27194. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/graphlib/lib/lodash.js");
  27195. module.exports = Graph;
  27196. var DEFAULT_EDGE_NAME = "\x00";
  27197. var GRAPH_NODE = "\x00";
  27198. var EDGE_KEY_DELIM = "\x01";
  27199. // Implementation notes:
  27200. //
  27201. // * Node id query functions should return string ids for the nodes
  27202. // * Edge id query functions should return an "edgeObj", edge object, that is
  27203. // composed of enough information to uniquely identify an edge: {v, w, name}.
  27204. // * Internally we use an "edgeId", a stringified form of the edgeObj, to
  27205. // reference edges. This is because we need a performant way to look these
  27206. // edges up and, object properties, which have string keys, are the closest
  27207. // we're going to get to a performant hashtable in JavaScript.
  27208. function Graph(opts) {
  27209. this._isDirected = _.has(opts, "directed") ? opts.directed : true;
  27210. this._isMultigraph = _.has(opts, "multigraph") ? opts.multigraph : false;
  27211. this._isCompound = _.has(opts, "compound") ? opts.compound : false;
  27212. // Label for the graph itself
  27213. this._label = undefined;
  27214. // Defaults to be set when creating a new node
  27215. this._defaultNodeLabelFn = _.constant(undefined);
  27216. // Defaults to be set when creating a new edge
  27217. this._defaultEdgeLabelFn = _.constant(undefined);
  27218. // v -> label
  27219. this._nodes = {};
  27220. if (this._isCompound) {
  27221. // v -> parent
  27222. this._parent = {};
  27223. // v -> children
  27224. this._children = {};
  27225. this._children[GRAPH_NODE] = {};
  27226. }
  27227. // v -> edgeObj
  27228. this._in = {};
  27229. // u -> v -> Number
  27230. this._preds = {};
  27231. // v -> edgeObj
  27232. this._out = {};
  27233. // v -> w -> Number
  27234. this._sucs = {};
  27235. // e -> edgeObj
  27236. this._edgeObjs = {};
  27237. // e -> label
  27238. this._edgeLabels = {};
  27239. }
  27240. /* Number of nodes in the graph. Should only be changed by the implementation. */
  27241. Graph.prototype._nodeCount = 0;
  27242. /* Number of edges in the graph. Should only be changed by the implementation. */
  27243. Graph.prototype._edgeCount = 0;
  27244. /* === Graph functions ========= */
  27245. Graph.prototype.isDirected = function() {
  27246. return this._isDirected;
  27247. };
  27248. Graph.prototype.isMultigraph = function() {
  27249. return this._isMultigraph;
  27250. };
  27251. Graph.prototype.isCompound = function() {
  27252. return this._isCompound;
  27253. };
  27254. Graph.prototype.setGraph = function(label) {
  27255. this._label = label;
  27256. return this;
  27257. };
  27258. Graph.prototype.graph = function() {
  27259. return this._label;
  27260. };
  27261. /* === Node functions ========== */
  27262. Graph.prototype.setDefaultNodeLabel = function(newDefault) {
  27263. if (!_.isFunction(newDefault)) {
  27264. newDefault = _.constant(newDefault);
  27265. }
  27266. this._defaultNodeLabelFn = newDefault;
  27267. return this;
  27268. };
  27269. Graph.prototype.nodeCount = function() {
  27270. return this._nodeCount;
  27271. };
  27272. Graph.prototype.nodes = function() {
  27273. return _.keys(this._nodes);
  27274. };
  27275. Graph.prototype.sources = function() {
  27276. var self = this;
  27277. return _.filter(this.nodes(), function(v) {
  27278. return _.isEmpty(self._in[v]);
  27279. });
  27280. };
  27281. Graph.prototype.sinks = function() {
  27282. var self = this;
  27283. return _.filter(this.nodes(), function(v) {
  27284. return _.isEmpty(self._out[v]);
  27285. });
  27286. };
  27287. Graph.prototype.setNodes = function(vs, value) {
  27288. var args = arguments;
  27289. var self = this;
  27290. _.each(vs, function(v) {
  27291. if (args.length > 1) {
  27292. self.setNode(v, value);
  27293. } else {
  27294. self.setNode(v);
  27295. }
  27296. });
  27297. return this;
  27298. };
  27299. Graph.prototype.setNode = function(v, value) {
  27300. if (_.has(this._nodes, v)) {
  27301. if (arguments.length > 1) {
  27302. this._nodes[v] = value;
  27303. }
  27304. return this;
  27305. }
  27306. this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
  27307. if (this._isCompound) {
  27308. this._parent[v] = GRAPH_NODE;
  27309. this._children[v] = {};
  27310. this._children[GRAPH_NODE][v] = true;
  27311. }
  27312. this._in[v] = {};
  27313. this._preds[v] = {};
  27314. this._out[v] = {};
  27315. this._sucs[v] = {};
  27316. ++this._nodeCount;
  27317. return this;
  27318. };
  27319. Graph.prototype.node = function(v) {
  27320. return this._nodes[v];
  27321. };
  27322. Graph.prototype.hasNode = function(v) {
  27323. return _.has(this._nodes, v);
  27324. };
  27325. Graph.prototype.removeNode = function(v) {
  27326. var self = this;
  27327. if (_.has(this._nodes, v)) {
  27328. var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };
  27329. delete this._nodes[v];
  27330. if (this._isCompound) {
  27331. this._removeFromParentsChildList(v);
  27332. delete this._parent[v];
  27333. _.each(this.children(v), function(child) {
  27334. self.setParent(child);
  27335. });
  27336. delete this._children[v];
  27337. }
  27338. _.each(_.keys(this._in[v]), removeEdge);
  27339. delete this._in[v];
  27340. delete this._preds[v];
  27341. _.each(_.keys(this._out[v]), removeEdge);
  27342. delete this._out[v];
  27343. delete this._sucs[v];
  27344. --this._nodeCount;
  27345. }
  27346. return this;
  27347. };
  27348. Graph.prototype.setParent = function(v, parent) {
  27349. if (!this._isCompound) {
  27350. throw new Error("Cannot set parent in a non-compound graph");
  27351. }
  27352. if (_.isUndefined(parent)) {
  27353. parent = GRAPH_NODE;
  27354. } else {
  27355. // Coerce parent to string
  27356. parent += "";
  27357. for (var ancestor = parent;
  27358. !_.isUndefined(ancestor);
  27359. ancestor = this.parent(ancestor)) {
  27360. if (ancestor === v) {
  27361. throw new Error("Setting " + parent+ " as parent of " + v +
  27362. " would create a cycle");
  27363. }
  27364. }
  27365. this.setNode(parent);
  27366. }
  27367. this.setNode(v);
  27368. this._removeFromParentsChildList(v);
  27369. this._parent[v] = parent;
  27370. this._children[parent][v] = true;
  27371. return this;
  27372. };
  27373. Graph.prototype._removeFromParentsChildList = function(v) {
  27374. delete this._children[this._parent[v]][v];
  27375. };
  27376. Graph.prototype.parent = function(v) {
  27377. if (this._isCompound) {
  27378. var parent = this._parent[v];
  27379. if (parent !== GRAPH_NODE) {
  27380. return parent;
  27381. }
  27382. }
  27383. };
  27384. Graph.prototype.children = function(v) {
  27385. if (_.isUndefined(v)) {
  27386. v = GRAPH_NODE;
  27387. }
  27388. if (this._isCompound) {
  27389. var children = this._children[v];
  27390. if (children) {
  27391. return _.keys(children);
  27392. }
  27393. } else if (v === GRAPH_NODE) {
  27394. return this.nodes();
  27395. } else if (this.hasNode(v)) {
  27396. return [];
  27397. }
  27398. };
  27399. Graph.prototype.predecessors = function(v) {
  27400. var predsV = this._preds[v];
  27401. if (predsV) {
  27402. return _.keys(predsV);
  27403. }
  27404. };
  27405. Graph.prototype.successors = function(v) {
  27406. var sucsV = this._sucs[v];
  27407. if (sucsV) {
  27408. return _.keys(sucsV);
  27409. }
  27410. };
  27411. Graph.prototype.neighbors = function(v) {
  27412. var preds = this.predecessors(v);
  27413. if (preds) {
  27414. return _.union(preds, this.successors(v));
  27415. }
  27416. };
  27417. Graph.prototype.isLeaf = function (v) {
  27418. var neighbors;
  27419. if (this.isDirected()) {
  27420. neighbors = this.successors(v);
  27421. } else {
  27422. neighbors = this.neighbors(v);
  27423. }
  27424. return neighbors.length === 0;
  27425. };
  27426. Graph.prototype.filterNodes = function(filter) {
  27427. var copy = new this.constructor({
  27428. directed: this._isDirected,
  27429. multigraph: this._isMultigraph,
  27430. compound: this._isCompound
  27431. });
  27432. copy.setGraph(this.graph());
  27433. var self = this;
  27434. _.each(this._nodes, function(value, v) {
  27435. if (filter(v)) {
  27436. copy.setNode(v, value);
  27437. }
  27438. });
  27439. _.each(this._edgeObjs, function(e) {
  27440. if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
  27441. copy.setEdge(e, self.edge(e));
  27442. }
  27443. });
  27444. var parents = {};
  27445. function findParent(v) {
  27446. var parent = self.parent(v);
  27447. if (parent === undefined || copy.hasNode(parent)) {
  27448. parents[v] = parent;
  27449. return parent;
  27450. } else if (parent in parents) {
  27451. return parents[parent];
  27452. } else {
  27453. return findParent(parent);
  27454. }
  27455. }
  27456. if (this._isCompound) {
  27457. _.each(copy.nodes(), function(v) {
  27458. copy.setParent(v, findParent(v));
  27459. });
  27460. }
  27461. return copy;
  27462. };
  27463. /* === Edge functions ========== */
  27464. Graph.prototype.setDefaultEdgeLabel = function(newDefault) {
  27465. if (!_.isFunction(newDefault)) {
  27466. newDefault = _.constant(newDefault);
  27467. }
  27468. this._defaultEdgeLabelFn = newDefault;
  27469. return this;
  27470. };
  27471. Graph.prototype.edgeCount = function() {
  27472. return this._edgeCount;
  27473. };
  27474. Graph.prototype.edges = function() {
  27475. return _.values(this._edgeObjs);
  27476. };
  27477. Graph.prototype.setPath = function(vs, value) {
  27478. var self = this;
  27479. var args = arguments;
  27480. _.reduce(vs, function(v, w) {
  27481. if (args.length > 1) {
  27482. self.setEdge(v, w, value);
  27483. } else {
  27484. self.setEdge(v, w);
  27485. }
  27486. return w;
  27487. });
  27488. return this;
  27489. };
  27490. /*
  27491. * setEdge(v, w, [value, [name]])
  27492. * setEdge({ v, w, [name] }, [value])
  27493. */
  27494. Graph.prototype.setEdge = function() {
  27495. var v, w, name, value;
  27496. var valueSpecified = false;
  27497. var arg0 = arguments[0];
  27498. if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
  27499. v = arg0.v;
  27500. w = arg0.w;
  27501. name = arg0.name;
  27502. if (arguments.length === 2) {
  27503. value = arguments[1];
  27504. valueSpecified = true;
  27505. }
  27506. } else {
  27507. v = arg0;
  27508. w = arguments[1];
  27509. name = arguments[3];
  27510. if (arguments.length > 2) {
  27511. value = arguments[2];
  27512. valueSpecified = true;
  27513. }
  27514. }
  27515. v = "" + v;
  27516. w = "" + w;
  27517. if (!_.isUndefined(name)) {
  27518. name = "" + name;
  27519. }
  27520. var e = edgeArgsToId(this._isDirected, v, w, name);
  27521. if (_.has(this._edgeLabels, e)) {
  27522. if (valueSpecified) {
  27523. this._edgeLabels[e] = value;
  27524. }
  27525. return this;
  27526. }
  27527. if (!_.isUndefined(name) && !this._isMultigraph) {
  27528. throw new Error("Cannot set a named edge when isMultigraph = false");
  27529. }
  27530. // It didn't exist, so we need to create it.
  27531. // First ensure the nodes exist.
  27532. this.setNode(v);
  27533. this.setNode(w);
  27534. this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
  27535. var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
  27536. // Ensure we add undirected edges in a consistent way.
  27537. v = edgeObj.v;
  27538. w = edgeObj.w;
  27539. Object.freeze(edgeObj);
  27540. this._edgeObjs[e] = edgeObj;
  27541. incrementOrInitEntry(this._preds[w], v);
  27542. incrementOrInitEntry(this._sucs[v], w);
  27543. this._in[w][e] = edgeObj;
  27544. this._out[v][e] = edgeObj;
  27545. this._edgeCount++;
  27546. return this;
  27547. };
  27548. Graph.prototype.edge = function(v, w, name) {
  27549. var e = (arguments.length === 1
  27550. ? edgeObjToId(this._isDirected, arguments[0])
  27551. : edgeArgsToId(this._isDirected, v, w, name));
  27552. return this._edgeLabels[e];
  27553. };
  27554. Graph.prototype.hasEdge = function(v, w, name) {
  27555. var e = (arguments.length === 1
  27556. ? edgeObjToId(this._isDirected, arguments[0])
  27557. : edgeArgsToId(this._isDirected, v, w, name));
  27558. return _.has(this._edgeLabels, e);
  27559. };
  27560. Graph.prototype.removeEdge = function(v, w, name) {
  27561. var e = (arguments.length === 1
  27562. ? edgeObjToId(this._isDirected, arguments[0])
  27563. : edgeArgsToId(this._isDirected, v, w, name));
  27564. var edge = this._edgeObjs[e];
  27565. if (edge) {
  27566. v = edge.v;
  27567. w = edge.w;
  27568. delete this._edgeLabels[e];
  27569. delete this._edgeObjs[e];
  27570. decrementOrRemoveEntry(this._preds[w], v);
  27571. decrementOrRemoveEntry(this._sucs[v], w);
  27572. delete this._in[w][e];
  27573. delete this._out[v][e];
  27574. this._edgeCount--;
  27575. }
  27576. return this;
  27577. };
  27578. Graph.prototype.inEdges = function(v, u) {
  27579. var inV = this._in[v];
  27580. if (inV) {
  27581. var edges = _.values(inV);
  27582. if (!u) {
  27583. return edges;
  27584. }
  27585. return _.filter(edges, function(edge) { return edge.v === u; });
  27586. }
  27587. };
  27588. Graph.prototype.outEdges = function(v, w) {
  27589. var outV = this._out[v];
  27590. if (outV) {
  27591. var edges = _.values(outV);
  27592. if (!w) {
  27593. return edges;
  27594. }
  27595. return _.filter(edges, function(edge) { return edge.w === w; });
  27596. }
  27597. };
  27598. Graph.prototype.nodeEdges = function(v, w) {
  27599. var inEdges = this.inEdges(v, w);
  27600. if (inEdges) {
  27601. return inEdges.concat(this.outEdges(v, w));
  27602. }
  27603. };
  27604. function incrementOrInitEntry(map, k) {
  27605. if (map[k]) {
  27606. map[k]++;
  27607. } else {
  27608. map[k] = 1;
  27609. }
  27610. }
  27611. function decrementOrRemoveEntry(map, k) {
  27612. if (!--map[k]) { delete map[k]; }
  27613. }
  27614. function edgeArgsToId(isDirected, v_, w_, name) {
  27615. var v = "" + v_;
  27616. var w = "" + w_;
  27617. if (!isDirected && v > w) {
  27618. var tmp = v;
  27619. v = w;
  27620. w = tmp;
  27621. }
  27622. return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
  27623. (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);
  27624. }
  27625. function edgeArgsToObj(isDirected, v_, w_, name) {
  27626. var v = "" + v_;
  27627. var w = "" + w_;
  27628. if (!isDirected && v > w) {
  27629. var tmp = v;
  27630. v = w;
  27631. w = tmp;
  27632. }
  27633. var edgeObj = { v: v, w: w };
  27634. if (name) {
  27635. edgeObj.name = name;
  27636. }
  27637. return edgeObj;
  27638. }
  27639. function edgeObjToId(isDirected, edgeObj) {
  27640. return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
  27641. }
  27642. /***/ }),
  27643. /***/ "./node_modules/graphlib/lib/index.js":
  27644. /*!********************************************!*\
  27645. !*** ./node_modules/graphlib/lib/index.js ***!
  27646. \********************************************/
  27647. /*! no static exports found */
  27648. /***/ (function(module, exports, __webpack_require__) {
  27649. // Includes only the "core" of graphlib
  27650. module.exports = {
  27651. Graph: __webpack_require__(/*! ./graph */ "./node_modules/graphlib/lib/graph.js"),
  27652. version: __webpack_require__(/*! ./version */ "./node_modules/graphlib/lib/version.js")
  27653. };
  27654. /***/ }),
  27655. /***/ "./node_modules/graphlib/lib/json.js":
  27656. /*!*******************************************!*\
  27657. !*** ./node_modules/graphlib/lib/json.js ***!
  27658. \*******************************************/
  27659. /*! no static exports found */
  27660. /***/ (function(module, exports, __webpack_require__) {
  27661. var _ = __webpack_require__(/*! ./lodash */ "./node_modules/graphlib/lib/lodash.js");
  27662. var Graph = __webpack_require__(/*! ./graph */ "./node_modules/graphlib/lib/graph.js");
  27663. module.exports = {
  27664. write: write,
  27665. read: read
  27666. };
  27667. function write(g) {
  27668. var json = {
  27669. options: {
  27670. directed: g.isDirected(),
  27671. multigraph: g.isMultigraph(),
  27672. compound: g.isCompound()
  27673. },
  27674. nodes: writeNodes(g),
  27675. edges: writeEdges(g)
  27676. };
  27677. if (!_.isUndefined(g.graph())) {
  27678. json.value = _.clone(g.graph());
  27679. }
  27680. return json;
  27681. }
  27682. function writeNodes(g) {
  27683. return _.map(g.nodes(), function(v) {
  27684. var nodeValue = g.node(v);
  27685. var parent = g.parent(v);
  27686. var node = { v: v };
  27687. if (!_.isUndefined(nodeValue)) {
  27688. node.value = nodeValue;
  27689. }
  27690. if (!_.isUndefined(parent)) {
  27691. node.parent = parent;
  27692. }
  27693. return node;
  27694. });
  27695. }
  27696. function writeEdges(g) {
  27697. return _.map(g.edges(), function(e) {
  27698. var edgeValue = g.edge(e);
  27699. var edge = { v: e.v, w: e.w };
  27700. if (!_.isUndefined(e.name)) {
  27701. edge.name = e.name;
  27702. }
  27703. if (!_.isUndefined(edgeValue)) {
  27704. edge.value = edgeValue;
  27705. }
  27706. return edge;
  27707. });
  27708. }
  27709. function read(json) {
  27710. var g = new Graph(json.options).setGraph(json.value);
  27711. _.each(json.nodes, function(entry) {
  27712. g.setNode(entry.v, entry.value);
  27713. if (entry.parent) {
  27714. g.setParent(entry.v, entry.parent);
  27715. }
  27716. });
  27717. _.each(json.edges, function(entry) {
  27718. g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);
  27719. });
  27720. return g;
  27721. }
  27722. /***/ }),
  27723. /***/ "./node_modules/graphlib/lib/lodash.js":
  27724. /*!*********************************************!*\
  27725. !*** ./node_modules/graphlib/lib/lodash.js ***!
  27726. \*********************************************/
  27727. /*! no static exports found */
  27728. /***/ (function(module, exports, __webpack_require__) {
  27729. /* global window */
  27730. var lodash;
  27731. if (true) {
  27732. try {
  27733. lodash = {
  27734. clone: __webpack_require__(/*! lodash/clone */ "./node_modules/lodash/clone.js"),
  27735. constant: __webpack_require__(/*! lodash/constant */ "./node_modules/lodash/constant.js"),
  27736. each: __webpack_require__(/*! lodash/each */ "./node_modules/lodash/each.js"),
  27737. filter: __webpack_require__(/*! lodash/filter */ "./node_modules/lodash/filter.js"),
  27738. has: __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js"),
  27739. isArray: __webpack_require__(/*! lodash/isArray */ "./node_modules/lodash/isArray.js"),
  27740. isEmpty: __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js"),
  27741. isFunction: __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js"),
  27742. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "./node_modules/lodash/isUndefined.js"),
  27743. keys: __webpack_require__(/*! lodash/keys */ "./node_modules/lodash/keys.js"),
  27744. map: __webpack_require__(/*! lodash/map */ "./node_modules/lodash/map.js"),
  27745. reduce: __webpack_require__(/*! lodash/reduce */ "./node_modules/lodash/reduce.js"),
  27746. size: __webpack_require__(/*! lodash/size */ "./node_modules/lodash/size.js"),
  27747. transform: __webpack_require__(/*! lodash/transform */ "./node_modules/lodash/transform.js"),
  27748. union: __webpack_require__(/*! lodash/union */ "./node_modules/lodash/union.js"),
  27749. values: __webpack_require__(/*! lodash/values */ "./node_modules/lodash/values.js")
  27750. };
  27751. } catch (e) {
  27752. // continue regardless of error
  27753. }
  27754. }
  27755. if (!lodash) {
  27756. lodash = window._;
  27757. }
  27758. module.exports = lodash;
  27759. /***/ }),
  27760. /***/ "./node_modules/graphlib/lib/version.js":
  27761. /*!**********************************************!*\
  27762. !*** ./node_modules/graphlib/lib/version.js ***!
  27763. \**********************************************/
  27764. /*! no static exports found */
  27765. /***/ (function(module, exports) {
  27766. module.exports = '2.1.8';
  27767. /***/ }),
  27768. /***/ "./node_modules/khroma/dist/channels/index.js":
  27769. /*!****************************************************!*\
  27770. !*** ./node_modules/khroma/dist/channels/index.js ***!
  27771. \****************************************************/
  27772. /*! no static exports found */
  27773. /***/ (function(module, exports, __webpack_require__) {
  27774. "use strict";
  27775. /* IMPORT */
  27776. Object.defineProperty(exports, "__esModule", { value: true });
  27777. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/khroma/dist/utils/index.js");
  27778. var types_1 = __webpack_require__(/*! ../types */ "./node_modules/khroma/dist/types.js");
  27779. var type_1 = __webpack_require__(/*! ./type */ "./node_modules/khroma/dist/channels/type.js");
  27780. /* CHANNELS */
  27781. var Channels = /** @class */ (function () {
  27782. /* CONSTRUCTOR */
  27783. function Channels(data, color) {
  27784. this.color = color;
  27785. this.changed = false;
  27786. this.data = data; //TSC
  27787. this.type = new type_1.default();
  27788. }
  27789. /* API */
  27790. Channels.prototype.set = function (data, color) {
  27791. this.color = color;
  27792. this.changed = false;
  27793. this.data = data; //TSC
  27794. this.type.type = types_1.TYPE.ALL;
  27795. return this;
  27796. };
  27797. /* HELPERS */
  27798. Channels.prototype._ensureHSL = function () {
  27799. if (this.data.h === undefined)
  27800. this.data.h = utils_1.default.channel.rgb2hsl(this.data, 'h');
  27801. if (this.data.s === undefined)
  27802. this.data.s = utils_1.default.channel.rgb2hsl(this.data, 's');
  27803. if (this.data.l === undefined)
  27804. this.data.l = utils_1.default.channel.rgb2hsl(this.data, 'l');
  27805. };
  27806. Channels.prototype._ensureRGB = function () {
  27807. if (this.data.r === undefined)
  27808. this.data.r = utils_1.default.channel.hsl2rgb(this.data, 'r');
  27809. if (this.data.g === undefined)
  27810. this.data.g = utils_1.default.channel.hsl2rgb(this.data, 'g');
  27811. if (this.data.b === undefined)
  27812. this.data.b = utils_1.default.channel.hsl2rgb(this.data, 'b');
  27813. };
  27814. Object.defineProperty(Channels.prototype, "r", {
  27815. /* GETTERS */
  27816. get: function () {
  27817. if (!this.type.is(types_1.TYPE.HSL) && this.data.r !== undefined)
  27818. return this.data.r;
  27819. this._ensureHSL();
  27820. return utils_1.default.channel.hsl2rgb(this.data, 'r');
  27821. },
  27822. /* SETTERS */
  27823. set: function (r) {
  27824. this.type.set(types_1.TYPE.RGB);
  27825. this.changed = true;
  27826. this.data.r = r;
  27827. },
  27828. enumerable: true,
  27829. configurable: true
  27830. });
  27831. Object.defineProperty(Channels.prototype, "g", {
  27832. get: function () {
  27833. if (!this.type.is(types_1.TYPE.HSL) && this.data.g !== undefined)
  27834. return this.data.g;
  27835. this._ensureHSL();
  27836. return utils_1.default.channel.hsl2rgb(this.data, 'g');
  27837. },
  27838. set: function (g) {
  27839. this.type.set(types_1.TYPE.RGB);
  27840. this.changed = true;
  27841. this.data.g = g;
  27842. },
  27843. enumerable: true,
  27844. configurable: true
  27845. });
  27846. Object.defineProperty(Channels.prototype, "b", {
  27847. get: function () {
  27848. if (!this.type.is(types_1.TYPE.HSL) && this.data.b !== undefined)
  27849. return this.data.b;
  27850. this._ensureHSL();
  27851. return utils_1.default.channel.hsl2rgb(this.data, 'b');
  27852. },
  27853. set: function (b) {
  27854. this.type.set(types_1.TYPE.RGB);
  27855. this.changed = true;
  27856. this.data.b = b;
  27857. },
  27858. enumerable: true,
  27859. configurable: true
  27860. });
  27861. Object.defineProperty(Channels.prototype, "h", {
  27862. get: function () {
  27863. if (!this.type.is(types_1.TYPE.RGB) && this.data.h !== undefined)
  27864. return this.data.h;
  27865. this._ensureRGB();
  27866. return utils_1.default.channel.rgb2hsl(this.data, 'h');
  27867. },
  27868. set: function (h) {
  27869. this.type.set(types_1.TYPE.HSL);
  27870. this.changed = true;
  27871. this.data.h = h;
  27872. },
  27873. enumerable: true,
  27874. configurable: true
  27875. });
  27876. Object.defineProperty(Channels.prototype, "s", {
  27877. get: function () {
  27878. if (!this.type.is(types_1.TYPE.RGB) && this.data.s !== undefined)
  27879. return this.data.s;
  27880. this._ensureRGB();
  27881. return utils_1.default.channel.rgb2hsl(this.data, 's');
  27882. },
  27883. set: function (s) {
  27884. this.type.set(types_1.TYPE.HSL);
  27885. this.changed = true;
  27886. this.data.s = s;
  27887. },
  27888. enumerable: true,
  27889. configurable: true
  27890. });
  27891. Object.defineProperty(Channels.prototype, "l", {
  27892. get: function () {
  27893. if (!this.type.is(types_1.TYPE.RGB) && this.data.l !== undefined)
  27894. return this.data.l;
  27895. this._ensureRGB();
  27896. return utils_1.default.channel.rgb2hsl(this.data, 'l');
  27897. },
  27898. set: function (l) {
  27899. this.type.set(types_1.TYPE.HSL);
  27900. this.changed = true;
  27901. this.data.l = l;
  27902. },
  27903. enumerable: true,
  27904. configurable: true
  27905. });
  27906. Object.defineProperty(Channels.prototype, "a", {
  27907. get: function () {
  27908. return this.data.a;
  27909. },
  27910. set: function (a) {
  27911. this.changed = true;
  27912. this.data.a = a;
  27913. },
  27914. enumerable: true,
  27915. configurable: true
  27916. });
  27917. return Channels;
  27918. }());
  27919. /* EXPORT */
  27920. exports.default = Channels;
  27921. /***/ }),
  27922. /***/ "./node_modules/khroma/dist/channels/reusable.js":
  27923. /*!*******************************************************!*\
  27924. !*** ./node_modules/khroma/dist/channels/reusable.js ***!
  27925. \*******************************************************/
  27926. /*! no static exports found */
  27927. /***/ (function(module, exports, __webpack_require__) {
  27928. "use strict";
  27929. /* IMPORT */
  27930. Object.defineProperty(exports, "__esModule", { value: true });
  27931. var _1 = __webpack_require__(/*! . */ "./node_modules/khroma/dist/channels/index.js");
  27932. /* REUSABLE */
  27933. var channels = new _1.default({ r: 0, g: 0, b: 0, a: 0 }, 'transparent');
  27934. /* EXPORT */
  27935. exports.default = channels;
  27936. /***/ }),
  27937. /***/ "./node_modules/khroma/dist/channels/type.js":
  27938. /*!***************************************************!*\
  27939. !*** ./node_modules/khroma/dist/channels/type.js ***!
  27940. \***************************************************/
  27941. /*! no static exports found */
  27942. /***/ (function(module, exports, __webpack_require__) {
  27943. "use strict";
  27944. /* IMPORT */
  27945. Object.defineProperty(exports, "__esModule", { value: true });
  27946. var types_1 = __webpack_require__(/*! ../types */ "./node_modules/khroma/dist/types.js");
  27947. /* TYPE */
  27948. var Type = /** @class */ (function () {
  27949. function Type() {
  27950. this.type = types_1.TYPE.ALL;
  27951. }
  27952. Type.prototype.get = function () {
  27953. return this.type;
  27954. };
  27955. Type.prototype.set = function (type) {
  27956. if (this.type && this.type !== type)
  27957. throw new Error('Cannot change both RGB and HSL channels at the same time');
  27958. this.type = type;
  27959. };
  27960. Type.prototype.reset = function () {
  27961. this.type = types_1.TYPE.ALL;
  27962. };
  27963. Type.prototype.is = function (type) {
  27964. return this.type === type;
  27965. };
  27966. return Type;
  27967. }());
  27968. /* EXPORT */
  27969. exports.default = Type;
  27970. /***/ }),
  27971. /***/ "./node_modules/khroma/dist/color/hex.js":
  27972. /*!***********************************************!*\
  27973. !*** ./node_modules/khroma/dist/color/hex.js ***!
  27974. \***********************************************/
  27975. /*! no static exports found */
  27976. /***/ (function(module, exports, __webpack_require__) {
  27977. "use strict";
  27978. /* IMPORT */
  27979. Object.defineProperty(exports, "__esModule", { value: true });
  27980. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/khroma/dist/utils/index.js");
  27981. var reusable_1 = __webpack_require__(/*! ../channels/reusable */ "./node_modules/khroma/dist/channels/reusable.js");
  27982. var consts_1 = __webpack_require__(/*! ../consts */ "./node_modules/khroma/dist/consts.js");
  27983. /* HEX */
  27984. var Hex = {
  27985. /* VARIABLES */
  27986. re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
  27987. /* API */
  27988. parse: function (color) {
  27989. if (color.charCodeAt(0) !== 35)
  27990. return; // '#'
  27991. var match = color.match(Hex.re);
  27992. if (!match)
  27993. return;
  27994. var hex = match[1], dec = parseInt(hex, 16), length = hex.length, hasAlpha = length % 4 === 0, isFullLength = length > 4, multiplier = isFullLength ? 1 : 17, bits = isFullLength ? 8 : 4, bitsOffset = hasAlpha ? 0 : -1, mask = isFullLength ? 255 : 15;
  27995. return reusable_1.default.set({
  27996. r: ((dec >> (bits * (bitsOffset + 3))) & mask) * multiplier,
  27997. g: ((dec >> (bits * (bitsOffset + 2))) & mask) * multiplier,
  27998. b: ((dec >> (bits * (bitsOffset + 1))) & mask) * multiplier,
  27999. a: hasAlpha ? (dec & mask) * multiplier / 255 : 1
  28000. }, color);
  28001. },
  28002. stringify: function (channels) {
  28003. if (channels.a < 1) { // #RRGGBBAA
  28004. return "#" + consts_1.DEC2HEX[Math.round(channels.r)] + consts_1.DEC2HEX[Math.round(channels.g)] + consts_1.DEC2HEX[Math.round(channels.b)] + utils_1.default.unit.frac2hex(channels.a);
  28005. }
  28006. else { // #RRGGBB
  28007. return "#" + consts_1.DEC2HEX[Math.round(channels.r)] + consts_1.DEC2HEX[Math.round(channels.g)] + consts_1.DEC2HEX[Math.round(channels.b)];
  28008. }
  28009. }
  28010. };
  28011. /* EXPORT */
  28012. exports.default = Hex;
  28013. /***/ }),
  28014. /***/ "./node_modules/khroma/dist/color/hsl.js":
  28015. /*!***********************************************!*\
  28016. !*** ./node_modules/khroma/dist/color/hsl.js ***!
  28017. \***********************************************/
  28018. /*! no static exports found */
  28019. /***/ (function(module, exports, __webpack_require__) {
  28020. "use strict";
  28021. /* IMPORT */
  28022. Object.defineProperty(exports, "__esModule", { value: true });
  28023. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/khroma/dist/utils/index.js");
  28024. var reusable_1 = __webpack_require__(/*! ../channels/reusable */ "./node_modules/khroma/dist/channels/reusable.js");
  28025. /* HSL */
  28026. var HSL = {
  28027. /* VARIABLES */
  28028. re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
  28029. hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
  28030. /* HELPERS */
  28031. _hue2deg: function (hue) {
  28032. var match = hue.match(HSL.hueRe);
  28033. if (match) {
  28034. var number = match[1], unit = match[2];
  28035. switch (unit) {
  28036. case 'grad': return utils_1.default.channel.clamp.h(parseFloat(number) * .9);
  28037. case 'rad': return utils_1.default.channel.clamp.h(parseFloat(number) * 180 / Math.PI);
  28038. case 'turn': return utils_1.default.channel.clamp.h(parseFloat(number) * 360);
  28039. }
  28040. }
  28041. return utils_1.default.channel.clamp.h(parseFloat(hue));
  28042. },
  28043. /* API */
  28044. parse: function (color) {
  28045. var charCode = color.charCodeAt(0);
  28046. if (charCode !== 104 && charCode !== 72)
  28047. return; // 'h'/'H'
  28048. var match = color.match(HSL.re);
  28049. if (!match)
  28050. return;
  28051. var h = match[1], s = match[2], l = match[3], a = match[4], isAlphaPercentage = match[5];
  28052. return reusable_1.default.set({
  28053. h: HSL._hue2deg(h),
  28054. s: utils_1.default.channel.clamp.s(parseFloat(s)),
  28055. l: utils_1.default.channel.clamp.l(parseFloat(l)),
  28056. a: a ? utils_1.default.channel.clamp.a(isAlphaPercentage ? parseFloat(a) / 100 : parseFloat(a)) : 1
  28057. }, color);
  28058. },
  28059. stringify: function (channels) {
  28060. if (channels.a < 1) { // HSLA
  28061. return "hsla(" + utils_1.default.lang.round(channels.h) + ", " + utils_1.default.lang.round(channels.s) + "%, " + utils_1.default.lang.round(channels.l) + "%, " + channels.a + ")";
  28062. }
  28063. else { // HSL
  28064. return "hsl(" + utils_1.default.lang.round(channels.h) + ", " + utils_1.default.lang.round(channels.s) + "%, " + utils_1.default.lang.round(channels.l) + "%)";
  28065. }
  28066. }
  28067. };
  28068. /* EXPORT */
  28069. exports.default = HSL;
  28070. /***/ }),
  28071. /***/ "./node_modules/khroma/dist/color/index.js":
  28072. /*!*************************************************!*\
  28073. !*** ./node_modules/khroma/dist/color/index.js ***!
  28074. \*************************************************/
  28075. /*! no static exports found */
  28076. /***/ (function(module, exports, __webpack_require__) {
  28077. "use strict";
  28078. /* IMPORT */
  28079. Object.defineProperty(exports, "__esModule", { value: true });
  28080. var types_1 = __webpack_require__(/*! ../types */ "./node_modules/khroma/dist/types.js");
  28081. var hex_1 = __webpack_require__(/*! ./hex */ "./node_modules/khroma/dist/color/hex.js");
  28082. var keyword_1 = __webpack_require__(/*! ./keyword */ "./node_modules/khroma/dist/color/keyword.js");
  28083. var rgb_1 = __webpack_require__(/*! ./rgb */ "./node_modules/khroma/dist/color/rgb.js");
  28084. var hsl_1 = __webpack_require__(/*! ./hsl */ "./node_modules/khroma/dist/color/hsl.js");
  28085. /* COLOR */
  28086. var Color = {
  28087. /* VARIABLES */
  28088. format: {
  28089. keyword: keyword_1.default,
  28090. hex: hex_1.default,
  28091. rgb: rgb_1.default,
  28092. rgba: rgb_1.default,
  28093. hsl: hsl_1.default,
  28094. hsla: hsl_1.default
  28095. },
  28096. /* API */
  28097. parse: function (color) {
  28098. if (typeof color !== 'string')
  28099. return color;
  28100. var channels = hex_1.default.parse(color) || rgb_1.default.parse(color) || hsl_1.default.parse(color) || keyword_1.default.parse(color); // Color providers ordered with performance in mind
  28101. if (channels)
  28102. return channels;
  28103. throw new Error("Unsupported color format: \"" + color + "\"");
  28104. },
  28105. stringify: function (channels) {
  28106. // SASS returns a keyword if possible, but we avoid doing that as it's slower and doesn't really add any value
  28107. if (!channels.changed && channels.color)
  28108. return channels.color;
  28109. if (channels.type.is(types_1.TYPE.HSL) || channels.data.r === undefined) {
  28110. return hsl_1.default.stringify(channels);
  28111. }
  28112. else if (channels.a < 1 || !Number.isInteger(channels.r) || !Number.isInteger(channels.g) || !Number.isInteger(channels.b)) {
  28113. return rgb_1.default.stringify(channels);
  28114. }
  28115. else {
  28116. return hex_1.default.stringify(channels);
  28117. }
  28118. }
  28119. };
  28120. /* EXPORT */
  28121. exports.default = Color;
  28122. /***/ }),
  28123. /***/ "./node_modules/khroma/dist/color/keyword.js":
  28124. /*!***************************************************!*\
  28125. !*** ./node_modules/khroma/dist/color/keyword.js ***!
  28126. \***************************************************/
  28127. /*! no static exports found */
  28128. /***/ (function(module, exports, __webpack_require__) {
  28129. "use strict";
  28130. /* IMPORT */
  28131. Object.defineProperty(exports, "__esModule", { value: true });
  28132. var hex_1 = __webpack_require__(/*! ./hex */ "./node_modules/khroma/dist/color/hex.js");
  28133. /* KEYWORD */
  28134. var Keyword = {
  28135. /* VARIABLES */
  28136. colors: {
  28137. aliceblue: '#f0f8ff',
  28138. antiquewhite: '#faebd7',
  28139. aqua: '#00ffff',
  28140. aquamarine: '#7fffd4',
  28141. azure: '#f0ffff',
  28142. beige: '#f5f5dc',
  28143. bisque: '#ffe4c4',
  28144. black: '#000000',
  28145. blanchedalmond: '#ffebcd',
  28146. blue: '#0000ff',
  28147. blueviolet: '#8a2be2',
  28148. brown: '#a52a2a',
  28149. burlywood: '#deb887',
  28150. cadetblue: '#5f9ea0',
  28151. chartreuse: '#7fff00',
  28152. chocolate: '#d2691e',
  28153. coral: '#ff7f50',
  28154. cornflowerblue: '#6495ed',
  28155. cornsilk: '#fff8dc',
  28156. crimson: '#dc143c',
  28157. cyanaqua: '#00ffff',
  28158. darkblue: '#00008b',
  28159. darkcyan: '#008b8b',
  28160. darkgoldenrod: '#b8860b',
  28161. darkgray: '#a9a9a9',
  28162. darkgreen: '#006400',
  28163. darkgrey: '#a9a9a9',
  28164. darkkhaki: '#bdb76b',
  28165. darkmagenta: '#8b008b',
  28166. darkolivegreen: '#556b2f',
  28167. darkorange: '#ff8c00',
  28168. darkorchid: '#9932cc',
  28169. darkred: '#8b0000',
  28170. darksalmon: '#e9967a',
  28171. darkseagreen: '#8fbc8f',
  28172. darkslateblue: '#483d8b',
  28173. darkslategray: '#2f4f4f',
  28174. darkslategrey: '#2f4f4f',
  28175. darkturquoise: '#00ced1',
  28176. darkviolet: '#9400d3',
  28177. deeppink: '#ff1493',
  28178. deepskyblue: '#00bfff',
  28179. dimgray: '#696969',
  28180. dimgrey: '#696969',
  28181. dodgerblue: '#1e90ff',
  28182. firebrick: '#b22222',
  28183. floralwhite: '#fffaf0',
  28184. forestgreen: '#228b22',
  28185. fuchsia: '#ff00ff',
  28186. gainsboro: '#dcdcdc',
  28187. ghostwhite: '#f8f8ff',
  28188. gold: '#ffd700',
  28189. goldenrod: '#daa520',
  28190. gray: '#808080',
  28191. green: '#008000',
  28192. greenyellow: '#adff2f',
  28193. grey: '#808080',
  28194. honeydew: '#f0fff0',
  28195. hotpink: '#ff69b4',
  28196. indianred: '#cd5c5c',
  28197. indigo: '#4b0082',
  28198. ivory: '#fffff0',
  28199. khaki: '#f0e68c',
  28200. lavender: '#e6e6fa',
  28201. lavenderblush: '#fff0f5',
  28202. lawngreen: '#7cfc00',
  28203. lemonchiffon: '#fffacd',
  28204. lightblue: '#add8e6',
  28205. lightcoral: '#f08080',
  28206. lightcyan: '#e0ffff',
  28207. lightgoldenrodyellow: '#fafad2',
  28208. lightgray: '#d3d3d3',
  28209. lightgreen: '#90ee90',
  28210. lightgrey: '#d3d3d3',
  28211. lightpink: '#ffb6c1',
  28212. lightsalmon: '#ffa07a',
  28213. lightseagreen: '#20b2aa',
  28214. lightskyblue: '#87cefa',
  28215. lightslategray: '#778899',
  28216. lightslategrey: '#778899',
  28217. lightsteelblue: '#b0c4de',
  28218. lightyellow: '#ffffe0',
  28219. lime: '#00ff00',
  28220. limegreen: '#32cd32',
  28221. linen: '#faf0e6',
  28222. magenta: '#ff00ff',
  28223. maroon: '#800000',
  28224. mediumaquamarine: '#66cdaa',
  28225. mediumblue: '#0000cd',
  28226. mediumorchid: '#ba55d3',
  28227. mediumpurple: '#9370db',
  28228. mediumseagreen: '#3cb371',
  28229. mediumslateblue: '#7b68ee',
  28230. mediumspringgreen: '#00fa9a',
  28231. mediumturquoise: '#48d1cc',
  28232. mediumvioletred: '#c71585',
  28233. midnightblue: '#191970',
  28234. mintcream: '#f5fffa',
  28235. mistyrose: '#ffe4e1',
  28236. moccasin: '#ffe4b5',
  28237. navajowhite: '#ffdead',
  28238. navy: '#000080',
  28239. oldlace: '#fdf5e6',
  28240. olive: '#808000',
  28241. olivedrab: '#6b8e23',
  28242. orange: '#ffa500',
  28243. orangered: '#ff4500',
  28244. orchid: '#da70d6',
  28245. palegoldenrod: '#eee8aa',
  28246. palegreen: '#98fb98',
  28247. paleturquoise: '#afeeee',
  28248. palevioletred: '#db7093',
  28249. papayawhip: '#ffefd5',
  28250. peachpuff: '#ffdab9',
  28251. peru: '#cd853f',
  28252. pink: '#ffc0cb',
  28253. plum: '#dda0dd',
  28254. powderblue: '#b0e0e6',
  28255. purple: '#800080',
  28256. rebeccapurple: '#663399',
  28257. red: '#ff0000',
  28258. rosybrown: '#bc8f8f',
  28259. royalblue: '#4169e1',
  28260. saddlebrown: '#8b4513',
  28261. salmon: '#fa8072',
  28262. sandybrown: '#f4a460',
  28263. seagreen: '#2e8b57',
  28264. seashell: '#fff5ee',
  28265. sienna: '#a0522d',
  28266. silver: '#c0c0c0',
  28267. skyblue: '#87ceeb',
  28268. slateblue: '#6a5acd',
  28269. slategray: '#708090',
  28270. slategrey: '#708090',
  28271. snow: '#fffafa',
  28272. springgreen: '#00ff7f',
  28273. tan: '#d2b48c',
  28274. teal: '#008080',
  28275. thistle: '#d8bfd8',
  28276. transparent: '#00000000',
  28277. turquoise: '#40e0d0',
  28278. violet: '#ee82ee',
  28279. wheat: '#f5deb3',
  28280. white: '#ffffff',
  28281. whitesmoke: '#f5f5f5',
  28282. yellow: '#ffff00',
  28283. yellowgreen: '#9acd32'
  28284. },
  28285. /* API */
  28286. parse: function (color) {
  28287. color = color.toLowerCase();
  28288. var hex = Keyword.colors[color];
  28289. if (!hex)
  28290. return;
  28291. return hex_1.default.parse(hex);
  28292. },
  28293. stringify: function (channels) {
  28294. var hex = hex_1.default.stringify(channels);
  28295. for (var name_1 in Keyword.colors) {
  28296. if (Keyword.colors[name_1] === hex)
  28297. return name_1;
  28298. }
  28299. }
  28300. };
  28301. /* EXPORT */
  28302. exports.default = Keyword;
  28303. /***/ }),
  28304. /***/ "./node_modules/khroma/dist/color/rgb.js":
  28305. /*!***********************************************!*\
  28306. !*** ./node_modules/khroma/dist/color/rgb.js ***!
  28307. \***********************************************/
  28308. /*! no static exports found */
  28309. /***/ (function(module, exports, __webpack_require__) {
  28310. "use strict";
  28311. /* IMPORT */
  28312. Object.defineProperty(exports, "__esModule", { value: true });
  28313. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/khroma/dist/utils/index.js");
  28314. var reusable_1 = __webpack_require__(/*! ../channels/reusable */ "./node_modules/khroma/dist/channels/reusable.js");
  28315. /* RGB */
  28316. var RGB = {
  28317. /* VARIABLES */
  28318. re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
  28319. /* API */
  28320. parse: function (color) {
  28321. var charCode = color.charCodeAt(0);
  28322. if (charCode !== 114 && charCode !== 82)
  28323. return; // 'r'/'R'
  28324. var match = color.match(RGB.re);
  28325. if (!match)
  28326. return;
  28327. var r = match[1], isRedPercentage = match[2], g = match[3], isGreenPercentage = match[4], b = match[5], isBluePercentage = match[6], a = match[7], isAlphaPercentage = match[8];
  28328. return reusable_1.default.set({
  28329. r: utils_1.default.channel.clamp.r(isRedPercentage ? parseFloat(r) * 2.55 : parseFloat(r)),
  28330. g: utils_1.default.channel.clamp.g(isGreenPercentage ? parseFloat(g) * 2.55 : parseFloat(g)),
  28331. b: utils_1.default.channel.clamp.b(isBluePercentage ? parseFloat(b) * 2.55 : parseFloat(b)),
  28332. a: a ? utils_1.default.channel.clamp.a(isAlphaPercentage ? parseFloat(a) / 100 : parseFloat(a)) : 1
  28333. }, color);
  28334. },
  28335. stringify: function (channels) {
  28336. if (channels.a < 1) { // RGBA
  28337. return "rgba(" + utils_1.default.lang.round(channels.r) + ", " + utils_1.default.lang.round(channels.g) + ", " + utils_1.default.lang.round(channels.b) + ", " + utils_1.default.lang.round(channels.a) + ")";
  28338. }
  28339. else { // RGB
  28340. return "rgb(" + utils_1.default.lang.round(channels.r) + ", " + utils_1.default.lang.round(channels.g) + ", " + utils_1.default.lang.round(channels.b) + ")";
  28341. }
  28342. }
  28343. };
  28344. /* EXPORT */
  28345. exports.default = RGB;
  28346. /***/ }),
  28347. /***/ "./node_modules/khroma/dist/consts.js":
  28348. /*!********************************************!*\
  28349. !*** ./node_modules/khroma/dist/consts.js ***!
  28350. \********************************************/
  28351. /*! no static exports found */
  28352. /***/ (function(module, exports, __webpack_require__) {
  28353. "use strict";
  28354. /* IMPORT */
  28355. Object.defineProperty(exports, "__esModule", { value: true });
  28356. var utils_1 = __webpack_require__(/*! ./utils */ "./node_modules/khroma/dist/utils/index.js");
  28357. /* CONSTS */
  28358. var DEC2HEX = {};
  28359. exports.DEC2HEX = DEC2HEX;
  28360. for (var i = 0; i <= 255; i++)
  28361. DEC2HEX[i] = utils_1.default.unit.dec2hex(i); // Populating dynamically, striking a balance between code size and performance
  28362. /***/ }),
  28363. /***/ "./node_modules/khroma/dist/index.js":
  28364. /*!*******************************************!*\
  28365. !*** ./node_modules/khroma/dist/index.js ***!
  28366. \*******************************************/
  28367. /*! no static exports found */
  28368. /***/ (function(module, exports, __webpack_require__) {
  28369. "use strict";
  28370. /* EXPORT */
  28371. function __export(m) {
  28372. for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
  28373. }
  28374. Object.defineProperty(exports, "__esModule", { value: true });
  28375. __export(__webpack_require__(/*! ./methods */ "./node_modules/khroma/dist/methods/index.js"));
  28376. /***/ }),
  28377. /***/ "./node_modules/khroma/dist/methods/adjust.js":
  28378. /*!****************************************************!*\
  28379. !*** ./node_modules/khroma/dist/methods/adjust.js ***!
  28380. \****************************************************/
  28381. /*! no static exports found */
  28382. /***/ (function(module, exports, __webpack_require__) {
  28383. "use strict";
  28384. /* IMPORT */
  28385. Object.defineProperty(exports, "__esModule", { value: true });
  28386. var color_1 = __webpack_require__(/*! ../color */ "./node_modules/khroma/dist/color/index.js");
  28387. var change_1 = __webpack_require__(/*! ./change */ "./node_modules/khroma/dist/methods/change.js");
  28388. /* ADJUST */
  28389. function adjust(color, channels) {
  28390. var ch = color_1.default.parse(color), changes = {};
  28391. for (var c in channels) {
  28392. if (!channels[c])
  28393. continue;
  28394. changes[c] = ch[c] + channels[c];
  28395. }
  28396. return change_1.default(color, changes);
  28397. }
  28398. /* EXPORT */
  28399. exports.default = adjust;
  28400. /***/ }),
  28401. /***/ "./node_modules/khroma/dist/methods/adjust_channel.js":
  28402. /*!************************************************************!*\
  28403. !*** ./node_modules/khroma/dist/methods/adjust_channel.js ***!
  28404. \************************************************************/
  28405. /*! no static exports found */
  28406. /***/ (function(module, exports, __webpack_require__) {
  28407. "use strict";
  28408. /* IMPORT */
  28409. Object.defineProperty(exports, "__esModule", { value: true });
  28410. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/khroma/dist/utils/index.js");
  28411. var color_1 = __webpack_require__(/*! ../color */ "./node_modules/khroma/dist/color/index.js");
  28412. /* ADJUST CHANNEL */
  28413. function adjustChannel(color, channel, amount) {
  28414. var channels = color_1.default.parse(color), amountCurrent = channels[channel], amountNext = utils_1.default.channel.clamp[channel](amountCurrent + amount);
  28415. if (amountCurrent !== amountNext)
  28416. channels[channel] = amountNext;
  28417. return color_1.default.stringify(channels);
  28418. }
  28419. /* EXPORT */
  28420. exports.default = adjustChannel;
  28421. /***/ }),
  28422. /***/ "./node_modules/khroma/dist/methods/alpha.js":
  28423. /*!***************************************************!*\
  28424. !*** ./node_modules/khroma/dist/methods/alpha.js ***!
  28425. \***************************************************/
  28426. /*! no static exports found */
  28427. /***/ (function(module, exports, __webpack_require__) {
  28428. "use strict";
  28429. /* IMPORT */
  28430. Object.defineProperty(exports, "__esModule", { value: true });
  28431. var channel_1 = __webpack_require__(/*! ./channel */ "./node_modules/khroma/dist/methods/channel.js");
  28432. /* ALPHA */
  28433. function alpha(color) {
  28434. return channel_1.default(color, 'a');
  28435. }
  28436. /* EXPORT */
  28437. exports.default = alpha;
  28438. /***/ }),
  28439. /***/ "./node_modules/khroma/dist/methods/blue.js":
  28440. /*!**************************************************!*\
  28441. !*** ./node_modules/khroma/dist/methods/blue.js ***!
  28442. \**************************************************/
  28443. /*! no static exports found */
  28444. /***/ (function(module, exports, __webpack_require__) {
  28445. "use strict";
  28446. /* IMPORT */
  28447. Object.defineProperty(exports, "__esModule", { value: true });
  28448. var channel_1 = __webpack_require__(/*! ./channel */ "./node_modules/khroma/dist/methods/channel.js");
  28449. /* BLUE */
  28450. function blue(color) {
  28451. return channel_1.default(color, 'b');
  28452. }
  28453. /* EXPORT */
  28454. exports.default = blue;
  28455. /***/ }),
  28456. /***/ "./node_modules/khroma/dist/methods/change.js":
  28457. /*!****************************************************!*\
  28458. !*** ./node_modules/khroma/dist/methods/change.js ***!
  28459. \****************************************************/
  28460. /*! no static exports found */
  28461. /***/ (function(module, exports, __webpack_require__) {
  28462. "use strict";
  28463. /* IMPORT */
  28464. Object.defineProperty(exports, "__esModule", { value: true });
  28465. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/khroma/dist/utils/index.js");
  28466. var color_1 = __webpack_require__(/*! ../color */ "./node_modules/khroma/dist/color/index.js");
  28467. /* CHANGE */
  28468. function change(color, channels) {
  28469. var ch = color_1.default.parse(color);
  28470. for (var c in channels) {
  28471. ch[c] = utils_1.default.channel.clamp[c](channels[c]);
  28472. }
  28473. return color_1.default.stringify(ch);
  28474. }
  28475. /* EXPORT */
  28476. exports.default = change;
  28477. /***/ }),
  28478. /***/ "./node_modules/khroma/dist/methods/channel.js":
  28479. /*!*****************************************************!*\
  28480. !*** ./node_modules/khroma/dist/methods/channel.js ***!
  28481. \*****************************************************/
  28482. /*! no static exports found */
  28483. /***/ (function(module, exports, __webpack_require__) {
  28484. "use strict";
  28485. /* IMPORT */
  28486. Object.defineProperty(exports, "__esModule", { value: true });
  28487. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/khroma/dist/utils/index.js");
  28488. var color_1 = __webpack_require__(/*! ../color */ "./node_modules/khroma/dist/color/index.js");
  28489. /* CHANNEL */
  28490. function channel(color, channel) {
  28491. return utils_1.default.lang.round(color_1.default.parse(color)[channel]);
  28492. }
  28493. /* EXPORT */
  28494. exports.default = channel;
  28495. /***/ }),
  28496. /***/ "./node_modules/khroma/dist/methods/complement.js":
  28497. /*!********************************************************!*\
  28498. !*** ./node_modules/khroma/dist/methods/complement.js ***!
  28499. \********************************************************/
  28500. /*! no static exports found */
  28501. /***/ (function(module, exports, __webpack_require__) {
  28502. "use strict";
  28503. /* IMPORT */
  28504. Object.defineProperty(exports, "__esModule", { value: true });
  28505. var adjust_channel_1 = __webpack_require__(/*! ./adjust_channel */ "./node_modules/khroma/dist/methods/adjust_channel.js");
  28506. /* COMPLEMENT */
  28507. function complement(color) {
  28508. return adjust_channel_1.default(color, 'h', 180);
  28509. }
  28510. /* EXPORT */
  28511. exports.default = complement;
  28512. /***/ }),
  28513. /***/ "./node_modules/khroma/dist/methods/darken.js":
  28514. /*!****************************************************!*\
  28515. !*** ./node_modules/khroma/dist/methods/darken.js ***!
  28516. \****************************************************/
  28517. /*! no static exports found */
  28518. /***/ (function(module, exports, __webpack_require__) {
  28519. "use strict";
  28520. /* IMPORT */
  28521. Object.defineProperty(exports, "__esModule", { value: true });
  28522. var adjust_channel_1 = __webpack_require__(/*! ./adjust_channel */ "./node_modules/khroma/dist/methods/adjust_channel.js");
  28523. /* DARKEN */
  28524. function darken(color, amount) {
  28525. return adjust_channel_1.default(color, 'l', -amount);
  28526. }
  28527. /* EXPORT */
  28528. exports.default = darken;
  28529. /***/ }),
  28530. /***/ "./node_modules/khroma/dist/methods/desaturate.js":
  28531. /*!********************************************************!*\
  28532. !*** ./node_modules/khroma/dist/methods/desaturate.js ***!
  28533. \********************************************************/
  28534. /*! no static exports found */
  28535. /***/ (function(module, exports, __webpack_require__) {
  28536. "use strict";
  28537. /* IMPORT */
  28538. Object.defineProperty(exports, "__esModule", { value: true });
  28539. var adjust_channel_1 = __webpack_require__(/*! ./adjust_channel */ "./node_modules/khroma/dist/methods/adjust_channel.js");
  28540. /* DESATURATE */
  28541. function desaturate(color, amount) {
  28542. return adjust_channel_1.default(color, 's', -amount);
  28543. }
  28544. /* EXPORT */
  28545. exports.default = desaturate;
  28546. /***/ }),
  28547. /***/ "./node_modules/khroma/dist/methods/grayscale.js":
  28548. /*!*******************************************************!*\
  28549. !*** ./node_modules/khroma/dist/methods/grayscale.js ***!
  28550. \*******************************************************/
  28551. /*! no static exports found */
  28552. /***/ (function(module, exports, __webpack_require__) {
  28553. "use strict";
  28554. /* IMPORT */
  28555. Object.defineProperty(exports, "__esModule", { value: true });
  28556. var change_1 = __webpack_require__(/*! ./change */ "./node_modules/khroma/dist/methods/change.js");
  28557. /* GRAYSCALE */
  28558. function grayscale(color) {
  28559. return change_1.default(color, { s: 0 });
  28560. }
  28561. /* EXPORT */
  28562. exports.default = grayscale;
  28563. /***/ }),
  28564. /***/ "./node_modules/khroma/dist/methods/green.js":
  28565. /*!***************************************************!*\
  28566. !*** ./node_modules/khroma/dist/methods/green.js ***!
  28567. \***************************************************/
  28568. /*! no static exports found */
  28569. /***/ (function(module, exports, __webpack_require__) {
  28570. "use strict";
  28571. /* IMPORT */
  28572. Object.defineProperty(exports, "__esModule", { value: true });
  28573. var channel_1 = __webpack_require__(/*! ./channel */ "./node_modules/khroma/dist/methods/channel.js");
  28574. /* GREEN */
  28575. function green(color) {
  28576. return channel_1.default(color, 'g');
  28577. }
  28578. /* EXPORT */
  28579. exports.default = green;
  28580. /***/ }),
  28581. /***/ "./node_modules/khroma/dist/methods/hsla.js":
  28582. /*!**************************************************!*\
  28583. !*** ./node_modules/khroma/dist/methods/hsla.js ***!
  28584. \**************************************************/
  28585. /*! no static exports found */
  28586. /***/ (function(module, exports, __webpack_require__) {
  28587. "use strict";
  28588. /* IMPORT */
  28589. Object.defineProperty(exports, "__esModule", { value: true });
  28590. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/khroma/dist/utils/index.js");
  28591. var reusable_1 = __webpack_require__(/*! ../channels/reusable */ "./node_modules/khroma/dist/channels/reusable.js");
  28592. var color_1 = __webpack_require__(/*! ../color */ "./node_modules/khroma/dist/color/index.js");
  28593. /* HSLA */
  28594. function hsla(h, s, l, a) {
  28595. if (a === void 0) { a = 1; }
  28596. var channels = reusable_1.default.set({
  28597. h: utils_1.default.channel.clamp.h(h),
  28598. s: utils_1.default.channel.clamp.s(s),
  28599. l: utils_1.default.channel.clamp.l(l),
  28600. a: utils_1.default.channel.clamp.a(a)
  28601. });
  28602. return color_1.default.stringify(channels);
  28603. }
  28604. /* EXPORT */
  28605. exports.default = hsla;
  28606. /***/ }),
  28607. /***/ "./node_modules/khroma/dist/methods/hue.js":
  28608. /*!*************************************************!*\
  28609. !*** ./node_modules/khroma/dist/methods/hue.js ***!
  28610. \*************************************************/
  28611. /*! no static exports found */
  28612. /***/ (function(module, exports, __webpack_require__) {
  28613. "use strict";
  28614. /* IMPORT */
  28615. Object.defineProperty(exports, "__esModule", { value: true });
  28616. var channel_1 = __webpack_require__(/*! ./channel */ "./node_modules/khroma/dist/methods/channel.js");
  28617. /* HUE */
  28618. function hue(color) {
  28619. return channel_1.default(color, 'h');
  28620. }
  28621. /* EXPORT */
  28622. exports.default = hue;
  28623. /***/ }),
  28624. /***/ "./node_modules/khroma/dist/methods/index.js":
  28625. /*!***************************************************!*\
  28626. !*** ./node_modules/khroma/dist/methods/index.js ***!
  28627. \***************************************************/
  28628. /*! no static exports found */
  28629. /***/ (function(module, exports, __webpack_require__) {
  28630. "use strict";
  28631. /* IMPORT */
  28632. Object.defineProperty(exports, "__esModule", { value: true });
  28633. var rgba_1 = __webpack_require__(/*! ./rgba */ "./node_modules/khroma/dist/methods/rgba.js"); // Alias
  28634. exports.hex = rgba_1.default;
  28635. var rgba_2 = __webpack_require__(/*! ./rgba */ "./node_modules/khroma/dist/methods/rgba.js"); // Alias
  28636. exports.rgb = rgba_2.default;
  28637. var rgba_3 = __webpack_require__(/*! ./rgba */ "./node_modules/khroma/dist/methods/rgba.js");
  28638. exports.rgba = rgba_3.default;
  28639. var hsla_1 = __webpack_require__(/*! ./hsla */ "./node_modules/khroma/dist/methods/hsla.js"); // Alias
  28640. exports.hsl = hsla_1.default;
  28641. var hsla_2 = __webpack_require__(/*! ./hsla */ "./node_modules/khroma/dist/methods/hsla.js");
  28642. exports.hsla = hsla_2.default;
  28643. var channel_1 = __webpack_require__(/*! ./channel */ "./node_modules/khroma/dist/methods/channel.js");
  28644. exports.channel = channel_1.default;
  28645. var red_1 = __webpack_require__(/*! ./red */ "./node_modules/khroma/dist/methods/red.js");
  28646. exports.red = red_1.default;
  28647. var green_1 = __webpack_require__(/*! ./green */ "./node_modules/khroma/dist/methods/green.js");
  28648. exports.green = green_1.default;
  28649. var blue_1 = __webpack_require__(/*! ./blue */ "./node_modules/khroma/dist/methods/blue.js");
  28650. exports.blue = blue_1.default;
  28651. var hue_1 = __webpack_require__(/*! ./hue */ "./node_modules/khroma/dist/methods/hue.js");
  28652. exports.hue = hue_1.default;
  28653. var saturation_1 = __webpack_require__(/*! ./saturation */ "./node_modules/khroma/dist/methods/saturation.js");
  28654. exports.saturation = saturation_1.default;
  28655. var lightness_1 = __webpack_require__(/*! ./lightness */ "./node_modules/khroma/dist/methods/lightness.js");
  28656. exports.lightness = lightness_1.default;
  28657. var alpha_1 = __webpack_require__(/*! ./alpha */ "./node_modules/khroma/dist/methods/alpha.js");
  28658. exports.alpha = alpha_1.default;
  28659. var alpha_2 = __webpack_require__(/*! ./alpha */ "./node_modules/khroma/dist/methods/alpha.js"); // Alias
  28660. exports.opacity = alpha_2.default;
  28661. var luminance_1 = __webpack_require__(/*! ./luminance */ "./node_modules/khroma/dist/methods/luminance.js");
  28662. exports.luminance = luminance_1.default;
  28663. var is_dark_1 = __webpack_require__(/*! ./is_dark */ "./node_modules/khroma/dist/methods/is_dark.js");
  28664. exports.isDark = is_dark_1.default;
  28665. var is_light_1 = __webpack_require__(/*! ./is_light */ "./node_modules/khroma/dist/methods/is_light.js");
  28666. exports.isLight = is_light_1.default;
  28667. var is_valid_1 = __webpack_require__(/*! ./is_valid */ "./node_modules/khroma/dist/methods/is_valid.js");
  28668. exports.isValid = is_valid_1.default;
  28669. var saturate_1 = __webpack_require__(/*! ./saturate */ "./node_modules/khroma/dist/methods/saturate.js");
  28670. exports.saturate = saturate_1.default;
  28671. var desaturate_1 = __webpack_require__(/*! ./desaturate */ "./node_modules/khroma/dist/methods/desaturate.js");
  28672. exports.desaturate = desaturate_1.default;
  28673. var lighten_1 = __webpack_require__(/*! ./lighten */ "./node_modules/khroma/dist/methods/lighten.js");
  28674. exports.lighten = lighten_1.default;
  28675. var darken_1 = __webpack_require__(/*! ./darken */ "./node_modules/khroma/dist/methods/darken.js");
  28676. exports.darken = darken_1.default;
  28677. var opacify_1 = __webpack_require__(/*! ./opacify */ "./node_modules/khroma/dist/methods/opacify.js");
  28678. exports.opacify = opacify_1.default;
  28679. var opacify_2 = __webpack_require__(/*! ./opacify */ "./node_modules/khroma/dist/methods/opacify.js"); // Alias
  28680. exports.fadeIn = opacify_2.default;
  28681. var transparentize_1 = __webpack_require__(/*! ./transparentize */ "./node_modules/khroma/dist/methods/transparentize.js");
  28682. exports.transparentize = transparentize_1.default;
  28683. var transparentize_2 = __webpack_require__(/*! ./transparentize */ "./node_modules/khroma/dist/methods/transparentize.js"); // Alias
  28684. exports.fadeOut = transparentize_2.default;
  28685. var complement_1 = __webpack_require__(/*! ./complement */ "./node_modules/khroma/dist/methods/complement.js");
  28686. exports.complement = complement_1.default;
  28687. var grayscale_1 = __webpack_require__(/*! ./grayscale */ "./node_modules/khroma/dist/methods/grayscale.js");
  28688. exports.grayscale = grayscale_1.default;
  28689. var adjust_1 = __webpack_require__(/*! ./adjust */ "./node_modules/khroma/dist/methods/adjust.js");
  28690. exports.adjust = adjust_1.default;
  28691. var change_1 = __webpack_require__(/*! ./change */ "./node_modules/khroma/dist/methods/change.js");
  28692. exports.change = change_1.default;
  28693. var invert_1 = __webpack_require__(/*! ./invert */ "./node_modules/khroma/dist/methods/invert.js");
  28694. exports.invert = invert_1.default;
  28695. var mix_1 = __webpack_require__(/*! ./mix */ "./node_modules/khroma/dist/methods/mix.js");
  28696. exports.mix = mix_1.default;
  28697. var scale_1 = __webpack_require__(/*! ./scale */ "./node_modules/khroma/dist/methods/scale.js");
  28698. exports.scale = scale_1.default;
  28699. /***/ }),
  28700. /***/ "./node_modules/khroma/dist/methods/invert.js":
  28701. /*!****************************************************!*\
  28702. !*** ./node_modules/khroma/dist/methods/invert.js ***!
  28703. \****************************************************/
  28704. /*! no static exports found */
  28705. /***/ (function(module, exports, __webpack_require__) {
  28706. "use strict";
  28707. /* IMPORT */
  28708. Object.defineProperty(exports, "__esModule", { value: true });
  28709. var color_1 = __webpack_require__(/*! ../color */ "./node_modules/khroma/dist/color/index.js");
  28710. var mix_1 = __webpack_require__(/*! ./mix */ "./node_modules/khroma/dist/methods/mix.js");
  28711. /* INVERT */
  28712. function invert(color, weight) {
  28713. if (weight === void 0) { weight = 100; }
  28714. var inverse = color_1.default.parse(color);
  28715. inverse.r = 255 - inverse.r;
  28716. inverse.g = 255 - inverse.g;
  28717. inverse.b = 255 - inverse.b;
  28718. return mix_1.default(inverse, color, weight);
  28719. }
  28720. /* EXPORT */
  28721. exports.default = invert;
  28722. /***/ }),
  28723. /***/ "./node_modules/khroma/dist/methods/is_dark.js":
  28724. /*!*****************************************************!*\
  28725. !*** ./node_modules/khroma/dist/methods/is_dark.js ***!
  28726. \*****************************************************/
  28727. /*! no static exports found */
  28728. /***/ (function(module, exports, __webpack_require__) {
  28729. "use strict";
  28730. /* IMPORT */
  28731. Object.defineProperty(exports, "__esModule", { value: true });
  28732. var is_light_1 = __webpack_require__(/*! ./is_light */ "./node_modules/khroma/dist/methods/is_light.js");
  28733. /* IS DARK */
  28734. function isDark(color) {
  28735. return !is_light_1.default(color);
  28736. }
  28737. /* EXPORT */
  28738. exports.default = isDark;
  28739. /***/ }),
  28740. /***/ "./node_modules/khroma/dist/methods/is_light.js":
  28741. /*!******************************************************!*\
  28742. !*** ./node_modules/khroma/dist/methods/is_light.js ***!
  28743. \******************************************************/
  28744. /*! no static exports found */
  28745. /***/ (function(module, exports, __webpack_require__) {
  28746. "use strict";
  28747. /* IMPORT */
  28748. Object.defineProperty(exports, "__esModule", { value: true });
  28749. var luminance_1 = __webpack_require__(/*! ./luminance */ "./node_modules/khroma/dist/methods/luminance.js");
  28750. /* IS LIGHT */
  28751. function isLight(color) {
  28752. return luminance_1.default(color) >= .5;
  28753. }
  28754. /* EXPORT */
  28755. exports.default = isLight;
  28756. /***/ }),
  28757. /***/ "./node_modules/khroma/dist/methods/is_valid.js":
  28758. /*!******************************************************!*\
  28759. !*** ./node_modules/khroma/dist/methods/is_valid.js ***!
  28760. \******************************************************/
  28761. /*! no static exports found */
  28762. /***/ (function(module, exports, __webpack_require__) {
  28763. "use strict";
  28764. /* IMPORT */
  28765. Object.defineProperty(exports, "__esModule", { value: true });
  28766. var color_1 = __webpack_require__(/*! ../color */ "./node_modules/khroma/dist/color/index.js");
  28767. /* IS VALID */
  28768. function isValid(color) {
  28769. try {
  28770. color_1.default.parse(color);
  28771. return true;
  28772. }
  28773. catch (_a) {
  28774. return false;
  28775. }
  28776. }
  28777. /* EXPORT */
  28778. exports.default = isValid;
  28779. /***/ }),
  28780. /***/ "./node_modules/khroma/dist/methods/lighten.js":
  28781. /*!*****************************************************!*\
  28782. !*** ./node_modules/khroma/dist/methods/lighten.js ***!
  28783. \*****************************************************/
  28784. /*! no static exports found */
  28785. /***/ (function(module, exports, __webpack_require__) {
  28786. "use strict";
  28787. /* IMPORT */
  28788. Object.defineProperty(exports, "__esModule", { value: true });
  28789. var adjust_channel_1 = __webpack_require__(/*! ./adjust_channel */ "./node_modules/khroma/dist/methods/adjust_channel.js");
  28790. /* LIGHTEN */
  28791. function lighten(color, amount) {
  28792. return adjust_channel_1.default(color, 'l', amount);
  28793. }
  28794. /* EXPORT */
  28795. exports.default = lighten;
  28796. /***/ }),
  28797. /***/ "./node_modules/khroma/dist/methods/lightness.js":
  28798. /*!*******************************************************!*\
  28799. !*** ./node_modules/khroma/dist/methods/lightness.js ***!
  28800. \*******************************************************/
  28801. /*! no static exports found */
  28802. /***/ (function(module, exports, __webpack_require__) {
  28803. "use strict";
  28804. /* IMPORT */
  28805. Object.defineProperty(exports, "__esModule", { value: true });
  28806. var channel_1 = __webpack_require__(/*! ./channel */ "./node_modules/khroma/dist/methods/channel.js");
  28807. /* LIGHTNESS */
  28808. function lightness(color) {
  28809. return channel_1.default(color, 'l');
  28810. }
  28811. /* EXPORT */
  28812. exports.default = lightness;
  28813. /***/ }),
  28814. /***/ "./node_modules/khroma/dist/methods/luminance.js":
  28815. /*!*******************************************************!*\
  28816. !*** ./node_modules/khroma/dist/methods/luminance.js ***!
  28817. \*******************************************************/
  28818. /*! no static exports found */
  28819. /***/ (function(module, exports, __webpack_require__) {
  28820. "use strict";
  28821. /* IMPORT */
  28822. Object.defineProperty(exports, "__esModule", { value: true });
  28823. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/khroma/dist/utils/index.js");
  28824. var color_1 = __webpack_require__(/*! ../color */ "./node_modules/khroma/dist/color/index.js");
  28825. /* LUMINANCE */
  28826. //SOURCE: https://planetcalc.com/7779
  28827. function luminance(color) {
  28828. var _a = color_1.default.parse(color), r = _a.r, g = _a.g, b = _a.b, luminance = .2126 * utils_1.default.channel.toLinear(r) + .7152 * utils_1.default.channel.toLinear(g) + .0722 * utils_1.default.channel.toLinear(b);
  28829. return utils_1.default.lang.round(luminance);
  28830. }
  28831. /* EXPORT */
  28832. exports.default = luminance;
  28833. /***/ }),
  28834. /***/ "./node_modules/khroma/dist/methods/mix.js":
  28835. /*!*************************************************!*\
  28836. !*** ./node_modules/khroma/dist/methods/mix.js ***!
  28837. \*************************************************/
  28838. /*! no static exports found */
  28839. /***/ (function(module, exports, __webpack_require__) {
  28840. "use strict";
  28841. /* IMPORT */
  28842. Object.defineProperty(exports, "__esModule", { value: true });
  28843. var color_1 = __webpack_require__(/*! ../color */ "./node_modules/khroma/dist/color/index.js");
  28844. var rgba_1 = __webpack_require__(/*! ./rgba */ "./node_modules/khroma/dist/methods/rgba.js");
  28845. /* MIX */
  28846. //SOURCE: https://github.com/sass/dart-sass/blob/7457d2e9e7e623d9844ffd037a070cf32d39c348/lib/src/functions/color.dart#L718-L756
  28847. function mix(color1, color2, weight) {
  28848. if (weight === void 0) { weight = 50; }
  28849. var _a = color_1.default.parse(color1), r1 = _a.r, g1 = _a.g, b1 = _a.b, a1 = _a.a, _b = color_1.default.parse(color2), r2 = _b.r, g2 = _b.g, b2 = _b.b, a2 = _b.a, weightScale = weight / 100, weightNormalized = (weightScale * 2) - 1, alphaDelta = a1 - a2, weight1combined = ((weightNormalized * alphaDelta) === -1) ? weightNormalized : (weightNormalized + alphaDelta) / (1 + weightNormalized * alphaDelta), weight1 = (weight1combined + 1) / 2, weight2 = 1 - weight1, r = (r1 * weight1) + (r2 * weight2), g = (g1 * weight1) + (g2 * weight2), b = (b1 * weight1) + (b2 * weight2), a = (a1 * weightScale) + (a2 * (1 - weightScale));
  28850. return rgba_1.default(r, g, b, a);
  28851. }
  28852. /* EXPORT */
  28853. exports.default = mix;
  28854. /***/ }),
  28855. /***/ "./node_modules/khroma/dist/methods/opacify.js":
  28856. /*!*****************************************************!*\
  28857. !*** ./node_modules/khroma/dist/methods/opacify.js ***!
  28858. \*****************************************************/
  28859. /*! no static exports found */
  28860. /***/ (function(module, exports, __webpack_require__) {
  28861. "use strict";
  28862. /* IMPORT */
  28863. Object.defineProperty(exports, "__esModule", { value: true });
  28864. var adjust_channel_1 = __webpack_require__(/*! ./adjust_channel */ "./node_modules/khroma/dist/methods/adjust_channel.js");
  28865. /* OPACIFY */
  28866. function opacify(color, amount) {
  28867. return adjust_channel_1.default(color, 'a', amount);
  28868. }
  28869. /* EXPORT */
  28870. exports.default = opacify;
  28871. /***/ }),
  28872. /***/ "./node_modules/khroma/dist/methods/red.js":
  28873. /*!*************************************************!*\
  28874. !*** ./node_modules/khroma/dist/methods/red.js ***!
  28875. \*************************************************/
  28876. /*! no static exports found */
  28877. /***/ (function(module, exports, __webpack_require__) {
  28878. "use strict";
  28879. /* IMPORT */
  28880. Object.defineProperty(exports, "__esModule", { value: true });
  28881. var channel_1 = __webpack_require__(/*! ./channel */ "./node_modules/khroma/dist/methods/channel.js");
  28882. /* RED */
  28883. function red(color) {
  28884. return channel_1.default(color, 'r');
  28885. }
  28886. /* EXPORT */
  28887. exports.default = red;
  28888. /***/ }),
  28889. /***/ "./node_modules/khroma/dist/methods/rgba.js":
  28890. /*!**************************************************!*\
  28891. !*** ./node_modules/khroma/dist/methods/rgba.js ***!
  28892. \**************************************************/
  28893. /*! no static exports found */
  28894. /***/ (function(module, exports, __webpack_require__) {
  28895. "use strict";
  28896. /* IMPORT */
  28897. Object.defineProperty(exports, "__esModule", { value: true });
  28898. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/khroma/dist/utils/index.js");
  28899. var reusable_1 = __webpack_require__(/*! ../channels/reusable */ "./node_modules/khroma/dist/channels/reusable.js");
  28900. var color_1 = __webpack_require__(/*! ../color */ "./node_modules/khroma/dist/color/index.js");
  28901. var change_1 = __webpack_require__(/*! ./change */ "./node_modules/khroma/dist/methods/change.js");
  28902. function rgba(r, g, b, a) {
  28903. if (b === void 0) { b = 0; }
  28904. if (a === void 0) { a = 1; }
  28905. if (typeof r !== 'number')
  28906. return change_1.default(r, { a: g });
  28907. var channels = reusable_1.default.set({
  28908. r: utils_1.default.channel.clamp.r(r),
  28909. g: utils_1.default.channel.clamp.g(g),
  28910. b: utils_1.default.channel.clamp.b(b),
  28911. a: utils_1.default.channel.clamp.a(a)
  28912. });
  28913. return color_1.default.stringify(channels);
  28914. }
  28915. /* EXPORT */
  28916. exports.default = rgba;
  28917. /***/ }),
  28918. /***/ "./node_modules/khroma/dist/methods/saturate.js":
  28919. /*!******************************************************!*\
  28920. !*** ./node_modules/khroma/dist/methods/saturate.js ***!
  28921. \******************************************************/
  28922. /*! no static exports found */
  28923. /***/ (function(module, exports, __webpack_require__) {
  28924. "use strict";
  28925. /* IMPORT */
  28926. Object.defineProperty(exports, "__esModule", { value: true });
  28927. var adjust_channel_1 = __webpack_require__(/*! ./adjust_channel */ "./node_modules/khroma/dist/methods/adjust_channel.js");
  28928. /* SATURATE */
  28929. function saturate(color, amount) {
  28930. return adjust_channel_1.default(color, 's', amount);
  28931. }
  28932. /* EXPORT */
  28933. exports.default = saturate;
  28934. /***/ }),
  28935. /***/ "./node_modules/khroma/dist/methods/saturation.js":
  28936. /*!********************************************************!*\
  28937. !*** ./node_modules/khroma/dist/methods/saturation.js ***!
  28938. \********************************************************/
  28939. /*! no static exports found */
  28940. /***/ (function(module, exports, __webpack_require__) {
  28941. "use strict";
  28942. /* IMPORT */
  28943. Object.defineProperty(exports, "__esModule", { value: true });
  28944. var channel_1 = __webpack_require__(/*! ./channel */ "./node_modules/khroma/dist/methods/channel.js");
  28945. /* SATURATION */
  28946. function saturation(color) {
  28947. return channel_1.default(color, 's');
  28948. }
  28949. /* EXPORT */
  28950. exports.default = saturation;
  28951. /***/ }),
  28952. /***/ "./node_modules/khroma/dist/methods/scale.js":
  28953. /*!***************************************************!*\
  28954. !*** ./node_modules/khroma/dist/methods/scale.js ***!
  28955. \***************************************************/
  28956. /*! no static exports found */
  28957. /***/ (function(module, exports, __webpack_require__) {
  28958. "use strict";
  28959. /* IMPORT */
  28960. Object.defineProperty(exports, "__esModule", { value: true });
  28961. var utils_1 = __webpack_require__(/*! ../utils */ "./node_modules/khroma/dist/utils/index.js");
  28962. var color_1 = __webpack_require__(/*! ../color */ "./node_modules/khroma/dist/color/index.js");
  28963. var adjust_1 = __webpack_require__(/*! ./adjust */ "./node_modules/khroma/dist/methods/adjust.js");
  28964. /* SCALE */
  28965. function scale(color, channels) {
  28966. var ch = color_1.default.parse(color), adjustments = {}, delta = function (amount, weight, max) { return weight > 0 ? (max - amount) * weight / 100 : amount * weight / 100; };
  28967. for (var c in channels) {
  28968. adjustments[c] = delta(ch[c], channels[c], utils_1.default.channel.max[c]);
  28969. }
  28970. return adjust_1.default(color, adjustments);
  28971. }
  28972. /* EXPORT */
  28973. exports.default = scale;
  28974. /***/ }),
  28975. /***/ "./node_modules/khroma/dist/methods/transparentize.js":
  28976. /*!************************************************************!*\
  28977. !*** ./node_modules/khroma/dist/methods/transparentize.js ***!
  28978. \************************************************************/
  28979. /*! no static exports found */
  28980. /***/ (function(module, exports, __webpack_require__) {
  28981. "use strict";
  28982. /* IMPORT */
  28983. Object.defineProperty(exports, "__esModule", { value: true });
  28984. var adjust_channel_1 = __webpack_require__(/*! ./adjust_channel */ "./node_modules/khroma/dist/methods/adjust_channel.js");
  28985. /* TRANSPARENTIZE */
  28986. function transparentize(color, amount) {
  28987. return adjust_channel_1.default(color, 'a', -amount);
  28988. }
  28989. /* EXPORT */
  28990. exports.default = transparentize;
  28991. /***/ }),
  28992. /***/ "./node_modules/khroma/dist/types.js":
  28993. /*!*******************************************!*\
  28994. !*** ./node_modules/khroma/dist/types.js ***!
  28995. \*******************************************/
  28996. /*! no static exports found */
  28997. /***/ (function(module, exports, __webpack_require__) {
  28998. "use strict";
  28999. /* ENUMS */
  29000. Object.defineProperty(exports, "__esModule", { value: true });
  29001. var TYPE;
  29002. (function (TYPE) {
  29003. TYPE[TYPE["ALL"] = 0] = "ALL";
  29004. TYPE[TYPE["RGB"] = 1] = "RGB";
  29005. TYPE[TYPE["HSL"] = 2] = "HSL";
  29006. })(TYPE || (TYPE = {}));
  29007. exports.TYPE = TYPE;
  29008. ;
  29009. /***/ }),
  29010. /***/ "./node_modules/khroma/dist/utils/channel.js":
  29011. /*!***************************************************!*\
  29012. !*** ./node_modules/khroma/dist/utils/channel.js ***!
  29013. \***************************************************/
  29014. /*! no static exports found */
  29015. /***/ (function(module, exports, __webpack_require__) {
  29016. "use strict";
  29017. /* IMPORT */
  29018. Object.defineProperty(exports, "__esModule", { value: true });
  29019. /* CHANNEL */
  29020. var Channel = {
  29021. /* CLAMP */
  29022. min: {
  29023. r: 0,
  29024. g: 0,
  29025. b: 0,
  29026. s: 0,
  29027. l: 0,
  29028. a: 0
  29029. },
  29030. max: {
  29031. r: 255,
  29032. g: 255,
  29033. b: 255,
  29034. h: 360,
  29035. s: 100,
  29036. l: 100,
  29037. a: 1
  29038. },
  29039. clamp: {
  29040. r: function (r) { return r >= 255 ? 255 : (r < 0 ? 0 : r); },
  29041. g: function (g) { return g >= 255 ? 255 : (g < 0 ? 0 : g); },
  29042. b: function (b) { return b >= 255 ? 255 : (b < 0 ? 0 : b); },
  29043. h: function (h) { return h % 360; },
  29044. s: function (s) { return s >= 100 ? 100 : (s < 0 ? 0 : s); },
  29045. l: function (l) { return l >= 100 ? 100 : (l < 0 ? 0 : l); },
  29046. a: function (a) { return a >= 1 ? 1 : (a < 0 ? 0 : a); }
  29047. },
  29048. /* CONVERSION */
  29049. //SOURCE: https://planetcalc.com/7779
  29050. toLinear: function (c) {
  29051. var n = c / 255;
  29052. return c > .03928 ? Math.pow(((n + .055) / 1.055), 2.4) : n / 12.92;
  29053. },
  29054. //SOURCE: https://gist.github.com/mjackson/5311256
  29055. hue2rgb: function (p, q, t) {
  29056. if (t < 0)
  29057. t += 1;
  29058. if (t > 1)
  29059. t -= 1;
  29060. if (t < 1 / 6)
  29061. return p + (q - p) * 6 * t;
  29062. if (t < 1 / 2)
  29063. return q;
  29064. if (t < 2 / 3)
  29065. return p + (q - p) * (2 / 3 - t) * 6;
  29066. return p;
  29067. },
  29068. hsl2rgb: function (_a, channel) {
  29069. var h = _a.h, s = _a.s, l = _a.l;
  29070. if (s === 100)
  29071. return l * 2.55; // Achromatic
  29072. h /= 360;
  29073. s /= 100;
  29074. l /= 100;
  29075. var q = (l < .5) ? l * (1 + s) : (l + s) - (l * s), p = 2 * l - q;
  29076. switch (channel) {
  29077. case 'r': return Channel.hue2rgb(p, q, h + 1 / 3) * 255;
  29078. case 'g': return Channel.hue2rgb(p, q, h) * 255;
  29079. case 'b': return Channel.hue2rgb(p, q, h - 1 / 3) * 255;
  29080. }
  29081. },
  29082. rgb2hsl: function (_a, channel) {
  29083. var r = _a.r, g = _a.g, b = _a.b;
  29084. r /= 255;
  29085. g /= 255;
  29086. b /= 255;
  29087. var max = Math.max(r, g, b), min = Math.min(r, g, b), l = (max + min) / 2;
  29088. if (channel === 'l')
  29089. return l * 100;
  29090. if (max === min)
  29091. return 0; // Achromatic
  29092. var d = max - min, s = (l > .5) ? d / (2 - max - min) : d / (max + min);
  29093. if (channel === 's')
  29094. return s * 100;
  29095. switch (max) {
  29096. case r: return ((g - b) / d + (g < b ? 6 : 0)) * 60;
  29097. case g: return ((b - r) / d + 2) * 60;
  29098. case b: return ((r - g) / d + 4) * 60;
  29099. default: return -1; //TSC: TypeScript is stupid and complains if there isn't this useless default statement
  29100. }
  29101. }
  29102. };
  29103. /* EXPORT */
  29104. exports.default = Channel;
  29105. /***/ }),
  29106. /***/ "./node_modules/khroma/dist/utils/index.js":
  29107. /*!*************************************************!*\
  29108. !*** ./node_modules/khroma/dist/utils/index.js ***!
  29109. \*************************************************/
  29110. /*! no static exports found */
  29111. /***/ (function(module, exports, __webpack_require__) {
  29112. "use strict";
  29113. /* IMPORT */
  29114. Object.defineProperty(exports, "__esModule", { value: true });
  29115. var channel_1 = __webpack_require__(/*! ./channel */ "./node_modules/khroma/dist/utils/channel.js");
  29116. var lang_1 = __webpack_require__(/*! ./lang */ "./node_modules/khroma/dist/utils/lang.js");
  29117. var unit_1 = __webpack_require__(/*! ./unit */ "./node_modules/khroma/dist/utils/unit.js");
  29118. /* UTILS */
  29119. var Utils = {
  29120. channel: channel_1.default,
  29121. lang: lang_1.default,
  29122. unit: unit_1.default
  29123. };
  29124. /* EXPORT */
  29125. exports.default = Utils;
  29126. /***/ }),
  29127. /***/ "./node_modules/khroma/dist/utils/lang.js":
  29128. /*!************************************************!*\
  29129. !*** ./node_modules/khroma/dist/utils/lang.js ***!
  29130. \************************************************/
  29131. /*! no static exports found */
  29132. /***/ (function(module, exports, __webpack_require__) {
  29133. "use strict";
  29134. /* LANG */
  29135. Object.defineProperty(exports, "__esModule", { value: true });
  29136. var Lang = {
  29137. round: function (number) {
  29138. return Math.round(number * 10000000000) / 10000000000;
  29139. }
  29140. };
  29141. /* EXPORT */
  29142. exports.default = Lang;
  29143. /***/ }),
  29144. /***/ "./node_modules/khroma/dist/utils/unit.js":
  29145. /*!************************************************!*\
  29146. !*** ./node_modules/khroma/dist/utils/unit.js ***!
  29147. \************************************************/
  29148. /*! no static exports found */
  29149. /***/ (function(module, exports, __webpack_require__) {
  29150. "use strict";
  29151. /* UNIT */
  29152. Object.defineProperty(exports, "__esModule", { value: true });
  29153. var Unit = {
  29154. frac2hex: function (frac) {
  29155. var hex = Math.round(frac * 255).toString(16);
  29156. return hex.length > 1 ? hex : "0" + hex;
  29157. },
  29158. dec2hex: function (dec) {
  29159. var hex = Math.round(dec).toString(16);
  29160. return hex.length > 1 ? hex : "0" + hex;
  29161. }
  29162. };
  29163. /* EXPORT */
  29164. exports.default = Unit;
  29165. /***/ }),
  29166. /***/ "./node_modules/lodash/_DataView.js":
  29167. /*!******************************************!*\
  29168. !*** ./node_modules/lodash/_DataView.js ***!
  29169. \******************************************/
  29170. /*! no static exports found */
  29171. /***/ (function(module, exports, __webpack_require__) {
  29172. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
  29173. root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  29174. /* Built-in method references that are verified to be native. */
  29175. var DataView = getNative(root, 'DataView');
  29176. module.exports = DataView;
  29177. /***/ }),
  29178. /***/ "./node_modules/lodash/_Hash.js":
  29179. /*!**************************************!*\
  29180. !*** ./node_modules/lodash/_Hash.js ***!
  29181. \**************************************/
  29182. /*! no static exports found */
  29183. /***/ (function(module, exports, __webpack_require__) {
  29184. var hashClear = __webpack_require__(/*! ./_hashClear */ "./node_modules/lodash/_hashClear.js"),
  29185. hashDelete = __webpack_require__(/*! ./_hashDelete */ "./node_modules/lodash/_hashDelete.js"),
  29186. hashGet = __webpack_require__(/*! ./_hashGet */ "./node_modules/lodash/_hashGet.js"),
  29187. hashHas = __webpack_require__(/*! ./_hashHas */ "./node_modules/lodash/_hashHas.js"),
  29188. hashSet = __webpack_require__(/*! ./_hashSet */ "./node_modules/lodash/_hashSet.js");
  29189. /**
  29190. * Creates a hash object.
  29191. *
  29192. * @private
  29193. * @constructor
  29194. * @param {Array} [entries] The key-value pairs to cache.
  29195. */
  29196. function Hash(entries) {
  29197. var index = -1,
  29198. length = entries == null ? 0 : entries.length;
  29199. this.clear();
  29200. while (++index < length) {
  29201. var entry = entries[index];
  29202. this.set(entry[0], entry[1]);
  29203. }
  29204. }
  29205. // Add methods to `Hash`.
  29206. Hash.prototype.clear = hashClear;
  29207. Hash.prototype['delete'] = hashDelete;
  29208. Hash.prototype.get = hashGet;
  29209. Hash.prototype.has = hashHas;
  29210. Hash.prototype.set = hashSet;
  29211. module.exports = Hash;
  29212. /***/ }),
  29213. /***/ "./node_modules/lodash/_ListCache.js":
  29214. /*!*******************************************!*\
  29215. !*** ./node_modules/lodash/_ListCache.js ***!
  29216. \*******************************************/
  29217. /*! no static exports found */
  29218. /***/ (function(module, exports, __webpack_require__) {
  29219. var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "./node_modules/lodash/_listCacheClear.js"),
  29220. listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "./node_modules/lodash/_listCacheDelete.js"),
  29221. listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "./node_modules/lodash/_listCacheGet.js"),
  29222. listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "./node_modules/lodash/_listCacheHas.js"),
  29223. listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "./node_modules/lodash/_listCacheSet.js");
  29224. /**
  29225. * Creates an list cache object.
  29226. *
  29227. * @private
  29228. * @constructor
  29229. * @param {Array} [entries] The key-value pairs to cache.
  29230. */
  29231. function ListCache(entries) {
  29232. var index = -1,
  29233. length = entries == null ? 0 : entries.length;
  29234. this.clear();
  29235. while (++index < length) {
  29236. var entry = entries[index];
  29237. this.set(entry[0], entry[1]);
  29238. }
  29239. }
  29240. // Add methods to `ListCache`.
  29241. ListCache.prototype.clear = listCacheClear;
  29242. ListCache.prototype['delete'] = listCacheDelete;
  29243. ListCache.prototype.get = listCacheGet;
  29244. ListCache.prototype.has = listCacheHas;
  29245. ListCache.prototype.set = listCacheSet;
  29246. module.exports = ListCache;
  29247. /***/ }),
  29248. /***/ "./node_modules/lodash/_Map.js":
  29249. /*!*************************************!*\
  29250. !*** ./node_modules/lodash/_Map.js ***!
  29251. \*************************************/
  29252. /*! no static exports found */
  29253. /***/ (function(module, exports, __webpack_require__) {
  29254. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
  29255. root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  29256. /* Built-in method references that are verified to be native. */
  29257. var Map = getNative(root, 'Map');
  29258. module.exports = Map;
  29259. /***/ }),
  29260. /***/ "./node_modules/lodash/_MapCache.js":
  29261. /*!******************************************!*\
  29262. !*** ./node_modules/lodash/_MapCache.js ***!
  29263. \******************************************/
  29264. /*! no static exports found */
  29265. /***/ (function(module, exports, __webpack_require__) {
  29266. var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "./node_modules/lodash/_mapCacheClear.js"),
  29267. mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "./node_modules/lodash/_mapCacheDelete.js"),
  29268. mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "./node_modules/lodash/_mapCacheGet.js"),
  29269. mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "./node_modules/lodash/_mapCacheHas.js"),
  29270. mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "./node_modules/lodash/_mapCacheSet.js");
  29271. /**
  29272. * Creates a map cache object to store key-value pairs.
  29273. *
  29274. * @private
  29275. * @constructor
  29276. * @param {Array} [entries] The key-value pairs to cache.
  29277. */
  29278. function MapCache(entries) {
  29279. var index = -1,
  29280. length = entries == null ? 0 : entries.length;
  29281. this.clear();
  29282. while (++index < length) {
  29283. var entry = entries[index];
  29284. this.set(entry[0], entry[1]);
  29285. }
  29286. }
  29287. // Add methods to `MapCache`.
  29288. MapCache.prototype.clear = mapCacheClear;
  29289. MapCache.prototype['delete'] = mapCacheDelete;
  29290. MapCache.prototype.get = mapCacheGet;
  29291. MapCache.prototype.has = mapCacheHas;
  29292. MapCache.prototype.set = mapCacheSet;
  29293. module.exports = MapCache;
  29294. /***/ }),
  29295. /***/ "./node_modules/lodash/_Promise.js":
  29296. /*!*****************************************!*\
  29297. !*** ./node_modules/lodash/_Promise.js ***!
  29298. \*****************************************/
  29299. /*! no static exports found */
  29300. /***/ (function(module, exports, __webpack_require__) {
  29301. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
  29302. root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  29303. /* Built-in method references that are verified to be native. */
  29304. var Promise = getNative(root, 'Promise');
  29305. module.exports = Promise;
  29306. /***/ }),
  29307. /***/ "./node_modules/lodash/_Set.js":
  29308. /*!*************************************!*\
  29309. !*** ./node_modules/lodash/_Set.js ***!
  29310. \*************************************/
  29311. /*! no static exports found */
  29312. /***/ (function(module, exports, __webpack_require__) {
  29313. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
  29314. root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  29315. /* Built-in method references that are verified to be native. */
  29316. var Set = getNative(root, 'Set');
  29317. module.exports = Set;
  29318. /***/ }),
  29319. /***/ "./node_modules/lodash/_SetCache.js":
  29320. /*!******************************************!*\
  29321. !*** ./node_modules/lodash/_SetCache.js ***!
  29322. \******************************************/
  29323. /*! no static exports found */
  29324. /***/ (function(module, exports, __webpack_require__) {
  29325. var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"),
  29326. setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "./node_modules/lodash/_setCacheAdd.js"),
  29327. setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "./node_modules/lodash/_setCacheHas.js");
  29328. /**
  29329. *
  29330. * Creates an array cache object to store unique values.
  29331. *
  29332. * @private
  29333. * @constructor
  29334. * @param {Array} [values] The values to cache.
  29335. */
  29336. function SetCache(values) {
  29337. var index = -1,
  29338. length = values == null ? 0 : values.length;
  29339. this.__data__ = new MapCache;
  29340. while (++index < length) {
  29341. this.add(values[index]);
  29342. }
  29343. }
  29344. // Add methods to `SetCache`.
  29345. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  29346. SetCache.prototype.has = setCacheHas;
  29347. module.exports = SetCache;
  29348. /***/ }),
  29349. /***/ "./node_modules/lodash/_Stack.js":
  29350. /*!***************************************!*\
  29351. !*** ./node_modules/lodash/_Stack.js ***!
  29352. \***************************************/
  29353. /*! no static exports found */
  29354. /***/ (function(module, exports, __webpack_require__) {
  29355. var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
  29356. stackClear = __webpack_require__(/*! ./_stackClear */ "./node_modules/lodash/_stackClear.js"),
  29357. stackDelete = __webpack_require__(/*! ./_stackDelete */ "./node_modules/lodash/_stackDelete.js"),
  29358. stackGet = __webpack_require__(/*! ./_stackGet */ "./node_modules/lodash/_stackGet.js"),
  29359. stackHas = __webpack_require__(/*! ./_stackHas */ "./node_modules/lodash/_stackHas.js"),
  29360. stackSet = __webpack_require__(/*! ./_stackSet */ "./node_modules/lodash/_stackSet.js");
  29361. /**
  29362. * Creates a stack cache object to store key-value pairs.
  29363. *
  29364. * @private
  29365. * @constructor
  29366. * @param {Array} [entries] The key-value pairs to cache.
  29367. */
  29368. function Stack(entries) {
  29369. var data = this.__data__ = new ListCache(entries);
  29370. this.size = data.size;
  29371. }
  29372. // Add methods to `Stack`.
  29373. Stack.prototype.clear = stackClear;
  29374. Stack.prototype['delete'] = stackDelete;
  29375. Stack.prototype.get = stackGet;
  29376. Stack.prototype.has = stackHas;
  29377. Stack.prototype.set = stackSet;
  29378. module.exports = Stack;
  29379. /***/ }),
  29380. /***/ "./node_modules/lodash/_Symbol.js":
  29381. /*!****************************************!*\
  29382. !*** ./node_modules/lodash/_Symbol.js ***!
  29383. \****************************************/
  29384. /*! no static exports found */
  29385. /***/ (function(module, exports, __webpack_require__) {
  29386. var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  29387. /** Built-in value references. */
  29388. var Symbol = root.Symbol;
  29389. module.exports = Symbol;
  29390. /***/ }),
  29391. /***/ "./node_modules/lodash/_Uint8Array.js":
  29392. /*!********************************************!*\
  29393. !*** ./node_modules/lodash/_Uint8Array.js ***!
  29394. \********************************************/
  29395. /*! no static exports found */
  29396. /***/ (function(module, exports, __webpack_require__) {
  29397. var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  29398. /** Built-in value references. */
  29399. var Uint8Array = root.Uint8Array;
  29400. module.exports = Uint8Array;
  29401. /***/ }),
  29402. /***/ "./node_modules/lodash/_WeakMap.js":
  29403. /*!*****************************************!*\
  29404. !*** ./node_modules/lodash/_WeakMap.js ***!
  29405. \*****************************************/
  29406. /*! no static exports found */
  29407. /***/ (function(module, exports, __webpack_require__) {
  29408. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
  29409. root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  29410. /* Built-in method references that are verified to be native. */
  29411. var WeakMap = getNative(root, 'WeakMap');
  29412. module.exports = WeakMap;
  29413. /***/ }),
  29414. /***/ "./node_modules/lodash/_apply.js":
  29415. /*!***************************************!*\
  29416. !*** ./node_modules/lodash/_apply.js ***!
  29417. \***************************************/
  29418. /*! no static exports found */
  29419. /***/ (function(module, exports) {
  29420. /**
  29421. * A faster alternative to `Function#apply`, this function invokes `func`
  29422. * with the `this` binding of `thisArg` and the arguments of `args`.
  29423. *
  29424. * @private
  29425. * @param {Function} func The function to invoke.
  29426. * @param {*} thisArg The `this` binding of `func`.
  29427. * @param {Array} args The arguments to invoke `func` with.
  29428. * @returns {*} Returns the result of `func`.
  29429. */
  29430. function apply(func, thisArg, args) {
  29431. switch (args.length) {
  29432. case 0: return func.call(thisArg);
  29433. case 1: return func.call(thisArg, args[0]);
  29434. case 2: return func.call(thisArg, args[0], args[1]);
  29435. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  29436. }
  29437. return func.apply(thisArg, args);
  29438. }
  29439. module.exports = apply;
  29440. /***/ }),
  29441. /***/ "./node_modules/lodash/_arrayEach.js":
  29442. /*!*******************************************!*\
  29443. !*** ./node_modules/lodash/_arrayEach.js ***!
  29444. \*******************************************/
  29445. /*! no static exports found */
  29446. /***/ (function(module, exports) {
  29447. /**
  29448. * A specialized version of `_.forEach` for arrays without support for
  29449. * iteratee shorthands.
  29450. *
  29451. * @private
  29452. * @param {Array} [array] The array to iterate over.
  29453. * @param {Function} iteratee The function invoked per iteration.
  29454. * @returns {Array} Returns `array`.
  29455. */
  29456. function arrayEach(array, iteratee) {
  29457. var index = -1,
  29458. length = array == null ? 0 : array.length;
  29459. while (++index < length) {
  29460. if (iteratee(array[index], index, array) === false) {
  29461. break;
  29462. }
  29463. }
  29464. return array;
  29465. }
  29466. module.exports = arrayEach;
  29467. /***/ }),
  29468. /***/ "./node_modules/lodash/_arrayFilter.js":
  29469. /*!*********************************************!*\
  29470. !*** ./node_modules/lodash/_arrayFilter.js ***!
  29471. \*********************************************/
  29472. /*! no static exports found */
  29473. /***/ (function(module, exports) {
  29474. /**
  29475. * A specialized version of `_.filter` for arrays without support for
  29476. * iteratee shorthands.
  29477. *
  29478. * @private
  29479. * @param {Array} [array] The array to iterate over.
  29480. * @param {Function} predicate The function invoked per iteration.
  29481. * @returns {Array} Returns the new filtered array.
  29482. */
  29483. function arrayFilter(array, predicate) {
  29484. var index = -1,
  29485. length = array == null ? 0 : array.length,
  29486. resIndex = 0,
  29487. result = [];
  29488. while (++index < length) {
  29489. var value = array[index];
  29490. if (predicate(value, index, array)) {
  29491. result[resIndex++] = value;
  29492. }
  29493. }
  29494. return result;
  29495. }
  29496. module.exports = arrayFilter;
  29497. /***/ }),
  29498. /***/ "./node_modules/lodash/_arrayIncludes.js":
  29499. /*!***********************************************!*\
  29500. !*** ./node_modules/lodash/_arrayIncludes.js ***!
  29501. \***********************************************/
  29502. /*! no static exports found */
  29503. /***/ (function(module, exports, __webpack_require__) {
  29504. var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "./node_modules/lodash/_baseIndexOf.js");
  29505. /**
  29506. * A specialized version of `_.includes` for arrays without support for
  29507. * specifying an index to search from.
  29508. *
  29509. * @private
  29510. * @param {Array} [array] The array to inspect.
  29511. * @param {*} target The value to search for.
  29512. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  29513. */
  29514. function arrayIncludes(array, value) {
  29515. var length = array == null ? 0 : array.length;
  29516. return !!length && baseIndexOf(array, value, 0) > -1;
  29517. }
  29518. module.exports = arrayIncludes;
  29519. /***/ }),
  29520. /***/ "./node_modules/lodash/_arrayIncludesWith.js":
  29521. /*!***************************************************!*\
  29522. !*** ./node_modules/lodash/_arrayIncludesWith.js ***!
  29523. \***************************************************/
  29524. /*! no static exports found */
  29525. /***/ (function(module, exports) {
  29526. /**
  29527. * This function is like `arrayIncludes` except that it accepts a comparator.
  29528. *
  29529. * @private
  29530. * @param {Array} [array] The array to inspect.
  29531. * @param {*} target The value to search for.
  29532. * @param {Function} comparator The comparator invoked per element.
  29533. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  29534. */
  29535. function arrayIncludesWith(array, value, comparator) {
  29536. var index = -1,
  29537. length = array == null ? 0 : array.length;
  29538. while (++index < length) {
  29539. if (comparator(value, array[index])) {
  29540. return true;
  29541. }
  29542. }
  29543. return false;
  29544. }
  29545. module.exports = arrayIncludesWith;
  29546. /***/ }),
  29547. /***/ "./node_modules/lodash/_arrayLikeKeys.js":
  29548. /*!***********************************************!*\
  29549. !*** ./node_modules/lodash/_arrayLikeKeys.js ***!
  29550. \***********************************************/
  29551. /*! no static exports found */
  29552. /***/ (function(module, exports, __webpack_require__) {
  29553. var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"),
  29554. isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
  29555. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  29556. isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
  29557. isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
  29558. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
  29559. /** Used for built-in method references. */
  29560. var objectProto = Object.prototype;
  29561. /** Used to check objects for own properties. */
  29562. var hasOwnProperty = objectProto.hasOwnProperty;
  29563. /**
  29564. * Creates an array of the enumerable property names of the array-like `value`.
  29565. *
  29566. * @private
  29567. * @param {*} value The value to query.
  29568. * @param {boolean} inherited Specify returning inherited property names.
  29569. * @returns {Array} Returns the array of property names.
  29570. */
  29571. function arrayLikeKeys(value, inherited) {
  29572. var isArr = isArray(value),
  29573. isArg = !isArr && isArguments(value),
  29574. isBuff = !isArr && !isArg && isBuffer(value),
  29575. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  29576. skipIndexes = isArr || isArg || isBuff || isType,
  29577. result = skipIndexes ? baseTimes(value.length, String) : [],
  29578. length = result.length;
  29579. for (var key in value) {
  29580. if ((inherited || hasOwnProperty.call(value, key)) &&
  29581. !(skipIndexes && (
  29582. // Safari 9 has enumerable `arguments.length` in strict mode.
  29583. key == 'length' ||
  29584. // Node.js 0.10 has enumerable non-index properties on buffers.
  29585. (isBuff && (key == 'offset' || key == 'parent')) ||
  29586. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  29587. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  29588. // Skip index properties.
  29589. isIndex(key, length)
  29590. ))) {
  29591. result.push(key);
  29592. }
  29593. }
  29594. return result;
  29595. }
  29596. module.exports = arrayLikeKeys;
  29597. /***/ }),
  29598. /***/ "./node_modules/lodash/_arrayMap.js":
  29599. /*!******************************************!*\
  29600. !*** ./node_modules/lodash/_arrayMap.js ***!
  29601. \******************************************/
  29602. /*! no static exports found */
  29603. /***/ (function(module, exports) {
  29604. /**
  29605. * A specialized version of `_.map` for arrays without support for iteratee
  29606. * shorthands.
  29607. *
  29608. * @private
  29609. * @param {Array} [array] The array to iterate over.
  29610. * @param {Function} iteratee The function invoked per iteration.
  29611. * @returns {Array} Returns the new mapped array.
  29612. */
  29613. function arrayMap(array, iteratee) {
  29614. var index = -1,
  29615. length = array == null ? 0 : array.length,
  29616. result = Array(length);
  29617. while (++index < length) {
  29618. result[index] = iteratee(array[index], index, array);
  29619. }
  29620. return result;
  29621. }
  29622. module.exports = arrayMap;
  29623. /***/ }),
  29624. /***/ "./node_modules/lodash/_arrayPush.js":
  29625. /*!*******************************************!*\
  29626. !*** ./node_modules/lodash/_arrayPush.js ***!
  29627. \*******************************************/
  29628. /*! no static exports found */
  29629. /***/ (function(module, exports) {
  29630. /**
  29631. * Appends the elements of `values` to `array`.
  29632. *
  29633. * @private
  29634. * @param {Array} array The array to modify.
  29635. * @param {Array} values The values to append.
  29636. * @returns {Array} Returns `array`.
  29637. */
  29638. function arrayPush(array, values) {
  29639. var index = -1,
  29640. length = values.length,
  29641. offset = array.length;
  29642. while (++index < length) {
  29643. array[offset + index] = values[index];
  29644. }
  29645. return array;
  29646. }
  29647. module.exports = arrayPush;
  29648. /***/ }),
  29649. /***/ "./node_modules/lodash/_arrayReduce.js":
  29650. /*!*********************************************!*\
  29651. !*** ./node_modules/lodash/_arrayReduce.js ***!
  29652. \*********************************************/
  29653. /*! no static exports found */
  29654. /***/ (function(module, exports) {
  29655. /**
  29656. * A specialized version of `_.reduce` for arrays without support for
  29657. * iteratee shorthands.
  29658. *
  29659. * @private
  29660. * @param {Array} [array] The array to iterate over.
  29661. * @param {Function} iteratee The function invoked per iteration.
  29662. * @param {*} [accumulator] The initial value.
  29663. * @param {boolean} [initAccum] Specify using the first element of `array` as
  29664. * the initial value.
  29665. * @returns {*} Returns the accumulated value.
  29666. */
  29667. function arrayReduce(array, iteratee, accumulator, initAccum) {
  29668. var index = -1,
  29669. length = array == null ? 0 : array.length;
  29670. if (initAccum && length) {
  29671. accumulator = array[++index];
  29672. }
  29673. while (++index < length) {
  29674. accumulator = iteratee(accumulator, array[index], index, array);
  29675. }
  29676. return accumulator;
  29677. }
  29678. module.exports = arrayReduce;
  29679. /***/ }),
  29680. /***/ "./node_modules/lodash/_arraySome.js":
  29681. /*!*******************************************!*\
  29682. !*** ./node_modules/lodash/_arraySome.js ***!
  29683. \*******************************************/
  29684. /*! no static exports found */
  29685. /***/ (function(module, exports) {
  29686. /**
  29687. * A specialized version of `_.some` for arrays without support for iteratee
  29688. * shorthands.
  29689. *
  29690. * @private
  29691. * @param {Array} [array] The array to iterate over.
  29692. * @param {Function} predicate The function invoked per iteration.
  29693. * @returns {boolean} Returns `true` if any element passes the predicate check,
  29694. * else `false`.
  29695. */
  29696. function arraySome(array, predicate) {
  29697. var index = -1,
  29698. length = array == null ? 0 : array.length;
  29699. while (++index < length) {
  29700. if (predicate(array[index], index, array)) {
  29701. return true;
  29702. }
  29703. }
  29704. return false;
  29705. }
  29706. module.exports = arraySome;
  29707. /***/ }),
  29708. /***/ "./node_modules/lodash/_asciiSize.js":
  29709. /*!*******************************************!*\
  29710. !*** ./node_modules/lodash/_asciiSize.js ***!
  29711. \*******************************************/
  29712. /*! no static exports found */
  29713. /***/ (function(module, exports, __webpack_require__) {
  29714. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js");
  29715. /**
  29716. * Gets the size of an ASCII `string`.
  29717. *
  29718. * @private
  29719. * @param {string} string The string inspect.
  29720. * @returns {number} Returns the string size.
  29721. */
  29722. var asciiSize = baseProperty('length');
  29723. module.exports = asciiSize;
  29724. /***/ }),
  29725. /***/ "./node_modules/lodash/_assignMergeValue.js":
  29726. /*!**************************************************!*\
  29727. !*** ./node_modules/lodash/_assignMergeValue.js ***!
  29728. \**************************************************/
  29729. /*! no static exports found */
  29730. /***/ (function(module, exports, __webpack_require__) {
  29731. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
  29732. eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
  29733. /**
  29734. * This function is like `assignValue` except that it doesn't assign
  29735. * `undefined` values.
  29736. *
  29737. * @private
  29738. * @param {Object} object The object to modify.
  29739. * @param {string} key The key of the property to assign.
  29740. * @param {*} value The value to assign.
  29741. */
  29742. function assignMergeValue(object, key, value) {
  29743. if ((value !== undefined && !eq(object[key], value)) ||
  29744. (value === undefined && !(key in object))) {
  29745. baseAssignValue(object, key, value);
  29746. }
  29747. }
  29748. module.exports = assignMergeValue;
  29749. /***/ }),
  29750. /***/ "./node_modules/lodash/_assignValue.js":
  29751. /*!*********************************************!*\
  29752. !*** ./node_modules/lodash/_assignValue.js ***!
  29753. \*********************************************/
  29754. /*! no static exports found */
  29755. /***/ (function(module, exports, __webpack_require__) {
  29756. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
  29757. eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
  29758. /** Used for built-in method references. */
  29759. var objectProto = Object.prototype;
  29760. /** Used to check objects for own properties. */
  29761. var hasOwnProperty = objectProto.hasOwnProperty;
  29762. /**
  29763. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  29764. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  29765. * for equality comparisons.
  29766. *
  29767. * @private
  29768. * @param {Object} object The object to modify.
  29769. * @param {string} key The key of the property to assign.
  29770. * @param {*} value The value to assign.
  29771. */
  29772. function assignValue(object, key, value) {
  29773. var objValue = object[key];
  29774. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  29775. (value === undefined && !(key in object))) {
  29776. baseAssignValue(object, key, value);
  29777. }
  29778. }
  29779. module.exports = assignValue;
  29780. /***/ }),
  29781. /***/ "./node_modules/lodash/_assocIndexOf.js":
  29782. /*!**********************************************!*\
  29783. !*** ./node_modules/lodash/_assocIndexOf.js ***!
  29784. \**********************************************/
  29785. /*! no static exports found */
  29786. /***/ (function(module, exports, __webpack_require__) {
  29787. var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
  29788. /**
  29789. * Gets the index at which the `key` is found in `array` of key-value pairs.
  29790. *
  29791. * @private
  29792. * @param {Array} array The array to inspect.
  29793. * @param {*} key The key to search for.
  29794. * @returns {number} Returns the index of the matched value, else `-1`.
  29795. */
  29796. function assocIndexOf(array, key) {
  29797. var length = array.length;
  29798. while (length--) {
  29799. if (eq(array[length][0], key)) {
  29800. return length;
  29801. }
  29802. }
  29803. return -1;
  29804. }
  29805. module.exports = assocIndexOf;
  29806. /***/ }),
  29807. /***/ "./node_modules/lodash/_baseAssign.js":
  29808. /*!********************************************!*\
  29809. !*** ./node_modules/lodash/_baseAssign.js ***!
  29810. \********************************************/
  29811. /*! no static exports found */
  29812. /***/ (function(module, exports, __webpack_require__) {
  29813. var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
  29814. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  29815. /**
  29816. * The base implementation of `_.assign` without support for multiple sources
  29817. * or `customizer` functions.
  29818. *
  29819. * @private
  29820. * @param {Object} object The destination object.
  29821. * @param {Object} source The source object.
  29822. * @returns {Object} Returns `object`.
  29823. */
  29824. function baseAssign(object, source) {
  29825. return object && copyObject(source, keys(source), object);
  29826. }
  29827. module.exports = baseAssign;
  29828. /***/ }),
  29829. /***/ "./node_modules/lodash/_baseAssignIn.js":
  29830. /*!**********************************************!*\
  29831. !*** ./node_modules/lodash/_baseAssignIn.js ***!
  29832. \**********************************************/
  29833. /*! no static exports found */
  29834. /***/ (function(module, exports, __webpack_require__) {
  29835. var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
  29836. keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
  29837. /**
  29838. * The base implementation of `_.assignIn` without support for multiple sources
  29839. * or `customizer` functions.
  29840. *
  29841. * @private
  29842. * @param {Object} object The destination object.
  29843. * @param {Object} source The source object.
  29844. * @returns {Object} Returns `object`.
  29845. */
  29846. function baseAssignIn(object, source) {
  29847. return object && copyObject(source, keysIn(source), object);
  29848. }
  29849. module.exports = baseAssignIn;
  29850. /***/ }),
  29851. /***/ "./node_modules/lodash/_baseAssignValue.js":
  29852. /*!*************************************************!*\
  29853. !*** ./node_modules/lodash/_baseAssignValue.js ***!
  29854. \*************************************************/
  29855. /*! no static exports found */
  29856. /***/ (function(module, exports, __webpack_require__) {
  29857. var defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js");
  29858. /**
  29859. * The base implementation of `assignValue` and `assignMergeValue` without
  29860. * value checks.
  29861. *
  29862. * @private
  29863. * @param {Object} object The object to modify.
  29864. * @param {string} key The key of the property to assign.
  29865. * @param {*} value The value to assign.
  29866. */
  29867. function baseAssignValue(object, key, value) {
  29868. if (key == '__proto__' && defineProperty) {
  29869. defineProperty(object, key, {
  29870. 'configurable': true,
  29871. 'enumerable': true,
  29872. 'value': value,
  29873. 'writable': true
  29874. });
  29875. } else {
  29876. object[key] = value;
  29877. }
  29878. }
  29879. module.exports = baseAssignValue;
  29880. /***/ }),
  29881. /***/ "./node_modules/lodash/_baseClone.js":
  29882. /*!*******************************************!*\
  29883. !*** ./node_modules/lodash/_baseClone.js ***!
  29884. \*******************************************/
  29885. /*! no static exports found */
  29886. /***/ (function(module, exports, __webpack_require__) {
  29887. var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
  29888. arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
  29889. assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
  29890. baseAssign = __webpack_require__(/*! ./_baseAssign */ "./node_modules/lodash/_baseAssign.js"),
  29891. baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "./node_modules/lodash/_baseAssignIn.js"),
  29892. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
  29893. copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
  29894. copySymbols = __webpack_require__(/*! ./_copySymbols */ "./node_modules/lodash/_copySymbols.js"),
  29895. copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "./node_modules/lodash/_copySymbolsIn.js"),
  29896. getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js"),
  29897. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js"),
  29898. getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
  29899. initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "./node_modules/lodash/_initCloneArray.js"),
  29900. initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "./node_modules/lodash/_initCloneByTag.js"),
  29901. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
  29902. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  29903. isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
  29904. isMap = __webpack_require__(/*! ./isMap */ "./node_modules/lodash/isMap.js"),
  29905. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  29906. isSet = __webpack_require__(/*! ./isSet */ "./node_modules/lodash/isSet.js"),
  29907. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  29908. /** Used to compose bitmasks for cloning. */
  29909. var CLONE_DEEP_FLAG = 1,
  29910. CLONE_FLAT_FLAG = 2,
  29911. CLONE_SYMBOLS_FLAG = 4;
  29912. /** `Object#toString` result references. */
  29913. var argsTag = '[object Arguments]',
  29914. arrayTag = '[object Array]',
  29915. boolTag = '[object Boolean]',
  29916. dateTag = '[object Date]',
  29917. errorTag = '[object Error]',
  29918. funcTag = '[object Function]',
  29919. genTag = '[object GeneratorFunction]',
  29920. mapTag = '[object Map]',
  29921. numberTag = '[object Number]',
  29922. objectTag = '[object Object]',
  29923. regexpTag = '[object RegExp]',
  29924. setTag = '[object Set]',
  29925. stringTag = '[object String]',
  29926. symbolTag = '[object Symbol]',
  29927. weakMapTag = '[object WeakMap]';
  29928. var arrayBufferTag = '[object ArrayBuffer]',
  29929. dataViewTag = '[object DataView]',
  29930. float32Tag = '[object Float32Array]',
  29931. float64Tag = '[object Float64Array]',
  29932. int8Tag = '[object Int8Array]',
  29933. int16Tag = '[object Int16Array]',
  29934. int32Tag = '[object Int32Array]',
  29935. uint8Tag = '[object Uint8Array]',
  29936. uint8ClampedTag = '[object Uint8ClampedArray]',
  29937. uint16Tag = '[object Uint16Array]',
  29938. uint32Tag = '[object Uint32Array]';
  29939. /** Used to identify `toStringTag` values supported by `_.clone`. */
  29940. var cloneableTags = {};
  29941. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  29942. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  29943. cloneableTags[boolTag] = cloneableTags[dateTag] =
  29944. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  29945. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  29946. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  29947. cloneableTags[numberTag] = cloneableTags[objectTag] =
  29948. cloneableTags[regexpTag] = cloneableTags[setTag] =
  29949. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  29950. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  29951. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  29952. cloneableTags[errorTag] = cloneableTags[funcTag] =
  29953. cloneableTags[weakMapTag] = false;
  29954. /**
  29955. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  29956. * traversed objects.
  29957. *
  29958. * @private
  29959. * @param {*} value The value to clone.
  29960. * @param {boolean} bitmask The bitmask flags.
  29961. * 1 - Deep clone
  29962. * 2 - Flatten inherited properties
  29963. * 4 - Clone symbols
  29964. * @param {Function} [customizer] The function to customize cloning.
  29965. * @param {string} [key] The key of `value`.
  29966. * @param {Object} [object] The parent object of `value`.
  29967. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  29968. * @returns {*} Returns the cloned value.
  29969. */
  29970. function baseClone(value, bitmask, customizer, key, object, stack) {
  29971. var result,
  29972. isDeep = bitmask & CLONE_DEEP_FLAG,
  29973. isFlat = bitmask & CLONE_FLAT_FLAG,
  29974. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  29975. if (customizer) {
  29976. result = object ? customizer(value, key, object, stack) : customizer(value);
  29977. }
  29978. if (result !== undefined) {
  29979. return result;
  29980. }
  29981. if (!isObject(value)) {
  29982. return value;
  29983. }
  29984. var isArr = isArray(value);
  29985. if (isArr) {
  29986. result = initCloneArray(value);
  29987. if (!isDeep) {
  29988. return copyArray(value, result);
  29989. }
  29990. } else {
  29991. var tag = getTag(value),
  29992. isFunc = tag == funcTag || tag == genTag;
  29993. if (isBuffer(value)) {
  29994. return cloneBuffer(value, isDeep);
  29995. }
  29996. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  29997. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  29998. if (!isDeep) {
  29999. return isFlat
  30000. ? copySymbolsIn(value, baseAssignIn(result, value))
  30001. : copySymbols(value, baseAssign(result, value));
  30002. }
  30003. } else {
  30004. if (!cloneableTags[tag]) {
  30005. return object ? value : {};
  30006. }
  30007. result = initCloneByTag(value, tag, isDeep);
  30008. }
  30009. }
  30010. // Check for circular references and return its corresponding clone.
  30011. stack || (stack = new Stack);
  30012. var stacked = stack.get(value);
  30013. if (stacked) {
  30014. return stacked;
  30015. }
  30016. stack.set(value, result);
  30017. if (isSet(value)) {
  30018. value.forEach(function(subValue) {
  30019. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  30020. });
  30021. } else if (isMap(value)) {
  30022. value.forEach(function(subValue, key) {
  30023. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  30024. });
  30025. }
  30026. var keysFunc = isFull
  30027. ? (isFlat ? getAllKeysIn : getAllKeys)
  30028. : (isFlat ? keysIn : keys);
  30029. var props = isArr ? undefined : keysFunc(value);
  30030. arrayEach(props || value, function(subValue, key) {
  30031. if (props) {
  30032. key = subValue;
  30033. subValue = value[key];
  30034. }
  30035. // Recursively populate clone (susceptible to call stack limits).
  30036. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  30037. });
  30038. return result;
  30039. }
  30040. module.exports = baseClone;
  30041. /***/ }),
  30042. /***/ "./node_modules/lodash/_baseCreate.js":
  30043. /*!********************************************!*\
  30044. !*** ./node_modules/lodash/_baseCreate.js ***!
  30045. \********************************************/
  30046. /*! no static exports found */
  30047. /***/ (function(module, exports, __webpack_require__) {
  30048. var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
  30049. /** Built-in value references. */
  30050. var objectCreate = Object.create;
  30051. /**
  30052. * The base implementation of `_.create` without support for assigning
  30053. * properties to the created object.
  30054. *
  30055. * @private
  30056. * @param {Object} proto The object to inherit from.
  30057. * @returns {Object} Returns the new object.
  30058. */
  30059. var baseCreate = (function() {
  30060. function object() {}
  30061. return function(proto) {
  30062. if (!isObject(proto)) {
  30063. return {};
  30064. }
  30065. if (objectCreate) {
  30066. return objectCreate(proto);
  30067. }
  30068. object.prototype = proto;
  30069. var result = new object;
  30070. object.prototype = undefined;
  30071. return result;
  30072. };
  30073. }());
  30074. module.exports = baseCreate;
  30075. /***/ }),
  30076. /***/ "./node_modules/lodash/_baseEach.js":
  30077. /*!******************************************!*\
  30078. !*** ./node_modules/lodash/_baseEach.js ***!
  30079. \******************************************/
  30080. /*! no static exports found */
  30081. /***/ (function(module, exports, __webpack_require__) {
  30082. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
  30083. createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js");
  30084. /**
  30085. * The base implementation of `_.forEach` without support for iteratee shorthands.
  30086. *
  30087. * @private
  30088. * @param {Array|Object} collection The collection to iterate over.
  30089. * @param {Function} iteratee The function invoked per iteration.
  30090. * @returns {Array|Object} Returns `collection`.
  30091. */
  30092. var baseEach = createBaseEach(baseForOwn);
  30093. module.exports = baseEach;
  30094. /***/ }),
  30095. /***/ "./node_modules/lodash/_baseExtremum.js":
  30096. /*!**********************************************!*\
  30097. !*** ./node_modules/lodash/_baseExtremum.js ***!
  30098. \**********************************************/
  30099. /*! no static exports found */
  30100. /***/ (function(module, exports, __webpack_require__) {
  30101. var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  30102. /**
  30103. * The base implementation of methods like `_.max` and `_.min` which accepts a
  30104. * `comparator` to determine the extremum value.
  30105. *
  30106. * @private
  30107. * @param {Array} array The array to iterate over.
  30108. * @param {Function} iteratee The iteratee invoked per iteration.
  30109. * @param {Function} comparator The comparator used to compare values.
  30110. * @returns {*} Returns the extremum value.
  30111. */
  30112. function baseExtremum(array, iteratee, comparator) {
  30113. var index = -1,
  30114. length = array.length;
  30115. while (++index < length) {
  30116. var value = array[index],
  30117. current = iteratee(value);
  30118. if (current != null && (computed === undefined
  30119. ? (current === current && !isSymbol(current))
  30120. : comparator(current, computed)
  30121. )) {
  30122. var computed = current,
  30123. result = value;
  30124. }
  30125. }
  30126. return result;
  30127. }
  30128. module.exports = baseExtremum;
  30129. /***/ }),
  30130. /***/ "./node_modules/lodash/_baseFilter.js":
  30131. /*!********************************************!*\
  30132. !*** ./node_modules/lodash/_baseFilter.js ***!
  30133. \********************************************/
  30134. /*! no static exports found */
  30135. /***/ (function(module, exports, __webpack_require__) {
  30136. var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js");
  30137. /**
  30138. * The base implementation of `_.filter` without support for iteratee shorthands.
  30139. *
  30140. * @private
  30141. * @param {Array|Object} collection The collection to iterate over.
  30142. * @param {Function} predicate The function invoked per iteration.
  30143. * @returns {Array} Returns the new filtered array.
  30144. */
  30145. function baseFilter(collection, predicate) {
  30146. var result = [];
  30147. baseEach(collection, function(value, index, collection) {
  30148. if (predicate(value, index, collection)) {
  30149. result.push(value);
  30150. }
  30151. });
  30152. return result;
  30153. }
  30154. module.exports = baseFilter;
  30155. /***/ }),
  30156. /***/ "./node_modules/lodash/_baseFindIndex.js":
  30157. /*!***********************************************!*\
  30158. !*** ./node_modules/lodash/_baseFindIndex.js ***!
  30159. \***********************************************/
  30160. /*! no static exports found */
  30161. /***/ (function(module, exports) {
  30162. /**
  30163. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  30164. * support for iteratee shorthands.
  30165. *
  30166. * @private
  30167. * @param {Array} array The array to inspect.
  30168. * @param {Function} predicate The function invoked per iteration.
  30169. * @param {number} fromIndex The index to search from.
  30170. * @param {boolean} [fromRight] Specify iterating from right to left.
  30171. * @returns {number} Returns the index of the matched value, else `-1`.
  30172. */
  30173. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  30174. var length = array.length,
  30175. index = fromIndex + (fromRight ? 1 : -1);
  30176. while ((fromRight ? index-- : ++index < length)) {
  30177. if (predicate(array[index], index, array)) {
  30178. return index;
  30179. }
  30180. }
  30181. return -1;
  30182. }
  30183. module.exports = baseFindIndex;
  30184. /***/ }),
  30185. /***/ "./node_modules/lodash/_baseFlatten.js":
  30186. /*!*********************************************!*\
  30187. !*** ./node_modules/lodash/_baseFlatten.js ***!
  30188. \*********************************************/
  30189. /*! no static exports found */
  30190. /***/ (function(module, exports, __webpack_require__) {
  30191. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
  30192. isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "./node_modules/lodash/_isFlattenable.js");
  30193. /**
  30194. * The base implementation of `_.flatten` with support for restricting flattening.
  30195. *
  30196. * @private
  30197. * @param {Array} array The array to flatten.
  30198. * @param {number} depth The maximum recursion depth.
  30199. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  30200. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  30201. * @param {Array} [result=[]] The initial result value.
  30202. * @returns {Array} Returns the new flattened array.
  30203. */
  30204. function baseFlatten(array, depth, predicate, isStrict, result) {
  30205. var index = -1,
  30206. length = array.length;
  30207. predicate || (predicate = isFlattenable);
  30208. result || (result = []);
  30209. while (++index < length) {
  30210. var value = array[index];
  30211. if (depth > 0 && predicate(value)) {
  30212. if (depth > 1) {
  30213. // Recursively flatten arrays (susceptible to call stack limits).
  30214. baseFlatten(value, depth - 1, predicate, isStrict, result);
  30215. } else {
  30216. arrayPush(result, value);
  30217. }
  30218. } else if (!isStrict) {
  30219. result[result.length] = value;
  30220. }
  30221. }
  30222. return result;
  30223. }
  30224. module.exports = baseFlatten;
  30225. /***/ }),
  30226. /***/ "./node_modules/lodash/_baseFor.js":
  30227. /*!*****************************************!*\
  30228. !*** ./node_modules/lodash/_baseFor.js ***!
  30229. \*****************************************/
  30230. /*! no static exports found */
  30231. /***/ (function(module, exports, __webpack_require__) {
  30232. var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js");
  30233. /**
  30234. * The base implementation of `baseForOwn` which iterates over `object`
  30235. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  30236. * Iteratee functions may exit iteration early by explicitly returning `false`.
  30237. *
  30238. * @private
  30239. * @param {Object} object The object to iterate over.
  30240. * @param {Function} iteratee The function invoked per iteration.
  30241. * @param {Function} keysFunc The function to get the keys of `object`.
  30242. * @returns {Object} Returns `object`.
  30243. */
  30244. var baseFor = createBaseFor();
  30245. module.exports = baseFor;
  30246. /***/ }),
  30247. /***/ "./node_modules/lodash/_baseForOwn.js":
  30248. /*!********************************************!*\
  30249. !*** ./node_modules/lodash/_baseForOwn.js ***!
  30250. \********************************************/
  30251. /*! no static exports found */
  30252. /***/ (function(module, exports, __webpack_require__) {
  30253. var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
  30254. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  30255. /**
  30256. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  30257. *
  30258. * @private
  30259. * @param {Object} object The object to iterate over.
  30260. * @param {Function} iteratee The function invoked per iteration.
  30261. * @returns {Object} Returns `object`.
  30262. */
  30263. function baseForOwn(object, iteratee) {
  30264. return object && baseFor(object, iteratee, keys);
  30265. }
  30266. module.exports = baseForOwn;
  30267. /***/ }),
  30268. /***/ "./node_modules/lodash/_baseGet.js":
  30269. /*!*****************************************!*\
  30270. !*** ./node_modules/lodash/_baseGet.js ***!
  30271. \*****************************************/
  30272. /*! no static exports found */
  30273. /***/ (function(module, exports, __webpack_require__) {
  30274. var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
  30275. toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
  30276. /**
  30277. * The base implementation of `_.get` without support for default values.
  30278. *
  30279. * @private
  30280. * @param {Object} object The object to query.
  30281. * @param {Array|string} path The path of the property to get.
  30282. * @returns {*} Returns the resolved value.
  30283. */
  30284. function baseGet(object, path) {
  30285. path = castPath(path, object);
  30286. var index = 0,
  30287. length = path.length;
  30288. while (object != null && index < length) {
  30289. object = object[toKey(path[index++])];
  30290. }
  30291. return (index && index == length) ? object : undefined;
  30292. }
  30293. module.exports = baseGet;
  30294. /***/ }),
  30295. /***/ "./node_modules/lodash/_baseGetAllKeys.js":
  30296. /*!************************************************!*\
  30297. !*** ./node_modules/lodash/_baseGetAllKeys.js ***!
  30298. \************************************************/
  30299. /*! no static exports found */
  30300. /***/ (function(module, exports, __webpack_require__) {
  30301. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
  30302. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
  30303. /**
  30304. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  30305. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  30306. * symbols of `object`.
  30307. *
  30308. * @private
  30309. * @param {Object} object The object to query.
  30310. * @param {Function} keysFunc The function to get the keys of `object`.
  30311. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  30312. * @returns {Array} Returns the array of property names and symbols.
  30313. */
  30314. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  30315. var result = keysFunc(object);
  30316. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  30317. }
  30318. module.exports = baseGetAllKeys;
  30319. /***/ }),
  30320. /***/ "./node_modules/lodash/_baseGetTag.js":
  30321. /*!********************************************!*\
  30322. !*** ./node_modules/lodash/_baseGetTag.js ***!
  30323. \********************************************/
  30324. /*! no static exports found */
  30325. /***/ (function(module, exports, __webpack_require__) {
  30326. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  30327. getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
  30328. objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");
  30329. /** `Object#toString` result references. */
  30330. var nullTag = '[object Null]',
  30331. undefinedTag = '[object Undefined]';
  30332. /** Built-in value references. */
  30333. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  30334. /**
  30335. * The base implementation of `getTag` without fallbacks for buggy environments.
  30336. *
  30337. * @private
  30338. * @param {*} value The value to query.
  30339. * @returns {string} Returns the `toStringTag`.
  30340. */
  30341. function baseGetTag(value) {
  30342. if (value == null) {
  30343. return value === undefined ? undefinedTag : nullTag;
  30344. }
  30345. return (symToStringTag && symToStringTag in Object(value))
  30346. ? getRawTag(value)
  30347. : objectToString(value);
  30348. }
  30349. module.exports = baseGetTag;
  30350. /***/ }),
  30351. /***/ "./node_modules/lodash/_baseGt.js":
  30352. /*!****************************************!*\
  30353. !*** ./node_modules/lodash/_baseGt.js ***!
  30354. \****************************************/
  30355. /*! no static exports found */
  30356. /***/ (function(module, exports) {
  30357. /**
  30358. * The base implementation of `_.gt` which doesn't coerce arguments.
  30359. *
  30360. * @private
  30361. * @param {*} value The value to compare.
  30362. * @param {*} other The other value to compare.
  30363. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  30364. * else `false`.
  30365. */
  30366. function baseGt(value, other) {
  30367. return value > other;
  30368. }
  30369. module.exports = baseGt;
  30370. /***/ }),
  30371. /***/ "./node_modules/lodash/_baseHas.js":
  30372. /*!*****************************************!*\
  30373. !*** ./node_modules/lodash/_baseHas.js ***!
  30374. \*****************************************/
  30375. /*! no static exports found */
  30376. /***/ (function(module, exports) {
  30377. /** Used for built-in method references. */
  30378. var objectProto = Object.prototype;
  30379. /** Used to check objects for own properties. */
  30380. var hasOwnProperty = objectProto.hasOwnProperty;
  30381. /**
  30382. * The base implementation of `_.has` without support for deep paths.
  30383. *
  30384. * @private
  30385. * @param {Object} [object] The object to query.
  30386. * @param {Array|string} key The key to check.
  30387. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  30388. */
  30389. function baseHas(object, key) {
  30390. return object != null && hasOwnProperty.call(object, key);
  30391. }
  30392. module.exports = baseHas;
  30393. /***/ }),
  30394. /***/ "./node_modules/lodash/_baseHasIn.js":
  30395. /*!*******************************************!*\
  30396. !*** ./node_modules/lodash/_baseHasIn.js ***!
  30397. \*******************************************/
  30398. /*! no static exports found */
  30399. /***/ (function(module, exports) {
  30400. /**
  30401. * The base implementation of `_.hasIn` without support for deep paths.
  30402. *
  30403. * @private
  30404. * @param {Object} [object] The object to query.
  30405. * @param {Array|string} key The key to check.
  30406. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  30407. */
  30408. function baseHasIn(object, key) {
  30409. return object != null && key in Object(object);
  30410. }
  30411. module.exports = baseHasIn;
  30412. /***/ }),
  30413. /***/ "./node_modules/lodash/_baseIndexOf.js":
  30414. /*!*********************************************!*\
  30415. !*** ./node_modules/lodash/_baseIndexOf.js ***!
  30416. \*********************************************/
  30417. /*! no static exports found */
  30418. /***/ (function(module, exports, __webpack_require__) {
  30419. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
  30420. baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "./node_modules/lodash/_baseIsNaN.js"),
  30421. strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "./node_modules/lodash/_strictIndexOf.js");
  30422. /**
  30423. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  30424. *
  30425. * @private
  30426. * @param {Array} array The array to inspect.
  30427. * @param {*} value The value to search for.
  30428. * @param {number} fromIndex The index to search from.
  30429. * @returns {number} Returns the index of the matched value, else `-1`.
  30430. */
  30431. function baseIndexOf(array, value, fromIndex) {
  30432. return value === value
  30433. ? strictIndexOf(array, value, fromIndex)
  30434. : baseFindIndex(array, baseIsNaN, fromIndex);
  30435. }
  30436. module.exports = baseIndexOf;
  30437. /***/ }),
  30438. /***/ "./node_modules/lodash/_baseIsArguments.js":
  30439. /*!*************************************************!*\
  30440. !*** ./node_modules/lodash/_baseIsArguments.js ***!
  30441. \*************************************************/
  30442. /*! no static exports found */
  30443. /***/ (function(module, exports, __webpack_require__) {
  30444. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  30445. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  30446. /** `Object#toString` result references. */
  30447. var argsTag = '[object Arguments]';
  30448. /**
  30449. * The base implementation of `_.isArguments`.
  30450. *
  30451. * @private
  30452. * @param {*} value The value to check.
  30453. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  30454. */
  30455. function baseIsArguments(value) {
  30456. return isObjectLike(value) && baseGetTag(value) == argsTag;
  30457. }
  30458. module.exports = baseIsArguments;
  30459. /***/ }),
  30460. /***/ "./node_modules/lodash/_baseIsEqual.js":
  30461. /*!*********************************************!*\
  30462. !*** ./node_modules/lodash/_baseIsEqual.js ***!
  30463. \*********************************************/
  30464. /*! no static exports found */
  30465. /***/ (function(module, exports, __webpack_require__) {
  30466. var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "./node_modules/lodash/_baseIsEqualDeep.js"),
  30467. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  30468. /**
  30469. * The base implementation of `_.isEqual` which supports partial comparisons
  30470. * and tracks traversed objects.
  30471. *
  30472. * @private
  30473. * @param {*} value The value to compare.
  30474. * @param {*} other The other value to compare.
  30475. * @param {boolean} bitmask The bitmask flags.
  30476. * 1 - Unordered comparison
  30477. * 2 - Partial comparison
  30478. * @param {Function} [customizer] The function to customize comparisons.
  30479. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  30480. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  30481. */
  30482. function baseIsEqual(value, other, bitmask, customizer, stack) {
  30483. if (value === other) {
  30484. return true;
  30485. }
  30486. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  30487. return value !== value && other !== other;
  30488. }
  30489. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  30490. }
  30491. module.exports = baseIsEqual;
  30492. /***/ }),
  30493. /***/ "./node_modules/lodash/_baseIsEqualDeep.js":
  30494. /*!*************************************************!*\
  30495. !*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
  30496. \*************************************************/
  30497. /*! no static exports found */
  30498. /***/ (function(module, exports, __webpack_require__) {
  30499. var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
  30500. equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
  30501. equalByTag = __webpack_require__(/*! ./_equalByTag */ "./node_modules/lodash/_equalByTag.js"),
  30502. equalObjects = __webpack_require__(/*! ./_equalObjects */ "./node_modules/lodash/_equalObjects.js"),
  30503. getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
  30504. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  30505. isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
  30506. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
  30507. /** Used to compose bitmasks for value comparisons. */
  30508. var COMPARE_PARTIAL_FLAG = 1;
  30509. /** `Object#toString` result references. */
  30510. var argsTag = '[object Arguments]',
  30511. arrayTag = '[object Array]',
  30512. objectTag = '[object Object]';
  30513. /** Used for built-in method references. */
  30514. var objectProto = Object.prototype;
  30515. /** Used to check objects for own properties. */
  30516. var hasOwnProperty = objectProto.hasOwnProperty;
  30517. /**
  30518. * A specialized version of `baseIsEqual` for arrays and objects which performs
  30519. * deep comparisons and tracks traversed objects enabling objects with circular
  30520. * references to be compared.
  30521. *
  30522. * @private
  30523. * @param {Object} object The object to compare.
  30524. * @param {Object} other The other object to compare.
  30525. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  30526. * @param {Function} customizer The function to customize comparisons.
  30527. * @param {Function} equalFunc The function to determine equivalents of values.
  30528. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  30529. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  30530. */
  30531. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  30532. var objIsArr = isArray(object),
  30533. othIsArr = isArray(other),
  30534. objTag = objIsArr ? arrayTag : getTag(object),
  30535. othTag = othIsArr ? arrayTag : getTag(other);
  30536. objTag = objTag == argsTag ? objectTag : objTag;
  30537. othTag = othTag == argsTag ? objectTag : othTag;
  30538. var objIsObj = objTag == objectTag,
  30539. othIsObj = othTag == objectTag,
  30540. isSameTag = objTag == othTag;
  30541. if (isSameTag && isBuffer(object)) {
  30542. if (!isBuffer(other)) {
  30543. return false;
  30544. }
  30545. objIsArr = true;
  30546. objIsObj = false;
  30547. }
  30548. if (isSameTag && !objIsObj) {
  30549. stack || (stack = new Stack);
  30550. return (objIsArr || isTypedArray(object))
  30551. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  30552. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  30553. }
  30554. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  30555. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  30556. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  30557. if (objIsWrapped || othIsWrapped) {
  30558. var objUnwrapped = objIsWrapped ? object.value() : object,
  30559. othUnwrapped = othIsWrapped ? other.value() : other;
  30560. stack || (stack = new Stack);
  30561. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  30562. }
  30563. }
  30564. if (!isSameTag) {
  30565. return false;
  30566. }
  30567. stack || (stack = new Stack);
  30568. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  30569. }
  30570. module.exports = baseIsEqualDeep;
  30571. /***/ }),
  30572. /***/ "./node_modules/lodash/_baseIsMap.js":
  30573. /*!*******************************************!*\
  30574. !*** ./node_modules/lodash/_baseIsMap.js ***!
  30575. \*******************************************/
  30576. /*! no static exports found */
  30577. /***/ (function(module, exports, __webpack_require__) {
  30578. var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
  30579. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  30580. /** `Object#toString` result references. */
  30581. var mapTag = '[object Map]';
  30582. /**
  30583. * The base implementation of `_.isMap` without Node.js optimizations.
  30584. *
  30585. * @private
  30586. * @param {*} value The value to check.
  30587. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  30588. */
  30589. function baseIsMap(value) {
  30590. return isObjectLike(value) && getTag(value) == mapTag;
  30591. }
  30592. module.exports = baseIsMap;
  30593. /***/ }),
  30594. /***/ "./node_modules/lodash/_baseIsMatch.js":
  30595. /*!*********************************************!*\
  30596. !*** ./node_modules/lodash/_baseIsMatch.js ***!
  30597. \*********************************************/
  30598. /*! no static exports found */
  30599. /***/ (function(module, exports, __webpack_require__) {
  30600. var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
  30601. baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");
  30602. /** Used to compose bitmasks for value comparisons. */
  30603. var COMPARE_PARTIAL_FLAG = 1,
  30604. COMPARE_UNORDERED_FLAG = 2;
  30605. /**
  30606. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  30607. *
  30608. * @private
  30609. * @param {Object} object The object to inspect.
  30610. * @param {Object} source The object of property values to match.
  30611. * @param {Array} matchData The property names, values, and compare flags to match.
  30612. * @param {Function} [customizer] The function to customize comparisons.
  30613. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  30614. */
  30615. function baseIsMatch(object, source, matchData, customizer) {
  30616. var index = matchData.length,
  30617. length = index,
  30618. noCustomizer = !customizer;
  30619. if (object == null) {
  30620. return !length;
  30621. }
  30622. object = Object(object);
  30623. while (index--) {
  30624. var data = matchData[index];
  30625. if ((noCustomizer && data[2])
  30626. ? data[1] !== object[data[0]]
  30627. : !(data[0] in object)
  30628. ) {
  30629. return false;
  30630. }
  30631. }
  30632. while (++index < length) {
  30633. data = matchData[index];
  30634. var key = data[0],
  30635. objValue = object[key],
  30636. srcValue = data[1];
  30637. if (noCustomizer && data[2]) {
  30638. if (objValue === undefined && !(key in object)) {
  30639. return false;
  30640. }
  30641. } else {
  30642. var stack = new Stack;
  30643. if (customizer) {
  30644. var result = customizer(objValue, srcValue, key, object, source, stack);
  30645. }
  30646. if (!(result === undefined
  30647. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  30648. : result
  30649. )) {
  30650. return false;
  30651. }
  30652. }
  30653. }
  30654. return true;
  30655. }
  30656. module.exports = baseIsMatch;
  30657. /***/ }),
  30658. /***/ "./node_modules/lodash/_baseIsNaN.js":
  30659. /*!*******************************************!*\
  30660. !*** ./node_modules/lodash/_baseIsNaN.js ***!
  30661. \*******************************************/
  30662. /*! no static exports found */
  30663. /***/ (function(module, exports) {
  30664. /**
  30665. * The base implementation of `_.isNaN` without support for number objects.
  30666. *
  30667. * @private
  30668. * @param {*} value The value to check.
  30669. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  30670. */
  30671. function baseIsNaN(value) {
  30672. return value !== value;
  30673. }
  30674. module.exports = baseIsNaN;
  30675. /***/ }),
  30676. /***/ "./node_modules/lodash/_baseIsNative.js":
  30677. /*!**********************************************!*\
  30678. !*** ./node_modules/lodash/_baseIsNative.js ***!
  30679. \**********************************************/
  30680. /*! no static exports found */
  30681. /***/ (function(module, exports, __webpack_require__) {
  30682. var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
  30683. isMasked = __webpack_require__(/*! ./_isMasked */ "./node_modules/lodash/_isMasked.js"),
  30684. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  30685. toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
  30686. /**
  30687. * Used to match `RegExp`
  30688. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  30689. */
  30690. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  30691. /** Used to detect host constructors (Safari). */
  30692. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  30693. /** Used for built-in method references. */
  30694. var funcProto = Function.prototype,
  30695. objectProto = Object.prototype;
  30696. /** Used to resolve the decompiled source of functions. */
  30697. var funcToString = funcProto.toString;
  30698. /** Used to check objects for own properties. */
  30699. var hasOwnProperty = objectProto.hasOwnProperty;
  30700. /** Used to detect if a method is native. */
  30701. var reIsNative = RegExp('^' +
  30702. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  30703. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  30704. );
  30705. /**
  30706. * The base implementation of `_.isNative` without bad shim checks.
  30707. *
  30708. * @private
  30709. * @param {*} value The value to check.
  30710. * @returns {boolean} Returns `true` if `value` is a native function,
  30711. * else `false`.
  30712. */
  30713. function baseIsNative(value) {
  30714. if (!isObject(value) || isMasked(value)) {
  30715. return false;
  30716. }
  30717. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  30718. return pattern.test(toSource(value));
  30719. }
  30720. module.exports = baseIsNative;
  30721. /***/ }),
  30722. /***/ "./node_modules/lodash/_baseIsSet.js":
  30723. /*!*******************************************!*\
  30724. !*** ./node_modules/lodash/_baseIsSet.js ***!
  30725. \*******************************************/
  30726. /*! no static exports found */
  30727. /***/ (function(module, exports, __webpack_require__) {
  30728. var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
  30729. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  30730. /** `Object#toString` result references. */
  30731. var setTag = '[object Set]';
  30732. /**
  30733. * The base implementation of `_.isSet` without Node.js optimizations.
  30734. *
  30735. * @private
  30736. * @param {*} value The value to check.
  30737. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  30738. */
  30739. function baseIsSet(value) {
  30740. return isObjectLike(value) && getTag(value) == setTag;
  30741. }
  30742. module.exports = baseIsSet;
  30743. /***/ }),
  30744. /***/ "./node_modules/lodash/_baseIsTypedArray.js":
  30745. /*!**************************************************!*\
  30746. !*** ./node_modules/lodash/_baseIsTypedArray.js ***!
  30747. \**************************************************/
  30748. /*! no static exports found */
  30749. /***/ (function(module, exports, __webpack_require__) {
  30750. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  30751. isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
  30752. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  30753. /** `Object#toString` result references. */
  30754. var argsTag = '[object Arguments]',
  30755. arrayTag = '[object Array]',
  30756. boolTag = '[object Boolean]',
  30757. dateTag = '[object Date]',
  30758. errorTag = '[object Error]',
  30759. funcTag = '[object Function]',
  30760. mapTag = '[object Map]',
  30761. numberTag = '[object Number]',
  30762. objectTag = '[object Object]',
  30763. regexpTag = '[object RegExp]',
  30764. setTag = '[object Set]',
  30765. stringTag = '[object String]',
  30766. weakMapTag = '[object WeakMap]';
  30767. var arrayBufferTag = '[object ArrayBuffer]',
  30768. dataViewTag = '[object DataView]',
  30769. float32Tag = '[object Float32Array]',
  30770. float64Tag = '[object Float64Array]',
  30771. int8Tag = '[object Int8Array]',
  30772. int16Tag = '[object Int16Array]',
  30773. int32Tag = '[object Int32Array]',
  30774. uint8Tag = '[object Uint8Array]',
  30775. uint8ClampedTag = '[object Uint8ClampedArray]',
  30776. uint16Tag = '[object Uint16Array]',
  30777. uint32Tag = '[object Uint32Array]';
  30778. /** Used to identify `toStringTag` values of typed arrays. */
  30779. var typedArrayTags = {};
  30780. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  30781. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  30782. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  30783. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  30784. typedArrayTags[uint32Tag] = true;
  30785. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  30786. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  30787. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  30788. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  30789. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  30790. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  30791. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  30792. typedArrayTags[weakMapTag] = false;
  30793. /**
  30794. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  30795. *
  30796. * @private
  30797. * @param {*} value The value to check.
  30798. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  30799. */
  30800. function baseIsTypedArray(value) {
  30801. return isObjectLike(value) &&
  30802. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  30803. }
  30804. module.exports = baseIsTypedArray;
  30805. /***/ }),
  30806. /***/ "./node_modules/lodash/_baseIteratee.js":
  30807. /*!**********************************************!*\
  30808. !*** ./node_modules/lodash/_baseIteratee.js ***!
  30809. \**********************************************/
  30810. /*! no static exports found */
  30811. /***/ (function(module, exports, __webpack_require__) {
  30812. var baseMatches = __webpack_require__(/*! ./_baseMatches */ "./node_modules/lodash/_baseMatches.js"),
  30813. baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "./node_modules/lodash/_baseMatchesProperty.js"),
  30814. identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
  30815. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  30816. property = __webpack_require__(/*! ./property */ "./node_modules/lodash/property.js");
  30817. /**
  30818. * The base implementation of `_.iteratee`.
  30819. *
  30820. * @private
  30821. * @param {*} [value=_.identity] The value to convert to an iteratee.
  30822. * @returns {Function} Returns the iteratee.
  30823. */
  30824. function baseIteratee(value) {
  30825. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  30826. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  30827. if (typeof value == 'function') {
  30828. return value;
  30829. }
  30830. if (value == null) {
  30831. return identity;
  30832. }
  30833. if (typeof value == 'object') {
  30834. return isArray(value)
  30835. ? baseMatchesProperty(value[0], value[1])
  30836. : baseMatches(value);
  30837. }
  30838. return property(value);
  30839. }
  30840. module.exports = baseIteratee;
  30841. /***/ }),
  30842. /***/ "./node_modules/lodash/_baseKeys.js":
  30843. /*!******************************************!*\
  30844. !*** ./node_modules/lodash/_baseKeys.js ***!
  30845. \******************************************/
  30846. /*! no static exports found */
  30847. /***/ (function(module, exports, __webpack_require__) {
  30848. var isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
  30849. nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "./node_modules/lodash/_nativeKeys.js");
  30850. /** Used for built-in method references. */
  30851. var objectProto = Object.prototype;
  30852. /** Used to check objects for own properties. */
  30853. var hasOwnProperty = objectProto.hasOwnProperty;
  30854. /**
  30855. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  30856. *
  30857. * @private
  30858. * @param {Object} object The object to query.
  30859. * @returns {Array} Returns the array of property names.
  30860. */
  30861. function baseKeys(object) {
  30862. if (!isPrototype(object)) {
  30863. return nativeKeys(object);
  30864. }
  30865. var result = [];
  30866. for (var key in Object(object)) {
  30867. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  30868. result.push(key);
  30869. }
  30870. }
  30871. return result;
  30872. }
  30873. module.exports = baseKeys;
  30874. /***/ }),
  30875. /***/ "./node_modules/lodash/_baseKeysIn.js":
  30876. /*!********************************************!*\
  30877. !*** ./node_modules/lodash/_baseKeysIn.js ***!
  30878. \********************************************/
  30879. /*! no static exports found */
  30880. /***/ (function(module, exports, __webpack_require__) {
  30881. var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  30882. isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
  30883. nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "./node_modules/lodash/_nativeKeysIn.js");
  30884. /** Used for built-in method references. */
  30885. var objectProto = Object.prototype;
  30886. /** Used to check objects for own properties. */
  30887. var hasOwnProperty = objectProto.hasOwnProperty;
  30888. /**
  30889. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  30890. *
  30891. * @private
  30892. * @param {Object} object The object to query.
  30893. * @returns {Array} Returns the array of property names.
  30894. */
  30895. function baseKeysIn(object) {
  30896. if (!isObject(object)) {
  30897. return nativeKeysIn(object);
  30898. }
  30899. var isProto = isPrototype(object),
  30900. result = [];
  30901. for (var key in object) {
  30902. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  30903. result.push(key);
  30904. }
  30905. }
  30906. return result;
  30907. }
  30908. module.exports = baseKeysIn;
  30909. /***/ }),
  30910. /***/ "./node_modules/lodash/_baseLt.js":
  30911. /*!****************************************!*\
  30912. !*** ./node_modules/lodash/_baseLt.js ***!
  30913. \****************************************/
  30914. /*! no static exports found */
  30915. /***/ (function(module, exports) {
  30916. /**
  30917. * The base implementation of `_.lt` which doesn't coerce arguments.
  30918. *
  30919. * @private
  30920. * @param {*} value The value to compare.
  30921. * @param {*} other The other value to compare.
  30922. * @returns {boolean} Returns `true` if `value` is less than `other`,
  30923. * else `false`.
  30924. */
  30925. function baseLt(value, other) {
  30926. return value < other;
  30927. }
  30928. module.exports = baseLt;
  30929. /***/ }),
  30930. /***/ "./node_modules/lodash/_baseMap.js":
  30931. /*!*****************************************!*\
  30932. !*** ./node_modules/lodash/_baseMap.js ***!
  30933. \*****************************************/
  30934. /*! no static exports found */
  30935. /***/ (function(module, exports, __webpack_require__) {
  30936. var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"),
  30937. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
  30938. /**
  30939. * The base implementation of `_.map` without support for iteratee shorthands.
  30940. *
  30941. * @private
  30942. * @param {Array|Object} collection The collection to iterate over.
  30943. * @param {Function} iteratee The function invoked per iteration.
  30944. * @returns {Array} Returns the new mapped array.
  30945. */
  30946. function baseMap(collection, iteratee) {
  30947. var index = -1,
  30948. result = isArrayLike(collection) ? Array(collection.length) : [];
  30949. baseEach(collection, function(value, key, collection) {
  30950. result[++index] = iteratee(value, key, collection);
  30951. });
  30952. return result;
  30953. }
  30954. module.exports = baseMap;
  30955. /***/ }),
  30956. /***/ "./node_modules/lodash/_baseMatches.js":
  30957. /*!*********************************************!*\
  30958. !*** ./node_modules/lodash/_baseMatches.js ***!
  30959. \*********************************************/
  30960. /*! no static exports found */
  30961. /***/ (function(module, exports, __webpack_require__) {
  30962. var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "./node_modules/lodash/_baseIsMatch.js"),
  30963. getMatchData = __webpack_require__(/*! ./_getMatchData */ "./node_modules/lodash/_getMatchData.js"),
  30964. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js");
  30965. /**
  30966. * The base implementation of `_.matches` which doesn't clone `source`.
  30967. *
  30968. * @private
  30969. * @param {Object} source The object of property values to match.
  30970. * @returns {Function} Returns the new spec function.
  30971. */
  30972. function baseMatches(source) {
  30973. var matchData = getMatchData(source);
  30974. if (matchData.length == 1 && matchData[0][2]) {
  30975. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  30976. }
  30977. return function(object) {
  30978. return object === source || baseIsMatch(object, source, matchData);
  30979. };
  30980. }
  30981. module.exports = baseMatches;
  30982. /***/ }),
  30983. /***/ "./node_modules/lodash/_baseMatchesProperty.js":
  30984. /*!*****************************************************!*\
  30985. !*** ./node_modules/lodash/_baseMatchesProperty.js ***!
  30986. \*****************************************************/
  30987. /*! no static exports found */
  30988. /***/ (function(module, exports, __webpack_require__) {
  30989. var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js"),
  30990. get = __webpack_require__(/*! ./get */ "./node_modules/lodash/get.js"),
  30991. hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js"),
  30992. isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
  30993. isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
  30994. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js"),
  30995. toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
  30996. /** Used to compose bitmasks for value comparisons. */
  30997. var COMPARE_PARTIAL_FLAG = 1,
  30998. COMPARE_UNORDERED_FLAG = 2;
  30999. /**
  31000. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  31001. *
  31002. * @private
  31003. * @param {string} path The path of the property to get.
  31004. * @param {*} srcValue The value to match.
  31005. * @returns {Function} Returns the new spec function.
  31006. */
  31007. function baseMatchesProperty(path, srcValue) {
  31008. if (isKey(path) && isStrictComparable(srcValue)) {
  31009. return matchesStrictComparable(toKey(path), srcValue);
  31010. }
  31011. return function(object) {
  31012. var objValue = get(object, path);
  31013. return (objValue === undefined && objValue === srcValue)
  31014. ? hasIn(object, path)
  31015. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  31016. };
  31017. }
  31018. module.exports = baseMatchesProperty;
  31019. /***/ }),
  31020. /***/ "./node_modules/lodash/_baseMerge.js":
  31021. /*!*******************************************!*\
  31022. !*** ./node_modules/lodash/_baseMerge.js ***!
  31023. \*******************************************/
  31024. /*! no static exports found */
  31025. /***/ (function(module, exports, __webpack_require__) {
  31026. var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
  31027. assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
  31028. baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
  31029. baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "./node_modules/lodash/_baseMergeDeep.js"),
  31030. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  31031. keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js"),
  31032. safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js");
  31033. /**
  31034. * The base implementation of `_.merge` without support for multiple sources.
  31035. *
  31036. * @private
  31037. * @param {Object} object The destination object.
  31038. * @param {Object} source The source object.
  31039. * @param {number} srcIndex The index of `source`.
  31040. * @param {Function} [customizer] The function to customize merged values.
  31041. * @param {Object} [stack] Tracks traversed source values and their merged
  31042. * counterparts.
  31043. */
  31044. function baseMerge(object, source, srcIndex, customizer, stack) {
  31045. if (object === source) {
  31046. return;
  31047. }
  31048. baseFor(source, function(srcValue, key) {
  31049. stack || (stack = new Stack);
  31050. if (isObject(srcValue)) {
  31051. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  31052. }
  31053. else {
  31054. var newValue = customizer
  31055. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  31056. : undefined;
  31057. if (newValue === undefined) {
  31058. newValue = srcValue;
  31059. }
  31060. assignMergeValue(object, key, newValue);
  31061. }
  31062. }, keysIn);
  31063. }
  31064. module.exports = baseMerge;
  31065. /***/ }),
  31066. /***/ "./node_modules/lodash/_baseMergeDeep.js":
  31067. /*!***********************************************!*\
  31068. !*** ./node_modules/lodash/_baseMergeDeep.js ***!
  31069. \***********************************************/
  31070. /*! no static exports found */
  31071. /***/ (function(module, exports, __webpack_require__) {
  31072. var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
  31073. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
  31074. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js"),
  31075. copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
  31076. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
  31077. isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
  31078. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  31079. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js"),
  31080. isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
  31081. isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
  31082. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  31083. isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js"),
  31084. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"),
  31085. safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js"),
  31086. toPlainObject = __webpack_require__(/*! ./toPlainObject */ "./node_modules/lodash/toPlainObject.js");
  31087. /**
  31088. * A specialized version of `baseMerge` for arrays and objects which performs
  31089. * deep merges and tracks traversed objects enabling objects with circular
  31090. * references to be merged.
  31091. *
  31092. * @private
  31093. * @param {Object} object The destination object.
  31094. * @param {Object} source The source object.
  31095. * @param {string} key The key of the value to merge.
  31096. * @param {number} srcIndex The index of `source`.
  31097. * @param {Function} mergeFunc The function to merge values.
  31098. * @param {Function} [customizer] The function to customize assigned values.
  31099. * @param {Object} [stack] Tracks traversed source values and their merged
  31100. * counterparts.
  31101. */
  31102. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  31103. var objValue = safeGet(object, key),
  31104. srcValue = safeGet(source, key),
  31105. stacked = stack.get(srcValue);
  31106. if (stacked) {
  31107. assignMergeValue(object, key, stacked);
  31108. return;
  31109. }
  31110. var newValue = customizer
  31111. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  31112. : undefined;
  31113. var isCommon = newValue === undefined;
  31114. if (isCommon) {
  31115. var isArr = isArray(srcValue),
  31116. isBuff = !isArr && isBuffer(srcValue),
  31117. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  31118. newValue = srcValue;
  31119. if (isArr || isBuff || isTyped) {
  31120. if (isArray(objValue)) {
  31121. newValue = objValue;
  31122. }
  31123. else if (isArrayLikeObject(objValue)) {
  31124. newValue = copyArray(objValue);
  31125. }
  31126. else if (isBuff) {
  31127. isCommon = false;
  31128. newValue = cloneBuffer(srcValue, true);
  31129. }
  31130. else if (isTyped) {
  31131. isCommon = false;
  31132. newValue = cloneTypedArray(srcValue, true);
  31133. }
  31134. else {
  31135. newValue = [];
  31136. }
  31137. }
  31138. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  31139. newValue = objValue;
  31140. if (isArguments(objValue)) {
  31141. newValue = toPlainObject(objValue);
  31142. }
  31143. else if (!isObject(objValue) || isFunction(objValue)) {
  31144. newValue = initCloneObject(srcValue);
  31145. }
  31146. }
  31147. else {
  31148. isCommon = false;
  31149. }
  31150. }
  31151. if (isCommon) {
  31152. // Recursively merge objects and arrays (susceptible to call stack limits).
  31153. stack.set(srcValue, newValue);
  31154. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  31155. stack['delete'](srcValue);
  31156. }
  31157. assignMergeValue(object, key, newValue);
  31158. }
  31159. module.exports = baseMergeDeep;
  31160. /***/ }),
  31161. /***/ "./node_modules/lodash/_baseOrderBy.js":
  31162. /*!*********************************************!*\
  31163. !*** ./node_modules/lodash/_baseOrderBy.js ***!
  31164. \*********************************************/
  31165. /*! no static exports found */
  31166. /***/ (function(module, exports, __webpack_require__) {
  31167. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
  31168. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  31169. baseMap = __webpack_require__(/*! ./_baseMap */ "./node_modules/lodash/_baseMap.js"),
  31170. baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "./node_modules/lodash/_baseSortBy.js"),
  31171. baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
  31172. compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "./node_modules/lodash/_compareMultiple.js"),
  31173. identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
  31174. /**
  31175. * The base implementation of `_.orderBy` without param guards.
  31176. *
  31177. * @private
  31178. * @param {Array|Object} collection The collection to iterate over.
  31179. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  31180. * @param {string[]} orders The sort orders of `iteratees`.
  31181. * @returns {Array} Returns the new sorted array.
  31182. */
  31183. function baseOrderBy(collection, iteratees, orders) {
  31184. var index = -1;
  31185. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));
  31186. var result = baseMap(collection, function(value, key, collection) {
  31187. var criteria = arrayMap(iteratees, function(iteratee) {
  31188. return iteratee(value);
  31189. });
  31190. return { 'criteria': criteria, 'index': ++index, 'value': value };
  31191. });
  31192. return baseSortBy(result, function(object, other) {
  31193. return compareMultiple(object, other, orders);
  31194. });
  31195. }
  31196. module.exports = baseOrderBy;
  31197. /***/ }),
  31198. /***/ "./node_modules/lodash/_basePick.js":
  31199. /*!******************************************!*\
  31200. !*** ./node_modules/lodash/_basePick.js ***!
  31201. \******************************************/
  31202. /*! no static exports found */
  31203. /***/ (function(module, exports, __webpack_require__) {
  31204. var basePickBy = __webpack_require__(/*! ./_basePickBy */ "./node_modules/lodash/_basePickBy.js"),
  31205. hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js");
  31206. /**
  31207. * The base implementation of `_.pick` without support for individual
  31208. * property identifiers.
  31209. *
  31210. * @private
  31211. * @param {Object} object The source object.
  31212. * @param {string[]} paths The property paths to pick.
  31213. * @returns {Object} Returns the new object.
  31214. */
  31215. function basePick(object, paths) {
  31216. return basePickBy(object, paths, function(value, path) {
  31217. return hasIn(object, path);
  31218. });
  31219. }
  31220. module.exports = basePick;
  31221. /***/ }),
  31222. /***/ "./node_modules/lodash/_basePickBy.js":
  31223. /*!********************************************!*\
  31224. !*** ./node_modules/lodash/_basePickBy.js ***!
  31225. \********************************************/
  31226. /*! no static exports found */
  31227. /***/ (function(module, exports, __webpack_require__) {
  31228. var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
  31229. baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js"),
  31230. castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js");
  31231. /**
  31232. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  31233. *
  31234. * @private
  31235. * @param {Object} object The source object.
  31236. * @param {string[]} paths The property paths to pick.
  31237. * @param {Function} predicate The function invoked per property.
  31238. * @returns {Object} Returns the new object.
  31239. */
  31240. function basePickBy(object, paths, predicate) {
  31241. var index = -1,
  31242. length = paths.length,
  31243. result = {};
  31244. while (++index < length) {
  31245. var path = paths[index],
  31246. value = baseGet(object, path);
  31247. if (predicate(value, path)) {
  31248. baseSet(result, castPath(path, object), value);
  31249. }
  31250. }
  31251. return result;
  31252. }
  31253. module.exports = basePickBy;
  31254. /***/ }),
  31255. /***/ "./node_modules/lodash/_baseProperty.js":
  31256. /*!**********************************************!*\
  31257. !*** ./node_modules/lodash/_baseProperty.js ***!
  31258. \**********************************************/
  31259. /*! no static exports found */
  31260. /***/ (function(module, exports) {
  31261. /**
  31262. * The base implementation of `_.property` without support for deep paths.
  31263. *
  31264. * @private
  31265. * @param {string} key The key of the property to get.
  31266. * @returns {Function} Returns the new accessor function.
  31267. */
  31268. function baseProperty(key) {
  31269. return function(object) {
  31270. return object == null ? undefined : object[key];
  31271. };
  31272. }
  31273. module.exports = baseProperty;
  31274. /***/ }),
  31275. /***/ "./node_modules/lodash/_basePropertyDeep.js":
  31276. /*!**************************************************!*\
  31277. !*** ./node_modules/lodash/_basePropertyDeep.js ***!
  31278. \**************************************************/
  31279. /*! no static exports found */
  31280. /***/ (function(module, exports, __webpack_require__) {
  31281. var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
  31282. /**
  31283. * A specialized version of `baseProperty` which supports deep paths.
  31284. *
  31285. * @private
  31286. * @param {Array|string} path The path of the property to get.
  31287. * @returns {Function} Returns the new accessor function.
  31288. */
  31289. function basePropertyDeep(path) {
  31290. return function(object) {
  31291. return baseGet(object, path);
  31292. };
  31293. }
  31294. module.exports = basePropertyDeep;
  31295. /***/ }),
  31296. /***/ "./node_modules/lodash/_baseRange.js":
  31297. /*!*******************************************!*\
  31298. !*** ./node_modules/lodash/_baseRange.js ***!
  31299. \*******************************************/
  31300. /*! no static exports found */
  31301. /***/ (function(module, exports) {
  31302. /* Built-in method references for those with the same name as other `lodash` methods. */
  31303. var nativeCeil = Math.ceil,
  31304. nativeMax = Math.max;
  31305. /**
  31306. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  31307. * coerce arguments.
  31308. *
  31309. * @private
  31310. * @param {number} start The start of the range.
  31311. * @param {number} end The end of the range.
  31312. * @param {number} step The value to increment or decrement by.
  31313. * @param {boolean} [fromRight] Specify iterating from right to left.
  31314. * @returns {Array} Returns the range of numbers.
  31315. */
  31316. function baseRange(start, end, step, fromRight) {
  31317. var index = -1,
  31318. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  31319. result = Array(length);
  31320. while (length--) {
  31321. result[fromRight ? length : ++index] = start;
  31322. start += step;
  31323. }
  31324. return result;
  31325. }
  31326. module.exports = baseRange;
  31327. /***/ }),
  31328. /***/ "./node_modules/lodash/_baseReduce.js":
  31329. /*!********************************************!*\
  31330. !*** ./node_modules/lodash/_baseReduce.js ***!
  31331. \********************************************/
  31332. /*! no static exports found */
  31333. /***/ (function(module, exports) {
  31334. /**
  31335. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  31336. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  31337. *
  31338. * @private
  31339. * @param {Array|Object} collection The collection to iterate over.
  31340. * @param {Function} iteratee The function invoked per iteration.
  31341. * @param {*} accumulator The initial value.
  31342. * @param {boolean} initAccum Specify using the first or last element of
  31343. * `collection` as the initial value.
  31344. * @param {Function} eachFunc The function to iterate over `collection`.
  31345. * @returns {*} Returns the accumulated value.
  31346. */
  31347. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  31348. eachFunc(collection, function(value, index, collection) {
  31349. accumulator = initAccum
  31350. ? (initAccum = false, value)
  31351. : iteratee(accumulator, value, index, collection);
  31352. });
  31353. return accumulator;
  31354. }
  31355. module.exports = baseReduce;
  31356. /***/ }),
  31357. /***/ "./node_modules/lodash/_baseRest.js":
  31358. /*!******************************************!*\
  31359. !*** ./node_modules/lodash/_baseRest.js ***!
  31360. \******************************************/
  31361. /*! no static exports found */
  31362. /***/ (function(module, exports, __webpack_require__) {
  31363. var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
  31364. overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
  31365. setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
  31366. /**
  31367. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  31368. *
  31369. * @private
  31370. * @param {Function} func The function to apply a rest parameter to.
  31371. * @param {number} [start=func.length-1] The start position of the rest parameter.
  31372. * @returns {Function} Returns the new function.
  31373. */
  31374. function baseRest(func, start) {
  31375. return setToString(overRest(func, start, identity), func + '');
  31376. }
  31377. module.exports = baseRest;
  31378. /***/ }),
  31379. /***/ "./node_modules/lodash/_baseSet.js":
  31380. /*!*****************************************!*\
  31381. !*** ./node_modules/lodash/_baseSet.js ***!
  31382. \*****************************************/
  31383. /*! no static exports found */
  31384. /***/ (function(module, exports, __webpack_require__) {
  31385. var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
  31386. castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
  31387. isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
  31388. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  31389. toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
  31390. /**
  31391. * The base implementation of `_.set`.
  31392. *
  31393. * @private
  31394. * @param {Object} object The object to modify.
  31395. * @param {Array|string} path The path of the property to set.
  31396. * @param {*} value The value to set.
  31397. * @param {Function} [customizer] The function to customize path creation.
  31398. * @returns {Object} Returns `object`.
  31399. */
  31400. function baseSet(object, path, value, customizer) {
  31401. if (!isObject(object)) {
  31402. return object;
  31403. }
  31404. path = castPath(path, object);
  31405. var index = -1,
  31406. length = path.length,
  31407. lastIndex = length - 1,
  31408. nested = object;
  31409. while (nested != null && ++index < length) {
  31410. var key = toKey(path[index]),
  31411. newValue = value;
  31412. if (index != lastIndex) {
  31413. var objValue = nested[key];
  31414. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  31415. if (newValue === undefined) {
  31416. newValue = isObject(objValue)
  31417. ? objValue
  31418. : (isIndex(path[index + 1]) ? [] : {});
  31419. }
  31420. }
  31421. assignValue(nested, key, newValue);
  31422. nested = nested[key];
  31423. }
  31424. return object;
  31425. }
  31426. module.exports = baseSet;
  31427. /***/ }),
  31428. /***/ "./node_modules/lodash/_baseSetToString.js":
  31429. /*!*************************************************!*\
  31430. !*** ./node_modules/lodash/_baseSetToString.js ***!
  31431. \*************************************************/
  31432. /*! no static exports found */
  31433. /***/ (function(module, exports, __webpack_require__) {
  31434. var constant = __webpack_require__(/*! ./constant */ "./node_modules/lodash/constant.js"),
  31435. defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js"),
  31436. identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
  31437. /**
  31438. * The base implementation of `setToString` without support for hot loop shorting.
  31439. *
  31440. * @private
  31441. * @param {Function} func The function to modify.
  31442. * @param {Function} string The `toString` result.
  31443. * @returns {Function} Returns `func`.
  31444. */
  31445. var baseSetToString = !defineProperty ? identity : function(func, string) {
  31446. return defineProperty(func, 'toString', {
  31447. 'configurable': true,
  31448. 'enumerable': false,
  31449. 'value': constant(string),
  31450. 'writable': true
  31451. });
  31452. };
  31453. module.exports = baseSetToString;
  31454. /***/ }),
  31455. /***/ "./node_modules/lodash/_baseSortBy.js":
  31456. /*!********************************************!*\
  31457. !*** ./node_modules/lodash/_baseSortBy.js ***!
  31458. \********************************************/
  31459. /*! no static exports found */
  31460. /***/ (function(module, exports) {
  31461. /**
  31462. * The base implementation of `_.sortBy` which uses `comparer` to define the
  31463. * sort order of `array` and replaces criteria objects with their corresponding
  31464. * values.
  31465. *
  31466. * @private
  31467. * @param {Array} array The array to sort.
  31468. * @param {Function} comparer The function to define sort order.
  31469. * @returns {Array} Returns `array`.
  31470. */
  31471. function baseSortBy(array, comparer) {
  31472. var length = array.length;
  31473. array.sort(comparer);
  31474. while (length--) {
  31475. array[length] = array[length].value;
  31476. }
  31477. return array;
  31478. }
  31479. module.exports = baseSortBy;
  31480. /***/ }),
  31481. /***/ "./node_modules/lodash/_baseTimes.js":
  31482. /*!*******************************************!*\
  31483. !*** ./node_modules/lodash/_baseTimes.js ***!
  31484. \*******************************************/
  31485. /*! no static exports found */
  31486. /***/ (function(module, exports) {
  31487. /**
  31488. * The base implementation of `_.times` without support for iteratee shorthands
  31489. * or max array length checks.
  31490. *
  31491. * @private
  31492. * @param {number} n The number of times to invoke `iteratee`.
  31493. * @param {Function} iteratee The function invoked per iteration.
  31494. * @returns {Array} Returns the array of results.
  31495. */
  31496. function baseTimes(n, iteratee) {
  31497. var index = -1,
  31498. result = Array(n);
  31499. while (++index < n) {
  31500. result[index] = iteratee(index);
  31501. }
  31502. return result;
  31503. }
  31504. module.exports = baseTimes;
  31505. /***/ }),
  31506. /***/ "./node_modules/lodash/_baseToString.js":
  31507. /*!**********************************************!*\
  31508. !*** ./node_modules/lodash/_baseToString.js ***!
  31509. \**********************************************/
  31510. /*! no static exports found */
  31511. /***/ (function(module, exports, __webpack_require__) {
  31512. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  31513. arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
  31514. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  31515. isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  31516. /** Used as references for various `Number` constants. */
  31517. var INFINITY = 1 / 0;
  31518. /** Used to convert symbols to primitives and strings. */
  31519. var symbolProto = Symbol ? Symbol.prototype : undefined,
  31520. symbolToString = symbolProto ? symbolProto.toString : undefined;
  31521. /**
  31522. * The base implementation of `_.toString` which doesn't convert nullish
  31523. * values to empty strings.
  31524. *
  31525. * @private
  31526. * @param {*} value The value to process.
  31527. * @returns {string} Returns the string.
  31528. */
  31529. function baseToString(value) {
  31530. // Exit early for strings to avoid a performance hit in some environments.
  31531. if (typeof value == 'string') {
  31532. return value;
  31533. }
  31534. if (isArray(value)) {
  31535. // Recursively convert values (susceptible to call stack limits).
  31536. return arrayMap(value, baseToString) + '';
  31537. }
  31538. if (isSymbol(value)) {
  31539. return symbolToString ? symbolToString.call(value) : '';
  31540. }
  31541. var result = (value + '');
  31542. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  31543. }
  31544. module.exports = baseToString;
  31545. /***/ }),
  31546. /***/ "./node_modules/lodash/_baseUnary.js":
  31547. /*!*******************************************!*\
  31548. !*** ./node_modules/lodash/_baseUnary.js ***!
  31549. \*******************************************/
  31550. /*! no static exports found */
  31551. /***/ (function(module, exports) {
  31552. /**
  31553. * The base implementation of `_.unary` without support for storing metadata.
  31554. *
  31555. * @private
  31556. * @param {Function} func The function to cap arguments for.
  31557. * @returns {Function} Returns the new capped function.
  31558. */
  31559. function baseUnary(func) {
  31560. return function(value) {
  31561. return func(value);
  31562. };
  31563. }
  31564. module.exports = baseUnary;
  31565. /***/ }),
  31566. /***/ "./node_modules/lodash/_baseUniq.js":
  31567. /*!******************************************!*\
  31568. !*** ./node_modules/lodash/_baseUniq.js ***!
  31569. \******************************************/
  31570. /*! no static exports found */
  31571. /***/ (function(module, exports, __webpack_require__) {
  31572. var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
  31573. arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "./node_modules/lodash/_arrayIncludes.js"),
  31574. arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "./node_modules/lodash/_arrayIncludesWith.js"),
  31575. cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js"),
  31576. createSet = __webpack_require__(/*! ./_createSet */ "./node_modules/lodash/_createSet.js"),
  31577. setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
  31578. /** Used as the size to enable large array optimizations. */
  31579. var LARGE_ARRAY_SIZE = 200;
  31580. /**
  31581. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  31582. *
  31583. * @private
  31584. * @param {Array} array The array to inspect.
  31585. * @param {Function} [iteratee] The iteratee invoked per element.
  31586. * @param {Function} [comparator] The comparator invoked per element.
  31587. * @returns {Array} Returns the new duplicate free array.
  31588. */
  31589. function baseUniq(array, iteratee, comparator) {
  31590. var index = -1,
  31591. includes = arrayIncludes,
  31592. length = array.length,
  31593. isCommon = true,
  31594. result = [],
  31595. seen = result;
  31596. if (comparator) {
  31597. isCommon = false;
  31598. includes = arrayIncludesWith;
  31599. }
  31600. else if (length >= LARGE_ARRAY_SIZE) {
  31601. var set = iteratee ? null : createSet(array);
  31602. if (set) {
  31603. return setToArray(set);
  31604. }
  31605. isCommon = false;
  31606. includes = cacheHas;
  31607. seen = new SetCache;
  31608. }
  31609. else {
  31610. seen = iteratee ? [] : result;
  31611. }
  31612. outer:
  31613. while (++index < length) {
  31614. var value = array[index],
  31615. computed = iteratee ? iteratee(value) : value;
  31616. value = (comparator || value !== 0) ? value : 0;
  31617. if (isCommon && computed === computed) {
  31618. var seenIndex = seen.length;
  31619. while (seenIndex--) {
  31620. if (seen[seenIndex] === computed) {
  31621. continue outer;
  31622. }
  31623. }
  31624. if (iteratee) {
  31625. seen.push(computed);
  31626. }
  31627. result.push(value);
  31628. }
  31629. else if (!includes(seen, computed, comparator)) {
  31630. if (seen !== result) {
  31631. seen.push(computed);
  31632. }
  31633. result.push(value);
  31634. }
  31635. }
  31636. return result;
  31637. }
  31638. module.exports = baseUniq;
  31639. /***/ }),
  31640. /***/ "./node_modules/lodash/_baseValues.js":
  31641. /*!********************************************!*\
  31642. !*** ./node_modules/lodash/_baseValues.js ***!
  31643. \********************************************/
  31644. /*! no static exports found */
  31645. /***/ (function(module, exports, __webpack_require__) {
  31646. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js");
  31647. /**
  31648. * The base implementation of `_.values` and `_.valuesIn` which creates an
  31649. * array of `object` property values corresponding to the property names
  31650. * of `props`.
  31651. *
  31652. * @private
  31653. * @param {Object} object The object to query.
  31654. * @param {Array} props The property names to get values for.
  31655. * @returns {Object} Returns the array of property values.
  31656. */
  31657. function baseValues(object, props) {
  31658. return arrayMap(props, function(key) {
  31659. return object[key];
  31660. });
  31661. }
  31662. module.exports = baseValues;
  31663. /***/ }),
  31664. /***/ "./node_modules/lodash/_baseZipObject.js":
  31665. /*!***********************************************!*\
  31666. !*** ./node_modules/lodash/_baseZipObject.js ***!
  31667. \***********************************************/
  31668. /*! no static exports found */
  31669. /***/ (function(module, exports) {
  31670. /**
  31671. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  31672. *
  31673. * @private
  31674. * @param {Array} props The property identifiers.
  31675. * @param {Array} values The property values.
  31676. * @param {Function} assignFunc The function to assign values.
  31677. * @returns {Object} Returns the new object.
  31678. */
  31679. function baseZipObject(props, values, assignFunc) {
  31680. var index = -1,
  31681. length = props.length,
  31682. valsLength = values.length,
  31683. result = {};
  31684. while (++index < length) {
  31685. var value = index < valsLength ? values[index] : undefined;
  31686. assignFunc(result, props[index], value);
  31687. }
  31688. return result;
  31689. }
  31690. module.exports = baseZipObject;
  31691. /***/ }),
  31692. /***/ "./node_modules/lodash/_cacheHas.js":
  31693. /*!******************************************!*\
  31694. !*** ./node_modules/lodash/_cacheHas.js ***!
  31695. \******************************************/
  31696. /*! no static exports found */
  31697. /***/ (function(module, exports) {
  31698. /**
  31699. * Checks if a `cache` value for `key` exists.
  31700. *
  31701. * @private
  31702. * @param {Object} cache The cache to query.
  31703. * @param {string} key The key of the entry to check.
  31704. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  31705. */
  31706. function cacheHas(cache, key) {
  31707. return cache.has(key);
  31708. }
  31709. module.exports = cacheHas;
  31710. /***/ }),
  31711. /***/ "./node_modules/lodash/_castFunction.js":
  31712. /*!**********************************************!*\
  31713. !*** ./node_modules/lodash/_castFunction.js ***!
  31714. \**********************************************/
  31715. /*! no static exports found */
  31716. /***/ (function(module, exports, __webpack_require__) {
  31717. var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
  31718. /**
  31719. * Casts `value` to `identity` if it's not a function.
  31720. *
  31721. * @private
  31722. * @param {*} value The value to inspect.
  31723. * @returns {Function} Returns cast function.
  31724. */
  31725. function castFunction(value) {
  31726. return typeof value == 'function' ? value : identity;
  31727. }
  31728. module.exports = castFunction;
  31729. /***/ }),
  31730. /***/ "./node_modules/lodash/_castPath.js":
  31731. /*!******************************************!*\
  31732. !*** ./node_modules/lodash/_castPath.js ***!
  31733. \******************************************/
  31734. /*! no static exports found */
  31735. /***/ (function(module, exports, __webpack_require__) {
  31736. var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  31737. isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
  31738. stringToPath = __webpack_require__(/*! ./_stringToPath */ "./node_modules/lodash/_stringToPath.js"),
  31739. toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
  31740. /**
  31741. * Casts `value` to a path array if it's not one.
  31742. *
  31743. * @private
  31744. * @param {*} value The value to inspect.
  31745. * @param {Object} [object] The object to query keys on.
  31746. * @returns {Array} Returns the cast property path array.
  31747. */
  31748. function castPath(value, object) {
  31749. if (isArray(value)) {
  31750. return value;
  31751. }
  31752. return isKey(value, object) ? [value] : stringToPath(toString(value));
  31753. }
  31754. module.exports = castPath;
  31755. /***/ }),
  31756. /***/ "./node_modules/lodash/_cloneArrayBuffer.js":
  31757. /*!**************************************************!*\
  31758. !*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
  31759. \**************************************************/
  31760. /*! no static exports found */
  31761. /***/ (function(module, exports, __webpack_require__) {
  31762. var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js");
  31763. /**
  31764. * Creates a clone of `arrayBuffer`.
  31765. *
  31766. * @private
  31767. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  31768. * @returns {ArrayBuffer} Returns the cloned array buffer.
  31769. */
  31770. function cloneArrayBuffer(arrayBuffer) {
  31771. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  31772. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  31773. return result;
  31774. }
  31775. module.exports = cloneArrayBuffer;
  31776. /***/ }),
  31777. /***/ "./node_modules/lodash/_cloneBuffer.js":
  31778. /*!*********************************************!*\
  31779. !*** ./node_modules/lodash/_cloneBuffer.js ***!
  31780. \*********************************************/
  31781. /*! no static exports found */
  31782. /***/ (function(module, exports, __webpack_require__) {
  31783. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  31784. /** Detect free variable `exports`. */
  31785. var freeExports = true && exports && !exports.nodeType && exports;
  31786. /** Detect free variable `module`. */
  31787. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  31788. /** Detect the popular CommonJS extension `module.exports`. */
  31789. var moduleExports = freeModule && freeModule.exports === freeExports;
  31790. /** Built-in value references. */
  31791. var Buffer = moduleExports ? root.Buffer : undefined,
  31792. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
  31793. /**
  31794. * Creates a clone of `buffer`.
  31795. *
  31796. * @private
  31797. * @param {Buffer} buffer The buffer to clone.
  31798. * @param {boolean} [isDeep] Specify a deep clone.
  31799. * @returns {Buffer} Returns the cloned buffer.
  31800. */
  31801. function cloneBuffer(buffer, isDeep) {
  31802. if (isDeep) {
  31803. return buffer.slice();
  31804. }
  31805. var length = buffer.length,
  31806. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  31807. buffer.copy(result);
  31808. return result;
  31809. }
  31810. module.exports = cloneBuffer;
  31811. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  31812. /***/ }),
  31813. /***/ "./node_modules/lodash/_cloneDataView.js":
  31814. /*!***********************************************!*\
  31815. !*** ./node_modules/lodash/_cloneDataView.js ***!
  31816. \***********************************************/
  31817. /*! no static exports found */
  31818. /***/ (function(module, exports, __webpack_require__) {
  31819. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
  31820. /**
  31821. * Creates a clone of `dataView`.
  31822. *
  31823. * @private
  31824. * @param {Object} dataView The data view to clone.
  31825. * @param {boolean} [isDeep] Specify a deep clone.
  31826. * @returns {Object} Returns the cloned data view.
  31827. */
  31828. function cloneDataView(dataView, isDeep) {
  31829. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  31830. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  31831. }
  31832. module.exports = cloneDataView;
  31833. /***/ }),
  31834. /***/ "./node_modules/lodash/_cloneRegExp.js":
  31835. /*!*********************************************!*\
  31836. !*** ./node_modules/lodash/_cloneRegExp.js ***!
  31837. \*********************************************/
  31838. /*! no static exports found */
  31839. /***/ (function(module, exports) {
  31840. /** Used to match `RegExp` flags from their coerced string values. */
  31841. var reFlags = /\w*$/;
  31842. /**
  31843. * Creates a clone of `regexp`.
  31844. *
  31845. * @private
  31846. * @param {Object} regexp The regexp to clone.
  31847. * @returns {Object} Returns the cloned regexp.
  31848. */
  31849. function cloneRegExp(regexp) {
  31850. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  31851. result.lastIndex = regexp.lastIndex;
  31852. return result;
  31853. }
  31854. module.exports = cloneRegExp;
  31855. /***/ }),
  31856. /***/ "./node_modules/lodash/_cloneSymbol.js":
  31857. /*!*********************************************!*\
  31858. !*** ./node_modules/lodash/_cloneSymbol.js ***!
  31859. \*********************************************/
  31860. /*! no static exports found */
  31861. /***/ (function(module, exports, __webpack_require__) {
  31862. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
  31863. /** Used to convert symbols to primitives and strings. */
  31864. var symbolProto = Symbol ? Symbol.prototype : undefined,
  31865. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  31866. /**
  31867. * Creates a clone of the `symbol` object.
  31868. *
  31869. * @private
  31870. * @param {Object} symbol The symbol object to clone.
  31871. * @returns {Object} Returns the cloned symbol object.
  31872. */
  31873. function cloneSymbol(symbol) {
  31874. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  31875. }
  31876. module.exports = cloneSymbol;
  31877. /***/ }),
  31878. /***/ "./node_modules/lodash/_cloneTypedArray.js":
  31879. /*!*************************************************!*\
  31880. !*** ./node_modules/lodash/_cloneTypedArray.js ***!
  31881. \*************************************************/
  31882. /*! no static exports found */
  31883. /***/ (function(module, exports, __webpack_require__) {
  31884. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
  31885. /**
  31886. * Creates a clone of `typedArray`.
  31887. *
  31888. * @private
  31889. * @param {Object} typedArray The typed array to clone.
  31890. * @param {boolean} [isDeep] Specify a deep clone.
  31891. * @returns {Object} Returns the cloned typed array.
  31892. */
  31893. function cloneTypedArray(typedArray, isDeep) {
  31894. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  31895. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  31896. }
  31897. module.exports = cloneTypedArray;
  31898. /***/ }),
  31899. /***/ "./node_modules/lodash/_compareAscending.js":
  31900. /*!**************************************************!*\
  31901. !*** ./node_modules/lodash/_compareAscending.js ***!
  31902. \**************************************************/
  31903. /*! no static exports found */
  31904. /***/ (function(module, exports, __webpack_require__) {
  31905. var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  31906. /**
  31907. * Compares values to sort them in ascending order.
  31908. *
  31909. * @private
  31910. * @param {*} value The value to compare.
  31911. * @param {*} other The other value to compare.
  31912. * @returns {number} Returns the sort order indicator for `value`.
  31913. */
  31914. function compareAscending(value, other) {
  31915. if (value !== other) {
  31916. var valIsDefined = value !== undefined,
  31917. valIsNull = value === null,
  31918. valIsReflexive = value === value,
  31919. valIsSymbol = isSymbol(value);
  31920. var othIsDefined = other !== undefined,
  31921. othIsNull = other === null,
  31922. othIsReflexive = other === other,
  31923. othIsSymbol = isSymbol(other);
  31924. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  31925. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  31926. (valIsNull && othIsDefined && othIsReflexive) ||
  31927. (!valIsDefined && othIsReflexive) ||
  31928. !valIsReflexive) {
  31929. return 1;
  31930. }
  31931. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  31932. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  31933. (othIsNull && valIsDefined && valIsReflexive) ||
  31934. (!othIsDefined && valIsReflexive) ||
  31935. !othIsReflexive) {
  31936. return -1;
  31937. }
  31938. }
  31939. return 0;
  31940. }
  31941. module.exports = compareAscending;
  31942. /***/ }),
  31943. /***/ "./node_modules/lodash/_compareMultiple.js":
  31944. /*!*************************************************!*\
  31945. !*** ./node_modules/lodash/_compareMultiple.js ***!
  31946. \*************************************************/
  31947. /*! no static exports found */
  31948. /***/ (function(module, exports, __webpack_require__) {
  31949. var compareAscending = __webpack_require__(/*! ./_compareAscending */ "./node_modules/lodash/_compareAscending.js");
  31950. /**
  31951. * Used by `_.orderBy` to compare multiple properties of a value to another
  31952. * and stable sort them.
  31953. *
  31954. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  31955. * specify an order of "desc" for descending or "asc" for ascending sort order
  31956. * of corresponding values.
  31957. *
  31958. * @private
  31959. * @param {Object} object The object to compare.
  31960. * @param {Object} other The other object to compare.
  31961. * @param {boolean[]|string[]} orders The order to sort by for each property.
  31962. * @returns {number} Returns the sort order indicator for `object`.
  31963. */
  31964. function compareMultiple(object, other, orders) {
  31965. var index = -1,
  31966. objCriteria = object.criteria,
  31967. othCriteria = other.criteria,
  31968. length = objCriteria.length,
  31969. ordersLength = orders.length;
  31970. while (++index < length) {
  31971. var result = compareAscending(objCriteria[index], othCriteria[index]);
  31972. if (result) {
  31973. if (index >= ordersLength) {
  31974. return result;
  31975. }
  31976. var order = orders[index];
  31977. return result * (order == 'desc' ? -1 : 1);
  31978. }
  31979. }
  31980. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  31981. // that causes it, under certain circumstances, to provide the same value for
  31982. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  31983. // for more details.
  31984. //
  31985. // This also ensures a stable sort in V8 and other engines.
  31986. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  31987. return object.index - other.index;
  31988. }
  31989. module.exports = compareMultiple;
  31990. /***/ }),
  31991. /***/ "./node_modules/lodash/_copyArray.js":
  31992. /*!*******************************************!*\
  31993. !*** ./node_modules/lodash/_copyArray.js ***!
  31994. \*******************************************/
  31995. /*! no static exports found */
  31996. /***/ (function(module, exports) {
  31997. /**
  31998. * Copies the values of `source` to `array`.
  31999. *
  32000. * @private
  32001. * @param {Array} source The array to copy values from.
  32002. * @param {Array} [array=[]] The array to copy values to.
  32003. * @returns {Array} Returns `array`.
  32004. */
  32005. function copyArray(source, array) {
  32006. var index = -1,
  32007. length = source.length;
  32008. array || (array = Array(length));
  32009. while (++index < length) {
  32010. array[index] = source[index];
  32011. }
  32012. return array;
  32013. }
  32014. module.exports = copyArray;
  32015. /***/ }),
  32016. /***/ "./node_modules/lodash/_copyObject.js":
  32017. /*!********************************************!*\
  32018. !*** ./node_modules/lodash/_copyObject.js ***!
  32019. \********************************************/
  32020. /*! no static exports found */
  32021. /***/ (function(module, exports, __webpack_require__) {
  32022. var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
  32023. baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js");
  32024. /**
  32025. * Copies properties of `source` to `object`.
  32026. *
  32027. * @private
  32028. * @param {Object} source The object to copy properties from.
  32029. * @param {Array} props The property identifiers to copy.
  32030. * @param {Object} [object={}] The object to copy properties to.
  32031. * @param {Function} [customizer] The function to customize copied values.
  32032. * @returns {Object} Returns `object`.
  32033. */
  32034. function copyObject(source, props, object, customizer) {
  32035. var isNew = !object;
  32036. object || (object = {});
  32037. var index = -1,
  32038. length = props.length;
  32039. while (++index < length) {
  32040. var key = props[index];
  32041. var newValue = customizer
  32042. ? customizer(object[key], source[key], key, object, source)
  32043. : undefined;
  32044. if (newValue === undefined) {
  32045. newValue = source[key];
  32046. }
  32047. if (isNew) {
  32048. baseAssignValue(object, key, newValue);
  32049. } else {
  32050. assignValue(object, key, newValue);
  32051. }
  32052. }
  32053. return object;
  32054. }
  32055. module.exports = copyObject;
  32056. /***/ }),
  32057. /***/ "./node_modules/lodash/_copySymbols.js":
  32058. /*!*********************************************!*\
  32059. !*** ./node_modules/lodash/_copySymbols.js ***!
  32060. \*********************************************/
  32061. /*! no static exports found */
  32062. /***/ (function(module, exports, __webpack_require__) {
  32063. var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
  32064. getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js");
  32065. /**
  32066. * Copies own symbols of `source` to `object`.
  32067. *
  32068. * @private
  32069. * @param {Object} source The object to copy symbols from.
  32070. * @param {Object} [object={}] The object to copy symbols to.
  32071. * @returns {Object} Returns `object`.
  32072. */
  32073. function copySymbols(source, object) {
  32074. return copyObject(source, getSymbols(source), object);
  32075. }
  32076. module.exports = copySymbols;
  32077. /***/ }),
  32078. /***/ "./node_modules/lodash/_copySymbolsIn.js":
  32079. /*!***********************************************!*\
  32080. !*** ./node_modules/lodash/_copySymbolsIn.js ***!
  32081. \***********************************************/
  32082. /*! no static exports found */
  32083. /***/ (function(module, exports, __webpack_require__) {
  32084. var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
  32085. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js");
  32086. /**
  32087. * Copies own and inherited symbols of `source` to `object`.
  32088. *
  32089. * @private
  32090. * @param {Object} source The object to copy symbols from.
  32091. * @param {Object} [object={}] The object to copy symbols to.
  32092. * @returns {Object} Returns `object`.
  32093. */
  32094. function copySymbolsIn(source, object) {
  32095. return copyObject(source, getSymbolsIn(source), object);
  32096. }
  32097. module.exports = copySymbolsIn;
  32098. /***/ }),
  32099. /***/ "./node_modules/lodash/_coreJsData.js":
  32100. /*!********************************************!*\
  32101. !*** ./node_modules/lodash/_coreJsData.js ***!
  32102. \********************************************/
  32103. /*! no static exports found */
  32104. /***/ (function(module, exports, __webpack_require__) {
  32105. var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  32106. /** Used to detect overreaching core-js shims. */
  32107. var coreJsData = root['__core-js_shared__'];
  32108. module.exports = coreJsData;
  32109. /***/ }),
  32110. /***/ "./node_modules/lodash/_createAssigner.js":
  32111. /*!************************************************!*\
  32112. !*** ./node_modules/lodash/_createAssigner.js ***!
  32113. \************************************************/
  32114. /*! no static exports found */
  32115. /***/ (function(module, exports, __webpack_require__) {
  32116. var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
  32117. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");
  32118. /**
  32119. * Creates a function like `_.assign`.
  32120. *
  32121. * @private
  32122. * @param {Function} assigner The function to assign values.
  32123. * @returns {Function} Returns the new assigner function.
  32124. */
  32125. function createAssigner(assigner) {
  32126. return baseRest(function(object, sources) {
  32127. var index = -1,
  32128. length = sources.length,
  32129. customizer = length > 1 ? sources[length - 1] : undefined,
  32130. guard = length > 2 ? sources[2] : undefined;
  32131. customizer = (assigner.length > 3 && typeof customizer == 'function')
  32132. ? (length--, customizer)
  32133. : undefined;
  32134. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  32135. customizer = length < 3 ? undefined : customizer;
  32136. length = 1;
  32137. }
  32138. object = Object(object);
  32139. while (++index < length) {
  32140. var source = sources[index];
  32141. if (source) {
  32142. assigner(object, source, index, customizer);
  32143. }
  32144. }
  32145. return object;
  32146. });
  32147. }
  32148. module.exports = createAssigner;
  32149. /***/ }),
  32150. /***/ "./node_modules/lodash/_createBaseEach.js":
  32151. /*!************************************************!*\
  32152. !*** ./node_modules/lodash/_createBaseEach.js ***!
  32153. \************************************************/
  32154. /*! no static exports found */
  32155. /***/ (function(module, exports, __webpack_require__) {
  32156. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
  32157. /**
  32158. * Creates a `baseEach` or `baseEachRight` function.
  32159. *
  32160. * @private
  32161. * @param {Function} eachFunc The function to iterate over a collection.
  32162. * @param {boolean} [fromRight] Specify iterating from right to left.
  32163. * @returns {Function} Returns the new base function.
  32164. */
  32165. function createBaseEach(eachFunc, fromRight) {
  32166. return function(collection, iteratee) {
  32167. if (collection == null) {
  32168. return collection;
  32169. }
  32170. if (!isArrayLike(collection)) {
  32171. return eachFunc(collection, iteratee);
  32172. }
  32173. var length = collection.length,
  32174. index = fromRight ? length : -1,
  32175. iterable = Object(collection);
  32176. while ((fromRight ? index-- : ++index < length)) {
  32177. if (iteratee(iterable[index], index, iterable) === false) {
  32178. break;
  32179. }
  32180. }
  32181. return collection;
  32182. };
  32183. }
  32184. module.exports = createBaseEach;
  32185. /***/ }),
  32186. /***/ "./node_modules/lodash/_createBaseFor.js":
  32187. /*!***********************************************!*\
  32188. !*** ./node_modules/lodash/_createBaseFor.js ***!
  32189. \***********************************************/
  32190. /*! no static exports found */
  32191. /***/ (function(module, exports) {
  32192. /**
  32193. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  32194. *
  32195. * @private
  32196. * @param {boolean} [fromRight] Specify iterating from right to left.
  32197. * @returns {Function} Returns the new base function.
  32198. */
  32199. function createBaseFor(fromRight) {
  32200. return function(object, iteratee, keysFunc) {
  32201. var index = -1,
  32202. iterable = Object(object),
  32203. props = keysFunc(object),
  32204. length = props.length;
  32205. while (length--) {
  32206. var key = props[fromRight ? length : ++index];
  32207. if (iteratee(iterable[key], key, iterable) === false) {
  32208. break;
  32209. }
  32210. }
  32211. return object;
  32212. };
  32213. }
  32214. module.exports = createBaseFor;
  32215. /***/ }),
  32216. /***/ "./node_modules/lodash/_createFind.js":
  32217. /*!********************************************!*\
  32218. !*** ./node_modules/lodash/_createFind.js ***!
  32219. \********************************************/
  32220. /*! no static exports found */
  32221. /***/ (function(module, exports, __webpack_require__) {
  32222. var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  32223. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
  32224. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  32225. /**
  32226. * Creates a `_.find` or `_.findLast` function.
  32227. *
  32228. * @private
  32229. * @param {Function} findIndexFunc The function to find the collection index.
  32230. * @returns {Function} Returns the new find function.
  32231. */
  32232. function createFind(findIndexFunc) {
  32233. return function(collection, predicate, fromIndex) {
  32234. var iterable = Object(collection);
  32235. if (!isArrayLike(collection)) {
  32236. var iteratee = baseIteratee(predicate, 3);
  32237. collection = keys(collection);
  32238. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  32239. }
  32240. var index = findIndexFunc(collection, predicate, fromIndex);
  32241. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  32242. };
  32243. }
  32244. module.exports = createFind;
  32245. /***/ }),
  32246. /***/ "./node_modules/lodash/_createRange.js":
  32247. /*!*********************************************!*\
  32248. !*** ./node_modules/lodash/_createRange.js ***!
  32249. \*********************************************/
  32250. /*! no static exports found */
  32251. /***/ (function(module, exports, __webpack_require__) {
  32252. var baseRange = __webpack_require__(/*! ./_baseRange */ "./node_modules/lodash/_baseRange.js"),
  32253. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js"),
  32254. toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");
  32255. /**
  32256. * Creates a `_.range` or `_.rangeRight` function.
  32257. *
  32258. * @private
  32259. * @param {boolean} [fromRight] Specify iterating from right to left.
  32260. * @returns {Function} Returns the new range function.
  32261. */
  32262. function createRange(fromRight) {
  32263. return function(start, end, step) {
  32264. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  32265. end = step = undefined;
  32266. }
  32267. // Ensure the sign of `-0` is preserved.
  32268. start = toFinite(start);
  32269. if (end === undefined) {
  32270. end = start;
  32271. start = 0;
  32272. } else {
  32273. end = toFinite(end);
  32274. }
  32275. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  32276. return baseRange(start, end, step, fromRight);
  32277. };
  32278. }
  32279. module.exports = createRange;
  32280. /***/ }),
  32281. /***/ "./node_modules/lodash/_createSet.js":
  32282. /*!*******************************************!*\
  32283. !*** ./node_modules/lodash/_createSet.js ***!
  32284. \*******************************************/
  32285. /*! no static exports found */
  32286. /***/ (function(module, exports, __webpack_require__) {
  32287. var Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
  32288. noop = __webpack_require__(/*! ./noop */ "./node_modules/lodash/noop.js"),
  32289. setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
  32290. /** Used as references for various `Number` constants. */
  32291. var INFINITY = 1 / 0;
  32292. /**
  32293. * Creates a set object of `values`.
  32294. *
  32295. * @private
  32296. * @param {Array} values The values to add to the set.
  32297. * @returns {Object} Returns the new set.
  32298. */
  32299. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  32300. return new Set(values);
  32301. };
  32302. module.exports = createSet;
  32303. /***/ }),
  32304. /***/ "./node_modules/lodash/_defineProperty.js":
  32305. /*!************************************************!*\
  32306. !*** ./node_modules/lodash/_defineProperty.js ***!
  32307. \************************************************/
  32308. /*! no static exports found */
  32309. /***/ (function(module, exports, __webpack_require__) {
  32310. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
  32311. var defineProperty = (function() {
  32312. try {
  32313. var func = getNative(Object, 'defineProperty');
  32314. func({}, '', {});
  32315. return func;
  32316. } catch (e) {}
  32317. }());
  32318. module.exports = defineProperty;
  32319. /***/ }),
  32320. /***/ "./node_modules/lodash/_equalArrays.js":
  32321. /*!*********************************************!*\
  32322. !*** ./node_modules/lodash/_equalArrays.js ***!
  32323. \*********************************************/
  32324. /*! no static exports found */
  32325. /***/ (function(module, exports, __webpack_require__) {
  32326. var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
  32327. arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
  32328. cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js");
  32329. /** Used to compose bitmasks for value comparisons. */
  32330. var COMPARE_PARTIAL_FLAG = 1,
  32331. COMPARE_UNORDERED_FLAG = 2;
  32332. /**
  32333. * A specialized version of `baseIsEqualDeep` for arrays with support for
  32334. * partial deep comparisons.
  32335. *
  32336. * @private
  32337. * @param {Array} array The array to compare.
  32338. * @param {Array} other The other array to compare.
  32339. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  32340. * @param {Function} customizer The function to customize comparisons.
  32341. * @param {Function} equalFunc The function to determine equivalents of values.
  32342. * @param {Object} stack Tracks traversed `array` and `other` objects.
  32343. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  32344. */
  32345. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  32346. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  32347. arrLength = array.length,
  32348. othLength = other.length;
  32349. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  32350. return false;
  32351. }
  32352. // Assume cyclic values are equal.
  32353. var stacked = stack.get(array);
  32354. if (stacked && stack.get(other)) {
  32355. return stacked == other;
  32356. }
  32357. var index = -1,
  32358. result = true,
  32359. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  32360. stack.set(array, other);
  32361. stack.set(other, array);
  32362. // Ignore non-index properties.
  32363. while (++index < arrLength) {
  32364. var arrValue = array[index],
  32365. othValue = other[index];
  32366. if (customizer) {
  32367. var compared = isPartial
  32368. ? customizer(othValue, arrValue, index, other, array, stack)
  32369. : customizer(arrValue, othValue, index, array, other, stack);
  32370. }
  32371. if (compared !== undefined) {
  32372. if (compared) {
  32373. continue;
  32374. }
  32375. result = false;
  32376. break;
  32377. }
  32378. // Recursively compare arrays (susceptible to call stack limits).
  32379. if (seen) {
  32380. if (!arraySome(other, function(othValue, othIndex) {
  32381. if (!cacheHas(seen, othIndex) &&
  32382. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  32383. return seen.push(othIndex);
  32384. }
  32385. })) {
  32386. result = false;
  32387. break;
  32388. }
  32389. } else if (!(
  32390. arrValue === othValue ||
  32391. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  32392. )) {
  32393. result = false;
  32394. break;
  32395. }
  32396. }
  32397. stack['delete'](array);
  32398. stack['delete'](other);
  32399. return result;
  32400. }
  32401. module.exports = equalArrays;
  32402. /***/ }),
  32403. /***/ "./node_modules/lodash/_equalByTag.js":
  32404. /*!********************************************!*\
  32405. !*** ./node_modules/lodash/_equalByTag.js ***!
  32406. \********************************************/
  32407. /*! no static exports found */
  32408. /***/ (function(module, exports, __webpack_require__) {
  32409. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  32410. Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js"),
  32411. eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
  32412. equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
  32413. mapToArray = __webpack_require__(/*! ./_mapToArray */ "./node_modules/lodash/_mapToArray.js"),
  32414. setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
  32415. /** Used to compose bitmasks for value comparisons. */
  32416. var COMPARE_PARTIAL_FLAG = 1,
  32417. COMPARE_UNORDERED_FLAG = 2;
  32418. /** `Object#toString` result references. */
  32419. var boolTag = '[object Boolean]',
  32420. dateTag = '[object Date]',
  32421. errorTag = '[object Error]',
  32422. mapTag = '[object Map]',
  32423. numberTag = '[object Number]',
  32424. regexpTag = '[object RegExp]',
  32425. setTag = '[object Set]',
  32426. stringTag = '[object String]',
  32427. symbolTag = '[object Symbol]';
  32428. var arrayBufferTag = '[object ArrayBuffer]',
  32429. dataViewTag = '[object DataView]';
  32430. /** Used to convert symbols to primitives and strings. */
  32431. var symbolProto = Symbol ? Symbol.prototype : undefined,
  32432. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  32433. /**
  32434. * A specialized version of `baseIsEqualDeep` for comparing objects of
  32435. * the same `toStringTag`.
  32436. *
  32437. * **Note:** This function only supports comparing values with tags of
  32438. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  32439. *
  32440. * @private
  32441. * @param {Object} object The object to compare.
  32442. * @param {Object} other The other object to compare.
  32443. * @param {string} tag The `toStringTag` of the objects to compare.
  32444. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  32445. * @param {Function} customizer The function to customize comparisons.
  32446. * @param {Function} equalFunc The function to determine equivalents of values.
  32447. * @param {Object} stack Tracks traversed `object` and `other` objects.
  32448. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  32449. */
  32450. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  32451. switch (tag) {
  32452. case dataViewTag:
  32453. if ((object.byteLength != other.byteLength) ||
  32454. (object.byteOffset != other.byteOffset)) {
  32455. return false;
  32456. }
  32457. object = object.buffer;
  32458. other = other.buffer;
  32459. case arrayBufferTag:
  32460. if ((object.byteLength != other.byteLength) ||
  32461. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  32462. return false;
  32463. }
  32464. return true;
  32465. case boolTag:
  32466. case dateTag:
  32467. case numberTag:
  32468. // Coerce booleans to `1` or `0` and dates to milliseconds.
  32469. // Invalid dates are coerced to `NaN`.
  32470. return eq(+object, +other);
  32471. case errorTag:
  32472. return object.name == other.name && object.message == other.message;
  32473. case regexpTag:
  32474. case stringTag:
  32475. // Coerce regexes to strings and treat strings, primitives and objects,
  32476. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  32477. // for more details.
  32478. return object == (other + '');
  32479. case mapTag:
  32480. var convert = mapToArray;
  32481. case setTag:
  32482. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  32483. convert || (convert = setToArray);
  32484. if (object.size != other.size && !isPartial) {
  32485. return false;
  32486. }
  32487. // Assume cyclic values are equal.
  32488. var stacked = stack.get(object);
  32489. if (stacked) {
  32490. return stacked == other;
  32491. }
  32492. bitmask |= COMPARE_UNORDERED_FLAG;
  32493. // Recursively compare objects (susceptible to call stack limits).
  32494. stack.set(object, other);
  32495. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  32496. stack['delete'](object);
  32497. return result;
  32498. case symbolTag:
  32499. if (symbolValueOf) {
  32500. return symbolValueOf.call(object) == symbolValueOf.call(other);
  32501. }
  32502. }
  32503. return false;
  32504. }
  32505. module.exports = equalByTag;
  32506. /***/ }),
  32507. /***/ "./node_modules/lodash/_equalObjects.js":
  32508. /*!**********************************************!*\
  32509. !*** ./node_modules/lodash/_equalObjects.js ***!
  32510. \**********************************************/
  32511. /*! no static exports found */
  32512. /***/ (function(module, exports, __webpack_require__) {
  32513. var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js");
  32514. /** Used to compose bitmasks for value comparisons. */
  32515. var COMPARE_PARTIAL_FLAG = 1;
  32516. /** Used for built-in method references. */
  32517. var objectProto = Object.prototype;
  32518. /** Used to check objects for own properties. */
  32519. var hasOwnProperty = objectProto.hasOwnProperty;
  32520. /**
  32521. * A specialized version of `baseIsEqualDeep` for objects with support for
  32522. * partial deep comparisons.
  32523. *
  32524. * @private
  32525. * @param {Object} object The object to compare.
  32526. * @param {Object} other The other object to compare.
  32527. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  32528. * @param {Function} customizer The function to customize comparisons.
  32529. * @param {Function} equalFunc The function to determine equivalents of values.
  32530. * @param {Object} stack Tracks traversed `object` and `other` objects.
  32531. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  32532. */
  32533. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  32534. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  32535. objProps = getAllKeys(object),
  32536. objLength = objProps.length,
  32537. othProps = getAllKeys(other),
  32538. othLength = othProps.length;
  32539. if (objLength != othLength && !isPartial) {
  32540. return false;
  32541. }
  32542. var index = objLength;
  32543. while (index--) {
  32544. var key = objProps[index];
  32545. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  32546. return false;
  32547. }
  32548. }
  32549. // Assume cyclic values are equal.
  32550. var stacked = stack.get(object);
  32551. if (stacked && stack.get(other)) {
  32552. return stacked == other;
  32553. }
  32554. var result = true;
  32555. stack.set(object, other);
  32556. stack.set(other, object);
  32557. var skipCtor = isPartial;
  32558. while (++index < objLength) {
  32559. key = objProps[index];
  32560. var objValue = object[key],
  32561. othValue = other[key];
  32562. if (customizer) {
  32563. var compared = isPartial
  32564. ? customizer(othValue, objValue, key, other, object, stack)
  32565. : customizer(objValue, othValue, key, object, other, stack);
  32566. }
  32567. // Recursively compare objects (susceptible to call stack limits).
  32568. if (!(compared === undefined
  32569. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  32570. : compared
  32571. )) {
  32572. result = false;
  32573. break;
  32574. }
  32575. skipCtor || (skipCtor = key == 'constructor');
  32576. }
  32577. if (result && !skipCtor) {
  32578. var objCtor = object.constructor,
  32579. othCtor = other.constructor;
  32580. // Non `Object` object instances with different constructors are not equal.
  32581. if (objCtor != othCtor &&
  32582. ('constructor' in object && 'constructor' in other) &&
  32583. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  32584. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  32585. result = false;
  32586. }
  32587. }
  32588. stack['delete'](object);
  32589. stack['delete'](other);
  32590. return result;
  32591. }
  32592. module.exports = equalObjects;
  32593. /***/ }),
  32594. /***/ "./node_modules/lodash/_flatRest.js":
  32595. /*!******************************************!*\
  32596. !*** ./node_modules/lodash/_flatRest.js ***!
  32597. \******************************************/
  32598. /*! no static exports found */
  32599. /***/ (function(module, exports, __webpack_require__) {
  32600. var flatten = __webpack_require__(/*! ./flatten */ "./node_modules/lodash/flatten.js"),
  32601. overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
  32602. setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
  32603. /**
  32604. * A specialized version of `baseRest` which flattens the rest array.
  32605. *
  32606. * @private
  32607. * @param {Function} func The function to apply a rest parameter to.
  32608. * @returns {Function} Returns the new function.
  32609. */
  32610. function flatRest(func) {
  32611. return setToString(overRest(func, undefined, flatten), func + '');
  32612. }
  32613. module.exports = flatRest;
  32614. /***/ }),
  32615. /***/ "./node_modules/lodash/_freeGlobal.js":
  32616. /*!********************************************!*\
  32617. !*** ./node_modules/lodash/_freeGlobal.js ***!
  32618. \********************************************/
  32619. /*! no static exports found */
  32620. /***/ (function(module, exports, __webpack_require__) {
  32621. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  32622. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  32623. module.exports = freeGlobal;
  32624. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  32625. /***/ }),
  32626. /***/ "./node_modules/lodash/_getAllKeys.js":
  32627. /*!********************************************!*\
  32628. !*** ./node_modules/lodash/_getAllKeys.js ***!
  32629. \********************************************/
  32630. /*! no static exports found */
  32631. /***/ (function(module, exports, __webpack_require__) {
  32632. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
  32633. getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
  32634. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  32635. /**
  32636. * Creates an array of own enumerable property names and symbols of `object`.
  32637. *
  32638. * @private
  32639. * @param {Object} object The object to query.
  32640. * @returns {Array} Returns the array of property names and symbols.
  32641. */
  32642. function getAllKeys(object) {
  32643. return baseGetAllKeys(object, keys, getSymbols);
  32644. }
  32645. module.exports = getAllKeys;
  32646. /***/ }),
  32647. /***/ "./node_modules/lodash/_getAllKeysIn.js":
  32648. /*!**********************************************!*\
  32649. !*** ./node_modules/lodash/_getAllKeysIn.js ***!
  32650. \**********************************************/
  32651. /*! no static exports found */
  32652. /***/ (function(module, exports, __webpack_require__) {
  32653. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
  32654. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js"),
  32655. keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
  32656. /**
  32657. * Creates an array of own and inherited enumerable property names and
  32658. * symbols of `object`.
  32659. *
  32660. * @private
  32661. * @param {Object} object The object to query.
  32662. * @returns {Array} Returns the array of property names and symbols.
  32663. */
  32664. function getAllKeysIn(object) {
  32665. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  32666. }
  32667. module.exports = getAllKeysIn;
  32668. /***/ }),
  32669. /***/ "./node_modules/lodash/_getMapData.js":
  32670. /*!********************************************!*\
  32671. !*** ./node_modules/lodash/_getMapData.js ***!
  32672. \********************************************/
  32673. /*! no static exports found */
  32674. /***/ (function(module, exports, __webpack_require__) {
  32675. var isKeyable = __webpack_require__(/*! ./_isKeyable */ "./node_modules/lodash/_isKeyable.js");
  32676. /**
  32677. * Gets the data for `map`.
  32678. *
  32679. * @private
  32680. * @param {Object} map The map to query.
  32681. * @param {string} key The reference key.
  32682. * @returns {*} Returns the map data.
  32683. */
  32684. function getMapData(map, key) {
  32685. var data = map.__data__;
  32686. return isKeyable(key)
  32687. ? data[typeof key == 'string' ? 'string' : 'hash']
  32688. : data.map;
  32689. }
  32690. module.exports = getMapData;
  32691. /***/ }),
  32692. /***/ "./node_modules/lodash/_getMatchData.js":
  32693. /*!**********************************************!*\
  32694. !*** ./node_modules/lodash/_getMatchData.js ***!
  32695. \**********************************************/
  32696. /*! no static exports found */
  32697. /***/ (function(module, exports, __webpack_require__) {
  32698. var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
  32699. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  32700. /**
  32701. * Gets the property names, values, and compare flags of `object`.
  32702. *
  32703. * @private
  32704. * @param {Object} object The object to query.
  32705. * @returns {Array} Returns the match data of `object`.
  32706. */
  32707. function getMatchData(object) {
  32708. var result = keys(object),
  32709. length = result.length;
  32710. while (length--) {
  32711. var key = result[length],
  32712. value = object[key];
  32713. result[length] = [key, value, isStrictComparable(value)];
  32714. }
  32715. return result;
  32716. }
  32717. module.exports = getMatchData;
  32718. /***/ }),
  32719. /***/ "./node_modules/lodash/_getNative.js":
  32720. /*!*******************************************!*\
  32721. !*** ./node_modules/lodash/_getNative.js ***!
  32722. \*******************************************/
  32723. /*! no static exports found */
  32724. /***/ (function(module, exports, __webpack_require__) {
  32725. var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "./node_modules/lodash/_baseIsNative.js"),
  32726. getValue = __webpack_require__(/*! ./_getValue */ "./node_modules/lodash/_getValue.js");
  32727. /**
  32728. * Gets the native function at `key` of `object`.
  32729. *
  32730. * @private
  32731. * @param {Object} object The object to query.
  32732. * @param {string} key The key of the method to get.
  32733. * @returns {*} Returns the function if it's native, else `undefined`.
  32734. */
  32735. function getNative(object, key) {
  32736. var value = getValue(object, key);
  32737. return baseIsNative(value) ? value : undefined;
  32738. }
  32739. module.exports = getNative;
  32740. /***/ }),
  32741. /***/ "./node_modules/lodash/_getPrototype.js":
  32742. /*!**********************************************!*\
  32743. !*** ./node_modules/lodash/_getPrototype.js ***!
  32744. \**********************************************/
  32745. /*! no static exports found */
  32746. /***/ (function(module, exports, __webpack_require__) {
  32747. var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
  32748. /** Built-in value references. */
  32749. var getPrototype = overArg(Object.getPrototypeOf, Object);
  32750. module.exports = getPrototype;
  32751. /***/ }),
  32752. /***/ "./node_modules/lodash/_getRawTag.js":
  32753. /*!*******************************************!*\
  32754. !*** ./node_modules/lodash/_getRawTag.js ***!
  32755. \*******************************************/
  32756. /*! no static exports found */
  32757. /***/ (function(module, exports, __webpack_require__) {
  32758. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
  32759. /** Used for built-in method references. */
  32760. var objectProto = Object.prototype;
  32761. /** Used to check objects for own properties. */
  32762. var hasOwnProperty = objectProto.hasOwnProperty;
  32763. /**
  32764. * Used to resolve the
  32765. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  32766. * of values.
  32767. */
  32768. var nativeObjectToString = objectProto.toString;
  32769. /** Built-in value references. */
  32770. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  32771. /**
  32772. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  32773. *
  32774. * @private
  32775. * @param {*} value The value to query.
  32776. * @returns {string} Returns the raw `toStringTag`.
  32777. */
  32778. function getRawTag(value) {
  32779. var isOwn = hasOwnProperty.call(value, symToStringTag),
  32780. tag = value[symToStringTag];
  32781. try {
  32782. value[symToStringTag] = undefined;
  32783. var unmasked = true;
  32784. } catch (e) {}
  32785. var result = nativeObjectToString.call(value);
  32786. if (unmasked) {
  32787. if (isOwn) {
  32788. value[symToStringTag] = tag;
  32789. } else {
  32790. delete value[symToStringTag];
  32791. }
  32792. }
  32793. return result;
  32794. }
  32795. module.exports = getRawTag;
  32796. /***/ }),
  32797. /***/ "./node_modules/lodash/_getSymbols.js":
  32798. /*!********************************************!*\
  32799. !*** ./node_modules/lodash/_getSymbols.js ***!
  32800. \********************************************/
  32801. /*! no static exports found */
  32802. /***/ (function(module, exports, __webpack_require__) {
  32803. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
  32804. stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
  32805. /** Used for built-in method references. */
  32806. var objectProto = Object.prototype;
  32807. /** Built-in value references. */
  32808. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  32809. /* Built-in method references for those with the same name as other `lodash` methods. */
  32810. var nativeGetSymbols = Object.getOwnPropertySymbols;
  32811. /**
  32812. * Creates an array of the own enumerable symbols of `object`.
  32813. *
  32814. * @private
  32815. * @param {Object} object The object to query.
  32816. * @returns {Array} Returns the array of symbols.
  32817. */
  32818. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  32819. if (object == null) {
  32820. return [];
  32821. }
  32822. object = Object(object);
  32823. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  32824. return propertyIsEnumerable.call(object, symbol);
  32825. });
  32826. };
  32827. module.exports = getSymbols;
  32828. /***/ }),
  32829. /***/ "./node_modules/lodash/_getSymbolsIn.js":
  32830. /*!**********************************************!*\
  32831. !*** ./node_modules/lodash/_getSymbolsIn.js ***!
  32832. \**********************************************/
  32833. /*! no static exports found */
  32834. /***/ (function(module, exports, __webpack_require__) {
  32835. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
  32836. getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
  32837. getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
  32838. stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
  32839. /* Built-in method references for those with the same name as other `lodash` methods. */
  32840. var nativeGetSymbols = Object.getOwnPropertySymbols;
  32841. /**
  32842. * Creates an array of the own and inherited enumerable symbols of `object`.
  32843. *
  32844. * @private
  32845. * @param {Object} object The object to query.
  32846. * @returns {Array} Returns the array of symbols.
  32847. */
  32848. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  32849. var result = [];
  32850. while (object) {
  32851. arrayPush(result, getSymbols(object));
  32852. object = getPrototype(object);
  32853. }
  32854. return result;
  32855. };
  32856. module.exports = getSymbolsIn;
  32857. /***/ }),
  32858. /***/ "./node_modules/lodash/_getTag.js":
  32859. /*!****************************************!*\
  32860. !*** ./node_modules/lodash/_getTag.js ***!
  32861. \****************************************/
  32862. /*! no static exports found */
  32863. /***/ (function(module, exports, __webpack_require__) {
  32864. var DataView = __webpack_require__(/*! ./_DataView */ "./node_modules/lodash/_DataView.js"),
  32865. Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
  32866. Promise = __webpack_require__(/*! ./_Promise */ "./node_modules/lodash/_Promise.js"),
  32867. Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
  32868. WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js"),
  32869. baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  32870. toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
  32871. /** `Object#toString` result references. */
  32872. var mapTag = '[object Map]',
  32873. objectTag = '[object Object]',
  32874. promiseTag = '[object Promise]',
  32875. setTag = '[object Set]',
  32876. weakMapTag = '[object WeakMap]';
  32877. var dataViewTag = '[object DataView]';
  32878. /** Used to detect maps, sets, and weakmaps. */
  32879. var dataViewCtorString = toSource(DataView),
  32880. mapCtorString = toSource(Map),
  32881. promiseCtorString = toSource(Promise),
  32882. setCtorString = toSource(Set),
  32883. weakMapCtorString = toSource(WeakMap);
  32884. /**
  32885. * Gets the `toStringTag` of `value`.
  32886. *
  32887. * @private
  32888. * @param {*} value The value to query.
  32889. * @returns {string} Returns the `toStringTag`.
  32890. */
  32891. var getTag = baseGetTag;
  32892. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  32893. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  32894. (Map && getTag(new Map) != mapTag) ||
  32895. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  32896. (Set && getTag(new Set) != setTag) ||
  32897. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  32898. getTag = function(value) {
  32899. var result = baseGetTag(value),
  32900. Ctor = result == objectTag ? value.constructor : undefined,
  32901. ctorString = Ctor ? toSource(Ctor) : '';
  32902. if (ctorString) {
  32903. switch (ctorString) {
  32904. case dataViewCtorString: return dataViewTag;
  32905. case mapCtorString: return mapTag;
  32906. case promiseCtorString: return promiseTag;
  32907. case setCtorString: return setTag;
  32908. case weakMapCtorString: return weakMapTag;
  32909. }
  32910. }
  32911. return result;
  32912. };
  32913. }
  32914. module.exports = getTag;
  32915. /***/ }),
  32916. /***/ "./node_modules/lodash/_getValue.js":
  32917. /*!******************************************!*\
  32918. !*** ./node_modules/lodash/_getValue.js ***!
  32919. \******************************************/
  32920. /*! no static exports found */
  32921. /***/ (function(module, exports) {
  32922. /**
  32923. * Gets the value at `key` of `object`.
  32924. *
  32925. * @private
  32926. * @param {Object} [object] The object to query.
  32927. * @param {string} key The key of the property to get.
  32928. * @returns {*} Returns the property value.
  32929. */
  32930. function getValue(object, key) {
  32931. return object == null ? undefined : object[key];
  32932. }
  32933. module.exports = getValue;
  32934. /***/ }),
  32935. /***/ "./node_modules/lodash/_hasPath.js":
  32936. /*!*****************************************!*\
  32937. !*** ./node_modules/lodash/_hasPath.js ***!
  32938. \*****************************************/
  32939. /*! no static exports found */
  32940. /***/ (function(module, exports, __webpack_require__) {
  32941. var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
  32942. isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
  32943. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  32944. isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
  32945. isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
  32946. toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
  32947. /**
  32948. * Checks if `path` exists on `object`.
  32949. *
  32950. * @private
  32951. * @param {Object} object The object to query.
  32952. * @param {Array|string} path The path to check.
  32953. * @param {Function} hasFunc The function to check properties.
  32954. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  32955. */
  32956. function hasPath(object, path, hasFunc) {
  32957. path = castPath(path, object);
  32958. var index = -1,
  32959. length = path.length,
  32960. result = false;
  32961. while (++index < length) {
  32962. var key = toKey(path[index]);
  32963. if (!(result = object != null && hasFunc(object, key))) {
  32964. break;
  32965. }
  32966. object = object[key];
  32967. }
  32968. if (result || ++index != length) {
  32969. return result;
  32970. }
  32971. length = object == null ? 0 : object.length;
  32972. return !!length && isLength(length) && isIndex(key, length) &&
  32973. (isArray(object) || isArguments(object));
  32974. }
  32975. module.exports = hasPath;
  32976. /***/ }),
  32977. /***/ "./node_modules/lodash/_hasUnicode.js":
  32978. /*!********************************************!*\
  32979. !*** ./node_modules/lodash/_hasUnicode.js ***!
  32980. \********************************************/
  32981. /*! no static exports found */
  32982. /***/ (function(module, exports) {
  32983. /** Used to compose unicode character classes. */
  32984. var rsAstralRange = '\\ud800-\\udfff',
  32985. rsComboMarksRange = '\\u0300-\\u036f',
  32986. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  32987. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  32988. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  32989. rsVarRange = '\\ufe0e\\ufe0f';
  32990. /** Used to compose unicode capture groups. */
  32991. var rsZWJ = '\\u200d';
  32992. /** 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/). */
  32993. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  32994. /**
  32995. * Checks if `string` contains Unicode symbols.
  32996. *
  32997. * @private
  32998. * @param {string} string The string to inspect.
  32999. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  33000. */
  33001. function hasUnicode(string) {
  33002. return reHasUnicode.test(string);
  33003. }
  33004. module.exports = hasUnicode;
  33005. /***/ }),
  33006. /***/ "./node_modules/lodash/_hashClear.js":
  33007. /*!*******************************************!*\
  33008. !*** ./node_modules/lodash/_hashClear.js ***!
  33009. \*******************************************/
  33010. /*! no static exports found */
  33011. /***/ (function(module, exports, __webpack_require__) {
  33012. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
  33013. /**
  33014. * Removes all key-value entries from the hash.
  33015. *
  33016. * @private
  33017. * @name clear
  33018. * @memberOf Hash
  33019. */
  33020. function hashClear() {
  33021. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  33022. this.size = 0;
  33023. }
  33024. module.exports = hashClear;
  33025. /***/ }),
  33026. /***/ "./node_modules/lodash/_hashDelete.js":
  33027. /*!********************************************!*\
  33028. !*** ./node_modules/lodash/_hashDelete.js ***!
  33029. \********************************************/
  33030. /*! no static exports found */
  33031. /***/ (function(module, exports) {
  33032. /**
  33033. * Removes `key` and its value from the hash.
  33034. *
  33035. * @private
  33036. * @name delete
  33037. * @memberOf Hash
  33038. * @param {Object} hash The hash to modify.
  33039. * @param {string} key The key of the value to remove.
  33040. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  33041. */
  33042. function hashDelete(key) {
  33043. var result = this.has(key) && delete this.__data__[key];
  33044. this.size -= result ? 1 : 0;
  33045. return result;
  33046. }
  33047. module.exports = hashDelete;
  33048. /***/ }),
  33049. /***/ "./node_modules/lodash/_hashGet.js":
  33050. /*!*****************************************!*\
  33051. !*** ./node_modules/lodash/_hashGet.js ***!
  33052. \*****************************************/
  33053. /*! no static exports found */
  33054. /***/ (function(module, exports, __webpack_require__) {
  33055. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
  33056. /** Used to stand-in for `undefined` hash values. */
  33057. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  33058. /** Used for built-in method references. */
  33059. var objectProto = Object.prototype;
  33060. /** Used to check objects for own properties. */
  33061. var hasOwnProperty = objectProto.hasOwnProperty;
  33062. /**
  33063. * Gets the hash value for `key`.
  33064. *
  33065. * @private
  33066. * @name get
  33067. * @memberOf Hash
  33068. * @param {string} key The key of the value to get.
  33069. * @returns {*} Returns the entry value.
  33070. */
  33071. function hashGet(key) {
  33072. var data = this.__data__;
  33073. if (nativeCreate) {
  33074. var result = data[key];
  33075. return result === HASH_UNDEFINED ? undefined : result;
  33076. }
  33077. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  33078. }
  33079. module.exports = hashGet;
  33080. /***/ }),
  33081. /***/ "./node_modules/lodash/_hashHas.js":
  33082. /*!*****************************************!*\
  33083. !*** ./node_modules/lodash/_hashHas.js ***!
  33084. \*****************************************/
  33085. /*! no static exports found */
  33086. /***/ (function(module, exports, __webpack_require__) {
  33087. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
  33088. /** Used for built-in method references. */
  33089. var objectProto = Object.prototype;
  33090. /** Used to check objects for own properties. */
  33091. var hasOwnProperty = objectProto.hasOwnProperty;
  33092. /**
  33093. * Checks if a hash value for `key` exists.
  33094. *
  33095. * @private
  33096. * @name has
  33097. * @memberOf Hash
  33098. * @param {string} key The key of the entry to check.
  33099. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  33100. */
  33101. function hashHas(key) {
  33102. var data = this.__data__;
  33103. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  33104. }
  33105. module.exports = hashHas;
  33106. /***/ }),
  33107. /***/ "./node_modules/lodash/_hashSet.js":
  33108. /*!*****************************************!*\
  33109. !*** ./node_modules/lodash/_hashSet.js ***!
  33110. \*****************************************/
  33111. /*! no static exports found */
  33112. /***/ (function(module, exports, __webpack_require__) {
  33113. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
  33114. /** Used to stand-in for `undefined` hash values. */
  33115. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  33116. /**
  33117. * Sets the hash `key` to `value`.
  33118. *
  33119. * @private
  33120. * @name set
  33121. * @memberOf Hash
  33122. * @param {string} key The key of the value to set.
  33123. * @param {*} value The value to set.
  33124. * @returns {Object} Returns the hash instance.
  33125. */
  33126. function hashSet(key, value) {
  33127. var data = this.__data__;
  33128. this.size += this.has(key) ? 0 : 1;
  33129. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  33130. return this;
  33131. }
  33132. module.exports = hashSet;
  33133. /***/ }),
  33134. /***/ "./node_modules/lodash/_initCloneArray.js":
  33135. /*!************************************************!*\
  33136. !*** ./node_modules/lodash/_initCloneArray.js ***!
  33137. \************************************************/
  33138. /*! no static exports found */
  33139. /***/ (function(module, exports) {
  33140. /** Used for built-in method references. */
  33141. var objectProto = Object.prototype;
  33142. /** Used to check objects for own properties. */
  33143. var hasOwnProperty = objectProto.hasOwnProperty;
  33144. /**
  33145. * Initializes an array clone.
  33146. *
  33147. * @private
  33148. * @param {Array} array The array to clone.
  33149. * @returns {Array} Returns the initialized clone.
  33150. */
  33151. function initCloneArray(array) {
  33152. var length = array.length,
  33153. result = new array.constructor(length);
  33154. // Add properties assigned by `RegExp#exec`.
  33155. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  33156. result.index = array.index;
  33157. result.input = array.input;
  33158. }
  33159. return result;
  33160. }
  33161. module.exports = initCloneArray;
  33162. /***/ }),
  33163. /***/ "./node_modules/lodash/_initCloneByTag.js":
  33164. /*!************************************************!*\
  33165. !*** ./node_modules/lodash/_initCloneByTag.js ***!
  33166. \************************************************/
  33167. /*! no static exports found */
  33168. /***/ (function(module, exports, __webpack_require__) {
  33169. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js"),
  33170. cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "./node_modules/lodash/_cloneDataView.js"),
  33171. cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "./node_modules/lodash/_cloneRegExp.js"),
  33172. cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "./node_modules/lodash/_cloneSymbol.js"),
  33173. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js");
  33174. /** `Object#toString` result references. */
  33175. var boolTag = '[object Boolean]',
  33176. dateTag = '[object Date]',
  33177. mapTag = '[object Map]',
  33178. numberTag = '[object Number]',
  33179. regexpTag = '[object RegExp]',
  33180. setTag = '[object Set]',
  33181. stringTag = '[object String]',
  33182. symbolTag = '[object Symbol]';
  33183. var arrayBufferTag = '[object ArrayBuffer]',
  33184. dataViewTag = '[object DataView]',
  33185. float32Tag = '[object Float32Array]',
  33186. float64Tag = '[object Float64Array]',
  33187. int8Tag = '[object Int8Array]',
  33188. int16Tag = '[object Int16Array]',
  33189. int32Tag = '[object Int32Array]',
  33190. uint8Tag = '[object Uint8Array]',
  33191. uint8ClampedTag = '[object Uint8ClampedArray]',
  33192. uint16Tag = '[object Uint16Array]',
  33193. uint32Tag = '[object Uint32Array]';
  33194. /**
  33195. * Initializes an object clone based on its `toStringTag`.
  33196. *
  33197. * **Note:** This function only supports cloning values with tags of
  33198. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  33199. *
  33200. * @private
  33201. * @param {Object} object The object to clone.
  33202. * @param {string} tag The `toStringTag` of the object to clone.
  33203. * @param {boolean} [isDeep] Specify a deep clone.
  33204. * @returns {Object} Returns the initialized clone.
  33205. */
  33206. function initCloneByTag(object, tag, isDeep) {
  33207. var Ctor = object.constructor;
  33208. switch (tag) {
  33209. case arrayBufferTag:
  33210. return cloneArrayBuffer(object);
  33211. case boolTag:
  33212. case dateTag:
  33213. return new Ctor(+object);
  33214. case dataViewTag:
  33215. return cloneDataView(object, isDeep);
  33216. case float32Tag: case float64Tag:
  33217. case int8Tag: case int16Tag: case int32Tag:
  33218. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  33219. return cloneTypedArray(object, isDeep);
  33220. case mapTag:
  33221. return new Ctor;
  33222. case numberTag:
  33223. case stringTag:
  33224. return new Ctor(object);
  33225. case regexpTag:
  33226. return cloneRegExp(object);
  33227. case setTag:
  33228. return new Ctor;
  33229. case symbolTag:
  33230. return cloneSymbol(object);
  33231. }
  33232. }
  33233. module.exports = initCloneByTag;
  33234. /***/ }),
  33235. /***/ "./node_modules/lodash/_initCloneObject.js":
  33236. /*!*************************************************!*\
  33237. !*** ./node_modules/lodash/_initCloneObject.js ***!
  33238. \*************************************************/
  33239. /*! no static exports found */
  33240. /***/ (function(module, exports, __webpack_require__) {
  33241. var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
  33242. getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
  33243. isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js");
  33244. /**
  33245. * Initializes an object clone.
  33246. *
  33247. * @private
  33248. * @param {Object} object The object to clone.
  33249. * @returns {Object} Returns the initialized clone.
  33250. */
  33251. function initCloneObject(object) {
  33252. return (typeof object.constructor == 'function' && !isPrototype(object))
  33253. ? baseCreate(getPrototype(object))
  33254. : {};
  33255. }
  33256. module.exports = initCloneObject;
  33257. /***/ }),
  33258. /***/ "./node_modules/lodash/_isFlattenable.js":
  33259. /*!***********************************************!*\
  33260. !*** ./node_modules/lodash/_isFlattenable.js ***!
  33261. \***********************************************/
  33262. /*! no static exports found */
  33263. /***/ (function(module, exports, __webpack_require__) {
  33264. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  33265. isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
  33266. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
  33267. /** Built-in value references. */
  33268. var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
  33269. /**
  33270. * Checks if `value` is a flattenable `arguments` object or array.
  33271. *
  33272. * @private
  33273. * @param {*} value The value to check.
  33274. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  33275. */
  33276. function isFlattenable(value) {
  33277. return isArray(value) || isArguments(value) ||
  33278. !!(spreadableSymbol && value && value[spreadableSymbol]);
  33279. }
  33280. module.exports = isFlattenable;
  33281. /***/ }),
  33282. /***/ "./node_modules/lodash/_isIndex.js":
  33283. /*!*****************************************!*\
  33284. !*** ./node_modules/lodash/_isIndex.js ***!
  33285. \*****************************************/
  33286. /*! no static exports found */
  33287. /***/ (function(module, exports) {
  33288. /** Used as references for various `Number` constants. */
  33289. var MAX_SAFE_INTEGER = 9007199254740991;
  33290. /** Used to detect unsigned integer values. */
  33291. var reIsUint = /^(?:0|[1-9]\d*)$/;
  33292. /**
  33293. * Checks if `value` is a valid array-like index.
  33294. *
  33295. * @private
  33296. * @param {*} value The value to check.
  33297. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  33298. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  33299. */
  33300. function isIndex(value, length) {
  33301. var type = typeof value;
  33302. length = length == null ? MAX_SAFE_INTEGER : length;
  33303. return !!length &&
  33304. (type == 'number' ||
  33305. (type != 'symbol' && reIsUint.test(value))) &&
  33306. (value > -1 && value % 1 == 0 && value < length);
  33307. }
  33308. module.exports = isIndex;
  33309. /***/ }),
  33310. /***/ "./node_modules/lodash/_isIterateeCall.js":
  33311. /*!************************************************!*\
  33312. !*** ./node_modules/lodash/_isIterateeCall.js ***!
  33313. \************************************************/
  33314. /*! no static exports found */
  33315. /***/ (function(module, exports, __webpack_require__) {
  33316. var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
  33317. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
  33318. isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
  33319. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
  33320. /**
  33321. * Checks if the given arguments are from an iteratee call.
  33322. *
  33323. * @private
  33324. * @param {*} value The potential iteratee value argument.
  33325. * @param {*} index The potential iteratee index or key argument.
  33326. * @param {*} object The potential iteratee object argument.
  33327. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  33328. * else `false`.
  33329. */
  33330. function isIterateeCall(value, index, object) {
  33331. if (!isObject(object)) {
  33332. return false;
  33333. }
  33334. var type = typeof index;
  33335. if (type == 'number'
  33336. ? (isArrayLike(object) && isIndex(index, object.length))
  33337. : (type == 'string' && index in object)
  33338. ) {
  33339. return eq(object[index], value);
  33340. }
  33341. return false;
  33342. }
  33343. module.exports = isIterateeCall;
  33344. /***/ }),
  33345. /***/ "./node_modules/lodash/_isKey.js":
  33346. /*!***************************************!*\
  33347. !*** ./node_modules/lodash/_isKey.js ***!
  33348. \***************************************/
  33349. /*! no static exports found */
  33350. /***/ (function(module, exports, __webpack_require__) {
  33351. var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  33352. isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  33353. /** Used to match property names within property paths. */
  33354. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  33355. reIsPlainProp = /^\w*$/;
  33356. /**
  33357. * Checks if `value` is a property name and not a property path.
  33358. *
  33359. * @private
  33360. * @param {*} value The value to check.
  33361. * @param {Object} [object] The object to query keys on.
  33362. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  33363. */
  33364. function isKey(value, object) {
  33365. if (isArray(value)) {
  33366. return false;
  33367. }
  33368. var type = typeof value;
  33369. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  33370. value == null || isSymbol(value)) {
  33371. return true;
  33372. }
  33373. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  33374. (object != null && value in Object(object));
  33375. }
  33376. module.exports = isKey;
  33377. /***/ }),
  33378. /***/ "./node_modules/lodash/_isKeyable.js":
  33379. /*!*******************************************!*\
  33380. !*** ./node_modules/lodash/_isKeyable.js ***!
  33381. \*******************************************/
  33382. /*! no static exports found */
  33383. /***/ (function(module, exports) {
  33384. /**
  33385. * Checks if `value` is suitable for use as unique object key.
  33386. *
  33387. * @private
  33388. * @param {*} value The value to check.
  33389. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  33390. */
  33391. function isKeyable(value) {
  33392. var type = typeof value;
  33393. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  33394. ? (value !== '__proto__')
  33395. : (value === null);
  33396. }
  33397. module.exports = isKeyable;
  33398. /***/ }),
  33399. /***/ "./node_modules/lodash/_isMasked.js":
  33400. /*!******************************************!*\
  33401. !*** ./node_modules/lodash/_isMasked.js ***!
  33402. \******************************************/
  33403. /*! no static exports found */
  33404. /***/ (function(module, exports, __webpack_require__) {
  33405. var coreJsData = __webpack_require__(/*! ./_coreJsData */ "./node_modules/lodash/_coreJsData.js");
  33406. /** Used to detect methods masquerading as native. */
  33407. var maskSrcKey = (function() {
  33408. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  33409. return uid ? ('Symbol(src)_1.' + uid) : '';
  33410. }());
  33411. /**
  33412. * Checks if `func` has its source masked.
  33413. *
  33414. * @private
  33415. * @param {Function} func The function to check.
  33416. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  33417. */
  33418. function isMasked(func) {
  33419. return !!maskSrcKey && (maskSrcKey in func);
  33420. }
  33421. module.exports = isMasked;
  33422. /***/ }),
  33423. /***/ "./node_modules/lodash/_isPrototype.js":
  33424. /*!*********************************************!*\
  33425. !*** ./node_modules/lodash/_isPrototype.js ***!
  33426. \*********************************************/
  33427. /*! no static exports found */
  33428. /***/ (function(module, exports) {
  33429. /** Used for built-in method references. */
  33430. var objectProto = Object.prototype;
  33431. /**
  33432. * Checks if `value` is likely a prototype object.
  33433. *
  33434. * @private
  33435. * @param {*} value The value to check.
  33436. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  33437. */
  33438. function isPrototype(value) {
  33439. var Ctor = value && value.constructor,
  33440. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  33441. return value === proto;
  33442. }
  33443. module.exports = isPrototype;
  33444. /***/ }),
  33445. /***/ "./node_modules/lodash/_isStrictComparable.js":
  33446. /*!****************************************************!*\
  33447. !*** ./node_modules/lodash/_isStrictComparable.js ***!
  33448. \****************************************************/
  33449. /*! no static exports found */
  33450. /***/ (function(module, exports, __webpack_require__) {
  33451. var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
  33452. /**
  33453. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  33454. *
  33455. * @private
  33456. * @param {*} value The value to check.
  33457. * @returns {boolean} Returns `true` if `value` if suitable for strict
  33458. * equality comparisons, else `false`.
  33459. */
  33460. function isStrictComparable(value) {
  33461. return value === value && !isObject(value);
  33462. }
  33463. module.exports = isStrictComparable;
  33464. /***/ }),
  33465. /***/ "./node_modules/lodash/_listCacheClear.js":
  33466. /*!************************************************!*\
  33467. !*** ./node_modules/lodash/_listCacheClear.js ***!
  33468. \************************************************/
  33469. /*! no static exports found */
  33470. /***/ (function(module, exports) {
  33471. /**
  33472. * Removes all key-value entries from the list cache.
  33473. *
  33474. * @private
  33475. * @name clear
  33476. * @memberOf ListCache
  33477. */
  33478. function listCacheClear() {
  33479. this.__data__ = [];
  33480. this.size = 0;
  33481. }
  33482. module.exports = listCacheClear;
  33483. /***/ }),
  33484. /***/ "./node_modules/lodash/_listCacheDelete.js":
  33485. /*!*************************************************!*\
  33486. !*** ./node_modules/lodash/_listCacheDelete.js ***!
  33487. \*************************************************/
  33488. /*! no static exports found */
  33489. /***/ (function(module, exports, __webpack_require__) {
  33490. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
  33491. /** Used for built-in method references. */
  33492. var arrayProto = Array.prototype;
  33493. /** Built-in value references. */
  33494. var splice = arrayProto.splice;
  33495. /**
  33496. * Removes `key` and its value from the list cache.
  33497. *
  33498. * @private
  33499. * @name delete
  33500. * @memberOf ListCache
  33501. * @param {string} key The key of the value to remove.
  33502. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  33503. */
  33504. function listCacheDelete(key) {
  33505. var data = this.__data__,
  33506. index = assocIndexOf(data, key);
  33507. if (index < 0) {
  33508. return false;
  33509. }
  33510. var lastIndex = data.length - 1;
  33511. if (index == lastIndex) {
  33512. data.pop();
  33513. } else {
  33514. splice.call(data, index, 1);
  33515. }
  33516. --this.size;
  33517. return true;
  33518. }
  33519. module.exports = listCacheDelete;
  33520. /***/ }),
  33521. /***/ "./node_modules/lodash/_listCacheGet.js":
  33522. /*!**********************************************!*\
  33523. !*** ./node_modules/lodash/_listCacheGet.js ***!
  33524. \**********************************************/
  33525. /*! no static exports found */
  33526. /***/ (function(module, exports, __webpack_require__) {
  33527. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
  33528. /**
  33529. * Gets the list cache value for `key`.
  33530. *
  33531. * @private
  33532. * @name get
  33533. * @memberOf ListCache
  33534. * @param {string} key The key of the value to get.
  33535. * @returns {*} Returns the entry value.
  33536. */
  33537. function listCacheGet(key) {
  33538. var data = this.__data__,
  33539. index = assocIndexOf(data, key);
  33540. return index < 0 ? undefined : data[index][1];
  33541. }
  33542. module.exports = listCacheGet;
  33543. /***/ }),
  33544. /***/ "./node_modules/lodash/_listCacheHas.js":
  33545. /*!**********************************************!*\
  33546. !*** ./node_modules/lodash/_listCacheHas.js ***!
  33547. \**********************************************/
  33548. /*! no static exports found */
  33549. /***/ (function(module, exports, __webpack_require__) {
  33550. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
  33551. /**
  33552. * Checks if a list cache value for `key` exists.
  33553. *
  33554. * @private
  33555. * @name has
  33556. * @memberOf ListCache
  33557. * @param {string} key The key of the entry to check.
  33558. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  33559. */
  33560. function listCacheHas(key) {
  33561. return assocIndexOf(this.__data__, key) > -1;
  33562. }
  33563. module.exports = listCacheHas;
  33564. /***/ }),
  33565. /***/ "./node_modules/lodash/_listCacheSet.js":
  33566. /*!**********************************************!*\
  33567. !*** ./node_modules/lodash/_listCacheSet.js ***!
  33568. \**********************************************/
  33569. /*! no static exports found */
  33570. /***/ (function(module, exports, __webpack_require__) {
  33571. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
  33572. /**
  33573. * Sets the list cache `key` to `value`.
  33574. *
  33575. * @private
  33576. * @name set
  33577. * @memberOf ListCache
  33578. * @param {string} key The key of the value to set.
  33579. * @param {*} value The value to set.
  33580. * @returns {Object} Returns the list cache instance.
  33581. */
  33582. function listCacheSet(key, value) {
  33583. var data = this.__data__,
  33584. index = assocIndexOf(data, key);
  33585. if (index < 0) {
  33586. ++this.size;
  33587. data.push([key, value]);
  33588. } else {
  33589. data[index][1] = value;
  33590. }
  33591. return this;
  33592. }
  33593. module.exports = listCacheSet;
  33594. /***/ }),
  33595. /***/ "./node_modules/lodash/_mapCacheClear.js":
  33596. /*!***********************************************!*\
  33597. !*** ./node_modules/lodash/_mapCacheClear.js ***!
  33598. \***********************************************/
  33599. /*! no static exports found */
  33600. /***/ (function(module, exports, __webpack_require__) {
  33601. var Hash = __webpack_require__(/*! ./_Hash */ "./node_modules/lodash/_Hash.js"),
  33602. ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
  33603. Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js");
  33604. /**
  33605. * Removes all key-value entries from the map.
  33606. *
  33607. * @private
  33608. * @name clear
  33609. * @memberOf MapCache
  33610. */
  33611. function mapCacheClear() {
  33612. this.size = 0;
  33613. this.__data__ = {
  33614. 'hash': new Hash,
  33615. 'map': new (Map || ListCache),
  33616. 'string': new Hash
  33617. };
  33618. }
  33619. module.exports = mapCacheClear;
  33620. /***/ }),
  33621. /***/ "./node_modules/lodash/_mapCacheDelete.js":
  33622. /*!************************************************!*\
  33623. !*** ./node_modules/lodash/_mapCacheDelete.js ***!
  33624. \************************************************/
  33625. /*! no static exports found */
  33626. /***/ (function(module, exports, __webpack_require__) {
  33627. var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
  33628. /**
  33629. * Removes `key` and its value from the map.
  33630. *
  33631. * @private
  33632. * @name delete
  33633. * @memberOf MapCache
  33634. * @param {string} key The key of the value to remove.
  33635. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  33636. */
  33637. function mapCacheDelete(key) {
  33638. var result = getMapData(this, key)['delete'](key);
  33639. this.size -= result ? 1 : 0;
  33640. return result;
  33641. }
  33642. module.exports = mapCacheDelete;
  33643. /***/ }),
  33644. /***/ "./node_modules/lodash/_mapCacheGet.js":
  33645. /*!*********************************************!*\
  33646. !*** ./node_modules/lodash/_mapCacheGet.js ***!
  33647. \*********************************************/
  33648. /*! no static exports found */
  33649. /***/ (function(module, exports, __webpack_require__) {
  33650. var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
  33651. /**
  33652. * Gets the map value for `key`.
  33653. *
  33654. * @private
  33655. * @name get
  33656. * @memberOf MapCache
  33657. * @param {string} key The key of the value to get.
  33658. * @returns {*} Returns the entry value.
  33659. */
  33660. function mapCacheGet(key) {
  33661. return getMapData(this, key).get(key);
  33662. }
  33663. module.exports = mapCacheGet;
  33664. /***/ }),
  33665. /***/ "./node_modules/lodash/_mapCacheHas.js":
  33666. /*!*********************************************!*\
  33667. !*** ./node_modules/lodash/_mapCacheHas.js ***!
  33668. \*********************************************/
  33669. /*! no static exports found */
  33670. /***/ (function(module, exports, __webpack_require__) {
  33671. var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
  33672. /**
  33673. * Checks if a map value for `key` exists.
  33674. *
  33675. * @private
  33676. * @name has
  33677. * @memberOf MapCache
  33678. * @param {string} key The key of the entry to check.
  33679. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  33680. */
  33681. function mapCacheHas(key) {
  33682. return getMapData(this, key).has(key);
  33683. }
  33684. module.exports = mapCacheHas;
  33685. /***/ }),
  33686. /***/ "./node_modules/lodash/_mapCacheSet.js":
  33687. /*!*********************************************!*\
  33688. !*** ./node_modules/lodash/_mapCacheSet.js ***!
  33689. \*********************************************/
  33690. /*! no static exports found */
  33691. /***/ (function(module, exports, __webpack_require__) {
  33692. var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
  33693. /**
  33694. * Sets the map `key` to `value`.
  33695. *
  33696. * @private
  33697. * @name set
  33698. * @memberOf MapCache
  33699. * @param {string} key The key of the value to set.
  33700. * @param {*} value The value to set.
  33701. * @returns {Object} Returns the map cache instance.
  33702. */
  33703. function mapCacheSet(key, value) {
  33704. var data = getMapData(this, key),
  33705. size = data.size;
  33706. data.set(key, value);
  33707. this.size += data.size == size ? 0 : 1;
  33708. return this;
  33709. }
  33710. module.exports = mapCacheSet;
  33711. /***/ }),
  33712. /***/ "./node_modules/lodash/_mapToArray.js":
  33713. /*!********************************************!*\
  33714. !*** ./node_modules/lodash/_mapToArray.js ***!
  33715. \********************************************/
  33716. /*! no static exports found */
  33717. /***/ (function(module, exports) {
  33718. /**
  33719. * Converts `map` to its key-value pairs.
  33720. *
  33721. * @private
  33722. * @param {Object} map The map to convert.
  33723. * @returns {Array} Returns the key-value pairs.
  33724. */
  33725. function mapToArray(map) {
  33726. var index = -1,
  33727. result = Array(map.size);
  33728. map.forEach(function(value, key) {
  33729. result[++index] = [key, value];
  33730. });
  33731. return result;
  33732. }
  33733. module.exports = mapToArray;
  33734. /***/ }),
  33735. /***/ "./node_modules/lodash/_matchesStrictComparable.js":
  33736. /*!*********************************************************!*\
  33737. !*** ./node_modules/lodash/_matchesStrictComparable.js ***!
  33738. \*********************************************************/
  33739. /*! no static exports found */
  33740. /***/ (function(module, exports) {
  33741. /**
  33742. * A specialized version of `matchesProperty` for source values suitable
  33743. * for strict equality comparisons, i.e. `===`.
  33744. *
  33745. * @private
  33746. * @param {string} key The key of the property to get.
  33747. * @param {*} srcValue The value to match.
  33748. * @returns {Function} Returns the new spec function.
  33749. */
  33750. function matchesStrictComparable(key, srcValue) {
  33751. return function(object) {
  33752. if (object == null) {
  33753. return false;
  33754. }
  33755. return object[key] === srcValue &&
  33756. (srcValue !== undefined || (key in Object(object)));
  33757. };
  33758. }
  33759. module.exports = matchesStrictComparable;
  33760. /***/ }),
  33761. /***/ "./node_modules/lodash/_memoizeCapped.js":
  33762. /*!***********************************************!*\
  33763. !*** ./node_modules/lodash/_memoizeCapped.js ***!
  33764. \***********************************************/
  33765. /*! no static exports found */
  33766. /***/ (function(module, exports, __webpack_require__) {
  33767. var memoize = __webpack_require__(/*! ./memoize */ "./node_modules/lodash/memoize.js");
  33768. /** Used as the maximum memoize cache size. */
  33769. var MAX_MEMOIZE_SIZE = 500;
  33770. /**
  33771. * A specialized version of `_.memoize` which clears the memoized function's
  33772. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  33773. *
  33774. * @private
  33775. * @param {Function} func The function to have its output memoized.
  33776. * @returns {Function} Returns the new memoized function.
  33777. */
  33778. function memoizeCapped(func) {
  33779. var result = memoize(func, function(key) {
  33780. if (cache.size === MAX_MEMOIZE_SIZE) {
  33781. cache.clear();
  33782. }
  33783. return key;
  33784. });
  33785. var cache = result.cache;
  33786. return result;
  33787. }
  33788. module.exports = memoizeCapped;
  33789. /***/ }),
  33790. /***/ "./node_modules/lodash/_nativeCreate.js":
  33791. /*!**********************************************!*\
  33792. !*** ./node_modules/lodash/_nativeCreate.js ***!
  33793. \**********************************************/
  33794. /*! no static exports found */
  33795. /***/ (function(module, exports, __webpack_require__) {
  33796. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
  33797. /* Built-in method references that are verified to be native. */
  33798. var nativeCreate = getNative(Object, 'create');
  33799. module.exports = nativeCreate;
  33800. /***/ }),
  33801. /***/ "./node_modules/lodash/_nativeKeys.js":
  33802. /*!********************************************!*\
  33803. !*** ./node_modules/lodash/_nativeKeys.js ***!
  33804. \********************************************/
  33805. /*! no static exports found */
  33806. /***/ (function(module, exports, __webpack_require__) {
  33807. var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
  33808. /* Built-in method references for those with the same name as other `lodash` methods. */
  33809. var nativeKeys = overArg(Object.keys, Object);
  33810. module.exports = nativeKeys;
  33811. /***/ }),
  33812. /***/ "./node_modules/lodash/_nativeKeysIn.js":
  33813. /*!**********************************************!*\
  33814. !*** ./node_modules/lodash/_nativeKeysIn.js ***!
  33815. \**********************************************/
  33816. /*! no static exports found */
  33817. /***/ (function(module, exports) {
  33818. /**
  33819. * This function is like
  33820. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  33821. * except that it includes inherited enumerable properties.
  33822. *
  33823. * @private
  33824. * @param {Object} object The object to query.
  33825. * @returns {Array} Returns the array of property names.
  33826. */
  33827. function nativeKeysIn(object) {
  33828. var result = [];
  33829. if (object != null) {
  33830. for (var key in Object(object)) {
  33831. result.push(key);
  33832. }
  33833. }
  33834. return result;
  33835. }
  33836. module.exports = nativeKeysIn;
  33837. /***/ }),
  33838. /***/ "./node_modules/lodash/_nodeUtil.js":
  33839. /*!******************************************!*\
  33840. !*** ./node_modules/lodash/_nodeUtil.js ***!
  33841. \******************************************/
  33842. /*! no static exports found */
  33843. /***/ (function(module, exports, __webpack_require__) {
  33844. /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
  33845. /** Detect free variable `exports`. */
  33846. var freeExports = true && exports && !exports.nodeType && exports;
  33847. /** Detect free variable `module`. */
  33848. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  33849. /** Detect the popular CommonJS extension `module.exports`. */
  33850. var moduleExports = freeModule && freeModule.exports === freeExports;
  33851. /** Detect free variable `process` from Node.js. */
  33852. var freeProcess = moduleExports && freeGlobal.process;
  33853. /** Used to access faster Node.js helpers. */
  33854. var nodeUtil = (function() {
  33855. try {
  33856. // Use `util.types` for Node.js 10+.
  33857. var types = freeModule && freeModule.require && freeModule.require('util').types;
  33858. if (types) {
  33859. return types;
  33860. }
  33861. // Legacy `process.binding('util')` for Node.js < 10.
  33862. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  33863. } catch (e) {}
  33864. }());
  33865. module.exports = nodeUtil;
  33866. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  33867. /***/ }),
  33868. /***/ "./node_modules/lodash/_objectToString.js":
  33869. /*!************************************************!*\
  33870. !*** ./node_modules/lodash/_objectToString.js ***!
  33871. \************************************************/
  33872. /*! no static exports found */
  33873. /***/ (function(module, exports) {
  33874. /** Used for built-in method references. */
  33875. var objectProto = Object.prototype;
  33876. /**
  33877. * Used to resolve the
  33878. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  33879. * of values.
  33880. */
  33881. var nativeObjectToString = objectProto.toString;
  33882. /**
  33883. * Converts `value` to a string using `Object.prototype.toString`.
  33884. *
  33885. * @private
  33886. * @param {*} value The value to convert.
  33887. * @returns {string} Returns the converted string.
  33888. */
  33889. function objectToString(value) {
  33890. return nativeObjectToString.call(value);
  33891. }
  33892. module.exports = objectToString;
  33893. /***/ }),
  33894. /***/ "./node_modules/lodash/_overArg.js":
  33895. /*!*****************************************!*\
  33896. !*** ./node_modules/lodash/_overArg.js ***!
  33897. \*****************************************/
  33898. /*! no static exports found */
  33899. /***/ (function(module, exports) {
  33900. /**
  33901. * Creates a unary function that invokes `func` with its argument transformed.
  33902. *
  33903. * @private
  33904. * @param {Function} func The function to wrap.
  33905. * @param {Function} transform The argument transform.
  33906. * @returns {Function} Returns the new function.
  33907. */
  33908. function overArg(func, transform) {
  33909. return function(arg) {
  33910. return func(transform(arg));
  33911. };
  33912. }
  33913. module.exports = overArg;
  33914. /***/ }),
  33915. /***/ "./node_modules/lodash/_overRest.js":
  33916. /*!******************************************!*\
  33917. !*** ./node_modules/lodash/_overRest.js ***!
  33918. \******************************************/
  33919. /*! no static exports found */
  33920. /***/ (function(module, exports, __webpack_require__) {
  33921. var apply = __webpack_require__(/*! ./_apply */ "./node_modules/lodash/_apply.js");
  33922. /* Built-in method references for those with the same name as other `lodash` methods. */
  33923. var nativeMax = Math.max;
  33924. /**
  33925. * A specialized version of `baseRest` which transforms the rest array.
  33926. *
  33927. * @private
  33928. * @param {Function} func The function to apply a rest parameter to.
  33929. * @param {number} [start=func.length-1] The start position of the rest parameter.
  33930. * @param {Function} transform The rest array transform.
  33931. * @returns {Function} Returns the new function.
  33932. */
  33933. function overRest(func, start, transform) {
  33934. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  33935. return function() {
  33936. var args = arguments,
  33937. index = -1,
  33938. length = nativeMax(args.length - start, 0),
  33939. array = Array(length);
  33940. while (++index < length) {
  33941. array[index] = args[start + index];
  33942. }
  33943. index = -1;
  33944. var otherArgs = Array(start + 1);
  33945. while (++index < start) {
  33946. otherArgs[index] = args[index];
  33947. }
  33948. otherArgs[start] = transform(array);
  33949. return apply(func, this, otherArgs);
  33950. };
  33951. }
  33952. module.exports = overRest;
  33953. /***/ }),
  33954. /***/ "./node_modules/lodash/_root.js":
  33955. /*!**************************************!*\
  33956. !*** ./node_modules/lodash/_root.js ***!
  33957. \**************************************/
  33958. /*! no static exports found */
  33959. /***/ (function(module, exports, __webpack_require__) {
  33960. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
  33961. /** Detect free variable `self`. */
  33962. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  33963. /** Used as a reference to the global object. */
  33964. var root = freeGlobal || freeSelf || Function('return this')();
  33965. module.exports = root;
  33966. /***/ }),
  33967. /***/ "./node_modules/lodash/_safeGet.js":
  33968. /*!*****************************************!*\
  33969. !*** ./node_modules/lodash/_safeGet.js ***!
  33970. \*****************************************/
  33971. /*! no static exports found */
  33972. /***/ (function(module, exports) {
  33973. /**
  33974. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  33975. *
  33976. * @private
  33977. * @param {Object} object The object to query.
  33978. * @param {string} key The key of the property to get.
  33979. * @returns {*} Returns the property value.
  33980. */
  33981. function safeGet(object, key) {
  33982. if (key === 'constructor' && typeof object[key] === 'function') {
  33983. return;
  33984. }
  33985. if (key == '__proto__') {
  33986. return;
  33987. }
  33988. return object[key];
  33989. }
  33990. module.exports = safeGet;
  33991. /***/ }),
  33992. /***/ "./node_modules/lodash/_setCacheAdd.js":
  33993. /*!*********************************************!*\
  33994. !*** ./node_modules/lodash/_setCacheAdd.js ***!
  33995. \*********************************************/
  33996. /*! no static exports found */
  33997. /***/ (function(module, exports) {
  33998. /** Used to stand-in for `undefined` hash values. */
  33999. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  34000. /**
  34001. * Adds `value` to the array cache.
  34002. *
  34003. * @private
  34004. * @name add
  34005. * @memberOf SetCache
  34006. * @alias push
  34007. * @param {*} value The value to cache.
  34008. * @returns {Object} Returns the cache instance.
  34009. */
  34010. function setCacheAdd(value) {
  34011. this.__data__.set(value, HASH_UNDEFINED);
  34012. return this;
  34013. }
  34014. module.exports = setCacheAdd;
  34015. /***/ }),
  34016. /***/ "./node_modules/lodash/_setCacheHas.js":
  34017. /*!*********************************************!*\
  34018. !*** ./node_modules/lodash/_setCacheHas.js ***!
  34019. \*********************************************/
  34020. /*! no static exports found */
  34021. /***/ (function(module, exports) {
  34022. /**
  34023. * Checks if `value` is in the array cache.
  34024. *
  34025. * @private
  34026. * @name has
  34027. * @memberOf SetCache
  34028. * @param {*} value The value to search for.
  34029. * @returns {number} Returns `true` if `value` is found, else `false`.
  34030. */
  34031. function setCacheHas(value) {
  34032. return this.__data__.has(value);
  34033. }
  34034. module.exports = setCacheHas;
  34035. /***/ }),
  34036. /***/ "./node_modules/lodash/_setToArray.js":
  34037. /*!********************************************!*\
  34038. !*** ./node_modules/lodash/_setToArray.js ***!
  34039. \********************************************/
  34040. /*! no static exports found */
  34041. /***/ (function(module, exports) {
  34042. /**
  34043. * Converts `set` to an array of its values.
  34044. *
  34045. * @private
  34046. * @param {Object} set The set to convert.
  34047. * @returns {Array} Returns the values.
  34048. */
  34049. function setToArray(set) {
  34050. var index = -1,
  34051. result = Array(set.size);
  34052. set.forEach(function(value) {
  34053. result[++index] = value;
  34054. });
  34055. return result;
  34056. }
  34057. module.exports = setToArray;
  34058. /***/ }),
  34059. /***/ "./node_modules/lodash/_setToString.js":
  34060. /*!*********************************************!*\
  34061. !*** ./node_modules/lodash/_setToString.js ***!
  34062. \*********************************************/
  34063. /*! no static exports found */
  34064. /***/ (function(module, exports, __webpack_require__) {
  34065. var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "./node_modules/lodash/_baseSetToString.js"),
  34066. shortOut = __webpack_require__(/*! ./_shortOut */ "./node_modules/lodash/_shortOut.js");
  34067. /**
  34068. * Sets the `toString` method of `func` to return `string`.
  34069. *
  34070. * @private
  34071. * @param {Function} func The function to modify.
  34072. * @param {Function} string The `toString` result.
  34073. * @returns {Function} Returns `func`.
  34074. */
  34075. var setToString = shortOut(baseSetToString);
  34076. module.exports = setToString;
  34077. /***/ }),
  34078. /***/ "./node_modules/lodash/_shortOut.js":
  34079. /*!******************************************!*\
  34080. !*** ./node_modules/lodash/_shortOut.js ***!
  34081. \******************************************/
  34082. /*! no static exports found */
  34083. /***/ (function(module, exports) {
  34084. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  34085. var HOT_COUNT = 800,
  34086. HOT_SPAN = 16;
  34087. /* Built-in method references for those with the same name as other `lodash` methods. */
  34088. var nativeNow = Date.now;
  34089. /**
  34090. * Creates a function that'll short out and invoke `identity` instead
  34091. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  34092. * milliseconds.
  34093. *
  34094. * @private
  34095. * @param {Function} func The function to restrict.
  34096. * @returns {Function} Returns the new shortable function.
  34097. */
  34098. function shortOut(func) {
  34099. var count = 0,
  34100. lastCalled = 0;
  34101. return function() {
  34102. var stamp = nativeNow(),
  34103. remaining = HOT_SPAN - (stamp - lastCalled);
  34104. lastCalled = stamp;
  34105. if (remaining > 0) {
  34106. if (++count >= HOT_COUNT) {
  34107. return arguments[0];
  34108. }
  34109. } else {
  34110. count = 0;
  34111. }
  34112. return func.apply(undefined, arguments);
  34113. };
  34114. }
  34115. module.exports = shortOut;
  34116. /***/ }),
  34117. /***/ "./node_modules/lodash/_stackClear.js":
  34118. /*!********************************************!*\
  34119. !*** ./node_modules/lodash/_stackClear.js ***!
  34120. \********************************************/
  34121. /*! no static exports found */
  34122. /***/ (function(module, exports, __webpack_require__) {
  34123. var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js");
  34124. /**
  34125. * Removes all key-value entries from the stack.
  34126. *
  34127. * @private
  34128. * @name clear
  34129. * @memberOf Stack
  34130. */
  34131. function stackClear() {
  34132. this.__data__ = new ListCache;
  34133. this.size = 0;
  34134. }
  34135. module.exports = stackClear;
  34136. /***/ }),
  34137. /***/ "./node_modules/lodash/_stackDelete.js":
  34138. /*!*********************************************!*\
  34139. !*** ./node_modules/lodash/_stackDelete.js ***!
  34140. \*********************************************/
  34141. /*! no static exports found */
  34142. /***/ (function(module, exports) {
  34143. /**
  34144. * Removes `key` and its value from the stack.
  34145. *
  34146. * @private
  34147. * @name delete
  34148. * @memberOf Stack
  34149. * @param {string} key The key of the value to remove.
  34150. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  34151. */
  34152. function stackDelete(key) {
  34153. var data = this.__data__,
  34154. result = data['delete'](key);
  34155. this.size = data.size;
  34156. return result;
  34157. }
  34158. module.exports = stackDelete;
  34159. /***/ }),
  34160. /***/ "./node_modules/lodash/_stackGet.js":
  34161. /*!******************************************!*\
  34162. !*** ./node_modules/lodash/_stackGet.js ***!
  34163. \******************************************/
  34164. /*! no static exports found */
  34165. /***/ (function(module, exports) {
  34166. /**
  34167. * Gets the stack value for `key`.
  34168. *
  34169. * @private
  34170. * @name get
  34171. * @memberOf Stack
  34172. * @param {string} key The key of the value to get.
  34173. * @returns {*} Returns the entry value.
  34174. */
  34175. function stackGet(key) {
  34176. return this.__data__.get(key);
  34177. }
  34178. module.exports = stackGet;
  34179. /***/ }),
  34180. /***/ "./node_modules/lodash/_stackHas.js":
  34181. /*!******************************************!*\
  34182. !*** ./node_modules/lodash/_stackHas.js ***!
  34183. \******************************************/
  34184. /*! no static exports found */
  34185. /***/ (function(module, exports) {
  34186. /**
  34187. * Checks if a stack value for `key` exists.
  34188. *
  34189. * @private
  34190. * @name has
  34191. * @memberOf Stack
  34192. * @param {string} key The key of the entry to check.
  34193. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  34194. */
  34195. function stackHas(key) {
  34196. return this.__data__.has(key);
  34197. }
  34198. module.exports = stackHas;
  34199. /***/ }),
  34200. /***/ "./node_modules/lodash/_stackSet.js":
  34201. /*!******************************************!*\
  34202. !*** ./node_modules/lodash/_stackSet.js ***!
  34203. \******************************************/
  34204. /*! no static exports found */
  34205. /***/ (function(module, exports, __webpack_require__) {
  34206. var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
  34207. Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
  34208. MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
  34209. /** Used as the size to enable large array optimizations. */
  34210. var LARGE_ARRAY_SIZE = 200;
  34211. /**
  34212. * Sets the stack `key` to `value`.
  34213. *
  34214. * @private
  34215. * @name set
  34216. * @memberOf Stack
  34217. * @param {string} key The key of the value to set.
  34218. * @param {*} value The value to set.
  34219. * @returns {Object} Returns the stack cache instance.
  34220. */
  34221. function stackSet(key, value) {
  34222. var data = this.__data__;
  34223. if (data instanceof ListCache) {
  34224. var pairs = data.__data__;
  34225. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  34226. pairs.push([key, value]);
  34227. this.size = ++data.size;
  34228. return this;
  34229. }
  34230. data = this.__data__ = new MapCache(pairs);
  34231. }
  34232. data.set(key, value);
  34233. this.size = data.size;
  34234. return this;
  34235. }
  34236. module.exports = stackSet;
  34237. /***/ }),
  34238. /***/ "./node_modules/lodash/_strictIndexOf.js":
  34239. /*!***********************************************!*\
  34240. !*** ./node_modules/lodash/_strictIndexOf.js ***!
  34241. \***********************************************/
  34242. /*! no static exports found */
  34243. /***/ (function(module, exports) {
  34244. /**
  34245. * A specialized version of `_.indexOf` which performs strict equality
  34246. * comparisons of values, i.e. `===`.
  34247. *
  34248. * @private
  34249. * @param {Array} array The array to inspect.
  34250. * @param {*} value The value to search for.
  34251. * @param {number} fromIndex The index to search from.
  34252. * @returns {number} Returns the index of the matched value, else `-1`.
  34253. */
  34254. function strictIndexOf(array, value, fromIndex) {
  34255. var index = fromIndex - 1,
  34256. length = array.length;
  34257. while (++index < length) {
  34258. if (array[index] === value) {
  34259. return index;
  34260. }
  34261. }
  34262. return -1;
  34263. }
  34264. module.exports = strictIndexOf;
  34265. /***/ }),
  34266. /***/ "./node_modules/lodash/_stringSize.js":
  34267. /*!********************************************!*\
  34268. !*** ./node_modules/lodash/_stringSize.js ***!
  34269. \********************************************/
  34270. /*! no static exports found */
  34271. /***/ (function(module, exports, __webpack_require__) {
  34272. var asciiSize = __webpack_require__(/*! ./_asciiSize */ "./node_modules/lodash/_asciiSize.js"),
  34273. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
  34274. unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "./node_modules/lodash/_unicodeSize.js");
  34275. /**
  34276. * Gets the number of symbols in `string`.
  34277. *
  34278. * @private
  34279. * @param {string} string The string to inspect.
  34280. * @returns {number} Returns the string size.
  34281. */
  34282. function stringSize(string) {
  34283. return hasUnicode(string)
  34284. ? unicodeSize(string)
  34285. : asciiSize(string);
  34286. }
  34287. module.exports = stringSize;
  34288. /***/ }),
  34289. /***/ "./node_modules/lodash/_stringToPath.js":
  34290. /*!**********************************************!*\
  34291. !*** ./node_modules/lodash/_stringToPath.js ***!
  34292. \**********************************************/
  34293. /*! no static exports found */
  34294. /***/ (function(module, exports, __webpack_require__) {
  34295. var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "./node_modules/lodash/_memoizeCapped.js");
  34296. /** Used to match property names within property paths. */
  34297. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  34298. /** Used to match backslashes in property paths. */
  34299. var reEscapeChar = /\\(\\)?/g;
  34300. /**
  34301. * Converts `string` to a property path array.
  34302. *
  34303. * @private
  34304. * @param {string} string The string to convert.
  34305. * @returns {Array} Returns the property path array.
  34306. */
  34307. var stringToPath = memoizeCapped(function(string) {
  34308. var result = [];
  34309. if (string.charCodeAt(0) === 46 /* . */) {
  34310. result.push('');
  34311. }
  34312. string.replace(rePropName, function(match, number, quote, subString) {
  34313. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  34314. });
  34315. return result;
  34316. });
  34317. module.exports = stringToPath;
  34318. /***/ }),
  34319. /***/ "./node_modules/lodash/_toKey.js":
  34320. /*!***************************************!*\
  34321. !*** ./node_modules/lodash/_toKey.js ***!
  34322. \***************************************/
  34323. /*! no static exports found */
  34324. /***/ (function(module, exports, __webpack_require__) {
  34325. var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  34326. /** Used as references for various `Number` constants. */
  34327. var INFINITY = 1 / 0;
  34328. /**
  34329. * Converts `value` to a string key if it's not a string or symbol.
  34330. *
  34331. * @private
  34332. * @param {*} value The value to inspect.
  34333. * @returns {string|symbol} Returns the key.
  34334. */
  34335. function toKey(value) {
  34336. if (typeof value == 'string' || isSymbol(value)) {
  34337. return value;
  34338. }
  34339. var result = (value + '');
  34340. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  34341. }
  34342. module.exports = toKey;
  34343. /***/ }),
  34344. /***/ "./node_modules/lodash/_toSource.js":
  34345. /*!******************************************!*\
  34346. !*** ./node_modules/lodash/_toSource.js ***!
  34347. \******************************************/
  34348. /*! no static exports found */
  34349. /***/ (function(module, exports) {
  34350. /** Used for built-in method references. */
  34351. var funcProto = Function.prototype;
  34352. /** Used to resolve the decompiled source of functions. */
  34353. var funcToString = funcProto.toString;
  34354. /**
  34355. * Converts `func` to its source code.
  34356. *
  34357. * @private
  34358. * @param {Function} func The function to convert.
  34359. * @returns {string} Returns the source code.
  34360. */
  34361. function toSource(func) {
  34362. if (func != null) {
  34363. try {
  34364. return funcToString.call(func);
  34365. } catch (e) {}
  34366. try {
  34367. return (func + '');
  34368. } catch (e) {}
  34369. }
  34370. return '';
  34371. }
  34372. module.exports = toSource;
  34373. /***/ }),
  34374. /***/ "./node_modules/lodash/_unicodeSize.js":
  34375. /*!*********************************************!*\
  34376. !*** ./node_modules/lodash/_unicodeSize.js ***!
  34377. \*********************************************/
  34378. /*! no static exports found */
  34379. /***/ (function(module, exports) {
  34380. /** Used to compose unicode character classes. */
  34381. var rsAstralRange = '\\ud800-\\udfff',
  34382. rsComboMarksRange = '\\u0300-\\u036f',
  34383. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  34384. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  34385. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  34386. rsVarRange = '\\ufe0e\\ufe0f';
  34387. /** Used to compose unicode capture groups. */
  34388. var rsAstral = '[' + rsAstralRange + ']',
  34389. rsCombo = '[' + rsComboRange + ']',
  34390. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  34391. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  34392. rsNonAstral = '[^' + rsAstralRange + ']',
  34393. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  34394. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  34395. rsZWJ = '\\u200d';
  34396. /** Used to compose unicode regexes. */
  34397. var reOptMod = rsModifier + '?',
  34398. rsOptVar = '[' + rsVarRange + ']?',
  34399. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  34400. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  34401. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  34402. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  34403. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  34404. /**
  34405. * Gets the size of a Unicode `string`.
  34406. *
  34407. * @private
  34408. * @param {string} string The string inspect.
  34409. * @returns {number} Returns the string size.
  34410. */
  34411. function unicodeSize(string) {
  34412. var result = reUnicode.lastIndex = 0;
  34413. while (reUnicode.test(string)) {
  34414. ++result;
  34415. }
  34416. return result;
  34417. }
  34418. module.exports = unicodeSize;
  34419. /***/ }),
  34420. /***/ "./node_modules/lodash/clone.js":
  34421. /*!**************************************!*\
  34422. !*** ./node_modules/lodash/clone.js ***!
  34423. \**************************************/
  34424. /*! no static exports found */
  34425. /***/ (function(module, exports, __webpack_require__) {
  34426. var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");
  34427. /** Used to compose bitmasks for cloning. */
  34428. var CLONE_SYMBOLS_FLAG = 4;
  34429. /**
  34430. * Creates a shallow clone of `value`.
  34431. *
  34432. * **Note:** This method is loosely based on the
  34433. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  34434. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  34435. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  34436. * arrays. The own enumerable properties of `arguments` objects are cloned
  34437. * as plain objects. An empty object is returned for uncloneable values such
  34438. * as error objects, functions, DOM nodes, and WeakMaps.
  34439. *
  34440. * @static
  34441. * @memberOf _
  34442. * @since 0.1.0
  34443. * @category Lang
  34444. * @param {*} value The value to clone.
  34445. * @returns {*} Returns the cloned value.
  34446. * @see _.cloneDeep
  34447. * @example
  34448. *
  34449. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  34450. *
  34451. * var shallow = _.clone(objects);
  34452. * console.log(shallow[0] === objects[0]);
  34453. * // => true
  34454. */
  34455. function clone(value) {
  34456. return baseClone(value, CLONE_SYMBOLS_FLAG);
  34457. }
  34458. module.exports = clone;
  34459. /***/ }),
  34460. /***/ "./node_modules/lodash/cloneDeep.js":
  34461. /*!******************************************!*\
  34462. !*** ./node_modules/lodash/cloneDeep.js ***!
  34463. \******************************************/
  34464. /*! no static exports found */
  34465. /***/ (function(module, exports, __webpack_require__) {
  34466. var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");
  34467. /** Used to compose bitmasks for cloning. */
  34468. var CLONE_DEEP_FLAG = 1,
  34469. CLONE_SYMBOLS_FLAG = 4;
  34470. /**
  34471. * This method is like `_.clone` except that it recursively clones `value`.
  34472. *
  34473. * @static
  34474. * @memberOf _
  34475. * @since 1.0.0
  34476. * @category Lang
  34477. * @param {*} value The value to recursively clone.
  34478. * @returns {*} Returns the deep cloned value.
  34479. * @see _.clone
  34480. * @example
  34481. *
  34482. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  34483. *
  34484. * var deep = _.cloneDeep(objects);
  34485. * console.log(deep[0] === objects[0]);
  34486. * // => false
  34487. */
  34488. function cloneDeep(value) {
  34489. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  34490. }
  34491. module.exports = cloneDeep;
  34492. /***/ }),
  34493. /***/ "./node_modules/lodash/constant.js":
  34494. /*!*****************************************!*\
  34495. !*** ./node_modules/lodash/constant.js ***!
  34496. \*****************************************/
  34497. /*! no static exports found */
  34498. /***/ (function(module, exports) {
  34499. /**
  34500. * Creates a function that returns `value`.
  34501. *
  34502. * @static
  34503. * @memberOf _
  34504. * @since 2.4.0
  34505. * @category Util
  34506. * @param {*} value The value to return from the new function.
  34507. * @returns {Function} Returns the new constant function.
  34508. * @example
  34509. *
  34510. * var objects = _.times(2, _.constant({ 'a': 1 }));
  34511. *
  34512. * console.log(objects);
  34513. * // => [{ 'a': 1 }, { 'a': 1 }]
  34514. *
  34515. * console.log(objects[0] === objects[1]);
  34516. * // => true
  34517. */
  34518. function constant(value) {
  34519. return function() {
  34520. return value;
  34521. };
  34522. }
  34523. module.exports = constant;
  34524. /***/ }),
  34525. /***/ "./node_modules/lodash/defaults.js":
  34526. /*!*****************************************!*\
  34527. !*** ./node_modules/lodash/defaults.js ***!
  34528. \*****************************************/
  34529. /*! no static exports found */
  34530. /***/ (function(module, exports, __webpack_require__) {
  34531. var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
  34532. eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
  34533. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js"),
  34534. keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
  34535. /** Used for built-in method references. */
  34536. var objectProto = Object.prototype;
  34537. /** Used to check objects for own properties. */
  34538. var hasOwnProperty = objectProto.hasOwnProperty;
  34539. /**
  34540. * Assigns own and inherited enumerable string keyed properties of source
  34541. * objects to the destination object for all destination properties that
  34542. * resolve to `undefined`. Source objects are applied from left to right.
  34543. * Once a property is set, additional values of the same property are ignored.
  34544. *
  34545. * **Note:** This method mutates `object`.
  34546. *
  34547. * @static
  34548. * @since 0.1.0
  34549. * @memberOf _
  34550. * @category Object
  34551. * @param {Object} object The destination object.
  34552. * @param {...Object} [sources] The source objects.
  34553. * @returns {Object} Returns `object`.
  34554. * @see _.defaultsDeep
  34555. * @example
  34556. *
  34557. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  34558. * // => { 'a': 1, 'b': 2 }
  34559. */
  34560. var defaults = baseRest(function(object, sources) {
  34561. object = Object(object);
  34562. var index = -1;
  34563. var length = sources.length;
  34564. var guard = length > 2 ? sources[2] : undefined;
  34565. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  34566. length = 1;
  34567. }
  34568. while (++index < length) {
  34569. var source = sources[index];
  34570. var props = keysIn(source);
  34571. var propsIndex = -1;
  34572. var propsLength = props.length;
  34573. while (++propsIndex < propsLength) {
  34574. var key = props[propsIndex];
  34575. var value = object[key];
  34576. if (value === undefined ||
  34577. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  34578. object[key] = source[key];
  34579. }
  34580. }
  34581. }
  34582. return object;
  34583. });
  34584. module.exports = defaults;
  34585. /***/ }),
  34586. /***/ "./node_modules/lodash/each.js":
  34587. /*!*************************************!*\
  34588. !*** ./node_modules/lodash/each.js ***!
  34589. \*************************************/
  34590. /*! no static exports found */
  34591. /***/ (function(module, exports, __webpack_require__) {
  34592. module.exports = __webpack_require__(/*! ./forEach */ "./node_modules/lodash/forEach.js");
  34593. /***/ }),
  34594. /***/ "./node_modules/lodash/eq.js":
  34595. /*!***********************************!*\
  34596. !*** ./node_modules/lodash/eq.js ***!
  34597. \***********************************/
  34598. /*! no static exports found */
  34599. /***/ (function(module, exports) {
  34600. /**
  34601. * Performs a
  34602. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  34603. * comparison between two values to determine if they are equivalent.
  34604. *
  34605. * @static
  34606. * @memberOf _
  34607. * @since 4.0.0
  34608. * @category Lang
  34609. * @param {*} value The value to compare.
  34610. * @param {*} other The other value to compare.
  34611. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  34612. * @example
  34613. *
  34614. * var object = { 'a': 1 };
  34615. * var other = { 'a': 1 };
  34616. *
  34617. * _.eq(object, object);
  34618. * // => true
  34619. *
  34620. * _.eq(object, other);
  34621. * // => false
  34622. *
  34623. * _.eq('a', 'a');
  34624. * // => true
  34625. *
  34626. * _.eq('a', Object('a'));
  34627. * // => false
  34628. *
  34629. * _.eq(NaN, NaN);
  34630. * // => true
  34631. */
  34632. function eq(value, other) {
  34633. return value === other || (value !== value && other !== other);
  34634. }
  34635. module.exports = eq;
  34636. /***/ }),
  34637. /***/ "./node_modules/lodash/filter.js":
  34638. /*!***************************************!*\
  34639. !*** ./node_modules/lodash/filter.js ***!
  34640. \***************************************/
  34641. /*! no static exports found */
  34642. /***/ (function(module, exports, __webpack_require__) {
  34643. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
  34644. baseFilter = __webpack_require__(/*! ./_baseFilter */ "./node_modules/lodash/_baseFilter.js"),
  34645. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  34646. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
  34647. /**
  34648. * Iterates over elements of `collection`, returning an array of all elements
  34649. * `predicate` returns truthy for. The predicate is invoked with three
  34650. * arguments: (value, index|key, collection).
  34651. *
  34652. * **Note:** Unlike `_.remove`, this method returns a new array.
  34653. *
  34654. * @static
  34655. * @memberOf _
  34656. * @since 0.1.0
  34657. * @category Collection
  34658. * @param {Array|Object} collection The collection to iterate over.
  34659. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  34660. * @returns {Array} Returns the new filtered array.
  34661. * @see _.reject
  34662. * @example
  34663. *
  34664. * var users = [
  34665. * { 'user': 'barney', 'age': 36, 'active': true },
  34666. * { 'user': 'fred', 'age': 40, 'active': false }
  34667. * ];
  34668. *
  34669. * _.filter(users, function(o) { return !o.active; });
  34670. * // => objects for ['fred']
  34671. *
  34672. * // The `_.matches` iteratee shorthand.
  34673. * _.filter(users, { 'age': 36, 'active': true });
  34674. * // => objects for ['barney']
  34675. *
  34676. * // The `_.matchesProperty` iteratee shorthand.
  34677. * _.filter(users, ['active', false]);
  34678. * // => objects for ['fred']
  34679. *
  34680. * // The `_.property` iteratee shorthand.
  34681. * _.filter(users, 'active');
  34682. * // => objects for ['barney']
  34683. */
  34684. function filter(collection, predicate) {
  34685. var func = isArray(collection) ? arrayFilter : baseFilter;
  34686. return func(collection, baseIteratee(predicate, 3));
  34687. }
  34688. module.exports = filter;
  34689. /***/ }),
  34690. /***/ "./node_modules/lodash/find.js":
  34691. /*!*************************************!*\
  34692. !*** ./node_modules/lodash/find.js ***!
  34693. \*************************************/
  34694. /*! no static exports found */
  34695. /***/ (function(module, exports, __webpack_require__) {
  34696. var createFind = __webpack_require__(/*! ./_createFind */ "./node_modules/lodash/_createFind.js"),
  34697. findIndex = __webpack_require__(/*! ./findIndex */ "./node_modules/lodash/findIndex.js");
  34698. /**
  34699. * Iterates over elements of `collection`, returning the first element
  34700. * `predicate` returns truthy for. The predicate is invoked with three
  34701. * arguments: (value, index|key, collection).
  34702. *
  34703. * @static
  34704. * @memberOf _
  34705. * @since 0.1.0
  34706. * @category Collection
  34707. * @param {Array|Object} collection The collection to inspect.
  34708. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  34709. * @param {number} [fromIndex=0] The index to search from.
  34710. * @returns {*} Returns the matched element, else `undefined`.
  34711. * @example
  34712. *
  34713. * var users = [
  34714. * { 'user': 'barney', 'age': 36, 'active': true },
  34715. * { 'user': 'fred', 'age': 40, 'active': false },
  34716. * { 'user': 'pebbles', 'age': 1, 'active': true }
  34717. * ];
  34718. *
  34719. * _.find(users, function(o) { return o.age < 40; });
  34720. * // => object for 'barney'
  34721. *
  34722. * // The `_.matches` iteratee shorthand.
  34723. * _.find(users, { 'age': 1, 'active': true });
  34724. * // => object for 'pebbles'
  34725. *
  34726. * // The `_.matchesProperty` iteratee shorthand.
  34727. * _.find(users, ['active', false]);
  34728. * // => object for 'fred'
  34729. *
  34730. * // The `_.property` iteratee shorthand.
  34731. * _.find(users, 'active');
  34732. * // => object for 'barney'
  34733. */
  34734. var find = createFind(findIndex);
  34735. module.exports = find;
  34736. /***/ }),
  34737. /***/ "./node_modules/lodash/findIndex.js":
  34738. /*!******************************************!*\
  34739. !*** ./node_modules/lodash/findIndex.js ***!
  34740. \******************************************/
  34741. /*! no static exports found */
  34742. /***/ (function(module, exports, __webpack_require__) {
  34743. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
  34744. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  34745. toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js");
  34746. /* Built-in method references for those with the same name as other `lodash` methods. */
  34747. var nativeMax = Math.max;
  34748. /**
  34749. * This method is like `_.find` except that it returns the index of the first
  34750. * element `predicate` returns truthy for instead of the element itself.
  34751. *
  34752. * @static
  34753. * @memberOf _
  34754. * @since 1.1.0
  34755. * @category Array
  34756. * @param {Array} array The array to inspect.
  34757. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  34758. * @param {number} [fromIndex=0] The index to search from.
  34759. * @returns {number} Returns the index of the found element, else `-1`.
  34760. * @example
  34761. *
  34762. * var users = [
  34763. * { 'user': 'barney', 'active': false },
  34764. * { 'user': 'fred', 'active': false },
  34765. * { 'user': 'pebbles', 'active': true }
  34766. * ];
  34767. *
  34768. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  34769. * // => 0
  34770. *
  34771. * // The `_.matches` iteratee shorthand.
  34772. * _.findIndex(users, { 'user': 'fred', 'active': false });
  34773. * // => 1
  34774. *
  34775. * // The `_.matchesProperty` iteratee shorthand.
  34776. * _.findIndex(users, ['active', false]);
  34777. * // => 0
  34778. *
  34779. * // The `_.property` iteratee shorthand.
  34780. * _.findIndex(users, 'active');
  34781. * // => 2
  34782. */
  34783. function findIndex(array, predicate, fromIndex) {
  34784. var length = array == null ? 0 : array.length;
  34785. if (!length) {
  34786. return -1;
  34787. }
  34788. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  34789. if (index < 0) {
  34790. index = nativeMax(length + index, 0);
  34791. }
  34792. return baseFindIndex(array, baseIteratee(predicate, 3), index);
  34793. }
  34794. module.exports = findIndex;
  34795. /***/ }),
  34796. /***/ "./node_modules/lodash/flatten.js":
  34797. /*!****************************************!*\
  34798. !*** ./node_modules/lodash/flatten.js ***!
  34799. \****************************************/
  34800. /*! no static exports found */
  34801. /***/ (function(module, exports, __webpack_require__) {
  34802. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js");
  34803. /**
  34804. * Flattens `array` a single level deep.
  34805. *
  34806. * @static
  34807. * @memberOf _
  34808. * @since 0.1.0
  34809. * @category Array
  34810. * @param {Array} array The array to flatten.
  34811. * @returns {Array} Returns the new flattened array.
  34812. * @example
  34813. *
  34814. * _.flatten([1, [2, [3, [4]], 5]]);
  34815. * // => [1, 2, [3, [4]], 5]
  34816. */
  34817. function flatten(array) {
  34818. var length = array == null ? 0 : array.length;
  34819. return length ? baseFlatten(array, 1) : [];
  34820. }
  34821. module.exports = flatten;
  34822. /***/ }),
  34823. /***/ "./node_modules/lodash/forEach.js":
  34824. /*!****************************************!*\
  34825. !*** ./node_modules/lodash/forEach.js ***!
  34826. \****************************************/
  34827. /*! no static exports found */
  34828. /***/ (function(module, exports, __webpack_require__) {
  34829. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
  34830. baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"),
  34831. castFunction = __webpack_require__(/*! ./_castFunction */ "./node_modules/lodash/_castFunction.js"),
  34832. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
  34833. /**
  34834. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  34835. * The iteratee is invoked with three arguments: (value, index|key, collection).
  34836. * Iteratee functions may exit iteration early by explicitly returning `false`.
  34837. *
  34838. * **Note:** As with other "Collections" methods, objects with a "length"
  34839. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  34840. * or `_.forOwn` for object iteration.
  34841. *
  34842. * @static
  34843. * @memberOf _
  34844. * @since 0.1.0
  34845. * @alias each
  34846. * @category Collection
  34847. * @param {Array|Object} collection The collection to iterate over.
  34848. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  34849. * @returns {Array|Object} Returns `collection`.
  34850. * @see _.forEachRight
  34851. * @example
  34852. *
  34853. * _.forEach([1, 2], function(value) {
  34854. * console.log(value);
  34855. * });
  34856. * // => Logs `1` then `2`.
  34857. *
  34858. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  34859. * console.log(key);
  34860. * });
  34861. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  34862. */
  34863. function forEach(collection, iteratee) {
  34864. var func = isArray(collection) ? arrayEach : baseEach;
  34865. return func(collection, castFunction(iteratee));
  34866. }
  34867. module.exports = forEach;
  34868. /***/ }),
  34869. /***/ "./node_modules/lodash/forIn.js":
  34870. /*!**************************************!*\
  34871. !*** ./node_modules/lodash/forIn.js ***!
  34872. \**************************************/
  34873. /*! no static exports found */
  34874. /***/ (function(module, exports, __webpack_require__) {
  34875. var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
  34876. castFunction = __webpack_require__(/*! ./_castFunction */ "./node_modules/lodash/_castFunction.js"),
  34877. keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
  34878. /**
  34879. * Iterates over own and inherited enumerable string keyed properties of an
  34880. * object and invokes `iteratee` for each property. The iteratee is invoked
  34881. * with three arguments: (value, key, object). Iteratee functions may exit
  34882. * iteration early by explicitly returning `false`.
  34883. *
  34884. * @static
  34885. * @memberOf _
  34886. * @since 0.3.0
  34887. * @category Object
  34888. * @param {Object} object The object to iterate over.
  34889. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  34890. * @returns {Object} Returns `object`.
  34891. * @see _.forInRight
  34892. * @example
  34893. *
  34894. * function Foo() {
  34895. * this.a = 1;
  34896. * this.b = 2;
  34897. * }
  34898. *
  34899. * Foo.prototype.c = 3;
  34900. *
  34901. * _.forIn(new Foo, function(value, key) {
  34902. * console.log(key);
  34903. * });
  34904. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  34905. */
  34906. function forIn(object, iteratee) {
  34907. return object == null
  34908. ? object
  34909. : baseFor(object, castFunction(iteratee), keysIn);
  34910. }
  34911. module.exports = forIn;
  34912. /***/ }),
  34913. /***/ "./node_modules/lodash/get.js":
  34914. /*!************************************!*\
  34915. !*** ./node_modules/lodash/get.js ***!
  34916. \************************************/
  34917. /*! no static exports found */
  34918. /***/ (function(module, exports, __webpack_require__) {
  34919. var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
  34920. /**
  34921. * Gets the value at `path` of `object`. If the resolved value is
  34922. * `undefined`, the `defaultValue` is returned in its place.
  34923. *
  34924. * @static
  34925. * @memberOf _
  34926. * @since 3.7.0
  34927. * @category Object
  34928. * @param {Object} object The object to query.
  34929. * @param {Array|string} path The path of the property to get.
  34930. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  34931. * @returns {*} Returns the resolved value.
  34932. * @example
  34933. *
  34934. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  34935. *
  34936. * _.get(object, 'a[0].b.c');
  34937. * // => 3
  34938. *
  34939. * _.get(object, ['a', '0', 'b', 'c']);
  34940. * // => 3
  34941. *
  34942. * _.get(object, 'a.b.c', 'default');
  34943. * // => 'default'
  34944. */
  34945. function get(object, path, defaultValue) {
  34946. var result = object == null ? undefined : baseGet(object, path);
  34947. return result === undefined ? defaultValue : result;
  34948. }
  34949. module.exports = get;
  34950. /***/ }),
  34951. /***/ "./node_modules/lodash/has.js":
  34952. /*!************************************!*\
  34953. !*** ./node_modules/lodash/has.js ***!
  34954. \************************************/
  34955. /*! no static exports found */
  34956. /***/ (function(module, exports, __webpack_require__) {
  34957. var baseHas = __webpack_require__(/*! ./_baseHas */ "./node_modules/lodash/_baseHas.js"),
  34958. hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
  34959. /**
  34960. * Checks if `path` is a direct property of `object`.
  34961. *
  34962. * @static
  34963. * @since 0.1.0
  34964. * @memberOf _
  34965. * @category Object
  34966. * @param {Object} object The object to query.
  34967. * @param {Array|string} path The path to check.
  34968. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  34969. * @example
  34970. *
  34971. * var object = { 'a': { 'b': 2 } };
  34972. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  34973. *
  34974. * _.has(object, 'a');
  34975. * // => true
  34976. *
  34977. * _.has(object, 'a.b');
  34978. * // => true
  34979. *
  34980. * _.has(object, ['a', 'b']);
  34981. * // => true
  34982. *
  34983. * _.has(other, 'a');
  34984. * // => false
  34985. */
  34986. function has(object, path) {
  34987. return object != null && hasPath(object, path, baseHas);
  34988. }
  34989. module.exports = has;
  34990. /***/ }),
  34991. /***/ "./node_modules/lodash/hasIn.js":
  34992. /*!**************************************!*\
  34993. !*** ./node_modules/lodash/hasIn.js ***!
  34994. \**************************************/
  34995. /*! no static exports found */
  34996. /***/ (function(module, exports, __webpack_require__) {
  34997. var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "./node_modules/lodash/_baseHasIn.js"),
  34998. hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
  34999. /**
  35000. * Checks if `path` is a direct or inherited property of `object`.
  35001. *
  35002. * @static
  35003. * @memberOf _
  35004. * @since 4.0.0
  35005. * @category Object
  35006. * @param {Object} object The object to query.
  35007. * @param {Array|string} path The path to check.
  35008. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  35009. * @example
  35010. *
  35011. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  35012. *
  35013. * _.hasIn(object, 'a');
  35014. * // => true
  35015. *
  35016. * _.hasIn(object, 'a.b');
  35017. * // => true
  35018. *
  35019. * _.hasIn(object, ['a', 'b']);
  35020. * // => true
  35021. *
  35022. * _.hasIn(object, 'b');
  35023. * // => false
  35024. */
  35025. function hasIn(object, path) {
  35026. return object != null && hasPath(object, path, baseHasIn);
  35027. }
  35028. module.exports = hasIn;
  35029. /***/ }),
  35030. /***/ "./node_modules/lodash/identity.js":
  35031. /*!*****************************************!*\
  35032. !*** ./node_modules/lodash/identity.js ***!
  35033. \*****************************************/
  35034. /*! no static exports found */
  35035. /***/ (function(module, exports) {
  35036. /**
  35037. * This method returns the first argument it receives.
  35038. *
  35039. * @static
  35040. * @since 0.1.0
  35041. * @memberOf _
  35042. * @category Util
  35043. * @param {*} value Any value.
  35044. * @returns {*} Returns `value`.
  35045. * @example
  35046. *
  35047. * var object = { 'a': 1 };
  35048. *
  35049. * console.log(_.identity(object) === object);
  35050. * // => true
  35051. */
  35052. function identity(value) {
  35053. return value;
  35054. }
  35055. module.exports = identity;
  35056. /***/ }),
  35057. /***/ "./node_modules/lodash/isArguments.js":
  35058. /*!********************************************!*\
  35059. !*** ./node_modules/lodash/isArguments.js ***!
  35060. \********************************************/
  35061. /*! no static exports found */
  35062. /***/ (function(module, exports, __webpack_require__) {
  35063. var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "./node_modules/lodash/_baseIsArguments.js"),
  35064. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  35065. /** Used for built-in method references. */
  35066. var objectProto = Object.prototype;
  35067. /** Used to check objects for own properties. */
  35068. var hasOwnProperty = objectProto.hasOwnProperty;
  35069. /** Built-in value references. */
  35070. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  35071. /**
  35072. * Checks if `value` is likely an `arguments` object.
  35073. *
  35074. * @static
  35075. * @memberOf _
  35076. * @since 0.1.0
  35077. * @category Lang
  35078. * @param {*} value The value to check.
  35079. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  35080. * else `false`.
  35081. * @example
  35082. *
  35083. * _.isArguments(function() { return arguments; }());
  35084. * // => true
  35085. *
  35086. * _.isArguments([1, 2, 3]);
  35087. * // => false
  35088. */
  35089. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  35090. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  35091. !propertyIsEnumerable.call(value, 'callee');
  35092. };
  35093. module.exports = isArguments;
  35094. /***/ }),
  35095. /***/ "./node_modules/lodash/isArray.js":
  35096. /*!****************************************!*\
  35097. !*** ./node_modules/lodash/isArray.js ***!
  35098. \****************************************/
  35099. /*! no static exports found */
  35100. /***/ (function(module, exports) {
  35101. /**
  35102. * Checks if `value` is classified as an `Array` object.
  35103. *
  35104. * @static
  35105. * @memberOf _
  35106. * @since 0.1.0
  35107. * @category Lang
  35108. * @param {*} value The value to check.
  35109. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  35110. * @example
  35111. *
  35112. * _.isArray([1, 2, 3]);
  35113. * // => true
  35114. *
  35115. * _.isArray(document.body.children);
  35116. * // => false
  35117. *
  35118. * _.isArray('abc');
  35119. * // => false
  35120. *
  35121. * _.isArray(_.noop);
  35122. * // => false
  35123. */
  35124. var isArray = Array.isArray;
  35125. module.exports = isArray;
  35126. /***/ }),
  35127. /***/ "./node_modules/lodash/isArrayLike.js":
  35128. /*!********************************************!*\
  35129. !*** ./node_modules/lodash/isArrayLike.js ***!
  35130. \********************************************/
  35131. /*! no static exports found */
  35132. /***/ (function(module, exports, __webpack_require__) {
  35133. var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
  35134. isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js");
  35135. /**
  35136. * Checks if `value` is array-like. A value is considered array-like if it's
  35137. * not a function and has a `value.length` that's an integer greater than or
  35138. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  35139. *
  35140. * @static
  35141. * @memberOf _
  35142. * @since 4.0.0
  35143. * @category Lang
  35144. * @param {*} value The value to check.
  35145. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  35146. * @example
  35147. *
  35148. * _.isArrayLike([1, 2, 3]);
  35149. * // => true
  35150. *
  35151. * _.isArrayLike(document.body.children);
  35152. * // => true
  35153. *
  35154. * _.isArrayLike('abc');
  35155. * // => true
  35156. *
  35157. * _.isArrayLike(_.noop);
  35158. * // => false
  35159. */
  35160. function isArrayLike(value) {
  35161. return value != null && isLength(value.length) && !isFunction(value);
  35162. }
  35163. module.exports = isArrayLike;
  35164. /***/ }),
  35165. /***/ "./node_modules/lodash/isArrayLikeObject.js":
  35166. /*!**************************************************!*\
  35167. !*** ./node_modules/lodash/isArrayLikeObject.js ***!
  35168. \**************************************************/
  35169. /*! no static exports found */
  35170. /***/ (function(module, exports, __webpack_require__) {
  35171. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
  35172. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  35173. /**
  35174. * This method is like `_.isArrayLike` except that it also checks if `value`
  35175. * is an object.
  35176. *
  35177. * @static
  35178. * @memberOf _
  35179. * @since 4.0.0
  35180. * @category Lang
  35181. * @param {*} value The value to check.
  35182. * @returns {boolean} Returns `true` if `value` is an array-like object,
  35183. * else `false`.
  35184. * @example
  35185. *
  35186. * _.isArrayLikeObject([1, 2, 3]);
  35187. * // => true
  35188. *
  35189. * _.isArrayLikeObject(document.body.children);
  35190. * // => true
  35191. *
  35192. * _.isArrayLikeObject('abc');
  35193. * // => false
  35194. *
  35195. * _.isArrayLikeObject(_.noop);
  35196. * // => false
  35197. */
  35198. function isArrayLikeObject(value) {
  35199. return isObjectLike(value) && isArrayLike(value);
  35200. }
  35201. module.exports = isArrayLikeObject;
  35202. /***/ }),
  35203. /***/ "./node_modules/lodash/isBuffer.js":
  35204. /*!*****************************************!*\
  35205. !*** ./node_modules/lodash/isBuffer.js ***!
  35206. \*****************************************/
  35207. /*! no static exports found */
  35208. /***/ (function(module, exports, __webpack_require__) {
  35209. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"),
  35210. stubFalse = __webpack_require__(/*! ./stubFalse */ "./node_modules/lodash/stubFalse.js");
  35211. /** Detect free variable `exports`. */
  35212. var freeExports = true && exports && !exports.nodeType && exports;
  35213. /** Detect free variable `module`. */
  35214. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  35215. /** Detect the popular CommonJS extension `module.exports`. */
  35216. var moduleExports = freeModule && freeModule.exports === freeExports;
  35217. /** Built-in value references. */
  35218. var Buffer = moduleExports ? root.Buffer : undefined;
  35219. /* Built-in method references for those with the same name as other `lodash` methods. */
  35220. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
  35221. /**
  35222. * Checks if `value` is a buffer.
  35223. *
  35224. * @static
  35225. * @memberOf _
  35226. * @since 4.3.0
  35227. * @category Lang
  35228. * @param {*} value The value to check.
  35229. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  35230. * @example
  35231. *
  35232. * _.isBuffer(new Buffer(2));
  35233. * // => true
  35234. *
  35235. * _.isBuffer(new Uint8Array(2));
  35236. * // => false
  35237. */
  35238. var isBuffer = nativeIsBuffer || stubFalse;
  35239. module.exports = isBuffer;
  35240. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  35241. /***/ }),
  35242. /***/ "./node_modules/lodash/isEmpty.js":
  35243. /*!****************************************!*\
  35244. !*** ./node_modules/lodash/isEmpty.js ***!
  35245. \****************************************/
  35246. /*! no static exports found */
  35247. /***/ (function(module, exports, __webpack_require__) {
  35248. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
  35249. getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
  35250. isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
  35251. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  35252. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
  35253. isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
  35254. isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
  35255. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
  35256. /** `Object#toString` result references. */
  35257. var mapTag = '[object Map]',
  35258. setTag = '[object Set]';
  35259. /** Used for built-in method references. */
  35260. var objectProto = Object.prototype;
  35261. /** Used to check objects for own properties. */
  35262. var hasOwnProperty = objectProto.hasOwnProperty;
  35263. /**
  35264. * Checks if `value` is an empty object, collection, map, or set.
  35265. *
  35266. * Objects are considered empty if they have no own enumerable string keyed
  35267. * properties.
  35268. *
  35269. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  35270. * jQuery-like collections are considered empty if they have a `length` of `0`.
  35271. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  35272. *
  35273. * @static
  35274. * @memberOf _
  35275. * @since 0.1.0
  35276. * @category Lang
  35277. * @param {*} value The value to check.
  35278. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  35279. * @example
  35280. *
  35281. * _.isEmpty(null);
  35282. * // => true
  35283. *
  35284. * _.isEmpty(true);
  35285. * // => true
  35286. *
  35287. * _.isEmpty(1);
  35288. * // => true
  35289. *
  35290. * _.isEmpty([1, 2, 3]);
  35291. * // => false
  35292. *
  35293. * _.isEmpty({ 'a': 1 });
  35294. * // => false
  35295. */
  35296. function isEmpty(value) {
  35297. if (value == null) {
  35298. return true;
  35299. }
  35300. if (isArrayLike(value) &&
  35301. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  35302. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  35303. return !value.length;
  35304. }
  35305. var tag = getTag(value);
  35306. if (tag == mapTag || tag == setTag) {
  35307. return !value.size;
  35308. }
  35309. if (isPrototype(value)) {
  35310. return !baseKeys(value).length;
  35311. }
  35312. for (var key in value) {
  35313. if (hasOwnProperty.call(value, key)) {
  35314. return false;
  35315. }
  35316. }
  35317. return true;
  35318. }
  35319. module.exports = isEmpty;
  35320. /***/ }),
  35321. /***/ "./node_modules/lodash/isFunction.js":
  35322. /*!*******************************************!*\
  35323. !*** ./node_modules/lodash/isFunction.js ***!
  35324. \*******************************************/
  35325. /*! no static exports found */
  35326. /***/ (function(module, exports, __webpack_require__) {
  35327. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  35328. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
  35329. /** `Object#toString` result references. */
  35330. var asyncTag = '[object AsyncFunction]',
  35331. funcTag = '[object Function]',
  35332. genTag = '[object GeneratorFunction]',
  35333. proxyTag = '[object Proxy]';
  35334. /**
  35335. * Checks if `value` is classified as a `Function` object.
  35336. *
  35337. * @static
  35338. * @memberOf _
  35339. * @since 0.1.0
  35340. * @category Lang
  35341. * @param {*} value The value to check.
  35342. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  35343. * @example
  35344. *
  35345. * _.isFunction(_);
  35346. * // => true
  35347. *
  35348. * _.isFunction(/abc/);
  35349. * // => false
  35350. */
  35351. function isFunction(value) {
  35352. if (!isObject(value)) {
  35353. return false;
  35354. }
  35355. // The use of `Object#toString` avoids issues with the `typeof` operator
  35356. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  35357. var tag = baseGetTag(value);
  35358. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  35359. }
  35360. module.exports = isFunction;
  35361. /***/ }),
  35362. /***/ "./node_modules/lodash/isLength.js":
  35363. /*!*****************************************!*\
  35364. !*** ./node_modules/lodash/isLength.js ***!
  35365. \*****************************************/
  35366. /*! no static exports found */
  35367. /***/ (function(module, exports) {
  35368. /** Used as references for various `Number` constants. */
  35369. var MAX_SAFE_INTEGER = 9007199254740991;
  35370. /**
  35371. * Checks if `value` is a valid array-like length.
  35372. *
  35373. * **Note:** This method is loosely based on
  35374. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  35375. *
  35376. * @static
  35377. * @memberOf _
  35378. * @since 4.0.0
  35379. * @category Lang
  35380. * @param {*} value The value to check.
  35381. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  35382. * @example
  35383. *
  35384. * _.isLength(3);
  35385. * // => true
  35386. *
  35387. * _.isLength(Number.MIN_VALUE);
  35388. * // => false
  35389. *
  35390. * _.isLength(Infinity);
  35391. * // => false
  35392. *
  35393. * _.isLength('3');
  35394. * // => false
  35395. */
  35396. function isLength(value) {
  35397. return typeof value == 'number' &&
  35398. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  35399. }
  35400. module.exports = isLength;
  35401. /***/ }),
  35402. /***/ "./node_modules/lodash/isMap.js":
  35403. /*!**************************************!*\
  35404. !*** ./node_modules/lodash/isMap.js ***!
  35405. \**************************************/
  35406. /*! no static exports found */
  35407. /***/ (function(module, exports, __webpack_require__) {
  35408. var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "./node_modules/lodash/_baseIsMap.js"),
  35409. baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
  35410. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
  35411. /* Node.js helper references. */
  35412. var nodeIsMap = nodeUtil && nodeUtil.isMap;
  35413. /**
  35414. * Checks if `value` is classified as a `Map` object.
  35415. *
  35416. * @static
  35417. * @memberOf _
  35418. * @since 4.3.0
  35419. * @category Lang
  35420. * @param {*} value The value to check.
  35421. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  35422. * @example
  35423. *
  35424. * _.isMap(new Map);
  35425. * // => true
  35426. *
  35427. * _.isMap(new WeakMap);
  35428. * // => false
  35429. */
  35430. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  35431. module.exports = isMap;
  35432. /***/ }),
  35433. /***/ "./node_modules/lodash/isObject.js":
  35434. /*!*****************************************!*\
  35435. !*** ./node_modules/lodash/isObject.js ***!
  35436. \*****************************************/
  35437. /*! no static exports found */
  35438. /***/ (function(module, exports) {
  35439. /**
  35440. * Checks if `value` is the
  35441. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  35442. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  35443. *
  35444. * @static
  35445. * @memberOf _
  35446. * @since 0.1.0
  35447. * @category Lang
  35448. * @param {*} value The value to check.
  35449. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  35450. * @example
  35451. *
  35452. * _.isObject({});
  35453. * // => true
  35454. *
  35455. * _.isObject([1, 2, 3]);
  35456. * // => true
  35457. *
  35458. * _.isObject(_.noop);
  35459. * // => true
  35460. *
  35461. * _.isObject(null);
  35462. * // => false
  35463. */
  35464. function isObject(value) {
  35465. var type = typeof value;
  35466. return value != null && (type == 'object' || type == 'function');
  35467. }
  35468. module.exports = isObject;
  35469. /***/ }),
  35470. /***/ "./node_modules/lodash/isObjectLike.js":
  35471. /*!*********************************************!*\
  35472. !*** ./node_modules/lodash/isObjectLike.js ***!
  35473. \*********************************************/
  35474. /*! no static exports found */
  35475. /***/ (function(module, exports) {
  35476. /**
  35477. * Checks if `value` is object-like. A value is object-like if it's not `null`
  35478. * and has a `typeof` result of "object".
  35479. *
  35480. * @static
  35481. * @memberOf _
  35482. * @since 4.0.0
  35483. * @category Lang
  35484. * @param {*} value The value to check.
  35485. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  35486. * @example
  35487. *
  35488. * _.isObjectLike({});
  35489. * // => true
  35490. *
  35491. * _.isObjectLike([1, 2, 3]);
  35492. * // => true
  35493. *
  35494. * _.isObjectLike(_.noop);
  35495. * // => false
  35496. *
  35497. * _.isObjectLike(null);
  35498. * // => false
  35499. */
  35500. function isObjectLike(value) {
  35501. return value != null && typeof value == 'object';
  35502. }
  35503. module.exports = isObjectLike;
  35504. /***/ }),
  35505. /***/ "./node_modules/lodash/isPlainObject.js":
  35506. /*!**********************************************!*\
  35507. !*** ./node_modules/lodash/isPlainObject.js ***!
  35508. \**********************************************/
  35509. /*! no static exports found */
  35510. /***/ (function(module, exports, __webpack_require__) {
  35511. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  35512. getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
  35513. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  35514. /** `Object#toString` result references. */
  35515. var objectTag = '[object Object]';
  35516. /** Used for built-in method references. */
  35517. var funcProto = Function.prototype,
  35518. objectProto = Object.prototype;
  35519. /** Used to resolve the decompiled source of functions. */
  35520. var funcToString = funcProto.toString;
  35521. /** Used to check objects for own properties. */
  35522. var hasOwnProperty = objectProto.hasOwnProperty;
  35523. /** Used to infer the `Object` constructor. */
  35524. var objectCtorString = funcToString.call(Object);
  35525. /**
  35526. * Checks if `value` is a plain object, that is, an object created by the
  35527. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  35528. *
  35529. * @static
  35530. * @memberOf _
  35531. * @since 0.8.0
  35532. * @category Lang
  35533. * @param {*} value The value to check.
  35534. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  35535. * @example
  35536. *
  35537. * function Foo() {
  35538. * this.a = 1;
  35539. * }
  35540. *
  35541. * _.isPlainObject(new Foo);
  35542. * // => false
  35543. *
  35544. * _.isPlainObject([1, 2, 3]);
  35545. * // => false
  35546. *
  35547. * _.isPlainObject({ 'x': 0, 'y': 0 });
  35548. * // => true
  35549. *
  35550. * _.isPlainObject(Object.create(null));
  35551. * // => true
  35552. */
  35553. function isPlainObject(value) {
  35554. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  35555. return false;
  35556. }
  35557. var proto = getPrototype(value);
  35558. if (proto === null) {
  35559. return true;
  35560. }
  35561. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  35562. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  35563. funcToString.call(Ctor) == objectCtorString;
  35564. }
  35565. module.exports = isPlainObject;
  35566. /***/ }),
  35567. /***/ "./node_modules/lodash/isSet.js":
  35568. /*!**************************************!*\
  35569. !*** ./node_modules/lodash/isSet.js ***!
  35570. \**************************************/
  35571. /*! no static exports found */
  35572. /***/ (function(module, exports, __webpack_require__) {
  35573. var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "./node_modules/lodash/_baseIsSet.js"),
  35574. baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
  35575. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
  35576. /* Node.js helper references. */
  35577. var nodeIsSet = nodeUtil && nodeUtil.isSet;
  35578. /**
  35579. * Checks if `value` is classified as a `Set` object.
  35580. *
  35581. * @static
  35582. * @memberOf _
  35583. * @since 4.3.0
  35584. * @category Lang
  35585. * @param {*} value The value to check.
  35586. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  35587. * @example
  35588. *
  35589. * _.isSet(new Set);
  35590. * // => true
  35591. *
  35592. * _.isSet(new WeakSet);
  35593. * // => false
  35594. */
  35595. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  35596. module.exports = isSet;
  35597. /***/ }),
  35598. /***/ "./node_modules/lodash/isString.js":
  35599. /*!*****************************************!*\
  35600. !*** ./node_modules/lodash/isString.js ***!
  35601. \*****************************************/
  35602. /*! no static exports found */
  35603. /***/ (function(module, exports, __webpack_require__) {
  35604. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  35605. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  35606. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  35607. /** `Object#toString` result references. */
  35608. var stringTag = '[object String]';
  35609. /**
  35610. * Checks if `value` is classified as a `String` primitive or object.
  35611. *
  35612. * @static
  35613. * @since 0.1.0
  35614. * @memberOf _
  35615. * @category Lang
  35616. * @param {*} value The value to check.
  35617. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  35618. * @example
  35619. *
  35620. * _.isString('abc');
  35621. * // => true
  35622. *
  35623. * _.isString(1);
  35624. * // => false
  35625. */
  35626. function isString(value) {
  35627. return typeof value == 'string' ||
  35628. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  35629. }
  35630. module.exports = isString;
  35631. /***/ }),
  35632. /***/ "./node_modules/lodash/isSymbol.js":
  35633. /*!*****************************************!*\
  35634. !*** ./node_modules/lodash/isSymbol.js ***!
  35635. \*****************************************/
  35636. /*! no static exports found */
  35637. /***/ (function(module, exports, __webpack_require__) {
  35638. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  35639. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  35640. /** `Object#toString` result references. */
  35641. var symbolTag = '[object Symbol]';
  35642. /**
  35643. * Checks if `value` is classified as a `Symbol` primitive or object.
  35644. *
  35645. * @static
  35646. * @memberOf _
  35647. * @since 4.0.0
  35648. * @category Lang
  35649. * @param {*} value The value to check.
  35650. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  35651. * @example
  35652. *
  35653. * _.isSymbol(Symbol.iterator);
  35654. * // => true
  35655. *
  35656. * _.isSymbol('abc');
  35657. * // => false
  35658. */
  35659. function isSymbol(value) {
  35660. return typeof value == 'symbol' ||
  35661. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  35662. }
  35663. module.exports = isSymbol;
  35664. /***/ }),
  35665. /***/ "./node_modules/lodash/isTypedArray.js":
  35666. /*!*********************************************!*\
  35667. !*** ./node_modules/lodash/isTypedArray.js ***!
  35668. \*********************************************/
  35669. /*! no static exports found */
  35670. /***/ (function(module, exports, __webpack_require__) {
  35671. var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "./node_modules/lodash/_baseIsTypedArray.js"),
  35672. baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
  35673. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
  35674. /* Node.js helper references. */
  35675. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  35676. /**
  35677. * Checks if `value` is classified as a typed array.
  35678. *
  35679. * @static
  35680. * @memberOf _
  35681. * @since 3.0.0
  35682. * @category Lang
  35683. * @param {*} value The value to check.
  35684. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  35685. * @example
  35686. *
  35687. * _.isTypedArray(new Uint8Array);
  35688. * // => true
  35689. *
  35690. * _.isTypedArray([]);
  35691. * // => false
  35692. */
  35693. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  35694. module.exports = isTypedArray;
  35695. /***/ }),
  35696. /***/ "./node_modules/lodash/isUndefined.js":
  35697. /*!********************************************!*\
  35698. !*** ./node_modules/lodash/isUndefined.js ***!
  35699. \********************************************/
  35700. /*! no static exports found */
  35701. /***/ (function(module, exports) {
  35702. /**
  35703. * Checks if `value` is `undefined`.
  35704. *
  35705. * @static
  35706. * @since 0.1.0
  35707. * @memberOf _
  35708. * @category Lang
  35709. * @param {*} value The value to check.
  35710. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  35711. * @example
  35712. *
  35713. * _.isUndefined(void 0);
  35714. * // => true
  35715. *
  35716. * _.isUndefined(null);
  35717. * // => false
  35718. */
  35719. function isUndefined(value) {
  35720. return value === undefined;
  35721. }
  35722. module.exports = isUndefined;
  35723. /***/ }),
  35724. /***/ "./node_modules/lodash/keys.js":
  35725. /*!*************************************!*\
  35726. !*** ./node_modules/lodash/keys.js ***!
  35727. \*************************************/
  35728. /*! no static exports found */
  35729. /***/ (function(module, exports, __webpack_require__) {
  35730. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
  35731. baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
  35732. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
  35733. /**
  35734. * Creates an array of the own enumerable property names of `object`.
  35735. *
  35736. * **Note:** Non-object values are coerced to objects. See the
  35737. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  35738. * for more details.
  35739. *
  35740. * @static
  35741. * @since 0.1.0
  35742. * @memberOf _
  35743. * @category Object
  35744. * @param {Object} object The object to query.
  35745. * @returns {Array} Returns the array of property names.
  35746. * @example
  35747. *
  35748. * function Foo() {
  35749. * this.a = 1;
  35750. * this.b = 2;
  35751. * }
  35752. *
  35753. * Foo.prototype.c = 3;
  35754. *
  35755. * _.keys(new Foo);
  35756. * // => ['a', 'b'] (iteration order is not guaranteed)
  35757. *
  35758. * _.keys('hi');
  35759. * // => ['0', '1']
  35760. */
  35761. function keys(object) {
  35762. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  35763. }
  35764. module.exports = keys;
  35765. /***/ }),
  35766. /***/ "./node_modules/lodash/keysIn.js":
  35767. /*!***************************************!*\
  35768. !*** ./node_modules/lodash/keysIn.js ***!
  35769. \***************************************/
  35770. /*! no static exports found */
  35771. /***/ (function(module, exports, __webpack_require__) {
  35772. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
  35773. baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "./node_modules/lodash/_baseKeysIn.js"),
  35774. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
  35775. /**
  35776. * Creates an array of the own and inherited enumerable property names of `object`.
  35777. *
  35778. * **Note:** Non-object values are coerced to objects.
  35779. *
  35780. * @static
  35781. * @memberOf _
  35782. * @since 3.0.0
  35783. * @category Object
  35784. * @param {Object} object The object to query.
  35785. * @returns {Array} Returns the array of property names.
  35786. * @example
  35787. *
  35788. * function Foo() {
  35789. * this.a = 1;
  35790. * this.b = 2;
  35791. * }
  35792. *
  35793. * Foo.prototype.c = 3;
  35794. *
  35795. * _.keysIn(new Foo);
  35796. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  35797. */
  35798. function keysIn(object) {
  35799. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  35800. }
  35801. module.exports = keysIn;
  35802. /***/ }),
  35803. /***/ "./node_modules/lodash/last.js":
  35804. /*!*************************************!*\
  35805. !*** ./node_modules/lodash/last.js ***!
  35806. \*************************************/
  35807. /*! no static exports found */
  35808. /***/ (function(module, exports) {
  35809. /**
  35810. * Gets the last element of `array`.
  35811. *
  35812. * @static
  35813. * @memberOf _
  35814. * @since 0.1.0
  35815. * @category Array
  35816. * @param {Array} array The array to query.
  35817. * @returns {*} Returns the last element of `array`.
  35818. * @example
  35819. *
  35820. * _.last([1, 2, 3]);
  35821. * // => 3
  35822. */
  35823. function last(array) {
  35824. var length = array == null ? 0 : array.length;
  35825. return length ? array[length - 1] : undefined;
  35826. }
  35827. module.exports = last;
  35828. /***/ }),
  35829. /***/ "./node_modules/lodash/map.js":
  35830. /*!************************************!*\
  35831. !*** ./node_modules/lodash/map.js ***!
  35832. \************************************/
  35833. /*! no static exports found */
  35834. /***/ (function(module, exports, __webpack_require__) {
  35835. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
  35836. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  35837. baseMap = __webpack_require__(/*! ./_baseMap */ "./node_modules/lodash/_baseMap.js"),
  35838. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
  35839. /**
  35840. * Creates an array of values by running each element in `collection` thru
  35841. * `iteratee`. The iteratee is invoked with three arguments:
  35842. * (value, index|key, collection).
  35843. *
  35844. * Many lodash methods are guarded to work as iteratees for methods like
  35845. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  35846. *
  35847. * The guarded methods are:
  35848. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  35849. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  35850. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  35851. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  35852. *
  35853. * @static
  35854. * @memberOf _
  35855. * @since 0.1.0
  35856. * @category Collection
  35857. * @param {Array|Object} collection The collection to iterate over.
  35858. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  35859. * @returns {Array} Returns the new mapped array.
  35860. * @example
  35861. *
  35862. * function square(n) {
  35863. * return n * n;
  35864. * }
  35865. *
  35866. * _.map([4, 8], square);
  35867. * // => [16, 64]
  35868. *
  35869. * _.map({ 'a': 4, 'b': 8 }, square);
  35870. * // => [16, 64] (iteration order is not guaranteed)
  35871. *
  35872. * var users = [
  35873. * { 'user': 'barney' },
  35874. * { 'user': 'fred' }
  35875. * ];
  35876. *
  35877. * // The `_.property` iteratee shorthand.
  35878. * _.map(users, 'user');
  35879. * // => ['barney', 'fred']
  35880. */
  35881. function map(collection, iteratee) {
  35882. var func = isArray(collection) ? arrayMap : baseMap;
  35883. return func(collection, baseIteratee(iteratee, 3));
  35884. }
  35885. module.exports = map;
  35886. /***/ }),
  35887. /***/ "./node_modules/lodash/mapValues.js":
  35888. /*!******************************************!*\
  35889. !*** ./node_modules/lodash/mapValues.js ***!
  35890. \******************************************/
  35891. /*! no static exports found */
  35892. /***/ (function(module, exports, __webpack_require__) {
  35893. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
  35894. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
  35895. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js");
  35896. /**
  35897. * Creates an object with the same keys as `object` and values generated
  35898. * by running each own enumerable string keyed property of `object` thru
  35899. * `iteratee`. The iteratee is invoked with three arguments:
  35900. * (value, key, object).
  35901. *
  35902. * @static
  35903. * @memberOf _
  35904. * @since 2.4.0
  35905. * @category Object
  35906. * @param {Object} object The object to iterate over.
  35907. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  35908. * @returns {Object} Returns the new mapped object.
  35909. * @see _.mapKeys
  35910. * @example
  35911. *
  35912. * var users = {
  35913. * 'fred': { 'user': 'fred', 'age': 40 },
  35914. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  35915. * };
  35916. *
  35917. * _.mapValues(users, function(o) { return o.age; });
  35918. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  35919. *
  35920. * // The `_.property` iteratee shorthand.
  35921. * _.mapValues(users, 'age');
  35922. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  35923. */
  35924. function mapValues(object, iteratee) {
  35925. var result = {};
  35926. iteratee = baseIteratee(iteratee, 3);
  35927. baseForOwn(object, function(value, key, object) {
  35928. baseAssignValue(result, key, iteratee(value, key, object));
  35929. });
  35930. return result;
  35931. }
  35932. module.exports = mapValues;
  35933. /***/ }),
  35934. /***/ "./node_modules/lodash/max.js":
  35935. /*!************************************!*\
  35936. !*** ./node_modules/lodash/max.js ***!
  35937. \************************************/
  35938. /*! no static exports found */
  35939. /***/ (function(module, exports, __webpack_require__) {
  35940. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "./node_modules/lodash/_baseExtremum.js"),
  35941. baseGt = __webpack_require__(/*! ./_baseGt */ "./node_modules/lodash/_baseGt.js"),
  35942. identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
  35943. /**
  35944. * Computes the maximum value of `array`. If `array` is empty or falsey,
  35945. * `undefined` is returned.
  35946. *
  35947. * @static
  35948. * @since 0.1.0
  35949. * @memberOf _
  35950. * @category Math
  35951. * @param {Array} array The array to iterate over.
  35952. * @returns {*} Returns the maximum value.
  35953. * @example
  35954. *
  35955. * _.max([4, 2, 8, 6]);
  35956. * // => 8
  35957. *
  35958. * _.max([]);
  35959. * // => undefined
  35960. */
  35961. function max(array) {
  35962. return (array && array.length)
  35963. ? baseExtremum(array, identity, baseGt)
  35964. : undefined;
  35965. }
  35966. module.exports = max;
  35967. /***/ }),
  35968. /***/ "./node_modules/lodash/memoize.js":
  35969. /*!****************************************!*\
  35970. !*** ./node_modules/lodash/memoize.js ***!
  35971. \****************************************/
  35972. /*! no static exports found */
  35973. /***/ (function(module, exports, __webpack_require__) {
  35974. var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
  35975. /** Error message constants. */
  35976. var FUNC_ERROR_TEXT = 'Expected a function';
  35977. /**
  35978. * Creates a function that memoizes the result of `func`. If `resolver` is
  35979. * provided, it determines the cache key for storing the result based on the
  35980. * arguments provided to the memoized function. By default, the first argument
  35981. * provided to the memoized function is used as the map cache key. The `func`
  35982. * is invoked with the `this` binding of the memoized function.
  35983. *
  35984. * **Note:** The cache is exposed as the `cache` property on the memoized
  35985. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  35986. * constructor with one whose instances implement the
  35987. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  35988. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  35989. *
  35990. * @static
  35991. * @memberOf _
  35992. * @since 0.1.0
  35993. * @category Function
  35994. * @param {Function} func The function to have its output memoized.
  35995. * @param {Function} [resolver] The function to resolve the cache key.
  35996. * @returns {Function} Returns the new memoized function.
  35997. * @example
  35998. *
  35999. * var object = { 'a': 1, 'b': 2 };
  36000. * var other = { 'c': 3, 'd': 4 };
  36001. *
  36002. * var values = _.memoize(_.values);
  36003. * values(object);
  36004. * // => [1, 2]
  36005. *
  36006. * values(other);
  36007. * // => [3, 4]
  36008. *
  36009. * object.a = 2;
  36010. * values(object);
  36011. * // => [1, 2]
  36012. *
  36013. * // Modify the result cache.
  36014. * values.cache.set(object, ['a', 'b']);
  36015. * values(object);
  36016. * // => ['a', 'b']
  36017. *
  36018. * // Replace `_.memoize.Cache`.
  36019. * _.memoize.Cache = WeakMap;
  36020. */
  36021. function memoize(func, resolver) {
  36022. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  36023. throw new TypeError(FUNC_ERROR_TEXT);
  36024. }
  36025. var memoized = function() {
  36026. var args = arguments,
  36027. key = resolver ? resolver.apply(this, args) : args[0],
  36028. cache = memoized.cache;
  36029. if (cache.has(key)) {
  36030. return cache.get(key);
  36031. }
  36032. var result = func.apply(this, args);
  36033. memoized.cache = cache.set(key, result) || cache;
  36034. return result;
  36035. };
  36036. memoized.cache = new (memoize.Cache || MapCache);
  36037. return memoized;
  36038. }
  36039. // Expose `MapCache`.
  36040. memoize.Cache = MapCache;
  36041. module.exports = memoize;
  36042. /***/ }),
  36043. /***/ "./node_modules/lodash/merge.js":
  36044. /*!**************************************!*\
  36045. !*** ./node_modules/lodash/merge.js ***!
  36046. \**************************************/
  36047. /*! no static exports found */
  36048. /***/ (function(module, exports, __webpack_require__) {
  36049. var baseMerge = __webpack_require__(/*! ./_baseMerge */ "./node_modules/lodash/_baseMerge.js"),
  36050. createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js");
  36051. /**
  36052. * This method is like `_.assign` except that it recursively merges own and
  36053. * inherited enumerable string keyed properties of source objects into the
  36054. * destination object. Source properties that resolve to `undefined` are
  36055. * skipped if a destination value exists. Array and plain object properties
  36056. * are merged recursively. Other objects and value types are overridden by
  36057. * assignment. Source objects are applied from left to right. Subsequent
  36058. * sources overwrite property assignments of previous sources.
  36059. *
  36060. * **Note:** This method mutates `object`.
  36061. *
  36062. * @static
  36063. * @memberOf _
  36064. * @since 0.5.0
  36065. * @category Object
  36066. * @param {Object} object The destination object.
  36067. * @param {...Object} [sources] The source objects.
  36068. * @returns {Object} Returns `object`.
  36069. * @example
  36070. *
  36071. * var object = {
  36072. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  36073. * };
  36074. *
  36075. * var other = {
  36076. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  36077. * };
  36078. *
  36079. * _.merge(object, other);
  36080. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  36081. */
  36082. var merge = createAssigner(function(object, source, srcIndex) {
  36083. baseMerge(object, source, srcIndex);
  36084. });
  36085. module.exports = merge;
  36086. /***/ }),
  36087. /***/ "./node_modules/lodash/min.js":
  36088. /*!************************************!*\
  36089. !*** ./node_modules/lodash/min.js ***!
  36090. \************************************/
  36091. /*! no static exports found */
  36092. /***/ (function(module, exports, __webpack_require__) {
  36093. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "./node_modules/lodash/_baseExtremum.js"),
  36094. baseLt = __webpack_require__(/*! ./_baseLt */ "./node_modules/lodash/_baseLt.js"),
  36095. identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
  36096. /**
  36097. * Computes the minimum value of `array`. If `array` is empty or falsey,
  36098. * `undefined` is returned.
  36099. *
  36100. * @static
  36101. * @since 0.1.0
  36102. * @memberOf _
  36103. * @category Math
  36104. * @param {Array} array The array to iterate over.
  36105. * @returns {*} Returns the minimum value.
  36106. * @example
  36107. *
  36108. * _.min([4, 2, 8, 6]);
  36109. * // => 2
  36110. *
  36111. * _.min([]);
  36112. * // => undefined
  36113. */
  36114. function min(array) {
  36115. return (array && array.length)
  36116. ? baseExtremum(array, identity, baseLt)
  36117. : undefined;
  36118. }
  36119. module.exports = min;
  36120. /***/ }),
  36121. /***/ "./node_modules/lodash/minBy.js":
  36122. /*!**************************************!*\
  36123. !*** ./node_modules/lodash/minBy.js ***!
  36124. \**************************************/
  36125. /*! no static exports found */
  36126. /***/ (function(module, exports, __webpack_require__) {
  36127. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "./node_modules/lodash/_baseExtremum.js"),
  36128. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  36129. baseLt = __webpack_require__(/*! ./_baseLt */ "./node_modules/lodash/_baseLt.js");
  36130. /**
  36131. * This method is like `_.min` except that it accepts `iteratee` which is
  36132. * invoked for each element in `array` to generate the criterion by which
  36133. * the value is ranked. The iteratee is invoked with one argument: (value).
  36134. *
  36135. * @static
  36136. * @memberOf _
  36137. * @since 4.0.0
  36138. * @category Math
  36139. * @param {Array} array The array to iterate over.
  36140. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  36141. * @returns {*} Returns the minimum value.
  36142. * @example
  36143. *
  36144. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  36145. *
  36146. * _.minBy(objects, function(o) { return o.n; });
  36147. * // => { 'n': 1 }
  36148. *
  36149. * // The `_.property` iteratee shorthand.
  36150. * _.minBy(objects, 'n');
  36151. * // => { 'n': 1 }
  36152. */
  36153. function minBy(array, iteratee) {
  36154. return (array && array.length)
  36155. ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
  36156. : undefined;
  36157. }
  36158. module.exports = minBy;
  36159. /***/ }),
  36160. /***/ "./node_modules/lodash/noop.js":
  36161. /*!*************************************!*\
  36162. !*** ./node_modules/lodash/noop.js ***!
  36163. \*************************************/
  36164. /*! no static exports found */
  36165. /***/ (function(module, exports) {
  36166. /**
  36167. * This method returns `undefined`.
  36168. *
  36169. * @static
  36170. * @memberOf _
  36171. * @since 2.3.0
  36172. * @category Util
  36173. * @example
  36174. *
  36175. * _.times(2, _.noop);
  36176. * // => [undefined, undefined]
  36177. */
  36178. function noop() {
  36179. // No operation performed.
  36180. }
  36181. module.exports = noop;
  36182. /***/ }),
  36183. /***/ "./node_modules/lodash/now.js":
  36184. /*!************************************!*\
  36185. !*** ./node_modules/lodash/now.js ***!
  36186. \************************************/
  36187. /*! no static exports found */
  36188. /***/ (function(module, exports, __webpack_require__) {
  36189. var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  36190. /**
  36191. * Gets the timestamp of the number of milliseconds that have elapsed since
  36192. * the Unix epoch (1 January 1970 00:00:00 UTC).
  36193. *
  36194. * @static
  36195. * @memberOf _
  36196. * @since 2.4.0
  36197. * @category Date
  36198. * @returns {number} Returns the timestamp.
  36199. * @example
  36200. *
  36201. * _.defer(function(stamp) {
  36202. * console.log(_.now() - stamp);
  36203. * }, _.now());
  36204. * // => Logs the number of milliseconds it took for the deferred invocation.
  36205. */
  36206. var now = function() {
  36207. return root.Date.now();
  36208. };
  36209. module.exports = now;
  36210. /***/ }),
  36211. /***/ "./node_modules/lodash/pick.js":
  36212. /*!*************************************!*\
  36213. !*** ./node_modules/lodash/pick.js ***!
  36214. \*************************************/
  36215. /*! no static exports found */
  36216. /***/ (function(module, exports, __webpack_require__) {
  36217. var basePick = __webpack_require__(/*! ./_basePick */ "./node_modules/lodash/_basePick.js"),
  36218. flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js");
  36219. /**
  36220. * Creates an object composed of the picked `object` properties.
  36221. *
  36222. * @static
  36223. * @since 0.1.0
  36224. * @memberOf _
  36225. * @category Object
  36226. * @param {Object} object The source object.
  36227. * @param {...(string|string[])} [paths] The property paths to pick.
  36228. * @returns {Object} Returns the new object.
  36229. * @example
  36230. *
  36231. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  36232. *
  36233. * _.pick(object, ['a', 'c']);
  36234. * // => { 'a': 1, 'c': 3 }
  36235. */
  36236. var pick = flatRest(function(object, paths) {
  36237. return object == null ? {} : basePick(object, paths);
  36238. });
  36239. module.exports = pick;
  36240. /***/ }),
  36241. /***/ "./node_modules/lodash/property.js":
  36242. /*!*****************************************!*\
  36243. !*** ./node_modules/lodash/property.js ***!
  36244. \*****************************************/
  36245. /*! no static exports found */
  36246. /***/ (function(module, exports, __webpack_require__) {
  36247. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js"),
  36248. basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "./node_modules/lodash/_basePropertyDeep.js"),
  36249. isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
  36250. toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
  36251. /**
  36252. * Creates a function that returns the value at `path` of a given object.
  36253. *
  36254. * @static
  36255. * @memberOf _
  36256. * @since 2.4.0
  36257. * @category Util
  36258. * @param {Array|string} path The path of the property to get.
  36259. * @returns {Function} Returns the new accessor function.
  36260. * @example
  36261. *
  36262. * var objects = [
  36263. * { 'a': { 'b': 2 } },
  36264. * { 'a': { 'b': 1 } }
  36265. * ];
  36266. *
  36267. * _.map(objects, _.property('a.b'));
  36268. * // => [2, 1]
  36269. *
  36270. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  36271. * // => [1, 2]
  36272. */
  36273. function property(path) {
  36274. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  36275. }
  36276. module.exports = property;
  36277. /***/ }),
  36278. /***/ "./node_modules/lodash/range.js":
  36279. /*!**************************************!*\
  36280. !*** ./node_modules/lodash/range.js ***!
  36281. \**************************************/
  36282. /*! no static exports found */
  36283. /***/ (function(module, exports, __webpack_require__) {
  36284. var createRange = __webpack_require__(/*! ./_createRange */ "./node_modules/lodash/_createRange.js");
  36285. /**
  36286. * Creates an array of numbers (positive and/or negative) progressing from
  36287. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  36288. * `start` is specified without an `end` or `step`. If `end` is not specified,
  36289. * it's set to `start` with `start` then set to `0`.
  36290. *
  36291. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  36292. * floating-point values which can produce unexpected results.
  36293. *
  36294. * @static
  36295. * @since 0.1.0
  36296. * @memberOf _
  36297. * @category Util
  36298. * @param {number} [start=0] The start of the range.
  36299. * @param {number} end The end of the range.
  36300. * @param {number} [step=1] The value to increment or decrement by.
  36301. * @returns {Array} Returns the range of numbers.
  36302. * @see _.inRange, _.rangeRight
  36303. * @example
  36304. *
  36305. * _.range(4);
  36306. * // => [0, 1, 2, 3]
  36307. *
  36308. * _.range(-4);
  36309. * // => [0, -1, -2, -3]
  36310. *
  36311. * _.range(1, 5);
  36312. * // => [1, 2, 3, 4]
  36313. *
  36314. * _.range(0, 20, 5);
  36315. * // => [0, 5, 10, 15]
  36316. *
  36317. * _.range(0, -4, -1);
  36318. * // => [0, -1, -2, -3]
  36319. *
  36320. * _.range(1, 4, 0);
  36321. * // => [1, 1, 1]
  36322. *
  36323. * _.range(0);
  36324. * // => []
  36325. */
  36326. var range = createRange();
  36327. module.exports = range;
  36328. /***/ }),
  36329. /***/ "./node_modules/lodash/reduce.js":
  36330. /*!***************************************!*\
  36331. !*** ./node_modules/lodash/reduce.js ***!
  36332. \***************************************/
  36333. /*! no static exports found */
  36334. /***/ (function(module, exports, __webpack_require__) {
  36335. var arrayReduce = __webpack_require__(/*! ./_arrayReduce */ "./node_modules/lodash/_arrayReduce.js"),
  36336. baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"),
  36337. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  36338. baseReduce = __webpack_require__(/*! ./_baseReduce */ "./node_modules/lodash/_baseReduce.js"),
  36339. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
  36340. /**
  36341. * Reduces `collection` to a value which is the accumulated result of running
  36342. * each element in `collection` thru `iteratee`, where each successive
  36343. * invocation is supplied the return value of the previous. If `accumulator`
  36344. * is not given, the first element of `collection` is used as the initial
  36345. * value. The iteratee is invoked with four arguments:
  36346. * (accumulator, value, index|key, collection).
  36347. *
  36348. * Many lodash methods are guarded to work as iteratees for methods like
  36349. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  36350. *
  36351. * The guarded methods are:
  36352. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  36353. * and `sortBy`
  36354. *
  36355. * @static
  36356. * @memberOf _
  36357. * @since 0.1.0
  36358. * @category Collection
  36359. * @param {Array|Object} collection The collection to iterate over.
  36360. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  36361. * @param {*} [accumulator] The initial value.
  36362. * @returns {*} Returns the accumulated value.
  36363. * @see _.reduceRight
  36364. * @example
  36365. *
  36366. * _.reduce([1, 2], function(sum, n) {
  36367. * return sum + n;
  36368. * }, 0);
  36369. * // => 3
  36370. *
  36371. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  36372. * (result[value] || (result[value] = [])).push(key);
  36373. * return result;
  36374. * }, {});
  36375. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  36376. */
  36377. function reduce(collection, iteratee, accumulator) {
  36378. var func = isArray(collection) ? arrayReduce : baseReduce,
  36379. initAccum = arguments.length < 3;
  36380. return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  36381. }
  36382. module.exports = reduce;
  36383. /***/ }),
  36384. /***/ "./node_modules/lodash/size.js":
  36385. /*!*************************************!*\
  36386. !*** ./node_modules/lodash/size.js ***!
  36387. \*************************************/
  36388. /*! no static exports found */
  36389. /***/ (function(module, exports, __webpack_require__) {
  36390. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
  36391. getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
  36392. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
  36393. isString = __webpack_require__(/*! ./isString */ "./node_modules/lodash/isString.js"),
  36394. stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js");
  36395. /** `Object#toString` result references. */
  36396. var mapTag = '[object Map]',
  36397. setTag = '[object Set]';
  36398. /**
  36399. * Gets the size of `collection` by returning its length for array-like
  36400. * values or the number of own enumerable string keyed properties for objects.
  36401. *
  36402. * @static
  36403. * @memberOf _
  36404. * @since 0.1.0
  36405. * @category Collection
  36406. * @param {Array|Object|string} collection The collection to inspect.
  36407. * @returns {number} Returns the collection size.
  36408. * @example
  36409. *
  36410. * _.size([1, 2, 3]);
  36411. * // => 3
  36412. *
  36413. * _.size({ 'a': 1, 'b': 2 });
  36414. * // => 2
  36415. *
  36416. * _.size('pebbles');
  36417. * // => 7
  36418. */
  36419. function size(collection) {
  36420. if (collection == null) {
  36421. return 0;
  36422. }
  36423. if (isArrayLike(collection)) {
  36424. return isString(collection) ? stringSize(collection) : collection.length;
  36425. }
  36426. var tag = getTag(collection);
  36427. if (tag == mapTag || tag == setTag) {
  36428. return collection.size;
  36429. }
  36430. return baseKeys(collection).length;
  36431. }
  36432. module.exports = size;
  36433. /***/ }),
  36434. /***/ "./node_modules/lodash/sortBy.js":
  36435. /*!***************************************!*\
  36436. !*** ./node_modules/lodash/sortBy.js ***!
  36437. \***************************************/
  36438. /*! no static exports found */
  36439. /***/ (function(module, exports, __webpack_require__) {
  36440. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js"),
  36441. baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "./node_modules/lodash/_baseOrderBy.js"),
  36442. baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
  36443. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");
  36444. /**
  36445. * Creates an array of elements, sorted in ascending order by the results of
  36446. * running each element in a collection thru each iteratee. This method
  36447. * performs a stable sort, that is, it preserves the original sort order of
  36448. * equal elements. The iteratees are invoked with one argument: (value).
  36449. *
  36450. * @static
  36451. * @memberOf _
  36452. * @since 0.1.0
  36453. * @category Collection
  36454. * @param {Array|Object} collection The collection to iterate over.
  36455. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  36456. * The iteratees to sort by.
  36457. * @returns {Array} Returns the new sorted array.
  36458. * @example
  36459. *
  36460. * var users = [
  36461. * { 'user': 'fred', 'age': 48 },
  36462. * { 'user': 'barney', 'age': 36 },
  36463. * { 'user': 'fred', 'age': 40 },
  36464. * { 'user': 'barney', 'age': 34 }
  36465. * ];
  36466. *
  36467. * _.sortBy(users, [function(o) { return o.user; }]);
  36468. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  36469. *
  36470. * _.sortBy(users, ['user', 'age']);
  36471. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  36472. */
  36473. var sortBy = baseRest(function(collection, iteratees) {
  36474. if (collection == null) {
  36475. return [];
  36476. }
  36477. var length = iteratees.length;
  36478. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  36479. iteratees = [];
  36480. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  36481. iteratees = [iteratees[0]];
  36482. }
  36483. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  36484. });
  36485. module.exports = sortBy;
  36486. /***/ }),
  36487. /***/ "./node_modules/lodash/stubArray.js":
  36488. /*!******************************************!*\
  36489. !*** ./node_modules/lodash/stubArray.js ***!
  36490. \******************************************/
  36491. /*! no static exports found */
  36492. /***/ (function(module, exports) {
  36493. /**
  36494. * This method returns a new empty array.
  36495. *
  36496. * @static
  36497. * @memberOf _
  36498. * @since 4.13.0
  36499. * @category Util
  36500. * @returns {Array} Returns the new empty array.
  36501. * @example
  36502. *
  36503. * var arrays = _.times(2, _.stubArray);
  36504. *
  36505. * console.log(arrays);
  36506. * // => [[], []]
  36507. *
  36508. * console.log(arrays[0] === arrays[1]);
  36509. * // => false
  36510. */
  36511. function stubArray() {
  36512. return [];
  36513. }
  36514. module.exports = stubArray;
  36515. /***/ }),
  36516. /***/ "./node_modules/lodash/stubFalse.js":
  36517. /*!******************************************!*\
  36518. !*** ./node_modules/lodash/stubFalse.js ***!
  36519. \******************************************/
  36520. /*! no static exports found */
  36521. /***/ (function(module, exports) {
  36522. /**
  36523. * This method returns `false`.
  36524. *
  36525. * @static
  36526. * @memberOf _
  36527. * @since 4.13.0
  36528. * @category Util
  36529. * @returns {boolean} Returns `false`.
  36530. * @example
  36531. *
  36532. * _.times(2, _.stubFalse);
  36533. * // => [false, false]
  36534. */
  36535. function stubFalse() {
  36536. return false;
  36537. }
  36538. module.exports = stubFalse;
  36539. /***/ }),
  36540. /***/ "./node_modules/lodash/toFinite.js":
  36541. /*!*****************************************!*\
  36542. !*** ./node_modules/lodash/toFinite.js ***!
  36543. \*****************************************/
  36544. /*! no static exports found */
  36545. /***/ (function(module, exports, __webpack_require__) {
  36546. var toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");
  36547. /** Used as references for various `Number` constants. */
  36548. var INFINITY = 1 / 0,
  36549. MAX_INTEGER = 1.7976931348623157e+308;
  36550. /**
  36551. * Converts `value` to a finite number.
  36552. *
  36553. * @static
  36554. * @memberOf _
  36555. * @since 4.12.0
  36556. * @category Lang
  36557. * @param {*} value The value to convert.
  36558. * @returns {number} Returns the converted number.
  36559. * @example
  36560. *
  36561. * _.toFinite(3.2);
  36562. * // => 3.2
  36563. *
  36564. * _.toFinite(Number.MIN_VALUE);
  36565. * // => 5e-324
  36566. *
  36567. * _.toFinite(Infinity);
  36568. * // => 1.7976931348623157e+308
  36569. *
  36570. * _.toFinite('3.2');
  36571. * // => 3.2
  36572. */
  36573. function toFinite(value) {
  36574. if (!value) {
  36575. return value === 0 ? value : 0;
  36576. }
  36577. value = toNumber(value);
  36578. if (value === INFINITY || value === -INFINITY) {
  36579. var sign = (value < 0 ? -1 : 1);
  36580. return sign * MAX_INTEGER;
  36581. }
  36582. return value === value ? value : 0;
  36583. }
  36584. module.exports = toFinite;
  36585. /***/ }),
  36586. /***/ "./node_modules/lodash/toInteger.js":
  36587. /*!******************************************!*\
  36588. !*** ./node_modules/lodash/toInteger.js ***!
  36589. \******************************************/
  36590. /*! no static exports found */
  36591. /***/ (function(module, exports, __webpack_require__) {
  36592. var toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");
  36593. /**
  36594. * Converts `value` to an integer.
  36595. *
  36596. * **Note:** This method is loosely based on
  36597. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  36598. *
  36599. * @static
  36600. * @memberOf _
  36601. * @since 4.0.0
  36602. * @category Lang
  36603. * @param {*} value The value to convert.
  36604. * @returns {number} Returns the converted integer.
  36605. * @example
  36606. *
  36607. * _.toInteger(3.2);
  36608. * // => 3
  36609. *
  36610. * _.toInteger(Number.MIN_VALUE);
  36611. * // => 0
  36612. *
  36613. * _.toInteger(Infinity);
  36614. * // => 1.7976931348623157e+308
  36615. *
  36616. * _.toInteger('3.2');
  36617. * // => 3
  36618. */
  36619. function toInteger(value) {
  36620. var result = toFinite(value),
  36621. remainder = result % 1;
  36622. return result === result ? (remainder ? result - remainder : result) : 0;
  36623. }
  36624. module.exports = toInteger;
  36625. /***/ }),
  36626. /***/ "./node_modules/lodash/toNumber.js":
  36627. /*!*****************************************!*\
  36628. !*** ./node_modules/lodash/toNumber.js ***!
  36629. \*****************************************/
  36630. /*! no static exports found */
  36631. /***/ (function(module, exports, __webpack_require__) {
  36632. var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  36633. isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  36634. /** Used as references for various `Number` constants. */
  36635. var NAN = 0 / 0;
  36636. /** Used to match leading and trailing whitespace. */
  36637. var reTrim = /^\s+|\s+$/g;
  36638. /** Used to detect bad signed hexadecimal string values. */
  36639. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  36640. /** Used to detect binary string values. */
  36641. var reIsBinary = /^0b[01]+$/i;
  36642. /** Used to detect octal string values. */
  36643. var reIsOctal = /^0o[0-7]+$/i;
  36644. /** Built-in method references without a dependency on `root`. */
  36645. var freeParseInt = parseInt;
  36646. /**
  36647. * Converts `value` to a number.
  36648. *
  36649. * @static
  36650. * @memberOf _
  36651. * @since 4.0.0
  36652. * @category Lang
  36653. * @param {*} value The value to process.
  36654. * @returns {number} Returns the number.
  36655. * @example
  36656. *
  36657. * _.toNumber(3.2);
  36658. * // => 3.2
  36659. *
  36660. * _.toNumber(Number.MIN_VALUE);
  36661. * // => 5e-324
  36662. *
  36663. * _.toNumber(Infinity);
  36664. * // => Infinity
  36665. *
  36666. * _.toNumber('3.2');
  36667. * // => 3.2
  36668. */
  36669. function toNumber(value) {
  36670. if (typeof value == 'number') {
  36671. return value;
  36672. }
  36673. if (isSymbol(value)) {
  36674. return NAN;
  36675. }
  36676. if (isObject(value)) {
  36677. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  36678. value = isObject(other) ? (other + '') : other;
  36679. }
  36680. if (typeof value != 'string') {
  36681. return value === 0 ? value : +value;
  36682. }
  36683. value = value.replace(reTrim, '');
  36684. var isBinary = reIsBinary.test(value);
  36685. return (isBinary || reIsOctal.test(value))
  36686. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  36687. : (reIsBadHex.test(value) ? NAN : +value);
  36688. }
  36689. module.exports = toNumber;
  36690. /***/ }),
  36691. /***/ "./node_modules/lodash/toPlainObject.js":
  36692. /*!**********************************************!*\
  36693. !*** ./node_modules/lodash/toPlainObject.js ***!
  36694. \**********************************************/
  36695. /*! no static exports found */
  36696. /***/ (function(module, exports, __webpack_require__) {
  36697. var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
  36698. keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
  36699. /**
  36700. * Converts `value` to a plain object flattening inherited enumerable string
  36701. * keyed properties of `value` to own properties of the plain object.
  36702. *
  36703. * @static
  36704. * @memberOf _
  36705. * @since 3.0.0
  36706. * @category Lang
  36707. * @param {*} value The value to convert.
  36708. * @returns {Object} Returns the converted plain object.
  36709. * @example
  36710. *
  36711. * function Foo() {
  36712. * this.b = 2;
  36713. * }
  36714. *
  36715. * Foo.prototype.c = 3;
  36716. *
  36717. * _.assign({ 'a': 1 }, new Foo);
  36718. * // => { 'a': 1, 'b': 2 }
  36719. *
  36720. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  36721. * // => { 'a': 1, 'b': 2, 'c': 3 }
  36722. */
  36723. function toPlainObject(value) {
  36724. return copyObject(value, keysIn(value));
  36725. }
  36726. module.exports = toPlainObject;
  36727. /***/ }),
  36728. /***/ "./node_modules/lodash/toString.js":
  36729. /*!*****************************************!*\
  36730. !*** ./node_modules/lodash/toString.js ***!
  36731. \*****************************************/
  36732. /*! no static exports found */
  36733. /***/ (function(module, exports, __webpack_require__) {
  36734. var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js");
  36735. /**
  36736. * Converts `value` to a string. An empty string is returned for `null`
  36737. * and `undefined` values. The sign of `-0` is preserved.
  36738. *
  36739. * @static
  36740. * @memberOf _
  36741. * @since 4.0.0
  36742. * @category Lang
  36743. * @param {*} value The value to convert.
  36744. * @returns {string} Returns the converted string.
  36745. * @example
  36746. *
  36747. * _.toString(null);
  36748. * // => ''
  36749. *
  36750. * _.toString(-0);
  36751. * // => '-0'
  36752. *
  36753. * _.toString([1, 2, 3]);
  36754. * // => '1,2,3'
  36755. */
  36756. function toString(value) {
  36757. return value == null ? '' : baseToString(value);
  36758. }
  36759. module.exports = toString;
  36760. /***/ }),
  36761. /***/ "./node_modules/lodash/transform.js":
  36762. /*!******************************************!*\
  36763. !*** ./node_modules/lodash/transform.js ***!
  36764. \******************************************/
  36765. /*! no static exports found */
  36766. /***/ (function(module, exports, __webpack_require__) {
  36767. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
  36768. baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
  36769. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
  36770. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  36771. getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
  36772. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  36773. isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
  36774. isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
  36775. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  36776. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
  36777. /**
  36778. * An alternative to `_.reduce`; this method transforms `object` to a new
  36779. * `accumulator` object which is the result of running each of its own
  36780. * enumerable string keyed properties thru `iteratee`, with each invocation
  36781. * potentially mutating the `accumulator` object. If `accumulator` is not
  36782. * provided, a new object with the same `[[Prototype]]` will be used. The
  36783. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  36784. * Iteratee functions may exit iteration early by explicitly returning `false`.
  36785. *
  36786. * @static
  36787. * @memberOf _
  36788. * @since 1.3.0
  36789. * @category Object
  36790. * @param {Object} object The object to iterate over.
  36791. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  36792. * @param {*} [accumulator] The custom accumulator value.
  36793. * @returns {*} Returns the accumulated value.
  36794. * @example
  36795. *
  36796. * _.transform([2, 3, 4], function(result, n) {
  36797. * result.push(n *= n);
  36798. * return n % 2 == 0;
  36799. * }, []);
  36800. * // => [4, 9]
  36801. *
  36802. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  36803. * (result[value] || (result[value] = [])).push(key);
  36804. * }, {});
  36805. * // => { '1': ['a', 'c'], '2': ['b'] }
  36806. */
  36807. function transform(object, iteratee, accumulator) {
  36808. var isArr = isArray(object),
  36809. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  36810. iteratee = baseIteratee(iteratee, 4);
  36811. if (accumulator == null) {
  36812. var Ctor = object && object.constructor;
  36813. if (isArrLike) {
  36814. accumulator = isArr ? new Ctor : [];
  36815. }
  36816. else if (isObject(object)) {
  36817. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  36818. }
  36819. else {
  36820. accumulator = {};
  36821. }
  36822. }
  36823. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  36824. return iteratee(accumulator, value, index, object);
  36825. });
  36826. return accumulator;
  36827. }
  36828. module.exports = transform;
  36829. /***/ }),
  36830. /***/ "./node_modules/lodash/union.js":
  36831. /*!**************************************!*\
  36832. !*** ./node_modules/lodash/union.js ***!
  36833. \**************************************/
  36834. /*! no static exports found */
  36835. /***/ (function(module, exports, __webpack_require__) {
  36836. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js"),
  36837. baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
  36838. baseUniq = __webpack_require__(/*! ./_baseUniq */ "./node_modules/lodash/_baseUniq.js"),
  36839. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js");
  36840. /**
  36841. * Creates an array of unique values, in order, from all given arrays using
  36842. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  36843. * for equality comparisons.
  36844. *
  36845. * @static
  36846. * @memberOf _
  36847. * @since 0.1.0
  36848. * @category Array
  36849. * @param {...Array} [arrays] The arrays to inspect.
  36850. * @returns {Array} Returns the new array of combined values.
  36851. * @example
  36852. *
  36853. * _.union([2], [1, 2]);
  36854. * // => [2, 1]
  36855. */
  36856. var union = baseRest(function(arrays) {
  36857. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  36858. });
  36859. module.exports = union;
  36860. /***/ }),
  36861. /***/ "./node_modules/lodash/uniqueId.js":
  36862. /*!*****************************************!*\
  36863. !*** ./node_modules/lodash/uniqueId.js ***!
  36864. \*****************************************/
  36865. /*! no static exports found */
  36866. /***/ (function(module, exports, __webpack_require__) {
  36867. var toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
  36868. /** Used to generate unique IDs. */
  36869. var idCounter = 0;
  36870. /**
  36871. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  36872. *
  36873. * @static
  36874. * @since 0.1.0
  36875. * @memberOf _
  36876. * @category Util
  36877. * @param {string} [prefix=''] The value to prefix the ID with.
  36878. * @returns {string} Returns the unique ID.
  36879. * @example
  36880. *
  36881. * _.uniqueId('contact_');
  36882. * // => 'contact_104'
  36883. *
  36884. * _.uniqueId();
  36885. * // => '105'
  36886. */
  36887. function uniqueId(prefix) {
  36888. var id = ++idCounter;
  36889. return toString(prefix) + id;
  36890. }
  36891. module.exports = uniqueId;
  36892. /***/ }),
  36893. /***/ "./node_modules/lodash/values.js":
  36894. /*!***************************************!*\
  36895. !*** ./node_modules/lodash/values.js ***!
  36896. \***************************************/
  36897. /*! no static exports found */
  36898. /***/ (function(module, exports, __webpack_require__) {
  36899. var baseValues = __webpack_require__(/*! ./_baseValues */ "./node_modules/lodash/_baseValues.js"),
  36900. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  36901. /**
  36902. * Creates an array of the own enumerable string keyed property values of `object`.
  36903. *
  36904. * **Note:** Non-object values are coerced to objects.
  36905. *
  36906. * @static
  36907. * @since 0.1.0
  36908. * @memberOf _
  36909. * @category Object
  36910. * @param {Object} object The object to query.
  36911. * @returns {Array} Returns the array of property values.
  36912. * @example
  36913. *
  36914. * function Foo() {
  36915. * this.a = 1;
  36916. * this.b = 2;
  36917. * }
  36918. *
  36919. * Foo.prototype.c = 3;
  36920. *
  36921. * _.values(new Foo);
  36922. * // => [1, 2] (iteration order is not guaranteed)
  36923. *
  36924. * _.values('hi');
  36925. * // => ['h', 'i']
  36926. */
  36927. function values(object) {
  36928. return object == null ? [] : baseValues(object, keys(object));
  36929. }
  36930. module.exports = values;
  36931. /***/ }),
  36932. /***/ "./node_modules/lodash/zipObject.js":
  36933. /*!******************************************!*\
  36934. !*** ./node_modules/lodash/zipObject.js ***!
  36935. \******************************************/
  36936. /*! no static exports found */
  36937. /***/ (function(module, exports, __webpack_require__) {
  36938. var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
  36939. baseZipObject = __webpack_require__(/*! ./_baseZipObject */ "./node_modules/lodash/_baseZipObject.js");
  36940. /**
  36941. * This method is like `_.fromPairs` except that it accepts two arrays,
  36942. * one of property identifiers and one of corresponding values.
  36943. *
  36944. * @static
  36945. * @memberOf _
  36946. * @since 0.4.0
  36947. * @category Array
  36948. * @param {Array} [props=[]] The property identifiers.
  36949. * @param {Array} [values=[]] The property values.
  36950. * @returns {Object} Returns the new object.
  36951. * @example
  36952. *
  36953. * _.zipObject(['a', 'b'], [1, 2]);
  36954. * // => { 'a': 1, 'b': 2 }
  36955. */
  36956. function zipObject(props, values) {
  36957. return baseZipObject(props || [], values || [], assignValue);
  36958. }
  36959. module.exports = zipObject;
  36960. /***/ }),
  36961. /***/ "./node_modules/moment-mini/locale sync recursive ^\\.\\/.*$":
  36962. /*!*******************************************************!*\
  36963. !*** ./node_modules/moment-mini/locale sync ^\.\/.*$ ***!
  36964. \*******************************************************/
  36965. /*! no static exports found */
  36966. /***/ (function(module, exports, __webpack_require__) {
  36967. var map = {
  36968. "./locale": "./node_modules/moment-mini/locale/locale.js",
  36969. "./locale.js": "./node_modules/moment-mini/locale/locale.js"
  36970. };
  36971. function webpackContext(req) {
  36972. var id = webpackContextResolve(req);
  36973. return __webpack_require__(id);
  36974. }
  36975. function webpackContextResolve(req) {
  36976. if(!__webpack_require__.o(map, req)) {
  36977. var e = new Error("Cannot find module '" + req + "'");
  36978. e.code = 'MODULE_NOT_FOUND';
  36979. throw e;
  36980. }
  36981. return map[req];
  36982. }
  36983. webpackContext.keys = function webpackContextKeys() {
  36984. return Object.keys(map);
  36985. };
  36986. webpackContext.resolve = webpackContextResolve;
  36987. module.exports = webpackContext;
  36988. webpackContext.id = "./node_modules/moment-mini/locale sync recursive ^\\.\\/.*$";
  36989. /***/ }),
  36990. /***/ "./node_modules/moment-mini/locale/locale.js":
  36991. /*!***************************************************!*\
  36992. !*** ./node_modules/moment-mini/locale/locale.js ***!
  36993. \***************************************************/
  36994. /*! no static exports found */
  36995. /***/ (function(module, exports) {
  36996. /***/ }),
  36997. /***/ "./node_modules/moment-mini/moment.min.js":
  36998. /*!************************************************!*\
  36999. !*** ./node_modules/moment-mini/moment.min.js ***!
  37000. \************************************************/
  37001. /*! no static exports found */
  37002. /***/ (function(module, exports, __webpack_require__) {
  37003. /* 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 h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(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 Tt(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 v(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 p(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 k(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function S(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function D(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=S(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&&D(e[s])!==D(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 b(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(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 C(e,t){var n=e.toLowerCase();W[n]=W[n+"s"]=W[t]=e}function H(e){return"string"==typeof e?W[e]||W[e.toLowerCase()]:void 0}function R(e){var t,n,s={};for(n in e)m(e,n)&&(t=H(n))&&(s[t]=e[n]);return s}var U={};function F(e,t){U[e]=t}function L(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 L(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+=b(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]=b(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(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var de={};function ce(e,n){var t,s=n;for("string"==typeof e&&(e=[e]),h(n)&&(s=function(e,t){t[n]=D(e)}),t=0;t<e.length;t++)de[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,ve=4,pe=5,we=6,Me=7,ke=8;function Se(e){return De(e)?366:365}function De(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"),C("year","y"),F("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):D(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 D(e)+(68<D(e)?1900:2e3)};var Ye,Oe=Te("FullYear",!0);function Te(t,n){return function(e){return null!=e?(xe(this,t,e),c.updateOffset(this,n),this):be(this,t)}}function be(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function xe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&De(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?De(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)}),C("month","M"),F("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]=D(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?/,Ce="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=D(t);else if(!h(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 Ue(e){return null!=e?(Re(this,e),c.updateOffset(this,!0),this):be(this,"Month")}var Fe=ae;var Le=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]=he(s[t]),i[t]=he(i[t]);for(t=0;t<24;t++)r[t]=he(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;if(e<100&&0<=e){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return 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 a=o<=0?Se(r=e-1)+o:o>Se(e)?(r=e+1,o-Se(e)):(r=e,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(Se(e)-s+i)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),F("week",5),F("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)]=D(e)});function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}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"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),F("day",11),F("weekday",11),F("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]=D(e)});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var $e="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var qe=ae;var Je=ae;var Be=ae;function Qe(){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]=he(o[t]),u[t]=he(u[t]),l[t]=he(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 Xe(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Xe),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+Xe.apply(this)+L(this.minutes(),2)}),I("hmmss",0,0,function(){return""+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),C("hour","h"),F("hour",13),ue("a",et),ue("A",et),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=D(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]=D(e),g(n).bigHour=!0}),ce("hmm",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0}),ce("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0}),ce("Hmm",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s))}),ce("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i))});var tt,nt=Te("Hours",!0),st={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:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function ot(e){var t=null;if(!it[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=tt._abbr,__webpack_require__("./node_modules/moment-mini/locale sync recursive ^\\.\\/.*$")("./"+e),ut(t)}catch(e){}return it[e]}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[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=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config)}),ut(e),it[e]}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=at(e[r]).split("-")).length,n=(n=at(e[r+1]))?n.split("-"):null;0<t;){if(s=ot(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&a(i,n,!0)>=t-1)break;t--}r++}return tt}(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[ve]||0!==n[pe]||0!==n[we])?ge:n[ve]<0||59<n[ve]?ve:n[pe]<0||59<n[pe]?pe: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=ke),g(e).overflow=t),e}function ct(e,t,n){return null!=e?e:null!=t?t:n}function ft(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=ct(t.GG,e._a[me],Ie(bt(),1,4).year),s=ct(t.W,1),((i=ct(t.E,1))<1||7<i)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Ie(bt(),r,a);n=ct(t.gg,e._a[me],l.year),s=ct(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=ct(e._a[me],s[me]),(e._dayOfYear>Se(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[ve]&&0===e._a[pe]&&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;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),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 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=/^\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)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["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}/]],vt=[["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 wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(u[1])){i=gt[t][0],s=!1!==gt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(u[3])){r=(u[2]||" ")+vt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!yt.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),Yt(e)}else e._isValid=!1}var Mt=/^(?:(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 kt(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),He.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=Mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(i){var r=kt(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 Yt(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,h=l.length,d=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),d+=n.length),E[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),a=i,u=e,null!=(o=n)&&m(de,a)&&de[a](o,u._a,u,a)):e._strict&&!n&&g(e).unusedTokens.push(i);g(e).charsLeftOver=h-d,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),ft(e),dt(e)}else Dt(e);else wt(e)}function Ot(e){var t,n,s,i,r=e._i,a=e._f;return e._locale=e._locale||ht(e._l),null===r||void 0===a&&""===r?p({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),k(r)?new M(dt(r)):(d(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],Yt(t),v(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?Yt(e):l(n=(t=e)._i)?t._d=new Date(c.now()):d(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(s=t,null===(i=pt.exec(s._i))?(wt(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)}),ft(t)):u(n)?function(e){if(!e._d){var t=R(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)}),ft(e)}}(t):h(n)?t._d=new Date(n):c.createFromInputFallback(t),v(e)||(e._d=null),e))}function Tt(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(Ot(a))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function bt(e,t,n,s){return Tt(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=bt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),Pt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:p()});function Wt(e,t){var n,s;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return bt();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Ct=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ht(e){var t=R(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Ye.call(Ct,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,s=0;s<Ct.length;++s)if(e[Ct[s]]){if(n)return!1;parseFloat(e[Ct[s]])!==D(e[Ct[s]])&&(n=!0)}return!0}(t),this._milliseconds=+h+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=ht(),this._bubble()}function Rt(e){return e instanceof Ht}function Ut(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+L(~~(e/60),2)+n+L(~~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=Nt(re,e)});var Lt=/([\+\-]|\d\d)/gi;function Nt(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]+D(s[2]);return 0===i?0:"+"===s[0]?i:-i}function Gt(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(k(e)||d(e)?e.valueOf():bt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),c.updateOffset(n,!1),n):bt(e).local()}function Vt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Et(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}c.updateOffset=function(){};var It=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jt(e,t){var n,s,i,r=e,a=null;return Rt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:h(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=It.exec(e))?(n="-"===a[1]?-1:1,r={y:0,d:D(a[ye])*n,h:D(a[ge])*n,m:D(a[ve])*n,s:D(a[pe])*n,ms:D(Ut(1e3*a[we]))*n}):(a=At.exec(e))?(n="-"===a[1]?-1:1,r={y:Zt(a[2],n),M:Zt(a[3],n),w:Zt(a[4],n),d:Zt(a[5],n),h:Zt(a[6],n),m:Zt(a[7],n),s:Zt(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=Gt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(bt(r.from),bt(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 Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function zt(e,t){var n={};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 $t(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),qt(this,jt(e="string"==typeof e?+e:e,t),s),this}}function qt(e,t,n,s){var i=t._milliseconds,r=Ut(t._days),a=Ut(t._months);e.isValid()&&(s=null==s||s,a&&Re(e,be(e,"Month")+a*n),r&&xe(e,"Date",be(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&c.updateOffset(e,r||a))}jt.fn=Ht.prototype,jt.invalid=function(){return jt(NaN)};var Jt=$t(1,"add"),Bt=$t(-1,"subtract");function Qt(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 Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ht(e))&&(this._locale=t),this)}c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",c.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Kt=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 en(){return this._locale}var tn=126227808e5;function nn(e,t){return(e%t+t)%t}function sn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-tn:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-tn:Date.UTC(e,t,n)}function an(e,t){I(0,[e,e.length],0,t)}function on(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}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),F("weekYear",1),F("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)]=D(e)}),fe(["gg","GG"],function(e,t,n,s){t[s]=c.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),C("quarter","Q"),F("quarter",7),ue("Q",Z),ce("Q",function(e,t){t[_e]=3*(D(e)-1)}),I("D",["DD",2],"Do","date"),C("date","D"),F("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]=D(e.match(B)[0])});var un=Te("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),F("dayOfYear",4),ue("DDD",K),ue("DDDD",$),ce(["DDD","DDDD"],function(e,t,n){n._dayOfYear=D(e)}),I("m",["mm",2],0,"minute"),C("minute","m"),F("minute",14),ue("m",B),ue("mm",B,z),ce(["m","mm"],ve);var ln=Te("Minutes",!1);I("s",["ss",2],0,"second"),C("second","s"),F("second",15),ue("s",B),ue("ss",B,z),ce(["s","ss"],pe);var hn,dn=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()}),C("millisecond","ms"),F("millisecond",16),ue("S",K,Z),ue("SS",K,z),ue("SSS",K,$),hn="SSSS";hn.length<=9;hn+="S")ue(hn,ne);function cn(e,t){t[we]=D(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")ce(hn,cn);var fn=Te("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var mn=M.prototype;function _n(e){return e}mn.add=Jt,mn.calendar=function(e,t){var n=e||bt(),s=Gt(n,this).startOf("day"),i=c.calendarFormat(this,s)||"sameElse",r=t&&(b(t[i])?t[i].call(this,n):t[i]);return this.format(r||this.localeData().calendar(i,this,bt(n)))},mn.clone=function(){return new M(this)},mn.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=H(t)){case"year":r=Qt(this,s)/12;break;case"month":r=Qt(this,s);break;case"quarter":r=Qt(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:S(r)},mn.endOf=function(e){var t;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?rn:sn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1;break}return this._d.setTime(t),c.updateOffset(this,!0),this},mn.format=function(e){e||(e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var t=A(this,e);return this.localeData().postformat(t)},mn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||bt(e).isValid())?jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},mn.fromNow=function(e){return this.from(bt(),e)},mn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||bt(e).isValid())?jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},mn.toNow=function(e){return this.to(bt(),e)},mn.get=function(e){return b(this[e=H(e)])?this[e]():this},mn.invalidAt=function(){return g(this).overflow},mn.isAfter=function(e,t){var n=k(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},mn.isBefore=function(e,t){var n=k(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},mn.isBetween=function(e,t,n,s){var i=k(e)?e:bt(e),r=k(t)?t:bt(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&("("===(s=s||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===s[1]?this.isBefore(r,n):!this.isAfter(r,n))},mn.isSame=function(e,t){var n,s=k(e)?e:bt(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},mn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},mn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},mn.isValid=function(){return v(this)},mn.lang=Kt,mn.locale=Xt,mn.localeData=en,mn.max=Pt,mn.min=xt,mn.parsingFlags=function(){return _({},g(this))},mn.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:U[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=R(e)),s=0;s<n.length;s++)this[n[s].unit](e[n[s].unit]);else if(b(this[e=H(e)]))return this[e](t);return this},mn.startOf=function(e){var t;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?rn:sn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3);break}return this._d.setTime(t),c.updateOffset(this,!0),this},mn.subtract=Bt,mn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},mn.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()}},mn.toDate=function(){return new Date(this.valueOf())},mn.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"):b(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")},mn.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)},mn.toJSON=function(){return this.isValid()?this.toISOString():null},mn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},mn.unix=function(){return Math.floor(this.valueOf()/1e3)},mn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},mn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},mn.year=Oe,mn.isLeapYear=function(){return De(this.year())},mn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},mn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},mn.quarter=mn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},mn.month=Ue,mn.daysInMonth=function(){return Pe(this.year(),this.month())},mn.week=mn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},mn.isoWeek=mn.isoWeeks=function(e){var t=Ie(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},mn.weeksInYear=function(){var e=this.localeData()._week;return Ae(this.year(),e.dow,e.doy)},mn.isoWeeksInYear=function(){return Ae(this.year(),1,4)},mn.date=un,mn.day=mn.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},mn.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")},mn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,s=(t=e,n=this.localeData(),"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?s:s-7)},mn.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")},mn.hour=mn.hours=nt,mn.minute=mn.minutes=ln,mn.second=mn.seconds=dn,mn.millisecond=mn.milliseconds=fn,mn.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Vt(this);if("string"==typeof e){if(null===(e=Nt(re,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Vt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?qt(this,jt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this},mn.utc=function(e){return this.utcOffset(0,e)},mn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this},mn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Nt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},mn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?bt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},mn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?"UTC":""},mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},mn.dates=n("dates accessor is deprecated. Use date instead.",un),mn.months=n("months accessor is deprecated. Use month instead",Ue),mn.years=n("years accessor is deprecated. Use year instead",Oe),mn.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()}),mn.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=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0<a(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var yn=P.prototype;function gn(e,t,n,s){var i=ht(),r=y().set(s,t);return i[n](r,e)}function vn(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return gn(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=gn(e,s,n,"month");return i}function pn(e,t,n,s){t=("boolean"==typeof e?h(t)&&(n=t,t=void 0):(t=e,e=!1,h(n=t)&&(n=t,t=void 0)),t||"");var i,r=ht(),a=e?r._week.dow:0;if(null!=n)return gn(t,(n+a)%7,s,"day");var o=[];for(i=0;i<7;i++)o[i]=gn(t,(i+a)%7,s,"day");return o}yn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return b(s)?s.call(t,n):s},yn.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])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=_n,yn.postformat=_n,yn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return b(i)?i(e,t,n,s):i.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return b(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)b(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)},yn.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},yn.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},yn.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}},yn.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Ie(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?je(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.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}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ut("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===D(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.",ut),c.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ht);var wn=Math.abs;function Mn(e,t,n,s){var i=jt(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function kn(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function Dn(e){return 146097*e/4800}function Yn(e){return function(){return this.as(e)}}var On=Yn("ms"),Tn=Yn("s"),bn=Yn("m"),xn=Yn("h"),Pn=Yn("d"),Wn=Yn("w"),Cn=Yn("M"),Hn=Yn("Q"),Rn=Yn("y");function Un(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=Un("milliseconds"),Ln=Un("seconds"),Nn=Un("minutes"),Gn=Un("hours"),Vn=Un("days"),En=Un("months"),In=Un("years");var An=Math.round,jn={ss:44,s:45,m:45,h:22,d:26,M:11};var Zn=Math.abs;function zn(e){return(0<e)-(e<0)||+e}function $n(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Zn(this._milliseconds)/1e3,s=Zn(this._days),i=Zn(this._months);t=S((e=S(n/60))/60),n%=60,e%=60;var r=S(i/12),a=i%=12,o=s,u=t,l=e,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var c=d<0?"-":"",f=zn(this._months)!==zn(d)?"-":"",m=zn(this._days)!==zn(d)?"-":"",_=zn(this._milliseconds)!==zn(d)?"-":"";return c+"P"+(r?f+r+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||l||h?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(h?_+h+"S":"")}var qn=Ht.prototype;return qn.isValid=function(){return this._isValid},qn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this},qn.add=function(e,t){return Mn(this,e,t,1)},qn.subtract=function(e,t){return Mn(this,e,t,-1)},qn.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=H(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Dn(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)}},qn.asMilliseconds=On,qn.asSeconds=Tn,qn.asMinutes=bn,qn.asHours=xn,qn.asDays=Pn,qn.asWeeks=Wn,qn.asMonths=Cn,qn.asQuarters=Hn,qn.asYears=Rn,qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*D(this._months/12):NaN},qn._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*kn(Dn(o)+a),o=a=0),u.milliseconds=r%1e3,e=S(r/1e3),u.seconds=e%60,t=S(e/60),u.minutes=t%60,n=S(t/60),u.hours=n%24,o+=i=S(Sn(a+=S(n/24))),a-=kn(Dn(i)),s=S(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},qn.clone=function(){return jt(this)},qn.get=function(e){return e=H(e),this.isValid()?this[e+"s"]():NaN},qn.milliseconds=Fn,qn.seconds=Ln,qn.minutes=Nn,qn.hours=Gn,qn.days=Vn,qn.weeks=function(){return S(this.days()/7)},qn.months=En,qn.years=In,qn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,s,i,r,a,o,u,l,h,d,c=this.localeData(),f=(n=!e,s=c,i=jt(t=this).abs(),r=An(i.as("s")),a=An(i.as("m")),o=An(i.as("h")),u=An(i.as("d")),l=An(i.as("M")),h=An(i.as("y")),(d=r<=jn.ss&&["s",r]||r<jn.s&&["ss",r]||a<=1&&["m"]||a<jn.m&&["mm",a]||o<=1&&["h"]||o<jn.h&&["hh",o]||u<=1&&["d"]||u<jn.d&&["dd",u]||l<=1&&["M"]||l<jn.M&&["MM",l]||h<=1&&["y"]||["yy",h])[2]=n,d[3]=0<+t,d[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,d));return e&&(f=c.pastFuture(+this,f)),c.postformat(f)},qn.toISOString=$n,qn.toString=$n,qn.toJSON=$n,qn.locale=Xt,qn.localeData=en,qn.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$n),qn.lang=Kt,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(D(e))}),c.version="2.24.0",e=bt,c.fn=mn,c.min=function(){return Wt("isBefore",[].slice.call(arguments,0))},c.max=function(){return Wt("isAfter",[].slice.call(arguments,0))},c.now=function(){return Date.now?Date.now():+new Date},c.utc=y,c.unix=function(e){return bt(1e3*e)},c.months=function(e,t){return vn(e,t,"months")},c.isDate=d,c.locale=ut,c.invalid=p,c.duration=jt,c.isMoment=k,c.weekdays=function(e,t,n){return pn(e,t,n,"weekdays")},c.parseZone=function(){return bt.apply(null,arguments).parseZone()},c.localeData=ht,c.isDuration=Rt,c.monthsShort=function(e,t){return vn(e,t,"monthsShort")},c.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin")},c.defineLocale=lt,c.updateLocale=function(e,t){if(null!=t){var n,s,i=st;null!=(s=ot(e))&&(i=s._config),(n=new P(t=x(i,t))).parentLocale=it[e],it[e]=n,ut(e)}else null!=it[e]&&(null!=it[e].parentLocale?it[e]=it[e].parentLocale:null!=it[e]&&delete it[e]);return it[e]},c.locales=function(){return s(it)},c.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort")},c.normalizeUnits=H,c.relativeTimeRounding=function(e){return void 0===e?An:"function"==typeof e&&(An=e,!0)},c.relativeTimeThreshold=function(e,t){return void 0!==jn[e]&&(void 0===t?jn[e]:(jn[e]=t,"s"===e&&(jn.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=mn,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:"GGGG-[W]WW",MONTH:"YYYY-MM"},c});
  37004. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  37005. /***/ }),
  37006. /***/ "./node_modules/node-libs-browser/mock/empty.js":
  37007. /*!******************************************************!*\
  37008. !*** ./node_modules/node-libs-browser/mock/empty.js ***!
  37009. \******************************************************/
  37010. /*! no static exports found */
  37011. /***/ (function(module, exports) {
  37012. /***/ }),
  37013. /***/ "./node_modules/path-browserify/index.js":
  37014. /*!***********************************************!*\
  37015. !*** ./node_modules/path-browserify/index.js ***!
  37016. \***********************************************/
  37017. /*! no static exports found */
  37018. /***/ (function(module, exports, __webpack_require__) {
  37019. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  37020. // backported and transplited with Babel, with backwards-compat fixes
  37021. // Copyright Joyent, Inc. and other Node contributors.
  37022. //
  37023. // Permission is hereby granted, free of charge, to any person obtaining a
  37024. // copy of this software and associated documentation files (the
  37025. // "Software"), to deal in the Software without restriction, including
  37026. // without limitation the rights to use, copy, modify, merge, publish,
  37027. // distribute, sublicense, and/or sell copies of the Software, and to permit
  37028. // persons to whom the Software is furnished to do so, subject to the
  37029. // following conditions:
  37030. //
  37031. // The above copyright notice and this permission notice shall be included
  37032. // in all copies or substantial portions of the Software.
  37033. //
  37034. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  37035. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  37036. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  37037. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  37038. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  37039. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  37040. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  37041. // resolves . and .. elements in a path array with directory names there
  37042. // must be no slashes, empty elements, or device names (c:\) in the array
  37043. // (so also no leading and trailing slashes - it does not distinguish
  37044. // relative and absolute paths)
  37045. function normalizeArray(parts, allowAboveRoot) {
  37046. // if the path tries to go above the root, `up` ends up > 0
  37047. var up = 0;
  37048. for (var i = parts.length - 1; i >= 0; i--) {
  37049. var last = parts[i];
  37050. if (last === '.') {
  37051. parts.splice(i, 1);
  37052. } else if (last === '..') {
  37053. parts.splice(i, 1);
  37054. up++;
  37055. } else if (up) {
  37056. parts.splice(i, 1);
  37057. up--;
  37058. }
  37059. }
  37060. // if the path is allowed to go above the root, restore leading ..s
  37061. if (allowAboveRoot) {
  37062. for (; up--; up) {
  37063. parts.unshift('..');
  37064. }
  37065. }
  37066. return parts;
  37067. }
  37068. // path.resolve([from ...], to)
  37069. // posix version
  37070. exports.resolve = function() {
  37071. var resolvedPath = '',
  37072. resolvedAbsolute = false;
  37073. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  37074. var path = (i >= 0) ? arguments[i] : process.cwd();
  37075. // Skip empty and invalid entries
  37076. if (typeof path !== 'string') {
  37077. throw new TypeError('Arguments to path.resolve must be strings');
  37078. } else if (!path) {
  37079. continue;
  37080. }
  37081. resolvedPath = path + '/' + resolvedPath;
  37082. resolvedAbsolute = path.charAt(0) === '/';
  37083. }
  37084. // At this point the path should be resolved to a full absolute path, but
  37085. // handle relative paths to be safe (might happen when process.cwd() fails)
  37086. // Normalize the path
  37087. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  37088. return !!p;
  37089. }), !resolvedAbsolute).join('/');
  37090. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  37091. };
  37092. // path.normalize(path)
  37093. // posix version
  37094. exports.normalize = function(path) {
  37095. var isAbsolute = exports.isAbsolute(path),
  37096. trailingSlash = substr(path, -1) === '/';
  37097. // Normalize the path
  37098. path = normalizeArray(filter(path.split('/'), function(p) {
  37099. return !!p;
  37100. }), !isAbsolute).join('/');
  37101. if (!path && !isAbsolute) {
  37102. path = '.';
  37103. }
  37104. if (path && trailingSlash) {
  37105. path += '/';
  37106. }
  37107. return (isAbsolute ? '/' : '') + path;
  37108. };
  37109. // posix version
  37110. exports.isAbsolute = function(path) {
  37111. return path.charAt(0) === '/';
  37112. };
  37113. // posix version
  37114. exports.join = function() {
  37115. var paths = Array.prototype.slice.call(arguments, 0);
  37116. return exports.normalize(filter(paths, function(p, index) {
  37117. if (typeof p !== 'string') {
  37118. throw new TypeError('Arguments to path.join must be strings');
  37119. }
  37120. return p;
  37121. }).join('/'));
  37122. };
  37123. // path.relative(from, to)
  37124. // posix version
  37125. exports.relative = function(from, to) {
  37126. from = exports.resolve(from).substr(1);
  37127. to = exports.resolve(to).substr(1);
  37128. function trim(arr) {
  37129. var start = 0;
  37130. for (; start < arr.length; start++) {
  37131. if (arr[start] !== '') break;
  37132. }
  37133. var end = arr.length - 1;
  37134. for (; end >= 0; end--) {
  37135. if (arr[end] !== '') break;
  37136. }
  37137. if (start > end) return [];
  37138. return arr.slice(start, end - start + 1);
  37139. }
  37140. var fromParts = trim(from.split('/'));
  37141. var toParts = trim(to.split('/'));
  37142. var length = Math.min(fromParts.length, toParts.length);
  37143. var samePartsLength = length;
  37144. for (var i = 0; i < length; i++) {
  37145. if (fromParts[i] !== toParts[i]) {
  37146. samePartsLength = i;
  37147. break;
  37148. }
  37149. }
  37150. var outputParts = [];
  37151. for (var i = samePartsLength; i < fromParts.length; i++) {
  37152. outputParts.push('..');
  37153. }
  37154. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  37155. return outputParts.join('/');
  37156. };
  37157. exports.sep = '/';
  37158. exports.delimiter = ':';
  37159. exports.dirname = function (path) {
  37160. if (typeof path !== 'string') path = path + '';
  37161. if (path.length === 0) return '.';
  37162. var code = path.charCodeAt(0);
  37163. var hasRoot = code === 47 /*/*/;
  37164. var end = -1;
  37165. var matchedSlash = true;
  37166. for (var i = path.length - 1; i >= 1; --i) {
  37167. code = path.charCodeAt(i);
  37168. if (code === 47 /*/*/) {
  37169. if (!matchedSlash) {
  37170. end = i;
  37171. break;
  37172. }
  37173. } else {
  37174. // We saw the first non-path separator
  37175. matchedSlash = false;
  37176. }
  37177. }
  37178. if (end === -1) return hasRoot ? '/' : '.';
  37179. if (hasRoot && end === 1) {
  37180. // return '//';
  37181. // Backwards-compat fix:
  37182. return '/';
  37183. }
  37184. return path.slice(0, end);
  37185. };
  37186. function basename(path) {
  37187. if (typeof path !== 'string') path = path + '';
  37188. var start = 0;
  37189. var end = -1;
  37190. var matchedSlash = true;
  37191. var i;
  37192. for (i = path.length - 1; i >= 0; --i) {
  37193. if (path.charCodeAt(i) === 47 /*/*/) {
  37194. // If we reached a path separator that was not part of a set of path
  37195. // separators at the end of the string, stop now
  37196. if (!matchedSlash) {
  37197. start = i + 1;
  37198. break;
  37199. }
  37200. } else if (end === -1) {
  37201. // We saw the first non-path separator, mark this as the end of our
  37202. // path component
  37203. matchedSlash = false;
  37204. end = i + 1;
  37205. }
  37206. }
  37207. if (end === -1) return '';
  37208. return path.slice(start, end);
  37209. }
  37210. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  37211. // in new Node.js versions, so only basename() above is backported here
  37212. exports.basename = function (path, ext) {
  37213. var f = basename(path);
  37214. if (ext && f.substr(-1 * ext.length) === ext) {
  37215. f = f.substr(0, f.length - ext.length);
  37216. }
  37217. return f;
  37218. };
  37219. exports.extname = function (path) {
  37220. if (typeof path !== 'string') path = path + '';
  37221. var startDot = -1;
  37222. var startPart = 0;
  37223. var end = -1;
  37224. var matchedSlash = true;
  37225. // Track the state of characters (if any) we see before our first dot and
  37226. // after any path separator we find
  37227. var preDotState = 0;
  37228. for (var i = path.length - 1; i >= 0; --i) {
  37229. var code = path.charCodeAt(i);
  37230. if (code === 47 /*/*/) {
  37231. // If we reached a path separator that was not part of a set of path
  37232. // separators at the end of the string, stop now
  37233. if (!matchedSlash) {
  37234. startPart = i + 1;
  37235. break;
  37236. }
  37237. continue;
  37238. }
  37239. if (end === -1) {
  37240. // We saw the first non-path separator, mark this as the end of our
  37241. // extension
  37242. matchedSlash = false;
  37243. end = i + 1;
  37244. }
  37245. if (code === 46 /*.*/) {
  37246. // If this is our first dot, mark it as the start of our extension
  37247. if (startDot === -1)
  37248. startDot = i;
  37249. else if (preDotState !== 1)
  37250. preDotState = 1;
  37251. } else if (startDot !== -1) {
  37252. // We saw a non-dot and non-path separator before our dot, so we should
  37253. // have a good chance at having a non-empty extension
  37254. preDotState = -1;
  37255. }
  37256. }
  37257. if (startDot === -1 || end === -1 ||
  37258. // We saw a non-dot character immediately before the dot
  37259. preDotState === 0 ||
  37260. // The (right-most) trimmed path component is exactly '..'
  37261. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  37262. return '';
  37263. }
  37264. return path.slice(startDot, end);
  37265. };
  37266. function filter (xs, f) {
  37267. if (xs.filter) return xs.filter(f);
  37268. var res = [];
  37269. for (var i = 0; i < xs.length; i++) {
  37270. if (f(xs[i], i, xs)) res.push(xs[i]);
  37271. }
  37272. return res;
  37273. }
  37274. // String.prototype.substr - negative index don't work in IE8
  37275. var substr = 'ab'.substr(-1) === 'b'
  37276. ? function (str, start, len) { return str.substr(start, len) }
  37277. : function (str, start, len) {
  37278. if (start < 0) start = str.length + start;
  37279. return str.substr(start, len);
  37280. }
  37281. ;
  37282. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ "./node_modules/process/browser.js")))
  37283. /***/ }),
  37284. /***/ "./node_modules/process/browser.js":
  37285. /*!*****************************************!*\
  37286. !*** ./node_modules/process/browser.js ***!
  37287. \*****************************************/
  37288. /*! no static exports found */
  37289. /***/ (function(module, exports) {
  37290. // shim for using process in browser
  37291. var process = module.exports = {};
  37292. // cached from whatever global is present so that test runners that stub it
  37293. // don't break things. But we need to wrap it in a try catch in case it is
  37294. // wrapped in strict mode code which doesn't define any globals. It's inside a
  37295. // function because try/catches deoptimize in certain engines.
  37296. var cachedSetTimeout;
  37297. var cachedClearTimeout;
  37298. function defaultSetTimout() {
  37299. throw new Error('setTimeout has not been defined');
  37300. }
  37301. function defaultClearTimeout () {
  37302. throw new Error('clearTimeout has not been defined');
  37303. }
  37304. (function () {
  37305. try {
  37306. if (typeof setTimeout === 'function') {
  37307. cachedSetTimeout = setTimeout;
  37308. } else {
  37309. cachedSetTimeout = defaultSetTimout;
  37310. }
  37311. } catch (e) {
  37312. cachedSetTimeout = defaultSetTimout;
  37313. }
  37314. try {
  37315. if (typeof clearTimeout === 'function') {
  37316. cachedClearTimeout = clearTimeout;
  37317. } else {
  37318. cachedClearTimeout = defaultClearTimeout;
  37319. }
  37320. } catch (e) {
  37321. cachedClearTimeout = defaultClearTimeout;
  37322. }
  37323. } ())
  37324. function runTimeout(fun) {
  37325. if (cachedSetTimeout === setTimeout) {
  37326. //normal enviroments in sane situations
  37327. return setTimeout(fun, 0);
  37328. }
  37329. // if setTimeout wasn't available but was latter defined
  37330. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  37331. cachedSetTimeout = setTimeout;
  37332. return setTimeout(fun, 0);
  37333. }
  37334. try {
  37335. // when when somebody has screwed with setTimeout but no I.E. maddness
  37336. return cachedSetTimeout(fun, 0);
  37337. } catch(e){
  37338. try {
  37339. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  37340. return cachedSetTimeout.call(null, fun, 0);
  37341. } catch(e){
  37342. // 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
  37343. return cachedSetTimeout.call(this, fun, 0);
  37344. }
  37345. }
  37346. }
  37347. function runClearTimeout(marker) {
  37348. if (cachedClearTimeout === clearTimeout) {
  37349. //normal enviroments in sane situations
  37350. return clearTimeout(marker);
  37351. }
  37352. // if clearTimeout wasn't available but was latter defined
  37353. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  37354. cachedClearTimeout = clearTimeout;
  37355. return clearTimeout(marker);
  37356. }
  37357. try {
  37358. // when when somebody has screwed with setTimeout but no I.E. maddness
  37359. return cachedClearTimeout(marker);
  37360. } catch (e){
  37361. try {
  37362. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  37363. return cachedClearTimeout.call(null, marker);
  37364. } catch (e){
  37365. // 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.
  37366. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  37367. return cachedClearTimeout.call(this, marker);
  37368. }
  37369. }
  37370. }
  37371. var queue = [];
  37372. var draining = false;
  37373. var currentQueue;
  37374. var queueIndex = -1;
  37375. function cleanUpNextTick() {
  37376. if (!draining || !currentQueue) {
  37377. return;
  37378. }
  37379. draining = false;
  37380. if (currentQueue.length) {
  37381. queue = currentQueue.concat(queue);
  37382. } else {
  37383. queueIndex = -1;
  37384. }
  37385. if (queue.length) {
  37386. drainQueue();
  37387. }
  37388. }
  37389. function drainQueue() {
  37390. if (draining) {
  37391. return;
  37392. }
  37393. var timeout = runTimeout(cleanUpNextTick);
  37394. draining = true;
  37395. var len = queue.length;
  37396. while(len) {
  37397. currentQueue = queue;
  37398. queue = [];
  37399. while (++queueIndex < len) {
  37400. if (currentQueue) {
  37401. currentQueue[queueIndex].run();
  37402. }
  37403. }
  37404. queueIndex = -1;
  37405. len = queue.length;
  37406. }
  37407. currentQueue = null;
  37408. draining = false;
  37409. runClearTimeout(timeout);
  37410. }
  37411. process.nextTick = function (fun) {
  37412. var args = new Array(arguments.length - 1);
  37413. if (arguments.length > 1) {
  37414. for (var i = 1; i < arguments.length; i++) {
  37415. args[i - 1] = arguments[i];
  37416. }
  37417. }
  37418. queue.push(new Item(fun, args));
  37419. if (queue.length === 1 && !draining) {
  37420. runTimeout(drainQueue);
  37421. }
  37422. };
  37423. // v8 likes predictible objects
  37424. function Item(fun, array) {
  37425. this.fun = fun;
  37426. this.array = array;
  37427. }
  37428. Item.prototype.run = function () {
  37429. this.fun.apply(null, this.array);
  37430. };
  37431. process.title = 'browser';
  37432. process.browser = true;
  37433. process.env = {};
  37434. process.argv = [];
  37435. process.version = ''; // empty string to avoid regexp issues
  37436. process.versions = {};
  37437. function noop() {}
  37438. process.on = noop;
  37439. process.addListener = noop;
  37440. process.once = noop;
  37441. process.off = noop;
  37442. process.removeListener = noop;
  37443. process.removeAllListeners = noop;
  37444. process.emit = noop;
  37445. process.prependListener = noop;
  37446. process.prependOnceListener = noop;
  37447. process.listeners = function (name) { return [] }
  37448. process.binding = function (name) {
  37449. throw new Error('process.binding is not supported');
  37450. };
  37451. process.cwd = function () { return '/' };
  37452. process.chdir = function (dir) {
  37453. throw new Error('process.chdir is not supported');
  37454. };
  37455. process.umask = function() { return 0; };
  37456. /***/ }),
  37457. /***/ "./node_modules/stylis/stylis.js":
  37458. /*!***************************************!*\
  37459. !*** ./node_modules/stylis/stylis.js ***!
  37460. \***************************************/
  37461. /*! no static exports found */
  37462. /***/ (function(module, exports, __webpack_require__) {
  37463. /*
  37464. * __ ___
  37465. * _____/ /___ __/ (_)____
  37466. * / ___/ __/ / / / / / ___/
  37467. * (__ ) /_/ /_/ / / (__ )
  37468. * /____/\__/\__, /_/_/____/
  37469. * /____/
  37470. *
  37471. * light - weight css preprocessor @licence MIT
  37472. */
  37473. (function (factory) {/* eslint-disable */
  37474. true ? (module['exports'] = factory(null)) :
  37475. undefined
  37476. }(/** @param {*=} options */function factory (options) {/* eslint-disable */
  37477. 'use strict'
  37478. /**
  37479. * Notes
  37480. *
  37481. * The ['<method name>'] pattern is used to support closure compiler
  37482. * the jsdoc signatures are also used to the same effect
  37483. *
  37484. * ----
  37485. *
  37486. * int + int + int === n4 [faster]
  37487. *
  37488. * vs
  37489. *
  37490. * int === n1 && int === n2 && int === n3
  37491. *
  37492. * ----
  37493. *
  37494. * switch (int) { case ints...} [faster]
  37495. *
  37496. * vs
  37497. *
  37498. * if (int == 1 && int === 2 ...)
  37499. *
  37500. * ----
  37501. *
  37502. * The (first*n1 + second*n2 + third*n3) format used in the property parser
  37503. * is a simple way to hash the sequence of characters
  37504. * taking into account the index they occur in
  37505. * since any number of 3 character sequences could produce duplicates.
  37506. *
  37507. * On the other hand sequences that are directly tied to the index of the character
  37508. * resolve a far more accurate measure, it's also faster
  37509. * to evaluate one condition in a switch statement
  37510. * than three in an if statement regardless of the added math.
  37511. *
  37512. * This allows the vendor prefixer to be both small and fast.
  37513. */
  37514. var nullptn = /^\0+/g /* matches leading null characters */
  37515. var formatptn = /[\0\r\f]/g /* matches new line, null and formfeed characters */
  37516. var colonptn = /: */g /* splits animation rules */
  37517. var cursorptn = /zoo|gra/ /* assert cursor varient */
  37518. var transformptn = /([,: ])(transform)/g /* vendor prefix transform, older webkit */
  37519. var animationptn = /,+\s*(?![^(]*[)])/g /* splits multiple shorthand notation animations */
  37520. var propertiesptn = / +\s*(?![^(]*[)])/g /* animation properties */
  37521. var elementptn = / *[\0] */g /* selector elements */
  37522. var selectorptn = /,\r+?/g /* splits selectors */
  37523. var andptn = /([\t\r\n ])*\f?&/g /* match & */
  37524. var escapeptn = /:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g /* matches :global(.*) */
  37525. var invalidptn = /\W+/g /* removes invalid characters from keyframes */
  37526. var keyframeptn = /@(k\w+)\s*(\S*)\s*/ /* matches @keyframes $1 */
  37527. var plcholdrptn = /::(place)/g /* match ::placeholder varient */
  37528. var readonlyptn = /:(read-only)/g /* match :read-only varient */
  37529. var beforeptn = /\s+(?=[{\];=:>])/g /* matches \s before ] ; = : */
  37530. var afterptn = /([[}=:>])\s+/g /* matches \s after characters [ } = : */
  37531. var tailptn = /(\{[^{]+?);(?=\})/g /* matches tail semi-colons ;} */
  37532. var whiteptn = /\s{2,}/g /* matches repeating whitespace */
  37533. var pseudoptn = /([^\(])(:+) */g /* pseudo element */
  37534. var writingptn = /[svh]\w+-[tblr]{2}/ /* match writing mode property values */
  37535. var gradientptn = /([\w-]+t\()/g /* match *gradient property */
  37536. var supportsptn = /\(\s*(.*)\s*\)/g /* match supports (groups) */
  37537. var propertyptn = /([\s\S]*?);/g /* match properties leading semicolon */
  37538. var selfptn = /-self|flex-/g /* match flex- and -self in align-self: flex-*; */
  37539. var pseudofmt = /[^]*?(:[rp][el]a[\w-]+)[^]*/ /* extrats :readonly or :placholder from selector */
  37540. var trimptn = /[ \t]+$/ /* match tail whitspace */
  37541. var dimensionptn = /stretch|:\s*\w+\-(?:conte|avail)/ /* match max/min/fit-content, fill-available */
  37542. var imgsrcptn = /([^-])(image-set\()/
  37543. /* vendors */
  37544. var webkit = '-webkit-'
  37545. var moz = '-moz-'
  37546. var ms = '-ms-'
  37547. /* character codes */
  37548. var SEMICOLON = 59 /* ; */
  37549. var CLOSEBRACES = 125 /* } */
  37550. var OPENBRACES = 123 /* { */
  37551. var OPENPARENTHESES = 40 /* ( */
  37552. var CLOSEPARENTHESES = 41 /* ) */
  37553. var OPENBRACKET = 91 /* [ */
  37554. var CLOSEBRACKET = 93 /* ] */
  37555. var NEWLINE = 10 /* \n */
  37556. var CARRIAGE = 13 /* \r */
  37557. var TAB = 9 /* \t */
  37558. var AT = 64 /* @ */
  37559. var SPACE = 32 /* */
  37560. var AND = 38 /* & */
  37561. var DASH = 45 /* - */
  37562. var UNDERSCORE = 95 /* _ */
  37563. var STAR = 42 /* * */
  37564. var COMMA = 44 /* , */
  37565. var COLON = 58 /* : */
  37566. var SINGLEQUOTE = 39 /* ' */
  37567. var DOUBLEQUOTE = 34 /* " */
  37568. var FOWARDSLASH = 47 /* / */
  37569. var GREATERTHAN = 62 /* > */
  37570. var PLUS = 43 /* + */
  37571. var TILDE = 126 /* ~ */
  37572. var NULL = 0 /* \0 */
  37573. var FORMFEED = 12 /* \f */
  37574. var VERTICALTAB = 11 /* \v */
  37575. /* special identifiers */
  37576. var KEYFRAME = 107 /* k */
  37577. var MEDIA = 109 /* m */
  37578. var SUPPORTS = 115 /* s */
  37579. var PLACEHOLDER = 112 /* p */
  37580. var READONLY = 111 /* o */
  37581. var IMPORT = 105 /* <at>i */
  37582. var CHARSET = 99 /* <at>c */
  37583. var DOCUMENT = 100 /* <at>d */
  37584. var PAGE = 112 /* <at>p */
  37585. var column = 1 /* current column */
  37586. var line = 1 /* current line numebr */
  37587. var pattern = 0 /* :pattern */
  37588. var cascade = 1 /* #id h1 h2 vs h1#id h2#id */
  37589. var prefix = 1 /* vendor prefix */
  37590. var escape = 1 /* escape :global() pattern */
  37591. var compress = 0 /* compress output */
  37592. var semicolon = 0 /* no/semicolon option */
  37593. var preserve = 0 /* preserve empty selectors */
  37594. /* empty reference */
  37595. var array = []
  37596. /* plugins */
  37597. var plugins = []
  37598. var plugged = 0
  37599. var should = null
  37600. /* plugin context */
  37601. var POSTS = -2
  37602. var PREPS = -1
  37603. var UNKWN = 0
  37604. var PROPS = 1
  37605. var BLCKS = 2
  37606. var ATRUL = 3
  37607. /* plugin newline context */
  37608. var unkwn = 0
  37609. /* keyframe animation */
  37610. var keyed = 1
  37611. var key = ''
  37612. /* selector namespace */
  37613. var nscopealt = ''
  37614. var nscope = ''
  37615. /**
  37616. * Compile
  37617. *
  37618. * @param {Array<string>} parent
  37619. * @param {Array<string>} current
  37620. * @param {string} body
  37621. * @param {number} id
  37622. * @param {number} depth
  37623. * @return {string}
  37624. */
  37625. function compile (parent, current, body, id, depth) {
  37626. var bracket = 0 /* brackets [] */
  37627. var comment = 0 /* comments /* // or /* */
  37628. var parentheses = 0 /* functions () */
  37629. var quote = 0 /* quotes '', "" */
  37630. var first = 0 /* first character code */
  37631. var second = 0 /* second character code */
  37632. var code = 0 /* current character code */
  37633. var tail = 0 /* previous character code */
  37634. var trail = 0 /* character before previous code */
  37635. var peak = 0 /* previous non-whitespace code */
  37636. var counter = 0 /* count sequence termination */
  37637. var context = 0 /* track current context */
  37638. var atrule = 0 /* track @at-rule context */
  37639. var pseudo = 0 /* track pseudo token index */
  37640. var caret = 0 /* current character index */
  37641. var format = 0 /* control character formating context */
  37642. var insert = 0 /* auto semicolon insertion */
  37643. var invert = 0 /* inverted selector pattern */
  37644. var length = 0 /* generic length address */
  37645. var eof = body.length /* end of file(length) */
  37646. var eol = eof - 1 /* end of file(characters) */
  37647. var char = '' /* current character */
  37648. var chars = '' /* current buffer of characters */
  37649. var child = '' /* next buffer of characters */
  37650. var out = '' /* compiled body */
  37651. var children = '' /* compiled children */
  37652. var flat = '' /* compiled leafs */
  37653. var selector /* generic selector address */
  37654. var result /* generic address */
  37655. // ...build body
  37656. while (caret < eof) {
  37657. code = body.charCodeAt(caret)
  37658. // eof varient
  37659. if (caret === eol) {
  37660. // last character + noop context, add synthetic padding for noop context to terminate
  37661. if (comment + quote + parentheses + bracket !== 0) {
  37662. if (comment !== 0) {
  37663. code = comment === FOWARDSLASH ? NEWLINE : FOWARDSLASH
  37664. }
  37665. quote = parentheses = bracket = 0
  37666. eof++
  37667. eol++
  37668. }
  37669. }
  37670. if (comment + quote + parentheses + bracket === 0) {
  37671. // eof varient
  37672. if (caret === eol) {
  37673. if (format > 0) {
  37674. chars = chars.replace(formatptn, '')
  37675. }
  37676. if (chars.trim().length > 0) {
  37677. switch (code) {
  37678. case SPACE:
  37679. case TAB:
  37680. case SEMICOLON:
  37681. case CARRIAGE:
  37682. case NEWLINE: {
  37683. break
  37684. }
  37685. default: {
  37686. chars += body.charAt(caret)
  37687. }
  37688. }
  37689. code = SEMICOLON
  37690. }
  37691. }
  37692. // auto semicolon insertion
  37693. if (insert === 1) {
  37694. switch (code) {
  37695. // false flags
  37696. case OPENBRACES:
  37697. case CLOSEBRACES:
  37698. case SEMICOLON:
  37699. case DOUBLEQUOTE:
  37700. case SINGLEQUOTE:
  37701. case OPENPARENTHESES:
  37702. case CLOSEPARENTHESES:
  37703. case COMMA: {
  37704. insert = 0
  37705. }
  37706. // ignore
  37707. case TAB:
  37708. case CARRIAGE:
  37709. case NEWLINE:
  37710. case SPACE: {
  37711. break
  37712. }
  37713. // valid
  37714. default: {
  37715. insert = 0
  37716. length = caret
  37717. first = code
  37718. caret--
  37719. code = SEMICOLON
  37720. while (length < eof) {
  37721. switch (body.charCodeAt(length++)) {
  37722. case NEWLINE:
  37723. case CARRIAGE:
  37724. case SEMICOLON: {
  37725. ++caret
  37726. code = first
  37727. length = eof
  37728. break
  37729. }
  37730. case COLON: {
  37731. if (format > 0) {
  37732. ++caret
  37733. code = first
  37734. }
  37735. }
  37736. case OPENBRACES: {
  37737. length = eof
  37738. }
  37739. }
  37740. }
  37741. }
  37742. }
  37743. }
  37744. // token varient
  37745. switch (code) {
  37746. case OPENBRACES: {
  37747. chars = chars.trim()
  37748. first = chars.charCodeAt(0)
  37749. counter = 1
  37750. length = ++caret
  37751. while (caret < eof) {
  37752. switch (code = body.charCodeAt(caret)) {
  37753. case OPENBRACES: {
  37754. counter++
  37755. break
  37756. }
  37757. case CLOSEBRACES: {
  37758. counter--
  37759. break
  37760. }
  37761. case FOWARDSLASH: {
  37762. switch (second = body.charCodeAt(caret + 1)) {
  37763. // /*, //
  37764. case STAR:
  37765. case FOWARDSLASH: {
  37766. caret = delimited(second, caret, eol, body)
  37767. }
  37768. }
  37769. break
  37770. }
  37771. // given "[" === 91 & "]" === 93 hence forth 91 + 1 + 1 === 93
  37772. case OPENBRACKET: {
  37773. code++
  37774. }
  37775. // given "(" === 40 & ")" === 41 hence forth 40 + 1 === 41
  37776. case OPENPARENTHESES: {
  37777. code++
  37778. }
  37779. // quote tail delimiter is identical to the head delimiter hence noop,
  37780. // fallthrough clauses have been shifted to the correct tail delimiter
  37781. case DOUBLEQUOTE:
  37782. case SINGLEQUOTE: {
  37783. while (caret++ < eol) {
  37784. if (body.charCodeAt(caret) === code) {
  37785. break
  37786. }
  37787. }
  37788. }
  37789. }
  37790. if (counter === 0) {
  37791. break
  37792. }
  37793. caret++
  37794. }
  37795. child = body.substring(length, caret)
  37796. if (first === NULL) {
  37797. first = (chars = chars.replace(nullptn, '').trim()).charCodeAt(0)
  37798. }
  37799. switch (first) {
  37800. // @at-rule
  37801. case AT: {
  37802. if (format > 0) {
  37803. chars = chars.replace(formatptn, '')
  37804. }
  37805. second = chars.charCodeAt(1)
  37806. switch (second) {
  37807. case DOCUMENT:
  37808. case MEDIA:
  37809. case SUPPORTS:
  37810. case DASH: {
  37811. selector = current
  37812. break
  37813. }
  37814. default: {
  37815. selector = array
  37816. }
  37817. }
  37818. child = compile(current, selector, child, second, depth+1)
  37819. length = child.length
  37820. // preserve empty @at-rule
  37821. if (preserve > 0 && length === 0) {
  37822. length = chars.length
  37823. }
  37824. // execute plugins, @at-rule context
  37825. if (plugged > 0) {
  37826. selector = select(array, chars, invert)
  37827. result = proxy(ATRUL, child, selector, current, line, column, length, second, depth, id)
  37828. chars = selector.join('')
  37829. if (result !== void 0) {
  37830. if ((length = (child = result.trim()).length) === 0) {
  37831. second = 0
  37832. child = ''
  37833. }
  37834. }
  37835. }
  37836. if (length > 0) {
  37837. switch (second) {
  37838. case SUPPORTS: {
  37839. chars = chars.replace(supportsptn, supports)
  37840. }
  37841. case DOCUMENT:
  37842. case MEDIA:
  37843. case DASH: {
  37844. child = chars + '{' + child + '}'
  37845. break
  37846. }
  37847. case KEYFRAME: {
  37848. chars = chars.replace(keyframeptn, '$1 $2' + (keyed > 0 ? key : ''))
  37849. child = chars + '{' + child + '}'
  37850. if (prefix === 1 || (prefix === 2 && vendor('@'+child, 3))) {
  37851. child = '@' + webkit + child + '@' + child
  37852. } else {
  37853. child = '@' + child
  37854. }
  37855. break
  37856. }
  37857. default: {
  37858. child = chars + child
  37859. if (id === PAGE) {
  37860. child = (out += child, '')
  37861. }
  37862. }
  37863. }
  37864. } else {
  37865. child = ''
  37866. }
  37867. break
  37868. }
  37869. // selector
  37870. default: {
  37871. child = compile(current, select(current, chars, invert), child, id, depth+1)
  37872. }
  37873. }
  37874. children += child
  37875. // reset
  37876. context = 0
  37877. insert = 0
  37878. pseudo = 0
  37879. format = 0
  37880. invert = 0
  37881. atrule = 0
  37882. chars = ''
  37883. child = ''
  37884. code = body.charCodeAt(++caret)
  37885. break
  37886. }
  37887. case CLOSEBRACES:
  37888. case SEMICOLON: {
  37889. chars = (format > 0 ? chars.replace(formatptn, '') : chars).trim()
  37890. if ((length = chars.length) > 1) {
  37891. // monkey-patch missing colon
  37892. if (pseudo === 0) {
  37893. first = chars.charCodeAt(0)
  37894. // first character is a letter or dash, buffer has a space character
  37895. if ((first === DASH || first > 96 && first < 123)) {
  37896. length = (chars = chars.replace(' ', ':')).length
  37897. }
  37898. }
  37899. // execute plugins, property context
  37900. if (plugged > 0) {
  37901. if ((result = proxy(PROPS, chars, current, parent, line, column, out.length, id, depth, id)) !== void 0) {
  37902. if ((length = (chars = result.trim()).length) === 0) {
  37903. chars = '\0\0'
  37904. }
  37905. }
  37906. }
  37907. first = chars.charCodeAt(0)
  37908. second = chars.charCodeAt(1)
  37909. switch (first) {
  37910. case NULL: {
  37911. break
  37912. }
  37913. case AT: {
  37914. if (second === IMPORT || second === CHARSET) {
  37915. flat += chars + body.charAt(caret)
  37916. break
  37917. }
  37918. }
  37919. default: {
  37920. if (chars.charCodeAt(length-1) === COLON) {
  37921. break
  37922. }
  37923. out += property(chars, first, second, chars.charCodeAt(2))
  37924. }
  37925. }
  37926. }
  37927. // reset
  37928. context = 0
  37929. insert = 0
  37930. pseudo = 0
  37931. format = 0
  37932. invert = 0
  37933. chars = ''
  37934. code = body.charCodeAt(++caret)
  37935. break
  37936. }
  37937. }
  37938. }
  37939. // parse characters
  37940. switch (code) {
  37941. case CARRIAGE:
  37942. case NEWLINE: {
  37943. // auto insert semicolon
  37944. if (comment + quote + parentheses + bracket + semicolon === 0) {
  37945. // valid non-whitespace characters that
  37946. // may precede a newline
  37947. switch (peak) {
  37948. case CLOSEPARENTHESES:
  37949. case SINGLEQUOTE:
  37950. case DOUBLEQUOTE:
  37951. case AT:
  37952. case TILDE:
  37953. case GREATERTHAN:
  37954. case STAR:
  37955. case PLUS:
  37956. case FOWARDSLASH:
  37957. case DASH:
  37958. case COLON:
  37959. case COMMA:
  37960. case SEMICOLON:
  37961. case OPENBRACES:
  37962. case CLOSEBRACES: {
  37963. break
  37964. }
  37965. default: {
  37966. // current buffer has a colon
  37967. if (pseudo > 0) {
  37968. insert = 1
  37969. }
  37970. }
  37971. }
  37972. }
  37973. // terminate line comment
  37974. if (comment === FOWARDSLASH) {
  37975. comment = 0
  37976. } else if (cascade + context === 0 && id !== KEYFRAME && chars.length > 0) {
  37977. format = 1
  37978. chars += '\0'
  37979. }
  37980. // execute plugins, newline context
  37981. if (plugged * unkwn > 0) {
  37982. proxy(UNKWN, chars, current, parent, line, column, out.length, id, depth, id)
  37983. }
  37984. // next line, reset column position
  37985. column = 1
  37986. line++
  37987. break
  37988. }
  37989. case SEMICOLON:
  37990. case CLOSEBRACES: {
  37991. if (comment + quote + parentheses + bracket === 0) {
  37992. column++
  37993. break
  37994. }
  37995. }
  37996. default: {
  37997. // increment column position
  37998. column++
  37999. // current character
  38000. char = body.charAt(caret)
  38001. // remove comments, escape functions, strings, attributes and prepare selectors
  38002. switch (code) {
  38003. case TAB:
  38004. case SPACE: {
  38005. if (quote + bracket + comment === 0) {
  38006. switch (tail) {
  38007. case COMMA:
  38008. case COLON:
  38009. case TAB:
  38010. case SPACE: {
  38011. char = ''
  38012. break
  38013. }
  38014. default: {
  38015. if (code !== SPACE) {
  38016. char = ' '
  38017. }
  38018. }
  38019. }
  38020. }
  38021. break
  38022. }
  38023. // escape breaking control characters
  38024. case NULL: {
  38025. char = '\\0'
  38026. break
  38027. }
  38028. case FORMFEED: {
  38029. char = '\\f'
  38030. break
  38031. }
  38032. case VERTICALTAB: {
  38033. char = '\\v'
  38034. break
  38035. }
  38036. // &
  38037. case AND: {
  38038. // inverted selector pattern i.e html &
  38039. if (quote + comment + bracket === 0 && cascade > 0) {
  38040. invert = 1
  38041. format = 1
  38042. char = '\f' + char
  38043. }
  38044. break
  38045. }
  38046. // ::p<l>aceholder, l
  38047. // :read-on<l>y, l
  38048. case 108: {
  38049. if (quote + comment + bracket + pattern === 0 && pseudo > 0) {
  38050. switch (caret - pseudo) {
  38051. // ::placeholder
  38052. case 2: {
  38053. if (tail === PLACEHOLDER && body.charCodeAt(caret-3) === COLON) {
  38054. pattern = tail
  38055. }
  38056. }
  38057. // :read-only
  38058. case 8: {
  38059. if (trail === READONLY) {
  38060. pattern = trail
  38061. }
  38062. }
  38063. }
  38064. }
  38065. break
  38066. }
  38067. // :<pattern>
  38068. case COLON: {
  38069. if (quote + comment + bracket === 0) {
  38070. pseudo = caret
  38071. }
  38072. break
  38073. }
  38074. // selectors
  38075. case COMMA: {
  38076. if (comment + parentheses + quote + bracket === 0) {
  38077. format = 1
  38078. char += '\r'
  38079. }
  38080. break
  38081. }
  38082. // quotes
  38083. case DOUBLEQUOTE:
  38084. case SINGLEQUOTE: {
  38085. if (comment === 0) {
  38086. quote = quote === code ? 0 : (quote === 0 ? code : quote)
  38087. }
  38088. break
  38089. }
  38090. // attributes
  38091. case OPENBRACKET: {
  38092. if (quote + comment + parentheses === 0) {
  38093. bracket++
  38094. }
  38095. break
  38096. }
  38097. case CLOSEBRACKET: {
  38098. if (quote + comment + parentheses === 0) {
  38099. bracket--
  38100. }
  38101. break
  38102. }
  38103. // functions
  38104. case CLOSEPARENTHESES: {
  38105. if (quote + comment + bracket === 0) {
  38106. parentheses--
  38107. }
  38108. break
  38109. }
  38110. case OPENPARENTHESES: {
  38111. if (quote + comment + bracket === 0) {
  38112. if (context === 0) {
  38113. switch (tail*2 + trail*3) {
  38114. // :matches
  38115. case 533: {
  38116. break
  38117. }
  38118. // :global, :not, :nth-child etc...
  38119. default: {
  38120. counter = 0
  38121. context = 1
  38122. }
  38123. }
  38124. }
  38125. parentheses++
  38126. }
  38127. break
  38128. }
  38129. case AT: {
  38130. if (comment + parentheses + quote + bracket + pseudo + atrule === 0) {
  38131. atrule = 1
  38132. }
  38133. break
  38134. }
  38135. // block/line comments
  38136. case STAR:
  38137. case FOWARDSLASH: {
  38138. if (quote + bracket + parentheses > 0) {
  38139. break
  38140. }
  38141. switch (comment) {
  38142. // initialize line/block comment context
  38143. case 0: {
  38144. switch (code*2 + body.charCodeAt(caret+1)*3) {
  38145. // //
  38146. case 235: {
  38147. comment = FOWARDSLASH
  38148. break
  38149. }
  38150. // /*
  38151. case 220: {
  38152. length = caret
  38153. comment = STAR
  38154. break
  38155. }
  38156. }
  38157. break
  38158. }
  38159. // end block comment context
  38160. case STAR: {
  38161. if (code === FOWARDSLASH && tail === STAR && length + 2 !== caret) {
  38162. // /*<!> ... */, !
  38163. if (body.charCodeAt(length+2) === 33) {
  38164. out += body.substring(length, caret+1)
  38165. }
  38166. char = ''
  38167. comment = 0
  38168. }
  38169. }
  38170. }
  38171. }
  38172. }
  38173. // ignore comment blocks
  38174. if (comment === 0) {
  38175. // aggressive isolation mode, divide each individual selector
  38176. // including selectors in :not function but excluding selectors in :global function
  38177. if (cascade + quote + bracket + atrule === 0 && id !== KEYFRAME && code !== SEMICOLON) {
  38178. switch (code) {
  38179. case COMMA:
  38180. case TILDE:
  38181. case GREATERTHAN:
  38182. case PLUS:
  38183. case CLOSEPARENTHESES:
  38184. case OPENPARENTHESES: {
  38185. if (context === 0) {
  38186. // outside of an isolated context i.e nth-child(<...>)
  38187. switch (tail) {
  38188. case TAB:
  38189. case SPACE:
  38190. case NEWLINE:
  38191. case CARRIAGE: {
  38192. char = char + '\0'
  38193. break
  38194. }
  38195. default: {
  38196. char = '\0' + char + (code === COMMA ? '' : '\0')
  38197. }
  38198. }
  38199. format = 1
  38200. } else {
  38201. // within an isolated context, sleep untill it's terminated
  38202. switch (code) {
  38203. case OPENPARENTHESES: {
  38204. // :globa<l>(
  38205. if (pseudo + 7 === caret && tail === 108) {
  38206. pseudo = 0
  38207. }
  38208. context = ++counter
  38209. break
  38210. }
  38211. case CLOSEPARENTHESES: {
  38212. if ((context = --counter) === 0) {
  38213. format = 1
  38214. char += '\0'
  38215. }
  38216. break
  38217. }
  38218. }
  38219. }
  38220. break
  38221. }
  38222. case TAB:
  38223. case SPACE: {
  38224. switch (tail) {
  38225. case NULL:
  38226. case OPENBRACES:
  38227. case CLOSEBRACES:
  38228. case SEMICOLON:
  38229. case COMMA:
  38230. case FORMFEED:
  38231. case TAB:
  38232. case SPACE:
  38233. case NEWLINE:
  38234. case CARRIAGE: {
  38235. break
  38236. }
  38237. default: {
  38238. // ignore in isolated contexts
  38239. if (context === 0) {
  38240. format = 1
  38241. char += '\0'
  38242. }
  38243. }
  38244. }
  38245. }
  38246. }
  38247. }
  38248. // concat buffer of characters
  38249. chars += char
  38250. // previous non-whitespace character code
  38251. if (code !== SPACE && code !== TAB) {
  38252. peak = code
  38253. }
  38254. }
  38255. }
  38256. }
  38257. // tail character codes
  38258. trail = tail
  38259. tail = code
  38260. // visit every character
  38261. caret++
  38262. }
  38263. length = out.length
  38264. // preserve empty selector
  38265. if (preserve > 0) {
  38266. if (length === 0 && children.length === 0 && (current[0].length === 0) === false) {
  38267. if (id !== MEDIA || (current.length === 1 && (cascade > 0 ? nscopealt : nscope) === current[0])) {
  38268. length = current.join(',').length + 2
  38269. }
  38270. }
  38271. }
  38272. if (length > 0) {
  38273. // cascade isolation mode?
  38274. selector = cascade === 0 && id !== KEYFRAME ? isolate(current) : current
  38275. // execute plugins, block context
  38276. if (plugged > 0) {
  38277. result = proxy(BLCKS, out, selector, parent, line, column, length, id, depth, id)
  38278. if (result !== void 0 && (out = result).length === 0) {
  38279. return flat + out + children
  38280. }
  38281. }
  38282. out = selector.join(',') + '{' + out + '}'
  38283. if (prefix*pattern !== 0) {
  38284. if (prefix === 2 && !vendor(out, 2))
  38285. pattern = 0
  38286. switch (pattern) {
  38287. // ::read-only
  38288. case READONLY: {
  38289. out = out.replace(readonlyptn, ':'+moz+'$1')+out
  38290. break
  38291. }
  38292. // ::placeholder
  38293. case PLACEHOLDER: {
  38294. out = (
  38295. out.replace(plcholdrptn, '::' + webkit + 'input-$1') +
  38296. out.replace(plcholdrptn, '::' + moz + '$1') +
  38297. out.replace(plcholdrptn, ':' + ms + 'input-$1') + out
  38298. )
  38299. break
  38300. }
  38301. }
  38302. pattern = 0
  38303. }
  38304. }
  38305. return flat + out + children
  38306. }
  38307. /**
  38308. * Select
  38309. *
  38310. * @param {Array<string>} parent
  38311. * @param {string} current
  38312. * @param {number} invert
  38313. * @return {Array<string>}
  38314. */
  38315. function select (parent, current, invert) {
  38316. var selectors = current.trim().split(selectorptn)
  38317. var out = selectors
  38318. var length = selectors.length
  38319. var l = parent.length
  38320. switch (l) {
  38321. // 0-1 parent selectors
  38322. case 0:
  38323. case 1: {
  38324. for (var i = 0, selector = l === 0 ? '' : parent[0] + ' '; i < length; ++i) {
  38325. out[i] = scope(selector, out[i], invert, l).trim()
  38326. }
  38327. break
  38328. }
  38329. // >2 parent selectors, nested
  38330. default: {
  38331. for (var i = 0, j = 0, out = []; i < length; ++i) {
  38332. for (var k = 0; k < l; ++k) {
  38333. out[j++] = scope(parent[k] + ' ', selectors[i], invert, l).trim()
  38334. }
  38335. }
  38336. }
  38337. }
  38338. return out
  38339. }
  38340. /**
  38341. * Scope
  38342. *
  38343. * @param {string} parent
  38344. * @param {string} current
  38345. * @param {number} invert
  38346. * @param {number} level
  38347. * @return {string}
  38348. */
  38349. function scope (parent, current, invert, level) {
  38350. var selector = current
  38351. var code = selector.charCodeAt(0)
  38352. // trim leading whitespace
  38353. if (code < 33) {
  38354. code = (selector = selector.trim()).charCodeAt(0)
  38355. }
  38356. switch (code) {
  38357. // &
  38358. case AND: {
  38359. switch (cascade + level) {
  38360. case 0:
  38361. case 1: {
  38362. if (parent.trim().length === 0) {
  38363. break
  38364. }
  38365. }
  38366. default: {
  38367. return selector.replace(andptn, '$1'+parent.trim())
  38368. }
  38369. }
  38370. break
  38371. }
  38372. // :
  38373. case COLON: {
  38374. switch (selector.charCodeAt(1)) {
  38375. // g in :global
  38376. case 103: {
  38377. if (escape > 0 && cascade > 0) {
  38378. return selector.replace(escapeptn, '$1').replace(andptn, '$1'+nscope)
  38379. }
  38380. break
  38381. }
  38382. default: {
  38383. // :hover
  38384. return parent.trim() + selector.replace(andptn, '$1'+parent.trim())
  38385. }
  38386. }
  38387. }
  38388. default: {
  38389. // html &
  38390. if (invert*cascade > 0 && selector.indexOf('\f') > 0) {
  38391. return selector.replace(andptn, (parent.charCodeAt(0) === COLON ? '' : '$1')+parent.trim())
  38392. }
  38393. }
  38394. }
  38395. return parent + selector
  38396. }
  38397. /**
  38398. * Property
  38399. *
  38400. * @param {string} input
  38401. * @param {number} first
  38402. * @param {number} second
  38403. * @param {number} third
  38404. * @return {string}
  38405. */
  38406. function property (input, first, second, third) {
  38407. var index = 0
  38408. var out = input + ';'
  38409. var hash = (first*2) + (second*3) + (third*4)
  38410. var cache
  38411. // animation: a, n, i characters
  38412. if (hash === 944) {
  38413. return animation(out)
  38414. } else if (prefix === 0 || (prefix === 2 && !vendor(out, 1))) {
  38415. return out
  38416. }
  38417. // vendor prefix
  38418. switch (hash) {
  38419. // text-decoration/text-size-adjust/text-shadow/text-align/text-transform: t, e, x
  38420. case 1015: {
  38421. // text-shadow/text-align/text-transform, a
  38422. return out.charCodeAt(10) === 97 ? webkit + out + out : out
  38423. }
  38424. // filter/fill f, i, l
  38425. case 951: {
  38426. // filter, t
  38427. return out.charCodeAt(3) === 116 ? webkit + out + out : out
  38428. }
  38429. // color/column, c, o, l
  38430. case 963: {
  38431. // column, n
  38432. return out.charCodeAt(5) === 110 ? webkit + out + out : out
  38433. }
  38434. // box-decoration-break, b, o, x
  38435. case 1009: {
  38436. if (out.charCodeAt(4) !== 100) {
  38437. break
  38438. }
  38439. }
  38440. // mask, m, a, s
  38441. // clip-path, c, l, i
  38442. case 969:
  38443. case 942: {
  38444. return webkit + out + out
  38445. }
  38446. // appearance: a, p, p
  38447. case 978: {
  38448. return webkit + out + moz + out + out
  38449. }
  38450. // hyphens: h, y, p
  38451. // user-select: u, s, e
  38452. case 1019:
  38453. case 983: {
  38454. return webkit + out + moz + out + ms + out + out
  38455. }
  38456. // background/backface-visibility, b, a, c
  38457. case 883: {
  38458. // backface-visibility, -
  38459. if (out.charCodeAt(8) === DASH) {
  38460. return webkit + out + out
  38461. }
  38462. // image-set(...)
  38463. if (out.indexOf('image-set(', 11) > 0) {
  38464. return out.replace(imgsrcptn, '$1'+webkit+'$2') + out
  38465. }
  38466. return out
  38467. }
  38468. // flex: f, l, e
  38469. case 932: {
  38470. if (out.charCodeAt(4) === DASH) {
  38471. switch (out.charCodeAt(5)) {
  38472. // flex-grow, g
  38473. case 103: {
  38474. return webkit + 'box-' + out.replace('-grow', '') + webkit + out + ms + out.replace('grow', 'positive') + out
  38475. }
  38476. // flex-shrink, s
  38477. case 115: {
  38478. return webkit + out + ms + out.replace('shrink', 'negative') + out
  38479. }
  38480. // flex-basis, b
  38481. case 98: {
  38482. return webkit + out + ms + out.replace('basis', 'preferred-size') + out
  38483. }
  38484. }
  38485. }
  38486. return webkit + out + ms + out + out
  38487. }
  38488. // order: o, r, d
  38489. case 964: {
  38490. return webkit + out + ms + 'flex' + '-' + out + out
  38491. }
  38492. // justify-items/justify-content, j, u, s
  38493. case 1023: {
  38494. // justify-content, c
  38495. if (out.charCodeAt(8) !== 99) {
  38496. break
  38497. }
  38498. cache = out.substring(out.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify')
  38499. return webkit + 'box-pack' + cache + webkit + out + ms + 'flex-pack' + cache + out
  38500. }
  38501. // cursor, c, u, r
  38502. case 1005: {
  38503. return cursorptn.test(out) ? out.replace(colonptn, ':' + webkit) + out.replace(colonptn, ':' + moz) + out : out
  38504. }
  38505. // writing-mode, w, r, i
  38506. case 1000: {
  38507. cache = out.substring(13).trim()
  38508. index = cache.indexOf('-') + 1
  38509. switch (cache.charCodeAt(0)+cache.charCodeAt(index)) {
  38510. // vertical-lr
  38511. case 226: {
  38512. cache = out.replace(writingptn, 'tb')
  38513. break
  38514. }
  38515. // vertical-rl
  38516. case 232: {
  38517. cache = out.replace(writingptn, 'tb-rl')
  38518. break
  38519. }
  38520. // horizontal-tb
  38521. case 220: {
  38522. cache = out.replace(writingptn, 'lr')
  38523. break
  38524. }
  38525. default: {
  38526. return out
  38527. }
  38528. }
  38529. return webkit + out + ms + cache + out
  38530. }
  38531. // position: sticky
  38532. case 1017: {
  38533. if (out.indexOf('sticky', 9) === -1) {
  38534. return out
  38535. }
  38536. }
  38537. // display(flex/inline-flex/inline-box): d, i, s
  38538. case 975: {
  38539. index = (out = input).length - 10
  38540. cache = (out.charCodeAt(index) === 33 ? out.substring(0, index) : out).substring(input.indexOf(':', 7) + 1).trim()
  38541. switch (hash = cache.charCodeAt(0) + (cache.charCodeAt(7)|0)) {
  38542. // inline-
  38543. case 203: {
  38544. // inline-box
  38545. if (cache.charCodeAt(8) < 111) {
  38546. break
  38547. }
  38548. }
  38549. // inline-box/sticky
  38550. case 115: {
  38551. out = out.replace(cache, webkit+cache)+';'+out
  38552. break
  38553. }
  38554. // inline-flex
  38555. // flex
  38556. case 207:
  38557. case 102: {
  38558. out = (
  38559. out.replace(cache, webkit+(hash > 102 ? 'inline-' : '')+'box')+';'+
  38560. out.replace(cache, webkit+cache)+';'+
  38561. out.replace(cache, ms+cache+'box')+';'+
  38562. out
  38563. )
  38564. }
  38565. }
  38566. return out + ';'
  38567. }
  38568. // align-items, align-center, align-self: a, l, i, -
  38569. case 938: {
  38570. if (out.charCodeAt(5) === DASH) {
  38571. switch (out.charCodeAt(6)) {
  38572. // align-items, i
  38573. case 105: {
  38574. cache = out.replace('-items', '')
  38575. return webkit + out + webkit + 'box-' + cache + ms + 'flex-' + cache + out
  38576. }
  38577. // align-self, s
  38578. case 115: {
  38579. return webkit + out + ms + 'flex-item-' + out.replace(selfptn, '') + out
  38580. }
  38581. // align-content
  38582. default: {
  38583. return webkit + out + ms + 'flex-line-pack' + out.replace('align-content', '').replace(selfptn, '') + out
  38584. }
  38585. }
  38586. }
  38587. break
  38588. }
  38589. // min/max
  38590. case 973:
  38591. case 989: {
  38592. // min-/max- height/width/block-size/inline-size
  38593. if (out.charCodeAt(3) !== DASH || out.charCodeAt(4) === 122) {
  38594. break
  38595. }
  38596. }
  38597. // height/width: min-content / width: max-content
  38598. case 931:
  38599. case 953: {
  38600. if (dimensionptn.test(input) === true) {
  38601. // stretch
  38602. if ((cache = input.substring(input.indexOf(':') + 1)).charCodeAt(0) === 115)
  38603. return property(input.replace('stretch', 'fill-available'), first, second, third).replace(':fill-available', ':stretch')
  38604. else
  38605. return out.replace(cache, webkit + cache) + out.replace(cache, moz + cache.replace('fill-', '')) + out
  38606. }
  38607. break
  38608. }
  38609. // transform, transition: t, r, a
  38610. case 962: {
  38611. out = webkit + out + (out.charCodeAt(5) === 102 ? ms + out : '') + out
  38612. // transitions
  38613. if (second + third === 211 && out.charCodeAt(13) === 105 && out.indexOf('transform', 10) > 0) {
  38614. return out.substring(0, out.indexOf(';', 27) + 1).replace(transformptn, '$1' + webkit + '$2') + out
  38615. }
  38616. break
  38617. }
  38618. }
  38619. return out
  38620. }
  38621. /**
  38622. * Vendor
  38623. *
  38624. * @param {string} content
  38625. * @param {number} context
  38626. * @return {boolean}
  38627. */
  38628. function vendor (content, context) {
  38629. var index = content.indexOf(context === 1 ? ':' : '{')
  38630. var key = content.substring(0, context !== 3 ? index : 10)
  38631. var value = content.substring(index + 1, content.length - 1)
  38632. return should(context !== 2 ? key : key.replace(pseudofmt, '$1'), value, context)
  38633. }
  38634. /**
  38635. * Supports
  38636. *
  38637. * @param {string} match
  38638. * @param {string} group
  38639. * @return {string}
  38640. */
  38641. function supports (match, group) {
  38642. var out = property(group, group.charCodeAt(0), group.charCodeAt(1), group.charCodeAt(2))
  38643. return out !== group+';' ? out.replace(propertyptn, ' or ($1)').substring(4) : '('+group+')'
  38644. }
  38645. /**
  38646. * Animation
  38647. *
  38648. * @param {string} input
  38649. * @return {string}
  38650. */
  38651. function animation (input) {
  38652. var length = input.length
  38653. var index = input.indexOf(':', 9) + 1
  38654. var declare = input.substring(0, index).trim()
  38655. var out = input.substring(index, length-1).trim()
  38656. switch (input.charCodeAt(9)*keyed) {
  38657. case 0: {
  38658. break
  38659. }
  38660. // animation-*, -
  38661. case DASH: {
  38662. // animation-name, n
  38663. if (input.charCodeAt(10) !== 110) {
  38664. break
  38665. }
  38666. }
  38667. // animation/animation-name
  38668. default: {
  38669. // split in case of multiple animations
  38670. var list = out.split((out = '', animationptn))
  38671. for (var i = 0, index = 0, length = list.length; i < length; index = 0, ++i) {
  38672. var value = list[i]
  38673. var items = value.split(propertiesptn)
  38674. while (value = items[index]) {
  38675. var peak = value.charCodeAt(0)
  38676. if (keyed === 1 && (
  38677. // letters
  38678. (peak > AT && peak < 90) || (peak > 96 && peak < 123) || peak === UNDERSCORE ||
  38679. // dash but not in sequence i.e --
  38680. (peak === DASH && value.charCodeAt(1) !== DASH)
  38681. )) {
  38682. // not a number/function
  38683. switch (isNaN(parseFloat(value)) + (value.indexOf('(') !== -1)) {
  38684. case 1: {
  38685. switch (value) {
  38686. // not a valid reserved keyword
  38687. case 'infinite': case 'alternate': case 'backwards': case 'running':
  38688. case 'normal': case 'forwards': case 'both': case 'none': case 'linear':
  38689. case 'ease': case 'ease-in': case 'ease-out': case 'ease-in-out':
  38690. case 'paused': case 'reverse': case 'alternate-reverse': case 'inherit':
  38691. case 'initial': case 'unset': case 'step-start': case 'step-end': {
  38692. break
  38693. }
  38694. default: {
  38695. value += key
  38696. }
  38697. }
  38698. }
  38699. }
  38700. }
  38701. items[index++] = value
  38702. }
  38703. out += (i === 0 ? '' : ',') + items.join(' ')
  38704. }
  38705. }
  38706. }
  38707. out = declare + out + ';'
  38708. if (prefix === 1 || (prefix === 2 && vendor(out, 1)))
  38709. return webkit + out + out
  38710. return out
  38711. }
  38712. /**
  38713. * Isolate
  38714. *
  38715. * @param {Array<string>} current
  38716. */
  38717. function isolate (current) {
  38718. for (var i = 0, length = current.length, selector = Array(length), padding, element; i < length; ++i) {
  38719. // split individual elements in a selector i.e h1 h2 === [h1, h2]
  38720. var elements = current[i].split(elementptn)
  38721. var out = ''
  38722. for (var j = 0, size = 0, tail = 0, code = 0, l = elements.length; j < l; ++j) {
  38723. // empty element
  38724. if ((size = (element = elements[j]).length) === 0 && l > 1) {
  38725. continue
  38726. }
  38727. tail = out.charCodeAt(out.length-1)
  38728. code = element.charCodeAt(0)
  38729. padding = ''
  38730. if (j !== 0) {
  38731. // determine if we need padding
  38732. switch (tail) {
  38733. case STAR:
  38734. case TILDE:
  38735. case GREATERTHAN:
  38736. case PLUS:
  38737. case SPACE:
  38738. case OPENPARENTHESES: {
  38739. break
  38740. }
  38741. default: {
  38742. padding = ' '
  38743. }
  38744. }
  38745. }
  38746. switch (code) {
  38747. case AND: {
  38748. element = padding + nscopealt
  38749. }
  38750. case TILDE:
  38751. case GREATERTHAN:
  38752. case PLUS:
  38753. case SPACE:
  38754. case CLOSEPARENTHESES:
  38755. case OPENPARENTHESES: {
  38756. break
  38757. }
  38758. case OPENBRACKET: {
  38759. element = padding + element + nscopealt
  38760. break
  38761. }
  38762. case COLON: {
  38763. switch (element.charCodeAt(1)*2 + element.charCodeAt(2)*3) {
  38764. // :global
  38765. case 530: {
  38766. if (escape > 0) {
  38767. element = padding + element.substring(8, size - 1)
  38768. break
  38769. }
  38770. }
  38771. // :hover, :nth-child(), ...
  38772. default: {
  38773. if (j < 1 || elements[j-1].length < 1) {
  38774. element = padding + nscopealt + element
  38775. }
  38776. }
  38777. }
  38778. break
  38779. }
  38780. case COMMA: {
  38781. padding = ''
  38782. }
  38783. default: {
  38784. if (size > 1 && element.indexOf(':') > 0) {
  38785. element = padding + element.replace(pseudoptn, '$1' + nscopealt + '$2')
  38786. } else {
  38787. element = padding + element + nscopealt
  38788. }
  38789. }
  38790. }
  38791. out += element
  38792. }
  38793. selector[i] = out.replace(formatptn, '').trim()
  38794. }
  38795. return selector
  38796. }
  38797. /**
  38798. * Proxy
  38799. *
  38800. * @param {number} context
  38801. * @param {string} content
  38802. * @param {Array<string>} selectors
  38803. * @param {Array<string>} parents
  38804. * @param {number} line
  38805. * @param {number} column
  38806. * @param {number} length
  38807. * @param {number} id
  38808. * @param {number} depth
  38809. * @param {number} at
  38810. * @return {(string|void|*)}
  38811. */
  38812. function proxy (context, content, selectors, parents, line, column, length, id, depth, at) {
  38813. for (var i = 0, out = content, next; i < plugged; ++i) {
  38814. switch (next = plugins[i].call(stylis, context, out, selectors, parents, line, column, length, id, depth, at)) {
  38815. case void 0:
  38816. case false:
  38817. case true:
  38818. case null: {
  38819. break
  38820. }
  38821. default: {
  38822. out = next
  38823. }
  38824. }
  38825. }
  38826. if (out !== content) {
  38827. return out
  38828. }
  38829. }
  38830. /**
  38831. * @param {number} code
  38832. * @param {number} index
  38833. * @param {number} length
  38834. * @param {string} body
  38835. * @return {number}
  38836. */
  38837. function delimited (code, index, length, body) {
  38838. for (var i = index + 1; i < length; ++i) {
  38839. switch (body.charCodeAt(i)) {
  38840. // /*
  38841. case FOWARDSLASH: {
  38842. if (code === STAR) {
  38843. if (body.charCodeAt(i - 1) === STAR && index + 2 !== i) {
  38844. return i + 1
  38845. }
  38846. }
  38847. break
  38848. }
  38849. // //
  38850. case NEWLINE: {
  38851. if (code === FOWARDSLASH) {
  38852. return i + 1
  38853. }
  38854. }
  38855. }
  38856. }
  38857. return i
  38858. }
  38859. /**
  38860. * @param {number} type
  38861. * @param {number} index
  38862. * @param {number} length
  38863. * @param {number} find
  38864. * @param {string} body
  38865. * @return {number}
  38866. */
  38867. function match (type, index, length, body) {
  38868. for (var i = index + 1; i < length; ++i) {
  38869. switch (body.charCodeAt(i)) {
  38870. case type: {
  38871. return i
  38872. }
  38873. }
  38874. }
  38875. return i
  38876. }
  38877. /**
  38878. * Minify
  38879. *
  38880. * @param {(string|*)} output
  38881. * @return {string}
  38882. */
  38883. function minify (output) {
  38884. return output
  38885. .replace(formatptn, '')
  38886. .replace(beforeptn, '')
  38887. .replace(afterptn, '$1')
  38888. .replace(tailptn, '$1')
  38889. .replace(whiteptn, ' ')
  38890. }
  38891. /**
  38892. * Use
  38893. *
  38894. * @param {(Array<function(...?)>|function(...?)|number|void)?} plugin
  38895. */
  38896. function use (plugin) {
  38897. switch (plugin) {
  38898. case void 0:
  38899. case null: {
  38900. plugged = plugins.length = 0
  38901. break
  38902. }
  38903. default: {
  38904. if (typeof plugin === 'function') {
  38905. plugins[plugged++] = plugin
  38906. } else if (typeof plugin === 'object') {
  38907. for (var i = 0, length = plugin.length; i < length; ++i) {
  38908. use(plugin[i])
  38909. }
  38910. } else {
  38911. unkwn = !!plugin|0
  38912. }
  38913. }
  38914. }
  38915. return use
  38916. }
  38917. /**
  38918. * Set
  38919. *
  38920. * @param {*} options
  38921. */
  38922. function set (options) {
  38923. for (var name in options) {
  38924. var value = options[name]
  38925. switch (name) {
  38926. case 'keyframe': keyed = value|0; break
  38927. case 'global': escape = value|0; break
  38928. case 'cascade': cascade = value|0; break
  38929. case 'compress': compress = value|0; break
  38930. case 'semicolon': semicolon = value|0; break
  38931. case 'preserve': preserve = value|0; break
  38932. case 'prefix':
  38933. should = null
  38934. if (!value) {
  38935. prefix = 0
  38936. } else if (typeof value !== 'function') {
  38937. prefix = 1
  38938. } else {
  38939. prefix = 2
  38940. should = value
  38941. }
  38942. }
  38943. }
  38944. return set
  38945. }
  38946. /**
  38947. * Stylis
  38948. *
  38949. * @param {string} selector
  38950. * @param {string} input
  38951. * @return {*}
  38952. */
  38953. function stylis (selector, input) {
  38954. if (this !== void 0 && this.constructor === stylis) {
  38955. return factory(selector)
  38956. }
  38957. // setup
  38958. var ns = selector
  38959. var code = ns.charCodeAt(0)
  38960. // trim leading whitespace
  38961. if (code < 33) {
  38962. code = (ns = ns.trim()).charCodeAt(0)
  38963. }
  38964. // keyframe/animation namespace
  38965. if (keyed > 0) {
  38966. key = ns.replace(invalidptn, code === OPENBRACKET ? '' : '-')
  38967. }
  38968. // reset, used to assert if a plugin is moneky-patching the return value
  38969. code = 1
  38970. // cascade/isolate
  38971. if (cascade === 1) {
  38972. nscope = ns
  38973. } else {
  38974. nscopealt = ns
  38975. }
  38976. var selectors = [nscope]
  38977. var result
  38978. // execute plugins, pre-process context
  38979. if (plugged > 0) {
  38980. result = proxy(PREPS, input, selectors, selectors, line, column, 0, 0, 0, 0)
  38981. if (result !== void 0 && typeof result === 'string') {
  38982. input = result
  38983. }
  38984. }
  38985. // build
  38986. var output = compile(array, selectors, input, 0, 0)
  38987. // execute plugins, post-process context
  38988. if (plugged > 0) {
  38989. result = proxy(POSTS, output, selectors, selectors, line, column, output.length, 0, 0, 0)
  38990. // bypass minification
  38991. if (result !== void 0 && typeof(output = result) !== 'string') {
  38992. code = 0
  38993. }
  38994. }
  38995. // reset
  38996. key = ''
  38997. nscope = ''
  38998. nscopealt = ''
  38999. pattern = 0
  39000. line = 1
  39001. column = 1
  39002. return compress*code === 0 ? output : minify(output)
  39003. }
  39004. stylis['use'] = use
  39005. stylis['set'] = set
  39006. if (options !== void 0) {
  39007. set(options)
  39008. }
  39009. return stylis
  39010. }));
  39011. /***/ }),
  39012. /***/ "./node_modules/webpack/buildin/global.js":
  39013. /*!***********************************!*\
  39014. !*** (webpack)/buildin/global.js ***!
  39015. \***********************************/
  39016. /*! no static exports found */
  39017. /***/ (function(module, exports) {
  39018. var g;
  39019. // This works in non-strict mode
  39020. g = (function() {
  39021. return this;
  39022. })();
  39023. try {
  39024. // This works if eval is allowed (see CSP)
  39025. g = g || new Function("return this")();
  39026. } catch (e) {
  39027. // This works if the window reference is available
  39028. if (typeof window === "object") g = window;
  39029. }
  39030. // g can still be undefined, but nothing to do about it...
  39031. // We return undefined, instead of nothing here, so it's
  39032. // easier to handle this case. if(!global) { ...}
  39033. module.exports = g;
  39034. /***/ }),
  39035. /***/ "./node_modules/webpack/buildin/module.js":
  39036. /*!***********************************!*\
  39037. !*** (webpack)/buildin/module.js ***!
  39038. \***********************************/
  39039. /*! no static exports found */
  39040. /***/ (function(module, exports) {
  39041. module.exports = function(module) {
  39042. if (!module.webpackPolyfill) {
  39043. module.deprecate = function() {};
  39044. module.paths = [];
  39045. // module.parent = undefined by default
  39046. if (!module.children) module.children = [];
  39047. Object.defineProperty(module, "loaded", {
  39048. enumerable: true,
  39049. get: function() {
  39050. return module.l;
  39051. }
  39052. });
  39053. Object.defineProperty(module, "id", {
  39054. enumerable: true,
  39055. get: function() {
  39056. return module.i;
  39057. }
  39058. });
  39059. module.webpackPolyfill = 1;
  39060. }
  39061. return module;
  39062. };
  39063. /***/ }),
  39064. /***/ "./package.json":
  39065. /*!**********************!*\
  39066. !*** ./package.json ***!
  39067. \**********************/
  39068. /*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, yarn-upgrade-all, sideEffects, husky, default */
  39069. /***/ (function(module) {
  39070. module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.6.2\",\"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:development\":\"webpack --progress --colors\",\"build:production\":\"yarn build:development -p --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"minify\":\"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack-dev-server --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test && yarn e2e\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"d3\":\"^5.7.0\",\"dagre\":\"^0.8.4\",\"dagre-d3\":\"^0.6.4\",\"entity-decode\":\"^2.0.2\",\"graphlib\":\"^2.1.7\",\"he\":\"^1.2.0\",\"khroma\":\"^1.1.0\",\"minify\":\"^4.1.1\",\"moment-mini\":\"^2.22.1\",\"stylis\":\"^3.5.2\"},\"devDependencies\":{\"@babel/core\":\"^7.2.2\",\"@babel/preset-env\":\"^7.8.4\",\"@babel/register\":\"^7.0.0\",\"@percy/cypress\":\"*\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^24.9.0\",\"babel-loader\":\"^8.0.4\",\"coveralls\":\"^3.0.2\",\"css-loader\":\"^2.0.1\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"4.0.1\",\"documentation\":\"^12.0.1\",\"eslint\":\"^6.3.0\",\"eslint-config-prettier\":\"^6.3.0\",\"eslint-plugin-prettier\":\"^3.1.0\",\"husky\":\"^1.2.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^24.9.0\",\"jison\":\"^0.4.18\",\"moment\":\"^2.23.0\",\"node-sass\":\"^4.12.0\",\"prettier\":\"^1.18.2\",\"puppeteer\":\"^1.17.0\",\"sass-loader\":\"^7.1.0\",\"start-server-and-test\":\"^1.10.6\",\"terser-webpack-plugin\":\"^2.2.2\",\"webpack\":\"^4.41.2\",\"webpack-bundle-analyzer\":\"^3.7.0\",\"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\"]},\"sideEffects\":[\"**/*.css\",\"**/*.scss\"],\"husky\":{\"hooks\":{\"pre-push\":\"yarn test\"}}}");
  39071. /***/ }),
  39072. /***/ "./src/config.js":
  39073. /*!***********************!*\
  39074. !*** ./src/config.js ***!
  39075. \***********************/
  39076. /*! exports provided: defaultConfig, setSiteConfig, getSiteConfig, setConfig, getConfig, sanitize, reset, default */
  39077. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39078. "use strict";
  39079. __webpack_require__.r(__webpack_exports__);
  39080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultConfig", function() { return defaultConfig; });
  39081. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setSiteConfig", function() { return setSiteConfig; });
  39082. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSiteConfig", function() { return getSiteConfig; });
  39083. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConfig", function() { return setConfig; });
  39084. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getConfig", function() { return getConfig; });
  39085. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sanitize", function() { return sanitize; });
  39086. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reset", function() { return reset; });
  39087. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
  39088. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./logger */ "./src/logger.js");
  39089. /* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js");
  39090. // import { unflatten } from 'flat';
  39091. // import flatten from 'flat';
  39092. // import themeVariables from './theme-default';
  39093. // import themeForestVariables from './theme-forest';
  39094. // import themeNeutralVariables from './theme-neutral';
  39095. var handleThemeVariables = function handleThemeVariables(value) {
  39096. return _themes__WEBPACK_IMPORTED_MODULE_2__["default"][value] ? _themes__WEBPACK_IMPORTED_MODULE_2__["default"][value].getThemeVariables() : _themes__WEBPACK_IMPORTED_MODULE_2__["default"].default.getThemeVariables();
  39097. };
  39098. var manipulators = {
  39099. themeVariables: handleThemeVariables
  39100. };
  39101. /**
  39102. * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].**
  39103. *
  39104. * ## **What follows are config instructions for older versions**
  39105. * These are the default options which can be overridden with the initialization call like so:
  39106. * **Example 1:**
  39107. * <pre>
  39108. * mermaid.initialize({
  39109. * flowchart:{
  39110. * htmlLabels: false
  39111. * }
  39112. * });
  39113. * </pre>
  39114. *
  39115. * **Example 2:**
  39116. * <pre>
  39117. * &lt;script>
  39118. * var config = {
  39119. * startOnLoad:true,
  39120. * flowchart:{
  39121. * useMaxWidth:true,
  39122. * htmlLabels:true,
  39123. * curve:'cardinal',
  39124. * },
  39125. *
  39126. * securityLevel:'loose',
  39127. * };
  39128. * mermaid.initialize(config);
  39129. * &lt;/script>
  39130. * </pre>
  39131. * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below.
  39132. *
  39133. * @name Configuration
  39134. */
  39135. var config = {
  39136. /** theme , the CSS style sheet
  39137. *
  39138. * theme , the CSS style sheet
  39139. *
  39140. *| Parameter | Description |Type | Required | Values|
  39141. *| --- | --- | --- | --- | --- |
  39142. *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|
  39143. *
  39144. ***Notes:**To disable any pre-defined mermaid theme, use "null".
  39145. * <pre>
  39146. * "theme": "forest",
  39147. * "themeCSS": ".node rect { fill: red; }"
  39148. * </pre>
  39149. */
  39150. theme: 'default',
  39151. themeVariables: _themes__WEBPACK_IMPORTED_MODULE_2__["default"]['default'].getThemeVariables(),
  39152. themeCSS: undefined,
  39153. /* **maxTextSize** - The maximum allowed size of the users text diamgram */
  39154. maxTextSize: 50000,
  39155. /**
  39156. *| Parameter | Description |Type | Required | Values|
  39157. *| --- | --- | --- | --- | --- |
  39158. *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,|
  39159. *
  39160. ***notes: Default value is \\"trebuchet ms\\".
  39161. */
  39162. fontFamily: '"trebuchet ms", verdana, arial;',
  39163. /**
  39164. *| Parameter | Description |Type | Required | Values|
  39165. *| --- | --- | --- | --- | --- |
  39166. *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 |
  39167. *
  39168. *
  39169. ***Notes:**
  39170. *- debug: 1.
  39171. *- info: 2.
  39172. *- warn: 3.
  39173. *- error: 4.
  39174. *- fatal: 5(default).
  39175. */
  39176. logLevel: 5,
  39177. /**
  39178. *| Parameter | Description |Type | Required | Values|
  39179. *| --- | --- | --- | --- | --- |
  39180. *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript |
  39181. *
  39182. ***Notes:
  39183. *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled
  39184. *- **loose**: tags in text are allowed, click functionality is enabled
  39185. *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled
  39186. */
  39187. securityLevel: 'strict',
  39188. /**
  39189. *| Parameter | Description |Type | Required | Values|
  39190. *| --- | --- | --- | --- | --- |
  39191. *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False |
  39192. *
  39193. ***Notes:**
  39194. ***Default value: true**
  39195. */
  39196. startOnLoad: true,
  39197. /**
  39198. *| Parameter | Description |Type | Required |Values|
  39199. *| --- | --- | --- | --- | --- |
  39200. *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False |
  39201. *
  39202. *
  39203. *## Notes**: This matters if you are using base tag settings.
  39204. ***Default value: false**.
  39205. */
  39206. arrowMarkerAbsolute: false,
  39207. /**
  39208. * This option controls which currentConfig keys are considered _secure_ and can only be changed via
  39209. * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to
  39210. * the `secure` keys in the current currentConfig. This prevents malicious graph directives from
  39211. * overriding a site's default security.
  39212. */
  39213. secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],
  39214. /**
  39215. * The object containing configurations specific for flowcharts
  39216. */
  39217. flowchart: {
  39218. /**
  39219. *| Parameter | Description |Type | Required | Values|
  39220. *| --- | --- | --- | --- | --- |
  39221. *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |
  39222. *
  39223. ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels
  39224. ***Default value: 8**.
  39225. */
  39226. diagramPadding: 8,
  39227. /**
  39228. *| Parameter | Description |Type | Required | Values|
  39229. *| --- | --- | --- | --- | --- |
  39230. *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False|
  39231. *
  39232. ***Notes: Default value: true**.
  39233. */
  39234. htmlLabels: true,
  39235. /**
  39236. *| Parameter | Description |Type | Required | Values|
  39237. *| --- | --- | --- | --- | --- |
  39238. *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers |
  39239. *
  39240. ***Notes:
  39241. *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.**
  39242. ***Default value 50**.
  39243. */
  39244. nodeSpacing: 50,
  39245. /**
  39246. *| Parameter | Description |Type | Required | Values|
  39247. *| --- | --- | --- | --- | --- |
  39248. *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers |
  39249. *
  39250. ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs.
  39251. ***Default value 50**.
  39252. */
  39253. rankSpacing: 50,
  39254. /**
  39255. *| Parameter | Description |Type | Required | Values|
  39256. *| --- | --- | --- | --- | --- |
  39257. *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal|
  39258. *
  39259. ***Notes:
  39260. *Default Vaue: Linear**
  39261. */
  39262. curve: 'linear',
  39263. // Only used in new experimental rendering
  39264. // repreesents the padding between the labels and the shape
  39265. padding: 15
  39266. },
  39267. /**
  39268. * The object containing configurations specific for sequence diagrams
  39269. */
  39270. sequence: {
  39271. /**
  39272. * widt of the activation rect
  39273. * **Default value 10**.
  39274. */
  39275. activationWidth: 10,
  39276. /**
  39277. *| Parameter | Description |Type | Required | Values|
  39278. *| --- | --- | --- | --- | --- |
  39279. *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values |
  39280. *
  39281. ***Notes:**
  39282. ***Default value 50**.
  39283. */
  39284. diagramMarginX: 50,
  39285. /**
  39286. *| Parameter | Description |Type | Required | Values|
  39287. *| --- | --- | --- | --- | --- |
  39288. *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values|
  39289. *
  39290. ***Notes:**
  39291. ***Default value 10**.
  39292. */
  39293. diagramMarginY: 10,
  39294. /**
  39295. *| Parameter | Description |Type | Required | Values|
  39296. *| --- | --- | --- | --- | --- |
  39297. *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value |
  39298. *
  39299. ***Notes:**
  39300. ***Default value 50**.
  39301. */
  39302. actorMargin: 50,
  39303. /**
  39304. *| Parameter | Description |Type | Required | Values|
  39305. *| --- | --- | --- | --- | --- |
  39306. *| width | Width of actor boxes | Integer | Required | Any Positive Value |
  39307. *
  39308. ***Notes:**
  39309. ***Default value 150**.
  39310. */
  39311. width: 150,
  39312. /**
  39313. *| Parameter | Description |Type | Required | Values|
  39314. *| --- | --- | --- | --- | --- |
  39315. *| height | Height of actor boxes | Integer | Required | Any Positive Value|
  39316. *
  39317. ***Notes:**
  39318. ***Default value 65**..
  39319. */
  39320. height: 65,
  39321. /**
  39322. *| Parameter | Description |Type | Required | Values|
  39323. *| --- | --- | --- | --- | --- |
  39324. *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |
  39325. *
  39326. ***Notes:**
  39327. *
  39328. ***Default value 10**.
  39329. */
  39330. boxMargin: 10,
  39331. /**
  39332. *| Parameter | Description |Type | Required | Values|
  39333. *| --- | --- | --- | --- | --- |
  39334. *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value|
  39335. *
  39336. ***Notes:**
  39337. *
  39338. ***Default value 5**.
  39339. */
  39340. boxTextMargin: 5,
  39341. /**
  39342. *| Parameter | Description |Type | Required | Values|
  39343. *| --- | --- | --- | --- | --- |
  39344. *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |
  39345. *
  39346. ***Notes:**
  39347. *
  39348. ***Default value 10**.
  39349. */
  39350. noteMargin: 10,
  39351. /**
  39352. *| Parameter | Description |Type | Required | Values|
  39353. *| --- | --- | --- | --- | --- |
  39354. *| messageMargin | Space between messages. | Integer | Required | Any Positive Value |
  39355. *
  39356. ***Notes:**
  39357. *
  39358. *Space between messages.
  39359. ***Default value 35**.
  39360. */
  39361. messageMargin: 35,
  39362. /**
  39363. *| Parameter | Description |Type | Required | Values|
  39364. *| --- | --- | --- | --- | --- |
  39365. *| messageAlign | Multiline message alignment | Integer | Required | left, center, right |
  39366. *
  39367. ***Notes:**center **default**
  39368. */
  39369. messageAlign: 'center',
  39370. /**
  39371. *| Parameter | Description |Type | Required | Values|
  39372. *| --- | --- | --- | --- | --- |
  39373. *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False |
  39374. *
  39375. ***Notes:**
  39376. *
  39377. ***Default value true**.
  39378. */
  39379. mirrorActors: true,
  39380. /**
  39381. *| Parameter | Description |Type | Required | Values|
  39382. *| --- | --- | --- | --- | --- |
  39383. *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value |
  39384. *
  39385. ***Notes:**Depending on css styling this might need adjustment.
  39386. ***Default value 1**.
  39387. */
  39388. bottomMarginAdj: 1,
  39389. /**
  39390. *| Parameter | Description |Type | Required | Values|
  39391. *| --- | --- | --- | --- | --- |
  39392. *| useMaxWidth | See Notes | Boolean | Required | True, False |
  39393. *
  39394. ***Notes:**
  39395. *when this flag is set to true, the height and width is set to 100% and is then scaling with the
  39396. *available space. If set to false, the absolute space required is used.
  39397. ***Default value: True**.
  39398. */
  39399. useMaxWidth: true,
  39400. /**
  39401. *| Parameter | Description |Type | Required | Values|
  39402. *| --- | --- | --- | --- | --- |
  39403. *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False |
  39404. *
  39405. ***Notes:**
  39406. *
  39407. *This will display arrows that start and begin at the same node as right angles, rather than a curve
  39408. ***Default value false**.
  39409. */
  39410. rightAngles: false,
  39411. /**
  39412. *| Parameter | Description |Type | Required | Values|
  39413. *| --- | --- | --- | --- | --- |
  39414. *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False |
  39415. *
  39416. ***Notes:**
  39417. ***Default value false**.
  39418. */
  39419. showSequenceNumbers: false,
  39420. /**
  39421. *| Parameter | Description |Type | Required | Values|
  39422. *| --- | --- | --- | --- | --- |
  39423. *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value |
  39424. *
  39425. ***Notes:**
  39426. ***Default value 14**..
  39427. */
  39428. actorFontSize: 14,
  39429. /**
  39430. *| Parameter | Description |Type | Required | Values|
  39431. *| --- | --- | --- | --- | --- |
  39432. *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif |
  39433. *
  39434. ***Notes:**
  39435. ***Default value "Open-Sans", "sans-serif"**.
  39436. */
  39437. actorFontFamily: '"Open-Sans", "sans-serif"',
  39438. /**
  39439. * This sets the font weight of the actor's description
  39440. * **Default value 400.
  39441. */
  39442. actorFontWeight: 400,
  39443. /**
  39444. *| Parameter | Description |Type | Required | Values|
  39445. *| --- | --- | --- | --- | --- |
  39446. *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value |
  39447. *
  39448. ***Notes:**
  39449. ***Default value 14**..
  39450. */
  39451. noteFontSize: 14,
  39452. /**
  39453. *| Parameter | Description |Type | Required | Values|
  39454. *| --- | --- | --- | --- | --- |
  39455. *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial |
  39456. *
  39457. ***Notes:**
  39458. ***Default value: trebuchet ms **.
  39459. */
  39460. noteFontFamily: '"trebuchet ms", verdana, arial',
  39461. /**
  39462. * This sets the font weight of the note's description
  39463. * **Default value 400.
  39464. */
  39465. noteFontWeight: 400,
  39466. /**
  39467. *| Parameter | Description |Type | Required | Values|
  39468. *| --- | --- | --- | --- | --- |
  39469. *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right|
  39470. *
  39471. ***Notes:**
  39472. ***Default value center**.
  39473. */
  39474. noteAlign: 'center',
  39475. /**
  39476. *| Parameter | Description |Type | Required | Values|
  39477. *| --- | --- | --- | --- | --- |
  39478. *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number |
  39479. *
  39480. ***Notes:**
  39481. ***Default value 16**.
  39482. */
  39483. messageFontSize: 16,
  39484. /**
  39485. *| Parameter | Description |Type | Required | Values|
  39486. *| --- | --- | --- | --- | --- |
  39487. *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms", verdana, aria |
  39488. *
  39489. ***Notes:**
  39490. ***Default value:"trebuchet ms**.
  39491. */
  39492. messageFontFamily: '"trebuchet ms", verdana, arial',
  39493. /**
  39494. * This sets the font weight of the message's description
  39495. * **Default value 400.
  39496. */
  39497. messageFontWeight: 400,
  39498. /**
  39499. * This sets the auto-wrap state for the diagram
  39500. * **Default value false.
  39501. */
  39502. wrap: false,
  39503. /**
  39504. * This sets the auto-wrap padding for the diagram (sides only)
  39505. * **Default value 10.
  39506. */
  39507. wrapPadding: 10,
  39508. /**
  39509. * This sets the width of the loop-box (loop, alt, opt, par)
  39510. * **Default value 50.
  39511. */
  39512. labelBoxWidth: 50,
  39513. /**
  39514. * This sets the height of the loop-box (loop, alt, opt, par)
  39515. * **Default value 20.
  39516. */
  39517. labelBoxHeight: 20,
  39518. messageFont: function messageFont() {
  39519. return {
  39520. fontFamily: this.messageFontFamily,
  39521. fontSize: this.messageFontSize,
  39522. fontWeight: this.messageFontWeight
  39523. };
  39524. },
  39525. noteFont: function noteFont() {
  39526. return {
  39527. fontFamily: this.noteFontFamily,
  39528. fontSize: this.noteFontSize,
  39529. fontWeight: this.noteFontWeight
  39530. };
  39531. },
  39532. actorFont: function actorFont() {
  39533. return {
  39534. fontFamily: this.actorFontFamily,
  39535. fontSize: this.actorFontSize,
  39536. fontWeight: this.actorFontWeight
  39537. };
  39538. }
  39539. },
  39540. /**
  39541. * The object containing configurations specific for gantt diagrams*
  39542. */
  39543. gantt: {
  39544. /**
  39545. *### titleTopMargin
  39546. *
  39547. *| Parameter | Description |Type | Required | Values|
  39548. *| --- | --- | --- | --- | --- |
  39549. *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value |
  39550. *
  39551. ***Notes:**
  39552. ***Default value 25**.
  39553. */
  39554. titleTopMargin: 25,
  39555. /**
  39556. *| Parameter | Description |Type | Required | Values|
  39557. *| --- | --- | --- | --- | --- |
  39558. *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value |
  39559. *
  39560. ***Notes:**
  39561. ***Default value 20**.
  39562. */
  39563. barHeight: 20,
  39564. /**
  39565. *| Parameter | Description |Type | Required | Values|
  39566. *| --- | --- | --- | --- | --- |
  39567. *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value |
  39568. *
  39569. ***Notes:**
  39570. ***Default value 4**.
  39571. */
  39572. barGap: 4,
  39573. /**
  39574. *| Parameter | Description |Type | Required | Values|
  39575. *| --- | --- | --- | --- | --- |
  39576. *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value |
  39577. *
  39578. ***Notes:**
  39579. ***Default value 50**.
  39580. */
  39581. topPadding: 50,
  39582. /**
  39583. *| Parameter | Description |Type | Required | Values|
  39584. *| --- | --- | --- | --- | --- |
  39585. *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value |
  39586. *
  39587. ***Notes:**
  39588. ***Default value 75**.
  39589. */
  39590. leftPadding: 75,
  39591. /**
  39592. *| Parameter | Description |Type | Required | Values|
  39593. *| --- | --- | --- | --- | --- |
  39594. *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value |
  39595. *
  39596. ***Notes:**
  39597. ***Default value 35**.
  39598. */
  39599. gridLineStartPadding: 35,
  39600. /**
  39601. *| Parameter | Description |Type | Required | Values|
  39602. *| --- | --- | --- | --- | --- |
  39603. *| fontSize | Font size| Integer | Required | Any Positive Value |
  39604. *
  39605. ***Notes:**
  39606. ***Default value 11**.
  39607. */
  39608. fontSize: 11,
  39609. /**
  39610. *| Parameter | Description |Type | Required | Values|
  39611. *| --- | --- | --- | --- | --- |
  39612. *| fontFamily | font Family | string | required |"Open-Sans", "sans-serif" |
  39613. *
  39614. ***Notes:**
  39615. *
  39616. ***Default value '"Open-Sans", "sans-serif"'**.
  39617. */
  39618. fontFamily: '"Open-Sans", "sans-serif"',
  39619. /**
  39620. *| Parameter | Description |Type | Required | Values|
  39621. *| --- | --- | --- | --- | --- |
  39622. *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value |
  39623. *
  39624. ***Notes:**
  39625. ***Default value 4**.
  39626. */
  39627. numberSectionStyles: 4,
  39628. /**
  39629. *| Parameter | Description |Type | Required | Values|
  39630. *| --- | --- | --- | --- | --- |
  39631. *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd |
  39632. *
  39633. ***Notes:**
  39634. *
  39635. * This might need adjustment to match your locale and preferences
  39636. ***Default value '%Y-%m-%d'**.
  39637. */
  39638. axisFormat: '%Y-%m-%d'
  39639. },
  39640. /**
  39641. * The object containing configurations specific for sequence diagrams
  39642. */
  39643. journey: {
  39644. /**
  39645. *| Parameter | Description |Type | Required | Values|
  39646. *| --- | --- | --- | --- | --- |
  39647. *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value |
  39648. *
  39649. ***Notes:**
  39650. ***Default value 50**.
  39651. */
  39652. diagramMarginX: 50,
  39653. /**
  39654. *| Parameter | Description |Type | Required | Values|
  39655. *| --- | --- | --- | --- | --- |
  39656. *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value|
  39657. *
  39658. ***Notes:**
  39659. ***Default value 10**..
  39660. */
  39661. diagramMarginY: 10,
  39662. /**
  39663. *| Parameter | Description |Type | Required | Values|
  39664. *| --- | --- | --- | --- | --- |
  39665. *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value|
  39666. *
  39667. ***Notes:**
  39668. ***Default value 50**.
  39669. */
  39670. actorMargin: 50,
  39671. /**
  39672. *| Parameter | Description |Type | Required | Values|
  39673. *| --- | --- | --- | --- | --- |
  39674. *| width | Width of actor boxes | Integer | Required | Any Positive Value |
  39675. *
  39676. ***Notes:**
  39677. ***Default value 150**.
  39678. */
  39679. width: 150,
  39680. /**
  39681. *| Parameter | Description |Type | Required | Values|
  39682. *| --- | --- | --- | --- | --- |
  39683. *| height | Height of actor boxes | Integer | Required | Any Positive Value |
  39684. *
  39685. ***Notes:**
  39686. ***Default value 65**.
  39687. */
  39688. height: 65,
  39689. /**
  39690. *| Parameter | Description |Type | Required | Values|
  39691. *| --- | --- | --- | --- | --- |
  39692. *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |
  39693. *
  39694. ***Notes:**
  39695. ***Default value 10**.
  39696. */
  39697. boxMargin: 10,
  39698. /**
  39699. *| Parameter | Description |Type | Required | Values|
  39700. *| --- | --- | --- | --- | --- |
  39701. *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value |
  39702. *
  39703. ***Notes:**
  39704. */
  39705. boxTextMargin: 5,
  39706. /**
  39707. *| Parameter | Description |Type | Required | Values|
  39708. *| --- | --- | --- | --- | --- |
  39709. *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |
  39710. *
  39711. ***Notes:**
  39712. ***Default value 10**.
  39713. */
  39714. noteMargin: 10,
  39715. /**
  39716. *| Parameter | Description |Type | Required | Values|
  39717. *| --- | --- | --- | --- | --- |
  39718. *| messageMargin |Space between messages. | Integer | Required | Any Positive Value |
  39719. *
  39720. ***Notes:**
  39721. *
  39722. *Space between messages.
  39723. ***Default value 35**.
  39724. */
  39725. messageMargin: 35,
  39726. /**
  39727. *| Parameter | Description |Type | Required | Values|
  39728. *| --- | --- | --- | --- | --- |
  39729. *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right |
  39730. *
  39731. ***Notes:**default:center**
  39732. */
  39733. messageAlign: 'center',
  39734. /**
  39735. *| Parameter | Description |Type | Required | Values|
  39736. *| --- | --- | --- | --- | --- |
  39737. *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value |
  39738. *
  39739. ***Notes:**Depending on css styling this might need adjustment.
  39740. ***Default value 1**.
  39741. */
  39742. bottomMarginAdj: 1,
  39743. /**
  39744. *| Parameter | Description |Type | Required | Values|
  39745. *| --- | --- | --- | --- | --- |
  39746. *| useMaxWidth | See notes | Boolean | 4 | True, False |
  39747. *
  39748. ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the
  39749. *available space if not the absolute space required is used.
  39750. *
  39751. ***Default value true**.
  39752. */
  39753. useMaxWidth: true,
  39754. /**
  39755. *| Parameter | Description |Type | Required | Values|
  39756. *| --- | --- | --- | --- | --- |
  39757. *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False |
  39758. *
  39759. ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves
  39760. ***Default value false**.
  39761. */
  39762. rightAngles: false
  39763. },
  39764. class: {
  39765. arrowMarkerAbsolute: false
  39766. },
  39767. git: {
  39768. arrowMarkerAbsolute: false
  39769. },
  39770. state: {
  39771. dividerMargin: 10,
  39772. sizeUnit: 5,
  39773. padding: 8,
  39774. textHeight: 10,
  39775. titleShift: -15,
  39776. noteMargin: 10,
  39777. forkWidth: 70,
  39778. forkHeight: 7,
  39779. // Used
  39780. miniPadding: 2,
  39781. // Font size factor, this is used to guess the width of the edges labels before rendering by dagre
  39782. // layout. This might need updating if/when switching font
  39783. fontSizeFactor: 5.02,
  39784. fontSize: 24,
  39785. labelHeight: 16,
  39786. edgeLengthFactor: '20',
  39787. compositTitleSize: 35,
  39788. radius: 5
  39789. },
  39790. /**
  39791. * The object containing configurations specific for entity relationship diagrams
  39792. */
  39793. er: {
  39794. /**
  39795. *| Parameter | Description |Type | Required | Values|
  39796. *| --- | --- | --- | --- | --- |
  39797. *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |
  39798. *
  39799. ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels
  39800. ***Default value: 20**.
  39801. */
  39802. diagramPadding: 20,
  39803. /**
  39804. *| Parameter | Description |Type | Required | Values|
  39805. *| --- | --- | --- | --- | --- |
  39806. *| layoutDirection | Directional bias for layout of entities. | String | Required | "TB", "BT","LR","RL" |
  39807. *
  39808. ***Notes:**
  39809. *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left.
  39810. * T = top, B = bottom, L = left, and R = right.
  39811. ***Default value: TB **.
  39812. */
  39813. layoutDirection: 'TB',
  39814. /**
  39815. *| Parameter | Description |Type | Required | Values|
  39816. *| --- | --- | --- | --- | --- |
  39817. *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value |
  39818. *
  39819. ***Notes:**expressed in pixels
  39820. ***Default value: 100**.
  39821. */
  39822. minEntityWidth: 100,
  39823. /**
  39824. *| Parameter | Description |Type | Required | Values|
  39825. *| --- | --- | --- | --- | --- |
  39826. *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value |
  39827. *
  39828. ***Notes:**expressed in pixels
  39829. ***Default value: 75 **
  39830. */
  39831. minEntityHeight: 75,
  39832. /**
  39833. *| Parameter | Description |Type | Required | Values|
  39834. *| --- | --- | --- | --- | --- |
  39835. *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value |
  39836. *
  39837. ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels.
  39838. ***Default value: 15 **
  39839. */
  39840. entityPadding: 15,
  39841. /**
  39842. *| Parameter | Description |Type | Required | Values|
  39843. *| --- | --- | --- | --- | --- |
  39844. *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color |
  39845. ***Default value: gray **
  39846. */
  39847. stroke: 'gray',
  39848. /**
  39849. *| Parameter | Description |Type | Required | Values|
  39850. *| --- | --- | --- | --- | --- |
  39851. *| fill | Fill color of entity boxes | String | 4 | Any recognized color |
  39852. *
  39853. ***Notes:**
  39854. ***Default value:'honeydew'**
  39855. */
  39856. fill: 'honeydew',
  39857. /**
  39858. *| Parameter | Description |Type | Required | Values|
  39859. *| --- | --- | --- | --- | --- |
  39860. *| fontSize| Font Size in pixels| Integer | | Any Positive Value |
  39861. *
  39862. ***Notes:**Font size (expressed as an integer representing a number of pixels)
  39863. ***Default value: 12 **
  39864. */
  39865. fontSize: 12,
  39866. /**
  39867. *| Parameter | Description |Type | Required | Values|
  39868. *| --- | --- | --- | --- | --- |
  39869. *| useMaxWidth | See Notes | Boolean | Required | true, false |
  39870. *
  39871. ***Notes:**
  39872. *When this flag is set to true, the diagram width is locked to 100% and
  39873. *scaled based on available space. If set to false, the diagram reserves its
  39874. *absolute width.
  39875. ***Default value: true**.
  39876. */
  39877. useMaxWidth: true
  39878. }
  39879. }; // debugger;
  39880. config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
  39881. config.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
  39882. var defaultConfig = Object.freeze(config);
  39883. var siteConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, defaultConfig);
  39884. var currentConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, defaultConfig);
  39885. /**
  39886. *## setSiteConfig
  39887. *| Function | Description | Type | Values |
  39888. *| --------- | ------------------- | ------- | ------------------ |
  39889. *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array|
  39890. ***Notes:**
  39891. *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset
  39892. *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig
  39893. *to the defaultConfig
  39894. *Note: currentConfig is set in this function
  39895. **Default value: At default, will mirror Global Config**
  39896. * @param conf - the base currentConfig to use as siteConfig
  39897. * @returns {*} - the siteConfig
  39898. */
  39899. var setSiteConfig = function setSiteConfig(conf) {
  39900. Object.keys(conf).forEach(function (key) {
  39901. var manipulator = manipulators[key];
  39902. conf[key] = manipulator ? manipulator(conf[key]) : conf[key];
  39903. });
  39904. Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(currentConfig, conf, {
  39905. clobber: true
  39906. }); // Set theme variables if user has set the theme option
  39907. Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(siteConfig, conf);
  39908. return getSiteConfig();
  39909. };
  39910. /**
  39911. *## getSiteConfig
  39912. *| Function | Description | Type | Values |
  39913. *| --------- | ------------------- | ------- | ------------------ |
  39914. *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig|
  39915. ***Notes**:
  39916. *Returns **any** values in siteConfig.
  39917. * @returns {*}
  39918. */
  39919. var getSiteConfig = function getSiteConfig() {
  39920. return Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, siteConfig);
  39921. };
  39922. /**
  39923. *## setConfig
  39924. *| Function | Description | Type | Values |
  39925. *| --------- | ------------------- | ------- | ------------------ |
  39926. *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array|
  39927. ***Notes**:
  39928. *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any
  39929. *values found in conf with key found in siteConfig.secure will be replaced with the corresponding
  39930. *siteConfig value.
  39931. * @param conf - the potential currentConfig
  39932. * @returns {*} - the currentConfig merged with the sanitized conf
  39933. */
  39934. var setConfig = function setConfig(conf) {
  39935. sanitize(conf);
  39936. Object.keys(conf).forEach(function (key) {
  39937. var manipulator = manipulators[key];
  39938. conf[key] = manipulator ? manipulator(conf[key]) : conf[key];
  39939. });
  39940. Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(currentConfig, conf);
  39941. return getConfig();
  39942. };
  39943. /**
  39944. * ## getConfig
  39945. *| Function | Description | Type | Return Values |
  39946. *| --------- | ------------------- | ------- | ------------------ |
  39947. *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig|
  39948. ***Notes**:
  39949. *Returns **any** the currentConfig
  39950. * @returns {*} - the currentConfig
  39951. */
  39952. var getConfig = function getConfig() {
  39953. return Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, currentConfig);
  39954. };
  39955. /**
  39956. *## sanitize
  39957. *| Function | Description | Type | Values |
  39958. *| --------- | ------------------- | ------- | ------------------ |
  39959. *| sanitize |Sets the siteConfig to desired values. | Put Request |None|
  39960. *Ensures options parameter does not attempt to override siteConfig secure keys
  39961. *Note: modifies options in-place
  39962. * @param options - the potential setConfig parameter
  39963. */
  39964. var sanitize = function sanitize(options) {
  39965. Object.keys(siteConfig.secure).forEach(function (key) {
  39966. if (typeof options[siteConfig.secure[key]] !== 'undefined') {
  39967. // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script
  39968. // can exploit the logger's attempt to stringify the value and execute arbitrary code
  39969. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].warn("Denied attempt to modify a secure key ".concat(siteConfig.secure[key]), options[siteConfig.secure[key]]);
  39970. delete options[siteConfig.secure[key]];
  39971. }
  39972. });
  39973. };
  39974. /**
  39975. *## reset
  39976. *| Function | Description | Type | Required | Values |
  39977. *| --------- | ------------------- | ------- | -------- | ------------------ |
  39978. *| reset|Resets currentConfig to conf| Put Request | Required | None|
  39979. *
  39980. *| Parameter | Description |Type | Required | Values|
  39981. *| --- | --- | --- | --- | --- |
  39982. *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array|
  39983. *
  39984. **Notes :
  39985. (default: current siteConfig ) (optional, default `getSiteConfig()`)
  39986. * @param conf - the base currentConfig to reset to (default: current siteConfig )
  39987. */
  39988. var reset = function reset() {
  39989. var conf = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getSiteConfig();
  39990. Object.keys(siteConfig).forEach(function (key) {
  39991. return delete siteConfig[key];
  39992. });
  39993. Object.keys(currentConfig).forEach(function (key) {
  39994. return delete currentConfig[key];
  39995. });
  39996. Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(siteConfig, conf, {
  39997. clobber: true
  39998. });
  39999. Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(currentConfig, conf, {
  40000. clobber: true
  40001. });
  40002. };
  40003. var configApi = Object.freeze({
  40004. sanitize: sanitize,
  40005. setSiteConfig: setSiteConfig,
  40006. getSiteConfig: getSiteConfig,
  40007. setConfig: setConfig,
  40008. getConfig: getConfig,
  40009. reset: reset,
  40010. defaultConfig: defaultConfig
  40011. });
  40012. /* harmony default export */ __webpack_exports__["default"] = (configApi);
  40013. /***/ }),
  40014. /***/ "./src/dagre-wrapper/clusters.js":
  40015. /*!***************************************!*\
  40016. !*** ./src/dagre-wrapper/clusters.js ***!
  40017. \***************************************/
  40018. /*! exports provided: insertCluster, getClusterTitleWidth, clear, positionCluster */
  40019. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40020. "use strict";
  40021. __webpack_require__.r(__webpack_exports__);
  40022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertCluster", function() { return insertCluster; });
  40023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClusterTitleWidth", function() { return getClusterTitleWidth; });
  40024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  40025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionCluster", function() { return positionCluster; });
  40026. /* harmony import */ var _intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect/intersect-rect */ "./src/dagre-wrapper/intersect/intersect-rect.js");
  40027. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js");
  40028. /* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js");
  40029. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  40030. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config */ "./src/config.js");
  40031. // eslint-disable-line
  40032. var rect = function rect(parent, node) {
  40033. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Creating subgraph rect for ', node.id, node); // Add outer g element
  40034. var shapeSvg = parent.insert('g').attr('class', 'cluster').attr('id', node.id); // add the rect
  40035. var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect
  40036. var label = shapeSvg.insert('g').attr('class', 'cluster-label');
  40037. var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label
  40038. var bbox = text.getBBox();
  40039. if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) {
  40040. var div = text.children[0];
  40041. var dv = Object(d3__WEBPACK_IMPORTED_MODULE_3__["select"])(text);
  40042. bbox = div.getBoundingClientRect();
  40043. dv.attr('width', bbox.width);
  40044. dv.attr('height', bbox.height);
  40045. }
  40046. var padding = 0 * node.padding;
  40047. var halfPadding = padding / 2;
  40048. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Data ', node, JSON.stringify(node)); // center the rect around its coordinate
  40049. rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); // Center the label
  40050. label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + 3) + ')');
  40051. var rectBox = rect.node().getBBox();
  40052. node.width = rectBox.width;
  40053. node.height = rectBox.height;
  40054. node.intersect = function (point) {
  40055. return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point);
  40056. };
  40057. return shapeSvg;
  40058. };
  40059. /**
  40060. * Non visiable cluster where the note is group with its
  40061. */
  40062. var noteGroup = function noteGroup(parent, node) {
  40063. // Add outer g element
  40064. var shapeSvg = parent.insert('g').attr('class', 'note-cluster').attr('id', node.id); // add the rect
  40065. var rect = shapeSvg.insert('rect', ':first-child');
  40066. var padding = 0 * node.padding;
  40067. var halfPadding = padding / 2; // center the rect around its coordinate
  40068. rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding).attr('fill', 'none');
  40069. var rectBox = rect.node().getBBox();
  40070. node.width = rectBox.width;
  40071. node.height = rectBox.height;
  40072. node.intersect = function (point) {
  40073. return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point);
  40074. };
  40075. return shapeSvg;
  40076. };
  40077. var roundedWithTitle = function roundedWithTitle(parent, node) {
  40078. // Add outer g element
  40079. var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect
  40080. var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect
  40081. var label = shapeSvg.insert('g').attr('class', 'cluster-label');
  40082. var innerRect = shapeSvg.append('rect');
  40083. var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label
  40084. var bbox = text.getBBox();
  40085. if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) {
  40086. var div = text.children[0];
  40087. var dv = Object(d3__WEBPACK_IMPORTED_MODULE_3__["select"])(text);
  40088. bbox = div.getBoundingClientRect();
  40089. dv.attr('width', bbox.width);
  40090. dv.attr('height', bbox.height);
  40091. }
  40092. bbox = text.getBBox();
  40093. var padding = 0 * node.padding;
  40094. var halfPadding = padding / 2; // center the rect around its coordinate
  40095. rect.attr('class', 'outer').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding);
  40096. innerRect.attr('class', 'inner').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1).attr('width', node.width + padding).attr('height', node.height + padding - bbox.height - 3); // Center the label
  40097. label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels ? 5 : 3)) + ')');
  40098. var rectBox = rect.node().getBBox();
  40099. node.width = rectBox.width;
  40100. node.height = rectBox.height;
  40101. node.intersect = function (point) {
  40102. return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point);
  40103. };
  40104. return shapeSvg;
  40105. };
  40106. var divider = function divider(parent, node) {
  40107. // Add outer g element
  40108. var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect
  40109. var rect = shapeSvg.insert('rect', ':first-child');
  40110. var padding = 0 * node.padding;
  40111. var halfPadding = padding / 2; // center the rect around its coordinate
  40112. rect.attr('class', 'divider').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2).attr('width', node.width + padding).attr('height', node.height + padding);
  40113. var rectBox = rect.node().getBBox();
  40114. node.width = rectBox.width;
  40115. node.height = rectBox.height;
  40116. node.intersect = function (point) {
  40117. return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point);
  40118. };
  40119. return shapeSvg;
  40120. };
  40121. var shapes = {
  40122. rect: rect,
  40123. roundedWithTitle: roundedWithTitle,
  40124. noteGroup: noteGroup,
  40125. divider: divider
  40126. };
  40127. var clusterElems = {};
  40128. var insertCluster = function insertCluster(elem, node) {
  40129. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Inserting cluster');
  40130. var shape = node.shape || 'rect';
  40131. clusterElems[node.id] = shapes[shape](elem, node);
  40132. };
  40133. var getClusterTitleWidth = function getClusterTitleWidth(elem, node) {
  40134. var label = Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true);
  40135. elem.node().appendChild(label);
  40136. var width = label.getBBox().width;
  40137. elem.node().removeChild(label);
  40138. return width;
  40139. };
  40140. var clear = function clear() {
  40141. clusterElems = {};
  40142. };
  40143. var positionCluster = function positionCluster(node) {
  40144. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Position cluster');
  40145. var el = clusterElems[node.id];
  40146. el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');
  40147. };
  40148. /***/ }),
  40149. /***/ "./src/dagre-wrapper/createLabel.js":
  40150. /*!******************************************!*\
  40151. !*** ./src/dagre-wrapper/createLabel.js ***!
  40152. \******************************************/
  40153. /*! exports provided: default */
  40154. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40155. "use strict";
  40156. __webpack_require__.r(__webpack_exports__);
  40157. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  40158. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js");
  40159. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config */ "./src/config.js");
  40160. // eslint-disable-line
  40161. // let vertexNode;
  40162. // if (getConfig().flowchart.htmlLabels) {
  40163. // // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?
  40164. // const node = {
  40165. // label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, s => `<i class='${s.replace(':', ' ')}'></i>`)
  40166. // };
  40167. // vertexNode = addHtmlLabel(svg, node).node();
  40168. // vertexNode.parentNode.removeChild(vertexNode);
  40169. // } else {
  40170. // const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');
  40171. // svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));
  40172. // const rows = vertexText.split(common.lineBreakRegex);
  40173. // for (let j = 0; j < rows.length; j++) {
  40174. // const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');
  40175. // tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');
  40176. // tspan.setAttribute('dy', '1em');
  40177. // tspan.setAttribute('x', '1');
  40178. // tspan.textContent = rows[j];
  40179. // svgLabel.appendChild(tspan);
  40180. // }
  40181. // vertexNode = svgLabel;
  40182. // }
  40183. function applyStyle(dom, styleFn) {
  40184. if (styleFn) {
  40185. dom.attr('style', styleFn);
  40186. }
  40187. }
  40188. function addHtmlLabel(node) {
  40189. // var fo = root.append('foreignObject').attr('width', '100000');
  40190. // var div = fo.append('xhtml:div');
  40191. // div.attr('xmlns', 'http://www.w3.org/1999/xhtml');
  40192. // var label = node.label;
  40193. // switch (typeof label) {
  40194. // case 'function':
  40195. // div.insert(label);
  40196. // break;
  40197. // case 'object':
  40198. // // Currently we assume this is a DOM object.
  40199. // div.insert(function() {
  40200. // return label;
  40201. // });
  40202. // break;
  40203. // default:
  40204. // div.html(label);
  40205. // }
  40206. // applyStyle(div, node.labelStyle);
  40207. // div.style('display', 'inline-block');
  40208. // // Fix for firefox
  40209. // div.style('white-space', 'nowrap');
  40210. // var client = div.node().getBoundingClientRect();
  40211. // fo.attr('width', client.width).attr('height', client.height);
  40212. var fo = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject'));
  40213. var div = fo.append('xhtml:div');
  40214. var label = node.label;
  40215. var labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel';
  40216. div.html('<span class="' + labelClass + '">' + label + '</span>');
  40217. applyStyle(div, node.labelStyle);
  40218. div.style('display', 'inline-block'); // Fix for firefox
  40219. div.style('white-space', 'nowrap');
  40220. div.attr('xmlns', 'http://www.w3.org/1999/xhtml');
  40221. return fo.node();
  40222. }
  40223. var createLabel = function createLabel(_vertexText, style, isTitle, isNode) {
  40224. var vertexText = _vertexText || '';
  40225. if (Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])().flowchart.htmlLabels) {
  40226. // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?
  40227. vertexText = vertexText.replace(/\\n|\n/g, '<br />');
  40228. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('vertexText' + vertexText);
  40229. var node = {
  40230. isNode: isNode,
  40231. label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, function (s) {
  40232. return "<i class='".concat(s.replace(':', ' '), "'></i>");
  40233. })
  40234. };
  40235. var vertexNode = addHtmlLabel(node); // vertexNode.parentNode.removeChild(vertexNode);
  40236. return vertexNode;
  40237. } else {
  40238. var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');
  40239. svgLabel.setAttribute('style', style.replace('color:', 'fill:'));
  40240. var rows = [];
  40241. if (typeof vertexText === 'string') {
  40242. rows = vertexText.split(/\\n|\n|<br\s*\/?>/gi);
  40243. } else if (Array.isArray(vertexText)) {
  40244. rows = vertexText;
  40245. } else {
  40246. rows = [];
  40247. }
  40248. for (var j = 0; j < rows.length; j++) {
  40249. var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');
  40250. tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');
  40251. tspan.setAttribute('dy', '1em');
  40252. tspan.setAttribute('x', '0');
  40253. if (isTitle) {
  40254. tspan.setAttribute('class', 'title-row');
  40255. } else {
  40256. tspan.setAttribute('class', 'row');
  40257. }
  40258. tspan.textContent = rows[j].trim();
  40259. svgLabel.appendChild(tspan);
  40260. }
  40261. return svgLabel;
  40262. }
  40263. };
  40264. /* harmony default export */ __webpack_exports__["default"] = (createLabel);
  40265. /***/ }),
  40266. /***/ "./src/dagre-wrapper/edges.js":
  40267. /*!************************************!*\
  40268. !*** ./src/dagre-wrapper/edges.js ***!
  40269. \************************************/
  40270. /*! exports provided: clear, insertEdgeLabel, positionEdgeLabel, intersection, insertEdge */
  40271. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40272. "use strict";
  40273. __webpack_require__.r(__webpack_exports__);
  40274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  40275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertEdgeLabel", function() { return insertEdgeLabel; });
  40276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionEdgeLabel", function() { return positionEdgeLabel; });
  40277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "intersection", function() { return intersection; });
  40278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertEdge", function() { return insertEdge; });
  40279. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js");
  40280. /* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js");
  40281. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  40282. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config */ "./src/config.js");
  40283. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
  40284. // eslint-disable-line
  40285. // import { calcLabelPosition } from '../utils';
  40286. var edgeLabels = {};
  40287. var clear = function clear() {
  40288. edgeLabels = {};
  40289. };
  40290. var insertEdgeLabel = function insertEdgeLabel(elem, edge) {
  40291. // Create the actual text element
  40292. var labelElement = Object(_createLabel__WEBPACK_IMPORTED_MODULE_1__["default"])(edge.label, edge.labelStyle); // Create outer g, edgeLabel, this will be positioned after graph layout
  40293. var edgeLabel = elem.insert('g').attr('class', 'edgeLabel'); // Create inner g, label, this will be positioned now for centering the text
  40294. var label = edgeLabel.insert('g').attr('class', 'label');
  40295. label.node().appendChild(labelElement); // Center the label
  40296. var bbox = labelElement.getBBox();
  40297. if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) {
  40298. var div = labelElement.children[0];
  40299. var dv = Object(d3__WEBPACK_IMPORTED_MODULE_2__["select"])(labelElement);
  40300. bbox = div.getBoundingClientRect();
  40301. dv.attr('width', bbox.width);
  40302. dv.attr('height', bbox.height);
  40303. }
  40304. label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); // Make element accessible by id for positioning
  40305. edgeLabels[edge.id] = edgeLabel; // Update the abstract data of the edge with the new information about its width and height
  40306. edge.width = bbox.width;
  40307. edge.height = bbox.height;
  40308. };
  40309. var positionEdgeLabel = function positionEdgeLabel(edge, points) {
  40310. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Moving label', edge.id, edge.label, edgeLabels[edge.id]);
  40311. if (edge.label) {
  40312. var el = edgeLabels[edge.id];
  40313. var x = edge.x;
  40314. var y = edge.y;
  40315. if (points) {
  40316. // debugger;
  40317. var pos = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].calcLabelPosition(points);
  40318. x = pos.x;
  40319. y = pos.y;
  40320. }
  40321. el.attr('transform', 'translate(' + x + ', ' + y + ')');
  40322. }
  40323. }; // const getRelationType = function(type) {
  40324. // switch (type) {
  40325. // case stateDb.relationType.AGGREGATION:
  40326. // return 'aggregation';
  40327. // case stateDb.relationType.EXTENSION:
  40328. // return 'extension';
  40329. // case stateDb.relationType.COMPOSITION:
  40330. // return 'composition';
  40331. // case stateDb.relationType.DEPENDENCY:
  40332. // return 'dependency';
  40333. // }
  40334. // };
  40335. var outsideNode = function outsideNode(node, point) {
  40336. // logger.warn('Checking bounds ', node, point);
  40337. var x = node.x;
  40338. var y = node.y;
  40339. var dx = Math.abs(point.x - x);
  40340. var dy = Math.abs(point.y - y);
  40341. var w = node.width / 2;
  40342. var h = node.height / 2;
  40343. if (dx >= w || dy >= h) {
  40344. return true;
  40345. }
  40346. return false;
  40347. };
  40348. var intersection = function intersection(node, outsidePoint, insidePoint) {
  40349. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node);
  40350. var x = node.x;
  40351. var y = node.y;
  40352. var dx = Math.abs(x - insidePoint.x);
  40353. var w = node.width / 2;
  40354. var r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;
  40355. var h = node.height / 2;
  40356. var edges = {
  40357. x1: x - w,
  40358. x2: x + w,
  40359. y1: y - h,
  40360. y2: y + h
  40361. };
  40362. if (outsidePoint.x === edges.x1 || outsidePoint.x === edges.x2 || outsidePoint.y === edges.y1 || outsidePoint.y === edges.y2) {
  40363. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('calc equals on edge');
  40364. return outsidePoint;
  40365. }
  40366. var Q = Math.abs(outsidePoint.y - insidePoint.y);
  40367. var R = Math.abs(outsidePoint.x - insidePoint.x); // log.warn();
  40368. if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) {
  40369. // eslint-disable-line
  40370. // Intersection is top or bottom of rect.
  40371. // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;
  40372. var q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;
  40373. r = R * q / Q;
  40374. var res = {
  40375. x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r,
  40376. y: outsidePoint.y + q
  40377. };
  40378. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn("topp/bott calc, Q ".concat(Q, ", q ").concat(q, ", R ").concat(R, ", r ").concat(r), res);
  40379. return res;
  40380. } else {
  40381. // Intersection onn sides of rect
  40382. // q = (Q * r) / R;
  40383. // q = 2;
  40384. // r = (R * q) / Q;
  40385. if (insidePoint.x < outsidePoint.x) {
  40386. r = outsidePoint.x - w - x;
  40387. } else {
  40388. // r = outsidePoint.x - w - x;
  40389. r = x - w - outsidePoint.x;
  40390. }
  40391. var _q = _q = Q * r / R;
  40392. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn("sides calc, Q ".concat(Q, ", q ").concat(_q, ", R ").concat(R, ", r ").concat(r), {
  40393. x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,
  40394. y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q
  40395. });
  40396. return {
  40397. x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,
  40398. y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q
  40399. };
  40400. }
  40401. }; //(edgePaths, e, edge, clusterDb, diagramtype, graph)
  40402. var insertEdge = function insertEdge(elem, e, edge, clusterDb, diagramType, graph) {
  40403. var points = edge.points;
  40404. var pointsHasChanged = false;
  40405. var tail = graph.node(e.v);
  40406. var head = graph.node(e.w);
  40407. if (head.intersect && tail.intersect) {
  40408. points = points.slice(1, edge.points.length - 1);
  40409. points.unshift(tail.intersect(points[0]));
  40410. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Last point', points[points.length - 1], head, head.intersect(points[points.length - 1]));
  40411. points.push(head.intersect(points[points.length - 1]));
  40412. }
  40413. if (edge.toCluster) {
  40414. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('edge', edge);
  40415. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('to cluster', clusterDb[edge.toCluster]);
  40416. points = [];
  40417. var lastPointOutside;
  40418. var isInside = false;
  40419. edge.points.forEach(function (point) {
  40420. var node = clusterDb[edge.toCluster].node;
  40421. if (!outsideNode(node, point) && !isInside) {
  40422. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('inside', edge.toCluster, point, lastPointOutside); // First point inside the rect
  40423. var inter = intersection(node, lastPointOutside, point);
  40424. var pointPresent = false;
  40425. points.forEach(function (p) {
  40426. pointPresent = pointPresent || p.x === inter.x && p.y === inter.y;
  40427. }); // if (!pointPresent) {
  40428. if (!points.find(function (e) {
  40429. return e.x === inter.x && e.y === inter.y;
  40430. })) {
  40431. points.push(inter);
  40432. } else {
  40433. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('no intersect', inter, points);
  40434. }
  40435. isInside = true;
  40436. } else {
  40437. if (!isInside) points.push(point);
  40438. }
  40439. lastPointOutside = point;
  40440. });
  40441. pointsHasChanged = true;
  40442. }
  40443. if (edge.fromCluster) {
  40444. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('edge', edge);
  40445. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('from cluster', clusterDb[edge.fromCluster]);
  40446. var updatedPoints = [];
  40447. var _lastPointOutside;
  40448. var _isInside = false;
  40449. for (var i = points.length - 1; i >= 0; i--) {
  40450. var point = points[i];
  40451. var node = clusterDb[edge.fromCluster].node;
  40452. if (!outsideNode(node, point) && !_isInside) {
  40453. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('inside', edge.fromCluster, point, node); // First point inside the rect
  40454. var insterection = intersection(node, _lastPointOutside, point); // logger.trace('intersect', intersection(node, lastPointOutside, point));
  40455. updatedPoints.unshift(insterection); // points.push(insterection);
  40456. _isInside = true;
  40457. } else {
  40458. // at the outside
  40459. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Outside point', point);
  40460. if (!_isInside) updatedPoints.unshift(point);
  40461. }
  40462. _lastPointOutside = point;
  40463. }
  40464. points = updatedPoints;
  40465. pointsHasChanged = true;
  40466. } // The data for our line
  40467. var lineData = points.filter(function (p) {
  40468. return !Number.isNaN(p.y);
  40469. }); // This is the accessor function we talked about above
  40470. var lineFunction = Object(d3__WEBPACK_IMPORTED_MODULE_2__["line"])().x(function (d) {
  40471. return d.x;
  40472. }).y(function (d) {
  40473. return d.y;
  40474. }).curve(d3__WEBPACK_IMPORTED_MODULE_2__["curveBasis"]); // Contruct stroke classes based on properties
  40475. var strokeClasses;
  40476. switch (edge.thickness) {
  40477. case 'normal':
  40478. strokeClasses = 'edge-thickness-normal';
  40479. break;
  40480. case 'thick':
  40481. strokeClasses = 'edge-thickness-thick';
  40482. break;
  40483. default:
  40484. strokeClasses = '';
  40485. }
  40486. switch (edge.pattern) {
  40487. case 'solid':
  40488. strokeClasses += ' edge-pattern-solid';
  40489. break;
  40490. case 'dotted':
  40491. strokeClasses += ' edge-pattern-dotted';
  40492. break;
  40493. case 'dashed':
  40494. strokeClasses += ' edge-pattern-dashed';
  40495. break;
  40496. }
  40497. var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', edge.id).attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : '')); // DEBUG code, adds a red circle at each edge coordinate
  40498. // edge.points.forEach(point => {
  40499. // elem
  40500. // .append('circle')
  40501. // .style('stroke', 'red')
  40502. // .style('fill', 'red')
  40503. // .attr('r', 1)
  40504. // .attr('cx', point.x)
  40505. // .attr('cy', point.y);
  40506. // });
  40507. var url = '';
  40508. if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().state.arrowMarkerAbsolute) {
  40509. url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;
  40510. url = url.replace(/\(/g, '\\(');
  40511. url = url.replace(/\)/g, '\\)');
  40512. }
  40513. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('arrowTypeStart', edge.arrowTypeStart);
  40514. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('arrowTypeEnd', edge.arrowTypeEnd);
  40515. switch (edge.arrowTypeStart) {
  40516. case 'arrow_cross':
  40517. svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')');
  40518. break;
  40519. case 'arrow_point':
  40520. svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')');
  40521. break;
  40522. case 'arrow_barb':
  40523. svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')');
  40524. break;
  40525. case 'arrow_circle':
  40526. svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')');
  40527. break;
  40528. case 'aggregation':
  40529. svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-aggregationStart' + ')');
  40530. break;
  40531. case 'extension':
  40532. svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-extensionStart' + ')');
  40533. break;
  40534. case 'composition':
  40535. svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-compositionStart' + ')');
  40536. break;
  40537. case 'dependency':
  40538. svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-dependencyStart' + ')');
  40539. break;
  40540. default:
  40541. }
  40542. switch (edge.arrowTypeEnd) {
  40543. case 'arrow_cross':
  40544. svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');
  40545. break;
  40546. case 'arrow_point':
  40547. svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');
  40548. break;
  40549. case 'arrow_barb':
  40550. svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')');
  40551. break;
  40552. case 'arrow_circle':
  40553. svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');
  40554. break;
  40555. case 'aggregation':
  40556. svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-aggregationEnd' + ')');
  40557. break;
  40558. case 'extension':
  40559. svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-extensionEnd' + ')');
  40560. break;
  40561. case 'composition':
  40562. svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-compositionEnd' + ')');
  40563. break;
  40564. case 'dependency':
  40565. svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-dependencyEnd' + ')');
  40566. break;
  40567. default:
  40568. }
  40569. if (pointsHasChanged) {
  40570. return points;
  40571. }
  40572. };
  40573. /***/ }),
  40574. /***/ "./src/dagre-wrapper/index.js":
  40575. /*!************************************!*\
  40576. !*** ./src/dagre-wrapper/index.js ***!
  40577. \************************************/
  40578. /*! exports provided: render */
  40579. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40580. "use strict";
  40581. __webpack_require__.r(__webpack_exports__);
  40582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
  40583. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dagre */ "./node_modules/dagre/index.js");
  40584. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_0__);
  40585. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
  40586. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_1__);
  40587. /* harmony import */ var _markers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./markers */ "./src/dagre-wrapper/markers.js");
  40588. /* harmony import */ var _shapes_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shapes/util */ "./src/dagre-wrapper/shapes/util.js");
  40589. /* harmony import */ var _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mermaid-graphlib */ "./src/dagre-wrapper/mermaid-graphlib.js");
  40590. /* harmony import */ var _nodes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./nodes */ "./src/dagre-wrapper/nodes.js");
  40591. /* harmony import */ var _clusters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./clusters */ "./src/dagre-wrapper/clusters.js");
  40592. /* harmony import */ var _edges__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./edges */ "./src/dagre-wrapper/edges.js");
  40593. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../logger */ "./src/logger.js");
  40594. var recursiveRender = function recursiveRender(_elem, graph, diagramtype, parentCluster) {
  40595. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Graph in recursive render:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph), parentCluster);
  40596. var dir = graph.graph().rankdir;
  40597. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Dir in recursive render - dir:', dir);
  40598. var elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line
  40599. if (!graph.nodes()) {
  40600. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('No nodes found for', graph);
  40601. } else {
  40602. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Recursive render', graph.nodes());
  40603. }
  40604. if (graph.edges().length > 0) {
  40605. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Recursive edges', graph.edge(graph.edges()[0]));
  40606. }
  40607. var clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line
  40608. var edgePaths = elem.insert('g').attr('class', 'edgePaths');
  40609. var edgeLabels = elem.insert('g').attr('class', 'edgeLabels');
  40610. var nodes = elem.insert('g').attr('class', 'nodes'); // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated
  40611. // to the abstract node and is later used by dagre for the layout
  40612. graph.nodes().forEach(function (v) {
  40613. var node = graph.node(v);
  40614. if (typeof parentCluster !== 'undefined') {
  40615. var data = JSON.parse(JSON.stringify(parentCluster.clusterData)); // data.clusterPositioning = true;
  40616. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Setting data for cluster', data);
  40617. graph.setNode(parentCluster.id, data);
  40618. graph.setParent(v, parentCluster.id, data);
  40619. }
  40620. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v)));
  40621. if (node && node.clusterNode) {
  40622. // const children = graph.children(v);
  40623. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Cluster identified', v, node, graph.node(v));
  40624. var newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v));
  40625. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_3__["updateNodeBounds"])(node, newEl);
  40626. Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["setNodeElem"])(newEl, node);
  40627. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Recursive render complete', newEl, node);
  40628. } else {
  40629. if (graph.children(v).length > 0) {
  40630. // This is a cluster but not to be rendered recusively
  40631. // Render as before
  40632. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Cluster - the non recursive path', v, node.id, node, graph);
  40633. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info(Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["findNonClusterChild"])(node.id, graph));
  40634. _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][node.id] = {
  40635. id: Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["findNonClusterChild"])(node.id, graph),
  40636. node: node
  40637. }; // insertCluster(clusters, graph.node(v));
  40638. } else {
  40639. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Node - the non recursive path', v, node.id, node);
  40640. Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["insertNode"])(nodes, graph.node(v), dir);
  40641. }
  40642. }
  40643. }); // Insert labels, this will insert them into the dom so that the width can be calculated
  40644. // Also figure out which edges point to/from clusters and adjust them accordingly
  40645. // Edges from/to clusters really points to the first child in the cluster.
  40646. // TODO: pick optimal child in the cluster to us as link anchor
  40647. graph.edges().forEach(function (e) {
  40648. var edge = graph.edge(e.v, e.w, e.name);
  40649. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));
  40650. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e))); // Check if link is either from or to a cluster
  40651. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Fix', _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"], 'ids:', e.v, e.w, 'Translateing: ', _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][e.v], _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][e.w]);
  40652. Object(_edges__WEBPACK_IMPORTED_MODULE_7__["insertEdgeLabel"])(edgeLabels, edge);
  40653. });
  40654. graph.edges().forEach(function (e) {
  40655. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));
  40656. });
  40657. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('#############################################');
  40658. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('### Layout ###');
  40659. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('#############################################');
  40660. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info(graph);
  40661. dagre__WEBPACK_IMPORTED_MODULE_0___default.a.layout(graph);
  40662. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Graph after layout:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); // Move the nodes to the correct place
  40663. graph.nodes().forEach(function (v) {
  40664. var node = graph.node(v);
  40665. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Position ' + v + ': ' + JSON.stringify(graph.node(v)));
  40666. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Position ' + v + ': (' + node.x, ',' + node.y, ') width: ', node.width, ' height: ', node.height);
  40667. if (node && node.clusterNode) {
  40668. // clusterDb[node.id].node = node;
  40669. Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["positionNode"])(node);
  40670. } else {
  40671. // Non cluster node
  40672. if (graph.children(v).length > 0) {
  40673. // A cluster in the non-recurive way
  40674. // positionCluster(node);
  40675. Object(_clusters__WEBPACK_IMPORTED_MODULE_6__["insertCluster"])(clusters, node);
  40676. _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][node.id].node = node;
  40677. } else {
  40678. Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["positionNode"])(node);
  40679. }
  40680. }
  40681. }); // Move the edge labels to the correct place after layout
  40682. graph.edges().forEach(function (e) {
  40683. var edge = graph.edge(e);
  40684. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge);
  40685. var updatedPath = Object(_edges__WEBPACK_IMPORTED_MODULE_7__["insertEdge"])(edgePaths, e, edge, _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"], diagramtype, graph);
  40686. Object(_edges__WEBPACK_IMPORTED_MODULE_7__["positionEdgeLabel"])(edge, updatedPath);
  40687. });
  40688. return elem;
  40689. };
  40690. var render = function render(elem, graph, markers, diagramtype, id) {
  40691. Object(_markers__WEBPACK_IMPORTED_MODULE_2__["default"])(elem, markers, diagramtype, id);
  40692. Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["clear"])();
  40693. Object(_edges__WEBPACK_IMPORTED_MODULE_7__["clear"])();
  40694. Object(_clusters__WEBPACK_IMPORTED_MODULE_6__["clear"])();
  40695. Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clear"])();
  40696. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph before:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph));
  40697. Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["adjustClustersAndEdges"])(graph);
  40698. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph after:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph));
  40699. _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph ever after:', graph.graph());
  40700. recursiveRender(elem, graph, diagramtype);
  40701. }; // const shapeDefinitions = {};
  40702. // export const addShape = ({ shapeType: fun }) => {
  40703. // shapeDefinitions[shapeType] = fun;
  40704. // };
  40705. // const arrowDefinitions = {};
  40706. // export const addArrow = ({ arrowType: fun }) => {
  40707. // arrowDefinitions[arrowType] = fun;
  40708. // };
  40709. /***/ }),
  40710. /***/ "./src/dagre-wrapper/intersect/index.js":
  40711. /*!**********************************************!*\
  40712. !*** ./src/dagre-wrapper/intersect/index.js ***!
  40713. \**********************************************/
  40714. /*! exports provided: default */
  40715. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40716. "use strict";
  40717. __webpack_require__.r(__webpack_exports__);
  40718. /* harmony import */ var _intersect_node_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-node.js */ "./src/dagre-wrapper/intersect/intersect-node.js");
  40719. /* harmony import */ var _intersect_node_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_intersect_node_js__WEBPACK_IMPORTED_MODULE_0__);
  40720. /* harmony import */ var _intersect_circle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./intersect-circle.js */ "./src/dagre-wrapper/intersect/intersect-circle.js");
  40721. /* harmony import */ var _intersect_ellipse_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./intersect-ellipse.js */ "./src/dagre-wrapper/intersect/intersect-ellipse.js");
  40722. /* harmony import */ var _intersect_polygon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./intersect-polygon.js */ "./src/dagre-wrapper/intersect/intersect-polygon.js");
  40723. /* harmony import */ var _intersect_rect_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./intersect-rect.js */ "./src/dagre-wrapper/intersect/intersect-rect.js");
  40724. /*
  40725. * Borrowed with love from from dagrge-d3. Many thanks to cpettitt!
  40726. */
  40727. /* harmony default export */ __webpack_exports__["default"] = ({
  40728. node: _intersect_node_js__WEBPACK_IMPORTED_MODULE_0___default.a,
  40729. circle: _intersect_circle_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  40730. ellipse: _intersect_ellipse_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  40731. polygon: _intersect_polygon_js__WEBPACK_IMPORTED_MODULE_3__["default"],
  40732. rect: _intersect_rect_js__WEBPACK_IMPORTED_MODULE_4__["default"]
  40733. });
  40734. /***/ }),
  40735. /***/ "./src/dagre-wrapper/intersect/intersect-circle.js":
  40736. /*!*********************************************************!*\
  40737. !*** ./src/dagre-wrapper/intersect/intersect-circle.js ***!
  40738. \*********************************************************/
  40739. /*! exports provided: default */
  40740. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40741. "use strict";
  40742. __webpack_require__.r(__webpack_exports__);
  40743. /* harmony import */ var _intersect_ellipse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-ellipse */ "./src/dagre-wrapper/intersect/intersect-ellipse.js");
  40744. function intersectCircle(node, rx, point) {
  40745. return Object(_intersect_ellipse__WEBPACK_IMPORTED_MODULE_0__["default"])(node, rx, rx, point);
  40746. }
  40747. /* harmony default export */ __webpack_exports__["default"] = (intersectCircle);
  40748. /***/ }),
  40749. /***/ "./src/dagre-wrapper/intersect/intersect-ellipse.js":
  40750. /*!**********************************************************!*\
  40751. !*** ./src/dagre-wrapper/intersect/intersect-ellipse.js ***!
  40752. \**********************************************************/
  40753. /*! exports provided: default */
  40754. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40755. "use strict";
  40756. __webpack_require__.r(__webpack_exports__);
  40757. function intersectEllipse(node, rx, ry, point) {
  40758. // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html
  40759. var cx = node.x;
  40760. var cy = node.y;
  40761. var px = cx - point.x;
  40762. var py = cy - point.y;
  40763. var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);
  40764. var dx = Math.abs(rx * ry * px / det);
  40765. if (point.x < cx) {
  40766. dx = -dx;
  40767. }
  40768. var dy = Math.abs(rx * ry * py / det);
  40769. if (point.y < cy) {
  40770. dy = -dy;
  40771. }
  40772. return {
  40773. x: cx + dx,
  40774. y: cy + dy
  40775. };
  40776. }
  40777. /* harmony default export */ __webpack_exports__["default"] = (intersectEllipse);
  40778. /***/ }),
  40779. /***/ "./src/dagre-wrapper/intersect/intersect-line.js":
  40780. /*!*******************************************************!*\
  40781. !*** ./src/dagre-wrapper/intersect/intersect-line.js ***!
  40782. \*******************************************************/
  40783. /*! exports provided: default */
  40784. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40785. "use strict";
  40786. __webpack_require__.r(__webpack_exports__);
  40787. /*
  40788. * Returns the point at which two lines, p and q, intersect or returns
  40789. * undefined if they do not intersect.
  40790. */
  40791. function intersectLine(p1, p2, q1, q2) {
  40792. // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,
  40793. // p7 and p473.
  40794. var a1, a2, b1, b2, c1, c2;
  40795. var r1, r2, r3, r4;
  40796. var denom, offset, num;
  40797. var x, y; // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +
  40798. // b1 y + c1 = 0.
  40799. a1 = p2.y - p1.y;
  40800. b1 = p1.x - p2.x;
  40801. c1 = p2.x * p1.y - p1.x * p2.y; // Compute r3 and r4.
  40802. r3 = a1 * q1.x + b1 * q1.y + c1;
  40803. r4 = a1 * q2.x + b1 * q2.y + c1; // Check signs of r3 and r4. If both point 3 and point 4 lie on
  40804. // same side of line 1, the line segments do not intersect.
  40805. if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {
  40806. return;
  40807. } // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0
  40808. a2 = q2.y - q1.y;
  40809. b2 = q1.x - q2.x;
  40810. c2 = q2.x * q1.y - q1.x * q2.y; // Compute r1 and r2
  40811. r1 = a2 * p1.x + b2 * p1.y + c2;
  40812. r2 = a2 * p2.x + b2 * p2.y + c2; // Check signs of r1 and r2. If both point 1 and point 2 lie
  40813. // on same side of second line segment, the line segments do
  40814. // not intersect.
  40815. if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {
  40816. return;
  40817. } // Line segments intersect: compute intersection point.
  40818. denom = a1 * b2 - a2 * b1;
  40819. if (denom === 0) {
  40820. return;
  40821. }
  40822. offset = Math.abs(denom / 2); // The denom/2 is to get rounding instead of truncating. It
  40823. // is added or subtracted to the numerator, depending upon the
  40824. // sign of the numerator.
  40825. num = b1 * c2 - b2 * c1;
  40826. x = num < 0 ? (num - offset) / denom : (num + offset) / denom;
  40827. num = a2 * c1 - a1 * c2;
  40828. y = num < 0 ? (num - offset) / denom : (num + offset) / denom;
  40829. return {
  40830. x: x,
  40831. y: y
  40832. };
  40833. }
  40834. function sameSign(r1, r2) {
  40835. return r1 * r2 > 0;
  40836. }
  40837. /* harmony default export */ __webpack_exports__["default"] = (intersectLine);
  40838. /***/ }),
  40839. /***/ "./src/dagre-wrapper/intersect/intersect-node.js":
  40840. /*!*******************************************************!*\
  40841. !*** ./src/dagre-wrapper/intersect/intersect-node.js ***!
  40842. \*******************************************************/
  40843. /*! no static exports found */
  40844. /***/ (function(module, exports) {
  40845. module.exports = intersectNode;
  40846. function intersectNode(node, point) {
  40847. console.info('Intersect Node');
  40848. return node.intersect(point);
  40849. }
  40850. /***/ }),
  40851. /***/ "./src/dagre-wrapper/intersect/intersect-polygon.js":
  40852. /*!**********************************************************!*\
  40853. !*** ./src/dagre-wrapper/intersect/intersect-polygon.js ***!
  40854. \**********************************************************/
  40855. /*! exports provided: default */
  40856. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40857. "use strict";
  40858. __webpack_require__.r(__webpack_exports__);
  40859. /* harmony import */ var _intersect_line__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-line */ "./src/dagre-wrapper/intersect/intersect-line.js");
  40860. /* eslint "no-console": off */
  40861. /* harmony default export */ __webpack_exports__["default"] = (intersectPolygon);
  40862. /*
  40863. * Returns the point ({x, y}) at which the point argument intersects with the
  40864. * node argument assuming that it has the shape specified by polygon.
  40865. */
  40866. function intersectPolygon(node, polyPoints, point) {
  40867. var x1 = node.x;
  40868. var y1 = node.y;
  40869. var intersections = [];
  40870. var minX = Number.POSITIVE_INFINITY;
  40871. var minY = Number.POSITIVE_INFINITY;
  40872. if (typeof polyPoints.forEach === 'function') {
  40873. polyPoints.forEach(function (entry) {
  40874. minX = Math.min(minX, entry.x);
  40875. minY = Math.min(minY, entry.y);
  40876. });
  40877. } else {
  40878. minX = Math.min(minX, polyPoints.x);
  40879. minY = Math.min(minY, polyPoints.y);
  40880. }
  40881. var left = x1 - node.width / 2 - minX;
  40882. var top = y1 - node.height / 2 - minY;
  40883. for (var i = 0; i < polyPoints.length; i++) {
  40884. var p1 = polyPoints[i];
  40885. var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];
  40886. var intersect = Object(_intersect_line__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point, {
  40887. x: left + p1.x,
  40888. y: top + p1.y
  40889. }, {
  40890. x: left + p2.x,
  40891. y: top + p2.y
  40892. });
  40893. if (intersect) {
  40894. intersections.push(intersect);
  40895. }
  40896. }
  40897. if (!intersections.length) {
  40898. console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node);
  40899. return node;
  40900. }
  40901. if (intersections.length > 1) {
  40902. // More intersections, find the one nearest to edge end point
  40903. intersections.sort(function (p, q) {
  40904. var pdx = p.x - point.x;
  40905. var pdy = p.y - point.y;
  40906. var distp = Math.sqrt(pdx * pdx + pdy * pdy);
  40907. var qdx = q.x - point.x;
  40908. var qdy = q.y - point.y;
  40909. var distq = Math.sqrt(qdx * qdx + qdy * qdy);
  40910. return distp < distq ? -1 : distp === distq ? 0 : 1;
  40911. });
  40912. }
  40913. return intersections[0];
  40914. }
  40915. /***/ }),
  40916. /***/ "./src/dagre-wrapper/intersect/intersect-rect.js":
  40917. /*!*******************************************************!*\
  40918. !*** ./src/dagre-wrapper/intersect/intersect-rect.js ***!
  40919. \*******************************************************/
  40920. /*! exports provided: default */
  40921. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40922. "use strict";
  40923. __webpack_require__.r(__webpack_exports__);
  40924. var intersectRect = function intersectRect(node, point) {
  40925. var x = node.x;
  40926. var y = node.y; // Rectangle intersection algorithm from:
  40927. // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
  40928. var dx = point.x - x;
  40929. var dy = point.y - y;
  40930. var w = node.width / 2;
  40931. var h = node.height / 2;
  40932. var sx, sy;
  40933. if (Math.abs(dy) * w > Math.abs(dx) * h) {
  40934. // Intersection is top or bottom of rect.
  40935. if (dy < 0) {
  40936. h = -h;
  40937. }
  40938. sx = dy === 0 ? 0 : h * dx / dy;
  40939. sy = h;
  40940. } else {
  40941. // Intersection is left or right of rect.
  40942. if (dx < 0) {
  40943. w = -w;
  40944. }
  40945. sx = w;
  40946. sy = dx === 0 ? 0 : w * dy / dx;
  40947. }
  40948. return {
  40949. x: x + sx,
  40950. y: y + sy
  40951. };
  40952. };
  40953. /* harmony default export */ __webpack_exports__["default"] = (intersectRect);
  40954. /***/ }),
  40955. /***/ "./src/dagre-wrapper/markers.js":
  40956. /*!**************************************!*\
  40957. !*** ./src/dagre-wrapper/markers.js ***!
  40958. \**************************************/
  40959. /*! exports provided: default */
  40960. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40961. "use strict";
  40962. __webpack_require__.r(__webpack_exports__);
  40963. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js");
  40964. /**
  40965. * Setup arrow head and define the marker. The result is appended to the svg.
  40966. */
  40967. // Only add the number of markers that the diagram needs
  40968. var insertMarkers = function insertMarkers(elem, markerArray, type, id) {
  40969. markerArray.forEach(function (markerName) {
  40970. markers[markerName](elem, type, id);
  40971. });
  40972. };
  40973. var extension = function extension(elem, type, id) {
  40974. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Making markers for ', id);
  40975. elem.append('defs').append('marker').attr('id', type + '-extensionStart').attr('class', 'marker extension ' + type).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');
  40976. elem.append('defs').append('marker').attr('id', type + '-extensionEnd').attr('class', 'marker extension ' + type).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
  40977. };
  40978. var composition = function composition(elem, type) {
  40979. elem.append('defs').append('marker').attr('id', type + '-compositionStart').attr('class', 'marker composition ' + type).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');
  40980. elem.append('defs').append('marker').attr('id', type + '-compositionEnd').attr('class', 'marker composition ' + type).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');
  40981. };
  40982. var aggregation = function aggregation(elem, type) {
  40983. elem.append('defs').append('marker').attr('id', type + '-aggregationStart').attr('class', 'marker aggregation ' + type).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');
  40984. elem.append('defs').append('marker').attr('id', type + '-aggregationEnd').attr('class', 'marker aggregation ' + type).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');
  40985. };
  40986. var dependency = function dependency(elem, type) {
  40987. elem.append('defs').append('marker').attr('id', type + '-dependencyStart').attr('class', 'marker dependency ' + type).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');
  40988. elem.append('defs').append('marker').attr('id', type + '-dependencyEnd').attr('class', 'marker dependency ' + type).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');
  40989. };
  40990. var point = function point(elem, type) {
  40991. elem.append('marker').attr('id', type + '-pointEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');
  40992. elem.append('marker').attr('id', type + '-pointStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 0).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 5 L 10 10 L 10 0 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');
  40993. };
  40994. var circle = function circle(elem, type) {
  40995. elem.append('marker').attr('id', type + '-circleEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 11).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');
  40996. elem.append('marker').attr('id', type + '-circleStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', -1).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');
  40997. };
  40998. var cross = function cross(elem, type) {
  40999. elem.append('marker').attr('id', type + '-crossEnd').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', 12).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black')
  41000. .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0');
  41001. elem.append('marker').attr('id', type + '-crossStart').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', -1).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black')
  41002. .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0');
  41003. };
  41004. var barb = function barb(elem, type) {
  41005. elem.append('defs').append('marker').attr('id', type + '-barbEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 14).attr('markerUnits', 0).attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');
  41006. }; // TODO rename the class diagram markers to something shape descriptive and semanitc free
  41007. var markers = {
  41008. extension: extension,
  41009. composition: composition,
  41010. aggregation: aggregation,
  41011. dependency: dependency,
  41012. point: point,
  41013. circle: circle,
  41014. cross: cross,
  41015. barb: barb
  41016. };
  41017. /* harmony default export */ __webpack_exports__["default"] = (insertMarkers);
  41018. /***/ }),
  41019. /***/ "./src/dagre-wrapper/mermaid-graphlib.js":
  41020. /*!***********************************************!*\
  41021. !*** ./src/dagre-wrapper/mermaid-graphlib.js ***!
  41022. \***********************************************/
  41023. /*! exports provided: clusterDb, clear, extractDecendants, validate, findNonClusterChild, adjustClustersAndEdges, extractor */
  41024. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41025. "use strict";
  41026. __webpack_require__.r(__webpack_exports__);
  41027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clusterDb", function() { return clusterDb; });
  41028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  41029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractDecendants", function() { return extractDecendants; });
  41030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return validate; });
  41031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findNonClusterChild", function() { return findNonClusterChild; });
  41032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "adjustClustersAndEdges", function() { return adjustClustersAndEdges; });
  41033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractor", function() { return extractor; });
  41034. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js");
  41035. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
  41036. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_1__);
  41037. /**
  41038. * Decorates with functions required by mermaids dagre-wrapper.
  41039. */
  41040. var clusterDb = {};
  41041. var decendants = {};
  41042. var parents = {};
  41043. var clear = function clear() {
  41044. decendants = {};
  41045. parents = {};
  41046. clusterDb = {};
  41047. };
  41048. var isDecendant = function isDecendant(id, ancenstorId) {
  41049. // if (id === ancenstorId) return true;
  41050. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('In isDecendant', ancenstorId, ' ', id, ' = ', decendants[ancenstorId].indexOf(id) >= 0);
  41051. if (decendants[ancenstorId].indexOf(id) >= 0) return true;
  41052. return false;
  41053. };
  41054. var edgeInCluster = function edgeInCluster(edge, clusterId) {
  41055. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Decendants of ', clusterId, ' is ', decendants[clusterId]);
  41056. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge is ', edge); // Edges to/from the cluster is not in the cluster, they are in the parent
  41057. if (edge.v === clusterId) return false;
  41058. if (edge.w === clusterId) return false;
  41059. if (!decendants[clusterId]) {
  41060. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Tilt, ', clusterId, ',not in decendants');
  41061. return false;
  41062. }
  41063. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Here ');
  41064. if (decendants[clusterId].indexOf(edge.v) >= 0) return true;
  41065. if (isDecendant(edge.v, clusterId)) return true;
  41066. if (isDecendant(edge.w, clusterId)) return true;
  41067. if (decendants[clusterId].indexOf(edge.w) >= 0) return true;
  41068. return false;
  41069. };
  41070. var copy = function copy(clusterId, graph, newGraph, rootId) {
  41071. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Copying children of ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);
  41072. var nodes = graph.children(clusterId) || []; // Include cluster node if it is not the root
  41073. if (clusterId !== rootId) {
  41074. nodes.push(clusterId);
  41075. }
  41076. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes);
  41077. nodes.forEach(function (node) {
  41078. if (graph.children(node).length > 0) {
  41079. copy(node, graph, newGraph, rootId);
  41080. } else {
  41081. var data = graph.node(node);
  41082. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId);
  41083. newGraph.setNode(node, data);
  41084. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting parent', node, graph.parent(node));
  41085. if (rootId !== graph.parent(node)) {
  41086. newGraph.setParent(node, graph.parent(node));
  41087. }
  41088. if (clusterId !== rootId && node !== clusterId) {
  41089. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting parent', node, clusterId);
  41090. newGraph.setParent(node, clusterId);
  41091. } else {
  41092. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);
  41093. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Not Setting parent for node=', node, 'cluster!==rootId', clusterId !== rootId, 'node!==clusterId', node !== clusterId);
  41094. }
  41095. var edges = graph.edges(node);
  41096. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Copying Edges', edges);
  41097. edges.forEach(function (edge) {
  41098. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge', edge);
  41099. var data = graph.edge(edge.v, edge.w, edge.name);
  41100. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge data', data, rootId);
  41101. try {
  41102. // Do not copy edges in and out of the root cluster, they belong to the parent graph
  41103. if (edgeInCluster(edge, rootId)) {
  41104. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Copying as ', edge.v, edge.w, data, edge.name);
  41105. newGraph.setEdge(edge.v, edge.w, data, edge.name);
  41106. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0]));
  41107. } else {
  41108. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Skipping copy of edge ', edge.v, '-->', edge.w, ' rootId: ', rootId, ' clusterId:', clusterId);
  41109. }
  41110. } catch (e) {
  41111. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error(e);
  41112. }
  41113. });
  41114. }
  41115. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Removing node', node);
  41116. graph.removeNode(node);
  41117. });
  41118. };
  41119. var extractDecendants = function extractDecendants(id, graph) {
  41120. // log.debug('Extracting ', id);
  41121. var children = graph.children(id);
  41122. var res = [].concat(children);
  41123. for (var i = 0; i < children.length; i++) {
  41124. parents[children[i]] = id;
  41125. res = res.concat(extractDecendants(children[i], graph));
  41126. }
  41127. return res;
  41128. };
  41129. /**
  41130. * Validates the graph, checking that all parent child relation points to existing nodes and that
  41131. * edges between nodes also ia correct. When not correct the function logs the discrepancies.
  41132. * @param {graphlib graph} g
  41133. */
  41134. var validate = function validate(graph) {
  41135. var edges = graph.edges();
  41136. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edges: ', edges);
  41137. for (var i = 0; i < edges.length; i++) {
  41138. if (graph.children(edges[i].v).length > 0) {
  41139. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('The node ', edges[i].v, ' is part of and edge even though it has children');
  41140. return false;
  41141. }
  41142. if (graph.children(edges[i].w).length > 0) {
  41143. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('The node ', edges[i].w, ' is part of and edge even though it has children');
  41144. return false;
  41145. }
  41146. }
  41147. return true;
  41148. };
  41149. /**
  41150. * Finds a child that is not a cluster. When faking a edge between a node and a cluster.
  41151. * @param {Finds a } id
  41152. * @param {*} graph
  41153. */
  41154. var findNonClusterChild = function findNonClusterChild(id, graph) {
  41155. // const node = graph.node(id);
  41156. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Searching', id); // const children = graph.children(id).reverse();
  41157. var children = graph.children(id); //.reverse();
  41158. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Searching children of id ', id, children);
  41159. if (children.length < 1) {
  41160. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('This is a valid node', id);
  41161. return id;
  41162. }
  41163. for (var i = 0; i < children.length; i++) {
  41164. var _id = findNonClusterChild(children[i], graph);
  41165. if (_id) {
  41166. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Found replacement for', id, ' => ', _id);
  41167. return _id;
  41168. }
  41169. }
  41170. };
  41171. var getAnchorId = function getAnchorId(id) {
  41172. if (!clusterDb[id]) {
  41173. return id;
  41174. } // If the cluster has no external connections
  41175. if (!clusterDb[id].externalConnections) {
  41176. return id;
  41177. } // Return the replacement node
  41178. if (clusterDb[id]) {
  41179. return clusterDb[id].id;
  41180. }
  41181. return id;
  41182. };
  41183. var adjustClustersAndEdges = function adjustClustersAndEdges(graph, depth) {
  41184. if (!graph || depth > 10) {
  41185. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Opting out, no graph ');
  41186. return;
  41187. } else {
  41188. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Opting in, graph ');
  41189. } // Go through the nodes and for each cluster found, save a replacment node, this can be used when
  41190. // faking a link to a cluster
  41191. graph.nodes().forEach(function (id) {
  41192. var children = graph.children(id);
  41193. if (children.length > 0) {
  41194. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Cluster identified', id, ' Replacement id in edges: ', findNonClusterChild(id, graph));
  41195. decendants[id] = extractDecendants(id, graph);
  41196. clusterDb[id] = {
  41197. id: findNonClusterChild(id, graph),
  41198. clusterData: graph.node(id)
  41199. };
  41200. }
  41201. }); // Check incoming and outgoing edges for each cluster
  41202. graph.nodes().forEach(function (id) {
  41203. var children = graph.children(id);
  41204. var edges = graph.edges();
  41205. if (children.length > 0) {
  41206. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster identified', id, decendants);
  41207. edges.forEach(function (edge) {
  41208. // log.debug('Edge, decendants: ', edge, decendants[id]);
  41209. // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box)
  41210. if (edge.v !== id && edge.w !== id) {
  41211. // Any edge where either the one of the nodes is decending to the cluster but not the other
  41212. // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) {
  41213. var d1 = isDecendant(edge.v, id);
  41214. var d2 = isDecendant(edge.w, id); // d1 xor d2 - if either d1 is true and d2 is false or the other way around
  41215. if (d1 ^ d2) {
  41216. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Edge: ', edge, ' leaves cluster ', id);
  41217. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Decendants of ', id, ': ', decendants[id]);
  41218. clusterDb[id].externalConnections = true;
  41219. }
  41220. }
  41221. });
  41222. }
  41223. });
  41224. extractor(graph, 0); // For clusters with incoming and/or outgoing edges translate those edges to a real node
  41225. // in the cluster inorder to fake the edge
  41226. graph.edges().forEach(function (e) {
  41227. var edge = graph.edge(e);
  41228. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));
  41229. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));
  41230. var v = e.v;
  41231. var w = e.w; // Check if link is either from or to a cluster
  41232. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);
  41233. if (clusterDb[e.v] || clusterDb[e.w]) {
  41234. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Fixing and trixing - removing', e.v, e.w, e.name);
  41235. v = getAnchorId(e.v);
  41236. w = getAnchorId(e.w);
  41237. graph.removeEdge(e.v, e.w, e.name);
  41238. if (v !== e.v) edge.fromCluster = e.v;
  41239. if (w !== e.w) edge.toCluster = e.w;
  41240. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Replacing with', v, w, e.name);
  41241. graph.setEdge(v, w, edge, e.name);
  41242. }
  41243. });
  41244. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Adjusted Graph', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph));
  41245. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace(clusterDb); // Remove references to extracted cluster
  41246. // graph.edges().forEach(edge => {
  41247. // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) {
  41248. // graph.removeEdge(edge);
  41249. // }
  41250. // });
  41251. };
  41252. var extractor = function extractor(graph, depth) {
  41253. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('extractor - ', depth, graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph), graph.children('D'));
  41254. if (depth > 10) {
  41255. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error('Bailing out');
  41256. return;
  41257. } // For clusters without incoming and/or outgoing edges, create a new cluster-node
  41258. // containing the nodes and edges in the custer in a new graph
  41259. // for (let i = 0;)
  41260. var nodes = graph.nodes();
  41261. var hasChildren = false;
  41262. for (var i = 0; i < nodes.length; i++) {
  41263. var node = nodes[i];
  41264. var children = graph.children(node);
  41265. hasChildren = hasChildren || children.length > 0;
  41266. }
  41267. if (!hasChildren) {
  41268. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Done, no node has children', graph.nodes());
  41269. return;
  41270. } // const clusters = Object.keys(clusterDb);
  41271. // clusters.forEach(clusterId => {
  41272. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Nodes = ', nodes, depth);
  41273. for (var _i = 0; _i < nodes.length; _i++) {
  41274. var _node = nodes[_i];
  41275. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Extracting node', _node, clusterDb, clusterDb[_node] && !clusterDb[_node].externalConnections, !graph.parent(_node), graph.node(_node), graph.children('D'), ' Depth ', depth); // Note that the node might have been removed after the Object.keys call so better check
  41276. // that it still is in the game
  41277. if (!clusterDb[_node]) {
  41278. // Skip if the node is not a cluster
  41279. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Not a cluster', _node, depth); // break;
  41280. } else if (!clusterDb[_node].externalConnections && !graph.parent(_node) && graph.children(_node) && graph.children(_node).length > 0) {
  41281. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster without external connections, without a parent and with children', _node, depth);
  41282. var graphSettings = graph.graph();
  41283. var clusterGraph = new graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.Graph({
  41284. multigraph: true,
  41285. compound: true
  41286. }).setGraph({
  41287. rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB',
  41288. // Todo: set proper spacing
  41289. nodesep: 50,
  41290. ranksep: 50,
  41291. marginx: 8,
  41292. marginy: 8
  41293. }).setDefaultEdgeLabel(function () {
  41294. return {};
  41295. });
  41296. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Old graph before copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph));
  41297. copy(_node, graph, clusterGraph, _node);
  41298. graph.setNode(_node, {
  41299. clusterNode: true,
  41300. id: _node,
  41301. clusterData: clusterDb[_node].clusterData,
  41302. labelText: clusterDb[_node].labelText,
  41303. graph: clusterGraph
  41304. });
  41305. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('New graph after copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(clusterGraph));
  41306. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Old graph after copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph));
  41307. } else {
  41308. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster ** ', _node, ' **not meeting the criteria !externalConnections:', !clusterDb[_node].externalConnections, ' no parent: ', !graph.parent(_node), ' children ', graph.children(_node) && graph.children(_node).length > 0, graph.children('D'), depth);
  41309. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(clusterDb);
  41310. }
  41311. }
  41312. nodes = graph.nodes();
  41313. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('New list of nodes', nodes);
  41314. for (var _i2 = 0; _i2 < nodes.length; _i2++) {
  41315. var _node2 = nodes[_i2];
  41316. var data = graph.node(_node2);
  41317. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(' Now next leveö', _node2, data);
  41318. if (data.clusterNode) {
  41319. extractor(data.graph, depth + 1);
  41320. }
  41321. }
  41322. };
  41323. /***/ }),
  41324. /***/ "./src/dagre-wrapper/nodes.js":
  41325. /*!************************************!*\
  41326. !*** ./src/dagre-wrapper/nodes.js ***!
  41327. \************************************/
  41328. /*! exports provided: insertNode, setNodeElem, clear, positionNode */
  41329. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41330. "use strict";
  41331. __webpack_require__.r(__webpack_exports__);
  41332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertNode", function() { return insertNode; });
  41333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setNodeElem", function() { return setNodeElem; });
  41334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  41335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionNode", function() { return positionNode; });
  41336. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  41337. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js");
  41338. /* harmony import */ var _shapes_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shapes/util */ "./src/dagre-wrapper/shapes/util.js");
  41339. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config */ "./src/config.js");
  41340. /* harmony import */ var _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./intersect/index.js */ "./src/dagre-wrapper/intersect/index.js");
  41341. /* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js");
  41342. /* harmony import */ var _shapes_note__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./shapes/note */ "./src/dagre-wrapper/shapes/note.js");
  41343. // eslint-disable-line
  41344. var question = function question(parent, node) {
  41345. var _labelHelper = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41346. shapeSvg = _labelHelper.shapeSvg,
  41347. bbox = _labelHelper.bbox;
  41348. var w = bbox.width + node.padding;
  41349. var h = bbox.height + node.padding;
  41350. var s = w + h;
  41351. var points = [{
  41352. x: s / 2,
  41353. y: 0
  41354. }, {
  41355. x: s,
  41356. y: -s / 2
  41357. }, {
  41358. x: s / 2,
  41359. y: -s
  41360. }, {
  41361. x: 0,
  41362. y: -s / 2
  41363. }];
  41364. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Question main (Circle)');
  41365. var questionElem = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, s, s, points);
  41366. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, questionElem);
  41367. node.intersect = function (point) {
  41368. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].warn('Intersect called');
  41369. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, points, point);
  41370. };
  41371. return shapeSvg;
  41372. };
  41373. var hexagon = function hexagon(parent, node) {
  41374. var _labelHelper2 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41375. shapeSvg = _labelHelper2.shapeSvg,
  41376. bbox = _labelHelper2.bbox;
  41377. var f = 4;
  41378. var h = bbox.height + node.padding;
  41379. var m = h / f;
  41380. var w = bbox.width + 2 * m + node.padding;
  41381. var points = [{
  41382. x: m,
  41383. y: 0
  41384. }, {
  41385. x: w - m,
  41386. y: 0
  41387. }, {
  41388. x: w,
  41389. y: -h / 2
  41390. }, {
  41391. x: w - m,
  41392. y: -h
  41393. }, {
  41394. x: m,
  41395. y: -h
  41396. }, {
  41397. x: 0,
  41398. y: -h / 2
  41399. }];
  41400. var hex = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points);
  41401. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, hex);
  41402. node.intersect = function (point) {
  41403. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point);
  41404. };
  41405. return shapeSvg;
  41406. };
  41407. var rect_left_inv_arrow = function rect_left_inv_arrow(parent, node) {
  41408. var _labelHelper3 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41409. shapeSvg = _labelHelper3.shapeSvg,
  41410. bbox = _labelHelper3.bbox;
  41411. var w = bbox.width + node.padding;
  41412. var h = bbox.height + node.padding;
  41413. var points = [{
  41414. x: -h / 2,
  41415. y: 0
  41416. }, {
  41417. x: w,
  41418. y: 0
  41419. }, {
  41420. x: w,
  41421. y: -h
  41422. }, {
  41423. x: -h / 2,
  41424. y: -h
  41425. }, {
  41426. x: 0,
  41427. y: -h / 2
  41428. }];
  41429. var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points);
  41430. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el);
  41431. node.intersect = function (point) {
  41432. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point);
  41433. };
  41434. return shapeSvg;
  41435. };
  41436. var lean_right = function lean_right(parent, node) {
  41437. var _labelHelper4 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41438. shapeSvg = _labelHelper4.shapeSvg,
  41439. bbox = _labelHelper4.bbox;
  41440. var w = bbox.width + node.padding;
  41441. var h = bbox.height + node.padding;
  41442. var points = [{
  41443. x: -2 * h / 6,
  41444. y: 0
  41445. }, {
  41446. x: w - h / 6,
  41447. y: 0
  41448. }, {
  41449. x: w + 2 * h / 6,
  41450. y: -h
  41451. }, {
  41452. x: h / 6,
  41453. y: -h
  41454. }];
  41455. var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points);
  41456. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el);
  41457. node.intersect = function (point) {
  41458. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point);
  41459. };
  41460. return shapeSvg;
  41461. };
  41462. var lean_left = function lean_left(parent, node) {
  41463. var _labelHelper5 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41464. shapeSvg = _labelHelper5.shapeSvg,
  41465. bbox = _labelHelper5.bbox;
  41466. var w = bbox.width + node.padding;
  41467. var h = bbox.height + node.padding;
  41468. var points = [{
  41469. x: 2 * h / 6,
  41470. y: 0
  41471. }, {
  41472. x: w + h / 6,
  41473. y: 0
  41474. }, {
  41475. x: w - 2 * h / 6,
  41476. y: -h
  41477. }, {
  41478. x: -h / 6,
  41479. y: -h
  41480. }];
  41481. var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points);
  41482. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el);
  41483. node.intersect = function (point) {
  41484. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point);
  41485. };
  41486. return shapeSvg;
  41487. };
  41488. var trapezoid = function trapezoid(parent, node) {
  41489. var _labelHelper6 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41490. shapeSvg = _labelHelper6.shapeSvg,
  41491. bbox = _labelHelper6.bbox;
  41492. var w = bbox.width + node.padding;
  41493. var h = bbox.height + node.padding;
  41494. var points = [{
  41495. x: -2 * h / 6,
  41496. y: 0
  41497. }, {
  41498. x: w + 2 * h / 6,
  41499. y: 0
  41500. }, {
  41501. x: w - h / 6,
  41502. y: -h
  41503. }, {
  41504. x: h / 6,
  41505. y: -h
  41506. }];
  41507. var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points);
  41508. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el);
  41509. node.intersect = function (point) {
  41510. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point);
  41511. };
  41512. return shapeSvg;
  41513. };
  41514. var inv_trapezoid = function inv_trapezoid(parent, node) {
  41515. var _labelHelper7 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41516. shapeSvg = _labelHelper7.shapeSvg,
  41517. bbox = _labelHelper7.bbox;
  41518. var w = bbox.width + node.padding;
  41519. var h = bbox.height + node.padding;
  41520. var points = [{
  41521. x: h / 6,
  41522. y: 0
  41523. }, {
  41524. x: w - h / 6,
  41525. y: 0
  41526. }, {
  41527. x: w + 2 * h / 6,
  41528. y: -h
  41529. }, {
  41530. x: -2 * h / 6,
  41531. y: -h
  41532. }];
  41533. var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points);
  41534. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el);
  41535. node.intersect = function (point) {
  41536. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point);
  41537. };
  41538. return shapeSvg;
  41539. };
  41540. var rect_right_inv_arrow = function rect_right_inv_arrow(parent, node) {
  41541. var _labelHelper8 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41542. shapeSvg = _labelHelper8.shapeSvg,
  41543. bbox = _labelHelper8.bbox;
  41544. var w = bbox.width + node.padding;
  41545. var h = bbox.height + node.padding;
  41546. var points = [{
  41547. x: 0,
  41548. y: 0
  41549. }, {
  41550. x: w + h / 2,
  41551. y: 0
  41552. }, {
  41553. x: w,
  41554. y: -h / 2
  41555. }, {
  41556. x: w + h / 2,
  41557. y: -h
  41558. }, {
  41559. x: 0,
  41560. y: -h
  41561. }];
  41562. var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points);
  41563. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el);
  41564. node.intersect = function (point) {
  41565. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point);
  41566. };
  41567. return shapeSvg;
  41568. };
  41569. var cylinder = function cylinder(parent, node) {
  41570. var _labelHelper9 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41571. shapeSvg = _labelHelper9.shapeSvg,
  41572. bbox = _labelHelper9.bbox;
  41573. var w = bbox.width + node.padding;
  41574. var rx = w / 2;
  41575. var ry = rx / (2.5 + w / 50);
  41576. var h = bbox.height + ry + node.padding;
  41577. var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h;
  41578. var el = shapeSvg.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');
  41579. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el);
  41580. node.intersect = function (point) {
  41581. var pos = _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point);
  41582. var x = pos.x - node.x;
  41583. if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {
  41584. // ellipsis equation: x*x / a*a + y*y / b*b = 1
  41585. // solve for y to get adjustion value for pos.y
  41586. var y = ry * ry * (1 - x * x / (rx * rx));
  41587. if (y != 0) y = Math.sqrt(y);
  41588. y = ry - y;
  41589. if (point.y - node.y > 0) y = -y;
  41590. pos.y += y;
  41591. }
  41592. return pos;
  41593. };
  41594. return shapeSvg;
  41595. };
  41596. var rect = function rect(parent, node) {
  41597. var _labelHelper10 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, 'node ' + node.classes, true),
  41598. shapeSvg = _labelHelper10.shapeSvg,
  41599. bbox = _labelHelper10.bbox,
  41600. halfPadding = _labelHelper10.halfPadding;
  41601. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Classes = ', node.classes); // add the rect
  41602. var rect = shapeSvg.insert('rect', ':first-child');
  41603. rect.attr('class', 'basic label-container').attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);
  41604. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect);
  41605. node.intersect = function (point) {
  41606. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point);
  41607. };
  41608. return shapeSvg;
  41609. };
  41610. var rectWithTitle = function rectWithTitle(parent, node) {
  41611. // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes);
  41612. var classes;
  41613. if (!node.classes) {
  41614. classes = 'node default';
  41615. } else {
  41616. classes = 'node ' + node.classes;
  41617. } // Add outer g element
  41618. var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect
  41619. var rect = shapeSvg.insert('rect', ':first-child'); // const innerRect = shapeSvg.insert('rect');
  41620. var innerLine = shapeSvg.insert('line');
  41621. var label = shapeSvg.insert('g').attr('class', 'label');
  41622. var text2 = node.labelText.flat();
  41623. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Label text', text2[0]);
  41624. var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(text2[0], node.labelStyle, true, true));
  41625. var bbox;
  41626. if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) {
  41627. var div = text.children[0];
  41628. var dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(text);
  41629. bbox = div.getBoundingClientRect();
  41630. dv.attr('width', bbox.width);
  41631. dv.attr('height', bbox.height);
  41632. }
  41633. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Text 2', text2);
  41634. var textRows = text2.slice(1, text2.length);
  41635. var titleBox = text.getBBox();
  41636. var descr = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(textRows.join('<br/>'), node.labelStyle, true, true));
  41637. if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) {
  41638. var _div = descr.children[0];
  41639. var _dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(descr);
  41640. bbox = _div.getBoundingClientRect();
  41641. _dv.attr('width', bbox.width);
  41642. _dv.attr('height', bbox.height);
  41643. } // bbox = label.getBBox();
  41644. // logger.info(descr);
  41645. var halfPadding = node.padding / 2;
  41646. Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(descr).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 +
  41647. bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + ', ' + (titleBox.height + halfPadding + 5) + ')');
  41648. Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(text).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 +
  41649. bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + ', ' + 0 + ')'); // Get the size of the label
  41650. // Bounding box for title and text
  41651. bbox = label.node().getBBox(); // Center the label
  41652. label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')');
  41653. rect.attr('class', 'outer title-state').attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);
  41654. innerLine.attr('class', 'divider').attr('x1', -bbox.width / 2 - halfPadding).attr('x2', bbox.width / 2 + halfPadding).attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding).attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);
  41655. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect);
  41656. node.intersect = function (point) {
  41657. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point);
  41658. };
  41659. return shapeSvg;
  41660. };
  41661. var stadium = function stadium(parent, node) {
  41662. var _labelHelper11 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41663. shapeSvg = _labelHelper11.shapeSvg,
  41664. bbox = _labelHelper11.bbox;
  41665. var h = bbox.height + node.padding;
  41666. var w = bbox.width + h / 4 + node.padding; // add the rect
  41667. var rect = shapeSvg.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h);
  41668. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect);
  41669. node.intersect = function (point) {
  41670. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point);
  41671. };
  41672. return shapeSvg;
  41673. };
  41674. var circle = function circle(parent, node) {
  41675. var _labelHelper12 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41676. shapeSvg = _labelHelper12.shapeSvg,
  41677. bbox = _labelHelper12.bbox,
  41678. halfPadding = _labelHelper12.halfPadding;
  41679. var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate
  41680. circle.attr('rx', node.rx).attr('ry', node.ry).attr('r', bbox.width / 2 + halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);
  41681. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Circle main');
  41682. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle);
  41683. node.intersect = function (point) {
  41684. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Circle intersect', node, bbox.width / 2 + halfPadding, point);
  41685. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, bbox.width / 2 + halfPadding, point);
  41686. };
  41687. return shapeSvg;
  41688. };
  41689. var subroutine = function subroutine(parent, node) {
  41690. var _labelHelper13 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true),
  41691. shapeSvg = _labelHelper13.shapeSvg,
  41692. bbox = _labelHelper13.bbox;
  41693. var w = bbox.width + node.padding;
  41694. var h = bbox.height + node.padding;
  41695. var points = [{
  41696. x: 0,
  41697. y: 0
  41698. }, {
  41699. x: w,
  41700. y: 0
  41701. }, {
  41702. x: w,
  41703. y: -h
  41704. }, {
  41705. x: 0,
  41706. y: -h
  41707. }, {
  41708. x: 0,
  41709. y: 0
  41710. }, {
  41711. x: -8,
  41712. y: 0
  41713. }, {
  41714. x: w + 8,
  41715. y: 0
  41716. }, {
  41717. x: w + 8,
  41718. y: -h
  41719. }, {
  41720. x: -8,
  41721. y: -h
  41722. }, {
  41723. x: -8,
  41724. y: 0
  41725. }];
  41726. var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points);
  41727. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el);
  41728. node.intersect = function (point) {
  41729. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point);
  41730. };
  41731. return shapeSvg;
  41732. };
  41733. var start = function start(parent, node) {
  41734. var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);
  41735. var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate
  41736. circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);
  41737. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle);
  41738. node.intersect = function (point) {
  41739. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, 7, point);
  41740. };
  41741. return shapeSvg;
  41742. };
  41743. var forkJoin = function forkJoin(parent, node, dir) {
  41744. var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);
  41745. var width = 70;
  41746. var height = 10;
  41747. if (dir === 'LR') {
  41748. width = 10;
  41749. height = 70;
  41750. }
  41751. var shape = shapeSvg.append('rect').style('stroke', 'black').style('fill', 'black').attr('x', -1 * width / 2).attr('y', -1 * height / 2).attr('width', width).attr('height', height).attr('class', 'fork-join');
  41752. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, shape);
  41753. node.height = node.height + node.padding / 2;
  41754. node.width = node.width + node.padding / 2;
  41755. node.intersect = function (point) {
  41756. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point);
  41757. };
  41758. return shapeSvg;
  41759. };
  41760. var end = function end(parent, node) {
  41761. var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);
  41762. var innerCircle = shapeSvg.insert('circle', ':first-child');
  41763. var circle = shapeSvg.insert('circle', ':first-child');
  41764. circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);
  41765. innerCircle.attr('class', 'state-end').attr('r', 5).attr('width', 10).attr('height', 10);
  41766. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle);
  41767. node.intersect = function (point) {
  41768. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, 7, point);
  41769. };
  41770. return shapeSvg;
  41771. };
  41772. var class_box = function class_box(parent, node) {
  41773. var halfPadding = node.padding / 2;
  41774. var rowPadding = 4;
  41775. var lineHeight = 8;
  41776. var classes;
  41777. if (!node.classes) {
  41778. classes = 'node default';
  41779. } else {
  41780. classes = 'node ' + node.classes;
  41781. } // Add outer g element
  41782. var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect
  41783. var rect = shapeSvg.insert('rect', ':first-child');
  41784. var topLine = shapeSvg.insert('line');
  41785. var bottomLine = shapeSvg.insert('line');
  41786. var maxWidth = 0;
  41787. var maxHeight = rowPadding;
  41788. var labelContainer = shapeSvg.insert('g').attr('class', 'label');
  41789. var verticalPos = 0;
  41790. var hasInterface = node.classData.annotations && node.classData.annotations[0]; // 1. Create the labels
  41791. var interfaceLabel = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(node.classData.annotations[0], node.labelStyle, true, true));
  41792. var interfaceBBox = interfaceLabel.getBBox();
  41793. if (node.classData.annotations[0]) {
  41794. maxHeight += interfaceBBox.height + rowPadding;
  41795. maxWidth += interfaceBBox.width;
  41796. }
  41797. var classTitleLabel = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(node.labelText, node.labelStyle, true, true));
  41798. var classTitleBBox = classTitleLabel.getBBox();
  41799. maxHeight += classTitleBBox.height + rowPadding;
  41800. if (classTitleBBox.width > maxWidth) {
  41801. maxWidth = classTitleBBox.width;
  41802. }
  41803. var classAttributes = [];
  41804. node.classData.members.forEach(function (str) {
  41805. var lbl = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(str, node.labelStyle, true, true));
  41806. var bbox = lbl.getBBox();
  41807. if (bbox.width > maxWidth) {
  41808. maxWidth = bbox.width;
  41809. }
  41810. maxHeight += bbox.height + rowPadding;
  41811. classAttributes.push(lbl);
  41812. });
  41813. var classMethods = [];
  41814. node.classData.methods.forEach(function (str) {
  41815. var lbl = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(str, node.labelStyle, true, true));
  41816. var bbox = lbl.getBBox();
  41817. if (bbox.width > maxWidth) {
  41818. maxWidth = bbox.width;
  41819. }
  41820. maxHeight += bbox.height + rowPadding;
  41821. classMethods.push(lbl);
  41822. });
  41823. maxHeight += lineHeight; // 2. Position the labels
  41824. // position the interface label
  41825. if (hasInterface) {
  41826. Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(interfaceLabel).attr('transform', 'translate( ' + -(maxWidth + node.padding - interfaceBBox.width / 2) / 2 + ', ' + -1 * maxHeight / 2 + ')');
  41827. verticalPos = interfaceBBox.height + rowPadding;
  41828. } // Positin the class title label
  41829. var diffX = (maxWidth - classTitleBBox.width) / 2;
  41830. Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(classTitleLabel).attr('transform', 'translate( ' + (-1 * maxWidth / 2 + diffX) + ', ' + (-1 * maxHeight / 2 + verticalPos) + ')');
  41831. verticalPos += classTitleBBox.height + rowPadding;
  41832. topLine.attr('class', 'divider').attr('x1', -maxWidth / 2 - halfPadding).attr('x2', maxWidth / 2 + halfPadding).attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);
  41833. verticalPos += lineHeight;
  41834. classAttributes.forEach(function (lbl) {
  41835. Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(lbl).attr('transform', 'translate( ' + -maxWidth / 2 + ', ' + (-1 * maxHeight / 2 + verticalPos + lineHeight / 2) + ')');
  41836. verticalPos += classTitleBBox.height + rowPadding;
  41837. });
  41838. bottomLine.attr('class', 'divider').attr('x1', -maxWidth / 2 - halfPadding).attr('x2', maxWidth / 2 + halfPadding).attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);
  41839. verticalPos += lineHeight;
  41840. classMethods.forEach(function (lbl) {
  41841. Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(lbl).attr('transform', 'translate( ' + -maxWidth / 2 + ', ' + (-1 * maxHeight / 2 + verticalPos) + ')');
  41842. verticalPos += classTitleBBox.height + rowPadding;
  41843. }); //
  41844. var bbox;
  41845. if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) {
  41846. var div = interfaceLabel.children[0];
  41847. var dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(interfaceLabel);
  41848. bbox = div.getBoundingClientRect();
  41849. dv.attr('width', bbox.width);
  41850. dv.attr('height', bbox.height);
  41851. } // bbox = labelContainer.getBBox();
  41852. // logger.info('Text 2', text2);
  41853. // const textRows = text2.slice(1, text2.length);
  41854. // let titleBox = text.getBBox();
  41855. // const descr = label
  41856. // .node()
  41857. // .appendChild(createLabel(textRows.join('<br/>'), node.labelStyle, true, true));
  41858. // if (getConfig().flowchart.htmlLabels) {
  41859. // const div = descr.children[0];
  41860. // const dv = select(descr);
  41861. // bbox = div.getBoundingClientRect();
  41862. // dv.attr('width', bbox.width);
  41863. // dv.attr('height', bbox.height);
  41864. // }
  41865. // // bbox = label.getBBox();
  41866. // // logger.info(descr);
  41867. // select(descr).attr(
  41868. // 'transform',
  41869. // 'translate( ' +
  41870. // // (titleBox.width - bbox.width) / 2 +
  41871. // (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +
  41872. // ', ' +
  41873. // (titleBox.height + halfPadding + 5) +
  41874. // ')'
  41875. // );
  41876. // select(text).attr(
  41877. // 'transform',
  41878. // 'translate( ' +
  41879. // // (titleBox.width - bbox.width) / 2 +
  41880. // (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +
  41881. // ', ' +
  41882. // 0 +
  41883. // ')'
  41884. // );
  41885. // // Get the size of the label
  41886. // // Bounding box for title and text
  41887. // bbox = label.node().getBBox();
  41888. // // Center the label
  41889. // label.attr(
  41890. // 'transform',
  41891. // 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'
  41892. // );
  41893. rect.attr('class', 'outer title-state').attr('x', -maxWidth / 2 - halfPadding).attr('y', -(maxHeight / 2) - halfPadding).attr('width', maxWidth + node.padding).attr('height', maxHeight + node.padding); // innerLine
  41894. // .attr('class', 'divider')
  41895. // .attr('x1', -bbox.width / 2 - halfPadding)
  41896. // .attr('x2', bbox.width / 2 + halfPadding)
  41897. // .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)
  41898. // .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);
  41899. Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect);
  41900. node.intersect = function (point) {
  41901. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point);
  41902. };
  41903. return shapeSvg;
  41904. };
  41905. var shapes = {
  41906. question: question,
  41907. rect: rect,
  41908. rectWithTitle: rectWithTitle,
  41909. circle: circle,
  41910. stadium: stadium,
  41911. hexagon: hexagon,
  41912. rect_left_inv_arrow: rect_left_inv_arrow,
  41913. lean_right: lean_right,
  41914. lean_left: lean_left,
  41915. trapezoid: trapezoid,
  41916. inv_trapezoid: inv_trapezoid,
  41917. rect_right_inv_arrow: rect_right_inv_arrow,
  41918. cylinder: cylinder,
  41919. start: start,
  41920. end: end,
  41921. note: _shapes_note__WEBPACK_IMPORTED_MODULE_6__["default"],
  41922. subroutine: subroutine,
  41923. fork: forkJoin,
  41924. join: forkJoin,
  41925. class_box: class_box
  41926. };
  41927. var nodeElems = {};
  41928. var insertNode = function insertNode(elem, node, dir) {
  41929. nodeElems[node.id] = shapes[node.shape](elem, node, dir);
  41930. };
  41931. var setNodeElem = function setNodeElem(elem, node) {
  41932. nodeElems[node.id] = elem;
  41933. };
  41934. var clear = function clear() {
  41935. nodeElems = {};
  41936. };
  41937. var positionNode = function positionNode(node) {
  41938. var el = nodeElems[node.id];
  41939. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Transforming node', node, 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')');
  41940. var padding = 8;
  41941. if (node.clusterNode) {
  41942. el.attr('transform', 'translate(' + (node.x - node.width / 2 - padding) + ', ' + (node.y - node.height / 2 - padding) + ')');
  41943. } else {
  41944. el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');
  41945. }
  41946. };
  41947. /***/ }),
  41948. /***/ "./src/dagre-wrapper/shapes/note.js":
  41949. /*!******************************************!*\
  41950. !*** ./src/dagre-wrapper/shapes/note.js ***!
  41951. \******************************************/
  41952. /*! exports provided: default */
  41953. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41954. "use strict";
  41955. __webpack_require__.r(__webpack_exports__);
  41956. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "./src/dagre-wrapper/shapes/util.js");
  41957. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  41958. /* harmony import */ var _intersect_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../intersect/index.js */ "./src/dagre-wrapper/intersect/index.js");
  41959. // eslint-disable-line
  41960. var note = function note(parent, node) {
  41961. var _labelHelper = Object(_util__WEBPACK_IMPORTED_MODULE_0__["labelHelper"])(parent, node, 'node ' + node.classes, true),
  41962. shapeSvg = _labelHelper.shapeSvg,
  41963. bbox = _labelHelper.bbox,
  41964. halfPadding = _labelHelper.halfPadding;
  41965. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Classes = ', node.classes); // add the rect
  41966. var rect = shapeSvg.insert('rect', ':first-child');
  41967. rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);
  41968. Object(_util__WEBPACK_IMPORTED_MODULE_0__["updateNodeBounds"])(node, rect);
  41969. node.intersect = function (point) {
  41970. return _intersect_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].rect(node, point);
  41971. };
  41972. return shapeSvg;
  41973. };
  41974. /* harmony default export */ __webpack_exports__["default"] = (note);
  41975. /***/ }),
  41976. /***/ "./src/dagre-wrapper/shapes/util.js":
  41977. /*!******************************************!*\
  41978. !*** ./src/dagre-wrapper/shapes/util.js ***!
  41979. \******************************************/
  41980. /*! exports provided: labelHelper, updateNodeBounds, insertPolygonShape */
  41981. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41982. "use strict";
  41983. __webpack_require__.r(__webpack_exports__);
  41984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "labelHelper", function() { return labelHelper; });
  41985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateNodeBounds", function() { return updateNodeBounds; });
  41986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertPolygonShape", function() { return insertPolygonShape; });
  41987. /* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLabel */ "./src/dagre-wrapper/createLabel.js");
  41988. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  41989. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  41990. var labelHelper = function labelHelper(parent, node, _classes, isNode) {
  41991. var classes;
  41992. if (!_classes) {
  41993. classes = 'node default';
  41994. } else {
  41995. classes = _classes;
  41996. } // Add outer g element
  41997. var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the label and insert it after the rect
  41998. var label = shapeSvg.insert('g').attr('class', 'label');
  41999. var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_0__["default"])(node.labelText, node.labelStyle, false, isNode)); // Get the size of the label
  42000. var bbox = text.getBBox();
  42001. if (Object(_config__WEBPACK_IMPORTED_MODULE_1__["getConfig"])().flowchart.htmlLabels) {
  42002. var div = text.children[0];
  42003. var dv = Object(d3__WEBPACK_IMPORTED_MODULE_2__["select"])(text);
  42004. bbox = div.getBoundingClientRect();
  42005. dv.attr('width', bbox.width);
  42006. dv.attr('height', bbox.height);
  42007. }
  42008. var halfPadding = node.padding / 2; // Center the label
  42009. label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');
  42010. return {
  42011. shapeSvg: shapeSvg,
  42012. bbox: bbox,
  42013. halfPadding: halfPadding,
  42014. label: label
  42015. };
  42016. };
  42017. var updateNodeBounds = function updateNodeBounds(node, element) {
  42018. var bbox = element.node().getBBox();
  42019. node.width = bbox.width;
  42020. node.height = bbox.height;
  42021. };
  42022. function insertPolygonShape(parent, w, h, points) {
  42023. return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {
  42024. return d.x + ',' + d.y;
  42025. }).join(' ')).attr('class', 'label-container').attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');
  42026. }
  42027. /***/ }),
  42028. /***/ "./src/diagrams/class/classDb.js":
  42029. /*!***************************************!*\
  42030. !*** ./src/diagrams/class/classDb.js ***!
  42031. \***************************************/
  42032. /*! exports provided: addClass, lookUpDomId, clear, getClass, getClasses, getRelations, addRelation, addAnnotation, addMember, addMembers, cleanupLabel, setCssClass, setLink, setClickEvent, bindFunctions, lineType, relationType, default */
  42033. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42034. "use strict";
  42035. __webpack_require__.r(__webpack_exports__);
  42036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addClass", function() { return addClass; });
  42037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lookUpDomId", function() { return lookUpDomId; });
  42038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  42039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClass", function() { return getClass; });
  42040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClasses", function() { return getClasses; });
  42041. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRelations", function() { return getRelations; });
  42042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addRelation", function() { return addRelation; });
  42043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addAnnotation", function() { return addAnnotation; });
  42044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addMember", function() { return addMember; });
  42045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addMembers", function() { return addMembers; });
  42046. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cleanupLabel", function() { return cleanupLabel; });
  42047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setCssClass", function() { return setCssClass; });
  42048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLink", function() { return setLink; });
  42049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setClickEvent", function() { return setClickEvent; });
  42050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindFunctions", function() { return bindFunctions; });
  42051. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lineType", function() { return lineType; });
  42052. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "relationType", function() { return relationType; });
  42053. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  42054. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  42055. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  42056. /* harmony import */ var _common_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/common */ "./src/diagrams/common/common.js");
  42057. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  42058. var MERMAID_DOM_ID_PREFIX = 'classid-';
  42059. var config = Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])();
  42060. var relations = [];
  42061. var classes = {};
  42062. var classCounter = 0;
  42063. var funs = [];
  42064. var splitClassNameAndType = function splitClassNameAndType(id) {
  42065. var genericType = '';
  42066. var className = id;
  42067. if (id.indexOf('~') > 0) {
  42068. var split = id.split('~');
  42069. className = split[0];
  42070. genericType = split[1];
  42071. }
  42072. return {
  42073. className: className,
  42074. type: genericType
  42075. };
  42076. };
  42077. /**
  42078. * Function called by parser when a node definition has been found.
  42079. * @param id
  42080. * @public
  42081. */
  42082. var addClass = function addClass(id) {
  42083. var classId = splitClassNameAndType(id); // Only add class if not exists
  42084. if (typeof classes[classId.className] !== 'undefined') return;
  42085. classes[classId.className] = {
  42086. id: classId.className,
  42087. type: classId.type,
  42088. cssClasses: [],
  42089. methods: [],
  42090. members: [],
  42091. annotations: [],
  42092. domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter
  42093. };
  42094. classCounter++;
  42095. };
  42096. /**
  42097. * Function to lookup domId from id in the graph definition.
  42098. * @param id
  42099. * @public
  42100. */
  42101. var lookUpDomId = function lookUpDomId(id) {
  42102. var classKeys = Object.keys(classes);
  42103. for (var i = 0; i < classKeys.length; i++) {
  42104. if (classes[classKeys[i]].id === id) {
  42105. return classes[classKeys[i]].domId;
  42106. }
  42107. }
  42108. };
  42109. var clear = function clear() {
  42110. relations = [];
  42111. classes = {};
  42112. funs = [];
  42113. funs.push(setupToolTips);
  42114. };
  42115. var getClass = function getClass(id) {
  42116. return classes[id];
  42117. };
  42118. var getClasses = function getClasses() {
  42119. return classes;
  42120. };
  42121. var getRelations = function getRelations() {
  42122. return relations;
  42123. };
  42124. var addRelation = function addRelation(relation) {
  42125. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('Adding relation: ' + JSON.stringify(relation));
  42126. addClass(relation.id1);
  42127. addClass(relation.id2);
  42128. relation.id1 = splitClassNameAndType(relation.id1).className;
  42129. relation.id2 = splitClassNameAndType(relation.id2).className;
  42130. relations.push(relation);
  42131. };
  42132. /**
  42133. * Adds an annotation to the specified class
  42134. * Annotations mark special properties of the given type (like 'interface' or 'service')
  42135. * @param className The class name
  42136. * @param annotation The name of the annotation without any brackets
  42137. * @public
  42138. */
  42139. var addAnnotation = function addAnnotation(className, annotation) {
  42140. var validatedClassName = splitClassNameAndType(className).className;
  42141. classes[validatedClassName].annotations.push(annotation);
  42142. };
  42143. /**
  42144. * Adds a member to the specified class
  42145. * @param className The class name
  42146. * @param member The full name of the member.
  42147. * If the member is enclosed in <<brackets>> it is treated as an annotation
  42148. * If the member is ending with a closing bracket ) it is treated as a method
  42149. * Otherwise the member will be treated as a normal property
  42150. * @public
  42151. */
  42152. var addMember = function addMember(className, member) {
  42153. var validatedClassName = splitClassNameAndType(className).className;
  42154. var theClass = classes[validatedClassName];
  42155. if (typeof member === 'string') {
  42156. // Member can contain white spaces, we trim them out
  42157. var memberString = member.trim();
  42158. if (memberString.startsWith('<<') && memberString.endsWith('>>')) {
  42159. // Remove leading and trailing brackets
  42160. theClass.annotations.push(memberString.substring(2, memberString.length - 2));
  42161. } else if (memberString.indexOf(')') > 0) {
  42162. theClass.methods.push(memberString);
  42163. } else if (memberString) {
  42164. theClass.members.push(memberString);
  42165. }
  42166. }
  42167. };
  42168. var addMembers = function addMembers(className, members) {
  42169. if (Array.isArray(members)) {
  42170. members.reverse();
  42171. members.forEach(function (member) {
  42172. return addMember(className, member);
  42173. });
  42174. }
  42175. };
  42176. var cleanupLabel = function cleanupLabel(label) {
  42177. if (label.substring(0, 1) === ':') {
  42178. return label.substr(1).trim();
  42179. } else {
  42180. return label.trim();
  42181. }
  42182. };
  42183. /**
  42184. * Called by parser when a special node is found, e.g. a clickable element.
  42185. * @param ids Comma separated list of ids
  42186. * @param className Class to add
  42187. */
  42188. var setCssClass = function setCssClass(ids, className) {
  42189. ids.split(',').forEach(function (_id) {
  42190. var id = _id;
  42191. if (_id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id;
  42192. if (typeof classes[id] !== 'undefined') {
  42193. classes[id].cssClasses.push(className);
  42194. }
  42195. });
  42196. };
  42197. /**
  42198. * Called by parser when a link is found. Adds the URL to the vertex data.
  42199. * @param ids Comma separated list of ids
  42200. * @param linkStr URL to create a link for
  42201. * @param tooltip Tooltip for the clickable element
  42202. */
  42203. var setLink = function setLink(ids, linkStr, tooltip) {
  42204. ids.split(',').forEach(function (_id) {
  42205. var id = _id;
  42206. if (_id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id;
  42207. if (typeof classes[id] !== 'undefined') {
  42208. classes[id].link = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].formatUrl(linkStr, config);
  42209. if (tooltip) {
  42210. classes[id].tooltip = _common_common__WEBPACK_IMPORTED_MODULE_3__["default"].sanitizeText(tooltip, config);
  42211. }
  42212. }
  42213. });
  42214. setCssClass(ids, 'clickable');
  42215. };
  42216. /**
  42217. * Called by parser when a click definition is found. Registers an event handler.
  42218. * @param ids Comma separated list of ids
  42219. * @param functionName Function to be called on click
  42220. * @param tooltip Tooltip for the clickable element
  42221. */
  42222. var setClickEvent = function setClickEvent(ids, functionName, tooltip) {
  42223. ids.split(',').forEach(function (id) {
  42224. setClickFunc(id, functionName, tooltip);
  42225. });
  42226. setCssClass(ids, 'clickable');
  42227. };
  42228. var setClickFunc = function setClickFunc(domId, functionName, tooltip) {
  42229. var id = domId;
  42230. var elemId = lookUpDomId(id);
  42231. if (config.securityLevel !== 'loose') {
  42232. return;
  42233. }
  42234. if (typeof functionName === 'undefined') {
  42235. return;
  42236. }
  42237. if (typeof classes[id] !== 'undefined') {
  42238. if (tooltip) {
  42239. classes[id].tooltip = _common_common__WEBPACK_IMPORTED_MODULE_3__["default"].sanitizeText(tooltip, config);
  42240. }
  42241. funs.push(function () {
  42242. var elem = document.querySelector("[id=\"".concat(elemId, "\"]"));
  42243. if (elem !== null) {
  42244. elem.addEventListener('click', function () {
  42245. _utils__WEBPACK_IMPORTED_MODULE_4__["default"].runFunc(functionName, elemId);
  42246. }, false);
  42247. }
  42248. });
  42249. }
  42250. };
  42251. var bindFunctions = function bindFunctions(element) {
  42252. funs.forEach(function (fun) {
  42253. fun(element);
  42254. });
  42255. };
  42256. var lineType = {
  42257. LINE: 0,
  42258. DOTTED_LINE: 1
  42259. };
  42260. var relationType = {
  42261. AGGREGATION: 0,
  42262. EXTENSION: 1,
  42263. COMPOSITION: 2,
  42264. DEPENDENCY: 3
  42265. };
  42266. var setupToolTips = function setupToolTips(element) {
  42267. var tooltipElem = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('.mermaidTooltip');
  42268. if ((tooltipElem._groups || tooltipElem)[0][0] === null) {
  42269. tooltipElem = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);
  42270. }
  42271. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(element).select('svg');
  42272. var nodes = svg.selectAll('g.node');
  42273. nodes.on('mouseover', function () {
  42274. var el = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(this);
  42275. var title = el.attr('title'); // Dont try to draw a tooltip if no data is provided
  42276. if (title === null) {
  42277. return;
  42278. }
  42279. var rect = this.getBoundingClientRect();
  42280. tooltipElem.transition().duration(200).style('opacity', '.9');
  42281. tooltipElem.html(el.attr('title')).style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px').style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');
  42282. el.classed('hover', true);
  42283. }).on('mouseout', function () {
  42284. tooltipElem.transition().duration(500).style('opacity', 0);
  42285. var el = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(this);
  42286. el.classed('hover', false);
  42287. });
  42288. };
  42289. funs.push(setupToolTips);
  42290. /* harmony default export */ __webpack_exports__["default"] = ({
  42291. addClass: addClass,
  42292. bindFunctions: bindFunctions,
  42293. clear: clear,
  42294. getClass: getClass,
  42295. getClasses: getClasses,
  42296. addAnnotation: addAnnotation,
  42297. getRelations: getRelations,
  42298. addRelation: addRelation,
  42299. addMember: addMember,
  42300. addMembers: addMembers,
  42301. cleanupLabel: cleanupLabel,
  42302. lineType: lineType,
  42303. relationType: relationType,
  42304. setClickEvent: setClickEvent,
  42305. setCssClass: setCssClass,
  42306. setLink: setLink,
  42307. lookUpDomId: lookUpDomId
  42308. });
  42309. /***/ }),
  42310. /***/ "./src/diagrams/class/classRenderer-v2.js":
  42311. /*!************************************************!*\
  42312. !*** ./src/diagrams/class/classRenderer-v2.js ***!
  42313. \************************************************/
  42314. /*! exports provided: addClasses, addRelations, setConf, drawOld, draw, default */
  42315. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42316. "use strict";
  42317. __webpack_require__.r(__webpack_exports__);
  42318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addClasses", function() { return addClasses; });
  42319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addRelations", function() { return addRelations; });
  42320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  42321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawOld", function() { return drawOld; });
  42322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  42323. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  42324. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dagre */ "./node_modules/dagre/index.js");
  42325. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_1__);
  42326. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
  42327. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_2__);
  42328. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  42329. /* harmony import */ var _classDb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./classDb */ "./src/diagrams/class/classDb.js");
  42330. /* harmony import */ var _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./parser/classDiagram */ "./src/diagrams/class/parser/classDiagram.jison");
  42331. /* harmony import */ var _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__);
  42332. /* harmony import */ var _svgDraw__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./svgDraw */ "./src/diagrams/class/svgDraw.js");
  42333. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  42334. /* harmony import */ var _dagre_wrapper_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../dagre-wrapper/index.js */ "./src/dagre-wrapper/index.js");
  42335. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  42336. /* harmony import */ var _common_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../common/common */ "./src/diagrams/common/common.js");
  42337. // import addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';
  42338. _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__["parser"].yy = _classDb__WEBPACK_IMPORTED_MODULE_4__["default"];
  42339. var idCache = {};
  42340. var padding = 20;
  42341. var conf = {
  42342. dividerMargin: 10,
  42343. padding: 5,
  42344. textHeight: 10
  42345. };
  42346. /**
  42347. * Function that adds the vertices found during parsing to the graph to be rendered.
  42348. * @param vert Object containing the vertices.
  42349. * @param g The graph that is to be drawn.
  42350. */
  42351. var addClasses = function addClasses(classes, g) {
  42352. // const svg = select(`[id="${svgId}"]`);
  42353. var keys = Object.keys(classes);
  42354. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('keys:', keys);
  42355. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info(classes); // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition
  42356. keys.forEach(function (id) {
  42357. var vertex = classes[id];
  42358. /**
  42359. * Variable for storing the classes for the vertex
  42360. * @type {string}
  42361. */
  42362. var classStr = 'default'; // if (vertex.classes.length > 0) {
  42363. // classStr = vertex.classes.join(' ');
  42364. // }
  42365. var styles = {
  42366. labelStyle: ''
  42367. }; //getStylesFromArray(vertex.styles);
  42368. // Use vertex id as text in the box if no text is provided by the graph definition
  42369. var vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually
  42370. // let vertexNode;
  42371. // if (getConfig().flowchart.htmlLabels) {
  42372. // const node = {
  42373. // label: vertexText.replace(
  42374. // /fa[lrsb]?:fa-[\w-]+/g,
  42375. // s => `<i class='${s.replace(':', ' ')}'></i>`
  42376. // )
  42377. // };
  42378. // vertexNode = addHtmlLabel(svg, node).node();
  42379. // vertexNode.parentNode.removeChild(vertexNode);
  42380. // } else {
  42381. // const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');
  42382. // svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));
  42383. // const rows = vertexText.split(common.lineBreakRegex);
  42384. // for (let j = 0; j < rows.length; j++) {
  42385. // const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');
  42386. // tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');
  42387. // tspan.setAttribute('dy', '1em');
  42388. // tspan.setAttribute('x', '1');
  42389. // tspan.textContent = rows[j];
  42390. // svgLabel.appendChild(tspan);
  42391. // }
  42392. // vertexNode = svgLabel;
  42393. // }
  42394. var radious = 0;
  42395. var _shape = ''; // Set the shape based parameters
  42396. switch (vertex.type) {
  42397. case 'class':
  42398. _shape = 'class_box';
  42399. break;
  42400. default:
  42401. _shape = 'class_box';
  42402. } // Add the node
  42403. g.setNode(vertex.id, {
  42404. labelStyle: styles.labelStyle,
  42405. shape: _shape,
  42406. labelText: vertexText,
  42407. classData: vertex,
  42408. rx: radious,
  42409. ry: radious,
  42410. class: classStr,
  42411. style: styles.style,
  42412. id: vertex.id,
  42413. width: vertex.type === 'group' ? 500 : undefined,
  42414. type: vertex.type,
  42415. padding: Object(_config__WEBPACK_IMPORTED_MODULE_7__["getConfig"])().flowchart.padding
  42416. });
  42417. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('setNode', {
  42418. labelStyle: styles.labelStyle,
  42419. shape: _shape,
  42420. labelText: vertexText,
  42421. rx: radious,
  42422. ry: radious,
  42423. class: classStr,
  42424. style: styles.style,
  42425. id: vertex.id,
  42426. width: vertex.type === 'group' ? 500 : undefined,
  42427. type: vertex.type,
  42428. padding: Object(_config__WEBPACK_IMPORTED_MODULE_7__["getConfig"])().flowchart.padding
  42429. });
  42430. });
  42431. };
  42432. /**
  42433. * Add edges to graph based on parsed graph defninition
  42434. * @param {Object} edges The edges to add to the graph
  42435. * @param {Object} g The graph object
  42436. */
  42437. var addRelations = function addRelations(relations, g) {
  42438. var cnt = 0;
  42439. var defaultStyle;
  42440. var defaultLabelStyle; // if (typeof relations.defaultStyle !== 'undefined') {
  42441. // const defaultStyles = getStylesFromArray(relations.defaultStyle);
  42442. // defaultStyle = defaultStyles.style;
  42443. // defaultLabelStyle = defaultStyles.labelStyle;
  42444. // }
  42445. relations.forEach(function (edge) {
  42446. cnt++;
  42447. var edgeData = {}; //Set relationship style and line type
  42448. edgeData.classes = 'relation';
  42449. edgeData.pattern = edge.relation.lineType == 1 ? 'dashed' : 'solid';
  42450. edgeData.id = 'id' + cnt; // Set link type for rendering
  42451. if (edge.type === 'arrow_open') {
  42452. edgeData.arrowhead = 'none';
  42453. } else {
  42454. edgeData.arrowhead = 'normal';
  42455. }
  42456. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info(edgeData, edge); //Set relation arrow types
  42457. edgeData.arrowTypeStart = getArrowMarker(edge.relation.type1);
  42458. edgeData.arrowTypeEnd = getArrowMarker(edge.relation.type2);
  42459. var style = '';
  42460. var labelStyle = '';
  42461. if (typeof edge.style !== 'undefined') {
  42462. var styles = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getStylesFromArray"])(edge.style);
  42463. style = styles.style;
  42464. labelStyle = styles.labelStyle;
  42465. } else {
  42466. style = 'fill:none';
  42467. if (typeof defaultStyle !== 'undefined') {
  42468. style = defaultStyle;
  42469. }
  42470. if (typeof defaultLabelStyle !== 'undefined') {
  42471. labelStyle = defaultLabelStyle;
  42472. }
  42473. }
  42474. edgeData.style = style;
  42475. edgeData.labelStyle = labelStyle;
  42476. if (typeof edge.interpolate !== 'undefined') {
  42477. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["interpolateToCurve"])(edge.interpolate, d3__WEBPACK_IMPORTED_MODULE_0__["curveLinear"]);
  42478. } else if (typeof relations.defaultInterpolate !== 'undefined') {
  42479. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["interpolateToCurve"])(relations.defaultInterpolate, d3__WEBPACK_IMPORTED_MODULE_0__["curveLinear"]);
  42480. } else {
  42481. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["interpolateToCurve"])(conf.curve, d3__WEBPACK_IMPORTED_MODULE_0__["curveLinear"]);
  42482. }
  42483. edge.text = edge.title;
  42484. if (typeof edge.text === 'undefined') {
  42485. if (typeof edge.style !== 'undefined') {
  42486. edgeData.arrowheadStyle = 'fill: #333';
  42487. }
  42488. } else {
  42489. edgeData.arrowheadStyle = 'fill: #333';
  42490. edgeData.labelpos = 'c';
  42491. if (Object(_config__WEBPACK_IMPORTED_MODULE_7__["getConfig"])().flowchart.htmlLabels && false) {
  42492. // eslint-disable-line
  42493. edgeData.labelType = 'html';
  42494. edgeData.label = '<span class="edgeLabel">' + edge.text + '</span>';
  42495. } else {
  42496. edgeData.labelType = 'text';
  42497. edgeData.label = edge.text.replace(_common_common__WEBPACK_IMPORTED_MODULE_10__["default"].lineBreakRegex, '\n');
  42498. if (typeof edge.style === 'undefined') {
  42499. edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';
  42500. }
  42501. edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');
  42502. }
  42503. } // Add the edge to the graph
  42504. g.setEdge(edge.id1, edge.id2, edgeData, cnt);
  42505. });
  42506. }; // Todo optimize
  42507. var getGraphId = function getGraphId(label) {
  42508. var keys = Object.keys(idCache);
  42509. for (var i = 0; i < keys.length; i++) {
  42510. if (idCache[keys[i]].label === label) {
  42511. return keys[i];
  42512. }
  42513. }
  42514. return undefined;
  42515. };
  42516. var setConf = function setConf(cnf) {
  42517. var keys = Object.keys(cnf);
  42518. keys.forEach(function (key) {
  42519. conf[key] = cnf[key];
  42520. });
  42521. };
  42522. /**
  42523. * Draws a flowchart in the tag with id: id based on the graph definition in text.
  42524. * @param text
  42525. * @param id
  42526. */
  42527. var drawOld = function drawOld(text, id) {
  42528. idCache = {};
  42529. _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__["parser"].yy.clear();
  42530. _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__["parser"].parse(text);
  42531. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('Rendering diagram ' + text); // Fetch the default direction, use TD if none was found
  42532. var diagram = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])("[id='".concat(id, "']")); // insertMarkers(diagram);
  42533. // Layout graph, Create a new directed graph
  42534. var g = new graphlib__WEBPACK_IMPORTED_MODULE_2___default.a.Graph({
  42535. multigraph: true
  42536. }); // Set an object for the graph label
  42537. g.setGraph({
  42538. isMultiGraph: true
  42539. }); // Default to assigning a new object as a label for each new edge.
  42540. g.setDefaultEdgeLabel(function () {
  42541. return {};
  42542. });
  42543. var classes = _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].getClasses();
  42544. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('classes:');
  42545. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info(classes);
  42546. var keys = Object.keys(classes);
  42547. for (var i = 0; i < keys.length; i++) {
  42548. var classDef = classes[keys[i]];
  42549. var node = _svgDraw__WEBPACK_IMPORTED_MODULE_6__["default"].drawClass(diagram, classDef, conf);
  42550. idCache[node.id] = node; // Add nodes to the graph. The first argument is the node id. The second is
  42551. // metadata about the node. In this case we're going to add labels to each of
  42552. // our nodes.
  42553. g.setNode(node.id, node);
  42554. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('Org height: ' + node.height);
  42555. }
  42556. var relations = _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].getRelations();
  42557. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('relations:', relations);
  42558. relations.forEach(function (relation) {
  42559. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation));
  42560. g.setEdge(getGraphId(relation.id1), getGraphId(relation.id2), {
  42561. relation: relation
  42562. }, relation.title || 'DEFAULT');
  42563. });
  42564. dagre__WEBPACK_IMPORTED_MODULE_1___default.a.layout(g);
  42565. g.nodes().forEach(function (v) {
  42566. if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {
  42567. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));
  42568. Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('#' + Object(_classDb__WEBPACK_IMPORTED_MODULE_4__["lookUpDomId"])(v)).attr('transform', 'translate(' + (g.node(v).x - g.node(v).width / 2) + ',' + (g.node(v).y - g.node(v).height / 2) + ' )');
  42569. }
  42570. });
  42571. g.edges().forEach(function (e) {
  42572. if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {
  42573. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));
  42574. _svgDraw__WEBPACK_IMPORTED_MODULE_6__["default"].drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);
  42575. }
  42576. });
  42577. var svgBounds = diagram.node().getBBox();
  42578. var width = svgBounds.width + padding * 2;
  42579. var height = svgBounds.height + padding * 2;
  42580. if (conf.useMaxWidth) {
  42581. diagram.attr('width', '100%');
  42582. diagram.attr('style', "max-width: ".concat(width, "px;"));
  42583. } else {
  42584. diagram.attr('height', height);
  42585. diagram.attr('width', width);
  42586. } // Ensure the viewBox includes the whole svgBounds area with extra space for padding
  42587. var vBox = "".concat(svgBounds.x - padding, " ").concat(svgBounds.y - padding, " ").concat(width, " ").concat(height);
  42588. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug("viewBox ".concat(vBox));
  42589. diagram.attr('viewBox', vBox);
  42590. };
  42591. var draw = function draw(text, id) {
  42592. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('Drawing class');
  42593. _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].clear(); // const parser = classDb.parser;
  42594. // parser.yy = classDb;
  42595. // Parse the graph definition
  42596. // try {
  42597. _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__["parser"].parse(text); // } catch (err) {
  42598. // logger.debug('Parsing failed');
  42599. // }
  42600. // Fetch the default direction, use TD if none was found
  42601. var dir = 'TD';
  42602. var conf = Object(_config__WEBPACK_IMPORTED_MODULE_7__["getConfig"])().flowchart;
  42603. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('config:', conf);
  42604. var nodeSpacing = conf.nodeSpacing || 50;
  42605. var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph
  42606. var g = new graphlib__WEBPACK_IMPORTED_MODULE_2___default.a.Graph({
  42607. multigraph: true,
  42608. compound: true
  42609. }).setGraph({
  42610. rankdir: dir,
  42611. nodesep: nodeSpacing,
  42612. ranksep: rankSpacing,
  42613. marginx: 8,
  42614. marginy: 8
  42615. }).setDefaultEdgeLabel(function () {
  42616. return {};
  42617. }); // let subG;
  42618. // const subGraphs = flowDb.getSubGraphs();
  42619. // logger.info('Subgraphs - ', subGraphs);
  42620. // for (let i = subGraphs.length - 1; i >= 0; i--) {
  42621. // subG = subGraphs[i];
  42622. // logger.info('Subgraph - ', subG);
  42623. // flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);
  42624. // }
  42625. // Fetch the verices/nodes and edges/links from the parsed graph definition
  42626. var classes = _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].getClasses();
  42627. var relations = _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].getRelations();
  42628. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info(relations); // let i = 0;
  42629. // for (i = subGraphs.length - 1; i >= 0; i--) {
  42630. // subG = subGraphs[i];
  42631. // selectAll('cluster').append('text');
  42632. // for (let j = 0; j < subG.nodes.length; j++) {
  42633. // g.setParent(subG.nodes[j], subG.id);
  42634. // }
  42635. // }
  42636. addClasses(classes, g, id);
  42637. addRelations(relations, g); // Add custom shapes
  42638. // flowChartShapes.addToRenderV2(addShape);
  42639. // Set up an SVG group so that we can translate the final graph.
  42640. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])("[id=\"".concat(id, "\"]")); // Run the renderer. This is what draws the final graph.
  42641. var element = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('#' + id + ' g');
  42642. Object(_dagre_wrapper_index_js__WEBPACK_IMPORTED_MODULE_8__["render"])(element, g, ['aggregation', 'extension', 'composition', 'dependency'], 'classDiagram', id); // element.selectAll('g.node').attr('title', function() {
  42643. // return flowDb.getTooltip(this.id);
  42644. // });
  42645. var padding = 8;
  42646. var svgBounds = svg.node().getBBox();
  42647. var width = svgBounds.width + padding * 2;
  42648. var height = svgBounds.height + padding * 2;
  42649. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug("new ViewBox 0 0 ".concat(width, " ").concat(height), "translate(".concat(padding - g._label.marginx, ", ").concat(padding - g._label.marginy, ")"));
  42650. if (conf.useMaxWidth) {
  42651. svg.attr('width', '100%');
  42652. svg.attr('style', "max-width: ".concat(width, "px;"));
  42653. } else {
  42654. svg.attr('height', height);
  42655. svg.attr('width', width);
  42656. }
  42657. svg.attr('viewBox', "0 0 ".concat(width, " ").concat(height));
  42658. svg.select('g').attr('transform', "translate(".concat(padding - g._label.marginx, ", ").concat(padding - svgBounds.y, ")")); // Index nodes
  42659. // flowDb.indexNodes('subGraph' + i);
  42660. // Add label rects for non html labels
  42661. if (!conf.htmlLabels) {
  42662. var labels = document.querySelectorAll('[id="' + id + '"] .edgeLabel .label');
  42663. for (var k = 0; k < labels.length; k++) {
  42664. var label = labels[k]; // Get dimensions of label
  42665. var dim = label.getBBox();
  42666. var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
  42667. rect.setAttribute('rx', 0);
  42668. rect.setAttribute('ry', 0);
  42669. rect.setAttribute('width', dim.width);
  42670. rect.setAttribute('height', dim.height);
  42671. rect.setAttribute('style', 'fill:#e8e8e8;');
  42672. label.insertBefore(rect, label.firstChild);
  42673. }
  42674. } // If node has a link, wrap it in an anchor SVG object.
  42675. // const keys = Object.keys(classes);
  42676. // keys.forEach(function(key) {
  42677. // const vertex = classes[key];
  42678. // if (vertex.link) {
  42679. // const node = select('#' + id + ' [id="' + key + '"]');
  42680. // if (node) {
  42681. // const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');
  42682. // link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));
  42683. // link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);
  42684. // link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');
  42685. // const linkNode = node.insert(function() {
  42686. // return link;
  42687. // }, ':first-child');
  42688. // const shape = node.select('.label-container');
  42689. // if (shape) {
  42690. // linkNode.append(function() {
  42691. // return shape.node();
  42692. // });
  42693. // }
  42694. // const label = node.select('.label');
  42695. // if (label) {
  42696. // linkNode.append(function() {
  42697. // return label.node();
  42698. // });
  42699. // }
  42700. // }
  42701. // }
  42702. // });
  42703. };
  42704. /* harmony default export */ __webpack_exports__["default"] = ({
  42705. setConf: setConf,
  42706. draw: draw
  42707. });
  42708. function getArrowMarker(type) {
  42709. var marker;
  42710. switch (type) {
  42711. case 0:
  42712. marker = 'aggregation';
  42713. break;
  42714. case 1:
  42715. marker = 'extension';
  42716. break;
  42717. case 2:
  42718. marker = 'composition';
  42719. break;
  42720. case 3:
  42721. marker = 'dependency';
  42722. break;
  42723. default:
  42724. marker = 'none';
  42725. }
  42726. return marker;
  42727. }
  42728. /***/ }),
  42729. /***/ "./src/diagrams/class/classRenderer.js":
  42730. /*!*********************************************!*\
  42731. !*** ./src/diagrams/class/classRenderer.js ***!
  42732. \*********************************************/
  42733. /*! exports provided: setConf, draw, default */
  42734. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42735. "use strict";
  42736. __webpack_require__.r(__webpack_exports__);
  42737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  42738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  42739. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  42740. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dagre */ "./node_modules/dagre/index.js");
  42741. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_1__);
  42742. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
  42743. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_2__);
  42744. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  42745. /* harmony import */ var _classDb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./classDb */ "./src/diagrams/class/classDb.js");
  42746. /* harmony import */ var _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./parser/classDiagram */ "./src/diagrams/class/parser/classDiagram.jison");
  42747. /* harmony import */ var _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__);
  42748. /* harmony import */ var _svgDraw__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./svgDraw */ "./src/diagrams/class/svgDraw.js");
  42749. _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__["parser"].yy = _classDb__WEBPACK_IMPORTED_MODULE_4__["default"];
  42750. var idCache = {};
  42751. var padding = 20;
  42752. var conf = {
  42753. dividerMargin: 10,
  42754. padding: 5,
  42755. textHeight: 10
  42756. }; // Todo optimize
  42757. var getGraphId = function getGraphId(label) {
  42758. var keys = Object.keys(idCache);
  42759. for (var i = 0; i < keys.length; i++) {
  42760. if (idCache[keys[i]].label === label) {
  42761. return keys[i];
  42762. }
  42763. }
  42764. return undefined;
  42765. };
  42766. /**
  42767. * Setup arrow head and define the marker. The result is appended to the svg.
  42768. */
  42769. var insertMarkers = function insertMarkers(elem) {
  42770. 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');
  42771. 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
  42772. 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');
  42773. 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');
  42774. 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');
  42775. 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');
  42776. 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');
  42777. 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');
  42778. };
  42779. var setConf = function setConf(cnf) {
  42780. var keys = Object.keys(cnf);
  42781. keys.forEach(function (key) {
  42782. conf[key] = cnf[key];
  42783. });
  42784. };
  42785. /**
  42786. * Draws a flowchart in the tag with id: id based on the graph definition in text.
  42787. * @param text
  42788. * @param id
  42789. */
  42790. var draw = function draw(text, id) {
  42791. idCache = {};
  42792. _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__["parser"].yy.clear();
  42793. _parser_classDiagram__WEBPACK_IMPORTED_MODULE_5__["parser"].parse(text);
  42794. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('Rendering diagram ' + text); // Fetch the default direction, use TD if none was found
  42795. var diagram = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])("[id='".concat(id, "']"));
  42796. insertMarkers(diagram); // Layout graph, Create a new directed graph
  42797. var g = new graphlib__WEBPACK_IMPORTED_MODULE_2___default.a.Graph({
  42798. multigraph: true
  42799. }); // Set an object for the graph label
  42800. g.setGraph({
  42801. isMultiGraph: true
  42802. }); // Default to assigning a new object as a label for each new edge.
  42803. g.setDefaultEdgeLabel(function () {
  42804. return {};
  42805. });
  42806. var classes = _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].getClasses();
  42807. var keys = Object.keys(classes);
  42808. for (var i = 0; i < keys.length; i++) {
  42809. var classDef = classes[keys[i]];
  42810. var node = _svgDraw__WEBPACK_IMPORTED_MODULE_6__["default"].drawClass(diagram, classDef, conf);
  42811. idCache[node.id] = node; // Add nodes to the graph. The first argument is the node id. The second is
  42812. // metadata about the node. In this case we're going to add labels to each of
  42813. // our nodes.
  42814. g.setNode(node.id, node);
  42815. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('Org height: ' + node.height);
  42816. }
  42817. var relations = _classDb__WEBPACK_IMPORTED_MODULE_4__["default"].getRelations();
  42818. relations.forEach(function (relation) {
  42819. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation));
  42820. g.setEdge(getGraphId(relation.id1), getGraphId(relation.id2), {
  42821. relation: relation
  42822. }, relation.title || 'DEFAULT');
  42823. });
  42824. dagre__WEBPACK_IMPORTED_MODULE_1___default.a.layout(g);
  42825. g.nodes().forEach(function (v) {
  42826. if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {
  42827. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));
  42828. Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('#' + Object(_classDb__WEBPACK_IMPORTED_MODULE_4__["lookUpDomId"])(v)).attr('transform', 'translate(' + (g.node(v).x - g.node(v).width / 2) + ',' + (g.node(v).y - g.node(v).height / 2) + ' )');
  42829. }
  42830. });
  42831. g.edges().forEach(function (e) {
  42832. if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {
  42833. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));
  42834. _svgDraw__WEBPACK_IMPORTED_MODULE_6__["default"].drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);
  42835. }
  42836. });
  42837. var svgBounds = diagram.node().getBBox();
  42838. var width = svgBounds.width + padding * 2;
  42839. var height = svgBounds.height + padding * 2;
  42840. if (conf.useMaxWidth) {
  42841. diagram.attr('width', '100%');
  42842. diagram.attr('style', "max-width: ".concat(width, "px;"));
  42843. } else {
  42844. diagram.attr('height', height);
  42845. diagram.attr('width', width);
  42846. } // Ensure the viewBox includes the whole svgBounds area with extra space for padding
  42847. var vBox = "".concat(svgBounds.x - padding, " ").concat(svgBounds.y - padding, " ").concat(width, " ").concat(height);
  42848. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug("viewBox ".concat(vBox));
  42849. diagram.attr('viewBox', vBox);
  42850. };
  42851. /* harmony default export */ __webpack_exports__["default"] = ({
  42852. setConf: setConf,
  42853. draw: draw
  42854. });
  42855. /***/ }),
  42856. /***/ "./src/diagrams/class/parser/classDiagram.jison":
  42857. /*!******************************************************!*\
  42858. !*** ./src/diagrams/class/parser/classDiagram.jison ***!
  42859. \******************************************************/
  42860. /*! no static exports found */
  42861. /***/ (function(module, exports, __webpack_require__) {
  42862. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  42863. /*
  42864. Returns a Parser object of the following structure:
  42865. Parser: {
  42866. yy: {}
  42867. }
  42868. Parser.prototype: {
  42869. yy: {},
  42870. trace: function(),
  42871. symbols_: {associative list: name ==> number},
  42872. terminals_: {associative list: number ==> name},
  42873. productions_: [...],
  42874. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  42875. table: [...],
  42876. defaultActions: {...},
  42877. parseError: function(str, hash),
  42878. parse: function(input),
  42879. lexer: {
  42880. EOF: 1,
  42881. parseError: function(str, hash),
  42882. setInput: function(input),
  42883. input: function(),
  42884. unput: function(str),
  42885. more: function(),
  42886. less: function(n),
  42887. pastInput: function(),
  42888. upcomingInput: function(),
  42889. showPosition: function(),
  42890. test_match: function(regex_match_array, rule_index),
  42891. next: function(),
  42892. lex: function(),
  42893. begin: function(condition),
  42894. popState: function(),
  42895. _currentRules: function(),
  42896. topState: function(),
  42897. pushState: function(condition),
  42898. options: {
  42899. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  42900. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  42901. 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)
  42902. },
  42903. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  42904. rules: [...],
  42905. conditions: {associative list: name ==> set},
  42906. }
  42907. }
  42908. token location info (@$, _$, etc.): {
  42909. first_line: n,
  42910. last_line: n,
  42911. first_column: n,
  42912. last_column: n,
  42913. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  42914. }
  42915. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  42916. text: (matched text)
  42917. token: (the produced terminal token, if any)
  42918. line: (yylineno)
  42919. }
  42920. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  42921. loc: (yylloc)
  42922. expected: (string describing the set of expected tokens)
  42923. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  42924. }
  42925. */
  42926. var parser = (function(){
  42927. var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,13],$V1=[1,16],$V2=[1,14],$V3=[1,15],$V4=[1,17],$V5=[1,18],$V6=[1,20],$V7=[1,21],$V8=[1,22],$V9=[6,8],$Va=[1,31],$Vb=[1,32],$Vc=[1,33],$Vd=[1,34],$Ve=[1,35],$Vf=[1,36],$Vg=[6,8,14,20,28,31,32,33,34,35,36],$Vh=[6,8,12,14,20,24,28,31,32,33,34,35,36,52,53,54],$Vi=[28,52,53,54],$Vj=[28,35,36,52,53,54],$Vk=[28,31,32,33,34,52,53,54],$Vl=[6,8,14],$Vm=[1,59];
  42928. var parser = {trace: function trace () { },
  42929. yy: {},
  42930. symbols_: {"error":2,"mermaidDoc":3,"graphConfig":4,"CLASS_DIAGRAM":5,"NEWLINE":6,"statements":7,"EOF":8,"statement":9,"className":10,"alphaNumToken":11,"GENERICTYPE":12,"relationStatement":13,"LABEL":14,"classStatement":15,"methodStatement":16,"annotationStatement":17,"clickStatement":18,"CLASS":19,"STRUCT_START":20,"members":21,"STRUCT_STOP":22,"ANNOTATION_START":23,"ANNOTATION_END":24,"MEMBER":25,"SEPARATOR":26,"relation":27,"STR":28,"relationType":29,"lineType":30,"AGGREGATION":31,"EXTENSION":32,"COMPOSITION":33,"DEPENDENCY":34,"LINE":35,"DOTTED_LINE":36,"CALLBACK":37,"LINK":38,"commentToken":39,"textToken":40,"graphCodeTokens":41,"textNoTagsToken":42,"TAGSTART":43,"TAGEND":44,"==":45,"--":46,"PCT":47,"DEFAULT":48,"SPACE":49,"MINUS":50,"keywords":51,"UNICODE_TEXT":52,"NUM":53,"ALPHA":54,"$accept":0,"$end":1},
  42931. terminals_: {2:"error",5:"CLASS_DIAGRAM",6:"NEWLINE",8:"EOF",12:"GENERICTYPE",14:"LABEL",19:"CLASS",20:"STRUCT_START",22:"STRUCT_STOP",23:"ANNOTATION_START",24:"ANNOTATION_END",25:"MEMBER",26:"SEPARATOR",28:"STR",31:"AGGREGATION",32:"EXTENSION",33:"COMPOSITION",34:"DEPENDENCY",35:"LINE",36:"DOTTED_LINE",37:"CALLBACK",38:"LINK",41:"graphCodeTokens",43:"TAGSTART",44:"TAGEND",45:"==",46:"--",47:"PCT",48:"DEFAULT",49:"SPACE",50:"MINUS",51:"keywords",52:"UNICODE_TEXT",53:"NUM",54:"ALPHA"},
  42932. productions_: [0,[3,1],[4,4],[7,1],[7,2],[7,3],[10,2],[10,1],[10,3],[10,2],[9,1],[9,2],[9,1],[9,1],[9,1],[9,1],[15,2],[15,5],[17,4],[21,1],[21,2],[16,1],[16,2],[16,1],[16,1],[13,3],[13,4],[13,4],[13,5],[27,3],[27,2],[27,2],[27,1],[29,1],[29,1],[29,1],[29,1],[30,1],[30,1],[18,3],[18,4],[18,3],[18,4],[39,1],[39,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[42,1],[42,1],[42,1],[42,1],[11,1],[11,1],[11,1]],
  42933. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  42934. /* this == yyval */
  42935. var $0 = $$.length - 1;
  42936. switch (yystate) {
  42937. case 6:
  42938. this.$=$$[$0-1]+$$[$0];
  42939. break;
  42940. case 7:
  42941. this.$=$$[$0];
  42942. break;
  42943. case 8:
  42944. this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0];
  42945. break;
  42946. case 9:
  42947. this.$=$$[$0-1]+'~'+$$[$0];
  42948. break;
  42949. case 10:
  42950. yy.addRelation($$[$0]);
  42951. break;
  42952. case 11:
  42953. $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]);
  42954. break;
  42955. case 16:
  42956. yy.addClass($$[$0]);
  42957. break;
  42958. case 17:
  42959. /*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);
  42960. break;
  42961. case 18:
  42962. yy.addAnnotation($$[$0],$$[$0-2]);
  42963. break;
  42964. case 19:
  42965. this.$ = [$$[$0]];
  42966. break;
  42967. case 20:
  42968. $$[$0].push($$[$0-1]);this.$=$$[$0];
  42969. break;
  42970. case 21:
  42971. /*console.log('Rel found',$$[$0]);*/
  42972. break;
  42973. case 22:
  42974. yy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));
  42975. break;
  42976. case 23:
  42977. /*console.warn('Member',$$[$0]);*/
  42978. break;
  42979. case 24:
  42980. /*console.log('sep found',$$[$0]);*/
  42981. break;
  42982. case 25:
  42983. this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'};
  42984. break;
  42985. case 26:
  42986. this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}
  42987. break;
  42988. case 27:
  42989. this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]};
  42990. break;
  42991. case 28:
  42992. this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]}
  42993. break;
  42994. case 29:
  42995. this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]};
  42996. break;
  42997. case 30:
  42998. this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]};
  42999. break;
  43000. case 31:
  43001. this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]};
  43002. break;
  43003. case 32:
  43004. this.$={type1:'none',type2:'none',lineType:$$[$0]};
  43005. break;
  43006. case 33:
  43007. this.$=yy.relationType.AGGREGATION;
  43008. break;
  43009. case 34:
  43010. this.$=yy.relationType.EXTENSION;
  43011. break;
  43012. case 35:
  43013. this.$=yy.relationType.COMPOSITION;
  43014. break;
  43015. case 36:
  43016. this.$=yy.relationType.DEPENDENCY;
  43017. break;
  43018. case 37:
  43019. this.$=yy.lineType.LINE;
  43020. break;
  43021. case 38:
  43022. this.$=yy.lineType.DOTTED_LINE;
  43023. break;
  43024. case 39:
  43025. this.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined);
  43026. break;
  43027. case 40:
  43028. this.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);
  43029. break;
  43030. case 41:
  43031. this.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined);
  43032. break;
  43033. case 42:
  43034. this.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]);
  43035. break;
  43036. }
  43037. },
  43038. table: [{3:1,4:2,5:[1,3]},{1:[3]},{1:[2,1]},{6:[1,4]},{7:5,9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:$V0,23:$V1,25:$V2,26:$V3,37:$V4,38:$V5,52:$V6,53:$V7,54:$V8},{8:[1,23]},{6:[1,24],8:[2,3]},o($V9,[2,10],{14:[1,25]}),o($V9,[2,12]),o($V9,[2,13]),o($V9,[2,14]),o($V9,[2,15]),o($V9,[2,21],{27:26,29:29,30:30,14:[1,28],28:[1,27],31:$Va,32:$Vb,33:$Vc,34:$Vd,35:$Ve,36:$Vf}),{10:37,11:19,52:$V6,53:$V7,54:$V8},o($V9,[2,23]),o($V9,[2,24]),{11:38,52:$V6,53:$V7,54:$V8},{10:39,11:19,52:$V6,53:$V7,54:$V8},{10:40,11:19,52:$V6,53:$V7,54:$V8},o($Vg,[2,7],{11:19,10:41,12:[1,42],52:$V6,53:$V7,54:$V8}),o($Vh,[2,56]),o($Vh,[2,57]),o($Vh,[2,58]),{1:[2,2]},{7:43,8:[2,4],9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:$V0,23:$V1,25:$V2,26:$V3,37:$V4,38:$V5,52:$V6,53:$V7,54:$V8},o($V9,[2,11]),{10:44,11:19,28:[1,45],52:$V6,53:$V7,54:$V8},{27:46,29:29,30:30,31:$Va,32:$Vb,33:$Vc,34:$Vd,35:$Ve,36:$Vf},o($V9,[2,22]),{30:47,35:$Ve,36:$Vf},o($Vi,[2,32],{29:48,31:$Va,32:$Vb,33:$Vc,34:$Vd}),o($Vj,[2,33]),o($Vj,[2,34]),o($Vj,[2,35]),o($Vj,[2,36]),o($Vk,[2,37]),o($Vk,[2,38]),o($V9,[2,16],{20:[1,49]}),{24:[1,50]},{28:[1,51]},{28:[1,52]},o($Vg,[2,6]),o($Vg,[2,9],{11:19,10:53,52:$V6,53:$V7,54:$V8}),{8:[2,5]},o($Vl,[2,25]),{10:54,11:19,52:$V6,53:$V7,54:$V8},{10:55,11:19,28:[1,56],52:$V6,53:$V7,54:$V8},o($Vi,[2,31],{29:57,31:$Va,32:$Vb,33:$Vc,34:$Vd}),o($Vi,[2,30]),{21:58,25:$Vm},{10:60,11:19,52:$V6,53:$V7,54:$V8},o($V9,[2,39],{28:[1,61]}),o($V9,[2,41],{28:[1,62]}),o($Vg,[2,8]),o($Vl,[2,27]),o($Vl,[2,26]),{10:63,11:19,52:$V6,53:$V7,54:$V8},o($Vi,[2,29]),{22:[1,64]},{21:65,22:[2,19],25:$Vm},o($V9,[2,18]),o($V9,[2,40]),o($V9,[2,42]),o($Vl,[2,28]),o($V9,[2,17]),{22:[2,20]}],
  43039. defaultActions: {2:[2,1],23:[2,2],43:[2,5],65:[2,20]},
  43040. parseError: function parseError (str, hash) {
  43041. if (hash.recoverable) {
  43042. this.trace(str);
  43043. } else {
  43044. var error = new Error(str);
  43045. error.hash = hash;
  43046. throw error;
  43047. }
  43048. },
  43049. parse: function parse(input) {
  43050. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  43051. var args = lstack.slice.call(arguments, 1);
  43052. var lexer = Object.create(this.lexer);
  43053. var sharedState = { yy: {} };
  43054. for (var k in this.yy) {
  43055. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  43056. sharedState.yy[k] = this.yy[k];
  43057. }
  43058. }
  43059. lexer.setInput(input, sharedState.yy);
  43060. sharedState.yy.lexer = lexer;
  43061. sharedState.yy.parser = this;
  43062. if (typeof lexer.yylloc == 'undefined') {
  43063. lexer.yylloc = {};
  43064. }
  43065. var yyloc = lexer.yylloc;
  43066. lstack.push(yyloc);
  43067. var ranges = lexer.options && lexer.options.ranges;
  43068. if (typeof sharedState.yy.parseError === 'function') {
  43069. this.parseError = sharedState.yy.parseError;
  43070. } else {
  43071. this.parseError = Object.getPrototypeOf(this).parseError;
  43072. }
  43073. function popStack(n) {
  43074. stack.length = stack.length - 2 * n;
  43075. vstack.length = vstack.length - n;
  43076. lstack.length = lstack.length - n;
  43077. }
  43078. function lex() {
  43079. var token;
  43080. token = tstack.pop() || lexer.lex() || EOF;
  43081. if (typeof token !== 'number') {
  43082. if (token instanceof Array) {
  43083. tstack = token;
  43084. token = tstack.pop();
  43085. }
  43086. token = self.symbols_[token] || token;
  43087. }
  43088. return token;
  43089. }
  43090. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  43091. while (true) {
  43092. state = stack[stack.length - 1];
  43093. if (this.defaultActions[state]) {
  43094. action = this.defaultActions[state];
  43095. } else {
  43096. if (symbol === null || typeof symbol == 'undefined') {
  43097. symbol = lex();
  43098. }
  43099. action = table[state] && table[state][symbol];
  43100. }
  43101. if (typeof action === 'undefined' || !action.length || !action[0]) {
  43102. var errStr = '';
  43103. expected = [];
  43104. for (p in table[state]) {
  43105. if (this.terminals_[p] && p > TERROR) {
  43106. expected.push('\'' + this.terminals_[p] + '\'');
  43107. }
  43108. }
  43109. if (lexer.showPosition) {
  43110. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  43111. } else {
  43112. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  43113. }
  43114. this.parseError(errStr, {
  43115. text: lexer.match,
  43116. token: this.terminals_[symbol] || symbol,
  43117. line: lexer.yylineno,
  43118. loc: yyloc,
  43119. expected: expected
  43120. });
  43121. }
  43122. if (action[0] instanceof Array && action.length > 1) {
  43123. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  43124. }
  43125. switch (action[0]) {
  43126. case 1:
  43127. stack.push(symbol);
  43128. vstack.push(lexer.yytext);
  43129. lstack.push(lexer.yylloc);
  43130. stack.push(action[1]);
  43131. symbol = null;
  43132. if (!preErrorSymbol) {
  43133. yyleng = lexer.yyleng;
  43134. yytext = lexer.yytext;
  43135. yylineno = lexer.yylineno;
  43136. yyloc = lexer.yylloc;
  43137. if (recovering > 0) {
  43138. recovering--;
  43139. }
  43140. } else {
  43141. symbol = preErrorSymbol;
  43142. preErrorSymbol = null;
  43143. }
  43144. break;
  43145. case 2:
  43146. len = this.productions_[action[1]][1];
  43147. yyval.$ = vstack[vstack.length - len];
  43148. yyval._$ = {
  43149. first_line: lstack[lstack.length - (len || 1)].first_line,
  43150. last_line: lstack[lstack.length - 1].last_line,
  43151. first_column: lstack[lstack.length - (len || 1)].first_column,
  43152. last_column: lstack[lstack.length - 1].last_column
  43153. };
  43154. if (ranges) {
  43155. yyval._$.range = [
  43156. lstack[lstack.length - (len || 1)].range[0],
  43157. lstack[lstack.length - 1].range[1]
  43158. ];
  43159. }
  43160. r = this.performAction.apply(yyval, [
  43161. yytext,
  43162. yyleng,
  43163. yylineno,
  43164. sharedState.yy,
  43165. action[1],
  43166. vstack,
  43167. lstack
  43168. ].concat(args));
  43169. if (typeof r !== 'undefined') {
  43170. return r;
  43171. }
  43172. if (len) {
  43173. stack = stack.slice(0, -1 * len * 2);
  43174. vstack = vstack.slice(0, -1 * len);
  43175. lstack = lstack.slice(0, -1 * len);
  43176. }
  43177. stack.push(this.productions_[action[1]][0]);
  43178. vstack.push(yyval.$);
  43179. lstack.push(yyval._$);
  43180. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  43181. stack.push(newState);
  43182. break;
  43183. case 3:
  43184. return true;
  43185. }
  43186. }
  43187. return true;
  43188. }};
  43189. /* generated by jison-lex 0.3.4 */
  43190. var lexer = (function(){
  43191. var lexer = ({
  43192. EOF:1,
  43193. parseError:function parseError(str, hash) {
  43194. if (this.yy.parser) {
  43195. this.yy.parser.parseError(str, hash);
  43196. } else {
  43197. throw new Error(str);
  43198. }
  43199. },
  43200. // resets the lexer, sets new input
  43201. setInput:function (input, yy) {
  43202. this.yy = yy || this.yy || {};
  43203. this._input = input;
  43204. this._more = this._backtrack = this.done = false;
  43205. this.yylineno = this.yyleng = 0;
  43206. this.yytext = this.matched = this.match = '';
  43207. this.conditionStack = ['INITIAL'];
  43208. this.yylloc = {
  43209. first_line: 1,
  43210. first_column: 0,
  43211. last_line: 1,
  43212. last_column: 0
  43213. };
  43214. if (this.options.ranges) {
  43215. this.yylloc.range = [0,0];
  43216. }
  43217. this.offset = 0;
  43218. return this;
  43219. },
  43220. // consumes and returns one char from the input
  43221. input:function () {
  43222. var ch = this._input[0];
  43223. this.yytext += ch;
  43224. this.yyleng++;
  43225. this.offset++;
  43226. this.match += ch;
  43227. this.matched += ch;
  43228. var lines = ch.match(/(?:\r\n?|\n).*/g);
  43229. if (lines) {
  43230. this.yylineno++;
  43231. this.yylloc.last_line++;
  43232. } else {
  43233. this.yylloc.last_column++;
  43234. }
  43235. if (this.options.ranges) {
  43236. this.yylloc.range[1]++;
  43237. }
  43238. this._input = this._input.slice(1);
  43239. return ch;
  43240. },
  43241. // unshifts one char (or a string) into the input
  43242. unput:function (ch) {
  43243. var len = ch.length;
  43244. var lines = ch.split(/(?:\r\n?|\n)/g);
  43245. this._input = ch + this._input;
  43246. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  43247. //this.yyleng -= len;
  43248. this.offset -= len;
  43249. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  43250. this.match = this.match.substr(0, this.match.length - 1);
  43251. this.matched = this.matched.substr(0, this.matched.length - 1);
  43252. if (lines.length - 1) {
  43253. this.yylineno -= lines.length - 1;
  43254. }
  43255. var r = this.yylloc.range;
  43256. this.yylloc = {
  43257. first_line: this.yylloc.first_line,
  43258. last_line: this.yylineno + 1,
  43259. first_column: this.yylloc.first_column,
  43260. last_column: lines ?
  43261. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  43262. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  43263. this.yylloc.first_column - len
  43264. };
  43265. if (this.options.ranges) {
  43266. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  43267. }
  43268. this.yyleng = this.yytext.length;
  43269. return this;
  43270. },
  43271. // When called from action, caches matched text and appends it on next action
  43272. more:function () {
  43273. this._more = true;
  43274. return this;
  43275. },
  43276. // 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.
  43277. reject:function () {
  43278. if (this.options.backtrack_lexer) {
  43279. this._backtrack = true;
  43280. } else {
  43281. 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(), {
  43282. text: "",
  43283. token: null,
  43284. line: this.yylineno
  43285. });
  43286. }
  43287. return this;
  43288. },
  43289. // retain first n characters of the match
  43290. less:function (n) {
  43291. this.unput(this.match.slice(n));
  43292. },
  43293. // displays already matched input, i.e. for error messages
  43294. pastInput:function () {
  43295. var past = this.matched.substr(0, this.matched.length - this.match.length);
  43296. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  43297. },
  43298. // displays upcoming input, i.e. for error messages
  43299. upcomingInput:function () {
  43300. var next = this.match;
  43301. if (next.length < 20) {
  43302. next += this._input.substr(0, 20-next.length);
  43303. }
  43304. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  43305. },
  43306. // displays the character position where the lexing error occurred, i.e. for error messages
  43307. showPosition:function () {
  43308. var pre = this.pastInput();
  43309. var c = new Array(pre.length + 1).join("-");
  43310. return pre + this.upcomingInput() + "\n" + c + "^";
  43311. },
  43312. // test the lexed token: return FALSE when not a match, otherwise return token
  43313. test_match:function(match, indexed_rule) {
  43314. var token,
  43315. lines,
  43316. backup;
  43317. if (this.options.backtrack_lexer) {
  43318. // save context
  43319. backup = {
  43320. yylineno: this.yylineno,
  43321. yylloc: {
  43322. first_line: this.yylloc.first_line,
  43323. last_line: this.last_line,
  43324. first_column: this.yylloc.first_column,
  43325. last_column: this.yylloc.last_column
  43326. },
  43327. yytext: this.yytext,
  43328. match: this.match,
  43329. matches: this.matches,
  43330. matched: this.matched,
  43331. yyleng: this.yyleng,
  43332. offset: this.offset,
  43333. _more: this._more,
  43334. _input: this._input,
  43335. yy: this.yy,
  43336. conditionStack: this.conditionStack.slice(0),
  43337. done: this.done
  43338. };
  43339. if (this.options.ranges) {
  43340. backup.yylloc.range = this.yylloc.range.slice(0);
  43341. }
  43342. }
  43343. lines = match[0].match(/(?:\r\n?|\n).*/g);
  43344. if (lines) {
  43345. this.yylineno += lines.length;
  43346. }
  43347. this.yylloc = {
  43348. first_line: this.yylloc.last_line,
  43349. last_line: this.yylineno + 1,
  43350. first_column: this.yylloc.last_column,
  43351. last_column: lines ?
  43352. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  43353. this.yylloc.last_column + match[0].length
  43354. };
  43355. this.yytext += match[0];
  43356. this.match += match[0];
  43357. this.matches = match;
  43358. this.yyleng = this.yytext.length;
  43359. if (this.options.ranges) {
  43360. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  43361. }
  43362. this._more = false;
  43363. this._backtrack = false;
  43364. this._input = this._input.slice(match[0].length);
  43365. this.matched += match[0];
  43366. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  43367. if (this.done && this._input) {
  43368. this.done = false;
  43369. }
  43370. if (token) {
  43371. return token;
  43372. } else if (this._backtrack) {
  43373. // recover context
  43374. for (var k in backup) {
  43375. this[k] = backup[k];
  43376. }
  43377. return false; // rule action called reject() implying the next rule should be tested instead.
  43378. }
  43379. return false;
  43380. },
  43381. // return next match in input
  43382. next:function () {
  43383. if (this.done) {
  43384. return this.EOF;
  43385. }
  43386. if (!this._input) {
  43387. this.done = true;
  43388. }
  43389. var token,
  43390. match,
  43391. tempMatch,
  43392. index;
  43393. if (!this._more) {
  43394. this.yytext = '';
  43395. this.match = '';
  43396. }
  43397. var rules = this._currentRules();
  43398. for (var i = 0; i < rules.length; i++) {
  43399. tempMatch = this._input.match(this.rules[rules[i]]);
  43400. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  43401. match = tempMatch;
  43402. index = i;
  43403. if (this.options.backtrack_lexer) {
  43404. token = this.test_match(tempMatch, rules[i]);
  43405. if (token !== false) {
  43406. return token;
  43407. } else if (this._backtrack) {
  43408. match = false;
  43409. continue; // rule action called reject() implying a rule MISmatch.
  43410. } else {
  43411. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  43412. return false;
  43413. }
  43414. } else if (!this.options.flex) {
  43415. break;
  43416. }
  43417. }
  43418. }
  43419. if (match) {
  43420. token = this.test_match(match, rules[index]);
  43421. if (token !== false) {
  43422. return token;
  43423. }
  43424. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  43425. return false;
  43426. }
  43427. if (this._input === "") {
  43428. return this.EOF;
  43429. } else {
  43430. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  43431. text: "",
  43432. token: null,
  43433. line: this.yylineno
  43434. });
  43435. }
  43436. },
  43437. // return next match that has a token
  43438. lex:function lex () {
  43439. var r = this.next();
  43440. if (r) {
  43441. return r;
  43442. } else {
  43443. return this.lex();
  43444. }
  43445. },
  43446. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  43447. begin:function begin (condition) {
  43448. this.conditionStack.push(condition);
  43449. },
  43450. // pop the previously active lexer condition state off the condition stack
  43451. popState:function popState () {
  43452. var n = this.conditionStack.length - 1;
  43453. if (n > 0) {
  43454. return this.conditionStack.pop();
  43455. } else {
  43456. return this.conditionStack[0];
  43457. }
  43458. },
  43459. // produce the lexer rule set which is active for the currently active lexer condition state
  43460. _currentRules:function _currentRules () {
  43461. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  43462. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  43463. } else {
  43464. return this.conditions["INITIAL"].rules;
  43465. }
  43466. },
  43467. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  43468. topState:function topState (n) {
  43469. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  43470. if (n >= 0) {
  43471. return this.conditionStack[n];
  43472. } else {
  43473. return "INITIAL";
  43474. }
  43475. },
  43476. // alias for begin(condition)
  43477. pushState:function pushState (condition) {
  43478. this.begin(condition);
  43479. },
  43480. // return the number of states currently on the stack
  43481. stateStackSize:function stateStackSize() {
  43482. return this.conditionStack.length;
  43483. },
  43484. options: {},
  43485. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  43486. var YYSTATE=YY_START;
  43487. switch($avoiding_name_collisions) {
  43488. case 0:/* do nothing */
  43489. break;
  43490. case 1:return 6;
  43491. break;
  43492. case 2:/* skip whitespace */
  43493. break;
  43494. case 3:return 5;
  43495. break;
  43496. case 4:return 5;
  43497. break;
  43498. case 5: this.begin("struct"); /*console.log('Starting struct');*/return 20;
  43499. break;
  43500. case 6:return "EOF_IN_STRUCT";
  43501. break;
  43502. case 7:return "OPEN_IN_STRUCT";
  43503. break;
  43504. case 8: /*console.log('Ending struct');*/this.popState(); return 22;
  43505. break;
  43506. case 9:/* nothing */
  43507. break;
  43508. case 10: /*console.log('lex-member: ' + yy_.yytext);*/ return "MEMBER";
  43509. break;
  43510. case 11:return 19;
  43511. break;
  43512. case 12:return 37;
  43513. break;
  43514. case 13:return 38;
  43515. break;
  43516. case 14:return 23;
  43517. break;
  43518. case 15:return 24;
  43519. break;
  43520. case 16:this.begin("generic");
  43521. break;
  43522. case 17:this.popState();
  43523. break;
  43524. case 18:return "GENERICTYPE";
  43525. break;
  43526. case 19:this.begin("string");
  43527. break;
  43528. case 20:this.popState();
  43529. break;
  43530. case 21:return "STR";
  43531. break;
  43532. case 22:return 32;
  43533. break;
  43534. case 23:return 32;
  43535. break;
  43536. case 24:return 34;
  43537. break;
  43538. case 25:return 34;
  43539. break;
  43540. case 26:return 33;
  43541. break;
  43542. case 27:return 31;
  43543. break;
  43544. case 28:return 35;
  43545. break;
  43546. case 29:return 36;
  43547. break;
  43548. case 30:return 14;
  43549. break;
  43550. case 31:return 50;
  43551. break;
  43552. case 32:return 'DOT';
  43553. break;
  43554. case 33:return 'PLUS';
  43555. break;
  43556. case 34:return 47;
  43557. break;
  43558. case 35:return 'EQUALS';
  43559. break;
  43560. case 36:return 'EQUALS';
  43561. break;
  43562. case 37:return 54;
  43563. break;
  43564. case 38:return 'PUNCTUATION';
  43565. break;
  43566. case 39:return 53;
  43567. break;
  43568. case 40:return 52;
  43569. break;
  43570. case 41:return 49;
  43571. break;
  43572. case 42:return 8;
  43573. break;
  43574. }
  43575. },
  43576. rules: [/^(?:%%[^\n]*\n*)/,/^(?:\n+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[\{])/,/^(?:$)/,/^(?:[\{])/,/^(?:\})/,/^(?:[\n])/,/^(?:[^\{\}\n]*)/,/^(?:class\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::[^\n;]+)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[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)/,/^(?:$)/],
  43577. conditions: {"string":{"rules":[20,21],"inclusive":false},"generic":{"rules":[17,18],"inclusive":false},"struct":{"rules":[6,7,8,9,10],"inclusive":false},"INITIAL":{"rules":[0,1,2,3,4,5,11,12,13,14,15,16,19,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"inclusive":true}}
  43578. });
  43579. return lexer;
  43580. })();
  43581. parser.lexer = lexer;
  43582. function Parser () {
  43583. this.yy = {};
  43584. }
  43585. Parser.prototype = parser;parser.Parser = Parser;
  43586. return new Parser;
  43587. })();
  43588. if (true) {
  43589. exports.parser = parser;
  43590. exports.Parser = parser.Parser;
  43591. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  43592. exports.main = function commonjsMain (args) {
  43593. if (!args[1]) {
  43594. console.log('Usage: '+args[0]+' FILE');
  43595. process.exit(1);
  43596. }
  43597. 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");
  43598. return exports.parser.parse(source);
  43599. };
  43600. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  43601. exports.main(process.argv.slice(1));
  43602. }
  43603. }
  43604. /* 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)))
  43605. /***/ }),
  43606. /***/ "./src/diagrams/class/styles.js":
  43607. /*!**************************************!*\
  43608. !*** ./src/diagrams/class/styles.js ***!
  43609. \**************************************/
  43610. /*! exports provided: default */
  43611. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43612. "use strict";
  43613. __webpack_require__.r(__webpack_exports__);
  43614. var getStyles = function getStyles(options) {
  43615. return "g.classGroup text {\n fill: ".concat(options.nodeBorder, ";\n fill: ").concat(options.classText, ";\n stroke: none;\n font-family: ").concat(options.fontFamily, ";\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ").concat(options.nodeBorder, ";\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ").concat(options.nodeBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n}\n\ng.classGroup line {\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(options.nodeBkg, ";\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ").concat(options.nodeBorder, ";\n font-size: 10px;\n}\n\n.relation {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ").concat(options.lineColor, " !important;\n stroke: ").concat(options.lineColor, " !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ").concat(options.lineColor, " !important;\n stroke: ").concat(options.lineColor, " !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(options.lineColor, " !important;\n stroke: ").concat(options.lineColor, " !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(options.lineColor, " !important;\n stroke: ").concat(options.lineColor, " !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ").concat(options.lineColor, " !important;\n stroke: ").concat(options.lineColor, " !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ").concat(options.lineColor, " !important;\n stroke: ").concat(options.lineColor, " !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ").concat(options.nodeBkg, " !important;\n stroke: ").concat(options.lineColor, " !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ").concat(options.nodeBkg, " !important;\n stroke: ").concat(options.lineColor, " !important;\n stroke-width: 1;\n}\n");
  43616. };
  43617. /* harmony default export */ __webpack_exports__["default"] = (getStyles);
  43618. /***/ }),
  43619. /***/ "./src/diagrams/class/svgDraw.js":
  43620. /*!***************************************!*\
  43621. !*** ./src/diagrams/class/svgDraw.js ***!
  43622. \***************************************/
  43623. /*! exports provided: drawEdge, drawClass, parseMember, default */
  43624. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43625. "use strict";
  43626. __webpack_require__.r(__webpack_exports__);
  43627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawEdge", function() { return drawEdge; });
  43628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawClass", function() { return drawClass; });
  43629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseMember", function() { return parseMember; });
  43630. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  43631. /* harmony import */ var _classDb__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classDb */ "./src/diagrams/class/classDb.js");
  43632. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  43633. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  43634. var edgeCount = 0;
  43635. var drawEdge = function drawEdge(elem, path, relation, conf) {
  43636. var getRelationType = function getRelationType(type) {
  43637. switch (type) {
  43638. case _classDb__WEBPACK_IMPORTED_MODULE_1__["relationType"].AGGREGATION:
  43639. return 'aggregation';
  43640. case _classDb__WEBPACK_IMPORTED_MODULE_1__["relationType"].EXTENSION:
  43641. return 'extension';
  43642. case _classDb__WEBPACK_IMPORTED_MODULE_1__["relationType"].COMPOSITION:
  43643. return 'composition';
  43644. case _classDb__WEBPACK_IMPORTED_MODULE_1__["relationType"].DEPENDENCY:
  43645. return 'dependency';
  43646. }
  43647. };
  43648. path.points = path.points.filter(function (p) {
  43649. return !Number.isNaN(p.y);
  43650. }); // The data for our line
  43651. var lineData = path.points; // This is the accessor function we talked about above
  43652. var lineFunction = Object(d3__WEBPACK_IMPORTED_MODULE_0__["line"])().x(function (d) {
  43653. return d.x;
  43654. }).y(function (d) {
  43655. return d.y;
  43656. }).curve(d3__WEBPACK_IMPORTED_MODULE_0__["curveBasis"]);
  43657. var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', 'edge' + edgeCount).attr('class', 'relation');
  43658. var url = '';
  43659. if (conf.arrowMarkerAbsolute) {
  43660. url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;
  43661. url = url.replace(/\(/g, '\\(');
  43662. url = url.replace(/\)/g, '\\)');
  43663. }
  43664. if (relation.relation.lineType == 1) {
  43665. svgPath.attr('class', 'relation dashed-line');
  43666. }
  43667. if (relation.relation.type1 !== 'none') {
  43668. svgPath.attr('marker-start', 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')');
  43669. }
  43670. if (relation.relation.type2 !== 'none') {
  43671. svgPath.attr('marker-end', 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')');
  43672. }
  43673. var x, y;
  43674. var l = path.points.length; // Calculate Label position
  43675. var labelPosition = _utils__WEBPACK_IMPORTED_MODULE_2__["default"].calcLabelPosition(path.points);
  43676. x = labelPosition.x;
  43677. y = labelPosition.y;
  43678. var p1_card_x, p1_card_y;
  43679. var p2_card_x, p2_card_y;
  43680. if (l % 2 !== 0 && l > 1) {
  43681. var cardinality_1_point = _utils__WEBPACK_IMPORTED_MODULE_2__["default"].calcCardinalityPosition(relation.relation.type1 !== 'none', path.points, path.points[0]);
  43682. var cardinality_2_point = _utils__WEBPACK_IMPORTED_MODULE_2__["default"].calcCardinalityPosition(relation.relation.type2 !== 'none', path.points, path.points[l - 1]);
  43683. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('cardinality_1_point ' + JSON.stringify(cardinality_1_point));
  43684. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('cardinality_2_point ' + JSON.stringify(cardinality_2_point));
  43685. p1_card_x = cardinality_1_point.x;
  43686. p1_card_y = cardinality_1_point.y;
  43687. p2_card_x = cardinality_2_point.x;
  43688. p2_card_y = cardinality_2_point.y;
  43689. }
  43690. if (typeof relation.title !== 'undefined') {
  43691. var g = elem.append('g').attr('class', 'classLabel');
  43692. var label = g.append('text').attr('class', 'label').attr('x', x).attr('y', y).attr('fill', 'red').attr('text-anchor', 'middle').text(relation.title);
  43693. window.label = label;
  43694. var bounds = label.node().getBBox();
  43695. 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);
  43696. }
  43697. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('Rendering relation ' + JSON.stringify(relation));
  43698. if (typeof relation.relationTitle1 !== 'undefined' && relation.relationTitle1 !== 'none') {
  43699. var _g = elem.append('g').attr('class', 'cardinality');
  43700. _g.append('text').attr('class', 'type1').attr('x', p1_card_x).attr('y', p1_card_y).attr('fill', 'black').attr('font-size', '6').text(relation.relationTitle1);
  43701. }
  43702. if (typeof relation.relationTitle2 !== 'undefined' && relation.relationTitle2 !== 'none') {
  43703. var _g2 = elem.append('g').attr('class', 'cardinality');
  43704. _g2.append('text').attr('class', 'type2').attr('x', p2_card_x).attr('y', p2_card_y).attr('fill', 'black').attr('font-size', '6').text(relation.relationTitle2);
  43705. }
  43706. edgeCount++;
  43707. };
  43708. var drawClass = function drawClass(elem, classDef, conf) {
  43709. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info('Rendering class ' + classDef);
  43710. var cssClassStr = 'classGroup ';
  43711. if (classDef.cssClasses.length > 0) {
  43712. cssClassStr = cssClassStr + classDef.cssClasses.join(' ');
  43713. }
  43714. var id = classDef.id;
  43715. var classInfo = {
  43716. id: id,
  43717. label: classDef.id,
  43718. width: 0,
  43719. height: 0
  43720. }; // add class group
  43721. var g = elem.append('g').attr('id', Object(_classDb__WEBPACK_IMPORTED_MODULE_1__["lookUpDomId"])(id)).attr('class', cssClassStr); // add title
  43722. var title;
  43723. if (classDef.link) {
  43724. title = g.append('svg:a').attr('xlink:href', classDef.link).attr('target', '_blank').append('text').attr('y', conf.textHeight + conf.padding).attr('x', 0);
  43725. } else {
  43726. title = g.append('text').attr('y', conf.textHeight + conf.padding).attr('x', 0);
  43727. } // add annotations
  43728. var isFirst = true;
  43729. classDef.annotations.forEach(function (member) {
  43730. var titleText2 = title.append('tspan').text('«' + member + '»');
  43731. if (!isFirst) titleText2.attr('dy', conf.textHeight);
  43732. isFirst = false;
  43733. });
  43734. var classTitleString = classDef.id;
  43735. if (classDef.type !== undefined && classDef.type !== '') {
  43736. classTitleString += '<' + classDef.type + '>';
  43737. }
  43738. var classTitle = title.append('tspan').text(classTitleString).attr('class', 'title'); // If class has annotations the title needs to have an offset of the text height
  43739. if (!isFirst) classTitle.attr('dy', conf.textHeight);
  43740. var titleHeight = title.node().getBBox().height;
  43741. var membersLine = g.append('line') // text label for the x axis
  43742. .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2).attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);
  43743. var members = g.append('text') // text label for the x axis
  43744. .attr('x', conf.padding).attr('y', titleHeight + conf.dividerMargin + conf.textHeight).attr('fill', 'white').attr('class', 'classText');
  43745. isFirst = true;
  43746. classDef.members.forEach(function (member) {
  43747. addTspan(members, member, isFirst, conf);
  43748. isFirst = false;
  43749. });
  43750. var membersBox = members.node().getBBox();
  43751. var methodsLine = g.append('line') // text label for the x axis
  43752. .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height).attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);
  43753. var methods = g.append('text') // text label for the x axis
  43754. .attr('x', conf.padding).attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight).attr('fill', 'white').attr('class', 'classText');
  43755. isFirst = true;
  43756. classDef.methods.forEach(function (method) {
  43757. addTspan(methods, method, isFirst, conf);
  43758. isFirst = false;
  43759. });
  43760. var classBox = g.node().getBBox();
  43761. var rect = 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);
  43762. var rectWidth = rect.node().getBBox().width; // Center title
  43763. // We subtract the width of each text element from the class box width and divide it by 2
  43764. title.node().childNodes.forEach(function (x) {
  43765. x.setAttribute('x', (rectWidth - x.getBBox().width) / 2);
  43766. });
  43767. if (classDef.tooltip) {
  43768. title.insert('title').text(classDef.tooltip);
  43769. }
  43770. membersLine.attr('x2', rectWidth);
  43771. methodsLine.attr('x2', rectWidth);
  43772. classInfo.width = rectWidth;
  43773. classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;
  43774. return classInfo;
  43775. };
  43776. var parseMember = function parseMember(text) {
  43777. var fieldRegEx = /(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+)/;
  43778. var methodRegEx = /^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/;
  43779. var fieldMatch = text.match(fieldRegEx);
  43780. var methodMatch = text.match(methodRegEx);
  43781. if (fieldMatch && !methodMatch) {
  43782. return buildFieldDisplay(fieldMatch);
  43783. } else if (methodMatch) {
  43784. return buildMethodDisplay(methodMatch);
  43785. } else {
  43786. return buildLegacyDisplay(text);
  43787. }
  43788. };
  43789. var buildFieldDisplay = function buildFieldDisplay(parsedText) {
  43790. var displayText = '';
  43791. try {
  43792. var visibility = parsedText[1] ? parsedText[1].trim() : '';
  43793. var fieldType = parsedText[2] ? parsedText[2].trim() : '';
  43794. var genericType = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';
  43795. var fieldName = parsedText[4] ? parsedText[4].trim() : '';
  43796. displayText = visibility + fieldType + genericType + ' ' + fieldName;
  43797. } catch (err) {
  43798. displayText = parsedText;
  43799. }
  43800. return {
  43801. displayText: displayText,
  43802. cssStyle: ''
  43803. };
  43804. };
  43805. var buildMethodDisplay = function buildMethodDisplay(parsedText) {
  43806. var cssStyle = '';
  43807. var displayText = '';
  43808. try {
  43809. var visibility = parsedText[1] ? parsedText[1].trim() : '';
  43810. var methodName = parsedText[2] ? parsedText[2].trim() : '';
  43811. var parameters = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';
  43812. var classifier = parsedText[4] ? parsedText[4].trim() : '';
  43813. var returnType = parsedText[5] ? ' : ' + parseGenericTypes(parsedText[5]).trim() : '';
  43814. displayText = visibility + methodName + '(' + parameters + ')' + returnType;
  43815. cssStyle = parseClassifier(classifier);
  43816. } catch (err) {
  43817. displayText = parsedText;
  43818. }
  43819. return {
  43820. displayText: displayText,
  43821. cssStyle: cssStyle
  43822. };
  43823. };
  43824. var buildLegacyDisplay = function buildLegacyDisplay(text) {
  43825. // if for some reason we dont have any match, use old format to parse text
  43826. var displayText = '';
  43827. var cssStyle = '';
  43828. var memberText = '';
  43829. var returnType = '';
  43830. var methodStart = text.indexOf('(');
  43831. var methodEnd = text.indexOf(')');
  43832. if (methodStart > 1 && methodEnd > methodStart && methodEnd <= text.length) {
  43833. var visibility = '';
  43834. var methodName = '';
  43835. var firstChar = text.substring(0, 1);
  43836. if (firstChar.match(/\w/)) {
  43837. methodName = text.substring(0, methodStart).trim();
  43838. } else {
  43839. if (firstChar.match(/\+|-|~|#/)) {
  43840. visibility = firstChar;
  43841. }
  43842. methodName = text.substring(1, methodStart).trim();
  43843. }
  43844. var parameters = text.substring(methodStart + 1, methodEnd);
  43845. var classifier = text.substring(methodEnd + 1, 1);
  43846. cssStyle = parseClassifier(classifier);
  43847. displayText = visibility + methodName + '(' + parseGenericTypes(parameters.trim()) + ')';
  43848. if (methodEnd < memberText.length) {
  43849. returnType = text.substring(methodEnd + 2).trim();
  43850. if (returnType !== '') {
  43851. returnType = ' : ' + parseGenericTypes(returnType);
  43852. }
  43853. }
  43854. } else {
  43855. // finally - if all else fails, just send the text back as written (other than parsing for generic types)
  43856. displayText = parseGenericTypes(text);
  43857. }
  43858. return {
  43859. displayText: displayText,
  43860. cssStyle: cssStyle
  43861. };
  43862. };
  43863. var addTspan = function addTspan(textEl, txt, isFirst, conf) {
  43864. var member = parseMember(txt);
  43865. var tSpan = textEl.append('tspan').attr('x', conf.padding).text(member.displayText);
  43866. if (member.cssStyle !== '') {
  43867. tSpan.attr('style', member.cssStyle);
  43868. }
  43869. if (!isFirst) {
  43870. tSpan.attr('dy', conf.textHeight);
  43871. }
  43872. };
  43873. var parseGenericTypes = function parseGenericTypes(text) {
  43874. var cleanedText = text;
  43875. if (text.indexOf('~') != -1) {
  43876. cleanedText = cleanedText.replace('~', '<');
  43877. cleanedText = cleanedText.replace('~', '>');
  43878. return parseGenericTypes(cleanedText);
  43879. } else {
  43880. return cleanedText;
  43881. }
  43882. };
  43883. var parseClassifier = function parseClassifier(classifier) {
  43884. switch (classifier) {
  43885. case '*':
  43886. return 'font-style:italic;';
  43887. case '$':
  43888. return 'text-decoration:underline;';
  43889. default:
  43890. return '';
  43891. }
  43892. };
  43893. /* harmony default export */ __webpack_exports__["default"] = ({
  43894. drawClass: drawClass,
  43895. drawEdge: drawEdge,
  43896. parseMember: parseMember
  43897. });
  43898. /***/ }),
  43899. /***/ "./src/diagrams/common/common.js":
  43900. /*!***************************************!*\
  43901. !*** ./src/diagrams/common/common.js ***!
  43902. \***************************************/
  43903. /*! exports provided: getRows, removeScript, sanitizeText, lineBreakRegex, hasBreaks, splitBreaks, default */
  43904. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43905. "use strict";
  43906. __webpack_require__.r(__webpack_exports__);
  43907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRows", function() { return getRows; });
  43908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeScript", function() { return removeScript; });
  43909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sanitizeText", function() { return sanitizeText; });
  43910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lineBreakRegex", function() { return lineBreakRegex; });
  43911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasBreaks", function() { return hasBreaks; });
  43912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitBreaks", function() { return splitBreaks; });
  43913. var getRows = function getRows(s) {
  43914. if (!s) return 1;
  43915. var str = breakToPlaceholder(s);
  43916. str = str.replace(/\\n/g, '#br#');
  43917. return str.split('#br#');
  43918. };
  43919. var removeScript = function removeScript(txt) {
  43920. var rs = '';
  43921. var idx = 0;
  43922. while (idx >= 0) {
  43923. idx = txt.indexOf('<script');
  43924. if (idx >= 0) {
  43925. rs += txt.substr(0, idx);
  43926. txt = txt.substr(idx + 1);
  43927. idx = txt.indexOf('</script>');
  43928. if (idx >= 0) {
  43929. idx += 9;
  43930. txt = txt.substr(idx);
  43931. }
  43932. } else {
  43933. rs += txt;
  43934. idx = -1;
  43935. break;
  43936. }
  43937. }
  43938. return rs;
  43939. };
  43940. var sanitizeText = function sanitizeText(text, config) {
  43941. var txt = text;
  43942. var htmlLabels = true;
  43943. if (config.flowchart && (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false')) htmlLabels = false;
  43944. if (htmlLabels) {
  43945. var level = config.securityLevel;
  43946. if (level == 'antiscript') {
  43947. txt = removeScript(txt);
  43948. } else if (level !== 'loose') {
  43949. // eslint-disable-line
  43950. txt = breakToPlaceholder(txt);
  43951. txt = txt.replace(/</g, '&lt;').replace(/>/g, '&gt;');
  43952. txt = txt.replace(/=/g, '&equals;');
  43953. txt = placeholderToBreak(txt);
  43954. }
  43955. }
  43956. return txt;
  43957. };
  43958. var lineBreakRegex = /<br\s*\/?>/gi;
  43959. var hasBreaks = function hasBreaks(text) {
  43960. return /<br\s*[/]?>/gi.test(text);
  43961. };
  43962. var splitBreaks = function splitBreaks(text) {
  43963. return text.split(/<br\s*[/]?>/gi);
  43964. };
  43965. var breakToPlaceholder = function breakToPlaceholder(s) {
  43966. return s.replace(lineBreakRegex, '#br#');
  43967. };
  43968. var placeholderToBreak = function placeholderToBreak(s) {
  43969. return s.replace(/#br#/g, '<br/>');
  43970. };
  43971. /* harmony default export */ __webpack_exports__["default"] = ({
  43972. getRows: getRows,
  43973. sanitizeText: sanitizeText,
  43974. hasBreaks: hasBreaks,
  43975. splitBreaks: splitBreaks,
  43976. lineBreakRegex: lineBreakRegex,
  43977. removeScript: removeScript
  43978. });
  43979. /***/ }),
  43980. /***/ "./src/diagrams/er/erDb.js":
  43981. /*!*********************************!*\
  43982. !*** ./src/diagrams/er/erDb.js ***!
  43983. \*********************************/
  43984. /*! exports provided: default */
  43985. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43986. "use strict";
  43987. __webpack_require__.r(__webpack_exports__);
  43988. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  43989. /**
  43990. *
  43991. */
  43992. var entities = {};
  43993. var relationships = [];
  43994. var title = '';
  43995. var Cardinality = {
  43996. ZERO_OR_ONE: 'ZERO_OR_ONE',
  43997. ZERO_OR_MORE: 'ZERO_OR_MORE',
  43998. ONE_OR_MORE: 'ONE_OR_MORE',
  43999. ONLY_ONE: 'ONLY_ONE'
  44000. };
  44001. var Identification = {
  44002. NON_IDENTIFYING: 'NON_IDENTIFYING',
  44003. IDENTIFYING: 'IDENTIFYING'
  44004. };
  44005. var addEntity = function addEntity(name) {
  44006. if (typeof entities[name] === 'undefined') {
  44007. entities[name] = name;
  44008. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Added new entity :', name);
  44009. }
  44010. };
  44011. var getEntities = function getEntities() {
  44012. return entities;
  44013. };
  44014. /**
  44015. * Add a relationship
  44016. * @param entA The first entity in the relationship
  44017. * @param rolA The role played by the first entity in relation to the second
  44018. * @param entB The second entity in the relationship
  44019. * @param rSpec The details of the relationship between the two entities
  44020. */
  44021. var addRelationship = function addRelationship(entA, rolA, entB, rSpec) {
  44022. var rel = {
  44023. entityA: entA,
  44024. roleA: rolA,
  44025. entityB: entB,
  44026. relSpec: rSpec
  44027. };
  44028. relationships.push(rel);
  44029. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Added new relationship :', rel);
  44030. };
  44031. var getRelationships = function getRelationships() {
  44032. return relationships;
  44033. }; // Keep this - TODO: revisit...allow the diagram to have a title
  44034. var setTitle = function setTitle(txt) {
  44035. title = txt;
  44036. };
  44037. var getTitle = function getTitle() {
  44038. return title;
  44039. };
  44040. var clear = function clear() {
  44041. entities = {};
  44042. relationships = [];
  44043. title = '';
  44044. };
  44045. /* harmony default export */ __webpack_exports__["default"] = ({
  44046. Cardinality: Cardinality,
  44047. Identification: Identification,
  44048. addEntity: addEntity,
  44049. getEntities: getEntities,
  44050. addRelationship: addRelationship,
  44051. getRelationships: getRelationships,
  44052. clear: clear,
  44053. setTitle: setTitle,
  44054. getTitle: getTitle
  44055. });
  44056. /***/ }),
  44057. /***/ "./src/diagrams/er/erMarkers.js":
  44058. /*!**************************************!*\
  44059. !*** ./src/diagrams/er/erMarkers.js ***!
  44060. \**************************************/
  44061. /*! exports provided: default */
  44062. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44063. "use strict";
  44064. __webpack_require__.r(__webpack_exports__);
  44065. var ERMarkers = {
  44066. ONLY_ONE_START: 'ONLY_ONE_START',
  44067. ONLY_ONE_END: 'ONLY_ONE_END',
  44068. ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',
  44069. ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',
  44070. ONE_OR_MORE_START: 'ONE_OR_MORE_START',
  44071. ONE_OR_MORE_END: 'ONE_OR_MORE_END',
  44072. ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',
  44073. ZERO_OR_MORE_END: 'ZERO_OR_MORE_END'
  44074. };
  44075. /**
  44076. * Put the markers into the svg DOM for later use with edge paths
  44077. */
  44078. var insertMarkers = function insertMarkers(elem, conf) {
  44079. var marker;
  44080. elem.append('defs').append('marker').attr('id', ERMarkers.ONLY_ONE_START).attr('refX', 0).attr('refY', 9).attr('markerWidth', 18).attr('markerHeight', 18).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M9,0 L9,18 M15,0 L15,18');
  44081. elem.append('defs').append('marker').attr('id', ERMarkers.ONLY_ONE_END).attr('refX', 18).attr('refY', 9).attr('markerWidth', 18).attr('markerHeight', 18).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M3,0 L3,18 M9,0 L9,18');
  44082. marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_ONE_START).attr('refX', 0).attr('refY', 9).attr('markerWidth', 30).attr('markerHeight', 18).attr('orient', 'auto');
  44083. marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 21).attr('cy', 9).attr('r', 6);
  44084. marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M9,0 L9,18');
  44085. marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_ONE_END).attr('refX', 30).attr('refY', 9).attr('markerWidth', 30).attr('markerHeight', 18).attr('orient', 'auto');
  44086. marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 9).attr('cy', 9).attr('r', 6);
  44087. marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M21,0 L21,18');
  44088. elem.append('defs').append('marker').attr('id', ERMarkers.ONE_OR_MORE_START).attr('refX', 18).attr('refY', 18).attr('markerWidth', 45).attr('markerHeight', 36).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27');
  44089. elem.append('defs').append('marker').attr('id', ERMarkers.ONE_OR_MORE_END).attr('refX', 27).attr('refY', 18).attr('markerWidth', 45).attr('markerHeight', 36).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18');
  44090. marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_MORE_START).attr('refX', 18).attr('refY', 18).attr('markerWidth', 57).attr('markerHeight', 36).attr('orient', 'auto');
  44091. marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 48).attr('cy', 18).attr('r', 6);
  44092. marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18');
  44093. marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_MORE_END).attr('refX', 39).attr('refY', 18).attr('markerWidth', 57).attr('markerHeight', 36).attr('orient', 'auto');
  44094. marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 9).attr('cy', 18).attr('r', 6);
  44095. marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');
  44096. return;
  44097. };
  44098. /* harmony default export */ __webpack_exports__["default"] = ({
  44099. ERMarkers: ERMarkers,
  44100. insertMarkers: insertMarkers
  44101. });
  44102. /***/ }),
  44103. /***/ "./src/diagrams/er/erRenderer.js":
  44104. /*!***************************************!*\
  44105. !*** ./src/diagrams/er/erRenderer.js ***!
  44106. \***************************************/
  44107. /*! exports provided: setConf, draw, default */
  44108. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44109. "use strict";
  44110. __webpack_require__.r(__webpack_exports__);
  44111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  44112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  44113. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
  44114. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_0__);
  44115. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  44116. /* harmony import */ var _erDb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./erDb */ "./src/diagrams/er/erDb.js");
  44117. /* harmony import */ var _parser_erDiagram__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parser/erDiagram */ "./src/diagrams/er/parser/erDiagram.jison");
  44118. /* harmony import */ var _parser_erDiagram__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_parser_erDiagram__WEBPACK_IMPORTED_MODULE_3__);
  44119. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dagre */ "./node_modules/dagre/index.js");
  44120. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_4__);
  44121. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  44122. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  44123. /* harmony import */ var _erMarkers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./erMarkers */ "./src/diagrams/er/erMarkers.js");
  44124. var conf = {};
  44125. /**
  44126. * Allows the top-level API module to inject config specific to this renderer,
  44127. * storing it in the local conf object. Note that generic config still needs to be
  44128. * retrieved using getConfig() imported from the config module
  44129. */
  44130. var setConf = function setConf(cnf) {
  44131. var keys = Object.keys(cnf);
  44132. for (var i = 0; i < keys.length; i++) {
  44133. conf[keys[i]] = cnf[keys[i]];
  44134. }
  44135. };
  44136. /**
  44137. * Use D3 to construct the svg elements for the entities
  44138. * @param svgNode the svg node that contains the diagram
  44139. * @param entities The entities to be drawn
  44140. * @param graph The graph that contains the vertex and edge definitions post-layout
  44141. * @return The first entity that was inserted
  44142. */
  44143. var drawEntities = function drawEntities(svgNode, entities, graph) {
  44144. var keys = Object.keys(entities);
  44145. var firstOne;
  44146. keys.forEach(function (id) {
  44147. // Create a group for each entity
  44148. var groupNode = svgNode.append('g').attr('id', id);
  44149. firstOne = firstOne === undefined ? id : firstOne; // Label the entity - this is done first so that we can get the bounding box
  44150. // which then determines the size of the rectangle
  44151. var textId = 'entity-' + id;
  44152. var textNode = groupNode.append('text').attr('class', 'er entityLabel').attr('id', textId).attr('x', 0).attr('y', 0).attr('dominant-baseline', 'middle').attr('text-anchor', 'middle').attr('style', 'font-family: ' + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().fontFamily + '; font-size: ' + conf.fontSize + 'px').text(id); // Calculate the width and height of the entity
  44153. var textBBox = textNode.node().getBBox();
  44154. var entityWidth = Math.max(conf.minEntityWidth, textBBox.width + conf.entityPadding * 2);
  44155. var entityHeight = Math.max(conf.minEntityHeight, textBBox.height + conf.entityPadding * 2); // Make sure the text gets centred relative to the entity box
  44156. textNode.attr('transform', 'translate(' + entityWidth / 2 + ',' + entityHeight / 2 + ')'); // Draw the rectangle - insert it before the text so that the text is not obscured
  44157. var rectNode = groupNode.insert('rect', '#' + textId).attr('class', 'er entityBox').attr('fill', conf.fill).attr('fill-opacity', '100%').attr('stroke', conf.stroke).attr('x', 0).attr('y', 0).attr('width', entityWidth).attr('height', entityHeight);
  44158. var rectBBox = rectNode.node().getBBox(); // Add the entity to the graph
  44159. graph.setNode(id, {
  44160. width: rectBBox.width,
  44161. height: rectBBox.height,
  44162. shape: 'rect',
  44163. id: id
  44164. });
  44165. });
  44166. return firstOne;
  44167. }; // drawEntities
  44168. var adjustEntities = function adjustEntities(svgNode, graph) {
  44169. graph.nodes().forEach(function (v) {
  44170. if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {
  44171. svgNode.select('#' + v).attr('transform', 'translate(' + (graph.node(v).x - graph.node(v).width / 2) + ',' + (graph.node(v).y - graph.node(v).height / 2) + ' )');
  44172. }
  44173. });
  44174. return;
  44175. };
  44176. var getEdgeName = function getEdgeName(rel) {
  44177. return (rel.entityA + rel.roleA + rel.entityB).replace(/\s/g, '');
  44178. };
  44179. /**
  44180. * Add each relationship to the graph
  44181. * @param relationships the relationships to be added
  44182. * @param g the graph
  44183. * @return {Array} The array of relationships
  44184. */
  44185. var addRelationships = function addRelationships(relationships, g) {
  44186. relationships.forEach(function (r) {
  44187. g.setEdge(r.entityA, r.entityB, {
  44188. relationship: r
  44189. }, getEdgeName(r));
  44190. });
  44191. return relationships;
  44192. }; // addRelationships
  44193. var relCnt = 0;
  44194. /**
  44195. * Draw a relationship using edge information from the graph
  44196. * @param svg the svg node
  44197. * @param rel the relationship to draw in the svg
  44198. * @param g the graph containing the edge information
  44199. * @param insert the insertion point in the svg DOM (because relationships have markers that need to sit 'behind' opaque entity boxes)
  44200. */
  44201. var drawRelationshipFromLayout = function drawRelationshipFromLayout(svg, rel, g, insert) {
  44202. relCnt++; // Find the edge relating to this relationship
  44203. var edge = g.edge(rel.entityA, rel.entityB, getEdgeName(rel)); // Get a function that will generate the line path
  44204. var lineFunction = Object(d3__WEBPACK_IMPORTED_MODULE_1__["line"])().x(function (d) {
  44205. return d.x;
  44206. }).y(function (d) {
  44207. return d.y;
  44208. }).curve(d3__WEBPACK_IMPORTED_MODULE_1__["curveBasis"]); // Insert the line at the right place
  44209. var svgPath = svg.insert('path', '#' + insert).attr('class', 'er relationshipLine').attr('d', lineFunction(edge.points)).attr('stroke', conf.stroke).attr('fill', 'none'); // ...and with dashes if necessary
  44210. if (rel.relSpec.relType === _erDb__WEBPACK_IMPORTED_MODULE_2__["default"].Identification.NON_IDENTIFYING) {
  44211. svgPath.attr('stroke-dasharray', '8,8');
  44212. } // TODO: Understand this better
  44213. var url = '';
  44214. if (conf.arrowMarkerAbsolute) {
  44215. url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;
  44216. url = url.replace(/\(/g, '\\(');
  44217. url = url.replace(/\)/g, '\\)');
  44218. } // Decide which start and end markers it needs. It may be possible to be more concise here
  44219. // by reversing a start marker to make an end marker...but this will do for now
  44220. // Note that the 'A' entity's marker is at the end of the relationship and the 'B' entity's marker is at the start
  44221. switch (rel.relSpec.cardA) {
  44222. case _erDb__WEBPACK_IMPORTED_MODULE_2__["default"].Cardinality.ZERO_OR_ONE:
  44223. svgPath.attr('marker-end', 'url(' + url + '#' + _erMarkers__WEBPACK_IMPORTED_MODULE_7__["default"].ERMarkers.ZERO_OR_ONE_END + ')');
  44224. break;
  44225. case _erDb__WEBPACK_IMPORTED_MODULE_2__["default"].Cardinality.ZERO_OR_MORE:
  44226. svgPath.attr('marker-end', 'url(' + url + '#' + _erMarkers__WEBPACK_IMPORTED_MODULE_7__["default"].ERMarkers.ZERO_OR_MORE_END + ')');
  44227. break;
  44228. case _erDb__WEBPACK_IMPORTED_MODULE_2__["default"].Cardinality.ONE_OR_MORE:
  44229. svgPath.attr('marker-end', 'url(' + url + '#' + _erMarkers__WEBPACK_IMPORTED_MODULE_7__["default"].ERMarkers.ONE_OR_MORE_END + ')');
  44230. break;
  44231. case _erDb__WEBPACK_IMPORTED_MODULE_2__["default"].Cardinality.ONLY_ONE:
  44232. svgPath.attr('marker-end', 'url(' + url + '#' + _erMarkers__WEBPACK_IMPORTED_MODULE_7__["default"].ERMarkers.ONLY_ONE_END + ')');
  44233. break;
  44234. }
  44235. switch (rel.relSpec.cardB) {
  44236. case _erDb__WEBPACK_IMPORTED_MODULE_2__["default"].Cardinality.ZERO_OR_ONE:
  44237. svgPath.attr('marker-start', 'url(' + url + '#' + _erMarkers__WEBPACK_IMPORTED_MODULE_7__["default"].ERMarkers.ZERO_OR_ONE_START + ')');
  44238. break;
  44239. case _erDb__WEBPACK_IMPORTED_MODULE_2__["default"].Cardinality.ZERO_OR_MORE:
  44240. svgPath.attr('marker-start', 'url(' + url + '#' + _erMarkers__WEBPACK_IMPORTED_MODULE_7__["default"].ERMarkers.ZERO_OR_MORE_START + ')');
  44241. break;
  44242. case _erDb__WEBPACK_IMPORTED_MODULE_2__["default"].Cardinality.ONE_OR_MORE:
  44243. svgPath.attr('marker-start', 'url(' + url + '#' + _erMarkers__WEBPACK_IMPORTED_MODULE_7__["default"].ERMarkers.ONE_OR_MORE_START + ')');
  44244. break;
  44245. case _erDb__WEBPACK_IMPORTED_MODULE_2__["default"].Cardinality.ONLY_ONE:
  44246. svgPath.attr('marker-start', 'url(' + url + '#' + _erMarkers__WEBPACK_IMPORTED_MODULE_7__["default"].ERMarkers.ONLY_ONE_START + ')');
  44247. break;
  44248. } // Now label the relationship
  44249. // Find the half-way point
  44250. var len = svgPath.node().getTotalLength();
  44251. var labelPoint = svgPath.node().getPointAtLength(len * 0.5); // Append a text node containing the label
  44252. var labelId = 'rel' + relCnt;
  44253. var labelNode = svg.append('text').attr('class', 'er relationshipLabel').attr('id', labelId).attr('x', labelPoint.x).attr('y', labelPoint.y).attr('text-anchor', 'middle').attr('dominant-baseline', 'middle').attr('style', 'font-family: ' + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().fontFamily + '; font-size: ' + conf.fontSize + 'px').text(rel.roleA); // Figure out how big the opaque 'container' rectangle needs to be
  44254. var labelBBox = labelNode.node().getBBox(); // Insert the opaque rectangle before the text label
  44255. svg.insert('rect', '#' + labelId).attr('class', 'er relationshipLabelBox').attr('x', labelPoint.x - labelBBox.width / 2).attr('y', labelPoint.y - labelBBox.height / 2).attr('width', labelBBox.width).attr('height', labelBBox.height).attr('fill', 'white').attr('fill-opacity', '85%');
  44256. return;
  44257. };
  44258. /**
  44259. * Draw en E-R diagram in the tag with id: id based on the text definition of the diagram
  44260. * @param text the text of the diagram
  44261. * @param id the unique id of the DOM node that contains the diagram
  44262. */
  44263. var draw = function draw(text, id) {
  44264. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].info('Drawing ER diagram');
  44265. _erDb__WEBPACK_IMPORTED_MODULE_2__["default"].clear();
  44266. var parser = _parser_erDiagram__WEBPACK_IMPORTED_MODULE_3___default.a.parser;
  44267. parser.yy = _erDb__WEBPACK_IMPORTED_MODULE_2__["default"]; // Parse the text to populate erDb
  44268. try {
  44269. parser.parse(text);
  44270. } catch (err) {
  44271. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].debug('Parsing failed');
  44272. } // Get a reference to the svg node that contains the text
  44273. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])("[id='".concat(id, "']")); // Add cardinality marker definitions to the svg
  44274. _erMarkers__WEBPACK_IMPORTED_MODULE_7__["default"].insertMarkers(svg, conf); // Now we have to construct the diagram in a specific way:
  44275. // ---
  44276. // 1. Create all the entities in the svg node at 0,0, but with the correct dimensions (allowing for text content)
  44277. // 2. Make sure they are all added to the graph
  44278. // 3. Add all the edges (relationships) to the graph aswell
  44279. // 4. Let dagre do its magic to layout the graph. This assigns:
  44280. // - the centre co-ordinates for each node, bearing in mind the dimensions and edge relationships
  44281. // - the path co-ordinates for each edge
  44282. // But it has no impact on the svg child nodes - the diagram remains with every entity rooted at 0,0
  44283. // 5. Now assign a transform to each entity in the svg node so that it gets drawn in the correct place, as determined by
  44284. // its centre point, which is obtained from the graph, and it's width and height
  44285. // 6. And finally, create all the edges in the svg node using information from the graph
  44286. // ---
  44287. // Create the graph
  44288. var g; // TODO: Explore directed vs undirected graphs, and how the layout is affected
  44289. // An E-R diagram could be said to be undirected, but there is merit in setting
  44290. // the direction from parent to child in a one-to-many as this influences graphlib to
  44291. // put the parent above the child (does it?), which is intuitive. Most relationships
  44292. // in ER diagrams are one-to-many.
  44293. g = new graphlib__WEBPACK_IMPORTED_MODULE_0___default.a.Graph({
  44294. multigraph: true,
  44295. directed: true,
  44296. compound: false
  44297. }).setGraph({
  44298. rankdir: conf.layoutDirection,
  44299. marginx: 20,
  44300. marginy: 20,
  44301. nodesep: 100,
  44302. edgesep: 100,
  44303. ranksep: 100
  44304. }).setDefaultEdgeLabel(function () {
  44305. return {};
  44306. }); // Draw the entities (at 0,0), returning the first svg node that got
  44307. // inserted - this represents the insertion point for relationship paths
  44308. var firstEntity = drawEntities(svg, _erDb__WEBPACK_IMPORTED_MODULE_2__["default"].getEntities(), g); // TODO: externalise the addition of entities to the graph - it's a bit 'buried' in the above
  44309. // Add all the relationships to the graph
  44310. var relationships = addRelationships(_erDb__WEBPACK_IMPORTED_MODULE_2__["default"].getRelationships(), g);
  44311. dagre__WEBPACK_IMPORTED_MODULE_4___default.a.layout(g); // Node and edge positions will be updated
  44312. // Adjust the positions of the entities so that they adhere to the layout
  44313. adjustEntities(svg, g); // Draw the relationships
  44314. relationships.forEach(function (rel) {
  44315. drawRelationshipFromLayout(svg, rel, g, firstEntity);
  44316. });
  44317. var padding = conf.diagramPadding;
  44318. var svgBounds = svg.node().getBBox();
  44319. var width = svgBounds.width + padding * 2;
  44320. var height = svgBounds.height + padding * 2;
  44321. if (conf.useMaxWidth) {
  44322. svg.attr('width', '100%');
  44323. svg.attr('style', "max-width: ".concat(width, "px;"));
  44324. } else {
  44325. svg.attr('height', height);
  44326. svg.attr('width', width);
  44327. }
  44328. svg.attr('viewBox', "".concat(svgBounds.x - padding, " ").concat(svgBounds.y - padding, " ").concat(width, " ").concat(height));
  44329. }; // draw
  44330. /* harmony default export */ __webpack_exports__["default"] = ({
  44331. setConf: setConf,
  44332. draw: draw
  44333. });
  44334. /***/ }),
  44335. /***/ "./src/diagrams/er/parser/erDiagram.jison":
  44336. /*!************************************************!*\
  44337. !*** ./src/diagrams/er/parser/erDiagram.jison ***!
  44338. \************************************************/
  44339. /*! no static exports found */
  44340. /***/ (function(module, exports, __webpack_require__) {
  44341. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  44342. /*
  44343. Returns a Parser object of the following structure:
  44344. Parser: {
  44345. yy: {}
  44346. }
  44347. Parser.prototype: {
  44348. yy: {},
  44349. trace: function(),
  44350. symbols_: {associative list: name ==> number},
  44351. terminals_: {associative list: number ==> name},
  44352. productions_: [...],
  44353. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  44354. table: [...],
  44355. defaultActions: {...},
  44356. parseError: function(str, hash),
  44357. parse: function(input),
  44358. lexer: {
  44359. EOF: 1,
  44360. parseError: function(str, hash),
  44361. setInput: function(input),
  44362. input: function(),
  44363. unput: function(str),
  44364. more: function(),
  44365. less: function(n),
  44366. pastInput: function(),
  44367. upcomingInput: function(),
  44368. showPosition: function(),
  44369. test_match: function(regex_match_array, rule_index),
  44370. next: function(),
  44371. lex: function(),
  44372. begin: function(condition),
  44373. popState: function(),
  44374. _currentRules: function(),
  44375. topState: function(),
  44376. pushState: function(condition),
  44377. options: {
  44378. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  44379. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  44380. 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)
  44381. },
  44382. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  44383. rules: [...],
  44384. conditions: {associative list: name ==> set},
  44385. }
  44386. }
  44387. token location info (@$, _$, etc.): {
  44388. first_line: n,
  44389. last_line: n,
  44390. first_column: n,
  44391. last_column: n,
  44392. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  44393. }
  44394. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  44395. text: (matched text)
  44396. token: (the produced terminal token, if any)
  44397. line: (yylineno)
  44398. }
  44399. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  44400. loc: (yylloc)
  44401. expected: (string describing the set of expected tokens)
  44402. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  44403. }
  44404. */
  44405. var parser = (function(){
  44406. var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,12],$V1=[1,7],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[12,19,20],$V7=[15,16,17,18];
  44407. var parser = {trace: function trace () { },
  44408. yy: {},
  44409. symbols_: {"error":2,"start":3,"ER_DIAGRAM":4,"document":5,"EOF":6,"statement":7,"entityName":8,"relSpec":9,":":10,"role":11,"ALPHANUM":12,"cardinality":13,"relType":14,"ZERO_OR_ONE":15,"ZERO_OR_MORE":16,"ONE_OR_MORE":17,"ONLY_ONE":18,"NON_IDENTIFYING":19,"IDENTIFYING":20,"WORD":21,"$accept":0,"$end":1},
  44410. terminals_: {2:"error",4:"ER_DIAGRAM",6:"EOF",10:":",12:"ALPHANUM",15:"ZERO_OR_ONE",16:"ZERO_OR_MORE",17:"ONE_OR_MORE",18:"ONLY_ONE",19:"NON_IDENTIFYING",20:"IDENTIFYING",21:"WORD"},
  44411. productions_: [0,[3,3],[5,0],[5,2],[7,5],[8,1],[9,3],[13,1],[13,1],[13,1],[13,1],[14,1],[14,1],[11,1],[11,1]],
  44412. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  44413. /* this == yyval */
  44414. var $0 = $$.length - 1;
  44415. switch (yystate) {
  44416. case 1:
  44417. /*console.log('finished parsing');*/
  44418. break;
  44419. case 4:
  44420. yy.addEntity($$[$0-4]);
  44421. yy.addEntity($$[$0-2]);
  44422. yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);
  44423. /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/
  44424. break;
  44425. case 5:
  44426. this.$ = $$[$0]; /*console.log('Entity: ' + $$[$0]);*/
  44427. break;
  44428. case 6:
  44429. this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };
  44430. /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/
  44431. break;
  44432. case 7:
  44433. this.$ = yy.Cardinality.ZERO_OR_ONE;
  44434. break;
  44435. case 8:
  44436. this.$ = yy.Cardinality.ZERO_OR_MORE;
  44437. break;
  44438. case 9:
  44439. this.$ = yy.Cardinality.ONE_OR_MORE;
  44440. break;
  44441. case 10:
  44442. this.$ = yy.Cardinality.ONLY_ONE;
  44443. break;
  44444. case 11:
  44445. this.$ = yy.Identification.NON_IDENTIFYING;
  44446. break;
  44447. case 12:
  44448. this.$ = yy.Identification.IDENTIFYING;
  44449. break;
  44450. case 13:
  44451. this.$ = $$[$0].replace(/"/g, '');
  44452. break;
  44453. case 14:
  44454. this.$ = $$[$0];
  44455. break;
  44456. }
  44457. },
  44458. table: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,12:$V1},{1:[2,1]},o($V0,[2,3]),{9:8,13:9,15:$V2,16:$V3,17:$V4,18:$V5},o([10,15,16,17,18],[2,5]),{8:14,12:$V1},{14:15,19:[1,16],20:[1,17]},o($V6,[2,7]),o($V6,[2,8]),o($V6,[2,9]),o($V6,[2,10]),{10:[1,18]},{13:19,15:$V2,16:$V3,17:$V4,18:$V5},o($V7,[2,11]),o($V7,[2,12]),{11:20,12:[1,22],21:[1,21]},{12:[2,6]},o($V0,[2,4]),o($V0,[2,13]),o($V0,[2,14])],
  44459. defaultActions: {4:[2,1],19:[2,6]},
  44460. parseError: function parseError (str, hash) {
  44461. if (hash.recoverable) {
  44462. this.trace(str);
  44463. } else {
  44464. var error = new Error(str);
  44465. error.hash = hash;
  44466. throw error;
  44467. }
  44468. },
  44469. parse: function parse(input) {
  44470. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  44471. var args = lstack.slice.call(arguments, 1);
  44472. var lexer = Object.create(this.lexer);
  44473. var sharedState = { yy: {} };
  44474. for (var k in this.yy) {
  44475. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  44476. sharedState.yy[k] = this.yy[k];
  44477. }
  44478. }
  44479. lexer.setInput(input, sharedState.yy);
  44480. sharedState.yy.lexer = lexer;
  44481. sharedState.yy.parser = this;
  44482. if (typeof lexer.yylloc == 'undefined') {
  44483. lexer.yylloc = {};
  44484. }
  44485. var yyloc = lexer.yylloc;
  44486. lstack.push(yyloc);
  44487. var ranges = lexer.options && lexer.options.ranges;
  44488. if (typeof sharedState.yy.parseError === 'function') {
  44489. this.parseError = sharedState.yy.parseError;
  44490. } else {
  44491. this.parseError = Object.getPrototypeOf(this).parseError;
  44492. }
  44493. function popStack(n) {
  44494. stack.length = stack.length - 2 * n;
  44495. vstack.length = vstack.length - n;
  44496. lstack.length = lstack.length - n;
  44497. }
  44498. function lex() {
  44499. var token;
  44500. token = tstack.pop() || lexer.lex() || EOF;
  44501. if (typeof token !== 'number') {
  44502. if (token instanceof Array) {
  44503. tstack = token;
  44504. token = tstack.pop();
  44505. }
  44506. token = self.symbols_[token] || token;
  44507. }
  44508. return token;
  44509. }
  44510. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  44511. while (true) {
  44512. state = stack[stack.length - 1];
  44513. if (this.defaultActions[state]) {
  44514. action = this.defaultActions[state];
  44515. } else {
  44516. if (symbol === null || typeof symbol == 'undefined') {
  44517. symbol = lex();
  44518. }
  44519. action = table[state] && table[state][symbol];
  44520. }
  44521. if (typeof action === 'undefined' || !action.length || !action[0]) {
  44522. var errStr = '';
  44523. expected = [];
  44524. for (p in table[state]) {
  44525. if (this.terminals_[p] && p > TERROR) {
  44526. expected.push('\'' + this.terminals_[p] + '\'');
  44527. }
  44528. }
  44529. if (lexer.showPosition) {
  44530. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  44531. } else {
  44532. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  44533. }
  44534. this.parseError(errStr, {
  44535. text: lexer.match,
  44536. token: this.terminals_[symbol] || symbol,
  44537. line: lexer.yylineno,
  44538. loc: yyloc,
  44539. expected: expected
  44540. });
  44541. }
  44542. if (action[0] instanceof Array && action.length > 1) {
  44543. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  44544. }
  44545. switch (action[0]) {
  44546. case 1:
  44547. stack.push(symbol);
  44548. vstack.push(lexer.yytext);
  44549. lstack.push(lexer.yylloc);
  44550. stack.push(action[1]);
  44551. symbol = null;
  44552. if (!preErrorSymbol) {
  44553. yyleng = lexer.yyleng;
  44554. yytext = lexer.yytext;
  44555. yylineno = lexer.yylineno;
  44556. yyloc = lexer.yylloc;
  44557. if (recovering > 0) {
  44558. recovering--;
  44559. }
  44560. } else {
  44561. symbol = preErrorSymbol;
  44562. preErrorSymbol = null;
  44563. }
  44564. break;
  44565. case 2:
  44566. len = this.productions_[action[1]][1];
  44567. yyval.$ = vstack[vstack.length - len];
  44568. yyval._$ = {
  44569. first_line: lstack[lstack.length - (len || 1)].first_line,
  44570. last_line: lstack[lstack.length - 1].last_line,
  44571. first_column: lstack[lstack.length - (len || 1)].first_column,
  44572. last_column: lstack[lstack.length - 1].last_column
  44573. };
  44574. if (ranges) {
  44575. yyval._$.range = [
  44576. lstack[lstack.length - (len || 1)].range[0],
  44577. lstack[lstack.length - 1].range[1]
  44578. ];
  44579. }
  44580. r = this.performAction.apply(yyval, [
  44581. yytext,
  44582. yyleng,
  44583. yylineno,
  44584. sharedState.yy,
  44585. action[1],
  44586. vstack,
  44587. lstack
  44588. ].concat(args));
  44589. if (typeof r !== 'undefined') {
  44590. return r;
  44591. }
  44592. if (len) {
  44593. stack = stack.slice(0, -1 * len * 2);
  44594. vstack = vstack.slice(0, -1 * len);
  44595. lstack = lstack.slice(0, -1 * len);
  44596. }
  44597. stack.push(this.productions_[action[1]][0]);
  44598. vstack.push(yyval.$);
  44599. lstack.push(yyval._$);
  44600. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  44601. stack.push(newState);
  44602. break;
  44603. case 3:
  44604. return true;
  44605. }
  44606. }
  44607. return true;
  44608. }};
  44609. /* generated by jison-lex 0.3.4 */
  44610. var lexer = (function(){
  44611. var lexer = ({
  44612. EOF:1,
  44613. parseError:function parseError(str, hash) {
  44614. if (this.yy.parser) {
  44615. this.yy.parser.parseError(str, hash);
  44616. } else {
  44617. throw new Error(str);
  44618. }
  44619. },
  44620. // resets the lexer, sets new input
  44621. setInput:function (input, yy) {
  44622. this.yy = yy || this.yy || {};
  44623. this._input = input;
  44624. this._more = this._backtrack = this.done = false;
  44625. this.yylineno = this.yyleng = 0;
  44626. this.yytext = this.matched = this.match = '';
  44627. this.conditionStack = ['INITIAL'];
  44628. this.yylloc = {
  44629. first_line: 1,
  44630. first_column: 0,
  44631. last_line: 1,
  44632. last_column: 0
  44633. };
  44634. if (this.options.ranges) {
  44635. this.yylloc.range = [0,0];
  44636. }
  44637. this.offset = 0;
  44638. return this;
  44639. },
  44640. // consumes and returns one char from the input
  44641. input:function () {
  44642. var ch = this._input[0];
  44643. this.yytext += ch;
  44644. this.yyleng++;
  44645. this.offset++;
  44646. this.match += ch;
  44647. this.matched += ch;
  44648. var lines = ch.match(/(?:\r\n?|\n).*/g);
  44649. if (lines) {
  44650. this.yylineno++;
  44651. this.yylloc.last_line++;
  44652. } else {
  44653. this.yylloc.last_column++;
  44654. }
  44655. if (this.options.ranges) {
  44656. this.yylloc.range[1]++;
  44657. }
  44658. this._input = this._input.slice(1);
  44659. return ch;
  44660. },
  44661. // unshifts one char (or a string) into the input
  44662. unput:function (ch) {
  44663. var len = ch.length;
  44664. var lines = ch.split(/(?:\r\n?|\n)/g);
  44665. this._input = ch + this._input;
  44666. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  44667. //this.yyleng -= len;
  44668. this.offset -= len;
  44669. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  44670. this.match = this.match.substr(0, this.match.length - 1);
  44671. this.matched = this.matched.substr(0, this.matched.length - 1);
  44672. if (lines.length - 1) {
  44673. this.yylineno -= lines.length - 1;
  44674. }
  44675. var r = this.yylloc.range;
  44676. this.yylloc = {
  44677. first_line: this.yylloc.first_line,
  44678. last_line: this.yylineno + 1,
  44679. first_column: this.yylloc.first_column,
  44680. last_column: lines ?
  44681. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  44682. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  44683. this.yylloc.first_column - len
  44684. };
  44685. if (this.options.ranges) {
  44686. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  44687. }
  44688. this.yyleng = this.yytext.length;
  44689. return this;
  44690. },
  44691. // When called from action, caches matched text and appends it on next action
  44692. more:function () {
  44693. this._more = true;
  44694. return this;
  44695. },
  44696. // 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.
  44697. reject:function () {
  44698. if (this.options.backtrack_lexer) {
  44699. this._backtrack = true;
  44700. } else {
  44701. 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(), {
  44702. text: "",
  44703. token: null,
  44704. line: this.yylineno
  44705. });
  44706. }
  44707. return this;
  44708. },
  44709. // retain first n characters of the match
  44710. less:function (n) {
  44711. this.unput(this.match.slice(n));
  44712. },
  44713. // displays already matched input, i.e. for error messages
  44714. pastInput:function () {
  44715. var past = this.matched.substr(0, this.matched.length - this.match.length);
  44716. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  44717. },
  44718. // displays upcoming input, i.e. for error messages
  44719. upcomingInput:function () {
  44720. var next = this.match;
  44721. if (next.length < 20) {
  44722. next += this._input.substr(0, 20-next.length);
  44723. }
  44724. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  44725. },
  44726. // displays the character position where the lexing error occurred, i.e. for error messages
  44727. showPosition:function () {
  44728. var pre = this.pastInput();
  44729. var c = new Array(pre.length + 1).join("-");
  44730. return pre + this.upcomingInput() + "\n" + c + "^";
  44731. },
  44732. // test the lexed token: return FALSE when not a match, otherwise return token
  44733. test_match:function(match, indexed_rule) {
  44734. var token,
  44735. lines,
  44736. backup;
  44737. if (this.options.backtrack_lexer) {
  44738. // save context
  44739. backup = {
  44740. yylineno: this.yylineno,
  44741. yylloc: {
  44742. first_line: this.yylloc.first_line,
  44743. last_line: this.last_line,
  44744. first_column: this.yylloc.first_column,
  44745. last_column: this.yylloc.last_column
  44746. },
  44747. yytext: this.yytext,
  44748. match: this.match,
  44749. matches: this.matches,
  44750. matched: this.matched,
  44751. yyleng: this.yyleng,
  44752. offset: this.offset,
  44753. _more: this._more,
  44754. _input: this._input,
  44755. yy: this.yy,
  44756. conditionStack: this.conditionStack.slice(0),
  44757. done: this.done
  44758. };
  44759. if (this.options.ranges) {
  44760. backup.yylloc.range = this.yylloc.range.slice(0);
  44761. }
  44762. }
  44763. lines = match[0].match(/(?:\r\n?|\n).*/g);
  44764. if (lines) {
  44765. this.yylineno += lines.length;
  44766. }
  44767. this.yylloc = {
  44768. first_line: this.yylloc.last_line,
  44769. last_line: this.yylineno + 1,
  44770. first_column: this.yylloc.last_column,
  44771. last_column: lines ?
  44772. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  44773. this.yylloc.last_column + match[0].length
  44774. };
  44775. this.yytext += match[0];
  44776. this.match += match[0];
  44777. this.matches = match;
  44778. this.yyleng = this.yytext.length;
  44779. if (this.options.ranges) {
  44780. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  44781. }
  44782. this._more = false;
  44783. this._backtrack = false;
  44784. this._input = this._input.slice(match[0].length);
  44785. this.matched += match[0];
  44786. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  44787. if (this.done && this._input) {
  44788. this.done = false;
  44789. }
  44790. if (token) {
  44791. return token;
  44792. } else if (this._backtrack) {
  44793. // recover context
  44794. for (var k in backup) {
  44795. this[k] = backup[k];
  44796. }
  44797. return false; // rule action called reject() implying the next rule should be tested instead.
  44798. }
  44799. return false;
  44800. },
  44801. // return next match in input
  44802. next:function () {
  44803. if (this.done) {
  44804. return this.EOF;
  44805. }
  44806. if (!this._input) {
  44807. this.done = true;
  44808. }
  44809. var token,
  44810. match,
  44811. tempMatch,
  44812. index;
  44813. if (!this._more) {
  44814. this.yytext = '';
  44815. this.match = '';
  44816. }
  44817. var rules = this._currentRules();
  44818. for (var i = 0; i < rules.length; i++) {
  44819. tempMatch = this._input.match(this.rules[rules[i]]);
  44820. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  44821. match = tempMatch;
  44822. index = i;
  44823. if (this.options.backtrack_lexer) {
  44824. token = this.test_match(tempMatch, rules[i]);
  44825. if (token !== false) {
  44826. return token;
  44827. } else if (this._backtrack) {
  44828. match = false;
  44829. continue; // rule action called reject() implying a rule MISmatch.
  44830. } else {
  44831. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  44832. return false;
  44833. }
  44834. } else if (!this.options.flex) {
  44835. break;
  44836. }
  44837. }
  44838. }
  44839. if (match) {
  44840. token = this.test_match(match, rules[index]);
  44841. if (token !== false) {
  44842. return token;
  44843. }
  44844. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  44845. return false;
  44846. }
  44847. if (this._input === "") {
  44848. return this.EOF;
  44849. } else {
  44850. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  44851. text: "",
  44852. token: null,
  44853. line: this.yylineno
  44854. });
  44855. }
  44856. },
  44857. // return next match that has a token
  44858. lex:function lex () {
  44859. var r = this.next();
  44860. if (r) {
  44861. return r;
  44862. } else {
  44863. return this.lex();
  44864. }
  44865. },
  44866. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  44867. begin:function begin (condition) {
  44868. this.conditionStack.push(condition);
  44869. },
  44870. // pop the previously active lexer condition state off the condition stack
  44871. popState:function popState () {
  44872. var n = this.conditionStack.length - 1;
  44873. if (n > 0) {
  44874. return this.conditionStack.pop();
  44875. } else {
  44876. return this.conditionStack[0];
  44877. }
  44878. },
  44879. // produce the lexer rule set which is active for the currently active lexer condition state
  44880. _currentRules:function _currentRules () {
  44881. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  44882. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  44883. } else {
  44884. return this.conditions["INITIAL"].rules;
  44885. }
  44886. },
  44887. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  44888. topState:function topState (n) {
  44889. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  44890. if (n >= 0) {
  44891. return this.conditionStack[n];
  44892. } else {
  44893. return "INITIAL";
  44894. }
  44895. },
  44896. // alias for begin(condition)
  44897. pushState:function pushState (condition) {
  44898. this.begin(condition);
  44899. },
  44900. // return the number of states currently on the stack
  44901. stateStackSize:function stateStackSize() {
  44902. return this.conditionStack.length;
  44903. },
  44904. options: {"case-insensitive":true},
  44905. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  44906. var YYSTATE=YY_START;
  44907. switch($avoiding_name_collisions) {
  44908. case 0:/* skip whitespace */
  44909. break;
  44910. case 1:return 'SPACE';
  44911. break;
  44912. case 2:return 21;
  44913. break;
  44914. case 3:return 4;
  44915. break;
  44916. case 4:return 15;
  44917. break;
  44918. case 5:return 16;
  44919. break;
  44920. case 6:return 17;
  44921. break;
  44922. case 7:return 18;
  44923. break;
  44924. case 8:return 15;
  44925. break;
  44926. case 9:return 16;
  44927. break;
  44928. case 10:return 17;
  44929. break;
  44930. case 11:return 19;
  44931. break;
  44932. case 12:return 20;
  44933. break;
  44934. case 13:return 19;
  44935. break;
  44936. case 14:return 19;
  44937. break;
  44938. case 15:return 12;
  44939. break;
  44940. case 16:return yy_.yytext[0];
  44941. break;
  44942. case 17:return 6;
  44943. break;
  44944. }
  44945. },
  44946. rules: [/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-]*)/i,/^(?:.)/i,/^(?:$)/i],
  44947. conditions: {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],"inclusive":true}}
  44948. });
  44949. return lexer;
  44950. })();
  44951. parser.lexer = lexer;
  44952. function Parser () {
  44953. this.yy = {};
  44954. }
  44955. Parser.prototype = parser;parser.Parser = Parser;
  44956. return new Parser;
  44957. })();
  44958. if (true) {
  44959. exports.parser = parser;
  44960. exports.Parser = parser.Parser;
  44961. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  44962. exports.main = function commonjsMain (args) {
  44963. if (!args[1]) {
  44964. console.log('Usage: '+args[0]+' FILE');
  44965. process.exit(1);
  44966. }
  44967. 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");
  44968. return exports.parser.parse(source);
  44969. };
  44970. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  44971. exports.main(process.argv.slice(1));
  44972. }
  44973. }
  44974. /* 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)))
  44975. /***/ }),
  44976. /***/ "./src/diagrams/er/styles.js":
  44977. /*!***********************************!*\
  44978. !*** ./src/diagrams/er/styles.js ***!
  44979. \***********************************/
  44980. /*! exports provided: default */
  44981. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44982. "use strict";
  44983. __webpack_require__.r(__webpack_exports__);
  44984. var getStyles = function getStyles(options) {
  44985. return "\n .entityBox {\n fill: ".concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n }\n\n .relationshipLabelBox {\n fill: ").concat(options.edgeLabelBackground, ";\n fillopactity: 0;\n background-color: ").concat(options.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(options.lineColor, ";\n }\n");
  44986. };
  44987. /* harmony default export */ __webpack_exports__["default"] = (getStyles);
  44988. /***/ }),
  44989. /***/ "./src/diagrams/flowchart/flowChartShapes.js":
  44990. /*!***************************************************!*\
  44991. !*** ./src/diagrams/flowchart/flowChartShapes.js ***!
  44992. \***************************************************/
  44993. /*! exports provided: addToRender, addToRenderV2, default */
  44994. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44995. "use strict";
  44996. __webpack_require__.r(__webpack_exports__);
  44997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addToRender", function() { return addToRender; });
  44998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addToRenderV2", function() { return addToRenderV2; });
  44999. /* harmony import */ var dagre_d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dagre-d3 */ "./node_modules/dagre-d3/index.js");
  45000. /* harmony import */ var dagre_d3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dagre_d3__WEBPACK_IMPORTED_MODULE_0__);
  45001. function question(parent, bbox, node) {
  45002. var w = bbox.width;
  45003. var h = bbox.height;
  45004. var s = (w + h) * 0.9;
  45005. var points = [{
  45006. x: s / 2,
  45007. y: 0
  45008. }, {
  45009. x: s,
  45010. y: -s / 2
  45011. }, {
  45012. x: s / 2,
  45013. y: -s
  45014. }, {
  45015. x: 0,
  45016. y: -s / 2
  45017. }];
  45018. var shapeSvg = insertPolygonShape(parent, s, s, points);
  45019. node.intersect = function (point) {
  45020. return dagre_d3__WEBPACK_IMPORTED_MODULE_0___default.a.intersect.polygon(node, points, point);
  45021. };
  45022. return shapeSvg;
  45023. }
  45024. function hexagon(parent, bbox, node) {
  45025. var f = 4;
  45026. var h = bbox.height;
  45027. var m = h / f;
  45028. var w = bbox.width + 2 * m;
  45029. var points = [{
  45030. x: m,
  45031. y: 0
  45032. }, {
  45033. x: w - m,
  45034. y: 0
  45035. }, {
  45036. x: w,
  45037. y: -h / 2
  45038. }, {
  45039. x: w - m,
  45040. y: -h
  45041. }, {
  45042. x: m,
  45043. y: -h
  45044. }, {
  45045. x: 0,
  45046. y: -h / 2
  45047. }];
  45048. var shapeSvg = insertPolygonShape(parent, w, h, points);
  45049. node.intersect = function (point) {
  45050. return dagre_d3__WEBPACK_IMPORTED_MODULE_0___default.a.intersect.polygon(node, points, point);
  45051. };
  45052. return shapeSvg;
  45053. }
  45054. function rect_left_inv_arrow(parent, bbox, node) {
  45055. var w = bbox.width;
  45056. var h = bbox.height;
  45057. var points = [{
  45058. x: -h / 2,
  45059. y: 0
  45060. }, {
  45061. x: w,
  45062. y: 0
  45063. }, {
  45064. x: w,
  45065. y: -h
  45066. }, {
  45067. x: -h / 2,
  45068. y: -h
  45069. }, {
  45070. x: 0,
  45071. y: -h / 2
  45072. }];
  45073. var shapeSvg = insertPolygonShape(parent, w, h, points);
  45074. node.intersect = function (point) {
  45075. return dagre_d3__WEBPACK_IMPORTED_MODULE_0___default.a.intersect.polygon(node, points, point);
  45076. };
  45077. return shapeSvg;
  45078. }
  45079. function lean_right(parent, bbox, node) {
  45080. var w = bbox.width;
  45081. var h = bbox.height;
  45082. var points = [{
  45083. x: -2 * h / 6,
  45084. y: 0
  45085. }, {
  45086. x: w - h / 6,
  45087. y: 0
  45088. }, {
  45089. x: w + 2 * h / 6,
  45090. y: -h
  45091. }, {
  45092. x: h / 6,
  45093. y: -h
  45094. }];
  45095. var shapeSvg = insertPolygonShape(parent, w, h, points);
  45096. node.intersect = function (point) {
  45097. return dagre_d3__WEBPACK_IMPORTED_MODULE_0___default.a.intersect.polygon(node, points, point);
  45098. };
  45099. return shapeSvg;
  45100. }
  45101. function lean_left(parent, bbox, node) {
  45102. var w = bbox.width;
  45103. var h = bbox.height;
  45104. var points = [{
  45105. x: 2 * h / 6,
  45106. y: 0
  45107. }, {
  45108. x: w + h / 6,
  45109. y: 0
  45110. }, {
  45111. x: w - 2 * h / 6,
  45112. y: -h
  45113. }, {
  45114. x: -h / 6,
  45115. y: -h
  45116. }];
  45117. var shapeSvg = insertPolygonShape(parent, w, h, points);
  45118. node.intersect = function (point) {
  45119. return dagre_d3__WEBPACK_IMPORTED_MODULE_0___default.a.intersect.polygon(node, points, point);
  45120. };
  45121. return shapeSvg;
  45122. }
  45123. function trapezoid(parent, bbox, node) {
  45124. var w = bbox.width;
  45125. var h = bbox.height;
  45126. var points = [{
  45127. x: -2 * h / 6,
  45128. y: 0
  45129. }, {
  45130. x: w + 2 * h / 6,
  45131. y: 0
  45132. }, {
  45133. x: w - h / 6,
  45134. y: -h
  45135. }, {
  45136. x: h / 6,
  45137. y: -h
  45138. }];
  45139. var shapeSvg = insertPolygonShape(parent, w, h, points);
  45140. node.intersect = function (point) {
  45141. return dagre_d3__WEBPACK_IMPORTED_MODULE_0___default.a.intersect.polygon(node, points, point);
  45142. };
  45143. return shapeSvg;
  45144. }
  45145. function inv_trapezoid(parent, bbox, node) {
  45146. var w = bbox.width;
  45147. var h = bbox.height;
  45148. var points = [{
  45149. x: h / 6,
  45150. y: 0
  45151. }, {
  45152. x: w - h / 6,
  45153. y: 0
  45154. }, {
  45155. x: w + 2 * h / 6,
  45156. y: -h
  45157. }, {
  45158. x: -2 * h / 6,
  45159. y: -h
  45160. }];
  45161. var shapeSvg = insertPolygonShape(parent, w, h, points);
  45162. node.intersect = function (point) {
  45163. return dagre_d3__WEBPACK_IMPORTED_MODULE_0___default.a.intersect.polygon(node, points, point);
  45164. };
  45165. return shapeSvg;
  45166. }
  45167. function rect_right_inv_arrow(parent, bbox, node) {
  45168. var w = bbox.width;
  45169. var h = bbox.height;
  45170. var points = [{
  45171. x: 0,
  45172. y: 0
  45173. }, {
  45174. x: w + h / 2,
  45175. y: 0
  45176. }, {
  45177. x: w,
  45178. y: -h / 2
  45179. }, {
  45180. x: w + h / 2,
  45181. y: -h
  45182. }, {
  45183. x: 0,
  45184. y: -h
  45185. }];
  45186. var shapeSvg = insertPolygonShape(parent, w, h, points);
  45187. node.intersect = function (point) {
  45188. return dagre_d3__WEBPACK_IMPORTED_MODULE_0___default.a.intersect.polygon(node, points, point);
  45189. };
  45190. return shapeSvg;
  45191. }
  45192. function stadium(parent, bbox, node) {
  45193. var h = bbox.height;
  45194. var w = bbox.width + h / 4;
  45195. var shapeSvg = parent.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h);
  45196. node.intersect = function (point) {
  45197. return dagre_d3__WEBPACK_IMPORTED_MODULE_0___default.a.intersect.rect(node, point);
  45198. };
  45199. return shapeSvg;
  45200. }
  45201. function subroutine(parent, bbox, node) {
  45202. var w = bbox.width;
  45203. var h = bbox.height;
  45204. var points = [{
  45205. x: 0,
  45206. y: 0
  45207. }, {
  45208. x: w,
  45209. y: 0
  45210. }, {
  45211. x: w,
  45212. y: -h
  45213. }, {
  45214. x: 0,
  45215. y: -h
  45216. }, {
  45217. x: 0,
  45218. y: 0
  45219. }, {
  45220. x: -8,
  45221. y: 0
  45222. }, {
  45223. x: w + 8,
  45224. y: 0
  45225. }, {
  45226. x: w + 8,
  45227. y: -h
  45228. }, {
  45229. x: -8,
  45230. y: -h
  45231. }, {
  45232. x: -8,
  45233. y: 0
  45234. }];
  45235. var shapeSvg = insertPolygonShape(parent, w, h, points);
  45236. node.intersect = function (point) {
  45237. return dagre_d3__WEBPACK_IMPORTED_MODULE_0___default.a.intersect.polygon(node, points, point);
  45238. };
  45239. return shapeSvg;
  45240. }
  45241. function cylinder(parent, bbox, node) {
  45242. var w = bbox.width;
  45243. var rx = w / 2;
  45244. var ry = rx / (2.5 + w / 50);
  45245. var h = bbox.height + ry;
  45246. var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h;
  45247. var shapeSvg = parent.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');
  45248. node.intersect = function (point) {
  45249. var pos = dagre_d3__WEBPACK_IMPORTED_MODULE_0___default.a.intersect.rect(node, point);
  45250. var x = pos.x - node.x;
  45251. if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {
  45252. // ellipsis equation: x*x / a*a + y*y / b*b = 1
  45253. // solve for y to get adjustion value for pos.y
  45254. var y = ry * ry * (1 - x * x / (rx * rx));
  45255. if (y != 0) y = Math.sqrt(y);
  45256. y = ry - y;
  45257. if (point.y - node.y > 0) y = -y;
  45258. pos.y += y;
  45259. }
  45260. return pos;
  45261. };
  45262. return shapeSvg;
  45263. }
  45264. function addToRender(render) {
  45265. render.shapes().question = question;
  45266. render.shapes().hexagon = hexagon;
  45267. render.shapes().stadium = stadium;
  45268. render.shapes().subroutine = subroutine;
  45269. render.shapes().cylinder = cylinder; // Add custom shape for box with inverted arrow on left side
  45270. render.shapes().rect_left_inv_arrow = rect_left_inv_arrow; // Add custom shape for box with inverted arrow on left side
  45271. render.shapes().lean_right = lean_right; // Add custom shape for box with inverted arrow on left side
  45272. render.shapes().lean_left = lean_left; // Add custom shape for box with inverted arrow on left side
  45273. render.shapes().trapezoid = trapezoid; // Add custom shape for box with inverted arrow on left side
  45274. render.shapes().inv_trapezoid = inv_trapezoid; // Add custom shape for box with inverted arrow on right side
  45275. render.shapes().rect_right_inv_arrow = rect_right_inv_arrow;
  45276. }
  45277. function addToRenderV2(addShape) {
  45278. addShape({
  45279. question: question
  45280. });
  45281. addShape({
  45282. hexagon: hexagon
  45283. });
  45284. addShape({
  45285. stadium: stadium
  45286. });
  45287. addShape({
  45288. subroutine: subroutine
  45289. });
  45290. addShape({
  45291. cylinder: cylinder
  45292. }); // Add custom shape for box with inverted arrow on left side
  45293. addShape({
  45294. rect_left_inv_arrow: rect_left_inv_arrow
  45295. }); // Add custom shape for box with inverted arrow on left side
  45296. addShape({
  45297. lean_right: lean_right
  45298. }); // Add custom shape for box with inverted arrow on left side
  45299. addShape({
  45300. lean_left: lean_left
  45301. }); // Add custom shape for box with inverted arrow on left side
  45302. addShape({
  45303. trapezoid: trapezoid
  45304. }); // Add custom shape for box with inverted arrow on left side
  45305. addShape({
  45306. inv_trapezoid: inv_trapezoid
  45307. }); // Add custom shape for box with inverted arrow on right side
  45308. addShape({
  45309. rect_right_inv_arrow: rect_right_inv_arrow
  45310. });
  45311. }
  45312. function insertPolygonShape(parent, w, h, points) {
  45313. return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {
  45314. return d.x + ',' + d.y;
  45315. }).join(' ')).attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');
  45316. }
  45317. /* harmony default export */ __webpack_exports__["default"] = ({
  45318. addToRender: addToRender,
  45319. addToRenderV2: addToRenderV2
  45320. });
  45321. /***/ }),
  45322. /***/ "./src/diagrams/flowchart/flowDb.js":
  45323. /*!******************************************!*\
  45324. !*** ./src/diagrams/flowchart/flowDb.js ***!
  45325. \******************************************/
  45326. /*! exports provided: addVertex, addSingleLink, addLink, updateLinkInterpolate, updateLink, addClass, setDirection, setClass, setLink, getTooltip, setClickEvent, bindFunctions, getDirection, getVertices, getEdges, getClasses, clear, defaultStyle, addSubGraph, getDepthFirstPos, indexNodes, getSubGraphs, firstGraph, default */
  45327. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45328. "use strict";
  45329. __webpack_require__.r(__webpack_exports__);
  45330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addVertex", function() { return addVertex; });
  45331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addSingleLink", function() { return addSingleLink; });
  45332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addLink", function() { return addLink; });
  45333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateLinkInterpolate", function() { return updateLinkInterpolate; });
  45334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateLink", function() { return updateLink; });
  45335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addClass", function() { return addClass; });
  45336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDirection", function() { return setDirection; });
  45337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setClass", function() { return setClass; });
  45338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLink", function() { return setLink; });
  45339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTooltip", function() { return getTooltip; });
  45340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setClickEvent", function() { return setClickEvent; });
  45341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindFunctions", function() { return bindFunctions; });
  45342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDirection", function() { return getDirection; });
  45343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getVertices", function() { return getVertices; });
  45344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEdges", function() { return getEdges; });
  45345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClasses", function() { return getClasses; });
  45346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  45347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultStyle", function() { return defaultStyle; });
  45348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addSubGraph", function() { return addSubGraph; });
  45349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDepthFirstPos", function() { return getDepthFirstPos; });
  45350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "indexNodes", function() { return indexNodes; });
  45351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSubGraphs", function() { return getSubGraphs; });
  45352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "firstGraph", function() { return firstGraph; });
  45353. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  45354. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  45355. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  45356. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  45357. /* harmony import */ var _common_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/common */ "./src/diagrams/common/common.js");
  45358. function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  45359. // eslint-disable-line
  45360. // const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-';
  45361. var MERMAID_DOM_ID_PREFIX = '';
  45362. var config = Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])();
  45363. var vertices = {};
  45364. var edges = [];
  45365. var classes = [];
  45366. var subGraphs = [];
  45367. var subGraphLookup = {};
  45368. var tooltips = {};
  45369. var subCount = 0;
  45370. var firstGraphFlag = true;
  45371. var direction; // Functions to be run after graph rendering
  45372. var funs = [];
  45373. /**
  45374. * Function called by parser when a node definition has been found
  45375. * @param id
  45376. * @param text
  45377. * @param type
  45378. * @param style
  45379. * @param classes
  45380. */
  45381. var addVertex = function addVertex(_id, text, type, style, classes) {
  45382. var txt;
  45383. var id = _id;
  45384. if (typeof id === 'undefined') {
  45385. return;
  45386. }
  45387. if (id.trim().length === 0) {
  45388. return;
  45389. }
  45390. if (id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id;
  45391. if (typeof vertices[id] === 'undefined') {
  45392. vertices[id] = {
  45393. id: id,
  45394. styles: [],
  45395. classes: []
  45396. };
  45397. }
  45398. if (typeof text !== 'undefined') {
  45399. txt = _common_common__WEBPACK_IMPORTED_MODULE_4__["default"].sanitizeText(text.trim(), config); // strip quotes if string starts and ends with a quote
  45400. if (txt[0] === '"' && txt[txt.length - 1] === '"') {
  45401. txt = txt.substring(1, txt.length - 1);
  45402. }
  45403. vertices[id].text = txt;
  45404. } else {
  45405. if (typeof vertices[id].text === 'undefined') {
  45406. vertices[id].text = _id;
  45407. }
  45408. }
  45409. if (typeof type !== 'undefined') {
  45410. vertices[id].type = type;
  45411. }
  45412. if (typeof style !== 'undefined') {
  45413. if (style !== null) {
  45414. style.forEach(function (s) {
  45415. vertices[id].styles.push(s);
  45416. });
  45417. }
  45418. }
  45419. if (typeof classes !== 'undefined') {
  45420. if (classes !== null) {
  45421. classes.forEach(function (s) {
  45422. vertices[id].classes.push(s);
  45423. });
  45424. }
  45425. }
  45426. };
  45427. /**
  45428. * Function called by parser when a link/edge definition has been found
  45429. * @param start
  45430. * @param end
  45431. * @param type
  45432. * @param linktext
  45433. */
  45434. var addSingleLink = function addSingleLink(_start, _end, type, linktext) {
  45435. var start = _start;
  45436. var end = _end;
  45437. if (start[0].match(/\d/)) start = MERMAID_DOM_ID_PREFIX + start;
  45438. if (end[0].match(/\d/)) end = MERMAID_DOM_ID_PREFIX + end; // logger.info('Got edge...', start, end);
  45439. var edge = {
  45440. start: start,
  45441. end: end,
  45442. type: undefined,
  45443. text: ''
  45444. };
  45445. linktext = type.text;
  45446. if (typeof linktext !== 'undefined') {
  45447. edge.text = _common_common__WEBPACK_IMPORTED_MODULE_4__["default"].sanitizeText(linktext.trim(), config); // strip quotes if string starts and exnds with a quote
  45448. if (edge.text[0] === '"' && edge.text[edge.text.length - 1] === '"') {
  45449. edge.text = edge.text.substring(1, edge.text.length - 1);
  45450. }
  45451. }
  45452. if (typeof type !== 'undefined') {
  45453. edge.type = type.type;
  45454. edge.stroke = type.stroke;
  45455. }
  45456. edges.push(edge);
  45457. };
  45458. var addLink = function addLink(_start, _end, type, linktext) {
  45459. var i, j;
  45460. for (i = 0; i < _start.length; i++) {
  45461. for (j = 0; j < _end.length; j++) {
  45462. addSingleLink(_start[i], _end[j], type, linktext);
  45463. }
  45464. }
  45465. };
  45466. /**
  45467. * Updates a link's line interpolation algorithm
  45468. * @param pos
  45469. * @param interpolate
  45470. */
  45471. var updateLinkInterpolate = function updateLinkInterpolate(positions, interp) {
  45472. positions.forEach(function (pos) {
  45473. if (pos === 'default') {
  45474. edges.defaultInterpolate = interp;
  45475. } else {
  45476. edges[pos].interpolate = interp;
  45477. }
  45478. });
  45479. };
  45480. /**
  45481. * Updates a link with a style
  45482. * @param pos
  45483. * @param style
  45484. */
  45485. var updateLink = function updateLink(positions, style) {
  45486. positions.forEach(function (pos) {
  45487. if (pos === 'default') {
  45488. edges.defaultStyle = style;
  45489. } else {
  45490. if (_utils__WEBPACK_IMPORTED_MODULE_2__["default"].isSubstringInArray('fill', style) === -1) {
  45491. style.push('fill:none');
  45492. }
  45493. edges[pos].style = style;
  45494. }
  45495. });
  45496. };
  45497. var addClass = function addClass(id, style) {
  45498. if (typeof classes[id] === 'undefined') {
  45499. classes[id] = {
  45500. id: id,
  45501. styles: [],
  45502. textStyles: []
  45503. };
  45504. }
  45505. if (typeof style !== 'undefined') {
  45506. if (style !== null) {
  45507. style.forEach(function (s) {
  45508. if (s.match('color')) {
  45509. var newStyle1 = s.replace('fill', 'bgFill');
  45510. var newStyle2 = newStyle1.replace('color', 'fill');
  45511. classes[id].textStyles.push(newStyle2);
  45512. }
  45513. classes[id].styles.push(s);
  45514. });
  45515. }
  45516. }
  45517. };
  45518. /**
  45519. * Called by parser when a graph definition is found, stores the direction of the chart.
  45520. * @param dir
  45521. */
  45522. var setDirection = function setDirection(dir) {
  45523. direction = dir;
  45524. if (direction.match(/.*</)) {
  45525. direction = 'RL';
  45526. }
  45527. if (direction.match(/.*\^/)) {
  45528. direction = 'BT';
  45529. }
  45530. if (direction.match(/.*>/)) {
  45531. direction = 'LR';
  45532. }
  45533. if (direction.match(/.*v/)) {
  45534. direction = 'TB';
  45535. }
  45536. };
  45537. /**
  45538. * Called by parser when a special node is found, e.g. a clickable element.
  45539. * @param ids Comma separated list of ids
  45540. * @param className Class to add
  45541. */
  45542. var setClass = function setClass(ids, className) {
  45543. ids.split(',').forEach(function (_id) {
  45544. var id = _id;
  45545. if (_id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id;
  45546. if (typeof vertices[id] !== 'undefined') {
  45547. vertices[id].classes.push(className);
  45548. }
  45549. if (typeof subGraphLookup[id] !== 'undefined') {
  45550. subGraphLookup[id].classes.push(className);
  45551. }
  45552. });
  45553. };
  45554. var setTooltip = function setTooltip(ids, tooltip) {
  45555. ids.split(',').forEach(function (id) {
  45556. if (typeof tooltip !== 'undefined') {
  45557. tooltips[id] = _common_common__WEBPACK_IMPORTED_MODULE_4__["default"].sanitizeText(tooltip, config);
  45558. }
  45559. });
  45560. };
  45561. var setClickFun = function setClickFun(_id, functionName) {
  45562. var id = _id;
  45563. if (_id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id;
  45564. if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().securityLevel !== 'loose') {
  45565. return;
  45566. }
  45567. if (typeof functionName === 'undefined') {
  45568. return;
  45569. }
  45570. if (typeof vertices[id] !== 'undefined') {
  45571. funs.push(function () {
  45572. var elem = document.querySelector("[id=\"".concat(id, "\"]"));
  45573. if (elem !== null) {
  45574. elem.addEventListener('click', function () {
  45575. _utils__WEBPACK_IMPORTED_MODULE_2__["default"].runFunc(functionName, id);
  45576. }, false);
  45577. }
  45578. });
  45579. }
  45580. };
  45581. /**
  45582. * Called by parser when a link is found. Adds the URL to the vertex data.
  45583. * @param ids Comma separated list of ids
  45584. * @param linkStr URL to create a link for
  45585. * @param tooltip Tooltip for the clickable element
  45586. */
  45587. var setLink = function setLink(ids, linkStr, tooltip) {
  45588. ids.split(',').forEach(function (_id) {
  45589. var id = _id;
  45590. if (_id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id;
  45591. if (typeof vertices[id] !== 'undefined') {
  45592. vertices[id].link = _utils__WEBPACK_IMPORTED_MODULE_2__["default"].formatUrl(linkStr, config);
  45593. }
  45594. });
  45595. setTooltip(ids, tooltip);
  45596. setClass(ids, 'clickable');
  45597. };
  45598. var getTooltip = function getTooltip(id) {
  45599. return tooltips[id];
  45600. };
  45601. /**
  45602. * Called by parser when a click definition is found. Registers an event handler.
  45603. * @param ids Comma separated list of ids
  45604. * @param functionName Function to be called on click
  45605. * @param tooltip Tooltip for the clickable element
  45606. */
  45607. var setClickEvent = function setClickEvent(ids, functionName, tooltip) {
  45608. ids.split(',').forEach(function (id) {
  45609. setClickFun(id, functionName);
  45610. });
  45611. setTooltip(ids, tooltip);
  45612. setClass(ids, 'clickable');
  45613. };
  45614. var bindFunctions = function bindFunctions(element) {
  45615. funs.forEach(function (fun) {
  45616. fun(element);
  45617. });
  45618. };
  45619. var getDirection = function getDirection() {
  45620. return direction.trim();
  45621. };
  45622. /**
  45623. * Retrieval function for fetching the found nodes after parsing has completed.
  45624. * @returns {{}|*|vertices}
  45625. */
  45626. var getVertices = function getVertices() {
  45627. return vertices;
  45628. };
  45629. /**
  45630. * Retrieval function for fetching the found links after parsing has completed.
  45631. * @returns {{}|*|edges}
  45632. */
  45633. var getEdges = function getEdges() {
  45634. return edges;
  45635. };
  45636. /**
  45637. * Retrieval function for fetching the found class definitions after parsing has completed.
  45638. * @returns {{}|*|classes}
  45639. */
  45640. var getClasses = function getClasses() {
  45641. return classes;
  45642. };
  45643. var setupToolTips = function setupToolTips(element) {
  45644. var tooltipElem = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('.mermaidTooltip');
  45645. if ((tooltipElem._groups || tooltipElem)[0][0] === null) {
  45646. tooltipElem = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);
  45647. }
  45648. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(element).select('svg');
  45649. var nodes = svg.selectAll('g.node');
  45650. nodes.on('mouseover', function () {
  45651. var el = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(this);
  45652. var title = el.attr('title'); // Dont try to draw a tooltip if no data is provided
  45653. if (title === null) {
  45654. return;
  45655. }
  45656. var rect = this.getBoundingClientRect();
  45657. tooltipElem.transition().duration(200).style('opacity', '.9');
  45658. tooltipElem.html(el.attr('title')).style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px').style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');
  45659. el.classed('hover', true);
  45660. }).on('mouseout', function () {
  45661. tooltipElem.transition().duration(500).style('opacity', 0);
  45662. var el = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(this);
  45663. el.classed('hover', false);
  45664. });
  45665. };
  45666. funs.push(setupToolTips);
  45667. /**
  45668. * Clears the internal graph db so that a new graph can be parsed.
  45669. */
  45670. var clear = function clear() {
  45671. vertices = {};
  45672. classes = {};
  45673. edges = [];
  45674. funs = [];
  45675. funs.push(setupToolTips);
  45676. subGraphs = [];
  45677. subGraphLookup = {};
  45678. subCount = 0;
  45679. tooltips = [];
  45680. firstGraphFlag = true;
  45681. };
  45682. /**
  45683. *
  45684. * @returns {string}
  45685. */
  45686. var defaultStyle = function defaultStyle() {
  45687. return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';
  45688. };
  45689. /**
  45690. * Clears the internal graph db so that a new graph can be parsed.
  45691. */
  45692. var addSubGraph = function addSubGraph(_id, list, _title) {
  45693. var id = _id.trim();
  45694. var title = _title;
  45695. if (_id === _title && _title.match(/\s/)) {
  45696. id = undefined;
  45697. }
  45698. function uniq(a) {
  45699. var prims = {
  45700. boolean: {},
  45701. number: {},
  45702. string: {}
  45703. };
  45704. var objs = [];
  45705. return a.filter(function (item) {
  45706. var type = _typeof(item);
  45707. if (item.trim() === '') {
  45708. return false;
  45709. }
  45710. if (type in prims) {
  45711. return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true; // eslint-disable-line
  45712. } else {
  45713. return objs.indexOf(item) >= 0 ? false : objs.push(item);
  45714. }
  45715. });
  45716. }
  45717. var nodeList = [];
  45718. nodeList = uniq(nodeList.concat.apply(nodeList, list));
  45719. for (var i = 0; i < nodeList.length; i++) {
  45720. if (nodeList[i][0].match(/\d/)) nodeList[i] = MERMAID_DOM_ID_PREFIX + nodeList[i];
  45721. }
  45722. id = id || 'subGraph' + subCount;
  45723. if (id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id;
  45724. title = title || '';
  45725. title = _common_common__WEBPACK_IMPORTED_MODULE_4__["default"].sanitizeText(title, config);
  45726. subCount = subCount + 1;
  45727. var subGraph = {
  45728. id: id,
  45729. nodes: nodeList,
  45730. title: title.trim(),
  45731. classes: []
  45732. };
  45733. subGraphs.push(subGraph);
  45734. subGraphLookup[id] = subGraph;
  45735. return id;
  45736. };
  45737. var getPosForId = function getPosForId(id) {
  45738. for (var i = 0; i < subGraphs.length; i++) {
  45739. if (subGraphs[i].id === id) {
  45740. return i;
  45741. }
  45742. }
  45743. return -1;
  45744. };
  45745. var secCount = -1;
  45746. var posCrossRef = [];
  45747. var indexNodes2 = function indexNodes2(id, pos) {
  45748. var nodes = subGraphs[pos].nodes;
  45749. secCount = secCount + 1;
  45750. if (secCount > 2000) {
  45751. return;
  45752. }
  45753. posCrossRef[secCount] = pos; // Check if match
  45754. if (subGraphs[pos].id === id) {
  45755. return {
  45756. result: true,
  45757. count: 0
  45758. };
  45759. }
  45760. var count = 0;
  45761. var posCount = 1;
  45762. while (count < nodes.length) {
  45763. var childPos = getPosForId(nodes[count]); // Ignore regular nodes (pos will be -1)
  45764. if (childPos >= 0) {
  45765. var res = indexNodes2(id, childPos);
  45766. if (res.result) {
  45767. return {
  45768. result: true,
  45769. count: posCount + res.count
  45770. };
  45771. } else {
  45772. posCount = posCount + res.count;
  45773. }
  45774. }
  45775. count = count + 1;
  45776. }
  45777. return {
  45778. result: false,
  45779. count: posCount
  45780. };
  45781. };
  45782. var getDepthFirstPos = function getDepthFirstPos(pos) {
  45783. return posCrossRef[pos];
  45784. };
  45785. var indexNodes = function indexNodes() {
  45786. secCount = -1;
  45787. if (subGraphs.length > 0) {
  45788. indexNodes2('none', subGraphs.length - 1, 0);
  45789. }
  45790. };
  45791. var getSubGraphs = function getSubGraphs() {
  45792. return subGraphs;
  45793. };
  45794. var firstGraph = function firstGraph() {
  45795. if (firstGraphFlag) {
  45796. firstGraphFlag = false;
  45797. return true;
  45798. }
  45799. return false;
  45800. };
  45801. var destructStartLink = function destructStartLink(_str) {
  45802. var str = _str.trim();
  45803. switch (str) {
  45804. case '<--':
  45805. return {
  45806. type: 'arrow_point',
  45807. stroke: 'normal'
  45808. };
  45809. case 'x--':
  45810. return {
  45811. type: 'arrow_cross',
  45812. stroke: 'normal'
  45813. };
  45814. case 'o--':
  45815. return {
  45816. type: 'arrow_circle',
  45817. stroke: 'normal'
  45818. };
  45819. case '<-.':
  45820. return {
  45821. type: 'arrow_point',
  45822. stroke: 'dotted'
  45823. };
  45824. case 'x-.':
  45825. return {
  45826. type: 'arrow_cross',
  45827. stroke: 'dotted'
  45828. };
  45829. case 'o-.':
  45830. return {
  45831. type: 'arrow_circle',
  45832. stroke: 'dotted'
  45833. };
  45834. case '<==':
  45835. return {
  45836. type: 'arrow_point',
  45837. stroke: 'thick'
  45838. };
  45839. case 'x==':
  45840. return {
  45841. type: 'arrow_cross',
  45842. stroke: 'thick'
  45843. };
  45844. case 'o==':
  45845. return {
  45846. type: 'arrow_circle',
  45847. stroke: 'thick'
  45848. };
  45849. case '--':
  45850. return {
  45851. type: 'arrow_open',
  45852. stroke: 'normal'
  45853. };
  45854. case '==':
  45855. return {
  45856. type: 'arrow_open',
  45857. stroke: 'thick'
  45858. };
  45859. case '-.':
  45860. return {
  45861. type: 'arrow_open',
  45862. stroke: 'dotted'
  45863. };
  45864. }
  45865. };
  45866. var destructEndLink = function destructEndLink(_str) {
  45867. var str = _str.trim();
  45868. switch (str) {
  45869. case '--x':
  45870. return {
  45871. type: 'arrow_cross',
  45872. stroke: 'normal'
  45873. };
  45874. case '-->':
  45875. return {
  45876. type: 'arrow_point',
  45877. stroke: 'normal'
  45878. };
  45879. case '<-->':
  45880. return {
  45881. type: 'double_arrow_point',
  45882. stroke: 'normal'
  45883. };
  45884. case 'x--x':
  45885. return {
  45886. type: 'double_arrow_cross',
  45887. stroke: 'normal'
  45888. };
  45889. case 'o--o':
  45890. return {
  45891. type: 'double_arrow_circle',
  45892. stroke: 'normal'
  45893. };
  45894. case 'o.-o':
  45895. return {
  45896. type: 'double_arrow_circle',
  45897. stroke: 'dotted'
  45898. };
  45899. case '<==>':
  45900. return {
  45901. type: 'double_arrow_point',
  45902. stroke: 'thick'
  45903. };
  45904. case 'o==o':
  45905. return {
  45906. type: 'double_arrow_circle',
  45907. stroke: 'thick'
  45908. };
  45909. case 'x==x':
  45910. return {
  45911. type: 'double_arrow_cross',
  45912. stroke: 'thick'
  45913. };
  45914. case 'x.-x':
  45915. return {
  45916. type: 'double_arrow_cross',
  45917. stroke: 'dotted'
  45918. };
  45919. case 'x-.-x':
  45920. return {
  45921. type: 'double_arrow_cross',
  45922. stroke: 'dotted'
  45923. };
  45924. case '<.->':
  45925. return {
  45926. type: 'double_arrow_point',
  45927. stroke: 'dotted'
  45928. };
  45929. case '<-.->':
  45930. return {
  45931. type: 'double_arrow_point',
  45932. stroke: 'dotted'
  45933. };
  45934. case 'o-.-o':
  45935. return {
  45936. type: 'double_arrow_circle',
  45937. stroke: 'dotted'
  45938. };
  45939. case '--o':
  45940. return {
  45941. type: 'arrow_circle',
  45942. stroke: 'normal'
  45943. };
  45944. case '---':
  45945. return {
  45946. type: 'arrow_open',
  45947. stroke: 'normal'
  45948. };
  45949. case '-.-x':
  45950. return {
  45951. type: 'arrow_cross',
  45952. stroke: 'dotted'
  45953. };
  45954. case '-.->':
  45955. return {
  45956. type: 'arrow_point',
  45957. stroke: 'dotted'
  45958. };
  45959. case '-.-o':
  45960. return {
  45961. type: 'arrow_circle',
  45962. stroke: 'dotted'
  45963. };
  45964. case '-.-':
  45965. return {
  45966. type: 'arrow_open',
  45967. stroke: 'dotted'
  45968. };
  45969. case '.-x':
  45970. return {
  45971. type: 'arrow_cross',
  45972. stroke: 'dotted'
  45973. };
  45974. case '.->':
  45975. return {
  45976. type: 'arrow_point',
  45977. stroke: 'dotted'
  45978. };
  45979. case '.-o':
  45980. return {
  45981. type: 'arrow_circle',
  45982. stroke: 'dotted'
  45983. };
  45984. case '.-':
  45985. return {
  45986. type: 'arrow_open',
  45987. stroke: 'dotted'
  45988. };
  45989. case '==x':
  45990. return {
  45991. type: 'arrow_cross',
  45992. stroke: 'thick'
  45993. };
  45994. case '==>':
  45995. return {
  45996. type: 'arrow_point',
  45997. stroke: 'thick'
  45998. };
  45999. case '==o':
  46000. return {
  46001. type: 'arrow_circle',
  46002. stroke: 'thick'
  46003. };
  46004. case '===':
  46005. return {
  46006. type: 'arrow_open',
  46007. stroke: 'thick'
  46008. };
  46009. }
  46010. };
  46011. var destructLink = function destructLink(_str, _startStr) {
  46012. var info = destructEndLink(_str);
  46013. var startInfo;
  46014. if (_startStr) {
  46015. startInfo = destructStartLink(_startStr);
  46016. if (startInfo.stroke !== info.stroke) {
  46017. return {
  46018. type: 'INVALID',
  46019. stroke: 'INVALID'
  46020. };
  46021. }
  46022. if (startInfo.type === 'arrow_open') {
  46023. // -- xyz --> - take arrow type form ending
  46024. startInfo.type = info.type;
  46025. } else {
  46026. // x-- xyz --> - not supported
  46027. if (startInfo.type !== info.type) return {
  46028. type: 'INVALID',
  46029. stroke: 'INVALID'
  46030. };
  46031. startInfo.type = 'double_' + startInfo.type;
  46032. }
  46033. if (startInfo.type === 'double_arrow') {
  46034. startInfo.type = 'double_arrow_point';
  46035. }
  46036. return startInfo;
  46037. }
  46038. return info;
  46039. };
  46040. /* harmony default export */ __webpack_exports__["default"] = ({
  46041. addVertex: addVertex,
  46042. addLink: addLink,
  46043. updateLinkInterpolate: updateLinkInterpolate,
  46044. updateLink: updateLink,
  46045. addClass: addClass,
  46046. setDirection: setDirection,
  46047. setClass: setClass,
  46048. getTooltip: getTooltip,
  46049. setClickEvent: setClickEvent,
  46050. setLink: setLink,
  46051. bindFunctions: bindFunctions,
  46052. getDirection: getDirection,
  46053. getVertices: getVertices,
  46054. getEdges: getEdges,
  46055. getClasses: getClasses,
  46056. clear: clear,
  46057. defaultStyle: defaultStyle,
  46058. addSubGraph: addSubGraph,
  46059. getDepthFirstPos: getDepthFirstPos,
  46060. indexNodes: indexNodes,
  46061. getSubGraphs: getSubGraphs,
  46062. destructLink: destructLink,
  46063. lex: {
  46064. firstGraph: firstGraph
  46065. }
  46066. });
  46067. /***/ }),
  46068. /***/ "./src/diagrams/flowchart/flowRenderer-v2.js":
  46069. /*!***************************************************!*\
  46070. !*** ./src/diagrams/flowchart/flowRenderer-v2.js ***!
  46071. \***************************************************/
  46072. /*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */
  46073. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  46074. "use strict";
  46075. __webpack_require__.r(__webpack_exports__);
  46076. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  46077. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addVertices", function() { return addVertices; });
  46078. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEdges", function() { return addEdges; });
  46079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClasses", function() { return getClasses; });
  46080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  46081. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
  46082. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_0__);
  46083. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  46084. /* harmony import */ var _flowDb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./flowDb */ "./src/diagrams/flowchart/flowDb.js");
  46085. /* harmony import */ var _parser_flow__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parser/flow */ "./src/diagrams/flowchart/parser/flow.jison");
  46086. /* harmony import */ var _parser_flow__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_parser_flow__WEBPACK_IMPORTED_MODULE_3__);
  46087. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  46088. /* harmony import */ var _dagre_wrapper_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dagre-wrapper/index.js */ "./src/dagre-wrapper/index.js");
  46089. /* harmony import */ var dagre_d3_lib_label_add_html_label_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dagre-d3/lib/label/add-html-label.js */ "./node_modules/dagre-d3/lib/label/add-html-label.js");
  46090. /* harmony import */ var dagre_d3_lib_label_add_html_label_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(dagre_d3_lib_label_add_html_label_js__WEBPACK_IMPORTED_MODULE_6__);
  46091. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  46092. /* harmony import */ var _common_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/common */ "./src/diagrams/common/common.js");
  46093. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  46094. var conf = {};
  46095. var setConf = function setConf(cnf) {
  46096. var keys = Object.keys(cnf);
  46097. for (var i = 0; i < keys.length; i++) {
  46098. conf[keys[i]] = cnf[keys[i]];
  46099. }
  46100. };
  46101. /**
  46102. * Function that adds the vertices found during parsing to the graph to be rendered.
  46103. * @param vert Object containing the vertices.
  46104. * @param g The graph that is to be drawn.
  46105. */
  46106. var addVertices = function addVertices(vert, g, svgId) {
  46107. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])("[id=\"".concat(svgId, "\"]"));
  46108. var keys = Object.keys(vert); // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition
  46109. keys.forEach(function (id) {
  46110. var vertex = vert[id];
  46111. /**
  46112. * Variable for storing the classes for the vertex
  46113. * @type {string}
  46114. */
  46115. var classStr = 'default';
  46116. if (vertex.classes.length > 0) {
  46117. classStr = vertex.classes.join(' ');
  46118. }
  46119. var styles = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getStylesFromArray"])(vertex.styles); // Use vertex id as text in the box if no text is provided by the graph definition
  46120. var vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually
  46121. var vertexNode;
  46122. if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) {
  46123. // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?
  46124. var node = {
  46125. label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, function (s) {
  46126. return "<i class='".concat(s.replace(':', ' '), "'></i>");
  46127. })
  46128. };
  46129. vertexNode = dagre_d3_lib_label_add_html_label_js__WEBPACK_IMPORTED_MODULE_6___default()(svg, node).node();
  46130. vertexNode.parentNode.removeChild(vertexNode);
  46131. } else {
  46132. var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');
  46133. svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));
  46134. var rows = vertexText.split(_common_common__WEBPACK_IMPORTED_MODULE_8__["default"].lineBreakRegex);
  46135. for (var j = 0; j < rows.length; j++) {
  46136. var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');
  46137. tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');
  46138. tspan.setAttribute('dy', '1em');
  46139. tspan.setAttribute('x', '1');
  46140. tspan.textContent = rows[j];
  46141. svgLabel.appendChild(tspan);
  46142. }
  46143. vertexNode = svgLabel;
  46144. }
  46145. var radious = 0;
  46146. var _shape = ''; // Set the shape based parameters
  46147. switch (vertex.type) {
  46148. case 'round':
  46149. radious = 5;
  46150. _shape = 'rect';
  46151. break;
  46152. case 'square':
  46153. _shape = 'rect';
  46154. break;
  46155. case 'diamond':
  46156. _shape = 'question';
  46157. break;
  46158. case 'hexagon':
  46159. _shape = 'hexagon';
  46160. break;
  46161. case 'odd':
  46162. _shape = 'rect_left_inv_arrow';
  46163. break;
  46164. case 'lean_right':
  46165. _shape = 'lean_right';
  46166. break;
  46167. case 'lean_left':
  46168. _shape = 'lean_left';
  46169. break;
  46170. case 'trapezoid':
  46171. _shape = 'trapezoid';
  46172. break;
  46173. case 'inv_trapezoid':
  46174. _shape = 'inv_trapezoid';
  46175. break;
  46176. case 'odd_right':
  46177. _shape = 'rect_left_inv_arrow';
  46178. break;
  46179. case 'circle':
  46180. _shape = 'circle';
  46181. break;
  46182. case 'ellipse':
  46183. _shape = 'ellipse';
  46184. break;
  46185. case 'stadium':
  46186. _shape = 'stadium';
  46187. break;
  46188. case 'subroutine':
  46189. _shape = 'subroutine';
  46190. break;
  46191. case 'cylinder':
  46192. _shape = 'cylinder';
  46193. break;
  46194. case 'group':
  46195. _shape = 'rect';
  46196. break;
  46197. default:
  46198. _shape = 'rect';
  46199. } // Add the node
  46200. g.setNode(vertex.id, {
  46201. labelStyle: styles.labelStyle,
  46202. shape: _shape,
  46203. labelText: vertexText,
  46204. rx: radious,
  46205. ry: radious,
  46206. class: classStr,
  46207. style: styles.style,
  46208. id: vertex.id,
  46209. width: vertex.type === 'group' ? 500 : undefined,
  46210. type: vertex.type,
  46211. padding: Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.padding
  46212. });
  46213. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].info('setNode', {
  46214. labelStyle: styles.labelStyle,
  46215. shape: _shape,
  46216. labelText: vertexText,
  46217. rx: radious,
  46218. ry: radious,
  46219. class: classStr,
  46220. style: styles.style,
  46221. id: vertex.id,
  46222. width: vertex.type === 'group' ? 500 : undefined,
  46223. type: vertex.type,
  46224. padding: Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.padding
  46225. });
  46226. });
  46227. };
  46228. /**
  46229. * Add edges to graph based on parsed graph defninition
  46230. * @param {Object} edges The edges to add to the graph
  46231. * @param {Object} g The graph object
  46232. */
  46233. var addEdges = function addEdges(edges, g) {
  46234. var cnt = 0;
  46235. var defaultStyle;
  46236. var defaultLabelStyle;
  46237. if (typeof edges.defaultStyle !== 'undefined') {
  46238. var defaultStyles = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getStylesFromArray"])(edges.defaultStyle);
  46239. defaultStyle = defaultStyles.style;
  46240. defaultLabelStyle = defaultStyles.labelStyle;
  46241. }
  46242. edges.forEach(function (edge) {
  46243. cnt++; // Identify Link
  46244. var linkId = 'L-' + edge.start + '-' + edge.end;
  46245. var linkNameStart = 'LS-' + edge.start;
  46246. var linkNameEnd = 'LE-' + edge.end;
  46247. var edgeData = {}; //edgeData.id = 'id' + cnt;
  46248. // Set link type for rendering
  46249. if (edge.type === 'arrow_open') {
  46250. edgeData.arrowhead = 'none';
  46251. } else {
  46252. edgeData.arrowhead = 'normal';
  46253. } // Check of arrow types, placed here in order not to break old rendering
  46254. edgeData.arrowTypeStart = 'arrow_open';
  46255. edgeData.arrowTypeEnd = 'arrow_open';
  46256. /* eslint-disable no-fallthrough */
  46257. switch (edge.type) {
  46258. case 'double_arrow_cross':
  46259. edgeData.arrowTypeStart = 'arrow_cross';
  46260. case 'arrow_cross':
  46261. edgeData.arrowTypeEnd = 'arrow_cross';
  46262. break;
  46263. case 'double_arrow_point':
  46264. edgeData.arrowTypeStart = 'arrow_point';
  46265. case 'arrow_point':
  46266. edgeData.arrowTypeEnd = 'arrow_point';
  46267. break;
  46268. case 'double_arrow_circle':
  46269. edgeData.arrowTypeStart = 'arrow_circle';
  46270. case 'arrow_circle':
  46271. edgeData.arrowTypeEnd = 'arrow_circle';
  46272. break;
  46273. } // logger.info('apa', edgeData, edge);
  46274. // edgeData.arrowTypeStart = edge.arrowTypeStart;
  46275. // edgeData.arrowTypeStart = edge.arrowTypeStart;
  46276. // edgeData.arrowType = edgeData.arrowTypeEnd;
  46277. // logger.info('apa', edgeData, edge);
  46278. var style = '';
  46279. var labelStyle = '';
  46280. if (typeof edge.style !== 'undefined') {
  46281. var styles = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getStylesFromArray"])(edge.style);
  46282. style = styles.style;
  46283. labelStyle = styles.labelStyle;
  46284. } else {
  46285. switch (edge.stroke) {
  46286. case 'normal':
  46287. style = 'fill:none';
  46288. if (typeof defaultStyle !== 'undefined') {
  46289. style = defaultStyle;
  46290. }
  46291. if (typeof defaultLabelStyle !== 'undefined') {
  46292. labelStyle = defaultLabelStyle;
  46293. }
  46294. edgeData.thickness = 'normal';
  46295. edgeData.pattern = 'solid';
  46296. break;
  46297. case 'dotted':
  46298. edgeData.thickness = 'normal';
  46299. edgeData.pattern = 'dotted';
  46300. break;
  46301. case 'thick':
  46302. edgeData.thickness = 'thick';
  46303. edgeData.pattern = 'solid';
  46304. break;
  46305. }
  46306. }
  46307. edgeData.style = style;
  46308. edgeData.labelStyle = labelStyle;
  46309. if (typeof edge.interpolate !== 'undefined') {
  46310. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["interpolateToCurve"])(edge.interpolate, d3__WEBPACK_IMPORTED_MODULE_1__["curveLinear"]);
  46311. } else if (typeof edges.defaultInterpolate !== 'undefined') {
  46312. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["interpolateToCurve"])(edges.defaultInterpolate, d3__WEBPACK_IMPORTED_MODULE_1__["curveLinear"]);
  46313. } else {
  46314. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["interpolateToCurve"])(conf.curve, d3__WEBPACK_IMPORTED_MODULE_1__["curveLinear"]);
  46315. }
  46316. if (typeof edge.text === 'undefined') {
  46317. if (typeof edge.style !== 'undefined') {
  46318. edgeData.arrowheadStyle = 'fill: #333';
  46319. }
  46320. } else {
  46321. edgeData.arrowheadStyle = 'fill: #333';
  46322. edgeData.labelpos = 'c';
  46323. if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels && false) {
  46324. // eslint-disable-line
  46325. edgeData.labelType = 'html';
  46326. edgeData.label = "<span id=\"L-".concat(linkId, "\" class=\"edgeLabel L-").concat(linkNameStart, "' L-").concat(linkNameEnd, "\">").concat(edge.text, "</span>");
  46327. } else {
  46328. edgeData.labelType = 'text';
  46329. edgeData.label = edge.text.replace(_common_common__WEBPACK_IMPORTED_MODULE_8__["default"].lineBreakRegex, '\n');
  46330. if (typeof edge.style === 'undefined') {
  46331. edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';
  46332. }
  46333. edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');
  46334. }
  46335. }
  46336. edgeData.id = linkId;
  46337. edgeData.classes = 'flowchart-link ' + linkNameStart + ' ' + linkNameEnd; // Add the edge to the graph
  46338. g.setEdge(edge.start, edge.end, edgeData, cnt);
  46339. });
  46340. };
  46341. /**
  46342. * Returns the all the styles from classDef statements in the graph definition.
  46343. * @returns {object} classDef styles
  46344. */
  46345. var getClasses = function getClasses(text) {
  46346. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].info('Extracting classes');
  46347. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].clear();
  46348. var parser = _parser_flow__WEBPACK_IMPORTED_MODULE_3___default.a.parser;
  46349. parser.yy = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"];
  46350. try {
  46351. // Parse the graph definition
  46352. parser.parse(text);
  46353. } catch (e) {
  46354. return;
  46355. }
  46356. return _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getClasses();
  46357. };
  46358. /**
  46359. * Draws a flowchart in the tag with id: id based on the graph definition in text.
  46360. * @param text
  46361. * @param id
  46362. */
  46363. var draw = function draw(text, id) {
  46364. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].info('Drawing flowchart');
  46365. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].clear();
  46366. var parser = _parser_flow__WEBPACK_IMPORTED_MODULE_3___default.a.parser;
  46367. parser.yy = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"]; // Parse the graph definition
  46368. // try {
  46369. parser.parse(text); // } catch (err) {
  46370. // logger.debug('Parsing failed');
  46371. // }
  46372. // Fetch the default direction, use TD if none was found
  46373. var dir = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getDirection();
  46374. if (typeof dir === 'undefined') {
  46375. dir = 'TD';
  46376. }
  46377. var conf = Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart;
  46378. var nodeSpacing = conf.nodeSpacing || 50;
  46379. var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph
  46380. var g = new graphlib__WEBPACK_IMPORTED_MODULE_0___default.a.Graph({
  46381. multigraph: true,
  46382. compound: true
  46383. }).setGraph({
  46384. rankdir: dir,
  46385. nodesep: nodeSpacing,
  46386. ranksep: rankSpacing,
  46387. marginx: 8,
  46388. marginy: 8
  46389. }).setDefaultEdgeLabel(function () {
  46390. return {};
  46391. });
  46392. var subG;
  46393. var subGraphs = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getSubGraphs();
  46394. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].info('Subgraphs - ', subGraphs);
  46395. for (var _i = subGraphs.length - 1; _i >= 0; _i--) {
  46396. subG = subGraphs[_i];
  46397. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].info('Subgraph - ', subG);
  46398. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].addVertex(subG.id, subG.title, 'group', undefined, subG.classes);
  46399. } // Fetch the verices/nodes and edges/links from the parsed graph definition
  46400. var vert = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getVertices();
  46401. var edges = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getEdges();
  46402. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].info(edges);
  46403. var i = 0;
  46404. for (i = subGraphs.length - 1; i >= 0; i--) {
  46405. subG = subGraphs[i];
  46406. Object(d3__WEBPACK_IMPORTED_MODULE_1__["selectAll"])('cluster').append('text');
  46407. for (var j = 0; j < subG.nodes.length; j++) {
  46408. g.setParent(subG.nodes[j], subG.id);
  46409. }
  46410. }
  46411. addVertices(vert, g, id);
  46412. addEdges(edges, g); // Add custom shapes
  46413. // flowChartShapes.addToRenderV2(addShape);
  46414. // Set up an SVG group so that we can translate the final graph.
  46415. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])("[id=\"".concat(id, "\"]")); // Run the renderer. This is what draws the final graph.
  46416. var element = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#' + id + ' g');
  46417. Object(_dagre_wrapper_index_js__WEBPACK_IMPORTED_MODULE_5__["render"])(element, g, ['point', 'circle', 'cross'], 'flowchart', id); // dagre.layout(g);
  46418. element.selectAll('g.node').attr('title', function () {
  46419. return _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getTooltip(this.id);
  46420. });
  46421. var padding = conf.diagramPadding;
  46422. var svgBounds = svg.node().getBBox();
  46423. var width = svgBounds.width + padding * 2;
  46424. var height = svgBounds.height + padding * 2;
  46425. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].debug("new ViewBox 0 0 ".concat(width, " ").concat(height), "translate(".concat(padding - g._label.marginx, ", ").concat(padding - g._label.marginy, ")"));
  46426. if (conf.useMaxWidth) {
  46427. svg.attr('width', '100%');
  46428. svg.attr('style', "max-width: ".concat(width, "px;"));
  46429. } else {
  46430. svg.attr('height', height);
  46431. svg.attr('width', width);
  46432. }
  46433. svg.attr('viewBox', "0 0 ".concat(width, " ").concat(height));
  46434. svg.select('g').attr('transform', "translate(".concat(padding - g._label.marginx, ", ").concat(padding - svgBounds.y, ")")); // Index nodes
  46435. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].indexNodes('subGraph' + i); // // reposition labels
  46436. // for (i = 0; i < subGraphs.length; i++) {
  46437. // subG = subGraphs[i];
  46438. // if (subG.title !== 'undefined') {
  46439. // const clusterRects = document.querySelectorAll('#' + id + ' [id="' + subG.id + '"] rect');
  46440. // const clusterEl = document.querySelectorAll('#' + id + ' [id="' + subG.id + '"]');
  46441. // const xPos = clusterRects[0].x.baseVal.value;
  46442. // const yPos = clusterRects[0].y.baseVal.value;
  46443. // const width = clusterRects[0].width.baseVal.value;
  46444. // const cluster = d3.select(clusterEl[0]);
  46445. // const te = cluster.select('.label');
  46446. // te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);
  46447. // te.attr('id', id + 'Text');
  46448. // for (let j = 0; j < subG.classes.length; j++) {
  46449. // clusterEl[0].classList.add(subG.classes[j]);
  46450. // }
  46451. // }
  46452. // }
  46453. // Add label rects for non html labels
  46454. if (!conf.htmlLabels) {
  46455. var labels = document.querySelectorAll('[id="' + id + '"] .edgeLabel .label');
  46456. for (var k = 0; k < labels.length; k++) {
  46457. var label = labels[k]; // Get dimensions of label
  46458. var dim = label.getBBox();
  46459. var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
  46460. rect.setAttribute('rx', 0);
  46461. rect.setAttribute('ry', 0);
  46462. rect.setAttribute('width', dim.width);
  46463. rect.setAttribute('height', dim.height);
  46464. rect.setAttribute('style', 'fill:#e8e8e8;');
  46465. label.insertBefore(rect, label.firstChild);
  46466. }
  46467. } // If node has a link, wrap it in an anchor SVG object.
  46468. var keys = Object.keys(vert);
  46469. keys.forEach(function (key) {
  46470. var vertex = vert[key];
  46471. if (vertex.link) {
  46472. var node = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#' + id + ' [id="' + key + '"]');
  46473. if (node) {
  46474. var link = document.createElementNS('http://www.w3.org/2000/svg', 'a');
  46475. link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));
  46476. link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);
  46477. link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');
  46478. var linkNode = node.insert(function () {
  46479. return link;
  46480. }, ':first-child');
  46481. var shape = node.select('.label-container');
  46482. if (shape) {
  46483. linkNode.append(function () {
  46484. return shape.node();
  46485. });
  46486. }
  46487. var _label = node.select('.label');
  46488. if (_label) {
  46489. linkNode.append(function () {
  46490. return _label.node();
  46491. });
  46492. }
  46493. }
  46494. }
  46495. });
  46496. };
  46497. /* harmony default export */ __webpack_exports__["default"] = ({
  46498. setConf: setConf,
  46499. addVertices: addVertices,
  46500. addEdges: addEdges,
  46501. getClasses: getClasses,
  46502. draw: draw
  46503. });
  46504. /***/ }),
  46505. /***/ "./src/diagrams/flowchart/flowRenderer.js":
  46506. /*!************************************************!*\
  46507. !*** ./src/diagrams/flowchart/flowRenderer.js ***!
  46508. \************************************************/
  46509. /*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */
  46510. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  46511. "use strict";
  46512. __webpack_require__.r(__webpack_exports__);
  46513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  46514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addVertices", function() { return addVertices; });
  46515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEdges", function() { return addEdges; });
  46516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClasses", function() { return getClasses; });
  46517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  46518. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
  46519. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_0__);
  46520. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  46521. /* harmony import */ var _flowDb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./flowDb */ "./src/diagrams/flowchart/flowDb.js");
  46522. /* harmony import */ var _parser_flow__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parser/flow */ "./src/diagrams/flowchart/parser/flow.jison");
  46523. /* harmony import */ var _parser_flow__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_parser_flow__WEBPACK_IMPORTED_MODULE_3__);
  46524. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  46525. /* harmony import */ var dagre_d3__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dagre-d3 */ "./node_modules/dagre-d3/index.js");
  46526. /* harmony import */ var dagre_d3__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(dagre_d3__WEBPACK_IMPORTED_MODULE_5__);
  46527. /* harmony import */ var dagre_d3_lib_label_add_html_label_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dagre-d3/lib/label/add-html-label.js */ "./node_modules/dagre-d3/lib/label/add-html-label.js");
  46528. /* harmony import */ var dagre_d3_lib_label_add_html_label_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(dagre_d3_lib_label_add_html_label_js__WEBPACK_IMPORTED_MODULE_6__);
  46529. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  46530. /* harmony import */ var _common_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/common */ "./src/diagrams/common/common.js");
  46531. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  46532. /* harmony import */ var _flowChartShapes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./flowChartShapes */ "./src/diagrams/flowchart/flowChartShapes.js");
  46533. var conf = {};
  46534. var setConf = function setConf(cnf) {
  46535. var keys = Object.keys(cnf);
  46536. for (var i = 0; i < keys.length; i++) {
  46537. conf[keys[i]] = cnf[keys[i]];
  46538. }
  46539. };
  46540. /**
  46541. * Function that adds the vertices found in the graph definition to the graph to be rendered.
  46542. * @param vert Object containing the vertices.
  46543. * @param g The graph that is to be drawn.
  46544. */
  46545. var addVertices = function addVertices(vert, g, svgId) {
  46546. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])("[id=\"".concat(svgId, "\"]"));
  46547. var keys = Object.keys(vert); // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition
  46548. keys.forEach(function (id) {
  46549. var vertex = vert[id];
  46550. /**
  46551. * Variable for storing the classes for the vertex
  46552. * @type {string}
  46553. */
  46554. var classStr = 'default';
  46555. if (vertex.classes.length > 0) {
  46556. classStr = vertex.classes.join(' ');
  46557. }
  46558. var styles = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getStylesFromArray"])(vertex.styles); // Use vertex id as text in the box if no text is provided by the graph definition
  46559. var vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually
  46560. var vertexNode;
  46561. if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) {
  46562. // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?
  46563. var node = {
  46564. label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, function (s) {
  46565. return "<i class='".concat(s.replace(':', ' '), "'></i>");
  46566. })
  46567. };
  46568. vertexNode = dagre_d3_lib_label_add_html_label_js__WEBPACK_IMPORTED_MODULE_6___default()(svg, node).node();
  46569. vertexNode.parentNode.removeChild(vertexNode);
  46570. } else {
  46571. var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');
  46572. svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));
  46573. var rows = vertexText.split(_common_common__WEBPACK_IMPORTED_MODULE_8__["default"].lineBreakRegex);
  46574. for (var j = 0; j < rows.length; j++) {
  46575. var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');
  46576. tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');
  46577. tspan.setAttribute('dy', '1em');
  46578. tspan.setAttribute('x', '1');
  46579. tspan.textContent = rows[j];
  46580. svgLabel.appendChild(tspan);
  46581. }
  46582. vertexNode = svgLabel;
  46583. }
  46584. var radious = 0;
  46585. var _shape = ''; // Set the shape based parameters
  46586. switch (vertex.type) {
  46587. case 'round':
  46588. radious = 5;
  46589. _shape = 'rect';
  46590. break;
  46591. case 'square':
  46592. _shape = 'rect';
  46593. break;
  46594. case 'diamond':
  46595. _shape = 'question';
  46596. break;
  46597. case 'hexagon':
  46598. _shape = 'hexagon';
  46599. break;
  46600. case 'odd':
  46601. _shape = 'rect_left_inv_arrow';
  46602. break;
  46603. case 'lean_right':
  46604. _shape = 'lean_right';
  46605. break;
  46606. case 'lean_left':
  46607. _shape = 'lean_left';
  46608. break;
  46609. case 'trapezoid':
  46610. _shape = 'trapezoid';
  46611. break;
  46612. case 'inv_trapezoid':
  46613. _shape = 'inv_trapezoid';
  46614. break;
  46615. case 'odd_right':
  46616. _shape = 'rect_left_inv_arrow';
  46617. break;
  46618. case 'circle':
  46619. _shape = 'circle';
  46620. break;
  46621. case 'ellipse':
  46622. _shape = 'ellipse';
  46623. break;
  46624. case 'stadium':
  46625. _shape = 'stadium';
  46626. break;
  46627. case 'subroutine':
  46628. _shape = 'subroutine';
  46629. break;
  46630. case 'cylinder':
  46631. _shape = 'cylinder';
  46632. break;
  46633. case 'group':
  46634. _shape = 'rect';
  46635. break;
  46636. default:
  46637. _shape = 'rect';
  46638. } // Add the node
  46639. g.setNode(vertex.id, {
  46640. labelType: 'svg',
  46641. labelStyle: styles.labelStyle,
  46642. shape: _shape,
  46643. label: vertexNode,
  46644. rx: radious,
  46645. ry: radious,
  46646. class: classStr,
  46647. style: styles.style,
  46648. id: vertex.id
  46649. });
  46650. });
  46651. };
  46652. /**
  46653. * Add edges to graph based on parsed graph defninition
  46654. * @param {Object} edges The edges to add to the graph
  46655. * @param {Object} g The graph object
  46656. */
  46657. var addEdges = function addEdges(edges, g) {
  46658. var cnt = 0;
  46659. var defaultStyle;
  46660. var defaultLabelStyle;
  46661. if (typeof edges.defaultStyle !== 'undefined') {
  46662. var defaultStyles = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getStylesFromArray"])(edges.defaultStyle);
  46663. defaultStyle = defaultStyles.style;
  46664. defaultLabelStyle = defaultStyles.labelStyle;
  46665. }
  46666. edges.forEach(function (edge) {
  46667. cnt++; // Identify Link
  46668. var linkId = 'L-' + edge.start + '-' + edge.end;
  46669. var linkNameStart = 'LS-' + edge.start;
  46670. var linkNameEnd = 'LE-' + edge.end;
  46671. var edgeData = {}; // Set link type for rendering
  46672. if (edge.type === 'arrow_open') {
  46673. edgeData.arrowhead = 'none';
  46674. } else {
  46675. edgeData.arrowhead = 'normal';
  46676. }
  46677. var style = '';
  46678. var labelStyle = '';
  46679. if (typeof edge.style !== 'undefined') {
  46680. var styles = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getStylesFromArray"])(edge.style);
  46681. style = styles.style;
  46682. labelStyle = styles.labelStyle;
  46683. } else {
  46684. switch (edge.stroke) {
  46685. case 'normal':
  46686. style = 'fill:none';
  46687. if (typeof defaultStyle !== 'undefined') {
  46688. style = defaultStyle;
  46689. }
  46690. if (typeof defaultLabelStyle !== 'undefined') {
  46691. labelStyle = defaultLabelStyle;
  46692. }
  46693. break;
  46694. case 'dotted':
  46695. style = 'fill:none;stroke-width:2px;stroke-dasharray:3;';
  46696. break;
  46697. case 'thick':
  46698. style = ' stroke-width: 3.5px;fill:none';
  46699. break;
  46700. }
  46701. }
  46702. edgeData.style = style;
  46703. edgeData.labelStyle = labelStyle;
  46704. if (typeof edge.interpolate !== 'undefined') {
  46705. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["interpolateToCurve"])(edge.interpolate, d3__WEBPACK_IMPORTED_MODULE_1__["curveLinear"]);
  46706. } else if (typeof edges.defaultInterpolate !== 'undefined') {
  46707. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["interpolateToCurve"])(edges.defaultInterpolate, d3__WEBPACK_IMPORTED_MODULE_1__["curveLinear"]);
  46708. } else {
  46709. edgeData.curve = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["interpolateToCurve"])(conf.curve, d3__WEBPACK_IMPORTED_MODULE_1__["curveLinear"]);
  46710. }
  46711. if (typeof edge.text === 'undefined') {
  46712. if (typeof edge.style !== 'undefined') {
  46713. edgeData.arrowheadStyle = 'fill: #333';
  46714. }
  46715. } else {
  46716. edgeData.arrowheadStyle = 'fill: #333';
  46717. edgeData.labelpos = 'c';
  46718. if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) {
  46719. edgeData.labelType = 'html';
  46720. edgeData.label = "<span id=\"L-".concat(linkId, "\" class=\"edgeLabel L-").concat(linkNameStart, "' L-").concat(linkNameEnd, "\">").concat(edge.text, "</span>");
  46721. } else {
  46722. edgeData.labelType = 'text';
  46723. edgeData.label = edge.text.replace(_common_common__WEBPACK_IMPORTED_MODULE_8__["default"].lineBreakRegex, '\n');
  46724. if (typeof edge.style === 'undefined') {
  46725. edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';
  46726. }
  46727. edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');
  46728. }
  46729. }
  46730. edgeData.id = linkId;
  46731. edgeData.class = linkNameStart + ' ' + linkNameEnd; // Add the edge to the graph
  46732. g.setEdge(edge.start, edge.end, edgeData, cnt);
  46733. });
  46734. };
  46735. /**
  46736. * Returns the all the styles from classDef statements in the graph definition.
  46737. * @returns {object} classDef styles
  46738. */
  46739. var getClasses = function getClasses(text) {
  46740. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].info('Extracting classes');
  46741. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].clear();
  46742. try {
  46743. var parser = _parser_flow__WEBPACK_IMPORTED_MODULE_3___default.a.parser;
  46744. parser.yy = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"]; // Parse the graph definition
  46745. parser.parse(text);
  46746. return _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getClasses();
  46747. } catch (e) {
  46748. return;
  46749. }
  46750. };
  46751. /**
  46752. * Draws a flowchart in the tag with id: id based on the graph definition in text.
  46753. * @param text
  46754. * @param id
  46755. */
  46756. var draw = function draw(text, id) {
  46757. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].info('Drawing flowchart');
  46758. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].clear();
  46759. var parser = _parser_flow__WEBPACK_IMPORTED_MODULE_3___default.a.parser;
  46760. parser.yy = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"]; // Parse the graph definition
  46761. // try {
  46762. parser.parse(text); // } catch (err) {
  46763. // logger.debug('Parsing failed');
  46764. // }
  46765. // Fetch the default direction, use TD if none was found
  46766. var dir = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getDirection();
  46767. if (typeof dir === 'undefined') {
  46768. dir = 'TD';
  46769. }
  46770. var conf = Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart;
  46771. var nodeSpacing = conf.nodeSpacing || 50;
  46772. var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph
  46773. var g = new graphlib__WEBPACK_IMPORTED_MODULE_0___default.a.Graph({
  46774. multigraph: true,
  46775. compound: true
  46776. }).setGraph({
  46777. rankdir: dir,
  46778. nodesep: nodeSpacing,
  46779. ranksep: rankSpacing,
  46780. marginx: 8,
  46781. marginy: 8
  46782. }).setDefaultEdgeLabel(function () {
  46783. return {};
  46784. });
  46785. var subG;
  46786. var subGraphs = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getSubGraphs();
  46787. for (var _i = subGraphs.length - 1; _i >= 0; _i--) {
  46788. subG = subGraphs[_i];
  46789. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].addVertex(subG.id, subG.title, 'group', undefined, subG.classes);
  46790. } // Fetch the verices/nodes and edges/links from the parsed graph definition
  46791. var vert = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getVertices();
  46792. var edges = _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getEdges();
  46793. var i = 0;
  46794. for (i = subGraphs.length - 1; i >= 0; i--) {
  46795. subG = subGraphs[i];
  46796. Object(d3__WEBPACK_IMPORTED_MODULE_1__["selectAll"])('cluster').append('text');
  46797. for (var j = 0; j < subG.nodes.length; j++) {
  46798. g.setParent(subG.nodes[j], subG.id);
  46799. }
  46800. }
  46801. addVertices(vert, g, id);
  46802. addEdges(edges, g); // Create the renderer
  46803. var Render = dagre_d3__WEBPACK_IMPORTED_MODULE_5___default.a.render;
  46804. var render = new Render(); // Add custom shapes
  46805. _flowChartShapes__WEBPACK_IMPORTED_MODULE_10__["default"].addToRender(render); // Add our custom arrow - an empty arrowhead
  46806. render.arrows().none = function normal(parent, id, edge, type) {
  46807. var 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');
  46808. var path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');
  46809. dagre_d3__WEBPACK_IMPORTED_MODULE_5___default.a.util.applyStyle(path, edge[type + 'Style']);
  46810. }; // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.
  46811. render.arrows().normal = function normal(parent, id) {
  46812. var 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');
  46813. 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');
  46814. }; // Set up an SVG group so that we can translate the final graph.
  46815. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])("[id=\"".concat(id, "\"]")); // Run the renderer. This is what draws the final graph.
  46816. var element = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#' + id + ' g');
  46817. render(element, g);
  46818. element.selectAll('g.node').attr('title', function () {
  46819. return _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].getTooltip(this.id);
  46820. });
  46821. var padding = conf.diagramPadding;
  46822. var svgBounds = svg.node().getBBox();
  46823. var width = svgBounds.width + padding * 2;
  46824. var height = svgBounds.height + padding * 2;
  46825. if (conf.useMaxWidth) {
  46826. svg.attr('width', '100%');
  46827. svg.attr('style', "max-width: ".concat(width, "px;"));
  46828. } else {
  46829. svg.attr('height', height);
  46830. svg.attr('width', width);
  46831. } // Ensure the viewBox includes the whole svgBounds area with extra space for padding
  46832. var vBox = "".concat(svgBounds.x - padding, " ").concat(svgBounds.y - padding, " ").concat(width, " ").concat(height);
  46833. _logger__WEBPACK_IMPORTED_MODULE_7__["logger"].debug("viewBox ".concat(vBox));
  46834. svg.attr('viewBox', vBox); // Index nodes
  46835. _flowDb__WEBPACK_IMPORTED_MODULE_2__["default"].indexNodes('subGraph' + i); // reposition labels
  46836. for (i = 0; i < subGraphs.length; i++) {
  46837. subG = subGraphs[i];
  46838. if (subG.title !== 'undefined') {
  46839. var clusterRects = document.querySelectorAll('#' + id + ' [id="' + subG.id + '"] rect');
  46840. var clusterEl = document.querySelectorAll('#' + id + ' [id="' + subG.id + '"]');
  46841. var xPos = clusterRects[0].x.baseVal.value;
  46842. var yPos = clusterRects[0].y.baseVal.value;
  46843. var _width = clusterRects[0].width.baseVal.value;
  46844. var cluster = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])(clusterEl[0]);
  46845. var te = cluster.select('.label');
  46846. te.attr('transform', "translate(".concat(xPos + _width / 2, ", ").concat(yPos + 14, ")"));
  46847. te.attr('id', id + 'Text');
  46848. for (var _j = 0; _j < subG.classes.length; _j++) {
  46849. clusterEl[0].classList.add(subG.classes[_j]);
  46850. }
  46851. }
  46852. } // Add label rects for non html labels
  46853. if (!conf.htmlLabels || true) {
  46854. // eslint-disable-line
  46855. var labels = document.querySelectorAll('[id="' + id + '"] .edgeLabel .label');
  46856. for (var k = 0; k < labels.length; k++) {
  46857. var label = labels[k]; // Get dimensions of label
  46858. var dim = label.getBBox();
  46859. var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
  46860. rect.setAttribute('rx', 0);
  46861. rect.setAttribute('ry', 0);
  46862. rect.setAttribute('width', dim.width);
  46863. rect.setAttribute('height', dim.height);
  46864. rect.setAttribute('style', 'fill:#e8e8e8;');
  46865. label.insertBefore(rect, label.firstChild);
  46866. }
  46867. } // If node has a link, wrap it in an anchor SVG object.
  46868. var keys = Object.keys(vert);
  46869. keys.forEach(function (key) {
  46870. var vertex = vert[key];
  46871. if (vertex.link) {
  46872. var node = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#' + id + ' [id="' + key + '"]');
  46873. if (node) {
  46874. var link = document.createElementNS('http://www.w3.org/2000/svg', 'a');
  46875. link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));
  46876. link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);
  46877. link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');
  46878. var linkNode = node.insert(function () {
  46879. return link;
  46880. }, ':first-child');
  46881. var shape = node.select('.label-container');
  46882. if (shape) {
  46883. linkNode.append(function () {
  46884. return shape.node();
  46885. });
  46886. }
  46887. var _label = node.select('.label');
  46888. if (_label) {
  46889. linkNode.append(function () {
  46890. return _label.node();
  46891. });
  46892. }
  46893. }
  46894. }
  46895. });
  46896. };
  46897. /* harmony default export */ __webpack_exports__["default"] = ({
  46898. setConf: setConf,
  46899. addVertices: addVertices,
  46900. addEdges: addEdges,
  46901. getClasses: getClasses,
  46902. draw: draw
  46903. });
  46904. /***/ }),
  46905. /***/ "./src/diagrams/flowchart/parser/flow.jison":
  46906. /*!**************************************************!*\
  46907. !*** ./src/diagrams/flowchart/parser/flow.jison ***!
  46908. \**************************************************/
  46909. /*! no static exports found */
  46910. /***/ (function(module, exports, __webpack_require__) {
  46911. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  46912. /*
  46913. Returns a Parser object of the following structure:
  46914. Parser: {
  46915. yy: {}
  46916. }
  46917. Parser.prototype: {
  46918. yy: {},
  46919. trace: function(),
  46920. symbols_: {associative list: name ==> number},
  46921. terminals_: {associative list: number ==> name},
  46922. productions_: [...],
  46923. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  46924. table: [...],
  46925. defaultActions: {...},
  46926. parseError: function(str, hash),
  46927. parse: function(input),
  46928. lexer: {
  46929. EOF: 1,
  46930. parseError: function(str, hash),
  46931. setInput: function(input),
  46932. input: function(),
  46933. unput: function(str),
  46934. more: function(),
  46935. less: function(n),
  46936. pastInput: function(),
  46937. upcomingInput: function(),
  46938. showPosition: function(),
  46939. test_match: function(regex_match_array, rule_index),
  46940. next: function(),
  46941. lex: function(),
  46942. begin: function(condition),
  46943. popState: function(),
  46944. _currentRules: function(),
  46945. topState: function(),
  46946. pushState: function(condition),
  46947. options: {
  46948. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  46949. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  46950. 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)
  46951. },
  46952. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  46953. rules: [...],
  46954. conditions: {associative list: name ==> set},
  46955. }
  46956. }
  46957. token location info (@$, _$, etc.): {
  46958. first_line: n,
  46959. last_line: n,
  46960. first_column: n,
  46961. last_column: n,
  46962. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  46963. }
  46964. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  46965. text: (matched text)
  46966. token: (the produced terminal token, if any)
  46967. line: (yylineno)
  46968. }
  46969. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  46970. loc: (yylloc)
  46971. expected: (string describing the set of expected tokens)
  46972. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  46973. }
  46974. */
  46975. var parser = (function(){
  46976. 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,26,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$V4=[2,2],$V5=[1,12],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,22],$Va=[1,46],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,40],$Vh=[1,35],$Vi=[1,37],$Vj=[1,32],$Vk=[1,36],$Vl=[1,39],$Vm=[1,43],$Vn=[1,44],$Vo=[1,45],$Vp=[1,34],$Vq=[1,38],$Vr=[1,41],$Vs=[1,42],$Vt=[1,33],$Vu=[1,51],$Vv=[1,8,9,10,11,26,30,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Vw=[1,55],$Vx=[1,54],$Vy=[1,56],$Vz=[8,9,11,57,58],$VA=[8,9,10,11,57,58],$VB=[8,9,10,11,35,57,58],$VC=[8,9,10,11,28,34,35,37,39,41,43,45,47,49,50,52,57,58,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VD=[8,9,11,34,57,58,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VE=[34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VF=[1,101],$VG=[1,122],$VH=[1,123],$VI=[1,124],$VJ=[1,125],$VK=[1,105],$VL=[1,96],$VM=[1,97],$VN=[1,93],$VO=[1,117],$VP=[1,118],$VQ=[1,119],$VR=[1,120],$VS=[1,121],$VT=[1,126],$VU=[1,127],$VV=[1,99],$VW=[1,107],$VX=[1,110],$VY=[1,108],$VZ=[1,109],$V_=[1,102],$V$=[1,115],$V01=[1,114],$V11=[1,98],$V21=[1,95],$V31=[1,104],$V41=[1,106],$V51=[1,111],$V61=[1,112],$V71=[1,113],$V81=[1,116],$V91=[8,9,10,11,26,30,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Va1=[1,130],$Vb1=[1,134],$Vc1=[1,136],$Vd1=[1,137],$Ve1=[8,9,10,11,12,13,26,28,29,30,34,38,40,42,44,46,48,49,51,53,57,58,59,63,64,65,66,67,68,69,72,78,79,82,83,84,86,87,88,89,93,94,95,96,97,98],$Vf1=[8,9,10,11,13,34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Vg1=[10,79],$Vh1=[1,204],$Vi1=[1,208],$Vj1=[1,205],$Vk1=[1,202],$Vl1=[1,199],$Vm1=[1,200],$Vn1=[1,201],$Vo1=[1,203],$Vp1=[1,206],$Vq1=[1,207],$Vr1=[1,209],$Vs1=[8,9,11],$Vt1=[1,225],$Vu1=[8,9,11,79],$Vv1=[8,9,10,11,63,75,78,79,82,83,84,85,86,87,88];
  46977. var parser = {trace: function trace () { },
  46978. yy: {},
  46979. 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,"ending":15,"endToken":16,"spaceList":17,"spaceListNewline":18,"verticeStatement":19,"separator":20,"styleStatement":21,"linkStyleStatement":22,"classDefStatement":23,"classStatement":24,"clickStatement":25,"subgraph":26,"text":27,"SQS":28,"SQE":29,"end":30,"link":31,"node":32,"vertex":33,"AMP":34,"STYLE_SEPARATOR":35,"idString":36,"PS":37,"PE":38,"(-":39,"-)":40,"STADIUMSTART":41,"STADIUMEND":42,"SUBROUTINESTART":43,"SUBROUTINEEND":44,"CYLINDERSTART":45,"CYLINDEREND":46,"DIAMOND_START":47,"DIAMOND_STOP":48,"TAGEND":49,"TRAPSTART":50,"TRAPEND":51,"INVTRAPSTART":52,"INVTRAPEND":53,"linkStatement":54,"arrowText":55,"TESTSTR":56,"START_LINK":57,"LINK":58,"PIPE":59,"textToken":60,"STR":61,"keywords":62,"STYLE":63,"LINKSTYLE":64,"CLASSDEF":65,"CLASS":66,"CLICK":67,"DOWN":68,"UP":69,"textNoTags":70,"textNoTagsToken":71,"DEFAULT":72,"stylesOpt":73,"alphaNum":74,"HEX":75,"numList":76,"INTERPOLATE":77,"NUM":78,"COMMA":79,"style":80,"styleComponent":81,"ALPHA":82,"COLON":83,"MINUS":84,"UNIT":85,"BRKT":86,"DOT":87,"PCT":88,"TAGSTART":89,"alphaNumToken":90,"idStringToken":91,"alphaNumStatement":92,"PUNCTUATION":93,"UNICODE_TEXT":94,"PLUS":95,"EQUALS":96,"MULT":97,"UNDERSCORE":98,"graphCodeTokens":99,"ARROW_CROSS":100,"ARROW_POINT":101,"ARROW_CIRCLE":102,"ARROW_OPEN":103,"QUOTE":104,"$accept":0,"$end":1},
  46980. terminals_: {2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"DIR",26:"subgraph",28:"SQS",29:"SQE",30:"end",34:"AMP",35:"STYLE_SEPARATOR",37:"PS",38:"PE",39:"(-",40:"-)",41:"STADIUMSTART",42:"STADIUMEND",43:"SUBROUTINESTART",44:"SUBROUTINEEND",45:"CYLINDERSTART",46:"CYLINDEREND",47:"DIAMOND_START",48:"DIAMOND_STOP",49:"TAGEND",50:"TRAPSTART",51:"TRAPEND",52:"INVTRAPSTART",53:"INVTRAPEND",56:"TESTSTR",57:"START_LINK",58:"LINK",59:"PIPE",61:"STR",63:"STYLE",64:"LINKSTYLE",65:"CLASSDEF",66:"CLASS",67:"CLICK",68:"DOWN",69:"UP",72:"DEFAULT",75:"HEX",77:"INTERPOLATE",78:"NUM",79:"COMMA",82:"ALPHA",83:"COLON",84:"MINUS",85:"UNIT",86:"BRKT",87:"DOT",88:"PCT",89:"TAGSTART",93:"PUNCTUATION",94:"UNICODE_TEXT",95:"PLUS",96:"EQUALS",97:"MULT",98:"UNDERSCORE",100:"ARROW_CROSS",101:"ARROW_POINT",102:"ARROW_CIRCLE",103:"ARROW_OPEN",104:"QUOTE"},
  46981. productions_: [0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,3],[15,2],[15,1],[16,1],[16,1],[16,1],[14,1],[14,1],[14,2],[18,2],[18,2],[18,1],[18,1],[17,2],[17,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[20,1],[20,1],[20,1],[19,3],[19,4],[19,2],[19,1],[32,1],[32,5],[32,3],[33,4],[33,6],[33,4],[33,4],[33,4],[33,4],[33,4],[33,4],[33,6],[33,4],[33,4],[33,4],[33,4],[33,4],[33,1],[31,2],[31,3],[31,3],[31,1],[31,3],[54,1],[55,3],[27,1],[27,2],[27,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[70,1],[70,2],[23,5],[23,5],[24,5],[25,5],[25,7],[25,5],[25,7],[21,5],[21,5],[22,5],[22,5],[22,9],[22,9],[22,7],[22,7],[76,1],[76,3],[73,1],[73,3],[80,1],[80,2],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[60,1],[60,1],[60,1],[60,1],[60,1],[60,1],[71,1],[71,1],[71,1],[71,1],[36,1],[36,2],[74,1],[74,2],[92,1],[92,1],[92,1],[92,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1]],
  46982. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  46983. /* this == yyval */
  46984. var $0 = $$.length - 1;
  46985. switch (yystate) {
  46986. case 2:
  46987. this.$ = [];
  46988. break;
  46989. case 3:
  46990. if($$[$0] !== []){
  46991. $$[$0-1].push($$[$0]);
  46992. }
  46993. this.$=$$[$0-1];
  46994. break;
  46995. case 4: case 67: case 69: case 81: case 127: case 129: case 130:
  46996. this.$=$$[$0];
  46997. break;
  46998. case 11:
  46999. yy.setDirection($$[$0-1]);this.$ = $$[$0-1];
  47000. break;
  47001. case 26:
  47002. /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes
  47003. break;
  47004. case 27: case 28: case 29: case 30: case 31:
  47005. this.$=[];
  47006. break;
  47007. case 32:
  47008. this.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);
  47009. break;
  47010. case 33:
  47011. this.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);
  47012. break;
  47013. case 34:
  47014. this.$=yy.addSubGraph(undefined,$$[$0-1],undefined);
  47015. break;
  47016. case 38:
  47017. /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) }
  47018. break;
  47019. case 39:
  47020. /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) }
  47021. break;
  47022. case 40:
  47023. /*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] }
  47024. break;
  47025. case 41:
  47026. /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] }
  47027. break;
  47028. case 42:
  47029. /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]];
  47030. break;
  47031. case 43:
  47032. this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */
  47033. break;
  47034. case 44:
  47035. this.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])
  47036. break;
  47037. case 45:
  47038. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');
  47039. break;
  47040. case 46:
  47041. this.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');
  47042. break;
  47043. case 47:
  47044. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');
  47045. break;
  47046. case 48:
  47047. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium');
  47048. break;
  47049. case 49:
  47050. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine');
  47051. break;
  47052. case 50:
  47053. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder');
  47054. break;
  47055. case 51:
  47056. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');
  47057. break;
  47058. case 52:
  47059. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');
  47060. break;
  47061. case 53:
  47062. this.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon');
  47063. break;
  47064. case 54:
  47065. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');
  47066. break;
  47067. case 55:
  47068. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');
  47069. break;
  47070. case 56:
  47071. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');
  47072. break;
  47073. case 57:
  47074. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');
  47075. break;
  47076. case 58:
  47077. this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');
  47078. break;
  47079. case 59:
  47080. /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]);
  47081. break;
  47082. case 60:
  47083. $$[$0-1].text = $$[$0];this.$ = $$[$0-1];
  47084. break;
  47085. case 61: case 62:
  47086. $$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];
  47087. break;
  47088. case 63:
  47089. this.$ = $$[$0];
  47090. break;
  47091. case 64:
  47092. var inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {"type":inf.type,"stroke":inf.stroke,"text":$$[$0-1]};
  47093. break;
  47094. case 65:
  47095. var inf = yy.destructLink($$[$0]);this.$ = {"type":inf.type,"stroke":inf.stroke};
  47096. break;
  47097. case 66:
  47098. this.$ = $$[$0-1];
  47099. break;
  47100. case 68: case 82: case 128:
  47101. this.$=$$[$0-1]+''+$$[$0];
  47102. break;
  47103. case 83: case 84:
  47104. this.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);
  47105. break;
  47106. case 85:
  47107. this.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);
  47108. break;
  47109. case 86:
  47110. this.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);
  47111. break;
  47112. case 87:
  47113. this.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;
  47114. break;
  47115. case 88:
  47116. this.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);
  47117. break;
  47118. case 89:
  47119. this.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );
  47120. break;
  47121. case 90:
  47122. this.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);
  47123. break;
  47124. case 91: case 93:
  47125. this.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);
  47126. break;
  47127. case 92:
  47128. this.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);
  47129. break;
  47130. case 94:
  47131. this.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);
  47132. break;
  47133. case 95:
  47134. this.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);
  47135. break;
  47136. case 96:
  47137. this.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);
  47138. break;
  47139. case 97:
  47140. this.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);
  47141. break;
  47142. case 98: case 100:
  47143. this.$ = [$$[$0]]
  47144. break;
  47145. case 99: case 101:
  47146. $$[$0-2].push($$[$0]);this.$ = $$[$0-2];
  47147. break;
  47148. case 103:
  47149. this.$ = $$[$0-1] + $$[$0];
  47150. break;
  47151. case 125:
  47152. this.$=$$[$0]
  47153. break;
  47154. case 126:
  47155. this.$=$$[$0-1]+''+$$[$0]
  47156. break;
  47157. case 131:
  47158. this.$='v';
  47159. break;
  47160. case 132:
  47161. this.$='-';
  47162. break;
  47163. }
  47164. },
  47165. 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},{13:[1,9]},{1:[2,1],6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($V3,[2,9]),o($V3,[2,10]),{8:[1,48],9:[1,49],10:$Vu,14:47,17:50},o($Vv,[2,3]),o($Vv,[2,4]),o($Vv,[2,5]),o($Vv,[2,6]),o($Vv,[2,7]),o($Vv,[2,8]),{8:$Vw,9:$Vx,11:$Vy,20:52,31:53,54:57,57:[1,58],58:[1,59]},{8:$Vw,9:$Vx,11:$Vy,20:60},{8:$Vw,9:$Vx,11:$Vy,20:61},{8:$Vw,9:$Vx,11:$Vy,20:62},{8:$Vw,9:$Vx,11:$Vy,20:63},{8:$Vw,9:$Vx,11:$Vy,20:64},{8:$Vw,9:$Vx,10:[1,65],11:$Vy,20:66},o($Vz,[2,41],{17:67,10:$Vu}),{10:[1,68]},{10:[1,69]},{10:[1,70]},{10:[1,71]},{10:[1,72]},o($VA,[2,42],{35:[1,73]}),o($VB,[2,59],{91:84,28:[1,74],34:$Va,37:[1,75],39:[1,76],41:[1,77],43:[1,78],45:[1,79],47:[1,80],49:[1,81],50:[1,82],52:[1,83],68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt}),o($VC,[2,125]),o($VC,[2,146]),o($VC,[2,147]),o($VC,[2,148]),o($VC,[2,149]),o($VC,[2,150]),o($VC,[2,151]),o($VC,[2,152]),o($VC,[2,153]),o($VC,[2,154]),o($VC,[2,155]),o($VC,[2,156]),o($VC,[2,157]),o($VC,[2,158]),o($VC,[2,159]),o($VC,[2,160]),o($V3,[2,11]),o($V3,[2,17]),o($V3,[2,18]),{9:[1,85]},o($VD,[2,25],{17:86,10:$Vu}),o($Vv,[2,26]),{32:87,33:29,34:$Va,36:30,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($Vv,[2,35]),o($Vv,[2,36]),o($Vv,[2,37]),o($VE,[2,63],{55:88,56:[1,89],59:[1,90]}),{10:$VF,12:$VG,13:$VH,26:$VI,27:91,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o([34,56,59,68,78,79,82,83,84,86,87,93,94,95,96,97,98],[2,65]),o($Vv,[2,27]),o($Vv,[2,28]),o($Vv,[2,29]),o($Vv,[2,30]),o($Vv,[2,31]),{10:$VF,12:$VG,13:$VH,26:$VI,27:128,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($V91,$V4,{5:129}),o($Vz,[2,40],{34:$Va1}),{13:$Vb1,34:$VK,68:$Vc1,74:131,75:[1,132],78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{72:[1,138],76:139,78:[1,140]},{13:$Vb1,34:$VK,68:$Vc1,72:[1,141],74:142,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:143,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:144,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{34:$Va,36:145,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$VF,12:$VG,13:$VH,26:$VI,27:146,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:148,30:$VJ,34:$VK,37:[1,147],49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:149,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:150,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:151,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:152,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:153,30:$VJ,34:$VK,47:[1,154],49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:155,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:156,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:157,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VC,[2,126]),o($V3,[2,19]),o($VD,[2,24]),o($Vz,[2,38],{17:158,10:$Vu}),o($VE,[2,60],{10:[1,159]}),{10:[1,160]},{10:$VF,12:$VG,13:$VH,26:$VI,27:161,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,57:$VM,58:[1,162],60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($Ve1,[2,67]),o($Ve1,[2,69]),o($Ve1,[2,115]),o($Ve1,[2,116]),o($Ve1,[2,117]),o($Ve1,[2,118]),o($Ve1,[2,119]),o($Ve1,[2,120]),o($Ve1,[2,121]),o($Ve1,[2,122]),o($Ve1,[2,123]),o($Ve1,[2,124]),o($Ve1,[2,133]),o($Ve1,[2,134]),o($Ve1,[2,135]),o($Ve1,[2,136]),o($Ve1,[2,137]),o($Ve1,[2,138]),o($Ve1,[2,139]),o($Ve1,[2,140]),o($Ve1,[2,141]),o($Ve1,[2,142]),o($Ve1,[2,143]),o($Ve1,[2,144]),o($Ve1,[2,145]),o($Ve1,[2,70]),o($Ve1,[2,71]),o($Ve1,[2,72]),o($Ve1,[2,73]),o($Ve1,[2,74]),o($Ve1,[2,75]),o($Ve1,[2,76]),o($Ve1,[2,77]),o($Ve1,[2,78]),o($Ve1,[2,79]),o($Ve1,[2,80]),{8:$Vw,9:$Vx,10:$VF,11:$Vy,12:$VG,13:$VH,20:165,26:$VI,28:[1,164],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,166],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vu,17:167},{10:[1,168],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,170]},o($Vf1,[2,127]),o($Vf1,[2,129]),o($Vf1,[2,130]),o($Vf1,[2,131]),o($Vf1,[2,132]),{10:[1,171]},{10:[1,172],79:[1,173]},o($Vg1,[2,98]),{10:[1,174]},{10:[1,175],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,176],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,177],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VA,[2,44],{91:84,34:$Va,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt}),{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,178],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:179,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,38:[1,180],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,40:[1,181],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,42:[1,182],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,44:[1,183],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,46:[1,184],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,48:[1,185],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:186,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,187],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,51:[1,188],53:[1,189],57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,51:[1,191],53:[1,190],57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($Vz,[2,39],{34:$Va1}),o($VE,[2,62]),o($VE,[2,61]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,57:$VM,59:[1,192],60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VE,[2,64]),o($Ve1,[2,68]),{10:$VF,12:$VG,13:$VH,26:$VI,27:193,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($V91,$V4,{5:194}),o($Vv,[2,34]),{33:195,34:$Va,36:30,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vh1,63:$Vi1,73:196,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vf1,[2,128]),{10:$Vh1,63:$Vi1,73:210,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:211,75:$Vj1,77:[1,212],78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:213,75:$Vj1,77:[1,214],78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{78:[1,215]},{10:$Vh1,63:$Vi1,73:216,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:217,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{13:$Vb1,34:$VK,68:$Vc1,74:218,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,61:[1,220],68:$Vc1,74:219,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,45]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,38:[1,221],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,51]),o($VB,[2,47]),o($VB,[2,48]),o($VB,[2,49]),o($VB,[2,50]),o($VB,[2,52]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,48:[1,222],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,54]),o($VB,[2,55]),o($VB,[2,57]),o($VB,[2,56]),o($VB,[2,58]),o([10,34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],[2,66]),{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,223],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,224],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($VA,[2,43]),o($Vs1,[2,90],{79:$Vt1}),o($Vu1,[2,100],{81:226,10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1}),o($Vv1,[2,102]),o($Vv1,[2,104]),o($Vv1,[2,105]),o($Vv1,[2,106]),o($Vv1,[2,107]),o($Vv1,[2,108]),o($Vv1,[2,109]),o($Vv1,[2,110]),o($Vv1,[2,111]),o($Vv1,[2,112]),o($Vv1,[2,113]),o($Vv1,[2,114]),o($Vs1,[2,91],{79:$Vt1}),o($Vs1,[2,92],{79:$Vt1}),{10:[1,227]},o($Vs1,[2,93],{79:$Vt1}),{10:[1,228]},o($Vg1,[2,99]),o($Vs1,[2,83],{79:$Vt1}),o($Vs1,[2,84],{79:$Vt1}),o($Vs1,[2,85],{90:135,92:169,13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,86],{90:135,92:169,10:[1,229],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,88],{10:[1,230]}),{38:[1,231]},{48:[1,232]},{8:$Vw,9:$Vx,11:$Vy,20:233},o($Vv,[2,33]),{10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,80:234,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vv1,[2,103]),{13:$Vb1,34:$VK,68:$Vc1,74:235,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:236,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{61:[1,237]},{61:[1,238]},o($VB,[2,46]),o($VB,[2,53]),o($V91,$V4,{5:239}),o($Vu1,[2,101],{81:226,10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1}),o($Vs1,[2,96],{90:135,92:169,10:[1,240],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,97],{90:135,92:169,10:[1,241],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,87]),o($Vs1,[2,89]),{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,242],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vh1,63:$Vi1,73:243,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:244,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vv,[2,32]),o($Vs1,[2,94],{79:$Vt1}),o($Vs1,[2,95],{79:$Vt1})],
  47166. defaultActions: {},
  47167. parseError: function parseError (str, hash) {
  47168. if (hash.recoverable) {
  47169. this.trace(str);
  47170. } else {
  47171. var error = new Error(str);
  47172. error.hash = hash;
  47173. throw error;
  47174. }
  47175. },
  47176. parse: function parse(input) {
  47177. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  47178. var args = lstack.slice.call(arguments, 1);
  47179. var lexer = Object.create(this.lexer);
  47180. var sharedState = { yy: {} };
  47181. for (var k in this.yy) {
  47182. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  47183. sharedState.yy[k] = this.yy[k];
  47184. }
  47185. }
  47186. lexer.setInput(input, sharedState.yy);
  47187. sharedState.yy.lexer = lexer;
  47188. sharedState.yy.parser = this;
  47189. if (typeof lexer.yylloc == 'undefined') {
  47190. lexer.yylloc = {};
  47191. }
  47192. var yyloc = lexer.yylloc;
  47193. lstack.push(yyloc);
  47194. var ranges = lexer.options && lexer.options.ranges;
  47195. if (typeof sharedState.yy.parseError === 'function') {
  47196. this.parseError = sharedState.yy.parseError;
  47197. } else {
  47198. this.parseError = Object.getPrototypeOf(this).parseError;
  47199. }
  47200. function popStack(n) {
  47201. stack.length = stack.length - 2 * n;
  47202. vstack.length = vstack.length - n;
  47203. lstack.length = lstack.length - n;
  47204. }
  47205. function lex() {
  47206. var token;
  47207. token = tstack.pop() || lexer.lex() || EOF;
  47208. if (typeof token !== 'number') {
  47209. if (token instanceof Array) {
  47210. tstack = token;
  47211. token = tstack.pop();
  47212. }
  47213. token = self.symbols_[token] || token;
  47214. }
  47215. return token;
  47216. }
  47217. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  47218. while (true) {
  47219. state = stack[stack.length - 1];
  47220. if (this.defaultActions[state]) {
  47221. action = this.defaultActions[state];
  47222. } else {
  47223. if (symbol === null || typeof symbol == 'undefined') {
  47224. symbol = lex();
  47225. }
  47226. action = table[state] && table[state][symbol];
  47227. }
  47228. if (typeof action === 'undefined' || !action.length || !action[0]) {
  47229. var errStr = '';
  47230. expected = [];
  47231. for (p in table[state]) {
  47232. if (this.terminals_[p] && p > TERROR) {
  47233. expected.push('\'' + this.terminals_[p] + '\'');
  47234. }
  47235. }
  47236. if (lexer.showPosition) {
  47237. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  47238. } else {
  47239. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  47240. }
  47241. this.parseError(errStr, {
  47242. text: lexer.match,
  47243. token: this.terminals_[symbol] || symbol,
  47244. line: lexer.yylineno,
  47245. loc: yyloc,
  47246. expected: expected
  47247. });
  47248. }
  47249. if (action[0] instanceof Array && action.length > 1) {
  47250. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  47251. }
  47252. switch (action[0]) {
  47253. case 1:
  47254. stack.push(symbol);
  47255. vstack.push(lexer.yytext);
  47256. lstack.push(lexer.yylloc);
  47257. stack.push(action[1]);
  47258. symbol = null;
  47259. if (!preErrorSymbol) {
  47260. yyleng = lexer.yyleng;
  47261. yytext = lexer.yytext;
  47262. yylineno = lexer.yylineno;
  47263. yyloc = lexer.yylloc;
  47264. if (recovering > 0) {
  47265. recovering--;
  47266. }
  47267. } else {
  47268. symbol = preErrorSymbol;
  47269. preErrorSymbol = null;
  47270. }
  47271. break;
  47272. case 2:
  47273. len = this.productions_[action[1]][1];
  47274. yyval.$ = vstack[vstack.length - len];
  47275. yyval._$ = {
  47276. first_line: lstack[lstack.length - (len || 1)].first_line,
  47277. last_line: lstack[lstack.length - 1].last_line,
  47278. first_column: lstack[lstack.length - (len || 1)].first_column,
  47279. last_column: lstack[lstack.length - 1].last_column
  47280. };
  47281. if (ranges) {
  47282. yyval._$.range = [
  47283. lstack[lstack.length - (len || 1)].range[0],
  47284. lstack[lstack.length - 1].range[1]
  47285. ];
  47286. }
  47287. r = this.performAction.apply(yyval, [
  47288. yytext,
  47289. yyleng,
  47290. yylineno,
  47291. sharedState.yy,
  47292. action[1],
  47293. vstack,
  47294. lstack
  47295. ].concat(args));
  47296. if (typeof r !== 'undefined') {
  47297. return r;
  47298. }
  47299. if (len) {
  47300. stack = stack.slice(0, -1 * len * 2);
  47301. vstack = vstack.slice(0, -1 * len);
  47302. lstack = lstack.slice(0, -1 * len);
  47303. }
  47304. stack.push(this.productions_[action[1]][0]);
  47305. vstack.push(yyval.$);
  47306. lstack.push(yyval._$);
  47307. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  47308. stack.push(newState);
  47309. break;
  47310. case 3:
  47311. return true;
  47312. }
  47313. }
  47314. return true;
  47315. }};
  47316. /* generated by jison-lex 0.3.4 */
  47317. var lexer = (function(){
  47318. var lexer = ({
  47319. EOF:1,
  47320. parseError:function parseError(str, hash) {
  47321. if (this.yy.parser) {
  47322. this.yy.parser.parseError(str, hash);
  47323. } else {
  47324. throw new Error(str);
  47325. }
  47326. },
  47327. // resets the lexer, sets new input
  47328. setInput:function (input, yy) {
  47329. this.yy = yy || this.yy || {};
  47330. this._input = input;
  47331. this._more = this._backtrack = this.done = false;
  47332. this.yylineno = this.yyleng = 0;
  47333. this.yytext = this.matched = this.match = '';
  47334. this.conditionStack = ['INITIAL'];
  47335. this.yylloc = {
  47336. first_line: 1,
  47337. first_column: 0,
  47338. last_line: 1,
  47339. last_column: 0
  47340. };
  47341. if (this.options.ranges) {
  47342. this.yylloc.range = [0,0];
  47343. }
  47344. this.offset = 0;
  47345. return this;
  47346. },
  47347. // consumes and returns one char from the input
  47348. input:function () {
  47349. var ch = this._input[0];
  47350. this.yytext += ch;
  47351. this.yyleng++;
  47352. this.offset++;
  47353. this.match += ch;
  47354. this.matched += ch;
  47355. var lines = ch.match(/(?:\r\n?|\n).*/g);
  47356. if (lines) {
  47357. this.yylineno++;
  47358. this.yylloc.last_line++;
  47359. } else {
  47360. this.yylloc.last_column++;
  47361. }
  47362. if (this.options.ranges) {
  47363. this.yylloc.range[1]++;
  47364. }
  47365. this._input = this._input.slice(1);
  47366. return ch;
  47367. },
  47368. // unshifts one char (or a string) into the input
  47369. unput:function (ch) {
  47370. var len = ch.length;
  47371. var lines = ch.split(/(?:\r\n?|\n)/g);
  47372. this._input = ch + this._input;
  47373. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  47374. //this.yyleng -= len;
  47375. this.offset -= len;
  47376. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  47377. this.match = this.match.substr(0, this.match.length - 1);
  47378. this.matched = this.matched.substr(0, this.matched.length - 1);
  47379. if (lines.length - 1) {
  47380. this.yylineno -= lines.length - 1;
  47381. }
  47382. var r = this.yylloc.range;
  47383. this.yylloc = {
  47384. first_line: this.yylloc.first_line,
  47385. last_line: this.yylineno + 1,
  47386. first_column: this.yylloc.first_column,
  47387. last_column: lines ?
  47388. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  47389. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  47390. this.yylloc.first_column - len
  47391. };
  47392. if (this.options.ranges) {
  47393. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  47394. }
  47395. this.yyleng = this.yytext.length;
  47396. return this;
  47397. },
  47398. // When called from action, caches matched text and appends it on next action
  47399. more:function () {
  47400. this._more = true;
  47401. return this;
  47402. },
  47403. // 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.
  47404. reject:function () {
  47405. if (this.options.backtrack_lexer) {
  47406. this._backtrack = true;
  47407. } else {
  47408. 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(), {
  47409. text: "",
  47410. token: null,
  47411. line: this.yylineno
  47412. });
  47413. }
  47414. return this;
  47415. },
  47416. // retain first n characters of the match
  47417. less:function (n) {
  47418. this.unput(this.match.slice(n));
  47419. },
  47420. // displays already matched input, i.e. for error messages
  47421. pastInput:function () {
  47422. var past = this.matched.substr(0, this.matched.length - this.match.length);
  47423. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  47424. },
  47425. // displays upcoming input, i.e. for error messages
  47426. upcomingInput:function () {
  47427. var next = this.match;
  47428. if (next.length < 20) {
  47429. next += this._input.substr(0, 20-next.length);
  47430. }
  47431. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  47432. },
  47433. // displays the character position where the lexing error occurred, i.e. for error messages
  47434. showPosition:function () {
  47435. var pre = this.pastInput();
  47436. var c = new Array(pre.length + 1).join("-");
  47437. return pre + this.upcomingInput() + "\n" + c + "^";
  47438. },
  47439. // test the lexed token: return FALSE when not a match, otherwise return token
  47440. test_match:function(match, indexed_rule) {
  47441. var token,
  47442. lines,
  47443. backup;
  47444. if (this.options.backtrack_lexer) {
  47445. // save context
  47446. backup = {
  47447. yylineno: this.yylineno,
  47448. yylloc: {
  47449. first_line: this.yylloc.first_line,
  47450. last_line: this.last_line,
  47451. first_column: this.yylloc.first_column,
  47452. last_column: this.yylloc.last_column
  47453. },
  47454. yytext: this.yytext,
  47455. match: this.match,
  47456. matches: this.matches,
  47457. matched: this.matched,
  47458. yyleng: this.yyleng,
  47459. offset: this.offset,
  47460. _more: this._more,
  47461. _input: this._input,
  47462. yy: this.yy,
  47463. conditionStack: this.conditionStack.slice(0),
  47464. done: this.done
  47465. };
  47466. if (this.options.ranges) {
  47467. backup.yylloc.range = this.yylloc.range.slice(0);
  47468. }
  47469. }
  47470. lines = match[0].match(/(?:\r\n?|\n).*/g);
  47471. if (lines) {
  47472. this.yylineno += lines.length;
  47473. }
  47474. this.yylloc = {
  47475. first_line: this.yylloc.last_line,
  47476. last_line: this.yylineno + 1,
  47477. first_column: this.yylloc.last_column,
  47478. last_column: lines ?
  47479. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  47480. this.yylloc.last_column + match[0].length
  47481. };
  47482. this.yytext += match[0];
  47483. this.match += match[0];
  47484. this.matches = match;
  47485. this.yyleng = this.yytext.length;
  47486. if (this.options.ranges) {
  47487. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  47488. }
  47489. this._more = false;
  47490. this._backtrack = false;
  47491. this._input = this._input.slice(match[0].length);
  47492. this.matched += match[0];
  47493. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  47494. if (this.done && this._input) {
  47495. this.done = false;
  47496. }
  47497. if (token) {
  47498. return token;
  47499. } else if (this._backtrack) {
  47500. // recover context
  47501. for (var k in backup) {
  47502. this[k] = backup[k];
  47503. }
  47504. return false; // rule action called reject() implying the next rule should be tested instead.
  47505. }
  47506. return false;
  47507. },
  47508. // return next match in input
  47509. next:function () {
  47510. if (this.done) {
  47511. return this.EOF;
  47512. }
  47513. if (!this._input) {
  47514. this.done = true;
  47515. }
  47516. var token,
  47517. match,
  47518. tempMatch,
  47519. index;
  47520. if (!this._more) {
  47521. this.yytext = '';
  47522. this.match = '';
  47523. }
  47524. var rules = this._currentRules();
  47525. for (var i = 0; i < rules.length; i++) {
  47526. tempMatch = this._input.match(this.rules[rules[i]]);
  47527. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  47528. match = tempMatch;
  47529. index = i;
  47530. if (this.options.backtrack_lexer) {
  47531. token = this.test_match(tempMatch, rules[i]);
  47532. if (token !== false) {
  47533. return token;
  47534. } else if (this._backtrack) {
  47535. match = false;
  47536. continue; // rule action called reject() implying a rule MISmatch.
  47537. } else {
  47538. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  47539. return false;
  47540. }
  47541. } else if (!this.options.flex) {
  47542. break;
  47543. }
  47544. }
  47545. }
  47546. if (match) {
  47547. token = this.test_match(match, rules[index]);
  47548. if (token !== false) {
  47549. return token;
  47550. }
  47551. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  47552. return false;
  47553. }
  47554. if (this._input === "") {
  47555. return this.EOF;
  47556. } else {
  47557. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  47558. text: "",
  47559. token: null,
  47560. line: this.yylineno
  47561. });
  47562. }
  47563. },
  47564. // return next match that has a token
  47565. lex:function lex () {
  47566. var r = this.next();
  47567. if (r) {
  47568. return r;
  47569. } else {
  47570. return this.lex();
  47571. }
  47572. },
  47573. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  47574. begin:function begin (condition) {
  47575. this.conditionStack.push(condition);
  47576. },
  47577. // pop the previously active lexer condition state off the condition stack
  47578. popState:function popState () {
  47579. var n = this.conditionStack.length - 1;
  47580. if (n > 0) {
  47581. return this.conditionStack.pop();
  47582. } else {
  47583. return this.conditionStack[0];
  47584. }
  47585. },
  47586. // produce the lexer rule set which is active for the currently active lexer condition state
  47587. _currentRules:function _currentRules () {
  47588. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  47589. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  47590. } else {
  47591. return this.conditions["INITIAL"].rules;
  47592. }
  47593. },
  47594. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  47595. topState:function topState (n) {
  47596. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  47597. if (n >= 0) {
  47598. return this.conditionStack[n];
  47599. } else {
  47600. return "INITIAL";
  47601. }
  47602. },
  47603. // alias for begin(condition)
  47604. pushState:function pushState (condition) {
  47605. this.begin(condition);
  47606. },
  47607. // return the number of states currently on the stack
  47608. stateStackSize:function stateStackSize() {
  47609. return this.conditionStack.length;
  47610. },
  47611. options: {},
  47612. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  47613. var YYSTATE=YY_START;
  47614. switch($avoiding_name_collisions) {
  47615. case 0:/* do nothing */
  47616. break;
  47617. case 1:this.begin("string");
  47618. break;
  47619. case 2:this.popState();
  47620. break;
  47621. case 3:return "STR";
  47622. break;
  47623. case 4:return 63;
  47624. break;
  47625. case 5:return 72;
  47626. break;
  47627. case 6:return 64;
  47628. break;
  47629. case 7:return 77;
  47630. break;
  47631. case 8:return 65;
  47632. break;
  47633. case 9:return 66;
  47634. break;
  47635. case 10:return 67;
  47636. break;
  47637. case 11:if(yy.lex.firstGraph()){this.begin("dir");} return 12;
  47638. break;
  47639. case 12:if(yy.lex.firstGraph()){this.begin("dir");} return 12;
  47640. break;
  47641. case 13:return 26;
  47642. break;
  47643. case 14:return 30;
  47644. break;
  47645. case 15: this.popState(); return 13;
  47646. break;
  47647. case 16: this.popState(); return 13;
  47648. break;
  47649. case 17: this.popState(); return 13;
  47650. break;
  47651. case 18: this.popState(); return 13;
  47652. break;
  47653. case 19: this.popState(); return 13;
  47654. break;
  47655. case 20: this.popState(); return 13;
  47656. break;
  47657. case 21: this.popState(); return 13;
  47658. break;
  47659. case 22: this.popState(); return 13;
  47660. break;
  47661. case 23: this.popState(); return 13;
  47662. break;
  47663. case 24: this.popState(); return 13;
  47664. break;
  47665. case 25: return 78;
  47666. break;
  47667. case 26:return 86;
  47668. break;
  47669. case 27:return 35;
  47670. break;
  47671. case 28:return 83;
  47672. break;
  47673. case 29:return 34;
  47674. break;
  47675. case 30:return 8;
  47676. break;
  47677. case 31:return 79;
  47678. break;
  47679. case 32:return 97;
  47680. break;
  47681. case 33:return 58;
  47682. break;
  47683. case 34:return 58;
  47684. break;
  47685. case 35:return 58;
  47686. break;
  47687. case 36:return 58;
  47688. break;
  47689. case 37:return 58;
  47690. break;
  47691. case 38:return 58;
  47692. break;
  47693. case 39:return 58;
  47694. break;
  47695. case 40:return 58;
  47696. break;
  47697. case 41:return 58;
  47698. break;
  47699. case 42:return 58;
  47700. break;
  47701. case 43:return 58;
  47702. break;
  47703. case 44:return 58;
  47704. break;
  47705. case 45:return 58;
  47706. break;
  47707. case 46:return 58;
  47708. break;
  47709. case 47:return 58;
  47710. break;
  47711. case 48:return 58;
  47712. break;
  47713. case 49:return 58;
  47714. break;
  47715. case 50:return 58;
  47716. break;
  47717. case 51:return 58;
  47718. break;
  47719. case 52:return 58;
  47720. break;
  47721. case 53:return 58;
  47722. break;
  47723. case 54:return 58;
  47724. break;
  47725. case 55:return 58;
  47726. break;
  47727. case 56:return 58;
  47728. break;
  47729. case 57:return 58;
  47730. break;
  47731. case 58:return 58;
  47732. break;
  47733. case 59:return 58;
  47734. break;
  47735. case 60:return 58;
  47736. break;
  47737. case 61:return 57;
  47738. break;
  47739. case 62:return 57;
  47740. break;
  47741. case 63:return 57;
  47742. break;
  47743. case 64:return 57;
  47744. break;
  47745. case 65:return 57;
  47746. break;
  47747. case 66:return 57;
  47748. break;
  47749. case 67:return 57;
  47750. break;
  47751. case 68:return 57;
  47752. break;
  47753. case 69:return 57;
  47754. break;
  47755. case 70:return 57;
  47756. break;
  47757. case 71:return 57;
  47758. break;
  47759. case 72:return 57;
  47760. break;
  47761. case 73:return 39;
  47762. break;
  47763. case 74:return 40;
  47764. break;
  47765. case 75:return 41;
  47766. break;
  47767. case 76:return 42;
  47768. break;
  47769. case 77:return 43;
  47770. break;
  47771. case 78:return 44;
  47772. break;
  47773. case 79:return 45;
  47774. break;
  47775. case 80:return 46;
  47776. break;
  47777. case 81:return 84;
  47778. break;
  47779. case 82:return 87;
  47780. break;
  47781. case 83:return 98;
  47782. break;
  47783. case 84:return 95;
  47784. break;
  47785. case 85:return 88;
  47786. break;
  47787. case 86:return 96;
  47788. break;
  47789. case 87:return 96;
  47790. break;
  47791. case 88:return 89;
  47792. break;
  47793. case 89:return 49;
  47794. break;
  47795. case 90:return 69;
  47796. break;
  47797. case 91:return 'SEP';
  47798. break;
  47799. case 92:return 68;
  47800. break;
  47801. case 93:return 82;
  47802. break;
  47803. case 94:return 51;
  47804. break;
  47805. case 95:return 50;
  47806. break;
  47807. case 96:return 53;
  47808. break;
  47809. case 97:return 52;
  47810. break;
  47811. case 98:return 93;
  47812. break;
  47813. case 99:return 94;
  47814. break;
  47815. case 100:return 59;
  47816. break;
  47817. case 101:return 37;
  47818. break;
  47819. case 102:return 38;
  47820. break;
  47821. case 103:return 28;
  47822. break;
  47823. case 104:return 29;
  47824. break;
  47825. case 105:return 47
  47826. break;
  47827. case 106:return 48
  47828. break;
  47829. case 107:return 104;
  47830. break;
  47831. case 108:return 9;
  47832. break;
  47833. case 109:return 10;
  47834. break;
  47835. case 110:return 11;
  47836. break;
  47837. }
  47838. },
  47839. rules: [/^(?:%%[^\n]*\n*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\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])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r|\n|\r\n)+)/,/^(?:\s)/,/^(?:$)/],
  47840. conditions: {"vertex":{"rules":[],"inclusive":false},"dir":{"rules":[15,16,17,18,19,20,21,22,23,24],"inclusive":false},"string":{"rules":[2,3],"inclusive":false},"INITIAL":{"rules":[0,1,4,5,6,7,8,9,10,11,12,13,14,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,97,98,99,100,101,102,103,104,105,106,107,108,109,110],"inclusive":true}}
  47841. });
  47842. return lexer;
  47843. })();
  47844. parser.lexer = lexer;
  47845. function Parser () {
  47846. this.yy = {};
  47847. }
  47848. Parser.prototype = parser;parser.Parser = Parser;
  47849. return new Parser;
  47850. })();
  47851. if (true) {
  47852. exports.parser = parser;
  47853. exports.Parser = parser.Parser;
  47854. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  47855. exports.main = function commonjsMain (args) {
  47856. if (!args[1]) {
  47857. console.log('Usage: '+args[0]+' FILE');
  47858. process.exit(1);
  47859. }
  47860. 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");
  47861. return exports.parser.parse(source);
  47862. };
  47863. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  47864. exports.main(process.argv.slice(1));
  47865. }
  47866. }
  47867. /* 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)))
  47868. /***/ }),
  47869. /***/ "./src/diagrams/flowchart/styles.js":
  47870. /*!******************************************!*\
  47871. !*** ./src/diagrams/flowchart/styles.js ***!
  47872. \******************************************/
  47873. /*! exports provided: default */
  47874. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47875. "use strict";
  47876. __webpack_require__.r(__webpack_exports__);
  47877. var getStyles = function getStyles(options) {
  47878. return ".label {\n font-family: ".concat(options.fontFamily, ";\n color: ").concat(options.textColor, ";\n }\n\n .label text {\n fill: ").concat(options.textColor, ";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(options.arrowheadColor, ";\n }\n\n .edgePath .path {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(options.lineColor, ";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(options.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(options.secondBkg, ";\n stroke: ").concat(options.clusterBorder, ";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(options.titleColor, ";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(options.fontFamily, ";\n font-size: 12px;\n background: ").concat(options.secondBkg, ";\n border: 1px solid ").concat(options.border2, ";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n");
  47879. };
  47880. /* harmony default export */ __webpack_exports__["default"] = (getStyles);
  47881. /***/ }),
  47882. /***/ "./src/diagrams/gantt/ganttDb.js":
  47883. /*!***************************************!*\
  47884. !*** ./src/diagrams/gantt/ganttDb.js ***!
  47885. \***************************************/
  47886. /*! exports provided: clear, setAxisFormat, getAxisFormat, setTodayMarker, getTodayMarker, setDateFormat, enableInclusiveEndDates, endDatesAreInclusive, getDateFormat, setExcludes, getExcludes, setTitle, getTitle, addSection, getSections, getTasks, addTask, findTaskById, addTaskOrg, setLink, setClass, setClickEvent, bindFunctions, default */
  47887. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47888. "use strict";
  47889. __webpack_require__.r(__webpack_exports__);
  47890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  47891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setAxisFormat", function() { return setAxisFormat; });
  47892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAxisFormat", function() { return getAxisFormat; });
  47893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTodayMarker", function() { return setTodayMarker; });
  47894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTodayMarker", function() { return getTodayMarker; });
  47895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDateFormat", function() { return setDateFormat; });
  47896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableInclusiveEndDates", function() { return enableInclusiveEndDates; });
  47897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "endDatesAreInclusive", function() { return endDatesAreInclusive; });
  47898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDateFormat", function() { return getDateFormat; });
  47899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setExcludes", function() { return setExcludes; });
  47900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getExcludes", function() { return getExcludes; });
  47901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTitle", function() { return setTitle; });
  47902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTitle", function() { return getTitle; });
  47903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addSection", function() { return addSection; });
  47904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSections", function() { return getSections; });
  47905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTasks", function() { return getTasks; });
  47906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addTask", function() { return addTask; });
  47907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findTaskById", function() { return findTaskById; });
  47908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addTaskOrg", function() { return addTaskOrg; });
  47909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLink", function() { return setLink; });
  47910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setClass", function() { return setClass; });
  47911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setClickEvent", function() { return setClickEvent; });
  47912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindFunctions", function() { return bindFunctions; });
  47913. /* harmony import */ var moment_mini__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment-mini */ "./node_modules/moment-mini/moment.min.js");
  47914. /* harmony import */ var moment_mini__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment_mini__WEBPACK_IMPORTED_MODULE_0__);
  47915. /* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @braintree/sanitize-url */ "./node_modules/@braintree/sanitize-url/index.js");
  47916. /* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__);
  47917. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  47918. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  47919. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  47920. function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
  47921. function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
  47922. function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
  47923. function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
  47924. var dateFormat = '';
  47925. var axisFormat = '';
  47926. var todayMarker = '';
  47927. var excludes = [];
  47928. var title = '';
  47929. var sections = [];
  47930. var tasks = [];
  47931. var currentSection = '';
  47932. var tags = ['active', 'done', 'crit', 'milestone'];
  47933. var funs = [];
  47934. var inclusiveEndDates = false; // The serial order of the task in the script
  47935. var lastOrder = 0;
  47936. var clear = function clear() {
  47937. sections = [];
  47938. tasks = [];
  47939. currentSection = '';
  47940. funs = [];
  47941. title = '';
  47942. taskCnt = 0;
  47943. lastTask = undefined;
  47944. lastTaskID = undefined;
  47945. rawTasks = [];
  47946. dateFormat = '';
  47947. axisFormat = '';
  47948. todayMarker = '';
  47949. excludes = [];
  47950. inclusiveEndDates = false;
  47951. lastOrder = 0;
  47952. };
  47953. var setAxisFormat = function setAxisFormat(txt) {
  47954. axisFormat = txt;
  47955. };
  47956. var getAxisFormat = function getAxisFormat() {
  47957. return axisFormat;
  47958. };
  47959. var setTodayMarker = function setTodayMarker(txt) {
  47960. todayMarker = txt;
  47961. };
  47962. var getTodayMarker = function getTodayMarker() {
  47963. return todayMarker;
  47964. };
  47965. var setDateFormat = function setDateFormat(txt) {
  47966. dateFormat = txt;
  47967. };
  47968. var enableInclusiveEndDates = function enableInclusiveEndDates() {
  47969. inclusiveEndDates = true;
  47970. };
  47971. var endDatesAreInclusive = function endDatesAreInclusive() {
  47972. return inclusiveEndDates;
  47973. };
  47974. var getDateFormat = function getDateFormat() {
  47975. return dateFormat;
  47976. };
  47977. var setExcludes = function setExcludes(txt) {
  47978. excludes = txt.toLowerCase().split(/[\s,]+/);
  47979. };
  47980. var getExcludes = function getExcludes() {
  47981. return excludes;
  47982. };
  47983. var setTitle = function setTitle(txt) {
  47984. title = txt;
  47985. };
  47986. var getTitle = function getTitle() {
  47987. return title;
  47988. };
  47989. var addSection = function addSection(txt) {
  47990. currentSection = txt;
  47991. sections.push(txt);
  47992. };
  47993. var getSections = function getSections() {
  47994. return sections;
  47995. };
  47996. var getTasks = function getTasks() {
  47997. var allItemsPricessed = compileTasks();
  47998. var maxDepth = 10;
  47999. var iterationCount = 0;
  48000. while (!allItemsPricessed && iterationCount < maxDepth) {
  48001. allItemsPricessed = compileTasks();
  48002. iterationCount++;
  48003. }
  48004. tasks = rawTasks;
  48005. return tasks;
  48006. };
  48007. var isInvalidDate = function isInvalidDate(date, dateFormat, excludes) {
  48008. if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {
  48009. return true;
  48010. }
  48011. if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {
  48012. return true;
  48013. }
  48014. return excludes.indexOf(date.format(dateFormat.trim())) >= 0;
  48015. };
  48016. var checkTaskDates = function checkTaskDates(task, dateFormat, excludes) {
  48017. if (!excludes.length || task.manualEndTime) return;
  48018. var startTime = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(task.startTime, dateFormat, true);
  48019. startTime.add(1, 'd');
  48020. var endTime = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(task.endTime, dateFormat, true);
  48021. var renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);
  48022. task.endTime = endTime.toDate();
  48023. task.renderEndTime = renderEndTime;
  48024. };
  48025. var fixTaskDates = function fixTaskDates(startTime, endTime, dateFormat, excludes) {
  48026. var invalid = false;
  48027. var renderEndTime = null;
  48028. while (startTime <= endTime) {
  48029. if (!invalid) {
  48030. renderEndTime = endTime.toDate();
  48031. }
  48032. invalid = isInvalidDate(startTime, dateFormat, excludes);
  48033. if (invalid) {
  48034. endTime.add(1, 'd');
  48035. }
  48036. startTime.add(1, 'd');
  48037. }
  48038. return renderEndTime;
  48039. };
  48040. var getStartDate = function getStartDate(prevTime, dateFormat, str) {
  48041. str = str.trim(); // Test for after
  48042. var re = /^after\s+([\d\w- ]+)/;
  48043. var afterStatement = re.exec(str.trim());
  48044. if (afterStatement !== null) {
  48045. // check all after ids and take the latest
  48046. var latestEndingTask = null;
  48047. afterStatement[1].split(' ').forEach(function (id) {
  48048. var task = findTaskById(id);
  48049. if (typeof task !== 'undefined') {
  48050. if (!latestEndingTask) {
  48051. latestEndingTask = task;
  48052. } else {
  48053. if (task.endTime > latestEndingTask.endTime) {
  48054. latestEndingTask = task;
  48055. }
  48056. }
  48057. }
  48058. });
  48059. if (!latestEndingTask) {
  48060. var dt = new Date();
  48061. dt.setHours(0, 0, 0, 0);
  48062. return dt;
  48063. } else {
  48064. return latestEndingTask.endTime;
  48065. }
  48066. } // Check for actual date set
  48067. var mDate = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(str, dateFormat.trim(), true);
  48068. if (mDate.isValid()) {
  48069. return mDate.toDate();
  48070. } else {
  48071. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Invalid date:' + str);
  48072. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('With date format:' + dateFormat.trim());
  48073. } // Default date - now
  48074. return new Date();
  48075. };
  48076. var durationToDate = function durationToDate(durationStatement, relativeTime) {
  48077. if (durationStatement !== null) {
  48078. switch (durationStatement[2]) {
  48079. case 's':
  48080. relativeTime.add(durationStatement[1], 'seconds');
  48081. break;
  48082. case 'm':
  48083. relativeTime.add(durationStatement[1], 'minutes');
  48084. break;
  48085. case 'h':
  48086. relativeTime.add(durationStatement[1], 'hours');
  48087. break;
  48088. case 'd':
  48089. relativeTime.add(durationStatement[1], 'days');
  48090. break;
  48091. case 'w':
  48092. relativeTime.add(durationStatement[1], 'weeks');
  48093. break;
  48094. }
  48095. } // Default date - now
  48096. return relativeTime.toDate();
  48097. };
  48098. var getEndDate = function getEndDate(prevTime, dateFormat, str, inclusive) {
  48099. inclusive = inclusive || false;
  48100. str = str.trim(); // Check for actual date
  48101. var mDate = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(str, dateFormat.trim(), true);
  48102. if (mDate.isValid()) {
  48103. if (inclusive) {
  48104. mDate.add(1, 'd');
  48105. }
  48106. return mDate.toDate();
  48107. }
  48108. return durationToDate(/^([\d]+)([wdhms])/.exec(str.trim()), moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(prevTime));
  48109. };
  48110. var taskCnt = 0;
  48111. var parseId = function parseId(idStr) {
  48112. if (typeof idStr === 'undefined') {
  48113. taskCnt = taskCnt + 1;
  48114. return 'task' + taskCnt;
  48115. }
  48116. return idStr;
  48117. }; // id, startDate, endDate
  48118. // id, startDate, length
  48119. // id, after x, endDate
  48120. // id, after x, length
  48121. // startDate, endDate
  48122. // startDate, length
  48123. // after x, endDate
  48124. // after x, length
  48125. // endDate
  48126. // length
  48127. var compileData = function compileData(prevTask, dataStr) {
  48128. var ds;
  48129. if (dataStr.substr(0, 1) === ':') {
  48130. ds = dataStr.substr(1, dataStr.length);
  48131. } else {
  48132. ds = dataStr;
  48133. }
  48134. var data = ds.split(',');
  48135. var task = {}; // Get tags like active, done, crit and milestone
  48136. getTaskTags(data, task, tags);
  48137. for (var i = 0; i < data.length; i++) {
  48138. data[i] = data[i].trim();
  48139. }
  48140. var endTimeData = '';
  48141. switch (data.length) {
  48142. case 1:
  48143. task.id = parseId();
  48144. task.startTime = prevTask.endTime;
  48145. endTimeData = data[0];
  48146. break;
  48147. case 2:
  48148. task.id = parseId();
  48149. task.startTime = getStartDate(undefined, dateFormat, data[0]);
  48150. endTimeData = data[1];
  48151. break;
  48152. case 3:
  48153. task.id = parseId(data[0]);
  48154. task.startTime = getStartDate(undefined, dateFormat, data[1]);
  48155. endTimeData = data[2];
  48156. break;
  48157. default:
  48158. }
  48159. if (endTimeData) {
  48160. task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);
  48161. task.manualEndTime = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(endTimeData, 'YYYY-MM-DD', true).isValid();
  48162. checkTaskDates(task, dateFormat, excludes);
  48163. }
  48164. return task;
  48165. };
  48166. var parseData = function parseData(prevTaskId, dataStr) {
  48167. var ds;
  48168. if (dataStr.substr(0, 1) === ':') {
  48169. ds = dataStr.substr(1, dataStr.length);
  48170. } else {
  48171. ds = dataStr;
  48172. }
  48173. var data = ds.split(',');
  48174. var task = {}; // Get tags like active, done, crit and milestone
  48175. getTaskTags(data, task, tags);
  48176. for (var i = 0; i < data.length; i++) {
  48177. data[i] = data[i].trim();
  48178. }
  48179. switch (data.length) {
  48180. case 1:
  48181. task.id = parseId();
  48182. task.startTime = {
  48183. type: 'prevTaskEnd',
  48184. id: prevTaskId
  48185. };
  48186. task.endTime = {
  48187. data: data[0]
  48188. };
  48189. break;
  48190. case 2:
  48191. task.id = parseId();
  48192. task.startTime = {
  48193. type: 'getStartDate',
  48194. startData: data[0]
  48195. };
  48196. task.endTime = {
  48197. data: data[1]
  48198. };
  48199. break;
  48200. case 3:
  48201. task.id = parseId(data[0]);
  48202. task.startTime = {
  48203. type: 'getStartDate',
  48204. startData: data[1]
  48205. };
  48206. task.endTime = {
  48207. data: data[2]
  48208. };
  48209. break;
  48210. default:
  48211. }
  48212. return task;
  48213. };
  48214. var lastTask;
  48215. var lastTaskID;
  48216. var rawTasks = [];
  48217. var taskDb = {};
  48218. var addTask = function addTask(descr, data) {
  48219. var rawTask = {
  48220. section: currentSection,
  48221. type: currentSection,
  48222. processed: false,
  48223. manualEndTime: false,
  48224. renderEndTime: null,
  48225. raw: {
  48226. data: data
  48227. },
  48228. task: descr,
  48229. classes: []
  48230. };
  48231. var taskInfo = parseData(lastTaskID, data);
  48232. rawTask.raw.startTime = taskInfo.startTime;
  48233. rawTask.raw.endTime = taskInfo.endTime;
  48234. rawTask.id = taskInfo.id;
  48235. rawTask.prevTaskId = lastTaskID;
  48236. rawTask.active = taskInfo.active;
  48237. rawTask.done = taskInfo.done;
  48238. rawTask.crit = taskInfo.crit;
  48239. rawTask.milestone = taskInfo.milestone;
  48240. rawTask.order = lastOrder;
  48241. lastOrder++;
  48242. var pos = rawTasks.push(rawTask);
  48243. lastTaskID = rawTask.id; // Store cross ref
  48244. taskDb[rawTask.id] = pos - 1;
  48245. };
  48246. var findTaskById = function findTaskById(id) {
  48247. var pos = taskDb[id];
  48248. return rawTasks[pos];
  48249. };
  48250. var addTaskOrg = function addTaskOrg(descr, data) {
  48251. var newTask = {
  48252. section: currentSection,
  48253. type: currentSection,
  48254. description: descr,
  48255. task: descr,
  48256. classes: []
  48257. };
  48258. var taskInfo = compileData(lastTask, data);
  48259. newTask.startTime = taskInfo.startTime;
  48260. newTask.endTime = taskInfo.endTime;
  48261. newTask.id = taskInfo.id;
  48262. newTask.active = taskInfo.active;
  48263. newTask.done = taskInfo.done;
  48264. newTask.crit = taskInfo.crit;
  48265. newTask.milestone = taskInfo.milestone;
  48266. lastTask = newTask;
  48267. tasks.push(newTask);
  48268. };
  48269. var compileTasks = function compileTasks() {
  48270. var compileTask = function compileTask(pos) {
  48271. var task = rawTasks[pos];
  48272. var startTime = '';
  48273. switch (rawTasks[pos].raw.startTime.type) {
  48274. case 'prevTaskEnd':
  48275. {
  48276. var prevTask = findTaskById(task.prevTaskId);
  48277. task.startTime = prevTask.endTime;
  48278. break;
  48279. }
  48280. case 'getStartDate':
  48281. startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);
  48282. if (startTime) {
  48283. rawTasks[pos].startTime = startTime;
  48284. }
  48285. break;
  48286. }
  48287. if (rawTasks[pos].startTime) {
  48288. rawTasks[pos].endTime = getEndDate(rawTasks[pos].startTime, dateFormat, rawTasks[pos].raw.endTime.data, inclusiveEndDates);
  48289. if (rawTasks[pos].endTime) {
  48290. rawTasks[pos].processed = true;
  48291. rawTasks[pos].manualEndTime = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()(rawTasks[pos].raw.endTime.data, 'YYYY-MM-DD', true).isValid();
  48292. checkTaskDates(rawTasks[pos], dateFormat, excludes);
  48293. }
  48294. }
  48295. return rawTasks[pos].processed;
  48296. };
  48297. var allProcessed = true;
  48298. for (var i = 0; i < rawTasks.length; i++) {
  48299. compileTask(i);
  48300. allProcessed = allProcessed && rawTasks[i].processed;
  48301. }
  48302. return allProcessed;
  48303. };
  48304. /**
  48305. * Called by parser when a link is found. Adds the URL to the vertex data.
  48306. * @param ids Comma separated list of ids
  48307. * @param linkStr URL to create a link for
  48308. */
  48309. var setLink = function setLink(ids, _linkStr) {
  48310. var linkStr = _linkStr;
  48311. if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().securityLevel !== 'loose') {
  48312. linkStr = Object(_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__["sanitizeUrl"])(_linkStr);
  48313. }
  48314. ids.split(',').forEach(function (id) {
  48315. var rawTask = findTaskById(id);
  48316. if (typeof rawTask !== 'undefined') {
  48317. pushFun(id, function () {
  48318. window.open(linkStr, '_self');
  48319. });
  48320. }
  48321. });
  48322. setClass(ids, 'clickable');
  48323. };
  48324. /**
  48325. * Called by parser when a special node is found, e.g. a clickable element.
  48326. * @param ids Comma separated list of ids
  48327. * @param className Class to add
  48328. */
  48329. var setClass = function setClass(ids, className) {
  48330. ids.split(',').forEach(function (id) {
  48331. var rawTask = findTaskById(id);
  48332. if (typeof rawTask !== 'undefined') {
  48333. rawTask.classes.push(className);
  48334. }
  48335. });
  48336. };
  48337. var setClickFun = function setClickFun(id, functionName, functionArgs) {
  48338. if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().securityLevel !== 'loose') {
  48339. return;
  48340. }
  48341. if (typeof functionName === 'undefined') {
  48342. return;
  48343. }
  48344. var argList = [];
  48345. if (typeof functionArgs === 'string') {
  48346. /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */
  48347. argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
  48348. for (var i = 0; i < argList.length; i++) {
  48349. var item = argList[i].trim();
  48350. /* Removes all double quotes at the start and end of an argument */
  48351. /* This preserves all starting and ending whitespace inside */
  48352. if (item.charAt(0) === '"' && item.charAt(item.length - 1) === '"') {
  48353. item = item.substr(1, item.length - 2);
  48354. }
  48355. argList[i] = item;
  48356. }
  48357. }
  48358. /* if no arguments passed into callback, default to passing in id */
  48359. if (argList.length === 0) {
  48360. argList.push(id);
  48361. }
  48362. var rawTask = findTaskById(id);
  48363. if (typeof rawTask !== 'undefined') {
  48364. pushFun(id, function () {
  48365. _utils__WEBPACK_IMPORTED_MODULE_4__["default"].runFunc.apply(_utils__WEBPACK_IMPORTED_MODULE_4__["default"], [functionName].concat(_toConsumableArray(argList)));
  48366. });
  48367. }
  48368. };
  48369. /**
  48370. * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text
  48371. * @param id The task's id
  48372. * @param callbackFunction A function to be executed when clicked on the task or the task's text
  48373. */
  48374. var pushFun = function pushFun(id, callbackFunction) {
  48375. funs.push(function () {
  48376. // const elem = d3.select(element).select(`[id="${id}"]`)
  48377. var elem = document.querySelector("[id=\"".concat(id, "\"]"));
  48378. if (elem !== null) {
  48379. elem.addEventListener('click', function () {
  48380. callbackFunction();
  48381. });
  48382. }
  48383. });
  48384. funs.push(function () {
  48385. // const elem = d3.select(element).select(`[id="${id}-text"]`)
  48386. var elem = document.querySelector("[id=\"".concat(id, "-text\"]"));
  48387. if (elem !== null) {
  48388. elem.addEventListener('click', function () {
  48389. callbackFunction();
  48390. });
  48391. }
  48392. });
  48393. };
  48394. /**
  48395. * Called by parser when a click definition is found. Registers an event handler.
  48396. * @param ids Comma separated list of ids
  48397. * @param functionName Function to be called on click
  48398. * @param functionArgs Function args the function should be called with
  48399. */
  48400. var setClickEvent = function setClickEvent(ids, functionName, functionArgs) {
  48401. ids.split(',').forEach(function (id) {
  48402. setClickFun(id, functionName, functionArgs);
  48403. });
  48404. setClass(ids, 'clickable');
  48405. };
  48406. /**
  48407. * Binds all functions previously added to fun (specified through click) to the element
  48408. * @param element
  48409. */
  48410. var bindFunctions = function bindFunctions(element) {
  48411. funs.forEach(function (fun) {
  48412. fun(element);
  48413. });
  48414. };
  48415. /* harmony default export */ __webpack_exports__["default"] = ({
  48416. clear: clear,
  48417. setDateFormat: setDateFormat,
  48418. getDateFormat: getDateFormat,
  48419. enableInclusiveEndDates: enableInclusiveEndDates,
  48420. endDatesAreInclusive: endDatesAreInclusive,
  48421. setAxisFormat: setAxisFormat,
  48422. getAxisFormat: getAxisFormat,
  48423. setTodayMarker: setTodayMarker,
  48424. getTodayMarker: getTodayMarker,
  48425. setTitle: setTitle,
  48426. getTitle: getTitle,
  48427. addSection: addSection,
  48428. getSections: getSections,
  48429. getTasks: getTasks,
  48430. addTask: addTask,
  48431. findTaskById: findTaskById,
  48432. addTaskOrg: addTaskOrg,
  48433. setExcludes: setExcludes,
  48434. getExcludes: getExcludes,
  48435. setClickEvent: setClickEvent,
  48436. setLink: setLink,
  48437. bindFunctions: bindFunctions,
  48438. durationToDate: durationToDate
  48439. });
  48440. function getTaskTags(data, task, tags) {
  48441. var matchFound = true;
  48442. while (matchFound) {
  48443. matchFound = false;
  48444. tags.forEach(function (t) {
  48445. var pattern = '^\\s*' + t + '\\s*$';
  48446. var regex = new RegExp(pattern);
  48447. if (data[0].match(regex)) {
  48448. task[t] = true;
  48449. data.shift(1);
  48450. matchFound = true;
  48451. }
  48452. });
  48453. }
  48454. }
  48455. /***/ }),
  48456. /***/ "./src/diagrams/gantt/ganttRenderer.js":
  48457. /*!*********************************************!*\
  48458. !*** ./src/diagrams/gantt/ganttRenderer.js ***!
  48459. \*********************************************/
  48460. /*! exports provided: setConf, draw, default */
  48461. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48462. "use strict";
  48463. __webpack_require__.r(__webpack_exports__);
  48464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  48465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  48466. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  48467. /* harmony import */ var _parser_gantt__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parser/gantt */ "./src/diagrams/gantt/parser/gantt.jison");
  48468. /* harmony import */ var _parser_gantt__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_parser_gantt__WEBPACK_IMPORTED_MODULE_1__);
  48469. /* harmony import */ var _common_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/common */ "./src/diagrams/common/common.js");
  48470. /* harmony import */ var _ganttDb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ganttDb */ "./src/diagrams/gantt/ganttDb.js");
  48471. _parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].yy = _ganttDb__WEBPACK_IMPORTED_MODULE_3__["default"];
  48472. var conf = {
  48473. titleTopMargin: 25,
  48474. barHeight: 20,
  48475. barGap: 4,
  48476. topPadding: 50,
  48477. rightPadding: 75,
  48478. leftPadding: 75,
  48479. gridLineStartPadding: 35,
  48480. fontSize: 11,
  48481. fontFamily: '"Open-Sans", "sans-serif"'
  48482. };
  48483. var setConf = function setConf(cnf) {
  48484. var keys = Object.keys(cnf);
  48485. keys.forEach(function (key) {
  48486. conf[key] = cnf[key];
  48487. });
  48488. };
  48489. var w;
  48490. var draw = function draw(text, id) {
  48491. _parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.clear();
  48492. _parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].parse(text);
  48493. var elem = document.getElementById(id);
  48494. w = elem.parentElement.offsetWidth;
  48495. if (typeof w === 'undefined') {
  48496. w = 1200;
  48497. }
  48498. if (typeof conf.useWidth !== 'undefined') {
  48499. w = conf.useWidth;
  48500. }
  48501. var taskArray = _parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.getTasks(); // Set height based on number of tasks
  48502. var h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;
  48503. elem.setAttribute('height', '100%'); // Set viewBox
  48504. elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);
  48505. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])("[id=\"".concat(id, "\"]")); // Set timescale
  48506. var timeScale = Object(d3__WEBPACK_IMPORTED_MODULE_0__["scaleTime"])().domain([Object(d3__WEBPACK_IMPORTED_MODULE_0__["min"])(taskArray, function (d) {
  48507. return d.startTime;
  48508. }), Object(d3__WEBPACK_IMPORTED_MODULE_0__["max"])(taskArray, function (d) {
  48509. return d.endTime;
  48510. })]).rangeRound([0, w - conf.leftPadding - conf.rightPadding]);
  48511. var categories = [];
  48512. for (var i = 0; i < taskArray.length; i++) {
  48513. categories.push(taskArray[i].type);
  48514. }
  48515. var catsUnfiltered = categories; // for vert labels
  48516. categories = checkUnique(categories);
  48517. function taskCompare(a, b) {
  48518. var taskA = a.startTime;
  48519. var taskB = b.startTime;
  48520. var result = 0;
  48521. if (taskA > taskB) {
  48522. result = 1;
  48523. } else if (taskA < taskB) {
  48524. result = -1;
  48525. }
  48526. return result;
  48527. } // Sort the task array using the above taskCompare() so that
  48528. // tasks are created based on their order of startTime
  48529. taskArray.sort(taskCompare);
  48530. makeGant(taskArray, w, h);
  48531. if (typeof conf.useWidth !== 'undefined') {
  48532. elem.setAttribute('width', w);
  48533. }
  48534. svg.append('text').text(_parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.getTitle()).attr('x', w / 2).attr('y', conf.titleTopMargin).attr('class', 'titleText');
  48535. function makeGant(tasks, pageWidth, pageHeight) {
  48536. var barHeight = conf.barHeight;
  48537. var gap = barHeight + conf.barGap;
  48538. var topPadding = conf.topPadding;
  48539. var leftPadding = conf.leftPadding;
  48540. var colorScale = Object(d3__WEBPACK_IMPORTED_MODULE_0__["scaleLinear"])().domain([0, categories.length]).range(['#00B9FA', '#F95002']).interpolate(d3__WEBPACK_IMPORTED_MODULE_0__["interpolateHcl"]);
  48541. makeGrid(leftPadding, topPadding, pageWidth, pageHeight);
  48542. drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);
  48543. vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);
  48544. drawToday(leftPadding, topPadding, pageWidth, pageHeight);
  48545. }
  48546. function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {
  48547. // Draw background rects covering the entire width of the graph, these form the section rows.
  48548. svg.append('g').selectAll('rect').data(theArray).enter().append('rect').attr('x', 0).attr('y', function (d, i) {
  48549. // Ignore the incoming i value and use our order instead
  48550. i = d.order;
  48551. return i * theGap + theTopPad - 2;
  48552. }).attr('width', function () {
  48553. return w - conf.rightPadding / 2;
  48554. }).attr('height', theGap).attr('class', function (d) {
  48555. for (var _i = 0; _i < categories.length; _i++) {
  48556. if (d.type === categories[_i]) {
  48557. return 'section section' + _i % conf.numberSectionStyles;
  48558. }
  48559. }
  48560. return 'section section0';
  48561. }); // Draw the rects representing the tasks
  48562. var rectangles = svg.append('g').selectAll('rect').data(theArray).enter();
  48563. rectangles.append('rect').attr('id', function (d) {
  48564. return d.id;
  48565. }).attr('rx', 3).attr('ry', 3).attr('x', function (d) {
  48566. if (d.milestone) {
  48567. return timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;
  48568. }
  48569. return timeScale(d.startTime) + theSidePad;
  48570. }).attr('y', function (d, i) {
  48571. // Ignore the incoming i value and use our order instead
  48572. i = d.order;
  48573. return i * theGap + theTopPad;
  48574. }).attr('width', function (d) {
  48575. if (d.milestone) {
  48576. return theBarHeight;
  48577. }
  48578. return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);
  48579. }).attr('height', theBarHeight).attr('transform-origin', function (d, i) {
  48580. return (timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))).toString() + 'px ' + (i * theGap + theTopPad + 0.5 * theBarHeight).toString() + 'px';
  48581. }).attr('class', function (d) {
  48582. var res = 'task';
  48583. var classStr = '';
  48584. if (d.classes.length > 0) {
  48585. classStr = d.classes.join(' ');
  48586. }
  48587. var secNum = 0;
  48588. for (var _i2 = 0; _i2 < categories.length; _i2++) {
  48589. if (d.type === categories[_i2]) {
  48590. secNum = _i2 % conf.numberSectionStyles;
  48591. }
  48592. }
  48593. var taskClass = '';
  48594. if (d.active) {
  48595. if (d.crit) {
  48596. taskClass += ' activeCrit';
  48597. } else {
  48598. taskClass = ' active';
  48599. }
  48600. } else if (d.done) {
  48601. if (d.crit) {
  48602. taskClass = ' doneCrit';
  48603. } else {
  48604. taskClass = ' done';
  48605. }
  48606. } else {
  48607. if (d.crit) {
  48608. taskClass += ' crit';
  48609. }
  48610. }
  48611. if (taskClass.length === 0) {
  48612. taskClass = ' task';
  48613. }
  48614. if (d.milestone) {
  48615. taskClass = ' milestone ' + taskClass;
  48616. }
  48617. taskClass += secNum;
  48618. taskClass += ' ' + classStr;
  48619. return res + taskClass;
  48620. }); // Append task labels
  48621. rectangles.append('text').attr('id', function (d) {
  48622. return d.id + '-text';
  48623. }).text(function (d) {
  48624. return d.task;
  48625. }).attr('font-size', conf.fontSize).attr('x', function (d) {
  48626. var startX = timeScale(d.startTime);
  48627. var endX = timeScale(d.renderEndTime || d.endTime);
  48628. if (d.milestone) {
  48629. startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;
  48630. }
  48631. if (d.milestone) {
  48632. endX = startX + theBarHeight;
  48633. }
  48634. var textWidth = this.getBBox().width; // Check id text width > width of rectangle
  48635. if (textWidth > endX - startX) {
  48636. if (endX + textWidth + 1.5 * conf.leftPadding > w) {
  48637. return startX + theSidePad - 5;
  48638. } else {
  48639. return endX + theSidePad + 5;
  48640. }
  48641. } else {
  48642. return (endX - startX) / 2 + startX + theSidePad;
  48643. }
  48644. }).attr('y', function (d, i) {
  48645. // Ignore the incoming i value and use our order instead
  48646. i = d.order;
  48647. return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;
  48648. }).attr('text-height', theBarHeight).attr('class', function (d) {
  48649. var startX = timeScale(d.startTime);
  48650. var endX = timeScale(d.endTime);
  48651. if (d.milestone) {
  48652. endX = startX + theBarHeight;
  48653. }
  48654. var textWidth = this.getBBox().width;
  48655. var classStr = '';
  48656. if (d.classes.length > 0) {
  48657. classStr = d.classes.join(' ');
  48658. }
  48659. var secNum = 0;
  48660. console.log(conf);
  48661. for (var _i3 = 0; _i3 < categories.length; _i3++) {
  48662. if (d.type === categories[_i3]) {
  48663. secNum = _i3 % conf.numberSectionStyles;
  48664. }
  48665. }
  48666. var taskType = '';
  48667. if (d.active) {
  48668. if (d.crit) {
  48669. taskType = 'activeCritText' + secNum;
  48670. } else {
  48671. taskType = 'activeText' + secNum;
  48672. }
  48673. }
  48674. if (d.done) {
  48675. if (d.crit) {
  48676. taskType = taskType + ' doneCritText' + secNum;
  48677. } else {
  48678. taskType = taskType + ' doneText' + secNum;
  48679. }
  48680. } else {
  48681. if (d.crit) {
  48682. taskType = taskType + ' critText' + secNum;
  48683. }
  48684. }
  48685. if (d.milestone) {
  48686. taskType += ' milestoneText';
  48687. } // Check id text width > width of rectangle
  48688. if (textWidth > endX - startX) {
  48689. if (endX + textWidth + 1.5 * conf.leftPadding > w) {
  48690. return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;
  48691. } else {
  48692. return classStr + ' taskTextOutsideRight taskTextOutside' + secNum + ' ' + taskType + ' width-' + textWidth;
  48693. }
  48694. } else {
  48695. return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;
  48696. }
  48697. });
  48698. }
  48699. function makeGrid(theSidePad, theTopPad, w, h) {
  48700. var xAxis = Object(d3__WEBPACK_IMPORTED_MODULE_0__["axisBottom"])(timeScale).tickSize(-h + theTopPad + conf.gridLineStartPadding).tickFormat(Object(d3__WEBPACK_IMPORTED_MODULE_0__["timeFormat"])(_parser_gantt__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));
  48701. 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');
  48702. }
  48703. function vertLabels(theGap, theTopPad) {
  48704. var numOccurances = [];
  48705. var prevGap = 0;
  48706. for (var _i4 = 0; _i4 < categories.length; _i4++) {
  48707. numOccurances[_i4] = [categories[_i4], getCount(categories[_i4], catsUnfiltered)];
  48708. }
  48709. svg.append('g') // without doing this, impossible to put grid lines behind text
  48710. .selectAll('text').data(numOccurances).enter().append(function (d) {
  48711. var rows = d[0].split(_common_common__WEBPACK_IMPORTED_MODULE_2__["default"].lineBreakRegex);
  48712. var dy = -(rows.length - 1) / 2;
  48713. var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');
  48714. svgLabel.setAttribute('dy', dy + 'em');
  48715. for (var j = 0; j < rows.length; j++) {
  48716. var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');
  48717. tspan.setAttribute('alignment-baseline', 'central');
  48718. tspan.setAttribute('x', '10');
  48719. if (j > 0) tspan.setAttribute('dy', '1em');
  48720. tspan.textContent = rows[j];
  48721. svgLabel.appendChild(tspan);
  48722. }
  48723. return svgLabel;
  48724. }).attr('x', 10).attr('y', function (d, i) {
  48725. if (i > 0) {
  48726. for (var j = 0; j < i; j++) {
  48727. prevGap += numOccurances[i - 1][1];
  48728. return d[1] * theGap / 2 + prevGap * theGap + theTopPad;
  48729. }
  48730. } else {
  48731. return d[1] * theGap / 2 + theTopPad;
  48732. }
  48733. }).attr('class', function (d) {
  48734. for (var _i5 = 0; _i5 < categories.length; _i5++) {
  48735. if (d[0] === categories[_i5]) {
  48736. return 'sectionTitle sectionTitle' + _i5 % conf.numberSectionStyles;
  48737. }
  48738. }
  48739. return 'sectionTitle';
  48740. });
  48741. }
  48742. function drawToday(theSidePad, theTopPad, w, h) {
  48743. var todayMarker = _ganttDb__WEBPACK_IMPORTED_MODULE_3__["default"].getTodayMarker();
  48744. if (todayMarker === 'off') {
  48745. return;
  48746. }
  48747. var todayG = svg.append('g').attr('class', 'today');
  48748. var today = new Date();
  48749. var todayLine = todayG.append('line');
  48750. todayLine.attr('x1', timeScale(today) + theSidePad).attr('x2', timeScale(today) + theSidePad).attr('y1', conf.titleTopMargin).attr('y2', h - conf.titleTopMargin).attr('class', 'today');
  48751. if (todayMarker !== '') {
  48752. todayLine.attr('style', todayMarker.replace(/,/g, ';'));
  48753. }
  48754. } // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript
  48755. function checkUnique(arr) {
  48756. var hash = {};
  48757. var result = [];
  48758. for (var _i6 = 0, l = arr.length; _i6 < l; ++_i6) {
  48759. if (!hash.hasOwnProperty(arr[_i6])) {
  48760. // eslint-disable-line
  48761. // it works with objects! in FF, at least
  48762. hash[arr[_i6]] = true;
  48763. result.push(arr[_i6]);
  48764. }
  48765. }
  48766. return result;
  48767. } // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array
  48768. function getCounts(arr) {
  48769. var i = arr.length; // const to loop over
  48770. var obj = {}; // obj to store results
  48771. while (i) {
  48772. obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences
  48773. }
  48774. return obj;
  48775. } // get specific from everything
  48776. function getCount(word, arr) {
  48777. return getCounts(arr)[word] || 0;
  48778. }
  48779. };
  48780. /* harmony default export */ __webpack_exports__["default"] = ({
  48781. setConf: setConf,
  48782. draw: draw
  48783. });
  48784. /***/ }),
  48785. /***/ "./src/diagrams/gantt/parser/gantt.jison":
  48786. /*!***********************************************!*\
  48787. !*** ./src/diagrams/gantt/parser/gantt.jison ***!
  48788. \***********************************************/
  48789. /*! no static exports found */
  48790. /***/ (function(module, exports, __webpack_require__) {
  48791. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  48792. /*
  48793. Returns a Parser object of the following structure:
  48794. Parser: {
  48795. yy: {}
  48796. }
  48797. Parser.prototype: {
  48798. yy: {},
  48799. trace: function(),
  48800. symbols_: {associative list: name ==> number},
  48801. terminals_: {associative list: number ==> name},
  48802. productions_: [...],
  48803. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  48804. table: [...],
  48805. defaultActions: {...},
  48806. parseError: function(str, hash),
  48807. parse: function(input),
  48808. lexer: {
  48809. EOF: 1,
  48810. parseError: function(str, hash),
  48811. setInput: function(input),
  48812. input: function(),
  48813. unput: function(str),
  48814. more: function(),
  48815. less: function(n),
  48816. pastInput: function(),
  48817. upcomingInput: function(),
  48818. showPosition: function(),
  48819. test_match: function(regex_match_array, rule_index),
  48820. next: function(),
  48821. lex: function(),
  48822. begin: function(condition),
  48823. popState: function(),
  48824. _currentRules: function(),
  48825. topState: function(),
  48826. pushState: function(condition),
  48827. options: {
  48828. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  48829. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  48830. 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)
  48831. },
  48832. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  48833. rules: [...],
  48834. conditions: {associative list: name ==> set},
  48835. }
  48836. }
  48837. token location info (@$, _$, etc.): {
  48838. first_line: n,
  48839. last_line: n,
  48840. first_column: n,
  48841. last_column: n,
  48842. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  48843. }
  48844. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  48845. text: (matched text)
  48846. token: (the produced terminal token, if any)
  48847. line: (yylineno)
  48848. }
  48849. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  48850. loc: (yylloc)
  48851. expected: (string describing the set of expected tokens)
  48852. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  48853. }
  48854. */
  48855. var parser = (function(){
  48856. 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,17,19,21],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],$V7=[1,15],$V8=[1,17],$V9=[1,18];
  48857. var parser = {trace: function trace () { },
  48858. yy: {},
  48859. 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,"todayMarker":15,"title":16,"section":17,"clickStatement":18,"taskTxt":19,"taskData":20,"click":21,"callbackname":22,"callbackargs":23,"href":24,"clickStatementDebug":25,"$accept":0,"$end":1},
  48860. terminals_: {2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",11:"dateFormat",12:"inclusiveEndDates",13:"axisFormat",14:"excludes",15:"todayMarker",16:"title",17:"section",19:"taskTxt",20:"taskData",21:"click",22:"callbackname",23:"callbackargs",24:"href"},
  48861. 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,1],[9,2],[18,2],[18,3],[18,3],[18,4],[18,3],[18,4],[18,2],[25,2],[25,3],[25,3],[25,4],[25,3],[25,4],[25,2]],
  48862. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  48863. /* this == yyval */
  48864. var $0 = $$.length - 1;
  48865. switch (yystate) {
  48866. case 1:
  48867. return $$[$0-1];
  48868. break;
  48869. case 2:
  48870. this.$ = []
  48871. break;
  48872. case 3:
  48873. $$[$0-1].push($$[$0]);this.$ = $$[$0-1]
  48874. break;
  48875. case 4: case 5:
  48876. this.$ = $$[$0]
  48877. break;
  48878. case 6: case 7:
  48879. this.$=[];
  48880. break;
  48881. case 8:
  48882. yy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);
  48883. break;
  48884. case 9:
  48885. yy.enableInclusiveEndDates();this.$=$$[$0].substr(18);
  48886. break;
  48887. case 10:
  48888. yy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);
  48889. break;
  48890. case 11:
  48891. yy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);
  48892. break;
  48893. case 12:
  48894. yy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12);
  48895. break;
  48896. case 13:
  48897. yy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);
  48898. break;
  48899. case 14:
  48900. yy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);
  48901. break;
  48902. case 16:
  48903. yy.addTask($$[$0-1],$$[$0]);this.$='task';
  48904. break;
  48905. case 17:
  48906. this.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);
  48907. break;
  48908. case 18:
  48909. this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);
  48910. break;
  48911. case 19:
  48912. this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);
  48913. break;
  48914. case 20:
  48915. this.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);
  48916. break;
  48917. case 21:
  48918. this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);
  48919. break;
  48920. case 22:
  48921. this.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);
  48922. break;
  48923. case 23:
  48924. this.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);
  48925. break;
  48926. case 24: case 30:
  48927. this.$=$$[$0-1] + ' ' + $$[$0];
  48928. break;
  48929. case 25: case 26: case 28:
  48930. this.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];
  48931. break;
  48932. case 27: case 29:
  48933. this.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];
  48934. break;
  48935. }
  48936. },
  48937. 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:$V7,18:16,19:$V8,21:$V9},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:19,11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},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]),o($V0,[2,15]),{20:[1,20]},{22:[1,21],24:[1,22]},o($V0,[2,4]),o($V0,[2,16]),o($V0,[2,17],{23:[1,23],24:[1,24]}),o($V0,[2,23],{22:[1,25]}),o($V0,[2,18],{24:[1,26]}),o($V0,[2,19]),o($V0,[2,21],{23:[1,27]}),o($V0,[2,20]),o($V0,[2,22])],
  48938. defaultActions: {},
  48939. parseError: function parseError (str, hash) {
  48940. if (hash.recoverable) {
  48941. this.trace(str);
  48942. } else {
  48943. var error = new Error(str);
  48944. error.hash = hash;
  48945. throw error;
  48946. }
  48947. },
  48948. parse: function parse(input) {
  48949. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  48950. var args = lstack.slice.call(arguments, 1);
  48951. var lexer = Object.create(this.lexer);
  48952. var sharedState = { yy: {} };
  48953. for (var k in this.yy) {
  48954. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  48955. sharedState.yy[k] = this.yy[k];
  48956. }
  48957. }
  48958. lexer.setInput(input, sharedState.yy);
  48959. sharedState.yy.lexer = lexer;
  48960. sharedState.yy.parser = this;
  48961. if (typeof lexer.yylloc == 'undefined') {
  48962. lexer.yylloc = {};
  48963. }
  48964. var yyloc = lexer.yylloc;
  48965. lstack.push(yyloc);
  48966. var ranges = lexer.options && lexer.options.ranges;
  48967. if (typeof sharedState.yy.parseError === 'function') {
  48968. this.parseError = sharedState.yy.parseError;
  48969. } else {
  48970. this.parseError = Object.getPrototypeOf(this).parseError;
  48971. }
  48972. function popStack(n) {
  48973. stack.length = stack.length - 2 * n;
  48974. vstack.length = vstack.length - n;
  48975. lstack.length = lstack.length - n;
  48976. }
  48977. function lex() {
  48978. var token;
  48979. token = tstack.pop() || lexer.lex() || EOF;
  48980. if (typeof token !== 'number') {
  48981. if (token instanceof Array) {
  48982. tstack = token;
  48983. token = tstack.pop();
  48984. }
  48985. token = self.symbols_[token] || token;
  48986. }
  48987. return token;
  48988. }
  48989. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  48990. while (true) {
  48991. state = stack[stack.length - 1];
  48992. if (this.defaultActions[state]) {
  48993. action = this.defaultActions[state];
  48994. } else {
  48995. if (symbol === null || typeof symbol == 'undefined') {
  48996. symbol = lex();
  48997. }
  48998. action = table[state] && table[state][symbol];
  48999. }
  49000. if (typeof action === 'undefined' || !action.length || !action[0]) {
  49001. var errStr = '';
  49002. expected = [];
  49003. for (p in table[state]) {
  49004. if (this.terminals_[p] && p > TERROR) {
  49005. expected.push('\'' + this.terminals_[p] + '\'');
  49006. }
  49007. }
  49008. if (lexer.showPosition) {
  49009. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  49010. } else {
  49011. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  49012. }
  49013. this.parseError(errStr, {
  49014. text: lexer.match,
  49015. token: this.terminals_[symbol] || symbol,
  49016. line: lexer.yylineno,
  49017. loc: yyloc,
  49018. expected: expected
  49019. });
  49020. }
  49021. if (action[0] instanceof Array && action.length > 1) {
  49022. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  49023. }
  49024. switch (action[0]) {
  49025. case 1:
  49026. stack.push(symbol);
  49027. vstack.push(lexer.yytext);
  49028. lstack.push(lexer.yylloc);
  49029. stack.push(action[1]);
  49030. symbol = null;
  49031. if (!preErrorSymbol) {
  49032. yyleng = lexer.yyleng;
  49033. yytext = lexer.yytext;
  49034. yylineno = lexer.yylineno;
  49035. yyloc = lexer.yylloc;
  49036. if (recovering > 0) {
  49037. recovering--;
  49038. }
  49039. } else {
  49040. symbol = preErrorSymbol;
  49041. preErrorSymbol = null;
  49042. }
  49043. break;
  49044. case 2:
  49045. len = this.productions_[action[1]][1];
  49046. yyval.$ = vstack[vstack.length - len];
  49047. yyval._$ = {
  49048. first_line: lstack[lstack.length - (len || 1)].first_line,
  49049. last_line: lstack[lstack.length - 1].last_line,
  49050. first_column: lstack[lstack.length - (len || 1)].first_column,
  49051. last_column: lstack[lstack.length - 1].last_column
  49052. };
  49053. if (ranges) {
  49054. yyval._$.range = [
  49055. lstack[lstack.length - (len || 1)].range[0],
  49056. lstack[lstack.length - 1].range[1]
  49057. ];
  49058. }
  49059. r = this.performAction.apply(yyval, [
  49060. yytext,
  49061. yyleng,
  49062. yylineno,
  49063. sharedState.yy,
  49064. action[1],
  49065. vstack,
  49066. lstack
  49067. ].concat(args));
  49068. if (typeof r !== 'undefined') {
  49069. return r;
  49070. }
  49071. if (len) {
  49072. stack = stack.slice(0, -1 * len * 2);
  49073. vstack = vstack.slice(0, -1 * len);
  49074. lstack = lstack.slice(0, -1 * len);
  49075. }
  49076. stack.push(this.productions_[action[1]][0]);
  49077. vstack.push(yyval.$);
  49078. lstack.push(yyval._$);
  49079. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  49080. stack.push(newState);
  49081. break;
  49082. case 3:
  49083. return true;
  49084. }
  49085. }
  49086. return true;
  49087. }};
  49088. /* generated by jison-lex 0.3.4 */
  49089. var lexer = (function(){
  49090. var lexer = ({
  49091. EOF:1,
  49092. parseError:function parseError(str, hash) {
  49093. if (this.yy.parser) {
  49094. this.yy.parser.parseError(str, hash);
  49095. } else {
  49096. throw new Error(str);
  49097. }
  49098. },
  49099. // resets the lexer, sets new input
  49100. setInput:function (input, yy) {
  49101. this.yy = yy || this.yy || {};
  49102. this._input = input;
  49103. this._more = this._backtrack = this.done = false;
  49104. this.yylineno = this.yyleng = 0;
  49105. this.yytext = this.matched = this.match = '';
  49106. this.conditionStack = ['INITIAL'];
  49107. this.yylloc = {
  49108. first_line: 1,
  49109. first_column: 0,
  49110. last_line: 1,
  49111. last_column: 0
  49112. };
  49113. if (this.options.ranges) {
  49114. this.yylloc.range = [0,0];
  49115. }
  49116. this.offset = 0;
  49117. return this;
  49118. },
  49119. // consumes and returns one char from the input
  49120. input:function () {
  49121. var ch = this._input[0];
  49122. this.yytext += ch;
  49123. this.yyleng++;
  49124. this.offset++;
  49125. this.match += ch;
  49126. this.matched += ch;
  49127. var lines = ch.match(/(?:\r\n?|\n).*/g);
  49128. if (lines) {
  49129. this.yylineno++;
  49130. this.yylloc.last_line++;
  49131. } else {
  49132. this.yylloc.last_column++;
  49133. }
  49134. if (this.options.ranges) {
  49135. this.yylloc.range[1]++;
  49136. }
  49137. this._input = this._input.slice(1);
  49138. return ch;
  49139. },
  49140. // unshifts one char (or a string) into the input
  49141. unput:function (ch) {
  49142. var len = ch.length;
  49143. var lines = ch.split(/(?:\r\n?|\n)/g);
  49144. this._input = ch + this._input;
  49145. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  49146. //this.yyleng -= len;
  49147. this.offset -= len;
  49148. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  49149. this.match = this.match.substr(0, this.match.length - 1);
  49150. this.matched = this.matched.substr(0, this.matched.length - 1);
  49151. if (lines.length - 1) {
  49152. this.yylineno -= lines.length - 1;
  49153. }
  49154. var r = this.yylloc.range;
  49155. this.yylloc = {
  49156. first_line: this.yylloc.first_line,
  49157. last_line: this.yylineno + 1,
  49158. first_column: this.yylloc.first_column,
  49159. last_column: lines ?
  49160. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  49161. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  49162. this.yylloc.first_column - len
  49163. };
  49164. if (this.options.ranges) {
  49165. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  49166. }
  49167. this.yyleng = this.yytext.length;
  49168. return this;
  49169. },
  49170. // When called from action, caches matched text and appends it on next action
  49171. more:function () {
  49172. this._more = true;
  49173. return this;
  49174. },
  49175. // 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.
  49176. reject:function () {
  49177. if (this.options.backtrack_lexer) {
  49178. this._backtrack = true;
  49179. } else {
  49180. 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(), {
  49181. text: "",
  49182. token: null,
  49183. line: this.yylineno
  49184. });
  49185. }
  49186. return this;
  49187. },
  49188. // retain first n characters of the match
  49189. less:function (n) {
  49190. this.unput(this.match.slice(n));
  49191. },
  49192. // displays already matched input, i.e. for error messages
  49193. pastInput:function () {
  49194. var past = this.matched.substr(0, this.matched.length - this.match.length);
  49195. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  49196. },
  49197. // displays upcoming input, i.e. for error messages
  49198. upcomingInput:function () {
  49199. var next = this.match;
  49200. if (next.length < 20) {
  49201. next += this._input.substr(0, 20-next.length);
  49202. }
  49203. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  49204. },
  49205. // displays the character position where the lexing error occurred, i.e. for error messages
  49206. showPosition:function () {
  49207. var pre = this.pastInput();
  49208. var c = new Array(pre.length + 1).join("-");
  49209. return pre + this.upcomingInput() + "\n" + c + "^";
  49210. },
  49211. // test the lexed token: return FALSE when not a match, otherwise return token
  49212. test_match:function(match, indexed_rule) {
  49213. var token,
  49214. lines,
  49215. backup;
  49216. if (this.options.backtrack_lexer) {
  49217. // save context
  49218. backup = {
  49219. yylineno: this.yylineno,
  49220. yylloc: {
  49221. first_line: this.yylloc.first_line,
  49222. last_line: this.last_line,
  49223. first_column: this.yylloc.first_column,
  49224. last_column: this.yylloc.last_column
  49225. },
  49226. yytext: this.yytext,
  49227. match: this.match,
  49228. matches: this.matches,
  49229. matched: this.matched,
  49230. yyleng: this.yyleng,
  49231. offset: this.offset,
  49232. _more: this._more,
  49233. _input: this._input,
  49234. yy: this.yy,
  49235. conditionStack: this.conditionStack.slice(0),
  49236. done: this.done
  49237. };
  49238. if (this.options.ranges) {
  49239. backup.yylloc.range = this.yylloc.range.slice(0);
  49240. }
  49241. }
  49242. lines = match[0].match(/(?:\r\n?|\n).*/g);
  49243. if (lines) {
  49244. this.yylineno += lines.length;
  49245. }
  49246. this.yylloc = {
  49247. first_line: this.yylloc.last_line,
  49248. last_line: this.yylineno + 1,
  49249. first_column: this.yylloc.last_column,
  49250. last_column: lines ?
  49251. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  49252. this.yylloc.last_column + match[0].length
  49253. };
  49254. this.yytext += match[0];
  49255. this.match += match[0];
  49256. this.matches = match;
  49257. this.yyleng = this.yytext.length;
  49258. if (this.options.ranges) {
  49259. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  49260. }
  49261. this._more = false;
  49262. this._backtrack = false;
  49263. this._input = this._input.slice(match[0].length);
  49264. this.matched += match[0];
  49265. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  49266. if (this.done && this._input) {
  49267. this.done = false;
  49268. }
  49269. if (token) {
  49270. return token;
  49271. } else if (this._backtrack) {
  49272. // recover context
  49273. for (var k in backup) {
  49274. this[k] = backup[k];
  49275. }
  49276. return false; // rule action called reject() implying the next rule should be tested instead.
  49277. }
  49278. return false;
  49279. },
  49280. // return next match in input
  49281. next:function () {
  49282. if (this.done) {
  49283. return this.EOF;
  49284. }
  49285. if (!this._input) {
  49286. this.done = true;
  49287. }
  49288. var token,
  49289. match,
  49290. tempMatch,
  49291. index;
  49292. if (!this._more) {
  49293. this.yytext = '';
  49294. this.match = '';
  49295. }
  49296. var rules = this._currentRules();
  49297. for (var i = 0; i < rules.length; i++) {
  49298. tempMatch = this._input.match(this.rules[rules[i]]);
  49299. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  49300. match = tempMatch;
  49301. index = i;
  49302. if (this.options.backtrack_lexer) {
  49303. token = this.test_match(tempMatch, rules[i]);
  49304. if (token !== false) {
  49305. return token;
  49306. } else if (this._backtrack) {
  49307. match = false;
  49308. continue; // rule action called reject() implying a rule MISmatch.
  49309. } else {
  49310. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  49311. return false;
  49312. }
  49313. } else if (!this.options.flex) {
  49314. break;
  49315. }
  49316. }
  49317. }
  49318. if (match) {
  49319. token = this.test_match(match, rules[index]);
  49320. if (token !== false) {
  49321. return token;
  49322. }
  49323. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  49324. return false;
  49325. }
  49326. if (this._input === "") {
  49327. return this.EOF;
  49328. } else {
  49329. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  49330. text: "",
  49331. token: null,
  49332. line: this.yylineno
  49333. });
  49334. }
  49335. },
  49336. // return next match that has a token
  49337. lex:function lex () {
  49338. var r = this.next();
  49339. if (r) {
  49340. return r;
  49341. } else {
  49342. return this.lex();
  49343. }
  49344. },
  49345. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  49346. begin:function begin (condition) {
  49347. this.conditionStack.push(condition);
  49348. },
  49349. // pop the previously active lexer condition state off the condition stack
  49350. popState:function popState () {
  49351. var n = this.conditionStack.length - 1;
  49352. if (n > 0) {
  49353. return this.conditionStack.pop();
  49354. } else {
  49355. return this.conditionStack[0];
  49356. }
  49357. },
  49358. // produce the lexer rule set which is active for the currently active lexer condition state
  49359. _currentRules:function _currentRules () {
  49360. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  49361. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  49362. } else {
  49363. return this.conditions["INITIAL"].rules;
  49364. }
  49365. },
  49366. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  49367. topState:function topState (n) {
  49368. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  49369. if (n >= 0) {
  49370. return this.conditionStack[n];
  49371. } else {
  49372. return "INITIAL";
  49373. }
  49374. },
  49375. // alias for begin(condition)
  49376. pushState:function pushState (condition) {
  49377. this.begin(condition);
  49378. },
  49379. // return the number of states currently on the stack
  49380. stateStackSize:function stateStackSize() {
  49381. return this.conditionStack.length;
  49382. },
  49383. options: {"case-insensitive":true},
  49384. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  49385. var YYSTATE=YY_START;
  49386. switch($avoiding_name_collisions) {
  49387. case 0:return 10;
  49388. break;
  49389. case 1:/* skip whitespace */
  49390. break;
  49391. case 2:/* skip comments */
  49392. break;
  49393. case 3:/* skip comments */
  49394. break;
  49395. case 4:this.begin("href");
  49396. break;
  49397. case 5:this.popState();
  49398. break;
  49399. case 6:return 24;
  49400. break;
  49401. case 7:this.begin("callbackname");
  49402. break;
  49403. case 8:this.popState();
  49404. break;
  49405. case 9:this.popState(); this.begin("callbackargs");
  49406. break;
  49407. case 10:return 22;
  49408. break;
  49409. case 11:this.popState();
  49410. break;
  49411. case 12:return 23;
  49412. break;
  49413. case 13:this.begin("click");
  49414. break;
  49415. case 14:this.popState();
  49416. break;
  49417. case 15:return 21;
  49418. break;
  49419. case 16:return 4;
  49420. break;
  49421. case 17:return 11;
  49422. break;
  49423. case 18:return 12;
  49424. break;
  49425. case 19:return 13;
  49426. break;
  49427. case 20:return 14;
  49428. break;
  49429. case 21:return 15;
  49430. break;
  49431. case 22:return 'date';
  49432. break;
  49433. case 23:return 16;
  49434. break;
  49435. case 24:return 17;
  49436. break;
  49437. case 25:return 19;
  49438. break;
  49439. case 26:return 20;
  49440. break;
  49441. case 27:return ':';
  49442. break;
  49443. case 28:return 6;
  49444. break;
  49445. case 29:return 'INVALID';
  49446. break;
  49447. }
  49448. },
  49449. 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,/^(?:todayMarker\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],
  49450. 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,29],"inclusive":true}}
  49451. });
  49452. return lexer;
  49453. })();
  49454. parser.lexer = lexer;
  49455. function Parser () {
  49456. this.yy = {};
  49457. }
  49458. Parser.prototype = parser;parser.Parser = Parser;
  49459. return new Parser;
  49460. })();
  49461. if (true) {
  49462. exports.parser = parser;
  49463. exports.Parser = parser.Parser;
  49464. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  49465. exports.main = function commonjsMain (args) {
  49466. if (!args[1]) {
  49467. console.log('Usage: '+args[0]+' FILE');
  49468. process.exit(1);
  49469. }
  49470. 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");
  49471. return exports.parser.parse(source);
  49472. };
  49473. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  49474. exports.main(process.argv.slice(1));
  49475. }
  49476. }
  49477. /* 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)))
  49478. /***/ }),
  49479. /***/ "./src/diagrams/gantt/styles.js":
  49480. /*!**************************************!*\
  49481. !*** ./src/diagrams/gantt/styles.js ***!
  49482. \**************************************/
  49483. /*! exports provided: default */
  49484. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49485. "use strict";
  49486. __webpack_require__.r(__webpack_exports__);
  49487. var getStyles = function getStyles(options) {
  49488. return "\n .mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ".concat(options.sectionBkgColor, ";\n }\n\n .section2 {\n fill: ").concat(options.sectionBkgColor2, ";\n }\n\n .section1,\n .section3 {\n fill: ").concat(options.altSectionBkgColor, ";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle1 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle2 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle3 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(options.gridColor, ";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(options.fontFamily, ";\n fill: ").concat(options.textColor, ";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(options.todayLineColor, ";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ").concat(options.taskTextDarkColor, ";\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(options.taskTextDarkColor, ";\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(options.taskTextColor, ";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(options.taskBkgColor, ";\n stroke: ").concat(options.taskBorderColor, ";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(options.taskTextOutsideColor, ";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(options.taskTextOutsideColor, ";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(options.activeTaskBkgColor, ";\n stroke: ").concat(options.activeTaskBorderColor, ";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(options.doneTaskBorderColor, ";\n fill: ").concat(options.doneTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.critBkgColor, ";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.activeTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.doneTaskBkgColor, ";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(options.taskTextDarkColor, " ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n");
  49489. };
  49490. /* harmony default export */ __webpack_exports__["default"] = (getStyles);
  49491. /***/ }),
  49492. /***/ "./src/diagrams/git/gitGraphAst.js":
  49493. /*!*****************************************!*\
  49494. !*** ./src/diagrams/git/gitGraphAst.js ***!
  49495. \*****************************************/
  49496. /*! exports provided: setDirection, setOptions, getOptions, commit, branch, merge, checkout, reset, prettyPrint, clear, getBranchesAsObjArray, getBranches, getCommits, getCommitsArray, getCurrentBranch, getDirection, getHead, default */
  49497. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49498. "use strict";
  49499. __webpack_require__.r(__webpack_exports__);
  49500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDirection", function() { return setDirection; });
  49501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setOptions", function() { return setOptions; });
  49502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOptions", function() { return getOptions; });
  49503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "commit", function() { return commit; });
  49504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "branch", function() { return branch; });
  49505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return merge; });
  49506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkout", function() { return checkout; });
  49507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reset", function() { return reset; });
  49508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prettyPrint", function() { return prettyPrint; });
  49509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  49510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBranchesAsObjArray", function() { return getBranchesAsObjArray; });
  49511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBranches", function() { return getBranches; });
  49512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCommits", function() { return getCommits; });
  49513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCommitsArray", function() { return getCommitsArray; });
  49514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCurrentBranch", function() { return getCurrentBranch; });
  49515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDirection", function() { return getDirection; });
  49516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHead", function() { return getHead; });
  49517. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  49518. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  49519. var commits = {};
  49520. var head = null;
  49521. var branches = {
  49522. master: head
  49523. };
  49524. var curBranch = 'master';
  49525. var direction = 'LR';
  49526. var seq = 0;
  49527. function getId() {
  49528. return Object(_utils__WEBPACK_IMPORTED_MODULE_1__["random"])({
  49529. length: 7
  49530. });
  49531. }
  49532. function isfastforwardable(currentCommit, otherCommit) {
  49533. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);
  49534. while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {
  49535. // only if other branch has more commits
  49536. if (otherCommit.parent == null) break;
  49537. if (Array.isArray(otherCommit.parent)) {
  49538. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('In merge commit:', otherCommit.parent);
  49539. return isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) || isfastforwardable(currentCommit, commits[otherCommit.parent[1]]);
  49540. } else {
  49541. otherCommit = commits[otherCommit.parent];
  49542. }
  49543. }
  49544. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(currentCommit.id, otherCommit.id);
  49545. return currentCommit.id === otherCommit.id;
  49546. }
  49547. function isReachableFrom(currentCommit, otherCommit) {
  49548. var currentSeq = currentCommit.seq;
  49549. var otherSeq = otherCommit.seq;
  49550. if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);
  49551. return false;
  49552. }
  49553. function uniqBy(list, fn) {
  49554. var recordMap = Object.create(null);
  49555. return list.reduce(function (out, item) {
  49556. var key = fn(item);
  49557. if (!recordMap[key]) {
  49558. recordMap[key] = true;
  49559. out.push(item);
  49560. }
  49561. return out;
  49562. }, []);
  49563. }
  49564. var setDirection = function setDirection(dir) {
  49565. direction = dir;
  49566. };
  49567. var options = {};
  49568. var setOptions = function setOptions(rawOptString) {
  49569. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('options str', rawOptString);
  49570. rawOptString = rawOptString && rawOptString.trim();
  49571. rawOptString = rawOptString || '{}';
  49572. try {
  49573. options = JSON.parse(rawOptString);
  49574. } catch (e) {
  49575. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error('error while parsing gitGraph options', e.message);
  49576. }
  49577. };
  49578. var getOptions = function getOptions() {
  49579. return options;
  49580. };
  49581. var commit = function commit(msg) {
  49582. var commit = {
  49583. id: getId(),
  49584. message: msg,
  49585. seq: seq++,
  49586. parent: head == null ? null : head.id
  49587. };
  49588. head = commit;
  49589. commits[commit.id] = commit;
  49590. branches[curBranch] = commit.id;
  49591. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('in pushCommit ' + commit.id);
  49592. };
  49593. var branch = function branch(name) {
  49594. branches[name] = head != null ? head.id : null;
  49595. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('in createBranch');
  49596. };
  49597. var merge = function merge(otherBranch) {
  49598. var currentCommit = commits[branches[curBranch]];
  49599. var otherCommit = commits[branches[otherBranch]];
  49600. if (isReachableFrom(currentCommit, otherCommit)) {
  49601. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Already merged');
  49602. return;
  49603. }
  49604. if (isfastforwardable(currentCommit, otherCommit)) {
  49605. branches[curBranch] = branches[otherBranch];
  49606. head = commits[branches[curBranch]];
  49607. } else {
  49608. // create merge commit
  49609. var _commit = {
  49610. id: getId(),
  49611. message: 'merged branch ' + otherBranch + ' into ' + curBranch,
  49612. seq: seq++,
  49613. parent: [head == null ? null : head.id, branches[otherBranch]]
  49614. };
  49615. head = _commit;
  49616. commits[_commit.id] = _commit;
  49617. branches[curBranch] = _commit.id;
  49618. }
  49619. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(branches);
  49620. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('in mergeBranch');
  49621. };
  49622. var checkout = function checkout(branch) {
  49623. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('in checkout');
  49624. curBranch = branch;
  49625. var id = branches[curBranch];
  49626. head = commits[id];
  49627. };
  49628. var reset = function reset(commitRef) {
  49629. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('in reset', commitRef);
  49630. var ref = commitRef.split(':')[0];
  49631. var parentCount = parseInt(commitRef.split(':')[1]);
  49632. var commit = ref === 'HEAD' ? head : commits[branches[ref]];
  49633. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(commit, parentCount);
  49634. while (parentCount > 0) {
  49635. commit = commits[commit.parent];
  49636. parentCount--;
  49637. if (!commit) {
  49638. var err = 'Critical error - unique parent commit not found during reset';
  49639. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error(err);
  49640. throw err;
  49641. }
  49642. }
  49643. head = commit;
  49644. branches[curBranch] = commit.id;
  49645. };
  49646. function upsert(arr, key, newval) {
  49647. var index = arr.indexOf(key);
  49648. if (index === -1) {
  49649. arr.push(newval);
  49650. } else {
  49651. arr.splice(index, 1, newval);
  49652. }
  49653. }
  49654. function prettyPrintCommitHistory(commitArr) {
  49655. var commit = commitArr.reduce(function (out, commit) {
  49656. if (out.seq > commit.seq) return out;
  49657. return commit;
  49658. }, commitArr[0]);
  49659. var line = '';
  49660. commitArr.forEach(function (c) {
  49661. if (c === commit) {
  49662. line += '\t*';
  49663. } else {
  49664. line += '\t|';
  49665. }
  49666. });
  49667. var label = [line, commit.id, commit.seq];
  49668. for (var _branch in branches) {
  49669. if (branches[_branch] === commit.id) label.push(_branch);
  49670. }
  49671. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(label.join(' '));
  49672. if (Array.isArray(commit.parent)) {
  49673. var newCommit = commits[commit.parent[0]];
  49674. upsert(commitArr, commit, newCommit);
  49675. commitArr.push(commits[commit.parent[1]]);
  49676. } else if (commit.parent == null) {
  49677. return;
  49678. } else {
  49679. var nextCommit = commits[commit.parent];
  49680. upsert(commitArr, commit, nextCommit);
  49681. }
  49682. commitArr = uniqBy(commitArr, function (c) {
  49683. return c.id;
  49684. });
  49685. prettyPrintCommitHistory(commitArr);
  49686. }
  49687. var prettyPrint = function prettyPrint() {
  49688. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(commits);
  49689. var node = getCommitsArray()[0];
  49690. prettyPrintCommitHistory([node]);
  49691. };
  49692. var clear = function clear() {
  49693. commits = {};
  49694. head = null;
  49695. branches = {
  49696. master: head
  49697. };
  49698. curBranch = 'master';
  49699. seq = 0;
  49700. };
  49701. var getBranchesAsObjArray = function getBranchesAsObjArray() {
  49702. var branchArr = [];
  49703. for (var _branch2 in branches) {
  49704. branchArr.push({
  49705. name: _branch2,
  49706. commit: commits[branches[_branch2]]
  49707. });
  49708. }
  49709. return branchArr;
  49710. };
  49711. var getBranches = function getBranches() {
  49712. return branches;
  49713. };
  49714. var getCommits = function getCommits() {
  49715. return commits;
  49716. };
  49717. var getCommitsArray = function getCommitsArray() {
  49718. var commitArr = Object.keys(commits).map(function (key) {
  49719. return commits[key];
  49720. });
  49721. commitArr.forEach(function (o) {
  49722. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(o.id);
  49723. });
  49724. commitArr.sort(function (a, b) {
  49725. return b.seq - a.seq;
  49726. });
  49727. return commitArr;
  49728. };
  49729. var getCurrentBranch = function getCurrentBranch() {
  49730. return curBranch;
  49731. };
  49732. var getDirection = function getDirection() {
  49733. return direction;
  49734. };
  49735. var getHead = function getHead() {
  49736. return head;
  49737. };
  49738. /* harmony default export */ __webpack_exports__["default"] = ({
  49739. setDirection: setDirection,
  49740. setOptions: setOptions,
  49741. getOptions: getOptions,
  49742. commit: commit,
  49743. branch: branch,
  49744. merge: merge,
  49745. checkout: checkout,
  49746. reset: reset,
  49747. prettyPrint: prettyPrint,
  49748. clear: clear,
  49749. getBranchesAsObjArray: getBranchesAsObjArray,
  49750. getBranches: getBranches,
  49751. getCommits: getCommits,
  49752. getCommitsArray: getCommitsArray,
  49753. getCurrentBranch: getCurrentBranch,
  49754. getDirection: getDirection,
  49755. getHead: getHead
  49756. });
  49757. /***/ }),
  49758. /***/ "./src/diagrams/git/gitGraphRenderer.js":
  49759. /*!**********************************************!*\
  49760. !*** ./src/diagrams/git/gitGraphRenderer.js ***!
  49761. \**********************************************/
  49762. /*! exports provided: setConf, draw, default */
  49763. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49764. "use strict";
  49765. __webpack_require__.r(__webpack_exports__);
  49766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  49767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  49768. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  49769. /* harmony import */ var _gitGraphAst__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./gitGraphAst */ "./src/diagrams/git/gitGraphAst.js");
  49770. /* harmony import */ var _parser_gitGraph__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parser/gitGraph */ "./src/diagrams/git/parser/gitGraph.jison");
  49771. /* harmony import */ var _parser_gitGraph__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_parser_gitGraph__WEBPACK_IMPORTED_MODULE_2__);
  49772. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  49773. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  49774. var allCommitsDict = {};
  49775. var branchNum;
  49776. var config = {
  49777. nodeSpacing: 150,
  49778. nodeFillColor: 'yellow',
  49779. nodeStrokeWidth: 2,
  49780. nodeStrokeColor: 'grey',
  49781. lineStrokeWidth: 4,
  49782. branchOffset: 50,
  49783. lineColor: 'grey',
  49784. leftMargin: 50,
  49785. branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],
  49786. nodeRadius: 10,
  49787. nodeLabel: {
  49788. width: 75,
  49789. height: 100,
  49790. x: -25,
  49791. y: 0
  49792. }
  49793. };
  49794. var apiConfig = {};
  49795. var setConf = function setConf(c) {
  49796. apiConfig = c;
  49797. };
  49798. function svgCreateDefs(svg) {
  49799. svg.append('defs').append('g').attr('id', 'def-commit').append('circle').attr('r', config.nodeRadius).attr('cx', 0).attr('cy', 0);
  49800. 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('');
  49801. }
  49802. function svgDrawLine(svg, points, colorIdx, interpolate) {
  49803. var curve = Object(_utils__WEBPACK_IMPORTED_MODULE_4__["interpolateToCurve"])(interpolate, d3__WEBPACK_IMPORTED_MODULE_0__["curveBasis"]);
  49804. var color = config.branchColors[colorIdx % config.branchColors.length];
  49805. var lineGen = Object(d3__WEBPACK_IMPORTED_MODULE_0__["line"])().x(function (d) {
  49806. return Math.round(d.x);
  49807. }).y(function (d) {
  49808. return Math.round(d.y);
  49809. }).curve(curve);
  49810. svg.append('svg:path').attr('d', lineGen(points)).style('stroke', color).style('stroke-width', config.lineStrokeWidth).style('fill', 'none');
  49811. } // Pass in the element and its pre-transform coords
  49812. function getElementCoords(element, coords) {
  49813. coords = coords || element.node().getBBox();
  49814. var ctm = element.node().getCTM();
  49815. var xn = ctm.e + coords.x * ctm.a;
  49816. var yn = ctm.f + coords.y * ctm.d;
  49817. return {
  49818. left: xn,
  49819. top: yn,
  49820. width: coords.width,
  49821. height: coords.height
  49822. };
  49823. }
  49824. function svgDrawLineForCommits(svg, fromId, toId, direction, color) {
  49825. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('svgDrawLineForCommits: ', fromId, toId);
  49826. var fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));
  49827. var toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));
  49828. switch (direction) {
  49829. case 'LR':
  49830. // (toBbox)
  49831. // +--------
  49832. // + (fromBbox)
  49833. if (fromBbox.left - toBbox.left > config.nodeSpacing) {
  49834. var lineStart = {
  49835. x: fromBbox.left - config.nodeSpacing,
  49836. y: toBbox.top + toBbox.height / 2
  49837. };
  49838. var lineEnd = {
  49839. x: toBbox.left + toBbox.width,
  49840. y: toBbox.top + toBbox.height / 2
  49841. };
  49842. svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');
  49843. svgDrawLine(svg, [{
  49844. x: fromBbox.left,
  49845. y: fromBbox.top + fromBbox.height / 2
  49846. }, {
  49847. x: fromBbox.left - config.nodeSpacing / 2,
  49848. y: fromBbox.top + fromBbox.height / 2
  49849. }, {
  49850. x: fromBbox.left - config.nodeSpacing / 2,
  49851. y: lineStart.y
  49852. }, lineStart], color);
  49853. } else {
  49854. svgDrawLine(svg, [{
  49855. x: fromBbox.left,
  49856. y: fromBbox.top + fromBbox.height / 2
  49857. }, {
  49858. x: fromBbox.left - config.nodeSpacing / 2,
  49859. y: fromBbox.top + fromBbox.height / 2
  49860. }, {
  49861. x: fromBbox.left - config.nodeSpacing / 2,
  49862. y: toBbox.top + toBbox.height / 2
  49863. }, {
  49864. x: toBbox.left + toBbox.width,
  49865. y: toBbox.top + toBbox.height / 2
  49866. }], color);
  49867. }
  49868. break;
  49869. case 'BT':
  49870. // + (fromBbox)
  49871. // |
  49872. // |
  49873. // + (toBbox)
  49874. if (toBbox.top - fromBbox.top > config.nodeSpacing) {
  49875. var _lineStart = {
  49876. x: toBbox.left + toBbox.width / 2,
  49877. y: fromBbox.top + fromBbox.height + config.nodeSpacing
  49878. };
  49879. var _lineEnd = {
  49880. x: toBbox.left + toBbox.width / 2,
  49881. y: toBbox.top
  49882. };
  49883. svgDrawLine(svg, [_lineStart, _lineEnd], color, 'linear');
  49884. svgDrawLine(svg, [{
  49885. x: fromBbox.left + fromBbox.width / 2,
  49886. y: fromBbox.top + fromBbox.height
  49887. }, {
  49888. x: fromBbox.left + fromBbox.width / 2,
  49889. y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2
  49890. }, {
  49891. x: toBbox.left + toBbox.width / 2,
  49892. y: _lineStart.y - config.nodeSpacing / 2
  49893. }, _lineStart], color);
  49894. } else {
  49895. svgDrawLine(svg, [{
  49896. x: fromBbox.left + fromBbox.width / 2,
  49897. y: fromBbox.top + fromBbox.height
  49898. }, {
  49899. x: fromBbox.left + fromBbox.width / 2,
  49900. y: fromBbox.top + config.nodeSpacing / 2
  49901. }, {
  49902. x: toBbox.left + toBbox.width / 2,
  49903. y: toBbox.top - config.nodeSpacing / 2
  49904. }, {
  49905. x: toBbox.left + toBbox.width / 2,
  49906. y: toBbox.top
  49907. }], color);
  49908. }
  49909. break;
  49910. }
  49911. }
  49912. function cloneNode(svg, selector) {
  49913. return svg.select(selector).node().cloneNode(true);
  49914. }
  49915. function renderCommitHistory(svg, commitid, branches, direction) {
  49916. var commit;
  49917. var numCommits = Object.keys(allCommitsDict).length;
  49918. if (typeof commitid === 'string') {
  49919. do {
  49920. commit = allCommitsDict[commitid];
  49921. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('in renderCommitHistory', commit.id, commit.seq);
  49922. if (svg.select('#node-' + commitid).size() > 0) {
  49923. return;
  49924. }
  49925. svg.append(function () {
  49926. return cloneNode(svg, '#def-commit');
  49927. }).attr('class', 'commit').attr('id', function () {
  49928. return 'node-' + commit.id;
  49929. }).attr('transform', function () {
  49930. switch (direction) {
  49931. case 'LR':
  49932. return 'translate(' + (commit.seq * config.nodeSpacing + config.leftMargin) + ', ' + branchNum * config.branchOffset + ')';
  49933. case 'BT':
  49934. return 'translate(' + (branchNum * config.branchOffset + config.leftMargin) + ', ' + (numCommits - commit.seq) * config.nodeSpacing + ')';
  49935. }
  49936. }).attr('fill', config.nodeFillColor).attr('stroke', config.nodeStrokeColor).attr('stroke-width', config.nodeStrokeWidth);
  49937. var branch = void 0;
  49938. for (var branchName in branches) {
  49939. if (branches[branchName].commit === commit) {
  49940. branch = branches[branchName];
  49941. break;
  49942. }
  49943. }
  49944. if (branch) {
  49945. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('found branch ', branch.name);
  49946. svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'branch-label').text(branch.name + ', ');
  49947. }
  49948. svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-id').text(commit.id);
  49949. if (commit.message !== '' && direction === 'BT') {
  49950. svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-msg').text(', ' + commit.message);
  49951. }
  49952. commitid = commit.parent;
  49953. } while (commitid && allCommitsDict[commitid]);
  49954. }
  49955. if (Array.isArray(commitid)) {
  49956. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('found merge commmit', commitid);
  49957. renderCommitHistory(svg, commitid[0], branches, direction);
  49958. branchNum++;
  49959. renderCommitHistory(svg, commitid[1], branches, direction);
  49960. branchNum--;
  49961. }
  49962. }
  49963. function renderLines(svg, commit, direction, branchColor) {
  49964. branchColor = branchColor || 0;
  49965. while (commit.seq > 0 && !commit.lineDrawn) {
  49966. if (typeof commit.parent === 'string') {
  49967. svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);
  49968. commit.lineDrawn = true;
  49969. commit = allCommitsDict[commit.parent];
  49970. } else if (Array.isArray(commit.parent)) {
  49971. svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);
  49972. svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);
  49973. renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);
  49974. commit.lineDrawn = true;
  49975. commit = allCommitsDict[commit.parent[0]];
  49976. }
  49977. }
  49978. }
  49979. var draw = function draw(txt, id, ver) {
  49980. try {
  49981. var parser = _parser_gitGraph__WEBPACK_IMPORTED_MODULE_2___default.a.parser;
  49982. parser.yy = _gitGraphAst__WEBPACK_IMPORTED_MODULE_1__["default"];
  49983. parser.yy.clear();
  49984. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('in gitgraph renderer', txt + '\n', 'id:', id, ver); // Parse the graph definition
  49985. parser.parse(txt + '\n');
  49986. config = Object.assign(config, apiConfig, _gitGraphAst__WEBPACK_IMPORTED_MODULE_1__["default"].getOptions());
  49987. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('effective options', config);
  49988. var direction = _gitGraphAst__WEBPACK_IMPORTED_MODULE_1__["default"].getDirection();
  49989. allCommitsDict = _gitGraphAst__WEBPACK_IMPORTED_MODULE_1__["default"].getCommits();
  49990. var branches = _gitGraphAst__WEBPACK_IMPORTED_MODULE_1__["default"].getBranchesAsObjArray();
  49991. if (direction === 'BT') {
  49992. config.nodeLabel.x = branches.length * config.branchOffset;
  49993. config.nodeLabel.width = '100%';
  49994. config.nodeLabel.y = -1 * 2 * config.nodeRadius;
  49995. }
  49996. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])("[id=\"".concat(id, "\"]"));
  49997. svgCreateDefs(svg);
  49998. branchNum = 1;
  49999. for (var branch in branches) {
  50000. var v = branches[branch];
  50001. renderCommitHistory(svg, v.commit.id, branches, direction);
  50002. renderLines(svg, v.commit, direction);
  50003. branchNum++;
  50004. }
  50005. svg.attr('height', function () {
  50006. if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;
  50007. return (branches.length + 1) * config.branchOffset;
  50008. });
  50009. } catch (e) {
  50010. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error('Error while rendering gitgraph');
  50011. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error(e.message);
  50012. }
  50013. };
  50014. /* harmony default export */ __webpack_exports__["default"] = ({
  50015. setConf: setConf,
  50016. draw: draw
  50017. });
  50018. /***/ }),
  50019. /***/ "./src/diagrams/git/parser/gitGraph.jison":
  50020. /*!************************************************!*\
  50021. !*** ./src/diagrams/git/parser/gitGraph.jison ***!
  50022. \************************************************/
  50023. /*! no static exports found */
  50024. /***/ (function(module, exports, __webpack_require__) {
  50025. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  50026. /*
  50027. Returns a Parser object of the following structure:
  50028. Parser: {
  50029. yy: {}
  50030. }
  50031. Parser.prototype: {
  50032. yy: {},
  50033. trace: function(),
  50034. symbols_: {associative list: name ==> number},
  50035. terminals_: {associative list: number ==> name},
  50036. productions_: [...],
  50037. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  50038. table: [...],
  50039. defaultActions: {...},
  50040. parseError: function(str, hash),
  50041. parse: function(input),
  50042. lexer: {
  50043. EOF: 1,
  50044. parseError: function(str, hash),
  50045. setInput: function(input),
  50046. input: function(),
  50047. unput: function(str),
  50048. more: function(),
  50049. less: function(n),
  50050. pastInput: function(),
  50051. upcomingInput: function(),
  50052. showPosition: function(),
  50053. test_match: function(regex_match_array, rule_index),
  50054. next: function(),
  50055. lex: function(),
  50056. begin: function(condition),
  50057. popState: function(),
  50058. _currentRules: function(),
  50059. topState: function(),
  50060. pushState: function(condition),
  50061. options: {
  50062. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  50063. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  50064. 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)
  50065. },
  50066. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  50067. rules: [...],
  50068. conditions: {associative list: name ==> set},
  50069. }
  50070. }
  50071. token location info (@$, _$, etc.): {
  50072. first_line: n,
  50073. last_line: n,
  50074. first_column: n,
  50075. last_column: n,
  50076. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  50077. }
  50078. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  50079. text: (matched text)
  50080. token: (the produced terminal token, if any)
  50081. line: (yylineno)
  50082. }
  50083. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  50084. loc: (yylloc)
  50085. expected: (string describing the set of expected tokens)
  50086. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  50087. }
  50088. */
  50089. var parser = (function(){
  50090. 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];
  50091. var parser = {trace: function trace () { },
  50092. yy: {},
  50093. 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},
  50094. 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"},
  50095. 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]],
  50096. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  50097. /* this == yyval */
  50098. var $0 = $$.length - 1;
  50099. switch (yystate) {
  50100. case 1:
  50101. return $$[$0-1];
  50102. break;
  50103. case 2:
  50104. yy.setDirection($$[$0-3]); return $$[$0-1];
  50105. break;
  50106. case 4:
  50107. yy.setOptions($$[$0-1]); this.$ = $$[$0]
  50108. break;
  50109. case 5:
  50110. $$[$0-1] +=$$[$0]; this.$=$$[$0-1]
  50111. break;
  50112. case 7:
  50113. this.$ = []
  50114. break;
  50115. case 8:
  50116. $$[$0-1].push($$[$0]); this.$=$$[$0-1];
  50117. break;
  50118. case 9:
  50119. this.$ =$$[$0-1]
  50120. break;
  50121. case 11:
  50122. yy.commit($$[$0])
  50123. break;
  50124. case 12:
  50125. yy.branch($$[$0])
  50126. break;
  50127. case 13:
  50128. yy.checkout($$[$0])
  50129. break;
  50130. case 14:
  50131. yy.merge($$[$0])
  50132. break;
  50133. case 15:
  50134. yy.reset($$[$0])
  50135. break;
  50136. case 16:
  50137. this.$ = ""
  50138. break;
  50139. case 17:
  50140. this.$=$$[$0]
  50141. break;
  50142. case 18:
  50143. this.$ = $$[$0-1]+ ":" + $$[$0]
  50144. break;
  50145. case 19:
  50146. this.$ = $$[$0-1]+ ":" + yy.count; yy.count = 0
  50147. break;
  50148. case 20:
  50149. yy.count = 0
  50150. break;
  50151. case 21:
  50152. yy.count += 1
  50153. break;
  50154. }
  50155. },
  50156. 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]}],
  50157. 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]},
  50158. parseError: function parseError (str, hash) {
  50159. if (hash.recoverable) {
  50160. this.trace(str);
  50161. } else {
  50162. var error = new Error(str);
  50163. error.hash = hash;
  50164. throw error;
  50165. }
  50166. },
  50167. parse: function parse(input) {
  50168. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  50169. var args = lstack.slice.call(arguments, 1);
  50170. var lexer = Object.create(this.lexer);
  50171. var sharedState = { yy: {} };
  50172. for (var k in this.yy) {
  50173. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  50174. sharedState.yy[k] = this.yy[k];
  50175. }
  50176. }
  50177. lexer.setInput(input, sharedState.yy);
  50178. sharedState.yy.lexer = lexer;
  50179. sharedState.yy.parser = this;
  50180. if (typeof lexer.yylloc == 'undefined') {
  50181. lexer.yylloc = {};
  50182. }
  50183. var yyloc = lexer.yylloc;
  50184. lstack.push(yyloc);
  50185. var ranges = lexer.options && lexer.options.ranges;
  50186. if (typeof sharedState.yy.parseError === 'function') {
  50187. this.parseError = sharedState.yy.parseError;
  50188. } else {
  50189. this.parseError = Object.getPrototypeOf(this).parseError;
  50190. }
  50191. function popStack(n) {
  50192. stack.length = stack.length - 2 * n;
  50193. vstack.length = vstack.length - n;
  50194. lstack.length = lstack.length - n;
  50195. }
  50196. function lex() {
  50197. var token;
  50198. token = tstack.pop() || lexer.lex() || EOF;
  50199. if (typeof token !== 'number') {
  50200. if (token instanceof Array) {
  50201. tstack = token;
  50202. token = tstack.pop();
  50203. }
  50204. token = self.symbols_[token] || token;
  50205. }
  50206. return token;
  50207. }
  50208. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  50209. while (true) {
  50210. state = stack[stack.length - 1];
  50211. if (this.defaultActions[state]) {
  50212. action = this.defaultActions[state];
  50213. } else {
  50214. if (symbol === null || typeof symbol == 'undefined') {
  50215. symbol = lex();
  50216. }
  50217. action = table[state] && table[state][symbol];
  50218. }
  50219. if (typeof action === 'undefined' || !action.length || !action[0]) {
  50220. var errStr = '';
  50221. expected = [];
  50222. for (p in table[state]) {
  50223. if (this.terminals_[p] && p > TERROR) {
  50224. expected.push('\'' + this.terminals_[p] + '\'');
  50225. }
  50226. }
  50227. if (lexer.showPosition) {
  50228. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  50229. } else {
  50230. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  50231. }
  50232. this.parseError(errStr, {
  50233. text: lexer.match,
  50234. token: this.terminals_[symbol] || symbol,
  50235. line: lexer.yylineno,
  50236. loc: yyloc,
  50237. expected: expected
  50238. });
  50239. }
  50240. if (action[0] instanceof Array && action.length > 1) {
  50241. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  50242. }
  50243. switch (action[0]) {
  50244. case 1:
  50245. stack.push(symbol);
  50246. vstack.push(lexer.yytext);
  50247. lstack.push(lexer.yylloc);
  50248. stack.push(action[1]);
  50249. symbol = null;
  50250. if (!preErrorSymbol) {
  50251. yyleng = lexer.yyleng;
  50252. yytext = lexer.yytext;
  50253. yylineno = lexer.yylineno;
  50254. yyloc = lexer.yylloc;
  50255. if (recovering > 0) {
  50256. recovering--;
  50257. }
  50258. } else {
  50259. symbol = preErrorSymbol;
  50260. preErrorSymbol = null;
  50261. }
  50262. break;
  50263. case 2:
  50264. len = this.productions_[action[1]][1];
  50265. yyval.$ = vstack[vstack.length - len];
  50266. yyval._$ = {
  50267. first_line: lstack[lstack.length - (len || 1)].first_line,
  50268. last_line: lstack[lstack.length - 1].last_line,
  50269. first_column: lstack[lstack.length - (len || 1)].first_column,
  50270. last_column: lstack[lstack.length - 1].last_column
  50271. };
  50272. if (ranges) {
  50273. yyval._$.range = [
  50274. lstack[lstack.length - (len || 1)].range[0],
  50275. lstack[lstack.length - 1].range[1]
  50276. ];
  50277. }
  50278. r = this.performAction.apply(yyval, [
  50279. yytext,
  50280. yyleng,
  50281. yylineno,
  50282. sharedState.yy,
  50283. action[1],
  50284. vstack,
  50285. lstack
  50286. ].concat(args));
  50287. if (typeof r !== 'undefined') {
  50288. return r;
  50289. }
  50290. if (len) {
  50291. stack = stack.slice(0, -1 * len * 2);
  50292. vstack = vstack.slice(0, -1 * len);
  50293. lstack = lstack.slice(0, -1 * len);
  50294. }
  50295. stack.push(this.productions_[action[1]][0]);
  50296. vstack.push(yyval.$);
  50297. lstack.push(yyval._$);
  50298. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  50299. stack.push(newState);
  50300. break;
  50301. case 3:
  50302. return true;
  50303. }
  50304. }
  50305. return true;
  50306. }};
  50307. /* generated by jison-lex 0.3.4 */
  50308. var lexer = (function(){
  50309. var lexer = ({
  50310. EOF:1,
  50311. parseError:function parseError(str, hash) {
  50312. if (this.yy.parser) {
  50313. this.yy.parser.parseError(str, hash);
  50314. } else {
  50315. throw new Error(str);
  50316. }
  50317. },
  50318. // resets the lexer, sets new input
  50319. setInput:function (input, yy) {
  50320. this.yy = yy || this.yy || {};
  50321. this._input = input;
  50322. this._more = this._backtrack = this.done = false;
  50323. this.yylineno = this.yyleng = 0;
  50324. this.yytext = this.matched = this.match = '';
  50325. this.conditionStack = ['INITIAL'];
  50326. this.yylloc = {
  50327. first_line: 1,
  50328. first_column: 0,
  50329. last_line: 1,
  50330. last_column: 0
  50331. };
  50332. if (this.options.ranges) {
  50333. this.yylloc.range = [0,0];
  50334. }
  50335. this.offset = 0;
  50336. return this;
  50337. },
  50338. // consumes and returns one char from the input
  50339. input:function () {
  50340. var ch = this._input[0];
  50341. this.yytext += ch;
  50342. this.yyleng++;
  50343. this.offset++;
  50344. this.match += ch;
  50345. this.matched += ch;
  50346. var lines = ch.match(/(?:\r\n?|\n).*/g);
  50347. if (lines) {
  50348. this.yylineno++;
  50349. this.yylloc.last_line++;
  50350. } else {
  50351. this.yylloc.last_column++;
  50352. }
  50353. if (this.options.ranges) {
  50354. this.yylloc.range[1]++;
  50355. }
  50356. this._input = this._input.slice(1);
  50357. return ch;
  50358. },
  50359. // unshifts one char (or a string) into the input
  50360. unput:function (ch) {
  50361. var len = ch.length;
  50362. var lines = ch.split(/(?:\r\n?|\n)/g);
  50363. this._input = ch + this._input;
  50364. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  50365. //this.yyleng -= len;
  50366. this.offset -= len;
  50367. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  50368. this.match = this.match.substr(0, this.match.length - 1);
  50369. this.matched = this.matched.substr(0, this.matched.length - 1);
  50370. if (lines.length - 1) {
  50371. this.yylineno -= lines.length - 1;
  50372. }
  50373. var r = this.yylloc.range;
  50374. this.yylloc = {
  50375. first_line: this.yylloc.first_line,
  50376. last_line: this.yylineno + 1,
  50377. first_column: this.yylloc.first_column,
  50378. last_column: lines ?
  50379. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  50380. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  50381. this.yylloc.first_column - len
  50382. };
  50383. if (this.options.ranges) {
  50384. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  50385. }
  50386. this.yyleng = this.yytext.length;
  50387. return this;
  50388. },
  50389. // When called from action, caches matched text and appends it on next action
  50390. more:function () {
  50391. this._more = true;
  50392. return this;
  50393. },
  50394. // 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.
  50395. reject:function () {
  50396. if (this.options.backtrack_lexer) {
  50397. this._backtrack = true;
  50398. } else {
  50399. 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(), {
  50400. text: "",
  50401. token: null,
  50402. line: this.yylineno
  50403. });
  50404. }
  50405. return this;
  50406. },
  50407. // retain first n characters of the match
  50408. less:function (n) {
  50409. this.unput(this.match.slice(n));
  50410. },
  50411. // displays already matched input, i.e. for error messages
  50412. pastInput:function () {
  50413. var past = this.matched.substr(0, this.matched.length - this.match.length);
  50414. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  50415. },
  50416. // displays upcoming input, i.e. for error messages
  50417. upcomingInput:function () {
  50418. var next = this.match;
  50419. if (next.length < 20) {
  50420. next += this._input.substr(0, 20-next.length);
  50421. }
  50422. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  50423. },
  50424. // displays the character position where the lexing error occurred, i.e. for error messages
  50425. showPosition:function () {
  50426. var pre = this.pastInput();
  50427. var c = new Array(pre.length + 1).join("-");
  50428. return pre + this.upcomingInput() + "\n" + c + "^";
  50429. },
  50430. // test the lexed token: return FALSE when not a match, otherwise return token
  50431. test_match:function(match, indexed_rule) {
  50432. var token,
  50433. lines,
  50434. backup;
  50435. if (this.options.backtrack_lexer) {
  50436. // save context
  50437. backup = {
  50438. yylineno: this.yylineno,
  50439. yylloc: {
  50440. first_line: this.yylloc.first_line,
  50441. last_line: this.last_line,
  50442. first_column: this.yylloc.first_column,
  50443. last_column: this.yylloc.last_column
  50444. },
  50445. yytext: this.yytext,
  50446. match: this.match,
  50447. matches: this.matches,
  50448. matched: this.matched,
  50449. yyleng: this.yyleng,
  50450. offset: this.offset,
  50451. _more: this._more,
  50452. _input: this._input,
  50453. yy: this.yy,
  50454. conditionStack: this.conditionStack.slice(0),
  50455. done: this.done
  50456. };
  50457. if (this.options.ranges) {
  50458. backup.yylloc.range = this.yylloc.range.slice(0);
  50459. }
  50460. }
  50461. lines = match[0].match(/(?:\r\n?|\n).*/g);
  50462. if (lines) {
  50463. this.yylineno += lines.length;
  50464. }
  50465. this.yylloc = {
  50466. first_line: this.yylloc.last_line,
  50467. last_line: this.yylineno + 1,
  50468. first_column: this.yylloc.last_column,
  50469. last_column: lines ?
  50470. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  50471. this.yylloc.last_column + match[0].length
  50472. };
  50473. this.yytext += match[0];
  50474. this.match += match[0];
  50475. this.matches = match;
  50476. this.yyleng = this.yytext.length;
  50477. if (this.options.ranges) {
  50478. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  50479. }
  50480. this._more = false;
  50481. this._backtrack = false;
  50482. this._input = this._input.slice(match[0].length);
  50483. this.matched += match[0];
  50484. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  50485. if (this.done && this._input) {
  50486. this.done = false;
  50487. }
  50488. if (token) {
  50489. return token;
  50490. } else if (this._backtrack) {
  50491. // recover context
  50492. for (var k in backup) {
  50493. this[k] = backup[k];
  50494. }
  50495. return false; // rule action called reject() implying the next rule should be tested instead.
  50496. }
  50497. return false;
  50498. },
  50499. // return next match in input
  50500. next:function () {
  50501. if (this.done) {
  50502. return this.EOF;
  50503. }
  50504. if (!this._input) {
  50505. this.done = true;
  50506. }
  50507. var token,
  50508. match,
  50509. tempMatch,
  50510. index;
  50511. if (!this._more) {
  50512. this.yytext = '';
  50513. this.match = '';
  50514. }
  50515. var rules = this._currentRules();
  50516. for (var i = 0; i < rules.length; i++) {
  50517. tempMatch = this._input.match(this.rules[rules[i]]);
  50518. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  50519. match = tempMatch;
  50520. index = i;
  50521. if (this.options.backtrack_lexer) {
  50522. token = this.test_match(tempMatch, rules[i]);
  50523. if (token !== false) {
  50524. return token;
  50525. } else if (this._backtrack) {
  50526. match = false;
  50527. continue; // rule action called reject() implying a rule MISmatch.
  50528. } else {
  50529. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  50530. return false;
  50531. }
  50532. } else if (!this.options.flex) {
  50533. break;
  50534. }
  50535. }
  50536. }
  50537. if (match) {
  50538. token = this.test_match(match, rules[index]);
  50539. if (token !== false) {
  50540. return token;
  50541. }
  50542. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  50543. return false;
  50544. }
  50545. if (this._input === "") {
  50546. return this.EOF;
  50547. } else {
  50548. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  50549. text: "",
  50550. token: null,
  50551. line: this.yylineno
  50552. });
  50553. }
  50554. },
  50555. // return next match that has a token
  50556. lex:function lex () {
  50557. var r = this.next();
  50558. if (r) {
  50559. return r;
  50560. } else {
  50561. return this.lex();
  50562. }
  50563. },
  50564. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  50565. begin:function begin (condition) {
  50566. this.conditionStack.push(condition);
  50567. },
  50568. // pop the previously active lexer condition state off the condition stack
  50569. popState:function popState () {
  50570. var n = this.conditionStack.length - 1;
  50571. if (n > 0) {
  50572. return this.conditionStack.pop();
  50573. } else {
  50574. return this.conditionStack[0];
  50575. }
  50576. },
  50577. // produce the lexer rule set which is active for the currently active lexer condition state
  50578. _currentRules:function _currentRules () {
  50579. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  50580. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  50581. } else {
  50582. return this.conditions["INITIAL"].rules;
  50583. }
  50584. },
  50585. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  50586. topState:function topState (n) {
  50587. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  50588. if (n >= 0) {
  50589. return this.conditionStack[n];
  50590. } else {
  50591. return "INITIAL";
  50592. }
  50593. },
  50594. // alias for begin(condition)
  50595. pushState:function pushState (condition) {
  50596. this.begin(condition);
  50597. },
  50598. // return the number of states currently on the stack
  50599. stateStackSize:function stateStackSize() {
  50600. return this.conditionStack.length;
  50601. },
  50602. options: {"case-insensitive":true},
  50603. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  50604. var YYSTATE=YY_START;
  50605. switch($avoiding_name_collisions) {
  50606. case 0:return 12;
  50607. break;
  50608. case 1:/* skip all whitespace */
  50609. break;
  50610. case 2:/* skip comments */
  50611. break;
  50612. case 3:/* skip comments */
  50613. break;
  50614. case 4:return 4;
  50615. break;
  50616. case 5:return 15;
  50617. break;
  50618. case 6:return 17;
  50619. break;
  50620. case 7:return 20;
  50621. break;
  50622. case 8:return 21;
  50623. break;
  50624. case 9:return 19;
  50625. break;
  50626. case 10:return 8;
  50627. break;
  50628. case 11:return 8;
  50629. break;
  50630. case 12:return 5;
  50631. break;
  50632. case 13:return 26
  50633. break;
  50634. case 14:this.begin("options");
  50635. break;
  50636. case 15:this.popState();
  50637. break;
  50638. case 16:return 11;
  50639. break;
  50640. case 17:this.begin("string");
  50641. break;
  50642. case 18:this.popState();
  50643. break;
  50644. case 19:return 23;
  50645. break;
  50646. case 20:return 18;
  50647. break;
  50648. case 21:return 7;
  50649. break;
  50650. }
  50651. },
  50652. 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]*[-_a-zA-Z0-9])/i,/^(?:$)/i],
  50653. 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}}
  50654. });
  50655. return lexer;
  50656. })();
  50657. parser.lexer = lexer;
  50658. function Parser () {
  50659. this.yy = {};
  50660. }
  50661. Parser.prototype = parser;parser.Parser = Parser;
  50662. return new Parser;
  50663. })();
  50664. if (true) {
  50665. exports.parser = parser;
  50666. exports.Parser = parser.Parser;
  50667. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  50668. exports.main = function commonjsMain (args) {
  50669. if (!args[1]) {
  50670. console.log('Usage: '+args[0]+' FILE');
  50671. process.exit(1);
  50672. }
  50673. 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");
  50674. return exports.parser.parse(source);
  50675. };
  50676. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  50677. exports.main(process.argv.slice(1));
  50678. }
  50679. }
  50680. /* 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)))
  50681. /***/ }),
  50682. /***/ "./src/diagrams/git/styles.js":
  50683. /*!************************************!*\
  50684. !*** ./src/diagrams/git/styles.js ***!
  50685. \************************************/
  50686. /*! exports provided: default */
  50687. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50688. "use strict";
  50689. __webpack_require__.r(__webpack_exports__);
  50690. var getStyles = function getStyles() {
  50691. return "\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n";
  50692. };
  50693. /* harmony default export */ __webpack_exports__["default"] = (getStyles);
  50694. /***/ }),
  50695. /***/ "./src/diagrams/info/infoDb.js":
  50696. /*!*************************************!*\
  50697. !*** ./src/diagrams/info/infoDb.js ***!
  50698. \*************************************/
  50699. /*! exports provided: setMessage, getMessage, setInfo, getInfo, default */
  50700. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50701. "use strict";
  50702. __webpack_require__.r(__webpack_exports__);
  50703. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setMessage", function() { return setMessage; });
  50704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMessage", function() { return getMessage; });
  50705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setInfo", function() { return setInfo; });
  50706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInfo", function() { return getInfo; });
  50707. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  50708. /**
  50709. * Created by knut on 15-01-14.
  50710. */
  50711. var message = '';
  50712. var info = false;
  50713. var setMessage = function setMessage(txt) {
  50714. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting message to: ' + txt);
  50715. message = txt;
  50716. };
  50717. var getMessage = function getMessage() {
  50718. return message;
  50719. };
  50720. var setInfo = function setInfo(inf) {
  50721. info = inf;
  50722. };
  50723. var getInfo = function getInfo() {
  50724. return info;
  50725. }; // export const parseError = (err, hash) => {
  50726. // global.mermaidAPI.parseError(err, hash)
  50727. // }
  50728. /* harmony default export */ __webpack_exports__["default"] = ({
  50729. setMessage: setMessage,
  50730. getMessage: getMessage,
  50731. setInfo: setInfo,
  50732. getInfo: getInfo // parseError
  50733. });
  50734. /***/ }),
  50735. /***/ "./src/diagrams/info/infoRenderer.js":
  50736. /*!*******************************************!*\
  50737. !*** ./src/diagrams/info/infoRenderer.js ***!
  50738. \*******************************************/
  50739. /*! exports provided: setConf, draw, default */
  50740. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50741. "use strict";
  50742. __webpack_require__.r(__webpack_exports__);
  50743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  50744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  50745. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  50746. /* harmony import */ var _infoDb__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./infoDb */ "./src/diagrams/info/infoDb.js");
  50747. /* harmony import */ var _parser_info__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parser/info */ "./src/diagrams/info/parser/info.jison");
  50748. /* harmony import */ var _parser_info__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_parser_info__WEBPACK_IMPORTED_MODULE_2__);
  50749. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  50750. /**
  50751. * Created by knut on 14-12-11.
  50752. */
  50753. var conf = {};
  50754. var setConf = function setConf(cnf) {
  50755. var keys = Object.keys(cnf);
  50756. keys.forEach(function (key) {
  50757. conf[key] = cnf[key];
  50758. });
  50759. };
  50760. /**
  50761. * Draws a an info picture in the tag with id: id based on the graph definition in text.
  50762. * @param text
  50763. * @param id
  50764. */
  50765. var draw = function draw(txt, id, ver) {
  50766. try {
  50767. var parser = _parser_info__WEBPACK_IMPORTED_MODULE_2___default.a.parser;
  50768. parser.yy = _infoDb__WEBPACK_IMPORTED_MODULE_1__["default"];
  50769. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Renering info diagram\n' + txt); // Parse the graph definition
  50770. parser.parse(txt);
  50771. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Parsed info diagram'); // Fetch the default direction, use TD if none was found
  50772. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('#' + id);
  50773. var g = svg.append('g');
  50774. g.append('text') // text label for the x axis
  50775. .attr('x', 100).attr('y', 40).attr('class', 'version').attr('font-size', '32px').style('text-anchor', 'middle').text('v ' + ver);
  50776. svg.attr('height', 100);
  50777. svg.attr('width', 400); // svg.attr('viewBox', '0 0 300 150');
  50778. } catch (e) {
  50779. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error('Error while rendering info diagram');
  50780. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error(e.message);
  50781. }
  50782. };
  50783. /* harmony default export */ __webpack_exports__["default"] = ({
  50784. setConf: setConf,
  50785. draw: draw
  50786. });
  50787. /***/ }),
  50788. /***/ "./src/diagrams/info/parser/info.jison":
  50789. /*!*********************************************!*\
  50790. !*** ./src/diagrams/info/parser/info.jison ***!
  50791. \*********************************************/
  50792. /*! no static exports found */
  50793. /***/ (function(module, exports, __webpack_require__) {
  50794. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  50795. /*
  50796. Returns a Parser object of the following structure:
  50797. Parser: {
  50798. yy: {}
  50799. }
  50800. Parser.prototype: {
  50801. yy: {},
  50802. trace: function(),
  50803. symbols_: {associative list: name ==> number},
  50804. terminals_: {associative list: number ==> name},
  50805. productions_: [...],
  50806. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  50807. table: [...],
  50808. defaultActions: {...},
  50809. parseError: function(str, hash),
  50810. parse: function(input),
  50811. lexer: {
  50812. EOF: 1,
  50813. parseError: function(str, hash),
  50814. setInput: function(input),
  50815. input: function(),
  50816. unput: function(str),
  50817. more: function(),
  50818. less: function(n),
  50819. pastInput: function(),
  50820. upcomingInput: function(),
  50821. showPosition: function(),
  50822. test_match: function(regex_match_array, rule_index),
  50823. next: function(),
  50824. lex: function(),
  50825. begin: function(condition),
  50826. popState: function(),
  50827. _currentRules: function(),
  50828. topState: function(),
  50829. pushState: function(condition),
  50830. options: {
  50831. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  50832. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  50833. 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)
  50834. },
  50835. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  50836. rules: [...],
  50837. conditions: {associative list: name ==> set},
  50838. }
  50839. }
  50840. token location info (@$, _$, etc.): {
  50841. first_line: n,
  50842. last_line: n,
  50843. first_column: n,
  50844. last_column: n,
  50845. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  50846. }
  50847. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  50848. text: (matched text)
  50849. token: (the produced terminal token, if any)
  50850. line: (yylineno)
  50851. }
  50852. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  50853. loc: (yylloc)
  50854. expected: (string describing the set of expected tokens)
  50855. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  50856. }
  50857. */
  50858. var parser = (function(){
  50859. var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];
  50860. var parser = {trace: function trace () { },
  50861. yy: {},
  50862. symbols_: {"error":2,"start":3,"info":4,"document":5,"EOF":6,"line":7,"statement":8,"NL":9,"showInfo":10,"$accept":0,"$end":1},
  50863. terminals_: {2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},
  50864. productions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],
  50865. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  50866. /* this == yyval */
  50867. var $0 = $$.length - 1;
  50868. switch (yystate) {
  50869. case 1:
  50870. return yy;
  50871. break;
  50872. case 4:
  50873. break;
  50874. case 6:
  50875. yy.setInfo(true);
  50876. break;
  50877. }
  50878. },
  50879. 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])],
  50880. defaultActions: {4:[2,1]},
  50881. parseError: function parseError (str, hash) {
  50882. if (hash.recoverable) {
  50883. this.trace(str);
  50884. } else {
  50885. var error = new Error(str);
  50886. error.hash = hash;
  50887. throw error;
  50888. }
  50889. },
  50890. parse: function parse(input) {
  50891. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  50892. var args = lstack.slice.call(arguments, 1);
  50893. var lexer = Object.create(this.lexer);
  50894. var sharedState = { yy: {} };
  50895. for (var k in this.yy) {
  50896. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  50897. sharedState.yy[k] = this.yy[k];
  50898. }
  50899. }
  50900. lexer.setInput(input, sharedState.yy);
  50901. sharedState.yy.lexer = lexer;
  50902. sharedState.yy.parser = this;
  50903. if (typeof lexer.yylloc == 'undefined') {
  50904. lexer.yylloc = {};
  50905. }
  50906. var yyloc = lexer.yylloc;
  50907. lstack.push(yyloc);
  50908. var ranges = lexer.options && lexer.options.ranges;
  50909. if (typeof sharedState.yy.parseError === 'function') {
  50910. this.parseError = sharedState.yy.parseError;
  50911. } else {
  50912. this.parseError = Object.getPrototypeOf(this).parseError;
  50913. }
  50914. function popStack(n) {
  50915. stack.length = stack.length - 2 * n;
  50916. vstack.length = vstack.length - n;
  50917. lstack.length = lstack.length - n;
  50918. }
  50919. function lex() {
  50920. var token;
  50921. token = tstack.pop() || lexer.lex() || EOF;
  50922. if (typeof token !== 'number') {
  50923. if (token instanceof Array) {
  50924. tstack = token;
  50925. token = tstack.pop();
  50926. }
  50927. token = self.symbols_[token] || token;
  50928. }
  50929. return token;
  50930. }
  50931. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  50932. while (true) {
  50933. state = stack[stack.length - 1];
  50934. if (this.defaultActions[state]) {
  50935. action = this.defaultActions[state];
  50936. } else {
  50937. if (symbol === null || typeof symbol == 'undefined') {
  50938. symbol = lex();
  50939. }
  50940. action = table[state] && table[state][symbol];
  50941. }
  50942. if (typeof action === 'undefined' || !action.length || !action[0]) {
  50943. var errStr = '';
  50944. expected = [];
  50945. for (p in table[state]) {
  50946. if (this.terminals_[p] && p > TERROR) {
  50947. expected.push('\'' + this.terminals_[p] + '\'');
  50948. }
  50949. }
  50950. if (lexer.showPosition) {
  50951. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  50952. } else {
  50953. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  50954. }
  50955. this.parseError(errStr, {
  50956. text: lexer.match,
  50957. token: this.terminals_[symbol] || symbol,
  50958. line: lexer.yylineno,
  50959. loc: yyloc,
  50960. expected: expected
  50961. });
  50962. }
  50963. if (action[0] instanceof Array && action.length > 1) {
  50964. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  50965. }
  50966. switch (action[0]) {
  50967. case 1:
  50968. stack.push(symbol);
  50969. vstack.push(lexer.yytext);
  50970. lstack.push(lexer.yylloc);
  50971. stack.push(action[1]);
  50972. symbol = null;
  50973. if (!preErrorSymbol) {
  50974. yyleng = lexer.yyleng;
  50975. yytext = lexer.yytext;
  50976. yylineno = lexer.yylineno;
  50977. yyloc = lexer.yylloc;
  50978. if (recovering > 0) {
  50979. recovering--;
  50980. }
  50981. } else {
  50982. symbol = preErrorSymbol;
  50983. preErrorSymbol = null;
  50984. }
  50985. break;
  50986. case 2:
  50987. len = this.productions_[action[1]][1];
  50988. yyval.$ = vstack[vstack.length - len];
  50989. yyval._$ = {
  50990. first_line: lstack[lstack.length - (len || 1)].first_line,
  50991. last_line: lstack[lstack.length - 1].last_line,
  50992. first_column: lstack[lstack.length - (len || 1)].first_column,
  50993. last_column: lstack[lstack.length - 1].last_column
  50994. };
  50995. if (ranges) {
  50996. yyval._$.range = [
  50997. lstack[lstack.length - (len || 1)].range[0],
  50998. lstack[lstack.length - 1].range[1]
  50999. ];
  51000. }
  51001. r = this.performAction.apply(yyval, [
  51002. yytext,
  51003. yyleng,
  51004. yylineno,
  51005. sharedState.yy,
  51006. action[1],
  51007. vstack,
  51008. lstack
  51009. ].concat(args));
  51010. if (typeof r !== 'undefined') {
  51011. return r;
  51012. }
  51013. if (len) {
  51014. stack = stack.slice(0, -1 * len * 2);
  51015. vstack = vstack.slice(0, -1 * len);
  51016. lstack = lstack.slice(0, -1 * len);
  51017. }
  51018. stack.push(this.productions_[action[1]][0]);
  51019. vstack.push(yyval.$);
  51020. lstack.push(yyval._$);
  51021. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  51022. stack.push(newState);
  51023. break;
  51024. case 3:
  51025. return true;
  51026. }
  51027. }
  51028. return true;
  51029. }};
  51030. /* generated by jison-lex 0.3.4 */
  51031. var lexer = (function(){
  51032. var lexer = ({
  51033. EOF:1,
  51034. parseError:function parseError(str, hash) {
  51035. if (this.yy.parser) {
  51036. this.yy.parser.parseError(str, hash);
  51037. } else {
  51038. throw new Error(str);
  51039. }
  51040. },
  51041. // resets the lexer, sets new input
  51042. setInput:function (input, yy) {
  51043. this.yy = yy || this.yy || {};
  51044. this._input = input;
  51045. this._more = this._backtrack = this.done = false;
  51046. this.yylineno = this.yyleng = 0;
  51047. this.yytext = this.matched = this.match = '';
  51048. this.conditionStack = ['INITIAL'];
  51049. this.yylloc = {
  51050. first_line: 1,
  51051. first_column: 0,
  51052. last_line: 1,
  51053. last_column: 0
  51054. };
  51055. if (this.options.ranges) {
  51056. this.yylloc.range = [0,0];
  51057. }
  51058. this.offset = 0;
  51059. return this;
  51060. },
  51061. // consumes and returns one char from the input
  51062. input:function () {
  51063. var ch = this._input[0];
  51064. this.yytext += ch;
  51065. this.yyleng++;
  51066. this.offset++;
  51067. this.match += ch;
  51068. this.matched += ch;
  51069. var lines = ch.match(/(?:\r\n?|\n).*/g);
  51070. if (lines) {
  51071. this.yylineno++;
  51072. this.yylloc.last_line++;
  51073. } else {
  51074. this.yylloc.last_column++;
  51075. }
  51076. if (this.options.ranges) {
  51077. this.yylloc.range[1]++;
  51078. }
  51079. this._input = this._input.slice(1);
  51080. return ch;
  51081. },
  51082. // unshifts one char (or a string) into the input
  51083. unput:function (ch) {
  51084. var len = ch.length;
  51085. var lines = ch.split(/(?:\r\n?|\n)/g);
  51086. this._input = ch + this._input;
  51087. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  51088. //this.yyleng -= len;
  51089. this.offset -= len;
  51090. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  51091. this.match = this.match.substr(0, this.match.length - 1);
  51092. this.matched = this.matched.substr(0, this.matched.length - 1);
  51093. if (lines.length - 1) {
  51094. this.yylineno -= lines.length - 1;
  51095. }
  51096. var r = this.yylloc.range;
  51097. this.yylloc = {
  51098. first_line: this.yylloc.first_line,
  51099. last_line: this.yylineno + 1,
  51100. first_column: this.yylloc.first_column,
  51101. last_column: lines ?
  51102. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  51103. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  51104. this.yylloc.first_column - len
  51105. };
  51106. if (this.options.ranges) {
  51107. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  51108. }
  51109. this.yyleng = this.yytext.length;
  51110. return this;
  51111. },
  51112. // When called from action, caches matched text and appends it on next action
  51113. more:function () {
  51114. this._more = true;
  51115. return this;
  51116. },
  51117. // 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.
  51118. reject:function () {
  51119. if (this.options.backtrack_lexer) {
  51120. this._backtrack = true;
  51121. } else {
  51122. 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(), {
  51123. text: "",
  51124. token: null,
  51125. line: this.yylineno
  51126. });
  51127. }
  51128. return this;
  51129. },
  51130. // retain first n characters of the match
  51131. less:function (n) {
  51132. this.unput(this.match.slice(n));
  51133. },
  51134. // displays already matched input, i.e. for error messages
  51135. pastInput:function () {
  51136. var past = this.matched.substr(0, this.matched.length - this.match.length);
  51137. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  51138. },
  51139. // displays upcoming input, i.e. for error messages
  51140. upcomingInput:function () {
  51141. var next = this.match;
  51142. if (next.length < 20) {
  51143. next += this._input.substr(0, 20-next.length);
  51144. }
  51145. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  51146. },
  51147. // displays the character position where the lexing error occurred, i.e. for error messages
  51148. showPosition:function () {
  51149. var pre = this.pastInput();
  51150. var c = new Array(pre.length + 1).join("-");
  51151. return pre + this.upcomingInput() + "\n" + c + "^";
  51152. },
  51153. // test the lexed token: return FALSE when not a match, otherwise return token
  51154. test_match:function(match, indexed_rule) {
  51155. var token,
  51156. lines,
  51157. backup;
  51158. if (this.options.backtrack_lexer) {
  51159. // save context
  51160. backup = {
  51161. yylineno: this.yylineno,
  51162. yylloc: {
  51163. first_line: this.yylloc.first_line,
  51164. last_line: this.last_line,
  51165. first_column: this.yylloc.first_column,
  51166. last_column: this.yylloc.last_column
  51167. },
  51168. yytext: this.yytext,
  51169. match: this.match,
  51170. matches: this.matches,
  51171. matched: this.matched,
  51172. yyleng: this.yyleng,
  51173. offset: this.offset,
  51174. _more: this._more,
  51175. _input: this._input,
  51176. yy: this.yy,
  51177. conditionStack: this.conditionStack.slice(0),
  51178. done: this.done
  51179. };
  51180. if (this.options.ranges) {
  51181. backup.yylloc.range = this.yylloc.range.slice(0);
  51182. }
  51183. }
  51184. lines = match[0].match(/(?:\r\n?|\n).*/g);
  51185. if (lines) {
  51186. this.yylineno += lines.length;
  51187. }
  51188. this.yylloc = {
  51189. first_line: this.yylloc.last_line,
  51190. last_line: this.yylineno + 1,
  51191. first_column: this.yylloc.last_column,
  51192. last_column: lines ?
  51193. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  51194. this.yylloc.last_column + match[0].length
  51195. };
  51196. this.yytext += match[0];
  51197. this.match += match[0];
  51198. this.matches = match;
  51199. this.yyleng = this.yytext.length;
  51200. if (this.options.ranges) {
  51201. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  51202. }
  51203. this._more = false;
  51204. this._backtrack = false;
  51205. this._input = this._input.slice(match[0].length);
  51206. this.matched += match[0];
  51207. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  51208. if (this.done && this._input) {
  51209. this.done = false;
  51210. }
  51211. if (token) {
  51212. return token;
  51213. } else if (this._backtrack) {
  51214. // recover context
  51215. for (var k in backup) {
  51216. this[k] = backup[k];
  51217. }
  51218. return false; // rule action called reject() implying the next rule should be tested instead.
  51219. }
  51220. return false;
  51221. },
  51222. // return next match in input
  51223. next:function () {
  51224. if (this.done) {
  51225. return this.EOF;
  51226. }
  51227. if (!this._input) {
  51228. this.done = true;
  51229. }
  51230. var token,
  51231. match,
  51232. tempMatch,
  51233. index;
  51234. if (!this._more) {
  51235. this.yytext = '';
  51236. this.match = '';
  51237. }
  51238. var rules = this._currentRules();
  51239. for (var i = 0; i < rules.length; i++) {
  51240. tempMatch = this._input.match(this.rules[rules[i]]);
  51241. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  51242. match = tempMatch;
  51243. index = i;
  51244. if (this.options.backtrack_lexer) {
  51245. token = this.test_match(tempMatch, rules[i]);
  51246. if (token !== false) {
  51247. return token;
  51248. } else if (this._backtrack) {
  51249. match = false;
  51250. continue; // rule action called reject() implying a rule MISmatch.
  51251. } else {
  51252. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  51253. return false;
  51254. }
  51255. } else if (!this.options.flex) {
  51256. break;
  51257. }
  51258. }
  51259. }
  51260. if (match) {
  51261. token = this.test_match(match, rules[index]);
  51262. if (token !== false) {
  51263. return token;
  51264. }
  51265. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  51266. return false;
  51267. }
  51268. if (this._input === "") {
  51269. return this.EOF;
  51270. } else {
  51271. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  51272. text: "",
  51273. token: null,
  51274. line: this.yylineno
  51275. });
  51276. }
  51277. },
  51278. // return next match that has a token
  51279. lex:function lex () {
  51280. var r = this.next();
  51281. if (r) {
  51282. return r;
  51283. } else {
  51284. return this.lex();
  51285. }
  51286. },
  51287. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  51288. begin:function begin (condition) {
  51289. this.conditionStack.push(condition);
  51290. },
  51291. // pop the previously active lexer condition state off the condition stack
  51292. popState:function popState () {
  51293. var n = this.conditionStack.length - 1;
  51294. if (n > 0) {
  51295. return this.conditionStack.pop();
  51296. } else {
  51297. return this.conditionStack[0];
  51298. }
  51299. },
  51300. // produce the lexer rule set which is active for the currently active lexer condition state
  51301. _currentRules:function _currentRules () {
  51302. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  51303. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  51304. } else {
  51305. return this.conditions["INITIAL"].rules;
  51306. }
  51307. },
  51308. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  51309. topState:function topState (n) {
  51310. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  51311. if (n >= 0) {
  51312. return this.conditionStack[n];
  51313. } else {
  51314. return "INITIAL";
  51315. }
  51316. },
  51317. // alias for begin(condition)
  51318. pushState:function pushState (condition) {
  51319. this.begin(condition);
  51320. },
  51321. // return the number of states currently on the stack
  51322. stateStackSize:function stateStackSize() {
  51323. return this.conditionStack.length;
  51324. },
  51325. options: {"case-insensitive":true},
  51326. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  51327. // Pre-lexer code can go here
  51328. var YYSTATE=YY_START;
  51329. switch($avoiding_name_collisions) {
  51330. case 0:return 4 ;
  51331. break;
  51332. case 1:return 9 ;
  51333. break;
  51334. case 2:return 'space';
  51335. break;
  51336. case 3:return 10;
  51337. break;
  51338. case 4:return 6 ;
  51339. break;
  51340. case 5:return 'TXT' ;
  51341. break;
  51342. }
  51343. },
  51344. rules: [/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],
  51345. conditions: {"INITIAL":{"rules":[0,1,2,3,4,5],"inclusive":true}}
  51346. });
  51347. return lexer;
  51348. })();
  51349. parser.lexer = lexer;
  51350. function Parser () {
  51351. this.yy = {};
  51352. }
  51353. Parser.prototype = parser;parser.Parser = Parser;
  51354. return new Parser;
  51355. })();
  51356. if (true) {
  51357. exports.parser = parser;
  51358. exports.Parser = parser.Parser;
  51359. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  51360. exports.main = function commonjsMain (args) {
  51361. if (!args[1]) {
  51362. console.log('Usage: '+args[0]+' FILE');
  51363. process.exit(1);
  51364. }
  51365. 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");
  51366. return exports.parser.parse(source);
  51367. };
  51368. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  51369. exports.main(process.argv.slice(1));
  51370. }
  51371. }
  51372. /* 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)))
  51373. /***/ }),
  51374. /***/ "./src/diagrams/info/styles.js":
  51375. /*!*************************************!*\
  51376. !*** ./src/diagrams/info/styles.js ***!
  51377. \*************************************/
  51378. /*! exports provided: default */
  51379. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51380. "use strict";
  51381. __webpack_require__.r(__webpack_exports__);
  51382. var getStyles = function getStyles() {
  51383. return "";
  51384. };
  51385. /* harmony default export */ __webpack_exports__["default"] = (getStyles);
  51386. /***/ }),
  51387. /***/ "./src/diagrams/pie/parser/pie.jison":
  51388. /*!*******************************************!*\
  51389. !*** ./src/diagrams/pie/parser/pie.jison ***!
  51390. \*******************************************/
  51391. /*! no static exports found */
  51392. /***/ (function(module, exports, __webpack_require__) {
  51393. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  51394. /*
  51395. Returns a Parser object of the following structure:
  51396. Parser: {
  51397. yy: {}
  51398. }
  51399. Parser.prototype: {
  51400. yy: {},
  51401. trace: function(),
  51402. symbols_: {associative list: name ==> number},
  51403. terminals_: {associative list: number ==> name},
  51404. productions_: [...],
  51405. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  51406. table: [...],
  51407. defaultActions: {...},
  51408. parseError: function(str, hash),
  51409. parse: function(input),
  51410. lexer: {
  51411. EOF: 1,
  51412. parseError: function(str, hash),
  51413. setInput: function(input),
  51414. input: function(),
  51415. unput: function(str),
  51416. more: function(),
  51417. less: function(n),
  51418. pastInput: function(),
  51419. upcomingInput: function(),
  51420. showPosition: function(),
  51421. test_match: function(regex_match_array, rule_index),
  51422. next: function(),
  51423. lex: function(),
  51424. begin: function(condition),
  51425. popState: function(),
  51426. _currentRules: function(),
  51427. topState: function(),
  51428. pushState: function(condition),
  51429. options: {
  51430. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  51431. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  51432. 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)
  51433. },
  51434. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  51435. rules: [...],
  51436. conditions: {associative list: name ==> set},
  51437. }
  51438. }
  51439. token location info (@$, _$, etc.): {
  51440. first_line: n,
  51441. last_line: n,
  51442. first_column: n,
  51443. last_column: n,
  51444. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  51445. }
  51446. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  51447. text: (matched text)
  51448. token: (the produced terminal token, if any)
  51449. line: (yylineno)
  51450. }
  51451. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  51452. loc: (yylloc)
  51453. expected: (string describing the set of expected tokens)
  51454. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  51455. }
  51456. */
  51457. var parser = (function(){
  51458. var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10,12];
  51459. var parser = {trace: function trace () { },
  51460. yy: {},
  51461. symbols_: {"error":2,"start":3,"pie":4,"document":5,"EOF":6,"line":7,"statement":8,"NL":9,"STR":10,"VALUE":11,"title":12,"$accept":0,"$end":1},
  51462. terminals_: {2:"error",4:"pie",6:"EOF",9:"NL",10:"STR",11:"VALUE",12:"title"},
  51463. productions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]],
  51464. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  51465. /* this == yyval */
  51466. var $0 = $$.length - 1;
  51467. switch (yystate) {
  51468. case 4:
  51469. break;
  51470. case 6:
  51471. /*console.log('str:'+$$[$0-1]+' value: '+$$[$0])*/
  51472. yy.addSection($$[$0-1],yy.cleanupValue($$[$0]));
  51473. break;
  51474. case 7:
  51475. yy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);
  51476. break;
  51477. }
  51478. },
  51479. 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],12:[1,9]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),{11:[1,10]},o($V0,[2,7]),o($V0,[2,6])],
  51480. defaultActions: {4:[2,1]},
  51481. parseError: function parseError (str, hash) {
  51482. if (hash.recoverable) {
  51483. this.trace(str);
  51484. } else {
  51485. var error = new Error(str);
  51486. error.hash = hash;
  51487. throw error;
  51488. }
  51489. },
  51490. parse: function parse(input) {
  51491. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  51492. var args = lstack.slice.call(arguments, 1);
  51493. var lexer = Object.create(this.lexer);
  51494. var sharedState = { yy: {} };
  51495. for (var k in this.yy) {
  51496. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  51497. sharedState.yy[k] = this.yy[k];
  51498. }
  51499. }
  51500. lexer.setInput(input, sharedState.yy);
  51501. sharedState.yy.lexer = lexer;
  51502. sharedState.yy.parser = this;
  51503. if (typeof lexer.yylloc == 'undefined') {
  51504. lexer.yylloc = {};
  51505. }
  51506. var yyloc = lexer.yylloc;
  51507. lstack.push(yyloc);
  51508. var ranges = lexer.options && lexer.options.ranges;
  51509. if (typeof sharedState.yy.parseError === 'function') {
  51510. this.parseError = sharedState.yy.parseError;
  51511. } else {
  51512. this.parseError = Object.getPrototypeOf(this).parseError;
  51513. }
  51514. function popStack(n) {
  51515. stack.length = stack.length - 2 * n;
  51516. vstack.length = vstack.length - n;
  51517. lstack.length = lstack.length - n;
  51518. }
  51519. function lex() {
  51520. var token;
  51521. token = tstack.pop() || lexer.lex() || EOF;
  51522. if (typeof token !== 'number') {
  51523. if (token instanceof Array) {
  51524. tstack = token;
  51525. token = tstack.pop();
  51526. }
  51527. token = self.symbols_[token] || token;
  51528. }
  51529. return token;
  51530. }
  51531. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  51532. while (true) {
  51533. state = stack[stack.length - 1];
  51534. if (this.defaultActions[state]) {
  51535. action = this.defaultActions[state];
  51536. } else {
  51537. if (symbol === null || typeof symbol == 'undefined') {
  51538. symbol = lex();
  51539. }
  51540. action = table[state] && table[state][symbol];
  51541. }
  51542. if (typeof action === 'undefined' || !action.length || !action[0]) {
  51543. var errStr = '';
  51544. expected = [];
  51545. for (p in table[state]) {
  51546. if (this.terminals_[p] && p > TERROR) {
  51547. expected.push('\'' + this.terminals_[p] + '\'');
  51548. }
  51549. }
  51550. if (lexer.showPosition) {
  51551. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  51552. } else {
  51553. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  51554. }
  51555. this.parseError(errStr, {
  51556. text: lexer.match,
  51557. token: this.terminals_[symbol] || symbol,
  51558. line: lexer.yylineno,
  51559. loc: yyloc,
  51560. expected: expected
  51561. });
  51562. }
  51563. if (action[0] instanceof Array && action.length > 1) {
  51564. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  51565. }
  51566. switch (action[0]) {
  51567. case 1:
  51568. stack.push(symbol);
  51569. vstack.push(lexer.yytext);
  51570. lstack.push(lexer.yylloc);
  51571. stack.push(action[1]);
  51572. symbol = null;
  51573. if (!preErrorSymbol) {
  51574. yyleng = lexer.yyleng;
  51575. yytext = lexer.yytext;
  51576. yylineno = lexer.yylineno;
  51577. yyloc = lexer.yylloc;
  51578. if (recovering > 0) {
  51579. recovering--;
  51580. }
  51581. } else {
  51582. symbol = preErrorSymbol;
  51583. preErrorSymbol = null;
  51584. }
  51585. break;
  51586. case 2:
  51587. len = this.productions_[action[1]][1];
  51588. yyval.$ = vstack[vstack.length - len];
  51589. yyval._$ = {
  51590. first_line: lstack[lstack.length - (len || 1)].first_line,
  51591. last_line: lstack[lstack.length - 1].last_line,
  51592. first_column: lstack[lstack.length - (len || 1)].first_column,
  51593. last_column: lstack[lstack.length - 1].last_column
  51594. };
  51595. if (ranges) {
  51596. yyval._$.range = [
  51597. lstack[lstack.length - (len || 1)].range[0],
  51598. lstack[lstack.length - 1].range[1]
  51599. ];
  51600. }
  51601. r = this.performAction.apply(yyval, [
  51602. yytext,
  51603. yyleng,
  51604. yylineno,
  51605. sharedState.yy,
  51606. action[1],
  51607. vstack,
  51608. lstack
  51609. ].concat(args));
  51610. if (typeof r !== 'undefined') {
  51611. return r;
  51612. }
  51613. if (len) {
  51614. stack = stack.slice(0, -1 * len * 2);
  51615. vstack = vstack.slice(0, -1 * len);
  51616. lstack = lstack.slice(0, -1 * len);
  51617. }
  51618. stack.push(this.productions_[action[1]][0]);
  51619. vstack.push(yyval.$);
  51620. lstack.push(yyval._$);
  51621. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  51622. stack.push(newState);
  51623. break;
  51624. case 3:
  51625. return true;
  51626. }
  51627. }
  51628. return true;
  51629. }};
  51630. /* generated by jison-lex 0.3.4 */
  51631. var lexer = (function(){
  51632. var lexer = ({
  51633. EOF:1,
  51634. parseError:function parseError(str, hash) {
  51635. if (this.yy.parser) {
  51636. this.yy.parser.parseError(str, hash);
  51637. } else {
  51638. throw new Error(str);
  51639. }
  51640. },
  51641. // resets the lexer, sets new input
  51642. setInput:function (input, yy) {
  51643. this.yy = yy || this.yy || {};
  51644. this._input = input;
  51645. this._more = this._backtrack = this.done = false;
  51646. this.yylineno = this.yyleng = 0;
  51647. this.yytext = this.matched = this.match = '';
  51648. this.conditionStack = ['INITIAL'];
  51649. this.yylloc = {
  51650. first_line: 1,
  51651. first_column: 0,
  51652. last_line: 1,
  51653. last_column: 0
  51654. };
  51655. if (this.options.ranges) {
  51656. this.yylloc.range = [0,0];
  51657. }
  51658. this.offset = 0;
  51659. return this;
  51660. },
  51661. // consumes and returns one char from the input
  51662. input:function () {
  51663. var ch = this._input[0];
  51664. this.yytext += ch;
  51665. this.yyleng++;
  51666. this.offset++;
  51667. this.match += ch;
  51668. this.matched += ch;
  51669. var lines = ch.match(/(?:\r\n?|\n).*/g);
  51670. if (lines) {
  51671. this.yylineno++;
  51672. this.yylloc.last_line++;
  51673. } else {
  51674. this.yylloc.last_column++;
  51675. }
  51676. if (this.options.ranges) {
  51677. this.yylloc.range[1]++;
  51678. }
  51679. this._input = this._input.slice(1);
  51680. return ch;
  51681. },
  51682. // unshifts one char (or a string) into the input
  51683. unput:function (ch) {
  51684. var len = ch.length;
  51685. var lines = ch.split(/(?:\r\n?|\n)/g);
  51686. this._input = ch + this._input;
  51687. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  51688. //this.yyleng -= len;
  51689. this.offset -= len;
  51690. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  51691. this.match = this.match.substr(0, this.match.length - 1);
  51692. this.matched = this.matched.substr(0, this.matched.length - 1);
  51693. if (lines.length - 1) {
  51694. this.yylineno -= lines.length - 1;
  51695. }
  51696. var r = this.yylloc.range;
  51697. this.yylloc = {
  51698. first_line: this.yylloc.first_line,
  51699. last_line: this.yylineno + 1,
  51700. first_column: this.yylloc.first_column,
  51701. last_column: lines ?
  51702. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  51703. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  51704. this.yylloc.first_column - len
  51705. };
  51706. if (this.options.ranges) {
  51707. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  51708. }
  51709. this.yyleng = this.yytext.length;
  51710. return this;
  51711. },
  51712. // When called from action, caches matched text and appends it on next action
  51713. more:function () {
  51714. this._more = true;
  51715. return this;
  51716. },
  51717. // 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.
  51718. reject:function () {
  51719. if (this.options.backtrack_lexer) {
  51720. this._backtrack = true;
  51721. } else {
  51722. 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(), {
  51723. text: "",
  51724. token: null,
  51725. line: this.yylineno
  51726. });
  51727. }
  51728. return this;
  51729. },
  51730. // retain first n characters of the match
  51731. less:function (n) {
  51732. this.unput(this.match.slice(n));
  51733. },
  51734. // displays already matched input, i.e. for error messages
  51735. pastInput:function () {
  51736. var past = this.matched.substr(0, this.matched.length - this.match.length);
  51737. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  51738. },
  51739. // displays upcoming input, i.e. for error messages
  51740. upcomingInput:function () {
  51741. var next = this.match;
  51742. if (next.length < 20) {
  51743. next += this._input.substr(0, 20-next.length);
  51744. }
  51745. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  51746. },
  51747. // displays the character position where the lexing error occurred, i.e. for error messages
  51748. showPosition:function () {
  51749. var pre = this.pastInput();
  51750. var c = new Array(pre.length + 1).join("-");
  51751. return pre + this.upcomingInput() + "\n" + c + "^";
  51752. },
  51753. // test the lexed token: return FALSE when not a match, otherwise return token
  51754. test_match:function(match, indexed_rule) {
  51755. var token,
  51756. lines,
  51757. backup;
  51758. if (this.options.backtrack_lexer) {
  51759. // save context
  51760. backup = {
  51761. yylineno: this.yylineno,
  51762. yylloc: {
  51763. first_line: this.yylloc.first_line,
  51764. last_line: this.last_line,
  51765. first_column: this.yylloc.first_column,
  51766. last_column: this.yylloc.last_column
  51767. },
  51768. yytext: this.yytext,
  51769. match: this.match,
  51770. matches: this.matches,
  51771. matched: this.matched,
  51772. yyleng: this.yyleng,
  51773. offset: this.offset,
  51774. _more: this._more,
  51775. _input: this._input,
  51776. yy: this.yy,
  51777. conditionStack: this.conditionStack.slice(0),
  51778. done: this.done
  51779. };
  51780. if (this.options.ranges) {
  51781. backup.yylloc.range = this.yylloc.range.slice(0);
  51782. }
  51783. }
  51784. lines = match[0].match(/(?:\r\n?|\n).*/g);
  51785. if (lines) {
  51786. this.yylineno += lines.length;
  51787. }
  51788. this.yylloc = {
  51789. first_line: this.yylloc.last_line,
  51790. last_line: this.yylineno + 1,
  51791. first_column: this.yylloc.last_column,
  51792. last_column: lines ?
  51793. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  51794. this.yylloc.last_column + match[0].length
  51795. };
  51796. this.yytext += match[0];
  51797. this.match += match[0];
  51798. this.matches = match;
  51799. this.yyleng = this.yytext.length;
  51800. if (this.options.ranges) {
  51801. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  51802. }
  51803. this._more = false;
  51804. this._backtrack = false;
  51805. this._input = this._input.slice(match[0].length);
  51806. this.matched += match[0];
  51807. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  51808. if (this.done && this._input) {
  51809. this.done = false;
  51810. }
  51811. if (token) {
  51812. return token;
  51813. } else if (this._backtrack) {
  51814. // recover context
  51815. for (var k in backup) {
  51816. this[k] = backup[k];
  51817. }
  51818. return false; // rule action called reject() implying the next rule should be tested instead.
  51819. }
  51820. return false;
  51821. },
  51822. // return next match in input
  51823. next:function () {
  51824. if (this.done) {
  51825. return this.EOF;
  51826. }
  51827. if (!this._input) {
  51828. this.done = true;
  51829. }
  51830. var token,
  51831. match,
  51832. tempMatch,
  51833. index;
  51834. if (!this._more) {
  51835. this.yytext = '';
  51836. this.match = '';
  51837. }
  51838. var rules = this._currentRules();
  51839. for (var i = 0; i < rules.length; i++) {
  51840. tempMatch = this._input.match(this.rules[rules[i]]);
  51841. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  51842. match = tempMatch;
  51843. index = i;
  51844. if (this.options.backtrack_lexer) {
  51845. token = this.test_match(tempMatch, rules[i]);
  51846. if (token !== false) {
  51847. return token;
  51848. } else if (this._backtrack) {
  51849. match = false;
  51850. continue; // rule action called reject() implying a rule MISmatch.
  51851. } else {
  51852. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  51853. return false;
  51854. }
  51855. } else if (!this.options.flex) {
  51856. break;
  51857. }
  51858. }
  51859. }
  51860. if (match) {
  51861. token = this.test_match(match, rules[index]);
  51862. if (token !== false) {
  51863. return token;
  51864. }
  51865. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  51866. return false;
  51867. }
  51868. if (this._input === "") {
  51869. return this.EOF;
  51870. } else {
  51871. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  51872. text: "",
  51873. token: null,
  51874. line: this.yylineno
  51875. });
  51876. }
  51877. },
  51878. // return next match that has a token
  51879. lex:function lex () {
  51880. var r = this.next();
  51881. if (r) {
  51882. return r;
  51883. } else {
  51884. return this.lex();
  51885. }
  51886. },
  51887. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  51888. begin:function begin (condition) {
  51889. this.conditionStack.push(condition);
  51890. },
  51891. // pop the previously active lexer condition state off the condition stack
  51892. popState:function popState () {
  51893. var n = this.conditionStack.length - 1;
  51894. if (n > 0) {
  51895. return this.conditionStack.pop();
  51896. } else {
  51897. return this.conditionStack[0];
  51898. }
  51899. },
  51900. // produce the lexer rule set which is active for the currently active lexer condition state
  51901. _currentRules:function _currentRules () {
  51902. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  51903. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  51904. } else {
  51905. return this.conditions["INITIAL"].rules;
  51906. }
  51907. },
  51908. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  51909. topState:function topState (n) {
  51910. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  51911. if (n >= 0) {
  51912. return this.conditionStack[n];
  51913. } else {
  51914. return "INITIAL";
  51915. }
  51916. },
  51917. // alias for begin(condition)
  51918. pushState:function pushState (condition) {
  51919. this.begin(condition);
  51920. },
  51921. // return the number of states currently on the stack
  51922. stateStackSize:function stateStackSize() {
  51923. return this.conditionStack.length;
  51924. },
  51925. options: {"case-insensitive":true},
  51926. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  51927. // Pre-lexer code can go here
  51928. var YYSTATE=YY_START;
  51929. switch($avoiding_name_collisions) {
  51930. case 0:/* do nothing */
  51931. break;
  51932. case 1:/* skip whitespace */
  51933. break;
  51934. case 2:return 4 ;
  51935. break;
  51936. case 3:return 9 ;
  51937. break;
  51938. case 4:return 'space';
  51939. break;
  51940. case 5:return 12;
  51941. break;
  51942. case 6:/*console.log('begin str');*/this.begin("string");
  51943. break;
  51944. case 7:/*console.log('pop-state');*/this.popState();
  51945. break;
  51946. case 8:/*console.log('ending string')*/return "STR";
  51947. break;
  51948. case 9:return "VALUE";
  51949. break;
  51950. case 10:return 6 ;
  51951. break;
  51952. }
  51953. },
  51954. rules: [/^(?:%%[^\n]*)/i,/^(?:\s+)/i,/^(?:pie\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:title\s[^#\n;]+)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],
  51955. conditions: {"string":{"rules":[7,8],"inclusive":false},"INITIAL":{"rules":[0,1,2,3,4,5,6,9,10],"inclusive":true}}
  51956. });
  51957. return lexer;
  51958. })();
  51959. parser.lexer = lexer;
  51960. function Parser () {
  51961. this.yy = {};
  51962. }
  51963. Parser.prototype = parser;parser.Parser = Parser;
  51964. return new Parser;
  51965. })();
  51966. if (true) {
  51967. exports.parser = parser;
  51968. exports.Parser = parser.Parser;
  51969. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  51970. exports.main = function commonjsMain (args) {
  51971. if (!args[1]) {
  51972. console.log('Usage: '+args[0]+' FILE');
  51973. process.exit(1);
  51974. }
  51975. 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");
  51976. return exports.parser.parse(source);
  51977. };
  51978. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  51979. exports.main(process.argv.slice(1));
  51980. }
  51981. }
  51982. /* 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)))
  51983. /***/ }),
  51984. /***/ "./src/diagrams/pie/pieDb.js":
  51985. /*!***********************************!*\
  51986. !*** ./src/diagrams/pie/pieDb.js ***!
  51987. \***********************************/
  51988. /*! exports provided: default */
  51989. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51990. "use strict";
  51991. __webpack_require__.r(__webpack_exports__);
  51992. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  51993. /**
  51994. *
  51995. */
  51996. var sections = {};
  51997. var title = '';
  51998. var addSection = function addSection(id, value) {
  51999. if (typeof sections[id] === 'undefined') {
  52000. sections[id] = value;
  52001. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Added new section :', id);
  52002. }
  52003. };
  52004. var getSections = function getSections() {
  52005. return sections;
  52006. };
  52007. var setTitle = function setTitle(txt) {
  52008. title = txt;
  52009. };
  52010. var getTitle = function getTitle() {
  52011. return title;
  52012. };
  52013. var cleanupValue = function cleanupValue(value) {
  52014. if (value.substring(0, 1) === ':') {
  52015. value = value.substring(1).trim();
  52016. return Number(value.trim());
  52017. } else {
  52018. return Number(value.trim());
  52019. }
  52020. };
  52021. var clear = function clear() {
  52022. sections = {};
  52023. title = '';
  52024. }; // export const parseError = (err, hash) => {
  52025. // global.mermaidAPI.parseError(err, hash)
  52026. // }
  52027. /* harmony default export */ __webpack_exports__["default"] = ({
  52028. addSection: addSection,
  52029. getSections: getSections,
  52030. cleanupValue: cleanupValue,
  52031. clear: clear,
  52032. setTitle: setTitle,
  52033. getTitle: getTitle // parseError
  52034. });
  52035. /***/ }),
  52036. /***/ "./src/diagrams/pie/pieRenderer.js":
  52037. /*!*****************************************!*\
  52038. !*** ./src/diagrams/pie/pieRenderer.js ***!
  52039. \*****************************************/
  52040. /*! exports provided: setConf, draw, default */
  52041. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52042. "use strict";
  52043. __webpack_require__.r(__webpack_exports__);
  52044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  52045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  52046. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  52047. /* harmony import */ var _pieDb__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pieDb */ "./src/diagrams/pie/pieDb.js");
  52048. /* harmony import */ var _parser_pie__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parser/pie */ "./src/diagrams/pie/parser/pie.jison");
  52049. /* harmony import */ var _parser_pie__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_parser_pie__WEBPACK_IMPORTED_MODULE_2__);
  52050. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  52051. /**
  52052. * Created by AshishJ on 11-09-2019.
  52053. */
  52054. var conf = {};
  52055. var setConf = function setConf(cnf) {
  52056. var keys = Object.keys(cnf);
  52057. keys.forEach(function (key) {
  52058. conf[key] = cnf[key];
  52059. });
  52060. };
  52061. /**
  52062. * Draws a Pie Chart with the data given in text.
  52063. * @param text
  52064. * @param id
  52065. */
  52066. var w;
  52067. var draw = function draw(txt, id) {
  52068. try {
  52069. var parser = _parser_pie__WEBPACK_IMPORTED_MODULE_2___default.a.parser;
  52070. parser.yy = _pieDb__WEBPACK_IMPORTED_MODULE_1__["default"];
  52071. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Rendering info diagram\n' + txt); // Parse the Pie Chart definition
  52072. parser.yy.clear();
  52073. parser.parse(txt);
  52074. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Parsed info diagram');
  52075. var elem = document.getElementById(id);
  52076. w = elem.parentElement.offsetWidth;
  52077. if (typeof w === 'undefined') {
  52078. w = 1200;
  52079. }
  52080. if (typeof conf.useWidth !== 'undefined') {
  52081. w = conf.useWidth;
  52082. }
  52083. var h = 450;
  52084. elem.setAttribute('height', '100%'); // Set viewBox
  52085. elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h); // Fetch the default direction, use TD if none was found
  52086. var width = w; // 450
  52087. var height = 450;
  52088. var margin = 40;
  52089. var legendRectSize = 18;
  52090. var legendSpacing = 4;
  52091. var radius = Math.min(width, height) / 2 - margin;
  52092. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('#' + id).append('svg').attr('width', width).attr('height', height).append('g').attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')');
  52093. var data = _pieDb__WEBPACK_IMPORTED_MODULE_1__["default"].getSections();
  52094. var sum = 0;
  52095. Object.keys(data).forEach(function (key) {
  52096. sum += data[key];
  52097. });
  52098. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].info(data); // set the color scale
  52099. var color = Object(d3__WEBPACK_IMPORTED_MODULE_0__["scaleOrdinal"])().domain(data).range(d3__WEBPACK_IMPORTED_MODULE_0__["schemeSet2"]); // Compute the position of each group on the pie:
  52100. var pie = Object(d3__WEBPACK_IMPORTED_MODULE_0__["pie"])().value(function (d) {
  52101. return d.value;
  52102. });
  52103. var dataReady = pie(Object(d3__WEBPACK_IMPORTED_MODULE_0__["entries"])(data)); // shape helper to build arcs:
  52104. var arcGenerator = Object(d3__WEBPACK_IMPORTED_MODULE_0__["arc"])().innerRadius(0).outerRadius(radius); // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.
  52105. svg.selectAll('mySlices').data(dataReady).enter().append('path').attr('d', arcGenerator).attr('fill', function (d) {
  52106. return color(d.data.key);
  52107. }).attr('stroke', 'black').style('stroke-width', '2px').style('opacity', 0.7); // Now add the Percentage. Use the centroid method to get the best coordinates
  52108. svg.selectAll('mySlices').data(dataReady).enter().append('text').text(function (d) {
  52109. return (d.data.value / sum * 100).toFixed(0) + '%';
  52110. }).attr('transform', function (d) {
  52111. return 'translate(' + arcGenerator.centroid(d) + ')';
  52112. }).style('text-anchor', 'middle').attr('class', 'slice').style('font-size', 17);
  52113. svg.append('text').text(parser.yy.getTitle()).attr('x', 0).attr('y', -(h - 50) / 2).attr('class', 'pieTitleText'); //Add the slegend/annotations for each section
  52114. var legend = svg.selectAll('.legend').data(color.domain()).enter().append('g').attr('class', 'legend').attr('transform', function (d, i) {
  52115. var height = legendRectSize + legendSpacing;
  52116. var offset = height * color.domain().length / 2;
  52117. var horz = 12 * legendRectSize;
  52118. var vert = i * height - offset;
  52119. return 'translate(' + horz + ',' + vert + ')';
  52120. });
  52121. legend.append('rect').attr('width', legendRectSize).attr('height', legendRectSize).style('fill', color).style('stroke', color);
  52122. legend.append('text').attr('x', legendRectSize + legendSpacing).attr('y', legendRectSize - legendSpacing).text(function (d) {
  52123. return d;
  52124. });
  52125. } catch (e) {
  52126. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error('Error while rendering info diagram');
  52127. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error(e.message);
  52128. }
  52129. };
  52130. /* harmony default export */ __webpack_exports__["default"] = ({
  52131. setConf: setConf,
  52132. draw: draw
  52133. });
  52134. /***/ }),
  52135. /***/ "./src/diagrams/pie/styles.js":
  52136. /*!************************************!*\
  52137. !*** ./src/diagrams/pie/styles.js ***!
  52138. \************************************/
  52139. /*! exports provided: default */
  52140. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52141. "use strict";
  52142. __webpack_require__.r(__webpack_exports__);
  52143. var getStyles = function getStyles(options) {
  52144. return ".pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ".concat(options.taskTextDarkColor, ";\n font-family: ").concat(options.fontFamily, ";\n }\n .slice {\n font-family: ").concat(options.fontFamily, ";\n fill: ").concat(options.textColor, ";\n // fill: white;\n }\n .legend text {\n fill: ").concat(options.taskTextDarkColor, ";\n font-family: ").concat(options.fontFamily, ";\n font-size: 17px;\n }\n");
  52145. };
  52146. /* harmony default export */ __webpack_exports__["default"] = (getStyles);
  52147. /***/ }),
  52148. /***/ "./src/diagrams/sequence/parser/sequenceDiagram.jison":
  52149. /*!************************************************************!*\
  52150. !*** ./src/diagrams/sequence/parser/sequenceDiagram.jison ***!
  52151. \************************************************************/
  52152. /*! no static exports found */
  52153. /***/ (function(module, exports, __webpack_require__) {
  52154. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  52155. /*
  52156. Returns a Parser object of the following structure:
  52157. Parser: {
  52158. yy: {}
  52159. }
  52160. Parser.prototype: {
  52161. yy: {},
  52162. trace: function(),
  52163. symbols_: {associative list: name ==> number},
  52164. terminals_: {associative list: number ==> name},
  52165. productions_: [...],
  52166. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  52167. table: [...],
  52168. defaultActions: {...},
  52169. parseError: function(str, hash),
  52170. parse: function(input),
  52171. lexer: {
  52172. EOF: 1,
  52173. parseError: function(str, hash),
  52174. setInput: function(input),
  52175. input: function(),
  52176. unput: function(str),
  52177. more: function(),
  52178. less: function(n),
  52179. pastInput: function(),
  52180. upcomingInput: function(),
  52181. showPosition: function(),
  52182. test_match: function(regex_match_array, rule_index),
  52183. next: function(),
  52184. lex: function(),
  52185. begin: function(condition),
  52186. popState: function(),
  52187. _currentRules: function(),
  52188. topState: function(),
  52189. pushState: function(condition),
  52190. options: {
  52191. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  52192. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  52193. 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)
  52194. },
  52195. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  52196. rules: [...],
  52197. conditions: {associative list: name ==> set},
  52198. }
  52199. }
  52200. token location info (@$, _$, etc.): {
  52201. first_line: n,
  52202. last_line: n,
  52203. first_column: n,
  52204. last_column: n,
  52205. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  52206. }
  52207. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  52208. text: (matched text)
  52209. token: (the produced terminal token, if any)
  52210. line: (yylineno)
  52211. }
  52212. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  52213. loc: (yylloc)
  52214. expected: (string describing the set of expected tokens)
  52215. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  52216. }
  52217. */
  52218. var parser = (function(){
  52219. 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,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,18],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,29],$Vh=[1,32],$Vi=[1,33],$Vj=[1,36],$Vk=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],$Vl=[1,44],$Vm=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],$Vn=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],$Vo=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],$Vp=[46,47,48],$Vq=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56];
  52220. var parser = {trace: function trace () { },
  52221. yy: {},
  52222. symbols_: {"error":2,"start":3,"SPACE":4,"NL":5,"directive":6,"SD":7,"document":8,"line":9,"statement":10,"openDirective":11,"typeDirective":12,"closeDirective":13,":":14,"argDirective":15,"participant":16,"actor":17,"AS":18,"restOfLine":19,"signal":20,"autonumber":21,"activate":22,"deactivate":23,"note_statement":24,"title":25,"text2":26,"loop":27,"end":28,"rect":29,"opt":30,"alt":31,"else_sections":32,"par":33,"par_sections":34,"and":35,"else":36,"note":37,"placement":38,"over":39,"actor_pair":40,"spaceList":41,",":42,"left_of":43,"right_of":44,"signaltype":45,"+":46,"-":47,"ACTOR":48,"SOLID_OPEN_ARROW":49,"DOTTED_OPEN_ARROW":50,"SOLID_ARROW":51,"DOTTED_ARROW":52,"SOLID_CROSS":53,"DOTTED_CROSS":54,"TXT":55,"open_directive":56,"type_directive":57,"arg_directive":58,"close_directive":59,"$accept":0,"$end":1},
  52223. terminals_: {2:"error",4:"SPACE",5:"NL",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",21:"autonumber",22:"activate",23:"deactivate",25:"title",27:"loop",28:"end",29:"rect",30:"opt",31:"alt",33:"par",35:"and",36:"else",37:"note",39:"over",42:",",43:"left_of",44:"right_of",46:"+",47:"-",48:"ACTOR",49:"SOLID_OPEN_ARROW",50:"DOTTED_OPEN_ARROW",51:"SOLID_ARROW",52:"DOTTED_ARROW",53:"SOLID_CROSS",54:"DOTTED_CROSS",55:"TXT",56:"open_directive",57:"type_directive",58:"arg_directive",59:"close_directive"},
  52224. productions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],
  52225. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  52226. /* this == yyval */
  52227. var $0 = $$.length - 1;
  52228. switch (yystate) {
  52229. case 4:
  52230. yy.apply($$[$0]);return $$[$0];
  52231. break;
  52232. case 5:
  52233. this.$ = []
  52234. break;
  52235. case 6:
  52236. $$[$0-1].push($$[$0]);this.$ = $$[$0-1]
  52237. break;
  52238. case 7: case 8:
  52239. this.$ = $$[$0]
  52240. break;
  52241. case 9:
  52242. this.$=[];
  52243. break;
  52244. case 12:
  52245. $$[$0-3].description=yy.parseMessage($$[$0-1]); this.$=$$[$0-3];
  52246. break;
  52247. case 13:
  52248. this.$=$$[$0-1];
  52249. break;
  52250. case 15:
  52251. yy.enableSequenceNumbers()
  52252. break;
  52253. case 16:
  52254. this.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};
  52255. break;
  52256. case 17:
  52257. this.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};
  52258. break;
  52259. case 19:
  52260. this.$=[{type:'setTitle', text:$$[$0-1]}]
  52261. break;
  52262. case 20:
  52263. $$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});
  52264. $$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});
  52265. this.$=$$[$0-1];
  52266. break;
  52267. case 21:
  52268. $$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });
  52269. $$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });
  52270. this.$=$$[$0-1];
  52271. break;
  52272. case 22:
  52273. $$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});
  52274. $$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});
  52275. this.$=$$[$0-1];
  52276. break;
  52277. case 23:
  52278. // Alt start
  52279. $$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});
  52280. // Content in alt is already in $$[$0-1]
  52281. // End
  52282. $$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});
  52283. this.$=$$[$0-1];
  52284. break;
  52285. case 24:
  52286. // Parallel start
  52287. $$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});
  52288. // Content in par is already in $$[$0-1]
  52289. // End
  52290. $$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});
  52291. this.$=$$[$0-1];
  52292. break;
  52293. case 27:
  52294. this.$ = $$[$0-3].concat([{type: 'and', parText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.PAR_AND}, $$[$0]]);
  52295. break;
  52296. case 29:
  52297. this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]);
  52298. break;
  52299. case 30:
  52300. this.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];
  52301. break;
  52302. case 31:
  52303. // Coerce actor_pair into a [to, from, ...] array
  52304. $$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);
  52305. $$[$0-2][0] = $$[$0-2][0].actor;
  52306. $$[$0-2][1] = $$[$0-2][1].actor;
  52307. this.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];
  52308. break;
  52309. case 34:
  52310. this.$ = [$$[$0-2], $$[$0]];
  52311. break;
  52312. case 35:
  52313. this.$ = $$[$0];
  52314. break;
  52315. case 36:
  52316. this.$ = yy.PLACEMENT.LEFTOF;
  52317. break;
  52318. case 37:
  52319. this.$ = yy.PLACEMENT.RIGHTOF;
  52320. break;
  52321. case 38:
  52322. this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},
  52323. {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}
  52324. ]
  52325. break;
  52326. case 39:
  52327. this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},
  52328. {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}
  52329. ]
  52330. break;
  52331. case 40:
  52332. this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]
  52333. break;
  52334. case 41:
  52335. this.$={type: 'addActor', actor:$$[$0]}
  52336. break;
  52337. case 42:
  52338. this.$ = yy.LINETYPE.SOLID_OPEN;
  52339. break;
  52340. case 43:
  52341. this.$ = yy.LINETYPE.DOTTED_OPEN;
  52342. break;
  52343. case 44:
  52344. this.$ = yy.LINETYPE.SOLID;
  52345. break;
  52346. case 45:
  52347. this.$ = yy.LINETYPE.DOTTED;
  52348. break;
  52349. case 46:
  52350. this.$ = yy.LINETYPE.SOLID_CROSS;
  52351. break;
  52352. case 47:
  52353. this.$ = yy.LINETYPE.DOTTED_CROSS;
  52354. break;
  52355. case 48:
  52356. this.$ = yy.parseMessage($$[$0].trim().substring(1))
  52357. break;
  52358. case 49:
  52359. yy.parseDirective('%%{', 'open_directive');
  52360. break;
  52361. case 50:
  52362. yy.parseDirective($$[$0], 'type_directive');
  52363. break;
  52364. case 51:
  52365. $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive');
  52366. break;
  52367. case 52:
  52368. yy.parseDirective('}%%', 'close_directive', 'sequence');
  52369. break;
  52370. }
  52371. },
  52372. table: [{3:1,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},o([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],$V4,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{13:34,14:[1,35],59:$Vj},o([14,59],[2,50]),o($Vk,[2,6]),{6:30,10:37,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},o($Vk,[2,8]),o($Vk,[2,9]),{17:38,48:$Vi},{5:[1,39]},o($Vk,[2,15]),{17:40,48:$Vi},{17:41,48:$Vi},{5:[1,42]},{26:43,55:$Vl},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},o($Vk,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},o([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},o($Vk,[2,7]),{5:[1,65],18:[1,64]},o($Vk,[2,14]),{5:[1,66]},{5:[1,67]},o($Vk,[2,18]),{5:[1,68]},{5:[2,48]},o($Vm,$V4,{8:69}),o($Vm,$V4,{8:70}),o($Vm,$V4,{8:71}),o($Vn,$V4,{32:72,8:73}),o($Vo,$V4,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:$Vi},o($Vp,[2,42]),o($Vp,[2,43]),o($Vp,[2,44]),o($Vp,[2,45]),o($Vp,[2,46]),o($Vp,[2,47]),{17:79,48:$Vi},{17:81,40:80,48:$Vi},{48:[2,36]},{48:[2,37]},o($Vq,[2,10]),{13:82,59:$Vj},{59:[2,51]},{19:[1,83]},o($Vk,[2,13]),o($Vk,[2,16]),o($Vk,[2,17]),o($Vk,[2,19]),{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,84],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,85],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,86],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{28:[1,87]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,28],29:$Vd,30:$Ve,31:$Vf,33:$Vg,36:[1,88],37:$Vh,48:$Vi,56:$V3},{28:[1,89]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,26],29:$Vd,30:$Ve,31:$Vf,33:$Vg,35:[1,90],37:$Vh,48:$Vi,56:$V3},{17:91,48:$Vi},{17:92,48:$Vi},{26:93,55:$Vl},{26:94,55:$Vl},{26:95,55:$Vl},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},o($Vk,[2,20]),o($Vk,[2,21]),o($Vk,[2,22]),o($Vk,[2,23]),{19:[1,99]},o($Vk,[2,24]),{19:[1,100]},{26:101,55:$Vl},{26:102,55:$Vl},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:$Vi},o($Vq,[2,11]),o($Vk,[2,12]),o($Vn,$V4,{8:73,32:104}),o($Vo,$V4,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],
  52373. defaultActions: {7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},
  52374. parseError: function parseError (str, hash) {
  52375. if (hash.recoverable) {
  52376. this.trace(str);
  52377. } else {
  52378. var error = new Error(str);
  52379. error.hash = hash;
  52380. throw error;
  52381. }
  52382. },
  52383. parse: function parse(input) {
  52384. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  52385. var args = lstack.slice.call(arguments, 1);
  52386. var lexer = Object.create(this.lexer);
  52387. var sharedState = { yy: {} };
  52388. for (var k in this.yy) {
  52389. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  52390. sharedState.yy[k] = this.yy[k];
  52391. }
  52392. }
  52393. lexer.setInput(input, sharedState.yy);
  52394. sharedState.yy.lexer = lexer;
  52395. sharedState.yy.parser = this;
  52396. if (typeof lexer.yylloc == 'undefined') {
  52397. lexer.yylloc = {};
  52398. }
  52399. var yyloc = lexer.yylloc;
  52400. lstack.push(yyloc);
  52401. var ranges = lexer.options && lexer.options.ranges;
  52402. if (typeof sharedState.yy.parseError === 'function') {
  52403. this.parseError = sharedState.yy.parseError;
  52404. } else {
  52405. this.parseError = Object.getPrototypeOf(this).parseError;
  52406. }
  52407. function popStack(n) {
  52408. stack.length = stack.length - 2 * n;
  52409. vstack.length = vstack.length - n;
  52410. lstack.length = lstack.length - n;
  52411. }
  52412. function lex() {
  52413. var token;
  52414. token = tstack.pop() || lexer.lex() || EOF;
  52415. if (typeof token !== 'number') {
  52416. if (token instanceof Array) {
  52417. tstack = token;
  52418. token = tstack.pop();
  52419. }
  52420. token = self.symbols_[token] || token;
  52421. }
  52422. return token;
  52423. }
  52424. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  52425. while (true) {
  52426. state = stack[stack.length - 1];
  52427. if (this.defaultActions[state]) {
  52428. action = this.defaultActions[state];
  52429. } else {
  52430. if (symbol === null || typeof symbol == 'undefined') {
  52431. symbol = lex();
  52432. }
  52433. action = table[state] && table[state][symbol];
  52434. }
  52435. if (typeof action === 'undefined' || !action.length || !action[0]) {
  52436. var errStr = '';
  52437. expected = [];
  52438. for (p in table[state]) {
  52439. if (this.terminals_[p] && p > TERROR) {
  52440. expected.push('\'' + this.terminals_[p] + '\'');
  52441. }
  52442. }
  52443. if (lexer.showPosition) {
  52444. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  52445. } else {
  52446. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  52447. }
  52448. this.parseError(errStr, {
  52449. text: lexer.match,
  52450. token: this.terminals_[symbol] || symbol,
  52451. line: lexer.yylineno,
  52452. loc: yyloc,
  52453. expected: expected
  52454. });
  52455. }
  52456. if (action[0] instanceof Array && action.length > 1) {
  52457. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  52458. }
  52459. switch (action[0]) {
  52460. case 1:
  52461. stack.push(symbol);
  52462. vstack.push(lexer.yytext);
  52463. lstack.push(lexer.yylloc);
  52464. stack.push(action[1]);
  52465. symbol = null;
  52466. if (!preErrorSymbol) {
  52467. yyleng = lexer.yyleng;
  52468. yytext = lexer.yytext;
  52469. yylineno = lexer.yylineno;
  52470. yyloc = lexer.yylloc;
  52471. if (recovering > 0) {
  52472. recovering--;
  52473. }
  52474. } else {
  52475. symbol = preErrorSymbol;
  52476. preErrorSymbol = null;
  52477. }
  52478. break;
  52479. case 2:
  52480. len = this.productions_[action[1]][1];
  52481. yyval.$ = vstack[vstack.length - len];
  52482. yyval._$ = {
  52483. first_line: lstack[lstack.length - (len || 1)].first_line,
  52484. last_line: lstack[lstack.length - 1].last_line,
  52485. first_column: lstack[lstack.length - (len || 1)].first_column,
  52486. last_column: lstack[lstack.length - 1].last_column
  52487. };
  52488. if (ranges) {
  52489. yyval._$.range = [
  52490. lstack[lstack.length - (len || 1)].range[0],
  52491. lstack[lstack.length - 1].range[1]
  52492. ];
  52493. }
  52494. r = this.performAction.apply(yyval, [
  52495. yytext,
  52496. yyleng,
  52497. yylineno,
  52498. sharedState.yy,
  52499. action[1],
  52500. vstack,
  52501. lstack
  52502. ].concat(args));
  52503. if (typeof r !== 'undefined') {
  52504. return r;
  52505. }
  52506. if (len) {
  52507. stack = stack.slice(0, -1 * len * 2);
  52508. vstack = vstack.slice(0, -1 * len);
  52509. lstack = lstack.slice(0, -1 * len);
  52510. }
  52511. stack.push(this.productions_[action[1]][0]);
  52512. vstack.push(yyval.$);
  52513. lstack.push(yyval._$);
  52514. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  52515. stack.push(newState);
  52516. break;
  52517. case 3:
  52518. return true;
  52519. }
  52520. }
  52521. return true;
  52522. }};
  52523. /* generated by jison-lex 0.3.4 */
  52524. var lexer = (function(){
  52525. var lexer = ({
  52526. EOF:1,
  52527. parseError:function parseError(str, hash) {
  52528. if (this.yy.parser) {
  52529. this.yy.parser.parseError(str, hash);
  52530. } else {
  52531. throw new Error(str);
  52532. }
  52533. },
  52534. // resets the lexer, sets new input
  52535. setInput:function (input, yy) {
  52536. this.yy = yy || this.yy || {};
  52537. this._input = input;
  52538. this._more = this._backtrack = this.done = false;
  52539. this.yylineno = this.yyleng = 0;
  52540. this.yytext = this.matched = this.match = '';
  52541. this.conditionStack = ['INITIAL'];
  52542. this.yylloc = {
  52543. first_line: 1,
  52544. first_column: 0,
  52545. last_line: 1,
  52546. last_column: 0
  52547. };
  52548. if (this.options.ranges) {
  52549. this.yylloc.range = [0,0];
  52550. }
  52551. this.offset = 0;
  52552. return this;
  52553. },
  52554. // consumes and returns one char from the input
  52555. input:function () {
  52556. var ch = this._input[0];
  52557. this.yytext += ch;
  52558. this.yyleng++;
  52559. this.offset++;
  52560. this.match += ch;
  52561. this.matched += ch;
  52562. var lines = ch.match(/(?:\r\n?|\n).*/g);
  52563. if (lines) {
  52564. this.yylineno++;
  52565. this.yylloc.last_line++;
  52566. } else {
  52567. this.yylloc.last_column++;
  52568. }
  52569. if (this.options.ranges) {
  52570. this.yylloc.range[1]++;
  52571. }
  52572. this._input = this._input.slice(1);
  52573. return ch;
  52574. },
  52575. // unshifts one char (or a string) into the input
  52576. unput:function (ch) {
  52577. var len = ch.length;
  52578. var lines = ch.split(/(?:\r\n?|\n)/g);
  52579. this._input = ch + this._input;
  52580. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  52581. //this.yyleng -= len;
  52582. this.offset -= len;
  52583. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  52584. this.match = this.match.substr(0, this.match.length - 1);
  52585. this.matched = this.matched.substr(0, this.matched.length - 1);
  52586. if (lines.length - 1) {
  52587. this.yylineno -= lines.length - 1;
  52588. }
  52589. var r = this.yylloc.range;
  52590. this.yylloc = {
  52591. first_line: this.yylloc.first_line,
  52592. last_line: this.yylineno + 1,
  52593. first_column: this.yylloc.first_column,
  52594. last_column: lines ?
  52595. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  52596. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  52597. this.yylloc.first_column - len
  52598. };
  52599. if (this.options.ranges) {
  52600. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  52601. }
  52602. this.yyleng = this.yytext.length;
  52603. return this;
  52604. },
  52605. // When called from action, caches matched text and appends it on next action
  52606. more:function () {
  52607. this._more = true;
  52608. return this;
  52609. },
  52610. // 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.
  52611. reject:function () {
  52612. if (this.options.backtrack_lexer) {
  52613. this._backtrack = true;
  52614. } else {
  52615. 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(), {
  52616. text: "",
  52617. token: null,
  52618. line: this.yylineno
  52619. });
  52620. }
  52621. return this;
  52622. },
  52623. // retain first n characters of the match
  52624. less:function (n) {
  52625. this.unput(this.match.slice(n));
  52626. },
  52627. // displays already matched input, i.e. for error messages
  52628. pastInput:function () {
  52629. var past = this.matched.substr(0, this.matched.length - this.match.length);
  52630. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  52631. },
  52632. // displays upcoming input, i.e. for error messages
  52633. upcomingInput:function () {
  52634. var next = this.match;
  52635. if (next.length < 20) {
  52636. next += this._input.substr(0, 20-next.length);
  52637. }
  52638. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  52639. },
  52640. // displays the character position where the lexing error occurred, i.e. for error messages
  52641. showPosition:function () {
  52642. var pre = this.pastInput();
  52643. var c = new Array(pre.length + 1).join("-");
  52644. return pre + this.upcomingInput() + "\n" + c + "^";
  52645. },
  52646. // test the lexed token: return FALSE when not a match, otherwise return token
  52647. test_match:function(match, indexed_rule) {
  52648. var token,
  52649. lines,
  52650. backup;
  52651. if (this.options.backtrack_lexer) {
  52652. // save context
  52653. backup = {
  52654. yylineno: this.yylineno,
  52655. yylloc: {
  52656. first_line: this.yylloc.first_line,
  52657. last_line: this.last_line,
  52658. first_column: this.yylloc.first_column,
  52659. last_column: this.yylloc.last_column
  52660. },
  52661. yytext: this.yytext,
  52662. match: this.match,
  52663. matches: this.matches,
  52664. matched: this.matched,
  52665. yyleng: this.yyleng,
  52666. offset: this.offset,
  52667. _more: this._more,
  52668. _input: this._input,
  52669. yy: this.yy,
  52670. conditionStack: this.conditionStack.slice(0),
  52671. done: this.done
  52672. };
  52673. if (this.options.ranges) {
  52674. backup.yylloc.range = this.yylloc.range.slice(0);
  52675. }
  52676. }
  52677. lines = match[0].match(/(?:\r\n?|\n).*/g);
  52678. if (lines) {
  52679. this.yylineno += lines.length;
  52680. }
  52681. this.yylloc = {
  52682. first_line: this.yylloc.last_line,
  52683. last_line: this.yylineno + 1,
  52684. first_column: this.yylloc.last_column,
  52685. last_column: lines ?
  52686. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  52687. this.yylloc.last_column + match[0].length
  52688. };
  52689. this.yytext += match[0];
  52690. this.match += match[0];
  52691. this.matches = match;
  52692. this.yyleng = this.yytext.length;
  52693. if (this.options.ranges) {
  52694. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  52695. }
  52696. this._more = false;
  52697. this._backtrack = false;
  52698. this._input = this._input.slice(match[0].length);
  52699. this.matched += match[0];
  52700. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  52701. if (this.done && this._input) {
  52702. this.done = false;
  52703. }
  52704. if (token) {
  52705. return token;
  52706. } else if (this._backtrack) {
  52707. // recover context
  52708. for (var k in backup) {
  52709. this[k] = backup[k];
  52710. }
  52711. return false; // rule action called reject() implying the next rule should be tested instead.
  52712. }
  52713. return false;
  52714. },
  52715. // return next match in input
  52716. next:function () {
  52717. if (this.done) {
  52718. return this.EOF;
  52719. }
  52720. if (!this._input) {
  52721. this.done = true;
  52722. }
  52723. var token,
  52724. match,
  52725. tempMatch,
  52726. index;
  52727. if (!this._more) {
  52728. this.yytext = '';
  52729. this.match = '';
  52730. }
  52731. var rules = this._currentRules();
  52732. for (var i = 0; i < rules.length; i++) {
  52733. tempMatch = this._input.match(this.rules[rules[i]]);
  52734. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  52735. match = tempMatch;
  52736. index = i;
  52737. if (this.options.backtrack_lexer) {
  52738. token = this.test_match(tempMatch, rules[i]);
  52739. if (token !== false) {
  52740. return token;
  52741. } else if (this._backtrack) {
  52742. match = false;
  52743. continue; // rule action called reject() implying a rule MISmatch.
  52744. } else {
  52745. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  52746. return false;
  52747. }
  52748. } else if (!this.options.flex) {
  52749. break;
  52750. }
  52751. }
  52752. }
  52753. if (match) {
  52754. token = this.test_match(match, rules[index]);
  52755. if (token !== false) {
  52756. return token;
  52757. }
  52758. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  52759. return false;
  52760. }
  52761. if (this._input === "") {
  52762. return this.EOF;
  52763. } else {
  52764. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  52765. text: "",
  52766. token: null,
  52767. line: this.yylineno
  52768. });
  52769. }
  52770. },
  52771. // return next match that has a token
  52772. lex:function lex () {
  52773. var r = this.next();
  52774. if (r) {
  52775. return r;
  52776. } else {
  52777. return this.lex();
  52778. }
  52779. },
  52780. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  52781. begin:function begin (condition) {
  52782. this.conditionStack.push(condition);
  52783. },
  52784. // pop the previously active lexer condition state off the condition stack
  52785. popState:function popState () {
  52786. var n = this.conditionStack.length - 1;
  52787. if (n > 0) {
  52788. return this.conditionStack.pop();
  52789. } else {
  52790. return this.conditionStack[0];
  52791. }
  52792. },
  52793. // produce the lexer rule set which is active for the currently active lexer condition state
  52794. _currentRules:function _currentRules () {
  52795. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  52796. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  52797. } else {
  52798. return this.conditions["INITIAL"].rules;
  52799. }
  52800. },
  52801. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  52802. topState:function topState (n) {
  52803. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  52804. if (n >= 0) {
  52805. return this.conditionStack[n];
  52806. } else {
  52807. return "INITIAL";
  52808. }
  52809. },
  52810. // alias for begin(condition)
  52811. pushState:function pushState (condition) {
  52812. this.begin(condition);
  52813. },
  52814. // return the number of states currently on the stack
  52815. stateStackSize:function stateStackSize() {
  52816. return this.conditionStack.length;
  52817. },
  52818. options: {"case-insensitive":true},
  52819. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  52820. var YYSTATE=YY_START;
  52821. switch($avoiding_name_collisions) {
  52822. case 0: this.begin('OPEN_DIRECTIVE'); return 56;
  52823. break;
  52824. case 1: this.begin('TYPE_DIRECTIVE'); return 57;
  52825. break;
  52826. case 2: this.popState(); this.begin('ARG_DIRECTIVE'); return 14;
  52827. break;
  52828. case 3: this.popState(); this.popState(); return 59;
  52829. break;
  52830. case 4:return 58;
  52831. break;
  52832. case 5:return 5;
  52833. break;
  52834. case 6:/* skip all whitespace */
  52835. break;
  52836. case 7:/* skip same-line whitespace */
  52837. break;
  52838. case 8:/* skip comments */
  52839. break;
  52840. case 9:/* skip comments */
  52841. break;
  52842. case 10:/* skip comments */
  52843. break;
  52844. case 11: this.begin('ID'); return 16;
  52845. break;
  52846. case 12: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 48;
  52847. break;
  52848. case 13: this.popState(); this.popState(); this.begin('LINE'); return 18;
  52849. break;
  52850. case 14: this.popState(); this.popState(); return 5;
  52851. break;
  52852. case 15: this.begin('LINE'); return 27;
  52853. break;
  52854. case 16: this.begin('LINE'); return 29;
  52855. break;
  52856. case 17: this.begin('LINE'); return 30;
  52857. break;
  52858. case 18: this.begin('LINE'); return 31;
  52859. break;
  52860. case 19: this.begin('LINE'); return 36;
  52861. break;
  52862. case 20: this.begin('LINE'); return 33;
  52863. break;
  52864. case 21: this.begin('LINE'); return 35;
  52865. break;
  52866. case 22: this.popState(); return 19;
  52867. break;
  52868. case 23:return 28;
  52869. break;
  52870. case 24:return 43;
  52871. break;
  52872. case 25:return 44;
  52873. break;
  52874. case 26:return 39;
  52875. break;
  52876. case 27:return 37;
  52877. break;
  52878. case 28: this.begin('ID'); return 22;
  52879. break;
  52880. case 29: this.begin('ID'); return 23;
  52881. break;
  52882. case 30:return 25;
  52883. break;
  52884. case 31:return 7;
  52885. break;
  52886. case 32:return 21;
  52887. break;
  52888. case 33:return 42;
  52889. break;
  52890. case 34:return 5;
  52891. break;
  52892. case 35: yy_.yytext = yy_.yytext.trim(); return 48;
  52893. break;
  52894. case 36:return 51;
  52895. break;
  52896. case 37:return 52;
  52897. break;
  52898. case 38:return 49;
  52899. break;
  52900. case 39:return 50;
  52901. break;
  52902. case 40:return 53;
  52903. break;
  52904. case 41:return 54;
  52905. break;
  52906. case 42:return 55;
  52907. break;
  52908. case 43:return 46;
  52909. break;
  52910. case 44:return 47;
  52911. break;
  52912. case 45:return 5;
  52913. break;
  52914. case 46:return 'INVALID';
  52915. break;
  52916. }
  52917. },
  52918. rules: [/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/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,/^(?:(?:[:]?(?:no)?wrap)?[^#\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,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],
  52919. conditions: {"LINE":{"rules":[7,8,22],"inclusive":false},"ARG_DIRECTIVE":{"rules":[3,4,8],"inclusive":false},"TYPE_DIRECTIVE":{"rules":[2,3,8],"inclusive":false},"OPEN_DIRECTIVE":{"rules":[1,8],"inclusive":false},"ALIAS":{"rules":[7,8,13,14],"inclusive":false},"ID":{"rules":[7,8,12],"inclusive":false},"INITIAL":{"rules":[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"inclusive":true}}
  52920. });
  52921. return lexer;
  52922. })();
  52923. parser.lexer = lexer;
  52924. function Parser () {
  52925. this.yy = {};
  52926. }
  52927. Parser.prototype = parser;parser.Parser = Parser;
  52928. return new Parser;
  52929. })();
  52930. if (true) {
  52931. exports.parser = parser;
  52932. exports.Parser = parser.Parser;
  52933. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  52934. exports.main = function commonjsMain (args) {
  52935. if (!args[1]) {
  52936. console.log('Usage: '+args[0]+' FILE');
  52937. process.exit(1);
  52938. }
  52939. 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");
  52940. return exports.parser.parse(source);
  52941. };
  52942. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  52943. exports.main(process.argv.slice(1));
  52944. }
  52945. }
  52946. /* 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)))
  52947. /***/ }),
  52948. /***/ "./src/diagrams/sequence/sequenceDb.js":
  52949. /*!*********************************************!*\
  52950. !*** ./src/diagrams/sequence/sequenceDb.js ***!
  52951. \*********************************************/
  52952. /*! exports provided: parseDirective, addActor, addMessage, addSignal, getMessages, getActors, getActor, getActorKeys, getTitle, getTitleWrapped, enableSequenceNumbers, showSequenceNumbers, setWrap, autoWrap, clear, parseMessage, LINETYPE, ARROWTYPE, PLACEMENT, addNote, setTitle, apply, default */
  52953. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52954. "use strict";
  52955. __webpack_require__.r(__webpack_exports__);
  52956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDirective", function() { return parseDirective; });
  52957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addActor", function() { return addActor; });
  52958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addMessage", function() { return addMessage; });
  52959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addSignal", function() { return addSignal; });
  52960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMessages", function() { return getMessages; });
  52961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActors", function() { return getActors; });
  52962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActor", function() { return getActor; });
  52963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActorKeys", function() { return getActorKeys; });
  52964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTitle", function() { return getTitle; });
  52965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTitleWrapped", function() { return getTitleWrapped; });
  52966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableSequenceNumbers", function() { return enableSequenceNumbers; });
  52967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "showSequenceNumbers", function() { return showSequenceNumbers; });
  52968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setWrap", function() { return setWrap; });
  52969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "autoWrap", function() { return autoWrap; });
  52970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  52971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseMessage", function() { return parseMessage; });
  52972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LINETYPE", function() { return LINETYPE; });
  52973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ARROWTYPE", function() { return ARROWTYPE; });
  52974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PLACEMENT", function() { return PLACEMENT; });
  52975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addNote", function() { return addNote; });
  52976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTitle", function() { return setTitle; });
  52977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "apply", function() { return apply; });
  52978. /* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mermaidAPI */ "./src/mermaidAPI.js");
  52979. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  52980. /* harmony import */ var _common_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/common */ "./src/diagrams/common/common.js");
  52981. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  52982. var prevActor = undefined;
  52983. var actors = {};
  52984. var messages = [];
  52985. var notes = [];
  52986. var title = '';
  52987. var titleWrapped = false;
  52988. var sequenceNumbersEnabled = false;
  52989. var wrapEnabled = false;
  52990. var parseDirective = function parseDirective(statement, context, type) {
  52991. _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__["default"].parseDirective(statement, context, type);
  52992. };
  52993. var addActor = function addActor(id, name, description) {
  52994. // Don't allow description nulling
  52995. var old = actors[id];
  52996. if (old && name === old.name && description == null) return; // Don't allow null descriptions, either
  52997. if (description == null || description.text == null) {
  52998. description = {
  52999. text: name,
  53000. wrap: null
  53001. };
  53002. }
  53003. actors[id] = {
  53004. name: name,
  53005. description: description.text,
  53006. wrap: description.wrap === undefined && autoWrap() || !!description.wrap,
  53007. prevActor: prevActor
  53008. };
  53009. if (prevActor && actors[prevActor]) {
  53010. actors[prevActor].nextActor = id;
  53011. }
  53012. prevActor = id;
  53013. };
  53014. var activationCount = function activationCount(part) {
  53015. var i;
  53016. var count = 0;
  53017. for (i = 0; i < messages.length; i++) {
  53018. // console.warn(i, messages[i]);
  53019. if (messages[i].type === LINETYPE.ACTIVE_START) {
  53020. if (messages[i].from.actor === part) {
  53021. count++;
  53022. }
  53023. }
  53024. if (messages[i].type === LINETYPE.ACTIVE_END) {
  53025. if (messages[i].from.actor === part) {
  53026. count--;
  53027. }
  53028. }
  53029. }
  53030. return count;
  53031. };
  53032. var addMessage = function addMessage(idFrom, idTo, message, answer) {
  53033. messages.push({
  53034. from: idFrom,
  53035. to: idTo,
  53036. message: message.text,
  53037. wrap: message.wrap === undefined && autoWrap() || !!message.wrap,
  53038. answer: answer
  53039. });
  53040. };
  53041. var addSignal = function addSignal(idFrom, idTo) {
  53042. var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
  53043. text: undefined,
  53044. wrap: undefined
  53045. };
  53046. var messageType = arguments.length > 3 ? arguments[3] : undefined;
  53047. if (messageType === LINETYPE.ACTIVE_END) {
  53048. var cnt = activationCount(idFrom.actor);
  53049. if (cnt < 1) {
  53050. // Bail out as there is an activation signal from an inactive participant
  53051. var error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');
  53052. error.hash = {
  53053. text: '->>-',
  53054. token: '->>-',
  53055. line: '1',
  53056. loc: {
  53057. first_line: 1,
  53058. last_line: 1,
  53059. first_column: 1,
  53060. last_column: 1
  53061. },
  53062. expected: ["'ACTIVE_PARTICIPANT'"]
  53063. };
  53064. throw error;
  53065. }
  53066. }
  53067. messages.push({
  53068. from: idFrom,
  53069. to: idTo,
  53070. message: message.text,
  53071. wrap: message.wrap === undefined && autoWrap() || !!message.wrap,
  53072. type: messageType
  53073. });
  53074. return true;
  53075. };
  53076. var getMessages = function getMessages() {
  53077. return messages;
  53078. };
  53079. var getActors = function getActors() {
  53080. return actors;
  53081. };
  53082. var getActor = function getActor(id) {
  53083. return actors[id];
  53084. };
  53085. var getActorKeys = function getActorKeys() {
  53086. return Object.keys(actors);
  53087. };
  53088. var getTitle = function getTitle() {
  53089. return title;
  53090. };
  53091. var getTitleWrapped = function getTitleWrapped() {
  53092. return titleWrapped;
  53093. };
  53094. var enableSequenceNumbers = function enableSequenceNumbers() {
  53095. sequenceNumbersEnabled = true;
  53096. };
  53097. var showSequenceNumbers = function showSequenceNumbers() {
  53098. return sequenceNumbersEnabled;
  53099. };
  53100. var setWrap = function setWrap(wrapSetting) {
  53101. wrapEnabled = wrapSetting;
  53102. };
  53103. var autoWrap = function autoWrap() {
  53104. return wrapEnabled;
  53105. };
  53106. var clear = function clear() {
  53107. actors = {};
  53108. messages = [];
  53109. };
  53110. var parseMessage = function parseMessage(str) {
  53111. var _str = str.trim();
  53112. var message = {
  53113. text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(),
  53114. wrap: _str.match(/^[:]?(?:no)?wrap:/) === null ? _common_common__WEBPACK_IMPORTED_MODULE_2__["default"].hasBreaks(_str) || autoWrap() : _str.match(/^[:]?wrap:/) !== null ? true : _str.match(/^[:]?nowrap:/) !== null ? false : autoWrap()
  53115. };
  53116. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('parseMessage:', message);
  53117. return message;
  53118. };
  53119. var LINETYPE = {
  53120. SOLID: 0,
  53121. DOTTED: 1,
  53122. NOTE: 2,
  53123. SOLID_CROSS: 3,
  53124. DOTTED_CROSS: 4,
  53125. SOLID_OPEN: 5,
  53126. DOTTED_OPEN: 6,
  53127. LOOP_START: 10,
  53128. LOOP_END: 11,
  53129. ALT_START: 12,
  53130. ALT_ELSE: 13,
  53131. ALT_END: 14,
  53132. OPT_START: 15,
  53133. OPT_END: 16,
  53134. ACTIVE_START: 17,
  53135. ACTIVE_END: 18,
  53136. PAR_START: 19,
  53137. PAR_AND: 20,
  53138. PAR_END: 21,
  53139. RECT_START: 22,
  53140. RECT_END: 23
  53141. };
  53142. var ARROWTYPE = {
  53143. FILLED: 0,
  53144. OPEN: 1
  53145. };
  53146. var PLACEMENT = {
  53147. LEFTOF: 0,
  53148. RIGHTOF: 1,
  53149. OVER: 2
  53150. };
  53151. var addNote = function addNote(actor, placement, message) {
  53152. var note = {
  53153. actor: actor,
  53154. placement: placement,
  53155. message: message.text,
  53156. wrap: message.wrap === undefined && autoWrap() || !!message.wrap
  53157. }; // Coerce actor into a [to, from, ...] array
  53158. var actors = [].concat(actor, actor);
  53159. notes.push(note);
  53160. messages.push({
  53161. from: actors[0],
  53162. to: actors[1],
  53163. message: message.text,
  53164. wrap: message.wrap === undefined && autoWrap() || !!message.wrap,
  53165. type: LINETYPE.NOTE,
  53166. placement: placement
  53167. });
  53168. };
  53169. var setTitle = function setTitle(titleWrap) {
  53170. title = titleWrap.text;
  53171. titleWrapped = titleWrap.wrap === undefined && autoWrap() || !!titleWrap.wrap;
  53172. };
  53173. var apply = function apply(param) {
  53174. if (param instanceof Array) {
  53175. param.forEach(function (item) {
  53176. apply(item);
  53177. });
  53178. } else {
  53179. switch (param.type) {
  53180. case 'addActor':
  53181. addActor(param.actor, param.actor, param.description);
  53182. break;
  53183. case 'activeStart':
  53184. addSignal(param.actor, undefined, undefined, param.signalType);
  53185. break;
  53186. case 'activeEnd':
  53187. addSignal(param.actor, undefined, undefined, param.signalType);
  53188. break;
  53189. case 'addNote':
  53190. addNote(param.actor, param.placement, param.text);
  53191. break;
  53192. case 'addMessage':
  53193. addSignal(param.from, param.to, param.msg, param.signalType);
  53194. break;
  53195. case 'loopStart':
  53196. addSignal(undefined, undefined, param.loopText, param.signalType);
  53197. break;
  53198. case 'loopEnd':
  53199. addSignal(undefined, undefined, undefined, param.signalType);
  53200. break;
  53201. case 'rectStart':
  53202. addSignal(undefined, undefined, param.color, param.signalType);
  53203. break;
  53204. case 'rectEnd':
  53205. addSignal(undefined, undefined, undefined, param.signalType);
  53206. break;
  53207. case 'optStart':
  53208. addSignal(undefined, undefined, param.optText, param.signalType);
  53209. break;
  53210. case 'optEnd':
  53211. addSignal(undefined, undefined, undefined, param.signalType);
  53212. break;
  53213. case 'altStart':
  53214. addSignal(undefined, undefined, param.altText, param.signalType);
  53215. break;
  53216. case 'else':
  53217. addSignal(undefined, undefined, param.altText, param.signalType);
  53218. break;
  53219. case 'altEnd':
  53220. addSignal(undefined, undefined, undefined, param.signalType);
  53221. break;
  53222. case 'setTitle':
  53223. setTitle(param.text);
  53224. break;
  53225. case 'parStart':
  53226. addSignal(undefined, undefined, param.parText, param.signalType);
  53227. break;
  53228. case 'and':
  53229. addSignal(undefined, undefined, param.parText, param.signalType);
  53230. break;
  53231. case 'parEnd':
  53232. addSignal(undefined, undefined, undefined, param.signalType);
  53233. break;
  53234. }
  53235. }
  53236. };
  53237. /* harmony default export */ __webpack_exports__["default"] = ({
  53238. addActor: addActor,
  53239. addMessage: addMessage,
  53240. addSignal: addSignal,
  53241. autoWrap: autoWrap,
  53242. setWrap: setWrap,
  53243. enableSequenceNumbers: enableSequenceNumbers,
  53244. showSequenceNumbers: showSequenceNumbers,
  53245. getMessages: getMessages,
  53246. getActors: getActors,
  53247. getActor: getActor,
  53248. getActorKeys: getActorKeys,
  53249. getTitle: getTitle,
  53250. parseDirective: parseDirective,
  53251. getConfig: function getConfig() {
  53252. return _config__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig().sequence;
  53253. },
  53254. getTitleWrapped: getTitleWrapped,
  53255. clear: clear,
  53256. parseMessage: parseMessage,
  53257. LINETYPE: LINETYPE,
  53258. ARROWTYPE: ARROWTYPE,
  53259. PLACEMENT: PLACEMENT,
  53260. addNote: addNote,
  53261. setTitle: setTitle,
  53262. apply: apply
  53263. });
  53264. /***/ }),
  53265. /***/ "./src/diagrams/sequence/sequenceRenderer.js":
  53266. /*!***************************************************!*\
  53267. !*** ./src/diagrams/sequence/sequenceRenderer.js ***!
  53268. \***************************************************/
  53269. /*! exports provided: bounds, drawActors, setConf, draw, default */
  53270. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53271. "use strict";
  53272. __webpack_require__.r(__webpack_exports__);
  53273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounds", function() { return bounds; });
  53274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawActors", function() { return drawActors; });
  53275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  53276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  53277. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  53278. /* harmony import */ var _svgDraw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./svgDraw */ "./src/diagrams/sequence/svgDraw.js");
  53279. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  53280. /* harmony import */ var _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parser/sequenceDiagram */ "./src/diagrams/sequence/parser/sequenceDiagram.jison");
  53281. /* harmony import */ var _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__);
  53282. /* harmony import */ var _common_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/common */ "./src/diagrams/common/common.js");
  53283. /* harmony import */ var _sequenceDb__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sequenceDb */ "./src/diagrams/sequence/sequenceDb.js");
  53284. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  53285. _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy = _sequenceDb__WEBPACK_IMPORTED_MODULE_5__["default"];
  53286. var conf = {};
  53287. var bounds = {
  53288. data: {
  53289. startx: undefined,
  53290. stopx: undefined,
  53291. starty: undefined,
  53292. stopy: undefined
  53293. },
  53294. verticalPos: 0,
  53295. sequenceItems: [],
  53296. activations: [],
  53297. models: {
  53298. getHeight: function getHeight() {
  53299. return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map(function (actor) {
  53300. return actor.height || 0;
  53301. })) + (this.loops.length === 0 ? 0 : this.loops.map(function (it) {
  53302. return it.height || 0;
  53303. }).reduce(function (acc, h) {
  53304. return acc + h;
  53305. })) + (this.messages.length === 0 ? 0 : this.messages.map(function (it) {
  53306. return it.height || 0;
  53307. }).reduce(function (acc, h) {
  53308. return acc + h;
  53309. })) + (this.notes.length === 0 ? 0 : this.notes.map(function (it) {
  53310. return it.height || 0;
  53311. }).reduce(function (acc, h) {
  53312. return acc + h;
  53313. }));
  53314. },
  53315. clear: function clear() {
  53316. this.actors = [];
  53317. this.loops = [];
  53318. this.messages = [];
  53319. this.notes = [];
  53320. },
  53321. addActor: function addActor(actorModel) {
  53322. this.actors.push(actorModel);
  53323. },
  53324. addLoop: function addLoop(loopModel) {
  53325. this.loops.push(loopModel);
  53326. },
  53327. addMessage: function addMessage(msgModel) {
  53328. this.messages.push(msgModel);
  53329. },
  53330. addNote: function addNote(noteModel) {
  53331. this.notes.push(noteModel);
  53332. },
  53333. lastActor: function lastActor() {
  53334. return this.actors[this.actors.length - 1];
  53335. },
  53336. lastLoop: function lastLoop() {
  53337. return this.loops[this.loops.length - 1];
  53338. },
  53339. lastMessage: function lastMessage() {
  53340. return this.messages[this.messages.length - 1];
  53341. },
  53342. lastNote: function lastNote() {
  53343. return this.notes[this.notes.length - 1];
  53344. },
  53345. actors: [],
  53346. loops: [],
  53347. messages: [],
  53348. notes: []
  53349. },
  53350. init: function init() {
  53351. this.sequenceItems = [];
  53352. this.activations = [];
  53353. this.models.clear();
  53354. this.data = {
  53355. startx: undefined,
  53356. stopx: undefined,
  53357. starty: undefined,
  53358. stopy: undefined
  53359. };
  53360. this.verticalPos = 0;
  53361. setConf(_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.getConfig());
  53362. },
  53363. updateVal: function updateVal(obj, key, val, fun) {
  53364. if (typeof obj[key] === 'undefined') {
  53365. obj[key] = val;
  53366. } else {
  53367. obj[key] = fun(val, obj[key]);
  53368. }
  53369. },
  53370. updateBounds: function updateBounds(startx, starty, stopx, stopy) {
  53371. var _self = this;
  53372. var cnt = 0;
  53373. function updateFn(type) {
  53374. return function updateItemBounds(item) {
  53375. cnt++; // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems
  53376. var n = _self.sequenceItems.length - cnt + 1;
  53377. _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);
  53378. _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);
  53379. _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);
  53380. _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);
  53381. if (!(type === 'activation')) {
  53382. _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);
  53383. _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);
  53384. _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);
  53385. _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);
  53386. }
  53387. };
  53388. }
  53389. this.sequenceItems.forEach(updateFn());
  53390. this.activations.forEach(updateFn('activation'));
  53391. },
  53392. insert: function insert(startx, starty, stopx, stopy) {
  53393. var _startx = Math.min(startx, stopx);
  53394. var _stopx = Math.max(startx, stopx);
  53395. var _starty = Math.min(starty, stopy);
  53396. var _stopy = Math.max(starty, stopy);
  53397. this.updateVal(bounds.data, 'startx', _startx, Math.min);
  53398. this.updateVal(bounds.data, 'starty', _starty, Math.min);
  53399. this.updateVal(bounds.data, 'stopx', _stopx, Math.max);
  53400. this.updateVal(bounds.data, 'stopy', _stopy, Math.max);
  53401. this.updateBounds(_startx, _starty, _stopx, _stopy);
  53402. },
  53403. newActivation: function newActivation(message, diagram, actors) {
  53404. var actorRect = actors[message.from.actor];
  53405. var stackedSize = actorActivations(message.from.actor).length || 0;
  53406. var x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
  53407. this.activations.push({
  53408. startx: x,
  53409. starty: this.verticalPos + 2,
  53410. stopx: x + conf.activationWidth,
  53411. stopy: undefined,
  53412. actor: message.from.actor,
  53413. anchored: _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].anchorElement(diagram)
  53414. });
  53415. },
  53416. endActivation: function endActivation(message) {
  53417. // find most recent activation for given actor
  53418. var lastActorActivationIdx = this.activations.map(function (activation) {
  53419. return activation.actor;
  53420. }).lastIndexOf(message.from.actor);
  53421. return this.activations.splice(lastActorActivationIdx, 1)[0];
  53422. },
  53423. createLoop: function createLoop() {
  53424. var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  53425. message: undefined,
  53426. wrap: false,
  53427. width: undefined
  53428. };
  53429. var fill = arguments.length > 1 ? arguments[1] : undefined;
  53430. return {
  53431. startx: undefined,
  53432. starty: this.verticalPos,
  53433. stopx: undefined,
  53434. stopy: undefined,
  53435. title: title.message,
  53436. wrap: title.wrap,
  53437. width: title.width,
  53438. height: 0,
  53439. fill: fill
  53440. };
  53441. },
  53442. newLoop: function newLoop() {
  53443. var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  53444. message: undefined,
  53445. wrap: false,
  53446. width: undefined
  53447. };
  53448. var fill = arguments.length > 1 ? arguments[1] : undefined;
  53449. this.sequenceItems.push(this.createLoop(title, fill));
  53450. },
  53451. endLoop: function endLoop() {
  53452. return this.sequenceItems.pop();
  53453. },
  53454. addSectionToLoop: function addSectionToLoop(message) {
  53455. var loop = this.sequenceItems.pop();
  53456. loop.sections = loop.sections || [];
  53457. loop.sectionTitles = loop.sectionTitles || [];
  53458. loop.sections.push({
  53459. y: bounds.getVerticalPos(),
  53460. height: 0
  53461. });
  53462. loop.sectionTitles.push(message);
  53463. this.sequenceItems.push(loop);
  53464. },
  53465. bumpVerticalPos: function bumpVerticalPos(bump) {
  53466. this.verticalPos = this.verticalPos + bump;
  53467. this.data.stopy = this.verticalPos;
  53468. },
  53469. getVerticalPos: function getVerticalPos() {
  53470. return this.verticalPos;
  53471. },
  53472. getBounds: function getBounds() {
  53473. return {
  53474. bounds: this.data,
  53475. models: this.models
  53476. };
  53477. }
  53478. };
  53479. /**
  53480. * Draws an note in the diagram with the attached line
  53481. * @param elem - The diagram to draw to.
  53482. * @param noteModel:{x: number, y: number, message: string, width: number} - startx: x axis start position, verticalPos: y axis position, messsage: the message to be shown, width: Set this with a custom width to override the default configured width.
  53483. */
  53484. var drawNote = function drawNote(elem, noteModel) {
  53485. bounds.bumpVerticalPos(conf.boxMargin);
  53486. noteModel.height = conf.boxMargin;
  53487. noteModel.starty = bounds.getVerticalPos();
  53488. var rect = _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].getNoteRect();
  53489. rect.x = noteModel.startx;
  53490. rect.y = noteModel.starty;
  53491. rect.width = noteModel.width || conf.width;
  53492. rect.class = 'note';
  53493. var g = elem.append('g');
  53494. var rectElem = _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawRect(g, rect);
  53495. var textObj = _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].getTextObj();
  53496. textObj.x = noteModel.startx;
  53497. textObj.y = noteModel.starty;
  53498. textObj.width = rect.width;
  53499. textObj.dy = '1em';
  53500. textObj.text = noteModel.message;
  53501. textObj.class = 'noteText';
  53502. textObj.fontFamily = conf.noteFontFamily;
  53503. textObj.fontSize = conf.noteFontSize;
  53504. textObj.fontWeight = conf.noteFontWeight;
  53505. textObj.anchor = conf.noteAlign;
  53506. textObj.textMargin = conf.noteMargin;
  53507. textObj.valign = conf.noteAlign;
  53508. textObj.wrap = true;
  53509. var textElem = Object(_svgDraw__WEBPACK_IMPORTED_MODULE_1__["drawText"])(g, textObj);
  53510. var textHeight = Math.round(textElem.map(function (te) {
  53511. return (te._groups || te)[0][0].getBBox().height;
  53512. }).reduce(function (acc, curr) {
  53513. return acc + curr;
  53514. }));
  53515. rectElem.attr('height', textHeight + 2 * conf.noteMargin);
  53516. noteModel.height += textHeight + 2 * conf.noteMargin;
  53517. bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);
  53518. noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;
  53519. noteModel.stopx = noteModel.startx + rect.width;
  53520. bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);
  53521. bounds.models.addNote(noteModel);
  53522. };
  53523. /**
  53524. * Draws a message
  53525. * @param g - the parent of the message element
  53526. * @param msgModel - the model containing fields describing a message
  53527. */
  53528. var drawMessage = function drawMessage(g, msgModel) {
  53529. bounds.bumpVerticalPos(10);
  53530. var startx = msgModel.startx,
  53531. stopx = msgModel.stopx,
  53532. starty = msgModel.starty,
  53533. message = msgModel.message,
  53534. type = msgModel.type,
  53535. sequenceIndex = msgModel.sequenceIndex,
  53536. wrap = msgModel.wrap;
  53537. var lines = _common_common__WEBPACK_IMPORTED_MODULE_4__["default"].splitBreaks(message).length;
  53538. var textDims = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].calculateTextDimensions(message, conf.messageFont());
  53539. var lineHeight = textDims.height / lines;
  53540. msgModel.height += lineHeight;
  53541. bounds.bumpVerticalPos(lineHeight);
  53542. var textObj = _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].getTextObj();
  53543. textObj.x = startx;
  53544. textObj.y = starty + 10;
  53545. textObj.width = stopx - startx;
  53546. textObj.class = 'messageText';
  53547. textObj.dy = '1em';
  53548. textObj.text = message;
  53549. textObj.fontFamily = conf.messageFontFamily;
  53550. textObj.fontSize = conf.messageFontSize;
  53551. textObj.fontWeight = conf.messageFontWeight;
  53552. textObj.anchor = conf.messageAlign;
  53553. textObj.valign = conf.messageAlign;
  53554. textObj.textMargin = conf.wrapPadding;
  53555. textObj.tspan = false;
  53556. textObj.wrap = wrap;
  53557. Object(_svgDraw__WEBPACK_IMPORTED_MODULE_1__["drawText"])(g, textObj);
  53558. var totalOffset = textDims.height - 10;
  53559. var textWidth = textDims.width;
  53560. var line, lineStarty;
  53561. if (startx === stopx) {
  53562. lineStarty = bounds.getVerticalPos() + totalOffset;
  53563. if (conf.rightAngles) {
  53564. line = g.append('path').attr('d', "M ".concat(startx, ",").concat(lineStarty, " H ").concat(startx + Math.max(conf.width / 2, textWidth / 2), " V ").concat(lineStarty + 25, " H ").concat(startx));
  53565. } else {
  53566. totalOffset += conf.boxMargin;
  53567. lineStarty = bounds.getVerticalPos() + totalOffset;
  53568. line = g.append('path').attr('d', 'M ' + startx + ',' + lineStarty + ' C ' + (startx + 60) + ',' + (lineStarty - 10) + ' ' + (startx + 60) + ',' + (lineStarty + 30) + ' ' + startx + ',' + (lineStarty + 20));
  53569. }
  53570. totalOffset += 30;
  53571. var dx = Math.max(textWidth / 2, conf.width / 2);
  53572. bounds.insert(startx - dx, bounds.getVerticalPos() - 10 + totalOffset, stopx + dx, bounds.getVerticalPos() + 30 + totalOffset);
  53573. } else {
  53574. totalOffset += conf.boxMargin;
  53575. lineStarty = bounds.getVerticalPos() + totalOffset;
  53576. line = g.append('line');
  53577. line.attr('x1', startx);
  53578. line.attr('y1', lineStarty);
  53579. line.attr('x2', stopx);
  53580. line.attr('y2', lineStarty);
  53581. bounds.insert(startx, lineStarty - 10, stopx, lineStarty);
  53582. } // Make an SVG Container
  53583. // Draw the line
  53584. if (type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED || type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED_CROSS || type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED_OPEN) {
  53585. line.style('stroke-dasharray', '3, 3');
  53586. line.attr('class', 'messageLine1');
  53587. } else {
  53588. line.attr('class', 'messageLine0');
  53589. }
  53590. var url = '';
  53591. if (conf.arrowMarkerAbsolute) {
  53592. url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;
  53593. url = url.replace(/\(/g, '\\(');
  53594. url = url.replace(/\)/g, '\\)');
  53595. }
  53596. line.attr('stroke-width', 2);
  53597. line.attr('stroke', 'none'); // handled by theme/css anyway
  53598. line.style('fill', 'none'); // remove any fill colour
  53599. if (type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.SOLID || type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED) {
  53600. line.attr('marker-end', 'url(' + url + '#arrowhead)');
  53601. }
  53602. if (type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.SOLID_CROSS || type === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.DOTTED_CROSS) {
  53603. line.attr('marker-end', 'url(' + url + '#crosshead)');
  53604. } // add node number
  53605. if (_sequenceDb__WEBPACK_IMPORTED_MODULE_5__["default"].showSequenceNumbers() || conf.showSequenceNumbers) {
  53606. line.attr('marker-start', 'url(' + url + '#sequencenumber)');
  53607. g.append('text').attr('x', startx).attr('y', lineStarty + 4).attr('font-family', 'sans-serif').attr('font-size', '12px').attr('text-anchor', 'middle').attr('textLength', '16px').attr('class', 'sequenceNumber').text(sequenceIndex);
  53608. }
  53609. bounds.bumpVerticalPos(totalOffset);
  53610. msgModel.height += totalOffset;
  53611. msgModel.stopy = msgModel.starty + msgModel.height;
  53612. bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);
  53613. };
  53614. var drawActors = function drawActors(diagram, actors, actorKeys, verticalPos) {
  53615. // Draw the actors
  53616. var prevWidth = 0;
  53617. var prevMargin = 0;
  53618. for (var i = 0; i < actorKeys.length; i++) {
  53619. var actor = actors[actorKeys[i]]; // Add some rendering data to the object
  53620. actor.width = actor.width || conf.width;
  53621. actor.height = Math.max(actor.height || conf.height, conf.height);
  53622. actor.margin = actor.margin || conf.actorMargin;
  53623. actor.x = prevWidth + prevMargin;
  53624. actor.y = verticalPos; // Draw the box with the attached line
  53625. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawActor(diagram, actor, conf);
  53626. bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);
  53627. prevWidth += actor.width;
  53628. prevMargin += actor.margin;
  53629. bounds.models.addActor(actor);
  53630. } // Add a margin between the actor boxes and the first arrow
  53631. bounds.bumpVerticalPos(conf.height);
  53632. };
  53633. var setConf = function setConf(cnf) {
  53634. Object(_utils__WEBPACK_IMPORTED_MODULE_6__["assignWithDepth"])(conf, cnf);
  53635. if (cnf.fontFamily) {
  53636. conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;
  53637. }
  53638. if (cnf.fontSize) {
  53639. conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;
  53640. }
  53641. if (cnf.fontWeight) {
  53642. conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;
  53643. }
  53644. };
  53645. var actorActivations = function actorActivations(actor) {
  53646. return bounds.activations.filter(function (activation) {
  53647. return activation.actor === actor;
  53648. });
  53649. };
  53650. var activationBounds = function activationBounds(actor, actors) {
  53651. // handle multiple stacked activations for same actor
  53652. var actorObj = actors[actor];
  53653. var activations = actorActivations(actor);
  53654. var left = activations.reduce(function (acc, activation) {
  53655. return Math.min(acc, activation.startx);
  53656. }, actorObj.x + actorObj.width / 2);
  53657. var right = activations.reduce(function (acc, activation) {
  53658. return Math.max(acc, activation.stopx);
  53659. }, actorObj.x + actorObj.width / 2);
  53660. return [left, right];
  53661. };
  53662. function adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {
  53663. bounds.bumpVerticalPos(preMargin);
  53664. var heightAdjust = postMargin;
  53665. if (msg.id && msg.message && loopWidths[msg.id]) {
  53666. var loopWidth = loopWidths[msg.id].width;
  53667. var textConf = conf.messageFont();
  53668. msg.message = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].wrapLabel("[".concat(msg.message, "]"), loopWidth - 2 * conf.wrapPadding, textConf);
  53669. msg.width = loopWidth;
  53670. msg.wrap = true; // const lines = common.splitBreaks(msg.message).length;
  53671. var textDims = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].calculateTextDimensions(msg.message, textConf);
  53672. var totalOffset = Math.max(textDims.height, conf.labelBoxHeight);
  53673. heightAdjust = postMargin + totalOffset;
  53674. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug("".concat(totalOffset, " - ").concat(msg.message));
  53675. }
  53676. addLoopFn(msg);
  53677. bounds.bumpVerticalPos(heightAdjust);
  53678. }
  53679. /**
  53680. * Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.
  53681. * @param text
  53682. * @param id
  53683. */
  53684. var draw = function draw(text, id) {
  53685. _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.clear();
  53686. _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.setWrap(conf.wrap);
  53687. _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].parse(text + '\n');
  53688. bounds.init();
  53689. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug("C:".concat(JSON.stringify(conf, null, 2)));
  53690. var diagram = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])("[id=\"".concat(id, "\"]")); // Fetch data from the parsing
  53691. var actors = _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.getActors();
  53692. var actorKeys = _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.getActorKeys();
  53693. var messages = _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.getMessages();
  53694. var title = _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.getTitle();
  53695. var maxMessageWidthPerActor = getMaxMessageWidthPerActor(actors, messages);
  53696. conf.height = calculateActorMargins(actors, maxMessageWidthPerActor);
  53697. drawActors(diagram, actors, actorKeys, 0);
  53698. var loopWidths = calculateLoopBounds(messages, actors, maxMessageWidthPerActor); // The arrow head definition is attached to the svg once
  53699. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].insertArrowHead(diagram);
  53700. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].insertArrowCrossHead(diagram);
  53701. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].insertSequenceNumber(diagram);
  53702. function activeEnd(msg, verticalPos) {
  53703. var activationData = bounds.endActivation(msg);
  53704. if (activationData.starty + 18 > verticalPos) {
  53705. activationData.starty = verticalPos - 6;
  53706. verticalPos += 12;
  53707. }
  53708. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawActivation(diagram, activationData, verticalPos, conf, actorActivations(msg.from.actor).length);
  53709. bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);
  53710. } // Draw the messages/signals
  53711. var sequenceIndex = 1;
  53712. messages.forEach(function (msg) {
  53713. var loopModel, noteModel, msgModel;
  53714. switch (msg.type) {
  53715. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.NOTE:
  53716. noteModel = msg.noteModel;
  53717. drawNote(diagram, noteModel);
  53718. break;
  53719. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ACTIVE_START:
  53720. bounds.newActivation(msg, diagram, actors);
  53721. break;
  53722. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ACTIVE_END:
  53723. activeEnd(msg, bounds.getVerticalPos());
  53724. break;
  53725. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.LOOP_START:
  53726. adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {
  53727. return bounds.newLoop(message);
  53728. });
  53729. break;
  53730. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.LOOP_END:
  53731. loopModel = bounds.endLoop();
  53732. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawLoop(diagram, loopModel, 'loop', conf);
  53733. bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
  53734. bounds.models.addLoop(loopModel);
  53735. break;
  53736. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.RECT_START:
  53737. adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, function (message) {
  53738. return bounds.newLoop(undefined, message.message);
  53739. });
  53740. break;
  53741. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.RECT_END:
  53742. loopModel = bounds.endLoop();
  53743. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawBackgroundRect(diagram, loopModel);
  53744. bounds.models.addLoop(loopModel);
  53745. bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
  53746. break;
  53747. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.OPT_START:
  53748. adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {
  53749. return bounds.newLoop(message);
  53750. });
  53751. break;
  53752. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.OPT_END:
  53753. loopModel = bounds.endLoop();
  53754. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawLoop(diagram, loopModel, 'opt', conf);
  53755. bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
  53756. bounds.models.addLoop(loopModel);
  53757. break;
  53758. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ALT_START:
  53759. adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {
  53760. return bounds.newLoop(message);
  53761. });
  53762. break;
  53763. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ALT_ELSE:
  53764. adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, function (message) {
  53765. return bounds.addSectionToLoop(message);
  53766. });
  53767. break;
  53768. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ALT_END:
  53769. loopModel = bounds.endLoop();
  53770. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawLoop(diagram, loopModel, 'alt', conf);
  53771. bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
  53772. bounds.models.addLoop(loopModel);
  53773. break;
  53774. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.PAR_START:
  53775. adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {
  53776. return bounds.newLoop(message);
  53777. });
  53778. break;
  53779. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.PAR_AND:
  53780. adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, function (message) {
  53781. return bounds.addSectionToLoop(message);
  53782. });
  53783. break;
  53784. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.PAR_END:
  53785. loopModel = bounds.endLoop();
  53786. _svgDraw__WEBPACK_IMPORTED_MODULE_1__["default"].drawLoop(diagram, loopModel, 'par', conf);
  53787. bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
  53788. bounds.models.addLoop(loopModel);
  53789. break;
  53790. default:
  53791. try {
  53792. // lastMsg = msg
  53793. msgModel = msg.msgModel;
  53794. msgModel.starty = bounds.getVerticalPos();
  53795. msgModel.sequenceIndex = sequenceIndex;
  53796. drawMessage(diagram, msgModel);
  53797. bounds.models.addMessage(msgModel);
  53798. } catch (e) {
  53799. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].error('error while drawing message', e);
  53800. }
  53801. } // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)
  53802. 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)) {
  53803. sequenceIndex++;
  53804. }
  53805. });
  53806. if (conf.mirrorActors) {
  53807. // Draw actors below diagram
  53808. bounds.bumpVerticalPos(conf.boxMargin * 2);
  53809. drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());
  53810. }
  53811. var _bounds$getBounds = bounds.getBounds(),
  53812. box = _bounds$getBounds.bounds; // Adjust line height of actor lines now that the height of the diagram is known
  53813. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('For line height fix Querying: #' + id + ' .actor-line');
  53814. var actorLines = Object(d3__WEBPACK_IMPORTED_MODULE_0__["selectAll"])('#' + id + ' .actor-line');
  53815. actorLines.attr('y2', box.stopy);
  53816. var height = box.stopy - box.starty + 2 * conf.diagramMarginY;
  53817. if (conf.mirrorActors) {
  53818. height = height - conf.boxMargin + conf.bottomMarginAdj;
  53819. }
  53820. var width = box.stopx - box.startx + 2 * conf.diagramMarginX;
  53821. if (title) {
  53822. diagram.append('text').text(title).attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr('y', -25);
  53823. }
  53824. if (conf.useMaxWidth) {
  53825. diagram.attr('height', '100%');
  53826. diagram.attr('width', '100%');
  53827. diagram.attr('style', 'max-width:' + width + 'px;'); // diagram.attr('style', 'max-width:100%;');
  53828. } else {
  53829. diagram.attr('height', height);
  53830. diagram.attr('width', width);
  53831. }
  53832. var extraVertForTitle = title ? 40 : 0;
  53833. diagram.attr('viewBox', box.startx - conf.diagramMarginX + ' -' + (conf.diagramMarginY + extraVertForTitle) + ' ' + width + ' ' + (height + extraVertForTitle));
  53834. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug("models:", bounds.models);
  53835. };
  53836. /**
  53837. * Retrieves the max message width of each actor, supports signals (messages, loops)
  53838. * and notes.
  53839. *
  53840. * It will enumerate each given message, and will determine its text width, in relation
  53841. * to the actor it originates from, and destined to.
  53842. *
  53843. * @param actors - The actors map
  53844. * @param messages - A list of message objects to iterate
  53845. */
  53846. var getMaxMessageWidthPerActor = function getMaxMessageWidthPerActor(actors, messages) {
  53847. var maxMessageWidthPerActor = {};
  53848. messages.forEach(function (msg) {
  53849. if (actors[msg.to] && actors[msg.from]) {
  53850. var actor = actors[msg.to]; // If this is the first actor, and the message is left of it, no need to calculate the margin
  53851. if (msg.placement === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.PLACEMENT.LEFTOF && !actor.prevActor) {
  53852. return;
  53853. } // If this is the last actor, and the message is right of it, no need to calculate the margin
  53854. if (msg.placement === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.PLACEMENT.RIGHTOF && !actor.nextActor) {
  53855. return;
  53856. }
  53857. var isNote = msg.placement !== undefined;
  53858. var isMessage = !isNote;
  53859. var textFont = isNote ? conf.noteFont() : conf.messageFont();
  53860. var wrappedMessage = msg.wrap ? _utils__WEBPACK_IMPORTED_MODULE_6__["default"].wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;
  53861. var messageDimensions = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].calculateTextDimensions(wrappedMessage, textFont);
  53862. var messageWidth = messageDimensions.width + 2 * conf.wrapPadding;
  53863. /*
  53864. * The following scenarios should be supported:
  53865. *
  53866. * - There's a message (non-note) between fromActor and toActor
  53867. * - If fromActor is on the right and toActor is on the left, we should
  53868. * define the toActor's margin
  53869. * - If fromActor is on the left and toActor is on the right, we should
  53870. * define the fromActor's margin
  53871. * - There's a note, in which case fromActor == toActor
  53872. * - If the note is to the left of the actor, we should define the previous actor
  53873. * margin
  53874. * - If the note is on the actor, we should define both the previous and next actor
  53875. * margins, each being the half of the note size
  53876. * - If the note is on the right of the actor, we should define the current actor
  53877. * margin
  53878. */
  53879. if (isMessage && msg.from === actor.nextActor) {
  53880. maxMessageWidthPerActor[msg.to] = Math.max(maxMessageWidthPerActor[msg.to] || 0, messageWidth);
  53881. } else if (isMessage && msg.from === actor.prevActor) {
  53882. maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth);
  53883. } else if (isMessage && msg.from === msg.to) {
  53884. maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth / 2);
  53885. maxMessageWidthPerActor[msg.to] = Math.max(maxMessageWidthPerActor[msg.to] || 0, messageWidth / 2);
  53886. } else if (msg.placement === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.PLACEMENT.RIGHTOF) {
  53887. maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth);
  53888. } else if (msg.placement === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.PLACEMENT.LEFTOF) {
  53889. maxMessageWidthPerActor[actor.prevActor] = Math.max(maxMessageWidthPerActor[actor.prevActor] || 0, messageWidth);
  53890. } else if (msg.placement === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.PLACEMENT.OVER) {
  53891. if (actor.prevActor) {
  53892. maxMessageWidthPerActor[actor.prevActor] = Math.max(maxMessageWidthPerActor[actor.prevActor] || 0, messageWidth / 2);
  53893. }
  53894. if (actor.nextActor) {
  53895. maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth / 2);
  53896. }
  53897. }
  53898. }
  53899. });
  53900. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('maxMessageWidthPerActor:', maxMessageWidthPerActor);
  53901. return maxMessageWidthPerActor;
  53902. };
  53903. /**
  53904. * This will calculate the optimal margin for each given actor, for a given
  53905. * actor->messageWidth map.
  53906. *
  53907. * An actor's margin is determined by the width of the actor, the width of the
  53908. * largest message that originates from it, and the configured conf.actorMargin.
  53909. *
  53910. * @param actors - The actors map to calculate margins for
  53911. * @param actorToMessageWidth - A map of actor key -> max message width it holds
  53912. */
  53913. var calculateActorMargins = function calculateActorMargins(actors, actorToMessageWidth) {
  53914. var maxHeight = 0;
  53915. Object.keys(actors).forEach(function (prop) {
  53916. var actor = actors[prop];
  53917. if (actor.wrap) {
  53918. actor.description = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].wrapLabel(actor.description, conf.width - 2 * conf.wrapPadding, conf.actorFont());
  53919. }
  53920. var actDims = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].calculateTextDimensions(actor.description, conf.actorFont());
  53921. actor.width = actor.wrap ? conf.width : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding);
  53922. actor.height = actor.wrap ? Math.max(actDims.height, conf.height) : conf.height;
  53923. maxHeight = Math.max(maxHeight, actor.height);
  53924. });
  53925. for (var actorKey in actorToMessageWidth) {
  53926. var actor = actors[actorKey];
  53927. if (!actor) {
  53928. continue;
  53929. }
  53930. var nextActor = actors[actor.nextActor]; // No need to space out an actor that doesn't have a next link
  53931. if (!nextActor) {
  53932. continue;
  53933. }
  53934. var messageWidth = actorToMessageWidth[actorKey];
  53935. var actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;
  53936. actor.margin = Math.max(actorWidth, conf.actorMargin);
  53937. }
  53938. return Math.max(maxHeight, conf.height);
  53939. };
  53940. var buildNoteModel = function buildNoteModel(msg, actors) {
  53941. var startx = actors[msg.from].x;
  53942. var stopx = actors[msg.to].x;
  53943. var shouldWrap = msg.wrap && msg.message;
  53944. var textDimensions = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].calculateTextDimensions(shouldWrap ? _utils__WEBPACK_IMPORTED_MODULE_6__["default"].wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message, conf.noteFont());
  53945. var noteModel = {
  53946. width: shouldWrap ? conf.width : Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin),
  53947. height: 0,
  53948. startx: actors[msg.from].x,
  53949. stopx: 0,
  53950. starty: 0,
  53951. stopy: 0,
  53952. message: msg.message
  53953. };
  53954. if (msg.placement === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.PLACEMENT.RIGHTOF) {
  53955. noteModel.width = shouldWrap ? Math.max(conf.width, textDimensions.width) : Math.max(actors[msg.from].width / 2 + actors[msg.to].width / 2, textDimensions.width + 2 * conf.noteMargin);
  53956. noteModel.startx = startx + (actors[msg.from].width + conf.actorMargin) / 2;
  53957. } else if (msg.placement === _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.PLACEMENT.LEFTOF) {
  53958. noteModel.width = shouldWrap ? Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin) : Math.max(actors[msg.from].width / 2 + actors[msg.to].width / 2, textDimensions.width + 2 * conf.noteMargin);
  53959. noteModel.startx = startx - noteModel.width + (actors[msg.from].width - conf.actorMargin) / 2;
  53960. } else if (msg.to === msg.from) {
  53961. textDimensions = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].calculateTextDimensions(shouldWrap ? _utils__WEBPACK_IMPORTED_MODULE_6__["default"].wrapLabel(msg.message, Math.max(conf.width, actors[msg.from].width), conf.noteFont()) : msg.message, conf.noteFont());
  53962. noteModel.width = shouldWrap ? Math.max(conf.width, actors[msg.from].width) : Math.max(actors[msg.from].width, conf.width, textDimensions.width + 2 * conf.noteMargin);
  53963. noteModel.startx = startx + (actors[msg.from].width - noteModel.width) / 2;
  53964. } else {
  53965. noteModel.width = Math.abs(startx + actors[msg.from].width / 2 - (stopx + actors[msg.to].width / 2)) + conf.actorMargin;
  53966. noteModel.startx = startx < stopx ? startx + actors[msg.from].width / 2 - conf.actorMargin / 2 : stopx + actors[msg.to].width / 2 - conf.actorMargin / 2;
  53967. }
  53968. if (shouldWrap) {
  53969. noteModel.message = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].wrapLabel(msg.message, noteModel.width - 2 * conf.wrapPadding, conf.noteFont());
  53970. }
  53971. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug("NM:[".concat(noteModel.startx, ",").concat(noteModel.stopx, ",").concat(noteModel.starty, ",").concat(noteModel.stopy, ":").concat(noteModel.width, ",").concat(noteModel.height, "=").concat(msg.message, "]"));
  53972. return noteModel;
  53973. };
  53974. var buildMessageModel = function buildMessageModel(msg, actors) {
  53975. var process = false;
  53976. 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)) {
  53977. process = true;
  53978. }
  53979. if (!process) {
  53980. return {};
  53981. }
  53982. var fromBounds = activationBounds(msg.from, actors);
  53983. var toBounds = activationBounds(msg.to, actors);
  53984. var fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;
  53985. var toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;
  53986. var allBounds = fromBounds.concat(toBounds);
  53987. var boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]);
  53988. var msgDims = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].calculateTextDimensions(msg.message, conf.messageFont());
  53989. if (msg.wrap && msg.message) {
  53990. msg.message = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].wrapLabel(msg.message, Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width), conf.messageFont());
  53991. }
  53992. return {
  53993. width: Math.max(msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding, boundedWidth + 2 * conf.wrapPadding, conf.width),
  53994. height: 0,
  53995. startx: fromBounds[fromIdx],
  53996. stopx: toBounds[toIdx],
  53997. starty: 0,
  53998. stopy: 0,
  53999. message: msg.message,
  54000. type: msg.type,
  54001. wrap: msg.wrap,
  54002. fromBounds: Math.min.apply(null, allBounds),
  54003. toBounds: Math.max.apply(null, allBounds)
  54004. };
  54005. };
  54006. var calculateLoopBounds = function calculateLoopBounds(messages, actors) {
  54007. var loops = {};
  54008. var stack = [];
  54009. var current, noteModel, msgModel;
  54010. messages.forEach(function (msg) {
  54011. msg.id = _utils__WEBPACK_IMPORTED_MODULE_6__["default"].random({
  54012. length: 10
  54013. });
  54014. switch (msg.type) {
  54015. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.LOOP_START:
  54016. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ALT_START:
  54017. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.OPT_START:
  54018. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.PAR_START:
  54019. stack.push({
  54020. id: msg.id,
  54021. msg: msg.message,
  54022. from: Number.MAX_SAFE_INTEGER,
  54023. to: Number.MIN_SAFE_INTEGER,
  54024. width: 0
  54025. });
  54026. break;
  54027. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ALT_ELSE:
  54028. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.PAR_AND:
  54029. if (msg.message) {
  54030. current = stack.pop();
  54031. loops[current.id] = current;
  54032. loops[msg.id] = current;
  54033. stack.push(current);
  54034. }
  54035. break;
  54036. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.LOOP_END:
  54037. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ALT_END:
  54038. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.OPT_END:
  54039. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.PAR_END:
  54040. current = stack.pop();
  54041. loops[current.id] = current;
  54042. break;
  54043. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ACTIVE_START:
  54044. {
  54045. var actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];
  54046. var stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;
  54047. var x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
  54048. var toAdd = {
  54049. startx: x,
  54050. stopx: x + conf.activationWidth,
  54051. actor: msg.from.actor,
  54052. enabled: true
  54053. };
  54054. bounds.activations.push(toAdd);
  54055. }
  54056. break;
  54057. case _parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_3__["parser"].yy.LINETYPE.ACTIVE_END:
  54058. {
  54059. var lastActorActivationIdx = bounds.activations.map(function (a) {
  54060. return a.actor;
  54061. }).lastIndexOf(msg.from.actor);
  54062. delete bounds.activations.splice(lastActorActivationIdx, 1)[0];
  54063. }
  54064. break;
  54065. }
  54066. var isNote = msg.placement !== undefined;
  54067. if (isNote) {
  54068. noteModel = buildNoteModel(msg, actors);
  54069. msg.noteModel = noteModel;
  54070. stack.forEach(function (stk) {
  54071. current = stk;
  54072. current.from = Math.min(current.from, noteModel.startx);
  54073. current.to = Math.max(current.to, noteModel.startx + noteModel.width);
  54074. current.width = Math.max(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;
  54075. });
  54076. } else {
  54077. msgModel = buildMessageModel(msg, actors);
  54078. msg.msgModel = msgModel;
  54079. if (msgModel.startx && msgModel.stopx && stack.length > 0) {
  54080. stack.forEach(function (stk) {
  54081. current = stk;
  54082. if (msgModel.startx === msgModel.stopx) {
  54083. var from = actors[msg.from];
  54084. var to = actors[msg.to];
  54085. current.from = Math.min(from.x - msgModel.width / 2, from.x - from.width / 2, current.from);
  54086. current.to = Math.max(to.x + msgModel.width / 2, to.x + from.width / 2, current.to);
  54087. current.width = Math.max(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;
  54088. } else {
  54089. current.from = Math.min(msgModel.startx, current.from);
  54090. current.to = Math.max(msgModel.stopx, current.to);
  54091. current.width = Math.max(current.width, msgModel.width) - conf.labelBoxWidth;
  54092. }
  54093. });
  54094. }
  54095. }
  54096. });
  54097. bounds.activations = [];
  54098. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Loop type widths:', loops);
  54099. return loops;
  54100. };
  54101. /* harmony default export */ __webpack_exports__["default"] = ({
  54102. bounds: bounds,
  54103. drawActors: drawActors,
  54104. setConf: setConf,
  54105. draw: draw
  54106. });
  54107. /***/ }),
  54108. /***/ "./src/diagrams/sequence/styles.js":
  54109. /*!*****************************************!*\
  54110. !*** ./src/diagrams/sequence/styles.js ***!
  54111. \*****************************************/
  54112. /*! exports provided: default */
  54113. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54114. "use strict";
  54115. __webpack_require__.r(__webpack_exports__);
  54116. var getStyles = function getStyles(options) {
  54117. return ".actor {\n stroke: ".concat(options.actorBorder, ";\n fill: ").concat(options.actorBkg, ";\n }\n\n text.actor > tspan {\n fill: ").concat(options.actorTextColor, ";\n stroke: none;\n }\n\n .actor-line {\n stroke: ").concat(options.actorLineColor, ";\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ").concat(options.signalColor, ";\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ").concat(options.signalColor, ";\n }\n\n #arrowhead path {\n fill: ").concat(options.signalColor, ";\n stroke: ").concat(options.signalColor, ";\n }\n\n .sequenceNumber {\n fill: ").concat(options.sequenceNumberColor, ";\n }\n\n #sequencenumber {\n fill: ").concat(options.signalColor, ";\n }\n\n #crosshead path {\n fill: ").concat(options.signalColor, ";\n stroke: ").concat(options.signalColor, ";\n }\n\n .messageText {\n fill: ").concat(options.signalTextColor, ";\n stroke: ").concat(options.signalTextColor, ";\n }\n\n .labelBox {\n stroke: ").concat(options.labelBoxBorderColor, ";\n fill: ").concat(options.labelBoxBkgColor, ";\n }\n\n .labelText, .labelText > tspan {\n fill: ").concat(options.labelTextColor, ";\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ").concat(options.loopTextColor, ";\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ").concat(options.labelBoxBorderColor, ";\n fill: ").concat(options.labelBoxBorderColor, ";\n }\n\n .note {\n //stroke: #decc93;\n stroke: ").concat(options.noteBorderColor, ";\n fill: ").concat(options.noteBkgColor, ";\n }\n\n .noteText, .noteText > tspan {\n fill: ").concat(options.noteTextColor, ";\n stroke: none;\n }\n\n .activation0 {\n fill: ").concat(options.activationBkgColor, ";\n stroke: ").concat(options.activationBorderColor, ";\n }\n\n .activation1 {\n fill: ").concat(options.activationBkgColor, ";\n stroke: ").concat(options.activationBorderColor, ";\n }\n\n .activation2 {\n fill: ").concat(options.activationBkgColor, ";\n stroke: ").concat(options.activationBorderColor, ";\n }\n");
  54118. };
  54119. /* harmony default export */ __webpack_exports__["default"] = (getStyles);
  54120. /***/ }),
  54121. /***/ "./src/diagrams/sequence/svgDraw.js":
  54122. /*!******************************************!*\
  54123. !*** ./src/diagrams/sequence/svgDraw.js ***!
  54124. \******************************************/
  54125. /*! exports provided: drawRect, drawText, drawLabel, drawActor, anchorElement, drawActivation, drawLoop, drawBackgroundRect, insertArrowHead, insertSequenceNumber, insertArrowCrossHead, getTextObj, getNoteRect, default */
  54126. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54127. "use strict";
  54128. __webpack_require__.r(__webpack_exports__);
  54129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawRect", function() { return drawRect; });
  54130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawText", function() { return drawText; });
  54131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawLabel", function() { return drawLabel; });
  54132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawActor", function() { return drawActor; });
  54133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "anchorElement", function() { return anchorElement; });
  54134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawActivation", function() { return drawActivation; });
  54135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawLoop", function() { return drawLoop; });
  54136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawBackgroundRect", function() { return drawBackgroundRect; });
  54137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertArrowHead", function() { return insertArrowHead; });
  54138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertSequenceNumber", function() { return insertSequenceNumber; });
  54139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertArrowCrossHead", function() { return insertArrowCrossHead; });
  54140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTextObj", function() { return getTextObj; });
  54141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNoteRect", function() { return getNoteRect; });
  54142. /* harmony import */ var _common_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/common */ "./src/diagrams/common/common.js");
  54143. var drawRect = function drawRect(elem, rectData) {
  54144. var rectElem = elem.append('rect');
  54145. rectElem.attr('x', rectData.x);
  54146. rectElem.attr('y', rectData.y);
  54147. rectElem.attr('fill', rectData.fill);
  54148. rectElem.attr('stroke', rectData.stroke);
  54149. rectElem.attr('width', rectData.width);
  54150. rectElem.attr('height', rectData.height);
  54151. rectElem.attr('rx', rectData.rx);
  54152. rectElem.attr('ry', rectData.ry);
  54153. if (typeof rectData.class !== 'undefined') {
  54154. rectElem.attr('class', rectData.class);
  54155. }
  54156. return rectElem;
  54157. };
  54158. var drawText = function drawText(elem, textData) {
  54159. var prevTextHeight = 0,
  54160. textHeight = 0;
  54161. var lines = textData.wrap ? textData.text.split(_common_common__WEBPACK_IMPORTED_MODULE_0__["default"].lineBreakRegex) : [textData.text.replace(_common_common__WEBPACK_IMPORTED_MODULE_0__["default"].lineBreakRegex, ' ')];
  54162. var textElems = [];
  54163. var dy = 0;
  54164. var yfunc = function yfunc() {
  54165. return textData.y;
  54166. };
  54167. if (typeof textData.valign !== 'undefined' && typeof textData.textMargin !== 'undefined' && textData.textMargin > 0) {
  54168. switch (textData.valign) {
  54169. case 'top':
  54170. case 'start':
  54171. yfunc = function yfunc() {
  54172. return Math.round(textData.y + textData.textMargin);
  54173. };
  54174. break;
  54175. case 'middle':
  54176. case 'center':
  54177. yfunc = function yfunc() {
  54178. return Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2);
  54179. };
  54180. break;
  54181. case 'bottom':
  54182. case 'end':
  54183. yfunc = function yfunc() {
  54184. return Math.round(textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin);
  54185. };
  54186. break;
  54187. }
  54188. }
  54189. if (typeof textData.anchor !== 'undefined' && typeof textData.textMargin !== 'undefined' && typeof textData.width !== 'undefined') {
  54190. switch (textData.anchor) {
  54191. case 'left':
  54192. case 'start':
  54193. textData.x = Math.round(textData.x + textData.textMargin);
  54194. textData.anchor = 'start';
  54195. textData.dominantBaseline = 'text-after-edge';
  54196. textData.alignmentBaseline = 'middle';
  54197. break;
  54198. case 'middle':
  54199. case 'center':
  54200. textData.x = Math.round(textData.x + textData.width / 2);
  54201. textData.anchor = 'middle';
  54202. textData.dominantBaseline = 'middle';
  54203. textData.alignmentBaseline = 'middle';
  54204. break;
  54205. case 'right':
  54206. case 'end':
  54207. textData.x = Math.round(textData.x + textData.width - textData.textMargin);
  54208. textData.anchor = 'end';
  54209. textData.dominantBaseline = 'text-before-edge';
  54210. textData.alignmentBaseline = 'middle';
  54211. break;
  54212. }
  54213. }
  54214. for (var i = 0; i < lines.length; i++) {
  54215. var line = lines[i];
  54216. if (typeof textData.textMargin !== 'undefined' && textData.textMargin === 0 && typeof textData.fontSize !== 'undefined') {
  54217. dy = i * textData.fontSize;
  54218. }
  54219. var textElem = elem.append('text');
  54220. textElem.attr('x', textData.x);
  54221. textElem.attr('y', yfunc());
  54222. if (typeof textData.anchor !== 'undefined') {
  54223. textElem.attr('text-anchor', textData.anchor).attr('dominant-baseline', textData.dominantBaseline).attr('alignment-baseline', textData.alignmentBaseline);
  54224. }
  54225. if (typeof textData.fontFamily !== 'undefined') {
  54226. textElem.style('font-family', textData.fontFamily);
  54227. }
  54228. if (typeof textData.fontSize !== 'undefined') {
  54229. textElem.style('font-size', textData.fontSize);
  54230. }
  54231. if (typeof textData.fontWeight !== 'undefined') {
  54232. textElem.style('font-weight', textData.fontWeight);
  54233. }
  54234. if (typeof textData.fill !== 'undefined') {
  54235. textElem.attr('fill', textData.fill);
  54236. }
  54237. if (typeof textData.class !== 'undefined') {
  54238. textElem.attr('class', textData.class);
  54239. }
  54240. if (typeof textData.dy !== 'undefined') {
  54241. textElem.attr('dy', textData.dy);
  54242. } else if (dy !== 0) {
  54243. textElem.attr('dy', dy);
  54244. }
  54245. if (textData.tspan) {
  54246. var span = textElem.append('tspan');
  54247. span.attr('x', textData.x);
  54248. if (typeof textData.fill !== 'undefined') {
  54249. span.attr('fill', textData.fill);
  54250. }
  54251. span.text(line);
  54252. } else {
  54253. textElem.text(line);
  54254. }
  54255. if (typeof textData.valign !== 'undefined' && typeof textData.textMargin !== 'undefined' && textData.textMargin > 0) {
  54256. textHeight += (textElem._groups || textElem)[0][0].getBBox().height;
  54257. prevTextHeight = textHeight;
  54258. }
  54259. textElems.push(textElem);
  54260. }
  54261. return textElems;
  54262. };
  54263. var drawLabel = function drawLabel(elem, txtObject) {
  54264. function genPoints(x, y, width, height, cut) {
  54265. return x + ',' + y + ' ' + (x + width) + ',' + y + ' ' + (x + width) + ',' + (y + height - cut) + ' ' + (x + width - cut * 1.2) + ',' + (y + height) + ' ' + x + ',' + (y + height);
  54266. }
  54267. var polygon = elem.append('polygon');
  54268. polygon.attr('points', genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));
  54269. polygon.attr('class', 'labelBox');
  54270. txtObject.y = txtObject.y + txtObject.height / 2;
  54271. drawText(elem, txtObject);
  54272. return polygon;
  54273. };
  54274. var actorCnt = -1;
  54275. /**
  54276. * Draws an actor in the diagram with the attached line
  54277. * @param elem - The diagram we'll draw to.
  54278. * @param actor - The actor to draw.
  54279. * @param conf - drawText implementation discriminator object
  54280. */
  54281. var drawActor = function drawActor(elem, actor, conf) {
  54282. var center = actor.x + actor.width / 2;
  54283. var g = elem.append('g');
  54284. if (actor.y === 0) {
  54285. actorCnt++;
  54286. 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');
  54287. }
  54288. var rect = getNoteRect();
  54289. rect.x = actor.x;
  54290. rect.y = actor.y;
  54291. rect.fill = '#eaeaea';
  54292. rect.width = actor.width;
  54293. rect.height = actor.height;
  54294. rect.class = 'actor';
  54295. rect.rx = 3;
  54296. rect.ry = 3;
  54297. drawRect(g, rect);
  54298. _drawTextCandidateFunc(conf)(actor.description, g, rect.x, rect.y, rect.width, rect.height, {
  54299. class: 'actor'
  54300. }, conf);
  54301. };
  54302. var anchorElement = function anchorElement(elem) {
  54303. return elem.append('g');
  54304. };
  54305. /**
  54306. * Draws an activation in the diagram
  54307. * @param elem - element to append activation rect.
  54308. * @param bounds - activation box bounds.
  54309. * @param verticalPos - precise y cooridnate of bottom activation box edge.
  54310. * @param conf - sequence diagram config object.
  54311. * @param actorActivations - number of activations on the actor.
  54312. */
  54313. var drawActivation = function drawActivation(elem, bounds, verticalPos, conf, actorActivations) {
  54314. var rect = getNoteRect();
  54315. var g = bounds.anchored;
  54316. rect.x = bounds.startx;
  54317. rect.y = bounds.starty;
  54318. rect.class = 'activation' + actorActivations % 3; // Will evaluate to 0, 1 or 2
  54319. rect.width = bounds.stopx - bounds.startx;
  54320. rect.height = verticalPos - bounds.starty;
  54321. drawRect(g, rect);
  54322. };
  54323. /**
  54324. * Draws a loop in the diagram
  54325. * @param elem - elemenet to append the loop to.
  54326. * @param loopModel - loopModel of the given loop.
  54327. * @param labelText - Text within the loop.
  54328. * @param conf - diagrom configuration
  54329. */
  54330. var drawLoop = function drawLoop(elem, loopModel, labelText, conf) {
  54331. var boxMargin = conf.boxMargin,
  54332. boxTextMargin = conf.boxTextMargin,
  54333. labelBoxHeight = conf.labelBoxHeight,
  54334. labelBoxWidth = conf.labelBoxWidth,
  54335. fontFamily = conf.messageFontFamily,
  54336. fontSize = conf.messageFontSize,
  54337. fontWeight = conf.messageFontWeight;
  54338. var g = elem.append('g');
  54339. var drawLoopLine = function drawLoopLine(startx, starty, stopx, stopy) {
  54340. return g.append('line').attr('x1', startx).attr('y1', starty).attr('x2', stopx).attr('y2', stopy).attr('class', 'loopLine');
  54341. };
  54342. drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);
  54343. drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);
  54344. drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);
  54345. drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);
  54346. if (typeof loopModel.sections !== 'undefined') {
  54347. loopModel.sections.forEach(function (item) {
  54348. drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style('stroke-dasharray', '3, 3');
  54349. });
  54350. }
  54351. var txt = getTextObj();
  54352. txt.text = labelText;
  54353. txt.x = loopModel.startx;
  54354. txt.y = loopModel.starty;
  54355. txt.fontFamily = fontFamily;
  54356. txt.fontSize = fontSize;
  54357. txt.fontWeight = fontWeight;
  54358. txt.anchor = 'middle';
  54359. txt.valign = 'middle';
  54360. txt.tspan = false;
  54361. txt.width = labelBoxWidth || 50;
  54362. txt.height = labelBoxHeight || 20;
  54363. txt.textMargin = boxTextMargin;
  54364. txt.class = 'labelText';
  54365. drawLabel(g, txt);
  54366. txt = getTextObj();
  54367. txt.text = loopModel.title;
  54368. txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;
  54369. txt.y = loopModel.starty + boxMargin + boxTextMargin;
  54370. txt.anchor = 'middle';
  54371. txt.valign = 'middle';
  54372. txt.textMargin = boxTextMargin;
  54373. txt.class = 'loopText';
  54374. txt.fontFamily = fontFamily;
  54375. txt.fontSize = fontSize;
  54376. txt.fontWeight = fontWeight;
  54377. txt.wrap = true;
  54378. var textElem = drawText(g, txt);
  54379. if (typeof loopModel.sectionTitles !== 'undefined') {
  54380. loopModel.sectionTitles.forEach(function (item, idx) {
  54381. if (item.message) {
  54382. txt.text = item.message;
  54383. txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;
  54384. txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;
  54385. txt.class = 'loopText';
  54386. txt.anchor = 'middle';
  54387. txt.valign = 'middle';
  54388. txt.tspan = false;
  54389. txt.fontFamily = fontFamily;
  54390. txt.fontSize = fontSize;
  54391. txt.fontWeight = fontWeight;
  54392. txt.wrap = loopModel.wrap;
  54393. textElem = drawText(g, txt);
  54394. var sectionHeight = Math.round(textElem.map(function (te) {
  54395. return (te._groups || te)[0][0].getBBox().height;
  54396. }).reduce(function (acc, curr) {
  54397. return acc + curr;
  54398. }));
  54399. loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);
  54400. }
  54401. });
  54402. }
  54403. loopModel.height = Math.round(loopModel.stopy - loopModel.starty);
  54404. return g;
  54405. };
  54406. /**
  54407. * Draws a background rectangle
  54408. * @param elem diagram (reference for bounds)
  54409. * @param bounds shape of the rectangle
  54410. */
  54411. var drawBackgroundRect = function drawBackgroundRect(elem, bounds) {
  54412. var rectElem = drawRect(elem, {
  54413. x: bounds.startx,
  54414. y: bounds.starty,
  54415. width: bounds.stopx - bounds.startx,
  54416. height: bounds.stopy - bounds.starty,
  54417. fill: bounds.fill,
  54418. class: 'rect'
  54419. });
  54420. rectElem.lower();
  54421. };
  54422. /**
  54423. * Setup arrow head and define the marker. The result is appended to the svg.
  54424. */
  54425. var insertArrowHead = function insertArrowHead(elem) {
  54426. 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
  54427. };
  54428. /**
  54429. * Setup node number. The result is appended to the svg.
  54430. */
  54431. var insertSequenceNumber = function insertSequenceNumber(elem) {
  54432. 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');
  54433. };
  54434. /**
  54435. * Setup arrow head and define the marker. The result is appended to the svg.
  54436. */
  54437. var insertArrowCrossHead = function insertArrowCrossHead(elem) {
  54438. var defs = elem.append('defs');
  54439. var marker = defs.append('marker').attr('id', 'crosshead').attr('markerWidth', 15).attr('markerHeight', 8).attr('orient', 'auto').attr('refX', 16).attr('refY', 4); // The arrow
  54440. 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
  54441. 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
  54442. };
  54443. var getTextObj = function getTextObj() {
  54444. return {
  54445. x: 0,
  54446. y: 0,
  54447. fill: undefined,
  54448. anchor: undefined,
  54449. style: '#666',
  54450. width: undefined,
  54451. height: undefined,
  54452. textMargin: 0,
  54453. rx: 0,
  54454. ry: 0,
  54455. tspan: true,
  54456. valign: undefined
  54457. };
  54458. };
  54459. var getNoteRect = function getNoteRect() {
  54460. return {
  54461. x: 0,
  54462. y: 0,
  54463. fill: '#EDF2AE',
  54464. stroke: '#666',
  54465. width: 100,
  54466. anchor: 'start',
  54467. height: 100,
  54468. rx: 0,
  54469. ry: 0
  54470. };
  54471. };
  54472. var _drawTextCandidateFunc = function () {
  54473. function byText(content, g, x, y, width, height, textAttrs) {
  54474. var text = g.append('text').attr('x', x + width / 2).attr('y', y + height / 2 + 5).style('text-anchor', 'middle').text(content);
  54475. _setTextAttrs(text, textAttrs);
  54476. }
  54477. function byTspan(content, g, x, y, width, height, textAttrs, conf) {
  54478. var actorFontSize = conf.actorFontSize,
  54479. actorFontFamily = conf.actorFontFamily,
  54480. actorFontWeight = conf.actorFontWeight;
  54481. var lines = content.split(_common_common__WEBPACK_IMPORTED_MODULE_0__["default"].lineBreakRegex);
  54482. for (var i = 0; i < lines.length; i++) {
  54483. var dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;
  54484. var text = g.append('text').attr('x', x + width / 2).attr('y', y).style('text-anchor', 'middle').style('font-size', actorFontSize).style('font-weight', actorFontWeight).style('font-family', actorFontFamily);
  54485. text.append('tspan').attr('x', x + width / 2).attr('dy', dy).text(lines[i]);
  54486. text.attr('y', y + height / 2.0).attr('dominant-baseline', 'central').attr('alignment-baseline', 'central');
  54487. _setTextAttrs(text, textAttrs);
  54488. }
  54489. }
  54490. function byFo(content, g, x, y, width, height, textAttrs, conf) {
  54491. var s = g.append('switch');
  54492. var f = s.append('foreignObject').attr('x', x).attr('y', y).attr('width', width).attr('height', height);
  54493. var text = f.append('div').style('display', 'table').style('height', '100%').style('width', '100%');
  54494. text.append('div').style('display', 'table-cell').style('text-align', 'center').style('vertical-align', 'middle').text(content);
  54495. byTspan(content, s, x, y, width, height, textAttrs, conf);
  54496. _setTextAttrs(text, textAttrs);
  54497. }
  54498. function _setTextAttrs(toText, fromTextAttrsDict) {
  54499. for (var key in fromTextAttrsDict) {
  54500. if (fromTextAttrsDict.hasOwnProperty(key)) {
  54501. // eslint-disable-line
  54502. toText.attr(key, fromTextAttrsDict[key]);
  54503. }
  54504. }
  54505. }
  54506. return function (conf) {
  54507. return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;
  54508. };
  54509. }();
  54510. /* harmony default export */ __webpack_exports__["default"] = ({
  54511. drawRect: drawRect,
  54512. drawText: drawText,
  54513. drawLabel: drawLabel,
  54514. drawActor: drawActor,
  54515. anchorElement: anchorElement,
  54516. drawActivation: drawActivation,
  54517. drawLoop: drawLoop,
  54518. drawBackgroundRect: drawBackgroundRect,
  54519. insertArrowHead: insertArrowHead,
  54520. insertSequenceNumber: insertSequenceNumber,
  54521. insertArrowCrossHead: insertArrowCrossHead,
  54522. getTextObj: getTextObj,
  54523. getNoteRect: getNoteRect
  54524. });
  54525. /***/ }),
  54526. /***/ "./src/diagrams/state/id-cache.js":
  54527. /*!****************************************!*\
  54528. !*** ./src/diagrams/state/id-cache.js ***!
  54529. \****************************************/
  54530. /*! exports provided: set, get, keys, size, default */
  54531. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54532. "use strict";
  54533. __webpack_require__.r(__webpack_exports__);
  54534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "set", function() { return set; });
  54535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
  54536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keys", function() { return keys; });
  54537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "size", function() { return size; });
  54538. var idCache = {};
  54539. var set = function set(key, val) {
  54540. idCache[key] = val;
  54541. };
  54542. var get = function get(k) {
  54543. return idCache[k];
  54544. };
  54545. var keys = function keys() {
  54546. return Object.keys(idCache);
  54547. };
  54548. var size = function size() {
  54549. return keys().length;
  54550. };
  54551. /* harmony default export */ __webpack_exports__["default"] = ({
  54552. get: get,
  54553. set: set,
  54554. keys: keys,
  54555. size: size
  54556. });
  54557. /***/ }),
  54558. /***/ "./src/diagrams/state/parser/stateDiagram.jison":
  54559. /*!******************************************************!*\
  54560. !*** ./src/diagrams/state/parser/stateDiagram.jison ***!
  54561. \******************************************************/
  54562. /*! no static exports found */
  54563. /***/ (function(module, exports, __webpack_require__) {
  54564. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  54565. /*
  54566. Returns a Parser object of the following structure:
  54567. Parser: {
  54568. yy: {}
  54569. }
  54570. Parser.prototype: {
  54571. yy: {},
  54572. trace: function(),
  54573. symbols_: {associative list: name ==> number},
  54574. terminals_: {associative list: number ==> name},
  54575. productions_: [...],
  54576. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  54577. table: [...],
  54578. defaultActions: {...},
  54579. parseError: function(str, hash),
  54580. parse: function(input),
  54581. lexer: {
  54582. EOF: 1,
  54583. parseError: function(str, hash),
  54584. setInput: function(input),
  54585. input: function(),
  54586. unput: function(str),
  54587. more: function(),
  54588. less: function(n),
  54589. pastInput: function(),
  54590. upcomingInput: function(),
  54591. showPosition: function(),
  54592. test_match: function(regex_match_array, rule_index),
  54593. next: function(),
  54594. lex: function(),
  54595. begin: function(condition),
  54596. popState: function(),
  54597. _currentRules: function(),
  54598. topState: function(),
  54599. pushState: function(condition),
  54600. options: {
  54601. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  54602. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  54603. 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)
  54604. },
  54605. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  54606. rules: [...],
  54607. conditions: {associative list: name ==> set},
  54608. }
  54609. }
  54610. token location info (@$, _$, etc.): {
  54611. first_line: n,
  54612. last_line: n,
  54613. first_column: n,
  54614. last_column: n,
  54615. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  54616. }
  54617. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  54618. text: (matched text)
  54619. token: (the produced terminal token, if any)
  54620. line: (yylineno)
  54621. }
  54622. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  54623. loc: (yylloc)
  54624. expected: (string describing the set of expected tokens)
  54625. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  54626. }
  54627. */
  54628. var parser = (function(){
  54629. 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,13],$V7=[1,14],$V8=[1,15],$V9=[1,16],$Va=[1,21],$Vb=[1,17],$Vc=[1,18],$Vd=[1,19],$Ve=[1,20],$Vf=[1,22],$Vg=[1,4,5,13,14,16,18,19,21,22,23,24,25,28],$Vh=[1,4,5,11,12,13,14,16,18,19,21,22,23,24,25,28],$Vi=[4,5,13,14,16,18,19,21,22,23,24,25,28];
  54630. var parser = {trace: function trace () { },
  54631. yy: {},
  54632. symbols_: {"error":2,"start":3,"SPACE":4,"NL":5,"SD":6,"document":7,"line":8,"statement":9,"idStatement":10,"DESCR":11,"-->":12,"HIDE_EMPTY":13,"scale":14,"WIDTH":15,"COMPOSIT_STATE":16,"STRUCT_START":17,"STRUCT_STOP":18,"STATE_DESCR":19,"AS":20,"ID":21,"FORK":22,"JOIN":23,"CONCURRENT":24,"note":25,"notePosition":26,"NOTE_TEXT":27,"EDGE_STATE":28,"left_of":29,"right_of":30,"$accept":0,"$end":1},
  54633. terminals_: {2:"error",4:"SPACE",5:"NL",6:"SD",11:"DESCR",12:"-->",13:"HIDE_EMPTY",14:"scale",15:"WIDTH",16:"COMPOSIT_STATE",17:"STRUCT_START",18:"STRUCT_STOP",19:"STATE_DESCR",20:"AS",21:"ID",22:"FORK",23:"JOIN",24:"CONCURRENT",25:"note",27:"NOTE_TEXT",28:"EDGE_STATE",29:"left_of",30:"right_of"},
  54634. productions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,4],[9,4],[10,1],[10,1],[26,1],[26,1]],
  54635. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  54636. /* this == yyval */
  54637. var $0 = $$.length - 1;
  54638. switch (yystate) {
  54639. case 3:
  54640. /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0];
  54641. break;
  54642. case 4:
  54643. this.$ = []
  54644. break;
  54645. case 5:
  54646. if($$[$0]!='nl'){
  54647. $$[$0-1].push($$[$0]);this.$ = $$[$0-1]
  54648. }
  54649. // console.warn('Got document',$$[$0-1], $$[$0]);
  54650. break;
  54651. case 6: case 7:
  54652. this.$ = $$[$0]
  54653. break;
  54654. case 8:
  54655. this.$='nl';
  54656. break;
  54657. case 9:
  54658. /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''};
  54659. break;
  54660. case 10:
  54661. /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};
  54662. break;
  54663. case 11:
  54664. /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/
  54665. this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};
  54666. break;
  54667. case 12:
  54668. /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/
  54669. this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};
  54670. break;
  54671. case 16:
  54672. /* console.warn('Adding document for state without id ', $$[$0-3]);*/
  54673. this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }
  54674. break;
  54675. case 17:
  54676. var id=$$[$0];
  54677. var description = $$[$0-2].trim();
  54678. if($$[$0].match(':')){
  54679. var parts = $$[$0].split(':');
  54680. id=parts[0];
  54681. description = [description, parts[1]];
  54682. }
  54683. this.$={stmt: 'state', id: id, type: 'default', description: description};
  54684. break;
  54685. case 18:
  54686. //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]);
  54687. this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }
  54688. break;
  54689. case 19:
  54690. this.$={ stmt: 'state', id: $$[$0], type: 'fork' }
  54691. break;
  54692. case 20:
  54693. this.$={ stmt: 'state', id: $$[$0], type: 'join' }
  54694. break;
  54695. case 21:
  54696. this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }
  54697. break;
  54698. case 22:
  54699. /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/
  54700. this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};
  54701. break;
  54702. case 24: case 25:
  54703. this.$=$$[$0];
  54704. break;
  54705. }
  54706. },
  54707. 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,13,14,16,19,21,22,23,24,25,28],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,5]),{9:23,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,7]),o($Vg,[2,8]),o($Vg,[2,9],{11:[1,24],12:[1,25]}),o($Vg,[2,13]),{15:[1,26]},o($Vg,[2,15],{17:[1,27]}),{20:[1,28]},o($Vg,[2,19]),o($Vg,[2,20]),o($Vg,[2,21]),{26:29,27:[1,30],29:[1,31],30:[1,32]},o($Vh,[2,24]),o($Vh,[2,25]),o($Vg,[2,6]),o($Vg,[2,10]),{10:33,21:$Va,28:$Vf},o($Vg,[2,14]),o($Vi,$V3,{7:34}),{21:[1,35]},{21:[1,36]},{20:[1,37]},{21:[2,26]},{21:[2,27]},o($Vg,[2,11],{11:[1,38]}),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,39],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,17],{17:[1,40]}),{27:[1,41]},{21:[1,42]},o($Vg,[2,12]),o($Vg,[2,16]),o($Vi,$V3,{7:43}),o($Vg,[2,22]),o($Vg,[2,23]),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,44],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,18])],
  54708. defaultActions: {5:[2,1],6:[2,2],31:[2,26],32:[2,27]},
  54709. parseError: function parseError (str, hash) {
  54710. if (hash.recoverable) {
  54711. this.trace(str);
  54712. } else {
  54713. var error = new Error(str);
  54714. error.hash = hash;
  54715. throw error;
  54716. }
  54717. },
  54718. parse: function parse(input) {
  54719. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  54720. var args = lstack.slice.call(arguments, 1);
  54721. var lexer = Object.create(this.lexer);
  54722. var sharedState = { yy: {} };
  54723. for (var k in this.yy) {
  54724. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  54725. sharedState.yy[k] = this.yy[k];
  54726. }
  54727. }
  54728. lexer.setInput(input, sharedState.yy);
  54729. sharedState.yy.lexer = lexer;
  54730. sharedState.yy.parser = this;
  54731. if (typeof lexer.yylloc == 'undefined') {
  54732. lexer.yylloc = {};
  54733. }
  54734. var yyloc = lexer.yylloc;
  54735. lstack.push(yyloc);
  54736. var ranges = lexer.options && lexer.options.ranges;
  54737. if (typeof sharedState.yy.parseError === 'function') {
  54738. this.parseError = sharedState.yy.parseError;
  54739. } else {
  54740. this.parseError = Object.getPrototypeOf(this).parseError;
  54741. }
  54742. function popStack(n) {
  54743. stack.length = stack.length - 2 * n;
  54744. vstack.length = vstack.length - n;
  54745. lstack.length = lstack.length - n;
  54746. }
  54747. function lex() {
  54748. var token;
  54749. token = tstack.pop() || lexer.lex() || EOF;
  54750. if (typeof token !== 'number') {
  54751. if (token instanceof Array) {
  54752. tstack = token;
  54753. token = tstack.pop();
  54754. }
  54755. token = self.symbols_[token] || token;
  54756. }
  54757. return token;
  54758. }
  54759. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  54760. while (true) {
  54761. state = stack[stack.length - 1];
  54762. if (this.defaultActions[state]) {
  54763. action = this.defaultActions[state];
  54764. } else {
  54765. if (symbol === null || typeof symbol == 'undefined') {
  54766. symbol = lex();
  54767. }
  54768. action = table[state] && table[state][symbol];
  54769. }
  54770. if (typeof action === 'undefined' || !action.length || !action[0]) {
  54771. var errStr = '';
  54772. expected = [];
  54773. for (p in table[state]) {
  54774. if (this.terminals_[p] && p > TERROR) {
  54775. expected.push('\'' + this.terminals_[p] + '\'');
  54776. }
  54777. }
  54778. if (lexer.showPosition) {
  54779. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  54780. } else {
  54781. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  54782. }
  54783. this.parseError(errStr, {
  54784. text: lexer.match,
  54785. token: this.terminals_[symbol] || symbol,
  54786. line: lexer.yylineno,
  54787. loc: yyloc,
  54788. expected: expected
  54789. });
  54790. }
  54791. if (action[0] instanceof Array && action.length > 1) {
  54792. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  54793. }
  54794. switch (action[0]) {
  54795. case 1:
  54796. stack.push(symbol);
  54797. vstack.push(lexer.yytext);
  54798. lstack.push(lexer.yylloc);
  54799. stack.push(action[1]);
  54800. symbol = null;
  54801. if (!preErrorSymbol) {
  54802. yyleng = lexer.yyleng;
  54803. yytext = lexer.yytext;
  54804. yylineno = lexer.yylineno;
  54805. yyloc = lexer.yylloc;
  54806. if (recovering > 0) {
  54807. recovering--;
  54808. }
  54809. } else {
  54810. symbol = preErrorSymbol;
  54811. preErrorSymbol = null;
  54812. }
  54813. break;
  54814. case 2:
  54815. len = this.productions_[action[1]][1];
  54816. yyval.$ = vstack[vstack.length - len];
  54817. yyval._$ = {
  54818. first_line: lstack[lstack.length - (len || 1)].first_line,
  54819. last_line: lstack[lstack.length - 1].last_line,
  54820. first_column: lstack[lstack.length - (len || 1)].first_column,
  54821. last_column: lstack[lstack.length - 1].last_column
  54822. };
  54823. if (ranges) {
  54824. yyval._$.range = [
  54825. lstack[lstack.length - (len || 1)].range[0],
  54826. lstack[lstack.length - 1].range[1]
  54827. ];
  54828. }
  54829. r = this.performAction.apply(yyval, [
  54830. yytext,
  54831. yyleng,
  54832. yylineno,
  54833. sharedState.yy,
  54834. action[1],
  54835. vstack,
  54836. lstack
  54837. ].concat(args));
  54838. if (typeof r !== 'undefined') {
  54839. return r;
  54840. }
  54841. if (len) {
  54842. stack = stack.slice(0, -1 * len * 2);
  54843. vstack = vstack.slice(0, -1 * len);
  54844. lstack = lstack.slice(0, -1 * len);
  54845. }
  54846. stack.push(this.productions_[action[1]][0]);
  54847. vstack.push(yyval.$);
  54848. lstack.push(yyval._$);
  54849. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  54850. stack.push(newState);
  54851. break;
  54852. case 3:
  54853. return true;
  54854. }
  54855. }
  54856. return true;
  54857. }};
  54858. /* generated by jison-lex 0.3.4 */
  54859. var lexer = (function(){
  54860. var lexer = ({
  54861. EOF:1,
  54862. parseError:function parseError(str, hash) {
  54863. if (this.yy.parser) {
  54864. this.yy.parser.parseError(str, hash);
  54865. } else {
  54866. throw new Error(str);
  54867. }
  54868. },
  54869. // resets the lexer, sets new input
  54870. setInput:function (input, yy) {
  54871. this.yy = yy || this.yy || {};
  54872. this._input = input;
  54873. this._more = this._backtrack = this.done = false;
  54874. this.yylineno = this.yyleng = 0;
  54875. this.yytext = this.matched = this.match = '';
  54876. this.conditionStack = ['INITIAL'];
  54877. this.yylloc = {
  54878. first_line: 1,
  54879. first_column: 0,
  54880. last_line: 1,
  54881. last_column: 0
  54882. };
  54883. if (this.options.ranges) {
  54884. this.yylloc.range = [0,0];
  54885. }
  54886. this.offset = 0;
  54887. return this;
  54888. },
  54889. // consumes and returns one char from the input
  54890. input:function () {
  54891. var ch = this._input[0];
  54892. this.yytext += ch;
  54893. this.yyleng++;
  54894. this.offset++;
  54895. this.match += ch;
  54896. this.matched += ch;
  54897. var lines = ch.match(/(?:\r\n?|\n).*/g);
  54898. if (lines) {
  54899. this.yylineno++;
  54900. this.yylloc.last_line++;
  54901. } else {
  54902. this.yylloc.last_column++;
  54903. }
  54904. if (this.options.ranges) {
  54905. this.yylloc.range[1]++;
  54906. }
  54907. this._input = this._input.slice(1);
  54908. return ch;
  54909. },
  54910. // unshifts one char (or a string) into the input
  54911. unput:function (ch) {
  54912. var len = ch.length;
  54913. var lines = ch.split(/(?:\r\n?|\n)/g);
  54914. this._input = ch + this._input;
  54915. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  54916. //this.yyleng -= len;
  54917. this.offset -= len;
  54918. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  54919. this.match = this.match.substr(0, this.match.length - 1);
  54920. this.matched = this.matched.substr(0, this.matched.length - 1);
  54921. if (lines.length - 1) {
  54922. this.yylineno -= lines.length - 1;
  54923. }
  54924. var r = this.yylloc.range;
  54925. this.yylloc = {
  54926. first_line: this.yylloc.first_line,
  54927. last_line: this.yylineno + 1,
  54928. first_column: this.yylloc.first_column,
  54929. last_column: lines ?
  54930. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  54931. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  54932. this.yylloc.first_column - len
  54933. };
  54934. if (this.options.ranges) {
  54935. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  54936. }
  54937. this.yyleng = this.yytext.length;
  54938. return this;
  54939. },
  54940. // When called from action, caches matched text and appends it on next action
  54941. more:function () {
  54942. this._more = true;
  54943. return this;
  54944. },
  54945. // 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.
  54946. reject:function () {
  54947. if (this.options.backtrack_lexer) {
  54948. this._backtrack = true;
  54949. } else {
  54950. 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(), {
  54951. text: "",
  54952. token: null,
  54953. line: this.yylineno
  54954. });
  54955. }
  54956. return this;
  54957. },
  54958. // retain first n characters of the match
  54959. less:function (n) {
  54960. this.unput(this.match.slice(n));
  54961. },
  54962. // displays already matched input, i.e. for error messages
  54963. pastInput:function () {
  54964. var past = this.matched.substr(0, this.matched.length - this.match.length);
  54965. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  54966. },
  54967. // displays upcoming input, i.e. for error messages
  54968. upcomingInput:function () {
  54969. var next = this.match;
  54970. if (next.length < 20) {
  54971. next += this._input.substr(0, 20-next.length);
  54972. }
  54973. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  54974. },
  54975. // displays the character position where the lexing error occurred, i.e. for error messages
  54976. showPosition:function () {
  54977. var pre = this.pastInput();
  54978. var c = new Array(pre.length + 1).join("-");
  54979. return pre + this.upcomingInput() + "\n" + c + "^";
  54980. },
  54981. // test the lexed token: return FALSE when not a match, otherwise return token
  54982. test_match:function(match, indexed_rule) {
  54983. var token,
  54984. lines,
  54985. backup;
  54986. if (this.options.backtrack_lexer) {
  54987. // save context
  54988. backup = {
  54989. yylineno: this.yylineno,
  54990. yylloc: {
  54991. first_line: this.yylloc.first_line,
  54992. last_line: this.last_line,
  54993. first_column: this.yylloc.first_column,
  54994. last_column: this.yylloc.last_column
  54995. },
  54996. yytext: this.yytext,
  54997. match: this.match,
  54998. matches: this.matches,
  54999. matched: this.matched,
  55000. yyleng: this.yyleng,
  55001. offset: this.offset,
  55002. _more: this._more,
  55003. _input: this._input,
  55004. yy: this.yy,
  55005. conditionStack: this.conditionStack.slice(0),
  55006. done: this.done
  55007. };
  55008. if (this.options.ranges) {
  55009. backup.yylloc.range = this.yylloc.range.slice(0);
  55010. }
  55011. }
  55012. lines = match[0].match(/(?:\r\n?|\n).*/g);
  55013. if (lines) {
  55014. this.yylineno += lines.length;
  55015. }
  55016. this.yylloc = {
  55017. first_line: this.yylloc.last_line,
  55018. last_line: this.yylineno + 1,
  55019. first_column: this.yylloc.last_column,
  55020. last_column: lines ?
  55021. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  55022. this.yylloc.last_column + match[0].length
  55023. };
  55024. this.yytext += match[0];
  55025. this.match += match[0];
  55026. this.matches = match;
  55027. this.yyleng = this.yytext.length;
  55028. if (this.options.ranges) {
  55029. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  55030. }
  55031. this._more = false;
  55032. this._backtrack = false;
  55033. this._input = this._input.slice(match[0].length);
  55034. this.matched += match[0];
  55035. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  55036. if (this.done && this._input) {
  55037. this.done = false;
  55038. }
  55039. if (token) {
  55040. return token;
  55041. } else if (this._backtrack) {
  55042. // recover context
  55043. for (var k in backup) {
  55044. this[k] = backup[k];
  55045. }
  55046. return false; // rule action called reject() implying the next rule should be tested instead.
  55047. }
  55048. return false;
  55049. },
  55050. // return next match in input
  55051. next:function () {
  55052. if (this.done) {
  55053. return this.EOF;
  55054. }
  55055. if (!this._input) {
  55056. this.done = true;
  55057. }
  55058. var token,
  55059. match,
  55060. tempMatch,
  55061. index;
  55062. if (!this._more) {
  55063. this.yytext = '';
  55064. this.match = '';
  55065. }
  55066. var rules = this._currentRules();
  55067. for (var i = 0; i < rules.length; i++) {
  55068. tempMatch = this._input.match(this.rules[rules[i]]);
  55069. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  55070. match = tempMatch;
  55071. index = i;
  55072. if (this.options.backtrack_lexer) {
  55073. token = this.test_match(tempMatch, rules[i]);
  55074. if (token !== false) {
  55075. return token;
  55076. } else if (this._backtrack) {
  55077. match = false;
  55078. continue; // rule action called reject() implying a rule MISmatch.
  55079. } else {
  55080. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  55081. return false;
  55082. }
  55083. } else if (!this.options.flex) {
  55084. break;
  55085. }
  55086. }
  55087. }
  55088. if (match) {
  55089. token = this.test_match(match, rules[index]);
  55090. if (token !== false) {
  55091. return token;
  55092. }
  55093. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  55094. return false;
  55095. }
  55096. if (this._input === "") {
  55097. return this.EOF;
  55098. } else {
  55099. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  55100. text: "",
  55101. token: null,
  55102. line: this.yylineno
  55103. });
  55104. }
  55105. },
  55106. // return next match that has a token
  55107. lex:function lex () {
  55108. var r = this.next();
  55109. if (r) {
  55110. return r;
  55111. } else {
  55112. return this.lex();
  55113. }
  55114. },
  55115. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  55116. begin:function begin (condition) {
  55117. this.conditionStack.push(condition);
  55118. },
  55119. // pop the previously active lexer condition state off the condition stack
  55120. popState:function popState () {
  55121. var n = this.conditionStack.length - 1;
  55122. if (n > 0) {
  55123. return this.conditionStack.pop();
  55124. } else {
  55125. return this.conditionStack[0];
  55126. }
  55127. },
  55128. // produce the lexer rule set which is active for the currently active lexer condition state
  55129. _currentRules:function _currentRules () {
  55130. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  55131. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  55132. } else {
  55133. return this.conditions["INITIAL"].rules;
  55134. }
  55135. },
  55136. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  55137. topState:function topState (n) {
  55138. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  55139. if (n >= 0) {
  55140. return this.conditionStack[n];
  55141. } else {
  55142. return "INITIAL";
  55143. }
  55144. },
  55145. // alias for begin(condition)
  55146. pushState:function pushState (condition) {
  55147. this.begin(condition);
  55148. },
  55149. // return the number of states currently on the stack
  55150. stateStackSize:function stateStackSize() {
  55151. return this.conditionStack.length;
  55152. },
  55153. options: {"case-insensitive":true},
  55154. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  55155. var YYSTATE=YY_START;
  55156. switch($avoiding_name_collisions) {
  55157. case 0:return 5;
  55158. break;
  55159. case 1:/* skip all whitespace */
  55160. break;
  55161. case 2:/* skip same-line whitespace */
  55162. break;
  55163. case 3:/* skip comments */
  55164. break;
  55165. case 4:/* skip comments */
  55166. break;
  55167. case 5: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 14;
  55168. break;
  55169. case 6:return 15;
  55170. break;
  55171. case 7:this.popState();
  55172. break;
  55173. case 8: this.pushState('STATE');
  55174. break;
  55175. case 9:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 22;
  55176. break;
  55177. case 10:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;
  55178. break;
  55179. case 11:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 22;
  55180. break;
  55181. case 12:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;
  55182. break;
  55183. case 13:this.begin("STATE_STRING");
  55184. break;
  55185. case 14:this.popState();this.pushState('STATE_ID');return "AS";
  55186. break;
  55187. case 15:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return "ID";
  55188. break;
  55189. case 16:this.popState();
  55190. break;
  55191. case 17: /*console.log('Long description:', yy_.yytext);*/return "STATE_DESCR";
  55192. break;
  55193. case 18:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 16;
  55194. break;
  55195. case 19:this.popState();
  55196. break;
  55197. case 20:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 17;
  55198. break;
  55199. case 21: /*console.log('Ending struct');*/ this.popState(); return 18;
  55200. break;
  55201. case 22:/* nothing */
  55202. break;
  55203. case 23: this.begin('NOTE'); return 25;
  55204. break;
  55205. case 24: this.popState();this.pushState('NOTE_ID');return 29;
  55206. break;
  55207. case 25: this.popState();this.pushState('NOTE_ID');return 30;
  55208. break;
  55209. case 26: this.popState();this.pushState('FLOATING_NOTE');
  55210. break;
  55211. case 27:this.popState();this.pushState('FLOATING_NOTE_ID');return "AS";
  55212. break;
  55213. case 28:/**/
  55214. break;
  55215. case 29: /*console.log('Floating note text: ', yy_.yytext);*/return "NOTE_TEXT";
  55216. break;
  55217. case 30:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return "ID";
  55218. break;
  55219. case 31: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 21;
  55220. break;
  55221. case 32: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 27;
  55222. break;
  55223. case 33: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 27;
  55224. break;
  55225. case 34: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6;
  55226. break;
  55227. case 35: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6;
  55228. break;
  55229. case 36: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 13;
  55230. break;
  55231. case 37: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 28;
  55232. break;
  55233. case 38: /*console.log('=>ID=',yy_.yytext);*/ return 21;
  55234. break;
  55235. case 39: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 11;
  55236. break;
  55237. case 40:return 12;
  55238. break;
  55239. case 41:return 24;
  55240. break;
  55241. case 42:return 5;
  55242. break;
  55243. case 43:return 'INVALID';
  55244. break;
  55245. }
  55246. },
  55247. rules: [/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:\s*[^:;]+end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],
  55248. conditions: {"LINE":{"rules":[2,3],"inclusive":false},"struct":{"rules":[2,3,8,21,22,23,37,38,39,40,41],"inclusive":false},"FLOATING_NOTE_ID":{"rules":[30],"inclusive":false},"FLOATING_NOTE":{"rules":[27,28,29],"inclusive":false},"NOTE_TEXT":{"rules":[32,33],"inclusive":false},"NOTE_ID":{"rules":[31],"inclusive":false},"NOTE":{"rules":[24,25,26],"inclusive":false},"SCALE":{"rules":[6,7],"inclusive":false},"ALIAS":{"rules":[],"inclusive":false},"STATE_ID":{"rules":[15],"inclusive":false},"STATE_STRING":{"rules":[16,17],"inclusive":false},"FORK_STATE":{"rules":[],"inclusive":false},"STATE":{"rules":[2,3,9,10,11,12,13,14,18,19,20],"inclusive":false},"ID":{"rules":[2,3],"inclusive":false},"INITIAL":{"rules":[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],"inclusive":true}}
  55249. });
  55250. return lexer;
  55251. })();
  55252. parser.lexer = lexer;
  55253. function Parser () {
  55254. this.yy = {};
  55255. }
  55256. Parser.prototype = parser;parser.Parser = Parser;
  55257. return new Parser;
  55258. })();
  55259. if (true) {
  55260. exports.parser = parser;
  55261. exports.Parser = parser.Parser;
  55262. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  55263. exports.main = function commonjsMain (args) {
  55264. if (!args[1]) {
  55265. console.log('Usage: '+args[0]+' FILE');
  55266. process.exit(1);
  55267. }
  55268. 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");
  55269. return exports.parser.parse(source);
  55270. };
  55271. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  55272. exports.main(process.argv.slice(1));
  55273. }
  55274. }
  55275. /* 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)))
  55276. /***/ }),
  55277. /***/ "./src/diagrams/state/shapes.js":
  55278. /*!**************************************!*\
  55279. !*** ./src/diagrams/state/shapes.js ***!
  55280. \**************************************/
  55281. /*! exports provided: drawStartState, drawDivider, drawSimpleState, drawDescrState, addTitleAndBox, drawText, drawNote, drawState, drawEdge */
  55282. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55283. "use strict";
  55284. __webpack_require__.r(__webpack_exports__);
  55285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawStartState", function() { return drawStartState; });
  55286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawDivider", function() { return drawDivider; });
  55287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawSimpleState", function() { return drawSimpleState; });
  55288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawDescrState", function() { return drawDescrState; });
  55289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addTitleAndBox", function() { return addTitleAndBox; });
  55290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawText", function() { return drawText; });
  55291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawNote", function() { return drawNote; });
  55292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawState", function() { return drawState; });
  55293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawEdge", function() { return drawEdge; });
  55294. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  55295. /* harmony import */ var _id_cache_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./id-cache.js */ "./src/diagrams/state/id-cache.js");
  55296. /* harmony import */ var _stateDb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stateDb */ "./src/diagrams/state/stateDb.js");
  55297. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  55298. /* harmony import */ var _common_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/common */ "./src/diagrams/common/common.js");
  55299. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  55300. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  55301. // let conf;
  55302. /**
  55303. * Draws a start state as a black circle
  55304. */
  55305. var drawStartState = function drawStartState(g) {
  55306. return g.append('circle').style('stroke', 'black').style('fill', 'black').attr('r', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.sizeUnit).attr('cx', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.sizeUnit).attr('cy', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.sizeUnit);
  55307. };
  55308. /**
  55309. * Draws a start state as a black circle
  55310. */
  55311. var drawDivider = function drawDivider(g) {
  55312. return g.append('line').style('stroke', 'grey').style('stroke-dasharray', '3').attr('x1', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight).attr('class', 'divider').attr('x2', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight * 2).attr('y1', 0).attr('y2', 0);
  55313. };
  55314. /**
  55315. * Draws a an end state as a black circle
  55316. */
  55317. var drawSimpleState = function drawSimpleState(g, stateDef) {
  55318. var state = g.append('text').attr('x', 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('y', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight + 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('font-size', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.fontSize).attr('class', 'state-title').text(stateDef.id);
  55319. var classBox = state.node().getBBox();
  55320. g.insert('rect', ':first-child').attr('x', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('y', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('width', classBox.width + 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('height', classBox.height + 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('rx', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.radius);
  55321. return state;
  55322. };
  55323. /**
  55324. * Draws a state with descriptions
  55325. * @param {*} g
  55326. * @param {*} stateDef
  55327. */
  55328. var drawDescrState = function drawDescrState(g, stateDef) {
  55329. var addTspan = function addTspan(textEl, txt, isFirst) {
  55330. var tSpan = textEl.append('tspan').attr('x', 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).text(txt);
  55331. if (!isFirst) {
  55332. tSpan.attr('dy', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight);
  55333. }
  55334. };
  55335. var title = g.append('text').attr('x', 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('y', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight + 1.3 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('font-size', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.fontSize).attr('class', 'state-title').text(stateDef.descriptions[0]);
  55336. var titleBox = title.node().getBBox();
  55337. var titleHeight = titleBox.height;
  55338. var description = g.append('text') // text label for the x axis
  55339. .attr('x', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('y', titleHeight + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding * 0.4 + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.dividerMargin + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight).attr('class', 'state-description');
  55340. var isFirst = true;
  55341. var isSecond = true;
  55342. stateDef.descriptions.forEach(function (descr) {
  55343. if (!isFirst) {
  55344. addTspan(description, descr, isSecond);
  55345. isSecond = false;
  55346. }
  55347. isFirst = false;
  55348. });
  55349. var descrLine = g.append('line') // text label for the x axis
  55350. .attr('x1', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('y1', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding + titleHeight + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.dividerMargin / 2).attr('y2', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding + titleHeight + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.dividerMargin / 2).attr('class', 'descr-divider');
  55351. var descrBox = description.node().getBBox();
  55352. var width = Math.max(descrBox.width, titleBox.width);
  55353. descrLine.attr('x2', width + 3 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding); // const classBox = title.node().getBBox();
  55354. g.insert('rect', ':first-child').attr('x', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('y', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('width', width + 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('height', descrBox.height + titleHeight + 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('rx', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.radius);
  55355. return g;
  55356. };
  55357. /**
  55358. * Adds the creates a box around the existing content and adds a
  55359. * panel for the id on top of the content.
  55360. */
  55361. /**
  55362. * Function that creates an title row and a frame around a substate for a composit state diagram.
  55363. * The function returns a new d3 svg object with updated width and height properties;
  55364. * @param {*} g The d3 svg object for the substate to framed
  55365. * @param {*} stateDef The info about the
  55366. */
  55367. var addTitleAndBox = function addTitleAndBox(g, stateDef, altBkg) {
  55368. var pad = Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding;
  55369. var dblPad = 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding;
  55370. var orgBox = g.node().getBBox();
  55371. var orgWidth = orgBox.width;
  55372. var orgX = orgBox.x;
  55373. var title = g.append('text').attr('x', 0).attr('y', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.titleShift).attr('font-size', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.fontSize).attr('class', 'state-title').text(stateDef.id);
  55374. var titleBox = title.node().getBBox();
  55375. var titleWidth = titleBox.width + dblPad;
  55376. var width = Math.max(titleWidth, orgWidth); // + dblPad;
  55377. if (width === orgWidth) {
  55378. width = width + dblPad;
  55379. }
  55380. var startX; // const lineY = 1 - getConfig().state.textHeight;
  55381. // const descrLine = g
  55382. // .append('line') // text label for the x axis
  55383. // .attr('x1', 0)
  55384. // .attr('y1', lineY)
  55385. // .attr('y2', lineY)
  55386. // .attr('class', 'descr-divider');
  55387. var graphBox = g.node().getBBox(); // console.warn(width / 2, titleWidth / 2, getConfig().state.padding, orgBox);
  55388. // descrLine.attr('x2', graphBox.width + getConfig().state.padding);
  55389. if (stateDef.doc) {// cnsole.warn(
  55390. // stateDef.id,
  55391. // 'orgX: ',
  55392. // orgX,
  55393. // 'width: ',
  55394. // width,
  55395. // 'titleWidth: ',
  55396. // titleWidth,
  55397. // 'orgWidth: ',
  55398. // orgWidth,
  55399. // 'width',
  55400. // width
  55401. // );
  55402. }
  55403. startX = orgX - pad;
  55404. if (titleWidth > orgWidth) {
  55405. startX = (orgWidth - width) / 2 + pad;
  55406. }
  55407. if (Math.abs(orgX - graphBox.x) < pad) {
  55408. if (titleWidth > orgWidth) {
  55409. startX = orgX - (titleWidth - orgWidth) / 2;
  55410. }
  55411. }
  55412. var lineY = 1 - Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight; // White color
  55413. g.insert('rect', ':first-child').attr('x', startX).attr('y', lineY).attr('class', altBkg ? 'alt-composit' : 'composit').attr('width', width).attr('height', graphBox.height + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.titleShift + 1).attr('rx', '0');
  55414. title.attr('x', startX + pad);
  55415. if (titleWidth <= orgWidth) title.attr('x', orgX + (width - dblPad) / 2 - titleWidth / 2 + pad); // Title background
  55416. g.insert('rect', ':first-child').attr('x', startX).attr('y', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.titleShift - Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight - Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('width', width) // Just needs to be higher then the descr line, will be clipped by the white color box
  55417. .attr('height', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight * 3).attr('rx', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.radius); // Full background
  55418. g.insert('rect', ':first-child').attr('x', startX).attr('y', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.titleShift - Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight - Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('width', width).attr('height', graphBox.height + 3 + 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.textHeight).attr('rx', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.radius);
  55419. return g;
  55420. };
  55421. var drawEndState = function drawEndState(g) {
  55422. g.append('circle').style('stroke', 'black').style('fill', 'white').attr('r', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.sizeUnit + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.miniPadding).attr('cx', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.sizeUnit + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.miniPadding).attr('cy', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.sizeUnit + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.miniPadding);
  55423. return g.append('circle').style('stroke', 'black').style('fill', 'black').attr('r', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.sizeUnit).attr('cx', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.sizeUnit + 2).attr('cy', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.sizeUnit + 2);
  55424. };
  55425. var drawForkJoinState = function drawForkJoinState(g, stateDef) {
  55426. var width = Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.forkWidth;
  55427. var height = Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.forkHeight;
  55428. if (stateDef.parentId) {
  55429. var tmp = width;
  55430. width = height;
  55431. height = tmp;
  55432. }
  55433. return g.append('rect').style('stroke', 'black').style('fill', 'black').attr('width', width).attr('height', height).attr('x', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('y', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding);
  55434. };
  55435. var drawText = function drawText(elem, textData) {
  55436. // Remove and ignore br:s
  55437. var nText = textData.text.replace(_common_common__WEBPACK_IMPORTED_MODULE_4__["default"].lineBreakRegex, ' ');
  55438. var textElem = elem.append('text');
  55439. textElem.attr('x', textData.x);
  55440. textElem.attr('y', textData.y);
  55441. textElem.style('text-anchor', textData.anchor);
  55442. textElem.attr('fill', textData.fill);
  55443. if (typeof textData.class !== 'undefined') {
  55444. textElem.attr('class', textData.class);
  55445. }
  55446. var span = textElem.append('tspan');
  55447. span.attr('x', textData.x + textData.textMargin * 2);
  55448. span.attr('fill', textData.fill);
  55449. span.text(nText);
  55450. return textElem;
  55451. };
  55452. var _drawLongText = function _drawLongText(_text, x, y, g) {
  55453. var textHeight = 0;
  55454. var textElem = g.append('text');
  55455. textElem.style('text-anchor', 'start');
  55456. textElem.attr('class', 'noteText');
  55457. var text = _text.replace(/\r\n/g, '<br/>');
  55458. text = text.replace(/\n/g, '<br/>');
  55459. var lines = text.split(_common_common__WEBPACK_IMPORTED_MODULE_4__["default"].lineBreakRegex);
  55460. var tHeight = 1.25 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.noteMargin;
  55461. var _iteratorNormalCompletion = true;
  55462. var _didIteratorError = false;
  55463. var _iteratorError = undefined;
  55464. try {
  55465. for (var _iterator = lines[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  55466. var _line = _step.value;
  55467. var txt = _line.trim();
  55468. if (txt.length > 0) {
  55469. var span = textElem.append('tspan');
  55470. span.text(txt);
  55471. if (tHeight === 0) {
  55472. var textBounds = span.node().getBBox();
  55473. tHeight += textBounds.height;
  55474. } // console.warn('textBounds', textBounds);
  55475. textHeight += tHeight;
  55476. span.attr('x', x + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.noteMargin);
  55477. span.attr('y', y + textHeight + 1.25 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.noteMargin);
  55478. }
  55479. }
  55480. } catch (err) {
  55481. _didIteratorError = true;
  55482. _iteratorError = err;
  55483. } finally {
  55484. try {
  55485. if (!_iteratorNormalCompletion && _iterator.return != null) {
  55486. _iterator.return();
  55487. }
  55488. } finally {
  55489. if (_didIteratorError) {
  55490. throw _iteratorError;
  55491. }
  55492. }
  55493. }
  55494. return {
  55495. textWidth: textElem.node().getBBox().width,
  55496. textHeight: textHeight
  55497. };
  55498. };
  55499. /**
  55500. * Draws a note to the diagram
  55501. * @param text - The text of the given note.
  55502. * @param g - The element the note is attached to.
  55503. */
  55504. var drawNote = function drawNote(text, g) {
  55505. g.attr('class', 'state-note');
  55506. var note = g.append('rect').attr('x', 0).attr('y', Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding);
  55507. var rectElem = g.append('g');
  55508. var _drawLongText2 = _drawLongText(text, 0, 0, rectElem),
  55509. textWidth = _drawLongText2.textWidth,
  55510. textHeight = _drawLongText2.textHeight;
  55511. note.attr('height', textHeight + 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.noteMargin);
  55512. note.attr('width', textWidth + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.noteMargin * 2);
  55513. return note;
  55514. };
  55515. /**
  55516. * Starting point for drawing a state. The function finds out the specifics
  55517. * about the state and renders with approprtiate function.
  55518. * @param {*} elem
  55519. * @param {*} stateDef
  55520. */
  55521. var drawState = function drawState(elem, stateDef) {
  55522. var id = stateDef.id;
  55523. var stateInfo = {
  55524. id: id,
  55525. label: stateDef.id,
  55526. width: 0,
  55527. height: 0
  55528. };
  55529. var g = elem.append('g').attr('id', id).attr('class', 'stateGroup');
  55530. if (stateDef.type === 'start') drawStartState(g);
  55531. if (stateDef.type === 'end') drawEndState(g);
  55532. if (stateDef.type === 'fork' || stateDef.type === 'join') drawForkJoinState(g, stateDef);
  55533. if (stateDef.type === 'note') drawNote(stateDef.note.text, g);
  55534. if (stateDef.type === 'divider') drawDivider(g);
  55535. if (stateDef.type === 'default' && stateDef.descriptions.length === 0) drawSimpleState(g, stateDef);
  55536. if (stateDef.type === 'default' && stateDef.descriptions.length > 0) drawDescrState(g, stateDef);
  55537. var stateBox = g.node().getBBox();
  55538. stateInfo.width = stateBox.width + 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding;
  55539. stateInfo.height = stateBox.height + 2 * Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding;
  55540. _id_cache_js__WEBPACK_IMPORTED_MODULE_1__["default"].set(id, stateInfo); // stateCnt++;
  55541. return stateInfo;
  55542. };
  55543. var edgeCount = 0;
  55544. var drawEdge = function drawEdge(elem, path, relation) {
  55545. var getRelationType = function getRelationType(type) {
  55546. switch (type) {
  55547. case _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].relationType.AGGREGATION:
  55548. return 'aggregation';
  55549. case _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].relationType.EXTENSION:
  55550. return 'extension';
  55551. case _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].relationType.COMPOSITION:
  55552. return 'composition';
  55553. case _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].relationType.DEPENDENCY:
  55554. return 'dependency';
  55555. }
  55556. };
  55557. path.points = path.points.filter(function (p) {
  55558. return !Number.isNaN(p.y);
  55559. }); // The data for our line
  55560. var lineData = path.points; // This is the accessor function we talked about above
  55561. var lineFunction = Object(d3__WEBPACK_IMPORTED_MODULE_0__["line"])().x(function (d) {
  55562. return d.x;
  55563. }).y(function (d) {
  55564. return d.y;
  55565. }).curve(d3__WEBPACK_IMPORTED_MODULE_0__["curveBasis"]);
  55566. var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', 'edge' + edgeCount).attr('class', 'transition');
  55567. var url = '';
  55568. if (Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.arrowMarkerAbsolute) {
  55569. url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;
  55570. url = url.replace(/\(/g, '\\(');
  55571. url = url.replace(/\)/g, '\\)');
  55572. }
  55573. svgPath.attr('marker-end', 'url(' + url + '#' + getRelationType(_stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].relationType.DEPENDENCY) + 'End' + ')');
  55574. if (typeof relation.title !== 'undefined') {
  55575. var label = elem.append('g').attr('class', 'stateLabel');
  55576. var _utils$calcLabelPosit = _utils__WEBPACK_IMPORTED_MODULE_3__["default"].calcLabelPosition(path.points),
  55577. x = _utils$calcLabelPosit.x,
  55578. y = _utils$calcLabelPosit.y;
  55579. var rows = _common_common__WEBPACK_IMPORTED_MODULE_4__["default"].getRows(relation.title); // console.warn(rows);
  55580. var titleHeight = 0;
  55581. var titleRows = [];
  55582. var maxWidth = 0;
  55583. var minX = 0;
  55584. for (var i = 0; i <= rows.length; i++) {
  55585. var title = label.append('text').attr('text-anchor', 'middle').text(rows[i]).attr('x', x).attr('y', y + titleHeight);
  55586. var boundstmp = title.node().getBBox();
  55587. maxWidth = Math.max(maxWidth, boundstmp.width);
  55588. minX = Math.min(minX, boundstmp.x);
  55589. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].info(boundstmp.x, x, y + titleHeight);
  55590. if (titleHeight === 0) {
  55591. var titleBox = title.node().getBBox();
  55592. titleHeight = titleBox.height;
  55593. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].info('Title height', titleHeight, y);
  55594. }
  55595. titleRows.push(title);
  55596. }
  55597. var boxHeight = titleHeight * rows.length;
  55598. if (rows.length > 1) {
  55599. var heightAdj = (rows.length - 1) * titleHeight * 0.5;
  55600. titleRows.forEach(function (title, i) {
  55601. return title.attr('y', y + i * titleHeight - heightAdj);
  55602. });
  55603. boxHeight = titleHeight * rows.length;
  55604. }
  55605. var bounds = label.node().getBBox();
  55606. label.insert('rect', ':first-child').attr('class', 'box').attr('x', x - maxWidth / 2 - Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding / 2).attr('y', y - boxHeight / 2 - Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding / 2 - 3.5).attr('width', maxWidth + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding).attr('height', boxHeight + Object(_config__WEBPACK_IMPORTED_MODULE_5__["getConfig"])().state.padding);
  55607. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].info(bounds); //label.attr('transform', '0 -' + (bounds.y / 2));
  55608. // Debug points
  55609. // path.points.forEach(point => {
  55610. // g.append('circle')
  55611. // .style('stroke', 'red')
  55612. // .style('fill', 'red')
  55613. // .attr('r', 1)
  55614. // .attr('cx', point.x)
  55615. // .attr('cy', point.y);
  55616. // });
  55617. // g.append('circle')
  55618. // .style('stroke', 'blue')
  55619. // .style('fill', 'blue')
  55620. // .attr('r', 1)
  55621. // .attr('cx', x)
  55622. // .attr('cy', y);
  55623. }
  55624. edgeCount++;
  55625. };
  55626. /***/ }),
  55627. /***/ "./src/diagrams/state/stateDb.js":
  55628. /*!***************************************!*\
  55629. !*** ./src/diagrams/state/stateDb.js ***!
  55630. \***************************************/
  55631. /*! exports provided: addState, clear, getState, getStates, logDocuments, getRelations, addRelation, cleanupLabel, lineType, relationType, default */
  55632. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55633. "use strict";
  55634. __webpack_require__.r(__webpack_exports__);
  55635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addState", function() { return addState; });
  55636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  55637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getState", function() { return getState; });
  55638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStates", function() { return getStates; });
  55639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logDocuments", function() { return logDocuments; });
  55640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRelations", function() { return getRelations; });
  55641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addRelation", function() { return addRelation; });
  55642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cleanupLabel", function() { return cleanupLabel; });
  55643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lineType", function() { return lineType; });
  55644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "relationType", function() { return relationType; });
  55645. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  55646. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
  55647. function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  55648. var clone = function clone(o) {
  55649. return JSON.parse(JSON.stringify(o));
  55650. };
  55651. var rootDoc = [];
  55652. var setRootDoc = function setRootDoc(o) {
  55653. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Setting root doc', o); // rootDoc = { id: 'root', doc: o };
  55654. rootDoc = o;
  55655. };
  55656. var getRootDoc = function getRootDoc() {
  55657. return rootDoc;
  55658. };
  55659. var docTranslator = function docTranslator(parent, node, first) {
  55660. if (node.stmt === 'relation') {
  55661. docTranslator(parent, node.state1, true);
  55662. docTranslator(parent, node.state2, false);
  55663. } else {
  55664. if (node.stmt === 'state') {
  55665. if (node.id === '[*]') {
  55666. node.id = first ? parent.id + '_start' : parent.id + '_end';
  55667. node.start = first;
  55668. }
  55669. }
  55670. if (node.doc) {
  55671. var doc = []; // Check for concurrency
  55672. var i = 0;
  55673. var currentDoc = [];
  55674. for (i = 0; i < node.doc.length; i++) {
  55675. if (node.doc[i].type === 'divider') {
  55676. // debugger;
  55677. var newNode = clone(node.doc[i]);
  55678. newNode.doc = clone(currentDoc);
  55679. doc.push(newNode);
  55680. currentDoc = [];
  55681. } else {
  55682. currentDoc.push(node.doc[i]);
  55683. }
  55684. } // If any divider was encountered
  55685. if (doc.length > 0 && currentDoc.length > 0) {
  55686. var _newNode = {
  55687. stmt: 'state',
  55688. id: Object(_utils__WEBPACK_IMPORTED_MODULE_1__["generateId"])(),
  55689. type: 'divider',
  55690. doc: clone(currentDoc)
  55691. };
  55692. doc.push(clone(_newNode));
  55693. node.doc = doc;
  55694. }
  55695. node.doc.forEach(function (docNode) {
  55696. return docTranslator(node, docNode, true);
  55697. });
  55698. }
  55699. }
  55700. };
  55701. var getRootDocV2 = function getRootDocV2() {
  55702. docTranslator({
  55703. id: 'root'
  55704. }, {
  55705. id: 'root',
  55706. doc: rootDoc
  55707. }, true);
  55708. return {
  55709. id: 'root',
  55710. doc: rootDoc
  55711. };
  55712. };
  55713. var extract = function extract(_doc) {
  55714. // const res = { states: [], relations: [] };
  55715. var doc;
  55716. if (_doc.doc) {
  55717. doc = _doc.doc;
  55718. } else {
  55719. doc = _doc;
  55720. } // let doc = root.doc;
  55721. // if (!doc) {
  55722. // doc = root;
  55723. // }
  55724. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info(doc);
  55725. clear();
  55726. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Extract', doc);
  55727. doc.forEach(function (item) {
  55728. if (item.stmt === 'state') {
  55729. addState(item.id, item.type, item.doc, item.description, item.note);
  55730. }
  55731. if (item.stmt === 'relation') {
  55732. addRelation(item.state1.id, item.state2.id, item.description);
  55733. }
  55734. });
  55735. };
  55736. var newDoc = function newDoc() {
  55737. return {
  55738. relations: [],
  55739. states: {},
  55740. documents: {}
  55741. };
  55742. };
  55743. var documents = {
  55744. root: newDoc()
  55745. };
  55746. var currentDocument = documents.root;
  55747. var startCnt = 0;
  55748. var endCnt = 0; // eslint-disable-line
  55749. // let stateCnt = 0;
  55750. /**
  55751. * Function called by parser when a node definition has been found.
  55752. * @param id
  55753. * @param text
  55754. * @param type
  55755. * @param style
  55756. */
  55757. var addState = function addState(id, type, doc, descr, note) {
  55758. if (typeof currentDocument.states[id] === 'undefined') {
  55759. currentDocument.states[id] = {
  55760. id: id,
  55761. descriptions: [],
  55762. type: type,
  55763. doc: doc,
  55764. note: note
  55765. };
  55766. } else {
  55767. if (!currentDocument.states[id].doc) {
  55768. currentDocument.states[id].doc = doc;
  55769. }
  55770. if (!currentDocument.states[id].type) {
  55771. currentDocument.states[id].type = type;
  55772. }
  55773. }
  55774. if (descr) {
  55775. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Adding state ', id, descr);
  55776. if (typeof descr === 'string') addDescription(id, descr.trim());
  55777. if (_typeof(descr) === 'object') {
  55778. descr.forEach(function (des) {
  55779. return addDescription(id, des.trim());
  55780. });
  55781. }
  55782. }
  55783. if (note) currentDocument.states[id].note = note;
  55784. };
  55785. var clear = function clear() {
  55786. documents = {
  55787. root: newDoc()
  55788. };
  55789. currentDocument = documents.root;
  55790. currentDocument = documents.root;
  55791. startCnt = 0;
  55792. endCnt = 0; // eslint-disable-line
  55793. classes = [];
  55794. };
  55795. var getState = function getState(id) {
  55796. return currentDocument.states[id];
  55797. };
  55798. var getStates = function getStates() {
  55799. return currentDocument.states;
  55800. };
  55801. var logDocuments = function logDocuments() {
  55802. _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Documents = ', documents);
  55803. };
  55804. var getRelations = function getRelations() {
  55805. return currentDocument.relations;
  55806. };
  55807. var addRelation = function addRelation(_id1, _id2, title) {
  55808. var id1 = _id1;
  55809. var id2 = _id2;
  55810. var type1 = 'default';
  55811. var type2 = 'default';
  55812. if (_id1 === '[*]') {
  55813. startCnt++;
  55814. id1 = 'start' + startCnt;
  55815. type1 = 'start';
  55816. }
  55817. if (_id2 === '[*]') {
  55818. endCnt++;
  55819. id2 = 'end' + startCnt;
  55820. type2 = 'end';
  55821. }
  55822. addState(id1, type1);
  55823. addState(id2, type2);
  55824. currentDocument.relations.push({
  55825. id1: id1,
  55826. id2: id2,
  55827. title: title
  55828. });
  55829. };
  55830. var addDescription = function addDescription(id, _descr) {
  55831. var theState = currentDocument.states[id];
  55832. var descr = _descr;
  55833. if (descr[0] === ':') {
  55834. descr = descr.substr(1).trim();
  55835. }
  55836. theState.descriptions.push(descr);
  55837. };
  55838. var cleanupLabel = function cleanupLabel(label) {
  55839. if (label.substring(0, 1) === ':') {
  55840. return label.substr(2).trim();
  55841. } else {
  55842. return label.trim();
  55843. }
  55844. };
  55845. var lineType = {
  55846. LINE: 0,
  55847. DOTTED_LINE: 1
  55848. };
  55849. var dividerCnt = 0;
  55850. var getDividerId = function getDividerId() {
  55851. dividerCnt++;
  55852. return 'divider-id-' + dividerCnt;
  55853. };
  55854. var classes = [];
  55855. var getClasses = function getClasses() {
  55856. return classes;
  55857. };
  55858. var getDirection = function getDirection() {
  55859. return 'TB';
  55860. };
  55861. var relationType = {
  55862. AGGREGATION: 0,
  55863. EXTENSION: 1,
  55864. COMPOSITION: 2,
  55865. DEPENDENCY: 3
  55866. };
  55867. var trimColon = function trimColon(str) {
  55868. return str && str[0] === ':' ? str.substr(1).trim() : str.trim();
  55869. };
  55870. /* harmony default export */ __webpack_exports__["default"] = ({
  55871. addState: addState,
  55872. clear: clear,
  55873. getState: getState,
  55874. getStates: getStates,
  55875. getRelations: getRelations,
  55876. getClasses: getClasses,
  55877. getDirection: getDirection,
  55878. addRelation: addRelation,
  55879. getDividerId: getDividerId,
  55880. // addDescription,
  55881. cleanupLabel: cleanupLabel,
  55882. lineType: lineType,
  55883. relationType: relationType,
  55884. logDocuments: logDocuments,
  55885. getRootDoc: getRootDoc,
  55886. setRootDoc: setRootDoc,
  55887. getRootDocV2: getRootDocV2,
  55888. extract: extract,
  55889. trimColon: trimColon
  55890. });
  55891. /***/ }),
  55892. /***/ "./src/diagrams/state/stateRenderer-v2.js":
  55893. /*!************************************************!*\
  55894. !*** ./src/diagrams/state/stateRenderer-v2.js ***!
  55895. \************************************************/
  55896. /*! exports provided: setConf, getClasses, draw, default */
  55897. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55898. "use strict";
  55899. __webpack_require__.r(__webpack_exports__);
  55900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  55901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClasses", function() { return getClasses; });
  55902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  55903. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
  55904. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_0__);
  55905. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  55906. /* harmony import */ var _stateDb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stateDb */ "./src/diagrams/state/stateDb.js");
  55907. /* harmony import */ var _parser_stateDiagram__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parser/stateDiagram */ "./src/diagrams/state/parser/stateDiagram.jison");
  55908. /* harmony import */ var _parser_stateDiagram__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_3__);
  55909. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  55910. /* harmony import */ var _dagre_wrapper_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dagre-wrapper/index.js */ "./src/dagre-wrapper/index.js");
  55911. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  55912. var conf = {};
  55913. var setConf = function setConf(cnf) {
  55914. var keys = Object.keys(cnf);
  55915. for (var i = 0; i < keys.length; i++) {
  55916. conf[keys[i]] = cnf[keys[i]];
  55917. }
  55918. };
  55919. var nodeDb = {};
  55920. /**
  55921. * Returns the all the styles from classDef statements in the graph definition.
  55922. * @returns {object} classDef styles
  55923. */
  55924. var getClasses = function getClasses(text) {
  55925. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].trace('Extracting classes');
  55926. _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].clear();
  55927. var parser = _parser_stateDiagram__WEBPACK_IMPORTED_MODULE_3___default.a.parser;
  55928. parser.yy = _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"]; // Parse the graph definition
  55929. parser.parse(text);
  55930. return _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].getClasses();
  55931. };
  55932. var setupNode = function setupNode(g, parent, node, altFlag) {
  55933. // Add the node
  55934. if (node.id !== 'root') {
  55935. var shape = 'rect';
  55936. if (node.start === true) {
  55937. shape = 'start';
  55938. }
  55939. if (node.start === false) {
  55940. shape = 'end';
  55941. }
  55942. if (node.type !== 'default') {
  55943. shape = node.type;
  55944. }
  55945. if (!nodeDb[node.id]) {
  55946. nodeDb[node.id] = {
  55947. id: node.id,
  55948. shape: shape,
  55949. description: node.id,
  55950. classes: 'statediagram-state'
  55951. };
  55952. } // Build of the array of description strings accordinging
  55953. if (node.description) {
  55954. if (Array.isArray(nodeDb[node.id].description)) {
  55955. // There already is an array of strings,add to it
  55956. nodeDb[node.id].shape = 'rectWithTitle';
  55957. nodeDb[node.id].description.push(node.description);
  55958. } else {
  55959. if (nodeDb[node.id].description.length > 0) {
  55960. // if there is a description already transformit to an array
  55961. nodeDb[node.id].shape = 'rectWithTitle';
  55962. if (nodeDb[node.id].description === node.id) {
  55963. // If the previous description was the is, remove it
  55964. nodeDb[node.id].description = [node.description];
  55965. } else {
  55966. nodeDb[node.id].description = [nodeDb[node.id].description, node.description];
  55967. }
  55968. } else {
  55969. nodeDb[node.id].shape = 'rect';
  55970. nodeDb[node.id].description = node.description;
  55971. }
  55972. }
  55973. } // Save data for description and group so that for instance a statement without description overwrites
  55974. // one with description
  55975. // group
  55976. if (!nodeDb[node.id].type && node.doc) {
  55977. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].info('Setting cluser for ', node.id);
  55978. nodeDb[node.id].type = 'group';
  55979. nodeDb[node.id].shape = node.type === 'divider' ? 'divider' : 'roundedWithTitle';
  55980. nodeDb[node.id].classes = nodeDb[node.id].classes + ' ' + (altFlag ? 'statediagram-cluster statediagram-cluster-alt' : 'statediagram-cluster');
  55981. }
  55982. var nodeData = {
  55983. labelStyle: '',
  55984. shape: nodeDb[node.id].shape,
  55985. labelText: nodeDb[node.id].description,
  55986. classes: nodeDb[node.id].classes,
  55987. //classStr,
  55988. style: '',
  55989. //styles.style,
  55990. id: node.id,
  55991. type: nodeDb[node.id].type,
  55992. padding: 15 //getConfig().flowchart.padding
  55993. };
  55994. if (node.note) {
  55995. // Todo: set random id
  55996. var noteData = {
  55997. labelStyle: '',
  55998. shape: 'note',
  55999. labelText: node.note.text,
  56000. classes: 'statediagram-note',
  56001. //classStr,
  56002. style: '',
  56003. //styles.style,
  56004. id: node.id + '----note',
  56005. type: nodeDb[node.id].type,
  56006. padding: 15 //getConfig().flowchart.padding
  56007. };
  56008. var groupData = {
  56009. labelStyle: '',
  56010. shape: 'noteGroup',
  56011. labelText: node.note.text,
  56012. classes: nodeDb[node.id].classes,
  56013. //classStr,
  56014. style: '',
  56015. //styles.style,
  56016. id: node.id + '----parent',
  56017. type: 'group',
  56018. padding: 0 //getConfig().flowchart.padding
  56019. };
  56020. g.setNode(node.id + '----parent', groupData);
  56021. g.setNode(noteData.id, noteData);
  56022. g.setNode(node.id, nodeData);
  56023. g.setParent(node.id, node.id + '----parent');
  56024. g.setParent(noteData.id, node.id + '----parent');
  56025. var from = node.id;
  56026. var to = noteData.id;
  56027. if (node.note.position === 'left of') {
  56028. from = noteData.id;
  56029. to = node.id;
  56030. }
  56031. g.setEdge(from, to, {
  56032. arrowhead: 'none',
  56033. arrowType: '',
  56034. style: 'fill:none',
  56035. labelStyle: '',
  56036. classes: 'transition note-edge',
  56037. arrowheadStyle: 'fill: #333',
  56038. labelpos: 'c',
  56039. labelType: 'text',
  56040. thickness: 'normal'
  56041. });
  56042. } else {
  56043. g.setNode(node.id, nodeData);
  56044. }
  56045. }
  56046. if (parent) {
  56047. if (parent.id !== 'root') {
  56048. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].info('Setting node ', node.id, ' to be child of its parent ', parent.id);
  56049. g.setParent(node.id, parent.id);
  56050. }
  56051. }
  56052. if (node.doc) {
  56053. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].info('Adding nodes children ');
  56054. setupDoc(g, node, node.doc, !altFlag);
  56055. }
  56056. };
  56057. var cnt = 0;
  56058. var setupDoc = function setupDoc(g, parent, doc, altFlag) {
  56059. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].trace('items', doc);
  56060. doc.forEach(function (item) {
  56061. if (item.stmt === 'state' || item.stmt === 'default') {
  56062. setupNode(g, parent, item, altFlag);
  56063. } else if (item.stmt === 'relation') {
  56064. setupNode(g, parent, item.state1, altFlag);
  56065. setupNode(g, parent, item.state2, altFlag);
  56066. var edgeData = {
  56067. id: 'edge' + cnt,
  56068. arrowhead: 'normal',
  56069. arrowTypeEnd: 'arrow_barb',
  56070. style: 'fill:none',
  56071. labelStyle: '',
  56072. label: item.description,
  56073. arrowheadStyle: 'fill: #333',
  56074. labelpos: 'c',
  56075. labelType: 'text',
  56076. thickness: 'normal',
  56077. classes: 'transition'
  56078. };
  56079. var startId = item.state1.id;
  56080. var endId = item.state2.id;
  56081. g.setEdge(startId, endId, edgeData, cnt);
  56082. cnt++;
  56083. }
  56084. });
  56085. };
  56086. /**
  56087. * Draws a flowchart in the tag with id: id based on the graph definition in text.
  56088. * @param text
  56089. * @param id
  56090. */
  56091. var draw = function draw(text, id) {
  56092. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].info('Drawing state diagram (v2)', id);
  56093. _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].clear();
  56094. nodeDb = {};
  56095. var parser = _parser_stateDiagram__WEBPACK_IMPORTED_MODULE_3___default.a.parser;
  56096. parser.yy = _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"]; // Parse the graph definition
  56097. try {
  56098. parser.parse(text);
  56099. } catch (err) {
  56100. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].debug('Parsing failed');
  56101. } // Fetch the default direction, use TD if none was found
  56102. var dir = _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].getDirection();
  56103. if (typeof dir === 'undefined') {
  56104. dir = 'LR';
  56105. }
  56106. var conf = Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().state;
  56107. var nodeSpacing = conf.nodeSpacing || 50;
  56108. var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph
  56109. var g = new graphlib__WEBPACK_IMPORTED_MODULE_0___default.a.Graph({
  56110. multigraph: true,
  56111. compound: true
  56112. }).setGraph({
  56113. rankdir: 'TB',
  56114. nodesep: nodeSpacing,
  56115. ranksep: rankSpacing,
  56116. marginx: 8,
  56117. marginy: 8
  56118. }).setDefaultEdgeLabel(function () {
  56119. return {};
  56120. });
  56121. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].info(_stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].getRootDocV2());
  56122. _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].extract(_stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].getRootDocV2());
  56123. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].info(_stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].getRootDocV2());
  56124. setupNode(g, undefined, _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].getRootDocV2(), true); // Set up an SVG group so that we can translate the final graph.
  56125. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])("[id=\"".concat(id, "\"]")); // Run the renderer. This is what draws the final graph.
  56126. var element = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#' + id + ' g');
  56127. Object(_dagre_wrapper_index_js__WEBPACK_IMPORTED_MODULE_5__["render"])(element, g, ['barb'], 'statediagram', id);
  56128. var padding = 8; // const svgBounds = svg.node().getBBox();
  56129. // const width = svgBounds.width + padding * 2;
  56130. // const height = svgBounds.height + padding * 2;
  56131. // logger.debug(
  56132. // `new ViewBox 0 0 ${width} ${height}`,
  56133. // `translate(${padding + g._label.marginx}, ${padding + g._label.marginy})`
  56134. // );
  56135. // if (conf.useMaxWidth) {
  56136. // svg.attr('width', '100%');
  56137. // svg.attr('style', `max-width: ${width}px;`);
  56138. // } else {
  56139. // svg.attr('height', height);
  56140. // svg.attr('width', width);
  56141. // }
  56142. // svg.attr('viewBox', `0 0 ${width} ${height}`);
  56143. // svg
  56144. // .select('g')
  56145. // .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);
  56146. var bounds = svg.node().getBBox();
  56147. var width = bounds.width + padding * 2;
  56148. var height = bounds.height + padding * 2; // diagram.attr('height', '100%');
  56149. // diagram.attr('style', `width: ${bounds.width * 3 + conf.padding * 2};`);
  56150. // diagram.attr('height', height);
  56151. // Zoom in a bit
  56152. svg.attr('width', width * 1.75);
  56153. svg.attr('class', 'statediagram'); // diagram.attr('height', bounds.height * 3 + conf.padding * 2);
  56154. // svg.attr(
  56155. // 'viewBox',
  56156. // `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height
  56157. // );
  56158. var svgBounds = svg.node().getBBox();
  56159. if (conf.useMaxWidth) {
  56160. svg.attr('width', '100%');
  56161. svg.attr('style', "max-width: ".concat(width, "px;"));
  56162. } else {
  56163. svg.attr('height', height);
  56164. svg.attr('width', width);
  56165. } // Ensure the viewBox includes the whole svgBounds area with extra space for padding
  56166. var vBox = "".concat(svgBounds.x - padding, " ").concat(svgBounds.y - padding, " ").concat(width, " ").concat(height);
  56167. _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].debug("viewBox ".concat(vBox));
  56168. svg.attr('viewBox', vBox); // Add label rects for non html labels
  56169. if (!conf.htmlLabels) {
  56170. var labels = document.querySelectorAll('[id="' + id + '"] .edgeLabel .label');
  56171. for (var k = 0; k < labels.length; k++) {
  56172. var label = labels[k]; // Get dimensions of label
  56173. var dim = label.getBBox();
  56174. var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
  56175. rect.setAttribute('rx', 0);
  56176. rect.setAttribute('ry', 0);
  56177. rect.setAttribute('width', dim.width);
  56178. rect.setAttribute('height', dim.height);
  56179. rect.setAttribute('style', 'fill:#e8e8e8;');
  56180. label.insertBefore(rect, label.firstChild);
  56181. }
  56182. }
  56183. };
  56184. /* harmony default export */ __webpack_exports__["default"] = ({
  56185. setConf: setConf,
  56186. getClasses: getClasses,
  56187. draw: draw
  56188. });
  56189. /***/ }),
  56190. /***/ "./src/diagrams/state/stateRenderer.js":
  56191. /*!*********************************************!*\
  56192. !*** ./src/diagrams/state/stateRenderer.js ***!
  56193. \*********************************************/
  56194. /*! exports provided: setConf, draw, default */
  56195. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56196. "use strict";
  56197. __webpack_require__.r(__webpack_exports__);
  56198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  56199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  56200. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  56201. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dagre */ "./node_modules/dagre/index.js");
  56202. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_1__);
  56203. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js");
  56204. /* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_2__);
  56205. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../logger */ "./src/logger.js");
  56206. /* harmony import */ var _stateDb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./stateDb */ "./src/diagrams/state/stateDb.js");
  56207. /* harmony import */ var _common_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/common */ "./src/diagrams/common/common.js");
  56208. /* harmony import */ var _parser_stateDiagram__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./parser/stateDiagram */ "./src/diagrams/state/parser/stateDiagram.jison");
  56209. /* harmony import */ var _parser_stateDiagram__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_6__);
  56210. /* harmony import */ var _shapes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./shapes */ "./src/diagrams/state/shapes.js");
  56211. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../config */ "./src/config.js");
  56212. // import idCache from './id-cache';
  56213. _parser_stateDiagram__WEBPACK_IMPORTED_MODULE_6__["parser"].yy = _stateDb__WEBPACK_IMPORTED_MODULE_4__["default"]; // TODO Move conf object to main conf in mermaidAPI
  56214. var conf;
  56215. var transformationLog = {};
  56216. var setConf = function setConf() {}; // Todo optimize
  56217. /**
  56218. * Setup arrow head and define the marker. The result is appended to the svg.
  56219. */
  56220. var insertMarkers = function insertMarkers(elem) {
  56221. 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 19,7 L9,13 L14,7 L9,1 Z');
  56222. };
  56223. /**
  56224. * Draws a flowchart in the tag with id: id based on the graph definition in text.
  56225. * @param text
  56226. * @param id
  56227. */
  56228. var draw = function draw(text, id) {
  56229. conf = Object(_config__WEBPACK_IMPORTED_MODULE_8__["getConfig"])().state;
  56230. _parser_stateDiagram__WEBPACK_IMPORTED_MODULE_6__["parser"].yy.clear();
  56231. _parser_stateDiagram__WEBPACK_IMPORTED_MODULE_6__["parser"].parse(text);
  56232. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Rendering diagram ' + text); // Fetch the default direction, use TD if none was found
  56233. var diagram = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])("[id='".concat(id, "']"));
  56234. insertMarkers(diagram); // Layout graph, Create a new directed graph
  56235. var graph = new graphlib__WEBPACK_IMPORTED_MODULE_2___default.a.Graph({
  56236. multigraph: true,
  56237. compound: true,
  56238. // acyclicer: 'greedy',
  56239. rankdir: 'RL' // ranksep: '20'
  56240. }); // Default to assigning a new object as a label for each new edge.
  56241. graph.setDefaultEdgeLabel(function () {
  56242. return {};
  56243. });
  56244. var rootDoc = _stateDb__WEBPACK_IMPORTED_MODULE_4__["default"].getRootDoc();
  56245. renderDoc(rootDoc, diagram, undefined, false);
  56246. var padding = conf.padding;
  56247. var bounds = diagram.node().getBBox();
  56248. var width = bounds.width + padding * 2;
  56249. var height = bounds.height + padding * 2;
  56250. if (conf.useMaxWidth) {
  56251. diagram.attr('width', '100%');
  56252. diagram.attr('style', "max-width: ".concat(width * 1.75, "px;"));
  56253. } else {
  56254. // Zoom in a bit
  56255. diagram.attr('width', width * 1.75);
  56256. } // diagram.attr('height', bounds.height * 3 + conf.padding * 2);
  56257. diagram.attr('viewBox', "".concat(bounds.x - conf.padding, " ").concat(bounds.y - conf.padding, " ") + width + ' ' + height);
  56258. };
  56259. var getLabelWidth = function getLabelWidth(text) {
  56260. return text ? text.length * conf.fontSizeFactor : 1;
  56261. };
  56262. var renderDoc = function renderDoc(doc, diagram, parentId, altBkg) {
  56263. // // Layout graph, Create a new directed graph
  56264. var graph = new graphlib__WEBPACK_IMPORTED_MODULE_2___default.a.Graph({
  56265. compound: true,
  56266. multigraph: true
  56267. });
  56268. var i;
  56269. var edgeFreeDoc = true;
  56270. for (i = 0; i < doc.length; i++) {
  56271. if (doc[i].stmt === 'relation') {
  56272. edgeFreeDoc = false;
  56273. break;
  56274. }
  56275. } // Set an object for the graph label
  56276. if (parentId) graph.setGraph({
  56277. rankdir: 'LR',
  56278. multigraph: true,
  56279. compound: true,
  56280. // acyclicer: 'greedy',
  56281. ranker: 'tight-tree',
  56282. ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,
  56283. nodeSep: edgeFreeDoc ? 1 : 50,
  56284. isMultiGraph: true // ranksep: 5,
  56285. // nodesep: 1
  56286. });else {
  56287. graph.setGraph({
  56288. rankdir: 'TB',
  56289. multigraph: true,
  56290. compound: true,
  56291. // isCompound: true,
  56292. // acyclicer: 'greedy',
  56293. // ranker: 'longest-path'
  56294. ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,
  56295. nodeSep: edgeFreeDoc ? 1 : 50,
  56296. ranker: 'tight-tree',
  56297. // ranker: 'network-simplex'
  56298. isMultiGraph: true
  56299. });
  56300. } // Default to assigning a new object as a label for each new edge.
  56301. graph.setDefaultEdgeLabel(function () {
  56302. return {};
  56303. });
  56304. _stateDb__WEBPACK_IMPORTED_MODULE_4__["default"].extract(doc);
  56305. var states = _stateDb__WEBPACK_IMPORTED_MODULE_4__["default"].getStates();
  56306. var relations = _stateDb__WEBPACK_IMPORTED_MODULE_4__["default"].getRelations();
  56307. var keys = Object.keys(states);
  56308. var first = true;
  56309. for (var _i = 0; _i < keys.length; _i++) {
  56310. var stateDef = states[keys[_i]];
  56311. if (parentId) {
  56312. stateDef.parentId = parentId;
  56313. }
  56314. var node = void 0;
  56315. if (stateDef.doc) {
  56316. var sub = diagram.append('g').attr('id', stateDef.id).attr('class', 'stateGroup');
  56317. node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg);
  56318. if (first) {
  56319. // first = false;
  56320. sub = Object(_shapes__WEBPACK_IMPORTED_MODULE_7__["addTitleAndBox"])(sub, stateDef, altBkg);
  56321. var boxBounds = sub.node().getBBox();
  56322. node.width = boxBounds.width;
  56323. node.height = boxBounds.height + conf.padding / 2;
  56324. transformationLog[stateDef.id] = {
  56325. y: conf.compositTitleSize
  56326. };
  56327. } else {
  56328. // sub = addIdAndBox(sub, stateDef);
  56329. var _boxBounds = sub.node().getBBox();
  56330. node.width = _boxBounds.width;
  56331. node.height = _boxBounds.height; // transformationLog[stateDef.id] = { y: conf.compositTitleSize };
  56332. }
  56333. } else {
  56334. node = Object(_shapes__WEBPACK_IMPORTED_MODULE_7__["drawState"])(diagram, stateDef, graph);
  56335. }
  56336. if (stateDef.note) {
  56337. // Draw note note
  56338. var noteDef = {
  56339. descriptions: [],
  56340. id: stateDef.id + '-note',
  56341. note: stateDef.note,
  56342. type: 'note'
  56343. };
  56344. var note = Object(_shapes__WEBPACK_IMPORTED_MODULE_7__["drawState"])(diagram, noteDef, graph); // graph.setNode(node.id, node);
  56345. if (stateDef.note.position === 'left of') {
  56346. graph.setNode(node.id + '-note', note);
  56347. graph.setNode(node.id, node);
  56348. } else {
  56349. graph.setNode(node.id, node);
  56350. graph.setNode(node.id + '-note', note);
  56351. } // graph.setNode(node.id);
  56352. graph.setParent(node.id, node.id + '-group');
  56353. graph.setParent(node.id + '-note', node.id + '-group');
  56354. } else {
  56355. // Add nodes to the graph. The first argument is the node id. The second is
  56356. // metadata about the node. In this case we're going to add labels to each of
  56357. // our nodes.
  56358. graph.setNode(node.id, node);
  56359. }
  56360. }
  56361. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Count=', graph.nodeCount(), graph);
  56362. var cnt = 0;
  56363. relations.forEach(function (relation) {
  56364. cnt++;
  56365. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Setting edge', relation);
  56366. graph.setEdge(relation.id1, relation.id2, {
  56367. relation: relation,
  56368. width: getLabelWidth(relation.title),
  56369. height: conf.labelHeight * _common_common__WEBPACK_IMPORTED_MODULE_5__["default"].getRows(relation.title).length,
  56370. labelpos: 'c'
  56371. }, 'id' + cnt);
  56372. });
  56373. dagre__WEBPACK_IMPORTED_MODULE_1___default.a.layout(graph);
  56374. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Graph after layout', graph.nodes());
  56375. var svgElem = diagram.node();
  56376. graph.nodes().forEach(function (v) {
  56377. if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {
  56378. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].warn('Node ' + v + ': ' + JSON.stringify(graph.node(v)));
  56379. Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('#' + svgElem.id + ' #' + v).attr('transform', 'translate(' + (graph.node(v).x - graph.node(v).width / 2) + ',' + (graph.node(v).y + (transformationLog[v] ? transformationLog[v].y : 0) - graph.node(v).height / 2) + ' )');
  56380. Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('#' + svgElem.id + ' #' + v).attr('data-x-shift', graph.node(v).x - graph.node(v).width / 2);
  56381. var dividers = document.querySelectorAll('#' + svgElem.id + ' #' + v + ' .divider');
  56382. dividers.forEach(function (divider) {
  56383. var parent = divider.parentElement;
  56384. var pWidth = 0;
  56385. var pShift = 0;
  56386. if (parent) {
  56387. if (parent.parentElement) pWidth = parent.parentElement.getBBox().width;
  56388. pShift = parseInt(parent.getAttribute('data-x-shift'), 10);
  56389. if (Number.isNaN(pShift)) {
  56390. pShift = 0;
  56391. }
  56392. }
  56393. divider.setAttribute('x1', 0 - pShift + 8);
  56394. divider.setAttribute('x2', pWidth - pShift - 8);
  56395. });
  56396. } else {
  56397. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('No Node ' + v + ': ' + JSON.stringify(graph.node(v)));
  56398. }
  56399. });
  56400. var stateBox = svgElem.getBBox();
  56401. graph.edges().forEach(function (e) {
  56402. if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') {
  56403. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));
  56404. Object(_shapes__WEBPACK_IMPORTED_MODULE_7__["drawEdge"])(diagram, graph.edge(e), graph.edge(e).relation);
  56405. }
  56406. });
  56407. stateBox = svgElem.getBBox();
  56408. var stateInfo = {
  56409. id: parentId ? parentId : 'root',
  56410. label: parentId ? parentId : 'root',
  56411. width: 0,
  56412. height: 0
  56413. };
  56414. stateInfo.width = stateBox.width + 2 * conf.padding;
  56415. stateInfo.height = stateBox.height + 2 * conf.padding;
  56416. _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Doc rendered', stateInfo, graph);
  56417. return stateInfo;
  56418. };
  56419. /* harmony default export */ __webpack_exports__["default"] = ({
  56420. setConf: setConf,
  56421. draw: draw
  56422. });
  56423. /***/ }),
  56424. /***/ "./src/diagrams/state/styles.js":
  56425. /*!**************************************!*\
  56426. !*** ./src/diagrams/state/styles.js ***!
  56427. \**************************************/
  56428. /*! exports provided: default */
  56429. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56430. "use strict";
  56431. __webpack_require__.r(__webpack_exports__);
  56432. var getStyles = function getStyles(options) {
  56433. return "g.stateGroup text {\n fill: ".concat(options.nodeBorder, ";\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\ng.stateGroup text {\n fill: ").concat(options.textColor, ";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(options.labelColor, ";\n}\n\ng.stateGroup rect {\n fill: ").concat(options.nodeBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n}\n\ng.stateGroup line {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(options.background, ";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(options.noteBorderColor, ";\n fill: ").concat(options.noteBkgColor, ";\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(options.nodeBkg, ";\n opacity: 0.5;\n}\n\n.stateLabel text {\n fill: ").concat(options.labelColor, ";\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\n\n.node circle.state-start {\n fill: black;\n stroke: black;\n}\n.node circle.state-end {\n fill: black;\n stroke: white;\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(options.lineColor, ";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(options.nodeBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(options.textColor, ";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(options.nodeBorder, ";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(options.background, ";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ").concat(options.altBackground ? options.altBackground : '#efefef', ";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(options.noteBkgColor, ";\n stroke: ").concat(options.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(options.noteBkgColor, ";\n stroke: ").concat(options.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(options.noteTextColor, ";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(options.lineColor, ";\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n}\n");
  56434. };
  56435. /* harmony default export */ __webpack_exports__["default"] = (getStyles);
  56436. /***/ }),
  56437. /***/ "./src/diagrams/user-journey/journeyDb.js":
  56438. /*!************************************************!*\
  56439. !*** ./src/diagrams/user-journey/journeyDb.js ***!
  56440. \************************************************/
  56441. /*! exports provided: clear, setTitle, getTitle, addSection, getSections, getTasks, addTask, addTaskOrg, default */
  56442. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56443. "use strict";
  56444. __webpack_require__.r(__webpack_exports__);
  56445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; });
  56446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTitle", function() { return setTitle; });
  56447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTitle", function() { return getTitle; });
  56448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addSection", function() { return addSection; });
  56449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSections", function() { return getSections; });
  56450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTasks", function() { return getTasks; });
  56451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addTask", function() { return addTask; });
  56452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addTaskOrg", function() { return addTaskOrg; });
  56453. function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
  56454. function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
  56455. function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
  56456. function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
  56457. var title = '';
  56458. var currentSection = '';
  56459. var sections = [];
  56460. var tasks = [];
  56461. var rawTasks = [];
  56462. var clear = function clear() {
  56463. sections.length = 0;
  56464. tasks.length = 0;
  56465. currentSection = '';
  56466. title = '';
  56467. rawTasks.length = 0;
  56468. };
  56469. var setTitle = function setTitle(txt) {
  56470. title = txt;
  56471. };
  56472. var getTitle = function getTitle() {
  56473. return title;
  56474. };
  56475. var addSection = function addSection(txt) {
  56476. currentSection = txt;
  56477. sections.push(txt);
  56478. };
  56479. var getSections = function getSections() {
  56480. return sections;
  56481. };
  56482. var getTasks = function getTasks() {
  56483. var allItemsProcessed = compileTasks();
  56484. var maxDepth = 100;
  56485. var iterationCount = 0;
  56486. while (!allItemsProcessed && iterationCount < maxDepth) {
  56487. allItemsProcessed = compileTasks();
  56488. iterationCount++;
  56489. }
  56490. tasks.push.apply(tasks, rawTasks);
  56491. return tasks;
  56492. };
  56493. var updateActors = function updateActors() {
  56494. var tempActors = [];
  56495. tasks.forEach(function (task) {
  56496. if (task.people) {
  56497. tempActors.push.apply(tempActors, _toConsumableArray(task.people));
  56498. }
  56499. });
  56500. var unique = new Set(tempActors);
  56501. return _toConsumableArray(unique).sort();
  56502. };
  56503. var addTask = function addTask(descr, taskData) {
  56504. var pieces = taskData.substr(1).split(':');
  56505. var score = 0;
  56506. var peeps = [];
  56507. if (pieces.length === 1) {
  56508. score = Number(pieces[0]);
  56509. peeps = [];
  56510. } else {
  56511. score = Number(pieces[0]);
  56512. peeps = pieces[1].split(',');
  56513. }
  56514. var peopleList = peeps.map(function (s) {
  56515. return s.trim();
  56516. });
  56517. var rawTask = {
  56518. section: currentSection,
  56519. type: currentSection,
  56520. people: peopleList,
  56521. task: descr,
  56522. score: score
  56523. };
  56524. rawTasks.push(rawTask);
  56525. };
  56526. var addTaskOrg = function addTaskOrg(descr) {
  56527. var newTask = {
  56528. section: currentSection,
  56529. type: currentSection,
  56530. description: descr,
  56531. task: descr,
  56532. classes: []
  56533. };
  56534. tasks.push(newTask);
  56535. };
  56536. var compileTasks = function compileTasks() {
  56537. var compileTask = function compileTask(pos) {
  56538. return rawTasks[pos].processed;
  56539. };
  56540. var allProcessed = true;
  56541. for (var i = 0; i < rawTasks.length; i++) {
  56542. compileTask(i);
  56543. allProcessed = allProcessed && rawTasks[i].processed;
  56544. }
  56545. return allProcessed;
  56546. };
  56547. var getActors = function getActors() {
  56548. return updateActors();
  56549. };
  56550. /* harmony default export */ __webpack_exports__["default"] = ({
  56551. clear: clear,
  56552. setTitle: setTitle,
  56553. getTitle: getTitle,
  56554. addSection: addSection,
  56555. getSections: getSections,
  56556. getTasks: getTasks,
  56557. addTask: addTask,
  56558. addTaskOrg: addTaskOrg,
  56559. getActors: getActors
  56560. });
  56561. /***/ }),
  56562. /***/ "./src/diagrams/user-journey/journeyRenderer.js":
  56563. /*!******************************************************!*\
  56564. !*** ./src/diagrams/user-journey/journeyRenderer.js ***!
  56565. \******************************************************/
  56566. /*! exports provided: setConf, draw, bounds, drawTasks, default */
  56567. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56568. "use strict";
  56569. __webpack_require__.r(__webpack_exports__);
  56570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  56571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  56572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounds", function() { return bounds; });
  56573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawTasks", function() { return drawTasks; });
  56574. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  56575. /* harmony import */ var _parser_journey__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parser/journey */ "./src/diagrams/user-journey/parser/journey.jison");
  56576. /* harmony import */ var _parser_journey__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_parser_journey__WEBPACK_IMPORTED_MODULE_1__);
  56577. /* harmony import */ var _journeyDb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./journeyDb */ "./src/diagrams/user-journey/journeyDb.js");
  56578. /* harmony import */ var _svgDraw__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./svgDraw */ "./src/diagrams/user-journey/svgDraw.js");
  56579. _parser_journey__WEBPACK_IMPORTED_MODULE_1__["parser"].yy = _journeyDb__WEBPACK_IMPORTED_MODULE_2__["default"];
  56580. var conf = {
  56581. leftMargin: 150,
  56582. diagramMarginX: 50,
  56583. diagramMarginY: 20,
  56584. // Margin between tasks
  56585. taskMargin: 50,
  56586. // Width of task boxes
  56587. width: 150,
  56588. // Height of task boxes
  56589. height: 50,
  56590. taskFontSize: 14,
  56591. taskFontFamily: '"Open-Sans", "sans-serif"',
  56592. // Margin around loop boxes
  56593. boxMargin: 10,
  56594. boxTextMargin: 5,
  56595. noteMargin: 10,
  56596. // Space between messages
  56597. messageMargin: 35,
  56598. // Multiline message alignment
  56599. messageAlign: 'center',
  56600. // Depending on css styling this might need adjustment
  56601. // Projects the edge of the diagram downwards
  56602. bottomMarginAdj: 1,
  56603. // width of activation box
  56604. activationWidth: 10,
  56605. // text placement as: tspan | fo | old only text as before
  56606. textPlacement: 'fo',
  56607. actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],
  56608. sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],
  56609. sectionColours: ['#fff']
  56610. };
  56611. var setConf = function setConf(cnf) {
  56612. var keys = Object.keys(cnf);
  56613. keys.forEach(function (key) {
  56614. conf[key] = cnf[key];
  56615. });
  56616. };
  56617. var actors = {};
  56618. function drawActorLegend(diagram) {
  56619. // Draw the actors
  56620. var yPos = 60;
  56621. Object.keys(actors).forEach(function (person) {
  56622. var colour = actors[person];
  56623. var circleData = {
  56624. cx: 20,
  56625. cy: yPos,
  56626. r: 7,
  56627. fill: colour,
  56628. stroke: '#000'
  56629. };
  56630. _svgDraw__WEBPACK_IMPORTED_MODULE_3__["default"].drawCircle(diagram, circleData);
  56631. var labelData = {
  56632. x: 40,
  56633. y: yPos + 7,
  56634. fill: '#666',
  56635. text: person
  56636. };
  56637. _svgDraw__WEBPACK_IMPORTED_MODULE_3__["default"].drawText(diagram, labelData);
  56638. yPos += 20;
  56639. });
  56640. }
  56641. var LEFT_MARGIN = conf.leftMargin;
  56642. var draw = function draw(text, id) {
  56643. _parser_journey__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.clear();
  56644. _parser_journey__WEBPACK_IMPORTED_MODULE_1__["parser"].parse(text + '\n');
  56645. bounds.init();
  56646. var diagram = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('#' + id);
  56647. diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');
  56648. _svgDraw__WEBPACK_IMPORTED_MODULE_3__["default"].initGraphics(diagram);
  56649. var tasks = _parser_journey__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.getTasks();
  56650. var title = _parser_journey__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.getTitle();
  56651. var actorNames = _parser_journey__WEBPACK_IMPORTED_MODULE_1__["parser"].yy.getActors();
  56652. for (var member in actors) {
  56653. delete actors[member];
  56654. }
  56655. var actorPos = 0;
  56656. actorNames.forEach(function (actorName) {
  56657. actors[actorName] = conf.actorColours[actorPos % conf.actorColours.length];
  56658. actorPos++;
  56659. });
  56660. drawActorLegend(diagram);
  56661. bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50);
  56662. drawTasks(diagram, tasks, 0);
  56663. var box = bounds.getBounds();
  56664. if (title) {
  56665. diagram.append('text').text(title).attr('x', LEFT_MARGIN).attr('font-size', '4ex').attr('font-weight', 'bold').attr('y', 25);
  56666. }
  56667. var height = box.stopy - box.starty + 2 * conf.diagramMarginY;
  56668. var width = LEFT_MARGIN + box.stopx + 2 * conf.diagramMarginX;
  56669. if (conf.useMaxWidth) {
  56670. diagram.attr('height', '100%');
  56671. diagram.attr('width', '100%');
  56672. diagram.attr('style', 'max-width:' + width + 'px;');
  56673. } else {
  56674. diagram.attr('height', height);
  56675. diagram.attr('width', width);
  56676. } // Draw activity line
  56677. diagram.append('line').attr('x1', LEFT_MARGIN).attr('y1', conf.height * 4) // One section head + one task + margins
  56678. .attr('x2', width - LEFT_MARGIN - 4) // Subtract stroke width so arrow point is retained
  56679. .attr('y2', conf.height * 4).attr('stroke-width', 4).attr('stroke', 'black').attr('marker-end', 'url(#arrowhead)');
  56680. var extraVertForTitle = title ? 70 : 0;
  56681. diagram.attr('viewBox', "".concat(box.startx, " -25 ").concat(width, " ").concat(height + extraVertForTitle));
  56682. diagram.attr('preserveAspectRatio', 'xMinYMin meet');
  56683. };
  56684. var bounds = {
  56685. data: {
  56686. startx: undefined,
  56687. stopx: undefined,
  56688. starty: undefined,
  56689. stopy: undefined
  56690. },
  56691. verticalPos: 0,
  56692. sequenceItems: [],
  56693. init: function init() {
  56694. this.sequenceItems = [];
  56695. this.data = {
  56696. startx: undefined,
  56697. stopx: undefined,
  56698. starty: undefined,
  56699. stopy: undefined
  56700. };
  56701. this.verticalPos = 0;
  56702. },
  56703. updateVal: function updateVal(obj, key, val, fun) {
  56704. if (typeof obj[key] === 'undefined') {
  56705. obj[key] = val;
  56706. } else {
  56707. obj[key] = fun(val, obj[key]);
  56708. }
  56709. },
  56710. updateBounds: function updateBounds(startx, starty, stopx, stopy) {
  56711. var _self = this;
  56712. var cnt = 0;
  56713. function updateFn(type) {
  56714. return function updateItemBounds(item) {
  56715. cnt++; // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems
  56716. var n = _self.sequenceItems.length - cnt + 1;
  56717. _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);
  56718. _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);
  56719. _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);
  56720. _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);
  56721. if (!(type === 'activation')) {
  56722. _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);
  56723. _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);
  56724. _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);
  56725. _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);
  56726. }
  56727. };
  56728. }
  56729. this.sequenceItems.forEach(updateFn());
  56730. },
  56731. insert: function insert(startx, starty, stopx, stopy) {
  56732. var _startx = Math.min(startx, stopx);
  56733. var _stopx = Math.max(startx, stopx);
  56734. var _starty = Math.min(starty, stopy);
  56735. var _stopy = Math.max(starty, stopy);
  56736. this.updateVal(bounds.data, 'startx', _startx, Math.min);
  56737. this.updateVal(bounds.data, 'starty', _starty, Math.min);
  56738. this.updateVal(bounds.data, 'stopx', _stopx, Math.max);
  56739. this.updateVal(bounds.data, 'stopy', _stopy, Math.max);
  56740. this.updateBounds(_startx, _starty, _stopx, _stopy);
  56741. },
  56742. bumpVerticalPos: function bumpVerticalPos(bump) {
  56743. this.verticalPos = this.verticalPos + bump;
  56744. this.data.stopy = this.verticalPos;
  56745. },
  56746. getVerticalPos: function getVerticalPos() {
  56747. return this.verticalPos;
  56748. },
  56749. getBounds: function getBounds() {
  56750. return this.data;
  56751. }
  56752. };
  56753. var fills = conf.sectionFills;
  56754. var textColours = conf.sectionColours;
  56755. var drawTasks = function drawTasks(diagram, tasks, verticalPos) {
  56756. var lastSection = '';
  56757. var sectionVHeight = conf.height * 2 + conf.diagramMarginY;
  56758. var taskPos = verticalPos + sectionVHeight;
  56759. var sectionNumber = 0;
  56760. var fill = '#CCC';
  56761. var colour = 'black';
  56762. var num = 0; // Draw the tasks
  56763. for (var i = 0; i < tasks.length; i++) {
  56764. var task = tasks[i];
  56765. if (lastSection !== task.section) {
  56766. fill = fills[sectionNumber % fills.length];
  56767. num = sectionNumber % fills.length;
  56768. colour = textColours[sectionNumber % textColours.length];
  56769. var section = {
  56770. x: i * conf.taskMargin + i * conf.width + LEFT_MARGIN,
  56771. y: 50,
  56772. text: task.section,
  56773. fill: fill,
  56774. num: num,
  56775. colour: colour
  56776. };
  56777. _svgDraw__WEBPACK_IMPORTED_MODULE_3__["default"].drawSection(diagram, section, conf);
  56778. lastSection = task.section;
  56779. sectionNumber++;
  56780. } // Collect the actors involved in the task
  56781. var taskActors = task.people.reduce(function (acc, actorName) {
  56782. if (actors[actorName]) {
  56783. acc[actorName] = actors[actorName];
  56784. }
  56785. return acc;
  56786. }, {}); // Add some rendering data to the object
  56787. task.x = i * conf.taskMargin + i * conf.width + LEFT_MARGIN;
  56788. task.y = taskPos;
  56789. task.width = conf.diagramMarginX;
  56790. task.height = conf.diagramMarginY;
  56791. task.colour = colour;
  56792. task.fill = fill;
  56793. task.num = num;
  56794. task.actors = taskActors; // Draw the box with the attached line
  56795. _svgDraw__WEBPACK_IMPORTED_MODULE_3__["default"].drawTask(diagram, task, conf);
  56796. bounds.insert(task.x, task.y, task.x + task.width + conf.taskMargin, 300 + 5 * 30); // stopy is the length of the descenders.
  56797. }
  56798. };
  56799. /* harmony default export */ __webpack_exports__["default"] = ({
  56800. setConf: setConf,
  56801. draw: draw
  56802. });
  56803. /***/ }),
  56804. /***/ "./src/diagrams/user-journey/parser/journey.jison":
  56805. /*!********************************************************!*\
  56806. !*** ./src/diagrams/user-journey/parser/journey.jison ***!
  56807. \********************************************************/
  56808. /*! no static exports found */
  56809. /***/ (function(module, exports, __webpack_require__) {
  56810. /* WEBPACK VAR INJECTION */(function(process, module) {/* parser generated by jison 0.4.18 */
  56811. /*
  56812. Returns a Parser object of the following structure:
  56813. Parser: {
  56814. yy: {}
  56815. }
  56816. Parser.prototype: {
  56817. yy: {},
  56818. trace: function(),
  56819. symbols_: {associative list: name ==> number},
  56820. terminals_: {associative list: number ==> name},
  56821. productions_: [...],
  56822. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  56823. table: [...],
  56824. defaultActions: {...},
  56825. parseError: function(str, hash),
  56826. parse: function(input),
  56827. lexer: {
  56828. EOF: 1,
  56829. parseError: function(str, hash),
  56830. setInput: function(input),
  56831. input: function(),
  56832. unput: function(str),
  56833. more: function(),
  56834. less: function(n),
  56835. pastInput: function(),
  56836. upcomingInput: function(),
  56837. showPosition: function(),
  56838. test_match: function(regex_match_array, rule_index),
  56839. next: function(),
  56840. lex: function(),
  56841. begin: function(condition),
  56842. popState: function(),
  56843. _currentRules: function(),
  56844. topState: function(),
  56845. pushState: function(condition),
  56846. options: {
  56847. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  56848. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  56849. 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)
  56850. },
  56851. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  56852. rules: [...],
  56853. conditions: {associative list: name ==> set},
  56854. }
  56855. }
  56856. token location info (@$, _$, etc.): {
  56857. first_line: n,
  56858. last_line: n,
  56859. first_column: n,
  56860. last_column: n,
  56861. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  56862. }
  56863. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  56864. text: (matched text)
  56865. token: (the produced terminal token, if any)
  56866. line: (yylineno)
  56867. }
  56868. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  56869. loc: (yylloc)
  56870. expected: (string describing the set of expected tokens)
  56871. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  56872. }
  56873. */
  56874. var parser = (function(){
  56875. 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],$V1=[1,9],$V2=[1,10],$V3=[1,11];
  56876. var parser = {trace: function trace () { },
  56877. yy: {},
  56878. symbols_: {"error":2,"start":3,"journey":4,"document":5,"EOF":6,"line":7,"SPACE":8,"statement":9,"NL":10,"title":11,"section":12,"taskName":13,"taskData":14,"$accept":0,"$end":1},
  56879. terminals_: {2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NL",11:"title",12:"section",13:"taskName",14:"taskData"},
  56880. productions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,2]],
  56881. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  56882. /* this == yyval */
  56883. var $0 = $$.length - 1;
  56884. switch (yystate) {
  56885. case 1:
  56886. return $$[$0-1];
  56887. break;
  56888. case 2:
  56889. this.$ = []
  56890. break;
  56891. case 3:
  56892. $$[$0-1].push($$[$0]);this.$ = $$[$0-1]
  56893. break;
  56894. case 4: case 5:
  56895. this.$ = $$[$0]
  56896. break;
  56897. case 6: case 7:
  56898. this.$=[];
  56899. break;
  56900. case 8:
  56901. yy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);
  56902. break;
  56903. case 9:
  56904. yy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);
  56905. break;
  56906. case 10:
  56907. yy.addTask($$[$0-1], $$[$0]);this.$='task';
  56908. break;
  56909. }
  56910. },
  56911. 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},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:12,11:$V1,12:$V2,13:$V3},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),{14:[1,13]},o($V0,[2,4]),o($V0,[2,10])],
  56912. defaultActions: {},
  56913. parseError: function parseError (str, hash) {
  56914. if (hash.recoverable) {
  56915. this.trace(str);
  56916. } else {
  56917. var error = new Error(str);
  56918. error.hash = hash;
  56919. throw error;
  56920. }
  56921. },
  56922. parse: function parse(input) {
  56923. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  56924. var args = lstack.slice.call(arguments, 1);
  56925. var lexer = Object.create(this.lexer);
  56926. var sharedState = { yy: {} };
  56927. for (var k in this.yy) {
  56928. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  56929. sharedState.yy[k] = this.yy[k];
  56930. }
  56931. }
  56932. lexer.setInput(input, sharedState.yy);
  56933. sharedState.yy.lexer = lexer;
  56934. sharedState.yy.parser = this;
  56935. if (typeof lexer.yylloc == 'undefined') {
  56936. lexer.yylloc = {};
  56937. }
  56938. var yyloc = lexer.yylloc;
  56939. lstack.push(yyloc);
  56940. var ranges = lexer.options && lexer.options.ranges;
  56941. if (typeof sharedState.yy.parseError === 'function') {
  56942. this.parseError = sharedState.yy.parseError;
  56943. } else {
  56944. this.parseError = Object.getPrototypeOf(this).parseError;
  56945. }
  56946. function popStack(n) {
  56947. stack.length = stack.length - 2 * n;
  56948. vstack.length = vstack.length - n;
  56949. lstack.length = lstack.length - n;
  56950. }
  56951. function lex() {
  56952. var token;
  56953. token = tstack.pop() || lexer.lex() || EOF;
  56954. if (typeof token !== 'number') {
  56955. if (token instanceof Array) {
  56956. tstack = token;
  56957. token = tstack.pop();
  56958. }
  56959. token = self.symbols_[token] || token;
  56960. }
  56961. return token;
  56962. }
  56963. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  56964. while (true) {
  56965. state = stack[stack.length - 1];
  56966. if (this.defaultActions[state]) {
  56967. action = this.defaultActions[state];
  56968. } else {
  56969. if (symbol === null || typeof symbol == 'undefined') {
  56970. symbol = lex();
  56971. }
  56972. action = table[state] && table[state][symbol];
  56973. }
  56974. if (typeof action === 'undefined' || !action.length || !action[0]) {
  56975. var errStr = '';
  56976. expected = [];
  56977. for (p in table[state]) {
  56978. if (this.terminals_[p] && p > TERROR) {
  56979. expected.push('\'' + this.terminals_[p] + '\'');
  56980. }
  56981. }
  56982. if (lexer.showPosition) {
  56983. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  56984. } else {
  56985. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  56986. }
  56987. this.parseError(errStr, {
  56988. text: lexer.match,
  56989. token: this.terminals_[symbol] || symbol,
  56990. line: lexer.yylineno,
  56991. loc: yyloc,
  56992. expected: expected
  56993. });
  56994. }
  56995. if (action[0] instanceof Array && action.length > 1) {
  56996. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  56997. }
  56998. switch (action[0]) {
  56999. case 1:
  57000. stack.push(symbol);
  57001. vstack.push(lexer.yytext);
  57002. lstack.push(lexer.yylloc);
  57003. stack.push(action[1]);
  57004. symbol = null;
  57005. if (!preErrorSymbol) {
  57006. yyleng = lexer.yyleng;
  57007. yytext = lexer.yytext;
  57008. yylineno = lexer.yylineno;
  57009. yyloc = lexer.yylloc;
  57010. if (recovering > 0) {
  57011. recovering--;
  57012. }
  57013. } else {
  57014. symbol = preErrorSymbol;
  57015. preErrorSymbol = null;
  57016. }
  57017. break;
  57018. case 2:
  57019. len = this.productions_[action[1]][1];
  57020. yyval.$ = vstack[vstack.length - len];
  57021. yyval._$ = {
  57022. first_line: lstack[lstack.length - (len || 1)].first_line,
  57023. last_line: lstack[lstack.length - 1].last_line,
  57024. first_column: lstack[lstack.length - (len || 1)].first_column,
  57025. last_column: lstack[lstack.length - 1].last_column
  57026. };
  57027. if (ranges) {
  57028. yyval._$.range = [
  57029. lstack[lstack.length - (len || 1)].range[0],
  57030. lstack[lstack.length - 1].range[1]
  57031. ];
  57032. }
  57033. r = this.performAction.apply(yyval, [
  57034. yytext,
  57035. yyleng,
  57036. yylineno,
  57037. sharedState.yy,
  57038. action[1],
  57039. vstack,
  57040. lstack
  57041. ].concat(args));
  57042. if (typeof r !== 'undefined') {
  57043. return r;
  57044. }
  57045. if (len) {
  57046. stack = stack.slice(0, -1 * len * 2);
  57047. vstack = vstack.slice(0, -1 * len);
  57048. lstack = lstack.slice(0, -1 * len);
  57049. }
  57050. stack.push(this.productions_[action[1]][0]);
  57051. vstack.push(yyval.$);
  57052. lstack.push(yyval._$);
  57053. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  57054. stack.push(newState);
  57055. break;
  57056. case 3:
  57057. return true;
  57058. }
  57059. }
  57060. return true;
  57061. }};
  57062. /* generated by jison-lex 0.3.4 */
  57063. var lexer = (function(){
  57064. var lexer = ({
  57065. EOF:1,
  57066. parseError:function parseError(str, hash) {
  57067. if (this.yy.parser) {
  57068. this.yy.parser.parseError(str, hash);
  57069. } else {
  57070. throw new Error(str);
  57071. }
  57072. },
  57073. // resets the lexer, sets new input
  57074. setInput:function (input, yy) {
  57075. this.yy = yy || this.yy || {};
  57076. this._input = input;
  57077. this._more = this._backtrack = this.done = false;
  57078. this.yylineno = this.yyleng = 0;
  57079. this.yytext = this.matched = this.match = '';
  57080. this.conditionStack = ['INITIAL'];
  57081. this.yylloc = {
  57082. first_line: 1,
  57083. first_column: 0,
  57084. last_line: 1,
  57085. last_column: 0
  57086. };
  57087. if (this.options.ranges) {
  57088. this.yylloc.range = [0,0];
  57089. }
  57090. this.offset = 0;
  57091. return this;
  57092. },
  57093. // consumes and returns one char from the input
  57094. input:function () {
  57095. var ch = this._input[0];
  57096. this.yytext += ch;
  57097. this.yyleng++;
  57098. this.offset++;
  57099. this.match += ch;
  57100. this.matched += ch;
  57101. var lines = ch.match(/(?:\r\n?|\n).*/g);
  57102. if (lines) {
  57103. this.yylineno++;
  57104. this.yylloc.last_line++;
  57105. } else {
  57106. this.yylloc.last_column++;
  57107. }
  57108. if (this.options.ranges) {
  57109. this.yylloc.range[1]++;
  57110. }
  57111. this._input = this._input.slice(1);
  57112. return ch;
  57113. },
  57114. // unshifts one char (or a string) into the input
  57115. unput:function (ch) {
  57116. var len = ch.length;
  57117. var lines = ch.split(/(?:\r\n?|\n)/g);
  57118. this._input = ch + this._input;
  57119. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  57120. //this.yyleng -= len;
  57121. this.offset -= len;
  57122. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  57123. this.match = this.match.substr(0, this.match.length - 1);
  57124. this.matched = this.matched.substr(0, this.matched.length - 1);
  57125. if (lines.length - 1) {
  57126. this.yylineno -= lines.length - 1;
  57127. }
  57128. var r = this.yylloc.range;
  57129. this.yylloc = {
  57130. first_line: this.yylloc.first_line,
  57131. last_line: this.yylineno + 1,
  57132. first_column: this.yylloc.first_column,
  57133. last_column: lines ?
  57134. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  57135. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  57136. this.yylloc.first_column - len
  57137. };
  57138. if (this.options.ranges) {
  57139. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  57140. }
  57141. this.yyleng = this.yytext.length;
  57142. return this;
  57143. },
  57144. // When called from action, caches matched text and appends it on next action
  57145. more:function () {
  57146. this._more = true;
  57147. return this;
  57148. },
  57149. // 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.
  57150. reject:function () {
  57151. if (this.options.backtrack_lexer) {
  57152. this._backtrack = true;
  57153. } else {
  57154. 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(), {
  57155. text: "",
  57156. token: null,
  57157. line: this.yylineno
  57158. });
  57159. }
  57160. return this;
  57161. },
  57162. // retain first n characters of the match
  57163. less:function (n) {
  57164. this.unput(this.match.slice(n));
  57165. },
  57166. // displays already matched input, i.e. for error messages
  57167. pastInput:function () {
  57168. var past = this.matched.substr(0, this.matched.length - this.match.length);
  57169. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  57170. },
  57171. // displays upcoming input, i.e. for error messages
  57172. upcomingInput:function () {
  57173. var next = this.match;
  57174. if (next.length < 20) {
  57175. next += this._input.substr(0, 20-next.length);
  57176. }
  57177. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  57178. },
  57179. // displays the character position where the lexing error occurred, i.e. for error messages
  57180. showPosition:function () {
  57181. var pre = this.pastInput();
  57182. var c = new Array(pre.length + 1).join("-");
  57183. return pre + this.upcomingInput() + "\n" + c + "^";
  57184. },
  57185. // test the lexed token: return FALSE when not a match, otherwise return token
  57186. test_match:function(match, indexed_rule) {
  57187. var token,
  57188. lines,
  57189. backup;
  57190. if (this.options.backtrack_lexer) {
  57191. // save context
  57192. backup = {
  57193. yylineno: this.yylineno,
  57194. yylloc: {
  57195. first_line: this.yylloc.first_line,
  57196. last_line: this.last_line,
  57197. first_column: this.yylloc.first_column,
  57198. last_column: this.yylloc.last_column
  57199. },
  57200. yytext: this.yytext,
  57201. match: this.match,
  57202. matches: this.matches,
  57203. matched: this.matched,
  57204. yyleng: this.yyleng,
  57205. offset: this.offset,
  57206. _more: this._more,
  57207. _input: this._input,
  57208. yy: this.yy,
  57209. conditionStack: this.conditionStack.slice(0),
  57210. done: this.done
  57211. };
  57212. if (this.options.ranges) {
  57213. backup.yylloc.range = this.yylloc.range.slice(0);
  57214. }
  57215. }
  57216. lines = match[0].match(/(?:\r\n?|\n).*/g);
  57217. if (lines) {
  57218. this.yylineno += lines.length;
  57219. }
  57220. this.yylloc = {
  57221. first_line: this.yylloc.last_line,
  57222. last_line: this.yylineno + 1,
  57223. first_column: this.yylloc.last_column,
  57224. last_column: lines ?
  57225. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  57226. this.yylloc.last_column + match[0].length
  57227. };
  57228. this.yytext += match[0];
  57229. this.match += match[0];
  57230. this.matches = match;
  57231. this.yyleng = this.yytext.length;
  57232. if (this.options.ranges) {
  57233. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  57234. }
  57235. this._more = false;
  57236. this._backtrack = false;
  57237. this._input = this._input.slice(match[0].length);
  57238. this.matched += match[0];
  57239. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  57240. if (this.done && this._input) {
  57241. this.done = false;
  57242. }
  57243. if (token) {
  57244. return token;
  57245. } else if (this._backtrack) {
  57246. // recover context
  57247. for (var k in backup) {
  57248. this[k] = backup[k];
  57249. }
  57250. return false; // rule action called reject() implying the next rule should be tested instead.
  57251. }
  57252. return false;
  57253. },
  57254. // return next match in input
  57255. next:function () {
  57256. if (this.done) {
  57257. return this.EOF;
  57258. }
  57259. if (!this._input) {
  57260. this.done = true;
  57261. }
  57262. var token,
  57263. match,
  57264. tempMatch,
  57265. index;
  57266. if (!this._more) {
  57267. this.yytext = '';
  57268. this.match = '';
  57269. }
  57270. var rules = this._currentRules();
  57271. for (var i = 0; i < rules.length; i++) {
  57272. tempMatch = this._input.match(this.rules[rules[i]]);
  57273. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  57274. match = tempMatch;
  57275. index = i;
  57276. if (this.options.backtrack_lexer) {
  57277. token = this.test_match(tempMatch, rules[i]);
  57278. if (token !== false) {
  57279. return token;
  57280. } else if (this._backtrack) {
  57281. match = false;
  57282. continue; // rule action called reject() implying a rule MISmatch.
  57283. } else {
  57284. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  57285. return false;
  57286. }
  57287. } else if (!this.options.flex) {
  57288. break;
  57289. }
  57290. }
  57291. }
  57292. if (match) {
  57293. token = this.test_match(match, rules[index]);
  57294. if (token !== false) {
  57295. return token;
  57296. }
  57297. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  57298. return false;
  57299. }
  57300. if (this._input === "") {
  57301. return this.EOF;
  57302. } else {
  57303. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  57304. text: "",
  57305. token: null,
  57306. line: this.yylineno
  57307. });
  57308. }
  57309. },
  57310. // return next match that has a token
  57311. lex:function lex () {
  57312. var r = this.next();
  57313. if (r) {
  57314. return r;
  57315. } else {
  57316. return this.lex();
  57317. }
  57318. },
  57319. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  57320. begin:function begin (condition) {
  57321. this.conditionStack.push(condition);
  57322. },
  57323. // pop the previously active lexer condition state off the condition stack
  57324. popState:function popState () {
  57325. var n = this.conditionStack.length - 1;
  57326. if (n > 0) {
  57327. return this.conditionStack.pop();
  57328. } else {
  57329. return this.conditionStack[0];
  57330. }
  57331. },
  57332. // produce the lexer rule set which is active for the currently active lexer condition state
  57333. _currentRules:function _currentRules () {
  57334. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  57335. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  57336. } else {
  57337. return this.conditions["INITIAL"].rules;
  57338. }
  57339. },
  57340. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  57341. topState:function topState (n) {
  57342. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  57343. if (n >= 0) {
  57344. return this.conditionStack[n];
  57345. } else {
  57346. return "INITIAL";
  57347. }
  57348. },
  57349. // alias for begin(condition)
  57350. pushState:function pushState (condition) {
  57351. this.begin(condition);
  57352. },
  57353. // return the number of states currently on the stack
  57354. stateStackSize:function stateStackSize() {
  57355. return this.conditionStack.length;
  57356. },
  57357. options: {"case-insensitive":true},
  57358. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  57359. var YYSTATE=YY_START;
  57360. switch($avoiding_name_collisions) {
  57361. case 0:return 10;
  57362. break;
  57363. case 1:/* skip whitespace */
  57364. break;
  57365. case 2:/* skip comments */
  57366. break;
  57367. case 3:/* skip comments */
  57368. break;
  57369. case 4:return 4;
  57370. break;
  57371. case 5:return 11;
  57372. break;
  57373. case 6:return 12;
  57374. break;
  57375. case 7:return 13;
  57376. break;
  57377. case 8:return 14;
  57378. break;
  57379. case 9:return ':';
  57380. break;
  57381. case 10:return 6;
  57382. break;
  57383. case 11:return 'INVALID';
  57384. break;
  57385. }
  57386. },
  57387. rules: [/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],
  57388. conditions: {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11],"inclusive":true}}
  57389. });
  57390. return lexer;
  57391. })();
  57392. parser.lexer = lexer;
  57393. function Parser () {
  57394. this.yy = {};
  57395. }
  57396. Parser.prototype = parser;parser.Parser = Parser;
  57397. return new Parser;
  57398. })();
  57399. if (true) {
  57400. exports.parser = parser;
  57401. exports.Parser = parser.Parser;
  57402. exports.parse = function () { return parser.parse.apply(parser, arguments); };
  57403. exports.main = function commonjsMain (args) {
  57404. if (!args[1]) {
  57405. console.log('Usage: '+args[0]+' FILE');
  57406. process.exit(1);
  57407. }
  57408. 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");
  57409. return exports.parser.parse(source);
  57410. };
  57411. if ( true && __webpack_require__.c[__webpack_require__.s] === module) {
  57412. exports.main(process.argv.slice(1));
  57413. }
  57414. }
  57415. /* 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)))
  57416. /***/ }),
  57417. /***/ "./src/diagrams/user-journey/styles.js":
  57418. /*!*********************************************!*\
  57419. !*** ./src/diagrams/user-journey/styles.js ***!
  57420. \*********************************************/
  57421. /*! exports provided: default */
  57422. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57423. "use strict";
  57424. __webpack_require__.r(__webpack_exports__);
  57425. var getStyles = function getStyles(options) {
  57426. return ".label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: ".concat(options.textColor, ";\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ").concat(options.textColor, "\n }\n\n .legend {\n fill: ").concat(options.textColor, ";\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ").concat(options.textColor, "\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(options.arrowheadColor, ";\n }\n\n .edgePath .path {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(options.lineColor, ";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(options.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(options.secondBkg, ";\n stroke: ").concat(options.clusterBorder, ";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(options.titleColor, ";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ").concat(options.secondBkg, ";\n border: 1px solid ").concat(options.border2, ";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ").concat(options.fillType0 ? "fill: ".concat(options.fillType0) : '', ";\n }\n .task-type-1, .section-type-1 {\n ").concat(options.fillType0 ? "fill: ".concat(options.fillType1) : '', ";\n }\n .task-type-2, .section-type-2 {\n ").concat(options.fillType0 ? "fill: ".concat(options.fillType2) : '', ";\n }\n .task-type-3, .section-type-3 {\n ").concat(options.fillType0 ? "fill: ".concat(options.fillType3) : '', ";\n }\n .task-type-4, .section-type-4 {\n ").concat(options.fillType0 ? "fill: ".concat(options.fillType4) : '', ";\n }\n .task-type-5, .section-type-5 {\n ").concat(options.fillType0 ? "fill: ".concat(options.fillType5) : '', ";\n }\n .task-type-6, .section-type-6 {\n ").concat(options.fillType0 ? "fill: ".concat(options.fillType6) : '', ";\n }\n .task-type-7, .section-type-7 {\n ").concat(options.fillType0 ? "fill: ".concat(options.fillType7) : '', ";\n }\n");
  57427. };
  57428. /* harmony default export */ __webpack_exports__["default"] = (getStyles);
  57429. /***/ }),
  57430. /***/ "./src/diagrams/user-journey/svgDraw.js":
  57431. /*!**********************************************!*\
  57432. !*** ./src/diagrams/user-journey/svgDraw.js ***!
  57433. \**********************************************/
  57434. /*! exports provided: drawRect, drawFace, drawCircle, drawText, drawLabel, drawSection, drawTask, drawBackgroundRect, getTextObj, getNoteRect, default */
  57435. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57436. "use strict";
  57437. __webpack_require__.r(__webpack_exports__);
  57438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawRect", function() { return drawRect; });
  57439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawFace", function() { return drawFace; });
  57440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawCircle", function() { return drawCircle; });
  57441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawText", function() { return drawText; });
  57442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawLabel", function() { return drawLabel; });
  57443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawSection", function() { return drawSection; });
  57444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawTask", function() { return drawTask; });
  57445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawBackgroundRect", function() { return drawBackgroundRect; });
  57446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTextObj", function() { return getTextObj; });
  57447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNoteRect", function() { return getNoteRect; });
  57448. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  57449. var drawRect = function drawRect(elem, rectData) {
  57450. var rectElem = elem.append('rect');
  57451. rectElem.attr('x', rectData.x);
  57452. rectElem.attr('y', rectData.y);
  57453. rectElem.attr('fill', rectData.fill);
  57454. rectElem.attr('stroke', rectData.stroke);
  57455. rectElem.attr('width', rectData.width);
  57456. rectElem.attr('height', rectData.height);
  57457. rectElem.attr('rx', rectData.rx);
  57458. rectElem.attr('ry', rectData.ry);
  57459. if (typeof rectData.class !== 'undefined') {
  57460. rectElem.attr('class', rectData.class);
  57461. }
  57462. return rectElem;
  57463. };
  57464. var drawFace = function drawFace(element, faceData) {
  57465. var radius = 15;
  57466. var circleElement = element.append('circle').attr('cx', faceData.cx).attr('cy', faceData.cy).attr('class', 'face').attr('r', radius).attr('stroke-width', 2).attr('overflow', 'visible');
  57467. var face = element.append('g'); //left eye
  57468. face.append('circle').attr('cx', faceData.cx - radius / 3).attr('cy', faceData.cy - radius / 3).attr('r', 1.5).attr('stroke-width', 2).attr('fill', '#666').attr('stroke', '#666'); //right eye
  57469. face.append('circle').attr('cx', faceData.cx + radius / 3).attr('cy', faceData.cy - radius / 3).attr('r', 1.5).attr('stroke-width', 2).attr('fill', '#666').attr('stroke', '#666');
  57470. function smile(face) {
  57471. var arc = Object(d3__WEBPACK_IMPORTED_MODULE_0__["arc"])().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2); //mouth
  57472. face.append('path').attr('class', 'mouth').attr('d', arc).attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 2) + ')');
  57473. }
  57474. function sad(face) {
  57475. var arc = Object(d3__WEBPACK_IMPORTED_MODULE_0__["arc"])().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2); //mouth
  57476. face.append('path').attr('class', 'mouth').attr('d', arc).attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 7) + ')');
  57477. }
  57478. function ambivalent(face) {
  57479. face.append('line').attr('class', 'mouth').attr('stroke', 2).attr('x1', faceData.cx - 5).attr('y1', faceData.cy + 7).attr('x2', faceData.cx + 5).attr('y2', faceData.cy + 7).attr('class', 'mouth').attr('stroke-width', '1px').attr('stroke', '#666');
  57480. }
  57481. if (faceData.score > 3) {
  57482. smile(face);
  57483. } else if (faceData.score < 3) {
  57484. sad(face);
  57485. } else {
  57486. ambivalent(face);
  57487. }
  57488. return circleElement;
  57489. };
  57490. var drawCircle = function drawCircle(element, circleData) {
  57491. var circleElement = element.append('circle');
  57492. circleElement.attr('cx', circleData.cx);
  57493. circleElement.attr('cy', circleData.cy);
  57494. circleElement.attr('fill', circleData.fill);
  57495. circleElement.attr('stroke', circleData.stroke);
  57496. circleElement.attr('r', circleData.r);
  57497. if (typeof circleElement.class !== 'undefined') {
  57498. circleElement.attr('class', circleElement.class);
  57499. }
  57500. if (typeof circleData.title !== 'undefined') {
  57501. circleElement.append('title').text(circleData.title);
  57502. }
  57503. return circleElement;
  57504. };
  57505. var drawText = function drawText(elem, textData) {
  57506. // Remove and ignore br:s
  57507. var nText = textData.text.replace(/<br\s*\/?>/gi, ' ');
  57508. var textElem = elem.append('text');
  57509. textElem.attr('x', textData.x);
  57510. textElem.attr('y', textData.y);
  57511. textElem.attr('class', 'legend');
  57512. textElem.style('text-anchor', textData.anchor);
  57513. if (typeof textData.class !== 'undefined') {
  57514. textElem.attr('class', textData.class);
  57515. }
  57516. var span = textElem.append('tspan');
  57517. span.attr('x', textData.x + textData.textMargin * 2);
  57518. span.text(nText);
  57519. return textElem;
  57520. };
  57521. var drawLabel = function drawLabel(elem, txtObject) {
  57522. function genPoints(x, y, width, height, cut) {
  57523. return x + ',' + y + ' ' + (x + width) + ',' + y + ' ' + (x + width) + ',' + (y + height - cut) + ' ' + (x + width - cut * 1.2) + ',' + (y + height) + ' ' + x + ',' + (y + height);
  57524. }
  57525. var polygon = elem.append('polygon');
  57526. polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));
  57527. polygon.attr('class', 'labelBox');
  57528. txtObject.y = txtObject.y + txtObject.labelMargin;
  57529. txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;
  57530. drawText(elem, txtObject);
  57531. };
  57532. var drawSection = function drawSection(elem, section, conf) {
  57533. var g = elem.append('g');
  57534. var rect = getNoteRect();
  57535. rect.x = section.x;
  57536. rect.y = section.y;
  57537. rect.fill = section.fill;
  57538. rect.width = conf.width;
  57539. rect.height = conf.height;
  57540. rect.class = 'journey-section section-type-' + section.num;
  57541. rect.rx = 3;
  57542. rect.ry = 3;
  57543. drawRect(g, rect);
  57544. _drawTextCandidateFunc(conf)(section.text, g, rect.x, rect.y, rect.width, rect.height, {
  57545. class: 'journey-section section-type-' + section.num
  57546. }, conf, section.colour);
  57547. };
  57548. var taskCount = -1;
  57549. /**
  57550. * Draws an actor in the diagram with the attaced line
  57551. * @param elem The HTML element
  57552. * @param task The task to render
  57553. * @param conf The global configuration
  57554. */
  57555. var drawTask = function drawTask(elem, task, conf) {
  57556. var center = task.x + conf.width / 2;
  57557. var g = elem.append('g');
  57558. taskCount++;
  57559. var maxHeight = 300 + 5 * 30;
  57560. g.append('line').attr('id', 'task' + taskCount).attr('x1', center).attr('y1', task.y).attr('x2', center).attr('y2', maxHeight).attr('class', 'task-line').attr('stroke-width', '1px').attr('stroke-dasharray', '4 2').attr('stroke', '#666');
  57561. drawFace(g, {
  57562. cx: center,
  57563. cy: 300 + (5 - task.score) * 30,
  57564. score: task.score
  57565. });
  57566. var rect = getNoteRect();
  57567. rect.x = task.x;
  57568. rect.y = task.y;
  57569. rect.fill = task.fill;
  57570. rect.width = conf.width;
  57571. rect.height = conf.height;
  57572. rect.class = 'task task-type-' + task.num;
  57573. rect.rx = 3;
  57574. rect.ry = 3;
  57575. drawRect(g, rect);
  57576. var xPos = task.x + 14;
  57577. task.people.forEach(function (person) {
  57578. var colour = task.actors[person];
  57579. var circle = {
  57580. cx: xPos,
  57581. cy: task.y,
  57582. r: 7,
  57583. fill: colour,
  57584. stroke: '#000',
  57585. title: person
  57586. };
  57587. drawCircle(g, circle);
  57588. xPos += 10;
  57589. });
  57590. _drawTextCandidateFunc(conf)(task.task, g, rect.x, rect.y, rect.width, rect.height, {
  57591. class: 'task'
  57592. }, conf, task.colour);
  57593. };
  57594. /**
  57595. * Draws a background rectangle
  57596. * @param elem The html element
  57597. * @param bounds The bounds of the drawing
  57598. */
  57599. var drawBackgroundRect = function drawBackgroundRect(elem, bounds) {
  57600. var rectElem = drawRect(elem, {
  57601. x: bounds.startx,
  57602. y: bounds.starty,
  57603. width: bounds.stopx - bounds.startx,
  57604. height: bounds.stopy - bounds.starty,
  57605. fill: bounds.fill,
  57606. class: 'rect'
  57607. });
  57608. rectElem.lower();
  57609. };
  57610. var getTextObj = function getTextObj() {
  57611. return {
  57612. x: 0,
  57613. y: 0,
  57614. fill: undefined,
  57615. 'text-anchor': 'start',
  57616. width: 100,
  57617. height: 100,
  57618. textMargin: 0,
  57619. rx: 0,
  57620. ry: 0
  57621. };
  57622. };
  57623. var getNoteRect = function getNoteRect() {
  57624. return {
  57625. x: 0,
  57626. y: 0,
  57627. width: 100,
  57628. anchor: 'start',
  57629. height: 100,
  57630. rx: 0,
  57631. ry: 0
  57632. };
  57633. };
  57634. var _drawTextCandidateFunc = function () {
  57635. function byText(content, g, x, y, width, height, textAttrs, colour) {
  57636. var text = g.append('text').attr('x', x + width / 2).attr('y', y + height / 2 + 5).style('font-color', colour).style('text-anchor', 'middle').text(content);
  57637. _setTextAttrs(text, textAttrs);
  57638. }
  57639. function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {
  57640. var taskFontSize = conf.taskFontSize,
  57641. taskFontFamily = conf.taskFontFamily;
  57642. var lines = content.split(/<br\s*\/?>/gi);
  57643. for (var i = 0; i < lines.length; i++) {
  57644. var dy = i * taskFontSize - taskFontSize * (lines.length - 1) / 2;
  57645. var text = g.append('text').attr('x', x + width / 2).attr('y', y).attr('fill', colour).style('text-anchor', 'middle').style('font-size', taskFontSize).style('font-family', taskFontFamily);
  57646. text.append('tspan').attr('x', x + width / 2).attr('dy', dy).text(lines[i]);
  57647. text.attr('y', y + height / 2.0).attr('dominant-baseline', 'central').attr('alignment-baseline', 'central');
  57648. _setTextAttrs(text, textAttrs);
  57649. }
  57650. }
  57651. function byFo(content, g, x, y, width, height, textAttrs, conf) {
  57652. var body = g.append('switch');
  57653. var f = body.append('foreignObject').attr('x', x).attr('y', y).attr('width', width).attr('height', height).attr('position', 'fixed');
  57654. var text = f.append('div').style('display', 'table').style('height', '100%').style('width', '100%');
  57655. text.append('div').attr('class', 'label').style('display', 'table-cell').style('text-align', 'center').style('vertical-align', 'middle') // .style('color', colour)
  57656. .text(content);
  57657. byTspan(content, body, x, y, width, height, textAttrs, conf);
  57658. _setTextAttrs(text, textAttrs);
  57659. }
  57660. function _setTextAttrs(toText, fromTextAttrsDict) {
  57661. for (var key in fromTextAttrsDict) {
  57662. if (key in fromTextAttrsDict) {
  57663. // eslint-disable-line
  57664. // noinspection JSUnfilteredForInLoop
  57665. toText.attr(key, fromTextAttrsDict[key]);
  57666. }
  57667. }
  57668. }
  57669. return function (conf) {
  57670. return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;
  57671. };
  57672. }();
  57673. var initGraphics = function initGraphics(graphics) {
  57674. graphics.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
  57675. };
  57676. /* harmony default export */ __webpack_exports__["default"] = ({
  57677. drawRect: drawRect,
  57678. drawCircle: drawCircle,
  57679. drawSection: drawSection,
  57680. drawText: drawText,
  57681. drawLabel: drawLabel,
  57682. drawTask: drawTask,
  57683. drawBackgroundRect: drawBackgroundRect,
  57684. getTextObj: getTextObj,
  57685. getNoteRect: getNoteRect,
  57686. initGraphics: initGraphics
  57687. });
  57688. /***/ }),
  57689. /***/ "./src/errorRenderer.js":
  57690. /*!******************************!*\
  57691. !*** ./src/errorRenderer.js ***!
  57692. \******************************/
  57693. /*! exports provided: setConf, draw, default */
  57694. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57695. "use strict";
  57696. __webpack_require__.r(__webpack_exports__);
  57697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConf", function() { return setConf; });
  57698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "draw", function() { return draw; });
  57699. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  57700. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./logger */ "./src/logger.js");
  57701. /**
  57702. * Created by knut on 14-12-11.
  57703. */
  57704. var conf = {};
  57705. var setConf = function setConf(cnf) {
  57706. var keys = Object.keys(cnf);
  57707. keys.forEach(function (key) {
  57708. conf[key] = cnf[key];
  57709. });
  57710. };
  57711. /**
  57712. * Draws a an info picture in the tag with id: id based on the graph definition in text.
  57713. * @param text
  57714. * @param id
  57715. */
  57716. var draw = function draw(id, ver) {
  57717. try {
  57718. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('Renering svg for syntax error\n');
  57719. var svg = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('#' + id);
  57720. var g = svg.append('g');
  57721. g.append('path').attr('class', 'error-icon').attr('d', 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z');
  57722. g.append('path').attr('class', 'error-icon').attr('d', 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z');
  57723. g.append('path').attr('class', 'error-icon').attr('d', 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z');
  57724. g.append('path').attr('class', 'error-icon').attr('d', 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z');
  57725. g.append('path').attr('class', 'error-icon').attr('d', 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z');
  57726. g.append('path').attr('class', 'error-icon').attr('d', 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z');
  57727. g.append('text') // text label for the x axis
  57728. .attr('class', 'error-text').attr('x', 1240).attr('y', 250).attr('font-size', '150px').style('text-anchor', 'middle').text('Syntax error in graph');
  57729. g.append('text') // text label for the x axis
  57730. .attr('class', 'error-text').attr('x', 1050).attr('y', 400).attr('font-size', '100px').style('text-anchor', 'middle').text('mermaid version ' + ver);
  57731. svg.attr('height', 100);
  57732. svg.attr('width', 400);
  57733. svg.attr('viewBox', '768 0 512 512');
  57734. } catch (e) {
  57735. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].error('Error while rendering info diagram');
  57736. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].error(e.message);
  57737. }
  57738. };
  57739. /* harmony default export */ __webpack_exports__["default"] = ({
  57740. setConf: setConf,
  57741. draw: draw
  57742. });
  57743. /***/ }),
  57744. /***/ "./src/logger.js":
  57745. /*!***********************!*\
  57746. !*** ./src/logger.js ***!
  57747. \***********************/
  57748. /*! exports provided: LEVELS, logger, setLogLevel */
  57749. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57750. "use strict";
  57751. __webpack_require__.r(__webpack_exports__);
  57752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LEVELS", function() { return LEVELS; });
  57753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logger", function() { return logger; });
  57754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLogLevel", function() { return setLogLevel; });
  57755. /* harmony import */ var moment_mini__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment-mini */ "./node_modules/moment-mini/moment.min.js");
  57756. /* harmony import */ var moment_mini__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment_mini__WEBPACK_IMPORTED_MODULE_0__);
  57757. //
  57758. var LEVELS = {
  57759. debug: 1,
  57760. info: 2,
  57761. warn: 3,
  57762. error: 4,
  57763. fatal: 5
  57764. };
  57765. var logger = {
  57766. debug: function debug() {},
  57767. info: function info() {},
  57768. warn: function warn() {},
  57769. error: function error() {},
  57770. fatal: function fatal() {}
  57771. };
  57772. var setLogLevel = function setLogLevel() {
  57773. var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fatal';
  57774. if (isNaN(level)) {
  57775. level = level.toLowerCase();
  57776. if (LEVELS[level] !== undefined) {
  57777. level = LEVELS[level];
  57778. }
  57779. }
  57780. logger.trace = function () {};
  57781. logger.debug = function () {};
  57782. logger.info = function () {};
  57783. logger.warn = function () {};
  57784. logger.error = function () {};
  57785. logger.fatal = function () {};
  57786. if (level <= LEVELS.fatal) {
  57787. logger.fatal = console.error ? console.error.bind(console, format('FATAL'), 'color: orange') : console.log.bind(console, '\x1b[35m', format('FATAL'));
  57788. }
  57789. if (level <= LEVELS.error) {
  57790. logger.error = console.error ? console.error.bind(console, format('ERROR'), 'color: orange') : console.log.bind(console, '\x1b[31m', format('ERROR'));
  57791. }
  57792. if (level <= LEVELS.warn) {
  57793. logger.warn = console.warn ? console.warn.bind(console, format('WARN'), 'color: orange') : console.log.bind(console, "\x1B[33m", format('WARN'));
  57794. }
  57795. if (level <= LEVELS.info) {
  57796. logger.info = console.info ? // ? console.info.bind(console, '\x1b[34m', format('INFO'), 'color: blue')
  57797. console.info.bind(console, format('INFO'), 'color: lightblue') : console.log.bind(console, '\x1b[34m', format('INFO'));
  57798. }
  57799. if (level <= LEVELS.debug) {
  57800. logger.debug = console.debug ? console.debug.bind(console, format('DEBUG'), 'color: lightgreen') : console.log.bind(console, '\x1b[32m', format('DEBUG'));
  57801. }
  57802. };
  57803. var format = function format(level) {
  57804. var time = moment_mini__WEBPACK_IMPORTED_MODULE_0___default()().format('ss.SSS');
  57805. return "%c".concat(time, " : ").concat(level, " : ");
  57806. };
  57807. /***/ }),
  57808. /***/ "./src/mermaid.js":
  57809. /*!************************!*\
  57810. !*** ./src/mermaid.js ***!
  57811. \************************/
  57812. /*! exports provided: default */
  57813. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57814. "use strict";
  57815. __webpack_require__.r(__webpack_exports__);
  57816. /* harmony import */ var entity_decode_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! entity-decode/browser */ "./node_modules/entity-decode/browser.js");
  57817. /* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mermaidAPI */ "./src/mermaidAPI.js");
  57818. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logger */ "./src/logger.js");
  57819. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
  57820. /**
  57821. * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render
  57822. * the diagrams to svg code.
  57823. */
  57824. // import { decode } from 'he';
  57825. /**
  57826. * ## init
  57827. * Function that goes through the document to find the chart definitions in there and render them.
  57828. *
  57829. * The function tags the processed attributes with the attribute data-processed and ignores found elements with the
  57830. * attribute already set. This way the init function can be triggered several times.
  57831. *
  57832. * Optionally, `init` can accept in the second argument one of the following:
  57833. * - a DOM Node
  57834. * - an array of DOM nodes (as would come from a jQuery selector)
  57835. * - a W3C selector, a la `.mermaid`
  57836. *
  57837. * ```mermaid
  57838. * graph LR;
  57839. * a(Find elements)-->b{Processed}
  57840. * b-->|Yes|c(Leave element)
  57841. * b-->|No |d(Transform)
  57842. * ```
  57843. * Renders the mermaid diagrams
  57844. * @param nodes a css selector or an array of nodes
  57845. */
  57846. var init = function init() {
  57847. var _this = this;
  57848. var conf = _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig(); // console.log('Starting rendering diagrams (init) - mermaid.init');
  57849. var nodes;
  57850. if (arguments.length >= 2) {
  57851. /*! sequence config was passed as #1 */
  57852. if (typeof arguments[0] !== 'undefined') {
  57853. mermaid.sequenceConfig = arguments[0];
  57854. }
  57855. nodes = arguments[1];
  57856. } else {
  57857. nodes = arguments[0];
  57858. } // if last argument is a function this is the callback function
  57859. var callback;
  57860. if (typeof arguments[arguments.length - 1] === 'function') {
  57861. callback = arguments[arguments.length - 1];
  57862. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Callback function found');
  57863. } else {
  57864. if (typeof conf.mermaid !== 'undefined') {
  57865. if (typeof conf.mermaid.callback === 'function') {
  57866. callback = conf.mermaid.callback;
  57867. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Callback function found');
  57868. } else {
  57869. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('No Callback function found');
  57870. }
  57871. }
  57872. }
  57873. 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
  57874. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Start On Load before: ' + mermaid.startOnLoad);
  57875. if (typeof mermaid.startOnLoad !== 'undefined') {
  57876. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Start On Load inner: ' + mermaid.startOnLoad);
  57877. _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].initialize({
  57878. startOnLoad: mermaid.startOnLoad
  57879. });
  57880. }
  57881. if (typeof mermaid.ganttConfig !== 'undefined') {
  57882. _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].initialize({
  57883. gantt: mermaid.ganttConfig
  57884. });
  57885. }
  57886. var txt;
  57887. var _loop = function _loop(i) {
  57888. var element = nodes[i];
  57889. /*! Check if previously processed */
  57890. if (!element.getAttribute('data-processed')) {
  57891. element.setAttribute('data-processed', true);
  57892. } else {
  57893. return "continue";
  57894. }
  57895. var id = "mermaid-".concat(Date.now()); // Fetch the graph definition including tags
  57896. txt = element.innerHTML; // transforms the html to pure text
  57897. txt = Object(entity_decode_browser__WEBPACK_IMPORTED_MODULE_0__["default"])(txt).trim().replace(/<br\s*\/?>/gi, '<br/>');
  57898. var init = _utils__WEBPACK_IMPORTED_MODULE_3__["default"].detectInit(txt);
  57899. if (init) {
  57900. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Detected early reinit: ', init);
  57901. }
  57902. try {
  57903. _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].render(id, txt, function (svgCode, bindFunctions) {
  57904. element.innerHTML = svgCode;
  57905. if (typeof callback !== 'undefined') {
  57906. callback(id);
  57907. }
  57908. if (bindFunctions) bindFunctions(element);
  57909. }, element);
  57910. } catch (e) {
  57911. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].warn('Syntax Error rendering');
  57912. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].warn(e);
  57913. if (_this.parseError) {
  57914. _this.parseError(e);
  57915. }
  57916. }
  57917. };
  57918. for (var i = 0; i < nodes.length; i++) {
  57919. var _ret = _loop(i);
  57920. if (_ret === "continue") continue;
  57921. }
  57922. };
  57923. var initialize = function initialize(config) {
  57924. _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].reset();
  57925. if (typeof config.mermaid !== 'undefined') {
  57926. if (typeof config.mermaid.startOnLoad !== 'undefined') {
  57927. mermaid.startOnLoad = config.mermaid.startOnLoad;
  57928. }
  57929. if (typeof config.mermaid.htmlLabels !== 'undefined') {
  57930. mermaid.htmlLabels = config.mermaid.htmlLabels;
  57931. }
  57932. }
  57933. _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].initialize(config); // mermaidAPI.reset();
  57934. };
  57935. /**
  57936. * ##contentLoaded
  57937. * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and
  57938. * calls init for rendering the mermaid diagrams on the page.
  57939. */
  57940. var contentLoaded = function contentLoaded() {
  57941. var config;
  57942. if (mermaid.startOnLoad) {
  57943. // No config found, do check API config
  57944. config = _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig();
  57945. if (config.startOnLoad) {
  57946. mermaid.init();
  57947. }
  57948. } else {
  57949. if (typeof mermaid.startOnLoad === 'undefined') {
  57950. _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('In start, no config');
  57951. config = _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig();
  57952. if (config.startOnLoad) {
  57953. mermaid.init();
  57954. }
  57955. }
  57956. }
  57957. };
  57958. if (typeof document !== 'undefined') {
  57959. /*!
  57960. * Wait for document loaded before starting the execution
  57961. */
  57962. window.addEventListener('load', function () {
  57963. contentLoaded();
  57964. }, false);
  57965. }
  57966. var mermaid = {
  57967. startOnLoad: true,
  57968. htmlLabels: true,
  57969. mermaidAPI: _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"],
  57970. parse: _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].parse,
  57971. render: _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].render,
  57972. init: init,
  57973. initialize: initialize,
  57974. contentLoaded: contentLoaded
  57975. };
  57976. /* harmony default export */ __webpack_exports__["default"] = (mermaid);
  57977. /***/ }),
  57978. /***/ "./src/mermaidAPI.js":
  57979. /*!***************************!*\
  57980. !*** ./src/mermaidAPI.js ***!
  57981. \***************************/
  57982. /*! exports provided: encodeEntities, decodeEntities, default */
  57983. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57984. "use strict";
  57985. __webpack_require__.r(__webpack_exports__);
  57986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "encodeEntities", function() { return encodeEntities; });
  57987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "decodeEntities", function() { return decodeEntities; });
  57988. /* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/stylis.js");
  57989. /* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(stylis__WEBPACK_IMPORTED_MODULE_0__);
  57990. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  57991. /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../package.json */ "./package.json");
  57992. var _package_json__WEBPACK_IMPORTED_MODULE_2___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../package.json */ "./package.json", 1);
  57993. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config */ "./src/config.js");
  57994. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./logger */ "./src/logger.js");
  57995. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
  57996. /* harmony import */ var _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./diagrams/flowchart/flowRenderer */ "./src/diagrams/flowchart/flowRenderer.js");
  57997. /* harmony import */ var _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./diagrams/flowchart/flowRenderer-v2 */ "./src/diagrams/flowchart/flowRenderer-v2.js");
  57998. /* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./diagrams/flowchart/parser/flow */ "./src/diagrams/flowchart/parser/flow.jison");
  57999. /* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8__);
  58000. /* harmony import */ var _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./diagrams/flowchart/flowDb */ "./src/diagrams/flowchart/flowDb.js");
  58001. /* harmony import */ var _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./diagrams/sequence/sequenceRenderer */ "./src/diagrams/sequence/sequenceRenderer.js");
  58002. /* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./diagrams/sequence/parser/sequenceDiagram */ "./src/diagrams/sequence/parser/sequenceDiagram.jison");
  58003. /* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11__);
  58004. /* harmony import */ var _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./diagrams/sequence/sequenceDb */ "./src/diagrams/sequence/sequenceDb.js");
  58005. /* harmony import */ var _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./diagrams/gantt/ganttRenderer */ "./src/diagrams/gantt/ganttRenderer.js");
  58006. /* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diagrams/gantt/parser/gantt */ "./src/diagrams/gantt/parser/gantt.jison");
  58007. /* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14__);
  58008. /* harmony import */ var _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./diagrams/gantt/ganttDb */ "./src/diagrams/gantt/ganttDb.js");
  58009. /* harmony import */ var _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./diagrams/class/classRenderer */ "./src/diagrams/class/classRenderer.js");
  58010. /* harmony import */ var _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./diagrams/class/classRenderer-v2 */ "./src/diagrams/class/classRenderer-v2.js");
  58011. /* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./diagrams/class/parser/classDiagram */ "./src/diagrams/class/parser/classDiagram.jison");
  58012. /* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18__);
  58013. /* harmony import */ var _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./diagrams/class/classDb */ "./src/diagrams/class/classDb.js");
  58014. /* harmony import */ var _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./diagrams/state/stateRenderer */ "./src/diagrams/state/stateRenderer.js");
  58015. /* harmony import */ var _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./diagrams/state/stateRenderer-v2 */ "./src/diagrams/state/stateRenderer-v2.js");
  58016. /* harmony import */ var _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./diagrams/state/parser/stateDiagram */ "./src/diagrams/state/parser/stateDiagram.jison");
  58017. /* harmony import */ var _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22__);
  58018. /* harmony import */ var _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./diagrams/state/stateDb */ "./src/diagrams/state/stateDb.js");
  58019. /* harmony import */ var _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./diagrams/git/gitGraphRenderer */ "./src/diagrams/git/gitGraphRenderer.js");
  58020. /* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./diagrams/git/parser/gitGraph */ "./src/diagrams/git/parser/gitGraph.jison");
  58021. /* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25__);
  58022. /* harmony import */ var _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./diagrams/git/gitGraphAst */ "./src/diagrams/git/gitGraphAst.js");
  58023. /* harmony import */ var _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./diagrams/info/infoRenderer */ "./src/diagrams/info/infoRenderer.js");
  58024. /* harmony import */ var _errorRenderer__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./errorRenderer */ "./src/errorRenderer.js");
  58025. /* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./diagrams/info/parser/info */ "./src/diagrams/info/parser/info.jison");
  58026. /* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(_diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29__);
  58027. /* harmony import */ var _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./diagrams/info/infoDb */ "./src/diagrams/info/infoDb.js");
  58028. /* harmony import */ var _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./diagrams/pie/pieRenderer */ "./src/diagrams/pie/pieRenderer.js");
  58029. /* harmony import */ var _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./diagrams/pie/parser/pie */ "./src/diagrams/pie/parser/pie.jison");
  58030. /* harmony import */ var _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(_diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32__);
  58031. /* harmony import */ var _diagrams_pie_pieDb__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./diagrams/pie/pieDb */ "./src/diagrams/pie/pieDb.js");
  58032. /* harmony import */ var _diagrams_er_erDb__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./diagrams/er/erDb */ "./src/diagrams/er/erDb.js");
  58033. /* harmony import */ var _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./diagrams/er/parser/erDiagram */ "./src/diagrams/er/parser/erDiagram.jison");
  58034. /* harmony import */ var _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(_diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35__);
  58035. /* harmony import */ var _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./diagrams/er/erRenderer */ "./src/diagrams/er/erRenderer.js");
  58036. /* harmony import */ var _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./diagrams/user-journey/parser/journey */ "./src/diagrams/user-journey/parser/journey.jison");
  58037. /* harmony import */ var _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(_diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37__);
  58038. /* harmony import */ var _diagrams_user_journey_journeyDb__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./diagrams/user-journey/journeyDb */ "./src/diagrams/user-journey/journeyDb.js");
  58039. /* harmony import */ var _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./diagrams/user-journey/journeyRenderer */ "./src/diagrams/user-journey/journeyRenderer.js");
  58040. /* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./styles */ "./src/styles.js");
  58041. /* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js");
  58042. function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  58043. /**
  58044. * This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.
  58045. *
  58046. * The core of this api is the [**render**](Setup.md?id=render) function which, given a graph
  58047. * definition as text, renders the graph/diagram and returns an svg element for the graph.
  58048. *
  58049. * It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.
  58050. *
  58051. * In addition to the render function, a number of behavioral configuration options are available.
  58052. *
  58053. * @name mermaidAPI
  58054. */
  58055. function parse(text) {
  58056. var graphInit = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectInit(text);
  58057. if (graphInit) {
  58058. reinitialize(graphInit);
  58059. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('reinit ', graphInit);
  58060. }
  58061. var graphType = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectType(text);
  58062. var parser;
  58063. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('Type ' + graphType);
  58064. switch (graphType) {
  58065. case 'git':
  58066. parser = _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25___default.a;
  58067. parser.parser.yy = _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_26__["default"];
  58068. break;
  58069. case 'flowchart':
  58070. _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"].clear();
  58071. parser = _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8___default.a;
  58072. parser.parser.yy = _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"];
  58073. break;
  58074. case 'flowchart-v2':
  58075. _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"].clear();
  58076. parser = _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8___default.a;
  58077. parser.parser.yy = _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"];
  58078. break;
  58079. case 'sequence':
  58080. parser = _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11___default.a;
  58081. parser.parser.yy = _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_12__["default"];
  58082. break;
  58083. case 'gantt':
  58084. parser = _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14___default.a;
  58085. parser.parser.yy = _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_15__["default"];
  58086. break;
  58087. case 'class':
  58088. parser = _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18___default.a;
  58089. parser.parser.yy = _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__["default"];
  58090. break;
  58091. case 'classDiagram':
  58092. parser = _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18___default.a;
  58093. parser.parser.yy = _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__["default"];
  58094. break;
  58095. case 'state':
  58096. parser = _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22___default.a;
  58097. parser.parser.yy = _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_23__["default"];
  58098. break;
  58099. case 'stateDiagram':
  58100. parser = _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22___default.a;
  58101. parser.parser.yy = _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_23__["default"];
  58102. break;
  58103. case 'info':
  58104. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('info info info');
  58105. parser = _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29___default.a;
  58106. parser.parser.yy = _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_30__["default"];
  58107. break;
  58108. case 'pie':
  58109. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('pie');
  58110. parser = _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32___default.a;
  58111. parser.parser.yy = _diagrams_pie_pieDb__WEBPACK_IMPORTED_MODULE_33__["default"];
  58112. break;
  58113. case 'er':
  58114. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('er');
  58115. parser = _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35___default.a;
  58116. parser.parser.yy = _diagrams_er_erDb__WEBPACK_IMPORTED_MODULE_34__["default"];
  58117. break;
  58118. case 'journey':
  58119. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('Journey');
  58120. parser = _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37___default.a;
  58121. parser.parser.yy = _diagrams_user_journey_journeyDb__WEBPACK_IMPORTED_MODULE_38__["default"];
  58122. break;
  58123. }
  58124. parser.parser.yy.graphType = graphType;
  58125. parser.parser.yy.parseError = function (str, hash) {
  58126. var error = {
  58127. str: str,
  58128. hash: hash
  58129. };
  58130. throw error;
  58131. };
  58132. parser.parse(text);
  58133. return parser;
  58134. }
  58135. var encodeEntities = function encodeEntities(text) {
  58136. var txt = text;
  58137. txt = txt.replace(/style.*:\S*#.*;/g, function (s) {
  58138. var innerTxt = s.substring(0, s.length - 1);
  58139. return innerTxt;
  58140. });
  58141. txt = txt.replace(/classDef.*:\S*#.*;/g, function (s) {
  58142. var innerTxt = s.substring(0, s.length - 1);
  58143. return innerTxt;
  58144. });
  58145. txt = txt.replace(/#\w+;/g, function (s) {
  58146. var innerTxt = s.substring(1, s.length - 1);
  58147. var isInt = /^\+?\d+$/.test(innerTxt);
  58148. if (isInt) {
  58149. return 'fl°°' + innerTxt + '¶ß';
  58150. } else {
  58151. return 'fl°' + innerTxt + '¶ß';
  58152. }
  58153. });
  58154. return txt;
  58155. };
  58156. var decodeEntities = function decodeEntities(text) {
  58157. var txt = text;
  58158. txt = txt.replace(/fl°°/g, function () {
  58159. return '&#';
  58160. });
  58161. txt = txt.replace(/fl°/g, function () {
  58162. return '&';
  58163. });
  58164. txt = txt.replace(/¶ß/g, function () {
  58165. return ';';
  58166. });
  58167. return txt;
  58168. };
  58169. /**
  58170. * Function that renders an svg with a graph from a chart definition. Usage example below.
  58171. *
  58172. * ```js
  58173. * mermaidAPI.initialize({
  58174. * startOnLoad:true
  58175. * });
  58176. * $(function(){
  58177. * const graphDefinition = 'graph TB\na-->b';
  58178. * const cb = function(svgGraph){
  58179. * console.log(svgGraph);
  58180. * };
  58181. * mermaidAPI.render('id1',graphDefinition,cb);
  58182. * });
  58183. *```
  58184. * @param id the id of the element to be rendered
  58185. * @param _txt the graph definition
  58186. * @param cb callback which is called after rendering is finished with the svg code as inparam.
  58187. * @param container selector to element in which a div with the graph temporarily will be inserted. In one is
  58188. * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is
  58189. * completed.
  58190. */
  58191. var render = function render(id, _txt, cb, container) {
  58192. var txt = _txt;
  58193. var graphInit = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectInit(txt);
  58194. if (graphInit) {
  58195. reinitialize(graphInit);
  58196. } else {
  58197. _config__WEBPACK_IMPORTED_MODULE_3__["default"].reset();
  58198. var siteConfig = Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])();
  58199. updateRendererConfigs(siteConfig);
  58200. }
  58201. var cnf = Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])(); // Check the maximum allowed text size
  58202. if (_txt.length > cnf.maxTextSize) {
  58203. txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';
  58204. }
  58205. if (typeof container !== 'undefined') {
  58206. container.innerHTML = '';
  58207. Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])(container).append('div').attr('id', 'd' + id).attr('style', 'font-family: ' + cnf.fontFamily).append('svg').attr('id', id).attr('width', '100%').attr('xmlns', 'http://www.w3.org/2000/svg').append('g');
  58208. } else {
  58209. var existingSvg = document.getElementById(id);
  58210. if (existingSvg) {
  58211. existingSvg.remove();
  58212. }
  58213. var _element = document.querySelector('#' + 'd' + id);
  58214. if (_element) {
  58215. _element.remove();
  58216. }
  58217. Object(d3__WEBPACK_IMPORTED_MODULE_1__["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');
  58218. }
  58219. window.txt = txt;
  58220. txt = encodeEntities(txt);
  58221. var element = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#d' + id).node();
  58222. var graphType = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectType(txt); // insert inline style into svg
  58223. var svg = element.firstChild;
  58224. var firstChild = svg.firstChild;
  58225. var userStyles = ''; // user provided theme CSS
  58226. if (cnf.themeCSS !== undefined) {
  58227. userStyles += "\n".concat(cnf.themeCSS);
  58228. } // user provided theme CSS
  58229. if (cnf.fontFamily !== undefined) {
  58230. userStyles += "\n:root { --mermaid-font-family: ".concat(cnf.fontFamily, "}");
  58231. } // user provided theme CSS
  58232. if (cnf.altFontFamily !== undefined) {
  58233. userStyles += "\n:root { --mermaid-alt-font-family: ".concat(cnf.altFontFamily, "}");
  58234. } // classDef
  58235. if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') {
  58236. var classes = _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].getClasses(txt);
  58237. for (var className in classes) {
  58238. userStyles += "\n.".concat(className, " > * { ").concat(classes[className].styles.join(' !important; '), " !important; }");
  58239. if (classes[className].textStyles) {
  58240. userStyles += "\n.".concat(className, " tspan { ").concat(classes[className].textStyles.join(' !important; '), " !important; }");
  58241. }
  58242. }
  58243. }
  58244. var stylis = new stylis__WEBPACK_IMPORTED_MODULE_0___default.a();
  58245. var rules = stylis("#".concat(id), Object(_styles__WEBPACK_IMPORTED_MODULE_40__["default"])(graphType, userStyles, cnf.themeVariables));
  58246. var style1 = document.createElement('style');
  58247. style1.innerHTML = rules;
  58248. svg.insertBefore(style1, firstChild); // Verify that the generated svgs are ok before removing this
  58249. // const style2 = document.createElement('style');
  58250. // const cs = window.getComputedStyle(svg);
  58251. // style2.innerHTML = `#d${id} * {
  58252. // color: ${cs.color};
  58253. // // font: ${cs.font};
  58254. // // font-family: Arial;
  58255. // // font-size: 24px;
  58256. // }`;
  58257. // svg.insertBefore(style2, firstChild);
  58258. try {
  58259. switch (graphType) {
  58260. case 'git':
  58261. cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
  58262. _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__["default"].setConf(cnf.git);
  58263. _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__["default"].draw(txt, id, false);
  58264. break;
  58265. case 'flowchart':
  58266. cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
  58267. _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].setConf(cnf.flowchart);
  58268. _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].draw(txt, id, false);
  58269. break;
  58270. case 'flowchart-v2':
  58271. cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
  58272. _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__["default"].setConf(cnf.flowchart);
  58273. _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__["default"].draw(txt, id, false);
  58274. break;
  58275. case 'sequence':
  58276. cnf.sequence.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
  58277. if (cnf.sequenceDiagram) {
  58278. // backwards compatibility
  58279. _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram));
  58280. console.error('`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.');
  58281. } else {
  58282. _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(cnf.sequence);
  58283. }
  58284. _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].draw(txt, id);
  58285. break;
  58286. case 'gantt':
  58287. cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
  58288. _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__["default"].setConf(cnf.gantt);
  58289. _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__["default"].draw(txt, id);
  58290. break;
  58291. case 'class':
  58292. cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
  58293. _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__["default"].setConf(cnf.class);
  58294. _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__["default"].draw(txt, id);
  58295. break;
  58296. case 'classDiagram':
  58297. cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
  58298. _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_17__["default"].setConf(cnf.class);
  58299. _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_17__["default"].draw(txt, id);
  58300. break;
  58301. case 'state':
  58302. cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
  58303. _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__["default"].setConf(cnf.state);
  58304. _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__["default"].draw(txt, id);
  58305. break;
  58306. case 'stateDiagram':
  58307. cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
  58308. _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__["default"].setConf(cnf.state);
  58309. _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__["default"].draw(txt, id);
  58310. break;
  58311. case 'info':
  58312. cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
  58313. _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].setConf(cnf.class);
  58314. _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version);
  58315. break;
  58316. case 'pie':
  58317. cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
  58318. _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__["default"].setConf(cnf.class);
  58319. _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version);
  58320. break;
  58321. case 'er':
  58322. _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__["default"].setConf(cnf.er);
  58323. _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version);
  58324. break;
  58325. case 'journey':
  58326. _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__["default"].setConf(cnf.journey);
  58327. _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version);
  58328. break;
  58329. }
  58330. } catch (e) {
  58331. // errorRenderer.setConf(cnf.class);
  58332. _errorRenderer__WEBPACK_IMPORTED_MODULE_28__["default"].draw(id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version);
  58333. throw e;
  58334. }
  58335. Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])("[id=\"".concat(id, "\"]")).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml'); // if (cnf.arrowMarkerAbsolute) {
  58336. // url =
  58337. // window.location.protocol +
  58338. // '//' +
  58339. // window.location.host +
  58340. // window.location.pathname +
  58341. // window.location.search;
  58342. // url = url.replace(/\(/g, '\\(');
  58343. // url = url.replace(/\)/g, '\\)');
  58344. // }
  58345. // Fix for when the base tag is used
  58346. var svgCode = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#d' + id).node().innerHTML;
  58347. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute);
  58348. if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') {
  58349. svgCode = svgCode.replace(/marker-end="url\(.*?#/g, 'marker-end="url(#', 'g');
  58350. }
  58351. svgCode = decodeEntities(svgCode);
  58352. if (typeof cb !== 'undefined') {
  58353. switch (graphType) {
  58354. case 'flowchart':
  58355. case 'flowchart-v2':
  58356. cb(svgCode, _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"].bindFunctions);
  58357. break;
  58358. case 'gantt':
  58359. cb(svgCode, _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_15__["default"].bindFunctions);
  58360. break;
  58361. case 'class':
  58362. cb(svgCode, _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__["default"].bindFunctions);
  58363. break;
  58364. default:
  58365. cb(svgCode);
  58366. }
  58367. } else {
  58368. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('CB = undefined!');
  58369. }
  58370. var node = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#d' + id).node();
  58371. if (node !== null && typeof node.remove === 'function') {
  58372. Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#d' + id).node().remove();
  58373. }
  58374. return svgCode;
  58375. };
  58376. var currentDirective = {};
  58377. var parseDirective = function parseDirective(statement, context, type) {
  58378. try {
  58379. if (statement !== undefined) {
  58380. statement = statement.trim();
  58381. switch (context) {
  58382. case 'open_directive':
  58383. currentDirective = {};
  58384. break;
  58385. case 'type_directive':
  58386. currentDirective.type = statement.toLowerCase();
  58387. break;
  58388. case 'arg_directive':
  58389. currentDirective.args = JSON.parse(statement);
  58390. break;
  58391. case 'close_directive':
  58392. handleDirective(currentDirective, type);
  58393. currentDirective = null;
  58394. break;
  58395. }
  58396. }
  58397. } catch (error) {
  58398. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].error("Error while rendering sequenceDiagram directive: ".concat(statement, " jison context: ").concat(context));
  58399. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].error(error.message);
  58400. }
  58401. };
  58402. var handleDirective = function handleDirective(directive, type) {
  58403. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug("Directive type=".concat(directive.type, " with args:"), directive.args);
  58404. switch (directive.type) {
  58405. case 'init':
  58406. case 'initialize':
  58407. {
  58408. ['config'].forEach(function (prop) {
  58409. if (typeof directive.args[prop] !== 'undefined') {
  58410. if (type === 'flowchart-v2') {
  58411. type = 'flowchart';
  58412. }
  58413. directive.args[type] = directive.args[prop];
  58414. delete directive.args[prop];
  58415. }
  58416. });
  58417. reinitialize(directive.args);
  58418. break;
  58419. }
  58420. case 'wrap':
  58421. case 'nowrap':
  58422. directive.args = {
  58423. config: {
  58424. wrap: directive.type === 'wrap'
  58425. }
  58426. };
  58427. ['config'].forEach(function (prop) {
  58428. if (typeof directive.args[prop] !== 'undefined') {
  58429. if (type === 'flowchart-v2') {
  58430. type = 'flowchart';
  58431. }
  58432. directive.args[type] = directive.args[prop];
  58433. delete directive.args[prop];
  58434. }
  58435. });
  58436. reinitialize(directive.args);
  58437. break;
  58438. default:
  58439. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].warn("Unhandled directive: source: '%%{".concat(directive.type, ": ").concat(JSON.stringify(directive.args ? directive.args : {}), "}%%"), directive);
  58440. break;
  58441. }
  58442. };
  58443. function updateRendererConfigs(conf) {
  58444. _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__["default"].setConf(conf.git);
  58445. _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].setConf(conf.flowchart);
  58446. _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__["default"].setConf(conf.flowchart);
  58447. if (typeof conf['sequenceDiagram'] !== 'undefined') {
  58448. _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(Object(_utils__WEBPACK_IMPORTED_MODULE_5__["assignWithDepth"])(conf.sequence, conf['sequenceDiagram']));
  58449. }
  58450. _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(conf.sequence);
  58451. _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__["default"].setConf(conf.gantt);
  58452. _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__["default"].setConf(conf.class);
  58453. _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__["default"].setConf(conf.state);
  58454. _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__["default"].setConf(conf.state);
  58455. _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].setConf(conf.class);
  58456. _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__["default"].setConf(conf.class);
  58457. _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__["default"].setConf(conf.er);
  58458. _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__["default"].setConf(conf.journey);
  58459. _errorRenderer__WEBPACK_IMPORTED_MODULE_28__["default"].setConf(conf.class);
  58460. }
  58461. function reinitialize(options) {
  58462. // console.warn(`mermaidAPI.reinitialize: v${pkg.version}`, options);
  58463. if (options.theme && _themes__WEBPACK_IMPORTED_MODULE_41__["default"][options.theme]) {
  58464. // Todo merge with user options
  58465. options.themeVariables = options.theme;
  58466. } // Set default options
  58467. var config = _typeof(options) === 'object' ? Object(_config__WEBPACK_IMPORTED_MODULE_3__["setConfig"])(options) : Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])();
  58468. updateRendererConfigs(config);
  58469. Object(_logger__WEBPACK_IMPORTED_MODULE_4__["setLogLevel"])(config.logLevel);
  58470. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('mermaidAPI.reinitialize: ', config);
  58471. }
  58472. function initialize(options) {
  58473. // console.log(`mermaidAPI.initialize: v${pkg.version} ${options}`);
  58474. // Set default options
  58475. if (options && options.theme && _themes__WEBPACK_IMPORTED_MODULE_41__["default"][options.theme]) {
  58476. // Todo merge with user options
  58477. options.themeVariables = _themes__WEBPACK_IMPORTED_MODULE_41__["default"][options.theme].getThemeVariables(options.themeVariables);
  58478. } else {
  58479. if (options) options.themeVariables = _themes__WEBPACK_IMPORTED_MODULE_41__["default"].default.getThemeVariables();
  58480. }
  58481. var config = _typeof(options) === 'object' ? Object(_config__WEBPACK_IMPORTED_MODULE_3__["setSiteConfig"])(options) : Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])();
  58482. updateRendererConfigs(config);
  58483. Object(_logger__WEBPACK_IMPORTED_MODULE_4__["setLogLevel"])(config.logLevel);
  58484. _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('mermaidAPI.initialize: ', config);
  58485. } // function getConfig () {
  58486. // console.warn('get config')
  58487. // return config
  58488. // }
  58489. var mermaidAPI = Object.freeze({
  58490. render: render,
  58491. parse: parse,
  58492. parseDirective: parseDirective,
  58493. initialize: initialize,
  58494. reinitialize: reinitialize,
  58495. getConfig: _config__WEBPACK_IMPORTED_MODULE_3__["getConfig"],
  58496. getSiteConfig: _config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"],
  58497. reset: function reset() {
  58498. // console.warn('reset');
  58499. _config__WEBPACK_IMPORTED_MODULE_3__["default"].reset();
  58500. var siteConfig = Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])();
  58501. updateRendererConfigs(siteConfig);
  58502. },
  58503. globalReset: function globalReset() {
  58504. _config__WEBPACK_IMPORTED_MODULE_3__["default"].reset(_config__WEBPACK_IMPORTED_MODULE_3__["default"].defaultConfig);
  58505. updateRendererConfigs(Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])());
  58506. },
  58507. defaultConfig: _config__WEBPACK_IMPORTED_MODULE_3__["default"].defaultConfig
  58508. });
  58509. Object(_logger__WEBPACK_IMPORTED_MODULE_4__["setLogLevel"])(Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().logLevel);
  58510. _config__WEBPACK_IMPORTED_MODULE_3__["default"].reset(Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])());
  58511. /* harmony default export */ __webpack_exports__["default"] = (mermaidAPI);
  58512. /**
  58513. * ## mermaidAPI configuration defaults
  58514. * <pre>
  58515. *
  58516. * &lt;script>
  58517. * var config = {
  58518. * theme:'default',
  58519. * logLevel:'fatal',
  58520. * securityLevel:'strict',
  58521. * startOnLoad:true,
  58522. * arrowMarkerAbsolute:false,
  58523. *
  58524. * er:{
  58525. * diagramPadding:20,
  58526. * layoutDirection:'TB',
  58527. * minEntityWidth:100,
  58528. * minEntityHeight:75,
  58529. * entityPadding:15,
  58530. * stroke:'gray',
  58531. * fill:'honeydew',
  58532. * fontSize:12,
  58533. * useMaxWidth:true,
  58534. * },
  58535. * flowchart:{
  58536. * diagramPadding:8,
  58537. * htmlLabels:true,
  58538. * curve:'linear',
  58539. * },
  58540. * sequence:{
  58541. * diagramMarginX:50,
  58542. * diagramMarginY:10,
  58543. * actorMargin:50,
  58544. * width:150,
  58545. * height:65,
  58546. * boxMargin:10,
  58547. * boxTextMargin:5,
  58548. * noteMargin:10,
  58549. * messageMargin:35,
  58550. * messageAlign:'center',
  58551. * mirrorActors:true,
  58552. * bottomMarginAdj:1,
  58553. * useMaxWidth:true,
  58554. * rightAngles:false,
  58555. * showSequenceNumbers:false,
  58556. * },
  58557. * gantt:{
  58558. * titleTopMargin:25,
  58559. * barHeight:20,
  58560. * barGap:4,
  58561. * topPadding:50,
  58562. * leftPadding:75,
  58563. * gridLineStartPadding:35,
  58564. * fontSize:11,
  58565. * fontFamily:'"Open-Sans", "sans-serif"',
  58566. * numberSectionStyles:4,
  58567. * axisFormat:'%Y-%m-%d',
  58568. * }
  58569. * };
  58570. * mermaid.initialize(config);
  58571. * &lt;/script>
  58572. *</pre>
  58573. */
  58574. /***/ }),
  58575. /***/ "./src/styles.js":
  58576. /*!***********************!*\
  58577. !*** ./src/styles.js ***!
  58578. \***********************/
  58579. /*! exports provided: calcThemeVariables, default */
  58580. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58581. "use strict";
  58582. __webpack_require__.r(__webpack_exports__);
  58583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calcThemeVariables", function() { return calcThemeVariables; });
  58584. /* harmony import */ var _diagrams_class_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./diagrams/class/styles */ "./src/diagrams/class/styles.js");
  58585. /* harmony import */ var _diagrams_er_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./diagrams/er/styles */ "./src/diagrams/er/styles.js");
  58586. /* harmony import */ var _diagrams_flowchart_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./diagrams/flowchart/styles */ "./src/diagrams/flowchart/styles.js");
  58587. /* harmony import */ var _diagrams_gantt_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./diagrams/gantt/styles */ "./src/diagrams/gantt/styles.js");
  58588. /* harmony import */ var _diagrams_git_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./diagrams/git/styles */ "./src/diagrams/git/styles.js");
  58589. /* harmony import */ var _diagrams_info_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./diagrams/info/styles */ "./src/diagrams/info/styles.js");
  58590. /* harmony import */ var _diagrams_pie_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./diagrams/pie/styles */ "./src/diagrams/pie/styles.js");
  58591. /* harmony import */ var _diagrams_sequence_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./diagrams/sequence/styles */ "./src/diagrams/sequence/styles.js");
  58592. /* harmony import */ var _diagrams_state_styles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./diagrams/state/styles */ "./src/diagrams/state/styles.js");
  58593. /* harmony import */ var _diagrams_user_journey_styles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./diagrams/user-journey/styles */ "./src/diagrams/user-journey/styles.js");
  58594. var themes = {
  58595. flowchart: _diagrams_flowchart_styles__WEBPACK_IMPORTED_MODULE_2__["default"],
  58596. 'flowchart-v2': _diagrams_flowchart_styles__WEBPACK_IMPORTED_MODULE_2__["default"],
  58597. sequence: _diagrams_sequence_styles__WEBPACK_IMPORTED_MODULE_7__["default"],
  58598. gantt: _diagrams_gantt_styles__WEBPACK_IMPORTED_MODULE_3__["default"],
  58599. classDiagram: _diagrams_class_styles__WEBPACK_IMPORTED_MODULE_0__["default"],
  58600. 'classDiagram-v2': _diagrams_class_styles__WEBPACK_IMPORTED_MODULE_0__["default"],
  58601. stateDiagram: _diagrams_state_styles__WEBPACK_IMPORTED_MODULE_8__["default"],
  58602. state: _diagrams_state_styles__WEBPACK_IMPORTED_MODULE_8__["default"],
  58603. git: _diagrams_git_styles__WEBPACK_IMPORTED_MODULE_4__["default"],
  58604. info: _diagrams_info_styles__WEBPACK_IMPORTED_MODULE_5__["default"],
  58605. pie: _diagrams_pie_styles__WEBPACK_IMPORTED_MODULE_6__["default"],
  58606. er: _diagrams_er_styles__WEBPACK_IMPORTED_MODULE_1__["default"],
  58607. journey: _diagrams_user_journey_styles__WEBPACK_IMPORTED_MODULE_9__["default"]
  58608. };
  58609. var calcThemeVariables = function calcThemeVariables(theme, userOverRides) {
  58610. return theme.calcColors(userOverRides);
  58611. };
  58612. var getStyles = function getStyles(type, userStyles, options) {
  58613. return " {\n font-family: ".concat(options.fontFamily, ";\n font-size: ").concat(options.fontSize, ";\n fill: ").concat(options.textColor, "\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ").concat(options.errorBkgColor, ";\n }\n .error-text {\n fill: ").concat(options.errorTextColor, ";\n stroke: ").concat(options.errorTextColor, ";\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ").concat(options.lineColor, ";\n }\n .marker.cross {\n stroke: ").concat(options.lineColor, ";\n }\n\n svg {\n font-family: ").concat(options.fontFamily, ";\n font-size: ").concat(options.fontSize, ";\n }\n\n ").concat(themes[type](options), "\n\n ").concat(userStyles, "\n\n ").concat(type, " { fill: apa;}\n");
  58614. };
  58615. /* harmony default export */ __webpack_exports__["default"] = (getStyles);
  58616. /***/ }),
  58617. /***/ "./src/themes/index.js":
  58618. /*!*****************************!*\
  58619. !*** ./src/themes/index.js ***!
  58620. \*****************************/
  58621. /*! exports provided: default */
  58622. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58623. "use strict";
  58624. __webpack_require__.r(__webpack_exports__);
  58625. /* harmony import */ var _theme_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./theme-base */ "./src/themes/theme-base.js");
  58626. /* harmony import */ var _theme_dark__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./theme-dark */ "./src/themes/theme-dark.js");
  58627. /* harmony import */ var _theme_default__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./theme-default */ "./src/themes/theme-default.js");
  58628. /* harmony import */ var _theme_forest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./theme-forest */ "./src/themes/theme-forest.js");
  58629. /* harmony import */ var _theme_neutral__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./theme-neutral */ "./src/themes/theme-neutral.js");
  58630. /* harmony default export */ __webpack_exports__["default"] = ({
  58631. base: {
  58632. getThemeVariables: _theme_base__WEBPACK_IMPORTED_MODULE_0__["getThemeVariables"]
  58633. },
  58634. dark: {
  58635. getThemeVariables: _theme_dark__WEBPACK_IMPORTED_MODULE_1__["getThemeVariables"]
  58636. },
  58637. default: {
  58638. getThemeVariables: _theme_default__WEBPACK_IMPORTED_MODULE_2__["getThemeVariables"]
  58639. },
  58640. forest: {
  58641. getThemeVariables: _theme_forest__WEBPACK_IMPORTED_MODULE_3__["getThemeVariables"]
  58642. },
  58643. neutral: {
  58644. getThemeVariables: _theme_neutral__WEBPACK_IMPORTED_MODULE_4__["getThemeVariables"]
  58645. }
  58646. });
  58647. /***/ }),
  58648. /***/ "./src/themes/theme-base.js":
  58649. /*!**********************************!*\
  58650. !*** ./src/themes/theme-base.js ***!
  58651. \**********************************/
  58652. /*! exports provided: getThemeVariables */
  58653. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58654. "use strict";
  58655. __webpack_require__.r(__webpack_exports__);
  58656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeVariables", function() { return getThemeVariables; });
  58657. /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! khroma */ "./node_modules/khroma/dist/index.js");
  58658. /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(khroma__WEBPACK_IMPORTED_MODULE_0__);
  58659. function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  58660. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  58661. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  58662. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  58663. var Theme =
  58664. /*#__PURE__*/
  58665. function () {
  58666. function Theme() {
  58667. _classCallCheck(this, Theme);
  58668. /* Base variables */
  58669. this.primaryColor = '#039fbe';
  58670. this.secondaryColor = '#b20238';
  58671. this.tertiaryColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])('#e8d21d', 30);
  58672. this.relationColor = '#000';
  58673. this.primaryColor = '#fa255e';
  58674. this.secondaryColor = '#c39ea0';
  58675. this.tertiaryColor = '#f8e5e5';
  58676. this.primaryColor = '#ECECFF';
  58677. this.secondaryColor = '#ffffde';
  58678. this.tertiaryColor = '#ffffde';
  58679. this.background = 'white';
  58680. this.lineColor = '#333333';
  58681. this.border1 = '#9370DB';
  58682. this.arrowheadColor = '#333333';
  58683. this.fontFamily = '"trebuchet ms", verdana, arial';
  58684. this.fontSize = '16px';
  58685. this.labelBackground = '#e8e8e8';
  58686. this.textColor = '#333';
  58687. this.noteBkgColor = '#fff5ad';
  58688. this.noteBorderColor = '#aaaa33';
  58689. this.updateColors();
  58690. }
  58691. _createClass(Theme, [{
  58692. key: "updateColors",
  58693. value: function updateColors() {
  58694. this.secondBkg = this.tertiaryColor;
  58695. /* Flowchart variables */
  58696. this.nodeBkg = this.primaryColor;
  58697. this.mainBkg = this.primaryColor;
  58698. this.nodeBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.primaryColor, 23); // border 1
  58699. this.clusterBkg = this.tertiaryColor;
  58700. this.clusterBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.tertiaryColor, 10);
  58701. this.defaultLinkColor = this.lineColor;
  58702. this.titleColor = this.textColor;
  58703. this.edgeLabelBackground = this.labelBackground;
  58704. /* Sequence Diagram variables */
  58705. // this.actorBorder = lighten(this.border1, 0.5);
  58706. this.actorBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.border1, 23);
  58707. this.actorBkg = this.mainBkg;
  58708. this.actorTextColor = 'black';
  58709. this.actorLineColor = 'grey';
  58710. this.labelBoxBkgColor = this.actorBkg;
  58711. this.signalColor = this.textColor;
  58712. this.signalTextColor = this.textColor;
  58713. this.labelBoxBorderColor = this.actorBorder;
  58714. this.labelTextColor = this.actorTextColor;
  58715. this.loopTextColor = this.actorTextColor;
  58716. this.noteBorderColor = this.border2;
  58717. this.noteTextColor = this.actorTextColor;
  58718. this.activationBorderColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.secondaryColor, 10);
  58719. this.activationBkgColor = this.secondaryColor;
  58720. this.sequenceNumberColor = 'white';
  58721. /* Gantt chart variables */
  58722. this.taskTextColor = this.taskTextLightColor;
  58723. this.taskTextOutsideColor = this.taskTextDarkColor;
  58724. this.sectionBkgColor = this.tertiaryColor;
  58725. this.altSectionBkgColor = 'white';
  58726. this.sectionBkgColor = this.secondaryColor;
  58727. this.sectionBkgColor2 = this.tertiaryColor;
  58728. this.altSectionBkgColor = 'white';
  58729. this.sectionBkgColor2 = this.primaryColor;
  58730. this.taskBorderColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.primaryColor, 23);
  58731. this.taskBkgColor = this.primaryColor;
  58732. this.taskTextLightColor = 'white';
  58733. this.taskTextColor = 'calculated';
  58734. this.taskTextDarkColor = 'black';
  58735. this.taskTextOutsideColor = 'calculated';
  58736. this.taskTextClickableColor = '#003163';
  58737. this.activeTaskBorderColor = this.primaryColor;
  58738. this.activeTaskBkgColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.primaryColor, 23);
  58739. this.gridColor = 'lightgrey';
  58740. this.doneTaskBkgColor = 'lightgrey';
  58741. this.doneTaskBorderColor = 'grey';
  58742. this.critBorderColor = '#ff8888';
  58743. this.critBkgColor = 'red';
  58744. this.todayLineColor = 'red';
  58745. /* state colors */
  58746. this.labelColor = 'black';
  58747. this.errorBkgColor = '#552222';
  58748. this.errorTextColor = '#552222';
  58749. /* state colors */
  58750. /* class */
  58751. this.classText = this.textColor;
  58752. /* user-journey */
  58753. this.fillType0 = this.primaryColor;
  58754. this.fillType1 = this.secondaryColor;
  58755. this.fillType2 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  58756. h: 64
  58757. });
  58758. this.fillType3 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  58759. h: 64
  58760. });
  58761. this.fillType4 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  58762. h: -64
  58763. });
  58764. this.fillType5 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  58765. h: -64
  58766. });
  58767. this.fillType6 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  58768. h: 128
  58769. });
  58770. this.fillType7 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  58771. h: 128
  58772. });
  58773. }
  58774. }, {
  58775. key: "calculate",
  58776. value: function calculate(overrides) {
  58777. var _this = this;
  58778. if (_typeof(overrides) !== 'object') {
  58779. // Calculate colors form base colors
  58780. this.updateColors();
  58781. return;
  58782. }
  58783. var keys = Object.keys(overrides); // Copy values from overrides, this is mainly for base colors
  58784. keys.forEach(function (k) {
  58785. _this[k] = overrides[k];
  58786. }); // Calculate colors form base colors
  58787. this.updateColors(); // Copy values from overrides again in case of an override of derived value
  58788. keys.forEach(function (k) {
  58789. _this[k] = overrides[k];
  58790. });
  58791. }
  58792. }]);
  58793. return Theme;
  58794. }();
  58795. var getThemeVariables = function getThemeVariables(userOverrides) {
  58796. var theme = new Theme();
  58797. theme.calculate(userOverrides);
  58798. return theme;
  58799. };
  58800. /***/ }),
  58801. /***/ "./src/themes/theme-dark.js":
  58802. /*!**********************************!*\
  58803. !*** ./src/themes/theme-dark.js ***!
  58804. \**********************************/
  58805. /*! exports provided: getThemeVariables */
  58806. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58807. "use strict";
  58808. __webpack_require__.r(__webpack_exports__);
  58809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeVariables", function() { return getThemeVariables; });
  58810. /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! khroma */ "./node_modules/khroma/dist/index.js");
  58811. /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(khroma__WEBPACK_IMPORTED_MODULE_0__);
  58812. function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  58813. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  58814. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  58815. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  58816. var Theme =
  58817. /*#__PURE__*/
  58818. function () {
  58819. function Theme() {
  58820. _classCallCheck(this, Theme);
  58821. this.background = '#333';
  58822. this.primaryColor = '#1f2020';
  58823. this.secondaryColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.primaryColor, 16);
  58824. this.mainBkg = '#1f2020';
  58825. this.secondBkg = 'calculated';
  58826. this.mainContrastColor = 'lightgrey';
  58827. this.darkTextColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(Object(khroma__WEBPACK_IMPORTED_MODULE_0__["invert"])('#323D47'), 10);
  58828. this.lineColor = 'calculated';
  58829. this.border1 = '#81B1DB';
  58830. this.border2 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["rgba"])(255, 255, 255, 0.25);
  58831. this.arrowheadColor = 'calculated';
  58832. this.fontFamily = '"trebuchet ms", verdana, arial';
  58833. this.fontSize = '16px';
  58834. this.labelBackground = '#181818';
  58835. this.textColor = '#ccc';
  58836. /* Flowchart variables */
  58837. this.nodeBkg = 'calculated';
  58838. this.nodeBorder = 'calculated';
  58839. this.clusterBkg = 'calculated';
  58840. this.clusterBorder = 'calculated';
  58841. this.defaultLinkColor = 'calculated';
  58842. this.titleColor = '#F9FFFE';
  58843. this.edgeLabelBackground = 'calculated';
  58844. /* Sequence Diagram variables */
  58845. this.actorBorder = 'calculated';
  58846. this.actorBkg = 'calculated';
  58847. this.actorTextColor = 'calculated';
  58848. this.actorLineColor = 'calculated';
  58849. this.signalColor = 'calculated';
  58850. this.signalTextColor = 'calculated';
  58851. this.labelBoxBkgColor = 'calculated';
  58852. this.labelBoxBorderColor = 'calculated';
  58853. this.labelTextColor = 'calculated';
  58854. this.loopTextColor = 'calculated';
  58855. this.noteBorderColor = 'calculated';
  58856. this.noteBkgColor = '#fff5ad';
  58857. this.noteTextColor = 'calculated';
  58858. this.activationBorderColor = 'calculated';
  58859. this.activationBkgColor = 'calculated';
  58860. this.sequenceNumberColor = 'black';
  58861. /* Gantt chart variables */
  58862. this.sectionBkgColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])('#EAE8D9', 30);
  58863. this.altSectionBkgColor = 'calculated';
  58864. this.sectionBkgColor2 = '#EAE8D9';
  58865. this.taskBorderColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["rgba"])(255, 255, 255, 70);
  58866. this.taskBkgColor = 'calculated';
  58867. this.taskTextColor = 'calculated';
  58868. this.taskTextLightColor = 'calculated';
  58869. this.taskTextOutsideColor = 'calculated';
  58870. this.taskTextClickableColor = '#003163';
  58871. this.activeTaskBorderColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["rgba"])(255, 255, 255, 50);
  58872. this.activeTaskBkgColor = '#81B1DB';
  58873. this.gridColor = 'calculated';
  58874. this.doneTaskBkgColor = 'calculated';
  58875. this.doneTaskBorderColor = 'grey';
  58876. this.critBorderColor = '#E83737';
  58877. this.critBkgColor = '#E83737';
  58878. this.taskTextDarkColor = 'calculated';
  58879. this.todayLineColor = '#DB5757';
  58880. /* state colors */
  58881. this.labelColor = 'calculated';
  58882. this.errorBkgColor = '#a44141';
  58883. this.errorTextColor = '#ddd';
  58884. }
  58885. _createClass(Theme, [{
  58886. key: "updateColors",
  58887. value: function updateColors() {
  58888. this.secondBkg = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.mainBkg, 16);
  58889. this.lineColor = this.mainContrastColor;
  58890. this.arrowheadColor = this.mainContrastColor;
  58891. /* Flowchart variables */
  58892. this.nodeBkg = this.mainBkg;
  58893. this.nodeBorder = this.border1;
  58894. this.clusterBkg = this.secondBkg;
  58895. this.clusterBorder = this.border2;
  58896. this.defaultLinkColor = this.lineColor;
  58897. this.edgeLabelBackground = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.labelBackground, 25);
  58898. /* Sequence Diagram variables */
  58899. this.actorBorder = this.border1;
  58900. this.actorBkg = this.mainBkg;
  58901. this.actorTextColor = this.mainContrastColor;
  58902. this.actorLineColor = this.mainContrastColor;
  58903. this.signalColor = this.mainContrastColor;
  58904. this.signalTextColor = this.mainContrastColor;
  58905. this.labelBoxBkgColor = this.actorBkg;
  58906. this.labelBoxBorderColor = this.actorBorder;
  58907. this.labelTextColor = this.mainContrastColor;
  58908. this.loopTextColor = this.mainContrastColor;
  58909. this.noteBorderColor = this.border2;
  58910. this.noteTextColor = this.mainBkg;
  58911. this.activationBorderColor = this.border1;
  58912. this.activationBkgColor = this.secondBkg;
  58913. /* Gantt chart variables */
  58914. this.altSectionBkgColor = this.background;
  58915. this.taskBkgColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.mainBkg, 23);
  58916. this.taskTextColor = this.darkTextColor;
  58917. this.taskTextLightColor = this.mainContrastColor;
  58918. this.taskTextOutsideColor = this.taskTextLightColor;
  58919. this.gridColor = this.mainContrastColor;
  58920. this.doneTaskBkgColor = this.mainContrastColor;
  58921. this.taskTextDarkColor = this.darkTextColor;
  58922. /* state colors */
  58923. this.labelColor = this.textColor;
  58924. this.altBackground = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.background, 20);
  58925. this.fillType0 = this.primaryColor;
  58926. this.fillType1 = this.secondaryColor;
  58927. this.fillType2 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  58928. h: 64
  58929. });
  58930. this.fillType3 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  58931. h: 64
  58932. });
  58933. this.fillType4 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  58934. h: -64
  58935. });
  58936. this.fillType5 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  58937. h: -64
  58938. });
  58939. this.fillType6 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  58940. h: 128
  58941. });
  58942. this.fillType7 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  58943. h: 128
  58944. });
  58945. /* class */
  58946. this.classText = this.nodeBorder;
  58947. }
  58948. }, {
  58949. key: "calculate",
  58950. value: function calculate(overrides) {
  58951. var _this = this;
  58952. if (_typeof(overrides) !== 'object') {
  58953. // Calculate colors form base colors
  58954. this.updateColors();
  58955. return;
  58956. }
  58957. var keys = Object.keys(overrides); // Copy values from overrides, this is mainly for base colors
  58958. keys.forEach(function (k) {
  58959. _this[k] = overrides[k];
  58960. }); // Calculate colors form base colors
  58961. this.updateColors(); // Copy values from overrides again in case of an override of derived value
  58962. keys.forEach(function (k) {
  58963. _this[k] = overrides[k];
  58964. });
  58965. }
  58966. }]);
  58967. return Theme;
  58968. }();
  58969. var getThemeVariables = function getThemeVariables(userOverrides) {
  58970. var theme = new Theme();
  58971. theme.calculate(userOverrides);
  58972. return theme;
  58973. };
  58974. /***/ }),
  58975. /***/ "./src/themes/theme-default.js":
  58976. /*!*************************************!*\
  58977. !*** ./src/themes/theme-default.js ***!
  58978. \*************************************/
  58979. /*! exports provided: getThemeVariables */
  58980. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58981. "use strict";
  58982. __webpack_require__.r(__webpack_exports__);
  58983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeVariables", function() { return getThemeVariables; });
  58984. /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! khroma */ "./node_modules/khroma/dist/index.js");
  58985. /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(khroma__WEBPACK_IMPORTED_MODULE_0__);
  58986. function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  58987. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  58988. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  58989. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  58990. var Theme =
  58991. /*#__PURE__*/
  58992. function () {
  58993. function Theme() {
  58994. _classCallCheck(this, Theme);
  58995. /* Base variables */
  58996. this.primaryColor = '#ECECFF';
  58997. this.secondaryColor = '#ffffde';
  58998. this.background = 'white';
  58999. this.mainBkg = '#ECECFF';
  59000. this.secondBkg = '#ffffde';
  59001. this.lineColor = '#333333';
  59002. this.border1 = '#9370DB';
  59003. this.border2 = '#aaaa33';
  59004. this.arrowheadColor = '#333333';
  59005. this.fontFamily = '"trebuchet ms", verdana, arial';
  59006. this.fontSize = '16px';
  59007. this.labelBackground = '#e8e8e8';
  59008. this.textColor = '#333';
  59009. /* Flowchart variables */
  59010. this.nodeBkg = 'calculated';
  59011. this.nodeBorder = 'calculated';
  59012. this.clusterBkg = 'calculated';
  59013. this.clusterBorder = 'calculated';
  59014. this.defaultLinkColor = 'calculated';
  59015. this.titleColor = 'calculated';
  59016. this.edgeLabelBackground = 'calculated';
  59017. /* Sequence Diagram variables */
  59018. this.actorBorder = 'calculated';
  59019. this.actorBkg = 'calculated';
  59020. this.actorTextColor = 'black';
  59021. this.actorLineColor = 'grey';
  59022. this.signalColor = 'calculated';
  59023. this.signalTextColor = 'calculated';
  59024. this.labelBoxBkgColor = 'calculated';
  59025. this.labelBoxBorderColor = 'calculated';
  59026. this.labelTextColor = 'calculated';
  59027. this.loopTextColor = 'calculated';
  59028. this.noteBorderColor = 'calculated';
  59029. this.noteBkgColor = '#fff5ad';
  59030. this.noteTextColor = 'calculated';
  59031. this.activationBorderColor = '#666';
  59032. this.activationBkgColor = '#f4f4f4';
  59033. this.sequenceNumberColor = 'white';
  59034. /* Gantt chart variables */
  59035. this.sectionBkgColor = 'calculated';
  59036. this.altSectionBkgColor = 'calculated';
  59037. this.sectionBkgColor2 = 'calculated';
  59038. this.taskBorderColor = 'calculated';
  59039. this.taskBkgColor = 'calculated';
  59040. this.taskTextLightColor = 'calculated';
  59041. this.taskTextColor = this.taskTextLightColor;
  59042. this.taskTextDarkColor = 'calculated';
  59043. this.taskTextOutsideColor = this.taskTextDarkColor;
  59044. this.taskTextClickableColor = 'calculated';
  59045. this.activeTaskBorderColor = 'calculated';
  59046. this.activeTaskBkgColor = 'calculated';
  59047. this.gridColor = 'calculated';
  59048. this.doneTaskBkgColor = 'calculated';
  59049. this.doneTaskBorderColor = 'calculated';
  59050. this.critBorderColor = 'calculated';
  59051. this.critBkgColor = 'calculated';
  59052. this.todayLineColor = 'calculated';
  59053. this.sectionBkgColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["rgba"])(102, 102, 255, 0.49);
  59054. this.altSectionBkgColor = 'white';
  59055. this.sectionBkgColor2 = '#fff400';
  59056. this.taskBorderColor = '#534fbc';
  59057. this.taskBkgColor = '#8a90dd';
  59058. this.taskTextLightColor = 'white';
  59059. this.taskTextColor = 'calculated';
  59060. this.taskTextDarkColor = 'black';
  59061. this.taskTextOutsideColor = 'calculated';
  59062. this.taskTextClickableColor = '#003163';
  59063. this.activeTaskBorderColor = '#534fbc';
  59064. this.activeTaskBkgColor = '#bfc7ff';
  59065. this.gridColor = 'lightgrey';
  59066. this.doneTaskBkgColor = 'lightgrey';
  59067. this.doneTaskBorderColor = 'grey';
  59068. this.critBorderColor = '#ff8888';
  59069. this.critBkgColor = 'red';
  59070. this.todayLineColor = 'red';
  59071. /* state colors */
  59072. this.labelColor = 'black';
  59073. this.errorBkgColor = '#552222';
  59074. this.errorTextColor = '#552222';
  59075. this.updateColors();
  59076. }
  59077. _createClass(Theme, [{
  59078. key: "updateColors",
  59079. value: function updateColors() {
  59080. /* Flowchart variables */
  59081. this.nodeBkg = this.mainBkg;
  59082. this.nodeBorder = this.border1; // border 1
  59083. this.clusterBkg = this.secondBkg;
  59084. this.clusterBorder = this.border2;
  59085. this.defaultLinkColor = this.lineColor;
  59086. this.titleColor = this.textColor;
  59087. this.edgeLabelBackground = this.labelBackground;
  59088. /* Sequence Diagram variables */
  59089. // this.actorBorder = lighten(this.border1, 0.5);
  59090. this.actorBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.border1, 23);
  59091. this.actorBkg = this.mainBkg;
  59092. this.labelBoxBkgColor = this.actorBkg;
  59093. this.signalColor = this.textColor;
  59094. this.signalTextColor = this.textColor;
  59095. this.labelBoxBorderColor = this.actorBorder;
  59096. this.labelTextColor = this.actorTextColor;
  59097. this.loopTextColor = this.actorTextColor;
  59098. this.noteBorderColor = this.border2;
  59099. this.noteTextColor = this.actorTextColor;
  59100. /* Gantt chart variables */
  59101. this.taskTextColor = this.taskTextLightColor;
  59102. this.taskTextOutsideColor = this.taskTextDarkColor;
  59103. /* state colors */
  59104. /* class */
  59105. this.classText = this.nodeBorder;
  59106. /* journey */
  59107. this.fillType0 = this.primaryColor;
  59108. this.fillType1 = this.secondaryColor;
  59109. this.fillType2 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  59110. h: 64
  59111. });
  59112. this.fillType3 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  59113. h: 64
  59114. });
  59115. this.fillType4 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  59116. h: -64
  59117. });
  59118. this.fillType5 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  59119. h: -64
  59120. });
  59121. this.fillType6 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  59122. h: 128
  59123. });
  59124. this.fillType7 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  59125. h: 128
  59126. });
  59127. }
  59128. }, {
  59129. key: "calculate",
  59130. value: function calculate(overrides) {
  59131. var _this = this;
  59132. if (_typeof(overrides) !== 'object') {
  59133. // Calculate colors form base colors
  59134. this.updateColors();
  59135. return;
  59136. }
  59137. var keys = Object.keys(overrides); // Copy values from overrides, this is mainly for base colors
  59138. keys.forEach(function (k) {
  59139. _this[k] = overrides[k];
  59140. }); // Calculate colors form base colors
  59141. this.updateColors(); // Copy values from overrides again in case of an override of derived value
  59142. keys.forEach(function (k) {
  59143. _this[k] = overrides[k];
  59144. });
  59145. }
  59146. }]);
  59147. return Theme;
  59148. }();
  59149. var getThemeVariables = function getThemeVariables(userOverrides) {
  59150. var theme = new Theme();
  59151. theme.calculate(userOverrides);
  59152. return theme;
  59153. };
  59154. /***/ }),
  59155. /***/ "./src/themes/theme-forest.js":
  59156. /*!************************************!*\
  59157. !*** ./src/themes/theme-forest.js ***!
  59158. \************************************/
  59159. /*! exports provided: getThemeVariables */
  59160. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59161. "use strict";
  59162. __webpack_require__.r(__webpack_exports__);
  59163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeVariables", function() { return getThemeVariables; });
  59164. /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! khroma */ "./node_modules/khroma/dist/index.js");
  59165. /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(khroma__WEBPACK_IMPORTED_MODULE_0__);
  59166. function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  59167. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  59168. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  59169. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  59170. var Theme =
  59171. /*#__PURE__*/
  59172. function () {
  59173. function Theme() {
  59174. _classCallCheck(this, Theme);
  59175. /* Base vales */
  59176. this.primaryColor = '#cde498';
  59177. this.secondaryColor = '#cdffb2';
  59178. this.background = 'white';
  59179. this.mainBkg = '#cde498';
  59180. this.secondBkg = '#cdffb2';
  59181. this.lineColor = 'green';
  59182. this.border1 = '#13540c';
  59183. this.border2 = '#6eaa49';
  59184. this.arrowheadColor = 'green';
  59185. this.fontFamily = '"trebuchet ms", verdana, arial';
  59186. this.fontSize = '16px';
  59187. /* Flowchart variables */
  59188. this.nodeBkg = 'calculated';
  59189. this.nodeBorder = 'calculated';
  59190. this.clusterBkg = 'calculated';
  59191. this.clusterBorder = 'calculated';
  59192. this.defaultLinkColor = 'calculated';
  59193. this.titleColor = '#333';
  59194. this.edgeLabelBackground = '#e8e8e8';
  59195. /* Sequence Diagram variables */
  59196. this.actorBorder = 'calculated';
  59197. this.actorBkg = 'calculated';
  59198. this.actorTextColor = 'black';
  59199. this.actorLineColor = 'grey';
  59200. this.signalColor = '#333';
  59201. this.signalTextColor = '#333';
  59202. this.labelBoxBkgColor = 'calculated';
  59203. this.labelBoxBorderColor = '#326932';
  59204. this.labelTextColor = 'calculated';
  59205. this.loopTextColor = 'calculated';
  59206. this.noteBorderColor = 'calculated';
  59207. this.noteBkgColor = '#fff5ad';
  59208. this.noteTextColor = 'calculated';
  59209. this.activationBorderColor = '#666';
  59210. this.activationBkgColor = '#f4f4f4';
  59211. this.sequenceNumberColor = 'white';
  59212. /* Gantt chart variables */
  59213. this.sectionBkgColor = '#6eaa49';
  59214. this.altSectionBkgColor = 'white';
  59215. this.sectionBkgColor2 = '#6eaa49';
  59216. this.taskBorderColor = 'calculated';
  59217. this.taskBkgColor = '#487e3a';
  59218. this.taskTextLightColor = 'white';
  59219. this.taskTextColor = 'calculated';
  59220. this.taskTextDarkColor = 'black';
  59221. this.taskTextOutsideColor = 'calculated';
  59222. this.taskTextClickableColor = '#003163';
  59223. this.activeTaskBorderColor = 'calculated';
  59224. this.activeTaskBkgColor = 'calculated';
  59225. this.gridColor = 'lightgrey';
  59226. this.doneTaskBkgColor = 'lightgrey';
  59227. this.doneTaskBorderColor = 'grey';
  59228. this.critBorderColor = '#ff8888';
  59229. this.critBkgColor = 'red';
  59230. this.todayLineColor = 'red';
  59231. /* state colors */
  59232. this.labelColor = 'black';
  59233. this.errorBkgColor = '#552222';
  59234. this.errorTextColor = '#552222';
  59235. }
  59236. _createClass(Theme, [{
  59237. key: "updateColors",
  59238. value: function updateColors() {
  59239. /* Flowchart variables */
  59240. this.nodeBkg = this.mainBkg;
  59241. this.nodeBorder = this.border1;
  59242. this.clusterBkg = this.secondBkg;
  59243. this.clusterBorder = this.border2;
  59244. this.defaultLinkColor = this.lineColor;
  59245. /* Sequence Diagram variables */
  59246. this.actorBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.mainBkg, 20);
  59247. this.actorBkg = this.mainBkg;
  59248. this.labelBoxBkgColor = this.actorBkg;
  59249. this.labelTextColor = this.actorTextColor;
  59250. this.loopTextColor = this.actorTextColor;
  59251. this.noteBorderColor = this.border2;
  59252. this.noteTextColor = this.actorTextColor;
  59253. /* Gantt chart variables */
  59254. this.taskBorderColor = this.border1;
  59255. this.taskTextColor = this.taskTextLightColor;
  59256. this.taskTextOutsideColor = this.taskTextDarkColor;
  59257. this.activeTaskBorderColor = this.taskBorderColor;
  59258. this.activeTaskBkgColor = this.mainBkg;
  59259. /* state colors */
  59260. /* class */
  59261. this.classText = this.nodeBorder;
  59262. /* journey */
  59263. this.fillType0 = this.primaryColor;
  59264. this.fillType1 = this.secondaryColor;
  59265. this.fillType2 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  59266. h: 64
  59267. });
  59268. this.fillType3 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  59269. h: 64
  59270. });
  59271. this.fillType4 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  59272. h: -64
  59273. });
  59274. this.fillType5 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  59275. h: -64
  59276. });
  59277. this.fillType6 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  59278. h: 128
  59279. });
  59280. this.fillType7 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  59281. h: 128
  59282. });
  59283. }
  59284. }, {
  59285. key: "calculate",
  59286. value: function calculate(overrides) {
  59287. var _this = this;
  59288. if (_typeof(overrides) !== 'object') {
  59289. // Calculate colors form base colors
  59290. this.updateColors();
  59291. return;
  59292. }
  59293. var keys = Object.keys(overrides); // Copy values from overrides, this is mainly for base colors
  59294. keys.forEach(function (k) {
  59295. _this[k] = overrides[k];
  59296. }); // Calculate colors form base colors
  59297. this.updateColors(); // Copy values from overrides again in case of an override of derived value
  59298. keys.forEach(function (k) {
  59299. _this[k] = overrides[k];
  59300. });
  59301. }
  59302. }]);
  59303. return Theme;
  59304. }();
  59305. var getThemeVariables = function getThemeVariables(userOverrides) {
  59306. var theme = new Theme();
  59307. theme.calculate(userOverrides);
  59308. return theme;
  59309. };
  59310. /***/ }),
  59311. /***/ "./src/themes/theme-neutral.js":
  59312. /*!*************************************!*\
  59313. !*** ./src/themes/theme-neutral.js ***!
  59314. \*************************************/
  59315. /*! exports provided: getThemeVariables */
  59316. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59317. "use strict";
  59318. __webpack_require__.r(__webpack_exports__);
  59319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeVariables", function() { return getThemeVariables; });
  59320. /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! khroma */ "./node_modules/khroma/dist/index.js");
  59321. /* harmony import */ var khroma__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(khroma__WEBPACK_IMPORTED_MODULE_0__);
  59322. function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  59323. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  59324. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  59325. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  59326. // const Color = require ( 'khroma/dist/color' ).default
  59327. // Color.format.hex.stringify(Color.parse('hsl(210, 66.6666666667%, 95%)')); // => "#EAF2FB"
  59328. var Theme =
  59329. /*#__PURE__*/
  59330. function () {
  59331. function Theme() {
  59332. _classCallCheck(this, Theme);
  59333. this.primaryColor = '#eee';
  59334. this.contrast = '#26a';
  59335. this.secondaryColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.contrast, 55);
  59336. this.background = 'white';
  59337. this.mainBkg = '#eee';
  59338. this.secondBkg = 'calculated';
  59339. this.lineColor = '#666';
  59340. this.border1 = '#999';
  59341. this.border2 = 'calculated';
  59342. this.note = '#ffa';
  59343. this.text = '#333';
  59344. this.critical = '#d42';
  59345. this.done = '#bbb';
  59346. this.arrowheadColor = '#333333';
  59347. this.fontFamily = '"trebuchet ms", verdana, arial';
  59348. this.fontSize = '16px';
  59349. /* Flowchart variables */
  59350. this.nodeBkg = 'calculated';
  59351. this.nodeBorder = 'calculated';
  59352. this.clusterBkg = 'calculated';
  59353. this.clusterBorder = 'calculated';
  59354. this.defaultLinkColor = 'calculated';
  59355. this.titleColor = 'calculated';
  59356. this.edgeLabelBackground = 'white';
  59357. /* Sequence Diagram variables */
  59358. this.actorBorder = 'calculated';
  59359. this.actorBkg = 'calculated';
  59360. this.actorTextColor = 'calculated';
  59361. this.actorLineColor = 'calculated';
  59362. this.signalColor = 'calculated';
  59363. this.signalTextColor = 'calculated';
  59364. this.labelBoxBkgColor = 'calculated';
  59365. this.labelBoxBorderColor = 'calculated';
  59366. this.labelTextColor = 'calculated';
  59367. this.loopTextColor = 'calculated';
  59368. this.noteBorderColor = 'calculated';
  59369. this.noteBkgColor = 'calculated';
  59370. this.noteTextColor = 'calculated';
  59371. this.activationBorderColor = '#666';
  59372. this.activationBkgColor = '#f4f4f4';
  59373. this.sequenceNumberColor = 'white';
  59374. /* Gantt chart variables */
  59375. this.sectionBkgColor = 'calculated';
  59376. this.altSectionBkgColor = 'white';
  59377. this.sectionBkgColor2 = 'calculated';
  59378. this.taskBorderColor = 'calculated';
  59379. this.taskBkgColor = 'calculated';
  59380. this.taskTextLightColor = 'white';
  59381. this.taskTextColor = 'calculated';
  59382. this.taskTextDarkColor = 'calculated';
  59383. this.taskTextOutsideColor = 'calculated';
  59384. this.taskTextClickableColor = '#003163';
  59385. this.activeTaskBorderColor = 'calculated';
  59386. this.activeTaskBkgColor = 'calculated';
  59387. this.gridColor = 'calculated';
  59388. this.doneTaskBkgColor = 'calculated';
  59389. this.doneTaskBorderColor = 'calculated';
  59390. this.critBkgColor = 'calculated';
  59391. this.critBorderColor = 'calculated';
  59392. this.todayLineColor = 'calculated';
  59393. /* state colors */
  59394. this.labelColor = 'black';
  59395. this.errorBkgColor = '#552222';
  59396. this.errorTextColor = '#552222';
  59397. }
  59398. _createClass(Theme, [{
  59399. key: "updateColors",
  59400. value: function updateColors() {
  59401. this.secondBkg = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.contrast, 55);
  59402. this.border2 = this.contrast;
  59403. /* Flowchart variables */
  59404. this.nodeBkg = this.mainBkg;
  59405. this.nodeBorder = this.border1;
  59406. this.clusterBkg = this.secondBkg;
  59407. this.clusterBorder = this.border2;
  59408. this.defaultLinkColor = this.lineColor;
  59409. this.titleColor = this.text;
  59410. /* Sequence Diagram variables */
  59411. this.actorBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.border1, 23);
  59412. this.actorBkg = this.mainBkg;
  59413. this.actorTextColor = this.text;
  59414. this.actorLineColor = this.lineColor;
  59415. this.signalColor = this.text;
  59416. this.signalTextColor = this.text;
  59417. this.labelBoxBkgColor = this.actorBkg;
  59418. this.labelBoxBorderColor = this.actorBorder;
  59419. this.labelTextColor = this.text;
  59420. this.loopTextColor = this.text;
  59421. this.noteBorderColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.note, 60);
  59422. this.noteBkgColor = this.note;
  59423. this.noteTextColor = this.actorTextColor;
  59424. /* Gantt chart variables */
  59425. this.sectionBkgColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.contrast, 30);
  59426. this.sectionBkgColor2 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.contrast, 30);
  59427. this.taskBorderColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.contrast, 10);
  59428. this.taskBkgColor = this.contrast;
  59429. this.taskTextColor = this.taskTextLightColor;
  59430. this.taskTextDarkColor = this.text;
  59431. this.taskTextOutsideColor = this.taskTextDarkColor;
  59432. this.activeTaskBorderColor = this.taskBorderColor;
  59433. this.activeTaskBkgColor = this.mainBkg;
  59434. this.gridColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.border1, 30);
  59435. this.doneTaskBkgColor = this.done;
  59436. this.doneTaskBorderColor = this.lineColor;
  59437. this.critBkgColor = this.critical;
  59438. this.critBorderColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.critBkgColor, 10);
  59439. this.todayLineColor = this.critBkgColor;
  59440. /* state colors */
  59441. /* class */
  59442. this.classText = this.nodeBorder;
  59443. /* journey */
  59444. this.fillType0 = this.primaryColor;
  59445. this.fillType1 = this.secondaryColor;
  59446. this.fillType2 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  59447. h: 64
  59448. });
  59449. this.fillType3 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  59450. h: 64
  59451. });
  59452. this.fillType4 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  59453. h: -64
  59454. });
  59455. this.fillType5 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  59456. h: -64
  59457. });
  59458. this.fillType6 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, {
  59459. h: 128
  59460. });
  59461. this.fillType7 = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.secondaryColor, {
  59462. h: 128
  59463. });
  59464. }
  59465. }, {
  59466. key: "calculate",
  59467. value: function calculate(overrides) {
  59468. var _this = this;
  59469. if (_typeof(overrides) !== 'object') {
  59470. // Calculate colors form base colors
  59471. this.updateColors();
  59472. return;
  59473. }
  59474. var keys = Object.keys(overrides); // Copy values from overrides, this is mainly for base colors
  59475. keys.forEach(function (k) {
  59476. _this[k] = overrides[k];
  59477. }); // Calculate colors form base colors
  59478. this.updateColors(); // Copy values from overrides again in case of an override of derived value
  59479. keys.forEach(function (k) {
  59480. _this[k] = overrides[k];
  59481. });
  59482. }
  59483. }]);
  59484. return Theme;
  59485. }();
  59486. var getThemeVariables = function getThemeVariables(userOverrides) {
  59487. var theme = new Theme();
  59488. theme.calculate(userOverrides);
  59489. console.info('Theme', userOverrides, theme);
  59490. return theme;
  59491. };
  59492. /***/ }),
  59493. /***/ "./src/utils.js":
  59494. /*!**********************!*\
  59495. !*** ./src/utils.js ***!
  59496. \**********************/
  59497. /*! exports provided: detectInit, detectDirective, detectType, isSubstringInArray, interpolateToCurve, formatUrl, runFunc, getStylesFromArray, generateId, random, assignWithDepth, getTextObj, drawSimpleText, wrapLabel, calculateTextHeight, calculateTextWidth, calculateTextDimensions, default */
  59498. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59499. "use strict";
  59500. __webpack_require__.r(__webpack_exports__);
  59501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "detectInit", function() { return detectInit; });
  59502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "detectDirective", function() { return detectDirective; });
  59503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "detectType", function() { return detectType; });
  59504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSubstringInArray", function() { return isSubstringInArray; });
  59505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateToCurve", function() { return interpolateToCurve; });
  59506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatUrl", function() { return formatUrl; });
  59507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "runFunc", function() { return runFunc; });
  59508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStylesFromArray", function() { return getStylesFromArray; });
  59509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateId", function() { return generateId; });
  59510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "random", function() { return random; });
  59511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assignWithDepth", function() { return assignWithDepth; });
  59512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTextObj", function() { return getTextObj; });
  59513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawSimpleText", function() { return drawSimpleText; });
  59514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapLabel", function() { return wrapLabel; });
  59515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateTextHeight", function() { return calculateTextHeight; });
  59516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateTextWidth", function() { return calculateTextWidth; });
  59517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateTextDimensions", function() { return calculateTextDimensions; });
  59518. /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js");
  59519. /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./logger */ "./src/logger.js");
  59520. /* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @braintree/sanitize-url */ "./node_modules/@braintree/sanitize-url/index.js");
  59521. /* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_2__);
  59522. /* harmony import */ var _diagrams_common_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./diagrams/common/common */ "./src/diagrams/common/common.js");
  59523. var _this = undefined;
  59524. function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  59525. function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
  59526. function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
  59527. function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
  59528. function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
  59529. // import cryptoRandomString from 'crypto-random-string';
  59530. // Effectively an enum of the supported curve types, accessible by name
  59531. var d3CurveTypes = {
  59532. curveBasis: d3__WEBPACK_IMPORTED_MODULE_0__["curveBasis"],
  59533. curveBasisClosed: d3__WEBPACK_IMPORTED_MODULE_0__["curveBasisClosed"],
  59534. curveBasisOpen: d3__WEBPACK_IMPORTED_MODULE_0__["curveBasisOpen"],
  59535. curveLinear: d3__WEBPACK_IMPORTED_MODULE_0__["curveLinear"],
  59536. curveLinearClosed: d3__WEBPACK_IMPORTED_MODULE_0__["curveLinearClosed"],
  59537. curveMonotoneX: d3__WEBPACK_IMPORTED_MODULE_0__["curveMonotoneX"],
  59538. curveMonotoneY: d3__WEBPACK_IMPORTED_MODULE_0__["curveMonotoneY"],
  59539. curveNatural: d3__WEBPACK_IMPORTED_MODULE_0__["curveNatural"],
  59540. curveStep: d3__WEBPACK_IMPORTED_MODULE_0__["curveStep"],
  59541. curveStepAfter: d3__WEBPACK_IMPORTED_MODULE_0__["curveStepAfter"],
  59542. curveStepBefore: d3__WEBPACK_IMPORTED_MODULE_0__["curveStepBefore"]
  59543. };
  59544. var directive = /[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi;
  59545. var directiveWithoutOpen = /\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi;
  59546. var anyComment = /\s*%%.*\n/gm;
  59547. /**
  59548. * @function detectInit
  59549. * Detects the init config object from the text
  59550. * ```mermaid
  59551. * %%{init: {"theme": "debug", "logLevel": 1 }}%%
  59552. * graph LR
  59553. * a-->b
  59554. * b-->c
  59555. * c-->d
  59556. * d-->e
  59557. * e-->f
  59558. * f-->g
  59559. * g-->h
  59560. * ```
  59561. * or
  59562. * ```mermaid
  59563. * %%{initialize: {"theme": "dark", logLevel: "debug" }}%%
  59564. * graph LR
  59565. * a-->b
  59566. * b-->c
  59567. * c-->d
  59568. * d-->e
  59569. * e-->f
  59570. * f-->g
  59571. * g-->h
  59572. * ```
  59573. *
  59574. * @param {string} text The text defining the graph
  59575. * @returns {object} the json object representing the init passed to mermaid.initialize()
  59576. */
  59577. var detectInit = function detectInit(text) {
  59578. var inits = detectDirective(text, /(?:init\b)|(?:initialize\b)/);
  59579. var results = {};
  59580. if (Array.isArray(inits)) {
  59581. var args = inits.map(function (init) {
  59582. return init.args;
  59583. });
  59584. results = assignWithDepth(results, _toConsumableArray(args));
  59585. } else {
  59586. results = inits.args;
  59587. }
  59588. if (results) {
  59589. var type = detectType(text);
  59590. ['config'].forEach(function (prop) {
  59591. if (typeof results[prop] !== 'undefined') {
  59592. if (type === 'flowchart-v2') {
  59593. type = 'flowchart';
  59594. }
  59595. results[type] = results[prop];
  59596. delete results[prop];
  59597. }
  59598. });
  59599. }
  59600. return results;
  59601. };
  59602. /**
  59603. * @function detectDirective
  59604. * Detects the directive from the text. Text can be single line or multiline. If type is null or omitted
  59605. * the first directive encountered in text will be returned
  59606. * ```mermaid
  59607. * graph LR
  59608. * %%{somedirective}%%
  59609. * a-->b
  59610. * b-->c
  59611. * c-->d
  59612. * d-->e
  59613. * e-->f
  59614. * f-->g
  59615. * g-->h
  59616. * ```
  59617. *
  59618. * @param {string} text The text defining the graph
  59619. * @param {string|RegExp} type The directive to return (default: null)
  59620. * @returns {object | Array} An object or Array representing the directive(s): { type: string, args: object|null } matched by the input type
  59621. * if a single directive was found, that directive object will be returned.
  59622. */
  59623. var detectDirective = function detectDirective(text) {
  59624. var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  59625. try {
  59626. var commentWithoutDirectives = new RegExp("[%]{2}(?![{]".concat(directiveWithoutOpen.source, ")(?=[}][%]{2}).*\n"), 'ig');
  59627. text = text.trim().replace(commentWithoutDirectives, '').replace(/'/gm, '"');
  59628. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug("Detecting diagram directive".concat(type !== null ? ' type:' + type : '', " based on the text:").concat(text));
  59629. var match,
  59630. result = [];
  59631. while ((match = directive.exec(text)) !== null) {
  59632. // This is necessary to avoid infinite loops with zero-width matches
  59633. if (match.index === directive.lastIndex) {
  59634. directive.lastIndex++;
  59635. }
  59636. if (match && !type || type && match[1] && match[1].match(type) || type && match[2] && match[2].match(type)) {
  59637. var _type = match[1] ? match[1] : match[2];
  59638. var args = match[3] ? match[3].trim() : match[4] ? JSON.parse(match[4].trim()) : null;
  59639. result.push({
  59640. type: _type,
  59641. args: args
  59642. });
  59643. }
  59644. }
  59645. if (result.length === 0) {
  59646. result.push({
  59647. type: text,
  59648. args: null
  59649. });
  59650. }
  59651. return result.length === 1 ? result[0] : result;
  59652. } catch (error) {
  59653. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].error("ERROR: ".concat(error.message, " - Unable to parse directive").concat(type !== null ? ' type:' + type : '', " based on the text:").concat(text));
  59654. return {
  59655. type: null,
  59656. args: null
  59657. };
  59658. }
  59659. };
  59660. /**
  59661. * @function detectType
  59662. * Detects the type of the graph text. Takes into consideration the possible existence of an %%init
  59663. * directive
  59664. * ```mermaid
  59665. * %%{initialize: {"startOnLoad": true, logLevel: "fatal" }}%%
  59666. * graph LR
  59667. * a-->b
  59668. * b-->c
  59669. * c-->d
  59670. * d-->e
  59671. * e-->f
  59672. * f-->g
  59673. * g-->h
  59674. * ```
  59675. *
  59676. * @param {string} text The text defining the graph
  59677. * @returns {string} A graph definition key
  59678. */
  59679. var detectType = function detectType(text) {
  59680. text = text.replace(directive, '').replace(anyComment, '\n');
  59681. _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].debug('Detecting diagram type based on the text ' + text);
  59682. if (text.match(/^\s*sequenceDiagram/)) {
  59683. return 'sequence';
  59684. }
  59685. if (text.match(/^\s*gantt/)) {
  59686. return 'gantt';
  59687. }
  59688. if (text.match(/^\s*classDiagram-v2/)) {
  59689. return 'classDiagram';
  59690. }
  59691. if (text.match(/^\s*classDiagram/)) {
  59692. return 'class';
  59693. }
  59694. if (text.match(/^\s*stateDiagram-v2/)) {
  59695. return 'stateDiagram';
  59696. }
  59697. if (text.match(/^\s*stateDiagram/)) {
  59698. return 'state';
  59699. }
  59700. if (text.match(/^\s*gitGraph/)) {
  59701. return 'git';
  59702. }
  59703. if (text.match(/^\s*flowchart/)) {
  59704. return 'flowchart-v2';
  59705. }
  59706. if (text.match(/^\s*info/)) {
  59707. return 'info';
  59708. }
  59709. if (text.match(/^\s*pie/)) {
  59710. return 'pie';
  59711. }
  59712. if (text.match(/^\s*erDiagram/)) {
  59713. return 'er';
  59714. }
  59715. if (text.match(/^\s*journey/)) {
  59716. return 'journey';
  59717. }
  59718. return 'flowchart';
  59719. };
  59720. var memoize = function memoize(fn, resolver) {
  59721. var cache = {};
  59722. return function () {
  59723. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  59724. args[_key] = arguments[_key];
  59725. }
  59726. var n = resolver ? resolver.apply(_this, args) : args[0];
  59727. if (n in cache) {
  59728. return cache[n];
  59729. } else {
  59730. var result = fn.apply(void 0, args);
  59731. cache[n] = result;
  59732. return result;
  59733. }
  59734. };
  59735. };
  59736. /**
  59737. * @function isSubstringInArray
  59738. * Detects whether a substring in present in a given array
  59739. * @param {string} str The substring to detect
  59740. * @param {array} arr The array to search
  59741. * @returns {number} the array index containing the substring or -1 if not present
  59742. **/
  59743. var isSubstringInArray = function isSubstringInArray(str, arr) {
  59744. for (var i = 0; i < arr.length; i++) {
  59745. if (arr[i].match(str)) return i;
  59746. }
  59747. return -1;
  59748. };
  59749. var interpolateToCurve = function interpolateToCurve(interpolate, defaultCurve) {
  59750. if (!interpolate) {
  59751. return defaultCurve;
  59752. }
  59753. var curveName = "curve".concat(interpolate.charAt(0).toUpperCase() + interpolate.slice(1));
  59754. return d3CurveTypes[curveName] || defaultCurve;
  59755. };
  59756. var formatUrl = function formatUrl(linkStr, config) {
  59757. var url = linkStr.trim();
  59758. if (url) {
  59759. if (config.securityLevel !== 'loose') {
  59760. return Object(_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_2__["sanitizeUrl"])(url);
  59761. }
  59762. return url;
  59763. }
  59764. };
  59765. var runFunc = function runFunc(functionName) {
  59766. var _obj;
  59767. var arrPaths = functionName.split('.');
  59768. var len = arrPaths.length - 1;
  59769. var fnName = arrPaths[len];
  59770. var obj = window;
  59771. for (var i = 0; i < len; i++) {
  59772. obj = obj[arrPaths[i]];
  59773. if (!obj) return;
  59774. }
  59775. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  59776. params[_key2 - 1] = arguments[_key2];
  59777. }
  59778. (_obj = obj)[fnName].apply(_obj, params);
  59779. };
  59780. var distance = function distance(p1, p2) {
  59781. return p1 && p2 ? Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) : 0;
  59782. };
  59783. var traverseEdge = function traverseEdge(points) {
  59784. var prevPoint;
  59785. var totalDistance = 0;
  59786. points.forEach(function (point) {
  59787. totalDistance += distance(point, prevPoint);
  59788. prevPoint = point;
  59789. }); // Traverse half of total distance along points
  59790. var remainingDistance = totalDistance / 2;
  59791. var center = undefined;
  59792. prevPoint = undefined;
  59793. points.forEach(function (point) {
  59794. if (prevPoint && !center) {
  59795. var vectorDistance = distance(point, prevPoint);
  59796. if (vectorDistance < remainingDistance) {
  59797. remainingDistance -= vectorDistance;
  59798. } else {
  59799. // The point is remainingDistance from prevPoint in the vector between prevPoint and point
  59800. // Calculate the coordinates
  59801. var distanceRatio = remainingDistance / vectorDistance;
  59802. if (distanceRatio <= 0) center = prevPoint;
  59803. if (distanceRatio >= 1) center = {
  59804. x: point.x,
  59805. y: point.y
  59806. };
  59807. if (distanceRatio > 0 && distanceRatio < 1) {
  59808. center = {
  59809. x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,
  59810. y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y
  59811. };
  59812. }
  59813. }
  59814. }
  59815. prevPoint = point;
  59816. });
  59817. return center;
  59818. };
  59819. var calcLabelPosition = function calcLabelPosition(points) {
  59820. return traverseEdge(points);
  59821. };
  59822. var calcCardinalityPosition = function calcCardinalityPosition(isRelationTypePresent, points, initialPosition) {
  59823. var prevPoint;
  59824. var totalDistance = 0; // eslint-disable-line
  59825. if (points[0] !== initialPosition) {
  59826. points = points.reverse();
  59827. }
  59828. points.forEach(function (point) {
  59829. totalDistance += distance(point, prevPoint);
  59830. prevPoint = point;
  59831. }); // Traverse only 25 total distance along points to find cardinality point
  59832. var distanceToCardinalityPoint = 25;
  59833. var remainingDistance = distanceToCardinalityPoint;
  59834. var center;
  59835. prevPoint = undefined;
  59836. points.forEach(function (point) {
  59837. if (prevPoint && !center) {
  59838. var vectorDistance = distance(point, prevPoint);
  59839. if (vectorDistance < remainingDistance) {
  59840. remainingDistance -= vectorDistance;
  59841. } else {
  59842. // The point is remainingDistance from prevPoint in the vector between prevPoint and point
  59843. // Calculate the coordinates
  59844. var distanceRatio = remainingDistance / vectorDistance;
  59845. if (distanceRatio <= 0) center = prevPoint;
  59846. if (distanceRatio >= 1) center = {
  59847. x: point.x,
  59848. y: point.y
  59849. };
  59850. if (distanceRatio > 0 && distanceRatio < 1) {
  59851. center = {
  59852. x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,
  59853. y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y
  59854. };
  59855. }
  59856. }
  59857. }
  59858. prevPoint = point;
  59859. }); // if relation is present (Arrows will be added), change cardinality point off-set distance (d)
  59860. var d = isRelationTypePresent ? 10 : 5; //Calculate Angle for x and y axis
  59861. var angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);
  59862. var cardinalityPosition = {
  59863. x: 0,
  59864. y: 0
  59865. }; //Calculation cardinality position using angle, center point on the line/curve but pendicular and with offset-distance
  59866. cardinalityPosition.x = Math.sin(angle) * d + (points[0].x + center.x) / 2;
  59867. cardinalityPosition.y = -Math.cos(angle) * d + (points[0].y + center.y) / 2;
  59868. return cardinalityPosition;
  59869. };
  59870. var getStylesFromArray = function getStylesFromArray(arr) {
  59871. var style = '';
  59872. var labelStyle = '';
  59873. for (var i = 0; i < arr.length; i++) {
  59874. if (typeof arr[i] !== 'undefined') {
  59875. // add text properties to label style definition
  59876. if (arr[i].startsWith('color:') || arr[i].startsWith('text-align:')) {
  59877. labelStyle = labelStyle + arr[i] + ';';
  59878. } else {
  59879. style = style + arr[i] + ';';
  59880. }
  59881. }
  59882. }
  59883. return {
  59884. style: style,
  59885. labelStyle: labelStyle
  59886. };
  59887. };
  59888. var cnt = 0;
  59889. var generateId = function generateId() {
  59890. cnt++;
  59891. return 'id-' + Math.random().toString(36).substr(2, 12) + '-' + cnt;
  59892. };
  59893. function makeid(length) {
  59894. var result = '';
  59895. var characters = '0123456789abcdef';
  59896. var charactersLength = characters.length;
  59897. for (var i = 0; i < length; i++) {
  59898. result += characters.charAt(Math.floor(Math.random() * charactersLength));
  59899. }
  59900. return result;
  59901. }
  59902. var random = function random(options) {
  59903. return makeid(options.length);
  59904. };
  59905. /**
  59906. * @function assignWithDepth
  59907. * Extends the functionality of {@link ObjectConstructor.assign} with the ability to merge arbitrary-depth objects
  59908. * For each key in src with path `k` (recursively) performs an Object.assign(dst[`k`], src[`k`]) with
  59909. * a slight change from the typical handling of undefined for dst[`k`]: instead of raising an error,
  59910. * dst[`k`] is auto-initialized to {} and effectively merged with src[`k`]
  59911. * <p>
  59912. * Additionally, dissimilar types will not clobber unless the config.clobber parameter === true. Example:
  59913. * ```
  59914. * let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };
  59915. * let config_1 = { foo: 'foo', bar: 'bar' };
  59916. * let result = assignWithDepth(config_0, config_1);
  59917. * console.log(result);
  59918. * //-> result: { foo: { bar: 'bar' }, bar: 'bar' }
  59919. * ```
  59920. * <p>
  59921. * Traditional Object.assign would have clobbered foo in config_0 with foo in config_1.
  59922. * <p>
  59923. * If src is a destructured array of objects and dst is not an array, assignWithDepth will apply each element of src to dst
  59924. * in order.
  59925. * @param dst:any - the destination of the merge
  59926. * @param src:any - the source object(s) to merge into destination
  59927. * @param config:{ depth: number, clobber: boolean } - depth: depth to traverse within src and dst for merging -
  59928. * clobber: should dissimilar types clobber (default: { depth: 2, clobber: false })
  59929. * @returns {*}
  59930. */
  59931. var assignWithDepth = function assignWithDepth(dst, src, config) {
  59932. var _Object$assign = Object.assign({
  59933. depth: 2,
  59934. clobber: false
  59935. }, config),
  59936. depth = _Object$assign.depth,
  59937. clobber = _Object$assign.clobber;
  59938. if (Array.isArray(src) && !Array.isArray(dst)) {
  59939. src.forEach(function (s) {
  59940. return assignWithDepth(dst, s, config);
  59941. });
  59942. return dst;
  59943. } else if (Array.isArray(src) && Array.isArray(dst)) {
  59944. src.forEach(function (s) {
  59945. if (dst.indexOf(s) === -1) {
  59946. dst.push(s);
  59947. }
  59948. });
  59949. return dst;
  59950. }
  59951. if (typeof dst === 'undefined' || depth <= 0) {
  59952. if (dst !== undefined && dst !== null && _typeof(dst) === 'object' && _typeof(src) === 'object') {
  59953. return Object.assign(dst, src);
  59954. } else {
  59955. return src;
  59956. }
  59957. }
  59958. if (typeof src !== 'undefined' && _typeof(dst) === 'object' && _typeof(src) === 'object') {
  59959. Object.keys(src).forEach(function (key) {
  59960. if (_typeof(src[key]) === 'object' && (dst[key] === undefined || _typeof(dst[key]) === 'object')) {
  59961. if (dst[key] === undefined) {
  59962. dst[key] = Array.isArray(src[key]) ? [] : {};
  59963. }
  59964. dst[key] = assignWithDepth(dst[key], src[key], {
  59965. depth: depth - 1,
  59966. clobber: clobber
  59967. });
  59968. } else if (clobber || _typeof(dst[key]) !== 'object' && _typeof(src[key]) !== 'object') {
  59969. dst[key] = src[key];
  59970. }
  59971. });
  59972. }
  59973. return dst;
  59974. };
  59975. var getTextObj = function getTextObj() {
  59976. return {
  59977. x: 0,
  59978. y: 0,
  59979. fill: undefined,
  59980. anchor: 'start',
  59981. style: '#666',
  59982. width: 100,
  59983. height: 100,
  59984. textMargin: 0,
  59985. rx: 0,
  59986. ry: 0,
  59987. valign: undefined
  59988. };
  59989. };
  59990. var drawSimpleText = function drawSimpleText(elem, textData) {
  59991. // Remove and ignore br:s
  59992. var nText = textData.text.replace(_diagrams_common_common__WEBPACK_IMPORTED_MODULE_3__["default"].lineBreakRegex, ' ');
  59993. var textElem = elem.append('text');
  59994. textElem.attr('x', textData.x);
  59995. textElem.attr('y', textData.y);
  59996. textElem.style('text-anchor', textData.anchor);
  59997. textElem.style('font-family', textData.fontFamily);
  59998. textElem.style('font-size', textData.fontSize);
  59999. textElem.style('font-weight', textData.fontWeight);
  60000. textElem.attr('fill', textData.fill);
  60001. if (typeof textData.class !== 'undefined') {
  60002. textElem.attr('class', textData.class);
  60003. }
  60004. var span = textElem.append('tspan');
  60005. span.attr('x', textData.x + textData.textMargin * 2);
  60006. span.attr('fill', textData.fill);
  60007. span.text(nText);
  60008. return textElem;
  60009. };
  60010. var wrapLabel = memoize(function (label, maxWidth, config) {
  60011. if (!label) {
  60012. return label;
  60013. }
  60014. config = Object.assign({
  60015. fontSize: 12,
  60016. fontWeight: 400,
  60017. fontFamily: 'Arial',
  60018. joinWith: '<br/>'
  60019. }, config);
  60020. if (_diagrams_common_common__WEBPACK_IMPORTED_MODULE_3__["default"].lineBreakRegex.test(label)) {
  60021. return label;
  60022. }
  60023. var words = label.split(' ');
  60024. var completedLines = [];
  60025. var nextLine = '';
  60026. words.forEach(function (word, index) {
  60027. var wordLength = calculateTextWidth("".concat(word, " "), config);
  60028. var nextLineLength = calculateTextWidth(nextLine, config);
  60029. if (wordLength > maxWidth) {
  60030. var _breakString = breakString(word, maxWidth, '-', config),
  60031. hyphenatedStrings = _breakString.hyphenatedStrings,
  60032. remainingWord = _breakString.remainingWord;
  60033. completedLines.push.apply(completedLines, [nextLine].concat(_toConsumableArray(hyphenatedStrings)));
  60034. nextLine = remainingWord;
  60035. } else if (nextLineLength + wordLength >= maxWidth) {
  60036. completedLines.push(nextLine);
  60037. nextLine = word;
  60038. } else {
  60039. nextLine = [nextLine, word].filter(Boolean).join(' ');
  60040. }
  60041. var currentWord = index + 1;
  60042. var isLastWord = currentWord === words.length;
  60043. if (isLastWord) {
  60044. completedLines.push(nextLine);
  60045. }
  60046. });
  60047. return completedLines.filter(function (line) {
  60048. return line !== '';
  60049. }).join(config.joinWith);
  60050. }, function (label, maxWidth, config) {
  60051. return "".concat(label, "-").concat(maxWidth, "-").concat(config.fontSize, "-").concat(config.fontWeight, "-").concat(config.fontFamily, "-").concat(config.joinWith);
  60052. });
  60053. var breakString = memoize(function (word, maxWidth) {
  60054. var hyphenCharacter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';
  60055. var config = arguments.length > 3 ? arguments[3] : undefined;
  60056. config = Object.assign({
  60057. fontSize: 12,
  60058. fontWeight: 400,
  60059. fontFamily: 'Arial',
  60060. margin: 0
  60061. }, config);
  60062. var characters = word.split('');
  60063. var lines = [];
  60064. var currentLine = '';
  60065. characters.forEach(function (character, index) {
  60066. var nextLine = "".concat(currentLine).concat(character);
  60067. var lineWidth = calculateTextWidth(nextLine, config);
  60068. if (lineWidth >= maxWidth) {
  60069. var currentCharacter = index + 1;
  60070. var isLastLine = characters.length === currentCharacter;
  60071. var hyphenatedNextLine = "".concat(nextLine).concat(hyphenCharacter);
  60072. lines.push(isLastLine ? nextLine : hyphenatedNextLine);
  60073. currentLine = '';
  60074. } else {
  60075. currentLine = nextLine;
  60076. }
  60077. });
  60078. return {
  60079. hyphenatedStrings: lines,
  60080. remainingWord: currentLine
  60081. };
  60082. }, function (word, maxWidth) {
  60083. var hyphenCharacter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';
  60084. var config = arguments.length > 3 ? arguments[3] : undefined;
  60085. return "".concat(word, "-").concat(maxWidth, "-").concat(hyphenCharacter, "-").concat(config.fontSize, "-").concat(config.fontWeight, "-").concat(config.fontFamily);
  60086. });
  60087. /**
  60088. * This calculates the text's height, taking into account the wrap breaks and
  60089. * both the statically configured height, width, and the length of the text (in pixels).
  60090. *
  60091. * If the wrapped text text has greater height, we extend the height, so it's
  60092. * value won't overflow.
  60093. *
  60094. * @return - The height for the given text
  60095. * @param text the text to measure
  60096. * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size
  60097. */
  60098. var calculateTextHeight = function calculateTextHeight(text, config) {
  60099. config = Object.assign({
  60100. fontSize: 12,
  60101. fontWeight: 400,
  60102. fontFamily: 'Arial',
  60103. margin: 15
  60104. }, config);
  60105. return calculateTextDimensions(text, config).height;
  60106. };
  60107. /**
  60108. * This calculates the width of the given text, font size and family.
  60109. *
  60110. * @return - The width for the given text
  60111. * @param text - The text to calculate the width of
  60112. * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size
  60113. */
  60114. var calculateTextWidth = function calculateTextWidth(text, config) {
  60115. config = Object.assign({
  60116. fontSize: 12,
  60117. fontWeight: 400,
  60118. fontFamily: 'Arial'
  60119. }, config);
  60120. return calculateTextDimensions(text, config).width;
  60121. };
  60122. /**
  60123. * This calculates the dimensions of the given text, font size, font family, font weight, and margins.
  60124. *
  60125. * @return - The width for the given text
  60126. * @param text - The text to calculate the width of
  60127. * @param config - the config for fontSize, fontFamily, fontWeight, and margin all impacting the resulting size
  60128. */
  60129. var calculateTextDimensions = memoize(function (text, config) {
  60130. config = Object.assign({
  60131. fontSize: 12,
  60132. fontWeight: 400,
  60133. fontFamily: 'Arial'
  60134. }, config);
  60135. var _config = config,
  60136. fontSize = _config.fontSize,
  60137. fontFamily = _config.fontFamily,
  60138. fontWeight = _config.fontWeight;
  60139. if (!text) {
  60140. return {
  60141. width: 0,
  60142. height: 0
  60143. };
  60144. } // We can't really know if the user supplied font family will render on the user agent;
  60145. // thus, we'll take the max width between the user supplied font family, and a default
  60146. // of sans-serif.
  60147. var fontFamilies = ['sans-serif', fontFamily];
  60148. var lines = text.split(_diagrams_common_common__WEBPACK_IMPORTED_MODULE_3__["default"].lineBreakRegex);
  60149. var dims = [];
  60150. var body = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])('body'); // We don't want to leak DOM elements - if a removal operation isn't available
  60151. // for any reason, do not continue.
  60152. if (!body.remove) {
  60153. return {
  60154. width: 0,
  60155. height: 0,
  60156. lineHeight: 0
  60157. };
  60158. }
  60159. var g = body.append('svg');
  60160. for (var _i = 0, _fontFamilies = fontFamilies; _i < _fontFamilies.length; _i++) {
  60161. var _fontFamily = _fontFamilies[_i];
  60162. var cheight = 0;
  60163. var dim = {
  60164. width: 0,
  60165. height: 0,
  60166. lineHeight: 0
  60167. };
  60168. var _iteratorNormalCompletion = true;
  60169. var _didIteratorError = false;
  60170. var _iteratorError = undefined;
  60171. try {
  60172. for (var _iterator = lines[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  60173. var line = _step.value;
  60174. var textObj = getTextObj();
  60175. textObj.text = line;
  60176. var textElem = drawSimpleText(g, textObj).style('font-size', fontSize).style('font-weight', fontWeight).style('font-family', _fontFamily);
  60177. var bBox = (textElem._groups || textElem)[0][0].getBBox();
  60178. dim.width = Math.round(Math.max(dim.width, bBox.width));
  60179. cheight = Math.round(bBox.height);
  60180. dim.height += cheight;
  60181. dim.lineHeight = Math.round(Math.max(dim.lineHeight, cheight));
  60182. }
  60183. } catch (err) {
  60184. _didIteratorError = true;
  60185. _iteratorError = err;
  60186. } finally {
  60187. try {
  60188. if (!_iteratorNormalCompletion && _iterator.return != null) {
  60189. _iterator.return();
  60190. }
  60191. } finally {
  60192. if (_didIteratorError) {
  60193. throw _iteratorError;
  60194. }
  60195. }
  60196. }
  60197. dims.push(dim);
  60198. }
  60199. g.remove();
  60200. var index = isNaN(dims[1].height) || isNaN(dims[1].width) || isNaN(dims[1].lineHeight) || dims[0].height > dims[1].height && dims[0].width > dims[1].width && dims[0].lineHeight > dims[1].lineHeight ? 0 : 1;
  60201. return dims[index];
  60202. }, function (text, config) {
  60203. return "".concat(text, "-").concat(config.fontSize, "-").concat(config.fontWeight, "-").concat(config.fontFamily);
  60204. });
  60205. /* harmony default export */ __webpack_exports__["default"] = ({
  60206. assignWithDepth: assignWithDepth,
  60207. wrapLabel: wrapLabel,
  60208. calculateTextHeight: calculateTextHeight,
  60209. calculateTextWidth: calculateTextWidth,
  60210. calculateTextDimensions: calculateTextDimensions,
  60211. detectInit: detectInit,
  60212. detectDirective: detectDirective,
  60213. detectType: detectType,
  60214. isSubstringInArray: isSubstringInArray,
  60215. interpolateToCurve: interpolateToCurve,
  60216. calcLabelPosition: calcLabelPosition,
  60217. calcCardinalityPosition: calcCardinalityPosition,
  60218. formatUrl: formatUrl,
  60219. getStylesFromArray: getStylesFromArray,
  60220. generateId: generateId,
  60221. random: random,
  60222. memoize: memoize,
  60223. runFunc: runFunc
  60224. });
  60225. /***/ })
  60226. /******/ })["default"];
  60227. });
  60228. //# sourceMappingURL=mermaid.js.map