@preschen/gen-vis 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -0
  2. package/package.json +44 -0
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ var t={854:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(81),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([t.id,".vis-inner[data-v-6b719c92]{position:relative;display:inline-block}.vis-inner .debug[data-v-6b719c92]{font-size:12px}.vis-inner[data-v-6b719c92] svg g.axis-position-bottom g.tick line{transform:translate(0px, -4px)}.vis-inner[data-v-6b719c92] svg g.axis-position-top g.tick line{transform:translate(0px, 5px)}.vis-inner[data-v-6b719c92] svg g.axis-position-right g.tick line{transform:translate(-4px, 0px)}.vis-inner[data-v-6b719c92] svg g.axis-position-bottom g.tick line{transform:translate(0px, -4px)}.vis-inner[data-v-6b719c92] svg g.axis-position-left g.tick line{transform:translate(5px, 0px)}.vis-inner[data-v-6b719c92] svg g.tick text{font-size:13px}.vis-inner[data-v-6b719c92] svg .axis-title{font-size:13px}.vis-inner[data-v-6b719c92] svg g.group[data-visible=false],.vis-inner[data-v-6b719c92] svg path[data-visible=false]{opacity:.01}.vis-inner[data-v-6b719c92] svg g.grid{stroke:#ccc;stroke-width:.75px}.vis-inner[data-v-6b719c92] svg g.hoverMarker line{stroke-width:.75px;stroke:#aaa}",""]);const s=a},137:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(81),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([t.id,".formElement[data-v-4bf43b49]{font-size:13px;margin:6px 4px}.formElement .title[data-v-4bf43b49]{font-weight:bold;margin-right:5px;display:inline-block}.formElement .entries[data-v-4bf43b49]{display:inline-block}.formElement .entries>div[data-v-4bf43b49]{display:inline-block;margin-right:5px}.formElement .entries>div input[data-v-4bf43b49]{position:relative;display:inline-block;top:1px}",""]);const s=a},119:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(81),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([t.id,".hover[data-v-b25a8ab0]{position:absolute;top:0px;font-size:13px;background-color:rgba(255,255,255,.8);top:40%;pointer-events:none}.hover .title[data-v-b25a8ab0]{font-weight:bold;padding:1px 3px;border-bottom:2px solid #000;text-align:center}.hover[data-v-b25a8ab0] table{border-collapse:collapse;margin-left:auto;margin-right:auto}.hover[data-v-b25a8ab0] table tr.nearest{font-weight:bold}.hover[data-v-b25a8ab0] table tr td{text-align:left;padding:1px 5px}.hover[data-v-b25a8ab0] table tr td.value{text-align:right}.hover[data-v-b25a8ab0] table tr td.y{text-align:right}.hover[data-v-b25a8ab0] table tr td:first-child{border-left:0}",""]);const s=a},574:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(81),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([t.id,".legend .title[data-v-c27ae710]{font-weight:bold;font-size:13px;margin:3px;position:relative}.legend .entries>div[data-v-c27ae710]{cursor:pointer;display:inline-block;margin:0px 5px}.legend .entries>div[data-visible=false][data-v-c27ae710]{opacity:.3}.legend .entries>div span[data-v-c27ae710]{top:-4px;display:inline-block;position:relative;font-size:13px}.legend .entries>div.bold[data-v-c27ae710]{font-weight:bold}",""]);const s=a},582:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(81),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([t.id,"svg[data-v-5ffe5c5e]{display:inline-block;margin-right:5px}",""]);const s=a},674:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(81),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([t.id,".vis[data-v-4e2c80a1] text,.vis[data-v-4e2c80a1] span,.vis[data-v-4e2c80a1] div{font-family:Century Gothic,sans-serif}.vis-header[data-v-4e2c80a1]{margin-bottom:10px}.vis-header .title[data-v-4e2c80a1]{font-size:22px;font-weight:bold}.vis-header .subtitle[data-v-4e2c80a1]{font-size:13px;margin-top:3px}.vis-footer span[data-v-4e2c80a1]{font-size:13px}.facet-title[data-v-4e2c80a1]{font-size:13px;font-weight:bold;margin-top:8px}",""]);const s=a},645:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},81:t=>{t.exports=function(t){return t[1]}},996:t=>{var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===n}(t)}(t)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function i(t,e,n){return t.concat(e).map((function(t){return r(t,n)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function a(t,e){try{return e in t}catch(t){return!1}}function s(t,n,c){(c=c||{}).arrayMerge=c.arrayMerge||i,c.isMergeableObject=c.isMergeableObject||e,c.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(t)?u?c.arrayMerge(t,n,c):function(t,e,n){var i={};return n.isMergeableObject(t)&&o(t).forEach((function(e){i[e]=r(t[e],n)})),o(e).forEach((function(o){(function(t,e){return a(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(a(t,o)&&n.isMergeableObject(e[o])?i[o]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(o,n)(t[o],e[o],n):i[o]=r(e[o],n))})),i}(t,n,c):r(n,c)}s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return s(t,n,e)}),{})};var c=s;t.exports=c},230:t=>{t.exports="object"==typeof self?self.FormData:window.FormData},379:t=>{var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var o={},a=[],s=0;s<t.length;s++){var c=t[s],u=r.base?c[0]+r.base:c[0],l=o[u]||0,f="".concat(u," ").concat(l);o[u]=l+1;var h=n(f),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)e[h].references++,e[h].updater(d);else{var p=i(d,r);r.byIndex=s,e.splice(s,0,{identifier:f,updater:p,references:1})}a.push(f)}return a}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var o=r(t=t||[],i=i||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=n(o[a]);e[s].references--}for(var c=r(t,i),u=0;u<o.length;u++){var l=n(o[u]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}o=c}}},569:t=>{var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},216:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},565:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},795:t=>{t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},589:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},744:(t,e)=>{e.Z=(t,e)=>{const n=t.__vccOpts||t;for(const[t,r]of e)n[t]=r;return n}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var r={};(()=>{n.d(r,{J:()=>iF,K:()=>rF});var t={};n.r(t),n.d(t,{Adder:()=>hc,Delaunay:()=>Tv,FormatSpecifier:()=>Cm,InternMap:()=>gc,InternSet:()=>vc,Node:()=>GM,Voronoi:()=>xv,ZoomTransform:()=>lj,active:()=>Jd,arc:()=>ZN,area:()=>nP,areaRadial:()=>fP,ascending:()=>$s,autoType:()=>ry,axisBottom:()=>Ju,axisLeft:()=>Ku,axisRight:()=>Xu,axisTop:()=>Gu,bin:()=>Gc,bisect:()=>Gs,bisectCenter:()=>Zs,bisectLeft:()=>Ws,bisectRight:()=>Ys,bisector:()=>zs,blob:()=>Iy,blur:()=>Xs,blur2:()=>Js,blurImage:()=>Ks,brush:()=>kp,brushSelection:()=>Sp,brushX:()=>Ap,brushY:()=>Tp,buffer:()=>$y,chord:()=>Up,chordDirected:()=>Bp,chordTranspose:()=>zp,cluster:()=>BM,color:()=>Wf,contourDensity:()=>Kg,contours:()=>Zg,count:()=>rc,create:()=>xN,creator:()=>sf,cross:()=>sc,csv:()=>qy,csvFormat:()=>qv,csvFormatBody:()=>Hv,csvFormatRow:()=>Wv,csvFormatRows:()=>Yv,csvFormatValue:()=>Zv,csvParse:()=>Bv,csvParseRows:()=>Vv,cubehelix:()=>Lg,cumsum:()=>cc,curveBasis:()=>eR,curveBasisClosed:()=>rR,curveBasisOpen:()=>oR,curveBumpX:()=>gP,curveBumpY:()=>vP,curveBundle:()=>sR,curveCardinal:()=>lR,curveCardinalClosed:()=>hR,curveCardinalOpen:()=>pR,curveCatmullRom:()=>yR,curveCatmullRomClosed:()=>_R,curveCatmullRomOpen:()=>xR,curveLinear:()=>KN,curveLinearClosed:()=>MR,curveMonotoneX:()=>NR,curveMonotoneY:()=>PR,curveNatural:()=>DR,curveStep:()=>IR,curveStepAfter:()=>$R,curveStepBefore:()=>LR,descending:()=>Us,deviation:()=>lc,difference:()=>Ru,disjoint:()=>ju,dispatch:()=>ol,drag:()=>jv,dragDisable:()=>Tf,dragEnable:()=>kf,dsv:()=>Vy,dsvFormat:()=>Uv,easeBack:()=>Ny,easeBackIn:()=>Oy,easeBackInOut:()=>Ny,easeBackOut:()=>Cy,easeBounce:()=>Ay,easeBounceIn:()=>Sy,easeBounceInOut:()=>Ty,easeBounceOut:()=>Ay,easeCircle:()=>My,easeCircleIn:()=>xy,easeCircleInOut:()=>My,easeCircleOut:()=>wy,easeCubic:()=>Wd,easeCubicIn:()=>Hd,easeCubicInOut:()=>Wd,easeCubicOut:()=>Yd,easeElastic:()=>jy,easeElasticIn:()=>Ry,easeElasticInOut:()=>Dy,easeElasticOut:()=>jy,easeExp:()=>by,easeExpIn:()=>my,easeExpInOut:()=>by,easeExpOut:()=>_y,easeLinear:()=>oy,easePoly:()=>fy,easePolyIn:()=>uy,easePolyInOut:()=>fy,easePolyOut:()=>ly,easeQuad:()=>cy,easeQuadIn:()=>ay,easeQuadInOut:()=>cy,easeQuadOut:()=>sy,easeSin:()=>vy,easeSinIn:()=>py,easeSinInOut:()=>vy,easeSinOut:()=>gy,every:()=>Tu,extent:()=>fc,fcumsum:()=>pc,filter:()=>Ou,flatGroup:()=>Sc,flatRollup:()=>Ac,forceCenter:()=>Qy,forceCollide:()=>hm,forceLink:()=>gm,forceManyBody:()=>xm,forceRadial:()=>wm,forceSimulation:()=>bm,forceX:()=>Mm,forceY:()=>Em,format:()=>Dm,formatDefaultLocale:()=>Um,formatLocale:()=>$m,formatPrefix:()=>Fm,formatSpecifier:()=>Om,fsum:()=>dc,geoAlbers:()=>rM,geoAlbersUsa:()=>iM,geoArea:()=>q_,geoAzimuthalEqualArea:()=>cM,geoAzimuthalEqualAreaRaw:()=>sM,geoAzimuthalEquidistant:()=>lM,geoAzimuthalEquidistantRaw:()=>uM,geoBounds:()=>Sb,geoCentroid:()=>Ib,geoCircle:()=>Zb,geoClipAntimeridian:()=>ox,geoClipCircle:()=>ax,geoClipExtent:()=>px,geoClipRectangle:()=>dx,geoConicConformal:()=>vM,geoConicConformalRaw:()=>gM,geoConicEqualArea:()=>nM,geoConicEqualAreaRaw:()=>eM,geoConicEquidistant:()=>bM,geoConicEquidistantRaw:()=>_M,geoContains:()=>Nx,geoDistance:()=>wx,geoEqualEarth:()=>TM,geoEqualEarthRaw:()=>AM,geoEquirectangular:()=>mM,geoEquirectangularRaw:()=>yM,geoGnomonic:()=>OM,geoGnomonicRaw:()=>kM,geoGraticule:()=>jx,geoGraticule10:()=>Dx,geoIdentity:()=>CM,geoInterpolate:()=>Fx,geoLength:()=>_x,geoMercator:()=>hM,geoMercatorRaw:()=>fM,geoNaturalEarth1:()=>PM,geoNaturalEarth1Raw:()=>NM,geoOrthographic:()=>jM,geoOrthographicRaw:()=>RM,geoPath:()=>$w,geoProjection:()=>Kw,geoProjectionMutator:()=>Qw,geoRotation:()=>Hb,geoStereographic:()=>FM,geoStereographicRaw:()=>DM,geoStream:()=>b_,geoTransform:()=>Uw,geoTransverseMercator:()=>LM,geoTransverseMercatorRaw:()=>IM,gray:()=>yg,greatest:()=>nu,greatestIndex:()=>_u,group:()=>wc,groupSort:()=>Ic,groups:()=>Mc,hcl:()=>Ag,hierarchy:()=>qM,histogram:()=>Gc,hsl:()=>ah,html:()=>Jy,image:()=>Yy,index:()=>Oc,indexes:()=>Cc,interpolate:()=>Ph,interpolateArray:()=>Eh,interpolateBasis:()=>hh,interpolateBasisClosed:()=>dh,interpolateBlues:()=>ZC,interpolateBrBG:()=>aC,interpolateBuGn:()=>EC,interpolateBuPu:()=>AC,interpolateCividis:()=>oN,interpolateCool:()=>cN,interpolateCubehelix:()=>sS,interpolateCubehelixDefault:()=>aN,interpolateCubehelixLong:()=>cS,interpolateDate:()=>Ah,interpolateDiscrete:()=>ZE,interpolateGnBu:()=>kC,interpolateGreens:()=>XC,interpolateGreys:()=>KC,interpolateHcl:()=>iS,interpolateHclLong:()=>oS,interpolateHsl:()=>tS,interpolateHslLong:()=>eS,interpolateHue:()=>GE,interpolateInferno:()=>_N,interpolateLab:()=>nS,interpolateMagma:()=>mN,interpolateNumber:()=>Th,interpolateNumberArray:()=>wh,interpolateObject:()=>kh,interpolateOrRd:()=>CC,interpolateOranges:()=>iN,interpolatePRGn:()=>cC,interpolatePiYG:()=>lC,interpolatePlasma:()=>bN,interpolatePuBu:()=>jC,interpolatePuBuGn:()=>PC,interpolatePuOr:()=>hC,interpolatePuRd:()=>FC,interpolatePurples:()=>tN,interpolateRainbow:()=>lN,interpolateRdBu:()=>pC,interpolateRdGy:()=>vC,interpolateRdPu:()=>LC,interpolateRdYlBu:()=>mC,interpolateRdYlGn:()=>bC,interpolateReds:()=>nN,interpolateRgb:()=>mh,interpolateRgbBasis:()=>bh,interpolateRgbBasisClosed:()=>xh,interpolateRound:()=>XE,interpolateSinebow:()=>pN,interpolateSpectral:()=>wC,interpolateString:()=>Nh,interpolateTransformCss:()=>hd,interpolateTransformSvg:()=>dd,interpolateTurbo:()=>gN,interpolateViridis:()=>yN,interpolateWarm:()=>sN,interpolateYlGn:()=>BC,interpolateYlGnBu:()=>UC,interpolateYlOrBr:()=>qC,interpolateYlOrRd:()=>YC,interpolateZoom:()=>KE,interrupt:()=>ad,intersection:()=>Du,interval:()=>sj,isoFormat:()=>ij,isoParse:()=>aj,json:()=>Zy,lab:()=>mg,lch:()=>Sg,least:()=>yu,leastIndex:()=>mu,line:()=>eP,lineRadial:()=>lP,link:()=>bP,linkHorizontal:()=>xP,linkRadial:()=>MP,linkVertical:()=>wP,local:()=>MN,map:()=>Cu,matcher:()=>fl,max:()=>Xc,maxIndex:()=>Jc,mean:()=>cu,median:()=>uu,medianIndex:()=>lu,merge:()=>fu,min:()=>Kc,minIndex:()=>Qc,mode:()=>hu,namespace:()=>Tl,namespaces:()=>Al,nice:()=>Wc,now:()=>Hh,pack:()=>mE,packEnclose:()=>nE,packSiblings:()=>vE,pairs:()=>du,partition:()=>EE,path:()=>Xp,permute:()=>Rc,pie:()=>oP,piecewise:()=>uS,pointRadial:()=>hP,pointer:()=>jh,pointers:()=>SN,polygonArea:()=>fS,polygonCentroid:()=>hS,polygonContains:()=>vS,polygonHull:()=>gS,polygonLength:()=>yS,precisionFixed:()=>zm,precisionPrefix:()=>Bm,precisionRound:()=>Vm,quadtree:()=>im,quantile:()=>ru,quantileIndex:()=>ou,quantileSorted:()=>iu,quantize:()=>lS,quickselect:()=>tu,radialArea:()=>fP,radialLine:()=>lP,randomBates:()=>ES,randomBernoulli:()=>TS,randomBeta:()=>CS,randomBinomial:()=>NS,randomCauchy:()=>RS,randomExponential:()=>SS,randomGamma:()=>OS,randomGeometric:()=>kS,randomInt:()=>bS,randomIrwinHall:()=>MS,randomLcg:()=>IS,randomLogNormal:()=>wS,randomLogistic:()=>jS,randomNormal:()=>xS,randomPareto:()=>AS,randomPoisson:()=>DS,randomUniform:()=>_S,randomWeibull:()=>PS,range:()=>gu,rank:()=>vu,reduce:()=>Nu,reverse:()=>Pu,rgb:()=>Jf,ribbon:()=>sg,ribbonArrow:()=>cg,rollup:()=>Tc,rollups:()=>kc,scaleBand:()=>BS,scaleDiverging:()=>BO,scaleDivergingLog:()=>VO,scaleDivergingPow:()=>HO,scaleDivergingSqrt:()=>YO,scaleDivergingSymlog:()=>qO,scaleIdentity:()=>rA,scaleImplicit:()=>US,scaleLinear:()=>nA,scaleLog:()=>hA,scaleOrdinal:()=>zS,scalePoint:()=>qS,scalePow:()=>xA,scaleQuantile:()=>AA,scaleQuantize:()=>TA,scaleRadial:()=>SA,scaleSequential:()=>DO,scaleSequentialLog:()=>FO,scaleSequentialPow:()=>LO,scaleSequentialQuantile:()=>UO,scaleSequentialSqrt:()=>$O,scaleSequentialSymlog:()=>IO,scaleSqrt:()=>wA,scaleSymlog:()=>vA,scaleThreshold:()=>kA,scaleTime:()=>NO,scaleUtc:()=>PO,scan:()=>bu,schemeAccent:()=>GO,schemeBlues:()=>WC,schemeBrBG:()=>oC,schemeBuGn:()=>MC,schemeBuPu:()=>SC,schemeCategory10:()=>ZO,schemeDark2:()=>XO,schemeGnBu:()=>TC,schemeGreens:()=>GC,schemeGreys:()=>JC,schemeOrRd:()=>OC,schemeOranges:()=>rN,schemePRGn:()=>sC,schemePaired:()=>JO,schemePastel1:()=>KO,schemePastel2:()=>QO,schemePiYG:()=>uC,schemePuBu:()=>RC,schemePuBuGn:()=>NC,schemePuOr:()=>fC,schemePuRd:()=>DC,schemePurples:()=>QC,schemeRdBu:()=>dC,schemeRdGy:()=>gC,schemeRdPu:()=>IC,schemeRdYlBu:()=>yC,schemeRdYlGn:()=>_C,schemeReds:()=>eN,schemeSet1:()=>tC,schemeSet2:()=>eC,schemeSet3:()=>nC,schemeSpectral:()=>xC,schemeTableau10:()=>rC,schemeYlGn:()=>zC,schemeYlGnBu:()=>$C,schemeYlOrBr:()=>VC,schemeYlOrRd:()=>HC,select:()=>wf,selectAll:()=>AN,selection:()=>xf,selector:()=>sl,selectorAll:()=>ll,shuffle:()=>xu,shuffler:()=>wu,some:()=>ku,sort:()=>jc,stack:()=>qR,stackOffsetDiverging:()=>YR,stackOffsetExpand:()=>HR,stackOffsetNone:()=>UR,stackOffsetSilhouette:()=>WR,stackOffsetWiggle:()=>ZR,stackOrderAppearance:()=>GR,stackOrderAscending:()=>JR,stackOrderDescending:()=>QR,stackOrderInsideOut:()=>tj,stackOrderNone:()=>zR,stackOrderReverse:()=>ej,stratify:()=>CE,style:()=>Ll,subset:()=>$u,sum:()=>Mu,superset:()=>Iu,svg:()=>Ky,symbol:()=>JP,symbolAsterisk:()=>SP,symbolCircle:()=>AP,symbolCross:()=>TP,symbolDiamond:()=>CP,symbolDiamond2:()=>NP,symbolPlus:()=>PP,symbolSquare:()=>RP,symbolSquare2:()=>jP,symbolStar:()=>LP,symbolTriangle:()=>UP,symbolTriangle2:()=>BP,symbolWye:()=>WP,symbolX:()=>ZP,symbols:()=>GP,symbolsFill:()=>GP,symbolsStroke:()=>XP,text:()=>zy,thresholdFreedmanDiaconis:()=>au,thresholdScott:()=>su,thresholdSturges:()=>Zc,tickFormat:()=>tA,tickIncrement:()=>Hc,tickStep:()=>Yc,ticks:()=>qc,timeDay:()=>JA,timeDays:()=>KA,timeFormat:()=>ak,timeFormatDefaultLocale:()=>TO,timeFormatLocale:()=>ik,timeFriday:()=>oT,timeFridays:()=>hT,timeHour:()=>ZA,timeHours:()=>GA,timeInterval:()=>IA,timeMillisecond:()=>$A,timeMilliseconds:()=>UA,timeMinute:()=>HA,timeMinutes:()=>YA,timeMonday:()=>eT,timeMondays:()=>cT,timeMonth:()=>gT,timeMonths:()=>vT,timeParse:()=>sk,timeSaturday:()=>aT,timeSaturdays:()=>dT,timeSecond:()=>BA,timeSeconds:()=>VA,timeSunday:()=>tT,timeSundays:()=>sT,timeThursday:()=>iT,timeThursdays:()=>fT,timeTickInterval:()=>tk,timeTicks:()=>QT,timeTuesday:()=>nT,timeTuesdays:()=>uT,timeWednesday:()=>rT,timeWednesdays:()=>lT,timeWeek:()=>tT,timeWeeks:()=>sT,timeYear:()=>mT,timeYears:()=>_T,timeout:()=>Qh,timer:()=>Zh,timerFlush:()=>Gh,transition:()=>Bd,transpose:()=>Eu,tree:()=>$E,treemap:()=>qE,treemapBinary:()=>HE,treemapDice:()=>ME,treemapResquarify:()=>WE,treemapSlice:()=>UE,treemapSliceDice:()=>YE,treemapSquarify:()=>VE,tsv:()=>Hy,tsvFormat:()=>Kv,tsvFormatBody:()=>Qv,tsvFormatRow:()=>ey,tsvFormatRows:()=>ty,tsvFormatValue:()=>ny,tsvParse:()=>Xv,tsvParseRows:()=>Jv,union:()=>Uu,utcDay:()=>TT,utcDays:()=>kT,utcFormat:()=>ck,utcFriday:()=>DT,utcFridays:()=>BT,utcHour:()=>ET,utcHours:()=>ST,utcMillisecond:()=>$A,utcMilliseconds:()=>UA,utcMinute:()=>xT,utcMinutes:()=>wT,utcMonday:()=>NT,utcMondays:()=>LT,utcMonth:()=>HT,utcMonths:()=>YT,utcParse:()=>uk,utcSaturday:()=>FT,utcSaturdays:()=>VT,utcSecond:()=>BA,utcSeconds:()=>VA,utcSunday:()=>CT,utcSundays:()=>IT,utcThursday:()=>jT,utcThursdays:()=>zT,utcTickInterval:()=>KT,utcTicks:()=>JT,utcTuesday:()=>PT,utcTuesdays:()=>$T,utcWednesday:()=>RT,utcWednesdays:()=>UT,utcWeek:()=>CT,utcWeeks:()=>IT,utcYear:()=>ZT,utcYears:()=>GT,variance:()=>uc,window:()=>jl,xml:()=>Xy,zip:()=>Au,zoom:()=>xj,zoomIdentity:()=>fj,zoomTransform:()=>hj});var e={};function i(t,e){const n=Object.create(null),r=t.split(",");for(let t=0;t<r.length;t++)n[r[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}n.r(e),n.d(e,{entryToProp:()=>Dj,entryToValue:()=>Nj,fillDirect:()=>Pj,fillProps:()=>Rj,getProps:()=>Oj,isProp:()=>jj,prepareDef:()=>Fj,toValue:()=>Cj});const o=i("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function a(t){return!!t||""===t}function s(t){if(S(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=O(r)?l(r):s(r);if(i)for(const t in i)e[t]=i[t]}return e}return O(t)||N(t)?t:void 0}const c=/;(?![^(]*\))/g,u=/:(.+)/;function l(t){const e={};return t.split(c).forEach((t=>{if(t){const n=t.split(u);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function f(t){let e="";if(O(t))e=t;else if(S(t))for(let n=0;n<t.length;n++){const r=f(t[n]);r&&(e+=r+" ")}else if(N(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const h=t=>O(t)?t:null==t?"":S(t)||N(t)&&(t.toString===R||!k(t.toString))?JSON.stringify(t,d,2):String(t),d=(t,e)=>e&&e.__v_isRef?d(t,e.value):A(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,n])=>(t[`${e} =>`]=n,t)),{})}:T(e)?{[`Set(${e.size})`]:[...e.values()]}:!N(e)||S(e)||D(e)?e:String(e),p={},g=[],v=()=>{},y=()=>!1,m=/^on[^a-z]/,_=t=>m.test(t),b=t=>t.startsWith("onUpdate:"),x=Object.assign,w=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},M=Object.prototype.hasOwnProperty,E=(t,e)=>M.call(t,e),S=Array.isArray,A=t=>"[object Map]"===j(t),T=t=>"[object Set]"===j(t),k=t=>"function"==typeof t,O=t=>"string"==typeof t,C=t=>"symbol"==typeof t,N=t=>null!==t&&"object"==typeof t,P=t=>N(t)&&k(t.then)&&k(t.catch),R=Object.prototype.toString,j=t=>R.call(t),D=t=>"[object Object]"===j(t),F=t=>O(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,I=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),L=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},$=/-(\w)/g,U=L((t=>t.replace($,((t,e)=>e?e.toUpperCase():"")))),z=/\B([A-Z])/g,B=L((t=>t.replace(z,"-$1").toLowerCase())),V=L((t=>t.charAt(0).toUpperCase()+t.slice(1))),q=L((t=>t?`on${V(t)}`:"")),H=(t,e)=>!Object.is(t,e),Y=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},W=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Z=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let G;const X=()=>G||(G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});let J;class K{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=J,!t&&J&&(this.index=(J.scopes||(J.scopes=[])).push(this)-1)}run(t){if(this.active){const e=J;try{return J=this,t()}finally{J=e}}}on(){J=this}off(){J=this.parent}stop(t){if(this.active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this.active=!1}}}function Q(t){return new K(t)}const tt=t=>{const e=new Set(t);return e.w=0,e.n=0,e},et=t=>(t.w&at)>0,nt=t=>(t.n&at)>0,rt=new WeakMap;let it,ot=0,at=1;const st=Symbol(""),ct=Symbol("");class ut{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,function(t,e=J){e&&e.active&&e.effects.push(t)}(this,n)}run(){if(!this.active)return this.fn();let t=it,e=ft;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=it,it=this,ft=!0,at=1<<++ot,ot<=30?(({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=at})(this):lt(this),this.fn()}finally{ot<=30&&(t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const i=e[r];et(i)&&!nt(i)?i.delete(t):e[n++]=i,i.w&=~at,i.n&=~at}e.length=n}})(this),at=1<<--ot,it=this.parent,ft=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){it===this?this.deferStop=!0:this.active&&(lt(this),this.onStop&&this.onStop(),this.active=!1)}}function lt(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let ft=!0;const ht=[];function dt(){ht.push(ft),ft=!1}function pt(){const t=ht.pop();ft=void 0===t||t}function gt(t,e,n){if(ft&&it){let e=rt.get(t);e||rt.set(t,e=new Map);let r=e.get(n);r||e.set(n,r=tt()),vt(r)}}function vt(t,e){let n=!1;ot<=30?nt(t)||(t.n|=at,n=!et(t)):n=!t.has(it),n&&(t.add(it),it.deps.push(t))}function yt(t,e,n,r,i,o){const a=rt.get(t);if(!a)return;let s=[];if("clear"===e)s=[...a.values()];else if("length"===n&&S(t))a.forEach(((t,e)=>{("length"===e||e>=r)&&s.push(t)}));else switch(void 0!==n&&s.push(a.get(n)),e){case"add":S(t)?F(n)&&s.push(a.get("length")):(s.push(a.get(st)),A(t)&&s.push(a.get(ct)));break;case"delete":S(t)||(s.push(a.get(st)),A(t)&&s.push(a.get(ct)));break;case"set":A(t)&&s.push(a.get(st))}if(1===s.length)s[0]&&mt(s[0]);else{const t=[];for(const e of s)e&&t.push(...e);mt(tt(t))}}function mt(t,e){const n=S(t)?t:[...t];for(const t of n)t.computed&&_t(t);for(const t of n)t.computed||_t(t)}function _t(t,e){(t!==it||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const bt=i("__proto__,__v_isRef,__isVue"),xt=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(C)),wt=Tt(),Mt=Tt(!1,!0),Et=Tt(!0),St=At();function At(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=le(this);for(let t=0,e=this.length;t<e;t++)gt(n,0,t+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(le)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){dt();const n=le(this)[e].apply(this,t);return pt(),n}})),t}function Tt(t=!1,e=!1){return function(n,r,i){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_isShallow"===r)return e;if("__v_raw"===r&&i===(t?e?ne:ee:e?te:Qt).get(n))return n;const o=S(n);if(!t&&o&&E(St,r))return Reflect.get(St,r,i);const a=Reflect.get(n,r,i);return(C(r)?xt.has(r):bt(r))?a:(t||gt(n,0,r),e?a:ve(a)?o&&F(r)?a:a.value:N(a)?t?ie(a):re(a):a)}}function kt(t=!1){return function(e,n,r,i){let o=e[n];if(se(o)&&ve(o)&&!ve(r))return!1;if(!t&&(ce(r)||se(r)||(o=le(o),r=le(r)),!S(e)&&ve(o)&&!ve(r)))return o.value=r,!0;const a=S(e)&&F(n)?Number(n)<e.length:E(e,n),s=Reflect.set(e,n,r,i);return e===le(i)&&(a?H(r,o)&&yt(e,"set",n,r):yt(e,"add",n,r)),s}}const Ot={get:wt,set:kt(),deleteProperty:function(t,e){const n=E(t,e),r=(t[e],Reflect.deleteProperty(t,e));return r&&n&&yt(t,"delete",e,void 0),r},has:function(t,e){const n=Reflect.has(t,e);return C(e)&&xt.has(e)||gt(t,0,e),n},ownKeys:function(t){return gt(t,0,S(t)?"length":st),Reflect.ownKeys(t)}},Ct={get:Et,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},Nt=x({},Ot,{get:Mt,set:kt(!0)}),Pt=t=>t,Rt=t=>Reflect.getPrototypeOf(t);function jt(t,e,n=!1,r=!1){const i=le(t=t.__v_raw),o=le(e);n||(e!==o&&gt(i,0,e),gt(i,0,o));const{has:a}=Rt(i),s=r?Pt:n?de:he;return a.call(i,e)?s(t.get(e)):a.call(i,o)?s(t.get(o)):void(t!==i&&t.get(e))}function Dt(t,e=!1){const n=this.__v_raw,r=le(n),i=le(t);return e||(t!==i&&gt(r,0,t),gt(r,0,i)),t===i?n.has(t):n.has(t)||n.has(i)}function Ft(t,e=!1){return t=t.__v_raw,!e&&gt(le(t),0,st),Reflect.get(t,"size",t)}function It(t){t=le(t);const e=le(this);return Rt(e).has.call(e,t)||(e.add(t),yt(e,"add",t,t)),this}function Lt(t,e){e=le(e);const n=le(this),{has:r,get:i}=Rt(n);let o=r.call(n,t);o||(t=le(t),o=r.call(n,t));const a=i.call(n,t);return n.set(t,e),o?H(e,a)&&yt(n,"set",t,e):yt(n,"add",t,e),this}function $t(t){const e=le(this),{has:n,get:r}=Rt(e);let i=n.call(e,t);i||(t=le(t),i=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return i&&yt(e,"delete",t,void 0),o}function Ut(){const t=le(this),e=0!==t.size,n=t.clear();return e&&yt(t,"clear",void 0,void 0),n}function zt(t,e){return function(n,r){const i=this,o=i.__v_raw,a=le(o),s=e?Pt:t?de:he;return!t&&gt(a,0,st),o.forEach(((t,e)=>n.call(r,s(t),s(e),i)))}}function Bt(t,e,n){return function(...r){const i=this.__v_raw,o=le(i),a=A(o),s="entries"===t||t===Symbol.iterator&&a,c="keys"===t&&a,u=i[t](...r),l=n?Pt:e?de:he;return!e&&gt(o,0,c?ct:st),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:s?[l(t[0]),l(t[1])]:l(t),done:e}},[Symbol.iterator](){return this}}}}function Vt(t){return function(...e){return"delete"!==t&&this}}function qt(){const t={get(t){return jt(this,t)},get size(){return Ft(this)},has:Dt,add:It,set:Lt,delete:$t,clear:Ut,forEach:zt(!1,!1)},e={get(t){return jt(this,t,!1,!0)},get size(){return Ft(this)},has:Dt,add:It,set:Lt,delete:$t,clear:Ut,forEach:zt(!1,!0)},n={get(t){return jt(this,t,!0)},get size(){return Ft(this,!0)},has(t){return Dt.call(this,t,!0)},add:Vt("add"),set:Vt("set"),delete:Vt("delete"),clear:Vt("clear"),forEach:zt(!0,!1)},r={get(t){return jt(this,t,!0,!0)},get size(){return Ft(this,!0)},has(t){return Dt.call(this,t,!0)},add:Vt("add"),set:Vt("set"),delete:Vt("delete"),clear:Vt("clear"),forEach:zt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{t[i]=Bt(i,!1,!1),n[i]=Bt(i,!0,!1),e[i]=Bt(i,!1,!0),r[i]=Bt(i,!0,!0)})),[t,n,e,r]}const[Ht,Yt,Wt,Zt]=qt();function Gt(t,e){const n=e?t?Zt:Wt:t?Yt:Ht;return(e,r,i)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(E(n,r)&&r in e?n:e,r,i)}const Xt={get:Gt(!1,!1)},Jt={get:Gt(!1,!0)},Kt={get:Gt(!0,!1)},Qt=new WeakMap,te=new WeakMap,ee=new WeakMap,ne=new WeakMap;function re(t){return se(t)?t:oe(t,!1,Ot,Xt,Qt)}function ie(t){return oe(t,!0,Ct,Kt,ee)}function oe(t,e,n,r,i){if(!N(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const a=function(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>j(t).slice(8,-1))(t))}(t);if(0===a)return t;const s=new Proxy(t,2===a?r:n);return i.set(t,s),s}function ae(t){return se(t)?ae(t.__v_raw):!(!t||!t.__v_isReactive)}function se(t){return!(!t||!t.__v_isReadonly)}function ce(t){return!(!t||!t.__v_isShallow)}function ue(t){return ae(t)||se(t)}function le(t){const e=t&&t.__v_raw;return e?le(e):t}function fe(t){return W(t,"__v_skip",!0),t}const he=t=>N(t)?re(t):t,de=t=>N(t)?ie(t):t;function pe(t){ft&&it&&vt((t=le(t)).dep||(t.dep=tt()))}function ge(t,e){(t=le(t)).dep&&mt(t.dep)}function ve(t){return!(!t||!0!==t.__v_isRef)}function ye(t){return n=!1,ve(e=t)?e:new me(e,n);var e,n}class me{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:le(t),this._value=e?t:he(t)}get value(){return pe(this),this._value}set value(t){const e=this.__v_isShallow||ce(t)||se(t);t=e?t:le(t),H(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:he(t),ge(this))}}function _e(t){return ve(t)?t.value:t}const be={get:(t,e,n)=>_e(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return ve(i)&&!ve(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function xe(t){return ae(t)?t:new Proxy(t,be)}class we{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Me(t,e,n){const r=t[e];return ve(r)?r:new we(t,e,n)}var Ee;class Se{constructor(t,e,n,r){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this[Ee]=!1,this._dirty=!0,this.effect=new ut(t,(()=>{this._dirty||(this._dirty=!0,ge(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const t=le(this);return pe(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Ae(t,e,n,r){let i;try{i=r?t(...r):t()}catch(t){ke(t,e,n)}return i}function Te(t,e,n,r){if(k(t)){const i=Ae(t,e,n,r);return i&&P(i)&&i.catch((t=>{ke(t,e,n)})),i}const i=[];for(let o=0;o<t.length;o++)i.push(Te(t[o],e,n,r));return i}function ke(t,e,n,r=!0){if(e&&e.vnode,e){let r=e.parent;const i=e.proxy,o=n;for(;r;){const e=r.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,i,o))return;r=r.parent}const a=e.appContext.config.errorHandler;if(a)return void Ae(a,null,10,[t,i,o])}!function(t,e,n,r=!0){console.error(t)}(t,0,0,r)}Ee="__v_isReadonly";let Oe=!1,Ce=!1;const Ne=[];let Pe=0;const Re=[];let je=null,De=0;const Fe=Promise.resolve();let Ie=null;function Le(t){const e=Ie||Fe;return t?e.then(this?t.bind(this):t):e}function $e(t){Ne.length&&Ne.includes(t,Oe&&t.allowRecurse?Pe+1:Pe)||(null==t.id?Ne.push(t):Ne.splice(function(t){let e=Pe+1,n=Ne.length;for(;e<n;){const r=e+n>>>1;Ve(Ne[r])<t?e=r+1:n=r}return e}(t.id),0,t),Ue())}function Ue(){Oe||Ce||(Ce=!0,Ie=Fe.then(He))}function ze(t,e=(Oe?Pe+1:0)){for(;e<Ne.length;e++){const t=Ne[e];t&&t.pre&&(Ne.splice(e,1),e--,t())}}function Be(t){if(Re.length){const t=[...new Set(Re)];if(Re.length=0,je)return void je.push(...t);for(je=t,je.sort(((t,e)=>Ve(t)-Ve(e))),De=0;De<je.length;De++)je[De]();je=null,De=0}}const Ve=t=>null==t.id?1/0:t.id,qe=(t,e)=>{const n=Ve(t)-Ve(e);if(0===n){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function He(t){Ce=!1,Oe=!0,Ne.sort(qe);try{for(Pe=0;Pe<Ne.length;Pe++){const t=Ne[Pe];t&&!1!==t.active&&Ae(t,null,14)}}finally{Pe=0,Ne.length=0,Be(),Oe=!1,Ie=null,(Ne.length||Re.length)&&He(t)}}new Set,new Map;let Ye,We=[],Ze=!1;function Ge(t,...e){Ye?Ye.emit(t,...e):Ze||We.push({event:t,args:e})}function Xe(t,e){var n,r;Ye=t,Ye?(Ye.enabled=!0,We.forEach((({event:t,args:e})=>Ye.emit(t,...e))),We=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{Xe(t,e)})),setTimeout((()=>{Ye||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ze=!0,We=[])}),3e3)):(Ze=!0,We=[])}const Je=tn("component:added"),Ke=tn("component:updated"),Qe=tn("component:removed");function tn(t){return e=>{Ge(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}function en(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||p;let i=n;const o=e.startsWith("update:"),a=o&&e.slice(7);if(a&&a in r){const t=`${"modelValue"===a?"model":a}Modifiers`,{number:e,trim:o}=r[t]||p;o&&(i=n.map((t=>t.trim()))),e&&(i=n.map(Z))}let s;__VUE_PROD_DEVTOOLS__&&function(t,e,n){Ge("component:emit",t.appContext.app,t,e,n)}(t,e,i);let c=r[s=q(e)]||r[s=q(U(e))];!c&&o&&(c=r[s=q(B(e))]),c&&Te(c,t,6,i);const u=r[s+"Once"];if(u){if(t.emitted){if(t.emitted[s])return}else t.emitted={};t.emitted[s]=!0,Te(u,t,6,i)}}function nn(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(void 0!==i)return i;const o=t.emits;let a={},s=!1;if(__VUE_OPTIONS_API__&&!k(t)){const r=t=>{const n=nn(t,e,!0);n&&(s=!0,x(a,n))};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}return o||s?(S(o)?o.forEach((t=>a[t]=null)):x(a,o),N(t)&&r.set(t,a),a):(N(t)&&r.set(t,null),null)}function rn(t,e){return!(!t||!_(e))&&(e=e.slice(2).replace(/Once$/,""),E(t,e[0].toLowerCase()+e.slice(1))||E(t,B(e))||E(t,e))}let on=null,an=null;function sn(t){const e=on;return on=t,an=t&&t.type.__scopeId||null,e}function cn(t){const{type:e,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[a],slots:s,attrs:c,emit:u,render:l,renderCache:f,data:h,setupState:d,ctx:p,inheritAttrs:g}=t;let v,y;const m=sn(t);try{if(4&n.shapeFlag){const t=i||r;v=Qr(l.call(t,t,f,o,d,h,p)),y=c}else{const t=e;v=Qr(t.length>1?t(o,{attrs:c,slots:s,emit:u}):t(o,null)),y=e.props?c:un(c)}}catch(e){Dr.length=0,ke(e,t,1),v=Gr(Rr)}let _=v;if(y&&!1!==g){const t=Object.keys(y),{shapeFlag:e}=_;t.length&&7&e&&(a&&t.some(b)&&(y=ln(y,a)),_=Xr(_,y))}return n.dirs&&(_=Xr(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),v=_,sn(m),v}const un=t=>{let e;for(const n in t)("class"===n||"style"===n||_(n))&&((e||(e={}))[n]=t[n]);return e},ln=(t,e)=>{const n={};for(const r in t)b(r)&&r.slice(9)in e||(n[r]=t[r]);return n};function fn(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(e[o]!==t[o]&&!rn(n,o))return!0}return!1}function hn(t,e,n=!1){const r=ai||on;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&t in i)return i[t];if(arguments.length>1)return n&&k(e)?e.call(r.proxy):e}}const dn={};function pn(t,e,n){return gn(t,e,n)}function gn(t,e,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:a}=p){const s=ai;let c,u,l=!1,f=!1;if(ve(t)?(c=()=>t.value,l=ce(t)):ae(t)?(c=()=>t,r=!0):S(t)?(f=!0,l=t.some((t=>ae(t)||ce(t))),c=()=>t.map((t=>ve(t)?t.value:ae(t)?mn(t):k(t)?Ae(t,s,2):void 0))):c=k(t)?e?()=>Ae(t,s,2):()=>{if(!s||!s.isUnmounted)return u&&u(),Te(t,s,3,[h])}:v,e&&r){const t=c;c=()=>mn(t())}let h=t=>{u=m.onStop=()=>{Ae(t,s,4)}};if(fi)return h=v,e?n&&Te(e,s,3,[c(),f?[]:void 0,h]):c(),v;let d=f?[]:dn;const g=()=>{if(m.active)if(e){const t=m.run();(r||l||(f?t.some(((t,e)=>H(t,d[e]))):H(t,d)))&&(u&&u(),Te(e,s,3,[t,d===dn?void 0:d,h]),d=t)}else m.run()};let y;g.allowRecurse=!!e,"sync"===i?y=g:"post"===i?y=()=>Tr(g,s&&s.suspense):(g.pre=!0,s&&(g.id=s.uid),y=()=>$e(g));const m=new ut(c,y);return e?n?g():d=m.run():"post"===i?Tr(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&w(s.scope.effects,m)}}function vn(t,e,n){const r=this.proxy,i=O(t)?t.includes(".")?yn(r,t):()=>r[t]:t.bind(r,r);let o;k(e)?o=e:(o=e.handler,n=e);const a=ai;ci(this);const s=gn(i,o.bind(r),n);return a?ci(a):ui(),s}function yn(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t<n.length&&e;t++)e=e[n[t]];return e}}function mn(t,e){if(!N(t)||t.__v_skip)return t;if((e=e||new Set).has(t))return t;if(e.add(t),ve(t))mn(t.value,e);else if(S(t))for(let n=0;n<t.length;n++)mn(t[n],e);else if(T(t)||A(t))t.forEach((t=>{mn(t,e)}));else if(D(t))for(const n in t)mn(t[n],e);return t}const _n=[Function,Array],bn={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_n,onEnter:_n,onAfterEnter:_n,onEnterCancelled:_n,onBeforeLeave:_n,onLeave:_n,onAfterLeave:_n,onLeaveCancelled:_n,onBeforeAppear:_n,onAppear:_n,onAfterAppear:_n,onAppearCancelled:_n},setup(t,{slots:e}){const n=si(),r=function(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return In((()=>{t.isMounted=!0})),Un((()=>{t.isUnmounting=!0})),t}();let i;return()=>{const o=e.default&&Tn(e.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1){let t=!1;for(const e of o)if(e.type!==Rr){a=e,t=!0;break}}const s=le(t),{mode:c}=s;if(r.isLeaving)return En(a);const u=Sn(a);if(!u)return En(a);const l=Mn(u,s,r,n);An(u,l);const f=n.subTree,h=f&&Sn(f);let d=!1;const{getTransitionKey:p}=u.type;if(p){const t=p();void 0===i?i=t:t!==i&&(i=t,d=!0)}if(h&&h.type!==Rr&&(!qr(u,h)||d)){const t=Mn(h,s,r,n);if(An(h,t),"out-in"===c)return r.isLeaving=!0,t.afterLeave=()=>{r.isLeaving=!1,n.update()},En(a);"in-out"===c&&u.type!==Rr&&(t.delayLeave=(t,e,n)=>{wn(r,h)[String(h.key)]=h,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete l.delayedLeave},l.delayedLeave=n})}return a}}},xn=bn;function wn(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Mn(t,e,n,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:l,onBeforeLeave:f,onLeave:h,onAfterLeave:d,onLeaveCancelled:p,onBeforeAppear:g,onAppear:v,onAfterAppear:y,onAppearCancelled:m}=e,_=String(t.key),b=wn(n,t),x=(t,e)=>{t&&Te(t,r,9,e)},w=(t,e)=>{const n=e[1];x(t,e),S(t)?t.every((t=>t.length<=1))&&n():t.length<=1&&n()},M={mode:o,persisted:a,beforeEnter(e){let r=s;if(!n.isMounted){if(!i)return;r=g||s}e._leaveCb&&e._leaveCb(!0);const o=b[_];o&&qr(t,o)&&o.el._leaveCb&&o.el._leaveCb(),x(r,[e])},enter(t){let e=c,r=u,o=l;if(!n.isMounted){if(!i)return;e=v||c,r=y||u,o=m||l}let a=!1;const s=t._enterCb=e=>{a||(a=!0,x(e?o:r,[t]),M.delayedLeave&&M.delayedLeave(),t._enterCb=void 0)};e?w(e,[t,s]):s()},leave(e,r){const i=String(t.key);if(e._enterCb&&e._enterCb(!0),n.isUnmounting)return r();x(f,[e]);let o=!1;const a=e._leaveCb=n=>{o||(o=!0,r(),x(n?p:d,[e]),e._leaveCb=void 0,b[i]===t&&delete b[i])};b[i]=t,h?w(h,[e,a]):a()},clone:t=>Mn(t,e,n,r)};return M}function En(t){if(On(t))return(t=Xr(t)).children=null,t}function Sn(t){return On(t)?t.children?t.children[0]:void 0:t}function An(t,e){6&t.shapeFlag&&t.component?An(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Tn(t,e=!1,n){let r=[],i=0;for(let o=0;o<t.length;o++){let a=t[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===Nr?(128&a.patchFlag&&i++,r=r.concat(Tn(a.children,e,s))):(e||a.type!==Rr)&&r.push(null!=s?Xr(a,{key:s}):a)}if(i>1)for(let t=0;t<r.length;t++)r[t].patchFlag=-2;return r}const kn=t=>!!t.type.__asyncLoader,On=t=>t.type.__isKeepAlive;function Cn(t,e){Pn(t,"a",e)}function Nn(t,e){Pn(t,"da",e)}function Pn(t,e,n=ai){const r=t.__wdc||(t.__wdc=()=>{let e=n;for(;e;){if(e.isDeactivated)return;e=e.parent}return t()});if(jn(e,r,n),n){let t=n.parent;for(;t&&t.parent;)On(t.parent.vnode)&&Rn(r,e,n,t),t=t.parent}}function Rn(t,e,n,r){const i=jn(e,t,r,!0);zn((()=>{w(r[e],i)}),n)}function jn(t,e,n=ai,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...r)=>{if(n.isUnmounted)return;dt(),ci(n);const i=Te(e,n,t,r);return ui(),pt(),i});return r?i.unshift(o):i.push(o),o}}RegExp,RegExp;const Dn=t=>(e,n=ai)=>(!fi||"sp"===t)&&jn(t,((...t)=>e(...t)),n),Fn=Dn("bm"),In=Dn("m"),Ln=Dn("bu"),$n=Dn("u"),Un=Dn("bum"),zn=Dn("um"),Bn=Dn("sp"),Vn=Dn("rtg"),qn=Dn("rtc");function Hn(t,e=ai){jn("ec",t,e)}function Yn(t,e,n,r){const i=t.dirs,o=e&&e.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let c=s.dir[r];c&&(dt(),Te(c,n,8,[t.el,s,t,e]),pt())}}const Wn="components";function Zn(t,e){return function(t,e,n=!0,r=!1){const i=on||ai;if(i){const n=i.type;if(t===Wn){const t=function(t,e=!0){return k(t)?t.displayName||t.name:t.name||e&&t.__name}(n,!1);if(t&&(t===e||t===U(e)||t===V(U(e))))return n}const o=Xn(i[t]||n[t],e)||Xn(i.appContext[t],e);return!o&&r?n:o}}(Wn,t,!0,e)||t}const Gn=Symbol();function Xn(t,e){return t&&(t[e]||t[U(e)]||t[V(U(e))])}function Jn(t,e,n,r){let i;const o=n&&n[r];if(S(t)||O(t)){i=new Array(t.length);for(let n=0,r=t.length;n<r;n++)i[n]=e(t[n],n,void 0,o&&o[n])}else if("number"==typeof t){i=new Array(t);for(let n=0;n<t;n++)i[n]=e(n+1,n,void 0,o&&o[n])}else if(N(t))if(t[Symbol.iterator])i=Array.from(t,((t,n)=>e(t,n,void 0,o&&o[n])));else{const n=Object.keys(t);i=new Array(n.length);for(let r=0,a=n.length;r<a;r++){const a=n[r];i[r]=e(t[a],a,r,o&&o[r])}}else i=[];return n&&(n[r]=i),i}const Kn=t=>t?li(t)?pi(t)||t.proxy:Kn(t.parent):null,Qn=x(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Kn(t.parent),$root:t=>Kn(t.root),$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?ir(t):t.type,$forceUpdate:t=>t.f||(t.f=()=>$e(t.update)),$nextTick:t=>t.n||(t.n=Le.bind(t.proxy)),$watch:t=>__VUE_OPTIONS_API__?vn.bind(t):v}),tr={get({_:t},e){const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:c}=t;let u;if("$"!==e[0]){const s=a[e];if(void 0!==s)switch(s){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(r!==p&&E(r,e))return a[e]=1,r[e];if(i!==p&&E(i,e))return a[e]=2,i[e];if((u=t.propsOptions[0])&&E(u,e))return a[e]=3,o[e];if(n!==p&&E(n,e))return a[e]=4,n[e];__VUE_OPTIONS_API__&&!er||(a[e]=0)}}const l=Qn[e];let f,h;return l?("$attrs"===e&&gt(t,0,e),l(t)):(f=s.__cssModules)&&(f=f[e])?f:n!==p&&E(n,e)?(a[e]=4,n[e]):(h=c.config.globalProperties,E(h,e)?h[e]:void 0)},set({_:t},e,n){const{data:r,setupState:i,ctx:o}=t;return i!==p&&E(i,e)?(i[e]=n,!0):r!==p&&E(r,e)?(r[e]=n,!0):!(E(t.props,e)||"$"===e[0]&&e.slice(1)in t||(o[e]=n,0))},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!n[a]||t!==p&&E(t,a)||e!==p&&E(e,a)||(s=o[0])&&E(s,a)||E(r,a)||E(Qn,a)||E(i.config.globalProperties,a)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:E(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};let er=!0;function nr(t,e,n){Te(S(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,n)}function rr(t,e,n,r){const i=r.includes(".")?yn(n,r):()=>n[r];if(O(t)){const n=e[t];k(n)&&pn(i,n)}else if(k(t))pn(i,t.bind(n));else if(N(t))if(S(t))t.forEach((t=>rr(t,e,n,r)));else{const r=k(t.handler)?t.handler.bind(n):e[t.handler];k(r)&&pn(i,r,t)}}function ir(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,s=o.get(e);let c;return s?c=s:i.length||n||r?(c={},i.length&&i.forEach((t=>or(c,t,a,!0))),or(c,e,a)):c=e,N(e)&&o.set(e,c),c}function or(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&or(t,o,n,!0),i&&i.forEach((e=>or(t,e,n,!0)));for(const i in e)if(r&&"expose"===i);else{const r=ar[i]||n&&n[i];t[i]=r?r(t[i],e[i]):e[i]}return t}const ar={data:sr,props:lr,emits:lr,methods:lr,computed:lr,beforeCreate:ur,created:ur,beforeMount:ur,mounted:ur,beforeUpdate:ur,updated:ur,beforeDestroy:ur,beforeUnmount:ur,destroyed:ur,unmounted:ur,activated:ur,deactivated:ur,errorCaptured:ur,serverPrefetch:ur,components:lr,directives:lr,watch:function(t,e){if(!t)return e;if(!e)return t;const n=x(Object.create(null),t);for(const r in e)n[r]=ur(t[r],e[r]);return n},provide:sr,inject:function(t,e){return lr(cr(t),cr(e))}};function sr(t,e){return e?t?function(){return x(k(t)?t.call(this,this):t,k(e)?e.call(this,this):e)}:e:t}function cr(t){if(S(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function ur(t,e){return t?[...new Set([].concat(t,e))]:e}function lr(t,e){return t?x(x(Object.create(null),t),e):e}function fr(t,e,n,r){const[i,o]=t.propsOptions;let a,s=!1;if(e)for(let c in e){if(I(c))continue;const u=e[c];let l;i&&E(i,l=U(c))?o&&o.includes(l)?(a||(a={}))[l]=u:n[l]=u:rn(t.emitsOptions,c)||c in r&&u===r[c]||(r[c]=u,s=!0)}if(o){const e=le(n),r=a||p;for(let a=0;a<o.length;a++){const s=o[a];n[s]=hr(i,e,s,r[s],t,!E(r,s))}}return s}function hr(t,e,n,r,i,o){const a=t[n];if(null!=a){const t=E(a,"default");if(t&&void 0===r){const t=a.default;if(a.type!==Function&&k(t)){const{propsDefaults:o}=i;n in o?r=o[n]:(ci(i),r=o[n]=t.call(null,e),ui())}else r=t}a[0]&&(o&&!t?r=!1:!a[1]||""!==r&&r!==B(n)||(r=!0))}return r}function dr(t,e,n=!1){const r=e.propsCache,i=r.get(t);if(i)return i;const o=t.props,a={},s=[];let c=!1;if(__VUE_OPTIONS_API__&&!k(t)){const r=t=>{c=!0;const[n,r]=dr(t,e,!0);x(a,n),r&&s.push(...r)};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}if(!o&&!c)return N(t)&&r.set(t,g),g;if(S(o))for(let t=0;t<o.length;t++){const e=U(o[t]);pr(e)&&(a[e]=p)}else if(o)for(const t in o){const e=U(t);if(pr(e)){const n=o[t],r=a[e]=S(n)||k(n)?{type:n}:n;if(r){const t=yr(Boolean,r.type),n=yr(String,r.type);r[0]=t>-1,r[1]=n<0||t<n,(t>-1||E(r,"default"))&&s.push(e)}}}const u=[a,s];return N(t)&&r.set(t,u),u}function pr(t){return"$"!==t[0]}function gr(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:null===t?"null":""}function vr(t,e){return gr(t)===gr(e)}function yr(t,e){return S(e)?e.findIndex((e=>vr(e,t))):k(e)&&vr(e,t)?0:-1}const mr=t=>"_"===t[0]||"$stable"===t,_r=t=>S(t)?t.map(Qr):[Qr(t)],br=(t,e,n)=>{if(e._n)return e;const r=function(t,e=on,n){if(!e)return t;if(t._n)return t;const r=(...n)=>{r._d&&$r(-1);const i=sn(e);let o;try{o=t(...n)}finally{sn(i),r._d&&$r(1)}return __VUE_PROD_DEVTOOLS__&&Ke(e),o};return r._n=!0,r._c=!0,r._d=!0,r}(((...t)=>_r(e(...t))),n);return r._c=!1,r},xr=(t,e,n)=>{const r=t._ctx;for(const n in t){if(mr(n))continue;const i=t[n];if(k(i))e[n]=br(0,i,r);else if(null!=i){const t=_r(i);e[n]=()=>t}}},wr=(t,e)=>{const n=_r(e);t.slots.default=()=>n};function Mr(){return{app:null,config:{isNativeTag:y,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Er=0;function Sr(t,e){return function(n,r=null){k(n)||(n=Object.assign({},n)),null==r||N(r)||(r=null);const i=Mr(),o=new Set;let a=!1;const s=i.app={_uid:Er++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:vi,get config(){return i.config},set config(t){},use:(t,...e)=>(o.has(t)||(t&&k(t.install)?(o.add(t),t.install(s,...e)):k(t)&&(o.add(t),t(s,...e))),s),mixin:t=>(__VUE_OPTIONS_API__&&(i.mixins.includes(t)||i.mixins.push(t)),s),component:(t,e)=>e?(i.components[t]=e,s):i.components[t],directive:(t,e)=>e?(i.directives[t]=e,s):i.directives[t],mount(o,c,u){if(!a){const l=Gr(n,r);return l.appContext=i,c&&e?e(l,o):t(l,o,u),a=!0,s._container=o,o.__vue_app__=s,__VUE_PROD_DEVTOOLS__&&(s._instance=l.component,function(t,e){Ge("app:init",t,e,{Fragment:Nr,Text:Pr,Comment:Rr,Static:jr})}(s,vi)),pi(l.component)||l.component.proxy}},unmount(){a&&(t(null,s._container),__VUE_PROD_DEVTOOLS__&&(s._instance=null,function(t){Ge("app:unmount",t)}(s)),delete s._container.__vue_app__)},provide:(t,e)=>(i.provides[t]=e,s)};return s}}function Ar(t,e,n,r,i=!1){if(S(t))return void t.forEach(((t,o)=>Ar(t,e&&(S(e)?e[o]:e),n,r,i)));if(kn(r)&&!i)return;const o=4&r.shapeFlag?pi(r.component)||r.component.proxy:r.el,a=i?null:o,{i:s,r:c}=t,u=e&&e.r,l=s.refs===p?s.refs={}:s.refs,f=s.setupState;if(null!=u&&u!==c&&(O(u)?(l[u]=null,E(f,u)&&(f[u]=null)):ve(u)&&(u.value=null)),k(c))Ae(c,s,12,[a,l]);else{const e=O(c),r=ve(c);if(e||r){const s=()=>{if(t.f){const n=e?E(f,c)?f[c]:l[c]:c.value;i?S(n)&&w(n,o):S(n)?n.includes(o)||n.push(o):e?(l[c]=[o],E(f,c)&&(f[c]=l[c])):(c.value=[o],t.k&&(l[t.k]=c.value))}else e?(l[c]=a,E(f,c)&&(f[c]=a)):r&&(c.value=a,t.k&&(l[t.k]=a))};a?(s.id=-1,Tr(s,n)):s()}}}const Tr=function(t,e){var n;e&&e.pendingBranch?S(t)?e.effects.push(...t):e.effects.push(t):(S(n=t)?Re.push(...n):je&&je.includes(n,n.allowRecurse?De+1:De)||Re.push(n),Ue())};function kr(t,e){"boolean"!=typeof __VUE_OPTIONS_API__&&(X().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(X().__VUE_PROD_DEVTOOLS__=!1);const n=X();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&Xe(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:c,setText:u,setElementText:l,parentNode:f,nextSibling:h,setScopeId:d=v,insertStaticContent:y}=t,m=(t,e,n,r=null,i=null,o=null,a=!1,s=null,c=!!e.dynamicChildren)=>{if(t===e)return;t&&!qr(t,e)&&(r=tt(t),H(t,i,o,!0),t=null),-2===e.patchFlag&&(c=!1,e.dynamicChildren=null);const{type:u,ref:l,shapeFlag:f}=e;switch(u){case Pr:_(t,e,n,r);break;case Rr:b(t,e,n,r);break;case jr:null==t&&w(e,n,r,a);break;case Nr:N(t,e,n,r,i,o,a,s,c);break;default:1&f?M(t,e,n,r,i,o,a,s,c):6&f?R(t,e,n,r,i,o,a,s,c):(64&f||128&f)&&u.process(t,e,n,r,i,o,a,s,c,nt)}null!=l&&i&&Ar(l,t&&t.ref,o,e||t,!e)},_=(t,e,n,i)=>{if(null==t)r(e.el=s(e.children),n,i);else{const n=e.el=t.el;e.children!==t.children&&u(n,e.children)}},b=(t,e,n,i)=>{null==t?r(e.el=c(e.children||""),n,i):e.el=t.el},w=(t,e,n,r)=>{[t.el,t.anchor]=y(t.children,e,n,r,t.el,t.anchor)},M=(t,e,n,r,i,o,a,s,c)=>{a=a||"svg"===e.type,null==t?S(e,n,r,i,o,a,s,c):k(t,e,i,o,a,s,c)},S=(t,e,n,i,s,c,u,f)=>{let h,d;const{type:p,props:g,shapeFlag:v,transition:y,dirs:m}=t;if(h=t.el=a(t.type,c,g&&g.is,g),8&v?l(h,t.children):16&v&&T(t.children,h,null,i,s,c&&"foreignObject"!==p,u,f),m&&Yn(t,null,i,"created"),g){for(const e in g)"value"===e||I(e)||o(h,e,null,g[e],c,t.children,i,s,Q);"value"in g&&o(h,"value",null,g.value),(d=g.onVnodeBeforeMount)&&ri(d,i,t)}A(h,t,t.scopeId,u,i),__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(h,"__vnode",{value:t,enumerable:!1}),Object.defineProperty(h,"__vueParentComponent",{value:i,enumerable:!1})),m&&Yn(t,null,i,"beforeMount");const _=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;_&&y.beforeEnter(h),r(h,e,n),((d=g&&g.onVnodeMounted)||_||m)&&Tr((()=>{d&&ri(d,i,t),_&&y.enter(h),m&&Yn(t,null,i,"mounted")}),s)},A=(t,e,n,r,i)=>{if(n&&d(t,n),r)for(let e=0;e<r.length;e++)d(t,r[e]);if(i&&e===i.subTree){const e=i.vnode;A(t,e,e.scopeId,e.slotScopeIds,i.parent)}},T=(t,e,n,r,i,o,a,s,c=0)=>{for(let u=c;u<t.length;u++){const c=t[u]=s?ti(t[u]):Qr(t[u]);m(null,c,e,n,r,i,o,a,s)}},k=(t,e,n,r,i,a,s)=>{const c=e.el=t.el;let{patchFlag:u,dynamicChildren:f,dirs:h}=e;u|=16&t.patchFlag;const d=t.props||p,g=e.props||p;let v;n&&Or(n,!1),(v=g.onVnodeBeforeUpdate)&&ri(v,n,e,t),h&&Yn(e,t,n,"beforeUpdate"),n&&Or(n,!0);const y=i&&"foreignObject"!==e.type;if(f?O(t.dynamicChildren,f,c,n,r,y,a):s||$(t,e,c,null,n,r,y,a,!1),u>0){if(16&u)C(c,e,d,g,n,r,i);else if(2&u&&d.class!==g.class&&o(c,"class",null,g.class,i),4&u&&o(c,"style",d.style,g.style,i),8&u){const a=e.dynamicProps;for(let e=0;e<a.length;e++){const s=a[e],u=d[s],l=g[s];l===u&&"value"!==s||o(c,s,u,l,i,t.children,n,r,Q)}}1&u&&t.children!==e.children&&l(c,e.children)}else s||null!=f||C(c,e,d,g,n,r,i);((v=g.onVnodeUpdated)||h)&&Tr((()=>{v&&ri(v,n,e,t),h&&Yn(e,t,n,"updated")}),r)},O=(t,e,n,r,i,o,a)=>{for(let s=0;s<e.length;s++){const c=t[s],u=e[s],l=c.el&&(c.type===Nr||!qr(c,u)||70&c.shapeFlag)?f(c.el):n;m(c,u,l,null,r,i,o,a,!0)}},C=(t,e,n,r,i,a,s)=>{if(n!==r){if(n!==p)for(const c in n)I(c)||c in r||o(t,c,n[c],null,s,e.children,i,a,Q);for(const c in r){if(I(c))continue;const u=r[c],l=n[c];u!==l&&"value"!==c&&o(t,c,l,u,s,e.children,i,a,Q)}"value"in r&&o(t,"value",n.value,r.value)}},N=(t,e,n,i,o,a,c,u,l)=>{const f=e.el=t?t.el:s(""),h=e.anchor=t?t.anchor:s("");let{patchFlag:d,dynamicChildren:p,slotScopeIds:g}=e;g&&(u=u?u.concat(g):g),null==t?(r(f,n,i),r(h,n,i),T(e.children,n,h,o,a,c,u,l)):d>0&&64&d&&p&&t.dynamicChildren?(O(t.dynamicChildren,p,n,o,a,c,u),(null!=e.key||o&&e===o.subTree)&&Cr(t,e,!0)):$(t,e,n,h,o,a,c,u,l)},R=(t,e,n,r,i,o,a,s,c)=>{e.slotScopeIds=s,null==t?512&e.shapeFlag?i.ctx.activate(e,n,r,a,c):j(e,n,r,i,o,a,c):D(t,e,c)},j=(t,e,n,r,i,o,a)=>{const s=t.component=function(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||ii,o={uid:oi++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new K(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:dr(r,i),emitsOptions:nn(r,i),emit:null,emitted:null,propsDefaults:p,inheritAttrs:r.inheritAttrs,ctx:p,data:p,props:p,attrs:p,slots:p,refs:p,setupState:p,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=en.bind(null,o),t.ce&&t.ce(o),o}(t,r,i);if(On(t)&&(s.ctx.renderer=nt),function(t,e=!1){fi=e;const{props:n,children:r}=t.vnode,i=li(t);(function(t,e,n,r=!1){const i={},o={};W(o,Hr,1),t.propsDefaults=Object.create(null),fr(t,e,i,o);for(const e in t.propsOptions[0])e in i||(i[e]=void 0);n?t.props=r?i:oe(i,!1,Nt,Jt,te):t.type.props?t.props=i:t.props=o,t.attrs=o})(t,n,i,e),((t,e)=>{if(32&t.vnode.shapeFlag){const n=e._;n?(t.slots=le(e),W(e,"_",n)):xr(e,t.slots={})}else t.slots={},e&&wr(t,e);W(t.slots,Hr,1)})(t,r);const o=i?function(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=fe(new Proxy(t.ctx,tr));const{setup:r}=n;if(r){const n=t.setupContext=r.length>1?function(t){const e=e=>{t.exposed=e||{}};let n;return{get attrs(){return n||(n=function(t){return new Proxy(t.attrs,{get:(e,n)=>(gt(t,0,"$attrs"),e[n])})}(t))},slots:t.slots,emit:t.emit,expose:e}}(t):null;ci(t),dt();const i=Ae(r,t,0,[t.props,n]);if(pt(),ui(),P(i)){if(i.then(ui,ui),e)return i.then((n=>{hi(t,n,e)})).catch((e=>{ke(e,t,0)}));t.asyncDep=i}else hi(t,i,e)}else di(t,e)}(t,e):void 0;fi=!1}(s),s.asyncDep){if(i&&i.registerDep(s,F),!t.el){const t=s.subTree=Gr(Rr);b(null,t,e,n)}}else F(s,t,e,n,i,o,a)},D=(t,e,n)=>{const r=e.component=t.component;if(function(t,e,n){const{props:r,children:i,component:o}=t,{props:a,children:s,patchFlag:c}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&c>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||fn(r,a,u):!!a);if(1024&c)return!0;if(16&c)return r?fn(r,a,u):!!a;if(8&c){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const n=t[e];if(a[n]!==r[n]&&!rn(u,n))return!0}}return!1}(t,e,n)){if(r.asyncDep&&!r.asyncResolved)return void L(r,e,n);r.next=e,function(t){const e=Ne.indexOf(t);e>Pe&&Ne.splice(e,1)}(r.update),r.update()}else e.el=t.el,r.vnode=e},F=(t,e,n,r,i,o,a)=>{const s=t.effect=new ut((()=>{if(t.isMounted){let e,{next:n,bu:r,u:s,parent:c,vnode:u}=t,l=n;Or(t,!1),n?(n.el=u.el,L(t,n,a)):n=u,r&&Y(r),(e=n.props&&n.props.onVnodeBeforeUpdate)&&ri(e,c,n,u),Or(t,!0);const h=cn(t),d=t.subTree;t.subTree=h,m(d,h,f(d.el),tt(d),t,i,o),n.el=h.el,null===l&&function({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}(t,h.el),s&&Tr(s,i),(e=n.props&&n.props.onVnodeUpdated)&&Tr((()=>ri(e,c,n,u)),i),__VUE_PROD_DEVTOOLS__&&Ke(t)}else{let a;const{el:s,props:c}=e,{bm:u,m:l,parent:f}=t,h=kn(e);if(Or(t,!1),u&&Y(u),!h&&(a=c&&c.onVnodeBeforeMount)&&ri(a,f,e),Or(t,!0),s&&it){const n=()=>{t.subTree=cn(t),it(s,t.subTree,t,i,null)};h?e.type.__asyncLoader().then((()=>!t.isUnmounted&&n())):n()}else{const a=t.subTree=cn(t);m(null,a,n,r,t,i,o),e.el=a.el}if(l&&Tr(l,i),!h&&(a=c&&c.onVnodeMounted)){const t=e;Tr((()=>ri(a,f,t)),i)}(256&e.shapeFlag||f&&kn(f.vnode)&&256&f.vnode.shapeFlag)&&t.a&&Tr(t.a,i),t.isMounted=!0,__VUE_PROD_DEVTOOLS__&&Je(t),e=n=r=null}}),(()=>$e(c)),t.scope),c=t.update=()=>s.run();c.id=t.uid,Or(t,!0),c()},L=(t,e,n)=>{e.component=t;const r=t.vnode.props;t.vnode=e,t.next=null,function(t,e,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=t,s=le(i),[c]=t.propsOptions;let u=!1;if(!(r||a>0)||16&a){let r;fr(t,e,i,o)&&(u=!0);for(const o in s)e&&(E(e,o)||(r=B(o))!==o&&E(e,r))||(c?!n||void 0===n[o]&&void 0===n[r]||(i[o]=hr(c,s,o,void 0,t,!0)):delete i[o]);if(o!==s)for(const t in o)e&&E(e,t)||(delete o[t],u=!0)}else if(8&a){const n=t.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];if(rn(t.emitsOptions,a))continue;const l=e[a];if(c)if(E(o,a))l!==o[a]&&(o[a]=l,u=!0);else{const e=U(a);i[e]=hr(c,s,e,l,t,!1)}else l!==o[a]&&(o[a]=l,u=!0)}}u&&yt(t,"set","$attrs")}(t,e.props,r,n),((t,e,n)=>{const{vnode:r,slots:i}=t;let o=!0,a=p;if(32&r.shapeFlag){const t=e._;t?n&&1===t?o=!1:(x(i,e),n||1!==t||delete i._):(o=!e.$stable,xr(e,i)),a=e}else e&&(wr(t,e),a={default:1});if(o)for(const t in i)mr(t)||t in a||delete i[t]})(t,e.children,n),dt(),ze(),pt()},$=(t,e,n,r,i,o,a,s,c=!1)=>{const u=t&&t.children,f=t?t.shapeFlag:0,h=e.children,{patchFlag:d,shapeFlag:p}=e;if(d>0){if(128&d)return void V(u,h,n,r,i,o,a,s,c);if(256&d)return void z(u,h,n,r,i,o,a,s,c)}8&p?(16&f&&Q(u,i,o),h!==u&&l(n,h)):16&f?16&p?V(u,h,n,r,i,o,a,s,c):Q(u,i,o,!0):(8&f&&l(n,""),16&p&&T(h,n,r,i,o,a,s,c))},z=(t,e,n,r,i,o,a,s,c)=>{e=e||g;const u=(t=t||g).length,l=e.length,f=Math.min(u,l);let h;for(h=0;h<f;h++){const r=e[h]=c?ti(e[h]):Qr(e[h]);m(t[h],r,n,null,i,o,a,s,c)}u>l?Q(t,i,o,!0,!1,f):T(e,n,r,i,o,a,s,c,f)},V=(t,e,n,r,i,o,a,s,c)=>{let u=0;const l=e.length;let f=t.length-1,h=l-1;for(;u<=f&&u<=h;){const r=t[u],l=e[u]=c?ti(e[u]):Qr(e[u]);if(!qr(r,l))break;m(r,l,n,null,i,o,a,s,c),u++}for(;u<=f&&u<=h;){const r=t[f],u=e[h]=c?ti(e[h]):Qr(e[h]);if(!qr(r,u))break;m(r,u,n,null,i,o,a,s,c),f--,h--}if(u>f){if(u<=h){const t=h+1,f=t<l?e[t].el:r;for(;u<=h;)m(null,e[u]=c?ti(e[u]):Qr(e[u]),n,f,i,o,a,s,c),u++}}else if(u>h)for(;u<=f;)H(t[u],i,o,!0),u++;else{const d=u,p=u,v=new Map;for(u=p;u<=h;u++){const t=e[u]=c?ti(e[u]):Qr(e[u]);null!=t.key&&v.set(t.key,u)}let y,_=0;const b=h-p+1;let x=!1,w=0;const M=new Array(b);for(u=0;u<b;u++)M[u]=0;for(u=d;u<=f;u++){const r=t[u];if(_>=b){H(r,i,o,!0);continue}let l;if(null!=r.key)l=v.get(r.key);else for(y=p;y<=h;y++)if(0===M[y-p]&&qr(r,e[y])){l=y;break}void 0===l?H(r,i,o,!0):(M[l-p]=u+1,l>=w?w=l:x=!0,m(r,e[l],n,null,i,o,a,s,c),_++)}const E=x?function(t){const e=t.slice(),n=[0];let r,i,o,a,s;const c=t.length;for(r=0;r<c;r++){const c=t[r];if(0!==c){if(i=n[n.length-1],t[i]<c){e[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,t[n[s]]<c?o=s+1:a=s;c<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=e[a];return n}(M):g;for(y=E.length-1,u=b-1;u>=0;u--){const t=p+u,f=e[t],h=t+1<l?e[t+1].el:r;0===M[u]?m(null,f,n,h,i,o,a,s,c):x&&(y<0||u!==E[y]?q(f,n,h,2):y--)}}},q=(t,e,n,i,o=null)=>{const{el:a,type:s,transition:c,children:u,shapeFlag:l}=t;if(6&l)q(t.component.subTree,e,n,i);else if(128&l)t.suspense.move(e,n,i);else if(64&l)s.move(t,e,n,nt);else if(s!==Nr)if(s!==jr)if(2!==i&&1&l&&c)if(0===i)c.beforeEnter(a),r(a,e,n),Tr((()=>c.enter(a)),o);else{const{leave:t,delayLeave:i,afterLeave:o}=c,s=()=>r(a,e,n),u=()=>{t(a,(()=>{s(),o&&o()}))};i?i(a,s,u):u()}else r(a,e,n);else(({el:t,anchor:e},n,i)=>{let o;for(;t&&t!==e;)o=h(t),r(t,n,i),t=o;r(e,n,i)})(t,e,n);else{r(a,e,n);for(let t=0;t<u.length;t++)q(u[t],e,n,i);r(t.anchor,e,n)}},H=(t,e,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:c,dynamicChildren:u,shapeFlag:l,patchFlag:f,dirs:h}=t;if(null!=s&&Ar(s,null,n,t,!0),256&l)return void e.ctx.deactivate(t);const d=1&l&&h,p=!kn(t);let g;if(p&&(g=a&&a.onVnodeBeforeUnmount)&&ri(g,e,t),6&l)J(t.component,n,r);else{if(128&l)return void t.suspense.unmount(n,r);d&&Yn(t,null,e,"beforeUnmount"),64&l?t.type.remove(t,e,n,i,nt,r):u&&(o!==Nr||f>0&&64&f)?Q(u,e,n,!1,!0):(o===Nr&&384&f||!i&&16&l)&&Q(c,e,n),r&&Z(t)}(p&&(g=a&&a.onVnodeUnmounted)||d)&&Tr((()=>{g&&ri(g,e,t),d&&Yn(t,null,e,"unmounted")}),n)},Z=t=>{const{type:e,el:n,anchor:r,transition:o}=t;if(e===Nr)return void G(n,r);if(e===jr)return void(({el:t,anchor:e})=>{let n;for(;t&&t!==e;)n=h(t),i(t),t=n;i(e)})(t);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&t.shapeFlag&&o&&!o.persisted){const{leave:e,delayLeave:r}=o,i=()=>e(n,a);r?r(t.el,a,i):i()}else a()},G=(t,e)=>{let n;for(;t!==e;)n=h(t),i(t),t=n;i(e)},J=(t,e,n)=>{const{bum:r,scope:i,update:o,subTree:a,um:s}=t;var c;r&&Y(r),i.stop(),o&&(o.active=!1,H(a,t,e,n)),s&&Tr(s,e),Tr((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve()),__VUE_PROD_DEVTOOLS__&&(c=t,Ye&&"function"==typeof Ye.cleanupBuffer&&!Ye.cleanupBuffer(c)&&Qe(c))},Q=(t,e,n,r=!1,i=!1,o=0)=>{for(let a=o;a<t.length;a++)H(t[a],e,n,r,i)},tt=t=>6&t.shapeFlag?tt(t.component.subTree):128&t.shapeFlag?t.suspense.next():h(t.anchor||t.el),et=(t,e,n)=>{null==t?e._vnode&&H(e._vnode,null,null,!0):m(e._vnode||null,t,e,null,null,null,n),ze(),Be(),e._vnode=t},nt={p:m,um:H,m:q,r:Z,mt:j,mc:T,pc:$,pbc:O,n:tt,o:t};let rt,it;return e&&([rt,it]=e(nt)),{render:et,hydrate:rt,createApp:Sr(et,rt)}}function Or({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Cr(t,e,n=!1){const r=t.children,i=e.children;if(S(r)&&S(i))for(let t=0;t<r.length;t++){const e=r[t];let o=i[t];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[t]=ti(i[t]),o.el=e.el),n||Cr(e,o))}}const Nr=Symbol(void 0),Pr=Symbol(void 0),Rr=Symbol(void 0),jr=Symbol(void 0),Dr=[];let Fr=null;function Ir(t=!1){Dr.push(Fr=t?null:[])}let Lr=1;function $r(t){Lr+=t}function Ur(t){return t.dynamicChildren=Lr>0?Fr||g:null,Dr.pop(),Fr=Dr[Dr.length-1]||null,Lr>0&&Fr&&Fr.push(t),t}function zr(t,e,n,r,i,o){return Ur(Zr(t,e,n,r,i,o,!0))}function Br(t,e,n,r,i){return Ur(Gr(t,e,n,r,i,!0))}function Vr(t){return!!t&&!0===t.__v_isVNode}function qr(t,e){return t.type===e.type&&t.key===e.key}const Hr="__vInternal",Yr=({key:t})=>null!=t?t:null,Wr=({ref:t,ref_key:e,ref_for:n})=>null!=t?O(t)||ve(t)||k(t)?{i:on,r:t,k:e,f:!!n}:t:null;function Zr(t,e=null,n=null,r=0,i=null,o=(t===Nr?0:1),a=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Yr(e),ref:e&&Wr(e),scopeId:an,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(ei(c,n),128&o&&t.normalize(c)):n&&(c.shapeFlag|=O(n)?8:16),Lr>0&&!a&&Fr&&(c.patchFlag>0||6&o)&&32!==c.patchFlag&&Fr.push(c),c}const Gr=function(t,e=null,n=null,r=0,i=null,o=!1){if(t&&t!==Gn||(t=Rr),Vr(t)){const r=Xr(t,e,!0);return n&&ei(r,n),Lr>0&&!o&&Fr&&(6&r.shapeFlag?Fr[Fr.indexOf(t)]=r:Fr.push(r)),r.patchFlag|=-2,r}if(function(t){return k(t)&&"__vccOpts"in t}(t)&&(t=t.__vccOpts),e){e=function(t){return t?ue(t)||Hr in t?x({},t):t:null}(e);let{class:t,style:n}=e;t&&!O(t)&&(e.class=f(t)),N(n)&&(ue(n)&&!S(n)&&(n=x({},n)),e.style=s(n))}return Zr(t,e,n,r,i,O(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:N(t)?4:k(t)?2:0,o,!0)};function Xr(t,e,n=!1){const{props:r,ref:i,patchFlag:o,children:a}=t,s=e?ni(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&Yr(s),ref:e&&e.ref?n&&i?S(i)?i.concat(Wr(e)):[i,Wr(e)]:Wr(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Nr?-1===o?16:16|o:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Xr(t.ssContent),ssFallback:t.ssFallback&&Xr(t.ssFallback),el:t.el,anchor:t.anchor}}function Jr(t=" ",e=0){return Gr(Pr,null,t,e)}function Kr(t="",e=!1){return e?(Ir(),Br(Rr,null,t)):Gr(Rr,null,t)}function Qr(t){return null==t||"boolean"==typeof t?Gr(Rr):S(t)?Gr(Nr,null,t.slice()):"object"==typeof t?ti(t):Gr(Pr,null,String(t))}function ti(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:Xr(t)}function ei(t,e){let n=0;const{shapeFlag:r}=t;if(null==e)e=null;else if(S(e))n=16;else if("object"==typeof e){if(65&r){const n=e.default;return void(n&&(n._c&&(n._d=!1),ei(t,n()),n._c&&(n._d=!0)))}{n=32;const r=e._;r||Hr in e?3===r&&on&&(1===on.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=on}}else k(e)?(e={default:e,_ctx:on},n=32):(e=String(e),64&r?(n=16,e=[Jr(e)]):n=8);t.children=e,t.shapeFlag|=n}function ni(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const t in r)if("class"===t)e.class!==r.class&&(e.class=f([e.class,r.class]));else if("style"===t)e.style=s([e.style,r.style]);else if(_(t)){const n=e[t],i=r[t];!i||n===i||S(n)&&n.includes(i)||(e[t]=n?[].concat(n,i):i)}else""!==t&&(e[t]=r[t])}return e}function ri(t,e,n,r=null){Te(t,e,7,[n,r])}const ii=Mr();let oi=0;let ai=null;const si=()=>ai||on,ci=t=>{ai=t,t.scope.on()},ui=()=>{ai&&ai.scope.off(),ai=null};function li(t){return 4&t.vnode.shapeFlag}let fi=!1;function hi(t,e,n){k(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:N(e)&&(__VUE_PROD_DEVTOOLS__&&(t.devtoolsRawSetupState=e),t.setupState=xe(e)),di(t,n)}function di(t,e,n){const r=t.type;t.render||(t.render=r.render||v),__VUE_OPTIONS_API__&&(ci(t),dt(),function(t){const e=ir(t),n=t.proxy,r=t.ctx;er=!1,e.beforeCreate&&nr(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:a,watch:s,provide:c,inject:u,created:l,beforeMount:f,mounted:h,beforeUpdate:d,updated:p,activated:g,deactivated:y,beforeDestroy:m,beforeUnmount:_,destroyed:b,unmounted:x,render:w,renderTracked:M,renderTriggered:E,errorCaptured:A,serverPrefetch:T,expose:O,inheritAttrs:C,components:P,directives:R,filters:j}=e;if(u&&function(t,e,n=v,r=!1){S(t)&&(t=cr(t));for(const n in t){const i=t[n];let o;o=N(i)?"default"in i?hn(i.from||n,i.default,!0):hn(i.from||n):hn(i),ve(o)&&r?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:t=>o.value=t}):e[n]=o}}(u,r,null,t.appContext.config.unwrapInjectedRef),a)for(const t in a){const e=a[t];k(e)&&(r[t]=e.bind(n))}if(i){const e=i.call(n,n);N(e)&&(t.data=re(e))}if(er=!0,o)for(const t in o){const e=o[t],i=k(e)?e.bind(n,n):k(e.get)?e.get.bind(n,n):v,a=!k(e)&&k(e.set)?e.set.bind(n):v,s=gi({get:i,set:a});Object.defineProperty(r,t,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t})}if(s)for(const t in s)rr(s[t],r,n,t);if(c){const t=k(c)?c.call(n):c;Reflect.ownKeys(t).forEach((e=>{!function(t,e){if(ai){let n=ai.provides;const r=ai.parent&&ai.parent.provides;r===n&&(n=ai.provides=Object.create(r)),n[t]=e}}(e,t[e])}))}function D(t,e){S(e)?e.forEach((e=>t(e.bind(n)))):e&&t(e.bind(n))}if(l&&nr(l,t,"c"),D(Fn,f),D(In,h),D(Ln,d),D($n,p),D(Cn,g),D(Nn,y),D(Hn,A),D(qn,M),D(Vn,E),D(Un,_),D(zn,x),D(Bn,T),S(O))if(O.length){const e=t.exposed||(t.exposed={});O.forEach((t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})}))}else t.exposed||(t.exposed={});w&&t.render===v&&(t.render=w),null!=C&&(t.inheritAttrs=C),P&&(t.components=P),R&&(t.directives=R)}(t),pt(),ui())}function pi(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(xe(fe(t.exposed)),{get:(e,n)=>n in e?e[n]:n in Qn?Qn[n](t):void 0}))}const gi=(t,e)=>function(t,e,n=!1){let r,i;const o=k(t);return o?(r=t,i=v):(r=t.get,i=t.set),new Se(r,i,o||!i,n)}(t,0,fi);Symbol("");const vi="3.2.41",yi="undefined"!=typeof document?document:null,mi=yi&&yi.createElement("template"),_i={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e?yi.createElementNS("http://www.w3.org/2000/svg",t):yi.createElement(t,n?{is:n}:void 0);return"select"===t&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:t=>yi.createTextNode(t),createComment:t=>yi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>yi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,o){const a=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{mi.innerHTML=r?`<svg>${t}</svg>`:t;const i=mi.content;if(r){const t=i.firstChild;for(;t.firstChild;)i.appendChild(t.firstChild);i.removeChild(t)}e.insertBefore(i,n)}return[a?a.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},bi=/\s*!important$/;function xi(t,e,n){if(S(n))n.forEach((n=>xi(t,e,n)));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=function(t,e){const n=Mi[e];if(n)return n;let r=U(e);if("filter"!==r&&r in t)return Mi[e]=r;r=V(r);for(let n=0;n<wi.length;n++){const i=wi[n]+r;if(i in t)return Mi[e]=i}return e}(t,e);bi.test(n)?t.setProperty(B(r),n.replace(bi,""),"important"):t[r]=n}}const wi=["Webkit","Moz","ms"],Mi={},Ei="http://www.w3.org/1999/xlink";const Si=/(?:Once|Passive|Capture)$/;let Ai=0;const Ti=Promise.resolve(),ki=/^on[a-z]/;"undefined"!=typeof HTMLElement&&HTMLElement;const Oi="transition",Ci="animation",Ni=(t,{slots:e})=>function(t,e,n){const r=arguments.length;return 2===r?N(e)&&!S(e)?Vr(e)?Gr(t,null,[e]):Gr(t,e):Gr(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Vr(n)&&(n=[n]),Gr(t,e,n))}(xn,function(t){const e={};for(const n in t)n in Pi||(e[n]=t[n]);if(!1===t.css)return e;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=a,appearToClass:l=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=t,p=function(t){if(null==t)return null;if(N(t))return[Di(t.enter),Di(t.leave)];{const e=Di(t);return[e,e]}}(i),g=p&&p[0],v=p&&p[1],{onBeforeEnter:y,onEnter:m,onEnterCancelled:_,onLeave:b,onLeaveCancelled:w,onBeforeAppear:M=y,onAppear:E=m,onAppearCancelled:S=_}=e,A=(t,e,n)=>{Ii(t,e?l:s),Ii(t,e?u:a),n&&n()},T=(t,e)=>{t._isLeaving=!1,Ii(t,f),Ii(t,d),Ii(t,h),e&&e()},k=t=>(e,n)=>{const i=t?E:m,a=()=>A(e,t,n);Ri(i,[e,a]),Li((()=>{Ii(e,t?c:o),Fi(e,t?l:s),ji(i)||Ui(e,r,g,a)}))};return x(e,{onBeforeEnter(t){Ri(y,[t]),Fi(t,o),Fi(t,a)},onBeforeAppear(t){Ri(M,[t]),Fi(t,c),Fi(t,u)},onEnter:k(!1),onAppear:k(!0),onLeave(t,e){t._isLeaving=!0;const n=()=>T(t,e);Fi(t,f),document.body.offsetHeight,Fi(t,h),Li((()=>{t._isLeaving&&(Ii(t,f),Fi(t,d),ji(b)||Ui(t,r,v,n))})),Ri(b,[t,n])},onEnterCancelled(t){A(t,!1),Ri(_,[t])},onAppearCancelled(t){A(t,!0),Ri(S,[t])},onLeaveCancelled(t){T(t),Ri(w,[t])}})}(t),e);Ni.displayName="Transition";const Pi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ri=(Ni.props=x({},xn.props,Pi),(t,e=[])=>{S(t)?t.forEach((t=>t(...e))):t&&t(...e)}),ji=t=>!!t&&(S(t)?t.some((t=>t.length>1)):t.length>1);function Di(t){return Z(t)}function Fi(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t._vtc||(t._vtc=new Set)).add(e)}function Ii(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function Li(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let $i=0;function Ui(t,e,n,r){const i=t._endId=++$i,o=()=>{i===t._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:c}=function(t,e){const n=window.getComputedStyle(t),r=t=>(n[t]||"").split(", "),i=r("transitionDelay"),o=r("transitionDuration"),a=zi(i,o),s=r("animationDelay"),c=r("animationDuration"),u=zi(s,c);let l=null,f=0,h=0;return e===Oi?a>0&&(l=Oi,f=a,h=o.length):e===Ci?u>0&&(l=Ci,f=u,h=c.length):(f=Math.max(a,u),l=f>0?a>u?Oi:Ci:null,h=l?l===Oi?o.length:c.length:0),{type:l,timeout:f,propCount:h,hasTransform:l===Oi&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}(t,e);if(!a)return r();const u=a+"end";let l=0;const f=()=>{t.removeEventListener(u,h),o()},h=e=>{e.target===t&&++l>=c&&f()};setTimeout((()=>{l<c&&f()}),s+1),t.addEventListener(u,h)}function zi(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map(((e,n)=>Bi(e)+Bi(t[n]))))}function Bi(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}new WeakMap,new WeakMap;const Vi=x({patchProp:(t,e,n,r,i=!1,s,c,u,l)=>{"class"===e?function(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}(t,r,i):"style"===e?function(t,e,n){const r=t.style,i=O(n);if(n&&!i){for(const t in n)xi(r,t,n[t]);if(e&&!O(e))for(const t in e)null==n[t]&&xi(r,t,"")}else{const o=r.display;i?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=o)}}(t,n,r):_(e)?b(e)||function(t,e,n,r,i=null){const o=t._vei||(t._vei={}),a=o[e];if(r&&a)a.value=r;else{const[n,s]=function(t){let e;if(Si.test(t)){let n;for(e={};n=t.match(Si);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[":"===t[2]?t.slice(3):B(t.slice(2)),e]}(e);if(r){const a=o[e]=function(t,e){const n=t=>{if(t._vts){if(t._vts<=n.attached)return}else t._vts=Date.now();Te(function(t,e){if(S(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}(t,n.value),e,5,[t])};return n.value=t,n.attached=Ai||(Ti.then((()=>Ai=0)),Ai=Date.now()),n}(r,i);!function(t,e,n,r){t.addEventListener(e,n,r)}(t,n,a,s)}else a&&(function(t,e,n,r){t.removeEventListener(e,n,r)}(t,n,a,s),o[e]=void 0)}}(t,e,0,r,c):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):function(t,e,n,r){return r?"innerHTML"===e||"textContent"===e||!!(e in t&&ki.test(e)&&k(n)):"spellcheck"!==e&&"draggable"!==e&&"translate"!==e&&("form"!==e&&(("list"!==e||"INPUT"!==t.tagName)&&(("type"!==e||"TEXTAREA"!==t.tagName)&&((!ki.test(e)||!O(n))&&e in t))))}(t,e,r,i))?function(t,e,n,r,i,o,s){if("innerHTML"===e||"textContent"===e)return r&&s(r,i,o),void(t[e]=null==n?"":n);if("value"===e&&"PROGRESS"!==t.tagName&&!t.tagName.includes("-")){t._value=n;const r=null==n?"":n;return t.value===r&&"OPTION"!==t.tagName||(t.value=r),void(null==n&&t.removeAttribute(e))}let c=!1;if(""===n||null==n){const r=typeof t[e];"boolean"===r?n=a(n):null==n&&"string"===r?(n="",c=!0):"number"===r&&(n=0,c=!0)}try{t[e]=n}catch(t){}c&&t.removeAttribute(e)}(t,e,r,s,c,u,l):("true-value"===e?t._trueValue=r:"false-value"===e&&(t._falseValue=r),function(t,e,n,r,i){if(r&&e.startsWith("xlink:"))null==n?t.removeAttributeNS(Ei,e.slice(6,e.length)):t.setAttributeNS(Ei,e,n);else{const r=o(e);null==n||r&&!a(n)?t.removeAttribute(e):t.setAttribute(e,r?"":n)}}(t,e,r,i))}},_i);let qi;const Hi={class:"vis-outer"},Yi={key:1},Wi=Zr("h3",null,"prepared:",-1),Zi={style:{height:"500px",overflow:"auto","font-size":"11px"}},Gi=Zr("h3",null,"org:",-1),Xi={style:{height:"500px",overflow:"auto","font-size":"11px"}};function Ji(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==n.g?n.g:{}}const Ki="function"==typeof Proxy;let Qi,to,eo;class no{constructor(t,e){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=e;const r={};if(t.settings)for(const e in t.settings){const n=t.settings[e];r[e]=n.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const t=localStorage.getItem(i),e=JSON.parse(t);Object.assign(o,e)}catch(t){}this.fallbacks={getSettings:()=>o,setSettings(t){try{localStorage.setItem(i,JSON.stringify(t))}catch(t){}o=t},now:()=>function(){var t;return void 0!==Qi||("undefined"!=typeof window&&window.performance?(Qi=!0,to=window.performance):void 0!==n.g&&(null===(t=n.g.perf_hooks)||void 0===t?void 0:t.performance)?(Qi=!0,to=n.g.perf_hooks.performance):Qi=!1),Qi}()?to.now():Date.now()},e&&e.on("plugin:settings:set",((t,e)=>{t===this.plugin.id&&this.fallbacks.setSettings(e)})),this.proxiedOn=new Proxy({},{get:(t,e)=>this.target?this.target.on[e]:(...t)=>{this.onQueue.push({method:e,args:t})}}),this.proxiedTarget=new Proxy({},{get:(t,e)=>this.target?this.target[e]:"on"===e?this.proxiedOn:Object.keys(this.fallbacks).includes(e)?(...t)=>(this.targetQueue.push({method:e,args:t,resolve:()=>{}}),this.fallbacks[e](...t)):(...t)=>new Promise((n=>{this.targetQueue.push({method:e,args:t,resolve:n})}))})}async setRealTarget(t){this.target=t;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function ro(t,e){const n=t,r=Ji(),i=Ji().__VUE_DEVTOOLS_GLOBAL_HOOK__,o=Ki&&n.enableEarlyProxy;if(!i||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&o){const t=o?new no(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:t}),t&&e(t.proxiedTarget)}else i.emit("devtools-plugin:setup",t,e)}const io=t=>eo=t,oo=Symbol();function ao(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var so;!function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"}(so||(so={}));const co="undefined"!=typeof window,uo="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&co,lo=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function fo(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){yo(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function ho(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function po(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const go="object"==typeof navigator?navigator:{userAgent:""},vo=(()=>/Macintosh/.test(go.userAgent)&&/AppleWebKit/.test(go.userAgent)&&!/Safari/.test(go.userAgent))(),yo=co?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!vo?function(t,e="download",n){const r=document.createElement("a");r.download=e,r.rel="noopener","string"==typeof t?(r.href=t,r.origin!==location.origin?ho(r.href)?fo(t,e,n):(r.target="_blank",po(r)):po(r)):(r.href=URL.createObjectURL(t),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){po(r)}),0))}:"msSaveOrOpenBlob"in go?function(t,e="download",n){if("string"==typeof t)if(ho(t))fo(t,e,n);else{const e=document.createElement("a");e.href=t,e.target="_blank",setTimeout((function(){po(e)}))}else navigator.msSaveOrOpenBlob(function(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return fo(t,e,n);const i="application/octet-stream"===t.type,o=/constructor/i.test(String(lo.HTMLElement))||"safari"in lo,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&o||vo)&&"undefined"!=typeof FileReader){const e=new FileReader;e.onloadend=function(){let t=e.result;if("string"!=typeof t)throw r=null,new Error("Wrong reader.result type");t=a?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location.assign(t),r=null},e.readAsDataURL(t)}else{const e=URL.createObjectURL(t);r?r.location.assign(e):location.href=e,r=null,setTimeout((function(){URL.revokeObjectURL(e)}),4e4)}}:()=>{};function mo(t,e){const n="🍍 "+t;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,e):"error"===e?console.error(n):"warn"===e?console.warn(n):console.log(n)}function _o(t){return"_a"in t&&"install"in t}function bo(){if(!("clipboard"in navigator))return mo("Your browser doesn't support the Clipboard API","error"),!0}function xo(t){return!!(t instanceof Error&&t.message.toLowerCase().includes("document is not focused"))&&(mo('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let wo;function Mo(t){return{_custom:{display:t}}}const Eo="🍍 Pinia (root)",So="_root";function Ao(t){return _o(t)?{id:So,label:Eo}:{id:t.$id,label:t.$id}}function To(t){return t?Array.isArray(t)?t.reduce(((t,e)=>(t.keys.push(e.key),t.operations.push(e.type),t.oldValue[e.key]=e.oldValue,t.newValue[e.key]=e.newValue,t)),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Mo(t.type),key:Mo(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function ko(t){switch(t){case so.direct:return"mutation";case so.patchFunction:case so.patchObject:return"$patch";default:return"unknown"}}let Oo=!0;const Co=[],No="pinia:mutations",Po="pinia",Ro=t=>"🍍 "+t;function jo(t,e){ro({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Co,app:t},(n=>{"function"!=typeof n.now&&mo("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:No,label:"Pinia 🍍",color:15064968}),n.addInspector({id:Po,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(t){if(!bo())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),mo("Global state copied to clipboard.")}catch(t){if(xo(t))return;mo("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(t){if(!bo())try{t.state.value=JSON.parse(await navigator.clipboard.readText()),mo("Global state pasted from clipboard.")}catch(t){if(xo(t))return;mo("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}(e),n.sendInspectorTree(Po),n.sendInspectorState(Po)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(t){try{yo(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){mo("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await async function(t){try{const e=await(wo||(wo=document.createElement("input"),wo.type="file",wo.accept=".json"),function(){return new Promise(((t,e)=>{wo.onchange=async()=>{const e=wo.files;if(!e)return t(null);const n=e.item(0);return t(n?{text:await n.text(),file:n}:null)},wo.oncancel=()=>t(null),wo.onerror=e,wo.click()}))}),n=await e();if(!n)return;const{text:r,file:i}=n;t.state.value=JSON.parse(r),mo(`Global state imported from "${i.name}".`)}catch(t){mo("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}(e),n.sendInspectorTree(Po),n.sendInspectorState(Po)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:"Reset the state (option store only)",action:t=>{const n=e._s.get(t);n?n._isOptionsAPI?(n.$reset(),mo(`Store "${t}" reset.`)):mo(`Cannot reset "${t}" store because it's a setup store.`,"warn"):mo(`Cannot reset "${t}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(((t,e)=>{const n=t.componentInstance&&t.componentInstance.proxy;if(n&&n._pStores){const e=t.componentInstance.proxy._pStores;Object.values(e).forEach((e=>{t.instanceData.state.push({type:Ro(e.$id),key:"state",editable:!0,value:e._isOptionsAPI?{_custom:{value:le(e.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>e.$reset()}]}}:Object.keys(e.$state).reduce(((t,n)=>(t[n]=e.$state[n],t)),{})}),e._getters&&e._getters.length&&t.instanceData.state.push({type:Ro(e.$id),key:"getters",editable:!1,value:e._getters.reduce(((t,n)=>{try{t[n]=e[n]}catch(e){t[n]=e}return t}),{})})}))}})),n.on.getInspectorTree((n=>{if(n.app===t&&n.inspectorId===Po){let t=[e];t=t.concat(Array.from(e._s.values())),n.rootNodes=(n.filter?t.filter((t=>"$id"in t?t.$id.toLowerCase().includes(n.filter.toLowerCase()):Eo.toLowerCase().includes(n.filter.toLowerCase()))):t).map(Ao)}})),n.on.getInspectorState((n=>{if(n.app===t&&n.inspectorId===Po){const t=n.nodeId===So?e:e._s.get(n.nodeId);if(!t)return;t&&(n.state=function(t){if(_o(t)){const e=Array.from(t._s.keys()),n=t._s,r={state:e.map((e=>({editable:!0,key:e,value:t.state.value[e]}))),getters:e.filter((t=>n.get(t)._getters)).map((t=>{const e=n.get(t);return{editable:!1,key:t,value:e._getters.reduce(((t,n)=>(t[n]=e[n],t)),{})}}))};return r}const e={state:Object.keys(t.$state).map((e=>({editable:!0,key:e,value:t.$state[e]})))};return t._getters&&t._getters.length&&(e.getters=t._getters.map((e=>({editable:!1,key:e,value:t[e]})))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map((e=>({editable:!0,key:e,value:t[e]})))),e}(t))}})),n.on.editInspectorState(((n,r)=>{if(n.app===t&&n.inspectorId===Po){const t=n.nodeId===So?e:e._s.get(n.nodeId);if(!t)return mo(`store "${n.nodeId}" not found`,"error");const{path:r}=n;_o(t)?r.unshift("state"):1===r.length&&t._customProperties.has(r[0])&&!(r[0]in t.$state)||r.unshift("$state"),Oo=!1,n.set(t,r,n.state.value),Oo=!0}})),n.on.editComponentState((t=>{if(t.type.startsWith("🍍")){const n=t.type.replace(/^🍍\s*/,""),r=e._s.get(n);if(!r)return mo(`store "${n}" not found`,"error");const{path:i}=t;if("state"!==i[0])return mo(`Invalid path for store "${n}":\n${i}\nOnly state can be modified.`);i[0]="$state",Oo=!1,t.set(r,i,t.state.value),Oo=!0}}))}))}let Do,Fo=0;function Io(t,e){const n=e.reduce(((e,n)=>(e[n]=le(t)[n],e)),{});for(const e in n)t[e]=function(){const r=Fo,i=new Proxy(t,{get:(...t)=>(Do=r,Reflect.get(...t)),set:(...t)=>(Do=r,Reflect.set(...t))});return n[e].apply(i,arguments)}}function Lo({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(n.state&&(e._isOptionsAPI=!0),"function"==typeof n.state){Io(e,Object.keys(n.actions));const t=e._hotUpdate;le(e)._hotUpdate=function(n){t.apply(this,arguments),Io(e,Object.keys(n._hmrPayload.actions))}}!function(t,e){Co.includes(Ro(e.$id))||Co.push(Ro(e.$id)),ro({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Co,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(t=>{const n="function"==typeof t.now?t.now.bind(t):Date.now;e.$onAction((({after:r,onError:i,name:o,args:a})=>{const s=Fo++;t.addTimelineEvent({layerId:No,event:{time:n(),title:"🛫 "+o,subtitle:"start",data:{store:Mo(e.$id),action:Mo(o),args:a},groupId:s}}),r((r=>{Do=void 0,t.addTimelineEvent({layerId:No,event:{time:n(),title:"🛬 "+o,subtitle:"end",data:{store:Mo(e.$id),action:Mo(o),args:a,result:r},groupId:s}})})),i((r=>{Do=void 0,t.addTimelineEvent({layerId:No,event:{time:n(),logType:"error",title:"💥 "+o,subtitle:"end",data:{store:Mo(e.$id),action:Mo(o),args:a,error:r},groupId:s}})}))}),!0),e._customProperties.forEach((r=>{pn((()=>_e(e[r])),((e,i)=>{t.notifyComponentUpdate(),t.sendInspectorState(Po),Oo&&t.addTimelineEvent({layerId:No,event:{time:n(),title:"Change",subtitle:r,data:{newValue:e,oldValue:i},groupId:Do}})}),{deep:!0})})),e.$subscribe((({events:r,type:i},o)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(Po),!Oo)return;const a={time:n(),title:ko(i),data:{store:Mo(e.$id),...To(r)},groupId:Do};Do=void 0,i===so.patchFunction?a.subtitle="⤵️":i===so.patchObject?a.subtitle="🧩":r&&!Array.isArray(r)&&(a.subtitle=r.type),r&&(a.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:r}}),t.addTimelineEvent({layerId:No,event:a})}),{detached:!0,flush:"sync"});const r=e._hotUpdate;e._hotUpdate=fe((i=>{r(i),t.addTimelineEvent({layerId:No,event:{time:n(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:Mo(e.$id),info:Mo("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(Po),t.sendInspectorState(Po)}));const{$dispose:i}=e;e.$dispose=()=>{i(),t.notifyComponentUpdate(),t.sendInspectorTree(Po),t.sendInspectorState(Po),t.getSettings().logStoreChanges&&mo(`Disposed "${e.$id}" store 🗑`)},t.notifyComponentUpdate(),t.sendInspectorTree(Po),t.sendInspectorState(Po),t.getSettings().logStoreChanges&&mo(`"${e.$id}" store installed 🆕`)}))}(t,e)}}const $o=()=>{};function Uo(t,e,n,r=$o){t.push(e);const i=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),r())};return!n&&si()&&zn(i),i}function zo(t,...e){t.slice().forEach((t=>{t(...e)}))}function Bo(t,e){t instanceof Map&&e instanceof Map&&e.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],i=t[n];ao(i)&&ao(r)&&t.hasOwnProperty(n)&&!ve(r)&&!ae(r)?t[n]=Bo(i,r):t[n]=r}return t}const Vo=Symbol(),{assign:qo}=Object;function Ho(t,e,n={},r,i,o){let a;const s=qo({actions:{}},n),c={deep:!0};let u,l,f,h=fe([]),d=fe([]);const p=r.state.value[t];o||p||(r.state.value[t]={});const g=ye({});let v;function y(e){let n;u=l=!1,"function"==typeof e?(e(r.state.value[t]),n={type:so.patchFunction,storeId:t,events:f}):(Bo(r.state.value[t],e),n={type:so.patchObject,payload:e,storeId:t,events:f});const i=v=Symbol();Le().then((()=>{v===i&&(u=!0)})),l=!0,zo(h,n,r.state.value[t])}const m=$o;function _(e,n){return function(){io(r);const i=Array.from(arguments),o=[],a=[];function s(t){o.push(t)}function c(t){a.push(t)}let u;zo(d,{args:i,name:e,store:w,after:s,onError:c});try{u=n.apply(this&&this.$id===t?this:w,i)}catch(t){throw zo(a,t),t}return u instanceof Promise?u.then((t=>(zo(o,t),t))).catch((t=>(zo(a,t),Promise.reject(t)))):(zo(o,u),u)}}const b=fe({actions:{},getters:{},state:[],hotState:g}),x={_p:r,$id:t,$onAction:Uo.bind(null,d),$patch:y,$reset:m,$subscribe(e,n={}){const i=Uo(h,e,n.detached,(()=>o())),o=a.run((()=>pn((()=>r.state.value[t]),(r=>{("sync"===n.flush?l:u)&&e({storeId:t,type:so.direct,events:f},r)}),qo({},c,n))));return i},$dispose:function(){a.stop(),h=[],d=[],r._s.delete(t)}},w=re(uo?qo({_hmrPayload:b,_customProperties:fe(new Set)},x):x);r._s.set(t,w);const M=r._e.run((()=>(a=Q(),a.run((()=>e())))));for(const e in M){const n=M[e];if(ve(n)&&(!ve(S=n)||!S.effect)||ae(n))o||(!p||ao(E=n)&&E.hasOwnProperty(Vo)||(ve(n)?n.value=p[e]:Bo(n,p[e])),r.state.value[t][e]=n);else if("function"==typeof n){const t=_(e,n);M[e]=t,s.actions[e]=n}}var E,S;if(qo(w,M),qo(le(w),M),Object.defineProperty(w,"$state",{get:()=>r.state.value[t],set:t=>{y((e=>{qo(e,t)}))}}),uo){const t={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((e=>{Object.defineProperty(w,e,{value:w[e],...t})}))}return r._p.forEach((t=>{if(uo){const e=a.run((()=>t({store:w,app:r._a,pinia:r,options:s})));Object.keys(e||{}).forEach((t=>w._customProperties.add(t))),qo(w,e)}else qo(w,a.run((()=>t({store:w,app:r._a,pinia:r,options:s}))))})),p&&o&&n.hydrate&&n.hydrate(w.$state,p),u=!0,l=!0,w}function Yo(t,e){return function(){return t.apply(e,arguments)}}const{toString:Wo}=Object.prototype,{getPrototypeOf:Zo}=Object,Go=(Xo=Object.create(null),t=>{const e=Wo.call(t);return Xo[e]||(Xo[e]=e.slice(8,-1).toLowerCase())});var Xo;const Jo=t=>(t=t.toLowerCase(),e=>Go(e)===t),Ko=t=>e=>typeof e===t,{isArray:Qo}=Array,ta=Ko("undefined"),ea=Jo("ArrayBuffer"),na=Ko("string"),ra=Ko("function"),ia=Ko("number"),oa=t=>null!==t&&"object"==typeof t,aa=t=>{if("object"!==Go(t))return!1;const e=Zo(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},sa=Jo("Date"),ca=Jo("File"),ua=Jo("Blob"),la=Jo("FileList"),fa=Jo("URLSearchParams");function ha(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),Qo(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}const da=(pa="undefined"!=typeof Uint8Array&&Zo(Uint8Array),t=>pa&&t instanceof pa);var pa;const ga=Jo("HTMLFormElement"),va=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ya=Jo("RegExp"),ma=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ha(n,((n,i)=>{!1!==e(n,i,t)&&(r[i]=n)})),Object.defineProperties(t,r)},_a={isArray:Qo,isArrayBuffer:ea,isBuffer:function(t){return null!==t&&!ta(t)&&null!==t.constructor&&!ta(t.constructor)&&ra(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||Wo.call(t)===e||ra(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&ea(t.buffer),e},isString:na,isNumber:ia,isBoolean:t=>!0===t||!1===t,isObject:oa,isPlainObject:aa,isUndefined:ta,isDate:sa,isFile:ca,isBlob:ua,isRegExp:ya,isFunction:ra,isStream:t=>oa(t)&&ra(t.pipe),isURLSearchParams:fa,isTypedArray:da,isFileList:la,forEach:ha,merge:function t(){const e={},n=(n,r)=>{aa(e[r])&&aa(n)?e[r]=t(e[r],n):aa(n)?e[r]=t({},n):Qo(n)?e[r]=n.slice():e[r]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&ha(arguments[t],n);return e},extend:(t,e,n,{allOwnKeys:r}={})=>(ha(e,((e,r)=>{n&&ra(e)?t[r]=Yo(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,o,a;const s={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],r&&!r(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&Zo(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:Go,kindOfTest:Jo,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(Qo(t))return t;let e=t.length;if(!ia(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:ga,hasOwnProperty:va,hasOwnProp:va,reduceDescriptors:ma,freezeMethods:t=>{ma(t,((e,n)=>{const r=t[n];ra(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return Qo(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e)};function ba(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}_a.inherits(ba,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xa=ba.prototype,wa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{wa[t]={value:t}})),Object.defineProperties(ba,wa),Object.defineProperty(xa,"isAxiosError",{value:!0}),ba.from=(t,e,n,r,i,o)=>{const a=Object.create(xa);return _a.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),ba.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const Ma=ba,Ea=n(230);function Sa(t){return _a.isPlainObject(t)||_a.isArray(t)}function Aa(t){return _a.endsWith(t,"[]")?t.slice(0,-2):t}function Ta(t,e,n){return t?t.concat(e).map((function(t,e){return t=Aa(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const ka=_a.toFlatObject(_a,{},null,(function(t){return/^is[A-Z]/.test(t)})),Oa=function(t,e,n){if(!_a.isObject(t))throw new TypeError("target must be an object");e=e||new(Ea||FormData);const r=(n=_a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!_a.isUndefined(e[t])}))).metaTokens,i=n.visitor||l,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(c=e)&&_a.isFunction(c.append)&&"FormData"===c[Symbol.toStringTag]&&c[Symbol.iterator];var c;if(!_a.isFunction(i))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(_a.isDate(t))return t.toISOString();if(!s&&_a.isBlob(t))throw new Ma("Blob is not supported. Use a Buffer instead.");return _a.isArrayBuffer(t)||_a.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,n,i){let s=t;if(t&&!i&&"object"==typeof t)if(_a.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(_a.isArray(t)&&function(t){return _a.isArray(t)&&!t.some(Sa)}(t)||_a.isFileList(t)||_a.endsWith(n,"[]")&&(s=_a.toArray(t)))return n=Aa(n),s.forEach((function(t,r){!_a.isUndefined(t)&&null!==t&&e.append(!0===a?Ta([n],r,o):null===a?n:n+"[]",u(t))})),!1;return!!Sa(t)||(e.append(Ta(i,n,o),u(t)),!1)}const f=[],h=Object.assign(ka,{defaultVisitor:l,convertValue:u,isVisitable:Sa});if(!_a.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!_a.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),_a.forEach(n,(function(n,o){!0===(!(_a.isUndefined(n)||null===n)&&i.call(e,n,_a.isString(o)?o.trim():o,r,h))&&t(n,r?r.concat(o):[o])})),f.pop()}}(t),e};function Ca(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Na(t,e){this._pairs=[],t&&Oa(t,this,e)}const Pa=Na.prototype;Pa.append=function(t,e){this._pairs.push([t,e])},Pa.toString=function(t){const e=t?function(e){return t.call(this,e,Ca)}:Ca;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const Ra=Na;function ja(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Da(t,e,n){if(!e)return t;const r=n&&n.encode||ja,i=n&&n.serialize;let o;if(o=i?i(e,n):_a.isURLSearchParams(e)?e.toString():new Ra(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}const Fa=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_a.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Ia={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},La="undefined"!=typeof URLSearchParams?URLSearchParams:Ra,$a=FormData,Ua=(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),za={isBrowser:!0,classes:{URLSearchParams:La,FormData:$a,Blob},isStandardBrowserEnv:Ua,protocols:["http","https","file","blob","url","data"]},Ba=function(t){function e(t,n,r,i){let o=t[i++];const a=Number.isFinite(+o),s=i>=t.length;return o=!o&&_a.isArray(r)?r.length:o,s?(_a.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&_a.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&_a.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(r[o])),!a)}if(_a.isFormData(t)&&_a.isFunction(t.entries)){const n={};return _a.forEachEntry(t,((t,r)=>{e(function(t){return _a.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null},Va=za.isStandardBrowserEnv?{write:function(t,e,n,r,i,o){const a=[];a.push(t+"="+encodeURIComponent(e)),_a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),_a.isString(r)&&a.push("path="+r),_a.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function qa(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Ha=za.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=_a.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function Ya(t,e,n){Ma.call(this,null==t?"canceled":t,Ma.ERR_CANCELED,e,n),this.name="CanceledError"}_a.inherits(Ya,Ma,{__CANCEL__:!0});const Wa=Ya,Za=_a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ga=Symbol("internals"),Xa=Symbol("defaults");function Ja(t){return t&&String(t).trim().toLowerCase()}function Ka(t){return!1===t||null==t?t:_a.isArray(t)?t.map(Ka):String(t)}function Qa(t,e,n,r){return _a.isFunction(r)?r.call(this,e,n):_a.isString(e)?_a.isString(r)?-1!==e.indexOf(r):_a.isRegExp(r)?r.test(e):void 0:void 0}function ts(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}function es(t,e){t&&this.set(t),this[Xa]=e||null}Object.assign(es.prototype,{set:function(t,e,n){const r=this;function i(t,e,n){const i=Ja(e);if(!i)throw new Error("header name must be a non-empty string");const o=ts(r,i);(!o||!0===n||!1!==r[o]&&!1!==n)&&(r[o||e]=Ka(t))}return _a.isPlainObject(t)?_a.forEach(t,((t,n)=>{i(t,n,e)})):i(e,t,n),this},get:function(t,e){if(!(t=Ja(t)))return;const n=ts(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(_a.isFunction(e))return e.call(this,t,n);if(_a.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}},has:function(t,e){if(t=Ja(t)){const n=ts(this,t);return!(!n||e&&!Qa(0,this[n],n,e))}return!1},delete:function(t,e){const n=this;let r=!1;function i(t){if(t=Ja(t)){const i=ts(n,t);!i||e&&!Qa(0,n[i],i,e)||(delete n[i],r=!0)}}return _a.isArray(t)?t.forEach(i):i(t),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(t){const e=this,n={};return _a.forEach(this,((r,i)=>{const o=ts(n,i);if(o)return e[o]=Ka(r),void delete e[i];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete e[i],e[a]=Ka(r),n[a]=!0})),this},toJSON:function(t){const e=Object.create(null);return _a.forEach(Object.assign({},this[Xa]||null,this),((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&_a.isArray(n)?n.join(", "):n)})),e}}),Object.assign(es,{from:function(t){return _a.isString(t)?new this((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&Za[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t)):t instanceof this?t:new this(t)},accessor:function(t){const e=(this[Ga]=this[Ga]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=Ja(t);e[r]||(function(t,e){const n=_a.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}(n,t),e[r]=!0)}return _a.isArray(t)?t.forEach(r):r(t),this}}),es.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),_a.freezeMethods(es.prototype),_a.freezeMethods(es);const ns=es;function rs(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),u=r[a];i||(i=c),n[o]=s,r[o]=c;let l=a,f=0;for(;l!==o;)f+=n[l++],l%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),c-i<e)return;const h=u&&c-u;return h?Math.round(1e3*f/h):void 0}}(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,c=r(s);n=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0};u[e?"download":"upload"]=!0,t(u)}}function is(t){return new Promise((function(e,n){let r=t.data;const i=ns.from(t.headers).normalize(),o=t.responseType;let a;function s(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}_a.isFormData(r)&&za.isStandardBrowserEnv&&i.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const u=qa(t.baseURL,t.url);function l(){if(!c)return;const r=ns.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new Ma("Request failed with status code "+n.status,[Ma.ERR_BAD_REQUEST,Ma.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),s()}),(function(t){n(t),s()}),{data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),Da(u,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new Ma("Request aborted",Ma.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new Ma("Network Error",Ma.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||Ia;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new Ma(e,r.clarifyTimeoutError?Ma.ETIMEDOUT:Ma.ECONNABORTED,t,c)),c=null},za.isStandardBrowserEnv){const e=(t.withCredentials||Ha(u))&&t.xsrfCookieName&&Va.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===r&&i.setContentType(null),"setRequestHeader"in c&&_a.forEach(i.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),_a.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),o&&"json"!==o&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",rs(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",rs(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{c&&(n(!e||e.type?new Wa(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(u);f&&-1===za.protocols.indexOf(f)?n(new Ma("Unsupported protocol "+f+":",Ma.ERR_BAD_REQUEST,t)):c.send(r||null)}))}const os={http:is,xhr:is},as=t=>{if(_a.isString(t)){const e=os[t];if(!t)throw Error(_a.hasOwnProp(t)?`Adapter '${t}' is not available in the build`:`Can not resolve adapter '${t}'`);return e}if(!_a.isFunction(t))throw new TypeError("adapter is not a function");return t},ss={"Content-Type":"application/x-www-form-urlencoded"},cs={transitional:Ia,adapter:function(){let t;return"undefined"!=typeof XMLHttpRequest?t=as("xhr"):"undefined"!=typeof process&&"process"===_a.kindOf(process)&&(t=as("http")),t}(),transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=_a.isObject(t);if(i&&_a.isHTMLForm(t)&&(t=new FormData(t)),_a.isFormData(t))return r&&r?JSON.stringify(Ba(t)):t;if(_a.isArrayBuffer(t)||_a.isBuffer(t)||_a.isStream(t)||_a.isFile(t)||_a.isBlob(t))return t;if(_a.isArrayBufferView(t))return t.buffer;if(_a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Oa(t,new za.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return za.isNode&&_a.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=_a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Oa(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(_a.isString(t))try{return(0,JSON.parse)(t),_a.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||cs.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&_a.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw Ma.from(t,Ma.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:za.classes.FormData,Blob:za.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_a.forEach(["delete","get","head"],(function(t){cs.headers[t]={}})),_a.forEach(["post","put","patch"],(function(t){cs.headers[t]=_a.merge(ss)}));const us=cs;function ls(t,e){const n=this||us,r=e||n,i=ns.from(r.headers);let o=r.data;return _a.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function fs(t){return!(!t||!t.__CANCEL__)}function hs(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Wa}function ds(t){return hs(t),t.headers=ns.from(t.headers),t.data=ls.call(t,t.transformRequest),(t.adapter||us.adapter)(t).then((function(e){return hs(t),e.data=ls.call(t,t.transformResponse,e),e.headers=ns.from(e.headers),e}),(function(e){return fs(e)||(hs(t),e&&e.response&&(e.response.data=ls.call(t,t.transformResponse,e.response),e.response.headers=ns.from(e.response.headers))),Promise.reject(e)}))}function ps(t,e){e=e||{};const n={};function r(t,e){return _a.isPlainObject(t)&&_a.isPlainObject(e)?_a.merge(t,e):_a.isPlainObject(e)?_a.merge({},e):_a.isArray(e)?e.slice():e}function i(n){return _a.isUndefined(e[n])?_a.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function o(t){if(!_a.isUndefined(e[t]))return r(void 0,e[t])}function a(n){return _a.isUndefined(e[n])?_a.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function s(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return _a.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){const e=c[t]||i,r=e(t);_a.isUndefined(r)&&e!==s||(n[t]=r)})),n}const gs={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{gs[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const vs={};gs.transitional=function(t,e,n){function r(t,e){return"[Axios v1.1.3] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new Ma(r(i," has been removed"+(e?" in "+e:"")),Ma.ERR_DEPRECATED);return e&&!vs[i]&&(vs[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};const ys={assertOptions:function(t,e,n){if("object"!=typeof t)throw new Ma("options must be an object",Ma.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const e=t[o],n=void 0===e||a(e,o,t);if(!0!==n)throw new Ma("option "+o+" must be "+n,Ma.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ma("Unknown option "+o,Ma.ERR_BAD_OPTION)}},validators:gs},ms=ys.validators;class _s{constructor(t){this.defaults=t,this.interceptors={request:new Fa,response:new Fa}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=ps(this.defaults,e);const{transitional:n,paramsSerializer:r}=e;void 0!==n&&ys.assertOptions(n,{silentJSONParsing:ms.transitional(ms.boolean),forcedJSONParsing:ms.transitional(ms.boolean),clarifyTimeoutError:ms.transitional(ms.boolean)},!1),void 0!==r&&ys.assertOptions(r,{encode:ms.function,serialize:ms.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();const i=e.headers&&_a.merge(e.headers.common,e.headers[e.method]);i&&_a.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),e.headers=new ns(e.headers,i);const o=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const s=[];let c;this.interceptors.response.forEach((function(t){s.push(t.fulfilled,t.rejected)}));let u,l=0;if(!a){const t=[ds.bind(this),void 0];for(t.unshift.apply(t,o),t.push.apply(t,s),u=t.length,c=Promise.resolve(e);l<u;)c=c.then(t[l++],t[l++]);return c}u=o.length;let f=e;for(l=0;l<u;){const t=o[l++],e=o[l++];try{f=t(f)}catch(t){e.call(this,t);break}}try{c=ds.call(this,f)}catch(t){return Promise.reject(t)}for(l=0,u=s.length;l<u;)c=c.then(s[l++],s[l++]);return c}getUri(t){return Da(qa((t=ps(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}_a.forEach(["delete","get","head","options"],(function(t){_s.prototype[t]=function(e,n){return this.request(ps(n||{},{method:t,url:e,data:(n||{}).data}))}})),_a.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(ps(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}_s.prototype[t]=e(),_s.prototype[t+"Form"]=e(!0)}));const bs=_s;class xs{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new Wa(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new xs((function(e){t=e})),cancel:t}}}const ws=xs,Ms=function t(e){const n=new bs(e),r=Yo(bs.prototype.request,n);return _a.extend(r,bs.prototype,n,{allOwnKeys:!0}),_a.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(ps(e,n))},r}(us);Ms.Axios=bs,Ms.CanceledError=Wa,Ms.CancelToken=ws,Ms.isCancel=fs,Ms.VERSION="1.1.3",Ms.toFormData=Oa,Ms.AxiosError=Ma,Ms.Cancel=Ms.CanceledError,Ms.all=function(t){return Promise.all(t)},Ms.spread=function(t){return function(e){return t.apply(null,e)}},Ms.isAxiosError=function(t){return _a.isObject(t)&&!0===t.isAxiosError},Ms.formToJSON=t=>Ba(_a.isHTMLForm(t)?new FormData(t):t);const Es=Ms,{Axios:Ss,AxiosError:As,CanceledError:Ts,isCancel:ks,CancelToken:Os,VERSION:Cs,all:Ns,Cancel:Ps,isAxiosError:Rs,spread:js,toFormData:Ds}=Es,Fs=Es;var Is=n(996),Ls=n.n(Is);function $s(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Us(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function zs(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=$s,n=(e,n)=>$s(t(e),n),r=(e,n)=>t(e)-n):(e=t===$s||t===Us?t:Bs,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function Bs(){return 0}function Vs(t){return null===t?NaN:+t}function*qs(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}const Hs=zs($s),Ys=Hs.right,Ws=Hs.left,Zs=zs(Vs).center,Gs=Ys;function Xs(t,e){if(!((e=+e)>=0))throw new RangeError("invalid r");let n=t.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!e)return t;const r=nc(e),i=t.slice();return r(t,i,0,n,1),r(i,t,0,n,1),r(t,i,0,n,1),t}const Js=Qs(nc),Ks=Qs((function(t){const e=nc(t);return(t,n,r,i,o)=>{e(t,n,0+(r<<=2),0+(i<<=2),o<<=2),e(t,n,r+1,i+1,o),e(t,n,r+2,i+2,o),e(t,n,r+3,i+3,o)}}));function Qs(t){return function(e,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:a}=e;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!n&&!r)return e;const s=n&&t(n),c=r&&t(r),u=i.slice();return s&&c?(tc(s,u,i,o,a),tc(s,i,u,o,a),tc(s,u,i,o,a),ec(c,i,u,o,a),ec(c,u,i,o,a),ec(c,i,u,o,a)):s?(tc(s,i,u,o,a),tc(s,u,i,o,a),tc(s,i,u,o,a)):c&&(ec(c,i,u,o,a),ec(c,u,i,o,a),ec(c,i,u,o,a)),e}}function tc(t,e,n,r,i){for(let o=0,a=r*i;o<a;)t(e,n,o,o+=r,1)}function ec(t,e,n,r,i){for(let o=0,a=r*i;o<r;++o)t(e,n,o,o+a,r)}function nc(t){const e=Math.floor(t);if(e===t)return function(t){const e=2*t+1;return(n,r,i,o,a)=>{if(!((o-=a)>=i))return;let s=t*r[i];const c=a*t;for(let t=i,e=i+c;t<e;t+=a)s+=r[Math.min(o,t)];for(let t=i,u=o;t<=u;t+=a)s+=r[Math.min(o,t+c)],n[t]=s/e,s-=r[Math.max(i,t-c)]}}(t);const n=t-e,r=2*t+1;return(t,i,o,a,s)=>{if(!((a-=s)>=o))return;let c=e*i[o];const u=s*e,l=u+s;for(let t=o,e=o+u;t<e;t+=s)c+=i[Math.min(a,t)];for(let e=o,f=a;e<=f;e+=s)c+=i[Math.min(a,e+u)],t[e]=(c+n*(i[Math.max(o,e-l)]+i[Math.min(a,e+l)]))/r,c-=i[Math.max(o,e-u)]}}function rc(t,e){let n=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}function ic(t){return 0|t.length}function oc(t){return!(t>0)}function ac(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function sc(...t){const e="function"==typeof t[t.length-1]&&function(t){return e=>t(...e)}(t.pop()),n=(t=t.map(ac)).map(ic),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||n.some(oc))return o;for(;;){o.push(i.map(((e,n)=>t[n][e])));let a=r;for(;++i[a]===n[a];){if(0===a)return e?o.map(e):o;i[a--]=0}}}function cc(t,e){var n=0,r=0;return Float64Array.from(t,void 0===e?t=>n+=+t||0:i=>n+=+e(i,r++,t)||0)}function uc(t,e){let n,r=0,i=0,o=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-i,i+=n/++r,o+=n*(e-i));else{let a=-1;for(let s of t)null!=(s=e(s,++a,t))&&(s=+s)>=s&&(n=s-i,i+=n/++r,o+=n*(s-i))}if(r>1)return o/(r-1)}function lc(t,e){const n=uc(t,e);return n?Math.sqrt(n):n}function fc(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class hc{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=e[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(e=o,n=t[--i],o=e+n,r=n-(o-e),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(n=2*r,e=o+n,n==e-o&&(o=e))}return o}}function dc(t,e){const n=new hc;if(void 0===e)for(let e of t)(e=+e)&&n.add(e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&n.add(i)}return+n}function pc(t,e){const n=new hc;let r=-1;return Float64Array.from(t,void 0===e?t=>n.add(+t||0):i=>n.add(+e(i,++r,t)||0))}class gc extends Map{constructor(t,e=bc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(yc(this,t))}has(t){return super.has(yc(this,t))}set(t,e){return super.set(mc(this,t),e)}delete(t){return super.delete(_c(this,t))}}class vc extends Set{constructor(t,e=bc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(yc(this,t))}add(t){return super.add(mc(this,t))}delete(t){return super.delete(_c(this,t))}}function yc({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function mc({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function _c({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function bc(t){return null!==t&&"object"==typeof t?t.valueOf():t}function xc(t){return t}function wc(t,...e){return Pc(t,xc,xc,e)}function Mc(t,...e){return Pc(t,Array.from,xc,e)}function Ec(t,e){for(let n=1,r=e.length;n<r;++n)t=t.flatMap((t=>t.pop().map((([e,n])=>[...t,e,n]))));return t}function Sc(t,...e){return Ec(Mc(t,...e),e)}function Ac(t,e,...n){return Ec(kc(t,e,...n),n)}function Tc(t,e,...n){return Pc(t,xc,e,n)}function kc(t,e,...n){return Pc(t,Array.from,e,n)}function Oc(t,...e){return Pc(t,xc,Nc,e)}function Cc(t,...e){return Pc(t,Array.from,Nc,e)}function Nc(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function Pc(t,e,n,r){return function t(i,o){if(o>=r.length)return n(i);const a=new gc,s=r[o++];let c=-1;for(const t of i){const e=s(t,++c,i),n=a.get(e);n?n.push(t):a.set(e,[t])}for(const[e,n]of a)a.set(e,t(n,o));return e(a)}(t,0)}function Rc(t,e){return Array.from(e,(e=>t[e]))}function jc(t,...e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&2!==n.length||e.length>1){const r=Uint32Array.from(t,((t,e)=>e));return e.length>1?(e=e.map((e=>t.map(e))),r.sort(((t,n)=>{for(const r of e){const e=Fc(r[t],r[n]);if(e)return e}}))):(n=t.map(n),r.sort(((t,e)=>Fc(n[t],n[e])))),Rc(t,r)}return t.sort(Dc(n))}function Dc(t=$s){if(t===$s)return Fc;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}function Fc(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function Ic(t,e,n){return(2!==e.length?jc(Tc(t,e,n),(([t,e],[n,r])=>$s(e,r)||$s(t,n))):jc(wc(t,n),(([t,n],[r,i])=>e(n,i)||$s(t,r)))).map((([t])=>t))}var Lc=Array.prototype,$c=Lc.slice;function Uc(t){return()=>t}Lc.map;var zc=Math.sqrt(50),Bc=Math.sqrt(10),Vc=Math.sqrt(2);function qc(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=Hc(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);for(n*a<t&&++n,r*a>e&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);for(n/a<t&&++n,r/a>e&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}function Hc(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=zc?10:o>=Bc?5:o>=Vc?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=zc?10:o>=Bc?5:o>=Vc?2:1)}function Yc(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=zc?i*=10:o>=Bc?i*=5:o>=Vc&&(i*=2),e<t?-i:i}function Wc(t,e,n){let r;for(;;){const i=Hc(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function Zc(t){return Math.ceil(Math.log(rc(t))/Math.LN2)+1}function Gc(){var t=xc,e=fc,n=Zc;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,s=r.length,c=new Array(s);for(i=0;i<s;++i)c[i]=t(r[i],i,r);var u=e(c),l=u[0],f=u[1],h=n(c,l,f);if(!Array.isArray(h)){const t=f,n=+h;if(e===fc&&([l,f]=Wc(l,f,n)),(h=qc(l,f,n))[0]<=l&&(a=Hc(l,f,n)),h[h.length-1]>=f)if(t>=f&&e===fc){const t=Hc(l,f,n);isFinite(t)&&(t>0?f=(Math.floor(f/t)+1)*t:t<0&&(f=(Math.ceil(f*-t)+1)/-t))}else h.pop()}for(var d=h.length;h[0]<=l;)h.shift(),--d;for(;h[d-1]>f;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:l,p.x1=i<d?h[i]:f;if(isFinite(a)){if(a>0)for(i=0;i<s;++i)null!=(o=c[i])&&l<=o&&o<=f&&g[Math.min(d,Math.floor((o-l)/a))].push(r[i]);else if(a<0)for(i=0;i<s;++i)if(null!=(o=c[i])&&l<=o&&o<=f){const t=Math.floor((l-o)*a);g[Math.min(d,t+(h[t]<=o))].push(r[i])}}else for(i=0;i<s;++i)null!=(o=c[i])&&l<=o&&o<=f&&g[Gs(h,o,0,d)].push(r[i]);return g}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:Uc(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:Uc([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Uc($c.call(t)):Uc(t),r):n},r}function Xc(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Jc(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n<e||void 0===n&&e>=e)&&(n=e,r=i);else for(let o of t)null!=(o=e(o,++i,t))&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);return r}function Kc(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function Qc(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,r=i);else for(let o of t)null!=(o=e(o,++i,t))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}function tu(t,e,n=0,r=t.length-1,i){for(i=void 0===i?Fc:Dc(i);r>n;){if(r-n>600){const o=r-n+1,a=e-n+1,s=Math.log(o),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(o-c)/o)*(a-o/2<0?-1:1);tu(t,e,Math.max(n,Math.floor(e-a*c/o+u)),Math.min(r,Math.floor(e+(o-a)*c/o+u)),i)}const o=t[e];let a=n,s=r;for(eu(t,n,e),i(t[r],o)>0&&eu(t,n,r);a<s;){for(eu(t,a,s),++a,--s;i(t[a],o)<0;)++a;for(;i(t[s],o)>0;)--s}0===i(t[n],o)?eu(t,n,s):(++s,eu(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function eu(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function nu(t,e=$s){let n,r=!1;if(1===e.length){let i;for(const o of t){const t=e(o);(r?$s(t,i)>0:0===$s(t,t))&&(n=o,i=t,r=!0)}}else for(const i of t)(r?e(i,n)>0:0===e(i,i))&&(n=i,r=!0);return n}function ru(t,e,n){if(r=(t=Float64Array.from(qs(t,n))).length){if((e=+e)<=0||r<2)return Kc(t);if(e>=1)return Xc(t);var r,i=(r-1)*e,o=Math.floor(i),a=Xc(tu(t,o).subarray(0,o+1));return a+(Kc(t.subarray(o+1))-a)*(i-o)}}function iu(t,e,n=Vs){if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function ou(t,e,n){if(r=(t=Float64Array.from(qs(t,n))).length){if((e=+e)<=0||r<2)return Qc(t);if(e>=1)return Jc(t);var r,i=Math.floor((r-1)*e),o=tu(Uint32Array.from(t,((t,e)=>e)),i,0,r-1,((e,n)=>Fc(t[e],t[n])));return nu(o.subarray(0,i+1),(e=>t[e]))}}function au(t,e,n){return Math.ceil((n-e)/(2*(ru(t,.75)-ru(t,.25))*Math.pow(rc(t),-1/3)))}function su(t,e,n){return Math.ceil((n-e)*Math.cbrt(rc(t))/(3.49*lc(t)))}function cu(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,r+=e);else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function uu(t,e){return ru(t,.5,e)}function lu(t,e){return ou(t,.5,e)}function fu(t){return Array.from(function*(t){for(const e of t)yield*e}(t))}function hu(t,e){const n=new gc;if(void 0===e)for(let e of t)null!=e&&e>=e&&n.set(e,(n.get(e)||0)+1);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&i>=i&&n.set(i,(n.get(i)||0)+1)}let r,i=0;for(const[t,e]of n)e>i&&(i=e,r=t);return r}function du(t,e=pu){const n=[];let r,i=!1;for(const o of t)i&&n.push(e(r,o)),r=o,i=!0;return n}function pu(t,e){return[t,e]}function gu(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}function vu(t,e=$s){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");let n=Array.from(t);const r=new Float64Array(n.length);2!==e.length&&(n=n.map(e),e=$s);const i=(t,r)=>e(n[t],n[r]);let o,a;return Uint32Array.from(n,((t,e)=>e)).sort(e===$s?(t,e)=>Fc(n[t],n[e]):Dc(i)).forEach(((t,e)=>{const n=i(t,void 0===o?t:o);n>=0?((void 0===o||n>0)&&(o=t,a=e),r[t]=a):r[t]=NaN})),r}function yu(t,e=$s){let n,r=!1;if(1===e.length){let i;for(const o of t){const t=e(o);(r?$s(t,i)<0:0===$s(t,t))&&(n=o,i=t,r=!0)}}else for(const i of t)(r?e(i,n)<0:0===e(i,i))&&(n=i,r=!0);return n}function mu(t,e=$s){if(1===e.length)return Qc(t,e);let n,r=-1,i=-1;for(const o of t)++i,(r<0?0===e(o,o):e(o,n)<0)&&(n=o,r=i);return r}function _u(t,e=$s){if(1===e.length)return Jc(t,e);let n,r=-1,i=-1;for(const o of t)++i,(r<0?0===e(o,o):e(o,n)>0)&&(n=o,r=i);return r}function bu(t,e){const n=mu(t,e);return n<0?void 0:n}const xu=wu(Math.random);function wu(t){return function(e,n=0,r=e.length){let i=r-(n=+n);for(;i;){const r=t()*i--|0,o=e[i+n];e[i+n]=e[r+n],e[r+n]=o}return e}}function Mu(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Eu(t){if(!(i=t.length))return[];for(var e=-1,n=Kc(t,Su),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r}function Su(t){return t.length}function Au(){return Eu(arguments)}function Tu(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(!e(r,++n,t))return!1;return!0}function ku(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(e(r,++n,t))return!0;return!1}function Ou(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of t)e(i,++r,t)&&n.push(i);return n}function Cu(t,e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof e)throw new TypeError("mapper is not a function");return Array.from(t,((n,r)=>e(n,r,t)))}function Nu(t,e,n){if("function"!=typeof e)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)n=e(n,o,++a,t);return n}function Pu(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Ru(t,...e){t=new vc(t);for(const n of e)for(const e of n)t.delete(e);return t}function ju(t,e){const n=e[Symbol.iterator](),r=new vc;for(const e of t){if(r.has(e))return!1;let t,i;for(;({value:t,done:i}=n.next())&&!i;){if(Object.is(e,t))return!1;r.add(t)}}return!0}function Du(t,...e){t=new vc(t),e=e.map(Fu);t:for(const n of t)for(const r of e)if(!r.has(n)){t.delete(n);continue t}return t}function Fu(t){return t instanceof vc?t:new vc(t)}function Iu(t,e){const n=t[Symbol.iterator](),r=new Set;for(const t of e){const e=Lu(t);if(r.has(e))continue;let i,o;for(;({value:i,done:o}=n.next());){if(o)return!1;const t=Lu(i);if(r.add(t),Object.is(e,t))break}}return!0}function Lu(t){return null!==t&&"object"==typeof t?t.valueOf():t}function $u(t,e){return Iu(e,t)}function Uu(...t){const e=new vc;for(const n of t)for(const t of n)e.add(t);return e}function zu(t){return t}var Bu=1e-6;function Vu(t){return"translate("+t+",0)"}function qu(t){return"translate(0,"+t+")"}function Hu(t){return e=>+t(e)}function Yu(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Wu(){return!this.__axis}function Zu(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,u=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",f=1===t||3===t?Vu:qu;function h(h){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):zu:i,g=Math.max(o,0)+s,v=e.range(),y=+v[0]+c,m=+v[v.length-1]+c,_=(e.bandwidth?Yu:Hu)(e.copy(),c),b=h.selection?h.selection():h,x=b.selectAll(".domain").data([null]),w=b.selectAll(".tick").data(d,e).order(),M=w.exit(),E=w.enter().append("g").attr("class","tick"),S=w.select("line"),A=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(E),S=S.merge(E.append("line").attr("stroke","currentColor").attr(l+"2",u*o)),A=A.merge(E.append("text").attr("fill","currentColor").attr(l,u*g).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==b&&(x=x.transition(h),w=w.transition(h),S=S.transition(h),A=A.transition(h),M=M.transition(h).attr("opacity",Bu).attr("transform",(function(t){return isFinite(t=_(t))?f(t+c):this.getAttribute("transform")})),E.attr("opacity",Bu).attr("transform",(function(t){var e=this.parentNode.__axis;return f((e&&isFinite(e=e(t))?e:_(t))+c)}))),M.remove(),x.attr("d",4===t||2===t?a?"M"+u*a+","+y+"H"+c+"V"+m+"H"+u*a:"M"+c+","+y+"V"+m:a?"M"+y+","+u*a+"V"+c+"H"+m+"V"+u*a:"M"+y+","+c+"H"+m),w.attr("opacity",1).attr("transform",(function(t){return f(_(t)+c)})),S.attr(l+"2",u*o),A.attr(l,u*g).text(p),b.filter(Wu).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),b.each((function(){this.__axis=_}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h.offset=function(t){return arguments.length?(c=+t,h):c},h}function Gu(t){return Zu(1,t)}function Xu(t){return Zu(2,t)}function Ju(t){return Zu(3,t)}function Ku(t){return Zu(4,t)}var Qu={value:()=>{}};function tl(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new el(r)}function el(t){this._=t}function nl(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function rl(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function il(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Qu,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}el.prototype=tl.prototype={constructor:el,on:function(t,e){var n,r=this._,i=nl(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(n=(t=i[o]).type)r[n]=il(r[n],t.name,e);else if(null==e)for(n in r)r[n]=il(r[n],t.name,null);return this}for(;++o<a;)if((n=(t=i[o]).type)&&(n=rl(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new el(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};const ol=tl;function al(){}function sl(t){return null==t?al:function(){return this.querySelector(t)}}function cl(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function ul(){return[]}function ll(t){return null==t?ul:function(){return this.querySelectorAll(t)}}function fl(t){return function(){return this.matches(t)}}function hl(t){return function(e){return e.matches(t)}}var dl=Array.prototype.find;function pl(){return this.firstElementChild}var gl=Array.prototype.filter;function vl(){return Array.from(this.children)}function yl(t){return new Array(t.length)}function ml(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function _l(t){return function(){return t}}function bl(t,e,n,r,i,o){for(var a,s=0,c=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new ml(t,o[s]);for(;s<c;++s)(a=e[s])&&(i[s]=a)}function xl(t,e,n,r,i,o,a){var s,c,u,l=new Map,f=e.length,h=o.length,d=new Array(f);for(s=0;s<f;++s)(c=e[s])&&(d[s]=u=a.call(c,c.__data__,s,e)+"",l.has(u)?i[s]=c:l.set(u,c));for(s=0;s<h;++s)u=a.call(t,o[s],s,o)+"",(c=l.get(u))?(r[s]=c,c.__data__=o[s],l.delete(u)):n[s]=new ml(t,o[s]);for(s=0;s<f;++s)(c=e[s])&&l.get(d[s])===c&&(i[s]=c)}function wl(t){return t.__data__}function Ml(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function El(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}ml.prototype={constructor:ml,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Sl="http://www.w3.org/1999/xhtml";const Al={svg:"http://www.w3.org/2000/svg",xhtml:Sl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Tl(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Al.hasOwnProperty(e)?{space:Al[e],local:t}:t}function kl(t){return function(){this.removeAttribute(t)}}function Ol(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Cl(t,e){return function(){this.setAttribute(t,e)}}function Nl(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Pl(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Rl(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function jl(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Dl(t){return function(){this.style.removeProperty(t)}}function Fl(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Il(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ll(t,e){return t.style.getPropertyValue(e)||jl(t).getComputedStyle(t,null).getPropertyValue(e)}function $l(t){return function(){delete this[t]}}function Ul(t,e){return function(){this[t]=e}}function zl(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Bl(t){return t.trim().split(/^|\s+/)}function Vl(t){return t.classList||new ql(t)}function ql(t){this._node=t,this._names=Bl(t.getAttribute("class")||"")}function Hl(t,e){for(var n=Vl(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Yl(t,e){for(var n=Vl(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Wl(t){return function(){Hl(this,t)}}function Zl(t){return function(){Yl(this,t)}}function Gl(t,e){return function(){(e.apply(this,arguments)?Hl:Yl)(this,t)}}function Xl(){this.textContent=""}function Jl(t){return function(){this.textContent=t}}function Kl(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Ql(){this.innerHTML=""}function tf(t){return function(){this.innerHTML=t}}function ef(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function nf(){this.nextSibling&&this.parentNode.appendChild(this)}function rf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function of(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Sl&&e.documentElement.namespaceURI===Sl?e.createElement(t):e.createElementNS(n,t)}}function af(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function sf(t){var e=Tl(t);return(e.local?af:of)(e)}function cf(){return null}function uf(){var t=this.parentNode;t&&t.removeChild(this)}function lf(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ff(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function hf(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function df(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function pf(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function gf(t,e,n){var r=jl(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function vf(t,e){return function(){return gf(this,t,e)}}function yf(t,e){return function(){return gf(this,t,e.apply(this,arguments))}}ql.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var mf=[null];function _f(t,e){this._groups=t,this._parents=e}function bf(){return new _f([[document.documentElement]],mf)}_f.prototype=bf.prototype={constructor:_f,select:function(t){"function"!=typeof t&&(t=sl(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],c=s.length,u=r[i]=new Array(c),l=0;l<c;++l)(o=s[l])&&(a=t.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),u[l]=a);return new _f(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return cl(t.apply(this,arguments))}}(t):ll(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],c=s.length,u=0;u<c;++u)(a=s[u])&&(r.push(t.call(a,a.__data__,u,s)),i.push(a));return new _f(r,i)},selectChild:function(t){return this.select(null==t?pl:function(t){return function(){return dl.call(this.children,t)}}("function"==typeof t?t:hl(t)))},selectChildren:function(t){return this.selectAll(null==t?vl:function(t){return function(){return gl.call(this.children,t)}}("function"==typeof t?t:hl(t)))},filter:function(t){"function"!=typeof t&&(t=fl(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,c=r[i]=[],u=0;u<s;++u)(o=a[u])&&t.call(o,o.__data__,u,a)&&c.push(o);return new _f(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,wl);var n=e?xl:bl,r=this._parents,i=this._groups;"function"!=typeof t&&(t=_l(t));for(var o=i.length,a=new Array(o),s=new Array(o),c=new Array(o),u=0;u<o;++u){var l=r[u],f=i[u],h=f.length,d=Ml(t.call(l,l&&l.__data__,u,r)),p=d.length,g=s[u]=new Array(p),v=a[u]=new Array(p),y=c[u]=new Array(h);n(l,f,g,v,y,d,e);for(var m,_,b=0,x=0;b<p;++b)if(m=g[b]){for(b>=x&&(x=b+1);!(_=v[x])&&++x<p;);m._next=_||null}}return(a=new _f(a,r))._enter=s,a._exit=c,a},enter:function(){return new _f(this._enter||this._groups.map(yl),this._parents)},exit:function(){return new _f(this._exit||this._groups.map(yl),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),c=0;c<a;++c)for(var u,l=n[c],f=r[c],h=l.length,d=s[c]=new Array(h),p=0;p<h;++p)(u=l[p]||f[p])&&(d[p]=u);for(;c<i;++c)s[c]=n[c];return new _f(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=El);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],c=s.length,u=i[o]=new Array(c),l=0;l<c;++l)(a=s[l])&&(u[l]=a);u.sort(e)}return new _f(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=Tl(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Ol:kl:"function"==typeof e?n.local?Rl:Pl:n.local?Nl:Cl)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Dl:"function"==typeof e?Il:Fl)(t,e,null==n?"":n)):Ll(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?$l:"function"==typeof e?zl:Ul)(t,e)):this.node()[t]},classed:function(t,e){var n=Bl(t+"");if(arguments.length<2){for(var r=Vl(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Gl:e?Wl:Zl)(n,e))},text:function(t){return arguments.length?this.each(null==t?Xl:("function"==typeof t?Kl:Jl)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Ql:("function"==typeof t?ef:tf)(t)):this.node().innerHTML},raise:function(){return this.each(nf)},lower:function(){return this.each(rf)},append:function(t){var e="function"==typeof t?t:sf(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:sf(t),r=null==e?cf:"function"==typeof e?e:sl(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(uf)},clone:function(t){return this.select(t?ff:lf)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=hf(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?pf:df,r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var c,u=0,l=s.length;u<l;++u)for(r=0,c=s[u];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?yf:vf)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};const xf=bf;function wf(t){return"string"==typeof t?new _f([[document.querySelector(t)]],[document.documentElement]):new _f([[t]],mf)}const Mf={passive:!1},Ef={capture:!0,passive:!1};function Sf(t){t.stopImmediatePropagation()}function Af(t){t.preventDefault(),t.stopImmediatePropagation()}function Tf(t){var e=t.document.documentElement,n=wf(t).on("dragstart.drag",Af,Ef);"onselectstart"in e?n.on("selectstart.drag",Af,Ef):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function kf(t,e){var n=t.document.documentElement,r=wf(t).on("dragstart.drag",null);e&&(r.on("click.drag",Af,Ef),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Of(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Cf(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Nf(){}var Pf=.7,Rf=1/Pf,jf="\\s*([+-]?\\d+)\\s*",Df="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ff="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",If=/^#([0-9a-f]{3,8})$/,Lf=new RegExp(`^rgb\\(${jf},${jf},${jf}\\)$`),$f=new RegExp(`^rgb\\(${Ff},${Ff},${Ff}\\)$`),Uf=new RegExp(`^rgba\\(${jf},${jf},${jf},${Df}\\)$`),zf=new RegExp(`^rgba\\(${Ff},${Ff},${Ff},${Df}\\)$`),Bf=new RegExp(`^hsl\\(${Df},${Ff},${Ff}\\)$`),Vf=new RegExp(`^hsla\\(${Df},${Ff},${Ff},${Df}\\)$`),qf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Hf(){return this.rgb().formatHex()}function Yf(){return this.rgb().formatRgb()}function Wf(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=If.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Zf(e):3===n?new Kf(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Gf(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Gf(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Lf.exec(t))?new Kf(e[1],e[2],e[3],1):(e=$f.exec(t))?new Kf(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Uf.exec(t))?Gf(e[1],e[2],e[3],e[4]):(e=zf.exec(t))?Gf(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Bf.exec(t))?ih(e[1],e[2]/100,e[3]/100,1):(e=Vf.exec(t))?ih(e[1],e[2]/100,e[3]/100,e[4]):qf.hasOwnProperty(t)?Zf(qf[t]):"transparent"===t?new Kf(NaN,NaN,NaN,0):null}function Zf(t){return new Kf(t>>16&255,t>>8&255,255&t,1)}function Gf(t,e,n,r){return r<=0&&(t=e=n=NaN),new Kf(t,e,n,r)}function Xf(t){return t instanceof Nf||(t=Wf(t)),t?new Kf((t=t.rgb()).r,t.g,t.b,t.opacity):new Kf}function Jf(t,e,n,r){return 1===arguments.length?Xf(t):new Kf(t,e,n,null==r?1:r)}function Kf(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Qf(){return`#${rh(this.r)}${rh(this.g)}${rh(this.b)}`}function th(){const t=eh(this.opacity);return`${1===t?"rgb(":"rgba("}${nh(this.r)}, ${nh(this.g)}, ${nh(this.b)}${1===t?")":`, ${t})`}`}function eh(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function nh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function rh(t){return((t=nh(t))<16?"0":"")+t.toString(16)}function ih(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new sh(t,e,n,r)}function oh(t){if(t instanceof sh)return new sh(t.h,t.s,t.l,t.opacity);if(t instanceof Nf||(t=Wf(t)),!t)return new sh;if(t instanceof sh)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new sh(a,s,c,t.opacity)}function ah(t,e,n,r){return 1===arguments.length?oh(t):new sh(t,e,n,null==r?1:r)}function sh(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ch(t){return(t=(t||0)%360)<0?t+360:t}function uh(t){return Math.max(0,Math.min(1,t||0))}function lh(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function fh(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function hh(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return fh((n-r/e)*e,a,i,o,s)}}function dh(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return fh((n-r/e)*e,i,o,a,s)}}Of(Nf,Wf,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Hf,formatHex:Hf,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return oh(this).formatHsl()},formatRgb:Yf,toString:Yf}),Of(Kf,Jf,Cf(Nf,{brighter(t){return t=null==t?Rf:Math.pow(Rf,t),new Kf(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Pf:Math.pow(Pf,t),new Kf(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Kf(nh(this.r),nh(this.g),nh(this.b),eh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Qf,formatHex:Qf,formatHex8:function(){return`#${rh(this.r)}${rh(this.g)}${rh(this.b)}${rh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:th,toString:th})),Of(sh,ah,Cf(Nf,{brighter(t){return t=null==t?Rf:Math.pow(Rf,t),new sh(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Pf:Math.pow(Pf,t),new sh(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Kf(lh(t>=240?t-240:t+120,i,r),lh(t,i,r),lh(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new sh(ch(this.h),uh(this.s),uh(this.l),eh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=eh(this.opacity);return`${1===t?"hsl(":"hsla("}${ch(this.h)}, ${100*uh(this.s)}%, ${100*uh(this.l)}%${1===t?")":`, ${t})`}`}}));const ph=t=>()=>t;function gh(t,e){return function(n){return t+n*e}}function vh(t,e){var n=e-t;return n?gh(t,n>180||n<-180?n-360*Math.round(n/360):n):ph(isNaN(t)?e:t)}function yh(t,e){var n=e-t;return n?gh(t,n):ph(isNaN(t)?e:t)}const mh=function t(e){var n=function(t){return 1==(t=+t)?yh:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):ph(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Jf(t)).r,(e=Jf(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=yh(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function _h(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Jf(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}var bh=_h(hh),xh=_h(dh);function wh(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Mh(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Eh(t,e){return(Mh(e)?wh:Sh)(t,e)}function Sh(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Ph(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Ah(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Th(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function kh(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Ph(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Oh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ch=new RegExp(Oh.source,"g");function Nh(t,e){var n,r,i,o=Oh.lastIndex=Ch.lastIndex=0,a=-1,s=[],c=[];for(t+="",e+="";(n=Oh.exec(t))&&(r=Ch.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:Th(n,r)})),o=Ch.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function Ph(t,e){var n,r=typeof e;return null==e||"boolean"===r?ph(e):("number"===r?Th:"string"===r?(n=Wf(e))?(e=n,mh):Nh:e instanceof Wf?mh:e instanceof Date?Ah:Mh(e)?wh:Array.isArray(e)?Sh:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?kh:Th)(t,e)}function Rh(t){let e;for(;e=t.sourceEvent;)t=e;return t}function jh(t,e){if(t=Rh(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Dh,Fh,Ih=0,Lh=0,$h=0,Uh=0,zh=0,Bh=0,Vh="object"==typeof performance&&performance.now?performance:Date,qh="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Hh(){return zh||(qh(Yh),zh=Vh.now()+Bh)}function Yh(){zh=0}function Wh(){this._call=this._time=this._next=null}function Zh(t,e,n){var r=new Wh;return r.restart(t,e,n),r}function Gh(){Hh(),++Ih;for(var t,e=Dh;e;)(t=zh-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ih}function Xh(){zh=(Uh=Vh.now())+Bh,Ih=Lh=0;try{Gh()}finally{Ih=0,function(){for(var t,e,n=Dh,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Dh=e);Fh=t,Kh(r)}(),zh=0}}function Jh(){var t=Vh.now(),e=t-Uh;e>1e3&&(Bh-=e,Uh=t)}function Kh(t){Ih||(Lh&&(Lh=clearTimeout(Lh)),t-zh>24?(t<1/0&&(Lh=setTimeout(Xh,t-Vh.now()-Bh)),$h&&($h=clearInterval($h))):($h||(Uh=Vh.now(),$h=setInterval(Jh,1e3)),Ih=1,qh(Xh)))}function Qh(t,e,n){var r=new Wh;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Wh.prototype=Zh.prototype={constructor:Wh,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Hh():+n)+(null==e?0:+e),this._next||Fh===this||(Fh?Fh._next=this:Dh=this,Fh=this),this._call=t,this._time=n,Kh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kh())}};var td=ol("start","end","cancel","interrupt"),ed=[];function nd(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(c){var u,l,f,h;if(1!==n.state)return s();for(u in i)if((h=i[u]).name===n.name){if(3===h.state)return Qh(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[u]):+u<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[u])}if(Qh((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(c))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),u=0,l=-1;u<f;++u)(h=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=h);r.length=l+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Zh((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:td,tween:ed,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function rd(t,e){var n=od(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function id(t,e){var n=od(t,e);if(n.state>3)throw new Error("too late; already running");return n}function od(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ad(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var sd,cd=180/Math.PI,ud={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ld(t,e,n,r,i,o){var a,s,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*cd,skewX:Math.atan(c)*cd,scaleX:a,scaleY:s}}function fd(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],c=[];return o=t(o),a=t(a),function(t,r,i,o,a,s){if(t!==i||r!==o){var c=a.push("translate(",null,e,null,n);s.push({i:c-4,x:Th(t,i)},{i:c-2,x:Th(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Th(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Th(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Th(t,n)},{i:s-2,x:Th(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n<r;)s[(e=c[n]).i]=e.x(t);return s.join("")}}}var hd=fd((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ud:ld(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),dd=fd((function(t){return null==t?ud:(sd||(sd=document.createElementNS("http://www.w3.org/2000/svg","g")),sd.setAttribute("transform",t),(t=sd.transform.baseVal.consolidate())?ld((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ud)}),", ",")",")");function pd(t,e){var n,r;return function(){var i=id(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function gd(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=id(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===e){i[c]=s;break}c===u&&i.push(s)}o.tween=i}}function vd(t,e,n){var r=t._id;return t.each((function(){var t=id(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return od(t,r).value[e]}}function yd(t,e){var n;return("number"==typeof e?Th:e instanceof Wf?mh:(n=Wf(e))?(e=n,mh):Nh)(t,e)}function md(t){return function(){this.removeAttribute(t)}}function _d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function bd(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function xd(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function wd(t,e,n){var r,i,o;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttribute(t))===(s=c+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,c));this.removeAttribute(t)}}function Md(t,e,n){var r,i,o;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,c));this.removeAttributeNS(t.space,t.local)}}function Ed(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Sd(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Ad(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Sd(t,i)),n}return i._value=e,i}function Td(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Ed(t,i)),n}return i._value=e,i}function kd(t,e){return function(){rd(this,t).delay=+e.apply(this,arguments)}}function Od(t,e){return e=+e,function(){rd(this,t).delay=e}}function Cd(t,e){return function(){id(this,t).duration=+e.apply(this,arguments)}}function Nd(t,e){return e=+e,function(){id(this,t).duration=e}}function Pd(t,e){if("function"!=typeof e)throw new Error;return function(){id(this,t).ease=e}}function Rd(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?rd:id;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var jd=xf.prototype.constructor;function Dd(t){return function(){this.style.removeProperty(t)}}function Fd(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Id(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Fd(t,o,n)),r}return o._value=e,o}function Ld(t){return function(e){this.textContent=t.call(this,e)}}function $d(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Ld(r)),e}return r._value=t,r}var Ud=0;function zd(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Bd(t){return xf().transition(t)}function Vd(){return++Ud}var qd=xf.prototype;function Hd(t){return t*t*t}function Yd(t){return--t*t*t+1}function Wd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}zd.prototype=Bd.prototype={constructor:zd,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=sl(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,c,u=r[a],l=u.length,f=o[a]=new Array(l),h=0;h<l;++h)(s=u[h])&&(c=t.call(s,s.__data__,h,u))&&("__data__"in s&&(c.__data__=s.__data__),f[h]=c,nd(f[h],e,n,h,f,od(s,n)));return new zd(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ll(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var c,u=r[s],l=u.length,f=0;f<l;++f)if(c=u[f]){for(var h,d=t.call(c,c.__data__,f,u),p=od(c,n),g=0,v=d.length;g<v;++g)(h=d[g])&&nd(h,e,n,g,d,p);o.push(d),a.push(c)}return new zd(o,a,e,n)},selectChild:qd.selectChild,selectChildren:qd.selectChildren,filter:function(t){"function"!=typeof t&&(t=fl(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,c=r[i]=[],u=0;u<s;++u)(o=a[u])&&t.call(o,o.__data__,u,a)&&c.push(o);return new zd(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var c,u=e[s],l=n[s],f=u.length,h=a[s]=new Array(f),d=0;d<f;++d)(c=u[d]||l[d])&&(h[d]=c);for(;s<r;++s)a[s]=e[s];return new zd(a,this._parents,this._name,this._id)},selection:function(){return new jd(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Vd(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],c=s.length,u=0;u<c;++u)if(a=s[u]){var l=od(a,e);nd(a,t,n,u,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new zd(r,this._parents,t,n)},call:qd.call,nodes:qd.nodes,node:qd.node,size:qd.size,empty:qd.empty,each:qd.each,on:function(t,e){var n=this._id;return arguments.length<2?od(this.node(),n).on.on(t):this.each(Rd(n,t,e))},attr:function(t,e){var n=Tl(t),r="transform"===n?dd:yd;return this.attrTween(t,"function"==typeof e?(n.local?Md:wd)(n,r,vd(this,"attr."+t,e)):null==e?(n.local?_d:md)(n):(n.local?xd:bd)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Tl(t);return this.tween(n,(r.local?Ad:Td)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?hd:yd;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Ll(this,t),a=(this.style.removeProperty(t),Ll(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,Dd(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=Ll(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=Ll(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s))}}(t,r,vd(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var c=id(this,t),u=c.on,l=null==c.value[a]?o||(o=Dd(e)):void 0;u===n&&i===l||(r=(n=u).copy()).on(s,i=l),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=Ll(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,Id(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(vd(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,$d(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=od(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?pd:gd)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?kd:Od)(e,t)):od(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Cd:Nd)(e,t)):od(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Pd(e,t)):od(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;id(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},c={value:function(){0==--i&&o()}};n.each((function(){var n=id(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),n.on=e})),0===i&&o()}))},[Symbol.iterator]:qd[Symbol.iterator]};var Zd={time:null,delay:0,duration:250,ease:Wd};function Gd(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}xf.prototype.interrupt=function(t){return this.each((function(){ad(this,t)}))},xf.prototype.transition=function(t){var e,n;t instanceof zd?(e=t._id,t=t._name):(e=Vd(),(n=Zd).time=Hh(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],c=s.length,u=0;u<c;++u)(a=s[u])&&nd(a,t,e,u,s,n||Gd(a,e));return new zd(r,this._parents,t,e)};var Xd=[null];function Jd(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>1&&n.name===e)return new zd([[t]],Xd,e,+r);return null}const Kd=t=>()=>t;function Qd(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function tp(t){t.stopImmediatePropagation()}function ep(t){t.preventDefault(),t.stopImmediatePropagation()}var np={name:"drag"},rp={name:"space"},ip={name:"handle"},op={name:"center"};const{abs:ap,max:sp,min:cp}=Math;function up(t){return[+t[0],+t[1]]}function lp(t){return[up(t[0]),up(t[1])]}var fp={name:"x",handles:["w","e"].map(_p),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},hp={name:"y",handles:["n","s"].map(_p),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},dp={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(_p),input:function(t){return null==t?null:lp(t)},output:function(t){return t}},pp={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},gp={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},vp={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},yp={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},mp={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function _p(t){return{type:t}}function bp(t){return!t.ctrlKey&&!t.button}function xp(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function wp(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mp(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ep(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Sp(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Ap(){return Op(fp)}function Tp(){return Op(hp)}function kp(){return Op(dp)}function Op(t){var e,n=xp,r=bp,i=wp,o=!0,a=ol("start","brush","end"),s=6;function c(e){var n=e.property("__brush",g).selectAll(".overlay").data([_p("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",pp.overlay).merge(n).each((function(){var t=Mp(this).extent;wf(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([_p("selection")]).enter().append("rect").attr("class","selection").attr("cursor",pp.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return pp[t.type]})),e.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function u(){var t=wf(this),e=Mp(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new f(t,e,n):r}function f(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function h(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,a,s,c,f,h,d,p,g,v,y,m=this,_=n.target.__data__.type,b="selection"===(o&&n.metaKey?_="overlay":_)?np:o&&n.altKey?op:ip,x=t===hp?null:yp[_],w=t===fp?null:mp[_],M=Mp(m),E=M.extent,S=M.selection,A=E[0][0],T=E[0][1],k=E[1][0],O=E[1][1],C=0,N=0,P=x&&w&&o&&n.shiftKey,R=Array.from(n.touches||[n],(t=>{const e=t.identifier;return(t=jh(t,m)).point0=t.slice(),t.identifier=e,t}));ad(m);var j=l(m,arguments,!0).beforestart();if("overlay"===_){S&&(g=!0);const e=[R[0],R[1]||R[0]];M.selection=S=[[i=t===hp?A:cp(e[0][0],e[1][0]),s=t===fp?T:cp(e[0][1],e[1][1])],[f=t===hp?k:sp(e[0][0],e[1][0]),d=t===fp?O:sp(e[0][1],e[1][1])]],R.length>1&&$(n)}else i=S[0][0],s=S[0][1],f=S[1][0],d=S[1][1];a=i,c=s,h=f,p=d;var D=wf(m).attr("pointer-events","none"),F=D.selectAll(".overlay").attr("cursor",pp[_]);if(n.touches)j.moved=L,j.ended=U;else{var I=wf(n.view).on("mousemove.brush",L,!0).on("mouseup.brush",U,!0);o&&I.on("keydown.brush",z,!0).on("keyup.brush",B,!0),Tf(n.view)}u.call(m),j.start(n,b.name)}function L(t){for(const e of t.changedTouches||[t])for(const t of R)t.identifier===e.identifier&&(t.cur=jh(e,m));if(P&&!v&&!y&&1===R.length){const t=R[0];ap(t.cur[0]-t[0])>ap(t.cur[1]-t[1])?y=!0:v=!0}for(const t of R)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);g=!0,ep(t),$(t)}function $(t){const e=R[0],n=e.point0;var r;switch(C=e[0]-n[0],N=e[1]-n[1],b){case rp:case np:x&&(C=sp(A-i,cp(k-f,C)),a=i+C,h=f+C),w&&(N=sp(T-s,cp(O-d,N)),c=s+N,p=d+N);break;case ip:R[1]?(x&&(a=sp(A,cp(k,R[0][0])),h=sp(A,cp(k,R[1][0])),x=1),w&&(c=sp(T,cp(O,R[0][1])),p=sp(T,cp(O,R[1][1])),w=1)):(x<0?(C=sp(A-i,cp(k-i,C)),a=i+C,h=f):x>0&&(C=sp(A-f,cp(k-f,C)),a=i,h=f+C),w<0?(N=sp(T-s,cp(O-s,N)),c=s+N,p=d):w>0&&(N=sp(T-d,cp(O-d,N)),c=s,p=d+N));break;case op:x&&(a=sp(A,cp(k,i-C*x)),h=sp(A,cp(k,f+C*x))),w&&(c=sp(T,cp(O,s-N*w)),p=sp(T,cp(O,d+N*w)))}h<a&&(x*=-1,r=i,i=f,f=r,r=a,a=h,h=r,_ in gp&&F.attr("cursor",pp[_=gp[_]])),p<c&&(w*=-1,r=s,s=d,d=r,r=c,c=p,p=r,_ in vp&&F.attr("cursor",pp[_=vp[_]])),M.selection&&(S=M.selection),v&&(a=S[0][0],h=S[1][0]),y&&(c=S[0][1],p=S[1][1]),S[0][0]===a&&S[0][1]===c&&S[1][0]===h&&S[1][1]===p||(M.selection=[[a,c],[h,p]],u.call(m),j.brush(t,b.name))}function U(t){if(tp(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else kf(t.view,g),I.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);D.attr("pointer-events","all"),F.attr("cursor",pp.overlay),M.selection&&(S=M.selection),Ep(S)&&(M.selection=null,u.call(m)),j.end(t,b.name)}function z(t){switch(t.keyCode){case 16:P=x&&w;break;case 18:b===ip&&(x&&(f=h-C*x,i=a+C*x),w&&(d=p-N*w,s=c+N*w),b=op,$(t));break;case 32:b!==ip&&b!==op||(x<0?f=h-C:x>0&&(i=a-C),w<0?d=p-N:w>0&&(s=c-N),b=rp,F.attr("cursor",pp.selection),$(t));break;default:return}ep(t)}function B(t){switch(t.keyCode){case 16:P&&(v=y=P=!1,$(t));break;case 18:b===op&&(x<0?f=h:x>0&&(i=a),w<0?d=p:w>0&&(s=c),b=ip,$(t));break;case 32:b===rp&&(t.altKey?(x&&(f=h-C*x,i=a+C*x),w&&(d=p-N*w,s=c+N*w),b=op):(x<0?f=h:x>0&&(i=a),w<0?d=p:w>0&&(s=c),b=ip),F.attr("cursor",pp[_]),$(t));break;default:return}ep(t)}}function d(t){l(this,arguments).moved(t)}function p(t){l(this,arguments).ended(t)}function g(){var e=this.__brush||{selection:null};return e.extent=lp(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){l(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){l(this,arguments).end(t)})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),o=r.selection,a=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Ph(o,a);function c(t){r.selection=1===t&&null===a?null:s(t),u.call(e),i.brush()}return null!==o&&null!==a?c:c(1)})):e.each((function(){var e=this,i=arguments,o=e.__brush,a=t.input("function"==typeof n?n.apply(e,i):n,o.extent),s=l(e,i).beforestart();ad(e),o.selection=null===a?null:a,u.call(e),s.start(r).brush(r).end(r)}))},c.clear=function(t,e){c.move(t,null,e)},f.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=wf(this.that).datum();a.call(e,this.that,new Qd(e,{sourceEvent:n,target:c,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},c.extent=function(t){return arguments.length?(n="function"==typeof t?t:Kd(lp(t)),c):n},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Kd(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Kd(!!t),c):i},c.handleSize=function(t){return arguments.length?(s=+t,c):s},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=a.on.apply(a,arguments);return t===a?c:t},c}var Cp=Math.abs,Np=Math.cos,Pp=Math.sin,Rp=Math.PI,jp=Rp/2,Dp=2*Rp,Fp=Math.max,Ip=1e-12;function Lp(t,e){return Array.from({length:e-t},((e,n)=>t+n))}function $p(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}function Up(){return Vp(!1,!1)}function zp(){return Vp(!1,!0)}function Bp(){return Vp(!0,!1)}function Vp(t,e){var n=0,r=null,i=null,o=null;function a(a){var s,c=a.length,u=new Array(c),l=Lp(0,c),f=new Array(c*c),h=new Array(c),d=0;a=Float64Array.from({length:c*c},e?(t,e)=>a[e%c][e/c|0]:(t,e)=>a[e/c|0][e%c]);for(let e=0;e<c;++e){let n=0;for(let r=0;r<c;++r)n+=a[e*c+r]+t*a[r*c+e];d+=u[e]=n}s=(d=Fp(0,Dp-n*c)/d)?n:Dp/c;{let e=0;r&&l.sort(((t,e)=>r(u[t],u[e])));for(const n of l){const r=e;if(t){const t=Lp(1+~c,c).filter((t=>t<0?a[~t*c+n]:a[n*c+t]));i&&t.sort(((t,e)=>i(t<0?-a[~t*c+n]:a[n*c+t],e<0?-a[~e*c+n]:a[n*c+e])));for(const r of t)r<0?(f[~r*c+n]||(f[~r*c+n]={source:null,target:null})).target={index:n,startAngle:e,endAngle:e+=a[~r*c+n]*d,value:a[~r*c+n]}:(f[n*c+r]||(f[n*c+r]={source:null,target:null})).source={index:n,startAngle:e,endAngle:e+=a[n*c+r]*d,value:a[n*c+r]};h[n]={index:n,startAngle:r,endAngle:e,value:u[n]}}else{const t=Lp(0,c).filter((t=>a[n*c+t]||a[t*c+n]));i&&t.sort(((t,e)=>i(a[n*c+t],a[n*c+e])));for(const r of t){let t;if(n<r?(t=f[n*c+r]||(f[n*c+r]={source:null,target:null}),t.source={index:n,startAngle:e,endAngle:e+=a[n*c+r]*d,value:a[n*c+r]}):(t=f[r*c+n]||(f[r*c+n]={source:null,target:null}),t.target={index:n,startAngle:e,endAngle:e+=a[n*c+r]*d,value:a[n*c+r]},n===r&&(t.source=t.target)),t.source&&t.target&&t.source.value<t.target.value){const e=t.source;t.source=t.target,t.target=e}}h[n]={index:n,startAngle:r,endAngle:e,value:u[n]}}e+=s}}return(f=Object.values(f)).groups=h,o?f.sort(o):f}return a.padAngle=function(t){return arguments.length?(n=Fp(0,t),a):n},a.sortGroups=function(t){return arguments.length?(r=t,a):r},a.sortSubgroups=function(t){return arguments.length?(i=t,a):i},a.sortChords=function(t){return arguments.length?(null==t?o=null:(o=$p(t))._=t,a):o&&o._},a}const qp=Math.PI,Hp=2*qp,Yp=1e-6,Wp=Hp-Yp;function Zp(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Gp(){return new Zp}Zp.prototype=Gp.prototype={constructor:Zp,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,c=r-e,u=o-t,l=a-e,f=u*u+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>Yp)if(Math.abs(l*s-c*u)>Yp&&i){var h=n-o,d=r-a,p=s*s+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((qp-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>Yp&&(this._+="L"+(t+_*u)+","+(e+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>u*d)+","+(this._x1=t+b*s)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+a,u=e+s,l=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>Yp||Math.abs(this._y1-u)>Yp)&&(this._+="L"+c+","+u),n&&(f<0&&(f=f%Hp+Hp),f>Wp?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):f>Yp&&(this._+="A"+n+","+n+",0,"+ +(f>=qp)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Xp=Gp;var Jp=Array.prototype.slice;function Kp(t){return function(){return t}}function Qp(t){return t.source}function tg(t){return t.target}function eg(t){return t.radius}function ng(t){return t.startAngle}function rg(t){return t.endAngle}function ig(){return 0}function og(){return 10}function ag(t){var e=Qp,n=tg,r=eg,i=eg,o=ng,a=rg,s=ig,c=null;function u(){var u,l=e.apply(this,arguments),f=n.apply(this,arguments),h=s.apply(this,arguments)/2,d=Jp.call(arguments),p=+r.apply(this,(d[0]=l,d)),g=o.apply(this,d)-jp,v=a.apply(this,d)-jp,y=+i.apply(this,(d[0]=f,d)),m=o.apply(this,d)-jp,_=a.apply(this,d)-jp;if(c||(c=u=Xp()),h>Ip&&(Cp(v-g)>2*h+Ip?v>g?(g+=h,v-=h):(g-=h,v+=h):g=v=(g+v)/2,Cp(_-m)>2*h+Ip?_>m?(m+=h,_-=h):(m-=h,_+=h):m=_=(m+_)/2),c.moveTo(p*Np(g),p*Pp(g)),c.arc(0,0,p,g,v),g!==m||v!==_)if(t){var b=+t.apply(this,arguments),x=y-b,w=(m+_)/2;c.quadraticCurveTo(0,0,x*Np(m),x*Pp(m)),c.lineTo(y*Np(w),y*Pp(w)),c.lineTo(x*Np(_),x*Pp(_))}else c.quadraticCurveTo(0,0,y*Np(m),y*Pp(m)),c.arc(0,0,y,m,_);if(c.quadraticCurveTo(0,0,p*Np(g),p*Pp(g)),c.closePath(),u)return c=null,u+""||null}return t&&(u.headRadius=function(e){return arguments.length?(t="function"==typeof e?e:Kp(+e),u):t}),u.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:Kp(+t),u):r},u.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:Kp(+t),u):r},u.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:Kp(+t),u):i},u.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:Kp(+t),u):o},u.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Kp(+t),u):a},u.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:Kp(+t),u):s},u.source=function(t){return arguments.length?(e=t,u):e},u.target=function(t){return arguments.length?(n=t,u):n},u.context=function(t){return arguments.length?(c=null==t?null:t,u):c},u}function sg(){return ag()}function cg(){return ag(og)}const ug=Math.PI/180,lg=180/Math.PI,fg=.96422,hg=.82521,dg=4/29,pg=6/29,gg=3*pg*pg;function vg(t){if(t instanceof _g)return new _g(t.l,t.a,t.b,t.opacity);if(t instanceof Tg)return kg(t);t instanceof Kf||(t=Xf(t));var e,n,r=Mg(t.r),i=Mg(t.g),o=Mg(t.b),a=bg((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=bg((.4360747*r+.3850649*i+.1430804*o)/fg),n=bg((.0139322*r+.0971045*i+.7141733*o)/hg)),new _g(116*a-16,500*(e-a),200*(a-n),t.opacity)}function yg(t,e){return new _g(t,0,0,null==e?1:e)}function mg(t,e,n,r){return 1===arguments.length?vg(t):new _g(t,e,n,null==r?1:r)}function _g(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function bg(t){return t>.008856451679035631?Math.pow(t,1/3):t/gg+dg}function xg(t){return t>pg?t*t*t:gg*(t-dg)}function wg(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Mg(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Eg(t){if(t instanceof Tg)return new Tg(t.h,t.c,t.l,t.opacity);if(t instanceof _g||(t=vg(t)),0===t.a&&0===t.b)return new Tg(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*lg;return new Tg(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Sg(t,e,n,r){return 1===arguments.length?Eg(t):new Tg(n,e,t,null==r?1:r)}function Ag(t,e,n,r){return 1===arguments.length?Eg(t):new Tg(t,e,n,null==r?1:r)}function Tg(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function kg(t){if(isNaN(t.h))return new _g(t.l,0,0,t.opacity);var e=t.h*ug;return new _g(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Of(_g,mg,Cf(Nf,{brighter(t){return new _g(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new _g(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new Kf(wg(3.1338561*(e=fg*xg(e))-1.6168667*(t=1*xg(t))-.4906146*(n=hg*xg(n))),wg(-.9787684*e+1.9161415*t+.033454*n),wg(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Of(Tg,Ag,Cf(Nf,{brighter(t){return new Tg(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new Tg(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return kg(this).rgb()}}));var Og=-.14861,Cg=1.78277,Ng=-.29227,Pg=-.90649,Rg=1.97294,jg=Rg*Pg,Dg=Rg*Cg,Fg=Cg*Ng-Pg*Og;function Ig(t){if(t instanceof $g)return new $g(t.h,t.s,t.l,t.opacity);t instanceof Kf||(t=Xf(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Fg*r+jg*e-Dg*n)/(Fg+jg-Dg),o=r-i,a=(Rg*(n-i)-Ng*o)/Pg,s=Math.sqrt(a*a+o*o)/(Rg*i*(1-i)),c=s?Math.atan2(a,o)*lg-120:NaN;return new $g(c<0?c+360:c,s,i,t.opacity)}function Lg(t,e,n,r){return 1===arguments.length?Ig(t):new $g(t,e,n,null==r?1:r)}function $g(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Of($g,Lg,Cf(Nf,{brighter(t){return t=null==t?Rf:Math.pow(Rf,t),new $g(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Pf:Math.pow(Pf,t),new $g(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*ug,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Kf(255*(e+n*(Og*r+Cg*i)),255*(e+n*(Ng*r+Pg*i)),255*(e+n*(Rg*r)),this.opacity)}}));var Ug=Array.prototype.slice;function zg(t,e){return t-e}const Bg=t=>()=>t;function Vg(t,e){for(var n,r=-1,i=e.length;++r<i;)if(n=qg(t,e[r]))return n;return 0}function qg(t,e){for(var n=e[0],r=e[1],i=-1,o=0,a=t.length,s=a-1;o<a;s=o++){var c=t[o],u=c[0],l=c[1],f=t[s],h=f[0],d=f[1];if(Hg(c,f,e))return 0;l>r!=d>r&&n<(h-u)*(r-l)/(d-l)+u&&(i=-i)}return i}function Hg(t,e,n){var r;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&function(t,e,n){return t<=e&&e<=n||n<=e&&e<=t}(t[r=+(t[0]===e[0])],n[r],e[r])}function Yg(){}var Wg=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Zg(){var t=1,e=1,n=Zc,r=s;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(zg);else{const n=fc(t),r=Yc(n[0],n[1],e);e=qc(Math.floor(n[0]/r)*r,Math.floor(n[1]/r-1)*r,e)}return e.map((e=>o(t,e)))}function o(n,i){var o=[],s=[];return function(n,r,i){var o,s,c,u,l,f,h=new Array,d=new Array;for(o=s=-1,u=n[0]>=r,Wg[u<<1].forEach(p);++o<t-1;)c=u,u=n[o+1]>=r,Wg[c|u<<1].forEach(p);for(Wg[u<<0].forEach(p);++s<e-1;){for(o=-1,u=n[s*t+t]>=r,l=n[s*t]>=r,Wg[u<<1|l<<2].forEach(p);++o<t-1;)c=u,u=n[s*t+t+o+1]>=r,f=l,l=n[s*t+o+1]>=r,Wg[c|u<<1|l<<2|f<<3].forEach(p);Wg[u|l<<3].forEach(p)}for(o=-1,l=n[s*t]>=r,Wg[l<<2].forEach(p);++o<t-1;)f=l,l=n[s*t+o+1]>=r,Wg[l<<2|f<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+o,t[0][1]+s],c=[t[1][0]+o,t[1][1]+s],u=a(r),l=a(c);(e=d[u])?(n=h[l])?(delete d[e.end],delete h[n.start],e===n?(e.ring.push(c),i(e.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(c),d[e.end=l]=e):(e=h[l])?(n=d[u])?(delete h[e.start],delete d[n.end],e===n?(e.ring.push(c),i(e.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete h[e.start],e.ring.unshift(r),h[e.start=u]=e):h[u]=d[l]={start:u,end:l,ring:[r,c]}}Wg[l<<3].forEach(p)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e<n;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r}(t)>0?o.push([t]):s.push(t)})),s.forEach((function(t){for(var e,n=0,r=o.length;n<r;++n)if(-1!==Vg((e=o[n])[0],t))return void e.push(t)})),{type:"MultiPolygon",value:i,coordinates:o}}function a(e){return 2*e[0]+e[1]*(t+1)*4}function s(n,r,i){n.forEach((function(n){var o,a=n[0],s=n[1],c=0|a,u=0|s,l=r[u*t+c];a>0&&a<t&&c===a&&(o=r[u*t+c-1],n[0]=a+(i-o)/(l-o)-.5),s>0&&s<e&&u===s&&(o=r[(u-1)*t+c],n[1]=s+(i-o)/(l-o)-.5)}))}return i.contour=o,i.size=function(n){if(!arguments.length)return[t,e];var r=Math.floor(n[0]),o=Math.floor(n[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return t=r,e=o,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Bg(Ug.call(t)):Bg(t),i):n},i.smooth=function(t){return arguments.length?(r=t?s:Yg,i):r===s},i}function Gg(t){return t[0]}function Xg(t){return t[1]}function Jg(){return 1}function Kg(){var t=Gg,e=Xg,n=Jg,r=960,i=500,o=20,a=2,s=3*o,c=r+2*s>>a,u=i+2*s>>a,l=Bg(20);function f(r){var i=new Float32Array(c*u),l=Math.pow(2,-a),f=-1;for(const o of r){var h=(t(o,++f,r)+s)*l,d=(e(o,f,r)+s)*l,p=+n(o,f,r);if(h>=0&&h<c&&d>=0&&d<u){var g=Math.floor(h),v=Math.floor(d),y=h-g-.5,m=d-v-.5;i[g+v*c]+=(1-y)*(1-m)*p,i[g+1+v*c]+=y*(1-m)*p,i[g+1+(v+1)*c]+=y*m*p,i[g+(v+1)*c]+=(1-y)*m*p}}return Js({data:i,width:c,height:u},o*l),i}function h(t){var e=f(t),n=l(e),r=Math.pow(2,2*a);return Array.isArray(n)||(n=qc(Number.MIN_VALUE,Xc(e)/r,n)),Zg().size([c,u]).thresholds(n.map((t=>t*r)))(e).map(((t,e)=>(t.value=+n[e],d(t))))}function d(t){return t.coordinates.forEach(p),t}function p(t){t.forEach(g)}function g(t){t.forEach(v)}function v(t){t[0]=t[0]*Math.pow(2,a)-s,t[1]=t[1]*Math.pow(2,a)-s}function y(){return c=r+2*(s=3*o)>>a,u=i+2*s>>a,h}return h.contours=function(t){var e=f(t),n=Zg().size([c,u]),r=Math.pow(2,2*a),i=t=>{t=+t;var i=d(n.contour(e,t*r));return i.value=t,i};return Object.defineProperty(i,"max",{get:()=>Xc(e)/r}),i},h.x=function(e){return arguments.length?(t="function"==typeof e?e:Bg(+e),h):t},h.y=function(t){return arguments.length?(e="function"==typeof t?t:Bg(+t),h):e},h.weight=function(t){return arguments.length?(n="function"==typeof t?t:Bg(+t),h):n},h.size=function(t){if(!arguments.length)return[r,i];var e=+t[0],n=+t[1];if(!(e>=0&&n>=0))throw new Error("invalid size");return r=e,i=n,y()},h.cellSize=function(t){if(!arguments.length)return 1<<a;if(!((t=+t)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),y()},h.thresholds=function(t){return arguments.length?(l="function"==typeof t?t:Array.isArray(t)?Bg(Ug.call(t)):Bg(t),h):l},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=(Math.sqrt(4*t*t+1)-1)/2,y()},h}const Qg=134217729;function tv(t,e,n,r,i){let o,a,s,c,u=e[0],l=r[0],f=0,h=0;l>u==l>-u?(o=u,u=e[++f]):(o=l,l=r[++h]);let d=0;if(f<t&&h<n)for(l>u==l>-u?(a=u+o,s=o-(a-u),u=e[++f]):(a=l+o,s=o-(a-l),l=r[++h]),o=a,0!==s&&(i[d++]=s);f<t&&h<n;)l>u==l>-u?(a=o+u,c=a-o,s=o-(a-c)+(u-c),u=e[++f]):(a=o+l,c=a-o,s=o-(a-c)+(l-c),l=r[++h]),o=a,0!==s&&(i[d++]=s);for(;f<t;)a=o+u,c=a-o,s=o-(a-c)+(u-c),u=e[++f],o=a,0!==s&&(i[d++]=s);for(;h<n;)a=o+l,c=a-o,s=o-(a-c)+(l-c),l=r[++h],o=a,0!==s&&(i[d++]=s);return 0===o&&0!==d||(i[d++]=o),d}function ev(t){return new Float64Array(t)}const nv=ev(4),rv=ev(8),iv=ev(12),ov=ev(16),av=ev(4);function sv(t,e,n,r,i,o){const a=(e-o)*(n-i),s=(t-i)*(r-o),c=a-s;if(0===a||0===s||a>0!=s>0)return c;const u=Math.abs(a+s);return Math.abs(c)>=33306690738754716e-32*u?c:-function(t,e,n,r,i,o,a){let s,c,u,l,f,h,d,p,g,v,y,m,_,b,x,w,M,E;const S=t-i,A=n-i,T=e-o,k=r-o;b=S*k,h=Qg*S,d=h-(h-S),p=S-d,h=Qg*k,g=h-(h-k),v=k-g,x=p*v-(b-d*g-p*g-d*v),w=T*A,h=Qg*T,d=h-(h-T),p=T-d,h=Qg*A,g=h-(h-A),v=A-g,M=p*v-(w-d*g-p*g-d*v),y=x-M,f=x-y,nv[0]=x-(y+f)+(f-M),m=b+y,f=m-b,_=b-(m-f)+(y-f),y=_-w,f=_-y,nv[1]=_-(y+f)+(f-w),E=m+y,f=E-m,nv[2]=m-(E-f)+(y-f),nv[3]=E;let O=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,nv),C=22204460492503146e-32*a;if(O>=C||-O>=C)return O;if(f=t-S,s=t-(S+f)+(f-i),f=n-A,u=n-(A+f)+(f-i),f=e-T,c=e-(T+f)+(f-o),f=r-k,l=r-(k+f)+(f-o),0===s&&0===c&&0===u&&0===l)return O;if(C=11093356479670487e-47*a+33306690738754706e-32*Math.abs(O),O+=S*l+k*s-(T*u+A*c),O>=C||-O>=C)return O;b=s*k,h=Qg*s,d=h-(h-s),p=s-d,h=Qg*k,g=h-(h-k),v=k-g,x=p*v-(b-d*g-p*g-d*v),w=c*A,h=Qg*c,d=h-(h-c),p=c-d,h=Qg*A,g=h-(h-A),v=A-g,M=p*v-(w-d*g-p*g-d*v),y=x-M,f=x-y,av[0]=x-(y+f)+(f-M),m=b+y,f=m-b,_=b-(m-f)+(y-f),y=_-w,f=_-y,av[1]=_-(y+f)+(f-w),E=m+y,f=E-m,av[2]=m-(E-f)+(y-f),av[3]=E;const N=tv(4,nv,4,av,rv);b=S*l,h=Qg*S,d=h-(h-S),p=S-d,h=Qg*l,g=h-(h-l),v=l-g,x=p*v-(b-d*g-p*g-d*v),w=T*u,h=Qg*T,d=h-(h-T),p=T-d,h=Qg*u,g=h-(h-u),v=u-g,M=p*v-(w-d*g-p*g-d*v),y=x-M,f=x-y,av[0]=x-(y+f)+(f-M),m=b+y,f=m-b,_=b-(m-f)+(y-f),y=_-w,f=_-y,av[1]=_-(y+f)+(f-w),E=m+y,f=E-m,av[2]=m-(E-f)+(y-f),av[3]=E;const P=tv(N,rv,4,av,iv);b=s*l,h=Qg*s,d=h-(h-s),p=s-d,h=Qg*l,g=h-(h-l),v=l-g,x=p*v-(b-d*g-p*g-d*v),w=c*u,h=Qg*c,d=h-(h-c),p=c-d,h=Qg*u,g=h-(h-u),v=u-g,M=p*v-(w-d*g-p*g-d*v),y=x-M,f=x-y,av[0]=x-(y+f)+(f-M),m=b+y,f=m-b,_=b-(m-f)+(y-f),y=_-w,f=_-y,av[1]=_-(y+f)+(f-w),E=m+y,f=E-m,av[2]=m-(E-f)+(y-f),av[3]=E;const R=tv(P,iv,4,av,ov);return ov[R-1]}(t,e,n,r,i,o,u)}ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(8),ev(8),ev(8),ev(4),ev(8),ev(8),ev(8),ev(12),ev(192),ev(192),ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(8),ev(8),ev(8),ev(8),ev(8),ev(8),ev(8),ev(8),ev(8),ev(4),ev(4),ev(4),ev(8),ev(16),ev(16),ev(16),ev(32),ev(32),ev(48),ev(64),ev(1152),ev(1152),ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(4),ev(24),ev(24),ev(24),ev(24),ev(24),ev(24),ev(24),ev(24),ev(24),ev(24),ev(1152),ev(1152),ev(1152),ev(1152),ev(1152),ev(2304),ev(2304),ev(3456),ev(5760),ev(8),ev(8),ev(8),ev(16),ev(24),ev(48),ev(48),ev(96),ev(192),ev(384),ev(384),ev(384),ev(768),ev(96),ev(96),ev(96),ev(1152);const cv=Math.pow(2,-52),uv=new Uint32Array(512);class lv{static from(t,e=vv,n=yv){const r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=t[o];i[2*o]=e(r),i[2*o+1]=n(r)}return new lv(i)}constructor(t){const e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let a=1/0,s=1/0,c=-1/0,u=-1/0;for(let e=0;e<o;e++){const n=t[2*e],r=t[2*e+1];n<a&&(a=n),r<s&&(s=r),n>c&&(c=n),r>u&&(u=r),this._ids[e]=e}const l=(a+c)/2,f=(s+u)/2;let h,d,p,g=1/0;for(let e=0;e<o;e++){const n=fv(l,f,t[2*e],t[2*e+1]);n<g&&(h=e,g=n)}const v=t[2*h],y=t[2*h+1];g=1/0;for(let e=0;e<o;e++){if(e===h)continue;const n=fv(v,y,t[2*e],t[2*e+1]);n<g&&n>0&&(d=e,g=n)}let m=t[2*d],_=t[2*d+1],b=1/0;for(let e=0;e<o;e++){if(e===h||e===d)continue;const n=dv(v,y,m,_,t[2*e],t[2*e+1]);n<b&&(p=e,b=n)}let x=t[2*p],w=t[2*p+1];if(b===1/0){for(let e=0;e<o;e++)this._dists[e]=t[2*e]-t[0]||t[2*e+1]-t[1];pv(this._ids,this._dists,0,o-1);const e=new Uint32Array(o);let n=0;for(let t=0,r=-1/0;t<o;t++){const i=this._ids[t];this._dists[i]>r&&(e[n++]=i,r=this._dists[i])}return this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(sv(v,y,m,_,x,w)<0){const t=d,e=m,n=_;d=p,m=x,_=w,p=t,x=e,w=n}const M=function(t,e,n,r,i,o){const a=n-t,s=r-e,c=i-t,u=o-e,l=a*a+s*s,f=c*c+u*u,h=.5/(a*u-s*c);return{x:t+(u*l-s*f)*h,y:e+(a*f-c*l)*h}}(v,y,m,_,x,w);this._cx=M.x,this._cy=M.y;for(let e=0;e<o;e++)this._dists[e]=fv(t[2*e],t[2*e+1],M.x,M.y);pv(this._ids,this._dists,0,o-1),this._hullStart=h;let E=3;n[h]=e[p]=d,n[d]=e[h]=p,n[p]=e[d]=h,r[h]=0,r[d]=1,r[p]=2,i.fill(-1),i[this._hashKey(v,y)]=h,i[this._hashKey(m,_)]=d,i[this._hashKey(x,w)]=p,this.trianglesLen=0,this._addTriangle(h,d,p,-1,-1,-1);for(let o,a,s=0;s<this._ids.length;s++){const c=this._ids[s],u=t[2*c],l=t[2*c+1];if(s>0&&Math.abs(u-o)<=cv&&Math.abs(l-a)<=cv)continue;if(o=u,a=l,c===h||c===d||c===p)continue;let f=0;for(let t=0,e=this._hashKey(u,l);t<this._hashSize&&(f=i[(e+t)%this._hashSize],-1===f||f===n[f]);t++);f=e[f];let g,v=f;for(;g=n[v],sv(u,l,t[2*v],t[2*v+1],t[2*g],t[2*g+1])>=0;)if(v=g,v===f){v=-1;break}if(-1===v)continue;let y=this._addTriangle(v,c,n[v],-1,-1,r[v]);r[c]=this._legalize(y+2),r[v]=y,E++;let m=n[v];for(;g=n[m],sv(u,l,t[2*m],t[2*m+1],t[2*g],t[2*g+1])<0;)y=this._addTriangle(m,c,g,r[c],-1,r[m]),r[c]=this._legalize(y+2),n[m]=m,E--,m=g;if(v===f)for(;g=e[v],sv(u,l,t[2*g],t[2*g+1],t[2*v],t[2*v+1])<0;)y=this._addTriangle(g,c,v,-1,r[v],r[g]),this._legalize(y+2),r[g]=y,n[v]=v,E--,v=g;this._hullStart=e[c]=v,n[v]=e[m]=c,n[c]=m,i[this._hashKey(u,l)]=c,i[this._hashKey(t[2*v],t[2*v+1])]=v}this.hull=new Uint32Array(E);for(let t=0,e=this._hullStart;t<E;t++)this.hull[t]=e,e=n[e];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){const n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:e,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[t],s=t-t%3;if(o=s+(t+2)%3,-1===a){if(0===i)break;t=uv[--i];continue}const c=a-a%3,u=s+(t+1)%3,l=c+(a+2)%3,f=e[o],h=e[t],d=e[u],p=e[l];if(hv(r[2*f],r[2*f+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){e[t]=p,e[a]=f;const r=n[l];if(-1===r){let e=this._hullStart;do{if(this._hullTri[e]===l){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,r),this._link(a,n[o]),this._link(o,l);const s=c+(a+1)%3;i<uv.length&&(uv[i++]=s)}else{if(0===i)break;t=uv[--i]}}return o}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,r,i,o){const a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function fv(t,e,n,r){const i=t-n,o=e-r;return i*i+o*o}function hv(t,e,n,r,i,o,a,s){const c=t-a,u=e-s,l=n-a,f=r-s,h=i-a,d=o-s,p=l*l+f*f,g=h*h+d*d;return c*(f*g-p*d)-u*(l*g-p*h)+(c*c+u*u)*(l*d-f*h)<0}function dv(t,e,n,r,i,o){const a=n-t,s=r-e,c=i-t,u=o-e,l=a*a+s*s,f=c*c+u*u,h=.5/(a*u-s*c),d=(u*l-s*f)*h,p=(a*f-c*l)*h;return d*d+p*p}function pv(t,e,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=t[i],o=e[r];let a=i-1;for(;a>=n&&e[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=n+1,o=r;gv(t,n+r>>1,i),e[t[n]]>e[t[r]]&&gv(t,n,r),e[t[i]]>e[t[r]]&&gv(t,i,r),e[t[n]]>e[t[i]]&&gv(t,n,i);const a=t[i],s=e[a];for(;;){do{i++}while(e[t[i]]<s);do{o--}while(e[t[o]]>s);if(o<i)break;gv(t,i,o)}t[n+1]=t[o],t[o]=a,r-i+1>=o-n?(pv(t,e,i,r),pv(t,e,n,o-1)):(pv(t,e,n,o-1),pv(t,e,i,r))}}function gv(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function vv(t){return t[0]}function yv(t){return t[1]}const mv=1e-6;class _v{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){const r=(t=+t)+(n=+n),i=e=+e;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>mv||Math.abs(this._y1-i)>mv)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,e,n,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class bv{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class xv{constructor(t,[e,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(e=+e)&&(i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=e,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let e,r,o=0,a=0,s=n.length;o<s;o+=3,a+=2){const s=2*n[o],c=2*n[o+1],u=2*n[o+2],l=t[s],f=t[s+1],h=t[c],d=t[c+1],p=t[u],g=t[u+1],v=h-l,y=d-f,m=p-l,_=g-f,b=2*(v*_-y*m);if(Math.abs(b)<1e-9){let i=1e9;const o=2*n[0];i*=Math.sign((t[o]-l)*_-(t[o+1]-f)*m),e=(l+p)/2-i*_,r=(f+g)/2+i*m}else{const t=1/b,n=v*v+y*y,i=m*m+_*_;e=l+(_*n-y*i)*t,r=f+(v*i-m*n)*t}i[a]=e,i[a+1]=r}let o,a,s,c=e[e.length-1],u=4*c,l=t[2*c],f=t[2*c+1];r.fill(0);for(let n=0;n<e.length;++n)c=e[n],o=u,a=l,s=f,u=4*c,l=t[2*c],f=t[2*c+1],r[o+2]=r[u]=s-f,r[o+3]=r[u+1]=l-a}render(t){const e=null==t?t=new _v:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let e=0,r=n.length;e<r;++e){const r=n[e];if(r<e)continue;const i=2*Math.floor(e/3),a=2*Math.floor(r/3),s=o[i],c=o[i+1],u=o[a],l=o[a+1];this._renderSegment(s,c,u,l,t)}let s,c=i[i.length-1];for(let e=0;e<i.length;++e){s=c,c=i[e];const n=2*Math.floor(r[c]/3),u=o[n],l=o[n+1],f=4*s,h=this._project(u,l,a[f+2],a[f+3]);h&&this._renderSegment(u,l,h[0],h[1],t)}return e&&e.value()}renderBounds(t){const e=null==t?t=new _v:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){const n=null==e?e=new _v:void 0,r=this._clip(t);if(null===r||!r.length)return;e.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let t=2;t<i;t+=2)r[t]===r[t-2]&&r[t+1]===r[t-1]||e.lineTo(r[t],r[t+1]);return e.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){const t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){const e=new bv;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,r,i){let o;const a=this._regioncode(t,e),s=this._regioncode(n,r);0===a&&0===s?(i.moveTo(t,e),i.lineTo(n,r)):(o=this._clipSegment(t,e,n,r,a,s))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,e,n){return(e=+e)==e&&(n=+n)==n&&this.delaunay._step(t,e,n)===t}*neighbors(t){const e=this._clip(t);if(e)for(const n of this.delaunay.neighbors(t)){const t=this._clip(n);if(t)t:for(let r=0,i=e.length;r<i;r+=2)for(let o=0,a=t.length;o<a;o+=2)if(e[r]==t[o]&&e[r+1]==t[o+1]&&e[(r+2)%i]==t[(o+a-2)%a]&&e[(r+3)%i]==t[(o+a-1)%a]){yield n;break t}}}_cell(t){const{circumcenters:e,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[t];if(-1===o)return null;const a=[];let s=o;do{const n=Math.floor(s/3);if(a.push(e[2*n],e[2*n+1]),s=s%3==2?s-2:s+1,i[s]!==t)break;s=r[s]}while(s!==o&&-1!==s);return a}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const e=this._cell(t);if(null===e)return null;const{vectors:n}=this,r=4*t;return n[r]||n[r+1]?this._clipInfinite(t,e,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(t,e)}_clipFinite(t,e){const n=e.length;let r,i,o,a,s=null,c=e[n-2],u=e[n-1],l=this._regioncode(c,u),f=0;for(let h=0;h<n;h+=2)if(r=c,i=u,c=e[h],u=e[h+1],o=l,l=this._regioncode(c,u),0===o&&0===l)a=f,f=0,s?s.push(c,u):s=[c,u];else{let e,n,h,d,p;if(0===o){if(null===(e=this._clipSegment(r,i,c,u,o,l)))continue;[n,h,d,p]=e}else{if(null===(e=this._clipSegment(c,u,r,i,l,o)))continue;[d,p,n,h]=e,a=f,f=this._edgecode(n,h),a&&f&&this._edge(t,a,f,s,s.length),s?s.push(n,h):s=[n,h]}a=f,f=this._edgecode(d,p),a&&f&&this._edge(t,a,f,s,s.length),s?s.push(d,p):s=[d,p]}if(s)a=f,f=this._edgecode(s[0],s[1]),a&&f&&this._edge(t,a,f,s,s.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return s}_clipSegment(t,e,n,r,i,o){for(;;){if(0===i&&0===o)return[t,e,n,r];if(i&o)return null;let a,s,c=i||o;8&c?(a=t+(n-t)*(this.ymax-e)/(r-e),s=this.ymax):4&c?(a=t+(n-t)*(this.ymin-e)/(r-e),s=this.ymin):2&c?(s=e+(r-e)*(this.xmax-t)/(n-t),a=this.xmax):(s=e+(r-e)*(this.xmin-t)/(n-t),a=this.xmin),i?(t=a,e=s,i=this._regioncode(t,e)):(n=a,r=s,o=this._regioncode(n,r))}}_clipInfinite(t,e,n,r,i,o){let a,s=Array.from(e);if((a=this._project(s[0],s[1],n,r))&&s.unshift(a[0],a[1]),(a=this._project(s[s.length-2],s[s.length-1],i,o))&&s.push(a[0],a[1]),s=this._clipFinite(t,s))for(let e,n=0,r=s.length,i=this._edgecode(s[r-2],s[r-1]);n<r;n+=2)e=i,i=this._edgecode(s[n],s[n+1]),e&&i&&(n=this._edge(t,e,i,s,n),r=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,e,n,r,i){for(;e!==n;){let n,o;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,o=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,o=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,o=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(t,n,o)||(r.splice(i,0,n,o),i+=2)}if(r.length>4)for(let t=0;t<r.length;t+=2){const e=(t+2)%r.length,n=(t+4)%r.length;(r[t]===r[e]&&r[e]===r[n]||r[t+1]===r[e+1]&&r[e+1]===r[n+1])&&(r.splice(e,2),t-=2)}return i}_project(t,e,n,r){let i,o,a,s=1/0;if(r<0){if(e<=this.ymin)return null;(i=(this.ymin-e)/r)<s&&(a=this.ymin,o=t+(s=i)*n)}else if(r>0){if(e>=this.ymax)return null;(i=(this.ymax-e)/r)<s&&(a=this.ymax,o=t+(s=i)*n)}if(n>0){if(t>=this.xmax)return null;(i=(this.xmax-t)/n)<s&&(o=this.xmax,a=e+(s=i)*r)}else if(n<0){if(t<=this.xmin)return null;(i=(this.xmin-t)/n)<s&&(o=this.xmin,a=e+(s=i)*r)}return[o,a]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}}const wv=2*Math.PI,Mv=Math.pow;function Ev(t){return t[0]}function Sv(t){return t[1]}function Av(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class Tv{static from(t,e=Ev,n=Sv,r){return new Tv("length"in t?function(t,e,n,r){const i=t.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=t[a];o[2*a]=e.call(r,i,a,t),o[2*a+1]=n.call(r,i,a,t)}return o}(t,e,n,r):Float64Array.from(function*(t,e,n,r){let i=0;for(const o of t)yield e.call(r,o,i,t),yield n.call(r,o,i,t),++i}(t,e,n,r)))}constructor(t){this._delaunator=new lv(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:e,coords:n}=t;for(let t=0;t<e.length;t+=3){const r=2*e[t],i=2*e[t+1],o=2*e[t+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},((t,e)=>e)).sort(((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]));const t=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,n=e.length/2;t<n;++t){const n=Av(e[2*t],e[2*t+1],i);e[2*t]=n[0],e[2*t+1]=n[1]}this._delaunator=new lv(e)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let t=0,e=n.length;t<e;++t){const e=i[t%3==2?t-2:t+1];-1!==n[t]&&-1!==o[e]||(o[e]=t)}for(let t=0,e=r.length;t<e;++t)a[r[t]]=t;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new xv(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const e=a.indexOf(t);return e>0&&(yield a[e-1]),void(e<a.length-1&&(yield a[e+1]))}const s=e[t];if(-1===s)return;let c=s,u=-1;do{if(yield u=o[c],c=c%3==2?c-2:c+1,o[c]!==t)return;if(c=i[c],-1===c){const e=n[(r[t]+1)%n.length];return void(e!==u&&(yield e))}}while(c!==s)}find(t,e,n=0){if((t=+t)!=t||(e=+e)!=e)return-1;const r=n;let i;for(;(i=this._step(n,t,e))>=0&&i!==n&&i!==r;)n=i;return i}_step(t,e,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let u=t,l=Mv(e-c[2*t],2)+Mv(n-c[2*t+1],2);const f=r[t];let h=f;do{let r=s[h];const f=Mv(e-c[2*r],2)+Mv(n-c[2*r+1],2);if(f<l&&(l=f,u=r),h=h%3==2?h-2:h+1,s[h]!==t)break;if(h=a[h],-1===h){if(h=i[(o[t]+1)%i.length],h!==r&&Mv(e-c[2*h],2)+Mv(n-c[2*h+1],2)<l)return h;break}}while(h!==f);return u}render(t){const e=null==t?t=new _v:void 0,{points:n,halfedges:r,triangles:i}=this;for(let e=0,o=r.length;e<o;++e){const o=r[e];if(o<e)continue;const a=2*i[e],s=2*i[o];t.moveTo(n[a],n[a+1]),t.lineTo(n[s],n[s+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0!==e||t&&"function"==typeof t.moveTo||(e=t,t=null),e=null==e?2:+e;const n=null==t?t=new _v:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){const i=r[n],o=r[n+1];t.moveTo(i+e,o),t.arc(i,o,e,0,wv)}return n&&n.value()}renderHull(t){const e=null==t?t=new _v:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;t.moveTo(r[i],r[i+1]);for(let e=1;e<o;++e){const i=2*n[e];t.lineTo(r[i],r[i+1])}return t.closePath(),e&&e.value()}hullPolygon(){const t=new bv;return this.renderHull(t),t.value()}renderTriangle(t,e){const n=null==e?e=new _v:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],a=2*i[t+1],s=2*i[t+2];return e.moveTo(r[o],r[o+1]),e.lineTo(r[a],r[a+1]),e.lineTo(r[s],r[s+1]),e.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){const e=new bv;return this.renderTriangle(t,e),e.value()}}const kv=t=>()=>t;function Ov(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:c,dy:u,dispatch:l}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:l}})}function Cv(t){return!t.ctrlKey&&!t.button}function Nv(){return this.parentNode}function Pv(t,e){return null==e?{x:t.x,y:t.y}:e}function Rv(){return navigator.maxTouchPoints||"ontouchstart"in this}function jv(){var t,e,n,r,i=Cv,o=Nv,a=Pv,s=Rv,c={},u=ol("start","drag","end"),l=0,f=0;function h(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",v).on("touchmove.drag",y,Mf).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,s){if(!r&&i.call(this,a,s)){var c=_(this,o.call(this,a,s),a,s,"mouse");c&&(wf(a.view).on("mousemove.drag",p,Ef).on("mouseup.drag",g,Ef),Tf(a.view),Sf(a),n=!1,t=a.clientX,e=a.clientY,c("start",a))}}function p(r){if(Af(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>f}c.mouse("drag",r)}function g(t){wf(t.view).on("mousemove.drag mouseup.drag",null),kf(t.view,n),Af(t),c.mouse("end",t)}function v(t,e){if(i.call(this,t,e)){var n,r,a=t.changedTouches,s=o.call(this,t,e),c=a.length;for(n=0;n<c;++n)(r=_(this,s,t,e,a[n].identifier,a[n]))&&(Sf(t),r("start",t,a[n]))}}function y(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=c[r[e].identifier])&&(Af(t),n("drag",t,r[e]))}function m(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<o;++e)(n=c[i[e].identifier])&&(Sf(t),n("end",t,i[e]))}function _(t,e,n,r,i,o){var s,f,d,p=u.copy(),g=jh(o||n,e);if(null!=(d=a.call(t,new Ov("beforestart",{sourceEvent:n,target:h,identifier:i,active:l,x:g[0],y:g[1],dx:0,dy:0,dispatch:p}),r)))return s=d.x-g[0]||0,f=d.y-g[1]||0,function n(o,a,u){var v,y=g;switch(o){case"start":c[i]=n,v=l++;break;case"end":delete c[i],--l;case"drag":g=jh(u||a,e),v=l}p.call(o,t,new Ov(o,{sourceEvent:a,subject:d,target:h,identifier:i,active:v,x:g[0]+s,y:g[1]+f,dx:g[0]-y[0],dy:g[1]-y[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:kv(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:kv(t),h):o},h.subject=function(t){return arguments.length?(a="function"==typeof t?t:kv(t),h):a},h.touchable=function(t){return arguments.length?(s="function"==typeof t?t:kv(!!t),h):s},h.on=function(){var t=u.on.apply(u,arguments);return t===u?h:t},h.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,h):Math.sqrt(f)},h}Ov.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Dv={},Fv={};function Iv(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function Lv(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function $v(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function Uv(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],o=t.length,a=0,s=0,c=o<=0,u=!1;function l(){if(c)return Fv;if(u)return u=!1,Dv;var e,r,i=a;if(34===t.charCodeAt(i)){for(;a++<o&&34!==t.charCodeAt(a)||34===t.charCodeAt(++a););return(e=a)>=o?c=!0:10===(r=t.charCodeAt(a++))?u=!0:13===r&&(u=!0,10===t.charCodeAt(a)&&++a),t.slice(i+1,e-1).replace(/""/g,'"')}for(;a<o;){if(10===(r=t.charCodeAt(e=a++)))u=!0;else if(13===r)u=!0,10===t.charCodeAt(a)&&++a;else if(r!==n)continue;return t.slice(i,e)}return c=!0,t.slice(i,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(r=l())!==Fv;){for(var f=[];r!==Dv&&r!==Fv;)f.push(r),r=l();e&&null==(f=e(f,s++))||i.push(f)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return a(e[t])})).join(t)}))}function o(e){return e.map(a).join(t)}function a(t){return null==t?"":t instanceof Date?function(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+$v(-t,6):t>9999?"+"+$v(t,6):$v(t,4)}(t.getUTCFullYear())+"-"+$v(t.getUTCMonth()+1,2)+"-"+$v(t.getUTCDate(),2)+(i?"T"+$v(e,2)+":"+$v(n,2)+":"+$v(r,2)+"."+$v(i,3)+"Z":r?"T"+$v(e,2)+":"+$v(n,2)+":"+$v(r,2)+"Z":n||e?"T"+$v(e,2)+":"+$v(n,2)+"Z":"")}(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,o=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=Iv(t);return function(r,i){return e(n(r),i,t)}}(t,e):Iv(t)}));return o.columns=i||[],o},parseRows:r,format:function(e,n){return null==n&&(n=Lv(e)),[n.map(a).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=Lv(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}}var zv=Uv(","),Bv=zv.parse,Vv=zv.parseRows,qv=zv.format,Hv=zv.formatBody,Yv=zv.formatRows,Wv=zv.formatRow,Zv=zv.formatValue,Gv=Uv("\t"),Xv=Gv.parse,Jv=Gv.parseRows,Kv=Gv.format,Qv=Gv.formatBody,ty=Gv.formatRows,ey=Gv.formatRow,ny=Gv.formatValue;function ry(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;iy&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}const iy=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),oy=t=>+t;function ay(t){return t*t}function sy(t){return t*(2-t)}function cy(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var uy=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),ly=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),fy=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),hy=Math.PI,dy=hy/2;function py(t){return 1==+t?1:1-Math.cos(t*dy)}function gy(t){return Math.sin(t*dy)}function vy(t){return(1-Math.cos(hy*t))/2}function yy(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function my(t){return yy(1-+t)}function _y(t){return 1-yy(t)}function by(t){return((t*=2)<=1?yy(1-t):2-yy(t-1))/2}function xy(t){return 1-Math.sqrt(1-t*t)}function wy(t){return Math.sqrt(1- --t*t)}function My(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Ey=7.5625;function Sy(t){return 1-Ay(1-t)}function Ay(t){return(t=+t)<.36363636363636365?Ey*t*t:t<.7272727272727273?Ey*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Ey*(t-=.8181818181818182)*t+.9375:Ey*(t-=.9545454545454546)*t+.984375}function Ty(t){return((t*=2)<=1?1-Ay(1-t):Ay(t-1)+1)/2}var ky=1.70158,Oy=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(ky),Cy=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(ky),Ny=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(ky),Py=2*Math.PI,Ry=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Py);function i(t){return e*yy(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*Py)},i.period=function(n){return t(e,n)},i}(1,.3),jy=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Py);function i(t){return 1-e*yy(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*Py)},i.period=function(n){return t(e,n)},i}(1,.3),Dy=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Py);function i(t){return((t=2*t-1)<0?e*yy(-t)*Math.sin((r-t)/n):2-e*yy(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*Py)},i.period=function(n){return t(e,n)},i}(1,.3);function Fy(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function Iy(t,e){return fetch(t,e).then(Fy)}function Ly(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function $y(t,e){return fetch(t,e).then(Ly)}function Uy(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function zy(t,e){return fetch(t,e).then(Uy)}function By(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),zy(e,n).then((function(e){return t(e,r)}))}}function Vy(t,e,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=Uv(t);return zy(e,n).then((function(t){return i.parse(t,r)}))}var qy=By(Bv),Hy=By(Xv);function Yy(t,e){return new Promise((function(n,r){var i=new Image;for(var o in e)i[o]=e[o];i.onerror=r,i.onload=function(){n(i)},i.src=t}))}function Wy(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Zy(t,e){return fetch(t,e).then(Wy)}function Gy(t){return(e,n)=>zy(e,n).then((e=>(new DOMParser).parseFromString(e,t)))}const Xy=Gy("application/xml");var Jy=Gy("text/html"),Ky=Gy("image/svg+xml");function Qy(t,e){var n,r=1;function i(){var i,o,a=n.length,s=0,c=0;for(i=0;i<a;++i)s+=(o=n[i]).x,c+=o.y;for(s=(s/a-t)*r,c=(c/a-e)*r,i=0;i<a;++i)(o=n[i]).x-=s,o.y-=c}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i}function tm(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,s,c,u,l,f,h,d=t._root,p={data:r},g=t._x0,v=t._y0,y=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((u=e>=(o=(g+y)/2))?g=o:y=o,(l=n>=(a=(v+m)/2))?v=a:m=a,i=d,!(d=d[f=l<<1|u]))return i[f]=p,t;if(s=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===s&&n===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(u=e>=(o=(g+y)/2))?g=o:y=o,(l=n>=(a=(v+m)/2))?v=a:m=a}while((f=l<<1|u)==(h=(c>=a)<<1|s>=o));return i[h]=d,i[f]=p,t}function em(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function nm(t){return t[0]}function rm(t){return t[1]}function im(t,e,n){var r=new om(null==e?nm:e,null==n?rm:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function om(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function am(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var sm=im.prototype=om.prototype;function cm(t){return function(){return t}}function um(t){return 1e-6*(t()-.5)}function lm(t){return t.x+t.vx}function fm(t){return t.y+t.vy}function hm(t){var e,n,r,i=1,o=1;function a(){for(var t,a,c,u,l,f,h,d=e.length,p=0;p<o;++p)for(a=im(e,lm,fm).visitAfter(s),t=0;t<d;++t)c=e[t],f=n[c.index],h=f*f,u=c.x+c.vx,l=c.y+c.vy,a.visit(g);function g(t,e,n,o,a){var s=t.data,d=t.r,p=f+d;if(!s)return e>u+p||o<u-p||n>l+p||a<l-p;if(s.index>c.index){var g=u-s.x-s.vx,v=l-s.y-s.vy,y=g*g+v*v;y<p*p&&(0===g&&(y+=(g=um(r))*g),0===v&&(y+=(v=um(r))*v),y=(p-(y=Math.sqrt(y)))/y*i,c.vx+=(g*=y)*(p=(d*=d)/(h+d)),c.vy+=(v*=y)*p,s.vx-=g*(p=1-p),s.vy-=v*p)}}}function s(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function c(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!=typeof t&&(t=cm(null==t?1:+t)),a.initialize=function(t,n){e=t,r=n,c()},a.iterations=function(t){return arguments.length?(o=+t,a):o},a.strength=function(t){return arguments.length?(i=+t,a):i},a.radius=function(e){return arguments.length?(t="function"==typeof e?e:cm(+e),c(),a):t},a}function dm(t){return t.index}function pm(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function gm(t){var e,n,r,i,o,a,s=dm,c=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},u=cm(30),l=1;function f(r){for(var i=0,s=t.length;i<l;++i)for(var c,u,f,h,d,p,g,v=0;v<s;++v)u=(c=t[v]).source,h=(f=c.target).x+f.vx-u.x-u.vx||um(a),d=f.y+f.vy-u.y-u.vy||um(a),h*=p=((p=Math.sqrt(h*h+d*d))-n[v])/p*r*e[v],d*=p,f.vx-=h*(g=o[v]),f.vy-=d*g,u.vx+=h*(g=1-g),u.vy+=d*g}function h(){if(r){var a,c,u=r.length,l=t.length,f=new Map(r.map(((t,e)=>[s(t,e,r),t])));for(a=0,i=new Array(u);a<l;++a)(c=t[a]).index=a,"object"!=typeof c.source&&(c.source=pm(f,c.source)),"object"!=typeof c.target&&(c.target=pm(f,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(a=0,o=new Array(l);a<l;++a)c=t[a],o[a]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);e=new Array(l),d(),n=new Array(l),p()}}function d(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+c(t[n],n,t)}function p(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+u(t[e],e,t)}return null==t&&(t=[]),f.initialize=function(t,e){r=t,a=e,h()},f.links=function(e){return arguments.length?(t=e,h(),f):t},f.id=function(t){return arguments.length?(s=t,f):s},f.iterations=function(t){return arguments.length?(l=+t,f):l},f.strength=function(t){return arguments.length?(c="function"==typeof t?t:cm(+t),d(),f):c},f.distance=function(t){return arguments.length?(u="function"==typeof t?t:cm(+t),p(),f):u},f}sm.copy=function(){var t,e,n=new om(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=am(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=am(e));return n},sm.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return tm(this.cover(e,n),e,n,t)},sm.addAll=function(t){var e,n,r,i,o=t.length,a=new Array(o),s=new Array(o),c=1/0,u=1/0,l=-1/0,f=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(a[n]=r,s[n]=i,r<c&&(c=r),r>l&&(l=r),i<u&&(u=i),i>f&&(f=i));if(c>l||u>f)return this;for(this.cover(c,u).cover(l,f),n=0;n<o;++n)tm(this,a[n],s[n],t[n]);return this},sm.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var a,s,c=i-n||1,u=this._root;n>t||t>=i||r>e||e>=o;)switch(s=(e<r)<<1|t<n,(a=new Array(4))[s]=u,u=a,c*=2,s){case 0:i=n+c,o=r+c;break;case 1:n=i-c,o=r+c;break;case 2:i=n+c,r=o-c;break;case 3:n=i-c,r=o-c}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},sm.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},sm.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},sm.find=function(t,e,n){var r,i,o,a,s,c,u,l=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new em(g,l,f,h,d)),null==n?n=1/0:(l=t-n,f=e-n,h=t+n,d=e+n,n*=n);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)<l||(s=c.y1)<f))if(g.length){var v=(i+a)/2,y=(o+s)/2;p.push(new em(g[3],v,y,a,s),new em(g[2],i,y,v,s),new em(g[1],v,o,a,y),new em(g[0],i,o,v,y)),(u=(e>=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-u],p[p.length-1-u]=c)}else{var m=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),b=m*m+_*_;if(b<n){var x=Math.sqrt(n=b);l=t-x,f=e-x,h=t+x,d=e+x,r=g.data}}return r},sm.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,s,c,u,l,f,h,d=this._root,p=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((u=o>=(s=(p+v)/2))?p=s:v=s,(l=a>=(c=(g+y)/2))?g=c:y=c,e=d,!(d=d[f=l<<1|u]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},sm.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},sm.root=function(){return this._root},sm.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},sm.visit=function(t){var e,n,r,i,o,a,s=[],c=this._root;for(c&&s.push(new em(c,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,o=e.x1,a=e.y1)&&c.length){var u=(r+o)/2,l=(i+a)/2;(n=c[3])&&s.push(new em(n,u,l,o,a)),(n=c[2])&&s.push(new em(n,r,l,u,a)),(n=c[1])&&s.push(new em(n,u,i,o,l)),(n=c[0])&&s.push(new em(n,r,i,u,l))}return this},sm.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new em(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var o,a=e.x0,s=e.y0,c=e.x1,u=e.y1,l=(a+c)/2,f=(s+u)/2;(o=i[0])&&n.push(new em(o,a,s,l,f)),(o=i[1])&&n.push(new em(o,l,s,c,f)),(o=i[2])&&n.push(new em(o,a,f,l,u)),(o=i[3])&&n.push(new em(o,l,f,c,u))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},sm.x=function(t){return arguments.length?(this._x=t,this):this._x},sm.y=function(t){return arguments.length?(this._y=t,this):this._y};const vm=4294967296;function ym(t){return t.x}function mm(t){return t.y}var _m=Math.PI*(3-Math.sqrt(5));function bm(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,c=Zh(f),u=ol("tick","end"),l=function(){let t=1;return()=>(t=(1664525*t+1013904223)%vm)/vm}();function f(){h(),u.call("tick",e),n<r&&(c.stop(),u.call("end",e))}function h(r){var c,u,l=t.length;void 0===r&&(r=1);for(var f=0;f<r;++f)for(n+=(o-n)*i,s.forEach((function(t){t(n)})),c=0;c<l;++c)null==(u=t[c]).fx?u.x+=u.vx*=a:(u.x=u.fx,u.vx=0),null==u.fy?u.y+=u.vy*=a:(u.y=u.fy,u.vy=0);return e}function d(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(.5+n),o=n*_m;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function p(e){return e.initialize&&e.initialize(t,l),e}return null==t&&(t=[]),d(),e={tick:h,restart:function(){return c.restart(f),e},stop:function(){return c.stop(),e},nodes:function(n){return arguments.length?(t=n,d(),s.forEach(p),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(a=1-t,e):1-a},randomSource:function(t){return arguments.length?(l=t,s.forEach(p),e):l},force:function(t,n){return arguments.length>1?(null==n?s.delete(t):s.set(t,p(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,c,u=0,l=t.length;for(null==r?r=1/0:r*=r,u=0;u<l;++u)(a=(i=e-(s=t[u]).x)*i+(o=n-s.y)*o)<r&&(c=s,r=a);return c},on:function(t,n){return arguments.length>1?(u.on(t,n),e):u.on(t)}}}function xm(){var t,e,n,r,i,o=cm(-30),a=1,s=1/0,c=.81;function u(n){var i,o=t.length,a=im(t,ym,mm).visitAfter(f);for(r=n,i=0;i<o;++i)e=t[i],a.visit(h)}function l(){if(t){var e,n,r=t.length;for(i=new Array(r),e=0;e<r;++e)n=t[e],i[n.index]=+o(n,e,t)}}function f(t){var e,n,r,o,a,s=0,c=0;if(t.length){for(r=o=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(s+=e.value,c+=n,r+=n*e.x,o+=n*e.y);t.x=r/c,t.y=o/c}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function h(t,o,u,l){if(!t.value)return!0;var f=t.x-e.x,h=t.y-e.y,d=l-o,p=f*f+h*h;if(d*d/c<p)return p<s&&(0===f&&(p+=(f=um(n))*f),0===h&&(p+=(h=um(n))*h),p<a&&(p=Math.sqrt(a*p)),e.vx+=f*t.value*r/p,e.vy+=h*t.value*r/p),!0;if(!(t.length||p>=s)){(t.data!==e||t.next)&&(0===f&&(p+=(f=um(n))*f),0===h&&(p+=(h=um(n))*h),p<a&&(p=Math.sqrt(a*p)));do{t.data!==e&&(d=i[t.data.index]*r/p,e.vx+=f*d,e.vy+=h*d)}while(t=t.next)}}return u.initialize=function(e,r){t=e,n=r,l()},u.strength=function(t){return arguments.length?(o="function"==typeof t?t:cm(+t),l(),u):o},u.distanceMin=function(t){return arguments.length?(a=t*t,u):Math.sqrt(a)},u.distanceMax=function(t){return arguments.length?(s=t*t,u):Math.sqrt(s)},u.theta=function(t){return arguments.length?(c=t*t,u):Math.sqrt(c)},u}function wm(t,e,n){var r,i,o,a=cm(.1);function s(t){for(var a=0,s=r.length;a<s;++a){var c=r[a],u=c.x-e||1e-6,l=c.y-n||1e-6,f=Math.sqrt(u*u+l*l),h=(o[a]-f)*i[a]*t/f;c.vx+=u*h,c.vy+=l*h}}function c(){if(r){var e,n=r.length;for(i=new Array(n),o=new Array(n),e=0;e<n;++e)o[e]=+t(r[e],e,r),i[e]=isNaN(o[e])?0:+a(r[e],e,r)}}return"function"!=typeof t&&(t=cm(+t)),null==e&&(e=0),null==n&&(n=0),s.initialize=function(t){r=t,c()},s.strength=function(t){return arguments.length?(a="function"==typeof t?t:cm(+t),c(),s):a},s.radius=function(e){return arguments.length?(t="function"==typeof e?e:cm(+e),c(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(n=+t,s):n},s}function Mm(t){var e,n,r,i=cm(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vx+=(r[o]-i.x)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=cm(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:cm(+t),a(),o):i},o.x=function(e){return arguments.length?(t="function"==typeof e?e:cm(+e),a(),o):t},o}function Em(t){var e,n,r,i=cm(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vy+=(r[o]-i.y)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=cm(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:cm(+t),a(),o):i},o.y=function(e){return arguments.length?(t="function"==typeof e?e:cm(+e),a(),o):t},o}function Sm(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Am(t){return(t=Sm(Math.abs(t)))?t[1]:NaN}var Tm,km=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Om(t){if(!(e=km.exec(t)))throw new Error("invalid format: "+t);var e;return new Cm({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Cm(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Nm(t,e){var n=Sm(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Om.prototype=Cm.prototype,Cm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Pm={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Nm(100*t,e),r:Nm,s:function(t,e){var n=Sm(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Tm=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Sm(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Rm(t){return t}var jm,Dm,Fm,Im=Array.prototype.map,Lm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $m(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Rm:(e=Im.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Rm:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Im.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Om(t)).fill,n=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,v=t.precision,y=t.trim,m=t.type;"n"===m?(g=!0,m="g"):Pm[m]||(void 0===v&&(v=12),y=!0,m="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",b="$"===h?o:/[%p]/.test(m)?c:"",x=Pm[m],w=/[defgprs%]/.test(m);function M(t){var i,o,c,h=_,M=b;if("c"===m)M=x(t)+M,t="";else{var E=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:x(Math.abs(t),v),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),E&&0==+t&&"+"!==f&&(E=!1),h=(E?"("===f?f:u:"-"===f||"("===f?"":f)+h,M=("s"===m?Lm[8+Tm/3]:"")+M+(E&&"("===f?")":""),w)for(i=-1,o=t.length;++i<o;)if(48>(c=t.charCodeAt(i))||c>57){M=(46===c?a+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var S=h.length+t.length+M.length,A=S<p?new Array(p-S+1).join(e):"";switch(g&&d&&(t=r(A+t,A.length?p-M.length:1/0),A=""),n){case"<":t=h+t+M+A;break;case"=":t=h+A+t+M;break;case"^":t=A.slice(0,S=A.length>>1)+h+t+M+A.slice(S);break;default:t=A+h+t+M}return s(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,e){var n=f(((t=Om(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Am(e)/3))),i=Math.pow(10,-r),o=Lm[8+r/3];return function(t){return n(i*t)+o}}}}function Um(t){return jm=$m(t),Dm=jm.format,Fm=jm.formatPrefix,jm}function zm(t){return Math.max(0,-Am(Math.abs(t)))}function Bm(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Am(e)/3)))-Am(Math.abs(t)))}function Vm(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Am(e)-Am(t))+1}Um({thousands:",",grouping:[3],currency:["$",""]});var qm=1e-6,Hm=1e-12,Ym=Math.PI,Wm=Ym/2,Zm=Ym/4,Gm=2*Ym,Xm=180/Ym,Jm=Ym/180,Km=Math.abs,Qm=Math.atan,t_=Math.atan2,e_=Math.cos,n_=Math.ceil,r_=Math.exp,i_=(Math.floor,Math.hypot),o_=Math.log,a_=Math.pow,s_=Math.sin,c_=Math.sign||function(t){return t>0?1:t<0?-1:0},u_=Math.sqrt,l_=Math.tan;function f_(t){return t>1?0:t<-1?Ym:Math.acos(t)}function h_(t){return t>1?Wm:t<-1?-Wm:Math.asin(t)}function d_(t){return(t=s_(t/2))*t}function p_(){}function g_(t,e){t&&y_.hasOwnProperty(t.type)&&y_[t.type](t,e)}var v_={Feature:function(t,e){g_(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)g_(n[r].geometry,e)}},y_={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){m_(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)m_(n[r],e,0)},Polygon:function(t,e){__(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)__(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)g_(n[r],e)}};function m_(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function __(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)m_(t[n],e,1);e.polygonEnd()}function b_(t,e){t&&v_.hasOwnProperty(t.type)?v_[t.type](t,e):g_(t,e)}var x_,w_,M_,E_,S_,A_,T_,k_,O_,C_,N_,P_,R_,j_,D_,F_,I_=new hc,L_=new hc,$_={point:p_,lineStart:p_,lineEnd:p_,polygonStart:function(){I_=new hc,$_.lineStart=U_,$_.lineEnd=z_},polygonEnd:function(){var t=+I_;L_.add(t<0?Gm+t:t),this.lineStart=this.lineEnd=this.point=p_},sphere:function(){L_.add(Gm)}};function U_(){$_.point=B_}function z_(){V_(x_,w_)}function B_(t,e){$_.point=V_,x_=t,w_=e,M_=t*=Jm,E_=e_(e=(e*=Jm)/2+Zm),S_=s_(e)}function V_(t,e){var n=(t*=Jm)-M_,r=n>=0?1:-1,i=r*n,o=e_(e=(e*=Jm)/2+Zm),a=s_(e),s=S_*a,c=E_*o+s*e_(i),u=s*r*s_(i);I_.add(t_(u,c)),M_=t,E_=o,S_=a}function q_(t){return L_=new hc,b_(t,$_),2*L_}function H_(t){return[t_(t[1],t[0]),h_(t[2])]}function Y_(t){var e=t[0],n=t[1],r=e_(n);return[r*e_(e),r*s_(e),s_(n)]}function W_(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Z_(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function G_(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function X_(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function J_(t){var e=u_(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var K_,Q_,tb,eb,nb,rb,ib,ob,ab,sb,cb,ub,lb,fb,hb,db,pb={point:gb,lineStart:yb,lineEnd:mb,polygonStart:function(){pb.point=_b,pb.lineStart=bb,pb.lineEnd=xb,j_=new hc,$_.polygonStart()},polygonEnd:function(){$_.polygonEnd(),pb.point=gb,pb.lineStart=yb,pb.lineEnd=mb,I_<0?(A_=-(k_=180),T_=-(O_=90)):j_>qm?O_=90:j_<-1e-6&&(T_=-90),F_[0]=A_,F_[1]=k_},sphere:function(){A_=-(k_=180),T_=-(O_=90)}};function gb(t,e){D_.push(F_=[A_=t,k_=t]),e<T_&&(T_=e),e>O_&&(O_=e)}function vb(t,e){var n=Y_([t*Jm,e*Jm]);if(R_){var r=Z_(R_,n),i=Z_([r[1],-r[0],0],r);J_(i),i=H_(i);var o,a=t-C_,s=a>0?1:-1,c=i[0]*Xm*s,u=Km(a)>180;u^(s*C_<c&&c<s*t)?(o=i[1]*Xm)>O_&&(O_=o):u^(s*C_<(c=(c+360)%360-180)&&c<s*t)?(o=-i[1]*Xm)<T_&&(T_=o):(e<T_&&(T_=e),e>O_&&(O_=e)),u?t<C_?wb(A_,t)>wb(A_,k_)&&(k_=t):wb(t,k_)>wb(A_,k_)&&(A_=t):k_>=A_?(t<A_&&(A_=t),t>k_&&(k_=t)):t>C_?wb(A_,t)>wb(A_,k_)&&(k_=t):wb(t,k_)>wb(A_,k_)&&(A_=t)}else D_.push(F_=[A_=t,k_=t]);e<T_&&(T_=e),e>O_&&(O_=e),R_=n,C_=t}function yb(){pb.point=vb}function mb(){F_[0]=A_,F_[1]=k_,pb.point=gb,R_=null}function _b(t,e){if(R_){var n=t-C_;j_.add(Km(n)>180?n+(n>0?360:-360):n)}else N_=t,P_=e;$_.point(t,e),vb(t,e)}function bb(){$_.lineStart()}function xb(){_b(N_,P_),$_.lineEnd(),Km(j_)>qm&&(A_=-(k_=180)),F_[0]=A_,F_[1]=k_,R_=null}function wb(t,e){return(e-=t)<0?e+360:e}function Mb(t,e){return t[0]-e[0]}function Eb(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function Sb(t){var e,n,r,i,o,a,s;if(O_=k_=-(A_=T_=1/0),D_=[],b_(t,pb),n=D_.length){for(D_.sort(Mb),e=1,o=[r=D_[0]];e<n;++e)Eb(r,(i=D_[e])[0])||Eb(r,i[1])?(wb(r[0],i[1])>wb(r[0],r[1])&&(r[1]=i[1]),wb(i[0],r[1])>wb(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(s=wb(r[1],i[0]))>a&&(a=s,A_=i[0],k_=r[1])}return D_=F_=null,A_===1/0||T_===1/0?[[NaN,NaN],[NaN,NaN]]:[[A_,T_],[k_,O_]]}var Ab={sphere:p_,point:Tb,lineStart:Ob,lineEnd:Pb,polygonStart:function(){Ab.lineStart=Rb,Ab.lineEnd=jb},polygonEnd:function(){Ab.lineStart=Ob,Ab.lineEnd=Pb}};function Tb(t,e){t*=Jm;var n=e_(e*=Jm);kb(n*e_(t),n*s_(t),s_(e))}function kb(t,e,n){++K_,tb+=(t-tb)/K_,eb+=(e-eb)/K_,nb+=(n-nb)/K_}function Ob(){Ab.point=Cb}function Cb(t,e){t*=Jm;var n=e_(e*=Jm);fb=n*e_(t),hb=n*s_(t),db=s_(e),Ab.point=Nb,kb(fb,hb,db)}function Nb(t,e){t*=Jm;var n=e_(e*=Jm),r=n*e_(t),i=n*s_(t),o=s_(e),a=t_(u_((a=hb*o-db*i)*a+(a=db*r-fb*o)*a+(a=fb*i-hb*r)*a),fb*r+hb*i+db*o);Q_+=a,rb+=a*(fb+(fb=r)),ib+=a*(hb+(hb=i)),ob+=a*(db+(db=o)),kb(fb,hb,db)}function Pb(){Ab.point=Tb}function Rb(){Ab.point=Db}function jb(){Fb(ub,lb),Ab.point=Tb}function Db(t,e){ub=t,lb=e,t*=Jm,e*=Jm,Ab.point=Fb;var n=e_(e);fb=n*e_(t),hb=n*s_(t),db=s_(e),kb(fb,hb,db)}function Fb(t,e){t*=Jm;var n=e_(e*=Jm),r=n*e_(t),i=n*s_(t),o=s_(e),a=hb*o-db*i,s=db*r-fb*o,c=fb*i-hb*r,u=i_(a,s,c),l=h_(u),f=u&&-l/u;ab.add(f*a),sb.add(f*s),cb.add(f*c),Q_+=l,rb+=l*(fb+(fb=r)),ib+=l*(hb+(hb=i)),ob+=l*(db+(db=o)),kb(fb,hb,db)}function Ib(t){K_=Q_=tb=eb=nb=rb=ib=ob=0,ab=new hc,sb=new hc,cb=new hc,b_(t,Ab);var e=+ab,n=+sb,r=+cb,i=i_(e,n,r);return i<Hm&&(e=rb,n=ib,r=ob,Q_<qm&&(e=tb,n=eb,r=nb),(i=i_(e,n,r))<Hm)?[NaN,NaN]:[t_(n,e)*Xm,h_(r/i)*Xm]}function Lb(t){return function(){return t}}function $b(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function Ub(t,e){return[Km(t)>Ym?t+Math.round(-t/Gm)*Gm:t,e]}function zb(t,e,n){return(t%=Gm)?e||n?$b(Vb(t),qb(e,n)):Vb(t):e||n?qb(e,n):Ub}function Bb(t){return function(e,n){return[(e+=t)>Ym?e-Gm:e<-Ym?e+Gm:e,n]}}function Vb(t){var e=Bb(t);return e.invert=Bb(-t),e}function qb(t,e){var n=e_(t),r=s_(t),i=e_(e),o=s_(e);function a(t,e){var a=e_(e),s=e_(t)*a,c=s_(t)*a,u=s_(e),l=u*n+s*r;return[t_(c*i-l*o,s*n-u*r),h_(l*i+c*o)]}return a.invert=function(t,e){var a=e_(e),s=e_(t)*a,c=s_(t)*a,u=s_(e),l=u*i-c*o;return[t_(c*i+u*o,s*n+l*r),h_(l*n-s*r)]},a}function Hb(t){function e(e){return(e=t(e[0]*Jm,e[1]*Jm))[0]*=Xm,e[1]*=Xm,e}return t=zb(t[0]*Jm,t[1]*Jm,t.length>2?t[2]*Jm:0),e.invert=function(e){return(e=t.invert(e[0]*Jm,e[1]*Jm))[0]*=Xm,e[1]*=Xm,e},e}function Yb(t,e,n,r,i,o){if(n){var a=e_(e),s=s_(e),c=r*n;null==i?(i=e+r*Gm,o=e-c/2):(i=Wb(a,i),o=Wb(a,o),(r>0?i<o:i>o)&&(i+=r*Gm));for(var u,l=i;r>0?l>o:l<o;l-=c)u=H_([a,-s*e_(l),-s*s_(l)]),t.point(u[0],u[1])}}function Wb(t,e){(e=Y_(e))[0]-=t,J_(e);var n=f_(-e[1]);return((-e[2]<0?-n:n)+Gm-qm)%Gm}function Zb(){var t,e,n=Lb([0,0]),r=Lb(90),i=Lb(6),o={point:function(n,r){t.push(n=e(n,r)),n[0]*=Xm,n[1]*=Xm}};function a(){var a=n.apply(this,arguments),s=r.apply(this,arguments)*Jm,c=i.apply(this,arguments)*Jm;return t=[],e=zb(-a[0]*Jm,-a[1]*Jm,0).invert,Yb(o,s,c,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return a.center=function(t){return arguments.length?(n="function"==typeof t?t:Lb([+t[0],+t[1]]),a):n},a.radius=function(t){return arguments.length?(r="function"==typeof t?t:Lb(+t),a):r},a.precision=function(t){return arguments.length?(i="function"==typeof t?t:Lb(+t),a):i},a}function Gb(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:p_,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Xb(t,e){return Km(t[0]-e[0])<qm&&Km(t[1]-e[1])<qm}function Jb(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Kb(t,e,n,r,i){var o,a,s=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(Xb(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}a[0]+=2e-6}s.push(n=new Jb(r,t,null,!0)),c.push(n.o=new Jb(r,null,n,!1)),s.push(n=new Jb(a,t,null,!1)),c.push(n.o=new Jb(a,null,n,!0))}})),s.length){for(c.sort(e),Qb(s),Qb(c),o=0,a=c.length;o<a;++o)c[o].e=n=!n;for(var u,l,f=s[0];;){for(var h=f,d=!0;h.v;)if((h=h.n)===f)return;u=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,a=u.length;o<a;++o)i.point((l=u[o])[0],l[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(u=h.p.z,o=u.length-1;o>=0;--o)i.point((l=u[o])[0],l[1]);else r(h.x,h.p.x,-1,i);h=h.p}u=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function Qb(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function tx(t){return Km(t[0])<=Ym?t[0]:c_(t[0])*((Km(t[0])+Ym)%Gm-Ym)}function ex(t,e){var n=tx(e),r=e[1],i=s_(r),o=[s_(n),-e_(n),0],a=0,s=0,c=new hc;1===i?r=Wm+qm:-1===i&&(r=-Wm-qm);for(var u=0,l=t.length;u<l;++u)if(h=(f=t[u]).length)for(var f,h,d=f[h-1],p=tx(d),g=d[1]/2+Zm,v=s_(g),y=e_(g),m=0;m<h;++m,p=b,v=w,y=M,d=_){var _=f[m],b=tx(_),x=_[1]/2+Zm,w=s_(x),M=e_(x),E=b-p,S=E>=0?1:-1,A=S*E,T=A>Ym,k=v*w;if(c.add(t_(k*S*s_(A),y*M+k*e_(A))),a+=T?E+S*Gm:E,T^p>=n^b>=n){var O=Z_(Y_(d),Y_(_));J_(O);var C=Z_(o,O);J_(C);var N=(T^E>=0?-1:1)*h_(C[2]);(r>N||r===N&&(O[0]||O[1]))&&(s+=T^E>=0?1:-1)}}return(a<-1e-6||a<qm&&c<-1e-12)^1&s}function nx(t,e,n,r){return function(i){var o,a,s,c=e(i),u=Gb(),l=e(u),f=!1,h={point:d,lineStart:g,lineEnd:v,polygonStart:function(){h.point=y,h.lineStart=m,h.lineEnd=_,a=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=g,h.lineEnd=v,a=fu(a);var t=ex(o,r);a.length?(f||(i.polygonStart(),f=!0),Kb(a,ix,t,n,i)):t&&(f||(i.polygonStart(),f=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(e,n){t(e,n)&&i.point(e,n)}function p(t,e){c.point(t,e)}function g(){h.point=p,c.lineStart()}function v(){h.point=d,c.lineEnd()}function y(t,e){s.push([t,e]),l.point(t,e)}function m(){l.lineStart(),s=[]}function _(){y(s[0][0],s[0][1]),l.lineEnd();var t,e,n,r,c=l.clean(),h=u.result(),d=h.length;if(s.pop(),o.push(s),s=null,d)if(1&c){if((e=(n=h[0]).length-1)>0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(rx))}return h}}function rx(t){return t.length>1}function ix(t,e){return((t=t.x)[0]<0?t[1]-Wm-qm:Wm-t[1])-((e=e.x)[0]<0?e[1]-Wm-qm:Wm-e[1])}Ub.invert=Ub;const ox=nx((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s=o>0?Ym:-Ym,c=Km(o-n);Km(c-Ym)<qm?(t.point(n,r=(r+a)/2>0?Wm:-Wm),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(o,r),e=0):i!==s&&c>=Ym&&(Km(n-i)<qm&&(n-=i*qm),Km(o-s)<qm&&(o-=s*qm),r=function(t,e,n,r){var i,o,a=s_(t-n);return Km(a)>qm?Qm((s_(e)*(o=e_(r))*s_(n)-s_(r)*(i=e_(e))*s_(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=o,r=a),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Wm,r.point(-Ym,i),r.point(0,i),r.point(Ym,i),r.point(Ym,0),r.point(Ym,-i),r.point(0,-i),r.point(-Ym,-i),r.point(-Ym,0),r.point(-Ym,i);else if(Km(t[0]-e[0])>qm){var o=t[0]<e[0]?Ym:-Ym;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}),[-Ym,-Wm]);function ax(t){var e=e_(t),n=6*Jm,r=e>0,i=Km(e)>qm;function o(t,n){return e_(t)*e_(n)>e}function a(t,n,r){var i=[1,0,0],o=Z_(Y_(t),Y_(n)),a=W_(o,o),s=o[0],c=a-s*s;if(!c)return!r&&t;var u=e*a/c,l=-e*s/c,f=Z_(i,o),h=X_(i,u);G_(h,X_(o,l));var d=f,p=W_(h,d),g=W_(d,d),v=p*p-g*(W_(h,h)-1);if(!(v<0)){var y=u_(v),m=X_(d,(-p-y)/g);if(G_(m,h),m=H_(m),!r)return m;var _,b=t[0],x=n[0],w=t[1],M=n[1];x<b&&(_=b,b=x,x=_);var E=x-b,S=Km(E-Ym)<qm;if(!S&&M<w&&(_=w,w=M,M=_),S||E<qm?S?w+M>0^m[1]<(Km(m[0]-b)<qm?w:M):w<=m[1]&&m[1]<=M:E>Ym^(b<=m[0]&&m[0]<=x)){var A=X_(d,(-p+y)/g);return G_(A,h),[m,H_(A)]}}}function s(e,n){var i=r?t:Ym-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return nx(o,(function(t){var e,n,c,u,l;return{lineStart:function(){u=c=!1,l=1},point:function(f,h){var d,p=[f,h],g=o(f,h),v=r?g?0:s(f,h):g?s(f+(f<0?Ym:-Ym),h):0;if(!e&&(u=c=g)&&t.lineStart(),g!==c&&(!(d=a(e,p))||Xb(e,d)||Xb(p,d))&&(p[2]=1),g!==c)l=0,g?(t.lineStart(),d=a(p,e),t.point(d[0],d[1])):(d=a(e,p),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&&e&&r^g){var y;v&n||!(y=a(p,e,!0))||(l=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!g||e&&Xb(e,p)||t.point(p[0],p[1]),e=p,c=g,n=v},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return l|(u&&c)<<1}}}),(function(e,r,i,o){Yb(o,t,n,i,e,r)}),r?[0,-t]:[-Ym,t-Ym])}var sx,cx,ux,lx,fx=1e9,hx=-fx;function dx(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,s,u){var l=0,f=0;if(null==i||(l=a(i,s))!==(f=a(o,s))||c(i,o)<0^s>0)do{u.point(0===l||3===l?t:n,l>1?r:e)}while((l=(l+s+4)%4)!==f);else u.point(o[0],o[1])}function a(r,i){return Km(r[0]-t)<qm?i>0?0:3:Km(r[0]-n)<qm?i>0?2:1:Km(r[1]-e)<qm?i>0?1:0:i>0?3:2}function s(t,e){return c(t.x,e.x)}function c(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var c,u,l,f,h,d,p,g,v,y,m,_=a,b=Gb(),x={point:w,lineStart:function(){x.point=M,u&&u.push(l=[]),y=!0,v=!1,p=g=NaN},lineEnd:function(){c&&(M(f,h),d&&v&&b.rejoin(),c.push(b.result())),x.point=w,v&&_.lineEnd()},polygonStart:function(){_=b,c=[],u=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=u.length;n<i;++n)for(var o,a,s=u[n],c=1,l=s.length,f=s[0],h=f[0],d=f[1];c<l;++c)o=h,a=d,h=(f=s[c])[0],d=f[1],a<=r?d>r&&(h-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--e;return e}(),n=m&&e,i=(c=fu(c)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&Kb(c,s,e,o,a),a.polygonEnd()),_=a,c=u=l=null}};function w(t,e){i(t,e)&&_.point(t,e)}function M(o,a){var s=i(o,a);if(u&&l.push([o,a]),y)f=o,h=a,d=s,y=!1,s&&(_.lineStart(),_.point(o,a));else if(s&&v)_.point(o,a);else{var c=[p=Math.max(hx,Math.min(fx,p)),g=Math.max(hx,Math.min(fx,g))],b=[o=Math.max(hx,Math.min(fx,o)),a=Math.max(hx,Math.min(fx,a))];!function(t,e,n,r,i,o){var a,s=t[0],c=t[1],u=0,l=1,f=e[0]-s,h=e[1]-c;if(a=n-s,f||!(a>0)){if(a/=f,f<0){if(a<u)return;a<l&&(l=a)}else if(f>0){if(a>l)return;a>u&&(u=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>u&&(u=a)}else if(f>0){if(a<u)return;a<l&&(l=a)}if(a=r-c,h||!(a>0)){if(a/=h,h<0){if(a<u)return;a<l&&(l=a)}else if(h>0){if(a>l)return;a>u&&(u=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>l)return;a>u&&(u=a)}else if(h>0){if(a<u)return;a<l&&(l=a)}return u>0&&(t[0]=s+u*f,t[1]=c+u*h),l<1&&(e[0]=s+l*f,e[1]=c+l*h),!0}}}}}(c,b,t,e,n,r)?s&&(_.lineStart(),_.point(o,a),m=!1):(v||(_.lineStart(),_.point(c[0],c[1])),_.point(b[0],b[1]),s||_.lineEnd(),m=!1)}p=o,g=a,v=s}return x}}function px(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=dx(r,i,o,a)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[r,i],[o,a]]}}}var gx={sphere:p_,point:p_,lineStart:function(){gx.point=yx,gx.lineEnd=vx},lineEnd:p_,polygonStart:p_,polygonEnd:p_};function vx(){gx.point=gx.lineEnd=p_}function yx(t,e){cx=t*=Jm,ux=s_(e*=Jm),lx=e_(e),gx.point=mx}function mx(t,e){t*=Jm;var n=s_(e*=Jm),r=e_(e),i=Km(t-cx),o=e_(i),a=r*s_(i),s=lx*n-ux*r*o,c=ux*n+lx*r*o;sx.add(t_(u_(a*a+s*s),c)),cx=t,ux=n,lx=r}function _x(t){return sx=new hc,b_(t,gx),+sx}var bx=[null,null],xx={type:"LineString",coordinates:bx};function wx(t,e){return bx[0]=t,bx[1]=e,_x(xx)}var Mx={Feature:function(t,e){return Sx(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(Sx(n[r].geometry,e))return!0;return!1}},Ex={Sphere:function(){return!0},Point:function(t,e){return Ax(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ax(n[r],e))return!0;return!1},LineString:function(t,e){return Tx(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Tx(n[r],e))return!0;return!1},Polygon:function(t,e){return kx(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(kx(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(Sx(n[r],e))return!0;return!1}};function Sx(t,e){return!(!t||!Ex.hasOwnProperty(t.type))&&Ex[t.type](t,e)}function Ax(t,e){return 0===wx(t,e)}function Tx(t,e){for(var n,r,i,o=0,a=t.length;o<a;o++){if(0===(r=wx(t[o],e)))return!0;if(o>0&&(i=wx(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<Hm*i)return!0;n=r}return!1}function kx(t,e){return!!ex(t.map(Ox),Cx(e))}function Ox(t){return(t=t.map(Cx)).pop(),t}function Cx(t){return[t[0]*Jm,t[1]*Jm]}function Nx(t,e){return(t&&Mx.hasOwnProperty(t.type)?Mx[t.type]:Sx)(t,e)}function Px(t,e,n){var r=gu(t,e-qm,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function Rx(t,e,n){var r=gu(t,e-qm,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function jx(){var t,e,n,r,i,o,a,s,c,u,l,f,h=10,d=h,p=90,g=360,v=2.5;function y(){return{type:"MultiLineString",coordinates:m()}}function m(){return gu(n_(r/p)*p,n,p).map(l).concat(gu(n_(s/g)*g,a,g).map(f)).concat(gu(n_(e/h)*h,t,h).filter((function(t){return Km(t%p)>qm})).map(c)).concat(gu(n_(o/d)*d,i,d).filter((function(t){return Km(t%g)>qm})).map(u))}return y.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(f(a).slice(1),l(n).reverse().slice(1),f(s).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),s>a&&(t=s,s=a,a=t),y.precision(v)):[[r,s],[n,a]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),o>i&&(n=o,o=i,i=n),y.precision(v)):[[e,o],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],y):[p,g]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(v=+h,c=Px(o,i,90),u=Rx(e,t,v),l=Px(s,a,90),f=Rx(r,n,v),y):v},y.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Dx(){return jx()()}function Fx(t,e){var n=t[0]*Jm,r=t[1]*Jm,i=e[0]*Jm,o=e[1]*Jm,a=e_(r),s=s_(r),c=e_(o),u=s_(o),l=a*e_(n),f=a*s_(n),h=c*e_(i),d=c*s_(i),p=2*h_(u_(d_(o-r)+a*c*d_(i-n))),g=s_(p),v=p?function(t){var e=s_(t*=p)/g,n=s_(p-t)/g,r=n*l+e*h,i=n*f+e*d,o=n*s+e*u;return[t_(i,r)*Xm,t_(o,u_(r*r+i*i))*Xm]}:function(){return[n*Xm,r*Xm]};return v.distance=p,v}const Ix=t=>t;var Lx,$x,Ux,zx,Bx=new hc,Vx=new hc,qx={point:p_,lineStart:p_,lineEnd:p_,polygonStart:function(){qx.lineStart=Hx,qx.lineEnd=Zx},polygonEnd:function(){qx.lineStart=qx.lineEnd=qx.point=p_,Bx.add(Km(Vx)),Vx=new hc},result:function(){var t=Bx/2;return Bx=new hc,t}};function Hx(){qx.point=Yx}function Yx(t,e){qx.point=Wx,Lx=Ux=t,$x=zx=e}function Wx(t,e){Vx.add(zx*t-Ux*e),Ux=t,zx=e}function Zx(){Wx(Lx,$x)}const Gx=qx;var Xx=1/0,Jx=Xx,Kx=-Xx,Qx=Kx,tw={point:function(t,e){t<Xx&&(Xx=t),t>Kx&&(Kx=t),e<Jx&&(Jx=e),e>Qx&&(Qx=e)},lineStart:p_,lineEnd:p_,polygonStart:p_,polygonEnd:p_,result:function(){var t=[[Xx,Jx],[Kx,Qx]];return Kx=Qx=-(Jx=Xx=1/0),t}};const ew=tw;var nw,rw,iw,ow,aw=0,sw=0,cw=0,uw=0,lw=0,fw=0,hw=0,dw=0,pw=0,gw={point:vw,lineStart:yw,lineEnd:bw,polygonStart:function(){gw.lineStart=xw,gw.lineEnd=ww},polygonEnd:function(){gw.point=vw,gw.lineStart=yw,gw.lineEnd=bw},result:function(){var t=pw?[hw/pw,dw/pw]:fw?[uw/fw,lw/fw]:cw?[aw/cw,sw/cw]:[NaN,NaN];return aw=sw=cw=uw=lw=fw=hw=dw=pw=0,t}};function vw(t,e){aw+=t,sw+=e,++cw}function yw(){gw.point=mw}function mw(t,e){gw.point=_w,vw(iw=t,ow=e)}function _w(t,e){var n=t-iw,r=e-ow,i=u_(n*n+r*r);uw+=i*(iw+t)/2,lw+=i*(ow+e)/2,fw+=i,vw(iw=t,ow=e)}function bw(){gw.point=vw}function xw(){gw.point=Mw}function ww(){Ew(nw,rw)}function Mw(t,e){gw.point=Ew,vw(nw=iw=t,rw=ow=e)}function Ew(t,e){var n=t-iw,r=e-ow,i=u_(n*n+r*r);uw+=i*(iw+t)/2,lw+=i*(ow+e)/2,fw+=i,hw+=(i=ow*t-iw*e)*(iw+t),dw+=i*(ow+e),pw+=3*i,vw(iw=t,ow=e)}const Sw=gw;function Aw(t){this._context=t}Aw.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Gm)}},result:p_};var Tw,kw,Ow,Cw,Nw,Pw=new hc,Rw={point:p_,lineStart:function(){Rw.point=jw},lineEnd:function(){Tw&&Dw(kw,Ow),Rw.point=p_},polygonStart:function(){Tw=!0},polygonEnd:function(){Tw=null},result:function(){var t=+Pw;return Pw=new hc,t}};function jw(t,e){Rw.point=Dw,kw=Cw=t,Ow=Nw=e}function Dw(t,e){Cw-=t,Nw-=e,Pw.add(u_(Cw*Cw+Nw*Nw)),Cw=t,Nw=e}const Fw=Rw;function Iw(){this._string=[]}function Lw(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function $w(t,e){var n,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),b_(t,n(r))),r.result()}return o.area=function(t){return b_(t,n(Gx)),Gx.result()},o.measure=function(t){return b_(t,n(Fw)),Fw.result()},o.bounds=function(t){return b_(t,n(ew)),ew.result()},o.centroid=function(t){return b_(t,n(Sw)),Sw.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,Ix):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new Iw):new Aw(e=t),"function"!=typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)}function Uw(t){return{stream:zw(t)}}function zw(t){return function(e){var n=new Bw;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Bw(){}function Vw(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),b_(n,t.stream(ew)),e(ew.result()),null!=r&&t.clipExtent(r),t}function qw(t,e,n){return Vw(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])}),n)}function Hw(t,e,n){return qw(t,[[0,0],e],n)}function Yw(t,e,n){return Vw(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function Ww(t,e,n){return Vw(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}Iw.prototype={_radius:4.5,_circle:Lw(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Lw(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Bw.prototype={constructor:Bw,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Zw=e_(30*Jm);function Gw(t,e){return+e?function(t,e){function n(r,i,o,a,s,c,u,l,f,h,d,p,g,v){var y=u-r,m=l-i,_=y*y+m*m;if(_>4*e&&g--){var b=a+h,x=s+d,w=c+p,M=u_(b*b+x*x+w*w),E=h_(w/=M),S=Km(Km(w)-1)<qm||Km(o-f)<qm?(o+f)/2:t_(x,b),A=t(S,E),T=A[0],k=A[1],O=T-r,C=k-i,N=m*O-y*C;(N*N/_>e||Km((y*O+m*C)/_-.5)>.3||a*h+s*d+c*p<Zw)&&(n(r,i,o,a,s,c,T,k,S,b/=M,x/=M,w,g,v),v.point(T,k),n(T,k,S,b,x,w,u,l,f,h,d,p,g,v))}}return function(e){var r,i,o,a,s,c,u,l,f,h,d,p,g={point:v,lineStart:y,lineEnd:_,polygonStart:function(){e.polygonStart(),g.lineStart=b},polygonEnd:function(){e.polygonEnd(),g.lineStart=y}};function v(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){l=NaN,g.point=m,e.lineStart()}function m(r,i){var o=Y_([r,i]),a=t(r,i);n(l,f,u,h,d,p,l=a[0],f=a[1],u=r,h=o[0],d=o[1],p=o[2],16,e),e.point(l,f)}function _(){g.point=v,e.lineEnd()}function b(){y(),g.point=x,g.lineEnd=w}function x(t,e){m(r=t,e),i=l,o=f,a=h,s=d,c=p,g.point=m}function w(){n(l,f,u,h,d,p,i,o,r,a,s,c,16,e),g.lineEnd=_,_()}return g}}(t,e):function(t){return zw({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var Xw=zw({point:function(t,e){this.stream.point(t*Jm,e*Jm)}});function Jw(t,e,n,r,i,o){if(!o)return function(t,e,n,r,i){function o(o,a){return[e+t*(o*=r),n-t*(a*=i)]}return o.invert=function(o,a){return[(o-e)/t*r,(n-a)/t*i]},o}(t,e,n,r,i);var a=e_(o),s=s_(o),c=a*t,u=s*t,l=a/t,f=s/t,h=(s*n-a*e)/t,d=(s*e+a*n)/t;function p(t,o){return[c*(t*=r)-u*(o*=i)+e,n-u*t-c*o]}return p.invert=function(t,e){return[r*(l*t-f*e+h),i*(d-f*t-l*e)]},p}function Kw(t){return Qw((function(){return t}))()}function Qw(t){var e,n,r,i,o,a,s,c,u,l,f=150,h=480,d=250,p=0,g=0,v=0,y=0,m=0,_=0,b=1,x=1,w=null,M=ox,E=null,S=Ix,A=.5;function T(t){return c(t[0]*Jm,t[1]*Jm)}function k(t){return(t=c.invert(t[0],t[1]))&&[t[0]*Xm,t[1]*Xm]}function O(){var t=Jw(f,0,0,b,x,_).apply(null,e(p,g)),r=Jw(f,h-t[0],d-t[1],b,x,_);return n=zb(v,y,m),s=$b(e,r),c=$b(n,s),a=Gw(s,A),C()}function C(){return u=l=null,T}return T.stream=function(t){return u&&l===t?u:u=Xw(function(t){return zw({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(M(a(S(l=t)))))},T.preclip=function(t){return arguments.length?(M=t,w=void 0,C()):M},T.postclip=function(t){return arguments.length?(S=t,E=r=i=o=null,C()):S},T.clipAngle=function(t){return arguments.length?(M=+t?ax(w=t*Jm):(w=null,ox),C()):w*Xm},T.clipExtent=function(t){return arguments.length?(S=null==t?(E=r=i=o=null,Ix):dx(E=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),C()):null==E?null:[[E,r],[i,o]]},T.scale=function(t){return arguments.length?(f=+t,O()):f},T.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],O()):[h,d]},T.center=function(t){return arguments.length?(p=t[0]%360*Jm,g=t[1]%360*Jm,O()):[p*Xm,g*Xm]},T.rotate=function(t){return arguments.length?(v=t[0]%360*Jm,y=t[1]%360*Jm,m=t.length>2?t[2]%360*Jm:0,O()):[v*Xm,y*Xm,m*Xm]},T.angle=function(t){return arguments.length?(_=t%360*Jm,O()):_*Xm},T.reflectX=function(t){return arguments.length?(b=t?-1:1,O()):b<0},T.reflectY=function(t){return arguments.length?(x=t?-1:1,O()):x<0},T.precision=function(t){return arguments.length?(a=Gw(s,A=t*t),C()):u_(A)},T.fitExtent=function(t,e){return qw(T,t,e)},T.fitSize=function(t,e){return Hw(T,t,e)},T.fitWidth=function(t,e){return Yw(T,t,e)},T.fitHeight=function(t,e){return Ww(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&k,O()}}function tM(t){var e=0,n=Ym/3,r=Qw(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Jm,n=t[1]*Jm):[e*Xm,n*Xm]},i}function eM(t,e){var n=s_(t),r=(n+s_(e))/2;if(Km(r)<qm)return function(t){var e=e_(t);function n(t,n){return[t*e,s_(n)/e]}return n.invert=function(t,n){return[t/e,h_(n*e)]},n}(t);var i=1+n*(2*r-n),o=u_(i)/r;function a(t,e){var n=u_(i-2*r*s_(e))/r;return[n*s_(t*=r),o-n*e_(t)]}return a.invert=function(t,e){var n=o-e,a=t_(t,Km(n))*c_(n);return n*r<0&&(a-=Ym*c_(t)*c_(n)),[a/r,h_((i-(t*t+n*n)*r*r)/(2*r))]},a}function nM(){return tM(eM).scale(155.424).center([0,33.6442])}function rM(){return nM().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function iM(){var t,e,n,r,i,o,a=rM(),s=nM().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=nM().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){o=[t,e]}};function l(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(r.point(e,a),o)||(i.point(e,a),o)}function f(){return t=e=null,l}return l.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},l.stream=function(n){return t&&e===n?t:(r=[a.stream(e=n),s.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},l.precision=function(t){return arguments.length?(a.precision(t),s.precision(t),c.precision(t),f()):a.precision()},l.scale=function(t){return arguments.length?(a.scale(t),s.scale(.35*t),c.scale(t),l.translate(a.translate())):a.scale()},l.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],l=+t[1];return n=a.translate(t).clipExtent([[o-.455*e,l-.238*e],[o+.455*e,l+.238*e]]).stream(u),r=s.translate([o-.307*e,l+.201*e]).clipExtent([[o-.425*e+qm,l+.12*e+qm],[o-.214*e-qm,l+.234*e-qm]]).stream(u),i=c.translate([o-.205*e,l+.212*e]).clipExtent([[o-.214*e+qm,l+.166*e+qm],[o-.115*e-qm,l+.234*e-qm]]).stream(u),f()},l.fitExtent=function(t,e){return qw(l,t,e)},l.fitSize=function(t,e){return Hw(l,t,e)},l.fitWidth=function(t,e){return Yw(l,t,e)},l.fitHeight=function(t,e){return Ww(l,t,e)},l.scale(1070)}function oM(t){return function(e,n){var r=e_(e),i=e_(n),o=t(r*i);return o===1/0?[2,0]:[o*i*s_(e),o*s_(n)]}}function aM(t){return function(e,n){var r=u_(e*e+n*n),i=t(r),o=s_(i),a=e_(i);return[t_(e*o,r*a),h_(r&&n*o/r)]}}var sM=oM((function(t){return u_(2/(1+t))}));function cM(){return Kw(sM).scale(124.75).clipAngle(179.999)}sM.invert=aM((function(t){return 2*h_(t/2)}));var uM=oM((function(t){return(t=f_(t))&&t/s_(t)}));function lM(){return Kw(uM).scale(79.4188).clipAngle(179.999)}function fM(t,e){return[t,o_(l_((Wm+e)/2))]}function hM(){return dM(fM).scale(961/Gm)}function dM(t){var e,n,r,i=Kw(t),o=i.center,a=i.scale,s=i.translate,c=i.clipExtent,u=null;function l(){var o=Ym*a(),s=i(Hb(i.rotate()).invert([0,0]));return c(null==u?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:t===fM?[[Math.max(s[0]-o,u),e],[Math.min(s[0]+o,n),r]]:[[u,Math.max(s[1]-o,e)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),l()):a()},i.translate=function(t){return arguments.length?(s(t),l()):s()},i.center=function(t){return arguments.length?(o(t),l()):o()},i.clipExtent=function(t){return arguments.length?(null==t?u=e=n=r=null:(u=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),l()):null==u?null:[[u,e],[n,r]]},l()}function pM(t){return l_((Wm+t)/2)}function gM(t,e){var n=e_(t),r=t===e?s_(t):o_(n/e_(e))/o_(pM(e)/pM(t)),i=n*a_(pM(t),r)/r;if(!r)return fM;function o(t,e){i>0?e<-Wm+qm&&(e=-Wm+qm):e>Wm-qm&&(e=Wm-qm);var n=i/a_(pM(e),r);return[n*s_(r*t),i-n*e_(r*t)]}return o.invert=function(t,e){var n=i-e,o=c_(r)*u_(t*t+n*n),a=t_(t,Km(n))*c_(n);return n*r<0&&(a-=Ym*c_(t)*c_(n)),[a/r,2*Qm(a_(i/o,1/r))-Wm]},o}function vM(){return tM(gM).scale(109.5).parallels([30,30])}function yM(t,e){return[t,e]}function mM(){return Kw(yM).scale(152.63)}function _M(t,e){var n=e_(t),r=t===e?s_(t):(n-e_(e))/(e-t),i=n/r+t;if(Km(r)<qm)return yM;function o(t,e){var n=i-e,o=r*t;return[n*s_(o),i-n*e_(o)]}return o.invert=function(t,e){var n=i-e,o=t_(t,Km(n))*c_(n);return n*r<0&&(o-=Ym*c_(t)*c_(n)),[o/r,i-c_(r)*u_(t*t+n*n)]},o}function bM(){return tM(_M).scale(131.154).center([0,13.9389])}uM.invert=aM((function(t){return t})),fM.invert=function(t,e){return[t,2*Qm(r_(e))-Wm]},yM.invert=yM;var xM=1.340264,wM=-.081106,MM=893e-6,EM=.003796,SM=u_(3)/2;function AM(t,e){var n=h_(SM*s_(e)),r=n*n,i=r*r*r;return[t*e_(n)/(SM*(xM+3*wM*r+i*(7*MM+9*EM*r))),n*(xM+wM*r+i*(MM+EM*r))]}function TM(){return Kw(AM).scale(177.158)}function kM(t,e){var n=e_(e),r=e_(t)*n;return[n*s_(t)/r,s_(e)/r]}function OM(){return Kw(kM).scale(144.049).clipAngle(60)}function CM(){var t,e,n,r,i,o,a,s=1,c=0,u=0,l=1,f=1,h=0,d=null,p=1,g=1,v=zw({point:function(t,e){var n=_([t,e]);this.stream.point(n[0],n[1])}}),y=Ix;function m(){return p=s*l,g=s*f,o=a=null,_}function _(n){var r=n[0]*p,i=n[1]*g;if(h){var o=i*t-r*e;r=r*t+i*e,i=o}return[r+c,i+u]}return _.invert=function(n){var r=n[0]-c,i=n[1]-u;if(h){var o=i*t+r*e;r=r*t-i*e,i=o}return[r/p,i/g]},_.stream=function(t){return o&&a===t?o:o=v(y(a=t))},_.postclip=function(t){return arguments.length?(y=t,d=n=r=i=null,m()):y},_.clipExtent=function(t){return arguments.length?(y=null==t?(d=n=r=i=null,Ix):dx(d=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),m()):null==d?null:[[d,n],[r,i]]},_.scale=function(t){return arguments.length?(s=+t,m()):s},_.translate=function(t){return arguments.length?(c=+t[0],u=+t[1],m()):[c,u]},_.angle=function(n){return arguments.length?(e=s_(h=n%360*Jm),t=e_(h),m()):h*Xm},_.reflectX=function(t){return arguments.length?(l=t?-1:1,m()):l<0},_.reflectY=function(t){return arguments.length?(f=t?-1:1,m()):f<0},_.fitExtent=function(t,e){return qw(_,t,e)},_.fitSize=function(t,e){return Hw(_,t,e)},_.fitWidth=function(t,e){return Yw(_,t,e)},_.fitHeight=function(t,e){return Ww(_,t,e)},_}function NM(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function PM(){return Kw(NM).scale(175.295)}function RM(t,e){return[e_(e)*s_(t),s_(e)]}function jM(){return Kw(RM).scale(249.5).clipAngle(90.000001)}function DM(t,e){var n=e_(e),r=1+e_(t)*n;return[n*s_(t)/r,s_(e)/r]}function FM(){return Kw(DM).scale(250).clipAngle(142)}function IM(t,e){return[o_(l_((Wm+e)/2)),-t]}function LM(){var t=dM(IM),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function $M(t,e){return t.parent===e.parent?1:2}function UM(t,e){return t+e.x}function zM(t,e){return Math.max(t,e.y)}function BM(){var t=$M,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(UM,0)/t.length}(n),e.y=function(t){return 1+t.reduce(zM,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var s=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),u=s.x-t(s,c)/2,l=c.x+t(c,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-u)/(l-u)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function VM(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function qM(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=YM)):void 0===e&&(e=HM);for(var n,r,i,o,a,s=new GM(t),c=[s];n=c.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new GM(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(ZM)}function HM(t){return t.children}function YM(t){return Array.isArray(t)?t[1]:null}function WM(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function ZM(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function GM(t){this.data=t,this.depth=this.height=0,this.parent=null}function XM(t){return null==t?null:JM(t)}function JM(t){if("function"!=typeof t)throw new Error;return t}function KM(){return 0}function QM(t){return function(){return t}}AM.invert=function(t,e){for(var n,r=e,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=n=(r*(xM+wM*i+o*(MM+EM*i))-e)/(xM+3*wM*i+o*(7*MM+9*EM*i)))*r)*i*i,!(Km(n)<Hm));++a);return[SM*t*(xM+3*wM*i+o*(7*MM+9*EM*i))/e_(r),h_(s_(r)/SM)]},kM.invert=aM(Qm),NM.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(Km(n)>qm&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},RM.invert=aM(h_),DM.invert=aM((function(t){return 2*Qm(t)})),IM.invert=function(t,e){return[-e,2*Qm(r_(t))-Wm]},GM.prototype=qM.prototype={constructor:GM,count:function(){return this.eachAfter(VM)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],c=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)t.call(e,o,++c,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return qM(this).eachBefore(WM)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}};const tE=4294967296;function eE(){let t=1;return()=>(t=(1664525*t+1013904223)%tE)/tE}function nE(t){return rE(t,eE())}function rE(t,e){for(var n,r,i=0,o=(t=function(t,e){let n,r,i=t.length;for(;i;)r=e()*i--|0,n=t[i],t[i]=t[r],t[r]=n;return t}(Array.from(t),e)).length,a=[];i<o;)n=t[i],r&&aE(r,n)?++i:(r=cE(a=iE(a,n)),i=0);return r}function iE(t,e){var n,r;if(sE(e,t))return[e];for(n=0;n<t.length;++n)if(oE(e,t[n])&&sE(uE(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(oE(uE(t[n],t[r]),e)&&oE(uE(t[n],e),t[r])&&oE(uE(t[r],e),t[n])&&sE(lE(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function oE(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function aE(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function sE(t,e){for(var n=0;n<e.length;++n)if(!aE(t,e[n]))return!1;return!0}function cE(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return uE(t[0],t[1]);case 3:return lE(t[0],t[1],t[2])}var e}function uE(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,c=o-n,u=a-r,l=s-i,f=Math.sqrt(c*c+u*u);return{x:(n+o+c/f*l)/2,y:(r+a+u/f*l)/2,r:(f+i+s)/2}}function lE(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,c=e.r,u=n.x,l=n.y,f=n.r,h=r-a,d=r-u,p=i-s,g=i-l,v=c-o,y=f-o,m=r*r+i*i-o*o,_=m-a*a-s*s+c*c,b=m-u*u-l*l+f*f,x=d*p-h*g,w=(p*b-g*_)/(2*x)-r,M=(g*v-p*y)/x,E=(d*_-h*b)/(2*x)-i,S=(h*y-d*v)/x,A=M*M+S*S-1,T=2*(o+w*M+E*S),k=w*w+E*E-o*o,O=-(Math.abs(A)>1e-6?(T+Math.sqrt(T*T-4*A*k))/(2*A):k/T);return{x:r+w+M*O,y:i+E+S*O,r:O}}function fE(t,e,n){var r,i,o,a,s=t.x-e.x,c=t.y-e.y,u=s*s+c*c;u?(i=e.r+n.r,i*=i,a=t.r+n.r,i>(a*=a)?(r=(u+a-i)/(2*u),o=Math.sqrt(Math.max(0,a/u-r*r)),n.x=t.x-r*s-o*c,n.y=t.y-r*c+o*s):(r=(u+i-a)/(2*u),o=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-o*c,n.y=e.y+r*c+o*s)):(n.x=e.x+n.r,n.y=e.y)}function hE(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function dE(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function pE(t){this._=t,this.next=null,this.previous=null}function gE(t,e){if(!(a=(n=t,t="object"==typeof n&&"length"in n?n:Array.from(n)).length))return 0;var n,r,i,o,a,s,c,u,l,f,h,d;if((r=t[0]).x=0,r.y=0,!(a>1))return r.r;if(i=t[1],r.x=-i.r,i.x=r.r,i.y=0,!(a>2))return r.r+i.r;fE(i,r,o=t[2]),r=new pE(r),i=new pE(i),o=new pE(o),r.next=o.previous=i,i.next=r.previous=o,o.next=i.previous=r;t:for(u=3;u<a;++u){fE(r._,i._,o=t[u]),o=new pE(o),l=i.next,f=r.previous,h=i._.r,d=r._.r;do{if(h<=d){if(hE(l._,o._)){i=l,r.next=i,i.previous=r,--u;continue t}h+=l._.r,l=l.next}else{if(hE(f._,o._)){(r=f).next=i,i.previous=r,--u;continue t}d+=f._.r,f=f.previous}}while(l!==f.next);for(o.previous=r,o.next=i,r.next=i.previous=i=o,s=dE(r);(o=o.next)!==i;)(c=dE(o))<s&&(r=o,s=c);i=r.next}for(r=[i._],o=i;(o=o.next)!==i;)r.push(o._);for(o=rE(r,e),u=0;u<a;++u)(r=t[u]).x-=o.x,r.y-=o.y;return o.r}function vE(t){return gE(t,eE()),t}function yE(t){return Math.sqrt(t.value)}function mE(){var t=null,e=1,n=1,r=KM;function i(i){const o=eE();return i.x=e/2,i.y=n/2,t?i.eachBefore(_E(t)).eachAfter(bE(r,.5,o)).eachBefore(xE(1)):i.eachBefore(_E(yE)).eachAfter(bE(KM,1,o)).eachAfter(bE(r,i.r/Math.min(e,n),o)).eachBefore(xE(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=XM(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:QM(+t),i):r},i}function _E(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function bE(t,e,n){return function(r){if(i=r.children){var i,o,a,s=i.length,c=t(r)*e||0;if(c)for(o=0;o<s;++o)i[o].r+=c;if(a=gE(i,n),c)for(o=0;o<s;++o)i[o].r-=c;r.r=a+c}}}function xE(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function wE(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function ME(t,e,n,r,i){for(var o,a=t.children,s=-1,c=a.length,u=t.value&&(r-e)/t.value;++s<c;)(o=a[s]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*u}function EE(){var t=1,e=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/o,i.eachBefore(function(t,e){return function(r){r.children&&ME(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}(e,o)),r&&i.eachBefore(wE),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i}var SE={depth:-1},AE={},TE={};function kE(t){return t.id}function OE(t){return t.parentId}function CE(){var t,e=kE,n=OE;function r(r){var i,o,a,s,c,u,l,f,h=Array.from(r),d=e,p=n,g=new Map;if(null!=t){const e=h.map(((e,n)=>function(t){let e=(t=`${t}`).length;return PE(t,e-1)&&!PE(t,e-2)&&(t=t.slice(0,-1)),"/"===t[0]?t:`/${t}`}(t(e,n,r)))),n=e.map(NE),i=new Set(e).add("");for(const t of n)i.has(t)||(i.add(t),e.push(t),n.push(NE(t)),h.push(TE));d=(t,n)=>e[n],p=(t,e)=>n[e]}for(a=0,i=h.length;a<i;++a)o=h[a],u=h[a]=new GM(o),null!=(l=d(o,a,r))&&(l+="")&&(f=u.id=l,g.set(f,g.has(f)?AE:u)),null!=(l=p(o,a,r))&&(l+="")&&(u.parent=l);for(a=0;a<i;++a)if(l=(u=h[a]).parent){if(!(c=g.get(l)))throw new Error("missing: "+l);if(c===AE)throw new Error("ambiguous: "+l);c.children?c.children.push(u):c.children=[u],u.parent=c}else{if(s)throw new Error("multiple roots");s=u}if(!s)throw new Error("no root");if(null!=t){for(;s.data===TE&&1===s.children.length;)s=s.children[0],--i;for(let t=h.length-1;t>=0&&(u=h[t],u.data===TE);--t)u.data=null}if(s.parent=SE,s.eachBefore((function(t){t.depth=t.parent.depth+1,--i})).eachBefore(ZM),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(t){return arguments.length?(e=XM(t),r):e},r.parentId=function(t){return arguments.length?(n=XM(t),r):n},r.path=function(e){return arguments.length?(t=XM(e),r):t},r}function NE(t){let e=t.length;if(e<2)return"";for(;--e>1&&!PE(t,e););return t.slice(0,e)}function PE(t,e){if("/"===t[e]){let n=0;for(;e>0&&"\\"===t[--e];)++n;if(0==(1&n))return!0}return!1}function RE(t,e){return t.parent===e.parent?1:2}function jE(t){var e=t.children;return e?e[0]:t.t}function DE(t){var e=t.children;return e?e[e.length-1]:t.t}function FE(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function IE(t,e,n){return t.a.parent===e.parent?t.a:n}function LE(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function $E(){var t=RE,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,o,a=new LE(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new LE(r[i],i)),n.parent=e;return(a.parent=new LE(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(s);else{var u=i,l=i,f=i;i.eachBefore((function(t){t.x<u.x&&(u=t),t.x>l.x&&(l=t),t.depth>f.depth&&(f=t)}));var h=u===l?1:t(u,l)/2,d=h-u.x,p=e/(l.x+h+d),g=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,c=o.parent.children[0],u=o.m,l=a.m,f=s.m,h=c.m;s=DE(s),o=jE(o),s&&o;)c=jE(c),(a=DE(a)).a=e,(i=s.z+f-o.z-u+t(s._,o._))>0&&(FE(IE(s,e,r),e,i),u+=i,l+=i),f+=s.m,u+=o.m,h+=c.m,l+=a.m;s&&!DE(a)&&(a.t=s,a.m+=f-l),o&&!jE(c)&&(c.t=o,c.m+=u-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function UE(t,e,n,r,i){for(var o,a=t.children,s=-1,c=a.length,u=t.value&&(i-n)/t.value;++s<c;)(o=a[s]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*u}LE.prototype=Object.create(GM.prototype);var zE=(1+Math.sqrt(5))/2;function BE(t,e,n,r,i,o){for(var a,s,c,u,l,f,h,d,p,g,v,y=[],m=e.children,_=0,b=0,x=m.length,w=e.value;_<x;){c=i-n,u=o-r;do{l=m[b++].value}while(!l&&b<x);for(f=h=l,v=l*l*(g=Math.max(u/c,c/u)/(w*t)),p=Math.max(h/v,v/f);b<x;++b){if(l+=s=m[b].value,s<f&&(f=s),s>h&&(h=s),v=l*l*g,(d=Math.max(h/v,v/f))>p){l-=s;break}p=d}y.push(a={value:l,dice:c<u,children:m.slice(_,b)}),a.dice?ME(a,n,r,i,w?r+=u*l/w:o):UE(a,n,r,w?n+=c*l/w:i,o),w-=l,_=b}return y}const VE=function t(e){function n(t,n,r,i,o){BE(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(zE);function qE(){var t=VE,e=!1,n=1,r=1,i=[0],o=KM,a=KM,s=KM,c=KM,u=KM;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(wE),t}function f(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,f=e.x1-n,h=e.y1-n;f<r&&(r=f=(r+f)/2),h<l&&(l=h=(l+h)/2),e.x0=r,e.y0=l,e.x1=f,e.y1=h,e.children&&(n=i[e.depth+1]=o(e)/2,r+=u(e)-n,l+=a(e)-n,(f-=s(e)-n)<r&&(r=f=(r+f)/2),(h-=c(e)-n)<l&&(l=h=(l+h)/2),t(e,r,l,f,h))}return l.round=function(t){return arguments.length?(e=!!t,l):e},l.size=function(t){return arguments.length?(n=+t[0],r=+t[1],l):[n,r]},l.tile=function(e){return arguments.length?(t=JM(e),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:QM(+t),l):o},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:QM(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:QM(+t),l):s},l.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:QM(+t),l):c},l.paddingLeft=function(t){return arguments.length?(u="function"==typeof t?t:QM(+t),l):u},l}function HE(t,e,n,r,i){var o,a,s=t.children,c=s.length,u=new Array(c+1);for(u[0]=a=o=0;o<c;++o)u[o+1]=a+=s[o].value;!function t(e,n,r,i,o,a,c){if(e>=n-1){var l=s[e];return l.x0=i,l.y0=o,l.x1=a,void(l.y1=c)}for(var f=u[e],h=r/2+f,d=e+1,p=n-1;d<p;){var g=d+p>>>1;u[g]<h?d=g+1:p=g}h-u[d-1]<u[d]-h&&e+1<d&&--d;var v=u[d]-f,y=r-v;if(a-i>c-o){var m=r?(i*y+a*v)/r:a;t(e,d,v,i,o,m,c),t(d,n,y,m,o,a,c)}else{var _=r?(o*y+c*v)/r:c;t(e,d,v,i,o,a,_),t(d,n,y,i,_,a,c)}}(0,c,t.value,e,n,r,i)}function YE(t,e,n,r,i){(1&t.depth?UE:ME)(t,e,n,r,i)}const WE=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,c,u,l,f=-1,h=a.length,d=t.value;++f<h;){for(c=(s=a[f]).children,u=s.value=0,l=c.length;u<l;++u)s.value+=c[u].value;s.dice?ME(s,n,r,i,d?r+=(o-r)*s.value/d:o):UE(s,n,r,d?n+=(i-n)*s.value/d:i,o),d-=s.value}else t._squarify=a=BE(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(zE);function ZE(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function GE(t,e){var n=vh(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}function XE(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function JE(t){return((t=Math.exp(t))+1/t)/2}const KE=function t(e,n,r){function i(t,i){var o,a,s=t[0],c=t[1],u=t[2],l=i[0],f=i[1],h=i[2],d=l-s,p=f-c,g=d*d+p*p;if(g<1e-12)a=Math.log(h/u)/e,o=function(t){return[s+t*d,c+t*p,u*Math.exp(e*t*a)]};else{var v=Math.sqrt(g),y=(h*h-u*u+r*g)/(2*u*n*v),m=(h*h-u*u-r*g)/(2*h*n*v),_=Math.log(Math.sqrt(y*y+1)-y),b=Math.log(Math.sqrt(m*m+1)-m);a=(b-_)/e,o=function(t){var r,i=t*a,o=JE(_),l=u/(n*v)*(o*(r=e*i+_,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[s+l*d,c+l*p,u*o/JE(e*i+_)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4);function QE(t){return function(e,n){var r=t((e=ah(e)).h,(n=ah(n)).h),i=yh(e.s,n.s),o=yh(e.l,n.l),a=yh(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}const tS=QE(vh);var eS=QE(yh);function nS(t,e){var n=yh((t=mg(t)).l,(e=mg(e)).l),r=yh(t.a,e.a),i=yh(t.b,e.b),o=yh(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=o(e),t+""}}function rS(t){return function(e,n){var r=t((e=Ag(e)).h,(n=Ag(n)).h),i=yh(e.c,n.c),o=yh(e.l,n.l),a=yh(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}const iS=rS(vh);var oS=rS(yh);function aS(t){return function e(n){function r(e,r){var i=t((e=Lg(e)).h,(r=Lg(r)).h),o=yh(e.s,r.s),a=yh(e.l,r.l),s=yh(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}const sS=aS(vh);var cS=aS(yh);function uS(t,e){void 0===e&&(e=t,t=Ph);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[e](t-e)}}function lS(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}function fS(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[1]*i[0]-e[0]*i[1];return o/2}function hS(t){for(var e,n,r=-1,i=t.length,o=0,a=0,s=t[i-1],c=0;++r<i;)e=s,s=t[r],c+=n=e[0]*s[1]-s[0]*e[1],o+=(e[0]+s[0])*n,a+=(e[1]+s[1])*n;return[o/(c*=3),a/c]}function dS(t,e){return t[0]-e[0]||t[1]-e[1]}function pS(t){const e=t.length,n=[0,1];let r,i=2;for(r=2;r<e;++r){for(;i>1&&(o=t[n[i-2]],a=t[n[i-1]],s=t[r],(a[0]-o[0])*(s[1]-o[1])-(a[1]-o[1])*(s[0]-o[0])<=0);)--i;n[i++]=r}var o,a,s;return n.slice(0,i)}function gS(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e<n;++e)r[e]=[+t[e][0],+t[e][1],e];for(r.sort(dS),e=0;e<n;++e)i[e]=[r[e][0],-r[e][1]];var o=pS(r),a=pS(i),s=a[0]===o[0],c=a[a.length-1]===o[o.length-1],u=[];for(e=o.length-1;e>=0;--e)u.push(t[r[o[e]][2]]);for(e=+s;e<a.length-c;++e)u.push(t[r[a[e]][2]]);return u}function vS(t,e){for(var n,r,i=t.length,o=t[i-1],a=e[0],s=e[1],c=o[0],u=o[1],l=!1,f=0;f<i;++f)n=(o=t[f])[0],(r=o[1])>s!=u>s&&a<(c-n)*(s-r)/(u-r)+n&&(l=!l),c=n,u=r;return l}function yS(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],s=o[1],c=0;++r<i;)e=a,n=s,e-=a=(o=t[r])[0],n-=s=o[1],c+=Math.hypot(e,n);return c}const mS=Math.random,_S=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(mS),bS=function t(e){function n(t,n){return arguments.length<2&&(n=t,t=0),t=Math.floor(t),n=Math.floor(n)-t,function(){return Math.floor(e()*n+t)}}return n.source=t,n}(mS),xS=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*e()-1,o=2*e()-1,i=r*r+o*o}while(!i||i>1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(mS),wS=function t(e){var n=xS.source(e);function r(){var t=n.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(mS),MS=function t(e){function n(t){return(t=+t)<=0?()=>0:function(){for(var n=0,r=t;r>1;--r)n+=e();return n+r*e()}}return n.source=t,n}(mS),ES=function t(e){var n=MS.source(e);function r(t){if(0==(t=+t))return e;var r=n(t);return function(){return r()/t}}return r.source=t,r}(mS),SS=function t(e){function n(t){return function(){return-Math.log1p(-e())/t}}return n.source=t,n}(mS),AS=function t(e){function n(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-e(),t)}}return n.source=t,n}(mS),TS=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(e()+t)}}return n.source=t,n}(mS),kS=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-e())/t)})}return n.source=t,n}(mS),OS=function t(e){var n=xS.source(e)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-e())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),a=t<1?()=>Math.pow(e(),1/t):()=>1;return function(){do{do{var t=n(),s=1+o*t}while(s<=0);s*=s*s;var c=1-e()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-s+Math.log(s)));return i*s*a()*r}}return r.source=t,r}(mS),CS=function t(e){var n=OS.source(e);function r(t,e){var r=n(t),i=n(e);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(mS),NS=function t(e){var n=kS.source(e),r=CS.source(e);function i(t,e){return t=+t,(e=+e)>=1?()=>t:e<=0?()=>0:function(){for(var i=0,o=t,a=e;o*a>16&&o*(1-a)>16;){var s=Math.floor((o+1)*a),c=r(s,o-s+1)();c<=a?(i+=s,o-=s,a=(a-c)/(1-c)):(o=s-1,a/=c)}for(var u=a<.5,l=n(u?a:1-a),f=l(),h=0;f<=o;++h)f+=l();return i+(u?h:o-h)}}return i.source=t,i}(mS),PS=function t(e){function n(t,n,r){var i;return 0==(t=+t)?i=t=>-Math.log(t):(t=1/t,i=e=>Math.pow(e,t)),n=null==n?0:+n,r=null==r?1:+r,function(){return n+r*i(-Math.log1p(-e()))}}return n.source=t,n}(mS),RS=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){return t+n*Math.tan(Math.PI*e())}}return n.source=t,n}(mS),jS=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){var r=e();return t+n*Math.log(r/(1-r))}}return n.source=t,n}(mS),DS=function t(e){var n=OS.source(e),r=NS.source(e);function i(t){return function(){for(var i=0,o=t;o>16;){var a=Math.floor(.875*o),s=n(a)();if(s>o)return i+r(a-1,o/s)();i+=a,o-=s}for(var c=-Math.log1p(-e()),u=0;c<=o;++u)c-=Math.log1p(-e());return i+u}}return i.source=t,i}(mS),FS=1/4294967296;function IS(t=Math.random()){let e=0|(0<=t&&t<1?t/FS:Math.abs(t));return()=>(e=1664525*e+1013904223|0,FS*(e>>>0))}function LS(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function $S(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const US=Symbol("implicit");function zS(){var t=new gc,e=[],n=[],r=US;function i(i){let o=t.get(i);if(void 0===o){if(r!==US)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new gc;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return zS(e,n).unknown(r)},LS.apply(i,arguments),i}function BS(){var t,e,n=zS().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,n-c+2*u),s&&(t=Math.floor(t)),h+=(d-h-t*(n-c))*l,e=t*(1-c),s&&(h=Math.round(h),e=Math.round(e));var p=gu(n).map((function(e){return h+t*e}));return i(f?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),f()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,s=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,f()):s},n.padding=function(t){return arguments.length?(c=Math.min(1,u=+t),f()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},n.paddingOuter=function(t){return arguments.length?(u=+t,f()):u},n.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),f()):l},n.copy=function(){return BS(r(),[o,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},LS.apply(f(),arguments)}function VS(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return VS(e())},t}function qS(){return VS(BS.apply(null,arguments).paddingInner(1))}function HS(t){return+t}var YS=[0,1];function WS(t){return t}function ZS(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function GS(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=ZS(i,r),o=n(a,o)):(r=ZS(r,i),o=n(o,a)),function(t){return o(r(t))}}function XS(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=ZS(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Gs(t,e,1,r)-1;return o[n](i[n](e))}}function JS(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function KS(){var t,e,n,r,i,o,a=YS,s=YS,c=Ph,u=WS;function l(){var t,e,n,c=Math.min(a.length,s.length);return u!==WS&&(t=a[0],e=a[c-1],t>e&&(n=t,t=e,e=n),u=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?XS:GS,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,c)))(t(u(e)))}return f.invert=function(n){return u(e((o||(o=r(s,a.map(t),Th)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,HS),l()):a.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),c=XE,l()},f.clamp=function(t){return arguments.length?(u=!!t||WS,l()):u!==WS},f.interpolate=function(t){return arguments.length?(c=t,l()):c},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function QS(){return KS()(WS,WS)}function tA(t,e,n,r){var i,o=Yc(t,e,n);switch((r=Om(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Bm(o,a))||(r.precision=i),Fm(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Vm(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=zm(o))||(r.precision=i-2*("%"===r.type))}return Dm(r)}function eA(t){var e=t.domain;return t.ticks=function(t){var n=e();return qc(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return tA(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,s=o.length-1,c=o[a],u=o[s],l=10;for(u<c&&(i=c,c=u,u=i,i=a,a=s,s=i);l-- >0;){if((i=Hc(c,u,n))===r)return o[a]=c,o[s]=u,e(o);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}r=i}return t},t}function nA(){var t=QS();return t.copy=function(){return JS(t,nA())},LS.apply(t,arguments),eA(t)}function rA(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,HS),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return rA(t).unknown(e)},t=arguments.length?Array.from(t,HS):[0,1],eA(n)}function iA(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function oA(t){return Math.log(t)}function aA(t){return Math.exp(t)}function sA(t){return-Math.log(-t)}function cA(t){return-Math.exp(-t)}function uA(t){return isFinite(t)?+("1e"+t):t<0?0:t}function lA(t){return(e,n)=>-t(-e,n)}function fA(t){const e=t(oA,aA),n=e.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(o),i=function(t){return 10===t?uA:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),n()[0]<0?(r=lA(r),i=lA(i),t(sA,cA)):t(oA,aA),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],s=e[e.length-1];const c=s<a;c&&([a,s]=[s,a]);let u,l,f=r(a),h=r(s);const d=null==t?10:+t;let p=[];if(!(o%1)&&h-f<d){if(f=Math.floor(f),h=Math.ceil(h),a>0){for(;f<=h;++f)for(u=1;u<o;++u)if(l=f<0?u/i(-f):u*i(f),!(l<a)){if(l>s)break;p.push(l)}}else for(;f<=h;++f)for(u=o-1;u>=1;--u)if(l=f>0?u/i(-f):u*i(f),!(l<a)){if(l>s)break;p.push(l)}2*p.length<d&&(p=qc(a,s,d))}else p=qc(f,h,Math.min(h-f,d)).map(i);return c?p.reverse():p},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=Om(n)).precision||(n.trim=!0),n=Dm(n)),t===1/0)return n;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(r(t)));return e*o<o-.5&&(e*=o),e<=a?n(t):""}},e.nice=()=>n(iA(n(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),e}function hA(){const t=fA(KS()).domain([1,10]);return t.copy=()=>JS(t,hA()).base(t.base()),LS.apply(t,arguments),t}function dA(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function pA(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function gA(t){var e=1,n=t(dA(e),pA(e));return n.constant=function(n){return arguments.length?t(dA(e=+n),pA(e)):e},eA(n)}function vA(){var t=gA(KS());return t.copy=function(){return JS(t,vA()).constant(t.constant())},LS.apply(t,arguments)}function yA(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function mA(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function _A(t){return t<0?-t*t:t*t}function bA(t){var e=t(WS,WS),n=1;function r(){return 1===n?t(WS,WS):.5===n?t(mA,_A):t(yA(n),yA(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},eA(e)}function xA(){var t=bA(KS());return t.copy=function(){return JS(t,xA()).exponent(t.exponent())},LS.apply(t,arguments),t}function wA(){return xA.apply(null,arguments).exponent(.5)}function MA(t){return Math.sign(t)*t*t}function EA(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function SA(){var t,e=QS(),n=[0,1],r=!1;function i(n){var i=EA(e(n));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return e.invert(MA(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((n=Array.from(t,HS)).map(MA)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return SA(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},LS.apply(i,arguments),eA(i)}function AA(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t<i;)r[t-1]=iu(e,t/i);return o}function o(e){return null==e||isNaN(e=+e)?t:n[Gs(r,e)]}return o.invertExtent=function(t){var i=n.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:e[0],i<r.length?r[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort($s),i()},o.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return AA().domain(e).range(n).unknown(t)},LS.apply(o,arguments)}function TA(){var t,e=0,n=1,r=1,i=[.5],o=[0,1];function a(e){return null!=e&&e<=e?o[Gs(i,e,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,s()):[e,n]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,s()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return TA().domain([e,n]).range(o).unknown(t)},LS.apply(eA(a),arguments)}function kA(){var t,e=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[Gs(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return kA().domain(e).range(n).unknown(t)},LS.apply(i,arguments)}const OA=1e3,CA=6e4,NA=36e5,PA=864e5,RA=6048e5,jA=31536e6;var DA=new Date,FA=new Date;function IA(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=function(n){return IA((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return DA.setTime(+e),FA.setTime(+r),t(DA),t(FA),Math.floor(n(DA,FA))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var LA=IA((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));LA.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?IA((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):LA:null};const $A=LA;var UA=LA.range,zA=IA((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*OA)}),(function(t,e){return(e-t)/OA}),(function(t){return t.getUTCSeconds()}));const BA=zA;var VA=zA.range,qA=IA((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*OA)}),(function(t,e){t.setTime(+t+e*CA)}),(function(t,e){return(e-t)/CA}),(function(t){return t.getMinutes()}));const HA=qA;var YA=qA.range,WA=IA((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*OA-t.getMinutes()*CA)}),(function(t,e){t.setTime(+t+e*NA)}),(function(t,e){return(e-t)/NA}),(function(t){return t.getHours()}));const ZA=WA;var GA=WA.range,XA=IA((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*CA)/PA),(t=>t.getDate()-1));const JA=XA;var KA=XA.range;function QA(t){return IA((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*CA)/RA}))}var tT=QA(0),eT=QA(1),nT=QA(2),rT=QA(3),iT=QA(4),oT=QA(5),aT=QA(6),sT=tT.range,cT=eT.range,uT=nT.range,lT=rT.range,fT=iT.range,hT=oT.range,dT=aT.range,pT=IA((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const gT=pT;var vT=pT.range,yT=IA((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));yT.every=function(t){return isFinite(t=Math.floor(t))&&t>0?IA((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const mT=yT;var _T=yT.range,bT=IA((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*CA)}),(function(t,e){return(e-t)/CA}),(function(t){return t.getUTCMinutes()}));const xT=bT;var wT=bT.range,MT=IA((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*NA)}),(function(t,e){return(e-t)/NA}),(function(t){return t.getUTCHours()}));const ET=MT;var ST=MT.range,AT=IA((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/PA}),(function(t){return t.getUTCDate()-1}));const TT=AT;var kT=AT.range;function OT(t){return IA((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/RA}))}var CT=OT(0),NT=OT(1),PT=OT(2),RT=OT(3),jT=OT(4),DT=OT(5),FT=OT(6),IT=CT.range,LT=NT.range,$T=PT.range,UT=RT.range,zT=jT.range,BT=DT.range,VT=FT.range,qT=IA((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const HT=qT;var YT=qT.range,WT=IA((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));WT.every=function(t){return isFinite(t=Math.floor(t))&&t>0?IA((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const ZT=WT;var GT=WT.range;function XT(t,e,n,r,i,o){const a=[[BA,1,OA],[BA,5,5e3],[BA,15,15e3],[BA,30,3e4],[o,1,CA],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,NA],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,PA],[r,2,1728e5],[n,1,RA],[e,1,2592e6],[e,3,7776e6],[t,1,jA]];function s(e,n,r){const i=Math.abs(n-e)/r,o=zs((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(Yc(e/jA,n/jA,r));if(0===o)return $A.every(Math.max(Yc(e,n,r),1));const[s,c]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(c)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:s(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},s]}const[JT,KT]=XT(ZT,HT,CT,TT,ET,xT),[QT,tk]=XT(mT,gT,tT,JA,ZA,HA);function ek(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function nk(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function rk(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function ik(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,c=t.shortMonths,u=vk(i),l=yk(i),f=vk(o),h=yk(o),d=vk(a),p=yk(a),g=vk(s),v=yk(s),y=vk(c),m=yk(c),_={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Lk,e:Lk,f:Vk,g:tO,G:nO,H:$k,I:Uk,j:zk,L:Bk,m:qk,M:Hk,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:SO,s:AO,S:Yk,u:Wk,U:Zk,V:Xk,w:Jk,W:Kk,x:null,X:null,y:Qk,Y:eO,Z:rO,"%":EO},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:iO,e:iO,f:uO,g:bO,G:wO,H:oO,I:aO,j:sO,L:cO,m:lO,M:fO,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:SO,s:AO,S:hO,u:dO,U:pO,V:vO,w:yO,W:mO,x:null,X:null,y:_O,Y:xO,Z:MO,"%":EO},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return E(t,e,n,r)},d:kk,e:kk,f:jk,g:Ek,G:Mk,H:Ck,I:Ck,j:Ok,L:Rk,m:Tk,M:Nk,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:Ak,Q:Fk,s:Ik,S:Pk,u:_k,U:bk,V:xk,w:mk,W:wk,x:function(t,e,r){return E(t,n,e,r)},X:function(t,e,n){return E(t,r,e,n)},y:Ek,Y:Mk,Z:Sk,"%":Dk};function w(t,e){return function(n){var r,i,o,a=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===t.charCodeAt(s)&&(a.push(t.slice(c,s)),null!=(i=lk[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),c=s+1);return a.push(t.slice(c,s)),a.join("")}}function M(t,e){return function(n){var r,i,o=rk(1900,void 0,1);if(E(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=nk(rk(o.y,0,1))).getUTCDay(),r=i>4||0===i?NT.ceil(r):NT(r),r=TT.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=ek(rk(o.y,0,1))).getDay(),r=i>4||0===i?eT.ceil(r):eT(r),r=JA.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?nk(rk(o.y,0,1)).getUTCDay():ek(rk(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,nk(o)):ek(o)}}function E(t,e,n,r){for(var i,o,a=0,s=e.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in lk?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=w(n,_),_.X=w(r,_),_.c=w(e,_),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),{format:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=M(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=M(t+="",!0);return e.toString=function(){return t},e}}}var ok,ak,sk,ck,uk,lk={"-":"",_:" ",0:"0"},fk=/^\s*\d+/,hk=/^%/,dk=/[\\^$*+?|[\]().{}]/g;function pk(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function gk(t){return t.replace(dk,"\\$&")}function vk(t){return new RegExp("^(?:"+t.map(gk).join("|")+")","i")}function yk(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function mk(t,e,n){var r=fk.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function _k(t,e,n){var r=fk.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function bk(t,e,n){var r=fk.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function xk(t,e,n){var r=fk.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function wk(t,e,n){var r=fk.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Mk(t,e,n){var r=fk.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ek(t,e,n){var r=fk.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Sk(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ak(t,e,n){var r=fk.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Tk(t,e,n){var r=fk.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function kk(t,e,n){var r=fk.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Ok(t,e,n){var r=fk.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ck(t,e,n){var r=fk.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Nk(t,e,n){var r=fk.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Pk(t,e,n){var r=fk.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Rk(t,e,n){var r=fk.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function jk(t,e,n){var r=fk.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Dk(t,e,n){var r=hk.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Fk(t,e,n){var r=fk.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ik(t,e,n){var r=fk.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Lk(t,e){return pk(t.getDate(),e,2)}function $k(t,e){return pk(t.getHours(),e,2)}function Uk(t,e){return pk(t.getHours()%12||12,e,2)}function zk(t,e){return pk(1+JA.count(mT(t),t),e,3)}function Bk(t,e){return pk(t.getMilliseconds(),e,3)}function Vk(t,e){return Bk(t,e)+"000"}function qk(t,e){return pk(t.getMonth()+1,e,2)}function Hk(t,e){return pk(t.getMinutes(),e,2)}function Yk(t,e){return pk(t.getSeconds(),e,2)}function Wk(t){var e=t.getDay();return 0===e?7:e}function Zk(t,e){return pk(tT.count(mT(t)-1,t),e,2)}function Gk(t){var e=t.getDay();return e>=4||0===e?iT(t):iT.ceil(t)}function Xk(t,e){return t=Gk(t),pk(iT.count(mT(t),t)+(4===mT(t).getDay()),e,2)}function Jk(t){return t.getDay()}function Kk(t,e){return pk(eT.count(mT(t)-1,t),e,2)}function Qk(t,e){return pk(t.getFullYear()%100,e,2)}function tO(t,e){return pk((t=Gk(t)).getFullYear()%100,e,2)}function eO(t,e){return pk(t.getFullYear()%1e4,e,4)}function nO(t,e){var n=t.getDay();return pk((t=n>=4||0===n?iT(t):iT.ceil(t)).getFullYear()%1e4,e,4)}function rO(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+pk(e/60|0,"0",2)+pk(e%60,"0",2)}function iO(t,e){return pk(t.getUTCDate(),e,2)}function oO(t,e){return pk(t.getUTCHours(),e,2)}function aO(t,e){return pk(t.getUTCHours()%12||12,e,2)}function sO(t,e){return pk(1+TT.count(ZT(t),t),e,3)}function cO(t,e){return pk(t.getUTCMilliseconds(),e,3)}function uO(t,e){return cO(t,e)+"000"}function lO(t,e){return pk(t.getUTCMonth()+1,e,2)}function fO(t,e){return pk(t.getUTCMinutes(),e,2)}function hO(t,e){return pk(t.getUTCSeconds(),e,2)}function dO(t){var e=t.getUTCDay();return 0===e?7:e}function pO(t,e){return pk(CT.count(ZT(t)-1,t),e,2)}function gO(t){var e=t.getUTCDay();return e>=4||0===e?jT(t):jT.ceil(t)}function vO(t,e){return t=gO(t),pk(jT.count(ZT(t),t)+(4===ZT(t).getUTCDay()),e,2)}function yO(t){return t.getUTCDay()}function mO(t,e){return pk(NT.count(ZT(t)-1,t),e,2)}function _O(t,e){return pk(t.getUTCFullYear()%100,e,2)}function bO(t,e){return pk((t=gO(t)).getUTCFullYear()%100,e,2)}function xO(t,e){return pk(t.getUTCFullYear()%1e4,e,4)}function wO(t,e){var n=t.getUTCDay();return pk((t=n>=4||0===n?jT(t):jT.ceil(t)).getUTCFullYear()%1e4,e,4)}function MO(){return"+0000"}function EO(){return"%"}function SO(t){return+t}function AO(t){return Math.floor(+t/1e3)}function TO(t){return ok=ik(t),ak=ok.format,sk=ok.parse,ck=ok.utcFormat,uk=ok.utcParse,ok}function kO(t){return new Date(t)}function OO(t){return t instanceof Date?+t:+new Date(+t)}function CO(t,e,n,r,i,o,a,s,c,u){var l=QS(),f=l.invert,h=l.domain,d=u(".%L"),p=u(":%S"),g=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),m=u("%b %d"),_=u("%B"),b=u("%Y");function x(t){return(c(t)<t?d:s(t)<t?p:a(t)<t?g:o(t)<t?v:r(t)<t?i(t)<t?y:m:n(t)<t?_:b)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?h(Array.from(t,OO)):h().map(kO)},l.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?x:u(e)},l.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(iA(n,t)):l},l.copy=function(){return JS(l,CO(t,e,n,r,i,o,a,s,c,u))},l}function NO(){return LS.apply(CO(QT,tk,mT,gT,tT,JA,ZA,HA,BA,ak).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function PO(){return LS.apply(CO(JT,KT,ZT,HT,CT,TT,ET,xT,BA,ck).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function RO(){var t,e,n,r,i,o=0,a=1,s=WS,c=!1;function u(e){return null==e||isNaN(e=+e)?i:s(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}function l(t){return function(e){var n,r;return arguments.length?([n,r]=e,s=t(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),e=r(a=+a),n=t===e?0:1/(e-t),u):[o,a]},u.clamp=function(t){return arguments.length?(c=!!t,u):c},u.interpolator=function(t){return arguments.length?(s=t,u):s},u.range=l(Ph),u.rangeRound=l(XE),u.unknown=function(t){return arguments.length?(i=t,u):i},function(i){return r=i,t=i(o),e=i(a),n=t===e?0:1/(e-t),u}}function jO(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function DO(){var t=eA(RO()(WS));return t.copy=function(){return jO(t,DO())},$S.apply(t,arguments)}function FO(){var t=fA(RO()).domain([1,10]);return t.copy=function(){return jO(t,FO()).base(t.base())},$S.apply(t,arguments)}function IO(){var t=gA(RO());return t.copy=function(){return jO(t,IO()).constant(t.constant())},$S.apply(t,arguments)}function LO(){var t=bA(RO());return t.copy=function(){return jO(t,LO()).exponent(t.exponent())},$S.apply(t,arguments)}function $O(){return LO.apply(null,arguments).exponent(.5)}function UO(){var t=[],e=WS;function n(n){if(null!=n&&!isNaN(n=+n))return e((Gs(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort($s),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>ru(t,r/e)))},n.copy=function(){return UO(e).domain(t)},$S.apply(n,arguments)}function zO(){var t,e,n,r,i,o,a,s=0,c=.5,u=1,l=1,f=WS,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(l*t<l*e?r:i),f(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(e){var n,r,i;return arguments.length?([n,r,i]=e,f=uS(t,[n,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,c,u]=a,t=o(s=+s),e=o(c=+c),n=o(u=+u),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),l=e<t?-1:1,d):[s,c,u]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=p(Ph),d.rangeRound=p(XE),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(s),e=a(c),n=a(u),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),l=e<t?-1:1,d}}function BO(){var t=eA(zO()(WS));return t.copy=function(){return jO(t,BO())},$S.apply(t,arguments)}function VO(){var t=fA(zO()).domain([.1,1,10]);return t.copy=function(){return jO(t,VO()).base(t.base())},$S.apply(t,arguments)}function qO(){var t=gA(zO());return t.copy=function(){return jO(t,qO()).constant(t.constant())},$S.apply(t,arguments)}function HO(){var t=bA(zO());return t.copy=function(){return jO(t,HO()).exponent(t.exponent())},$S.apply(t,arguments)}function YO(){return HO.apply(null,arguments).exponent(.5)}function WO(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}TO({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const ZO=WO("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),GO=WO("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),XO=WO("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),JO=WO("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),KO=WO("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),QO=WO("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),tC=WO("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),eC=WO("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),nC=WO("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),rC=WO("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),iC=t=>bh(t[t.length-1]);var oC=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(WO);const aC=iC(oC);var sC=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(WO);const cC=iC(sC);var uC=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(WO);const lC=iC(uC);var fC=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(WO);const hC=iC(fC);var dC=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(WO);const pC=iC(dC);var gC=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(WO);const vC=iC(gC);var yC=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(WO);const mC=iC(yC);var _C=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(WO);const bC=iC(_C);var xC=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(WO);const wC=iC(xC);var MC=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(WO);const EC=iC(MC);var SC=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(WO);const AC=iC(SC);var TC=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(WO);const kC=iC(TC);var OC=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(WO);const CC=iC(OC);var NC=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(WO);const PC=iC(NC);var RC=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(WO);const jC=iC(RC);var DC=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(WO);const FC=iC(DC);var IC=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(WO);const LC=iC(IC);var $C=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(WO);const UC=iC($C);var zC=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(WO);const BC=iC(zC);var VC=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(WO);const qC=iC(VC);var HC=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(WO);const YC=iC(HC);var WC=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(WO);const ZC=iC(WC);var GC=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(WO);const XC=iC(GC);var JC=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(WO);const KC=iC(JC);var QC=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(WO);const tN=iC(QC);var eN=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(WO);const nN=iC(eN);var rN=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(WO);const iN=iC(rN);function oN(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const aN=cS(Lg(300,.5,0),Lg(-240,.5,1));var sN=cS(Lg(-100,.75,.35),Lg(80,1.5,.8)),cN=cS(Lg(260,.75,.35),Lg(80,1.5,.8)),uN=Lg();function lN(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return uN.h=360*t-100,uN.s=1.5-1.5*e,uN.l=.8-.9*e,uN+""}var fN=Jf(),hN=Math.PI/3,dN=2*Math.PI/3;function pN(t){var e;return t=(.5-t)*Math.PI,fN.r=255*(e=Math.sin(t))*e,fN.g=255*(e=Math.sin(t+hN))*e,fN.b=255*(e=Math.sin(t+dN))*e,fN+""}function gN(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function vN(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const yN=vN(WO("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var mN=vN(WO("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),_N=vN(WO("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),bN=vN(WO("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function xN(t){return wf(sf(t).call(document.documentElement))}var wN=0;function MN(){return new EN}function EN(){this._="@"+(++wN).toString(36)}function SN(t,e){return t.target&&(t=Rh(t),void 0===e&&(e=t.currentTarget),t=t.touches||[t]),Array.from(t,(t=>jh(t,e)))}function AN(t){return"string"==typeof t?new _f([document.querySelectorAll(t)],[document.documentElement]):new _f([cl(t)],mf)}function TN(t){return function(){return t}}EN.prototype=MN.prototype={constructor:EN,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};const kN=Math.abs,ON=Math.atan2,CN=Math.cos,NN=Math.max,PN=Math.min,RN=Math.sin,jN=Math.sqrt,DN=1e-12,FN=Math.PI,IN=FN/2,LN=2*FN;function $N(t){return t>1?0:t<-1?FN:Math.acos(t)}function UN(t){return t>=1?IN:t<=-1?-IN:Math.asin(t)}function zN(t){return t.innerRadius}function BN(t){return t.outerRadius}function VN(t){return t.startAngle}function qN(t){return t.endAngle}function HN(t){return t&&t.padAngle}function YN(t,e,n,r,i,o,a,s){var c=n-t,u=r-e,l=a-i,f=s-o,h=f*c-l*u;if(!(h*h<DN))return[t+(h=(l*(e-o)-f*(t-i))/h)*c,e+h*u]}function WN(t,e,n,r,i,o,a){var s=t-n,c=e-r,u=(a?o:-o)/jN(s*s+c*c),l=u*c,f=-u*s,h=t+l,d=e+f,p=n+l,g=r+f,v=(h+p)/2,y=(d+g)/2,m=p-h,_=g-d,b=m*m+_*_,x=i-o,w=h*g-p*d,M=(_<0?-1:1)*jN(NN(0,x*x*b-w*w)),E=(w*_-m*M)/b,S=(-w*m-_*M)/b,A=(w*_+m*M)/b,T=(-w*m+_*M)/b,k=E-v,O=S-y,C=A-v,N=T-y;return k*k+O*O>C*C+N*N&&(E=A,S=T),{cx:E,cy:S,x01:-l,y01:-f,x11:E*(i/x-1),y11:S*(i/x-1)}}function ZN(){var t=zN,e=BN,n=TN(0),r=null,i=VN,o=qN,a=HN,s=null;function c(){var c,u,l=+t.apply(this,arguments),f=+e.apply(this,arguments),h=i.apply(this,arguments)-IN,d=o.apply(this,arguments)-IN,p=kN(d-h),g=d>h;if(s||(s=c=Xp()),f<l&&(u=f,f=l,l=u),f>DN)if(p>LN-DN)s.moveTo(f*CN(h),f*RN(h)),s.arc(0,0,f,h,d,!g),l>DN&&(s.moveTo(l*CN(d),l*RN(d)),s.arc(0,0,l,d,h,g));else{var v,y,m=h,_=d,b=h,x=d,w=p,M=p,E=a.apply(this,arguments)/2,S=E>DN&&(r?+r.apply(this,arguments):jN(l*l+f*f)),A=PN(kN(f-l)/2,+n.apply(this,arguments)),T=A,k=A;if(S>DN){var O=UN(S/l*RN(E)),C=UN(S/f*RN(E));(w-=2*O)>DN?(b+=O*=g?1:-1,x-=O):(w=0,b=x=(h+d)/2),(M-=2*C)>DN?(m+=C*=g?1:-1,_-=C):(M=0,m=_=(h+d)/2)}var N=f*CN(m),P=f*RN(m),R=l*CN(x),j=l*RN(x);if(A>DN){var D,F=f*CN(_),I=f*RN(_),L=l*CN(b),$=l*RN(b);if(p<FN&&(D=YN(N,P,L,$,F,I,R,j))){var U=N-D[0],z=P-D[1],B=F-D[0],V=I-D[1],q=1/RN($N((U*B+z*V)/(jN(U*U+z*z)*jN(B*B+V*V)))/2),H=jN(D[0]*D[0]+D[1]*D[1]);T=PN(A,(l-H)/(q-1)),k=PN(A,(f-H)/(q+1))}}M>DN?k>DN?(v=WN(L,$,N,P,f,k,g),y=WN(F,I,R,j,f,k,g),s.moveTo(v.cx+v.x01,v.cy+v.y01),k<A?s.arc(v.cx,v.cy,k,ON(v.y01,v.x01),ON(y.y01,y.x01),!g):(s.arc(v.cx,v.cy,k,ON(v.y01,v.x01),ON(v.y11,v.x11),!g),s.arc(0,0,f,ON(v.cy+v.y11,v.cx+v.x11),ON(y.cy+y.y11,y.cx+y.x11),!g),s.arc(y.cx,y.cy,k,ON(y.y11,y.x11),ON(y.y01,y.x01),!g))):(s.moveTo(N,P),s.arc(0,0,f,m,_,!g)):s.moveTo(N,P),l>DN&&w>DN?T>DN?(v=WN(R,j,F,I,l,-T,g),y=WN(N,P,L,$,l,-T,g),s.lineTo(v.cx+v.x01,v.cy+v.y01),T<A?s.arc(v.cx,v.cy,T,ON(v.y01,v.x01),ON(y.y01,y.x01),!g):(s.arc(v.cx,v.cy,T,ON(v.y01,v.x01),ON(v.y11,v.x11),!g),s.arc(0,0,l,ON(v.cy+v.y11,v.cx+v.x11),ON(y.cy+y.y11,y.cx+y.x11),g),s.arc(y.cx,y.cy,T,ON(y.y11,y.x11),ON(y.y01,y.x01),!g))):s.arc(0,0,l,x,b,g):s.lineTo(R,j)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-FN/2;return[CN(r)*n,RN(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:TN(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:TN(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:TN(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:TN(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:TN(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:TN(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:TN(+t),c):a},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}var GN=Array.prototype.slice;function XN(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function JN(t){this._context=t}function KN(t){return new JN(t)}function QN(t){return t[0]}function tP(t){return t[1]}function eP(t,e){var n=TN(!0),r=null,i=KN,o=null;function a(a){var s,c,u,l=(a=XN(a)).length,f=!1;for(null==r&&(o=i(u=Xp())),s=0;s<=l;++s)!(s<l&&n(c=a[s],s,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(c,s,a),+e(c,s,a));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?QN:TN(t),e="function"==typeof e?e:void 0===e?tP:TN(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:TN(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:TN(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:TN(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function nP(t,e,n){var r=null,i=TN(!0),o=null,a=KN,s=null;function c(c){var u,l,f,h,d,p=(c=XN(c)).length,g=!1,v=new Array(p),y=new Array(p);for(null==o&&(s=a(d=Xp())),u=0;u<=p;++u){if(!(u<p&&i(h=c[u],u,c))===g)if(g=!g)l=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=l;--f)s.point(v[f],y[f]);s.lineEnd(),s.areaEnd()}g&&(v[u]=+t(h,u,c),y[u]=+e(h,u,c),s.point(r?+r(h,u,c):v[u],n?+n(h,u,c):y[u]))}if(d)return s=null,d+""||null}function u(){return eP().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?QN:TN(+t),e="function"==typeof e?e:TN(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?tP:TN(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:TN(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:TN(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:TN(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:TN(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:TN(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:TN(+t),c):n},c.lineX0=c.lineY0=function(){return u().x(t).y(e)},c.lineY1=function(){return u().x(t).y(n)},c.lineX1=function(){return u().x(r).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:TN(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),c):o},c}function rP(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function iP(t){return t}function oP(){var t=iP,e=rP,n=null,r=TN(0),i=TN(LN),o=TN(0);function a(a){var s,c,u,l,f,h=(a=XN(a)).length,d=0,p=new Array(h),g=new Array(h),v=+r.apply(this,arguments),y=Math.min(LN,Math.max(-LN,i.apply(this,arguments)-v)),m=Math.min(Math.abs(y)/h,o.apply(this,arguments)),_=m*(y<0?-1:1);for(s=0;s<h;++s)(f=g[p[s]=s]=+t(a[s],s,a))>0&&(d+=f);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),s=0,u=d?(y-h*_)/d:0;s<h;++s,v=l)c=p[s],l=v+((f=g[c])>0?f*u:0)+_,g[c]={data:a[c],index:s,value:f,startAngle:v,endAngle:l,padAngle:m};return g}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:TN(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:TN(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:TN(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:TN(+t),a):o},a}JN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var aP=cP(KN);function sP(t){this._curve=t}function cP(t){function e(e){return new sP(t(e))}return e._curve=t,e}function uP(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(cP(t)):e()._curve},t}function lP(){return uP(eP().curve(aP))}function fP(){var t=nP().curve(aP),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return uP(n())},delete t.lineX0,t.lineEndAngle=function(){return uP(r())},delete t.lineX1,t.lineInnerRadius=function(){return uP(i())},delete t.lineY0,t.lineOuterRadius=function(){return uP(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(cP(t)):e()._curve},t}function hP(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}sP.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};class dP{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}class pP{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,e){if(t=+t,e=+e,0==this._point++)this._x0=t,this._y0=e;else{const n=hP(this._x0,this._y0),r=hP(this._x0,this._y0=(this._y0+e)/2),i=hP(t,this._y0),o=hP(t,e);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...i,...o)}}}function gP(t){return new dP(t,!0)}function vP(t){return new dP(t,!1)}function yP(t){return new pP(t)}function mP(t){return t.source}function _P(t){return t.target}function bP(t){let e=mP,n=_P,r=QN,i=tP,o=null,a=null;function s(){let s;const c=GN.call(arguments),u=e.apply(this,c),l=n.apply(this,c);if(null==o&&(a=t(s=Xp())),a.lineStart(),c[0]=u,a.point(+r.apply(this,c),+i.apply(this,c)),c[0]=l,a.point(+r.apply(this,c),+i.apply(this,c)),a.lineEnd(),s)return a=null,s+""||null}return s.source=function(t){return arguments.length?(e=t,s):e},s.target=function(t){return arguments.length?(n=t,s):n},s.x=function(t){return arguments.length?(r="function"==typeof t?t:TN(+t),s):r},s.y=function(t){return arguments.length?(i="function"==typeof t?t:TN(+t),s):i},s.context=function(e){return arguments.length?(null==e?o=a=null:a=t(o=e),s):o},s}function xP(){return bP(gP)}function wP(){return bP(vP)}function MP(){const t=bP(yP);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const EP=jN(3),SP={draw(t,e){const n=.59436*jN(e+PN(e/28,.75)),r=n/2,i=r*EP;t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},AP={draw(t,e){const n=jN(e/FN);t.moveTo(n,0),t.arc(0,0,n,0,LN)}},TP={draw(t,e){const n=jN(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},kP=jN(1/3),OP=2*kP,CP={draw(t,e){const n=jN(e/OP),r=n*kP;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},NP={draw(t,e){const n=.62625*jN(e);t.moveTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.lineTo(-n,0),t.closePath()}},PP={draw(t,e){const n=.87559*jN(e-PN(e/7,2));t.moveTo(-n,0),t.lineTo(n,0),t.moveTo(0,n),t.lineTo(0,-n)}},RP={draw(t,e){const n=jN(e),r=-n/2;t.rect(r,r,n,n)}},jP={draw(t,e){const n=.4431*jN(e);t.moveTo(n,n),t.lineTo(n,-n),t.lineTo(-n,-n),t.lineTo(-n,n),t.closePath()}},DP=RN(FN/10)/RN(7*FN/10),FP=RN(LN/10)*DP,IP=-CN(LN/10)*DP,LP={draw(t,e){const n=jN(.8908130915292852*e),r=FP*n,i=IP*n;t.moveTo(0,-n),t.lineTo(r,i);for(let e=1;e<5;++e){const o=LN*e/5,a=CN(o),s=RN(o);t.lineTo(s*n,-a*n),t.lineTo(a*r-s*i,s*r+a*i)}t.closePath()}},$P=jN(3),UP={draw(t,e){const n=-jN(e/(3*$P));t.moveTo(0,2*n),t.lineTo(-$P*n,-n),t.lineTo($P*n,-n),t.closePath()}},zP=jN(3),BP={draw(t,e){const n=.6824*jN(e),r=n/2,i=n*zP/2;t.moveTo(0,-n),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}},VP=-.5,qP=jN(3)/2,HP=1/jN(12),YP=3*(HP/2+1),WP={draw(t,e){const n=jN(e/YP),r=n/2,i=n*HP,o=r,a=n*HP+n,s=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,c),t.lineTo(VP*r-qP*i,qP*r+VP*i),t.lineTo(VP*o-qP*a,qP*o+VP*a),t.lineTo(VP*s-qP*c,qP*s+VP*c),t.lineTo(VP*r+qP*i,VP*i-qP*r),t.lineTo(VP*o+qP*a,VP*a-qP*o),t.lineTo(VP*s+qP*c,VP*c-qP*s),t.closePath()}},ZP={draw(t,e){const n=.6189*jN(e-PN(e/6,1.7));t.moveTo(-n,-n),t.lineTo(n,n),t.moveTo(-n,n),t.lineTo(n,-n)}},GP=[AP,TP,CP,RP,LP,UP,WP],XP=[AP,PP,ZP,BP,SP,jP,NP];function JP(t,e){let n=null;function r(){let r;if(n||(n=r=Xp()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return t="function"==typeof t?t:TN(t||AP),e="function"==typeof e?e:TN(void 0===e?64:+e),r.type=function(e){return arguments.length?(t="function"==typeof e?e:TN(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:TN(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function KP(){}function QP(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function tR(t){this._context=t}function eR(t){return new tR(t)}function nR(t){this._context=t}function rR(t){return new nR(t)}function iR(t){this._context=t}function oR(t){return new iR(t)}function aR(t,e){this._basis=new tR(t),this._beta=e}tR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:QP(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:QP(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},nR.prototype={areaStart:KP,areaEnd:KP,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:QP(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},iR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:QP(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},aR.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*e[c]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const sR=function t(e){function n(t){return 1===e?new tR(t):new aR(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function cR(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function uR(t,e){this._context=t,this._k=(1-e)/6}uR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:cR(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:cR(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const lR=function t(e){function n(t){return new uR(t,e)}return n.tension=function(e){return t(+e)},n}(0);function fR(t,e){this._context=t,this._k=(1-e)/6}fR.prototype={areaStart:KP,areaEnd:KP,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:cR(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const hR=function t(e){function n(t){return new fR(t,e)}return n.tension=function(e){return t(+e)},n}(0);function dR(t,e){this._context=t,this._k=(1-e)/6}dR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:cR(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const pR=function t(e){function n(t){return new dR(t,e)}return n.tension=function(e){return t(+e)},n}(0);function gR(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>DN){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>DN){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*u+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function vR(t,e){this._context=t,this._alpha=e}vR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:gR(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const yR=function t(e){function n(t){return e?new vR(t,e):new uR(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function mR(t,e){this._context=t,this._alpha=e}mR.prototype={areaStart:KP,areaEnd:KP,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:gR(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const _R=function t(e){function n(t){return e?new mR(t,e):new fR(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function bR(t,e){this._context=t,this._alpha=e}bR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gR(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const xR=function t(e){function n(t){return e?new bR(t,e):new dR(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function wR(t){this._context=t}function MR(t){return new wR(t)}function ER(t){return t<0?-1:1}function SR(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(ER(o)+ER(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function AR(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function TR(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function kR(t){this._context=t}function OR(t){this._context=new CR(t)}function CR(t){this._context=t}function NR(t){return new kR(t)}function PR(t){return new OR(t)}function RR(t){this._context=t}function jR(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function DR(t){return new RR(t)}function FR(t,e){this._context=t,this._t=e}function IR(t){return new FR(t,.5)}function LR(t){return new FR(t,0)}function $R(t){return new FR(t,1)}function UR(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function zR(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function BR(t,e){return t[e]}function VR(t){const e=[];return e.key=t,e}function qR(){var t=TN([]),e=zR,n=UR,r=BR;function i(i){var o,a,s=Array.from(t.apply(this,arguments),VR),c=s.length,u=-1;for(const t of i)for(o=0,++u;o<c;++o)(s[o][u]=[0,+r(t,s[o].key,u,i)]).data=t;for(o=0,a=XN(e(s));o<c;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:TN(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:TN(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?zR:"function"==typeof t?t:TN(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?UR:t,i):n},i}function HR(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}UR(t,e)}}function YR(t,e){if((s=t.length)>0)for(var n,r,i,o,a,s,c=0,u=t[e[0]].length;c<u;++c)for(o=a=0,n=0;n<s;++n)(i=(r=t[e[n]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function WR(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}UR(t,e)}}function ZR(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<i;++s){for(var l=t[e[s]],f=l[a][1]||0,h=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var p=t[e[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}c+=f,u+=h*f}n[a-1][1]+=n[a-1][0]=o,c&&(o-=u/c)}n[a-1][1]+=n[a-1][0]=o,UR(t,e)}}function GR(t){var e=t.map(XR);return zR(t).sort((function(t,n){return e[t]-e[n]}))}function XR(t){for(var e,n=-1,r=0,i=t.length,o=-1/0;++n<i;)(e=+t[n][1])>o&&(o=e,r=n);return r}function JR(t){var e=t.map(KR);return zR(t).sort((function(t,n){return e[t]-e[n]}))}function KR(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}function QR(t){return JR(t).reverse()}function tj(t){var e,n,r=t.length,i=t.map(KR),o=GR(t),a=0,s=0,c=[],u=[];for(e=0;e<r;++e)n=o[e],a<s?(a+=i[n],c.push(n)):(s+=i[n],u.push(n));return u.reverse().concat(c)}function ej(t){return zR(t).reverse()}wR.prototype={areaStart:KP,areaEnd:KP,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},kR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:TR(this,this._t0,AR(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,TR(this,AR(this,n=SR(this,t,e)),n);break;default:TR(this,this._t0,n=SR(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(OR.prototype=Object.create(kR.prototype)).point=function(t,e){kR.prototype.point.call(this,e,t)},CR.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},RR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=jR(t),i=jR(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},FR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var nj="%Y-%m-%dT%H:%M:%S.%LZ",rj=Date.prototype.toISOString?function(t){return t.toISOString()}:ck(nj);const ij=rj;var oj=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:uk(nj);const aj=oj;function sj(t,e,n){var r=new Wh,i=e;return null==e?(r.restart(t,e,n),r):(r._restart=r.restart,r.restart=function(t,e,n){e=+e,n=null==n?Hh():+n,r._restart((function o(a){a+=i,r._restart(o,i+=e,n),t(a)}),e,n)},r.restart(t,e,n),r)}const cj=t=>()=>t;function uj(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function lj(t,e,n){this.k=t,this.x=e,this.y=n}lj.prototype={constructor:lj,scale:function(t){return 1===t?this:new lj(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new lj(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var fj=new lj(1,0,0);function hj(t){for(;!t.__zoom;)if(!(t=t.parentNode))return fj;return t.__zoom}function dj(t){t.stopImmediatePropagation()}function pj(t){t.preventDefault(),t.stopImmediatePropagation()}function gj(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function vj(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function yj(){return this.__zoom||fj}function mj(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function _j(){return navigator.maxTouchPoints||"ontouchstart"in this}function bj(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function xj(){var t,e,n,r=gj,i=vj,o=bj,a=mj,s=_j,c=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],l=250,f=KE,h=ol("start","zoom","end"),d=500,p=0,g=10;function v(t){t.property("__zoom",yj).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",S).filter(s).on("touchstart.zoom",A).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(c[0],Math.min(c[1],e)))===t.k?t:new lj(e,t.x,t.y)}function m(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new lj(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n,r){t.on("start.zoom",(function(){x(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=x(t,o).event(r),s=i.apply(t,o),c=null==n?_(s):"function"==typeof n?n.apply(t,o):n,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=t.__zoom,h="function"==typeof e?e.apply(t,o):e,d=f(l.invert(c).concat(u/l.k),h.invert(c).concat(u/h.k));return function(t){if(1===t)t=h;else{var e=d(t),n=u/e[2];t=new lj(n,c[0]-e[0]*n,c[1]-e[1]*n)}a.zoom(null,t)}}))}function x(t,e,n){return!n&&t.__zooming||new w(t,e)}function w(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function M(t,...e){if(r.apply(this,arguments)){var n=x(this,e).event(t),i=this.__zoom,s=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),l=jh(t);if(n.wheel)n.mouse[0][0]===l[0]&&n.mouse[0][1]===l[1]||(n.mouse[1]=i.invert(n.mouse[0]=l)),clearTimeout(n.wheel);else{if(i.k===s)return;n.mouse=[l,i.invert(l)],ad(this),n.start()}pj(t),n.wheel=setTimeout(f,150),n.zoom("mouse",o(m(y(i,s),n.mouse[0],n.mouse[1]),n.extent,u))}function f(){n.wheel=null,n.end()}}function E(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,a=x(this,e,!0).event(t),s=wf(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",d,!0),c=jh(t,i),l=t.clientX,f=t.clientY;Tf(t.view),dj(t),a.mouse=[c,this.__zoom.invert(c)],ad(this),a.start()}function h(t){if(pj(t),!a.moved){var e=t.clientX-l,n=t.clientY-f;a.moved=e*e+n*n>p}a.event(t).zoom("mouse",o(m(a.that.__zoom,a.mouse[0]=jh(t,i),a.mouse[1]),a.extent,u))}function d(t){s.on("mousemove.zoom mouseup.zoom",null),kf(t.view,a.moved),pj(t),a.event(t).end()}}function S(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=jh(t.changedTouches?t.changedTouches[0]:t,this),s=n.invert(a),c=n.k*(t.shiftKey?.5:2),f=o(m(y(n,c),a,s),i.apply(this,e),u);pj(t),l>0?wf(this).transition().duration(l).call(b,f,a,t):wf(this).call(v.transform,f,a,t)}}function A(n,...i){if(r.apply(this,arguments)){var o,a,s,c,u=n.touches,l=u.length,f=x(this,i,n.changedTouches.length===l).event(n);for(dj(n),a=0;a<l;++a)c=[c=jh(s=u[a],this),this.__zoom.invert(c),s.identifier],f.touch0?f.touch1||f.touch0[2]===c[2]||(f.touch1=c,f.taps=0):(f.touch0=c,o=!0,f.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(f.taps<2&&(e=c[0],t=setTimeout((function(){t=null}),d)),ad(this),f.start())}}function T(t,...e){if(this.__zooming){var n,r,i,a,s=x(this,e).event(t),c=t.changedTouches,l=c.length;for(pj(t),n=0;n<l;++n)i=jh(r=c[n],this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=i);if(r=s.that.__zoom,s.touch1){var f=s.touch0[0],h=s.touch0[1],d=s.touch1[0],p=s.touch1[1],g=(g=d[0]-f[0])*g+(g=d[1]-f[1])*g,v=(v=p[0]-h[0])*v+(v=p[1]-h[1])*v;r=y(r,Math.sqrt(g/v)),i=[(f[0]+d[0])/2,(f[1]+d[1])/2],a=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],a=s.touch0[1]}s.zoom("touch",o(m(r,i,a),s.extent,u))}}function k(t,...r){if(this.__zooming){var i,o,a=x(this,r).event(t),s=t.changedTouches,c=s.length;for(dj(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),d),i=0;i<c;++i)o=s[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=jh(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<g)){var u=wf(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return v.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",yj),t!==i?b(t,e,n,r):i.interrupt().each((function(){x(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},v.scaleBy=function(t,e,n,r){v.scaleTo(t,(function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n}),n,r)},v.scaleTo=function(t,e,n,r){v.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==n?_(t):"function"==typeof n?n.apply(this,arguments):n,s=r.invert(a),c="function"==typeof e?e.apply(this,arguments):e;return o(m(y(r,c),a,s),t,u)}),n,r)},v.translateBy=function(t,e,n,r){v.transform(t,(function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),u)}),null,r)},v.translateTo=function(t,e,n,r,a){v.transform(t,(function(){var t=i.apply(this,arguments),a=this.__zoom,s=null==r?_(t):"function"==typeof r?r.apply(this,arguments):r;return o(fj.translate(s[0],s[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,u)}),r,a)},w.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=wf(this.that).datum();h.call(t,this.that,new uj(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:h}),e)}},v.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:cj(+t),v):a},v.filter=function(t){return arguments.length?(r="function"==typeof t?t:cj(!!t),v):r},v.touchable=function(t){return arguments.length?(s="function"==typeof t?t:cj(!!t),v):s},v.extent=function(t){return arguments.length?(i="function"==typeof t?t:cj([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):i},v.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],v):[c[0],c[1]]},v.translateExtent=function(t){return arguments.length?(u[0][0]=+t[0][0],u[1][0]=+t[1][0],u[0][1]=+t[0][1],u[1][1]=+t[1][1],v):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},v.constrain=function(t){return arguments.length?(o=t,v):o},v.duration=function(t){return arguments.length?(l=+t,v):l},v.interpolate=function(t){return arguments.length?(f=t,v):f},v.on=function(){var t=h.on.apply(h,arguments);return t===h?v:t},v.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,v):Math.sqrt(p)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}hj.prototype=lj.prototype;const wj=(t,e)=>{t=Bv(t);const n=Object.keys(e.mapping).map((t=>({name:t,column:e.mapping[t].column,numeric:"numeric"==e.mapping[t].type,date:"date"==e.mapping[t].type})));return t.map((t=>{const e={};return n.forEach((n=>{let r=t[n.column];n.date&&(r=Date.parse(r)),n.numeric&&(r*=1),e[n.name]=r})),e}))},Mj=(t,e)=>{t.values=[...new Set(e.map((e=>e[t.dim])))],"numeric"==t.mapping.type||"date"==t.mapping.type?t.mapping.stacked?t.extent=fc(e.map((e=>e[`${t.dim}:st:e`]))):t.extent=fc(t.values):t.mapping.type},Ej=(t,e)=>{t.forEach((t=>{Object.values(e).forEach((e=>{t[`${e.dim}:scaled`]=e.scale(t[e.dim]),t[`${e.dim}:scaled:min`]=e.scale(e.domain[0]),t[`${e.dim}:scaled:0`]=e.scale(0),t[`${e.dim}:scaled:max`]=e.scale(e.domain[1]),e.mapping.stacked&&(t[`${e.dim}:st:e:scaled`]=e.scale(t[`${e.dim}:st:e`]),t[`${e.dim}:st:s:scaled`]=e.scale(t[`${e.dim}:st:s`]),t[`${e.dim}:st:h:scaled`]=t[`${e.dim}:st:s:scaled`]-t[`${e.dim}:st:e:scaled`])}))}))},Sj=(t,e)=>Object.values(t.reduce(((t,n)=>{var r=e.map((t=>n[t])).join("-");return t[r]=t[r]||{group:Object.fromEntries(e.map((t=>[t,n[t]]))),entries:[]},t[r].entries.push(n),t}),{})),Aj=(t,e)=>0==e.length?t:t.filter((t=>e.reduce(((e,n)=>Array.isArray(n.key)?e&&n.key.includes(t[n.dim]):"function"==typeof n.key?e&&n.key(t[n.dim]):e&&t[n.dim]==n.key),!0))),Tj=(t,e)=>Object.fromEntries(Object.entries(t).map((([t,n],r)=>[t,e(n,t)]))),kj=(t,e)=>Array.isArray(t)?t.map(e):Tj(t,e),Oj=(t,e,n,r)=>t.map((t=>({group:Object.keys(t.group).map((e=>({dim:e,key:t.group[e]}))),props:e._fill(Object.assign(n,...Object.keys(t.group).map((e=>r[e].props[t.group[e]])))),values:t.entries}))),Cj=(t,e,n=!0,r=!1)=>{if(void 0===t.value||null===t.value||r){if("ref"==t.prop){const n=e[t.ref];void 0!==n&&(t.value=n)}if("relative"==t.prop){const n=e[t.ref];void 0!==n&&(t.value=t.ratio*n)}if("steps"==t.prop){const n=e[t.ref];void 0!==n&&t.steps.forEach((e=>{n>e.cut&&(t.value=e.value)}))}}return n?t.value:t},Nj=(t,e)=>Cj({...Dj(t)},e,!0),Pj=(t,e,n=!0)=>Rj(kj(t,Dj),e,n),Rj=(t,e,n=!1)=>kj(t,(t=>Cj({...t},e,n))),jj=t=>void 0!==t.prop,Dj=t=>{if("object"==typeof t&&!Array.isArray(t)&&null!==t)return jj(t)?t:Tj(t,Dj);if("string"==typeof t&&"@"==t.charAt()){const e=t.substring(1);return{prop:"ref",ref:e,parts:e.split(":")}}return{prop:"fixed",value:t}},Fj=t=>(Object.values(t.mapping).forEach((t=>{if(t.props){const e=t.props;Object.keys(e),t.props=Object.fromEntries(Object.keys(e.manual).map((t=>{const n=Object.assign({},e.common,e.manual[t]);return n.name??=t,n.visible??=!0,[t,n]})))}t.scale&&(t.scale.type??="linear",t.scale.domain??=[null,null],t.scale.domainAbs||(t.scale.domainRel??=t.scale.domain.map(((t,e)=>null===t?.02*(0==e?-1:1):0))),t.scale.domainAbs??=[0,0],Array.isArray(t.scale.range)||("horizontal"==t.scale.orientation?t.scale.range=[0,"@width"]:"vertical"==t.scale.orientation&&(t.scale.range=["@height",0]))),t.axis&&(t.axis.padding??=3),void 0!==t.hover&&void 0!==t.axis&&(t.hover.format??=t.axis.format),t.legend&&(void 0===t.legend.props&&(t.legend.props={}),"name"in t.legend.props||(t.legend.props.name="@name")),t.hover&&(void 0===t.hover.props&&(t.hover.props={}),"name"in t.hover.props||(t.hover.props.name="@name"))})),Array.isArray(t.plot)||(t.plot=[t.plot]),t.plot.forEach(((t,e)=>{t.categories??=[],t.id??=`plot-${e}`,t.highlightProps=Object.keys(t.props).filter((t=>t.startsWith("highlight-"))).map((t=>t.substring(10)))})),t.plot.forEach((t=>{t.props=Tj(t.props,Dj),t._fill=e=>Rj(t.props,e)})),t),Ij=(t,e,n)=>e,Lj=(t,e=null)=>0===t.indexOf("http://")||0===t.indexOf("https://")||0===t.indexOf("/")?t:e?`${e.substring(0,e.lastIndexOf("/"))}/${t}`:`./${t}`,$j=function(t,e,n){let r,i;const o="function"==typeof e;function a(t,n){const a=si();return(t=t||a&&hn(oo))&&io(t),(t=eo)._s.has(r)||(o?Ho(r,e,i,t):function(t,e,n,r){const{state:i,actions:o,getters:a}=e,s=n.state.value[t];let c;c=Ho(t,(function(){s||(n.state.value[t]=i?i():{});const e=function(t){const e=S(t)?new Array(t.length):{};for(const n in t)e[n]=Me(t,n);return e}(n.state.value[t]);return qo(e,o,Object.keys(a||{}).reduce(((e,r)=>(e[r]=fe(gi((()=>{io(n);const e=n._s.get(t);return a[r].call(e,e)}))),e)),{}))}),e,n,0,!0),c.$reset=function(){const t=i?i():{};this.$patch((e=>{qo(e,t)}))}}(r,i,t)),t._s.get(r)}return r=t,i=o?void 0:e,a.$id=r,a}("base",{state:()=>({defUrl:null,defOrg:null,def:null,data:null}),getters:{loaded(){return null!==this.def&&null!==this.data},axis(){const t=this.mappingNamesWithKey("scale");let e={};return t.forEach((t=>{const n=this.mapping(t).scale.orientation;"horizontal"==n&&(e.h=t),"vertical"==n&&(e.v=t)})),e},mapping(t){return t=>this.def.mapping[t]},prop(t,e){return(t,e)=>this.def.mapping[t].props[e]},mappingNamesWithKey(t){return t=>Object.keys(this.def.mapping).filter((e=>t in this.def.mapping[e]))},mappingNamesWithKeyValue(t,e){return(t,e)=>Object.keys(this.def.mapping).filter((n=>t in this.def.mapping[n]&&this.def.mapping[n][t]==e))}},actions:{init(t,e=null){const n=this;this.loadAndMergeParent(t,[t],(function(t){n.defOrg=t,n.def=Fj(JSON.parse(JSON.stringify(n.defOrg))),null===e?n.loadData():n.data=wj(e,n.def)}))},loadAndMergeParent(t,e,n){const r=this;if("string"==typeof t)throw console.error("No valid JSON definiton file"),new Error("No valid JSON definiton");if(t.parent)this.load(t.parent,(function(t){e.push(t),r.loadAndMergeParent(t,e,n)}));else{e.reverse();const t=Ls().all(e,{arrayMerge:Ij});n(t)}},load(t,e=this.init){const n=Lj(t);return this.defUrl??=n,Fs.get(n).then((t=>{e(t.data)})).catch((t=>{console.log(t),console.error(`Could not load def file ${n}`)}))},loadData(){return Fs.get(Lj(this.def.data,this.defUrl)).then((t=>{this.data=wj(t.data,this.def)})).catch((t=>{console.error(`Could not load data file '${Lj(this.def.data)}'`)}))}}}),Uj={class:"vis",ref:"vis"},zj={class:"vis-header"},Bj={class:"title"},Vj={class:"subtitle"},qj={ref:"form",class:"vis-form-elements"},Hj={ref:"legends",class:"vis-legends"},Yj={key:0,class:"vis-body"},Wj={class:"vis-footer"},Zj=["innerHTML"],Gj=t=>t.charAt(0).toUpperCase()+t.slice(1),Xj=$m({decimal:",",thousands:".",grouping:[3],currency:"€"}),Jj=ik({dateTime:"%A, der %e. %B %Y, %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]}),Kj=(e,n)=>{const r=e.mapping.scale,i=t[`scale${Gj(r.type)}`]();if(i.range(Pj(r.range,n)),e.extent){e.domain=[...r.domain],e.domainRel=[...r.domainRel?r.domainRel:[0,0]],e.domainAbs=r.domainAbs,e.domain[0]??=e.extent[0],e.domain[1]??=e.extent[1];const t=e.domain[1]-e.domain[0];e.domain[0]+=t*e.domainRel[0],e.domain[1]+=t*e.domainRel[1],e.domain[0]+=e.domainAbs[0],e.domain[1]+=e.domainAbs[1],i.invertCustom=t=>{const n=Zs(e.values,i.invert(t));return e.values[n]}}else e.domain=e.values,r.padding??=.4,i.padding(r.padding),i.invertCustom=t=>{const e=Math.floor(t/i.step());return i.domain()[Math.max(0,Math.min(e,i.domain().length-1))]};i.domain(e.domain),e.scale=i},Qj=function(t){const e=wf(this);Object.entries(t).forEach((([t,n],r)=>{if(n instanceof Object){if(!jj(n))return;n=n.value}"text"!=t?e.attr(t,n):e.text(n)}))},tD=function(t){const e=wf(this);t.group.forEach((t=>{e.attr(`data-group-${t.dim}`,t.key)})),t.group.forEach((t=>{e.attr(`data-visible-${t.dim}`,t.visible)})),e.attr("data-visible",t.group.reduce(((t,e)=>t&&e.visible),!0))},eD=(t,e,n=null)=>{e.filter((t=>t.highlightProps.length>0)).forEach((e=>{const r=`g.plotGroup.${e.id} .highlight`,i=t.selectAll(r);if(i.size()>0&&(i.classed("highlight",!1),i.each((function(){const t=wf(this);e.highlightProps.forEach((e=>{t.attr(e,t.attr(`default-${e}`))}))}))),n){const r=e.categories.filter((t=>Object.keys(n).includes(t))).map((t=>({name:t,value:n[t]}))).map((t=>`[data-group-${t.name}='${t.value}']`)).join(""),i=t.selectAll(`g.plotGroup.${e.id} ${r}`);i.size()>0&&(i.classed("highlight",!0).raise(),i.each((function(){const t=wf(this);e.highlightProps.forEach((e=>{t.attr(`default-${e}`,t.attr(e)).attr(e,t.attr(`highlight-${e}`))}))})))}}))},nD=["width","height"],rD=["transform"],iD=["visibility"],oD=[(t=>(an="data-v-6b719c92",t=t(),an=null,t))((()=>Zr("line",null,null,-1)))],aD={key:0,class:"debug"},sD={class:"title"},cD={class:"entries",ref:"entries"},uD={props:["title","axis","side","data"],data:()=>({space:20}),computed:{left(){return"left"==this.side?this.axis.h.value-this.space+"px":`${this.axis.h.value+this.space}px`},transform(){return"left"==this.side?"translate(-100%, -50%)":"translate(0, -50%)"}},components:{},created(){this.store=$j()},mounted(){},watch:{data(){const t=[...this.data].sort(((t,e)=>e.entries[this.axis.v.col].value-t.entries[this.axis.v.col].value));let e=wf(this.$refs.entries).selectAll("tr.entry").data(t).join("tr").attr("class","entry").classed("nearest",(t=>t.nearest));e.selectAll("td").remove(),e.selectAll("td").data((t=>Object.entries(t.entries))).join("td").attr("class",(t=>t[0])).html((t=>"object"==typeof t[1]?t[1].name:t[1]))}}};var lD=n(379),fD=n.n(lD),hD=n(795),dD=n.n(hD),pD=n(569),gD=n.n(pD),vD=n(565),yD=n.n(vD),mD=n(216),_D=n.n(mD),bD=n(589),xD=n.n(bD),wD=n(119),MD={};MD.styleTagTransform=xD(),MD.setAttributes=yD(),MD.insert=gD().bind(null,"head"),MD.domAPI=dD(),MD.insertStyleElement=_D(),fD()(wD.Z,MD),wD.Z&&wD.Z.locals&&wD.Z.locals;var ED=n(744);const SD={props:["filter","shared","height","width","margins","data"],data:()=>({info:{},debug:null,def:null,hover:{visible:!1}}),computed:{innerWidth(){return this.width-(this.margins.left+this.margins.right)},innerHeight(){return this.height-(this.margins.top+this.margins.bottom)},relativeBases(){return{width:this.width,innerWidth:this.innerWidth,height:this.height,innerHeight:this.innerHeight}}},components:{Hover:(0,ED.Z)(uD,[["render",function(t,e,n,r,i,o){return n.axis&&n.axis.h?(Ir(),zr("div",{key:0,class:"hover",ref:"hover",style:s({left:o.left,transform:o.transform})},[Zr("div",sD,h(n.axis.h.name),1),Zr("table",cD,[Kr(' <tr class="entry">\n <td></td>\n </tr> ')],512)],4)):Kr("v-if",!0)}],["__scopeId","data-v-b25a8ab0"]])},created(){this.store=$j(),this.def=this.store.def},mounted(){this.inner=wf(this.$refs.inner),this.scales(),this.axis(),this.plot(),this.hoverInit()},methods:{getFormatterByType:t=>"time"==t?Jj.format:Xj.format,plot(){this.def.plot.forEach((t=>{const e=Sj(this.data,t.categories),n=Oj(e,t,this.relativeBases,this.def.mapping),r=this.inner.append("g").classed("plotGroup",!0).classed(t.id,!0);this[t.type](n,r)}))},_groupwise:function(t,e){return e.classed("paths",!0).selectAll("path").data(t).enter().append("path").each((function(t){Qj.call(this,t.props)})).each(tD)},_pointwise:(t,e,n,r=(t=>t))=>e.classed(n,!0).selectAll("g.group").data(t).enter().append("g").attr("class","group").each(tD).selectAll(n).data((t=>t.values.map((e=>r(Rj(t.props,e)))))).enter().append(n).each(Qj),"svg:path":function(t,e){this._groupwise(t,e).attr("d",(t=>eP().x((t=>t.x)).y((t=>t.y))(t.values.map((e=>Rj(t.props.d,e,!0))))))},"svg:circle":function(t,e){this._pointwise(t,e,"circle")},"svg:line":function(t,e){this._pointwise(t,e,"line")},"svg:rect":function(t,e){this._pointwise(t,e,"rect")},"svg:text":function(t,e){this._pointwise(t,e,"text")},"base:area":function(t){this._groupwise(t,parent).attr("d",(t=>nP().x((t=>t.x)).y1((t=>t.y1)).y0((t=>t.y0))(t.values.map((e=>Rj(t.props.d,e,!0))))))},bar(t,e){const n=this;this._pointwise(t,e,"rect",(t=>{const e=t.height.parts[0],r=n.info[e].scale(0);if(void 0===t.width){const e=t.cx.parts[0];t.width=Dj(n.info[e].scale.step()*(1-n.info[e].scale.padding()))}return t.x=Dj(t.cx.value-t.width.value/2),delete t.cx,t.y=Dj(t.height.value),t.height=Dj(r-t.height.value),t}))},stackedBar(t,e){t.forEach((t=>{const e=t.props.x.ref,n=t.props.y.ref;t.props.x=Dj(`@${e}:scaled`),t.props.y=Dj(`@${n}:st:e:scaled`),t.props.height=Dj(`@${n}:st:h:scaled`),t.props.transform=Dj(`translate(-${t.props.width.value/2} 0)`)})),this._pointwise(t,e,"rect",(t=>(t.height.value<0&&(t.y.value+=t.height.value,t.height.value=-t.height.value),t)))},scales(){const t={};this.store.mappingNamesWithKey("scale").filter((t=>!Object.keys(this.shared).includes(t))).forEach((e=>{const n={dim:e,mapping:this.store.mapping(e)};Mj(n,this.data),Kj(n,{width:this.innerWidth,height:this.innerHeight}),t[e]=n})),Ej(this.data,t),this.info={...this.shared,...t}},axis(){this.store.mappingNamesWithKey("axis").forEach((e=>{const n=this.store.mapping(e),r=n.axis,i=this.info[e].scale,o=t[`axis${Gj(r.position)}`](i).tickSizeInner(9).tickSizeOuter(0).ticks(Nj(r.ticks,this.relativeBases)).tickPadding(r.padding);r.format&&o.tickFormat(this.getFormatterByType(n.scale.type)(r.format)),r.values&&o.tickValues(r.values),r.grid&&this.inner.append("g").attr("class","grid").selectAll("line").data(i.ticks(r.ticks)).enter().append("line").attr("x1",0).attr("x2",this.innerWidth).attr("y1",(t=>i(t))).attr("y2",(t=>i(t)));const a=this.inner.append("g").attr("class",`axis-name-${e} axis-position-${r.position}`).call(o);if("bottom"==r.position&&a.attr("transform",`translate(0, ${this.innerHeight})`),"right"==r.position&&a.attr("transform",`translate(${this.innerWidth}, 0)`),r.rotate&&a.selectAll("text").attr("text-anchor","end").attr("transform",`rotate(-${r.rotate})`),r.title){const t=this.inner.append("text").attr("class","axis-title").attr("y",0).attr("x",0).attr("text-anchor","middle").attr("dominant-baseline","middle").text(r.title.name);"left"==r.position&&t.attr("transform",`rotate(-90) translate(-${this.innerHeight/2} -${r.title.offset})`),"right"==r.position&&t.attr("transform",`rotate(90) translate(${this.innerHeight/2} -${this.innerWidth+r.title.offset})`),"top"==r.position&&t.attr("transform",`translate(${this.innerWidth/2} -${r.title.offset})`),"bottom"==r.position&&t.attr("transform",`translate(${this.innerHeight/2} -${r.title.offset})`)}}))},hoverInit(){const t=this;let e=this.store.axis;e=Object.keys(e).map((t=>({axis:t,name:e[t]}))),e.forEach((t=>{const e=this.def.mapping[t.name],n=e.hover;let r="c";n&&n.format&&n.format,t.formatter=this.getFormatterByType(e.scale.type)(n.format)})),e=Object.fromEntries(e.map((t=>[t.axis,t])));const n=this.store.mappingNamesWithKey("hover").filter((t=>!Object.values(e).map((t=>t.name)).includes(t))),r=wf(this.$refs.hoverMarker).select("line");wf(this.$refs.hover).select("table.entries").selectAll("*").remove(),this.inner.append("rect").attr("class","events").attr("width",this.innerWidth).attr("height",this.innerHeight).attr("opacity",0).on("mousemove",(function(i){const o=jh(i),a=t.info[e.h.name],s=a.scale.invertCustom(o[0]),c=a.scale(s);r.attr("x1",c).attr("x2",c).attr("y1",0).attr("y2",t.innerHeight);const u=Aj(t.data,[{dim:e.h.name,key:s}]).map((r=>{const i={entries:{},data:r,nearest:!1};return n.forEach((e=>{i.entries[e]=Pj(t.store.mapping(e).hover.props,t.store.prop(e,r[e]))})),i.entries[e.v.name]={value:r[e.v.name],name:e.v.formatter(r[e.v.name])},i})),l=t.info[e.v.name].scale.invert(o[1]),f=u.map(((t,n)=>({v:t.entries[e.v.name].value,i:n}))).sort(((t,e)=>t.v-e.v)),h=u[f[Zs(f.map((t=>t.v)),l)].i];h.nearest=!0,eD(t.inner,t.def.plot,h.data),t.hover.data=u,t.hover.axis={h:{col:e.h.name,value:c,name:e.h.formatter(s)},v:{col:e.v.name,value:l}},t.hover.side=c>t.innerWidth/2?"left":"right"})).on("mouseout",(function(e){t.hover.visible=!1,eD(t.inner,t.def.plot)})).on("mouseenter",(function(e){t.hover.visible=!0}))}}};var AD=n(854),TD={};TD.styleTagTransform=xD(),TD.setAttributes=yD(),TD.insert=gD().bind(null,"head"),TD.domAPI=dD(),TD.insertStyleElement=_D(),fD()(AD.Z,TD),AD.Z&&AD.Z.locals&&AD.Z.locals;const kD=(0,ED.Z)(SD,[["render",function(t,e,n,r,i,o){const a=Zn("hover");return Ir(),zr("div",{style:s(`width: ${n.width}px;`),class:"vis-inner"},[(Ir(),zr("svg",{ref:"svg",width:n.width,height:n.height,class:"facet"},[Zr("g",{ref:"inner",transform:`translate(${n.margins.left} ${n.margins.top})`},[Zr("g",{visibility:t.hover.visible?"visible":"hidden",class:"hoverMarker",ref:"hoverMarker"},oD,8,iD)],8,rD)],8,nD)),Zr("div",{style:s(`transform: translate(${n.margins.left}px, ${n.margins.top+o.innerHeight/2}px); position: absolute; top: 0; left: 0;`)},[t.hover.visible?(Ir(),Br(a,{key:0,data:t.hover.data,side:t.hover.side,axis:t.hover.axis},null,8,["data","side","axis"])):Kr("v-if",!0)],4),t.debug?(Ir(),zr("span",aD,h(t.debug),1)):Kr("v-if",!0)],4)}],["__scopeId","data-v-6b719c92"]]),OD=["data-dim"],CD={class:"title"},ND={class:"entries"},PD=["data-visible","data-key","onClick","onMouseenter"],RD=["innerHTML"],jD=["width","height"],DD={props:["info","props"],mounted(){const t=wf(this.$refs.legendSymbol);this.info.elements.forEach((e=>{const n=t.append(e.type);Qj.call(n.node(),Pj(e.props,this.props))}))}};var FD=n(582),ID={};ID.styleTagTransform=xD(),ID.setAttributes=yD(),ID.insert=gD().bind(null,"head"),ID.domAPI=dD(),ID.insertStyleElement=_D(),fD()(FD.Z,ID),FD.Z&&FD.Z.locals&&FD.Z.locals;const LD=(0,ED.Z)(DD,[["render",function(t,e,n,r,i,o){return Ir(),zr("svg",{width:n.info.size,height:n.info.size,ref:"legendSymbol"},null,8,jD)}],["__scopeId","data-v-5ffe5c5e"]]),$D={props:["legend"],data:()=>({ju:e,info:{},entries:[]}),components:{LegendSymbol:LD},mounted(){const t=$j();this.info=t.mapping(this.legend),this.entries=Object.keys(this.info.props).map((t=>({key:t,props:this.info.props[t],filled:Pj(this.info.legend.props,this.info.props[t])})))},methods:{switched(t){t.props.visible=!t.props.visible,this.$emit("changeSelected",{dim:this.legend,key:t.key,selected:t.props.visible})}}};var UD=n(574),zD={};zD.styleTagTransform=xD(),zD.setAttributes=yD(),zD.insert=gD().bind(null,"head"),zD.domAPI=dD(),zD.insertStyleElement=_D(),fD()(UD.Z,zD),UD.Z&&UD.Z.locals&&UD.Z.locals;const BD=(0,ED.Z)($D,[["render",function(t,e,n,r,i,o){const a=Zn("LegendSymbol");return Ir(),zr("div",{class:"legend","data-dim":n.legend},[Zr("div",CD,h(t.info.name),1),Zr("div",ND,[(Ir(!0),zr(Nr,null,Jn(t.entries,(n=>(Ir(),zr("div",ni({"data-visible":n.props.visible,"data-key":n.key},Object.assign({...n.filled},{name:null}),{onClick:t=>o.switched(n),onMouseenter:e=>t.$emit("highlight",{dim:this.legend,key:n.key}),onMouseleave:e[0]||(e[0]=e=>t.$emit("highlight",{}))}),[t.info.legend.symbol?(Ir(),Br(a,{key:0,info:t.info.legend.symbol,props:n.props},null,8,["info","props"])):Kr("v-if",!0),Zr("span",{innerHTML:n.filled.name},null,8,RD)],16,PD)))),256))])],8,OD)}],["__scopeId","data-v-c27ae710"]]),VD=["id"],qD={class:"title"},HD={key:0,class:"entries"},YD=["id","onClick"],WD=["name","value","checked"],ZD=["for"],GD={props:["element","globals"],data:()=>({}),computed:{vg(){return this.globals[this.element.ref]}},components:{LegendSymbol:LD},mounted(){},methods:{switched(t){this.globals[this.element.ref]=t.value,this.$emit("changeSelected",{})},equal(t){return t==this.vg||JSON.stringify(t)==JSON.stringify(this.vg)}}};var XD=n(137),JD={};JD.styleTagTransform=xD(),JD.setAttributes=yD(),JD.insert=gD().bind(null,"head"),JD.domAPI=dD(),JD.insertStyleElement=_D(),fD()(XD.Z,JD),XD.Z&&XD.Z.locals&&XD.Z.locals;const KD={data:()=>({initialized:!1,options:{},globals:{},legends:[],formElements:[],filter:[],data:[],facets:{shared:{},entries:[],height:0,width:0,margins:{top:0,right:0,bottom:0,left:0}},data:null}),computed:{innerWidth(){return this.options.width-(this.options.margins.left+this.options.margins.right)},innerHeight(){return this.options.height-(this.options.margins.top+this.options.margins.bottom)}},components:{Facet:kD,LegendEntry:BD,FormElement:(0,ED.Z)(GD,[["render",function(t,e,n,r,i,o){return Ir(),zr("div",{class:"formElement",id:`container-${n.element.id}`},[Zr("div",qD,h(n.element.name)+":",1),"switch"==n.element.type?(Ir(),zr("div",HD,[(Ir(!0),zr(Nr,null,Jn(n.element.values,(t=>(Ir(),zr("div",{id:`container-${t.id}`,onClick:e=>o.switched(t)},[Zr("input",{type:"radio",name:n.element.id,value:t.id,checked:o.equal(t.value)},null,8,WD),Zr("label",{for:t.id},h(t.name),9,ZD)],8,YD)))),256))])):Kr("v-if",!0)],8,VD)}],["__scopeId","data-v-4bf43b49"]])},created(){window.addEventListener("resize",this.resized)},mounted(){this.baseInit(),this.dataInit(),this.scales()},destroyed(){window.removeEventListener("resize",this.resized)},methods:{baseInit(){this.store=$j(),this.legends=this.store.mappingNamesWithKey("legend"),this.formElements=this.store.def.formElements,this.globals=this.store.def.globals,this.options=Object.assign({},this.store.def.options),this.options.width||(this.options.width=this.$refs.vis.getBoundingClientRect().width),this.options.height=Nj(this.options.height,{totalWidth:this.options.width},!0,!0)},resized(){this.store.def.options.width||(this.options.width=this.$refs.vis.getBoundingClientRect().width,this.options.height=Nj(this.store.def.options.height,{totalWidth:this.options.width},!0,!0),this.dataInit(),this.scales())},dataInit(){const t=this.store.def,e=this.store.axis;if(this.filter=this.store.mappingNamesWithKey("props").map((t=>({dim:t,key:Object.keys(this.store.mapping(t).props).filter((e=>this.store.mapping(t).props[e].visible))}))),this.data=Aj(this.store.data,this.filter),this.store.mapping(e.v).stacked&&((t,e,n=[])=>{Sj(t,[...n,e.h]).forEach((t=>{let n=0,r=0;t.entries.forEach((t=>{const i=t[e.v];i>=0?(t[`${e.v}:st:s`]=n,n+=i,t[`${e.v}:st:e`]=n):(t[`${e.v}:st:s`]=r,r+=i,t[`${e.v}:st:e`]=r)}))}))})(this.data,e,t.facets?t.facets.dim:[]),t.facets){this.facets.margins=this.options.margins,this.facets.height=this.options.height;const e=Nj(t.facets.cols,{totalWidth:this.options.width},!0,!0);this.facets.width=this.options.width/e;const n=t.facets.dim,r=Sj(this.data,[n]);this.facets.entries=r.filter((t=>Object.keys(this.store.mapping(n).props).includes(t.group[n]))).map((t=>({filter:{dim:t.group[n],key:n,name:this.store.mapping(n).props[t.group[n]].name},data:t.entries})))}},scales(){const t=this.store.def;if(t.facets&&t.facets.scales){const e=Nj(t.facets.scales,t.globals,!0,!0).map((t=>{const e={dim:t,mapping:this.store.mapping(t)};return Mj(e,this.data),Kj(e,{width:this.facets.width-(this.facets.margins.left+this.facets.margins.right),height:this.facets.height-(this.facets.margins.top+this.facets.margins.bottom)}),e}));Ej(this.data,e),this.facets.shared=Object.fromEntries(e.map((t=>[t.dim,t])))}this.initialized=!0},changeSelected(t){this.dataInit(),this.scales()},highlight(t){eD(wf(this.$refs.vis),this.store.def.plot,{[t.dim]:t.key})}}};var QD=n(674),tF={};tF.styleTagTransform=xD(),tF.setAttributes=yD(),tF.insert=gD().bind(null,"head"),tF.domAPI=dD(),tF.insertStyleElement=_D(),fD()(QD.Z,tF),QD.Z&&QD.Z.locals&&QD.Z.locals;const eF={props:{debug:{type:Boolean,default:!1},defFile:{type:String,default:null},def:{type:String,default:null},data:{type:String,default:null}},data:()=>({store:$j()}),components:{Vis:(0,ED.Z)(KD,[["render",function(t,e,n,r,i,o){const a=Zn("form-element"),c=Zn("legend-entry"),u=Zn("facet");return Ir(),zr("div",Uj,[Zr("div",zj,[Zr("div",Bj,h(t.options.title),1),Zr("div",Vj,h(t.options.subtitle),1)]),Zr("div",qj,[(Ir(!0),zr(Nr,null,Jn(t.formElements,(t=>(Ir(),Br(a,{element:t,globals:this.globals,onChangeSelected:o.changeSelected},null,8,["element","globals","onChangeSelected"])))),256))],512),Zr("div",Hj,[(Ir(!0),zr(Nr,null,Jn(t.legends,(t=>(Ir(),Br(c,{legend:t,onChangeSelected:o.changeSelected,onHighlight:o.highlight},null,8,["legend","onChangeSelected","onHighlight"])))),256))],512),t.initialized?(Ir(),zr("div",Yj,[t.facets.entries.length>0?(Ir(!0),zr(Nr,{key:0},Jn(t.facets.entries,(e=>(Ir(),zr("div",{style:s(`width: ${t.facets.width}px; display: inline-block;`)},[Zr("div",{class:"facet-title",style:s(`margin-left: ${t.facets.margins.left}px`)},h(e.filter.name),5),(Ir(),Br(u,{key:e.data,data:e.data,shared:t.facets.shared,height:t.facets.height,width:t.facets.width,margins:t.facets.margins},null,8,["data","shared","height","width","margins"]))],4)))),256)):(Ir(),Br(u,{key:t.data,data:t.data,shared:{},height:t.options.height,width:t.options.width,margins:t.options.margins},null,8,["data","height","width","margins"]))])):Kr("v-if",!0),Zr("div",Wj,[Zr("span",{innerHTML:t.options.footer},null,8,Zj)])],512)}],["__scopeId","data-v-4e2c80a1"]])},mounted(){null!==this.def?this.store.init(JSON.parse(this.def),this.data):null!==this.defFile?this.store.load(this.defFile):console.error("No definition given.")}},nF=(0,ED.Z)(eF,[["render",function(t,e,n,r,i,o){const a=Zn("vis");return Ir(),zr("div",Hi,[t.store.loaded?(Ir(),Br(a,{key:0})):Kr("v-if",!0),n.debug?(Ir(),zr("div",Yi,[Wi,Zr("pre",Zi,h(JSON.stringify(t.store.def,null,4)),1),Gi,Zr("pre",Xi,h(JSON.stringify(t.store.defOrg,null,4)),1)])):Kr("v-if",!0)])}]]),rF=t=>{const e=t.getAttributeNames().filter((t=>t.startsWith("data-"))).reduce(((e,n)=>({...e,[n.substring(5)]:t.getAttribute(n)})),{});((...t)=>{const e=(qi||(qi=function(t){return kr(t)}(Vi))).createApp(...t),{mount:n}=e;return e.mount=t=>{const r=function(t){return O(t)?document.querySelector(t):t}(t);if(!r)return;const i=e._component;k(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e})(nF,e).use(function(){const t=Q(!0),e=t.run((()=>ye({})));let n=[],r=[];const i=fe({install(t){io(i),i._a=t,t.provide(oo,i),t.config.globalProperties.$pinia=i,uo&&jo(t,i),r.forEach((t=>n.push(t))),r=[]},use(t){return this._a?n.push(t):r.push(t),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return uo&&"undefined"!=typeof Proxy&&i.use(Lo),i}()).mount(t)},iF=t=>{const e=document.getElementsByClassName(t);for(const t of e)t.classList.contains("gen-vis-attached")||(t.classList.add("gen-vis-attached"),rF(t))}})();var i=r.J,o=r.K;export{i as mountGenVisByClass,o as mountGenVisElement};
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@preschen/gen-vis",
3
+ "version": "0.3.0",
4
+ "description": "A declarative d3 visualisation library",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "dev": "webpack serve --config build/dev.js",
8
+ "lib": "rm -rf dist && webpack --config build/lib.js",
9
+ "npm": "rm -rf dist && webpack --config build/npm.js",
10
+ "upload": "rsync -arv dist/ preschen@hades.wsr.ac.at:/usr/local/www/datascience/htdocs/gen-vis",
11
+ "deploy": "npm run lib && npm run upload"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/petres/gen-vis.git"
16
+ },
17
+ "author": {
18
+ "name": "Peter Reschenhofer",
19
+ "email": "peter@abteil.org"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/petres/gen-vis/issues"
23
+ },
24
+ "homepage": "https://github.com/petres/gen-vis",
25
+ "dependencies": {
26
+ "axios": "^1",
27
+ "d3": "^7",
28
+ "deepmerge": "^4",
29
+ "pinia": "^2",
30
+ "vue": "^3"
31
+ },
32
+ "devDependencies": {
33
+ "copy-webpack-plugin": "^11",
34
+ "css-loader": "^6",
35
+ "file-loader": "^6",
36
+ "html-webpack-plugin": "^5",
37
+ "sass": "^1",
38
+ "sass-loader": "^13",
39
+ "style-loader": "^3",
40
+ "vue-loader": "^17",
41
+ "webpack-cli": "^4",
42
+ "webpack-dev-server": "^4"
43
+ }
44
+ }