PageSourceSearch

https://samugiken.com/_next/static/chunks/1635-046ecba7ff371e6b.js

js samugiken.com collected 2026-10-07 01:52:03 UTC 978,734 bytes, 38 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1635],{67310:function(t,e,n){"use strict";var r=(0,n(42694).i)("Line");e.Z=r},42694:function(t,e,n){"use strict";let r,i,a,o;n.d(e,{i:function(){return R_}});var l,s,u,c,f,p,d,h,y,g,m,v,b,x,O,w,M,_,k,j,A,E,S,P,C,T,R,L,N,I,F,B,D,z,$,W,Z,H,q,G,Y,V={};n.r(V),n.d(V,{area:function(){return ut},bottom:function(){return ul},bottomLeft:function(){return ul},bottomRight:function(){return ul},inside:function(){return ul},left:function(){return ul},outside:function(){return uf},right:function(){return ul},spider:function(){return ux},surround:function(){return uw},top:function(){return ul},topLeft:function(){return ul},topRight:function(){return ul}});var U={};n.r(U),n.d(U,{interpolateBlues:function(){return pO},interpolateBrBG:function(){return fZ},interpolateBuGn:function(){return f8},interpolateBuPu:function(){return f7},interpolateCividis:function(){return pT},interpolateCool:function(){return pW},interpolateCubehelixDefault:function(){return pz},interpolateGnBu:function(){return pe},interpolateGreens:function(){return pM},interpolateGreys:function(){return pk},interpolateInferno:function(){return pJ},interpolateMagma:function(){return pQ},interpolateOrRd:function(){return pr},interpolateOranges:function(){return pC},interpolatePRGn:function(){return fq},interpolatePiYG:function(){return fY},interpolatePlasma:function(){return p0},interpolatePuBu:function(){return pl},interpolatePuBuGn:function(){return pa},interpolatePuOr:function(){return fU},interpolatePuRd:function(){return pu},interpolatePurples:function(){return pA},interpolateRainbow:function(){return pH},interpolateRdBu:function(){return fK},interpolateRdGy:function(){return fJ},interpolateRdPu:function(){return pf},interpolateRdYlBu:function(){return f1},interpolateRdYlGn:function(){return f5},interpolateReds:function(){return pS},interpolateSinebow:function(){return pV},interpolateSpectral:function(){return f4},interpolateTurbo:function(){return pU},interpolateViridis:function(){return pK},interpolateWarm:function(){return p$},interpolateYlGn:function(){return py},interpolateYlGnBu:function(){return pd},interpolateYlOrBr:function(){return pm},interpolateYlOrRd:function(){return pb},schemeAccent:function(){return c2},schemeBlues:function(){return px},schemeBrBG:function(){return fW},schemeBuGn:function(){return f6},schemeBuPu:function(){return f9},schemeCategory10:function(){return c1},schemeDark2:function(){return c5},schemeGnBu:function(){return pt},schemeGreens:function(){return pw},schemeGreys:function(){return p_},schemeObservable10:function(){return c3},schemeOrRd:function(){return pn},schemeOranges:function(){return pP},schemePRGn:function(){return fH},schemePaired:function(){return c4},schemePastel1:function(){return c6},schemePastel2:function(){return c8},schemePiYG:function(){return fG},schemePuBu:function(){return po},schemePuBuGn:function(){return pi},schemePuOr:function(){return fV},schemePuRd:function(){return ps},schemePurples:function(){return pj},schemeRdBu:function(){return fX},schemeRdGy:function(){return fQ},schemeRdPu:function(){return pc},schemeRdYlBu:function(){return f0},schemeRdYlGn:function(){return f2},schemeReds:function(){return pE},schemeSet1:function(){return c9},schemeSet2:function(){return c7},schemeSet3:function(){return ft},schemeSpectral:function(){return f3},schemeTableau10:function(){return fe},schemeYlGn:function(){return ph},schemeYlGnBu:function(){return pp},schemeYlOrBr:function(){return pg},schemeYlOrRd:function(){return pv}});var X={};n.r(X),n.d(X,{geoAlbers:function(){return El},geoAlbersUsa:function(){return Es},geoAzimuthalEqualArea:function(){return Ep},geoAzimuthalEqualAreaRaw:function(){return Ef},geoAzimuthalEquidistant:function(){return Eh},geoAzimuthalEquidistantRaw:function(){return Ed},geoConicConformal:function(){return Ex},geoConicConformalRaw:function(){return Eb},geoConicEqualArea:function(){return Eo},geoConicEqualAreaRaw:function(){return Ea},geoConicEquidistant:function(){return E_},geoConicEquidistantRaw:function(){return EM},geoEqualEarth:function(){return EA},geoEqualEarthRaw:function(){return Ej},geoEquirectangular:function(){return Ew},geoEquirectangularRaw:function(){return EO},geoGnomonic:function(){return ES},geoGnomonicRaw:function(){return EE},geoIdentity:function(){return EP},geoMercator:function(){return Eg},geoMercatorRaw:function(){return Ey},geoNaturalEarth1:function(){return ET},geoNaturalEarth1Raw:function(){return EC},geoOrthographic:function(){return EL},geoOrthographicRaw:function(){return ER},geoProjection:function(){return En},geoProjectionMutator:function(){return Er},geoStereographic:function(){return EI},geoStereographicRaw:function(){return EN},geoTransverseMercator:function(){return EB},geoTransverseMercatorRaw:function(){return EF}});var K={};n.r(K),n.d(K,{frequency:function(){return SV},id:function(){return SU},name:function(){return SX},weight:function(){return SY}});
1var Q=n(75271),J=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})},tt=function(t,e){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){return function(l){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=e.call(t,a)}catch(t){l=[6,t],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},te="__rc_react_root__",tn=!1,tr=new Map;"undefined"!=typeof document&&tr.set("tooltip",document.createElement("div"));var ti=function(t,e){void 0===e&&(e=!1);var r=null;if(e)r=tr.get("tooltip");else if(r=document.createElement("div"),null==t?void 0:t.key){var i=tr.get(t.key);i?r=i:tr.set(t.key,r)}return!function(t,e){J(this,void 0,void 0,function(){return tt(this,function(r){switch(r.label){case 0:return[4,function(){return J(this,void 0,void 0,function(){var t;return tt(this,function(e){switch(e.label){case 0:if(tn)return[2];tn=!0,e.label=1;case 1:if(e.trys.push([1,6,,7]),!(parseInt((Q.version||"").split(".")[0],10)>=18))return[3,3];return[4,Promise.resolve().then(n.t.bind(n,38751,19))];case 2:return v2=e.sent().createRoot,[3,5];case 3:return[4,Promise.resolve().then(n.t.bind(n,30967,19))];case 4:v5=(t=e.sent()).render,t.unmountComponentAtNode,e.label=5;case 5:return[3,7];case 6:return console.warn("[react-render] Failed to load ReactDOM API:",e.sent()),[3,7];case 7:return[2]}})})}()];case 1:return(r.sent(),v2)?(e[te]||(e[te]=v2(e)),e[te].render(t)):!function(t,e){if(!v5)throw Error("ReactDOM.render not available");v5(t,e)}(t,e),[2]}})})}(t,r),r},ta=function(){return(ta=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},to=function(t,e){if(void 0===e&&(e={}),"undefined"==typeof document)return"loading";var n="";e&&Object.keys(e).forEach(function(t){n+="".concat(t,": ").concat(e[t],";\n")});var r=t.attachShadow({mode:"open"}),i=document.createElement("div"),a=document.createElement("style");a.innerHTML=".loading {\n    display: inline-block;\n    position: relative;\n    width: 80px;\n    height: 80px;\n  }\n  .loading div {\n    position: absolute;\n    top: 33px;\n    width: 13px;\n    height: 13px;\n    border-radius: 50%;\n    background: #ccc;\n    animation-timing-function: cubic-bezier(0, 1, 1, 0);\n    ".concat(n,"\n  }\n  .loading div:nth-child(1) {\n    left: 8px;\n    animation: loading1 0.6s infinite;\n  }\n  .loading div:nth-child(2) {\n    left: 8px;\n    animation: loading2 0.6s infinite;\n  }\n  .loading div:nth-child(3) {\n    left: 32px;\n    animation: loading2 0.6s infinite;\n  }\n  .loading div:nth-child(4) {\n    left: 56px;\n    animation: loading3 0.6s infinite;\n  }\n  @keyframes loading1 {\n    0% {\n      transform: scale(0);\n    }\n    100% {\n      transform: scale(1);\n    }\n  }\n  @keyframes loading3 {\n    0% {\n      transform: scale(1);\n    }\n    100% {\n      transform: scale(0);\n    }\n  }\n  @keyframes loading2 {\n    0% {\n      transform: translate(0, 0);\n    }\n    100% {\n      transform: translate(24px, 0);\n    }\n  }\n  "),i.classList.add("loading"),i.innerHTML="<div></div><div></div><div></div><div></div>",r.appendChild(a),r.appendChild(i)},tl=function(t){var e=t.loadingTemplate,n=t.theme,r=t.loading,i=Q.useRef(null),a="object"==typeof r?r:{},o=a.container,l=a.icon,s=void 0===l?{}:l;return Q.useEffect(function(){!e&&i.current&&to(i.current,s)},[]),Q.createElement("div",{className:"charts-loading-container",style:ta({position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,background:"dark"===(void 0===n?"light":n)?"rgb(20, 20, 20)":"rgb(255, 255, 255)"},void 0===o?{}:o)}
1,e||Q.createElement("div",{ref:i}))},ts=(vX=function(t,e){return(vX=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}vX(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),tu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={hasError:!1},e.renderError=function(t){var n=e.props.errorTemplate;return"function"==typeof n?n(t):n||Q.createElement("h5",null,"组件出错了,请核查后重试: ",t.message)},e}return ts(e,t),e.getDerivedStateFromError=function(t){return{hasError:!0,error:t}},e.getDerivedStateFromProps=function(t,e){return e.children!==t.children?{children:t.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):Q.createElement(Q.Fragment,null,this.props.children)},e}(Q.Component),tc=n(81764),tf=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};(0,tc.memoize)(function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,a=e.fontStyle,o=e.fontVariant,l=(v3||(v3=document.createElement("canvas").getContext("2d")),v3);return l.font=[a,i,o,"".concat(n,"px"),void 0===r?"sans-serif":r].join(" "),l.measureText((0,tc.isString)(t)?t:"")},function(t,e){return void 0===e&&(e={}),tf([t],(0,tc.values)(e),!0).join("")});var tp=function(t){var e=new Set(["g","circle","ellipse","image","rect","line","polyline","polygon","text","path","html","mesh"]);if([/\breact\b/i,/\.jsx/,/children:\s*\[/,/\*\s*[#@]__PURE__\s*\*/].some(function(e){return e.test(t)}))return!0;var n=t.match(/(\w+)?\.createElement\(\s*(['"`])([^'"`]+)\2/g);return!!n&&n.some(function(t){var n=t.match(/\.createElement\(\s*(['"`])([^'"`]+)\1/);return n&&!e.has(n[2].toLowerCase())})},td=function(){return(td=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},th=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],a=this._events["*"]||[],o=function(r){for(var i=r.length,a=0;a<i;a++)if(r[a]){var o=r[a],l=o.callback;o.once&&(r.splice(a,1),0===r.length&&delete e._events[t],i--,a--),l.apply(e,n)}};o(i),o(a)},t.prototype.off=function(t,e){if(t){if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t]}else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();let ty="main-layer",tg="label-layer",tm="element",tv="view",tb="plot",tx="component",tO="label",tw="area",tM="axis-breaks",t_="axis-breaks-group";var tk=n(66828),tj=n(30917),tA=n(87660),tE=n(58957),tS=n(75470),tP=n(12686),tC=n(50155),tT=n(15378),tR=n(26912),tL=n(89148),tN=n(27412),tI=n(45378),tF=n(10953),tB=n(14690),tD=n(35136),tz=n(17039);n(59928);var t$=n(17816),tW=n(75621),tZ=n(36108),tH=function(t){function e(t,n,r,i){var a;return(0,tj.Z)(this,e),(a=(0,tE.Z)(this,e,[t])).currentTime=r,a.timelineTime=i,a.target=n,a.type="finish",a.bubbles=!1,a.currentTarget=n,a.defaultPrevented=!1,a.eventPhase=a.AT_TARGET,a.timeStamp=Date.now(),a.currentTime=r,a.timelineTime=i,a}return(0,tS.Z)(e,t),(0,tA.Z)(e)}(tk.xA),tq=0,tG=(0,tA.Z)(function t(e,n){var r;(0,tj.Z)(this,t),this.currentTimePending=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._playbackRate=1,this._inTimeline=!0,this.effect=e,e.animation=this,this.timeline=n,this.id="".concat(tq++),this._inEffect=!!this.effect.update(0),this._totalDuration=Number(null===(r=this.effect)||void 0===r?void 0:r.getComputedTiming().endTime),this._holdTime=0,this._paused=!1,this.oldPlayState="idle",this.updatePromises()},[{key:"pending",get:function(){return null===this._startTime&&!this._paused&&0!==this.playbackRate||this.currentTimePending}},{key:"playState",get:function(){return this._idle?"idle":this._isFinished?"finished":this._paused?"paused":"running"}},{key:"ready",get:function(){var t=this;return this.readyPromise||(-1===this.timeline.animationsWithProm
1ises.indexOf(this)&&this.timeline.animationsWithPromises.push(this),this.readyPromise=new Promise(function(e,n){t.resolveReadyPromise=function(){e(t)},t.rejectReadyPromise=function(){n(Error())}}),this.pending||this.resolveReadyPromise()),this.readyPromise}},{key:"finished",get:function(){var t=this;return this.finishedPromise||(-1===this.timeline.animationsWithPromises.indexOf(this)&&this.timeline.animationsWithPromises.push(this),this.finishedPromise=new Promise(function(e,n){t.resolveFinishedPromise=function(){e(t)},t.rejectFinishedPromise=function(){n(Error())}}),"finished"===this.playState&&this.resolveFinishedPromise()),this.finishedPromise}},{key:"currentTime",get:function(){return this.updatePromises(),this._idle||this.currentTimePending?null:this._currentTime},set:function(t){if(!isNaN(t=Number(t))){if(this.timeline.restart(),!this._paused&&null!==this._startTime){var e;this._startTime=Number(null===(e=this.timeline)||void 0===e?void 0:e.currentTime)-t/this.playbackRate}this.currentTimePending=!1,this._currentTime!==t&&(this._idle&&(this._idle=!1,this._paused=!0),this.tickCurrentTime(t,!0),this.timeline.applyDirtiedAnimation(this))}}},{key:"startTime",get:function(){return this._startTime},set:function(t){null!==t&&(this.updatePromises(),!isNaN(t=Number(t))&&(this._paused||this._idle||(this._startTime=t,this.tickCurrentTime((Number(this.timeline.currentTime)-this._startTime)*this.playbackRate),this.timeline.applyDirtiedAnimation(this),this.updatePromises())))}},{key:"playbackRate",get:function(){return this._playbackRate},set:function(t){if(t!==this._playbackRate){this.updatePromises();var e=this.currentTime;this._playbackRate=t,this.startTime=null,"paused"!==this.playState&&"idle"!==this.playState&&(this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this)),null!==e&&(this.currentTime=e),this.updatePromises()}}},{key:"_isFinished",get:function(){return!this._idle&&(this._playbackRate>0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&0>=Number(this._currentTime))}},{key:"totalDuration",get:function(){return this._totalDuration}},{key:"_needsTick",get:function(){return this.pending||"running"===this.playState||!this._finishedFlag}},{key:"updatePromises",value:function(){if(null!==(t=this.effect.target)&&void 0!==t&&t.destroyed)return this.readyPromise=void 0,this.finishedPromise=void 0,!1;var t,e=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==e&&("idle"===n?(this.rejectReadyPromise(),this.readyPromise=void 0):"pending"===e?this.resolveReadyPromise():"pending"===n&&(this.readyPromise=void 0)),this.finishedPromise&&n!==e&&("idle"===n?(this.rejectFinishedPromise(),this.finishedPromise=void 0):"finished"===n?this.resolveFinishedPromise():"finished"===e&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise}},{key:"play",value:function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),-1===this.timeline.animations.indexOf(this)&&this.timeline.animations.push(this),this.updatePromises()}},{key:"pause",value:function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._isFinished||this._paused||this._idle?this._idle&&(this.rewind(),this._idle=!1):this.currentTimePending=!0,this._startTime=null,this._paused=!0,this.updatePromises()}},{key:"finish",value:function(){this.updatePromises(),this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())}},{key:"cancel",value:function(){var t=this;if(this.updatePromises(),this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=null,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var e=new tH(null,this,this.currentTime,null);setTimeout(function(){t.oncancel(e)})}}},{key:"reverse",value:function(){this.updatePromises();var t=this.currentTime;this.playbackRate*=-1,this.play(),null!==t&&(this.currentTime=t),this.updatePromises()}},{key:"updatePlaybackRate",value:function(t){this.playbackRate=t}},{key:"targetAnimations",value:function(){var t;return(null===(t=this.effect)||void 0===t?void 0:t.target).getAnimations()}},{key:"markTarget",value:function(){var t=this.targetAnimations();-1===t.indexOf(this)&&t.push(this)}},{key:"unmarkTarget",value:function(){var t=this.targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}},{key:"tick",value:function(t,e){this._idle||this._paused||(null===this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this.currentTimePending=!1,this.fireEvents(t))}},{key:"rewind",value:function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw Error("Unable to rewind negative playback rate animation with infinite duration")}},{key:"persist",value:function(){throw Error(tk.jf)}},{key:"addEventListener",value:function(t,e,n){throw Error(tk.jf)}},{key:"removeEventListener",value:function(t,e,n){throw Error(tk.jf)}},{key:"dispatchEvent",value:function(t){throw Error(tk.jf)}},{key:"commitStyles",value:function(){throw Error(tk.jf)}},{key:"ensureAlive",value:function(){var t,e;this.playbackRate<0&&0===this.currentTime?this._inEffect=!!(null!==(t=this.effect)&&void 0!==t&&t.update(-1)):this._inEffect=!!(null!==(e=this.effect)&&void 0!==e&&e.update(this.currentTime)),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,this.timeline.animations.push(this))}},{key:"tickCurrentTime",value:function(t,e){t!==this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())}},{key:"fireEvents",value:function(t){var e=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var n=new tH(null,this,this.currentTime,t);setTimeout(function(){e.onfinish&&e.onfinish(n)})}this._finishedFlag=!0}}else{if(this.onframe&&"running"===this.playState){var r=new tH(null,this,this.currentTime,t);this.onframe(r)}this._finishedFlag=!1}}}]),tY="function"==typeof Float32Array,tV=function(t,e){return 1-3*e+3*t},tU=function(t,e){return 3*e-6*t},tX=function(t){return 3*t}
1,tK=function(t,e,n){return((tV(e,n)*t+tU(e,n))*t+tX(e))*t},tQ=function(t,e,n){return 3*tV(e,n)*t*t+2*tU(e,n)*t+tX(e)},tJ=function(t,e,n,r,i){var a,o,l=0;do(a=tK(o=e+(n-e)/2,r,i)-t)>0?n=o:e=o;while(Math.abs(a)>1e-7&&++l<10);return o},t0=function(t,e,n,r){for(var i=0;i<4;++i){var a=tQ(e,n,r);if(0===a)break;var o=tK(e,n,r)-t;e-=o/a}return e},t1=function(t,e,n,r){if(!(t>=0&&t<=1&&n>=0&&n<=1))throw Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return function(t){return t};for(var i=tY?new Float32Array(11):Array(11),a=0;a<11;++a)i[a]=tK(.1*a,t,n);var o=function(e){for(var r=0,a=1;10!==a&&i[a]<=e;++a)r+=.1;var o=r+(e-i[--a])/(i[a+1]-i[a])*.1,l=tQ(o,t,n);return l>=.001?t0(e,o,t,n):0===l?o:tJ(e,r,r+.1,t,n)};return function(t){return 0===t||1===t?t:tK(o(t),e,r)}},t2=function(t){return Math.pow(t,2)},t5=function(t){return Math.pow(t,3)},t3=function(t){return Math.pow(t,4)},t4=function(t){return Math.pow(t,5)},t6=function(t){return Math.pow(t,6)},t8=function(t){return 1-Math.cos(t*Math.PI/2)},t9=function(t){return 1-Math.sqrt(1-t*t)},t7=function(t){return t*t*(3*t-2)},et=function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)},ee=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,tC.Z)(e,2),r=n[0],i=n[1],a=(0,tT.Z)(Number(void 0===r?1:r),1,10),o=(0,tT.Z)(Number(void 0===i?.5:i),.1,2);return 0===t||1===t?t:-a*Math.pow(2,10*(t-1))*Math.sin(2*Math.PI*(t-1-o/(2*Math.PI)*Math.asin(1/a))/o)},en=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=(0,tC.Z)(e,4),i=r[0],a=void 0===i?1:i,o=r[1],l=void 0===o?100:o,s=r[2],u=void 0===s?10:s,c=r[3],f=void 0===c?0:c;a=(0,tT.Z)(a,.1,1e3),l=(0,tT.Z)(l,.1,1e3),u=(0,tT.Z)(u,.1,1e3),f=(0,tT.Z)(f,.1,1e3);var p=Math.sqrt(l/a),d=u/(2*Math.sqrt(l*a)),h=d<1?p*Math.sqrt(1-d*d):0,y=d<1?(d*p+-f)/h:-f+p,g=n?n*t/1e3:t;return(g=d<1?Math.exp(-g*d*p)*(1*Math.cos(h*g)+y*Math.sin(h*g)):(1+y*g)*Math.exp(-g*p),0===t||1===t)?t:1-g},er=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,tC.Z)(e,2),r=n[0],i=void 0===r?10:r;return("start"===n[1]?Math.ceil:Math.floor)((0,tT.Z)(t,0,1)*i)/i},ei=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,tC.Z)(e,4);return t1(n[0],n[1],n[2],n[3])(t)},ea=t1(.42,0,1,1),eo=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return 1-t(1-e,n,r)}},el=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return e<.5?t(2*e,n,r)/2:1-t(-2*e+2,n,r)/2}},es=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return e<.5?(1-t(1-2*e,n,r))/2:(t(2*e-1,n,r)+1)/2}},eu={steps:er,"step-start":function(t){return er(t,[1,"start"])},"step-end":function(t){return er(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":ei,ease:function(t){return ei(t,[.25,.1,.25,1])},in:ea,out:eo(ea),"in-out":el(ea),"out-in":es(ea),"in-quad":t2,"out-quad":eo(t2),"in-out-quad":el(t2),"out-in-quad":es(t2),"in-cubic":t5,"out-cubic":eo(t5),"in-out-cubic":el(t5),"out-in-cubic":es(t5),"in-quart":t3,"out-quart":eo(t3),"in-out-quart":el(t3),"out-in-quart":es(t3),"in-quint":t4,"out-quint":eo(t4),"in-out-quint":el(t4),"out-in-quint":es(t4),"in-expo":t6,"out-expo":eo(t6),"in-out-expo":el(t6),"out-in-expo":es(t6),"in-sine":t8,"out-sine":eo(t8),"in-out-sine":el(t8),"out-in-sine":es(t8),"in-circ":t9,"out-circ":eo(t9),"in-out-circ":el(t9),"out-in-circ":es(t9),"in-back":t7,"out-back":eo(t7),"in-out-back":el(t7),"out-in-back":es(t7),"in-bounce":et,"out-bounce":eo(et),"in-out-bounce":el(et),"out-in-bounce":es(et),"in-elastic":ee,"out-elastic":eo(ee),"in-out-elastic":el(ee),"out-in-elastic":es(ee),spring:en,"spring-in":en,"spring-out":eo(en),"spring-in-out":el(en),"spring-out-in":es(en)},ec=function(t){var e;return("-"===(e=(e=t).replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})).charAt(0)?e.substring(1):e).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},ef=function(t){return t};function ep(t,e){return function(n){if(n>=1)return 1;var r=1/t;return(n+=e*r)-n%r}}
1var ed="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",eh=new RegExp("cubic-bezier\\(".concat(ed,",").concat(ed,",").concat(ed,",").concat(ed,"\\)")),ey=/steps\(\s*(\d+)\s*\)/,eg=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function em(t){var e=eh.exec(t);if(e)return t1.apply(void 0,(0,tP.Z)(e.slice(1).map(Number)));var n=ey.exec(t);if(n)return ep(Number(n[1]),0);var r=eg.exec(t);return r?ep(Number(r[1]),{start:1,middle:.5,end:0}[r[2]]):eu[ec(t)]||eu.linear}function ev(t){return"offset"!==t&&"easing"!==t&&"composite"!==t&&"computedOffset"!==t}var eb=function(t,e,n){return function(r){var i=function t(e,n,r){if("number"==typeof e&&"number"==typeof n)return e*(1-r)+n*r;if("boolean"==typeof e&&"boolean"==typeof n||"string"==typeof e&&"string"==typeof n)return r<.5?e:n;if(Array.isArray(e)&&Array.isArray(n)){for(var i=e.length,a=n.length,o=Math.max(i,a),l=[],s=0;s<o;s++)l.push(t(e[s<i?s:i-1],n[s<a?s:a-1],r));return l}throw Error("Mismatched interpolation arguments ".concat(e,":").concat(n))}(t,e,r);return(0,tR.Z)(i)?i:n(i)}},ex=(0,tA.Z)(function t(){(0,tj.Z)(this,t),this.delay=0,this.direction="normal",this.duration="auto",this._easing="linear",this.easingFunction=ef,this.endDelay=0,this.fill="auto",this.iterationStart=0,this.iterations=1,this.currentIteration=null,this.progress=null},[{key:"easing",get:function(){return this._easing},set:function(t){this.easingFunction=em(t),this._easing=t}}]);function eO(t,e){if(null===t)return[];Array.isArray(t)||(t=function(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var i=r.length,a=0;a<i;a++){if(!e[a]){var o={};"offset"in t&&(o.offset=Number(t.offset)),"easing"in t&&(o.easing=t.easing),"composite"in t&&(o.composite=t.composite),e[a]=o}void 0!==r[a]&&null!==r[a]&&(e[a][n]=r[a])}}return e.sort(function(t,e){return(t.computedOffset||0)-(e.computedOffset||0)}),e}(t));for(var n=t.map(function(t){var n={};for(var r in null!=e&&e.composite&&(n.composite="auto"),t){var i=t[r];if("offset"===r){if(null!==i){if(!isFinite(i=Number(i)))throw Error("Keyframe offsets must be numbers.");if(i<0||i>1)throw Error("Keyframe offsets must be between 0 and 1.");n.computedOffset=i}}else if("composite"===r&&-1===["replace","add","accumulate","auto"].indexOf(i))throw Error("".concat(i," compositing is not supported"));n[r]=i}return void 0===n.offset&&(n.offset=null),void 0===n.easing&&(n.easing=(null==e?void 0:e.easing)||"linear"),void 0===n.composite&&(n.composite="auto"),n}),r=!0,i=-1/0,a=0;a<n.length;a++){var o=n[a].offset;if((0,tL.Z)(o))r=!1;
1else{if(o<i)throw TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");i=o}}return n=n.filter(function(t){return Number(t.offset)>=0&&1>=Number(t.offset)}),r||function(){var t,e,r=n.length;n[r-1].computedOffset=Number(null!==(t=n[r-1].offset)&&void 0!==t?t:1),r>1&&(n[0].computedOffset=Number(null!==(e=n[0].offset)&&void 0!==e?e:0));for(var i=0,a=Number(n[0].computedOffset),o=1;o<r;o++){var l=n[o].computedOffset;if(!(0,tL.Z)(l)&&!(0,tL.Z)(a)){for(var s=1;s<o-i;s++)n[i+s].computedOffset=a+(Number(l)-a)*s/(o-i);i=o,a=Number(l)}}}(),n}var ew="backwards|forwards|both|none".split("|"),eM="reverse|alternate|alternate-reverse".split("|"),e_=(0,tA.Z)(function t(e,n,r){var i,a,o,l,s,u,c,f,p,d,h,y,g=this;(0,tj.Z)(this,t),this.composite="replace",this.iterationComposite="replace",this.target=e,this.timing=("number"==typeof(i=null!=(l=r)?l:{duration:"auto"})&&(i=isNaN(i)?{duration:"auto"}:{duration:i}),s=l=i,u=new ex,"number"!=typeof s||isNaN(s)?void 0!==s&&Object.keys(s).forEach(function(t){void 0===s[t]||null===s[t]||"auto"===s[t]||("number"==typeof u[t]||"duration"===t)&&("number"!=typeof s[t]||isNaN(s[t]))||"fill"===t&&-1===ew.indexOf(s[t])||"direction"===t&&-1===eM.indexOf(s[t])||(u[t]=s[t])}):u.duration=s,u),this.timing.effect=this,this.timing.activeDuration=Math.abs((0===(a=c=this.timing).duration||0===a.iterations?0:("auto"===a.duration?0:Number(a.duration))*(null!==(o=a.iterations)&&void 0!==o?o:1))/(c.playbackRate||1)),this.timing.endTime=Math.max(0,this.timing.delay+this.timing.activeDuration+this.timing.endDelay),this.normalizedKeyframes=eO(n,this.timing),this.interpolations=(f=this.normalizedKeyframes,p=this.timing,d=this.target,y=function(t,e){var n=[];for(var r in t)for(var i=t[r],a=0;a<i.length-1;a++){var o=a,l=a+1,s=i[o].computedOffset,u=i[l].computedOffset,c=s,f=u;0===a&&(c=-1/0,0===u&&(l=o)),a===i.length-2&&(f=1/0,1===s&&(o=l)),n.push({applyFrom:c,applyTo:f,startOffset:i[o].computedOffset,endOffset:i[l].computedOffset,easingFunction:i[o].easingFunction,property:r,interpolation:function(t,e,n,r){var i=tk.N1[t];if(i&&i.syntax&&i.int){var a=tk.GZ.styleValueRegistry.getPropertySyntax(i.syntax);if(a){var o=a.parser,l=o?o(e,r):e,s=o?o(n,r):n,u=a.mixer(l,s,r);if(u){var c=eb.apply(void 0,(0,tP.Z)(u));return function(t){return 0===t?e:1===t?n:c(t)}}}}return eb(!1,!0,function(t){return t?n:e})}(r,i[o].value,i[l].value,e)})}return n.sort(function(t,e){return t.startOffset-e.startOffset}),n}(h=function(t,e){for(var n={},r=0;r<t.length;r++)for(var i in t[r])if(ev(i)){var a={offset:t[r].offset,computedOffset:t[r].computedOffset,easing:t[r].easing,easingFunction:em(t[r].easing)||e.easingFunction,value:t[r][i]};n[i]=n[i]||[],n[i].push(a)}return n}(f,p),d),function(t,e){if(null!==e)y.filter(function(t){return e>=t.applyFrom&&e<t.applyTo}).forEach(function(n){var r=e-n.startOffset,i=n.endOffset-n.startOffset;t.setAttribute(n.property,n.interpolation(0===i?0:r/i),!1,!1)});else for(var n in h)ev(n)&&t.setAttribute(n,null)});var m=tk.GZ.globalThis.Proxy;this.computedTiming=m?new m(this.timing,{get:function(t,e){return"duration"===e?"auto"===t.duration?0:t.duration:"fill"===e?"auto"===t.fill?"none":t.fill:"localTime"===e?g.animation&&g.animation.currentTime||null:"currentIteration"===e?g.animation&&"running"===g.animation.playState?t.currentIteration||0:null:"progress"===e?g.animation&&"running"===g.animation.playState?t.progress||0:null:t[e]},set:function(){return!0}}):this.timing},[{key:"applyInterpolations",value:function(){this.interpolations(this.target,Number(this.timeFraction))}},{key:"update",value:function(t){return null!==t&&(this.timeFraction=function(t,e,n){var r,i,a,o,l,s,u=function(t,e,n){if(null===e)return 0;var r=n.endTime;return e<Math.min(n.delay,r)?1:e>=Math.min(n.delay+t+n.endDelay,r)?2:3}(t,e,n),c=function(t,e,n,r,i){switch(r){case 1:if("backwards"===e||"both"===e)return 0;return null;case 3:return n-i;case 2:if("forwards"===e||"both"===e)return t;return null;case 0:return null}}(t,n.fill,e,u,n.delay);if(null===c)return null;var f="auto"===n.duration?0:n.duration,p=(r=n.iterations,i=n.iterationStart,0===f?1!==u&&(i+=r):i+=c/f,i),d=(a=n.iterationStart,o=n.iterations,0==(l=p===1/0?a%1:p%1)&&2===u&&0!==o&&(0!==c||0===f)&&(l=1),l),h=(s=n.iterations,2===u&&s===1/0?1/0:1===d?Math.floor(p)-1:Math.floor(p)),y=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var i=e;"alternate-reverse"===t&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,h,d);return n.currentIteration=h,n.progress=y,n.easingFunction(y)}(this.timing.activeDuration,t,this.timing),null!==this.timeFraction)}},{key:"getKeyframes",value:function(){return this.normalizedKeyframes}},{key:"setKeyframes",value:function(t){this.normalizedKeyframes=eO(t)}},{key:"getComputedTiming",value:function(){return this.computedTiming}},{key:"getTiming",value:function(){return this.timing}},{key:"updateTiming",value:function(t){var e=this;Object.keys(t||{}
1).forEach(function(n){e.timing[n]=t[n]})}}]);function ek(t,e){return Number(t.id)-Number(e.id)}var ej=(0,tA.Z)(function t(e){var n=this;(0,tj.Z)(this,t),this.animations=[],this.ticking=!1,this.timelineTicking=!1,this.hasRestartedThisFrame=!1,this.animationsWithPromises=[],this.inTick=!1,this.pendingEffects=[],this.currentTime=null,this.rafId=0,this.rafCallbacks=[],this.webAnimationsNextTick=function(t){n.currentTime=t,n.discardAnimations(),0===n.animations.length?n.timelineTicking=!1:n.requestAnimationFrame(n.webAnimationsNextTick)},this.processRafCallbacks=function(t){var e=n.rafCallbacks;n.rafCallbacks=[],t<Number(n.currentTime)&&(t=Number(n.currentTime)),n.animations.sort(ek),n.animations=n.tick(t,!0,n.animations)[0],e.forEach(function(e){e[1](t)}),n.applyPendingEffects()},this.document=e},[{key:"getAnimations",value:function(){return this.discardAnimations(),this.animations.slice()}},{key:"isTicking",value:function(){return this.inTick}},{key:"play",value:function(t,e,n){var r=new tG(new e_(t,e,n),this);return this.animations.push(r),this.restartWebAnimationsNextTick(),r.updatePromises(),r.play(),r.updatePromises(),r}},{key:"applyDirtiedAnimation",value:function(t){var e=this;if(!this.inTick){t.markTarget();var n=t.targetAnimations();n.sort(ek),this.tick(Number(this.currentTime),!1,n.slice())[1].forEach(function(t){var n=e.animations.indexOf(t);-1!==n&&e.animations.splice(n,1)}),this.applyPendingEffects()}}},{key:"restart",value:function(){return this.ticking||(this.ticking=!0,this.requestAnimationFrame(function(){}),this.hasRestartedThisFrame=!0),this.hasRestartedThisFrame}},{key:"destroy",value:function(){this.document.defaultView.cancelAnimationFrame(this.frameId)}},{key:"applyPendingEffects",value:function(){this.pendingEffects.forEach(function(t){null==t||t.applyInterpolations()}),this.pendingEffects=[]}},{key:"updateAnimationsPromises",value:function(){this.animationsWithPromises=this.animationsWithPromises.filter(function(t){return t.updatePromises()})}},{key:"discardAnimations",value:function(){this.updateAnimationsPromises(),this.animations=this.animations.filter(function(t){return"finished"!==t.playState&&"idle"!==t.playState})}},{key:"restartWebAnimationsNextTick",value:function(){this.timelineTicking||(this.timelineTicking=!0,this.requestAnimationFrame(this.webAnimationsNextTick))}},{key:"rAF",value:function(t){var e=this.rafId++;return 0===this.rafCallbacks.length&&(this.frameId=this.document.defaultView.requestAnimationFrame(this.processRafCallbacks)),this.rafCallbacks.push([e,t]),e}},{key:"requestAnimationFrame",value:function(t){var e=this;return this.rAF(function(n){e.updateAnimationsPromises(),t(n),e.updateAnimationsPromises()})}},{key:"tick",value:function(t,e,n){var r,i,a=this;this.inTick=!0,this.hasRestartedThisFrame=!1,this.currentTime=t,this.ticking=!1;var o=[],l=[],s=[],u=[];return n.forEach(function(n){n.tick(t,e),n._inEffect?(l.push(n.effect),n.markTarget()):(o.push(n.effect),n.unmarkTarget()),n._needsTick&&(a.ticking=!0);var r=n._inEffect||n._needsTick;n._inTimeline=r,r?s.push(n):u.push(n)}),(r=this.pendingEffects).push.apply(r,o),(i=this.pendingEffects).push.apply(i,l),this.ticking&&this.requestAnimationFrame(function(){}),this.inTick=!1,[s,u]}}]);tk.GZ.EasingFunction=em,tk.GZ.AnimationTimeline=ej;var eA=function(t){function e(){var t;(0,tj.Z)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=(0,tE.Z)(this,e,[].concat(r))).landmarks=[],t}return(0,tS.Z)(e,t),(0,tA.Z)(e,[{key:"rotate",value:function(t,e,n){if(this.relElevation=(0,tk._O)(e),this.relAzimuth=(0,tk._O)(t),this.relRoll=(0,tk._O)(n),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===tk.iM.EXPLORING){var r=tF.yY(tF.Ue(),[1,0,0],(0,tk.Vl)((this.rotateWorld?1:-1)*this.relElevation)),i=tF.yY(tF.Ue(),[0,1,0],(0,tk.Vl)((this.rotateWorld?1:-1)*this.relAzimuth)),a=tF.yY(tF.Ue(),[0,0,1],(0,tk.Vl)(this.relRoll)),o=tF.Jp(tF.Ue(),i,r);o=tF.Jp(tF.Ue(),o,a);var l=tB.fromQuat(tB.create(),o);tB.translate(this.matrix,this.matrix,[0,0,-this.distance]),tB.multiply(this.matrix,this.matrix,l),tB.translate(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===tk.iM.ORBITING||this.type===tk.iM.EXPLORING?this._getPosition():this.type===tk.iM.TRACKING&&this._getFocalPoint(),this._update(),this}},{key:"pan",value:function(t,e){var n=(0,tk.O4)(t,e,0),r=tD.d9(this.position);return tD.IH(r,r,tD.bA(tD.Ue(),this.right,n[0])),tD.IH(r,r,tD.bA(tD.Ue(),this.up,n[1])),this._setPosition(r),this.triggerUpdate(),this}},{key:"dolly",value:function(t){var e=this.forward,n=tD.d9(this.position),r=t*this.dollyingStep;return r=Math.max(Math.min(this.distance+t*this.dollyingStep,this.maxDistance),this.minDistance)-this.distance,n[0]+=r*e[0],n[1]+=r*e[1],n[2]+=r*e[2],this._setPosition(n),this.type===tk.iM.ORBITING||this.type===tk.iM.EXPLORING?this._getDistance():this.type===tk.iM.TRACKING&&tD.IH(this.focalPoint,n,this.distanceVector),this.triggerUpdate(),this}},{key:"cancelLandmarkAnimation",value:function(){void 0!==this.landmarkAnimationID&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)}},{key:"createLandmark",value:function(t){var e,n,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=a.position,l=void 0===o?this.position:o,s=a.focalPoint,u=void 0===s?this.focalPoint:s,c=a.roll,f=a.zoom,p=new tk.GZ.CameraContribution;p.setType(this.type,void 0),p.setPosition(l[0],null!==(e=l[1])&&void 0!==e?e:this.position[1],null!==(n=l[2])&&void 0!==n?n:this.position[2]),p.setFocalPoint(u[0],null!==(r=u[1])&&void 0!==r?r:this.focalPoint[1],null!==(i=u[2])&&void 0!==i?i:this.focalPoint[2]),p.setRoll(null!=c?c:this.roll),p.setZoom(null!=f?f:this.zoom);var d={name:t,matrix:tB.clone(p.getWorldTransform()),right:tD.d9(p.right),up:tD.d9(p.up),forward:tD.d9(p.forward),position:tD.d9(p.getPosition()),focalPoint:tD.d9(p.getFocalPoint()),distanceVector:tD.d9(p.getDistanceVector()),distance:p.getDistance(),dollyingStep:p.getDollyingStep(),azimuth:p.getAzimuth(),elevation:p.getElevation(),roll:p.getRoll(),relAzimuth:p.relAzimuth,relElevation:p.relElevation,relRoll:p.relRoll,zoom:p.getZoom()};return this.landmarks.push(d),d}},{key:"gotoLandmark",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,tN.Z)(t)?this.landmarks.find(function(e){return e.name===t}):t;if(r){var i,a=(0,tR.Z)(n)?{duration:n}:n,o=a.easing,l=a.duration,s=void 0===l?100:l,u=a.easingFunction,c=a.onfinish,f=void 0===c?void 0:c,p=a.onframe,d=void 0===p?void 0:p;this.cancelLandmarkAnimation();var h=r.position,y=r.focalPoint,g=r.zoom,m=r.roll,v=(void 0===u?void 0:u)||tk.GZ.EasingFunction(void 0===o?"linear":o),b=function(){e.setFocalPoint(y),e.setPosition(h),e.setRoll(m),e.setZoom(g),e.computeMatrix(),e.triggerUpdate(),null==f||f()};if(0===s)return b();var x=function(t){void 0===i&&(i=t);var n=t-i;if(n>=s){b();return}var r=v(n/s),a=tD.Ue(),o=tD.Ue(),l=1,u=0;if(tD.t7(a,e.focalPoint,y,r),tD.t7(o,e.position,h,r),u=e.roll*(1-r)+m*r,l=e.zoom*(1-r)+g*r,e.setFocalPoint(a),e.setPosition(o),e.setRoll(u),e.setZoom(l),tD.TK(a,y)+tD.TK(o,h)<=.01&&void 0===g&&void 0===m)return b();e.computeMatrix(),e.triggerUpdate(),n<s&&(null==d||d(r),e.landmarkAnimationID=e.canvas.requestAnimationFrame(x))};this.canvas.requestAnimationFrame(x)}}}])}(tk.V1);tk.GZ.CameraContribution=eA;var eE=["body","startHead","endHead","startHeadOffset","endHeadOffset"],eS=["body","startHead","endHead","startHeadOffset","endHeadOffset"],eP=["body","startHead","endHead","startHeadOffset","endHeadOffset"],eC=function(t){function e(t){(0,tj.Z)(this,e);var n,r=(n=(0,tE.Z)(this,e,[(0,t$.Z)((0,t$.Z)({},t),{},{type:e.tag})])).attributes,i=r.body,a=r.startHead,o=r.endHead;r.startHeadOffset,r.endHeadOffset;var l=(0,tz.Z)(r,eE);if(!i)throw Error("Arrow's body is required");return n.body=i,n.appendChild(n.body),n.handleBodyAttributeChanged(n.body),a&&n.appendArrowHead(n.getArrowHeadType(a),!0),o&&n.appendArrowHead(n.getArrowHeadType(o),!1),n.applyArrowStyle(l,[n.body,n.startHead,n.endHead]),n}return(0,tS.Z)(e,t),(0,tA.Z)(e,[{key:"handleBodyAttributeChanged",value:function(t){var e=this;t.addEventListener(tk.Dk.ATTR_MODIFIED,function(t){var n=t.attrName;"x1"===n||"y1"===n?e.startHead&&e.transformArrowHead(e.startHead,!0):("x2"===n||"y2"===n)&&e.endHead&&e.transformArrowHead(e.endHead,!1)})}},{key:"getBody",value:function(){return this.body}},{key:"getStartHead",value:function(){return this.startHead}},{key:"getEndHead",value:function(){return this.endHead}},{key:"attributeChangedCallback",value:function(t,e,n){if("opacity"===t||"strokeOpacity"===t||"stroke"===t||"lineWidth"===t||"increasedLineWi
1dthForHitTesting"===t)this.applyArrowStyle((0,tW.Z)({},t,n),[this.body,this.startHead,this.endHead]);else if("startHead"===t||"endHead"===t){var r="startHead"===t;if(this.destroyArrowHead(r),n){var i=this.attributes;i.body,i.startHead,i.endHead,i.startHeadOffset,i.endHeadOffset;var a=(0,tz.Z)(i,eS);this.appendArrowHead(this.getArrowHeadType(n),r),this.applyArrowStyle(a,[r?this.startHead:this.endHead])}}else if("body"===t){var o=this.attributes;o.body,o.startHead,o.endHead,o.startHeadOffset,o.endHeadOffset;var l=(0,tz.Z)(o,eP);this.body.destroy(),this.body=n,this.appendChild(this.body),this.applyArrowStyle(l,[this.body])}else"startHeadOffset"===t?this.moveArrowHeadAlongTangent(n,!0):"endHeadOffset"===t&&this.moveArrowHeadAlongTangent(n,!1)}},{key:"getArrowHeadType",value:function(t){return"boolean"==typeof t?"default":"custom"}},{key:"appendArrowHead",value:function(t,e){n="default"===t?this.createDefaultArrowHead():e?this.attributes.startHead:this.attributes.endHead,this.transformArrowHead(n,e),n.setAttribute("zIndex",1),e?this.startHead=n:this.endHead=n,this.appendChild(n);var n,r=e?this.attributes.startHeadOffset:this.attributes.endHeadOffset;r&&this.moveArrowHeadAlongTangent(r,e)}},{key:"transformArrowHead",value:function(t,e){var n=tD.Ue(),r=0,i=0,a=0,o=0,l=0,s=this.body&&this.body.nodeName;if(s===tk.bn.LINE){var u=this.body.attributes,c=u.x1,f=u.x2,p=u.y1,d=u.y2;i=e?f:c,a=e?c:f,o=e?d:p,l=e?p:d}else if(s===tk.bn.POLYLINE){var h=this.body.attributes.points,y=h.length;i=e?h[1][0]:h[y-2][0],o=e?h[1][1]:h[y-2][1],a=e?h[0][0]:h[y-1][0],l=e?h[0][1]:h[y-1][1]}else if(s===tk.bn.PATH){var g=this.getTangent(this.body,e),m=(0,tC.Z)(g,2),v=m[0],b=m[1];i=v[0],o=v[1],a=b[0],l=b[1]}r=Math.atan2(o-l,i-a),n=tD.al(a,l,0),e?(this.startHeadPosition=n,this.startHeadRad=r):(this.endHeadPosition=n,this.endHeadRad=r),t.setLocalPosition(n),t.setLocalEulerAngles(180*r/Math.PI+t.getLocalEulerAngles())}},{key:"moveArrowHeadAlongTangent",value:function(t,e){var n=e?this.startHead:this.endHead;n&&n.setLocalPosition(tD.lu(tD.Ue(),e?this.startHeadPosition:this.endHeadPosition,tD.al(Math.cos(e?this.startHeadRad:this.endHeadRad)*t,Math.sin(e?this.startHeadRad:this.endHeadRad)*t,0))),this.body}},{key:"destroyArrowHead",value:function(t){t&&this.startHead&&(this.startHead.destroy(),this.startHead=void 0),!t&&this.endHead&&(this.endHead.destroy(),this.endHead=void 0)}},{key:"getTangent",value:function(t,e){return e?t.getStartTangent():t.getEndTangent()}},{key:"createDefaultArrowHead",value:function(){var t=this.attributes,e=t.stroke,n=t.lineWidth,r=Math.sin,i=Math.PI,a=10*(0,Math.cos)(i/6);return new tk.y$({style:{d:"M".concat(a/2,",").concat(10*r(i/6)," L-").concat(a/2,",0 L").concat(a/2,",-").concat(10*r(i/6)),stroke:e,lineWidth:n,transformOrigin:"center"}})}},{key:"applyArrowStyle",value:function(t,e){var n=t.opacity,r=t.stroke,i=t.strokeOpacity,a=t.lineWidth,o=t.increasedLineWidthForHitTesting;e.forEach(function(t){t&&((0,tL.Z)(n)||(t.style.opacity=n),(0,tL.Z)(r)||(t.style.stroke=r),(0,tL.Z)(i)||(t.style.strokeOpacity=i),(0,tL.Z)(a)||(t.style.lineWidth=a),(0,tL.Z)(o)||(t.style.increasedLineWidthForHitTesting=o))})}}])}(tk.b_);eC.tag="arrow",eC.PARSED_STYLE_LIST=new Set([].concat((0,tP.Z)(tk.b_.PARSED_STYLE_LIST),["body","startHead","endHead","startHeadOffset","endHeadOffset","stroke","lineWidth","opacity","strokeOpacity"]));var eT=Math.PI,eR=2*eT,eL=Math.sin,eN=Math.cos,eI=Math.acos,eF=Math.atan2,eB=Math.sqrt,eD=Math.max,ez=Math.min;[{name:"sr",inherits:!1,interpolable:!0,syntax:tk.h0.LENGTH_PERCENTAGE},{name:"sr0",inherits:!1,interpolable:!0,syntax:tk.h0.LENGTH_PERCENTAGE},{name:"startAngle",inherits:!1,interpolable:!0,syntax:tk.h0.ANGLE},{name:"endAngle",inherits:!1,interpolable:!0,syntax:tk.h0.ANGLE}].forEach(function(t){tk.ux.registerProperty(t)});var e$=function(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}};function eW(t,e,n,r,i,a,o){var l=t-n,s=e-r,u=(o?a:-a)/eB(l*l+s*s),c=u*s,f=-u*l,p=t+c,d=e+f,h=n+c,y=r+f,g=(p+h)/2,m=(d+y)/2,v=h-p,b=y-d,x=v*v+b*b,O=i-a,w=p*y-h*d,M=(b<0?-1:1)*eB(eD(0,O*O*x-w*w)),_=(w*b-v*M)/x,k=(-w*v-b*M)/x,j=(w*b+v*M)/x,A=(-w*v+b*M)/x,E=_-g,S=k-m,P=j-g,C=A-m;return E*E+S*S>P*P+C*C&&(_=j,k=A),{cx:_,cy:k,x0:-c,y0:-f,x1:_*(i/O-1),y1:k*(i/O-1)}}function eZ(t,e){return(e=e<0&&t>=0?e+eR:e)-t<=eT?0:1}(function(t){function e(t){var n;return(0,tj.Z)(this,e),(n=(0,tE.Z)(this,e,[t])).updatePath(),n}return(0,tS.Z)(e,t),(0,tA.Z)(e,[{key:"setAttribute",value:function(t,n,r){(0,tZ.Z)(e,"setAttribute",this,3)([t,n,r]),["startAngle","endAngle","sr","sr0","radius"].indexOf(t)>-1&&this.updatePath()}},{key:"updatePath",value:function(){var t=this.parsedStyle,n=t.x,r=t.y,i=t.startAngle,a=t.endAngle,o=t.sr,l=t.sr0,s=t.radius,u=this.createPath(n,r,i?(0,tk.Vl)(i):0,a?(0,tk.Vl)(a):2*Math.PI,o||0,l||0,s||[0,0,0,0]);(0,tZ.Z)(e,"setAttribute",this,3)(["d",u])}},{key:"createPath",value:function(t,e,n,r,i,a,o){if(!(i<=0)){var l=e$(t,e,i,n),s=e$(t,e,i,r),u=e$(t,e,a,n),c=e$(t,e,a,r);if((0,tI.Z)(r-n,2*Math.PI)){var f=e$(t,e,i,n+Math.PI),p=e$(t,e,a,n+Math.PI),d=[["M",l.x,l.y],["A",i,i,0,1,1,f.x,f.y],["A",i,i,0,1,1,s.x,s.y],["M",u.x,u.y]];return a&&(d.push(["A",a,a,0,1,0,p.x,p.y]),d.push(["A",a,a,0,1,0,c.x,c.y])),d.push(["M",l.x,l.y]),d.push(["Z"]),d}var h=r-n,y=i*eN(n),g=i*eL(n),m=a*eN(r),v=a*eL(r),b=i*eN(r),x=i*eL(r),O=a*eN(n),w=a*eL(n),M=(0,tC.Z)(o,4),_=
1M[0],k=M[1],j=M[2],A=M[3],E=(i-a)/2,S=ez(E,_),P=ez(E,k),C=ez(E,j),T=ez(E,A),R=eD(S,P),L=eD(C,T),N=R,I=L;if((R>1e-4||L>1e-4)&&h<eT){var F=function(t,e,n,r,i,a,o,l){var s=n-t,u=r-e,c=o-i,f=l-a,p=f*s-c*u;if(!(p*p<1e-4))return p=(c*(e-a)-f*(t-i))/p,[t+p*s,e+p*u]}(y,g,O,w,b,x,m,v);if(F){var B=y-F[0],D=g-F[1],z=b-F[0],$=x-F[1],W=1/eL(eI((B*z+D*$)/(eB(B*B+D*D)*eB(z*z+$*$)))/2),Z=eB(F[0]*F[0]+F[1]*F[1]);N=ez(R,(i-Z)/(W+1)),I=ez(L,(a-Z)/(W-1))}}var H=eZ(n,r),q=[];if(N>1e-4){var G=ez(_,N),Y=ez(k,N),V=eW(O,w,y,g,i,G,!0),U=eW(b,x,m,v,i,Y,!0);if(q.push(["M",t+V.cx+V.x0,e+V.cy+V.y0]),N<R&&G===Y){var X=eF(V.y0,V.x0),K=eF(U.y0,U.x0);q.push(["A",N,N,0,eZ(X,K),1,t+U.cx+U.x0,e+U.cy+U.y0])}else{if(G>0){var Q=eF(V.y0,V.x0),J=eF(V.y1,V.x1),tt=e$(t,e,i,J);q.push(["A",G,G,0,eZ(Q,J),1,tt.x,tt.y])}var te=eF(V.cy+V.y1,V.cx+V.x1),tn=eF(U.cy+U.y1,U.cx+U.x1),tr=e$(t,e,i,tn);if(q.push(["A",i,i,0,eZ(te,tn),1,tr.x,tr.y]),Y>0){var ti=eF(U.y1,U.x1),ta=eF(U.y0,U.x0);q.push(["A",Y,Y,0,eZ(ti,ta),1,t+U.cx+U.x0,e+U.cy+U.y0])}}}else q.push(["M",l.x,l.y]),q.push(["A",i,i,0,H,1,s.x,s.y]);if(a<1e-4)q.push(["L",c.x,c.y]);else if(I>1e-4){var to=ez(A,I),tl=ez(j,I),ts=eW(m,v,0,0,a-i,tl,!0),tu=eW(0,0,O,w,a-i,to,!0);if(q.push(["L",t+ts.cx+ts.x0,e+ts.cy+ts.y0]),I<L&&to===tl){var tc=eF(ts.y0,ts.x0),tf=eF(tu.y0,tu.x0),tp=e$(t,e,a,tf);q.push(["A",N,N,0,eZ(tc,tf),1,tp.x,tp.y])}else{if(tl>0){var td=eF(ts.y0,ts.x0),th=eF(ts.y1,ts.x1),ty=e$(t,e,a-i,th);q.push(["A",tl,tl,0,eZ(td,th),1,ty.x,ty.y])}var tg=eF(ts.cy+ts.y1,ts.cx+ts.x1),tm=eF(tu.cy+tu.y1,tu.cx+tu.x1),tv=e$(t,e,a,tm);if(q.push(["A",a,a,0,eZ(tm,tg),0,tv.x,tv.y]),q.push(["L",tv.x,tv.y]),to>0){var tb=eF(tu.y1,tu.x1),tx=eF(tu.y0,tu.x0);q.push(["A",to,to,0,eZ(tb,tx),1,t+tu.cx+tu.x0,e+tu.cy+tu.y0])}}}else q.push(["L",c.x,c.y]),q.push(["A",a,a,0,H,0,u.x,u.y]);return q.push(["Z"]),q}}}])})(tk.y$).PARSED_STYLE_LIST=new Set([].concat((0,tP.Z)(tk.y$.PARSED_STYLE_LIST),["x","y","sr","sr0","radius","startAngle","endAngle"]));var eH=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let eq=(t,e,n)=>[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]];eq.style=["fill"];let eG=eq.bind(void 0);eG.style=["stroke","lineWidth"];let eY=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]];eY.style=["fill"];let eV=eY.bind(void 0);eV.style=["fill"];let eU=eY.bind(void 0);eU.style=["stroke","lineWidth"];let eX=(t,e,n)=>{let r=.618*n;return[["M",t-r,e],["L",t,e-n],["L",t+r,e],["L",t,e+n],["Z"]]};eX.style=["fill"];let eK=eX.bind(void 0);eK.style=["stroke","lineWidth"];let eQ=(t,e,n)=>{let r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]};eQ.style=["fill"];let eJ=eQ.bind(void 0);eJ.style=["stroke","lineWidth"];let e0=(t,e,n)=>{let r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]};e0.style=["fill"];let e1=e0.bind(void 0);e1.style=["stroke","lineWidth"];let e2=(t,e,n)=>{let r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]};e2.style=["fill"];let e5=e2.bind(void 0);e5.style=["stroke","lineWidth"];let e3=(t,e,n)=>{let r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]};e3.style=["fill"];let e4=e3.bind(void 0);e4.style=["stroke","lineWidth"];let e6=(t,e,n)=>[["M",t,e+n],["L",t,e-n]];e6.style=["stroke","lineWidth"];let e8=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]];e8.style=["stroke","lineWidth"];let e9=(t,e,n)=>[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]];e9.style=["stroke","lineWidth"];let e7=(t,e,n)=>[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]];e7.style=["stroke","lineWidth"];let nt=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];nt.style=["stroke","lineWidth"];let ne=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];ne.style=["stroke","lineWidth"];let nn=ne.bind(void 0);nn.style=["stroke","lineWidth"];let nr=(t,e,n)=>[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]];nr.style=["stroke","lineWidth"];let ni=(t,e,n)=>[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]];ni.style=["stroke","lineWidth"];let na=(t,e,n)=>[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]];na.style=["stroke","lineWidth"];let no=(t,e,n)=>[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]];no.style=["stroke","lineWidth"];let nl=(t,e,n)=>[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]];nl.style=["stroke","lineWidth"];let ns=new Map([["bowtie",e3],["cross",e8],["dash",nn],["diamond",eX],["dot",ne],["hexagon",e2],["hollowBowtie",e4],["hollowDiamond",eK],["hollowHexagon",e5],["hollowPoint",eG],["hollowSquare",eU],["hollowTriangle",eJ],["hollowTriangleDown",e1],["hv",ni],["hvh",no],["hyphen",nt],["line",e6],["plus",e7],["point",eq],["rect",eV],["smooth",nr],["square",eY],["tick",e9],["triangleDown",e0],["triangle",eQ],["vh",na],["vhv",nl]]),nu={};function nc(t,e){if(t.startsWith("symbol.")){var n;n=t.split(".").pop(),ns.set(n,e)}else Object.assign(nu,{[t]:e})}function nf(t,e){if(!({}).hasOwnProperty.call(t,e))throw TypeError("attempted to use private field on non-instance");return t}var np=0,nd=n(61501),nh=n(44426),ny=n(13016),ng=n(17672),nm=n(24435),nv="__private_"+np+++"_renderState",nb=function(){function t(e){(0,tj.Z)(this,t),this.renderQueue=[],Object.defineProperty(this,nv,{writable:!0,value:{restoreStack:[],prevObject:null,currentContext:new Map}}),this.clearFullScreenLastFrame=!1,this.clearFullScreen=!1,this.vpMatrix=tB.create(),this.dprMatrix=tB.create(),this.tmpMat4=tB.create(),this.vec3a=tD.Ue(),this.vec3b=tD.Ue(),this.vec3c=tD.Ue(),this.vec3d=tD.Ue(),this.canvasRendererPluginOptions=e}return(0,tA.Z)(t,[{key:"apply",value:function(e,n){var r=this;this.context=e;var i=this.context,a=i.config,o=i.camera,l=i.renderingService,s=i.renderingContext,u=i.pathGeneratorFactory,c=a.renderer.getConfig().enableRenderingOptimization;a.renderer.getConfig().enableDirtyCheck=!1,a.renderer.getConfig().enableDirtyRectangleRendering=!1,this.pathGeneratorFactory=u;var f=e.contextService,p=s.root.ownerDocument.defaultView;l.hooks.init.tap(t.tag,function(){var t=f.getDPR(),e=a.width,n=a.height,i=f.getContext();r.clearRect(i,0,0,e*t,n*t,a.background)}),l.hooks.destroy.tap(t.tag,function(){r.renderQueue=[],nf(r,nv)[nv]={restoreStack:[],prevObject:null,currentContext:null}});var d=function(){var t,e=f.getContext(),n=f.getDPR(),i=a.width,o=a.height,s=r.canvasRendererPluginOptions,u=s.dirtyObjectNumThreshold,c=s.dirtyObjectRatioThreshold,d=l.getStats(),h=d.total,y=d.rendered;r.clearFullScreen=r.clearFullScreenLastFrame||!(null!==(t=p.context.renderingPlugins[1])&&void 0!==t&&t.isFirstTimeRenderingFinished)||l.disableDirtyRectangleRendering()||y>u&&y/h>c,e&&("function"==typeof e.resetTransform?e.resetTransform():e.setTransform(1,0,0,1,0,0),r.clearFullScreen&&r.clearRect(e,0,0,i*n,o*n,a.background))},h=function(t,e){for(var i=[t];i.length>0;){var a,o=i.pop();o.isVisible()&&!o.isCulled()&&(c?r.renderDisplayObjectOptimized(o,e,r.context,nf(r,nv)[nv],n):r.renderDisplayObject(o,e,r.context,nf(r,nv)[nv],n));for(var l=(null===(a=o.sortable)||void 0===a||null===(a=a.sorted)||void 0===a?void 0:a.length)>0?o.sortable.sorted:o.childNodes,s=l.length-1;s>=0;s--)i.push(l[s])}};l.hooks.endFrame.tap(t.tag,function(){if(d(),0===s.root.childNodes.length){r.clearFullScreenLastFrame=!0;return}c=a.renderer.getConfig().enableRenderingOptimization,nf(r,nv)[nv]={restoreStack:[],prevObject:null,currentContext:nf(r,nv)[nv].currentContext},nf(r,nv)[nv].currentContext.clear(),r.clearFullScreenLastFrame=!1;var t=f.getContext(),e=f.getDPR();if(tB.fromScaling(r.dprMatrix,[e,e,1]),tB.multiply(r.vpMatrix,r.dprMatrix,o.getOrthoMatrix()),r.clearFullScreen)c?(t.save(),h(s.root,t),t.restore(
1)):h(s.root,t);else{var i=r.safeMergeAABB(r.mergeDirtyAABBs(r.renderQueue));if(tk.mN.isEmpty(i)){r.renderQueue=[];return}var l=r.convertAABB2Rect(i),u=l.x,y=l.y,g=l.width,m=l.height,v=tD.fF(r.vec3a,[u,y,0],r.vpMatrix),b=tD.fF(r.vec3b,[u+g,y,0],r.vpMatrix),x=tD.fF(r.vec3c,[u,y+m,0],r.vpMatrix),O=tD.fF(r.vec3d,[u+g,y+m,0],r.vpMatrix),w=Math.min(v[0],b[0],O[0],x[0]),M=Math.min(v[1],b[1],O[1],x[1]),_=Math.max(v[0],b[0],O[0],x[0]),k=Math.max(v[1],b[1],O[1],x[1]),j=Math.floor(w),A=Math.floor(M),E=Math.ceil(_-w),S=Math.ceil(k-M);t.save(),r.clearRect(t,j,A,E,S,a.background),t.beginPath(),t.rect(j,A,E,S),t.clip(),t.setTransform(r.vpMatrix[0],r.vpMatrix[1],r.vpMatrix[4],r.vpMatrix[5],r.vpMatrix[12],r.vpMatrix[13]),a.renderer.getConfig().enableDirtyRectangleRenderingDebug&&p.dispatchEvent(new tk.Aw(tk.$6.DIRTY_RECTANGLE,{dirtyRect:{x:j,y:A,width:E,height:S}}));var P=i.getMin(),C=(0,tC.Z)(P,2),T=C[0],R=C[1],L=i.getMax(),N=(0,tC.Z)(L,2),I=N[0],F=N[1];s.root.ownerDocument.elementsFromBBox(T,R,I,F).sort(function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder}).forEach(function(e){e&&e.isVisible()&&!e.isCulled()&&r.renderDisplayObject(e,t,r.context,nf(r,nv)[nv],n)}),t.restore(),r.renderQueue.forEach(function(t){r.saveDirtyAABB(t)}),r.renderQueue=[]}nf(r,nv)[nv].restoreStack.forEach(function(){t.restore()}),nf(r,nv)[nv].restoreStack=[]}),l.hooks.render.tap(t.tag,function(t){r.clearFullScreen||r.renderQueue.push(t)})}},{key:"clearRect",value:function(t,e,n,r,i,a){t.clearRect(e,n,r,i),a&&(t.fillStyle=a,t.fillRect(e,n,r,i))}},{key:"renderDisplayObjectOptimized",value:function(t,e,n,r,i){var a=t.nodeName,o=!1,l=this.context.styleRendererFactory[a],s=this.pathGeneratorFactory[a],u=t.parsedStyle.clipPath;if(u){r.prevObject&&tB.exactEquals(u.getWorldTransform(),r.prevObject.getWorldTransform())||(this.applyWorldTransform(e,u),r.prevObject=null);var c=this.pathGeneratorFactory[u.nodeName];c&&(e.save(),o=!0,e.beginPath(),c(e,u.parsedStyle),e.closePath(),e.clip())}if(l){r.prevObject&&tB.exactEquals(t.getWorldTransform(),r.prevObject.getWorldTransform())||this.applyWorldTransform(e,t);var f=!r.prevObject;if(!f){var p=r.prevObject.nodeName;f=a===tk.bn.TEXT?p!==tk.bn.TEXT:a===tk.bn.IMAGE?p!==tk.bn.IMAGE:p===tk.bn.TEXT||p===tk.bn.IMAGE}l.applyStyleToContext(e,t,f,r),r.prevObject=t}s&&(e.beginPath(),s(e,t.parsedStyle),a!==tk.bn.LINE&&a!==tk.bn.PATH&&a!==tk.bn.POLYLINE&&e.closePath()),l&&l.drawToContext(e,t,nf(this,nv)[nv],this,i),o&&e.restore(),t.dirty(!1)}},{key:"renderDisplayObject",value:function(t,e,n,r,i){var a=t.nodeName,o=r.restoreStack[r.restoreStack.length-1];o&&!(t.compareDocumentPosition(o)&tk.NB.DOCUMENT_POSITION_CONTAINS)&&(e.restore(),r.restoreStack.pop());var l=this.context.styleRendererFactory[a],s=this.pathGeneratorFactory[a],u=t.parsedStyle.clipPath;if(u){this.applyWorldTransform(e,u);var c=this.pathGeneratorFactory[u.nodeName];c&&(e.save(),r.restoreStack.push(t),e.beginPath(),c(e,u.parsedStyle),e.closePath(),e.clip())}l&&(this.applyWorldTransform(e,t),e.save(),this.applyAttributesToContext(e,t)),s&&(e.beginPath(),s(e,t.parsedStyle),a!==tk.bn.LINE&&a!==tk.bn.PATH&&a!==tk.bn.POLYLINE&&e.closePath()),l&&(l.render(e,t.parsedStyle,t,n,this,i),e.restore()),t.dirty(!1)}},{key:"applyAttributesToContext",value:function(t,e){var n=e.parsedStyle,r=n.stroke,i=n.fill,a=n.opacity,o=n.lineDash,l=n.lineDashOffset;o&&t.setLineDash(o),(0,tL.Z)(l)||(t.lineDashOffset=l),(0,tL.Z)(a)||(t.globalAlpha*=a),(0,tL.Z)(r)||Array.isArray(r)||r.isNone||(t.strokeStyle=e.attributes.stroke),(0,tL.Z)(i)||Array.isArray(i)||i.isNone||(t.fillStyle=e.attributes.fill)}},{key:"convertAABB2Rect",value:function(t){var e=t.getMin(),n=t.getMax(),r=Math.floor(e[0]),i=Math.floor(e[1]);return{x:r,y:i,width:Math.ceil(n[0])-r,height:Math.ceil(n[1])-i}}},{key:"mergeDirtyAABBs",value:function(t){var e=new tk.mN;return t.forEach(function(t){var n=t.getRenderBounds();e.add(n);var r=t.renderable.dirtyRenderBounds;r&&e.add(r)}),e}},{key:"saveDirtyAABB",value:function(t){var e=t.renderable;e.dirtyRenderBounds||(e.dirtyRenderBounds=new tk.mN);var n=t.getRenderBounds();n&&e.dirtyRenderBounds.update(n.center,n.halfExtents)}},{key:"applyWorldTransform",value:function(t,e,n){n?(tB.copy(this.tmpMat4,e.getLocalTransform()),tB.multiply(this.tmpMat4,n,this.tmpMat4)):tB.copy(this.tmpMat4,e.getWorldTransform()),tB.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4),t.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])}},{key:"safeMergeAABB",value:function(){for(var t=new tk.mN,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
1return n.forEach(function(e){t.add(e)}),t}}])}();function nx(t,e,n,r,i,a,o){if("rect"===t.image.nodeName){var l,s,u=t.image.parsedStyle,c=u.width,f=u.height;s=r.contextService.getDPR();var p=r.config.offscreenCanvas;(l=a.offscreenCanvasCreator.getOrCreateCanvas(p)).width=c*s,l.height=f*s;var d=a.offscreenCanvasCreator.getOrCreateContext(p),h={restoreStack:[],prevObject:null,currentContext:new Map};t.image.forEach(function(t){i.renderDisplayObject(t,d,r,h,a)}),h.restoreStack.forEach(function(){d.restore()})}return o.getOrCreatePatternSync(e,t,n,l,s,e.getGeometryBounds().min,function(){e.dirty(),r.renderingService.dirty()})}function nO(t,e,n,r){var i;if(t.type===tk.GL.LinearGradient||t.type===tk.GL.RadialGradient){var a=e.getGeometryBounds(),o=a&&2*a.halfExtents[0]||1,l=a&&2*a.halfExtents[1]||1,s=a&&a.min||[0,0];i=r.getOrCreateGradient((0,t$.Z)((0,t$.Z)({type:t.type},t.value),{},{min:s,width:o,height:l}),n)}return i}nb.tag="CanvasRenderer";var nw=["shadowBlur","shadowOffsetX","shadowOffsetY"],nM=["lineCap","lineJoin","miterLimit"],n_={globalAlpha:1,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",filter:"none",globalCompositeOperation:"source-over",strokeStyle:"#000",strokeOpacity:1,lineWidth:1,lineDash:[],lineDashOffset:0,lineCap:"butt",lineJoin:"miter",miterLimit:10,fillStyle:"#000",fillOpacity:1},nk={};function nj(t,e,n,r){var i=r.has(e)?r.get(e):n_[e];return i!==n&&("lineDash"===e?t.setLineDash(n):t[e]=n,r.set(e,n)),i}var nA=function(t){function e(){return(0,tj.Z)(this,e),(0,tE.Z)(this,e,arguments)}return(0,tS.Z)(e,t),(0,tA.Z)(e,[{key:"render",value:function(t,e,n,r,i,a){var o=e.fill,l=e.fillRule,s=e.opacity,u=void 0===s?1:s,c=e.fillOpacity,f=e.stroke,p=e.strokeOpacity,d=e.lineWidth,h=void 0===d?1:d,y=e.lineCap,g=e.lineJoin,m=e.shadowType,v=e.shadowColor,b=e.shadowBlur,x=e.filter,O=e.miterLimit,w=o&&!o.isNone,M=f&&!f.isNone&&h>0,_=(null==o?void 0:o.alpha)===0,k=!!(x&&x.length),j=!(0,tL.Z)(v)&&b>0,A=n.nodeName,E="inner"===m,S=M&&j&&(A===tk.bn.PATH||A===tk.bn.LINE||A===tk.bn.POLYLINE||_||E);w&&(t.globalAlpha=u*(void 0===c?1:c),S||nE(n,t,j),nS(t,n,o,l,r,i,a,this.imagePool),S||this.clearShadowAndFilter(t,k,j)),M&&(t.globalAlpha=u*(void 0===p?1:p),t.lineWidth=h,(0,tL.Z)(O)||(t.miterLimit=O),(0,tL.Z)(y)||(t.lineCap=y),(0,tL.Z)(g)||(t.lineJoin=g),S&&(E&&(t.globalCompositeOperation="source-atop"),nE(n,t,!0),E&&(nP(t,n,f,r,i,a,this.imagePool),t.globalCompositeOperation=n_.globalCompositeOperation,this.clearShadowAndFilter(t,k,!0))),nP(t,n,f,r,i,a,this.imagePool))}},{key:"clearShadowAndFilter",value:function(t,e,n){if(n&&(t.shadowColor="transparent",t.shadowBlur=0),e){var r=t.filter;!(0,tL.Z)(r)&&r.indexOf("drop-shadow")>-1&&(t.filter=r.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}}}])}((0,tA.Z)(function t(e){(0,tj.Z)(this,t),this.imagePool=e},[{key:"applyAttributesToContext",value:function(t,e){}},{key:"render",value:function(t,e,n,r,i,a){}},{key:"applyCommonStyleToContext",value:function(t,e,n,r){var i=n?nk:r.prevObject.parsedStyle,a=e.parsedStyle;
1(n||a.opacity!==i.opacity)&&nj(t,"globalAlpha",(0,tL.Z)(a.opacity)?n_.globalAlpha:a.opacity,r.currentContext),(n||a.blend!==i.blend)&&nj(t,"globalCompositeOperation",(0,tL.Z)(a.blend)?n_.globalCompositeOperation:a.blend,r.currentContext)}},{key:"applyStrokeFillStyleToContext",value:function(t,e,n,r){var i=n?nk:r.prevObject.parsedStyle,a=e.parsedStyle,o=a.lineWidth,l=void 0===o?n_.lineWidth:o,s=a.fill&&!a.fill.isNone;if(a.stroke&&!a.stroke.isNone&&l>0){(n||e.attributes.stroke!==r.prevObject.attributes.stroke)&&nj(t,"strokeStyle",(0,tL.Z)(a.stroke)||Array.isArray(a.stroke)||a.stroke.isNone?n_.strokeStyle:e.attributes.stroke,r.currentContext),(n||a.lineWidth!==i.lineWidth)&&nj(t,"lineWidth",(0,tL.Z)(a.lineWidth)?n_.lineWidth:a.lineWidth,r.currentContext),(n||a.lineDash!==i.lineDash)&&nj(t,"lineDash",a.lineDash||n_.lineDash,r.currentContext),(n||a.lineDashOffset!==i.lineDashOffset)&&nj(t,"lineDashOffset",(0,tL.Z)(a.lineDashOffset)?n_.lineDashOffset:a.lineDashOffset,r.currentContext);for(var u=0;u<nM.length;u++){var c=nM[u];(n||a[c]!==i[c])&&nj(t,c,(0,tL.Z)(a[c])?n_[c]:a[c],r.currentContext)}}s&&(n||e.attributes.fill!==r.prevObject.attributes.fill)&&nj(t,"fillStyle",(0,tL.Z)(a.fill)||Array.isArray(a.fill)||a.fill.isNone?n_.fillStyle:e.attributes.fill,r.currentContext)}},{key:"applyStyleToContext",value:function(t,e,n,r){var i=e.nodeName;this.applyCommonStyleToContext(t,e,n,r),i===tk.bn.IMAGE||this.applyStrokeFillStyleToContext(t,e,n,r)}},{key:"applyShadowAndFilterStyleToContext",value:function(t,e,n,r){var i=e.parsedStyle;if(n){nj(t,"shadowColor",i.shadowColor.toString(),r.currentContext);for(var a=0;a<nw.length;a++){var o=nw[a];nj(t,o,i[o]||n_[o],r.currentContext)}}i.filter&&i.filter.length&&nj(t,"filter",e.attributes.filter,r.currentContext)}},{key:"clearShadowAndFilterStyleForContext",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(e){nj(t,"shadowColor",n_.shadowColor,r.currentContext);for(var a=0;a<nw.length;a++){var o=nw[a];nj(t,o,n_[o],r.currentContext)}}if(n){if(e&&i){var l=t.filter;!(0,tL.Z)(l)&&l.indexOf("drop-shadow")>-1&&nj(t,"filter",l.replace(/drop-shadow\([^)]*\)/,"").trim()||n_.filter,r.currentContext)}else nj(t,"filter",n_.filter,r.currentContext)}}},{key:"fillToContext",value:function(t,e,n,r,i){var a=this,o=e.parsedStyle,l=o.fill,s=o.fillRule,u=null;if(Array.isArray(l)&&l.length>0)l.forEach(function(r){var i=nj(t,"fillStyle",nO(r,e,t,a.imagePool),n.currentContext);u=null!=u?u:i,s?t.fill(s):t.fill()});else{if((0,tk.R)(l)){var c=nx(l,e,t,e.ownerDocument.defaultView.context,r,i,this.imagePool);c&&(t.fillStyle=c,u=!0)}s?t.fill(s):t.fill()}null!==u&&nj(t,"fillStyle",u,n.currentContext)}},{key:"strokeToContext",value:function(t,e,n,r,i){var a=this,o=e.parsedStyle.stroke,l=null;if(Array.isArray(o)&&o.length>0)o.forEach(function(r){var i=nj(t,"strokeStyle",nO(r,e,t,a.imagePool),n.currentContext);l=null!=l?l:i,t.stroke()});else{if((0,tk.R)(o)){var s=nx(o,e,t,e.ownerDocument.defaultView.context,r,i,this.imagePool);if(s){var u=nj(t,"strokeStyle",s,n.currentContext);l=null!=l?l:u}}t.stroke()}null!==l&&nj(t,"strokeStyle",l,n.currentContext)}},{key:"drawToContext",value:function(t,e,n,r,i){var a,o=e.nodeName,l=e.parsedStyle,s=l.opacity,u=void 0===s?n_.globalAlpha:s,c=l.fillOpacity,f=void 0===c?n_.fillOpacity:c,p=l.strokeOpacity,d=void 0===p?n_.strokeOpacity:p,h=l.lineWidth,y=void 0===h?n_.lineWidth:h,g=l.fill&&!l.fill.isNone,m=l.stroke&&!l.stroke.isNone&&y>0;if(g||m){var v=!(0,tL.Z)(l.shadowColor)&&l.shadowBlur>0,b="inner"===l.shadowType,x=(null===(a=l.fill)||void 0===a?void 0:a.alpha)===0,O=!!(l.filter&&l.filter.length),w=v&&m&&(o===tk.bn.PATH||o===tk.bn.LINE||o===tk.bn.POLYLINE||x||b),M=null;if(g&&(w||this.applyShadowAndFilterStyleToContext(t,e,v,n),M=nj(t,"globalAlpha",u*f,n.currentContext),this.fillToContext(t,e,n,r,i),w||this.clearShadowAndFilterStyleForContext(t,v,O,n)),m){var _=!1,k=nj(t,"globalAlpha",u*d,n.currentContext);if(M=g?M:k,w&&(this.applyShadowAndFilterStyleToContext(t,e,v,n),_=!0,b)){var j=t.globalCompositeOperation;t.globalCompositeOperation="source-atop",this.strokeToContext(t,e,n,r,i),t.globalCompositeOperation=j,this.clearShadowAndFilterStyleForContext(t,v,O,n,!0)}this.strokeToContext(t,e,n,r,i),_&&this.clearShadowAndFilterStyleForContext(t,v,O,n)}null!==M&&nj(t,"globalAlpha",M,n.currentContext)}}}]));function nE(t,e,n){var r=t.parsedStyle,i=r.filter,a=r.shadowColor,o=r.
1shadowBlur,l=r.shadowOffsetX,s=r.shadowOffsetY;i&&i.length&&(e.filter=t.style.filter),n&&(e.shadowColor=a.toString(),e.shadowBlur=o||0,e.shadowOffsetX=l||0,e.shadowOffsetY=s||0)}function nS(t,e,n,r,i,a,o,l){var s=arguments.length>8&&void 0!==arguments[8]&&arguments[8];Array.isArray(n)?n.forEach(function(n){t.fillStyle=nO(n,e,t,l),s||(r?t.fill(r):t.fill())}):((0,tk.R)(n)&&(t.fillStyle=nx(n,e,t,i,a,o,l)),s||(r?t.fill(r):t.fill()))}function nP(t,e,n,r,i,a,o){var l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];Array.isArray(n)?n.forEach(function(n){t.strokeStyle=nO(n,e,t,o),l||t.stroke()}):((0,tk.R)(n)&&(t.strokeStyle=nx(n,e,t,r,i,a,o)),l||t.stroke())}var nC=function(t){function e(){return(0,tj.Z)(this,e),(0,tE.Z)(this,e,arguments)}return(0,tS.Z)(e,t),(0,tA.Z)(e,[{key:"renderDownSampled",value:function(t,e,n,r){var i=r.src,a=r.imageCache;if(!a.downSampled){this.imagePool.createDownSampledImage(i,n).then(function(){n.ownerDocument&&(n.dirty(),n.ownerDocument.defaultView.context.renderingService.dirty())}).catch(function(t){console.error(t)});return}t.drawImage(a.downSampled,Math.floor(r.drawRect[0]),Math.floor(r.drawRect[1]),Math.ceil(r.drawRect[2]),Math.ceil(r.drawRect[3]))}},{key:"renderTile",value:function(t,e,n,r){var i=r.src,a=r.imageCache,o=r.imageRect,l=r.drawRect,s=a.size,u=t.getTransform(),c=u.a,f=u.b,p=u.c,d=u.d,h=u.e,y=u.f;if(t.resetTransform(),!(null!=a&&a.gridSize)){this.imagePool.createImageTiles(i,[],function(){n.ownerDocument&&(n.dirty(),n.ownerDocument.defaultView.context.renderingService.dirty())},n).catch(function(t){console.error(t)});return}for(var g=[s[0]/o[2],s[1]/o[3]],m=[a.tileSize[0]/g[0],a.tileSize[1]/g[1]],v=[Math.floor((l[0]-o[0])/m[0]),Math.ceil((l[0]+l[2]-o[0])/m[0])],b=v[0],x=v[1],O=[Math.floor((l[1]-o[1])/m[1]),Math.ceil((l[1]+l[3]-o[1])/m[1])],w=O[0],M=O[1],_=w;_<=M;_++)for(var k=b;k<=x;k++){var j=a.tiles[_][k];if(j){var A=[Math.floor(o[0]+j.tileX*m[0]),Math.floor(o[1]+j.tileY*m[1]),Math.ceil(m[0]),Math.ceil(m[1])];t.drawImage(j.data,A[0],A[1],A[2],A[3])}}t.setTransform(c,f,p,d,h,y)}},{key:"render",value:function(t,n,r){var i=n.x,a=void 0===i?0:i,o=n.y,l=void 0===o?0:o,s=n.width,u=n.height,c=n.src,f=n.shadowColor,p=n.shadowBlur,d=this.imagePool.getImageSync(c,r),h=null==d?void 0:d.img,y=s,g=u;if(h){y||(y=h.width),g||(g=h.height),nE(r,t,!(0,tL.Z)(f)&&p>0);try{var m,v,b,x,O,w,M,_,k,j,A,E,S,P,C,T,R,L,N,I,F=r.ownerDocument.defaultView.getContextService().getDomElement(),B=F.width,D=F.height,z=t.getTransform(),$=z.a,W=z.b,Z=z.c,H=z.d,q=z.e,G=z.f,Y=tB.fromValues($,Z,0,0,W,H,0,0,0,0,1,0,q,G,0,1),V=(m=[a,l,y,g],v=tD.fF(tD.Ue(),[m[0],m[1],0],Y),b=tD.fF(tD.Ue(),[m[0]+m[2],m[1],0],Y),x=tD.fF(tD.Ue(),[m[0],m[1]+m[3],0],Y),O=tD.fF(tD.Ue(),[m[0]+m[2],m[1]+m[3],0],Y),[Math.min(v[0],b[0],x[0],O[0]),Math.min(v[1],b[1],x[1],O[1]),Math.max(v[0],b[0],x[0],O[0])-Math.min(v[0],b[0],x[0],O[0]),Math.max(v[1],b[1],x[1],O[1])-Math.min(v[1],b[1],x[1],O[1])]),U=(w=[0,0,B,D],_=(M=(0,tC.Z)(w,4))[0],k=M[1],j=M[2],A=M[3],S=(E=(0,tC.Z)(V,4))[0],P=E[1],C=E[2],T=E[3],R=Math.max(_,S),L=Math.max(k,P),N=Math.min(_+j,S+C),I=Math.min(k+A,P+T),N<=R||I<=L?null:[R,L,N-R,I-L]);if(!U)return;if(!r.ownerDocument.defaultView.getConfig().enableLargeImageOptimization){e.renderFull(t,n,r,{image:h,drawRect:[a,l,y,g]});return}if(V[2]/d.size[0]<(d.downSamplingRate||.5)){this.renderDownSampled(t,n,r,{src:c,imageCache:d,drawRect:[a,l,y,g]});return}if(!ImagePool.isSupportTile){e.renderFull(t,n,r,{image:h,drawRect:[a,l,y,g]});return}this.renderTile(t,n,r,{src:c,imageCache:d,imageRect:V,drawRect:U})}catch(t){}}}},{key:"drawToContext",value:function(t,e,n,r,i){this.render(t,e.parsedStyle,e)}}],[{key:"renderFull",value:function(t,e,n,r){t.drawImage(r.image,Math.floor(r.drawRect[0]),Math.floor(r.drawRect[1]),Math.ceil(r.drawRect[2]),Math.ceil(r.drawRect[3]))}}])}(nA),nT=function(t){function e(){return(0,tj.Z)(this,e),(0,tE.Z)(this,e,arguments)}return(0,tS.Z)(e,t),(0,tA.Z)(e,[{key:"render",value:function(t,e,n,r,i,a){n.getBounds();var o=e.lineWidth,l=void 0===o?1:o,s=e.textAlign,u=void 0===s?"start":s,c=e.textBaseline,f=void 0===c?"alphabetic":c,p=e.lineJoin,d=e.miter
1Limit,h=void 0===d?10:d,y=e.letterSpacing,g=void 0===y?0:y,m=e.stroke,v=e.fill,b=e.fillRule,x=e.fillOpacity,O=void 0===x?1:x,w=e.strokeOpacity,M=void 0===w?1:w,_=e.opacity,k=void 0===_?1:_,j=e.metrics,A=e.x,E=e.y,S=void 0===E?0:E,P=e.dx,C=e.dy,T=e.shadowColor,R=e.shadowBlur,L=e.textDecorationLine,N=j.font,I=j.lines,F=j.height,B=j.lineHeight,D=j.lineMetrics;t.font=N,t.lineWidth=l,t.textAlign="middle"===u?"center":u;var z=f;"alphabetic"===z&&(z="bottom"),t.lineJoin=void 0===p?"miter":p,(0,tL.Z)(h)||(t.miterLimit=h);var $=S;"middle"===f?$+=-F/2-B/2:"bottom"===f||"alphabetic"===f||"ideographic"===f?$+=-F:("top"===f||"hanging"===f)&&($+=-B);var W=(void 0===A?0:A)+(P||0);$+=C||0,1===I.length&&("bottom"===z?(z="middle",$-=.5*F):"top"===z&&(z="middle",$+=.5*F)),t.textBaseline=z,nE(n,t,!(0,tL.Z)(T)&&R>0);for(var Z=0;Z<I.length;Z++){var H=l/2+W;$+=B,(0,tL.Z)(m)||m.isNone||!l||this.drawLetterSpacing(t,n,I[Z],D[Z],u,H,$,g,v,b,O,m,M,k,!0,r,i,a),(0,tL.Z)(v)||this.drawLetterSpacing(t,n,I[Z],D[Z],u,H,$,g,v,b,O,m,M,k,!1,r,i,a)}L&&"none"!==L&&this.drawTextDecorations(t,e,n,I,B,W,S+(C||0),r,i,a)}},{key:"drawLetterSpacing",value:function(t,e,n,r,i,a,o,l,s,u,c,f,p,d,h,y,g,m){if(0===l){h?this.strokeText(t,e,n,a,o,f,p,y,g,m):this.fillText(t,e,n,a,o,s,u,c,d,y,g,m);return}var v=t.textAlign;t.textAlign="left";var b=a;"center"===i||"middle"===i?b=a-r.width/2:("right"===i||"end"===i)&&(b=a-r.width);for(var x=Array.from(n),O=t.measureText(n).width,w=0,M=0;M<x.length;++M){var _=x[M];h?this.strokeText(t,e,_,b,o,f,p,y,g,m):this.fillText(t,e,_,b,o,s,u,c,d,y,g,m),b+=O-(w=t.measureText(n.substring(M+1)).width)+l,O=w}t.textAlign=v}},{key:"fillText",value:function(t,e,n,r,i,a,o,l,s,u,c,f){nS(t,e,a,o,u,c,f,this.imagePool,!0);var p,d=!(0,tL.Z)(l)&&1!==l;d&&(p=t.globalAlpha,t.globalAlpha=l*s),t.fillText(n,r,i),d&&(t.globalAlpha=p)}},{key:"strokeText",value:function(t,e,n,r,i,a,o,l,s,u){nP(t,e,a,l,s,u,this.imagePool,!0);var c,f=!(0,tL.Z)(o)&&1!==o;f&&(c=t.globalAlpha,t.globalAlpha=o),t.strokeText(n,r,i),f&&(t.globalAlpha=c)}},{key:"drawTextDecorations",value:function(t,e,n,r,i,a,o,l,s,u){var c=e.textDecorationLine,f=e.textDecorationColor,p=e.textDecorationStyle,d=e.textDecorationThickness,h=e.textAlign,y=void 0===h?"start":h,g=e.lineWidth,m=void 0===g?1:g,v=e.metrics;if(c&&"none"!==c){var b=v.lineMetrics,x=c.split(" ");switch(t.lineWidth=void 0===d?1:d,f&&(t.strokeStyle="rgba(".concat(f.r,", ").concat(f.g,", ").concat(f.b,", ").concat(f.alpha,")")),p){case"dashed":t.setLineDash([5,5]);break;case"dotted":t.setLineDash([2,2]);break;default:t.setLineDash([])}var O=o,w=e.textBaseline,M=void 0===w?"alphabetic":w;"middle"===M?O+=-v.height/2-i/2:"bottom"===M||"alphabetic"===M||"ideographic"===M?O+=-v.height:("top"===M||"hanging"===M)&&(O+=-i);for(var _=0;_<r.length;_++){O+=i;var k=b[_];if(k){var j=m/2,A=a,E=a+k.width;"center"===y||"middle"===y?(A=a-k.width/2,E=a+k.width/2):("right"===y||"end"===y)&&(A=a-k.width,E=a),A+=j,E+=j;var S,P=(0,nh.Z)(x);try{for(P.s();!(S=P.n()).done;){var C=S.value,T=O;switch(C){case"underline":T+=2;break;case"overline":T-=i-2;break;case"line-through":T-=i/2;break;default:continue}"wavy"===p?this.drawWavyLine(t,A,E,T):(t.beginPath(),t.moveTo(A,T),t.lineTo(E,T),t.stroke())}}catch(t){P.e(t)}finally{P.f()}}}t.setLineDash([])}}},{key:"drawWavyLine",value:function(t,e,n,r){var i=Math.floor((n-e)/10);t.beginPath(),t.moveTo(e,r);for(var a=0;a<i;a++){var o=e+10*a+2.5,l=r+2,s=e+10*a+5;t.quadraticCurveTo(o,l,s,r);var u=e+10*a+7.5,c=r-2,f=e+(a+1)*10;t.quadraticCurveTo(u,c,f,r)}t.stroke()}},{key:"drawToContext",value:function(t,e,n,r,i){this.render(t,e.parsedStyle,e,e.ownerDocument.defaultView.context,r,i)}}])}(nA),nR=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,tj.Z)(this,e),(t=(0,tE.Z)(this,e)).name="canvas-renderer",t.options=n,t}return(0,tS.Z)(e,t),(0,tA.Z)(e,[{key:"init",value:function(){var t,e=(0,t$.Z)({dirtyObjectNumThreshold:500,dirtyObjectRatioThreshold:.8},this.options),n=this.context.imagePool,r=new nA(n),i=(t={},(0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)(t,tk.bn.CIRCLE,r),tk.bn.ELLIPSE,r),tk.bn.RECT,r),tk.bn.IMAGE,new nC(n)),tk.bn.TEXT,new nT(n)),tk.bn.LINE,r),tk.bn.POLYLINE,r),tk.bn.POLYGON,r),tk.bn.PATH,r),tk.bn.GROUP,void 0),(0,tW.Z)((0,tW.Z)((0,tW.Z)(t,tk.bn.HTML,void 0),tk.bn.MESH,void 0),tk.bn.FRAGMENT,void 0));this.context.defaultStyleRendererFactory=i,this.context.styleRendererFactory=i,this.addRenderingPlugin(new nb(e))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins(),delete this.context.defaultStyleRendererFactory,delete this.context.styleRendererFactory}}])}(tk.F6),nL=tD.Ue(),nN=tD.Ue(),nI=tD.Ue(),nF=tB.create(),nB=function(){function t(){var e=this;(0,tj.Z)(this,t),this.isHit=function(t,n,r,i){var a=e.context.pointInPathPickerFactory[t.nodeName];if(a){var o=tB.invert(nF,r),l=tD.fF(nN,tD.t8(nI,n[0],n[1],0),o);if(a(t,new tk.E9(l[0],l[1]),i,e.isPointInPath,e.context,e.runtime))return!0}return!1},this.isPointInPath=function(t,n){var r=e.runtime.offscreenCanvasCreator.getOrCreateContext(e.context.config.offscreenCanvas),i=e.context.pathGeneratorFactory[t.nodeName];return i&&(r.beginPath(),i(r,t.parsedStyle),r.closePath()),r.isPointInPath(n.x,n.y)}}return(0,tA.Z)(t,[{key:"apply",value:function(e,n){var r,i,a=this,o=e.renderingService,l=e.renderingContext;this.context=e,this.runtime=n;var s=null===(i=l.root)||void 0===i?void 0:i.ownerDocument;o.hooks.pick.tapPromise(t.tag,(r=(0,ng.Z)((0,ny.Z)().mark(function t(e){return(0,ny.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",a.pick(s,e));case 1:case"end":return t.stop()}},t)})),function(t){return r.apply(this,arguments)})),o.hooks.pickSync.tap(t.tag,function(t){return a.pick(s,t)})}},{key:"pick",value:function(t,e){var n,r=e.topmost,i=e.position,a=i.x,o=i.y,l=tD.t8(nL,a,o,0),s=t.elementsFromBBox(l[0],l[1],l[0],l[1]),u=[],c=(0,nh.Z)(s);try{for(c.s();!(n=c.n()).done;){var f=n.value,p=f.getWorldTransform();if(this.isHit(f,l,p,!1)){var d=(0,tk.Oi)(f);if(d){var h=d.parsedStyle.clipPath;if(this.isHit(h,l,h.getWorldTransform(),!0)){if(r)return e.picked=[f],e;u.push(f)}}else{if(r)return e.picked=[f],e;u.push(f)}}}}catch(t){c.e(t)}
1finally{c.f()}return e.picked=u,e}}])}();function nD(t,e,n){var r=t.parsedStyle,i=r.cx,a=r.cy,o=r.r,l=r.fill,s=r.stroke,u=r.lineWidth,c=r.increasedLineWidthForHitTesting,f=r.pointerEvents,p=((void 0===u?1:u)+(void 0===c?0:c))/2,d=(0,nm.TE)(void 0===i?0:i,void 0===a?0:a,e.x,e.y),h=(0,tk.L1)(void 0===f?"auto":f,l,s),y=(0,tC.Z)(h,2),g=y[0],m=y[1];return g&&m||n?d<=o+p:g?d<=o:!!m&&d>=o-p&&d<=o+p}function nz(t,e,n){var r,i,a,o,l,s,u=t.parsedStyle,c=u.cx,f=void 0===c?0:c,p=u.cy,d=void 0===p?0:p,h=u.rx,y=u.ry,g=u.fill,m=u.stroke,v=u.lineWidth,b=u.increasedLineWidthForHitTesting,x=u.pointerEvents,O=e.x,w=e.y,M=(0,tk.L1)(void 0===x?"auto":x,g,m),_=(0,tC.Z)(M,2),k=_[0],j=_[1],A=((void 0===v?1:v)+(void 0===b?0:b))/2,E=(O-f)*(O-f),S=(w-d)*(w-d);return k&&j||n?1>=E/((r=h+A)*r)+S/((i=y+A)*i):k?1>=E/(h*h)+S/(y*y):!!j&&E/((a=h-A)*a)+S/((o=y-A)*o)>=1&&1>=E/((l=h+A)*l)+S/((s=y+A)*s)}function n$(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r}function nW(t,e,n,r,i,a,o,l){var s=(Math.atan2(l-e,o-t)+2*Math.PI)%(2*Math.PI),u={x:t+n*Math.cos(s),y:e+n*Math.sin(s)};return(0,nm.TE)(u.x,u.y,o,l)<=a/2}function nZ(t,e,n,r,i,a,o){var l=Math.min(t,n),s=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r),f=i/2;return a>=l-f&&a<=s+f&&o>=u-f&&o<=c+f&&(0,nm._x)(t,e,n,r,a,o)<=i/2}function nH(t,e,n,r,i){var a=t.length;if(a<2)return!1;for(var o=0;o<a-1;o++)if(nZ(t[o][0],t[o][1],t[o+1][0],t[o+1][1],e,n,r))return!0;if(i){var l=t[0],s=t[a-1];if(nZ(l[0],l[1],s[0],s[1],e,n,r))return!0}return!1}function nq(t){return 1e-6>Math.abs(t)?0:t<0?-1:1}function nG(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var a=0;a<i;a++){var o,l=t[a],s=t[(a+1)%i];if(((o=[e,n])[0]-l[0])*(s[1]-l[1])==(s[0]-l[0])*(o[1]-l[1])&&Math.min(l[0],s[0])<=o[0]&&o[0]<=Math.max(l[0],s[0])&&Math.min(l[1],s[1])<=o[1]&&o[1]<=Math.max(l[1],s[1]))return!0;nq(l[1]-n)>0!=nq(s[1]-n)>0&&0>nq(e-(n-l[1])*(l[0]-s[0])/(l[1]-s[1])-l[0])&&(r=!r)}return r}function nY(t,e,n){for(var r=!1,i=0;i<t.length&&!(r=nG(t[i],e,n));i++);return r}function nV(t,e,n){var r=t.parsedStyle,i=r.x1,a=r.y1,o=r.x2,l=r.y2,s=r.lineWidth,u=void 0===s?1:s,c=r.increasedLineWidthForHitTesting,f=r.pointerEvents,p=r.fill,d=r.stroke,h=(0,tk.L1)(void 0===f?"auto":f,p,d);return(!!(0,tC.Z)(h,2)[1]||!!n)&&!!u&&nZ(i,a,o,l,u+(void 0===c?0:c),e.x,e.y)}function nU(t,e,n,r,i,a){var o=t.parsedStyle,l=o.lineWidth,s=o.increasedLineWidthForHitTesting,u=o.stroke,c=o.fill,f=o.d,p=o.pointerEvents,d=f.segments,h=f.hasArc,y=f.polylines,g=f.polygons,m=(0,tk.L1)(void 0===p?"auto":p,(null==g?void 0:g.length)&&c,u),v=(0,tC.Z)(m,2),b=v[0],x=v[1],O=(0,tk.gz)(t),w=!1;return b||n?w=h?r(t,e):nY(g,e.x,e.y)||nY(y,e.x,e.y):((x||n)&&(w=function(t,e,n,r,i){for(var a=!1,o=e/2,l=0;l<t.length;l++){var s=t[l],u=s.currentPoint,c=s.params,f=s.prePoint,p=s.box;if(!p||n$(p.x-o,p.y-o,p.width+e,p.height+e,n,r))switch(s.command){case"L":case"Z":if(a=nZ(f[0],f[1],u[0],u[1],e,n,r))return!0;break;case"Q":if(a=(0,nm.Y1)(f[0],f[1],c[1],c[2],c[3],c[4],n,r)<=e/2)return!0;break;case"C":if(a=(0,nm.ph)(f[0],f[1],c[1],c[2],c[3],c[4],c[5],c[6],n,r,i)<=e/2)return!0;break;case"A":s.cubicParams||(s.cubicParams=(0,nd.W)(f[0],f[1],c[1],c[2],c[3],c[4],c[5],c[6],c[7],void 0));for(var d=s.cubicParams,h=f,y=0;y<d.length;y+=6){var g=(0,nm.ph)(h[0],h[1],d[y],d[y+1],d[y+2],d[y+3],d[y+4],d[y+5],n,r,i);if(h=[d[y+4],d[y+5]],a=g<=e/2)return!0}}}return a}(d,(void 0===l?1:l)+(void 0===s?0:s),e.x,e.y,O)),w)}function nX(t,e,n){var r=t.parsedStyle,i=r.stroke,a=r.fill,o=r.lineWidth,l=r.increasedLineWidthForHitTesting,s=r.points,u=r.pointerEvents,c=(0,tk.L1)(void 0===u?"auto":u,a,i),f=(0,tC.Z)(c,2),p=f[0],d=f[1],h=!1;return(d||n)&&(h=nH(s.points,(void 0===o?1:o)+(void 0===l?0:l),e.x,e.y,!0)),!h&&(p||n)&&(h=nG(s.points,e.x,e.y)),h}function nK(t,e,n){var r=t.parsedStyle,i=r.lineWidth,a=void 0===i?1:i,o=r.increasedLineWidthForHitTesting,l=r.points,s=r.pointerEvents,u=r.fill,c=r.stroke,f=(0,tk.L1)(void 0===s?"auto":s,u,c);return(!!(0,tC.Z)(f,2)[1]||!!n)&&!!a&&nH(l.points,a+(void 0===o?0:o),e.x,e.y,!1)}function nQ(t,e,n,r,i){var a,o,l,s=t.parsedStyle,u=s.radius,c=s.fill,f=s.stroke,p=s.lineWidth,d=s.increasedLineWidthForHitTesting,h=s.x,y=void 0===h?0:h,g=s.y,m=void 0===g?0:g,v=s.width,b=s.height,x=s.pointerEvents,O=(0,tk.L1)(void 0===x?"auto":
1x,c,f),w=(0,tC.Z)(O,2),M=w[0],_=w[1],k=u&&u.some(function(t){return 0!==t}),j=(void 0===p?1:p)+(void 0===d?0:d);if(k){var A,E,S,P,C,T,R,L,N=!1;return(_||n)&&(A=u.map(function(t){return(0,tT.Z)(t,0,Math.min(Math.abs(v)/2,Math.abs(b)/2))}),E=e.x,S=e.y,C=(P=(0,tC.Z)(A,4))[0],T=P[1],R=P[2],L=P[3],N=nZ(y+C,m,y+v-T,m,j,E,S)||nZ(y+v,m+T,y+v,m+b-R,j,E,S)||nZ(y+v-R,m+b,y+L,m+b,j,E,S)||nZ(y,m+b-L,y,m+C,j,E,S)||nW(y+v-T,m+T,T,1.5*Math.PI,2*Math.PI,j,E,S)||nW(y+v-R,m+b-R,R,0,.5*Math.PI,j,E,S)||nW(y+L,m+b-L,L,.5*Math.PI,Math.PI,j,E,S)||nW(y+C,m+C,C,Math.PI,1.5*Math.PI,j,E,S)),!N&&(M||n)&&(N=r(t,e)),N}var I=j/2;return M&&_||n?n$(y-I,m-I,v+I,b+I,e.x,e.y):M?n$(y,m,v,b,e.x,e.y):!!_&&(a=e.x,o=e.y,n$(y-(l=j/2),m-l,v,j,a,o)||n$(y+v-l,m-l,j,b,a,o)||n$(y+l,m+b-l,v,j,a,o)||n$(y-l,m+l,j,b,a,o))}function nJ(t,e,n,r,i,a){var o=t.parsedStyle,l=o.pointerEvents,s=o.x,u=o.y,c=o.width,f=o.height;if("non-transparent-pixel"===(void 0===l?"auto":l)){var p=i.config.offscreenCanvas,d=a.offscreenCanvasCreator.getOrCreateCanvas(p),h=a.offscreenCanvasCreator.getOrCreateContext(p,{willReadFrequently:!0});return d.width=c,d.height=f,i.defaultStyleRendererFactory[tk.bn.IMAGE].render(h,(0,t$.Z)((0,t$.Z)({},t.parsedStyle),{},{x:0,y:0}),t,void 0,void 0,void 0),h.getImageData(e.x-(void 0===s?0:s),e.y-(void 0===u?0:u),1,1).data.every(function(t){return 0!==t})}return!0}function n0(t,e,n,r){var i=t.getGeometryBounds();return e.x>=i.min[0]&&e.y>=i.min[1]&&e.x<=i.max[0]&&e.y<=i.max[1]}nB.tag="CanvasPicker";var n1=function(t){function e(){var t;(0,tj.Z)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=(0,tE.Z)(this,e,[].concat(r))).name="canvas-picker",t}return(0,tS.Z)(e,t),(0,tA.Z)(e,[{key:"init",value:function(){var t,e=(t={},(0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)(t,tk.bn.CIRCLE,nD),tk.bn.ELLIPSE,nz),tk.bn.RECT,nQ),tk.bn.LINE,nV),tk.bn.POLYLINE,nK),tk.bn.POLYGON,nX),tk.bn.PATH,nU),tk.bn.TEXT,n0),tk.bn.GROUP,null),tk.bn.IMAGE,nJ),(0,tW.Z)((0,tW.Z)(t,tk.bn.HTML,null),tk.bn.MESH,null));this.context.pointInPathPickerFactory=e,this.addRenderingPlugin(new nB)}},{key:"destroy",value:function(){delete this.context.pointInPathPickerFactory,this.removeAllRenderingPlugins()}}])}(tk.F6);function n2(t,e){var n=e.cx,r=e.cy,i=e.r;t.arc(void 0===n?0:n,void 0===r?0:r,i,0,2*Math.PI,!1)}function n5(t,e){var n=e.cx,r=void 0===n?0:n,i=e.cy,a=void 0===i?0:i,o=e.rx,l=e.ry;t.ellipse?t.ellipse(r,a,o,l,0,0,2*Math.PI,!1):(t.save(),t.scale(o>l?1:o/l,o>l?l/o:1),t.arc(r,a,o>l?o:l,0,2*Math.PI))}function n3(t,e){var n,r=e.x1,i=e.y1,a=e.x2,o=e.y2,l=e.markerStart,s=e.markerEnd,u=e.markerStartOffset,c=e.markerEndOffset,f=0,p=0,d=0,h=0,y=0;l&&(0,tk.RV)(l)&&u&&(f=Math.cos(y=Math.atan2(o-i,a-r))*(u||0),p=Math.sin(y)*(u||0)),s&&(0,tk.RV)(s)&&c&&(d=Math.cos(y=Math.atan2(i-o,r-a))*(c||0),h=Math.sin(y)*(c||0)),t.moveTo(r+f,i+p),t.lineTo(a+d,o+h)}function n4(t,e){var n,r=e.markerStart,i=e.markerEnd,a=e.markerStartOffset,o=e.markerEndOffset,l=e.d,s=l.absolutePath,u=l.segments,c=0,f=0,p=0,d=0,h=0;if(r&&(0,tk.RV)(r)&&a){var y=r.parentNode.getStartTangent(),g=(0,tC.Z)(y,2),m=g[0],v=g[1];n=m[0]-v[0],c=Math.cos(h=Math.atan2(m[1]-v[1],n))*(a||0),f=Math.sin(h)*(a||0)}if(i&&(0,tk.RV)(i)&&o){var b=i.parentNode.getEndTangent(),x=(0,tC.Z)(b,2),O=x[0],w=x[1];n=O[0]-w[0],p=Math.cos(h=Math.atan2(O[1]-w[1],n))*(o||0),d=Math.sin(h)*(o||0)}for(var M=0;M<s.length;M++){var _=s[M],k=_[0],j=s[M+1],A=0===M&&(0!==c||0!==f),E=(M===s.length-1||j&&("M"===j[0]||"Z"===j[0]))&&0!==p&&0!==d,S=A?[c,f]:[0,0],P=(0,tC.Z)(S,2),C=P[0],T=P[1],R=E?[p,d]:[0,0],L=(0,tC.Z)(R,2),N=L[0],I=L[1];switch(k){case"M":t.moveTo(_[1]+C,_[2]+T);break;case"L":t.lineTo(_[1]+N,_[2]+I);break;case"Q":t.quadraticCurveTo(_[1],_[2],_[3]+N,_[4]+I);break;case"C":t.bezierCurveTo(_[1],_[2],_[3],_[4],_[5]+N,_[6]+I);break;case"A":var F=u[M].arcParams,B=F.cx,D=F.cy,z=F.rx,$=F.ry,W=F.startAngle,Z=F.endAngle,H=F.xRotation,q=F.sweepFlag;if(t.ellipse)t.ellipse(B,D,z,$,H,W,Z,!!(1-q));else{var G=z>$?z:$,Y=z>$?1:z/$,V=z>$?$/z:1;t.translate(B,D),t.rotate(H),t.scale(Y,V),t.arc(0,0,G,W,Z,!!(1-q)),t.scale(1/Y,1/V),t.rotate(-H),t.translate(-B,-D)}E&&t.lineTo(_[6]+p,_[7]+d);break;case"Z":t.closePath()}}}function n6(t,e){var n,r=e.markerStart,i=e.markerEnd,a=e.markerStartOffset,o=e.markerEndOffset,l=e.points.points,s=l.length,u=l[0][0],c=l[0][1],f=l[s-1][0],p=l[s-1][1],d=0,h=0,y=0,g=0,m=0;r&&(0,tk.RV)(r)&&a&&(n=l[1][0]-l[0][0],d=Math.cos(m=Math.atan2(l[1][1]-l[0][1],n))*(a||0),h=Math.sin(m)*(a||0)),i&&(0,tk.RV)(i)&&o&&(n=l[s-1][0]-l[0][0],y=Math.cos(m=Math.atan2(l[s-1][1]-l[0][1],n))*(o||0),g=Math.sin(m)*(o||0)),t.moveTo(u+(d||y),c+(h||g));for(var v=1;v<s-1;v++){var b=l[v];t.lineTo(b[0],b[1])}t.lineTo(f,p)}function n8(t,e){var n,r=e.markerStart,i=e.markerEnd,a=e.markerStartOffset,o=e.markerEndOffset,l=e.points.points,s=l.length,u=l[0][0],c=l[0][1],f=l[s-1][0],p=l[s-1][1],d=0,h=0,y=0,g=0,m=0;r&&(0,tk.RV)(r)&&a&&(n=l[1][0]-l[0][0],d=Math.cos(m=Math.atan2(l[1][1]-l[0][1],n))*(a||0),h=Math.sin(m)*(a||0)),i&&(0,tk.RV)(i)&&o&&(n=l[s-2][0]-l[s-1][0],y=Math.cos(m=Math.atan2(l[s-2][1]-l[s-1][1],n))*(o||0),g=Math.sin(m)*(o||0)),t.moveTo(u+d,c+h);for(var v=1;v<s-1;v++){var b=l[v];t.lineTo(b[0],b[1])}t.lineTo(f+y,p+g)}function n9(t,e){var n=e.x,r=void 0===n?0:n,i=e.y,a=void 0===i?0:i,o=e.radius,l=e.width,s=e.he
1ight;if(o&&o.some(function(t){return 0!==t})){var u=l>0?1:-1,c=s>0?1:-1,f=u+c===0,p=o.map(function(t){return(0,tT.Z)(t,0,Math.min(Math.abs(l)/2,Math.abs(s)/2))}),d=(0,tC.Z)(p,4),h=d[0],y=d[1],g=d[2],m=d[3];t.moveTo(u*h+r,a),t.lineTo(l-u*y+r,a),0!==y&&t.arc(l-u*y+r,c*y+a,y,-c*Math.PI/2,u>0?0:Math.PI,f),t.lineTo(l+r,s-c*g+a),0!==g&&t.arc(l-u*g+r,s-c*g+a,g,u>0?0:Math.PI,c>0?Math.PI/2:1.5*Math.PI,f),t.lineTo(u*m+r,s+a),0!==m&&t.arc(u*m+r,s-c*m+a,m,c>0?Math.PI/2:-Math.PI/2,u>0?Math.PI:0,f),t.lineTo(r,c*h+a),0!==h&&t.arc(u*h+r,c*h+a,h,u>0?Math.PI:0,c>0?1.5*Math.PI:Math.PI/2,f)}else t.rect(r,a,l,s)}var n7=function(t){function e(){var t;(0,tj.Z)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=(0,tE.Z)(this,e,[].concat(r))).name="canvas-path-generator",t}return(0,tS.Z)(e,t),(0,tA.Z)(e,[{key:"init",value:function(){var t,e=(t={},(0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)((0,tW.Z)(t,tk.bn.CIRCLE,n2),tk.bn.ELLIPSE,n5),tk.bn.RECT,n9),tk.bn.LINE,n3),tk.bn.POLYLINE,n8),tk.bn.POLYGON,n6),tk.bn.PATH,n4),tk.bn.TEXT,void 0),tk.bn.GROUP,void 0),tk.bn.IMAGE,void 0),(0,tW.Z)((0,tW.Z)((0,tW.Z)(t,tk.bn.HTML,void 0),tk.bn.MESH,void 0),tk.bn.FRAGMENT,void 0));this.context.pathGeneratorFactory=e}},{key:"destroy",value:function(){delete this.context.pathGeneratorFactory}}])}(tk.F6),rt=(0,tA.Z)(function t(e){(0,tj.Z)(this,t),this.renderingContext=e.renderingContext,this.canvasConfig=e.config},[{key:"init",value:function(){var t=this.canvasConfig,e=t.container,n=t.canvas;if(n)this.$canvas=n,e&&n.parentElement!==e&&e.appendChild(n),this.$container=n.parentElement,this.canvasConfig.container=this.$container;else if(e&&(this.$container=(0,tN.Z)(e)?document.getElementById(e):e,this.$container)){var r=document.createElement("canvas");this.$container.appendChild(r),this.$container.style.position||(this.$container.style.position="relative"),this.$canvas=r}this.context=this.$canvas.getContext("2d"),this.resize(this.canvasConfig.width,this.canvasConfig.height)}},{key:"getContext",value:function(){return this.context}},{key:"getDomElement",value:function(){return this.$canvas}},{key:"getDPR",value:function(){return this.dpr}},{key:"getBoundingClientRect",value:function(){if(this.$canvas.getBoundingClientRect)return this.$canvas.getBoundingClientRect()}},{key:"destroy",value:function(){this.$container&&this.$canvas&&this.$canvas.parentNode&&this.$container.removeChild(this.$canvas)}},{key:"resize",value:function(t,e){var n=this.canvasConfig.devicePixelRatio;this.dpr=n,this.$canvas&&(this.$canvas.width=this.dpr*t,this.$canvas.height=this.dpr*e,(0,tk.$p)(this.$canvas,t,e)),this.renderingContext.renderReasons.add(tk.Rr.CAMERA_CHANGED)}},{key:"applyCursorStyle",value:function(t){this.$container&&this.$container.style&&(this.$container.style.cursor=t)}},{key:"toDataURL",value:(vK=(0,ng.Z)((0,ny.Z)().mark(function t(){var e,n,r,i=arguments;return(0,ny.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=(e=i.length>0&&void 0!==i[0]?i[0]:{}).type,r=e.encoderOptions,t.abrupt("return",this.context.canvas.toDataURL(n,r));case 1:case"end":return t.stop()}},t,this)})),function(){return vK.apply(this,arguments)})}]),re=function(t){function e(){var t;(0,tj.Z)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=(0,tE.Z)(this,e,[].concat(r))).name="canvas-context-register",t}return(0,tS.Z)(e,t),(0,tA.Z)(e,[{key:"init",value:function(){this.context.ContextService=rt}},{key:"destroy",value:function(){delete this.context.ContextService}}])}(tk.F6),rn=function(t){function e(t){var n;return(0,tj.Z)(this,e),(n=(0,tE.Z)(this,e,[t])).registerPlugin(new re),n.registerPlugin(new tk.S3.Plugin),n.registerPlugin(new n7),n.registerPlugin(new nR),n.registerPlugin(new tk.sC.Plugin),n.registerPlugin(new n1),n.registerPlugin(new tk.MD.Plugin),n}return(0,tS.Z)(e,t),(0,tA.Z)(e)}(tk.I8),rr=n(35476),ri=function(){function t(e){(0,tj.Z)(this,t),this.dragndropPluginOptions=e}return(0,tA.Z)(t,[{key:"apply",value:function(e){var n=this,r=e.renderingService,i=e.renderingContext.root.ownerDocument,a=i.defaultView,o=function(t){var e=t.target,r=e===i,o=r&&n.dragndropPluginOptions.isDocumentDraggable?i:e.closest&&e.closest("[draggable=true]");if(o){var l,s=!1,u=t.timeStamp,c=[t.clientX,t.clientY],f=null,p=[t.clientX,t.clientY],d=(l=(0,ng.Z)((0,ny.Z)().mark(function t(a){var l,d,h,y,g,m;return(0,ny.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s){t.next=2;break}if(l=a.timeStamp-u,d=(0,rr.y)([a.clientX,a.clientY],c),!(l<=n.dragndropPluginOptions.dragstartTimeThreshold||d<=n.dragndropPluginOptions.dragstartDistanceThreshold)){t.next=1;break}return t.abrupt("return");case 1:a.type="dragstart",o.dispatchEvent(a),s=!0;case 2:if(a.type="drag",a.dx=a.clientX-p[0],a.dy=a.clientY-p[1],o.dispatchEvent(a),p=[a.clientX,a.clientY],r){t.next=4;break}return h="pointer"===n.dragndropPluginOptions.overlap?[a.canvasX,a.canvasY]:e.getBounds().center,t.next=3,i.elementsFromPoint(h[0],h[1]);case 3:m=(null==(g=(y=t.sent)[y.indexOf(e)+1])?void 0:g.closest("[droppable=true]"))||(n.dragndropPluginOptions.isDocumentDroppable?i:null),f!==m&&(f&&(a.type="dragleave",a.target=f,f.dispatchEvent(a)),m&&(a.type="dragenter",a.target=m,m.dispatchEvent(a)),(f=m)&&(a.type="dragover",a.target=f,f.dispatchEvent(a)));case 4:case"end":return t.stop()}},t)})),function(t){return l.apply(this,arguments)});a.addEventListener("pointermove",d);var h=function(t){if(s){t.detail={preventClick:!0};var e=t.clone();f&&(e.type="drop",e.target=f,f.dispatchEvent(e)),e.type="dragend",o.dispatchEvent(e),s=!1}a.removeEventListener("pointermove",d)};e.addEventListener("pointerup",h,{once:!0}),e.addEventListener("pointerupoutside",h,{once:!0})}};r.hooks.init.tap(t.tag,function(){a.addEventListener("pointerdown",o)}),r.hooks.destroy.tap(t.tag,function(){a.removeEventListener("pointerdown",o)})}}])}();ri.tag="Dragndrop";var ra=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,tj.Z)(this,e),(t=(0,tE.Z)(this,e)).name="dragndrop",t.options=n,t}return(0,tS.Z)(e,t),(0,tA.Z)(e,[{key:"init",value:function(){this.addRenderingPlugin(new ri((0,t$.Z)({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}},{key:"setOptions",value:function(t){Object.assign(this.plugins[0].dragndropPluginOptions,t)}}])}(tk.F6),ro=function(t,e,n){var r;return function(){var i=this,a=arguments,o=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(i,a)},e),o&&t.apply(i,a)}},rl=function(t,e,n){for(var r=0,i=(0,tN.Z)(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t};class rs extends Map{constructor(t,e=rc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,n]of t)this.set(e,n)}get(t){return super.get(ru(this,t))}has(t){return super.has(ru(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function ru({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function rc(t){return null!==t&&"object"==typeof t?t.valueOf():t}function rf(t){return t}function rp(t,...e){return rg(t,rf,rf,e)}function rd(t,...e){return rg(t,Array.from,rf,e)}function rh(t,e,...n){return rg(t,rf,e,n)}function ry(t,e,...n){return rg(t,Array.from,e,n)}function rg(t,e,n,r){return function t(i,a){if(a>=r.length)return n(i);let o=new rs,l=r[a++],s=-1;for(let t of i){let e=l(t,++s,i),n=o.get(e);n?n.push(t):o.set(e,[t])}for(let[e,n]of o)o.set(e,t(n,a));return e(o)}(t,0)}var rm=n(83262),rv=function(t){return"object"==typeof t&&null!==t},rb=n(15725),rx=function(t){if(!rv(t)||!(0,rb.Z)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},rO=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)!function t(e,n,r,i){for(var a in r=r||0,i=i||5,n)if(function(t,e){if(Object.hasOwn)return Object.hasOwn(t,e);if(null==t)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}(n,a)){var o=n[a];null!==o&&rx(o)?(rx(e[a])||(e[a]={}
1),r<i?t(e[a],o,r+1,i):e[a]=n[a]):(0,rm.Z)(o)?(e[a]=[],e[a]=e[a].concat(o)):void 0!==o&&(e[a]=o)}}(t,e[r]);return t},rw=function(t){return(0,tL.Z)(t)?"":t.toString()},rM=function(t){var e=rw(t);return e.charAt(0).toLowerCase()+e.substring(1)};function r_({map:t,initKey:e},n){let r=e(n);return t.has(r)?t.get(r):n}function rk(t){return"object"==typeof t?t.valueOf():t}class rj extends Map{constructor(t){if(super(),this.map=new Map,this.initKey=rk,null!==t)for(let[e,n]of t)this.set(e,n)}get(t){return super.get(r_({map:this.map,initKey:this.initKey},t))}has(t){return super.has(r_({map:this.map,initKey:this.initKey},t))}set(t,e){return super.set(function({map:t,initKey:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}({map:this.map,initKey:this.initKey},t),e)}delete(t){return super.delete(function({map:t,initKey:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}({map:this.map,initKey:this.initKey},t))}}class rA{transformBreaks(t){return t}constructor(t){var e;this.options=rO({},this.getDefaultOptions()),this.update((null===(e=null==t?void 0:t.breaks)||void 0===e?void 0:e.length)?this.transformBreaks(t):t)}getOptions(){return this.options}update(t={}){let e=t.breaks?this.transformBreaks(t):t;this.options=rO({},this.options,e),this.rescale(e)}rescale(t){}}let rE=Symbol("defaultUnknown");function rS(t,e,n){for(let r=0;r<e.length;r+=1)t.has(e[r])||t.set(n(e[r]),r)}function rP(t){let{value:e,from:n,to:r,mapper:i,notFoundReturn:a}=t,o=i.get(e);if(void 0===o){if(a!==rE)return a;o=n.push(e)-1,i.set(e,o)}return r[o%r.length]}function rC(t){return t instanceof Date?t=>`${t}`:"object"==typeof t?t=>JSON.stringify(t):t=>t}class rT extends rA{getDefaultOptions(){return{domain:[],range:[],unknown:rE}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&rS(this.domainIndexMap,this.getDomain(),this.domainKey),rP({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&rS(this.rangeIndexMap,this.getRange(),this.rangeKey),rP({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){let[e]=this.options.domain,[n]=this.options.range;if(this.domainKey=rC(e),this.rangeKey=rC(n),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!t||t.range)&&this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new rT(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;let{domain:t,compare:e}=this.options;return this.sortedDomain=e?[...t].sort(e):t,this.sortedDomain}}class rR extends rT{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:rE,flex:[]}}constructor(t){super(t)}clone(){return new rR(this.options)}getStep(t){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===t?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===t?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){let{padding:t,paddingInner:e}=this.options;return t>0?t:e}getPaddingOuter(){let{padding:t,paddingOuter:e}=this.options;return t>0?t:e}rescale(){super.rescale();let{align:t,domain:e,range:n,round:r,flex:i}=this.options,{adjustedRange:a,valueBandWidth:o,valueStep:l}=function(t){var e;let n,r;let{domain:i}=t,a=i.length;if(0===a)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};if(null===(e=t.flex)||void 0===e?void 0:e.length)return function(t){let{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:l}=t,s=e.length,u=function(t,e){let n=e-t.length;return n>0?[...t,...Array(n).fill(1)]:n<0?t.slice(0,e):t}(a,s),[c,f]=n,p=f-c,d=p/(2/s*r+1-1/s*i),h=d*i/s,y=d-s*h,g=function(t){let e=t.reduce((t,e)=>Math.min(t,e),1/0);return e===1/0?[]:t.map(t=>t/e)}(u),m=y/g.reduce((t,e)=>t+e),v=new rj(e.map((t,e)=>{let n=g[e]*m;return[t,o?Math.floor(n):n]})),b=new rj(e.map((t,e)=>{let n=g[e]*m+h;return[t,o?Math.floor(n):n]})),x=Array.from(b.values()).reduce((t,e)=>t+e),O=c+(p-(x-x/s*i))*l,w=o?Math.round(O):O,M=Array(s);for(let t=0;t<s;t+=1){M[t]=Math.round(1e12*w)/1e12;let n=e[t];w+=b.get(n)}return{valueBandWidth:v,valueStep:b,adjustedRange:M}}(t);let{range:o,paddingOuter:l,paddingInner:s,round:u,align:c}
1=t,f=o[0],p=o[1]-f;n=p/Math.max(1,2*l+(a-s)),u&&(n=Math.floor(n)),f+=(p-n*(a-s))*c,r=n*(1-s),u&&(f=Math.round(f),r=Math.round(r));let d=Array(a).fill(0).map((t,e)=>f+e*n);return{valueStep:n,valueBandWidth:r,adjustedRange:d}}({align:t,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=l,this.valueBandWidth=o,this.adjustedRange=a}}let rL=Math.sqrt(50),rN=Math.sqrt(10),rI=Math.sqrt(2);function rF(t,e,n){let r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/10**i;return i>=0?(a>=rL?10:a>=rN?5:a>=rI?2:1)*10**i:-(10**-i)/(a>=rL?10:a>=rN?5:a>=rI?2:1)}function rB(t,e,n){let r=Math.abs(e-t)/Math.max(0,n),i=10**Math.floor(Math.log(r)/Math.LN10),a=r/i;return a>=rL?i*=10:a>=rN?i*=5:a>=rI&&(i*=2),e<t?-i:i}let rD=(t,e)=>{if(!(null==e?void 0:e.length))return t;let n=Array.from(new Set([...t,...e.flatMap(t=>[t.start,t.end])])).sort((t,e)=>t-e).filter(t=>!e.some(({start:e,end:n})=>t>e&&t<n));return n.length?n:t},rz=(t,e,n,r)=>{let i,a;let o=t,l=e;if(o===l&&n>0)return[o];let s=rF(o,l,n);if(0===s||!Number.isFinite(s))return[];if(s>
10){o=Math.ceil(o/s),a=Array(i=Math.ceil((l=Math.floor(l/s))-o+1));for(let t=0;t<i;t+=1)a[t]=(o+t)*s}else{o=Math.ceil(o*(s=-s)),a=Array(i=Math.ceil((l=Math.floor(l*s))-o+1));for(let t=0;t<i;t+=1)a[t]=(o+t)/s}return rD(a,r)};class r$ extends rA{getDefaultOptions(){return{range:[0],domain:[0,1],unknown:void 0,tickCount:5,tickMethod:rz}}map(t){let[e]=this.options.range;return void 0!==e?e:this.options.unknown}invert(t){let[e]=this.options.range;return t===e&&void 0!==e?this.options.domain:[]}getTicks(){let{tickMethod:t,domain:e,tickCount:n}=this.options,[r,i]=e;return(0,tR.Z)(r)&&(0,tR.Z)(i)?t(r,i,n):[]}clone(){return new r$(this.options)}}function rW(t){let{markType:e,nodeName:n}=t;return"heatmap"===e&&"image"===n}function rZ(t,e){let n=null!=e?e:function(t){var e;let n=t;for(;n;){if((null===(e=n.attributes)||void 0===e?void 0:e.class)==="view")return n;n=n.parentNode}return null}(t).__data__,{markKey:r,index:i,seriesIndex:a,normalized:o={x:0}}=t.__data__,{markState:l}=n,s=Array.from(l.keys()).find(t=>t.key===r);if(s)return a?a.map(t=>s.data[t]):rW(t)?s.data[Math.round(s.data.length*o.x)]:s.data[i]}function rH(t){return t}function rq(t){return t.reduce((t,e)=>(n,...r)=>e(t(n,...r),...r),rH)}function rG(t){return t.replace(/( |^)[a-z]/g,t=>t.toUpperCase())}function rY(t=""){throw Error(t)}function rV(t,e){let{attributes:n}=e,r=new Set(["id","className"]);for(let[e,i]of Object.entries(n))r.has(e)||t.attr(e,i)}function rU(t){return null!=t&&!Number.isNaN(t)}function rX(t,e){return rK(t,e)||{}}function rK(t,e){let n=Object.entries(t||{}).filter(([t])=>t.startsWith(e)).map(([t,n])=>[rM(t.replace(e,"").trim()),n]).filter(([t])=>!!t);return 0===n.length?null:Object.fromEntries(n)}function rQ(t,...e){return Object.fromEntries(Object.entries(t).filter(([t])=>e.every(e=>!t.startsWith(e))))}function rJ(t,e){if(void 0===t)return null;if("number"==typeof t)return t;let n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function r0(t){return"object"==typeof t&&!(t instanceof Date)&&null!==t&&!Array.isArray(t)}function r1(t){return null===t||!1===t}function r2(t){return new r5([t],null,t,t.ownerDocument)}class r5{constructor(t=null,e=null,n=null,r=null,i=[null,null,null,null,null],a=[],o=[]){this._elements=Array.from(t),this._data=e,this._parent=n,this._document=r,this._enter=i[0],this._update=i[1],this._exit=i[2],this._merge=i[3],this._split=i[4],this._transitions=a,this._facetElements=o}selectAll(t){return new r5("string"==typeof t?this._parent.querySelectorAll(t):t,null,this._elements[0],this._document)}selectFacetAll(t){let e="string"==typeof t?this._parent.querySelectorAll(t):t;return new r5(this._elements,null,this._parent,this._document,void 0,void 0,e)}select(t){let e="string"==typeof t?this._parent.querySelectorAll(t)[0]||null:t;return new r5([e],null,e,this._document)}append(t){let e="function"==typeof t?t:()=>this.createElement(t),n=[];if(null!==this._data){for(let t=0;t<this._data.length;t++){let r=this._data[t],[i,a]=Array.isArray(r)?r:[r,null],o=e(i,t);o.__data__=i,null!==a&&(o.__fromElements__=a),this._parent.appendChild(o),n.push(o)}return new r5(n,null,this._parent,this._document)}for(let t=0;t<this._elements.length;t++){let r=this._elements[t],i=e(r.__data__,t);r.appendChild(i),n.push(i)}return new r5(n,null,n[0],this._document)}maybeAppend(t,e,n){let r=this._elements[0],i=r.getElementById(t);if(i)return new r5([i],null,this._parent,this._document);let a="string"==typeof e?this.createElement(e):e();return a.id=t,n&&(a.className=n),r.appendChild(a),new r5([a],null,this._parent,this._document)}data(t,e=t=>t,n=()=>null){let r=[],i=[],a=new Set(this._elements),o=[],l=new Set,s=new Map(this._elements.map((t,n)=>[e(t.__data__,n),t])),u=new Map(this._facetElements.map((t,n)=>[e(t.__data__,n),t])),c=rp(this._elements,t=>n(t.__data__));for(let f=0;f<t.length;f++){let p=t[f],d=e(p,f),h=n(p,f);if(s.has(d)){let t=s.get(d);t.__data__=p,t.__facet__=!1,i.push(t),a.delete(t),s.delete(d)}else if(u.has(d)){let t=u.get(d);t.__data__=p,t.__facet__=!0,i.push(t),u.delete(d)}else if(c.has(d)){let t=c.get(d);for(let e of(o.push([p,t]),t))a.delete(e);
1c.delete(d)}else if(s.has(h)){let t=s.get(h);t.__toData__?t.__toData__.push(p):t.__toData__=[p],l.add(t),a.delete(t)}else r.push(p)}let f=[new r5([],r,this._parent,this._document),new r5(i,null,this._parent,this._document),new r5(a,null,this._parent,this._document),new r5([],o,this._parent,this._document),new r5(l,null,this._parent,this._document)];return new r5(this._elements,null,this._parent,this._document,f)}merge(t){let e=[...this._elements,...t._elements],n=[...this._transitions,...t._transitions];return new r5(e,null,this._parent,this._document,void 0,n)}createElement(t){if(this._document)return this._document.createElement(t,{});let e=r5.registry[t];return e?new e:rY(`Unknown node type: ${t}`)}join(t=t=>t,e=t=>t,n=t=>t.remove(),r=t=>t,i=t=>t.remove()){let a=t(this._enter),o=e(this._update),l=n(this._exit),s=r(this._merge),u=i(this._split);return o.merge(a).merge(l).merge(s).merge(u)}remove(){for(let t=0;t<this._elements.length;t++){let e=this._transitions[t];if(this._elements[t].__removed__=!0,e)Promise.all((Array.isArray(e)?e:[e]).map(t=>t.finished)).then(()=>{let e=this._elements[t];e.__removed__&&e.remove()});else{let e=this._elements[t];e.__removed__&&e.remove()}}return new r5([],null,this._parent,this._document,void 0,this._transitions)}each(t){for(let e=0;e<this._elements.length;e++){let n=this._elements[e];t(n.__data__,e,n)}return this}attr(t,e){let n="function"!=typeof e?()=>e:e;return this.each(function(r,i,a){void 0!==e&&(a[t]=n(r,i,a))})}style(t,e){let n="function"!=typeof e?()=>e:e;return this.each(function(r,i,a){void 0!==e&&(a.style[t]=n(r,i,a))})}transition(t){let e="function"!=typeof t?()=>t:t,{_transitions:n}=this;return this.each(function(t,r,i){n[r]=e(t,r,i)})}on(t,e){return this.each(function(n,r,i){i.addEventListener(t,e)}),this}call(t,...e){return t(this,...e),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}}r5.registry={g:tk.ZA,rect:tk.UL,circle:tk.Cd,path:tk.y$,text:tk.xv,ellipse:tk.Pj,image:tk.Ee,line:tk.x1,polygon:tk.mg,polyline:tk.aH,html:tk.k9};let r3={BEFORE_RENDER:"beforerender",AFTER_RENDER:"afterrender",BEFORE_PAINT:"beforepaint",AFTER_PAINT:"afterpaint",BEFORE_CLEAR:"beforeclear",AFTER_CLEAR:"afterclear",BEFORE_DESTROY:"beforedestroy",AFTER_DESTROY:"afterdestroy",BEFORE_CHANGE_SIZE:"beforechangesize",AFTER_CHANGE_SIZE:"afterchangesize",POINTER_TAP:"pointertap",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_OVER:"pointerover",POINTER_OUT:"pointerout",POINTER_MOVE:"pointermove",POINTER_ENTER:"pointerenter",POINTER_LEAVE:"pointerleave",POINTER_UPOUTSIDE:"pointerupoutside",DRAG_START:"dragstart",DRAG:"drag",DRAG_END:"dragend",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"DROP",CLICK:"click",DBLCLICK:"dblclick"},r4={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow};class r6 extends Error{constructor(t,e,n){super(t),this.position=e,this.token=n,this.name="ExpressionError"}}(vQ=v4||(v4={}))[vQ.STRING=0]="STRING",vQ[vQ.NUMBER=1]="NUMBER",vQ[vQ.BOOLEAN=2]="BOOLEAN",vQ[vQ.NULL=3]="NULL",vQ[vQ.IDENTIFIER=4]="IDENTIFIER",vQ[vQ.OPERATOR=5]="OPERATOR",vQ[vQ.FUNCTION=6]="FUNCTION",vQ[vQ.DOT=7]="DOT",vQ[vQ.BRACKET_LEFT=8]="BRACKET_LEFT",vQ[vQ.BRACKET_RIGHT=9]="BRACKET_RIGHT",vQ[vQ.PAREN_LEFT=10]="PAREN_LEFT",vQ[vQ.PAREN_RIGHT=11]="PAREN_RIGHT",vQ[vQ.COMMA=12]="COMMA",vQ[vQ.QUESTION=13]="QUESTION",vQ[vQ.COLON=14]="COLON",vQ[vQ.DOLLAR=15]="DOLLAR";let r8=new Set([32,9,10,13]),r9=new Set([43,45,42,47,37,33,38,124,61,60,62]),r7=new Map([["true",v4.BOOLEAN],["false",v4.BOOLEAN],["null",v4.NULL]]),it=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),ie=new Map([[46,v4.DOT],[91,v4.BRACKET_LEFT],[93,v4.BRACKET_RIGHT],[40,v4.PAREN_LEFT],[41,v4.PAREN_RIGHT],[44,v4.COMMA],[63,v4.QUESTION],[58,v4.COLON],[36,v4.DOLLAR]]),ir=new Map;for(let[t,e]of ie.entries())ir.set(t,{type:e,value:String.fromCharCode(t)});function ii(t){return t>=48&&t<=57}function ia(t){return t>=97&&t<=122||t>=65&&t<=90||95===t}(vJ=v6||(v6={}))[vJ.Program=0]="Program",vJ[vJ.Literal=1]="Literal",vJ[vJ.Identifier=2]="Identifier",vJ[vJ.MemberExpression=3]="MemberExpression",vJ[vJ.CallExpression=4]="CallExpression",vJ[vJ.BinaryExpression=5]="BinaryExpression",vJ[vJ.UnaryExpression=6]="UnaryExpression",vJ[vJ.ConditionalExpression=7]="ConditionalExpression";let io=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),il={type:v6.Literal,value:null},is={type:v6.Literal,value:!0},iu={type:v6.Literal,value:!1},ic=t=>{let e=0,n=t.length,r=()=>e>=n?null:t[e],i=()=>t[e++],a=t=>{let e=r();return null!==e&&e.type===t},o=t=>t.type===v4.OPERATOR?io.get(t.value)||-1:t.type===v4.DOT||t.type===v4.BRACKET_LEFT?9:t.type===v4.QUESTION?1:-1,l=t=>{let n,o;
1if(i().type===v4.DOT){if(!a(v4.IDENTIFIER)){let t=r();throw new r6("Expected property name",e,t?t.value:"<end of input>")}let t=i();n={type:v6.Identifier,name:t.value},o=!1}else{if(n=u(0),!a(v4.BRACKET_RIGHT)){let t=r();throw new r6("Expected closing bracket",e,t?t.value:"<end of input>")}i(),o=!0}return{type:v6.MemberExpression,object:t,property:n,computed:o}},s=()=>{let t=r();if(!t)throw new r6("Unexpected end of input",e,"<end of input>");if(t.type===v4.OPERATOR&&("!"===t.value||"-"===t.value)){i();let e=s();return{type:v6.UnaryExpression,operator:t.value,argument:e,prefix:!0}}switch(t.type){case v4.NUMBER:return i(),{type:v6.Literal,value:Number(t.value)};case v4.STRING:return i(),{type:v6.Literal,value:t.value};case v4.BOOLEAN:return i(),"true"===t.value?is:iu;case v4.NULL:return i(),il;case v4.IDENTIFIER:return i(),{type:v6.Identifier,name:t.value};case v4.FUNCTION:return(()=>{let t=i(),n=[];if(!a(v4.PAREN_LEFT)){let t=r();throw new r6("Expected opening parenthesis after function name",e,t?t.value:"<end of input>")}for(i();;){if(a(v4.PAREN_RIGHT)){i();break}if(!r()){let t=r();throw new r6("Expected closing parenthesis",e,t?t.value:"<end of input>")}if(n.length>0){if(!a(v4.COMMA)){let t=r();throw new r6("Expected comma between function arguments",e,t?t.value:"<end of input>")}i()}let t=u(0);n.push(t)}return{type:v6.CallExpression,callee:{type:v6.Identifier,name:t.value},arguments:n}})();case v4.PAREN_LEFT:{i();let t=u(0);if(!a(v4.PAREN_RIGHT)){let t=r();throw new r6("Expected closing parenthesis",e,t?t.value:"<end of input>")}return i(),t}default:throw new r6(`Unexpected token: ${t.type}`,e,t.value)}},u=(c=0)=>{let f=s();for(;e<n;){let n=t[e],s=o(n);if(s<=c)break;if(n.type!==v4.QUESTION){if(n.type!==v4.OPERATOR){if(n.type!==v4.DOT&&n.type!==v4.BRACKET_LEFT)break;f=l(f)}else{i();let t=u(s);f={type:v6.BinaryExpression,operator:n.value,left:f,right:t}}}else{i();let t=u(0);if(!a(v4.COLON)){let t=r();throw new r6("Expected : in conditional expression",e,t?t.value:"<end of input>")}i();let n=u(0);f={type:v6.ConditionalExpression,test:f,consequent:t,alternate:n}}}return f},c=u();return{type:v6.Program,body:c}},ip=(t,e,n)=>{let r=e;n&&(r={...e,context:{...e.context,...n}});let i=t=>{switch(t.type){case v6.Literal:return t.value;case v6.Identifier:return(t=>{if(!(t.name in r.context))throw new r6(`Undefined variable: ${t.name}`);return r.context[t.name]})(t);case v6.MemberExpression:return(t=>{let e=i(t.object);if(null==e)throw new r6("Cannot access property of null or undefined");return e[t.computed?i(t.property):t.property.name]})(t);case v6.CallExpression:return(t=>{let e=r.functions[t.callee.name];if(!e)throw new r6(`Undefined function: ${t.callee.name}`);return e(...t.arguments.map(t=>i(t)))})(t);case v6.BinaryExpression:return(t=>{if("&&"===t.operator){let e=i(t.left);return e?i(t.right):e}if("||"===t.operator)return i(t.left)||i(t.right);let e=i(t.left),n=i(t.right);switch(t.operator){case"+":return e+n;case"-":return e-n;case"*":return e*n;case"/":return e/n;case"%":return e%n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n;default:throw new r6(`Unknown operator: ${t.operator}`)}})(t);case v6.UnaryExpression:return(t=>{let e=i(t.argument);if(t.prefix)switch(t.operator){case"!":return!e;case"-":if("number"!=typeof e)throw new r6(`Cannot apply unary - to non-number: ${e}`);return-e;default:throw new r6(`Unknown operator: ${t.operator}`)}throw new r6(`Postfix operators are not supported: ${t.operator}`)})(t);case v6.ConditionalExpression:return(t=>{let e=i(t.test);return i(e?t.consequent:t.alternate)})(t);default:throw new r6(`Evaluation error: Unsupported node type: ${t.type}`)}};return i(t.body)};var id=n(70373),ih=function(t){return t},iy=function(t,e){void 0===e&&(e=ih);var n={};return(0,id.Z)(t)&&!(0,tL.Z)(t)&&Object.keys(t).forEach(function(r){n[r]=e(t[r],r)}),n};function ig(t){var e,n,r,i=t||1;function a(t,a){++e>i&&(r=n,o(1),++e),n[t]=a}function o(t){e=0,n=Object.create(null),t||(r=Object.create(null))}return o(),{clear:o,has:function(t){return void 0!==n[t]||void 0!==r[t]},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(a(t,e),e):void 0},set:function(t,e){void 0!==n[t]?n[t]=e:a(t,e)}}}function im(t,e=(...t)=>`${t[0]}`,n=16){let r=ig(n);return(...n)=>{let i=e(...n),a=r.get(i);return r.has(i)?r.get(i):(a=t(...n),r.set(i,a),a)}}ig(3);let iv=["style","encode","labels","children"],ib=im(t=>{let e=function(t){let e=ic((t=>{let e=t.length,n=Array(Math.ceil(e/3)),r=0,i=0;for(;i<e;){let a=t.charCodeAt(i);if(r8.has(a)){i++;continue}let o=ir.get(a);if(o)n[r++]=o,i++;else if(34!==a&&39!==a){if(ii(a)||45===a&&i+1<e&&ii(t.charCodeAt(i+1)))n[r++]=function(){let n=i;for(45===t.charCodeAt(i)&&i++;i<e&&ii(t.charCodeAt(i));)i++;
1if(i<e&&46===t.charCodeAt(i))for(i++;i<e&&ii(t.charCodeAt(i));)i++;let r=t.slice(n,i);return{type:v4.NUMBER,value:r}}();else if(64!==a){if(ia(a))n[r++]=function(){var n;let r=i++;for(;i<e&&(ia(n=t.charCodeAt(i))||ii(n));)i++;let a=t.slice(r,i),o=r7.get(a);return o?{type:o,value:a}:{type:v4.IDENTIFIER,value:a}}();else{if(!r9.has(a))throw new r6(`Unexpected character: ${t[i]}`,i,t.substring(Math.max(0,i-10),i));n[r++]=function(){if(i+2<e){let e=t.substring(i,i+3);if(it.has(e))return i+=3,{type:v4.OPERATOR,value:e}}if(i+1<e){let e=t.substring(i,i+2);if(it.has(e))return i+=2,{type:v4.OPERATOR,value:e}}let n=t[i];if(it.has(n))return i++,{type:v4.OPERATOR,value:n};throw new r6(`Unknown operator at position ${i}: ${t.substring(i,i+1)}`,i,t.substring(Math.max(0,i-10),i))}()}}else n[r++]=function(){let n=++i;if(i<e&&ia(t.charCodeAt(i))){var r;for(i++;i<e&&(ia(r=t.charCodeAt(i))||ii(r));)i++}let a=t.slice(n,i);return{type:v4.FUNCTION,value:a}}()}else n[r++]=function(n){let r=i+1;i++;let a="",o=!1;for(;i<e;){let e=t.charCodeAt(i);if(e===n)return o||(a=t.substring(r,i)),i++,{type:v4.STRING,value:a};92===e?(o||(a=t.substring(r,i),o=!0),a+=t[++i]):o&&(a+=t[i]),i++}throw new r6(`Unterminated string starting with ${String.fromCharCode(n)}`,i,t.substring(Math.max(0,i-10),i))}(a)}return r===n.length?n:n.slice(0,r)})(t)),n=((t={},e={})=>({context:t,functions:e}))({},r4);return (t={})=>ip(e,n,t)}(t);return(...t)=>{let n=Array.from({length:t.length},(t,e)=>String.fromCharCode(97+e)),r=Object.fromEntries(t.map((t,e)=>[n[e],t]));return e(Object.assign(Object.assign({},r),{global:Object.assign({},r)}))}},t=>t,128);var ix=function(t){var e=rw(t);return e.charAt(0).toUpperCase()+e.substring(1)};function iO(t,e){if(!isFinite(t)||0===t)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}var iw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function iM(t){var e;if(!(e=iw.exec(t)))throw Error("invalid format: "+t);return new i_({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 i_(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 ik(t,e){var n=iO(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}iM.prototype=i_.prototype,i_.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};var ij={"%":(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)=>ik(100*t,e),r:ik,s:function(t,e){var n=iO(t,e);if(!n)return v8=void 0,t.toPrecision(e);var r=n[0],i=n[1],a=i-(v8=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+iO(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function iA(t){return t}var iE=Array.prototype.map,iS=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function iP(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function iC(t){return t.map((t,e)=>e)}function iT(t){return t[t.length-1]}function iR(t,e){let n=[[],[]];return t.forEach(t=>{n[e(t)?0:1].push(t)}),n}v7=(v9=function(t){var e,n,r,i=void 0===t.grouping||void 0===t.thous
1ands?iA:(e=iE.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(t.substring(i-=l,i+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(n)}),a=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",l=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?iA:(r=iE.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return r[+t]})}),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function p(t,e){var n=(t=iM(t)).fill,r=t.align,p=t.sign,d=t.symbol,h=t.zero,y=t.width,g=t.comma,m=t.precision,v=t.trim,b=t.type;"n"===b?(g=!0,b="g"):ij[b]||(void 0===m&&(m=12),v=!0,b="g"),(h||"0"===n&&"="===r)&&(h=!0,n="0",r="=");var x=(e&&void 0!==e.prefix?e.prefix:"")+("$"===d?a:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),O=("$"===d?o:/[%p]/.test(b)?u:"")+(e&&void 0!==e.suffix?e.suffix:""),w=ij[b],M=/[defgprs%]/.test(b);function _(t){var e,a,o,u=x,d=O;if("c"===b)d=w(t)+d,t="";else{var _=(t=+t)<0||1/t<0;if(t=isNaN(t)?f:w(Math.abs(t),m),v&&(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)),_&&0==+t&&"+"!==p&&(_=!1),u=(_?"("===p?p:c:"-"===p||"("===p?"":p)+u,d=("s"!==b||isNaN(t)||void 0===v8?"":iS[8+v8/3])+d+(_&&"("===p?")":""),M){for(e=-1,a=t.length;++e<a;)if(48>(o=t.charCodeAt(e))||o>57){d=(46===o?l+t.slice(e+1):t.slice(e))+d,t=t.slice(0,e);break}}}g&&!h&&(t=i(t,1/0));var k=u.length+t.length+d.length,j=k<y?Array(y-k+1).join(n):"";switch(g&&h&&(t=i(j+t,j.length?y-d.length:1/0),j=""),r){case"<":t=u+t+d+j;break;case"=":t=u+j+t+d;break;case"^":t=j.slice(0,k=j.length>>1)+u+t+d+j.slice(k);break;default:t=j+u+t+d}return s(t)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),_.toString=function(){return t+""},_}return{format:p,formatPrefix:function(t,e){var n,r=3*Math.max(-8,Math.min(8,Math.floor(((n=iO(Math.abs(n=e)))?n[1]:NaN)/3))),i=Math.pow(10,-r),a=p(((t=iM(t)).type="f",t),{suffix:iS[8+r/3]});return function(t){return a(i*t)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,v9.formatPrefix;var iL=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},iN=function(t,e){if(t===e)return!0;if(!t||!e||(0,tN.Z)(t)||(0,tN.Z)(e))return!1;
1if(iL(t)||iL(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=iN(t[r],e[r]));r++);return n}if(rv(t)||rv(e)){var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var n=!0,r=0;r<i.length&&(n=iN(t[i[r]],e[i[r]]));r++);return n}return!1};function iI(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 iF(t,e){let n;if(void 0===e)for(let 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}let iB=(t={})=>{var e,n;let r=Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),t);return Object.assign(Object.assign({},r),(e=r.startAngle,n=r.endAngle,e%=2*Math.PI,n%=2*Math.PI,e<0&&(e=2*Math.PI+e),n<0&&(n=2*Math.PI+n),e>=n&&(n+=2*Math.PI),{startAngle:e,endAngle:n}))},iD=t=>{let{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=iB(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};iD.props={};let iz=(t={})=>Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),t),i$=t=>{let{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=iz(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...iD({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};function iW(t,e,n){return Math.max(e,Math.min(t,n))}function iZ(t,e=10){return"number"!=typeof t?t:1e-15>Math.abs(t)?t:parseFloat(t.toFixed(e))}function iH(t){return`.g2-${t}`}i$.props={};let iq=[["legendCategory",[[["color","discrete"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","discrete"]],[["color","discrete"],["opacity","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"]],[["color","discrete"],["opacity","constant"],["size","constant"]],[["color","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"]],[["color","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["shape","discrete"]],[["color","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"]],[["color","discrete"],["opacity","constant"]],[["color","discrete"],["shape","constant"]],[["color","constant"],["shape","discrete"]],[["color","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"]],[["color","discrete"]]]],["legendContinuousSize",[[["color","continuous"],["opacity","continuous"],["size","continuous"]],[["color","constant"],["opacity","continuous"],["size","continuous"]],[["color","continuous"],["size","continuous"]],[["color","constant"],["size","continuous"]],[["size","continuous"],["opacity","continuous"]],[["size","continuous"]]]],["legendContinuousBlockSize",[[["color","distribution"],["opacity","distribution"],["size","distribution"]],[["color","distribution"],["size","distribution"]]]],["legendContinuousBlock",[[["color","distribution"],["opacity","continuous"]],[["color","distribution"]]]],["legendContinuous",[[["color","continuous"],["opacity","continuous"]],[["color","continuous"]],[["opacity","continuous"]]]]],iG=["lineX","lineY","rangeX","rangeY","range","connector"];var iY=n(16290);function iV(t){let{transformations:e}=t.getOptions();return e.map(([t])=>t).filter(t=>"transpose"===t).length%2!=0}function iU(t){let{transformations:e}=t.getOptions();return e.some(([t])=>"polar"===t)}function iX(t){let{transformations:e}=t.getOptions();return e.some(([t])=>"reflect"===t)&&e.some(([t])=>t.startsWith("transpose"))}function iK(t){let{transformations:e}=t.getOptions();return e.some(([t])=>"helix"===t)}function iQ(t){let{transformations:e}=t.getOptions();return e.some(([t])=>"parallel"===t)}function iJ(t){let{transformations:e}=t.getOptions();return e.some(([t])=>"fisheye"===t)}function i0(t){return iK(t)||iU(t)}function i1(t){let{transformations:e}=t.getOptions(),[,,,n,r]=e.find(t=>"polar"===t[0]);return[+n,+r]}function i2(t,e=!0){let{transformations:n}=t.getOptions(),[,r,i]=n.find(t=>"polar"===t[0]);return e?[180*+r/Math.PI,180*+i/Math.PI]:[r,i]}var i5=n(15767);function i3(t){i6(t,!0)}function i4(t){i6(t,!1)}function i6(t,e){var n=e?"visible":"hidden";
1!function t(e,n){n(e),e.children&&e.children.forEach(function(e){e&&t(e,n)})}(t,function(t){t.attr("visibility",n)})}function i8(t){if(!t)return{enter:!1,update:!1,exit:!1};var e=["enter","update","exit"],n=Object.fromEntries(Object.entries(t).filter(function(t){var n=(0,i5.CR)(t,1)[0];return!e.includes(n)}));return Object.fromEntries(e.map(function(e){return"boolean"!=typeof t&&"enter"in t&&"update"in t&&"exit"in t?!1===t[e]?[e,!1]:[e,(0,i5.pi)((0,i5.pi)({},t[e]),n)]:[e,n]}))}function i9(t,e){t?t.finished.then(e):e()}function i7(t,e){"update"in t?t.update(e):t.attr(e)}function at(t,e,n){return 0===e.length?null:n?t.animate(e,n):(i7(t,{style:e.slice(-1)[0]}),null)}function ae(t,e,n){var r={},i={};return(Object.entries(e).forEach(function(e){var n=(0,i5.CR)(e,2),a=n[0],o=n[1];if(!(0,tL.Z)(o)){var l=t.style[a]||t.parsedStyle[a]||0;l!==o&&(r[a]=l,i[a]=o)}}),n)?at(t,[r,i],(0,i5.pi)({fill:"both"},n)):(i7(t,i),null)}var an=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=5),Object.entries(e).forEach(function(i){var a=(0,i5.CR)(i,2),o=a[0],l=a[1];Object.prototype.hasOwnProperty.call(e,o)&&(l?rx(l)?(rx(t[o])||(t[o]={}),n<r?an(t[o],l,n+1,r):t[o]=e[o]):(0,rm.Z)(l)?(t[o]=[],t[o]=t[o].concat(l)):t[o]=l:t[o]=l)})},ar=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)an(t,e[r]);return t},ai=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,(0,i5.ev)([],(0,i5.CR)(e),!1))||this;return r.isMutationObserved=!0,r.addEventListener(tk.Dk.INSERTED,function(){i4(r)}),r}return(0,i5.ZT)(e,t),e}(tk.ZA);function aa(t){var e=t.appendChild(new ai({class:"offscreen"}));return i4(e),e}function ao(){i6(this,"hidden"!==this.attributes.visibility)}var al=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this,ar({},{style:n},e))||this;return r.initialized=!1,r._defaultOptions=n,r}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=aa(this)),this._offscreen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultOptions",{get:function(){return this._defaultOptions},enumerable:!1,configurable:!0}),e.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this),this.initialized=!0},e.prototype.disconnectedCallback=function(){var t;null===(t=this._offscreen)||void 0===t||t.destroy()},e.prototype.attributeChangedCallback=function(t){"visibility"===t&&ao.call(this)},e.prototype.update=function(t,e){var n;return this.attr(ar({},this.attributes,t||{})),null===(n=this.render)||void 0===n?void 0:n.call(this,this.attributes,this,e)},e.prototype.clear=function(){this.removeChildren()},e.prototype.bindEvents=function(t,e){},e.prototype.getSubShapeStyle=function(t){return t.x,t.y,t.transform,t.transformOrigin,t.class,t.className,t.zIndex,(0,i5._T)(t,["x","y","transform","transformOrigin","class","className","zIndex"])},e}(tk.b_);function as(t,e,n,r,i){return(void 0===r&&(r=!0),void 0===i&&(i=function(t){t.node().removeChildren()}),t)?n(e):(r&&i(e),null)}var au=function(t){if(!(0,rm.Z)(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},ac=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=(0,i5._T)(e,["style"]);return t.call(this,(0,i5.pi)({style:(0,i5.pi)({text:"",fill:"black",fontFamily:"sans-serif",fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1,textAlign:"start",textBaseline:"middle"},n)},r))||this}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=aa(this)),this._offscreen},enumerable:!1,configurable:!0}),e.prototype.disconnectedCallback=function(){var t;null===(t=this._offscreen)||void 0===t||t.destroy()},e}(tk.xv),af=function(){var t,e,n;function r(e,n,r,i,a,o,l){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=null),void 0===a&&(a=[null,null,null,null,null]),void 0===o&&(o=[]),void 0===l&&(l=[]),t.add(this),this._elements=Array.from(e),this._data=n,this._parent=r,this._document=i,this._enter=a[0],this._update=a[1],this._exit=a[2],this._merge=a[3],this._split=a[4],this._transitions=o,this._facetElements=l}return r.prototype.selectAll=function(t){var n="string"==typeof t?this._parent.querySelectorAll(t):t;return new e(n,null,this._elements[0],this._document)},r.prototype.selectFacetAll=function(t){var n="string"==typeof t?this._parent.querySelectorAll(t):t;return new e(this._elements,null,this._parent,this._document,void 0,void 0,n)},r.prototype.select=function(t){var n="string"==typeof t?this._parent.querySelectorAll(t)[0]||null:t;return new e([n],null,n,this._document)},r.prototype.append=function(t){var n=this,r="function"==typeof t?t:function(){return n.createElement(t)},i=[];if(null!==this._data){for(var a=0;a<this._data.length;a++){var o=this._data[a],l=(0,i5.CR)(Array.isArray(o)?o:[o,null],2),s=l[0],u=l[1],c=r(s,a);c.__data__=s,null!==u&&(c.__fromElements__=u),this._parent.appendChild(c),i.push(c)}return new e(i,null,this._parent,this._document)}for(var a=0;a<this._elements.length;a++){var f=this._elements[a],s=f.__data__,c=r(s,a);f.appendChild(c),i.push(c)}return new e(i,null,i[0],this._document)},r.prototype.maybeAppend=function(e,r){var i=(0,i5.Q_)(this,t,"m",n).call(this,"#"===e[0]?e:"#".concat(e),r);return i.attr("id",e),i},r.prototype.maybeAppendByClassName=function(e,r){var i=e.toString(),a=(0,i5.Q_)(this,t,"m",n).call(this,"."===i[0]?i:".".concat(i),r);return a.attr("className",i),a},r.prototype.maybeAppendByName=function(e,r){var i=(0,i5.Q_)(this,t,"m",n).call(this,'[name="'.concat(e,'"]'),r);return i.attr("name",e),i},r.prototype.data=function(t,n,r){void 0===n&&(n=function(t){return t}),void 0===r&&(r=function(){return null});for(var i,a,o,l,s,u=[],c=[],f=new Set(this._elements),p=[],d=new Set,h=new Map(this._elements.map(function(t,e){return[n(t.__data__,e),t]})),y=new Map(this._facetElements.map(function(t,e){return[n(t.__data__,e),t]})),g=(i=this._elements,a=function(t){return r(t.__data__)}
1,o=new Map,i.forEach(function(t){var e=a(t);o.has(e)||o.set(e,[]),o.get(e).push(t)}),o),m=0;m<t.length;m++){var v=t[m],b=n(v,m),x=r(v,m);if(h.has(b)){var O=h.get(b);O.__data__=v,O.__facet__=!1,c.push(O),f.delete(O),h.delete(b)}else if(y.has(b)){var O=y.get(b);O.__data__=v,O.__facet__=!0,c.push(O),y.delete(b)}else if(g.has(b)){var w=g.get(b);p.push([v,w]);try{for(var M=(l=void 0,(0,i5.XA)(w)),_=M.next();!_.done;_=M.next()){var O=_.value;f.delete(O)}}catch(t){l={error:t}}finally{try{_&&!_.done&&(s=M.return)&&s.call(M)}finally{if(l)throw l.error}}g.delete(b)}else if(h.has(x)){var O=h.get(x);O.__toData__?O.__toData__.push(v):O.__toData__=[v],d.add(O),f.delete(O)}else u.push(v)}var k=[new e([],u,this._parent,this._document),new e(c,null,this._parent,this._document),new e(f,null,this._parent,this._document),new e([],p,this._parent,this._document),new e(d,null,this._parent,this._document)];return new e(this._elements,null,this._parent,this._document,k)},r.prototype.merge=function(t){var n=(0,i5.ev)((0,i5.ev)([],(0,i5.CR)(this._elements),!1),(0,i5.CR)(t._elements),!1),r=(0,i5.ev)((0,i5.ev)([],(0,i5.CR)(this._transitions),!1),(0,i5.CR)(t._transitions),!1);return new e(n,null,this._parent,this._document,void 0,r)},r.prototype.createElement=function(t){if(this._document)return this._document.createElement(t,{});var n=e.registry[t];return n?new n:function(t){throw Error(t)}("Unknown node type: ".concat(t))},r.prototype.join=function(t,e,n,r,i){void 0===t&&(t=function(t){return t}),void 0===e&&(e=function(t){return t}),void 0===n&&(n=function(t){return t.remove()}),void 0===r&&(r=function(t){return t}),void 0===i&&(i=function(t){return t.remove()});var a=t(this._enter),o=e(this._update),l=n(this._exit),s=r(this._merge),u=i(this._split);return o.merge(a).merge(l).merge(s).merge(u)},r.prototype.remove=function(){for(var t=this,n=0;n<this._elements.length;n++)!function(e){var n=t._elements[e],r=t._transitions[e];r?r.then(function(){return n.remove()}):n.remove()}(n);return new e([],null,this._parent,this._document,void 0,this._transitions)},r.prototype.each=function(t){for(var e=0;e<this._elements.length;e++){var n=this._elements[e],r=n.__data__;t.call(n,r,e)}return this},r.prototype.attr=function(t,e){var n="function"!=typeof e?function(){return e}:e;return this.each(function(r,i){void 0!==e&&(this[t]=n.call(this,r,i))})},r.prototype.style=function(t,e,n){void 0===n&&(n=!0);var r="function"==typeof e&&n?e:function(){return e};return this.each(function(n,i){void 0!==e&&(this.style[t]=r.call(this,n,i))})},r.prototype.styles=function(t,e){return void 0===t&&(t={}),void 0===e&&(e=!0),this.each(function(n,r){var i=this;Object.entries(t).forEach(function(t){var a=(0,i5.CR)(t,2),o=a[0],l=a[1],s="function"==typeof l&&e?l:function(){return l};void 0!==l&&i.attr(o,s.call(i,n,r))})})},r.prototype.update=function(t,e){void 0===e&&(e=!0);var n="function"==typeof t&&e?t:function(){return t};return this.each(function(e,r){t&&this.update&&this.update(n.call(this,e,r))})},r.prototype.maybeUpdate=function(t,e){void 0===e&&(e=!0);var n="function"==typeof t&&e?t:function(){return t};return this.each(function(e,r){t&&this.update&&this.update(n.call(this,e,r))})},r.prototype.transition=function(t){this._transitions;var e=Array(this._elements.length);return this.each(function(n,r){e[r]=t.call(this,n,r)}),this._transitions=au(e),this},r.prototype.on=function(t,e){return this.each(function(){this.addEventListener(t,e)}),this},r.prototype.call=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.call.apply(t,(0,i5.ev)([this._parent,this],(0,i5.CR)(e),!1)),this},r.prototype.node=function(){return this._elements[0]},r.prototype.nodes=function(){return this._elements},r.prototype.transitions=function(){return this._transitions.filter(function(t){return!!t})},r.prototype.parent=function(){return this._parent},e=r,t=new WeakSet,n=function(t,n){var r=this._elements[0],i=r.querySelector(t);if(i)return new e([i],null,this._parent,this._document);var a="string"==typeof n?this.createElement(n):n();return r.appendChild(a),new e([a],null,this._parent,this._document)},r.registry={g:tk.ZA,rect:tk.UL,circle:tk.Cd,path:tk.y$,text:ac,ellipse:tk.Pj,image:tk.Ee,line:tk.x1,polygon:tk.mg,polyline:tk.aH,html:tk.k9},r}();function ap(t){return new af([t],null,t,t.ownerDocument)}var ad=function(t,e){var n=function(t){return"".concat(e,"-").concat(t)},r=Object.fromEntries(Object.entries(t).map(function(t){var e=(0,i5.CR)(t,2),r=e[0],i=n(e[1]);return[r,{name:i,class:".".concat(i),id:"#".concat(i),toString:function(){return i}}]}));return Object.assign(r,{prefix:n}),r},ah={gridGroup:"grid-group",mainGroup:"main-group",lineGroup:"line-group",tickGroup:"tick-group",labelGroup:"label-group",titleGroup:"title-group",grid:"grid",line:"line",lineFirst:"line-first",lineSecond:"line-second",tick:"tick",tickItem:"tick-item",label:"label",labelItem:"label-item",title:"title"},ay={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new tk.y$({style:{d:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]};rO({},ay,{style:{type:"arc"}}),rO({},ay,{style:{}});var ag=ad({mainGroup:ah.mainGroup,gridGroup:ah.gridGroup,grid:ah.grid,lineGroup:ah.lineGroup,line:ah.line,tickGroup:ah.tickGroup,tick:ah.tick,tickItem:ah.tickItem,labelGroup:ah.labelGroup,label:ah.label,labelItem:ah.labelItem,titleGroup:ah.titleGroup,title:ah.title,lineFirst:ah.lineFirst,lineSecond:ah.lineSecond},"axis"),am=n(91531);function av(t,e){return[t[0]*e,t[1]*e]}function ab(t,e){return[t[0]+e[0],t[1]+e[1]]}function ax(t,e){return[t[0]-e[0],t[1]-e[1]]}function aO(t,e){return[Math.min(t[0],e[0]),Math.min(t[1],e[1])]}function aw(t,e){return[Math.max(t[0],e[0]),Math.max(t[1],e[1])]}function aM(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function a_(t){if(0===t[0]&&0===t[1])return[0,0];var e=Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2));return[t[0]/e,t[1]/e]}function ak(t){return t*Math.PI/180}function aj(t){return Number((180*t/Math.PI).toPrecision(5))}function aA(t){return t.toString().charAt(0).toUpperCase()+t.toString().slice(1)}function aE(t,e,n){void 0===n&&(n=!0);var r,i=e||(null===(r=t.match(/^([a-z][a-z0-9]+)/))||void 0===r?void 0:r[0])||"",a=t.replace(new RegExp("^(".concat(i,")")),"");return n?a.toString().charAt(0).toLowerCase()+a.toString().slice(1):a}var aS=function(t,e){if(!(null==t?void 0:t.startsWith(e)))return!1;var n=t[e.length];return n>="A"&&n<="Z"};function aP(t,e,n){void 0===n&&(n=!1);var r={};return Object.entries(t).forEach(function(t){var i=(0,i5.CR)(t,2),a=i[0],o=i[1];if("className"===a||"class"===a);else if(aS(a,"show")&&aS(aE(a,"show"),e)!==n)a==="".concat("show").concat(aA(e))?r[a]=o:r[a.replace(new RegExp(aA(e)),"")]=o;else if(!aS(a,"show")&&aS(a,e)!==n){var l=aE(a,e);"filter"===l&&"function"==typeof o||(r[l]=o)}}),r}function aC(t,e){return Object.entries(t).reduce(function(t,n){var r=(0,i5.CR)(n,2),i=r[0],a=r[1];return i.startsWith("show")?t["show".concat(e).concat(i.slice(4))]=a:t["".concat(e).concat(aA(i))]=a,t},{})}function aT(t,e){void 0===e&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],r={},i={};return Object.entries(t).forEach(function(t){var a=(0,i5.CR)(t,2),o=a[0],l=a[1];e.includes(o)||(-1!==n.indexOf(o)?i[o]=l:r[o]=l)}),[r,i]}function aR(t,e){return(0,am.Z)(t)?t.apply(void 0,(0,i5.ev)([],(0,i5.CR)(e),!1)):t}function aL(t,e){return t.style.opacity||(t.style.opacity=1),ae(t,{opacity:0}
1,e)}var aN=["$el","cx","cy","d","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWidthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function aI(t){var e={};for(var n in t)aN.includes(n)&&(e[n]=t[n]);return e}var aF=ad({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function aB(t){return t.reduce(function(t,e,n){return t.push((0,i5.ev)([0===n?"M":"L"],(0,i5.CR)(e),!1)),t},[])}function aD(t,e,n){return"surround"===e.type?function(t,e,n){var r=e.connect,i=e.center;if("line"===(void 0===r?"line":r))return aB(t);if(!i)return[];var a=aM(t[0],i),o=n?0:1;return t.reduce(function(t,e,n){return 0===n?t.push((0,i5.ev)(["M"],(0,i5.CR)(e),!1)):t.push((0,i5.ev)(["A",a,a,0,0,o],(0,i5.CR)(e),!1)),t},[])}(t,e,n):aB(t)}var az=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i5.ZT)(e,t),e.prototype.render=function(t,e){t.type,t.center,t.areaFill,t.closed;var n,r,i,a,o,l=(0,i5._T)(t,["type","center","areaFill","closed"]),s=(r=void 0===(n=t.data)?[]:n,t.closed?r.map(function(t){var e=t.points,n=(0,i5.CR)(e,1)[0];return(0,i5.pi)((0,i5.pi)({},t),{points:(0,i5.ev)((0,i5.ev)([],(0,i5.CR)(e),!1),[n],!1)})}):r),u=ap(e).maybeAppendByClassName(aF.lineGroup,"g"),c=ap(e).maybeAppendByClassName(aF.regionGroup,"g"),f=(i=t.animate,a=t.isBillboard,o=s.map(function(e,n){return{id:e.id||"grid-line-".concat(n),d:aD(e.points,t)}}),u.selectAll(aF.line.class).data(o,function(t){return t.id}).join(function(t){return t.append("path").each(function(t,e){var n=aR(aI((0,i5.pi)({d:t.d},l)),[t,e,o]);this.attr((0,i5.pi)({class:aF.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},n))})},function(t){return t.transition(function(t,e){return ae(this,aR(aI((0,i5.pi)({d:t.d},l)),[t,e,o]),i.update)})},function(t){return t.transition(function(){var t=this,e=aL(this,i.exit);return i9(e,function(){return t.remove()}),e})}).transitions()),p=function(t,e,n){var r=n.animate,i=n.connect,a=n.areaFill;if(e.length<2||!a||!i)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],l=[],s=0;s<e.length-1;s++){var u=(0,i5.CR)([e[s].points,e[s+1].points],2),c=function(t,e,n){var r=n.type,i=n.connect,a=n.center,o=n.closed?[["Z"]]:[],l=(0,i5.CR)([aD(t,n),aD(e.slice().reverse(),n,!0)],2),s=l[0],u=l[1],c=(0,i5.CR)([t[0],e.slice(-1)[0]],2),f=c[0],p=c[1],d=function(t,e){return[s,t,u,e,o].flat()};if("line"===i||"surround"===r)return d([(0,i5.ev)(["L"],(0,i5.CR)(p),!1)],[(0,i5.ev)(["L"],(0,i5.CR)(f),!1)]);if(!a)throw Error("Arc grid need to specified center");var h=(0,i5.CR)([aM(p,a),aM(f,a)],2),y=h[0],g=h[1];return d([(0,i5.ev)(["A",y,y,0,0,1],(0,i5.CR)(p),!1),(0,i5.ev)(["L"],(0,i5.CR)(p),!1)],[(0,i5.ev)(["A",g,g,0,0,0],(0,i5.CR)(f),!1),(0,i5.ev)(["L"],(0,i5.CR)(f),!1)])}(u[0],u[1],n);l.push({d:c,fill:o[s%o.length]})}return t.selectAll(aF.region.class).data(l,function(t,e){return e}).join(function(t){return t.append("path").each(function(t,e){var n=aR(t,[t,e,l]);this.attr(n)}).attr("className",aF.region.name)},function(t){return t.transition(function(t,e){return ae(this,aR(t,[t,e,l]),r.update)})},function(t){return t.transition(function(){var t=this,e=aL(this,r.exit);return i9(e,function(){return t.remove()}),e})}).transitions()}(c,s,t);return(0,i5.ev)((0,i5.ev)([],(0,i5.CR)(f),!1),(0,i5.CR)(p),!1)},e}(al);function a$(t){return"function"==typeof t?t():(0,tN.Z)(t)||(0,tR.Z)(t)?new ac({style:{text:String(t)}}):t}function aW(t,e,n){void 0===n&&(n=!1);var r=t.getBBox(),i=e/Math.max(r.width,r.height);return n&&(t.style.transform="scale(".concat(i,")")),i}function aZ(t,e){var n={},r=Array.isArray(e)?e:[e];for(var i in t)r.includes(i)||(n[i]=t[i]);return n}function aH(t,e){return Object.fromEntries(Object.entries(t).map(function(t){var n=(0,i5.CR)(t,2);return[n[0],aR(n[1],e)]}))}function aq(t,e){return e&&(0,am.Z)(e)?t.filter(e):t}function aG(t,e){var n=e.startAngle;return(e.endAngle-n)*t+n}function aY(t,e){if("linear"===e.type){var n=(0,i5.CR)(e.startPos,2),r=n[0],i=n[1],a=(0,i5.CR)(e.endPos,2),o=a[0],l=a[1],s=(0,i5.CR)([o-r,l-i],2);return a_([s[0],s[1]])}var u=ak(aG(t,e));return[-Math.sin(u),Math.cos(u)]}function aV(t,e,n){var r;return r=aY(t,n),"positive"!==e?[r[1],-r[0]]:[-r[1],r[0]]}function aU(t,e){return aV(t,e.labelDirection,e)}function aX(t,e,n){return n?"".concat(t," ").concat(n,"axis-").concat(e):t}function aK(t,e,n,r){return r&&t.attr("className",aX(e.name,n,r)),t}function aQ(t,e){var n,r,i,a,o,l,s,u,c,f,p,d;return"linear"===e.type?(r=(n=(0,i5.CR)(e.startPos,2))[0],i=n[1],o=(a=(0,i5.CR)(e.endPos,2))[0],l=a[1],s=(0,i5.CR)([o-r,l-i],2),[r+s[0]*t,i+s[1]*t]):(u=e.radiu
1s,f=(c=(0,i5.CR)(e.center,2))[0],p=c[1],[f+u*Math.cos(d=ak(aG(t,e))),p+u*Math.sin(d)])}function aJ(t){return 0===aY(0,t)[1]}function a0(t){return 0===aY(0,t)[0]}function a1(t,e,n,r,i){var a=e-t,o=(0,i5.CR)([i,i],2),l=o[0],s=o[1],u=(0,i5.CR)([ak(t),ak(e)],2),c=u[0],f=u[1],p=function(t){return[n+i*Math.cos(t),r+i*Math.sin(t)]},d=(0,i5.CR)(p(c),2),h=d[0],y=d[1],g=(0,i5.CR)(p(f),2),m=g[0],v=g[1];if(e-t==360){var b=(0,i5.CR)(p((f+c)/2),2);return[["M",h,y],["A",l,s,0,1,0,b[0],b[1]],["A",l,s,0,1,0,m,v]]}return"M".concat(h,",").concat(y,",A").concat(l,",").concat(s,",0,").concat(a>180?1:0,",").concat(t>e?0:1,",").concat(m,",").concat(v)}function a2(t){var e=(0,i5.CR)(t,2),n=(0,i5.CR)(e[0],2),r=n[0],i=n[1],a=(0,i5.CR)(e[1],2);return{x1:r,y1:i,x2:a[0],y2:a[1]}}function a5(t){var e=t.type,n=t.gridCenter;return"linear"===e?n:n||t.center}function a3(t,e,n,r,i){return void 0===r&&(r=!0),void 0===i&&(i=!1),!!r&&t===e||!!i&&t===n||t>e&&t<n}var a4=function(t){var e,n=new DOMParser().parseFromString(t,"text/html").body.firstElementChild;if(console.log(null==n?void 0:n.getClientRects(),11),!n)return 0;var r=Object.fromEntries((n.getAttribute("style")||"").split(";").map(function(t){return t.trim()}).filter(function(t){return t.includes(":")}).map(function(t){var e=(0,i5.CR)(t.split(":").map(function(t){return t.trim()}),2),n=e[0],r=e[1];return[n.toLowerCase(),r]})),i=function(t){if(!t)return 0;var e=t.match(/([\d.]+)px/);return e?parseFloat(e[1]):0};if(r.height)return i(r.height);var a=i(r["font-size"])||16,o=r["line-height"];e=o&&"normal"!==o?o.endsWith("px")?i(o):/^[\d.]+$/.test(o)?parseFloat(o)*a:a:1.2*a;var l=i(r["padding-top"]),s=i(r["padding-bottom"]);if(r.padding){var u=r.padding.split(/\s+/).map(i);1===u.length?(l=u[0],s=u[0]):2===u.length?(l=u[0],s=u[0]):3===u.length?(l=u[0],s=u[2]):4===u.length&&(l=u[0],s=u[2])}var c=i(r["border-top-width"]),f=i(r["border-bottom-width"]);if(r.border){var p=r.border.match(/([\d.]+)px/);p&&(c=parseFloat(p[1]),f=parseFloat(p[1]))}if(r["border-width"]){var u=r["border-width"].split(/\s+/).map(i);1===u.length?(c=u[0],f=u[0]):2===u.length?(c=u[0],f=u[0]):3===u.length?(c=u[0],f=u[2]):4===u.length&&(c=u[0],f=u[2])}return e+l+s+c+f},a6=new Map,a8=(v0=function(t,e){var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,a=e.fontStyle,o=e.fontVariant;return be?be(t,n):(bt||(bt=tk.GZ.offscreenCanvasCreator.getOrCreateContext(void 0)),bt.font=[a,o,i,"".concat(n,"px"),r].join(" "),bt.measureText(t).width)},v1=function(t,e){return[t,Object.values(e||a9(t)).join()].join("")},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=v1?v1.apply(this,t):t[0];a6.has(v0)||a6.set(v0,function(t){var e,n,r;function i(t,i){++e>4096&&(r=n,a(1),++e),n[t]=i}function a(t){e=0,n=Object.create(null),t||(r=Object.create(null))}return a(),{clear:a,has:function(t){return void 0!==n[t]||void 0!==r[t]},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(i(t,e),e):void 0},set:function(t,e){void 0!==n[t]?n[t]=e:i(t,e)}}}(0));var r=a6.get(v0);if(r.has(n))return r.get(n);var i=v0.apply(this,t);return r.set(n,i),i}),a9=function(t){var e=t.style.fontFamily||"sans-serif",n=t.style.fontWeight||"normal",r=t.style.fontStyle||"normal",i=t.style.fontVariant,a=t.style.fontSize;return{fontSize:a="object"==typeof a?a.value:a,fontFamily:e,fontWeight:n,fontStyle:r,fontVariant:i}};function a7(t){return"text"===t.nodeName?t:"g"===t.nodeName&&1===t.children.length&&"text"===t.children[0].nodeName?t.children[0]:null}function ot(t,e){var n=a7(t);n&&n.attr(e)}function oe(t,e,n){void 0===n&&(n="..."),ot(t,{wordWrap:!0,wordWrapWidth:e,maxLines:1,textOverflow:n})}function on(t,e){if(e)try{var n=e.replace(/translate\(([+-]*[\d]+[%]*),[ ]*([+-]*[\d]+[%]*)\)/g,function(e,n,r){var i,a,o,l;return"translate(".concat((a=(i=t.getBBox()).width,o=i.height,[(l=(0,i5.CR)([n,r].map(function(t,e){var n;return t.includes("%")?parseFloat((null===(n=t.match(/[+-]?([0-9]*[.])?[0-9]+/))||void 0===n?void 0:n[0])||"0")/100*(0===e?a:o):t}),2))[0],l[1]]),")")});t.attr("transform",n)}catch(t){}}function or(t){if((0,tR.Z)(t))return[t,t,t,t];if((0,rm.Z)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}var oi=function(){function t(t,e,n,r){this.set(t,e,n,r)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x1}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),t.prototype.rotatedPoints=function(t,e,n){var r=this.x1,i=this.y1,a=this.x2,o=this.y2,l=Math.cos(t),s=Math.sin(t),u=e-e*l+n*s,c=n-e*s-n*l;return[[l*r-s*o+u,s*r+l*o+c],[l*a-s*o+u,s*a+l*o+c],[l*r-s*i+u,s*r+l*i+c],[l*a-s*i+u,s*a+l*i+c]]},t.prototype.set=function(t,e,n,r){return n<t?(this.x2=t,this.x1=n):(this.x1=t,this.x2=n),r<e?(this.y2=e,this.y1=r):(this.y1=e,this.y2=r),this},t.prototype.defined=function(t){return this[t]!==Number.MAX_VALUE&&this[t]!==-Number.MAX_VALUE},t}();function oa(t,e){var n=t.getEulerAngles()||0;t.setEulerAngles(0);var r=t.getBounds(),i=(0,i5.CR)(r.min,2),a=i[0],o=i[1],l=(0,i5.CR)(r.max,2),s=l[0],u=l[1],c=t.getBBox(),f=c.width,p=c.height,d=0,h=0,y=a,g=o,m=a7(t);if(m){p-=1.5;var v=m.style.textAlign,b=m.style.textBaseline;"center"===v?y=(a+s)/2:("right"===v||"end"===v)&&(y=s),"middle"===b?g=(o+u)/2:"bottom"===b&&(g=u)}var x=(0,i5.CR)(or(e),4),O=x[0],w=void 0===O?0:O,M=x[1],_=void 0===M?0:M,k=x[2],j=x[3],A=new oi((d+=a)-(void 0===j?_:j),(h+=o)-w,d+f+_,h+p+(void 0===k?w:k));return t.setEulerAngles(n),A.rotatedPoints(ak(n),y,g)}function oo(t,e){return e[0]<=Math.max(t[0][0],t[1][0])&&e[0]<=Math.min(t[0][0],t[1][0])&&e[1]<=Math.max(t[0][1],t[1][1])&&e[1]<=Math.min(t[0][1],t[1][1])}function ol(t,e,n){var r=(e[1]-t[1])*(n[0]-e[0])-(e[0]-t[0])*(n[1]-e[1]);return 0===r?0:r<0?2:1}function os(t,e,n){var r,i,a=e.crossPadding,o=new Set,l=null,s=function(t,e){var n=t.type,r=t.labelDirection,i=t.crossSize;if(!i)return!1;if("arc"===n){var a=t.center,o=t.radius,l=(0,i5.CR)(a,2),s=l[0],u=l[1],c="negative"===r?0:i,f=-o-c,p=o+c,d=(0,i5.CR)(or(e),4),h=d[0],y=d[1],g=d[2];return new oi(s+f-d[3],u+f-h,s+p+y,u+p+g)}var m=(0,i5.CR)(t.startPos,2),v=m[0],b=m[1],x=(0,i5.CR)(t.endPos,2),O=x[0],w=x[1],M=(0,i5.CR)(a0(t)?[-e,0,e,0]:[0,e,0,-e],4),_=M[0],k=M[1],j=M[2],A=M[3],E=av(aU(0,t),i),S=new oi(v,b,O,w);return S.x1+=A,S.y1+=_,S.x2+=k+E[0],S.y2+=j+E[1],S}(e,a);try{for(var u=(0,i5.XA)(t),c=u.next();!c.done;c=u.next()){var f,p=c.value;!function(t){if(s){var e,n,r,i,a,o;return e=s.x1,n=s.x2,r=s.y1,i=s.y2,a=oa(t,void 0),o=[[e,r],[n,r],[n,i],[e,i]],a.every(function(t){return function(t,e){var n=t.length;if(n<3)return!1;var r=[e,[9999,e[1]]],i=0,a=0;do{var o=[t[a],t[(a+1)%n]];if(function(t,e){var n=ol(t[0],t[1],e[0]),r=ol(t[0],t[1],e[1]),i=ol(e[0],e[1],t[0]),a=ol(e[0],e[1],t[1]);return!!(n!==r&&i!==a||0===n&&oo(t,e[0])||0===r&&oo(t,e[1])||0===i&&oo(e,t[0])||0===a&&oo(e,t[1]))}(o,r)){if(0===ol(o[0],e,o[1]))return oo(o,e);i++}a=(a+1)%n}while(0!==a);return!!(1&i)}(o,t)})}return!0}(p)?o.add(p):l&&((f=l)&&f.firstChild?function(t,e,n){var r,i,a=oa(t,n).flat(1),o=oa(e,n).flat(1),l=[[a[0],a[1],a[2],a[3]],[a[0],a[1],a[4],a[5]],[a[4],a[5],a[6],a[7]],[a[2],a[3],a[6],a[7]]];try{for(var s=(0,i5.XA)(l),u=s.next();!u.done;u=s.next()){var c=u.value;if(function(t,e){return[[t[0],t[1],t[2],t[3]],[t[2],t[3],t[4],t[5]],[t[4],t[5],t[6],t[7]],[t[6],t[7],t[0],t[1]]].some(function(t){return function(t,e){var n=(0,i5.CR)(t,4),r=n[0],i=n[1],a=n[2],o=n[3],l=(0,i5.CR)(e,4),s=l[0],u=l[1],c=l[2],f=l[3],p=a-r,d=o-i,h=c-s,y=f-u,g=p*y-h*d;if(0===g)return!1;var m=g>0,v=r-s,b=i-u,x=p*b-d*v;if(x<0===m)return!1;var O=h*b-y*v;return O<0!==m&&x>g!==m&&O>g!==m}(e,t)})}(o,c))return!0}}catch(t){r={error:t}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return!1}(f.firstChild,p.firstChild,or(n)):0)?(o.add(l),o.add(p)):l=p}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return Array.from(o)}function ou(t,e){return(void 0===e&&(e={}),(0,tL.Z)(t))?0:"number"==typeof t?t:Math.floor(a8(t,e))}var oc=function(t){return void 0!==t&&null!=t&&!Number.isNaN(t)};function of(t){var e=t.getLocalBounds(),n=e.min,r=e.max,i=(0,i5.CR)([n,r],2),a=(0,i5.CR)(i[0],2),o=a[0],l=a[1],s=(0,i5.CR)(i[1],2),u=s[0],c=s[1];return{x:o,y:l,width:u-o,height:c-l,left:o,bottom:c,top:l,right:u}}function op(t,e){var n=(0,i5.CR)(t,2),r=n[0],i=n[1],a=(0,i5.CR)(e,2),o=a[0],l=a[1];return r!==o&&i===l}var od={parity:function(t,e){var n=e.seq,r=void 0===n?2:n;return t.filter(function(t,e){return!(e%r)||(i4(t),!1)})}},oh=new Map([["hide",function(t,e,n,r){var i,a,o=t.length,l=e.keepHeader,s=e.keepTail;if(!(o<=1)&&(2!==o||!l||!s)){var u=od.parity,c=function(t){return t.forEach(r.
1show),t},f=2,p=t.slice(),d=t.slice(),h=Math.min.apply(Math,(0,i5.ev)([1],(0,i5.CR)(t.map(function(t){return t.getBBox().width})),!1));if("linear"===n.type&&(aJ(n)||a0(n))){var y=of(t[0]).left,g=Math.abs(of(t[o-1]).right-y)||1;f=Math.max(Math.floor(o*h/g),f)}for(l&&(i=p.splice(0,1)[0]),s&&(a=p.splice(-1,1)[0],p.reverse()),c(p);f<t.length&&os((a?(0,i5.ev)((0,i5.ev)([a],(0,i5.CR)(d),!1),[i],!1):(0,i5.ev)([i],(0,i5.CR)(d),!1)).filter(oc),n,null==e?void 0:e.margin).length;){if(a&&!i&&f%2==0){var m=p.splice(0,1);m.forEach(r.hide)}else if(a&&i){var m=p.splice(0,1);m.forEach(r.hide)}d=u(c(p),{seq:f}),f++}}}],["rotate",function(t,e,n,r){var i,a,o=e.optionalAngles,l=e.margin,s=e.recoverWhenFailed,u=t.map(function(t){return t.getLocalEulerAngles()}),c=function(e){return t.forEach(function(t,n){var i=Array.isArray(e)?e[n]:e;r.rotate(t,+i)})};try{for(var f=(0,i5.XA)(void 0===o?[0,45,90]:o),p=f.next();!p.done;p=f.next()){var d=p.value;if(c(d),os(t,n,l).length<1)return}}catch(t){i={error:t}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}(void 0===s||s)&&c(u)}],["ellipsis",function(t,e,n,r){if(!(t.length<=0)){var i=e.suffix,a=void 0===i?"...":i,o=e.minLength,l=e.maxLength,s=void 0===l?1/0:l,u=e.step,c=e.margin,f=void 0===c?[0,0,0,0]:c,p=a9(r.getTextShape(t[0])),d=ou(void 0===u?" ":u,p),h=o?ou(o,p):d,y=ou(s,p);((0,tL.Z)(y)||y===1/0)&&(y=Math.max.apply(null,t.map(function(t){return t.getBBox().width})));var g=t.slice(),m=(0,i5.CR)(f,4);m[0],m[1],m[2],m[3];for(var v=function(e){if(g.forEach(function(t){r.ellipsis(r.getTextShape(t),e,a)}),(g=os(t,n,f)).length<1)return{value:void 0}},b=y;b>h+d;b-=d){var x=v(b);if("object"==typeof x)return x.value}}}],["wrap",function(t,e,n,r,i){var a,o,l,s=e.maxLines,u=void 0===s?3:s,c=e.recoverWhenFailed,f=e.margin,p=void 0===f?[0,0,0,0]:f,d=aR(null!==(l=e.wordWrapWidth)&&void 0!==l?l:50,[i]),h=t.map(function(t){return t.attr("maxLines")||1}),y=Math.min.apply(Math,(0,i5.ev)([],(0,i5.CR)(h),!1)),g=function(){return os(t,n,p).length<1},m=(a=n.type,o=n.labelDirection,"linear"===a&&aJ(n)?"negative"===o?"bottom":"top":"middle"),v=function(e){return t.forEach(function(t,n){var i=Array.isArray(e)?e[n]:e;r.wrap(t,d,i,m)})};if(!(y>u)){if("linear"===n.type&&aJ(n)){if(v(u),g())return}else for(var b=y;b<=u;b++)if(v(b),g())return;(void 0===c||c)&&v(h)}}]]);function oy(t){for(var e=t;e<0;)e+=360;return Math.round(e%360)}function og(t,e){var n=(0,i5.CR)(t,2),r=n[0],i=n[1],a=(0,i5.CR)(e,2),o=a[0],l=a[1],s=(0,i5.CR)([r*o+i*l,r*l-i*o],2),u=s[0];return Math.atan2(s[1],u)}function om(t,e,n){var r=n.type,i=n.labelAlign,a=aU(t,n),o=oy(e),l=oy(aj(og([1,0],a))),s="center",u="middle";return"linear"===r?[90,270].includes(l)&&0===o?(s="center",u=1===a[1]?"top":"bottom"):!(l%180)&&[90,270].includes(o)?s="center":0===l?a3(o,0,90,!1,!0)?s="start":(a3(o,0,90)||a3(o,270,360))&&(s="start"):90===l?a3(o,0,90,!1,!0)?s="start":(a3(o,90,180)||a3(o,270,360))&&(s="end"):270===l?a3(o,0,90,!1,!0)?s="end":(a3(o,90,180)||a3(o,270,360))&&(s="start"):180===l&&(90===o?s="start":(a3(o,0,90)||a3(o,270,360))&&(s="end")):"parallel"===i?u=a3(l,0,180,!0)?"top":"bottom":"horizontal"===i?a3(l,90,270,!1)?s="end":(a3(l,270,360,!1)||a3(l,0,90))&&(s="start"):"perpendicular"===i&&(s=a3(l,90,270)?"end":"start"),{textAlign:s,textBaseline:u}}function ov(t,e,n){var r=n.showTick,i=n.tickLength,a=n.tickDirection,o=n.labelDirection,l=n.labelSpacing,s=e.indexOf(t),u=aR(l,[t,s,e]),c=(0,i5.CR)([aU(t.value,n),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(function(t,e){return t*("positive"===e?-1:1)},1)}(o,a)],2),f=c[0],p=1===c[1]?aR(r?i:0,[t,s,e]):0,d=(0,i5.CR)(ab(av(f,u+p),aQ(t.value,n)),2);return{x:d[0],y:d[1]}}var ob={html:["fill"],text:[]};function ox(t,e){["text","html"].includes(t.nodeName)&&t.attr(aZ(e,ob[t.nodeName]))}function oO(t,e){var n,r,i,a;n=this.node().childNodes,r={hide:i4,show:i3,rotate:function(e,n){!function(t,e,n){e.setLocalEulerAngles(t);var r=om(e.__data__.value,t,n),i=e.querySelector(ag.labelItem.class);i&&ox(i,r)}(+n,e,t)},ellipsis:function(t,e,n){t&&oe(t,e||1/0,n)},wrap:function(t,e,n){var r,i;t&&(void 0===(r=n)&&(r=2),void 0===i&&(i="top"),ot(t,{wordWrap:!0,wordWrapWidth:e,maxLines:r,textBaseline:i}))},getTextShape:function(t){return t.querySelector(ag.labelItem.class)}},(a=void 0===(i=t.labelOverlap)?[]:i).length&&a.forEach(function(i){var a=i.t
1ype,o=oh.get(a);t.labelOverlap.length<1||("hide"===a?function(t){for(var e=t;e;){if("offscreen"===e.className)return!0;e=e.parent}return!1}(n[0]):"rotate"===a?n.some(function(t){var e;return!!(null===(e=t.attr("transform"))||void 0===e?void 0:e.includes("rotate"))}):("ellipsis"===a||"wrap"===a)&&!(n.filter(function(t){return t.querySelector("text")}).length>=1))||null==o||o(n,i,t,r,e)})}function ow(t,e,n,r,i){var a,o,l,s,u,c=n.indexOf(e),f=i.labelRender,p=i.classNamePrefix,d=ap(t).append(f?(a=i.labelRender,o=(rl(i,"endPos.0",400)-rl(i,"startPos.0",0))/n.length,s=a4(l=(0,am.Z)(a)?aR(a,[e,c,n,aU(e.value,i)]):e.label||"")||30,function(){var t;return t={width:o,height:s},"function"==typeof l?l():(0,tN.Z)(l)||(0,tR.Z)(l)?new tk.k9({style:(0,i5.pi)((0,i5.pi)({pointerEvents:"auto"},t),{innerHTML:l})}):l}):(u=i.labelFormatter,(0,am.Z)(u)?function(){return a$(aR(u,[e,c,n,aU(e.value,i)]))}:function(){return a$(e.label||"")})).attr("className",ag.labelItem.name).node();aK(ap(d),ag.labelItem,ah.labelItem,p);var h=(0,i5.CR)(aT(aH(r,[e,c,n])),2),y=h[0],g=h[1],m=g.transform,v=(0,i5._T)(g,["transform"]);on(d,m);var b=function(t,e,n){var r,i,a=n.labelAlign;if(null===(i=e.style.transform)||void 0===i?void 0:i.includes("rotate"))return e.getLocalEulerAngles();var o=0,l=aU(t.value,n),s=aY(t.value,n);return"horizontal"===a?0:(a3(r=(aj(o="perpendicular"===a?og([1,0],l):og([s[0]<0?-1:1,0],s))+360)%180,-90,90)||(r+=180),r)}(e,d,i);if(d.getLocalEulerAngles()||d.setLocalEulerAngles(b),ox(d,(0,i5.pi)((0,i5.pi)({},om(e.value,b,i)),y)),"html"===d.nodeName){var x=d.getBBox(),O=d.style.x||0;d.attr("x",O-x.width/2)}return t.attr(v),d}function oM(t,e){return aV(t,e.tickDirection,e)}function o_(t,e,n,r,i,a){var o,l,s,u,c,f,p,d,h,y,g,m,v,b,x,O,w,M,_,k,j,A,E,S=(o=ap(this),l=r.tickFormatter,s=r.classNamePrefix,u=oM(t.value,r),c="line",(0,am.Z)(l)&&(c=function(){return aR(l,[t,e,n,u])}),aK(f=o.append(c).attr("className",ag.tickItem.name),ag.tickItem,ah.tickItem,s),f);p=oM(t.value,r),w=(d=r.tickLength,g=(0,i5.CR)((h=aR(d,[t,e,n]),[[0,0],[(y=(0,i5.CR)(p,2))[0]*h,y[1]*h]]),2),v=(m=(0,i5.CR)(g[0],2))[0],b=m[1],O={x1:v,x2:(x=(0,i5.CR)(g[1],2))[0],y1:b,y2:x[1]}).x1,M=O.x2,_=O.y1,k=O.y2,A=(j=(0,i5.CR)(aT(aH(i,[t,e,n,p])),2))[0],E=j[1],"line"===S.node().nodeName&&S.styles((0,i5.pi)({x1:w,x2:M,y1:_,y2:k},A)),this.attr(E),S.styles(A);var P=(0,i5.CR)(aQ(t.value,r),2),C=P[0],T=P[1];return ae(this,{transform:"translate(".concat(C,", ").concat(T,")")},a)}function ok(t){return/\S+-\S+/g.test(t)?t.split("-").map(function(t){return t[0]}):t.length>2?[t[0]]:t.split("")}function oj(t,e,n,r,i){var a=aP(r,"title"),o=(0,i5.CR)(aT(a),2),l=o[0],s=o[1],u=s.transform,c=s.transformOrigin,f=(0,i5._T)(s,["transform","transformOrigin"]);e.styles(f);var p=u||function(t,e,n){var r=2*t.getGeometryBounds().halfExtents[1];if("vertical"===e){if("left"===n)return"rotate(-90) translate(0, ".concat(r/2,")");if("right"===n)return"rotate(-90) translate(0, -".concat(r/2,")")}return""}(t.node(),l.direction,l.position);t.styles((0,i5.pi)((0,i5.pi)({},l),{transformOrigin:c})),on(t.node(),p);var d=function(t,e,n){var r=n.titlePosition,i=void 0===r?"lb":r,a=n.titleSpacing,o=ok(i),l=t.node().getLocalBounds(),s=(0,i5.CR)(l.min,2),u=s[0],c=s[1],f=(0,i5.CR)(l.halfExtents,2),p=f[0],d=f[1],h=(0,i5.CR)(e.node().getLocalBounds().halfExtents,2),y=h[0],g=h[1],m=(0,i5.CR)([u+p,c+d],2),v=m[0],b=m[1],x=(0,i5.CR)(or(a),4),O=x[0],w=x[1],M=x[2],_=x[3];if(["start","end"].includes(i)&&"linear"===n.type){var k=n.startPos,j=n.endPos,A=(0,i5.CR)("start"===i?[k,j]:[j,k],2),E=A[0],S=A[1],P=a_([-S[0]+E[0],-S[1]+E[1]]),C=(0,i5.CR)(av(P,O),2),T=C[0],R=C[1];return{x:E[0]+T,y:E[1]+R}}return o.includes("t")&&(b-=d+g+O),o.includes("r")&&(v+=p+y+w),o.includes("l")&&(v-=p+y+_),o.includes("b")&&(b+=d+g+M),{x:v,y:b}}(ap(n._offscreen||n.querySelector(ag.mainGroup.class)),e,r),h=d.x,y=d.y;return ae(e.node(),{transform:"translate(".concat(h,", ").concat(y,")")},i)}function oA(t,e,n,r){var i=t.showLine,a=t.showTick,o=t.showLabel,l=t.classNamePrefix,s=e.maybeAppendByClassName(ag.lineGroup,"g");aK(s,ag.lineGroup,ah.lineGroup,l);var u=as(i,s,function(e){var n,i,a,o,l,s,u,c,f,p,d,h;return n=e,i=t,a=r,d=i.type,h=aP(i,"line"),"linear"===d?p=function(t,e,n,r){var i,a,o,l,s,u,c,f,p,d,h,y,g,m,v,b,x,O,w=e.showTrunc,M=e.startPos,_=e.endPos,k=e.truncRange,j=e.lineExtension,A=e.classNamePrefix,E=(0,i5.CR)([M,_],2),S=(0,i5.CR)(E[0],2),P=S[0],C=S[1],T=(0,i5.CR)(E[1],2),R=T[0],L=T[1],N=(0,i5.CR)(j?(void 0===(i=j)&&(i=[0,0]),a=(0,i5.CR)([M,_,i],3),l=(o=(0,i5.CR)(a[0],2))[0],s=o[1],c=(u=(0,i5.CR)(a[1],2))[0],f=u[1],d=(p=(0,i5.CR)(a[2],2))[0],h=p[1],v=Math.sqrt(Math.pow(g=(y=(0,i5.CR)([c-l,f-s],2))[0],2)+Math.pow(m=y[1],2)),[(x=(b=(0,i5.CR)([-d/v,h/v],2))[0])*g,x*m,(O=b[1])*g,O*m]):[,,,,].fill(0),4),I=N[0],F=N[1],B=N[2],D=N[3],z=function(e){return t.selectAll(ag.line.class).data(e,function(t,e){return e}).join(function(t){var e=t.append("line").styles(n).transition(function(t){return ae(this,a2(t.line),!1)});return e.attr("className",function(t){if(!A)return"".concat(ag.line.name," ").concat(t.className);var e=aX(ag.line.name,ah.line,A);if(t.className===ag.lineFirst.name){var n=aX(ag.lineFirst.name,ah.lineFirst,A);return"".concat(e," ").concat(n)}if(t.className===ag.lineSecond.name){var n=aX(ag.lineSecond.name,ah.lineSecond,A);return"".concat(e," ").concat(n)}return e}),e},function(t){return t.styles(n).transition(function(t){return ae(this,a2(t.line),r.update)})},function(t){return t.remove()}).transitions()};if(!w||!k)return z([{line:[[P+I,C+F],[R+B,L+D]],className:ag.line.name}]);var $=(0,i5.CR)(k,2),W=$[0],Z=$[1],H=R-P,q=L-C,G=(0,i5.CR)([P+H*W,C+q*W],2),Y=G[0],V=G[1],U=(0,i5.CR)([P+H*Z,C+q*Z],2),X=U[0],K=U[1],Q=z([{line:[[P+I,C+F],[Y,V]],className:ag.lineFirst.name},{line:[[X,K],[R+B,L+D]],className:ag.lineSecond.name}]);return e.truncRange,e.truncShape,e.lineExtension,Q}(n,i,aZ(h,"arrow"),a):(o=aZ(h,"arrow"),l=i.startAngle,s=i.endAngle,u=i.center,c=i.radius,f=i.classNamePrefix,p=n.selectAll(ag.line.class).data([{d:a1.apply(void 0,(0,i5.ev)((0,i5.ev)([l,s],(0,i5.CR)(u),!1),[c],!1))}],function(t,e){return e}).join(function(t){var e=t.append("path").attr("className",ag.line.name).styles(i).styles({d:function(t){return t.d}});return aK(e,ag.line,ah.line,f),e},function(t){return t.transition(function(){var t,e,n,r,i,o=this,f=function(t,e,n,r){if(!r)return t.attr("__keyframe_data__",n),null;var i=r.duration,a=function t(e,n){var r,i,a,o,l,s;return"number"==typeof e&&"number"==typeof n?function(t){return e*(1-t)+n*t}:Array.isArray(e)&&Array.isArray(n)?(r=n?n.length:0,i=e?Math.min(r,e.length):0,function(a){var o=Array(i),l=Array(r),s=0;for(s=0;s<i;++s)o[s]=t(e[s],n[s]);for(;s<r;++s)l[s]=n[s];for(s=0;s<i;++s)l[s]=o[s](a);return l}):"object"==typeof e&&"object"==typeof n?(void 0===(a=e)&&(a={}),void 0===(o=n)&&(o={}),l={},s={}
1,Object.entries(o).forEach(function(e){var n=(0,i5.CR)(e,2),r=n[0],i=n[1];r in a?l[r]=t(a[r],i):s[r]=i}),function(t){return Object.entries(l).forEach(function(e){var n=(0,i5.CR)(e,2),r=n[0],i=n[1];return s[r]=i(t)}),s}):function(t){return e}}(e,n),o=Array(Math.ceil(+(void 0===i?0:i)/16)).fill(0).map(function(t,e,n){return{__keyframe_data__:a(e/(n.length-1))}});return t.animate(o,(0,i5.pi)({fill:"both"},r))}(this,(e=(t=this.attributes).startAngle,n=t.endAngle,r=t.center,i=t.radius,(0,i5.ev)((0,i5.ev)([e,n],(0,i5.CR)(r),!1),[i],!1)),(0,i5.ev)((0,i5.ev)([l,s],(0,i5.CR)(u),!1),[c],!1),a.update);if(f){var p=function(){var t=rl(o.attributes,"__keyframe_data__");o.style.d=a1.apply(void 0,(0,i5.ev)([],(0,i5.CR)(t),!1))};f.onframe=p,f.onfinish=p}return f}).styles(i)},function(t){return t.remove()}).styles(o).transitions()),!function(t,e,n,r){var i,a,o=n.showArrow,l=n.showTrunc,s=n.lineArrow,u=n.lineArrowOffset,c=n.lineArrowSize;if(a="arc"===e?t.select(ag.line.class):l?t.select(ag.lineSecond.class):t.select(ag.line.class),!o||!s||"arc"===n.type&&(i=n.startAngle,n.endAngle-i==360)){var f=a.node();f&&(f.style.markerEnd=void 0);return}var p=a$(s);p.attr(r),aW(p,c,!0),a.style("markerEnd",p).style("markerEndOffset",-u)}(n,d,i,h),p})||[],c=e.maybeAppendByClassName(ag.tickGroup,"g");aK(c,ag.tickGroup,ah.tickGroup,l);var f=as(a,c,function(e){var i,a,o;return i=t.classNamePrefix,a=aq(n,t.tickFilter),o=aP(t,"tick"),e.selectAll(ag.tick.class).data(a,function(t){return t.id||t.label}).join(function(e){var n=e.append("g").attr("className",ag.tick.name).transition(function(e,n){return o_.call(this,e,n,a,t,o,!1)});return aK(n,ag.tick,ah.tick,i),n},function(e){return e.transition(function(e,n){return this.removeChildren(),o_.call(this,e,n,a,t,o,r.update)})},function(t){return t.transition(function(){var t=this,e=aL(this.childNodes[0],r.exit);return i9(e,function(){return t.remove()}),e})}).transitions()})||[],p=e.maybeAppendByClassName(ag.labelGroup,"g");aK(p,ag.labelGroup,ah.labelGroup,l);var d=as(o,p,function(i){var a,o,l,s,u,c,f,p;return a=e.node(),l=t.classNamePrefix,s=aq(n,t.labelFilter),u=aP(t,"label"),f=c=i.selectAll(ag.label.class).data(s,function(t,e){return e}).join(function(e){var r=e.append("g").attr("className",ag.label.name).transition(function(e){ow(this,e,n,u,t);var r=ov(e,n,t),i=r.x,a=r.y;return this.style.transform="translate(".concat(i,", ").concat(a,")"),null});return aK(r,ag.label,ah.label,l),r},function(e){return e.transition(function(e){var i=function(t,e,n,r){if(void 0===r&&(r="destroy"),"text"===t.nodeName&&"text"===e.nodeName&&t.attributes.text===e.attributes.text)return t.remove(),[null];var i=function(){"destroy"===r?t.destroy():"hide"===r&&i4(t),e.isVisible()&&i3(e)};if(!n)return i(),[null];var a=n.duration,o=void 0===a?0:a,l=n.delay,s=void 0===l?0:l,u=Math.ceil(+o/2),c=+o/4,f=(0,i5.CR)(t.getGeometryBounds().center,2),p=f[0],d=f[1],h=(0,i5.CR)(e.getGeometryBounds().center,2),y=h[0],g=h[1],m=(0,i5.CR)([(p+y)/2-p,(d+g)/2-d],2),v=m[0],b=m[1],x=t.style.opacity,O=e.style.opacity,w=t.style.transform||"",M=e.style.transform||"",_=t.animate([{opacity:void 0===x?1:x,transform:"translate(0, 0) ".concat(w)},{opacity:0,transform:"translate(".concat(v,", ").concat(b,") ").concat(w)}],(0,i5.pi)((0,i5.pi)({fill:"both"},n),{duration:s+u+c})),k=e.animate([{opacity:0,transform:"translate(".concat(-v,", ").concat(-b,") ").concat(M),offset:.01},{opacity:void 0===O?1:O,transform:"translate(0, 0) ".concat(M)}],(0,i5.pi)((0,i5.pi)({fill:"both"},n),{duration:u+c,delay:s+u-c}));return i9(k,i),[_,k]}(this.querySelector(ag.labelItem.class),ow(this,e,n,u,t),r.update),a=ov(e,n,t),o=a.x,l=a.y,s=ae(this,{transform:"translate(".concat(o,", ").concat(l,")")},r.update);return(0,i5.ev)((0,i5.ev)([],(0,i5.CR)(i),!1),[s],!1)})},function(t){return o=t,t.transition(function(){var t=this,e=aL(this.childNodes[0],r.exit);return i9(e,function(){return ap(t).remove()}),e}),o}).transitions(),p=function(){oO.call(i,t,a)},0===f.length?p():Promise.all(f.map(function(t){return null==t?void 0:t.finished})).then(p),c})||[];return(0,i5.ev)((0,i5.ev)((0,i5.ev)([],(0,i5.CR)(u),!1),(0,i5.CR)(f),!1),(0,i5.CR)(d),!1).filter(function(t){return!!t})}var oE=function(t){function e(e){return t.call(this,e,ay)||this}return(0,i5.ZT)(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.titleText,a=t.data,o=t.animate,l=t.showTitle,s=t.showGrid,u=t.dataThreshold,c=t.truncRange,f=t.classNamePrefix,p=e.className||"axis";f?e.attr("className","".concat(p," ").concat(f,"axis")):e.className||e.attr("className","axis");var d=(function(t,e){if(t.length<=e)return t;for(var n=Math.floor(t.length/e),r=[],i=0;i<t.length;i+=n)r.push(t[i]);return r})(a,u).filter(function(t){var e=t.value;return!c||!(e>c[0])||!(e<c[1])}),h=i8(void 0===n?o:n),y=ap(e).maybeAppendByClassName(ag.gridGroup,"g");aK(y,ag.gridGroup,ah.gridGroup,f);var g=as(s,y,function(e){var n,r,i,a,o,l,s,u,c;return n=t.classNamePrefix,i=(r=aP(t,"grid")).type,a=r.areaFill,o=a5(t),l=aq(d,t.gridFilter),u="segment"===i?(s=t.gridLength,l.map(function(e,n){var r=e.value,i=(0,i5.CR)(aQ(r,t),2),a=i[0],o=i[1],l=(0,i5.CR)(av(aV(r,t.gridDirection,t),s),2);return{id:n,points:[[a,o],[a+l[0],o+l[1]]]}})):function(t,e){var n=e.gridControlAngles,r=a5(e);if(!r)throw Error("grid center is not provide");if(t.length<2)throw Error("Invalid grid data");
1if(!n||0===n.length)throw Error("Invalid gridControlAngles");var i=(0,i5.CR)(r,2),a=i[0],o=i[1];return t.map(function(t,r){var i=t.value,l=(0,i5.CR)(aQ(i,e),2),s=l[0],u=l[1],c=(0,i5.CR)([s-a,u-o],2),f=c[0],p=c[1],d=[];return n.forEach(function(t){var e=ak(t),n=(0,i5.CR)([Math.cos(e),Math.sin(e)],2),r=n[0],i=n[1];d.push([f*r-p*i+a,f*i+p*r+o])}),{points:d,id:r}})}(l,t),c=(0,i5.pi)((0,i5.pi)({},r),{center:o,areaFill:(0,am.Z)(a)?l.map(function(t,e){return aR(a,[t,e,l])}):a,animate:h,data:u}),e.selectAll(ag.grid.class).data([1]).join(function(t){var e=t.append(function(){return new az({style:c})}).attr("className",ag.grid.name);return aK(e,ag.grid,ah.grid,n),e},function(t){return t.transition(function(){return this.update(c)})},function(t){return t.remove()}).transitions()})||[],m=ap(e).maybeAppendByClassName(ag.mainGroup,"g");aK(m,ag.mainGroup,ah.mainGroup,f),i&&(!this.initialized&&h.enter||this.initialized&&h.update)&&oA(t,ap(this.offscreenGroup),d,i8(!1));var v=oA(t,ap(m.node()),d,h),b=ap(e).maybeAppendByClassName(ag.titleGroup,"g");aK(b,ag.titleGroup,ah.titleGroup,f);var x=as(l,b,function(e){var n,i;return n=t.titleText,i=t.classNamePrefix,e.selectAll(ag.title.class).data([{title:n}].filter(function(t){return!!t.title}),function(t,e){return t.title}).join(function(a){var o=a.append(function(){return a$(n)}).attr("className",ag.title.name).transition(function(){return oj(ap(this),e,r,t,h.enter)});return aK(o,ag.title,ah.title,i),o},function(n){return n.transition(function(){return oj(ap(this),e,r,t,h.update)})},function(t){return t.remove()}).transitions()})||[];return(0,i5.ev)((0,i5.ev)((0,i5.ev)([],(0,i5.CR)(g),!1),(0,i5.CR)(v),!1),(0,i5.CR)(x),!1).flat().filter(function(t){return!!t})},e}(al);function oS(t){if(iL(t))return t[t.length-1]}var oP=function(t){return t};function oC(t,e){return e-t?n=>(n-t)/(e-t):t=>.5}function oT(t,...e){return e.reduce((t,e)=>n=>t(e(n)),t)}function oR(t,e,n,r,i){let a=n||0,o=r||t.length,l=i||(t=>t);for(;a<o;){let n=Math.floor((a+o)/2);l(t[n])>e?o=n:a=n+1}return a}var oL=n(2489),oN=n.n(oL);function oI(t,e,n){let r=n;return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function oF(t){let e=oN().get(t);if(!e)return null;let{model:n,value:r}=e;return"rgb"===n?r:"hsl"===n?function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(0===n)return[255*r,255*r,255*r,i];let a=r<.5?r*(1+n):r+n-r*n,o=2*r-a;return[255*oI(o,a,e+1/3),255*oI(o,a,e),255*oI(o,a,e-1/3),i]}(r):null}let oB=(t,e)=>n=>t*(1-n)+e*n,oD=(t,e)=>{let n=oF(t),r=oF(e);return null===n||null===r?n?()=>t:()=>e:t=>{let e=[,,,,];for(let i=0;i<4;i+=1){let a=n[i],o=r[i];e[i]=a*(1-t)+o*t}let[i,a,o,l]=e;return`rgba(${Math.round(i)}, ${Math.round(a)}, ${Math.round(o)}, ${l})`}},oz=(t,e)=>"number"==typeof t&&"number"==typeof e?oB(t,e):"string"==typeof t&&"string"==typeof e?oD(t,e):()=>t,o$=(t,e)=>{let n=oB(t,e);return t=>Math.round(n(t))};var oW=n(36179);function oZ(t){return!(0,oW.Z)(t)&&null!==t&&!Number.isNaN(t)}let oH=(t,e,n=5)=>{let r;let i=[t,e],a=0,o=i.length-1,l=i[a],s=i[o];return s<l&&([l,s]=[s,l],[a,o]=[o,a]),(r=rF(l,s,n))>0?r=rF(l=Math.floor(l/r)*r,s=Math.ceil(s/r)*r,n):r<0&&(r=rF(l=Math.ceil(l*r)/r,s=Math.floor(s*r)/r,n)),r>0?(i[a]=Math.floor(l/r)*r,i[o]=Math.ceil(s/r)*r):r<0&&(i[a]=Math.ceil(l*r)/r,i[o]=Math.floor(s*r)/r),i},oq=(t,e,n)=>{let r,i;let[a,o]=t,[l,s]=e;return a<o?(r=oC(a,o),i=n(l,s)):(r=oC(o,a),i=n(s,l)),oT(i,r)},oG=(t,e,n)=>{let r=Math.min(t.length,e.length)-1,i=Array(r),a=Array(r),o=t[0]>t[r],l=o?[...t].reverse():t,s=o?[...e].reverse():e;for(let t=0;t<r;t+=1)i[t]=oC(l[t],l[t+1]),a[t]=n(s[t],s[t+1]);return e=>{let n=oR(t,e,1,r)-1,o=i[n];return oT(a[n],o)(e)}},oY=(t,e,n,r)=>(Math.min(t.length,e.length)>2?oG:oq)(t,e,r?o$:n);class oV extends rA{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:oB,tickCount:5}}map(t){return oZ(t)?this.output(t):this.options.unknown}invert(t){return oZ(t)?this.input(t):this.options.unknown}nice(){if(!this.options.nice||(0,rm.Z)(this.options.breaks))return;let[t,e,n,...r]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(t,e,n,...r)}getTicks(){let{tickMethod:t}=this.options,[e,n,r,...i]=this.getTickMethodOptions();return t(e,n,r,...i)}getTickMethodOptions(){let{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}chooseNice(){return oH}rescale(){this.nice();let[t,e]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,e,this.chooseClamp(e))}chooseClamp(t){let{clamp:e,range:n}=this.options,r=this.options.domain.map(t),i=Math.min(r.length,n.length);return e?function(t,e){let n=e<t?e:t,r=t>e?t:e;return t=>Math.min(Math.max(n,t),r)}(r[0],r[i-1]):oP}composeOutput(t,e){let{domain:n,range:r,round:i,interpolate:a}=this.options,o=oY(n.map(t),r,a,i);this.output=oT(o,e,t)}composeInput(t,e,n){let{domain:r,range:i}=this.options,a=oY(i,r.map(t),oB);this.input=oT(e,n,a)}}class oU extends oV{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:oz,tickMethod:rz,tickCount:5}}removeUnsortedValues(t,e,n){let r=-1/0;return e.reduce((t,i,a)=>
1{if(0===a)return t;let o=r>0?r:i;return r>0&&(n?i>r:i<r)?t.push(a):(o-e[a-1])*(n?-1:1)<0?(r<0&&(r=e[a-1]),t.push(a)):r=-1/0,t},[]).slice().reverse().forEach(n=>{t.splice(n,1),e.splice(n,1)}),{breaksDomain:t,breaksRange:e}}transformDomain(t){let e=.03,{domain:n=[],range:r=[1,0],breaks:i=[],tickCount:a=5,nice:o}=t,[l,s]=[Math.min(...n),Math.max(...n)],u=l,c=s;if(o&&i.length<2){let t=this.chooseNice()(l,s,a);u=t[0],c=t[t.length-1]}let f=Math.min(u,l),p=Math.max(c,s),d=i.filter(({end:t})=>t<p).sort((t,e)=>t.start-e.start),h=rz(f,p,a,d);if(oS(h)<p){let t=oH(0,p-oS(h),3);h.push(oS(h)+oS(t)),p=oS(h)}let[y,g]=[r[0],oS(r)],m=p-f,v=Math.abs(g-y),b=y>g,x=h.map(t=>{let e=(t-f)/m;return b?y-e*v:y+e*v}),[O,w]=[.2,.8];return d.forEach(({start:t,end:n,gap:r=e,compress:i="middle"})=>{let a=h.indexOf(t),o=h.indexOf(n),l=(x[a]+x[o])/2;"start"===i&&(l=x[a]),"end"===i&&(l=x[o]);let s=r*v/2,u=b?l+s:l-s,c=b?l-s:l+s;u<O&&(c+=O-u,u=O),c>w&&(u-=c-w,c=w),u>w&&(c-=u-w,u=w),c<O&&(u+=O-c,c=O),x[a]=u,x[o]=c}),this.removeUnsortedValues(h,x,b)}transformBreaks(t){let{domain:e,breaks:n=[]}=t;if(!(0,rm.Z)(t.breaks))return t;let r=Math.max(...e),i=n.filter(({end:t})=>t<r),a={...t,breaks:i},{breaksDomain:o,breaksRange:l}=this.transformDomain(a);return{...t,domain:o,range:l,breaks:i,tickMethod:()=>[...o]}}chooseTransforms(){return[oP,oP]}clone(){return new oU(this.options)}}var oX=function(t,e){if(t){if((0,rm.Z)(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if((0,id.Z)(t)){for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break}}},oK=function(t,e,n){if(!(0,rm.Z)(t)&&!rx(t))return t;var r=n;return oX(t,function(t,n){r=e(r,t,n)}),r},oQ=function(t,e){return oK(t,function(t,n,r){return e.includes(r)||(t[r]=n),t},{})};function oJ(t,e){let n,r;if(void 0===e)for(let 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 a of t)null!=(a=e(a,++i,t))&&(void 0===n?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}var o0=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=0,this.y=0,this.width=0,this.height=0,this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t.prototype.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}},t.prototype.isPointIn=function(t,e){return t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom},t}();function o1(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<t.length;a++){var o=t[a],l=o.x,s=o.y,u=o.width,c=o.height,f=(0,i5.CR)([l+u,s+c],2),p=f[0],d=f[1];l<e&&(e=l),s<n&&(n=s),p>r&&(r=p),d>i&&(i=d)}return new o0(e,n,r-e,i-n)}var o2=function(t,e,n){var r=t.width,i=t.height,a=n.flexDirection,o=void 0===a?"row":a,l=(n.flexWrap,n.justifyContent),s=void 0===l?"flex-start":l,u=(n.alignContent,n.alignItems),c=void 0===u?"flex-start":u,f="row"===o,p="row"===o||"column"===o,d=f?p?[1,0]:[-1,0]:p?[0,1]:[0,-1],h=(0,i5.CR)([0,0],2),y=h[0],g=h[1],m=e.map(function(t){var e,n=t.width,r=t.height,i=(0,i5.CR)([y,g],2),a=i[0],o=i[1];return y=(e=(0,i5.CR)([y+n*d[0],g+r*d[1]],2))[0],g=e[1],new o0(a,o,n,r)}),v=o1(m),b={"flex-start":0,"flex-end":f?r-v.width:i-v.height,center:f?(r-v.width)/2:(i-v.height)/2},x=m.map(function(t){var e=t.x,n=t.y,r=o0.fromRect(t);return r.x=f?e+b[s]:e,r.y=f?n:n+b[s],r});o1(x);var O=function(t){var e=(0,i5.CR)(f?["height",i]:["width",r],2),n=e[0],a=e[1];switch(c){case"flex-start":default:return 0;case"flex-end":return a-t[n];case"center":return a/2-t[n]/2}};return x.map(function(t){var e=t.x,n=t.y,r=o0.fromRect(t);return r.x=f?e:e+O(r),r.y=f?n+O(r):n,r}).map(function(e){var n,r,i=o0.fromRect(e);return i.x+=null!==(n=t.x)&&void 0!==n?n:0,i.y+=null!==(r=t.y)&&void 0!==r?r:0,i})},o5=function(t,e,n){return[]},o3=function(t,e,n){if(0===e.length)return[];var r={flex:o2,grid:o5},i=n.display in r?r[n.display]:null;return(null==i?void 0:i.call(null,t,e,n))||[]},o4=function(t){function e(e){var n=t.call(this,e)||this;n.layoutEvents=[tk.Dk.BOUNDS_CHANGED,tk.Dk.INSERTED,tk.Dk.REMOVED],n.$margin=or(0),n.$padding=or(0);var r=e.style||{},i=r.margin,a=r.padding;return n.margin=void 0===i?0:i,n.padding=void 0===a?0:a,n.isMutationObserved=!0,n.bindEvents(),n}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"margin",{get:function(){return this.$margin},set:function(t){this.$margin=or(t)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.$padding},set:function(t){this.$padding=or(t)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var t=this.attributes,e=t.x,n=t.y,r=t.width,i=t.height,a=(0,i5.CR)(this.$margin,4),o=a[0],l=a[1],s=a[2],u=a[3];return new o0((void 0===e?0:e)-u,(void 0===n?0:n)-o,r+u+l,i+o+s)},e.prototype.appendChild=function(e,n){return e.isMutationObserved=!0,t.prototype.appendChild.call(this,e,n),e},e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,r=(0,i5.CR)(this.$padding,4),i=r[0],a=r[1],o=r[2],l=r[3],s=(0,i5.CR)(this.$margin,4),u=s[0];return new o0(l+s[3],i+u,e-l-a,n-i-o)},e.prototype.layout=function(){if(this.attributes.display&&this.isConnected&&!this.children.some(function(t){return!t.isConnected}))try{var t=this.attributes,e=t.x,n=t.y;this.style.transform="translate(".concat(e,", ").concat(n,")");var r=o3(this.getAvailableSpace(),this.children.map(function(t){return t.getBBox()}),this.attributes);this.children.forEach(function(t,e){var n=r[e],i=n.x,a=n.y;t.style.transform="translate(".concat(i,", ").concat(a,")")})}catch(t){}},e.prototype.bindEvents=function(){var t=this;this.layoutEvents.forEach(function(e){t.addEventListener(e,function(e){e.target&&(e.target.isMutationObserved=!0,t.layout())})})},e.prototype.attributeChangedCallback=function(t,e,n){"margin"===t?this.margin=n:"padding"===t&&(this.padding=n),this.layout()},e}(tk.ZA),o6=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function o8(t,e,n){return t.querySelector(e)?r2(t).select(e):r2(t).append(n)}function o9(t){return Array.isArray(t)?t.join(", "):`${t||""}`}function o7(t,e){let{flexDirection:n,justifyContent:r,alignItems:i}={display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},a={top:["row","flex-start","center"],bottom:["row","flex-start","center"],left:["column","flex-start","center"],right:["column","flex-start","center"],center:["column","center","center"]};return t in a&&([n,r,i]=a[t]),Object.assign({display:"flex",flexDirection:n,justifyContent:r,alignItems:i},e)}class lt extends o4{get child(){var t;return null===(t=this.children)||void 0===t?void 0:t[0]}update(t){var e;let{subOptions:n}=t;null===(e=this.child)||void 0===e||e.update(n),this.attr(t)}}class le extends lt{update(t){var e;let{subOptions:n}=t;null===(e=this.child)||void 0===e||e.update(n),this.attr(t)}}function ln(t,e){var n;return null===(n=t.filter(t=>t.getOptions().name===e))||void 0===n?void 0:n[0]}function lr(t,e,n){let{bbox:r}=t,{position:i="top",size:a,length:o}=e,l=["top","bottom","center"].includes(i),[s,u]=l?[r.height,r.width]:[r.width,r.height],{defaultSize:c,defaultLength:f}=n.props,p=a||c||s,d=o||f||u,[h,y]=l?[d,p]:[p,d];return{orientation:l?"horizontal":"vertical",width:h,height:y,size:p,length:d}}function li(t){let e=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=t,r=o6(t,["style"]),i={};return Object.entries(r).forEach(([t,n])=>{e.includes(t)?i[`show${ix(t)}`]=n:i[t]=n}),Object.assign(Object.assign({},i),n)}var la=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function lo(t,e){let{eulerAngles:n,origin:r}=e;r&&t.setOrigin(r),n&&t.rotate(n[0],n[1],n[2])}function ll(t){let{innerWidth:e,innerHeight:n,depth:r}=t.getOptions();return[e,n,r]}function ls(t,e,n,r,i,a,o,l){var s;(void 0!==n||void 0!==a)&&t.update(Object.assign(Object.assign({},n&&{tickCount:n}),a&&{tickMethod:a}));let u=function(t,e,n){if(t.getTicks)return t.getTicks();if(!n)return e;let[r,i]=oJ(e,t=>+t),{tickCount:a}=t.getOptions();return n(r,i,a)}(t,e,a),c=i?u.filter(i):u,f=t=>t instanceof Date?String(t):"object"==typeof t&&t?t:String(t),p=r||(null===(s=t.getFormatter)||void 0===s?void 0:s.call(t))||f,d=function(t,e){if(iU(e))return t=>t;let{innerWidth:n,innerHeight:r,insetTop:i,insetBottom:a,insetLeft:o,insetRight:l}=e.getOptions(),[s,u,c]="left"===t||"right"===t?[i,a,r]:[o,l,n],f=new oU({domain:[0,1],range:[s/c,1-u/c]});return t=>f.map(t)}(o,l),h=function(t,e){let{width:n,height:r}=e.getOptions();return i=>{if(!iJ(e))return i;let a=e.map("bottom"===t?[i,1]:[0,i]);if("bottom"===t){let t=a[0];return new oU({domain:[0,n],range:[0,1]}).map(t)}if("left"===t){let t=a[1];return new oU({domain:[0,r],range:[0,1]}).map(t)}return i}}(o,l),y=t=>["top","bottom","center","outer"].includes(t),g=t=>["left","right"].includes(t);return iU(l)||iV(l)?c.map((e,n,r)=>{var i,a;let s=(null===(i=t.getBandWidth)||void 0===i?void 0:i.call(t,e))/2||0,u=d(t.map(e)+s);return{value:iX(l)&&"center"===o||iV(l)&&(null===(a=t.getTicks)||void 0===a?void 0:a.call(t))&&y(o)||iV(l)&&g(o)?1-u:u,label:f(p(iZ(e),n,r)),id:String(n)}}):c.map((e,n,r)=>{var i;let a=(null===(i=t.getBandWidth)||void 0===i?void 0:i.call(t,e))/2||0,l=h(d(t.map(e)+a));return{value:g(o)?1-l:l,label:f(p(iZ(e),n,r)),id:String(n)}})}let lu=t=>e=>{let{labelFormatter:n,labelFilter:r=()=>!0}=e;return i=>{var a;let{scales:[o]}=i,l=(null===(a=o.getTicks)||void 0===a?void 0:a.call(o))||o.getOptions().domain,s="string"==typeof n?v7(n):n;return t(Object.assign(Object.assign({},e),{labelFormatter:s,labelFilter:(t,e,n)=>r(l[e],e,l),scale:o}))(i)}},lc=lu(t=>{let{direction:e="left",important:n={},labelFormatter:r,order:i,orientation:a,actualPosition:o,position:l,size:s,style:u={},title:c,tickCount:f,tickFilter:p,tickMethod:d,tickLength:h,transform:y,indexBBox:g}=t,m=la(t,["direction","important","labelFormatter","order","orientation","actualPosition","position","size","style","title","tickCount","tickFilter","tickMethod","tickLength","transform","indexBBox"]);return({scales:i,value:v,coordinate:b,theme:x})=>{var O;let{bbox:w}=v,[M]=i,{domain:_,xScale:k}=M.getOptions(),j=Object.assign(Object.assign(Object.assign({},function(t,e,n,r,i,a){let o=function(t,e,n,r,i,a){let o=n.axis,l=["top","right","bottom","left"].includes(i)?n[`axis${rG(i)}`]:n.axisLinear,s=t.getOptions().name;return Object.assign({},o,l,n[`axis${ix(s)}`]||{})}(t,0,n,0,i,0);return"center"===i?Object.assign(Object.assign(Object.assign(Object.assign({},o),{labelDirection:"right"===r?"negative":"positive"}),"center"===r?{labelTransform:"translate(50%,0)"}:null),{tickDirection:"right"===r?"negative":"positive",labelSpacing:"center"===r?0:4,titleSpacing:"vertical"===a||a===-Math.PI/2?10:0,tick:"center"!==r&&void 0}):o}(M,0,x,e,l,a)),u),m),A=function(t,e,n="xy"){let[r,i,a]=ll(e);return"xy"===n?t.includes("bottom")||t.includes("top")?i:r:"xz"===n?t.includes("bottom")||t.includes("top")?a:r:t.includes("bottom")||t.includes("top")?i:a}(o||l,b,t.plane),E=function(t,e,n,r,i){let{x:a,y:o,width:l,height:s}=n;if("bottom"===t)return{startPos:[a,o],endPos:[a+l,o]};if("left"===t)return{startPos:[a+l,o+s],endPos:[a+l,o]};if("right"===t)return{startPos:[a,o+s],endPos:[a,o]};if("top"===t)return{startPos:[a,o+s],endPos:[a+l,o+s]};if("center"===t){if("vertical"===e)return{startPos:[a,o],endPos:[a,o+s]};if("horizontal"===e)return{startPos:[a,o],endPos:[a+l,o]};if("number"==typeof e){let[t,n]=r.getCenter(),[u,c]=i1(r),[f,p]=i2(r),d=Math.min(l,s)/2,{insetLeft:h,insetTop:y}=r.getOptions(),g=u*d,m=c*d,[v,b]=[t+a-h,n+o-y],[x,O]=[Math.cos(e),Math.sin(e)],w=iU(r)&&i?(()=>{let{domain:t}=i.getOptions();return t.length})():3;return{startPos:[v+m*x,b+m*O],endPos:[v+g*x,b+g*O],gridClosed:1e-6>Math.abs(p-f-360),gridCenter:[v,b],gridControlAngles:Array(w).fill(0).map((t,e,n)=>(p-f)/w*e)}}}return{}}(l,a,w,b,k),S=function(t){let{depth:e}=t.getOptions();return e?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}(b),P=ls(M,_,f,r,p,d,l,b),C=g?P.map((t,e)=>{let n=g.get(e);return n&&n[0]===t.label?Object.assign(Object.assign({},t),{bbox:n[1]}):t}):P,T=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},j),{type:"linear",data:C,crossSize:s,titleText:o9(c),labelOverlap:function(t=[],e){if(t.length>0)return t;let{labelAutoRotate:n,labelAutoHide:r,labelAutoEllipsis:i,labelAutoWrap:a}=e,o=[],l=(t,e)=>{e&&o.push(Object.assign(Object.assign({},t),e))};return l({type:"rotate",optionalAngles:[0,15,30,45,60,90]},n),l({type:"ellipsis",minLength:20},i),l({type:"hide"},r),l({type:"wrap",wordWrapWidth:100,maxLines:3,recoveryWhenFail:!0},a),o}(y,j),grid:(O=j.grid,!(iU(b)&&iV(b)||iQ(b))&&(void 0===O?!!M.getTicks:O)),gridLength:A,line:!0,indexBBox:g,classNamePrefix:"g2-"}),void 0!==h?{tickLength:h}:null),j.line?null:{lineOpacity:0}),E),S),n);return T.labelOverlap.find(t=>"hide"===t.type)&&(T.crossSize=!1),new oE({className:"axis",style:li(T)})}}),lf=lu(t=>{let{order:e,size:n,position:r,orientation:i,labelFormatter:a,tick
1Filter:o,tickCount:l,tickMethod:s,tickLength:u,important:c={},style:f={},indexBBox:p,title:d,grid:h=!1}=t,y=la(t,["order","size","position","orientation","labelFormatter","tickFilter","tickCount","tickMethod","tickLength","important","style","indexBBox","title","grid"]);return({scales:[t],value:e,coordinate:n,theme:i})=>{let{bbox:f}=e,{domain:g}=t.getOptions(),m=ls(t,g,l,a,o,s,r,n),v=p?m.map((t,e)=>{let n=p.get(e);return n&&n[0]===t.label?Object.assign(Object.assign({},t),{bbox:n[1]}):t}):m,[b,x]=i1(n),O=function(t,e,n,r,i){let{x:a,y:o,width:l,height:s}=e,u=[a+l/2,o+s/2],c=Math.min(l,s)/2,[f,p]=i2(i),[d,h]=ll(i),y={center:u,radius:c,startAngle:f,endAngle:p,gridLength:Math.min(d,h)/2*(r-n)};if("inner"===t){let{insetLeft:t,insetTop:e}=i.getOptions();return Object.assign(Object.assign({},y),{center:[u[0]-t,u[1]-e],labelAlign:"perpendicular",labelDirection:"positive",tickDirection:"positive",gridDirection:"negative"})}return Object.assign(Object.assign({},y),{labelAlign:"parallel",labelDirection:"negative",tickDirection:"negative",gridDirection:"positive"})}(r,f,b,x,n),{axis:w,axisArc:M={}}=i;return new oE({style:oQ(li(rO({},w,M,O,Object.assign(Object.assign(Object.assign({type:"arc",data:v,titleText:o9(d),grid:h,classNamePrefix:"g2-"},void 0!==u?{tickLength:u}:null),y),c))),["transform"])})}});lc.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]},lf.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};var lp=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ld=t=>{let{important:e={}}=t,n=lp(t,["important"]);return r=>{let{theme:i,coordinate:a,scales:o}=r;return lc(Object.assign(Object.assign(Object.assign({},n),function(t){let e=t%(2*Math.PI);return e===Math.PI/2?{titleTransform:"translate(0, 50%)"}:e>-Math.PI/2&&e<Math.PI/2?{titleTransform:"translate(50%, 0)"}:e>Math.PI/2&&e<3*Math.PI/2?{titleTransform:"translate(-50%, 0)"}:{}}(t.orientation)),{important:Object.assign(Object.assign({},function(t,e,n,r){let{radar:i}=t,[a]=r,o=a.getOptions().name,[l,s]=i2(n),{axisRadar:u={}}=e;return Object.assign(Object.assign({},u),{grid:"position"===o,gridConnect:"line",gridControlAngles:Array(i.count).fill(0).map((t,e)=>(s-l)/i.count*e)})}(t,i,a,o)),e)}))(r)}};ld.props=Object.assign(Object.assign({},lc.props),{defaultPosition:"center"});class lh{constructor(t){this.options=rO({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=rO({},this.options,t),this.rescale(t)}rescale(t){}}function ly(t,e){return e-t?n=>(n-t)/(e-t):t=>.5}function lg(t,...e){return e.reduce((t,e)=>n=>t(e(n)),t)}function lm(t,e,n){let r=n;return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function lv(t){let e=oN().get(t);if(!e)return null;let{model:n,value:r}=e;return"rgb"===n?r:"hsl"===n?function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(0===n)return[255*r,255*r,255*r,i];let a=r<.5?r*(1+n):r+n-r*n,o=2*r-a;return[255*lm(o,a,e+1/3),255*lm(o,a,e),255*lm(o,a,e-1/3),i]}(r):null}let lb=(t,e)=>n=>t*(1-n)+e*n,lx=(t,e)=>{let n=lv(t),r=lv(e);return null===n||null===r?n?()=>t:()=>e:t=>{let e=[,,,,];for(let i=0;i<4;i+=1){let a=n[i],o=r[i];e[i]=a*(1-t)+o*t}let[i,a,o,l]=e;return`rgba(${Math.round(i)}, ${Math.round(a)}, ${Math.round(o)}, ${l})`}},lO=(t,e)=>"number"==typeof t&&"number"==typeof e?lb(t,e):"string"==typeof t&&"string"==typeof e?lx(t,e):()=>t,lw=(t,e)=>{let n=lb(t,e);return t=>Math.round(n(t))};function lM(t){return!(0,oW.Z)(t)&&null!==t&&!Number.isNaN(t)}let l_=Math.sqrt(50),lk=Math.sqrt(10),lj=Math.sqrt(2);function lA(t,e,n){let r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/10**i;return i>=0?(a>=l_?10:a>=lk?5:a>=lj?2:1)*10**i:-(10**-i)/(a>=l_?10:a>=lk?5:a>=lj?2:1)}let lE=(t,e,n=5)=>{let r;let i=[t,e],a=0,o=i.length-1,l=i[a],s=i[o];return s<l&&([l,s]=[s,l],[a,o]=[o,a]),(r=lA(l,s,n))>0?r=lA(l=Math.floor(l/r)*r,s=Math.ceil(s/r)*r,n):r<0&&(r=lA(l=Math.ceil(l*r)/r,s=Math.floor(s*r)/r,n)),r>0?(i[a]=Math.floor(l/r)*r,i[o]=Math.ceil(s/r)*r):r<0&&(i[a]=Math.ceil(l*r)/r,i[o]=Math.floor(s*r)/r),i},lS=(t,e,n)=>{let r,i;let[a,o]=t,[l,s]=e;return a<o?(r=ly(a,o),i=n(l,s)):(r=ly(o,a),i=n(s,l)),lg(i,r)},lP=(t,e,n)=>{let r=Math.min(t.length,e.length)-1,i=Array(r),a=Array(r),o=t[0]>t[r],l=o?[...t].reverse():t,s=o?[...e].reverse():e;for(let t=0;t<r;t+=1)i[t]=ly(l[t],l[t+1]),a[t]=n(s[t],s[t+1]);return e=>{let n=function(t,e,n,r,i){let a=1,o=r||t.length,l=t=>t;for(;a<o;){let n=Math.floor((a+o)/2);l(t[n])>e?o=n:a=n+1}return a}(t,e,0,r)-1,o=i[n];return lg(a[n],o)(e)}},lC=(t,e,n,r)=>(Math.min(t.length,e.length)>2?lP:lS)(t,e,r?lw:n);class lT extends lh{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:lb,tickCount:5}}map(t){return lM(t)?this.output(t):this.options.unknown}invert(t){return lM(t)?this.input(t):this.options.unknown}nice(){if(!this.options.nice)return;let[t,e,n,...r]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(t,e,n,...r)}getTicks(){let{tickMethod:t}=this.options,[e,n,r,...i]=this.getTickMethodOptions();return t(e,n,r,...i)}getTickMethodOptions(){let{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}chooseNice(){return lE}rescale(){this.nice();let[t,e]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,e,this.chooseClamp(e))}chooseClamp(t){let{clamp:e,range:n}=this.options,r=this.options.domain.map(t),i=Math.min(r.length,n.length);return e?function(t,e){let n=e<t?e:t,r=t>e?t:e;return t=>Math.min(Math.max(n,t),r)}(r[0],r[i-1]):oP}composeOutput(t,e){let{domain:n,range:r,round:i,interpolate:a}=this.options,o=lC(n.map(t),r,a,i);this.output=lg(o,e,t)}composeInput(t,e,n){let{domain:r,range:i}=this.options,a=lC(i,r.map(t),lb);this.input=lg(e,n,a)}}let lR=(t,e,n)=>{let r,i;let a=t,o=e;if(a===o&&n>0)return[a];let l=lA(a,o,n);if(0===l||!Number.isFinite(l))return[];if(l>0){a=Math.ceil(a/l),i=Array(r=Math.ceil((o=Math.floor(o/l))-a+1));for(let t=0;t<r;t+=1)i[t]=(a+t)*l}else{a=Math.ceil(a*(l=-l)),i=Array(r=Math.ceil((o=Math.floor(o*l))-a+1));for(let t=0;t<r;t+=1)i[t]=(a+t)/l}return i};class lL extends lT{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:lO,tickMethod:lR,tickCount:5}}chooseTransforms(){return[oP,oP]}clone(){return new lL(this.options)}}function lN(t,e){return+t.toPrecision(e)}function lI(t){var e=t.canvas,n=t.touches,r=t.offsetX,i=t.offsetY;if(e)return[e.x,e.y];if(n){var a=n[0];return[a.clientX,a.clientY]}return r&&i?[r,i]:[0,0]}function lF(t){var e=t.nativeEvent,n=t.touches,r=t.clientX,i=t.clientY;if(e)return[e.clientX,e.clientY];if(n){var a=n[0];return[a.clientX,a.clientY]}return"number"==typeof r&&"number"==typeof i?[r,i]:[0,0]}var lB={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},lD=ad({background:"background",labelGroup:"label-group",label:"label"},"indicator"),lz=function(t){function e(e){var n=t.call(this,e,lB)||this;return n.point=[0,0],n.group=n.appendChild(new tk.ZA({})),n.isMutationObserved=!0,n}
1return(0,i5.ZT)(e,t),e.prototype.renderBackground=function(){if(this.label){var t=this.attributes,e=t.position,n=t.padding,r=(0,i5.CR)(or(n),4),i=r[0],a=r[1],o=r[2],l=r[3],s=this.label.node().getLocalBounds(),u=s.min,c=s.max,f=new o0(u[0]-l,u[1]-i,c[0]+a-u[0]+l,c[1]+o-u[1]+i),p=this.getPath(e,f),d=aP(this.attributes,"background");this.background=ap(this.group).maybeAppendByClassName(lD.background,"path").styles((0,i5.pi)((0,i5.pi)({},d),{d:p})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var t=this.attributes,e=t.formatter,n=t.labelText,r=aP(this.attributes,"label"),i=(0,i5.CR)(aT(r),2),a=i[0],o=i[1],l=(a.text,(0,i5._T)(a,["text"]));this.label=ap(this.group).maybeAppendByClassName(lD.labelGroup,"g").styles(o),n&&this.label.maybeAppendByClassName(lD.label,function(){return a$(e(n))}).style("text",e(n).toString()).selectAll("text").styles(l)},e.prototype.adjustLayout=function(){var t=(0,i5.CR)(this.point,2),e=t[0],n=t[1],r=this.attributes,i=r.x,a=r.y;this.group.attr("transform","translate(".concat(i-e,", ").concat(a-n,")"))},e.prototype.getPath=function(t,e){var n=this.attributes.radius,r=e.x,i=e.y,a=e.width,o=e.height,l=[["M",r+n,i],["L",r+a-n,i],["A",n,n,0,0,1,r+a,i+n],["L",r+a,i+o-n],["A",n,n,0,0,1,r+a-n,i+o],["L",r+n,i+o],["A",n,n,0,0,1,r,i+o-n],["L",r,i+n],["A",n,n,0,0,1,r+n,i],["Z"]],s={top:4,right:6,bottom:0,left:2}[t],u=this.createCorner([l[s].slice(-2),l[s+1].slice(-2)]);return l.splice.apply(l,(0,i5.ev)([s+1,1],(0,i5.CR)(u),!1)),l[0][0]="M",l},e.prototype.createCorner=function(t,e){void 0===e&&(e=10);var n=op.apply(void 0,(0,i5.ev)([],(0,i5.CR)(t),!1)),r=(0,i5.CR)(t,2),i=(0,i5.CR)(r[0],2),a=i[0],o=i[1],l=(0,i5.CR)(r[1],2),s=l[0],u=l[1],c=(0,i5.CR)(n?[s-a,[a,s]]:[u-o,[o,u]],2),f=c[0],p=(0,i5.CR)(c[1],2),d=p[0],h=p[1],y=f/2,g=f/Math.abs(f)*e,m=g/2,v=g*Math.sqrt(3)/2*.8,b=(0,i5.CR)([d,d+y-m,d+y,d+y+m,h],5),x=b[0],O=b[1],w=b[2],M=b[3],_=b[4];return n?(this.point=[w,o-v],[["L",x,o],["L",O,o],["L",w,o-v],["L",M,o],["L",_,o]]):(this.point=[a+v,w],[["L",a,x],["L",a,O],["L",a+v,w],["L",a,M],["L",a,_]])},e.prototype.applyVisibility=function(){"hidden"===this.attributes.visibility?i4(this):i3(this)},e.prototype.bindEvents=function(){this.label.on(tk.Dk.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(al),l$={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},lW={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},lZ={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},lH=ad({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),lq=ad({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),lG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i5.ZT)(e,t),e.prototype.render=function(t,e){var n=t.x,r=t.y,i=t.size,a=void 0===i?10:i,o=t.radius,l=t.orientation,s=t.classNamePrefix,u=(0,i5._T)(t,["x","y","size","radius","orientation","classNamePrefix"]),c=2.4*a,f=s?"".concat(lq.iconRect.name," ").concat(s,"handle-icon-rect"):lq.iconRect.name,p=function(t){return s?"".concat(lq.iconLine,"-").concat(t," ").concat(s,"handle-icon-line"):"".concat(lq.iconLine,"-").concat(t)},d=ap(e).maybeAppendByClassName(lq.iconRect,"rect").attr("className",f).styles((0,i5.pi)((0,i5.pi)({},u),{width:a,height:c,radius:void 0===o?a/4:o,x:n-a/2,y:r-c/2,transformOrigin:"center"})),h=n+1/3*a-a/2,y=n+2/3*a-a/2,g=r+1/4*c-c/2,m=r+3/4*c-c/2;d.maybeAppendByClassName("".concat(lq.iconLine,"-1"),"line").attr("className",p(1)).styles((0,i5.pi)({x1:h,x2:h,y1:g,y2:m},u)),d.maybeAppendByClassName("".concat(lq.iconLine,"-2"),"line").attr("className",p(2)).styles((0,i5.pi)({x1:y,x2:y,y1:g,y2:m},u)),"vertical"===l&&(d.node().style.transform="rotate(90)")},e}(al),lY=function(t){function e(e){return t.call(this,e,lZ)||this}return(0,i5.ZT)(e,t),e.prototype.renderLabel=function(t){var e=this,n=this.attributes,r=n.x,i=n.y,a=n.showLabel,o=aP(this.attributes,"label"),l=o.x,s=void 0===l?0:l,u=o.y,c=void 0===u?0:u,f=o.transform,p=o.transformOrigin,d=(0,i5._T)(o,["x","y","transform","transformOrigin"]),h=(0,i5.CR)(aT(d,[]),2),y=h[0],g=h[1],m=ap(t).maybeAppendByClassName(lq.labelGroup,"g").styles(g),v=(0,i5.pi)((0,i5.pi)({},lW),y),b=v.text,x=(0,i5._T)(v,["text"]);as(!!a,m,function(t){e.label=t.maybeAppendByClassName(lq.label,"text").styles((0,i5.pi)((0,i5.pi)({},x),{x:r+s,y:i+c,transform:f,transformOrigin:p,text:"".concat(b)})),e.label.on("mousedown",function(t){t.stopPropagation()}),e.label.on("touchstart",function(t){t.stopPropagation()})})},e.prototype.renderIcon=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.orientation,a=e.type,o=e.classNamePrefix,l=(0,i5.pi)((0,i5.pi)({x:n,y:r,orientation:i,classNamePrefix:o},l$),aP(this.attributes,"icon")),s=this.attributes.iconShape,u=void 0===s?function(){return new lG({style:l})}:s;ap(t).maybeAppendByClassName(lq.iconGroup,"g").selectAll(lq.icon.class).data([u]).join(function(t){return t.append("string"==typeof u?u:function(){return u(a)}).attr("className",lq.icon.name)},function(t){return t.update(l)},function(t){return t.remove()})},e.prototype.render=function(t,e){this.renderIcon(e),this.renderLabel(e)},e}(al);function lV(t,e,n){return n?"".concat(t," ").concat(n,"legend-").concat(e):t}var lU={title:"title",item:"item",marker:"marker",label:"label",value:"value",focusIcon:"focus-icon",background:"background",ribbon:"ribbon",track:"track",selection:"selection",handle:"handle",handleMarker:"handle-marker",handleLabel:"handle-label",indicator:"indicator",prevBtn:"prev-btn",nextBtn:"next-btn",pageInfo:"page-info"},lX=ad({text:"text"},"title");function lK(t,e){var n=Object.entries(e).reduce(function(e,n){var r=(0,i5.CR)(n,2),i=r[0],a=r[1];return t.node().attr(i)||(e[i]=a),e},{});t.styles(n)}var lQ=function(t){function e(e){return t.call(this,e,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return(0,i5.ZT)(e,t),e.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,n=t.height,r=t.position,i=t.spacing,a=t.inset,o=this.querySelector(lX.text.class);if(!o)return new o0(0,0,+e,+n);var l=o.getBBox(),s=l.width,u=l.height,c=(0,i5.CR)(or(i),4),f=c[0],p=c[1],d=c[2],h=c[3],y=(0,i5.CR)([0,0,+e,+n],4),g=y[0],m=y[1],v=y[2],b=y[3],x=ok(r);if(x.includes("i"))return new o0(g,m,v,b);x.forEach(function(t,r){var i,a;"t"===t&&(m=(i=(0,i5.CR)(0===r?[u+d,+n-u-d]:[0,+n],2))[0],b=i[1]),"r"===t&&(v=(0,i5.CR)([+e-s-h],1)[0]),"b"===t&&(b=(0,i5.CR)([+n-u-f],1)[
10]),"l"===t&&(g=(a=(0,i5.CR)(0===r?[s+p,+e-s-p]:[0,+e],2))[0],v=a[1])});var O=(0,i5.CR)(or(a),4),w=O[0],M=O[1],_=O[2],k=O[3],j=(0,i5.CR)([k+M,w+_],2),A=j[0],E=j[1];return new o0(g+k,m+w,v-A,b-E)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new o0(0,0,0,0)},e.prototype.render=function(t,e){var n,r,i,a,o,l,s,u,c,f,p,d,h,y,g,m,v=this;t.width,t.height,t.position,t.spacing;var b=t.classNamePrefix,x=(0,i5._T)(t,["width","height","position","spacing","classNamePrefix"]),O=(0,i5.CR)(aT(x),1)[0],w=(o=t.width,l=t.height,s=t.position,c=(u=(0,i5.CR)([+o/2,+l/2],2))[0],f=u[1],d=(p=(0,i5.CR)([+c,+f,"center","middle"],4))[0],h=p[1],y=p[2],g=p[3],(m=ok(s)).includes("l")&&(d=(n=(0,i5.CR)([0,"start"],2))[0],y=n[1]),m.includes("r")&&(d=(r=(0,i5.CR)([+o,"end"],2))[0],y=r[1]),m.includes("t")&&(h=(i=(0,i5.CR)([0,"top"],2))[0],g=i[1]),m.includes("b")&&(h=(a=(0,i5.CR)([+l,"bottom"],2))[0],g=a[1]),{x:d,y:h,textAlign:y,textBaseline:g}),M=w.x,_=w.y,k=w.textAlign,j=w.textBaseline;as(!!x.text,ap(e),function(t){var e=lV(lX.text.name,lU.title,b);v.title=t.maybeAppendByClassName(lX.text,"text").attr("className",e).styles(O).call(lK,{x:M,y:_,textAlign:k,textBaseline:j}
1).node()})},e}(al),lJ=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},l0=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},l1=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},l2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i5.ZT)(e,t),e.prototype.render=function(t,n){var r,i=t.x,a=void 0===i?0:i,o=t.y,l=void 0===o?0:o,s=this.getSubShapeStyle(t),u=s.symbol,c=s.size,f=void 0===c?16:c,p=(0,i5._T)(s,["symbol","size"]),d=["base64","url","image"].includes(r=function(t){var e="default";if((0,id.Z)(t)&&t instanceof Image)e="image";else if((0,am.Z)(t))e="symbol";else if((0,tN.Z)(t)){var n=RegExp("data:(image|text)");e=t.match(n)?"base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?"url":"symbol"}return e}(u))?"image":u&&"symbol"===r?"path":null;as(!!d,ap(n),function(t){t.maybeAppendByClassName("marker",d).attr("className","marker ".concat(d,"-marker")).call(function(t){if("image"===d){var n=2*f;t.styles({img:u,width:n,height:n,x:a-f,y:l-f})}else{var n=f/2,r=(0,am.Z)(u)?u:e.getSymbol(u);t.styles((0,i5.pi)({d:null==r?void 0:r(a,l,n)},p))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(t,n){e.MARKER_SYMBOL_MAP.set(t,n)},e.getSymbol=function(t){return e.MARKER_SYMBOL_MAP.get(t)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(al);function l5(t,e,n){return void 0===t&&(t="horizontal"),"horizontal"===t?e:n}l2.registerSymbol("cross",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]}),l2.registerSymbol("hyphen",function(t,e,n){return[["M",t-n,e],["L",t+n,e]]}),l2.registerSymbol("line",l0),l2.registerSymbol("plus",function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]}),l2.registerSymbol("tick",function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]}),l2.registerSymbol("circle",lJ),l2.registerSymbol("point",lJ),l2.registerSymbol("bowtie",function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]}),l2.registerSymbol("hexagon",function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]}),l2.registerSymbol("square",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]}),l2.registerSymbol("diamond",function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]}),l2.registerSymbol("triangle",function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]}),l2.registerSymbol("triangle-down",function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}),l2.registerSymbol("line",l0),l2.registerSymbol("dot",l1),l2.registerSymbol("dash",l1),l2.registerSymbol("smooth",function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]}),l2.registerSymbol("hv",function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]}),l2.registerSymbol("vh",function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]}),l2.registerSymbol("hvh",function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]}),l2.registerSymbol("vhv",function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}),l2.registerSymbol("focus",function(t,e,n){var r=.2*n,i=.7*n;return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"],["M",t-i,e],["L",t-r,e],["M",t+r,e],["L",t+i,e],["M",t,e-i],["L",t,e-r],["M",t,e+r],["L",t,e+i]]}),l2.registerSymbol("hiddenHandle",function(t,e,n){var r=1.4*n;return[["M",t-n,e-r],["L",t+n,e-r],["L",t+n,e+r],["L",t-n,e+r],["Z"]]}),l2.registerSymbol("verticalHandle",function(t,e,n){var r=1.4*n,i=n/2,a=n/6,o=t+.4*r;return[["M",t,e],["L",o,e+i],["L",t+r,e+i],["L",t+r,e-i],["L",o,e-i],["Z"],["M",o,e+a],["L",t+r-2,e+a],["M",o,e-a],["L",t+r-2,e-a]]}),l2.registerSymbol("horizontalHandle",function(t,e,n){var r=1.4*n,i=n/2,a=n/6,o=e+.4*r;return[["M",t,e],["L",t-i,o],["L",t-i,e+r],["L",t+i,e+r],["L",t+i,o],["Z"],["M",t-a,o],["L",t-a,e+r-2],["M",t+a,o],["L",t+a,e+r-2]]});var l3=ad({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),l4={showLabel:!0,formatter:function(t){return t.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},l6=function(t){function e(e){return t.call(this,e,l4)||this}return(0,i5.ZT)(e,t),e.prototype.render=function(t,e){var n=ap(e).maybeAppendByClassName(l3.markerGroup,"g");this.renderMarker(n);var r=ap(e).maybeAppendByClassName(l3.labelGroup,"g");this.renderLabel(r)},e.prototype.renderMarker=function(t){var e=this,n=this.attributes,r=n.orientation,i=n.classNamePrefix,a=n.markerSymbol,o=void 0===a?l5(r,"horizontalHandle","verticalHandle"):a;as(!!o,t,function(t){var n=aP(e.attributes,"marker"),r=(0,i5.pi)({symbol
1:o},n),a=lV(l3.marker.name,lU.handleMarker,i);if(e.marker=t.maybeAppendByClassName(l3.marker,function(){return new l2({style:r,className:a})}).update(r),i){var l=e.marker.node().querySelector(".marker");if(l){var s=lV((l.getAttribute("class")||"").split(" ")[0],lU.handleMarker,i);l.setAttribute("class",s)}}})},e.prototype.renderLabel=function(t){var e=this,n=this.attributes,r=n.showLabel,i=n.orientation,a=n.spacing,o=void 0===a?0:a,l=n.formatter,s=n.classNamePrefix;as(r,t,function(t){var n,r=aP(e.attributes,"label"),a=r.text,u=(0,i5._T)(r,["text"]),c=(null===(n=t.select(l3.marker.class))||void 0===n?void 0:n.node().getBBox())||{},f=c.width,p=c.height,d=(0,i5.CR)(l5(i,[0,(void 0===p?0:p)+o,"center","top"],[(void 0===f?0:f)+o,0,"start","middle"]),4),h=d[0],y=d[1],g=d[2],m=d[3],v=lV(l3.label.name,lU.handleLabel,s);t.maybeAppendByClassName(l3.label,"text").attr("className",v).styles((0,i5.pi)((0,i5.pi)({},u),{x:h,y:y,text:l(a).toString(),textAlign:g,textBaseline:m}))})},e}(al),l8={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},l9=ar({},l8,{}),l7=ar({},l8,aC(l4,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),st=ad({title:"title",html:"html",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend");function se(t,e){var n=(0,i5.CR)(function(t,e){for(var n=1;n<t.length;n+=1){var r=t[n-1],i=t[n];if(e>=r&&e<=i)return[r,i]}return[e,e]}(t,e),2),r=n[0],i=n[1];return{tick:e>(r+i)/2?i:r,range:[r,i]}}var sn=ad({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function sr(t){var e=t.orientation,n=t.size,r=t.length;return l5(e,[r,n],[n,r])}function si(t){var e=t.type,n=(0,i5.CR)(sr(t),2),r=n[0],i=n[1];return"size"===e?[["M",0,i],["L",0+r,0],["L",0+r,i],["Z"]]:[["M",0,i],["L",0,0],["L",0+r,0],["L",0+r,i],["Z"]]}var sa=function(t){function e(e){return t.call(this,e,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return(0,i5.ZT)(e,t),e.prototype.render=function(t,e){var n,r,i,a,o,l,s,u,c,f,p,d,h,y,g,m,v;(function(t,e){var n=aP(e,"track"),r=e.classNamePrefix,i=lV(sn.track.name,lU.track,r);t.maybeAppendByClassName(sn.track,"path").attr("className",i).styles((0,i5.pi)({d:si(e)},n))})(ap(e).maybeAppendByClassName(sn.trackGroup,"g"),t),n=ap(e).maybeAppendByClassName(sn.selectionGroup,"g"),r=aP(t,"selection"),d=(u=t).orientation,h=u.color,y=u.block,g=u.partition,m=(p=(0,am.Z)(h)?Array(20).fill(0).map(function(t,e,n){return h(e/(n.length-1))}):h).length,v=p.map(function(t){return(0,tk.lu)(t).toString()}),i=m?1===m?v[0]:y?(c=Array.from(v),Array(f=g.length).fill(0).reduce(function(t,e,n){var r=c[n%c.length];return t+" ".concat(g[n],":").concat(r).concat(n<f-1?" ".concat(g[n+1],":").concat(r):"")},"l(".concat("horizontal"===d?"0":"270",")"))):v.reduce(function(t,e,n){return t+" ".concat(n/(m-1),":").concat(e)},"l(".concat(l5(d,"0","270"),")")):"",a=t.classNamePrefix,o=lV(sn.selection.name,lU.selection,a),s=(l=n.maybeAppendByClassName(sn.selection,"path").attr("className",o).styles((0,i5.pi)({d:si(t),fill:i},r))).maybeAppendByClassName(sn.clipPath,"path").styles({d:function(t){var e=t.orientation,n=t.range;if(!n)return[];var r=(0,i5.CR)(sr(t),2),i=r[0],a=r[1],o=(0,i5.CR)(n,2),l=o[0],s=o[1],u=l5(e,l*i,0),c=l5(e,0,l*a),f=l5(e,s*i,i),p=l5(e,a,s*a);return[["M",u,c],["L",u,p],["L",f,p],["L",f,c],["Z"]]}(t)}).node(),l.style("clipPath",s)},e}(al),so=function(t){function e(e){var n=t.call(this,e,l7)||this;return n.eventToOffsetScale=new lL({}),n.innerRibbonScale=new lL({}),n.cacheLabelBBox=null,n.cacheHandleBBox=null,n.onHovering=function(t){var e=n.attributes,r=e.data,i=e.block;t.stopPropagation();var a=n.getValueByCanvasPoint(t);if(i){var o=se(r.map(function(t){return t.value}),a).range,l=n.getRealSelection(o);n.showIndicator((o[0]+o[1])/2,"".concat(l[0],"-").concat(l[1])),n.dispatchIndicated(a,o)}else{var s=n.getTickValue(a);n.showIndicator(s,"".concat(n.getRealValue(s))),n.dispatchIndicated(s)}},n.onDragStart=function(t){return function(e){e.stopPropagation(),n.attributes.slidable&&(n.target=t,n.prevValue=n.getTickValue(n.getValueByCanvasPoint(e)),document.addEventListener("mousemove",n.onDragging),document.addEventListener("touchmove",n.onDragging),document.addEventListener("mouseleave",n.onDragEnd),document.addEventListener("mouseup",n.onDragEnd),document.addEventListener("mouseup",n.onDragEnd),document.addEventListener("touchend",n.onDragEnd))}},n.onDragging=function(t){var e=n.target;n.updateMouse();var r=(0,i5.CR)(n.selection,2),i=r[0],a=r[1],o=n.getTickValue(n.getValueByCanvasPoint(t)),l=o-n.prevValue;"start"===e?i!==o&&n.updateSelection(o,a):"end"===e?a!==o&&n.updateSelection(i,o):"ribbon"===e&&0!==l&&(n.prevValue=o,n.updateSelection(l,l,!0))},n.onDragEnd=function(){n.style.cursor="pointer",document.removeEventListener("mousemove",n.onDragging),document.removeEventListener("touchmove",n.onDragging),document.removeEventListener("mouseup",n.onDragEnd),document.removeEventListener("touchend",n.onDragEnd)},n}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"handleOffsetRatio",{get:function(){return this.ifHorizontal(.5,.5)}
1,enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var t=this.attributes;return new o0(0,0,t.width,t.height)},e.prototype.render=function(t,e){var n=this,r=t.classNamePrefix,i=e.className||"legend-continuous";r?e.attr("className","".concat(i," ").concat(r,"legend")):e.className||e.attr("className","legend-continuous");var a=t.showLabel;this.renderTitle(ap(e));var o=this.availableSpace,l=o.x,s=o.y,u=ap(e).maybeAppendByClassName(st.contentGroup,"g").styles({transform:"translate(".concat(l,", ").concat(s,")")});as(!!a,u.maybeAppendByClassName(st.labelGroup,"g").styles({zIndex:1}),function(t){n.renderLabel(t)});var c=u.maybeAppendByClassName(st.ribbonGroup,"g").styles({zIndex:0});this.handlesGroup=u.maybeAppendByClassName(st.handlesGroup,"g").styles({zIndex:2}),this.renderHandles(),this.renderRibbon(c),this.renderIndicator(u),this.adjustLabel(),this.adjustHandles()},Object.defineProperty(e.prototype,"range",{get:function(){var t=this.attributes,e=t.data,n=t.domain;return n?{min:n[0],max:n[1]}:{min:Math.min.apply(Math,(0,i5.ev)([],(0,i5.CR)(e.map(function(t){return t.value})),!1)),max:Math.max.apply(Math,(0,i5.ev)([],(0,i5.CR)(e.map(function(t){return t.value})),!1))}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonScale",{get:function(){var t=this.range,e=t.min,n=t.max;return this.innerRibbonScale.update({domain:[e,n],range:[0,1]}),this.innerRibbonScale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonRange",{get:function(){var t=(0,i5.CR)(this.selection,2),e=t[0],n=t[1],r=this.ribbonScale;return[r.map(e),r.map(n)]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){var t=this.range,e=t.min,n=t.max,r=this.attributes.defaultValue,i=(0,i5.CR)(void 0===r?[e,n]:r,2);return[i[0],i[1]]},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(t,e){return l5(this.attributes.orientation,"function"==typeof t?t():t,"function"==typeof e?e():e)},e.prototype.renderTitle=function(t){var e=this.attributes,n=e.showTitle,r=e.titleText,i=e.width,a=e.height,o=e.classNamePrefix,l=aP(this.attributes,"title"),s=(0,i5.pi)((0,i5.pi)({},l),{width:i,height:a,text:r,classNamePrefix:o}),u=this;t.selectAll(st.title.class).data(n?[r]:[]).join(function(t){return t.append(function(){return new lQ({style:s})}).attr("className",st.title.name).each(function(){u.title=this})},function(t){return t.update(s)},function(t){return t.each(function(){u.title=void 0}).remove()})},Object.defineProperty(e.prototype,"availableSpace",{get:function(){if(this.title)return this.title.getAvailableSpace();var t=this.attributes;return new o0(0,0,t.width,t.height)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelFixedSpacing",{get:function(){return this.attributes.showTick?5:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelPosition",{get:function(){var t=this.attributes;return({vertical:{positive:"right",negative:"left"},horizontal:{positive:"bottom",negative:"top"}})[t.orientation][t.labelDirection]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelBBox",{get:function(){if(!this.attributes.showLabel)return new o0(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var t,e=(null===(t=this.label.querySelector(ag.labelGroup.class))||void 0===t?void 0:t.children.slice(-1)[0]).getBBox(),n=e.width,r=e.height;return this.cacheLabelBBox=new o0(0,0,n,r),this.cacheLabelBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelShape",{get:function(){var t=this.attributes,e=t.showLabel,n=t.labelSpacing;if(!e)return{width:0,height:0,size:0,length:0};var r=this.labelBBox,i=r.width,a=r.height,o=this.ifHorizontal(a,i)+(void 0===n?0:n)+this.labelFixedSpacing,l=this.ifHorizontal(i,a);return{width:i,height:a,size:o,length:l}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonBBox",{get:function(){var t=this.attributes,e=t.showHandle,n=t.ribbonSize,r=this.availableSpace,i=r.width,a=r.height,o=this.labelShape,l=o.size,s=o.length,u=(0,i5.CR)(this.ifHorizontal([a,i],[i,a]),2),c=u[0],f=u[1],p=e?this.handleShape:{size:0,length:0},d=p.size,h=p.length,y=this.handleOffsetRatio,g=0,m=this.labelPosition;g=n||(["bottom","right"].includes(m)?Math.min(c-l,(c-d)/y):c*(1-y)>d?Math.max(c-l,0):Math.max((c-l-d)/y,0));var v=Math.max(h,s),b=f-v,x=(0,i5.CR)(this.ifHorizontal([b,g],[g,b]),2),O=x[0],w=x[1],M=["top","left"].includes(m)?l:0,_=(0,i5.CR)(this.ifHorizontal([v/2,M],[M,v/2]),2);return new o0(_[0],_[1],O,w)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonShape",{get:function(){var t=this.ribbonBBox,e=t.width,n=t.height;return this.ifHorizontal({size:n,length:e},{size:e,length:n})},enumerable:!1,configurable:!0}),e.prototype.renderRibbon=function(t){var e=this.attributes,n=e.data,r=e.type,i=e.orientation,a=e.color,o=e.block,l=e.classNamePrefix,s=aP(this.attributes,"ribbon"),u=this.range,c=u.min,f=u.max,p=this.ribbonBBox,d=p.x,h=p.y,y=this.ribbonShape,g=y.length,m=y.size,v=ar({transform:"translate(".concat(d,", ").concat(h,")"),length:g,size:m,type:r,orientation:i,color:a,block:o,partition:n.map(function(t){return(t.value-c)/(f-c)}),range:this.ribbonRange,classNamePrefix:l},s),b=lV(st.ribbon.name,lU.ribbon,l);this.ribbon=t.maybeAppendByClassName(st.ribbon,function(){return new sa({style:v,className:b})}).update(v)},e.prototype.getHandleClassName=function(t){return"".concat(st.prefix("".concat(t,"-handle")))},e.prototype.renderHandles=function(){var t=this.attributes,e=t.showHandle,n=t.orientation,r=t.classNamePrefix,i=aP(this.attributes,"handle"),a=(0,i5.CR)(this.selection,2),o=a[0],l=a[1],s=(0,i5.pi)((0,i5.pi)({},i),{orientation:n,classNamePrefix:r}),u=i.shape,c="basic"===(void 0===u?"slider":u)?l6:lY,f=this,p=lV(st.handle.name,lU.handle,r);this.handlesGroup.selectAll(st.handle.class).data(e?[{value:o,type:"start"},{value:l,type:"end"}]:[],function(t){return t.type}).join(function(t){return t.append(function(){return new c({style:s,className:p})}).attr("className",function(t){var e=t.type;return"".concat(p," ").concat(f.getHandleClassName(e))}).each(function(t){var e=t.type,n=t.value;this.update({labelText:n}),f["".concat(e,"Handle")]=this,this.addEventListener("pointerdown",f.onDragStart(e))})},function(t){return t.update(s).each(function(t){var e=t.value;this.update({labelText:e})})},function(t){return t.each(function(t){var e=t.type;f["".concat(e,"Handle")]=void 0}).remove()})},e.prototype.adjustHandles=function(){var t=(0,i5.CR)(this.selection,2),e=t[0],n=t[1];this.setHandlePosition("start",e),this.setHandlePosition("end",n);var r=this.attributes,i=r.classNamePrefix,a=r.showHandle,o=aP(this.attributes,"handle").shape;a&&"slider"===(void 0===o?"slider":o)&&i&&(this.startHandle&&this.updateSliderHandleClassNames(this.startHandle,i),this.endHandle&&this.updateSliderHandleClassNames(this.endHandle,i))},e.prototype.updateSliderHandleClassNames=function(t,e){var n=t.container||t,r=n.querySelector(".handle-icon-rect");if(r){var i=lV("handle-icon-rect",lU.handleMarker,e);r.setAttribute("class",i),r.querySelectorAll("line").forEach(function(t){var n=lV((t.getAttribute("class")||"").split(" ")[0],lU.handleMarker,e);t.setAttribute("class",n)})}var a=n.querySelector(".handle-label");if(a){var o=lV("handle-label",lU.handleLabel,e);a.setAttribute("class",o)}},Object.defineProperty(e.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new o0(0,0,0,0);var t=this.startHandle.getBBox(),e=t.width,n=t.height,r=this.endHandle.getBBox(),i=r.width,a=r.height,o=(0,i5.CR)([Math.max(e,i),Math.max(n,a)],2),l=o[0],s=o[1];return this.cacheHandleBBox=new o0(0,0,l,s),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleShape",{get:function(){var t=this.handleBBox,e=t.width,n=t.height,r=(0,i5.CR)(this.ifHorizontal([n,e],[e,n]),2);return{width:e,height:n,size:r[0],length:r[1]}},enumerable:!1,configurable:!0}),e.prototype.setHandlePosition=function(t,e){var n=this.attributes.handleFormatter,r=this.ribbonBBox,i=r.x,a=r.y,o=this.ribbonShape.size,l=this.getOffset(e),s=(0,i5.CR)(this.ifHorizontal([i+l,a+o*this.handleOffsetRatio],[i+o*this.handleOffsetRatio,a+l]),2),u=s[0],c=s[1],f=this.handlesGroup.select(".".concat(this.getHandleClassName(t))).node();null==f||f.update({transform:"translate(".concat(u,", ").concat(c,")"),formatter:n})},e.prototype.renderIndicator=function(t){var e=this.attributes.classNamePrefix,n=aP(this.attributes,"indicator"),r=lV(st.indicator.name,lU.indicator,e);this.indicator=t.maybeAppendByClassName(st.indicator,function(){return new lz({style:n,className:r})}).update(n)},Object.defineProperty(e.prototype,"labelData",{get:function(){var t=this;return this.attributes.data.reduce(function(e,n,r,i){var a,o,l=null!==(a=null==n?void 0:n.id)&&void 0!==a?a:r.toString();if(e.push((0,i5.pi)((0,i5.pi)({},n),{id:l,index:r,type:"value",label:null!==(o=null==n?void 0:n.label)&&void 0!==o?o:n.value.toString(),value:t.ribbonScale.map(n.value)})),r<i.length-1){var s=i[r+1],u=(0,i5.CR)([n.value,s.value],2),c=u[0],f=u[1];e.push((0,i5.pi)((0,i5.pi)({},n),{id:l,index:r,type:"range",range:[c,f],label:[c,f].join("~"),value:t.ribbonScale.map((c+f)/2)}))}return e},[])}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelStyle",{get:function(){var t=(0,i5.CR)(["center","middle"],2),e=t[0],n=t[1],r=this.labelPosition;return"top"===r?n="bottom":"bottom"===r?n="top":"left"===r?e="end":"right"===r&&(e="start"),{labelTextAlign:e,labelTextBaseline:n}},enumerable:!1,configurable:!0}),e.prototype.renderLabel=function(t){var e=this.attributes,n=e.showTick,r=e.labelFilter,i=e.labelFormatter,a=aP(this.attributes,"tick"),o=aP(this.attributes,"label"),l=o.align,s=ar((0,i5.pi)({showLine:!1,showGrid:!1,showTick:void 0!==n&&n,type:"linear",startPos:[0,0],endPos:[0,0],tickDirection:"negative",labelTransform:"rotate(0)"},this.labelStyle),aC(a,"tick"),aC(o,"label"),{data:this.labelData}),u=(0,i5.pi)((0,i5.pi)((0,i5.pi)({},s),{tickFilter:function(t,e,n){return(null==t?void 0:t.type)==="value"&&(!r||r(t,t.index,n.filter(function(t){return"value"!==t.type})))},labelFilter:function(t,e,n){return(null==t?void 0:t.type)===l&&(!r||r(t,t.index,n.filter(function(t){return t.type===l})))},labelFormatter:i}),{labelOverlap:[{type:"hide"}]});this.label=t.maybeAppendByClassName(st.label,function(){return new oE({style:u})}).node(),this.label.update(u,!1)},Object.defineProperty(e.prototype,"labelAxisStyle",{get:function(){var t=this.attributes,e=t.showTick,n=t.labelDirection,r=t.labelSpacing,i=t.tickLength,a=this.ribbonShape.size,o=this.labelPosition,l=this.labelFixedSpacing,s=(0,i5.CR)([0,0,0],3),u=s[0],c=s[1],f=s[2],p=null!=i?i:a;return e?(f=p,c=l,"positive"===n?"right"===o?(u=p,f=p):"bottom"===o&&(u=f):"negative"===n&&("top"===o?u=a:"left"===o&&(u=a))):"positive"===n?"right"===o?c=p:"bottom"===o&&(u=a+l,c=r):"negative"===n&&("left"===o?c=r:"top"===o&&(c=r)),{offset:u,spacing:c,tickLength:f}},enumerable:!1,configurable:!0}),e.prototype.adjustLabel=function(){if(this.attributes.showLabel){var t=this.ribbonBBox,e=t.x,n=t.y,r=t.width,i=t.height,a=this.labelAxisStyle,o=a.offset,l=a.spacing,s=a.tickLength,u=(0,i5.CR)(this.ifHorizontal([[e,n+o],[e+r,n+o]],[[e+o,n+i],[e+o,n]]),2),c=u[0],f=u[1];this.label.update({startPos:c,endPos:f,tickLength:s,labelSpacing:l},!1)}},e.prototype.bindEvents=function(){this.style.cursor="pointer",this.ribbon.on("pointerdown",this.onDragStart("ribbon")),this.ribbon.on("pointermove",this.onHovering),this.addEventListener("pointerout",this.hideIndicator)},e.prototype.showIndicator=function(t,e){if(void 0===e&&(e="".concat(t)),!this.attributes.showIndicator||"number"!=typeof t){this.hideIndicator();return}var n=this.range,r=n.min,i=n.max,a=this.ribbonBBox,o=a.x,l=a.y,s=(0,tT.Z)(t,r,i),u=this.getOffset(s),c=this.ifHorizontal([u+o,l],[o,u+l]);this.indicator.update({x:c[0],y:c[1],position:this.ifHorizontal("top","left"),labelText:e}),i3(this.indicator.node())},e.prototype.hideIndicator=function(){i4(this.indicator.node())},e.prototype.updateMouse=function(){this.attributes.slidable&&(this.style.cursor="grabbing")},e.prototype.setSelection=function(t,e){this.updateSelection(t,e)},e.prototype.updateSelection=function(t,e,n){void 0===n&&(n=!1);var r,i,a,o,l,s,u,c,f,p,d,h,y,g,m,v,b,x,O,w=(0,i5.CR)(this.selection,2),M=w[0],_=w[1],k=(0,i5.CR)([t,e],2),j=k[0],A=k[1];n&&(j+=M,A+=_);var E=this.range,S=E.min,P=E.max;j=(O=(0,i5.CR)((r=[S,P],i=[j,A],a=this.selection,void 0===o&&(o=4),u=(s=(0,i5.CR)(r,2))[0],c=s[1],p=(f=(0,i5.CR)(i,2))[0],d=f[1],y=(h=(0,i5.CR)(a,2))[0],g=h[1],v=(m=(0,i5.CR)([p,d],2))[0],x=(b=m[1])-v,(v>b&&(v=(l=(0,i5.CR)([b,v],2))[0],b=l[1]),x>c-u)?[u,c]:v<u?y===u&&g===b?[u,b]:[u,x+u]:b>c?g===c&&y===v?[v,c]:[c-x,c]:[v,b]),2))[0],A=O[1],this.update({defaultValue:[j,A]}),this.dispatchSelection()},Object.defineProperty(e.prototype,"step",{get:function(){var t=this.attributes.step,e=void 0===t?1:t,n=this.range,r=n.min,i=n.max;return(0,oW.Z)(e)?lN((i-r)*.01,0):e},enumerable:!1,configurable:!0}),e.prototype.getTickValue=function(t){var e,n,r=this.attributes,i=r.data,a=r.block,o=this.range.min;return a?se(i.map(function(t){return t.value}),t).tick:(n=Math.round((t-o)/(e=this.step)),o+n*e)},e.prototype.getValueByCanvasPoint=function(t){var e=this.range,n=e.min,r=e.max,i=(0,i5.CR)(this.ribbon.node().getPosition(),2),a=i[0],o=i[1],l=this.ifHorizontal(a,o),s=this.ifHorizontal.apply(this,(0,i5.ev)([],(0,i5.CR)(lI(t)),!1));return(0,tT.Z)(this.getOffset(s-l,!0),n,r)},e.prototype.getOffset=function(t,e){void 0===e&&(e=!1);var n=this.range,r=n.min,i=n.max,a=this.ribbonShape.length,o=this.eventToOffsetScale;return(o.update({domain:[r,i],range:[0,a]}),e)?o.invert(t):o.map(t)},e.prototype.getRealSelection=function(t){var e=this.range.max,n=(0,i5.CR)(t,2),r=n[0],i=n[1];return this.ifHorizontal([r,i],[e-i,e-r])},e.prototype.getRealValue=function(t){var e=this.range.max;return this.ifHorizontal(t,e-t)},e.prototype.dispatchSelection=function(){var t=this.getRealSelection(this.selection),e=new tk.Aw("valuechange",{detail:{value:t}});this.dispatchEvent(e)},e.prototype.dispatchIndicated=function(t,e){var n=this,r=this.range.max,i=this.ifHorizontal(function(){return{value:t,range:e}},function(){return{value:r-t,range:e?n.getRealSelection(e):void 0}}),a=new tk.Aw("indicate",{detail:i});this.dispatchEvent(a)},e}(al);class sl extends rA{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(t){super(t)}map(t){if(!oZ(t))return this.options.unknown;let e=oR(this.thresholds,t,0,this.n);return this.options.range[e]}invert(t){let{range:e}=this.options,n=e.indexOf(t),r=this.thresholds;return[r[n-1],r[n]]}clone(){return new sl(this.options)}rescale(){let{domain:t,range:e}=this.options;this.n=Math.min(t.length,e.length-1),this.thresholds=t}}function ss(t){return(0,tL.Z)(t)?0:iL(t)?t.length:Object.keys(t).length}var su=function(t,e){if(!iL(t))return -1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,i=0;i<t.length;i++)if(t[i]===e){r=i;break}return r};function sc(t){return 1e-14>Math.abs(t)?t:parseFloat(t.toFixed(14))}let sf=[1,5,2,2.5,4,3],sp=100*Number.EPSILON,sd=(t,e,n=5,r=!0,i=sf,a=[.25,.2,.5,.05])=>{let o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!o)return[];if(e-t<1e-15||1===o)return[t];let l={score:-2,lmin:0,lmax:0,lstep:0},s=1;for(;s<1/0;){for(let n=0;n<i.length;n+=1){let c=i[n],f=function(t,e,n){let r=ss(e);return 1-su(e,t)/(r-1)-n+1}(c,i,s);if(a[0]*f+a[1]+a[2]+a[3]<l.score){s=1/0;break}let p=2;for(;p<1/0;){var u;let n=(u=p)>=o?2-(u-1)/(o-1):1;if(a[0]*f+a[1]+a[2]*n+a[3]<l.score)break;let d=Math.ceil(Math.log10((e-t)/(p+1)/s/c));for(;d<1/0;){let u=s*c*10**d,h=function(t,e,n){let r=e-t;return n>r?1-((n-r)/2)**2/(.1*r)**2:1}(t,e,u*(p-1));if(a[0]*f+a[1]*h+a[2]*n+a[3]<l.score)break;let y=Math.floor(e/u)*s-(p-1)*s,g=Math.ceil(t/u)*s;if(y<=g){let n=g-y;for(let f=0;f<=n;f+=1){let n=u/s*(y+f),d=n+u*(p-1),h=function(t,e,n,r,i,a){let o=ss(e),l=su(e,t),s=0,u=(r%a+a)%a;return(u<sp||a-u<sp)&&r<=0&&i>=0&&(s=1),1-l/(o-1)-n+s}(c,i,s,n,d,u),g=1-.5*((e-d)**2+(t-n)**2)/(.1*(e-t))**2,m=function(t,e,n,r,i,a){let o=(t-1)/(a-i),l=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/l,l/o)}(p,o,t,e,n,d),v=a[0]*h+a[1]*g+a[2]*m+1*a[3];v>l.score&&(!r||n<=t&&d>=e)&&(l.lmin=n,l.lmax=d,l.lstep=u,l.score=v)}}d+=1}p+=1}}s+=1}let c=sc(l.lmax),f=sc(l.lmin),p=sc(l.lstep),d=Math.floor(Math.round((c-f)/p*1e12)/1e12)+1,h=Array(d);h[0]=sc(f);for(let t=1;t<d;t+=1)h[t]=sc(h[t-1]+p);return h};class sh extends sl{getDefaultOptions(){return{domain:[0,1],range:[.5],nice:!1,tickCount:5,tickMethod:sd}}constructor(t){super(t)}nice(){let{nice:t}=this.options;if(t){let[t,e,n]=this.getTickMethodOptions();this.options.domain=oH(t,e,n)}}getTicks(){let{tickMethod:t}=this.options,[e,n,r]=this.getTickMethodOptions();return t(e,n,r)}getTickMethodOptions(){let{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}rescale(){this.nice();let{range:t,domain:e}=this.options,[n,r]=e;this.n=t.length-1,this.thresholds=Array(this.n);for(let t=0;t<this.n;t+=1)this.thresholds[t]=((t+1)*r-(t-this.n)*n)/(this.n+1)}invert(t){let[e,n]=super.invert(t),[r,i]=this.options.domain;return void 0===e&&void 0===n?[e,n]:[e||r,n||i]}getThresholds(){return this.thresholds}clone(){return new sh(this.options)}}class sy extends sl{getDefaultOptions(){return{domain:[],range:[],tickCount:5,unknown:void 0,tickMethod:sd}}constructor(t){super(t)}rescale(){let{domain:t,range:e}=this.options;this.n=e.length-1,this.thresholds=function(t,e,n=!1){n||t.sort((t,e)=>t-e);let r=[];for(let n=1;n<e;n+=1)r.push(function(t,e){let n=t.length;if(!n)return;if(n<2)return t[n-1];let r=(n-1)*e,i=Math.floor(r),a=t[i];return a+(t[i+1]-a)*(r-i)}(t,n/e));return r}(t,this.n+1,!1)}invert(t){let[e,n]=super.invert(t),{domain:r}=this.options,i=r[0],a=r[r.length-1];return void 0===e&&void 0===n?[e,n]:[e||i,n||a]}getThresholds(){return this.thresholds}clone(){return new sy(this.options)}getTicks(){let{tickCount:t,domain:e,tickMethod:n}=this.options,r=e.length-1;return n(e[0],e[r],t)}}var sg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function sm(t){let{domain:e}=t.getOptions(),[n,r]=[e[0],iT(e)];return[n,r]}let sv=t=>{let{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:l,style:s,crossPadding:u,padding:c}=t,f=sg(t,["labelFormatter","layout","order","orientation","position","size","title","style","crossPadding","padding"]);return({scales:r,value:i,theme:o,scale:u})=>{let{bbox:c}=i,{x:p,y:d,width:h,height:y}=c,g=o7(a,n),{legendContinuous:m={}}=o,v=li(Object.assign({},m,Object.assign(Object.assign(Object.assign({titleText:o9(l),labelAlign:"value",labelFormatter:"string"==typeof e?t=>v7(e)(t.label):e},function(t,e,n,r,i,a){let o=ln(t,"color"),l=function(t,e,n){var r,i,a;let{size:o}=e,l=lr(t,e,n);return r=l,i=o,a=l.orientation,(r.size=i,"horizontal"===a||0===a)?r.height=i:r.width=i,r}(n,r,i);if(o instanceof sl){let{range:t}=o.getOptions(),[e,n]=sm(o);return o instanceof sh||o instanceof sy?function(t,e,n,r,i){let a=e.thresholds;return Object.assign(Object.assign({},t),{color:i,data:[n,...a,r].map(t=>({value:t/r,label:String(t),domainValue:t}))})}(l,o,e,n,t):function(t,e,n){let r=[-1/0,...e.thresholds,1/0].map((t,e)=>({value:e,domainValue:t,label:t}));return Object.assign(Object.assign({},t),{data:r,color:n,labelFilter:(t,e)=>e>0&&e<r.length-1})}(l,o,t)}return function(t,e,n,r,i,a){let{length:o}=t,l=i.color?a.legendContinuous.ribbonFill||"black":a.color,s=e||function(t,e){let n=t.getOptions(),r=t.clone();return r.update(Object.assign(Object.assign({},n),{range:[(0,tk.lu)(e).toString()]})),r}(n||r,l),[u,c]=sm(s),[f,p]=sm([e,n,r].filter(t=>void 0!==t).find(t=>!(t instanceof r$)));return Object.assign(Object.assign({},t),{domain:[f,p],data:s.getTicks().map(t=>({value:t})),color:Array(Math.floor(o)).fill(0).map((t,e)=>{let n=(c-u)/(o-1)*e+u,i=s.map(n)||l,a=r?r.map(n):1;return i.replace(/rgb[a]*\(([\d]{1,3}) *, *([\d]{1,3}) *, *([\d]{1,3})[\S\s]*\)/,(t,e,n,r)=>`rgba(${e}, ${n}, ${r}, ${a})`)})})}(l,o,ln(t,"size"),ln(t,"opacity"),e,a)}(r,u,i,t,sv,o)),s),{classNamePrefix:"g2-"}
1),f)),b=new lt({style:Object.assign(Object.assign({x:p,y:d,width:h,height:y},g),{subOptions:v})});return b.appendChild(new so({className:"legend-continuous",style:v})),b}};sv.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]};let sb=t=>(...e)=>sv(Object.assign({},{block:!0},t))(...e);sb.props=Object.assign(Object.assign({},sv.props),{defaultPosition:"top",defaultOrientation:"horizontal"});let sx=t=>e=>{let{scales:n}=e;return sv(Object.assign({},{type:"size",data:ln(n,"size").getTicks().map((t,e)=>({value:t,label:String(t)}))},t))(e)};sx.props=Object.assign(Object.assign({},sv.props),{defaultPosition:"top",defaultOrientation:"horizontal"});let sO=t=>sx(Object.assign({},{block:!0},t));sO.props=Object.assign(Object.assign({},sv.props),{defaultPosition:"top",defaultOrientation:"horizontal"});var sw=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let sM=({static:t=!1}={})=>e=>{let{width:n,height:r,depth:i,paddingLeft:a,paddingRight:o,paddingTop:l,paddingBottom:s,padding:u,inset:c,insetLeft:f,insetTop:p,insetRight:d,insetBottom:h,margin:y,marginLeft:g,marginBottom:m,marginTop:v,marginRight:b,data:x,coordinate:O,theme:w,component:M,interaction:_,x:k,y:j,z:A,key:E,frame:S,labelTransform:P,parentKey:C,clip:T,viewStyle:R,title:L}=e,N=sw(e,["width","height","depth","paddingLeft","paddingRight","paddingTop","paddingBottom","padding","inset","insetLeft","insetTop","insetRight","insetBottom","margin","marginLeft","marginBottom","marginTop","marginRight","data","coordinate","theme","component","interaction","x","y","z","key","frame","labelTransform","parentKey","clip","viewStyle","title"]);return[Object.assign(Object.assign({type:"standardView",x:k,y:j,z:A,key:E,width:n,height:r,depth:i,padding:u,paddingLeft:a,paddingRight:o,paddingTop:l,inset:c,insetLeft:f,insetTop:p,insetRight:d,insetBottom:h,paddingBottom:s,theme:w,coordinate:O,component:M,interaction:_,frame:S,labelTransform:P,margin:y,marginLeft:g,marginBottom:m,marginTop:v,marginRight:b,parentKey:C,clip:T,style:R},!t&&{title:L}),{marks:[Object.assign(Object.assign(Object.assign({},N),{key:`${E}-0`,data:x}),t&&{title:L})]})]};sM.props={};var s_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function sk(t){return(e,...n)=>rO({},t(e,...n),e)}function sj(t){return(e,...n)=>rO({},e,t(e,...n))}function sA(t,e){if(!t)return e;if(Array.isArray(t))return t;if(!(t instanceof Date)&&"object"==typeof t){let{value:n=e}=t;return Object.assign(Object.assign({},s_(t,["value"])),{value:n})}return t}var sE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let sS=()=>t=>{let{children:e}=t,n=sE(t,["children"]);if(!Array.isArray(e))return[];let{data:r,scale:i={},axis:a={},legend:o={},encode:l={},transform:s=[],slider:u={}}=n,c=sE(n,["data","scale","axis","legend","encode","transform","slider"]),f=e.map(t=>{var{data:e,scale:n={},axis:c={},legend:f={},encode:p={},transform:d=[],slider:h={}}=t,y=sE(t,["data","scale","axis","legend","encode","transform","slider"]);return Object.assign({data:sA(e,r),scale:rO({},i,n),encode:rO({},l,p),transform:[...s,...d],axis:!!c&&!!a&&rO({},a,c),legend:!!f&&!!o&&rO({},o,f),slider:rO({},u,h)},y)});return[Object.assign(Object.assign({},c),{marks:f,type:"standardView",slider:u})]};function sP([t,e],[n,r]){return[t-n,e-r]}function sC([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function sT([t,e]){return Math.atan2(e,t)}function sR([t,e]){return sT([t,e])+Math.PI/2}function sL(t,e){let n=sT(t),r=sT(e);return n<r?r-n:2*Math.PI-(n-r)}function sN(t){let e=1/0,n=-1/0,r=1/0,i=-1/0;
1for(let[a,o]of t)e=Math.min(a,e),n=Math.max(a,n),r=Math.min(o,r),i=Math.max(o,i);let a=n-e,o=i-r;return[e,r,a,o]}function sI([t,e],[n,r]){return[(t+n)/2,(e+r)/2]}function sF(t,e){for(let[n,r]of Object.entries(e))t.style(n,r)}function sB(t,e,n,r,i){let a=sT(sP(r,e))+Math.PI,o=sT(sP(r,n))+Math.PI;return t.arc(r[0],r[1],i,a,o,o-a<0),t}function sD(t,e,n,r="y",i="between",a=!1){let o="y"===r||!0===r?n:e,l=iC(o),[s,u]=oJ(l,t=>o[t]),c=new oU({domain:[s,u],range:[0,100]}),f=t=>(0,tR.Z)(o[t])&&!Number.isNaN(o[t])?c.map(o[t]):0,p={between:e=>`${t[e]} ${f(e)}%`,start:e=>0===e?`${t[e]} ${f(e)}%`:`${t[e-1]} ${f(e)}%, ${t[e]} ${f(e)}%`,end:e=>e===t.length-1?`${t[e]} ${f(e)}%`:`${t[e]} ${f(e)}%, ${t[e+1]} ${f(e)}%`},d=l.sort((t,e)=>f(t)-f(e)).map(p[i]||p.between).join(",");return`linear-gradient(${"y"===r||!0===r?a?180:90:a?90:0}deg, ${d})`}function sz(t){let[e,n,r,i]=t;return[i,e,n,r]}function s$(t,e,n){let[r,i,,a]=iV(t)?sz(e):e,[o,l]=n,s=t.getCenter(),u=sR(sP(r,s)),c=sR(sP(i,s)),f=c===u&&o!==l?c+2*Math.PI:c;return{startAngle:u+1e-4,endAngle:(f-u>=0?f:2*Math.PI+f)-1e-4,innerRadius:sC(a,s),outerRadius:sC(r,s)}}function sW(t){let{colorAttribute:e,opacityAttribute:n=e}=t;return`${n}Opacity`}function sZ(t,e){if(!iU(t))return"";let n=t.getCenter(),{transform:r}=e;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function sH(t){if(1===t.length)return t[0];let[[e,n,r=0],[i,a,o=0]]=t;return[(e+i)/2,(n+a)/2,(r+o)/2]}function sq(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})}function sG(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function sY(t){return function(){return t}}function sV(t){this._context=t}function sU(t){return new sV(t)}sS.props={},Array.prototype.slice,sV.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)}}};let sX=Math.PI,sK=2*sX,sQ=sK-1e-6;function sJ(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class s0{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?sJ:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return sJ;let n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,a){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,l=n-t,s=r-e,u=a-t,c=o-e,f=u*u+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>1e-6){if(Math.abs(c*l-s*u)>1e-6&&i){let p=n-a,d=r-o,h=l*l+s*s,y=Math.sqrt(h),g=Math.sqrt(f),m=i*Math.tan((sX-Math.acos((h+f-(p*p+d*d))/(2*y*g)))/2),v=m/g,b=m/y;Math.abs(v-1)>1e-6&&this._append`L${t+v*u},${e+v*c}`,this._append`A${i},${i},0,0,${+(c*p>u*d)},${this._x1=t+b*l},${this._y1=e+b*s}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,n,r,i,a){if(t=+t,e=+e,a=!!a,(n=+n)<0)throw Error(`negative radius: ${n}`);
1let o=n*Math.cos(r),l=n*Math.sin(r),s=t+o,u=e+l,c=1^a,f=a?r-i:i-r;null===this._x1?this._append`M${s},${u}`:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-u)>1e-6)&&this._append`L${s},${u}`,n&&(f<0&&(f=f%sK+sK),f>sQ?this._append`A${n},${n},0,1,${c},${t-o},${e-l}A${n},${n},0,1,${c},${this._x1=s},${this._y1=u}`:f>1e-6&&this._append`A${n},${n},0,${+(f>=sX)},${c},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function s1(){return new s0}function s2(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{let t=Math.floor(n);if(!(t>=0))throw RangeError(`invalid digits: ${n}`);e=t}return t},()=>new s0(e)}function s5(t){return t[0]}function s3(t){return t[1]}function s4(t,e){var n=sY(!0),r=null,i=sU,a=null,o=s2(l);function l(l){var s,u,c,f=(l=sG(l)).length,p=!1;for(null==r&&(a=i(c=o())),s=0;s<=f;++s)!(s<f&&n(u=l[s],s,l))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+t(u,s,l),+e(u,s,l));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?s5:sY(t),e="function"==typeof e?e:void 0===e?s3:sY(e),l.x=function(e){return arguments.length?(t="function"==typeof e?e:sY(+e),l):t},l.y=function(t){return arguments.length?(e="function"==typeof t?t:sY(+t),l):e},l.defined=function(t){return arguments.length?(n="function"==typeof t?t:sY(!!t),l):n},l.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),l):i},l.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),l):r},l}function s6(t){let e="function"==typeof t?t:t.render;return class extends tk.b_{connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){e(this)}}}s1.prototype=s0.prototype;var s8=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let s9=s6(t=>{let e;let n=t.attributes,{className:r,class:i,transform:a,rotate:o,labelTransform:l,labelTransformOrigin:s,x:u,y:c,x0:f=u,y0:p=c,text:d,background:h,connector:y,startMarker:g,endMarker:m,coordCenter:v,innerHTML:b}=n,x=s8(n,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if(t.style.transform=`translate(${u}, ${c})`,[u,c,f,p].some(t=>!(0,tR.Z)(t))){t.children.forEach(t=>t.remove());return}let O=rX(x,"background"),{padding:w}=O,M=s8(O,["padding"]),_=rX(x,"connector"),{points:k=[]}=_,j=s8(_,["points"]);e=b?r2(t).maybeAppend("html","html",r).style("zIndex",0).style("innerHTML",b).call(sF,Object.assign({transform:l,transformOrigin:s},x)).node():r2(t).maybeAppend("text","text").style("zIndex",0).style("text",d).call(sF,Object.assign({textBaseline:"middle",transform:l,transformOrigin:s},x)).node();let A=r2(t).maybeAppend("background","rect").style("zIndex",-1).call(sF,function(t,e=[]){let[n=0,r=0,i=n,a=r]=e,o=t.parentNode,l=o.getEulerAngles();o.setEulerAngles(0);let{min:s,halfExtents:u}=t.getLocalBounds(),[c,f]=s,[p,d]=u;return o.setEulerAngles(l),{x:c-a,y:f-n,width:2*p+a+r,height:2*d+n+i}}(e,w)).call(sF,h?M:{}).node(),E=+f<v[0],S=+p<v[1],P=function(t,e,n,r,i=!0,a=!0){let o=t=>s4()(t);if(!e[0]&&!e[1])return o([function(t){let{min:[e,n],max:[r,i]}=t.getLocalBounds(),a=0,o=0;return e>0&&(a=e),r<0&&(a=r),n>0&&(o=n),i<0&&(o=i),[a,o]}(t),e]);if(!n.length)return o([[0,0],e]);let[l,s]=n,u=[...s],c=[...l];if(s[0]!==l[0]){let t=i?-4:4;u[1]=s[1],a&&!i&&(u[0]=Math.max(l[0],s[0]-t),s[1]<l[1]?c[1]=u[1]:(c[1]=l[1],c[0]=Math.max(c[0],u[0]-t))),a||i||(u[0]=Math.max(l[0],s[0]-t),s[1]>l[1]?c[1]=u[1]:(c[1]=l[1],c[0]=Math.max(c[0],u[0]-t))),!a&&i&&(u[0]=Math.min(l[0],s[0]-t),s[1]>l[1]?c[1]=u[1]:(c[1]=l[1],c[0]=Math.min(c[0],u[0]-t))),a&&i&&(u[0]=Math.min(l[0],s[0]-t),s[1]<l[1]?c[1]=u[1]:(c[1]=l[1],c[0]=Math.min(c[0],u[0]-t)))}return o([s,u,c,l,e])}(A,[+f-+u,+p-+c],k,0,E,S),C=g&&new l2({id:"startMarker",style:Object.assign({x:0,y:0},rX(x,"startMarker"))}),T=m&&new l2({id:"endMarker",style:Object.assign({x:0,y:0},rX(x,"endMarker"))});r2(t).maybeAppend("connector","path").style("zIndex",0).style("d",P).style("markerStart",C).style("markerEnd",T).call(s
1F,y?j:{})});function s7(t,e){let n;let r=-1,i=-1;if(void 0===e)for(let e of t)++i,null!=e&&(n<e||void 0===n&&e>=e)&&(n=e,r=i);else for(let a of t)null!=(a=e(a,++i,t))&&(n<a||void 0===n&&a>=a)&&(n=a,r=i);return r}function ut(t,e,n,r){let i=e.length/2,a=e.slice(0,i),o=e.slice(i),l=s7(a,(t,e)=>Math.abs(t[1]-o[e][1])),s=t=>[a[t][0],(a[t][1]+o[t][1])/2],u=s(l=Math.max(Math.min(l,i-2),1)),c=s(l-1),f=sT(sP(s(l+1),c))/Math.PI*180;return{x:u[0],y:u[1],transform:`rotate(${f})`,textAlign:"center",textBaseline:"middle"}}function ue(t,e,n,r){let{bounds:i}=n,[[a,o],[l,s]]=i,u=l-a,c=s-o;return(t=>{let{x:e,y:r}=t,i=rJ(n.x,u),l=rJ(n.y,c);return Object.assign(Object.assign({},t),{x:(i||e)+a,y:(l||r)+o})})("left"===t?{x:0,y:c/2,textAlign:"start",textBaseline:"middle"}:"right"===t?{x:u,y:c/2,textAlign:"end",textBaseline:"middle"}:"top"===t?{x:u/2,y:0,textAlign:"center",textBaseline:"top"}:"bottom"===t?{x:u/2,y:c,textAlign:"center",textBaseline:"bottom"}:"top-left"===t?{x:0,y:0,textAlign:"start",textBaseline:"top"}:"top-right"===t?{x:u,y:0,textAlign:"end",textBaseline:"top"}:"bottom-left"===t?{x:0,y:c,textAlign:"start",textBaseline:"bottom"}:"bottom-right"===t?{x:u,y:c,textAlign:"end",textBaseline:"bottom"}:{x:u/2,y:c/2,textAlign:"center",textBaseline:"middle"})}function un(t,e,n,r){let{y:i,y1:a,autoRotate:o,rotateToAlignArc:l}=n,s=r.getCenter(),{innerRadius:u,outerRadius:c,startAngle:f,endAngle:p}=s$(r,e,[i,a]),d="inside"===t?(f+p)/2:p,h=ui(d,o,l);return Object.assign(Object.assign({},(()=>{let[n,r]=e,[i,a]="inside"===t?ur(s,d,u+(c-u)*.5):sI(n,r);return{x:i,y:a}})()),{textAlign:"inside"===t?"center":"start",textBaseline:"middle",rotate:h})}function ur(t,e,n){return[t[0]+Math.sin(e)*n,t[1]-Math.cos(e)*n]}function ui(t,e,n){if(!e)return 0;let r=n?0:0>Math.sin(t)?90:-90;return t/Math.PI*180+r}function ua(t){return void 0===t?null:t}function uo(t,e,n,r){let{bounds:i}=n,[a]=i;return{x:ua(a[0]),y:ua(a[1])}}function ul(t,e,n,r){let{bounds:i}=n;return 1===i.length?uo(t,e,n,r):(iX(r)?un:i0(r)?function(t,e,n,r){let{y:i,y1:a,autoRotate:o,rotateToAlignArc:l,radius:s=.5,offset:u=0}=n,c=s$(r,e,[i,a]),{startAngle:f,endAngle:p}=c,d=r.getCenter(),h=(f+p)/2,y=ui(h,o,l),{innerRadius:g,outerRadius:m}=c,[v,b]=ur(d,h,g+(m-g)*s+u);return Object.assign({x:v,y:b},{textAlign:"center",textBaseline:"middle",rotate:y})}:ue)(t,e,n,r)}function us(t,e,n){let{innerRadius:r,outerRadius:i}=s$(n,t,[e.y,e.y1]);return r+(i-r)}function uu(t,e,n){let{startAngle:r,endAngle:i}=s$(n,t,[e.y,e.y1]);return(r+i)/2}function uc(t,e,n,r){let{autoRotate:i,rotateToAlignArc:a,offset:o=0,connector:l=!0,connectorLength:s=o,connectorLength2:u=0,connectorDistance:c=0}=n,f=r.getCenter(),p=uu(e,n,r),d=Math.sin(p)>0?1:-1,h=ui(p,i,a),y={textAlign:d>0||iX(r)?"start":"end",textBaseline:"middle",rotate:h},g=us(e,n,r),[[m,v],[b,x],[O,w]]=function(t,e,n,r,i){let[a,o]=ur(t,e,n),[l,s]=ur(t,e,r);return[[a,o],[l,s],[l+(Math.sin(e)>0?1:-1)*i,s]]}(f,p,g,g+(l?s:o),l?u:0),M=l?+c*d:0,_=O+M;return Object.assign(Object.assign({x0:m,y0:v,x:O+M,y:w},y),{connector:l,connectorPoints:[[b-_,x-w],[O-_,w-w]]})}function uf(t,e,n,r){let{bounds:i}=n;return 1===i.length?uo(t,e,n,r):(iX(r)?un:i0(r)?uc:ue)(t,e,n,r)}function up(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ud(t,...e){if("function"!=typeof t[Symbol.iterator])throw TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&2!==n.length||e.length>1){var r;let i=Uint32Array.from(t,(t,e)=>e);return e.length>1?(e=e.map(e=>t.map(e)),i.sort((t,n)=>{for(let r of e){let e=uy(r[t],r[n]);if(e)return e}})):(n=t.map(n),i.sort((t,e)=>uy(n[t],n[e]))),r=t,Array.from(i,t=>r[t])}return t.sort(uh(n))}function uh(t=up){if(t===up)return uy;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,n)=>{let r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}function uy(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function ug(t,e={}){let{labelHeight:n=14,height:r}=e,i=ud(t,t=>t.y),a=i.length,o=Array(a);for(let t=0;t<a;t++){let{y:e}=i[t];o[t]={y:e,y1:e+n,labels:[e]}}let l=!0;for(;l;){l=!1;for(let t=o.length-1;t>0;t--){let e=o[t],n=o[t-1];if(n.y1>e.y){l=!0,n.labels.push(...e.labels),o.splice(t,1),n.y1+=e.y1-e.y;let i=n.y1-n.y;n.y1=Math.max(Math.min(n.y1,r),i),n.y=n.y1-i}}}let s=0;for(let t of o){let{y:e,labels:r}=t,a=e-n;for(let t of r){let e=i[s++],r=a+n-t;e.connectorPoints[0][1]-=r,e.y=a+n,a+=n}}}function um(t,e){let n=ud(t,t=>t.y),{height:r,labelHeight:i=14}=e,a=Math.ceil(r/i);if(n.length<=a)return ug(n,e);let o=[];for(let t=0;t<n.length;t++)t<n.length-a?(n[t].opacity=0,n[t].connector=!1):o.push(n[t]);ug(o,e)}var uv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ub=new WeakMap;function ux(t,e,n,r,i,a){if(!i0(r))return{};if(ub.has(e))return ub.get(e);let o=a.map(t=>(function(t,e,n){let{connectorLength:r,connectorLength2:i,connectorDistance:a}=e,o=uv(uc("outside",t,e,n),[]),l=n.getCenter(),s=us(t,e,n),u=Math.sin(uu(t,e,n))>0?1:-1,c=l[0]+(s+r+i+ +a)*u,{x:f}=o,p=c-f;return o.x+=p,o.connectorPoints[0][0]-=p,o})(t,n,r)),{width:l,height:s}=r.getOptions(),u=o.filter(t=>
1t.x<l/2),c=o.filter(t=>t.x>=l/2),f=Object.assign(Object.assign({},i),{height:s});return um(u,f),um(c,f),o.forEach((t,e)=>ub.set(a[e],t)),ub.get(e)}var uO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function uw(t,e,n,r){if(!i0(r))return{};let{connectorLength:i,connectorLength2:a,connectorDistance:o}=n,l=uO(uc("outside",e,n,r),[]),{x0:s,y0:u}=l,c=r.getCenter(),f=function(t){if(i0(t)){let[e,n]=t.getSize(),r=t.getOptions().transformations.find(t=>"polar"===t[0]);if(r)return Math.max(e,n)/2*r[4]}return 0}(r),p=sR([s-c[0],u-c[1]]),d=Math.sin(p)>0?1:-1,[h,y]=ur(c,p,f+i);return l.x=h+(a+o)*d,l.y=y,l}var uM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let u_=(t,e)=>{let{coordinate:n,theme:r}=e,{render:i}=t;return(e,a,o,l)=>{let{text:s,x:u,y:c,transform:f="",transformOrigin:p,className:d=""}=a,h=uM(a,["text","x","y","transform","transformOrigin","className"]),y=function(t,e,n,r,i,a){let{position:o}=e,{render:l}=i,s=void 0!==o?o:i0(n)?"inside":iV(n)?"right":"top",u=r[l?"htmlLabel":"inside"===s?"innerLabel":"label"],c=Object.assign({},u,e),f=V[sq(s)];if(!f)throw Error(`Unknown position: ${s}`);return Object.assign(Object.assign({},u),f(s,t,c,n,i,a))}(e,a,n,r,t,l),{rotate:g=0,transform:m=""}=y,v=uM(y,["rotate","transform"]);return r2(new s9).call(sF,v).style("text",`${s}`).style("className",`${d} g2-label`).style("innerHTML",i?i(s,a.datum,a.index):void 0).style("labelTransform",`${m} rotate(${+g}) ${f}`.trim()).style("labelTransformOrigin",p).style("coordCenter",n.getCenter()).call(sF,h).node()}};u_.props={defaultMarker:"point"};var uk=function(t,e,n){var r=t,i=(0,tN.Z)(e)?e.split("."):e;return i.forEach(function(t,e){e<i.length-1?((0,id.Z)(r[t])||(r[t]=(0,tR.Z)(i[e+1])?[]:{}),r=r[t]):r[t]=n}),t},uj=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})},uA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uE={fill:"#fff",stroke:"#aaa",lineDash:"4 3",lineWidth:.5,fillOpacity:1,strokeOpacity:1},uS=(t,e,n,r,i,a)=>{let o=[],l=[],s=r-1;for(let r=1;r<s;r++){let u=r/s*e,c=t+(r%2==0?n:-n);o.push(`${u},${c}`),l.push(`${u},${i?c-a:c+a}`)}return o.push(`${e},${t}`),l.push(`${e+a},${t}`),[o,l]},uP=(t,e)=>{let{context:n,selection:r,view:i}=e,a=r.select(`.${tb}`).node(),{document:o}=n.canvas,{scale:l}=i,s=new Map,u=(t,e,r)=>uj(void 0,void 0,void 0,function*(){let{update:i,setState:a}=n.externals;a("options",n=>{let{marks:i}=n;if(!i||!i.length)return n;let a=i.map(t=>{let n=rl(t,"scale.y.breaks",[]),i=n.filter(t=>t.start!==e&&t.end!==r&&!t.collapsed);return n.forEach(t=>{t.start===e&&t.end===r&&(t.collapsed=!0)}),console.log("breaks group:",n,i),rO({},t,{scale:{y:{breaks:i}}})});return s.set(t,{start:e,end:r}),Object.assign(Object.assign({},n),{marks:a})}),yield i()}),c=()=>uj(void 0,void 0,void 0,function*(){if(!s.size)return;let{update:t,setState:e}=n.externals;e("options",t=>{let{marks:e}=t,n=e.map(t=>{let e=rl(t,"scale.y.breaks",[]);return uk(t,"scale.y.breaks",e.map(t=>Object.assign(Object.assign({},t),{collapsed:!1}))),t});return s.clear(),Object.assign(Object.assign({},t),{marks:n})}),yield t()});return t=>{let{key:e,start:n,end:r,gap:i=.03,vertices:s=50,lineWidth:f=.5,verticeOffset:p=3}=t,d=uA(t,["key","start","end","gap","vertices","lineWidth","verticeOffset"]),h=o.createElement("g",{id:`break-group-${e}`,className:t_}),y=rl(l,"x.sortedDomain",[]),{range:g,domain:m}=l.y.getOptions(),v=m.indexOf(n),b=m.indexOf(r),{width:x,height:O}=a.getBBox();if(-1===v||-1===b||!y.length)return h;let w=g[0]>g[1],M=g[v]*O,_=g[b]*O,k="",j="";for(let[t,{y:e,isLower:n}]of[{y:_,isLower:!1},{y:M,isLower:!0}].entries()){let r=w?f:-f,[i,a]=uS(e,x-0,p,s,n,r);0===t?(k=`M 0,${e} L ${i.join(" L ")} `,j=`M ${0-f},${e+r} L ${a.join(" L ")} `):(k+=`L ${x-0},${e} L ${[...i].reverse().join(" L ")} L 0,${e} Z`,j+=`L ${x-0+f+2},${e-r} L ${[...a].reverse().join(" L ")} L ${0-f},${e-r} Z`)}let A=Object.assign(Object.assign({},uE),d);try{let t=new tk.y$({style:Object.assign(Object.assign({},A),{d:k})}),i=new tk.y$({style:Object.assign(Object.assign({},A),{d:j,lineWidth:0,cursor:"pointer"})});i.addEventListener("click",t=>uj(void 0,void 0,void 0,function*(){t.stopPropagation(),2===t.detail&&(yield u(e,n,r))})),h.appendChild(t),h.appendChild(i),a.addEventListener("click",t=>uj(void 0,void 0,void 0,function*(){2===t.detail&&(yield c())})),a.appendChild(h)}catch(t){console.error("Failed to create break path:",t)}return h}};function uC(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function uT(t){let e,n,r;
1function i(t,r,i=0,a=t.length){if(i<a){if(0!==e(r,r))return a;do{let e=i+a>>>1;0>n(t[e],r)?i=e+1:a=e}while(i<a)}return i}return 2!==t.length?(e=up,n=(e,n)=>up(t(e),n),r=(e,n)=>t(e)-n):(e=t===up||t===uC?t:uR,n=t,r=t),{left:i,center:function(t,e,n=0,a=t.length){let o=i(t,e,n,a-1);return o>n&&r(t[o-1],e)>-r(t[o],e)?o-1:o},right:function(t,r,i=0,a=t.length){if(i<a){if(0!==e(r,r))return a;do{let e=i+a>>>1;0>=n(t[e],r)?i=e+1:a=e}while(i<a)}return i}}}function uR(){return 0}uP.props={};var uL=function(t,e){if(!iL(t))return t;for(var n=[],r=0;r<t.length;r++){var i=t[r];e(i,r)&&n.push(i)}return n};function uN(t){return null===t?NaN:+t}let uI=uT(up),uF=uI.right,uB=uI.left,uD=uT(uN).center;function uz(t){return!!t.getBandWidth}function u$(t,e,n){var r;if(!uz(t))return t.invert(e);let{adjustedRange:i}=t;if(i.includes(e))return t.invert(e);let{domain:a}=t.getOptions(),o=t.getStep(),l=(r=uB(n?i:i.map(t=>t+o),e)+(n?-1:0),Math.min(a.length-1,Math.max(0,r)));return a[l]}function uW(t,e,n){if(!e)return t.getOptions().domain;if(!uz(t)){let r=ud(e);if(!n)return r;let[i]=r,{range:a}=t.getOptions(),[o,l]=a,s=t.invert(t.map(i)+(o>l?-1:1)*n);return[i,s]}let{domain:r}=t.getOptions(),i=e[0],a=r.indexOf(i);if(n){let t=a+Math.round(r.length*n);return r.slice(a,t)}let o=e[e.length-1],l=r.indexOf(o);return r.slice(a,l+1)}function uZ(t,e,n,r,i,a){let{x:o,y:l}=i,s=(t,e)=>{let[n,r]=a.invert(t);return[u$(o,n,e),u$(l,r,e)]},u=s([t,e],!0),c=s([n,r],!1);return[uW(o,[u[0],c[0]]),uW(l,[u[1],c[1]])]}function uH(t,e){let[n,r]=t;return[e.map(n),e.map(r)+(e.getStep?e.getStep():0)]}let uq=(t,e)=>{var n,r;let[i,a]=t,o=(null===(r=null===(n=e.getOptions)||void 0===n?void 0:n.call(e))||void 0===r?void 0:r.domain)||[],l=o.indexOf(i),s=o.indexOf(a);if(-1===l||-1===s)return[e.map(i),e.map(a)];let u=o.length;return u<=1?[0,1]:[l/(u-1),s/(u-1)]},uG=Math.abs,uY=Math.atan2,uV=Math.cos,uU=Math.max,uX=Math.min,uK=Math.sin,uQ=Math.sqrt,uJ=Math.PI,u0=uJ/2,u1=2*uJ;function u2(t){return t>=1?u0:t<=-1?-u0:Math.asin(t)}function u5(t){return t.innerRadius}function u3(t){return t.outerRadius}function u4(t){return t.startAngle}function u6(t){return t.endAngle}function u8(t){return t&&t.padAngle}function u9(t,e,n,r,i,a,o){var l=t-n,s=e-r,u=(o?a:-a)/uQ(l*l+s*s),c=u*s,f=-u*l,p=t+c,d=e+f,h=n+c,y=r+f,g=(p+h)/2,m=(d+y)/2,v=h-p,b=y-d,x=v*v+b*b,O=i-a,w=p*y-h*d,M=(b<0?-1:1)*uQ(uU(0,O*O*x-w*w)),_=(w*b-v*M)/x,k=(-w*v-b*M)/x,j=(w*b+v*M)/x,A=(-w*v+b*M)/x,E=_-g,S=k-m,P=j-g,C=A-m;return E*E+S*S>P*P+C*C&&(_=j,k=A),{cx:_,cy:k,x01:-c,y01:-f,x11:_*(i/O-1),y11:k*(i/O-1)}}function u7(){var t=u5,e=u3,n=sY(0),r=null,i=u4,a=u6,o=u8,l=null,s=s2(u);function u(){var u,c,f=+t.apply(this,arguments),p=+e.apply(this,arguments),d=i.apply(this,arguments)-u0,h=a.apply(this,arguments)-u0,y=uG(h-d),g=h>d;if(l||(l=u=s()),p<f&&(c=p,p=f,f=c),p>1e-12){if(y>u1-1e-12)l.moveTo(p*uV(d),p*uK(d)),l.arc(0,0,p,d,h,!g),f>1e-12&&(l.moveTo(f*uV(h),f*uK(h)),l.arc(0,0,f,h,d,g));else{var m,v,b=d,x=h,O=d,w=h,M=y,_=y,k=o.apply(this,arguments)/2,j=k>1e-12&&(r?+r.apply(this,arguments):uQ(f*f+p*p)),A=uX(uG(p-f)/2,+n.apply(this,arguments)),E=A,S=A;if(j>1e-12){var P=u2(j/f*uK(k)),C=u2(j/p*uK(k));(M-=2*P)>1e-12?(P*=g?1:-1,O+=P,w-=P):(M=0,O=w=(d+h)/2),(_-=2*C)>1e-12?(C*=g?1:-1,b+=C,x-=C):(_=0,b=x=(d+h)/2)}var T=p*uV(b),R=p*uK(b),L=f*uV(w),N=f*uK(w);if(A>1e-12){var I,F=p*uV(x),B=p*uK(x),D=f*uV(O),z=f*uK(O);if(y<uJ){if(I=function(t,e,n,r,i,a,o,l){var s=n-t,u=r-e,c=o-i,f=l-a,p=f*s-c*u;if(!(p*p<1e-12))return p=(c*(e-a)-f*(t-i))/p,[t+p*s,e+p*u]}(T,R,D,z,F,B,L,N)){var $,W=T-I[0],Z=R-I[1],H=F-I[0],q=B-I[1],G=1/uK((($=(W*H+Z*q)/(uQ(W*W+Z*Z)*uQ(H*H+q*q)))>1?0:$<-1?uJ:Math.acos($))/2),Y=uQ(I[0]*I[0]+I[1]*I[1]);E=uX(A,(f-Y)/(G-1)),S=uX(A,(p-Y)/(G+1))}else E=S=0}}_>1e-12?S>1e-12?(m=u9(D,z,T,R,p,S,g),v=u9(F,B,L,N,p,S,g),l.moveTo(m.cx+m.x01,m.cy+m.y01),S<A?l.arc(m.cx,m.cy,S,uY(m.y01,m.x01),uY(v.y01,v.x01),!g):(l.arc(m.cx,m.cy,S,uY(m.y01,m.x01),uY(m.y11,m.x11),!g),l.arc(0,0,p,uY(m.cy+m.y11,m.cx+m.x11),uY(v.cy+v.y11,v.cx+v.x11),!g),l.arc(v.cx,v.cy,S,uY(v.y11,v.x11),uY(v.y01,v.x01),!g))):(l.moveTo(T,R),l.arc(0,0,p,b,x,!g)):l.moveTo(T,R),f>1e-12&&M>1e-12?E>1e-12?(m=u9(L,N,F,B,f,-E,g),v=u9(T,R,D,z,f,-E,g),l.lineTo(m.cx+m.x01,m.cy+m.y01),E<A?l.arc(m.cx,m.cy,E,uY(m.y01,m.x01),uY(v.y01,v.x01),!g):(l.arc(m.cx,m.cy,E,uY(m.y01,m.x01),uY(m.y11,m.x11),!g),l.arc(0,0,f,uY(m.cy+m.y11,m.cx+m.x11),uY(v.cy+v.y11,v.cx+v.x11),g),l.arc(v.cx,v.cy,E,uY(v.y11,v.x11),uY(v.y01,v.x01),!g))):l.arc(0,0,f,w,O,g):l.lineTo(L,N)}}else l.moveTo(0,0);if(l.closePath(),u)return l=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-uJ/2;return[uV(r)*n,uK(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:sY(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:sY(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:sY(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:sY(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:sY(+t),u):i},u.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:sY(+t),u):a},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:sY(+t),u):o},u.context=function(t){return arguments.length?(l=null==t?null:t,u):l},u}var ct=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function ce(t,e,n,r,i={}){let{inset:a=0,radius:o=0,insetLeft:l=a,insetTop:s=a,insetRight:u=a,insetBottom:c=a,radiusBottomLeft:f=o,radiusBottomRight:p=o,radiusTopLeft:d=o,radiusTopRight:h=o,minWidth:y=-1/0,maxWidth:g=1/0,minHeight:m=-1/0}=i,v=ct(i,["inset","radius","insetLeft","insetTop","insetRight","insetBottom","radiusBottomLeft","radiusBottomRight","radiusTopLeft","radiusTopRight","minWidth","maxWidth","minHeight"]);if(!iU(r)&&!iK(r)){let n=!!iV(r),[i,,a]=n?sz(e):e,[o,b]=i,[x,O]=sP(a,i),w=Math.abs(x),M=Math.abs(O),_=(x>0?o:o+x)+l,k=(O>0?b:b+O)+s,j=w-(l+u),A=M-(s+c),E=n?iW(j,m,1/0):iW(j,y,g),S=n?iW(A,y,g):iW(A,m,1/0),P=n?_:_-(E-j)/2,C=n?k-(S-A)/2:k-(S-A);return r2(t.createElement("rect",{})).style("x",P).style("y",C).style("width",E).style("height",S).style("radius",[d,h,p,f]).call(sF,v).node()}let{y:b,y1:x}=n,O=r.getCenter(),w=s$(r,e,[b,x]),M=u7().cornerRadius(o).padAngle(a*Math.PI/180);return r2(t.createElement("path",{})).style("d",M(w)).style("transform",`translate(${O[0]}, ${O[1]})`).style("radius",o).style("inset",a).call(sF,v).node()}let cn=(t,e)=>{let{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:a=!0}=t,o=ct(t,["colorAttribute","opacityAttribute","first","last"]),{coordinate:l,document:s}=e;return(e,r,u)=>{let{color:c,radius:f=0}=u,p=ct(u,["color","radius"]),d=p.lineWidth||1,{stroke:h,radius:y=f,radiusTopLeft:g=y,radiusTopRight:m=y,radiusBottomRight:v=y,radiusBottomLeft:b=y,innerRadius:x=0,innerRadiusTopLeft:O=x,innerRadiusTopRight:w=x,innerRadiusBottomRight:M=x,innerRadiusBottomLeft:_=x,lineWidth:k="stroke"===n||h?d:0,inset:j=0,insetLeft:A=j,insetRight:E=j,insetBottom:S=j,insetTop:P=j,minWidth:C,maxWidth:T,minHeight:R}=o,L=ct(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:N=c,opacity:I}=r,F=[i?g:O,i?m:w,a?v:M,a?b:_],B=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];return iV(l)&&B.push(B.shift()),r2(ce(s,e,r,l,Object.assign(Object.assign({radius:y},Object.fromEntries(B.map((t,e)=>[t,F[e]]))),{inset:j,insetLeft:A,insetRight:E,insetBottom:S,insetTop:P,minWidth:C,maxWidth:T,minHeight:R}))).call(sF,p).style("fill","transparent").style(n,N).style(sW(t),I).style("lineWidth",k).style("stroke",void 0===h?N:h).call(sF,L).node()}};function cr(t,e){if(e(t))return!0;
1if("g"===t.tagName){let{childNodes:n=[]}=t;for(let t of n)if(cr(t,e))return!0}return!1}cn.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let ci={visibility:"visible",opacity:1,fillOpacity:1,strokeOpacity:1};function ca(t,e,n,r){t.style[e]=n,r&&t.children.forEach(t=>ca(t,e,n,r))}function co(t){ca(t,"visibility","hidden",!0)}function cl(t){ca(t,"visibility","visible",!0)}var cs=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function cu(t){return r2(t).selectAll(`.${tm}`).nodes().filter(t=>!t.__removed__)}function cc(t,e){return cf(t,e).flatMap(({container:t})=>cu(t))}function cf(t,e){return e.filter(e=>e!==t&&e.options.parentKey===t.options.key)}function cp(t){return r2(t).select(`.${tb}`).node()}function cd(t){if("g"===t.tagName)return t.getRenderBounds();let e=t.getGeometryBounds(),n=new tk.mN;return n.setFromTransformedAABB(e,t.getWorldTransform()),n}function ch(t,e){let{offsetX:n,offsetY:r}=e,{min:[i,a],max:[o,l]}=cd(t);return n<i||n>o||r<a||r>l?null:[n-i,r-a]}function cy(t,e){let{offsetX:n,offsetY:r}=e,[i,a,o,l]=function(t){let{min:[e,n],max:[r,i]}=t.getRenderBounds();return[e,n,r,i]}(t);return[Math.min(o,Math.max(i,n))-i,Math.min(l,Math.max(a,r))-a]}function cg(t){return t=>t.__data__.color}function cm(t){return t=>t.__data__.x}function cv(t){let e=new Map((Array.isArray(t)?t:[t]).flatMap(t=>Array.from(t.markState.keys()).map(e=>[c_(t.key,e.key),e.data])));return t=>{let{index:n,markKey:r,viewKey:i}=t.__data__;return e.get(c_(i,r))[n]}}let cb={selected:3,unselected:3,active:2,inactive:2,default:1},cx={selection:["selected","unselected"],highlight:["active","inactive"]},cO=(t,e,n)=>{cr(t,t=>{"setAttribute"in t&&"function"==typeof t.setAttribute&&t.setAttribute(e,n)})};function cw(t,e){return e.forEach(e=>{let n=e.__interactionStyle__;n?e.__interactionStyle__=Object.assign(Object.assign({},n),t):e.__interactionStyle__=t}),(t=(t,e)=>t,e=cO)=>cM(void 0,t,e)}function cM(t,e=(t,e)=>t,n=cO){let r="__states__",i="__ordinal__",a=t=>cb[t]||cb.default,o=t=>{var e;return null===(e=Object.entries(cx).find(([e,n])=>n.includes(t)))||void 0===e?void 0:e[0]},l=o=>{var l;let{[r]:s=[],[i]:u={}}=o,c=[...s].sort((t,e)=>a(e)-a(t)),f=new Map;for(let e of c)for(let[n,r]of Object.entries((null===(l=null!=t?t:o.__interactionStyle__)||void 0===l?void 0:l[e])||{}))f.has(n)||f.set(n,r);let p=Object.assign({},u);for(let[t,e]of f.entries())p[t]=e;if(0!==Object.keys(p).length){for(let[t,r]of Object.entries(p)){let i=function(t,e){let n;return cr(t,t=>{var r;return"g"!==t.tagName&&(null===(r=t.style)||void 0===r?void 0:r[e])!==void 0&&(n=t.style[e],!0)}),null!=n?n:ci[e]}(o,t),a=e(r,o);n(o,t,a),t in u||(u[t]=i)}o[i]=u}},s=t=>{t[r]||(t[r]=[])};return{setState:(t,...e)=>{s(t),t[r]=[...e],l(t)},updateState:(t,...e)=>{s(t);let n=t[r],i=new Set(e.map(t=>o(t)).filter(t=>void 0!==t)),a=n.filter(t=>!i.has(o(t)));t[r]=[...a,...e],l(t)},removeState:(t,...e)=>{for(let n of(s(t),e)){let e=t[r].indexOf(n);-1!==e&&t[r].splice(e,1)}l(t)},hasState:(t,e)=>(s(t),-1!==t[r].indexOf(e))}}function c_(t,e){return`${t},${e}`}function ck(t,e){let n=(Array.isArray(t)?t:[t]).flatMap(t=>t.marks.map(e=>[c_(t.key,e.key),e.state])),r={};for(let t of e){let[e,i]=Array.isArray(t)?t:[t,{}];r[e]=n.reduce((t,n)=>{var r;let[a,o={}]=n;for(let[n,l]of Object.entries(void 0===(r=o[e])||"object"==typeof r&&0===Object.keys(r).length?i:o[e])){let e=t[n],r=(t,n,r,i)=>a!==c_(i.__data__.viewKey,i.__data__.markKey)?null==e?void 0:e(t,n,r,i):"function"!=typeof l?l:l(t,n,r,i);t[n]=r}return t},{})}return r}function cj(t,e){let n=new Map(t.map((t,e)=>[t,e])),r=e?t.map(e):t;return(t,i)=>{if("function"!=typeof t)return t;let a=n.get(i);return t(e?e(i):i,a,r,i)}}function cA(t){var{link:e=!1,valueof:n=(t,e)=>t,coordinate:r}=t,i=cs(t,["link","valueof","coordinate"]);if(!e)return[()=>{},()=>{}];let a=t=>t.__data__.points,o=(t,e)=>{let[,n,r]=t,[i,,,a]=e;return[n,i,a,r]};return[t=>{var e;if(t.length<=1)return;let r=ud(t,(t,e)=>{let{x:n}=t.__data__,{x:r}=e.__data__;return n-r});for(let t=1;t<r.length;t++){let l=s1(),s=r[t-1],u=r[t],[c,f,p,d]=o(a(s),a(u));l.moveTo(...c),l.lineTo(...f),l.lineTo(...p),l.lineTo(...d),l.closePath();let h=iP(i,t=>n(t,s)),{fill:y=s.getAttribute("fill")}=h,g=cs(h,["fill"]),m=new tk.y$({className:"element-link",style:Object.assign({d:l.toString(),fill:y,zIndex:-2},g)});null===(e=s.link)||void 0===e||e.remove(),s.parentNode.appendChild(m),s.link=m}},t=>{var e;null===(e=t.link)||void 0===e||e.remove(),t.link=null}]}function cE(t,e,n){let r=e=>{let{transform:n}=t.style;return n?`${n} ${e}`:e};if(iU(n)){let{points:i}=t.__data__,[a,o]=iV(n)?sz(i):i,l=n.getCenter(),s=sP(a,l),u=sP(o,l),c=sT(s)+sL(s,u)/2,f=e*Math.cos(c),p=e*Math.sin(c);return r(`translate(${f}, ${p})`)}return r(iV(n)?`translate(${e}, 0)`:`translate(0, ${-e})`)}function cS(t){var{document:e,background:n,scale:r,coordinate:i,valueof:a}=t,o=cs(t,["document","background","scale","coordinate","valueof"]);let l="element-background";if(!n)return[()=>{},()=>{}];let s=(t,e,n)=>{let r=t.invert(e),i=e+t.getBandWidth(r)/2,a=t.getStep(r)/2,o=a*n;return[i-a+o,i+a-o]},u=(t,e)=>{let{x:n}=r;if(!uz(n))return[0,1];let{__data__:i}=t,{x:a}=i,[o,l]=s(n,a,e);return[o,l]},c=(t,e)=>{let{y:n}=r;if(!uz(n))return[0,1];let{__data__:i}=t,{y:a}=i,[o,l]=s(n,a,e);return[o,l]},f=(t,n)=>{let{padding:r}=n,[a,o]=u(t,r),[l,s]=c(t,r),f=[[a,l],[o,l],[o,s],[a,s]].map(t=>i.map(t)),{__data__:p}=t,{y:d,y1:h}=p;return ce(e,f,{y:d,y1:h},i,n)},p=(t,e)=>{let{transform:n="scale(1.2, 1.2)",transformOrigin:r="center center",stroke:i=""}=e,a=Object.assign({transform:n,transformOrigin:r,stroke:i},cs(e,["transform","transformOrigin","stroke"])),o=t.cloneNode(!0);for(let[t,e]of Object.entries(a))o.style[t]=e;return o},d=()=>{let{x:t,y:e}=r;return[t,e].some(uz)};return[t=>{t.background&&t.background.remove();let e=iP(o,e=>a(e,t)),{fill:n="#CCD6EC",fillOpacity:r=.3,zIndex:i=-2,padding:s=.001,lineWidth:u=0}=e,c=Object.assign(Object.assign({},cs(e,["fill","fillOpacity","zIndex","padding","lineWidth"])),{fill:n,fillOpacity:r,zIndex:i,padding:s,lineWidth:u}),h=(d()?f:p)(t,c);h.className=l,t.parentNode.parentNode.appendChild(h),t.background=h},t=>{var e;null===(e=t.background)||void 0===e||e.remove(),t.background=null},t=>t.className===l]}function cP(t,e){let n=t.getRootNode().defaultView.getContextService().getDomElement();
1(null==n?void 0:n.style)&&(t.cursor=n.style.cursor,n.style.cursor=e)}function cC(t,e,n){return t.find(t=>Object.entries(e).every(([e,r])=>n(t)[e]===r))}function cT(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function cR(t,e=!1){let n=uL(t,t=>!!t).map((t,e)=>[0===e?"M":"L",...t]);return e&&n.push(["Z"]),n}function cL(t){return t.querySelectorAll(".element")}function cN(t,e){if(e(t))return t;let n=t.parent;for(;n&&!e(n);)n=n.parent;return n}let cI=["interval","point","density"];function cF({elementsof:t,root:e,coordinate:n,scale:r,validFindByXMarks:i=cI}){var a,o;let l=t(e),s=t=>i.includes(t.markType);if(l.find(s)){l=l.filter(s);let t=r.x,i=r.series,u=null!==(o=null===(a=null==t?void 0:t.getBandWidth)||void 0===a?void 0:a.call(t))&&void 0!==o?o:0,c=i?t=>{var e,n;let r=Math.round(1/(null!==(e=i.valueBandWidth)&&void 0!==e?e:1));return t.__data__.x+(null!==(n=t.__data__.series)&&void 0!==n?n:0)*u+u/(2*r)}:t=>t.__data__.x+u/2;return l.sort((t,e)=>c(t)-c(e)),t=>{let r=ch(e,t);if(!r)return;let[i]=n.invert(r),a=(0,uT(c).center)(l,i);return l[a]}}return t=>{let{target:e}=t;return cN(e,t=>!!t.classList&&t.classList.includes("element"))}}function cB(t){return!1===t||null==t}function cD(t,e){let n=new Set;for(let r of e){let{scale:e}=r,i=null==e?void 0:e[t];if(!i)continue;if(i.independent)return!0;let a=i.key||"default";if(n.add(a),n.size>1)return!0}return!1}function cz(t){var e,n,r,i,a,o,l,s;let u=Array.from(t.markState.keys()),c=cD("x",u),f=cD("y",u),p=[],d=[],h=[],y=[],g=new Map,m=new Map,v=new Map,b=new Map,x=1,O=1;for(let[u]of t.markState.entries()){let t=u.key,w=(null===(n=null===(e=null==u?void 0:u.scale)||void 0===e?void 0:e.x)||void 0===n?void 0:n.key)||"x";if((null===(i=null===(r=null==u?void 0:u.scale)||void 0===r?void 0:r.x)||void 0===i?void 0:i.independent)||c&&"x"!==w){d.push(t),v.has(w)||v.set(w,x++);let e=v.get(w);g.set(t,`x${e}`)}else p.push(t),g.set(t,"x");let M=(null===(o=null===(a=null==u?void 0:u.scale)||void 0===a?void 0:a.y)||void 0===o?void 0:o.key)||"y";if((null===(s=null===(l=null==u?void 0:u.scale)||void 0===l?void 0:l.y)||void 0===s?void 0:s.independent)||f&&"y"!==M){y.push(t),b.has(M)||b.set(M,O++);let e=b.get(M);m.set(t,`y${e}`)}else h.push(t),m.set(t,"y")}return{hasIndependentX:c,hasIndependentY:f,marksWithSharedX:p,marksWithIndependentX:d,marksWithSharedY:h,marksWithIndependentY:y,markToXScaleMap:g,markToYScaleMap:m}}function c$(t,e,n,r=t=>!0){return i=>{if(!r(i))return;n.emit(`plot:${t}`,i);let{target:a}=i;if(!a)return;let{className:o}=a;if("plot"===o)return;let l=cN(a,t=>"element"===t.className),s=cN(a,t=>"component"===t.className),u=cN(a,t=>"label"===t.className),c=l||s||u;if(!c)return;let{className:f,markType:p}=c,d=Object.assign(Object.assign({},i),{nativeEvent:!0});"element"===f?(d.data={data:rZ(c,e)},n.emit(`element:${t}`,d),n.emit(`${p}:${t}`,d)):"label"===f?(d.data={data:c.attributes.datum},n.emit(`label:${t}`,d),o.split(/\s+/).filter(Boolean).forEach(e=>{n.emit(`${e}:${t}`,d)})):(n.emit(`component:${t}`,d),o.split(/\s+/).filter(Boolean).forEach(e=>{n.emit(`${e}:${t}`,d)}))}}function cW(){return(t,e,n)=>{let{container:r,view:i}=t,a=c$(r3.CLICK,i,n,t=>1===t.detail),o=c$(r3.DBLCLICK,i,n,t=>2===t.detail),l=c$(r3.POINTER_TAP,i,n),s=c$(r3.POINTER_DOWN,i,n),u=c$(r3.POINTER_UP,i,n),c=c$(r3.POINTER_OVER,i,n),f=c$(r3.POINTER_OUT,i,n),p=c$(r3.POINTER_MOVE,i,n),d=c$(r3.POINTER_ENTER,i,n),h=c$(r3.POINTER_LEAVE,i,n),y=c$(r3.POINTER_UPOUTSIDE,i,n),g=c$(r3.DRAG_START,i,n),m=c$(r3.DRAG,i,n),v=c$(r3.DRAG_END,i,n),b=c$(r3.DRAG_ENTER,i,n),x=c$(r3.DRAG_LEAVE,i,n),O=c$(r3.DRAG_OVER,i,n),w=c$(r3.DROP,i,n);return r.addEventListener("click",a),r.addEventListener("click",o),r.addEventListener("pointertap",l),r.addEventListener("pointerdown",s),r.addEventListener("pointerup",u),r.addEventListener("pointerover",c),r.addEventListener("pointerout",f),r.addEventListener("pointermove",p),r.addEventListener("pointerenter",d),r.addEventListener("pointerleave",h),r.addEventListener("pointerupoutside",y),r.addEventListener("dragstart",g),r.addEventListener("drag",m),r.addEventListener("dragend",v),r.addEventListener("dragenter",b),r.addEventListener("dragleave",x),r.addEventListener("dragover",O),r.addEventListener("drop",w),()=>{r.removeEventListener("click",a),r.removeEventListener("click",o),r.removeEventListener("pointertap",l),r.removeEventListener("pointerdown",s),r.removeEventListener("pointerup",u),r.removeEventListener("pointerover",c),r.removeEventListener("pointerout",f),r.removeEventListener("pointermove",p),r.removeEventListener("pointerenter",d),r.removeEventListener("pointerleave",h),r.removeEventListener("pointerupoutside",y),r.removeEventListener("dragstart",g),r.removeEventListener("drag",m),r.removeEventListener("dragend",v),r.removeEventListener("dragenter",b),r.removeEventListener("dragleave",x),r.removeEventListener("dragover",O),r.removeEventListener("drop",w)}}}cW.props={reapplyWhenUpdate:!0};var cZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function cH(t,e){let n=Object.assign(Object.assign({},{"component.axisRadar":ld,"component.axisLinear":lc,"component.axisArc":lf,"component.legendContinuousBlock":sb,"component.legendContinuousBlockSize":sO,"component.legendContinuousSize":sx,"interaction.event":cW,"composition.mark":sM,"composition.view":sS,"shape.label.label":u_,"shape.break":uP}),e),r=e=>{if("string"!=typeof e)return e;let r=`${t}.${e}`;return n[r]||rY(`Unknown Component: ${r}`)};return[(t,e)=>{let{type:n}=t,i=cZ(t,["type"]);n||rY("Plot type is required!");let a=r(n);return null==a?void 0:a(i,e)},r]}function cq(t){let{canvas:e,group:n}=t;return(null==e?void 0:e.document)||(null==n?void 0:n.ownerDocument)||rY("Cannot find library document")}var cG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function cY(t,e){let{coordinate:n={},coordinates:r}=t,i=cG(t,["coordinate","coordinates"]);if(r)return t;let{type:a,transform:o=[]}=n,l=cG(n,["type","transform"]);if(!a)return Object.assign(Object.assign({},i),{coordinates:o});let[,s]=cH("coordinate",e),{transform:u=!1}=s(a).props||{};if(u)throw Error(`Unknown coordinate: ${a}.`);return Object.assign(Object.assign({},i),{coordinates:[Object.assign({type:a},l),...o]})}function cV(t,e){return t.filter(t=>t.type===e)}function cU(t){return cV(t,"polar").length>0}function cX(t){return cV(t,"transpose").length%2==1}function cK(t){return cV(t,"theta").length>0}function cQ(t){return cV(t,"radial").length>0}function cJ(t){return cV(t,"radar").length>0}function c0(t){for(var e=t.length/6|0,n=Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}var c1=c0("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),c2=c0("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),c5=c0("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),c3=c0("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),c4=c0("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),c6=c0("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),c8=c0("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),c9=c0("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),c7=c0("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),ft=c0("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),fe=c0("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function fn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function fr(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function fi(){}var fa="\\s*([+-]?\\d+)\\s*",fo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fs=/^#([0-9a-f]{3,8})$/,fu=RegExp(`^rgb\\(${fa},${fa},${fa}\\)$`),fc=RegExp(`^rgb\\(${fl},${fl},${fl}\\)$`),ff=RegExp(`^rgba\\(${fa},${fa},${fa},${fo}\\)$`),fp=RegExp(`^rgba\\(${fl},${fl},${fl},${fo}\\)$`),fd=RegExp(`^hsl\\(${fo},${fl},${fl}\\)$`),fh=RegExp(`^hsla\\(${fo},${fl},${fl},${fo}\\)$`),fy={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 fg(){return this.rgb().formatHex()}function fm(){return this.rgb().formatRgb()}function fv(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=fs.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?fb(e):3===n?
1new fM(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?fx(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?fx(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=fu.exec(t))?new fM(e[1],e[2],e[3],1):(e=fc.exec(t))?new fM(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ff.exec(t))?fx(e[1],e[2],e[3],e[4]):(e=fp.exec(t))?fx(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=fd.exec(t))?fS(e[1],e[2]/100,e[3]/100,1):(e=fh.exec(t))?fS(e[1],e[2]/100,e[3]/100,e[4]):fy.hasOwnProperty(t)?fb(fy[t]):"transparent"===t?new fM(NaN,NaN,NaN,0):null}function fb(t){return new fM(t>>16&255,t>>8&255,255&t,1)}function fx(t,e,n,r){return r<=0&&(t=e=n=NaN),new fM(t,e,n,r)}function fO(t){return(t instanceof fi||(t=fv(t)),t)?new fM((t=t.rgb()).r,t.g,t.b,t.opacity):new fM}function fw(t,e,n,r){return 1==arguments.length?fO(t):new fM(t,e,n,null==r?1:r)}function fM(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function f_(){return`#${fE(this.r)}${fE(this.g)}${fE(this.b)}`}function fk(){let t=fj(this.opacity);return`${1===t?"rgb(":"rgba("}${fA(this.r)}, ${fA(this.g)}, ${fA(this.b)}${1===t?")":`, ${t})`}`}function fj(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function fA(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function fE(t){return((t=fA(t))<16?"0":"")+t.toString(16)}function fS(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new fC(t,e,n,r)}function fP(t){if(t instanceof fC)return new fC(t.h,t.s,t.l,t.opacity);if(t instanceof fi||(t=fv(t)),!t)return new fC;if(t instanceof fC)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(o=e===a?(n-r)/l+(n<r)*6:n===a?(r-e)/l+2:(e-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new fC(o,l,s,t.opacity)}function fC(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function fT(t){return(t=(t||0)%360)<0?t+360:t}function fR(t){return Math.max(0,Math.min(1,t||0))}function fL(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function fN(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}fn(fi,fv,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:fg,formatHex:fg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return fP(this).formatHsl()},formatRgb:fm,toString:fm}),fn(fM,fw,fr(fi,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new fM(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new fM(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new fM(fA(this.r),fA(this.g),fA(this.b),fj(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:f_,formatHex:f_,formatHex8:function(){return`#${fE(this.r)}${fE(this.g)}${fE(this.b)}${fE((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:fk,toString:fk})),fn(fC,function(t,e,n,r){return 1==arguments.length?fP(t):new fC(t,e,n,null==r?1:r)},fr(fi,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new fC(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new fC(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,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 fM(fL(t>=240?t-240:t+120,i,r),fL(t,i,r),fL(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new fC(fT(this.h),fR(this.s),fR(this.l),fj(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(){let t=fj(this.opacity);return`${1===t?"hsl(":"hsla("}${fT(this.h)}, ${100*fR(this.s)}%, ${100*fR(this.l)}%${1===t?")":`, ${t})`}`}}));var fI=t=>()=>t;function fF(t,e){return function(n){return t+n*e}}function fB(t,e){var n=e-t;return n?fF(t,n):fI(isNaN(t)?e:t)}function fD(t){return function(e){var n,r,i=e.length,a=Array(i),o=Array(i),l=Array(i);for(n=0;n<i;++n)r=fw(e[n]),a[n]=r.r||0,o[n]=r.g||0,l[n]=r.b||0;
1return a=t(a),o=t(o),l=t(l),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=l(t),r+""}}}!function t(e){var n,r=1==(n=+(n=e))?fB:function(t,e){var r,i,a;return e-t?(r=t,i=e,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(t){return Math.pow(r+t*i,a)}):fI(isNaN(t)?e:t)};function i(t,e){var n=r((t=fw(t)).r,(e=fw(e)).r),i=r(t.g,e.g),a=r(t.b,e.b),o=fB(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);var fz=fD(function(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],a=t[r+1],o=r>0?t[r-1]:2*i-a,l=r<e-1?t[r+2]:2*a-i;return fN((n-r/e)*e,o,i,a,l)}});fD(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],l=t[(r+2)%e];return fN((n-r/e)*e,i,a,o,l)}});var f$=t=>fz(t[t.length-1]),fW=[,,,].concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(c0),fZ=f$(fW),fH=[,,,].concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(c0),fq=f$(fH),fG=[,,,].concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(c0),fY=f$(fG),fV=[,,,].concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(c0),fU=f$(fV),fX=[,,,].concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(c0),fK=f$(fX),fQ=[,,,].concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(c0),fJ=f$(fQ),f0=[,,,].concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(c0),f1=f$(f0),f2=[,,,].concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(c0),f5=f$(f2),f3=[,,,].concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(c0),f4=f$(f3),f6=[,,,].concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(c0),f8=f$(f6),f9=[,,,].concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(c0),f7=f$(f9),pt=[,,,].concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8
1cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(c0),pe=f$(pt),pn=[,,,].concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(c0),pr=f$(pn),pi=[,,,].concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(c0),pa=f$(pi),po=[,,,].concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(c0),pl=f$(po),ps=[,,,].concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(c0),pu=f$(ps),pc=[,,,].concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(c0),pf=f$(pc),pp=[,,,].concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(c0),pd=f$(pp),ph=[,,,].concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(c0),py=f$(ph),pg=[,,,].concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(c0),pm=f$(pg),pv=[,,,].concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(c0),pb=f$(pv),px=[,,,].concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(c0),pO=f$(px),pw=[,,,].concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(c0),pM=f$(pw),p_=[,,,].concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(c0),pk=f$(p_),pj=[,,,].concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(c0),pA=f$(pj),pE=[,,,].concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(c0),pS=f$(pE),pP=[,,,].concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(c0),pC=f$(pP);function pT(t){return"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-(t=Math.max(0,Math.min(1,t)))*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+
1Math.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)))))))+")"}let pR=Math.PI/180,pL=180/Math.PI;var pN=-1.78277*.29227-.1347134789;function pI(t,e,n,r){return 1==arguments.length?function(t){if(t instanceof pF)return new pF(t.h,t.s,t.l,t.opacity);t instanceof fM||(t=fO(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(pN*r+-1.7884503806*e-3.5172982438*n)/(pN+-1.7884503806-3.5172982438),a=r-i,o=-((1.97294*(n-i)- -.29227*a)/.90649),l=Math.sqrt(o*o+a*a)/(1.97294*i*(1-i)),s=l?Math.atan2(o,a)*pL-120:NaN;return new pF(s<0?s+360:s,l,i,t.opacity)}(t):new pF(t,e,n,null==r?1:r)}function pF(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function pB(t){return function e(n){function r(e,r){var i=t((e=pI(e)).h,(r=pI(r)).h),a=fB(e.s,r.s),o=fB(e.l,r.l),l=fB(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=l(t),e+""}}return n=+n,r.gamma=e,r}(1)}fn(pF,pI,fr(fi,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new pF(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new pF(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*pR,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new fM(255*(e+n*(-.14861*r+1.78277*i)),255*(e+n*(-.29227*r+-.90649*i)),255*(e+1.97294*r*n),this.opacity)}})),pB(function(t,e){var n=e-t;return n?fF(t,n>180||n<-180?n-360*Math.round(n/360):n):fI(isNaN(t)?e:t)});var pD=pB(fB),pz=pD(pI(300,.5,0),pI(-240,.5,1)),p$=pD(pI(-100,.75,.35),pI(80,1.5,.8)),pW=pD(pI(260,.75,.35),pI(80,1.5,.8)),pZ=pI();function pH(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return pZ.h=360*t-100,pZ.s=1.5-1.5*e,pZ.l=.8-.9*e,pZ+""}var pq=fw(),pG=Math.PI/3,pY=2*Math.PI/3;function pV(t){var e;return t=(.5-t)*Math.PI,pq.r=255*(e=Math.sin(t))*e,pq.g=255*(e=Math.sin(t+pG))*e,pq.b=255*(e=Math.sin(t+pY))*e,pq+""}function pU(t){return"rgb("+Math.max(0,Math.min(255,Math.round(34.61+(t=Math.max(0,Math.min(1,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 pX(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var pK=pX(c0("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),pQ=pX(c0("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb8
11febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),pJ=pX(c0("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),p0=pX(c0("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function p1(t,e){let n=Object.keys(t);for(let r of Object.values(e)){let{name:e}=r.getOptions();if(e in t){let i=iF(n.filter(t=>t.startsWith(e)).map(t=>+(t.replace(e,"")||0)))+1,a=`${e}${i}`;t[a]=r,r.getOptions().key=a}else t[e]=r}return t}function p2(t,e){let n,r;let[i]=cH("scale",e),{relations:a}=t,[o]=a&&Array.isArray(a)?[t=>{var e;n=t.map.bind(t),r=null===(e=t.invert)||void 0===e?void 0:e.bind(t);let i=a.filter(([t])=>"function"==typeof t),o=a.filter(([t])=>"function"!=typeof t),l=new Map(o);if(t.map=t=>{for(let[e,n]of i)if(e(t))return n;return l.has(t)?l.get(t):n(t)},!r)return t;let s=new Map(o.map(([t,e])=>[e,t])),u=new Map(i.map(([t,e])=>[e,t]));return t.invert=t=>u.has(t)?t:s.has(t)?s.get(t):r(t),t},t=>(null!==n&&(t.map=n),null!==r&&(t.invert=r),t)]:[rH,rH];return o(i(t))}function p5(t,e){let n=t.filter(({name:t,facet:n=!0})=>n&&t===e),r=n.flatMap(t=>t.domain),i=n.every(p3)?oJ(r):n.every(p4)?Array.from(new Set(r)):null;if(null!==i)for(let t of n)t.domain=i}function p3(t){let{type:e}=t;return"string"==typeof e&&["linear","log","pow","time"].includes(e)}function p4(t){let{type:e}=t;return"string"==typeof e&&["band","point","ordinal"].includes(e)}function p6(t,e,n,r,i){let[a]=cH("palette",i),{category10:o,category20:l}=r,s=Array.from(new Set(n)).length<=o.length?o:l,{palette:u=s,offset:c}=e;if(Array.isArray(u))return u;try{return a({type:u})}catch(e){let t=function(t,e,n=t=>t){if(!t)return null;let r=ix(t),i=U[`scheme${r}`],a=U[`interpolate${r}`];if(!i&&!a)return null;if(i){if(!i.some(Array.isArray))return i;let t=i[e.length];if(t)return t}return e.map((t,r)=>a(n(r/e.length)))}(u,n,c);if(t)return t;throw Error(`Unknown Component: ${u} `)}}function p8(t,e){return e||(t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t.startsWith("size")?"point":"ordinal")}function p9(t,e,n){return n||("color"!==t?"linear":e?"linear":"sequential")}function p7(t,e){if(0===t.length)return t;let{domainMin:n,domainMax:r}=e,[i,a]=t;return[null!=n?n:i,null!=r?r:a]}function dt(t){return dn(t,t=>{let e=typeof t;return"string"===e||"boolean"===e})}function de(t){return dn(t,t=>t instanceof Date)}function dn(t,e){for(let n of t)if(n.some(e))return!0;return!1}let dr={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},di={threshold:"threshold",quantize:"quantize",quantile:"quantile"},da={ordinal:"ordinal",band:"band",point:"point"},dl={constant:"constant"};var ds=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function du(t,e,n,r,i){let[a]=cH("component",r),{scaleInstances:o,scale:l,bbox:s}=t;return a(ds(t,["scaleInstances","scale","bbox"]))({coordinate:e,library:r,markState:i,scales:o,theme:n,value:{bbox:s,library:r},scale:l})}function dc(t,e){let n=["left","right","bottom","top"];return rd(t,({type:t,position:e,group:r})=>n.includes(e)?void 0===r?t.startsWith("legend")?`legend-${e}`:Symbol("independent"):"independent"===r?Symbol("independent"):r:Symbol("independent")).flatMap(([,t])=>
1{if(1===t.length)return t[0];if(void 0!==e){let n=t.filter(t=>void 0!==t.length).map(t=>t.length),r=iI(n);if(r>e)return t.forEach(t=>t.group=Symbol("independent")),t;let i=(e-r)/(t.length-n.length);t.forEach(t=>{void 0===t.length&&(t.length=i)})}let n=iF(t,t=>t.size),r=iF(t,t=>t.order),i=iF(t,t=>t.crossPadding);return{type:"group",size:n,order:r,position:t[0].position,children:t,crossPadding:i}})}function df(t){let e=cV(t,"polar");if(e.length){let{startAngle:t,endAngle:n}=iB(e[e.length-1]);return[t,n]}let n=cV(t,"radial");if(n.length){let{startAngle:t,endAngle:e}=iz(n[n.length-1]);return[t,e]}return[-Math.PI/2,Math.PI/2*3]}function dp(t,e){let[n]=cH("scale",e),{scales:r,tickCount:i,tickMethod:a}=t,o=r.find(t=>"constant"!==t.type&&"identity"!==t.type);return void 0!==i&&(o.tickCount=i),void 0!==a&&(o.tickMethod=a),n(o)}function dd(t,e,n="label"){let{labelFormatter:r,tickFilter:i,label:a=!0}=t,o=ds(t,["labelFormatter","tickFilter","label"]);if(!a)return null;let l=function(t,e,n){let r=dg(t,n).map(t=>"number"==typeof t?iZ(t):t),i=e?"string"==typeof e?v7(e):e:t.getFormatter?t.getFormatter():t=>`${t}`;return r.map(i)}(e,r,i),s=rX(o,n),u=l.map((t,e)=>Object.fromEntries(Object.entries(s).map(([n,r])=>[n,"function"==typeof r?r(t,e):r]))),c=l.map((t,e)=>dm(t,u[e]));if(!u.some(t=>t.transform)){let e=l.map((t,e)=>e);t.indexBBox=new Map(e.map(t=>[t,[l[t],c[t]]]))}return c}function dh(t){let{title:e}=t,n=ds(t,["title"]);if(!1===e||null==e)return null;let r=rX(n,"title"),{direction:i,transform:a}=r,o=Array.isArray(e)?e.join(","):e;return"string"!=typeof o?null:dm(o,Object.assign(Object.assign({},r),{transform:a||("vertical"===i?"rotate(-90)":"")}))}function dy(t,e,n){let{title:r}=t,[i,a]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:o,[`axis${rG(e)}`]:l}=n;return rO({title:i},o,l,Object.assign(Object.assign({},t),{title:a}))}function dg(t,e){let n=t.getTicks?t.getTicks():t.getOptions().domain;return e?n.filter(e):n}function dm(t,e){let n=t instanceof tk.s$?t:new tk.xv({style:{text:`${t}`}}),{filter:r}=e,i=ds(e,["filter"]);return n.attr(Object.assign(Object.assign({},i),{visibility:"none"})),n.getBBox()}function dv(t,e){let n;if(void 0===e)for(let 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 db(t,e,n,r,i,a,o){let l=rp(t,t=>t.position),{padding:s=a.padding,paddingLeft:u=s,paddingRight:c=s,paddingBottom:f=s,paddingTop:p=s}=i,d={paddingBottom:f,paddingLeft:u,paddingTop:p,paddingRight:c};for(let t of r){let r=`padding${rG(sq(t))}`,i=l.get(t)||[],s=d[r],u=t=>{void 0===t.size&&(t.size=t.defaultSize)},c=t=>{"group"===t.type?(t.children.forEach(u),t.size=iF(t.children,t=>t.size)):t.size=t.defaultSize},f=r=>{r.size||("auto"!==s?c(r):(function t(e,n,r,i,a,o){let{type:l}=e;if(["left","right","bottom","top"].includes(i)&&"string"==typeof l)return(l.startsWith("axis")?function(t,e,n,r,i,a){var o,l;t.transform=t.transform||[{type:"hide"}];let s="left"===r||"right"===r,u=dy(t,r,i),{tickLength:c=0,labelSpacing:f=0,titleSpacing:p=0,labelAutoRotate:d}=u,h=ds(u,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),y=dp(t,a),g=dd(h,y),m=c;"function"==typeof t.tickLength&&(m=Math.max(...((null===(o=y.getTicks)||void 0===o?void 0:o.call(y))||y.getOptions().domain).map((e,n,r)=>t.tickLength(e,n,r)),0));let v=m+f;if(g&&g.length){let r=iF(g,t=>t.width),i=iF(g,t=>t.height);if(s)t.size=r+v;else{let{tickFilter:a,labelTransform:o}=t;(function(t,e,n,r,i){if(iI(e,t=>t.width)>n)return!0;let a=t.clone();a.update({range:[0,n]});let o=dg(t,i),l=o.map(t=>a.map(t)+(a.getBandWidth?a.getBandWidth(t)/2:0)),s=o.map((t,e)=>e),u=-r[0],c=n+r[1],f=(t,e)=>{let{width:n}=e;return[t-n/2,t+n/2]};for(let t=0;t<s.length;t++){let[n,r]=f(l[t],e[t]);if(n<u||r>c)return!0;let i=l[t+1];if(i){let[n]=f(i,e[t+1]);if(r>n)return!0}}return!1})(y,g,e,n,a)&&!o&&!1!==d&&null!==d?(t.labelTransform="rotate(90)",t.size=r+v):(t.labelTransform=null!==(l=t.labelTransform)&&void 0!==l?l:"rotate(0)",t.size=i+v)}}else t.size=m;let b=dh(h);b&&(s?t.size+=p+b.width:t.size+=p+b.height)}:l.startsWith("group")?function(e,n,r,i,a,o){let{children:l}=e,s=iF(l,t=>t.crossPadding);l.forEach(t=>
1t.crossPadding=s),l.forEach(e=>t(e,n,r,i,a,o));let u=iF(l,t=>t.size);e.size=u,l.forEach(t=>t.size=u)}:l.startsWith("legendContinuous")?function(t,e,n,r,i,a){let o=(()=>{let{legendContinuous:e}=i;return rO({},e,t)})(),{labelSpacing:l=0,titleSpacing:s=0}=o,u=ds(o,["labelSpacing","titleSpacing"]),c="left"===r||"right"===r,{size:f}=rX(u,"ribbon"),{size:p}=rX(u,"handleIcon"),d=Math.max(f,2.4*p);t.size=d;let h=dd(u,dp(t,a));if(h){let e=c?"width":"height",n=iF(h,t=>t[e]);t.size+=n+l}let y=dh(u);y&&(c?t.size=Math.max(t.size,y.width):t.size+=s+y.height)}:"legendCategory"===l?function(t,e,n,r,i,a){let o=(()=>{let{legendCategory:e}=i,{title:n}=t,[r,a]=Array.isArray(n)?[n,void 0]:[void 0,n];return rO({title:r},e,Object.assign(Object.assign({},t),{title:a}))})(),{focus:l,itemSpacing:s,focusMarkerSize:u,itemMarkerSize:c,titleSpacing:f,rowPadding:p,colPadding:d,maxCols:h=1/0,maxRows:y=1/0}=o,g=ds(o,["focus","itemSpacing","focusMarkerSize","itemMarkerSize","titleSpacing","rowPadding","colPadding","maxCols","maxRows"]),{cols:m,length:v}=t,b=t=>Math.min(t,y),x=t=>Math.min(t,h),O="left"===r||"right"===r,w=void 0===v?e+(O?0:n[0]+n[1]):v,M=dp(t,a),{render:_}=t;if(_&&"undefined"!=typeof document){let e=M.getOptions().domain,{labelFormatter:n}=g,r=t=>n?"string"==typeof n?v7(n)(t):n(t):`${t}`,i=_(e.map((t,e)=>({id:t,index:e,label:r(t),value:t,color:M.map(t)})),g),a=document.createElement("div"),{width:o,height:l}=t,s={position:"absolute",visibility:"hidden",top:"-9999px"};o?s.width=`${o}px`:O||(s.width=`${w}px`),l?s.height=`${l}px`:O&&(s.height=`${w}px`),Object.assign(a.style,s),"string"==typeof i?a.innerHTML=i:i instanceof HTMLElement&&a.appendChild(i),document.body.appendChild(a);let u=a.getBoundingClientRect();document.body.removeChild(a),t.size=O?u.width:u.height;return}let k=dh(g),j=dd(g,M,"itemLabel"),A=void 0!==g.itemValueText?dd(g,M,"itemValue"):null,E=Math.max(j[0].height,c,...(null==A?void 0:A[0])?[A[0].height]:[])+p,S=(t,e=0)=>{let n=c+t+s[0]+e;return(null==A?void 0:A[0])&&(n+=A[0].width+s[1]),l&&(n+=u+s[2]),n};O?(()=>{let e=-1/0,n=0,r=1,i=0,a=-1/0,o=-1/0,l=k?k.height:0,s=w-l;for(let{width:t}of j)e=Math.max(e,S(t,d)),n+E>s?(r++,a=Math.max(a,i),o=Math.max(o,n),i=1,n=E):(n+=E,i++);r<=1&&(a=i,o=n),t.size=e*x(r),t.length=o+l,rO(t,{cols:x(r),gridRow:a})})():"number"==typeof m?(()=>{let e=Math.ceil(j.length/m),n=iF(j,t=>S(t.width))*m;t.size=E*b(e)-p,t.length=Math.min(n,w)})():(()=>{let e=1,n=0,r=-1/0;for(let{width:t}of j){let i=S(t,d);n+i>w?(r=Math.max(r,n),n=i,e++):n+=i}1===e&&(r=n),t.size=E*b(e)-p,t.length=r})(),k&&(O?t.size=Math.max(t.size,k.width):t.size+=f+k.height)}:l.startsWith("slider")?function(t,e,n,r,i,a){let{trackSize:o,handleIconSize:l}=(()=>{let{slider:e}=i;return rO({},e,t)})(),s=Math.max(o,2.4*l);t.size=s}:"title"===l?function(t,e,n,r,i,a){let o=rO({},i.title,t),{title:l,subtitle:s,spacing:u=0}=o,c=ds(o,["title","subtitle","spacing"]);if(l){let e=dm(l,rX(c,"title"));t.size=e.height}if(s){let e=dm(s,rX(c,"subtitle"));t.size+=u+e.height}}:l.startsWith("scrollbar")?function(t,e,n,r,i,a){let{trackSize:o=6}=rO({},i.scrollbar,t);t.size=o}:()=>{})(e,n,r,i,a,o)}(r,e,n,t,a,o),u(r)))},p=t=>{t.type.startsWith("axis")&&void 0===t.labelAutoHide&&(t.labelAutoHide=!0)},h="bottom"===t||"top"===t,y=dv(i,t=>t.order),g=i.filter(t=>t.type.startsWith("axis")&&t.order==y);if(g.length&&(g[0].crossPadding=0),"number"==typeof s)i.forEach(u),i.forEach(p);else if(0===i.length)d[r]=0;else{let t=dc(i,h?e+n[0]+n[1]:e);t.forEach(f);let a=t.reduce((t,{size:e,crossPadding:n=12})=>t+e+n,0);d[r]=a}}return d}function dx({width:t,height:e,paddingLeft:n,paddingRight:r,paddingTop:i,paddingBottom:a,marginLeft:o,marginTop:l,marginBottom:s,marginRight:u,innerHeight:c,innerWidth:f,insetBottom:p,insetLeft:d,insetRight:h,insetTop:y}){let g=n+o,m=i+l,v=r+u,b=a+s,x=t-o-u,O=[g+d,m+y,f-d-h,c-y-p,"center",null,null];return{top:[g,0,f,m,"vertical",!0,up,o,x],right:[t-v,m,v,c,"horizontal",!1,up],bottom:[g,e-b,f,b,"vertical",!1,up,o,x],left:[0,m,g,c,"horizontal",!0,up],"top-left":[g,0,f,m,"vertical",!0,up],"top-right":[g,0,f,m,"vertical",!0,up],"bottom-left":[g,e-b,f,b,"vertical",!1,up],"bottom-right":[g,e-b,f,b,"vertical",!1,up],center:O,inner:O,outer:O}}function dO(t,e,n={},r=!1){return r1(t)||Array.isArray(t)&&r?t:rO(n,rX(t,e))}function dw(t,e={}){return r1(t)||Array.isArray(t)||!dM(t)?t:rO(e,t)}function dM(t){if(0===Object.keys(t).length)return!0;let{title:e,items:n}=t;return void 0!==e||void 0!==n}function d_(t,e){return"object"==typeof t?rX(t,e):t}var dk=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let dj=Symbol("CALLBACK_ITEM");function dA(t,e,n){let{encode:r={},scale:i={},transform:a=[]}=e;return[t,Object.assign(Object.assign({},dk(e,["encode","scale","transform"])),{encode:r,scale:i,transform:a})]}function dE(t,e,n){var r,i,a,o;return r=this,i=void 0,a=void 0,o=function*(){let{library:t}=n,{data:r}=e,[i]=cH("data",t),a=function(t){if((0,tR.Z)(t))return{type:"inline",value:t};if(!t)return{type:"inline",value:null};if(Array.isArray(t))return{type:"inline",value:t};let{type:e="inline"}=t;return Object.assign(Object.assign({},dk(t,["type"])),{type:e})}(r),{transform:o=[]}=a,l=[dk(a,["transform"]),...o].map(t=>i(t,n)),s=yield(function(t){return t.reduce((t,e)=>n=>{var r,i,a,o;return r=this,i=void 0,a=void 0,o=function*(){return e((yield t(n)))},new(a||(a=Promise))(function(t,e){function n(t){try{s(o.next(t))}catch(t){e(t)}}function l(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof a?r:new a(function(t){t(r)})).then(n,l)}s((o=o.apply(r,i||[])).next())})},rH)})(l)(r),u=!r||Array.isArray(r)||Array.isArray(s)?s:{value:s};return[Array.isArray(s)?iC(s):[],Object.assign(Object.assign({},e),{data:u})]},new(a||(a=Promise))(function(t,e){function n(t){try{s(o.next(t))}catch(t){e(t)}}function l(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof a?r:new a(function(t){t(r)})).then(n,l)}s((o=o.apply(r,i||[])).next())})}function dS(t,e,n){let{encode:r}=e;if(!r)return[t,e];let i={};for(let[t,e]of Object.entries(r))if(Array.isArray(e))for(let n=0;n<e.length;n++)i[`${t}${0===n?"":n}`]=e[n];else i[t]=e;return[t,Object.assign(Object.assign({},e),{encode:i})]}function dP(t,e,n){let{encode:r,data:i}=e;if(!r)return[t,e];let a=iP(r,t=>!function(t){if("object"!=typeof t||t instanceof Date||null===t)return!1;let{type:e}=t;return rU(e)}(t)?{type:"function"==typeof t?"transform":"string"==typeof t&&Array.isArray(i)&&i.some(e=>void 0!==e[t])?"field":"constant",value:t}:t);return[t,Object.assign(Object.assign({},e),{encode:a})]}function dC(t,e,n){let{encode:r}=e;if(!r)return[t,e];let i=iP(r,(t,e)=>{var n;let{type:r}=t;return"constant"!==r||(n=e).startsWith("x")||n.startsWith("y")||n.startsWith("position")||"enterDelay"===n||"enterDuration"===n||"updateDelay"===n||"updateDuration"===n||"exitDelay"===n||"exitDuration"===n?t:Object.assign(Object.assign({},t),{constant:!0})});return[t,Object.assign(Object.assign({},e),{encode:i})]}function dT(t,e,n){let{encode:r,data:i}=e;if(!r)return[t,e];let{library:a}=n,o=function(t){let[e]=cH("encode",t);return(t,n)=>void 0===n||void 0===t?null:Object.assign(Object.assign({},n),{type:"column",value:e(n)(t),field:function(t){let{type:e,value:n}=t;return"field"===e&&"string"==typeof n?n:null}(n)})}(a),l=iP(r,t=>o(i,t));return[t,Object.assign(Object.assign({},e),{encode:l})]}function dR(t,e,n){let{tooltip:r={}}=e;return r1(r)?[t,e]:Array.isArray(r)?[t,Object.assign(Object.assign({},e),{tooltip:{items:r}})]:r0(r)&&dM(r)?[t,Object.assign(Object.assign({},e),{tooltip:r})]:[t,Object.assign(Object.assign({},e),{tooltip:{items:[r]}})]}function dL(t,e,n){let{data:r,encode:i,tooltip:a={}}=e;if(r1(a))return[t,e];let o=e=>{if(!e)return e;if("string"==typeof e)return t.map(t=>({name:e,value:r[t][e]}));if(r0(e)){let{field:n,channel:a,color:o,name:l=n,valueFormatter:s=t=>t}=e,u="string"==typeof s?v7(s):s,c=a&&i[a],f=c&&i[a].field,p=l||f||a,d=[];for(let e of t){let t=n?r[e][n]:c?i[a].value[e]:null;d[e]={name:p,color:o,value:u(t)}}return d}if("function"==typeof e){let n=[];for(let a of t){let t=e(r[a],a,r,i);r0(t)?n[a]=Object.assign(Object.assign({},t),{[dj]:!0}):n[a]={value:t}}return n}return e},{title:l,items:s=[]}=a,u=dk(a,["title","items"]),c=Object.assign({title:o(l),items:Array.isArray(s)?s.map(o):[]},u);return[t,Object.assign(Object.assign({},e),{tooltip:c})]}function dN(t,e,n){let{encode:r}=e,i=dk(e,["encode"]);if(!r)return[t,e];let a=Object.entries(r),o=a.filter(([,t])=>{let{value:e}=t;return Array.isArray(e[0])}).flatMap(([e,n])=>{let r=[[e,Array(t.length).fill(void 0)]],{value:i}=n,a=dk(n,["value"]);for(let n=0;n<i.length;n++){let a=i[n];if(Array.isArray(a))for(let i=0;i<a.length;i++){let o=r[i]||[`${e}${i}`,Array(t).fill(void 0)];o[1][n]=a[i],r[i]=o}}return r.map(([t,e])=>[t,Object.assign({type:"column",value:e},a)])}),l=Object.fromEntries([...a,...o]);return[t,Object.assign(Object.assign({},i),{encode:l})]}function dI(t,e,n){let{axis:r={},legend:i={},slider:a={},scrollbar:o={}}=e,l=(t,e)=>{if("boolean"==typeof t)return t?{}:null;let n=t[e];return void 0===n||n?n:null};return rO(e,{scale:Object.assign(Object.assign({},Object.fromEntries(("object"==typeof r?Array.from(new Set(["x","y","z",...Object.keys(r)])):["x","y","z"]).map(t=>{let e=l(o,t);return[t,Object.assign({guide:l(r,t),slider:l(a,t),scrollbar:e},e&&{ratio:void 0===e.ratio?.5:e.ratio})]}))),{color:{guide:l(i,"color")},size:{guide:l(i,"size")},shape:{guide:l(i,"shape")},opacity:{guide:l(i,"opacity")}})}),[t,e]}function dF(t,e,n){let{animate:r}=e;return r||void 0===r||rO(e,{animate:{enter:{type:null},exit:{type:null},update:{type:null}}}),[t,e]}function dB(t,e,n){var r,i;return rO(e,{scale:{series:Object.assign({key:`DEFAULT_${e.type}_SERIES_KEY`},null!==(i=null===(r=null==e?void 0:e.scale)||void 0===r?void 0:r.series)&&void 0!==i?i:{})}}),[t,e]}
1var dD=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})},dz=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},d$=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})},dW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function dZ(t){t.style("transform",t=>`translate(${t.layout.x}, ${t.layout.y})`)}function dH(t,e){return d$(this,void 0,void 0,function*(){let{library:n}=e,r=function(t){let{coordinate:e={},interaction:n={},style:r={},marks:i}=t,a=dW(t,["coordinate","interaction","style","marks"]),o=i.map(t=>t.coordinate||{}),l=i.map(t=>t.interaction||{}),s=i.map(t=>t.viewStyle||{}),u=[...o,e].reduceRight((t,e)=>rO(t,e),{}),c=[n,...l].reduce((t,e)=>rO(t,e),{}),f=[...s,r].reduce((t,e)=>rO(t,e),{});return Object.assign(Object.assign({},a),{marks:i,coordinate:u,interaction:c,style:f})}((yield function(t,e){return d$(this,void 0,void 0,function*(){let{library:n}=e,[r,i]=cH("mark",n),a=new Set(Object.keys(n).map(t=>{var e;return null===(e=/component\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(rU)),{marks:o}=t,l=[],s=[],u=[...o],{width:c,height:f}=function(t){let{height:e,width:n,padding:r=0,paddingLeft:i=r,paddingRight:a=r,paddingTop:o=r,paddingBottom:l=r,margin:s=16,marginLeft:u=s,marginRight:c=s,marginTop:f=s,marginBottom:p=s,inset:d=0,insetLeft:h=d,insetRight:y=d,insetTop:g=d,insetBottom:m=d}=t,v=t=>"auto"===t?20:t;return{width:n-v(i)-v(a)-u-c-h-y,height:e-v(o)-v(l)-f-p-g-m}}(t),p={options:t,width:c,height:f};for(;u.length;){let[t]=u.splice(0,1),n=yield d1(t,e),{type:o=rY("G2Mark type is required."),key:c}=n;if(a.has(o))s.push(n);else{let{props:t={}}=i(o),{composite:e=!0}=t;if(e){let{data:t}=n,e=Object.assign(Object.assign({},n),{data:t?Array.isArray(t)?t:t.value:t}),i=yield r(e,p),a=Array.isArray(i)?i:[i];u.unshift(...a.map((t,e)=>Object.assign(Object.assign({},t),{key:`${c}-${e}`})))}else l.push(n)}}return Object.assign(Object.assign({},t),{marks:l,components:s})})}(t,e)));t.interaction=r.interaction,t.coordinate=r.coordinate,t.marks=[...r.marks,...r.components];let i=cY(r,n);return dY((yield dq(i,e)),i,n)})}function dq(t,e){return d$(this,void 0,void 0,function*(){let{library:n}=e,[r]=cH("theme",n),[,i]=cH("mark",n),{theme:a,marks:o,coordinates:l=[]}=t,s=r(dJ(a)),u=new Map;for(let t of o){let{type:n}=t,{props:r={}}=i(n),a=yield function(t,e,n){return dD(this,void 0,void 0,function*(){let[r,i]=yield function(t,e,n){return dD(this,void 0,void 0,function*(){let{library:r}=n,[i]=cH("transform",r),{preInference:a=[],postInference:o=[]}=e,{transform:l=[]}=t,s=[dA,dE,dS,dP,dC,dT,dN,dF,dI,dR,dB,...a.map(i),...l.map(i),...o.map(i),dL],u=[],c=t;for(let t of s)[u,c]=yield t(u,c,n);return[u,c]})}(t,e,n),{encode:a,scale:o,data:l,tooltip:s,key:u}=i;if(!1===Array.isArray(l))return null;let{channels:c}=e,f=ry(Object.entries(a).filter(([,t])=>rU(t)),t=>t.map(([t,e])=>Object.assign({name:t},e)),([t])=>{var e;let n=null===(e=/([^\d]+)\d*$/.exec(t))||void 0===e?void 0:e[1],r=c.find(t=>t.name===n);return(null==r?void 0:r.independent)?t:n}),p=c.filter(t=>{let{name:e,required:n}=t;if(f.find(([t])=>t===e))return!0;if(n)throw Error(`Missing encoding for channel: ${e}.`);return!1}).flatMap(t=>{let{name:e,scale:n,scaleKey:r,range:i,quantitative:a,ordinal:l}=t;return f.filter(([t])=>t.startsWith(e)).map(([t,e],s)=>{let c=e.some(t=>t.visual),f=e.some(t=>t.constant),p=o[t]||{},{independent:d=!1,key:h=r||t,type:y=f?"constant":c?"identity":n}=p,g=dz(p,["independent","key","type"]),m="constant"===y;return{name:t,values:e,scaleKey:d||m?Symbol("independent"):h,scale:Object.assign(Object.assign({type:y,markKey:u,range:m?void 0:i},g),{quantitative:a,ordinal:l})}})});return[i,Object.assign(Object.assign({},e),{index:r,channels:p,tooltip:s}
1)]})}(t,r,e);if(a){let[t,e]=a;u.set(t,e)}}for(let t of rp(Array.from(u.values()).flatMap(t=>t.channels),({scaleKey:t})=>t).values()){let e=t.reduce((t,{scale:e})=>rO(t,e),{}),{scaleKey:r}=t[0],{values:i}=t[0],a=Array.from(new Set(i.map(t=>t.field).filter(rU))),o=rO({guide:{title:0===a.length?void 0:a},field:a[0]},e),{name:u}=t[0],c=Object.assign(Object.assign({},function(t,e,n,r,i,a){let{guide:o={}}=n,l=function(t,e,n){let{type:r,domain:i,range:a,quantitative:o,ordinal:l}=n;return void 0!==r?r:dn(e,r0)?"identity":"string"==typeof a?"linear":(i||a||[]).length>2?p8(t,l):void 0!==i?dt([i])?p8(t,l):de(e)?"time":p9(t,a,o):dt(e)?p8(t,l):de(e)?"time":p9(t,a,o)}(t,e,n);if("string"!=typeof l)return n;let s=function(t,e,n,r){let{domain:i}=r;if(void 0!==i)return i;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":case"quantize":case"threshold":return p7(function(t,e){let{zero:n=!1}=e,r=1/0,i=-1/0;for(let e of t)for(let t of e)rU(t)&&(r=Math.min(r,+t),i=Math.max(i,+t));return r===1/0?[]:n?[Math.min(0,r),i]:[r,i]}(n,r),r);case"band":case"ordinal":case"point":return Array.from(new Set(n.flat()));case"quantile":return n.flat().sort();case"sequential":return p7(function(t){let e=1/0,n=-1/0;for(let r of t)for(let t of r)rU(t)&&(e=Math.min(e,+t),n=Math.max(n,+t));return e===1/0?[]:[e<0?-n:e,n]}(n),r);default:return[]}}(l,0,e,n),u=function(t,e,n){let{ratio:r}=n;return null==r?e:p3({type:t})?function(t,e,n){let r=t.map(Number),i=new oU({domain:r,range:[r[0],r[0]+(r[r.length-1]-r[0])*e]});return"time"===n?t.map(t=>new Date(i.map(t))):t.map(t=>i.map(t))}(e,r,t):p4({type:t})?function(t,e){let n=Math.round(t.length*e);return t.slice(0,n)}(e,r):e}(l,s,n);return Object.assign(Object.assign(Object.assign({},n),function(t,e,n,r,i){switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":return function(t,e){let{interpolate:n=oz,nice:r=!1,tickCount:i=5}=e;return Object.assign(Object.assign({},e),{interpolate:n,nice:r,tickCount:i})}(0,r);case"band":case"point":return function(t,e,n,r){if(void 0!==r.padding||void 0!==r.paddingInner||void 0!==r.paddingOuter)return Object.assign(Object.assign({},r),{unknown:NaN});let i="enterDelay"===e||"enterDuration"===e||"size"===e?0:"band"===t?cK(n)?0:.1:"point"===t?.5:0,{paddingInner:a=i,paddingOuter:o=i}=r;return Object.assign(Object.assign({},r),{paddingInner:a,paddingOuter:o,padding:i,unknown:NaN})}(t,e,i,r);case"sequential":return function(t){let{palette:e="ylGnBu",offset:n}=t,r=ix(e),i=U[`interpolate${r}`];if(!i)throw Error(`Unknown palette: ${r}`);return{interpolator:n?t=>i(n(t)):i}}(r);default:return r}}(l,t,0,n,r)),{domain:u,range:function(t,e,n,r,i,a,o){let{range:l}=r;if("string"==typeof l)return l.split("-");if(void 0!==l)return l;let{rangeMin:s,rangeMax:u}=r;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":{var c;let[t,l]=(c=p6(n,r,i,a,o),"enterDelay"===e?[0,1e3]:"enterDuration"==e?[300,1e3]:e.startsWith("y")||e.startsWith("position")?[1,0]:"color"===e?[c[0],iT(c)]:"opacity"===e?[0,1]:"size"===e?[1,10]:[0,1]);return[null!=s?s:t,null!=u?u:l]}case"band":case"point":{let t="size"===e?5:0,n="size"===e?10:1;return[null!=s?s:t,null!=u?u:n]}case"ordinal":return p6(n,r,i,a,o);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}(l,t,e,n,u,i,a),expectedDomain:s,guide:o,name:t,type:l})}(u,t.flatMap(({values:t})=>t.map(t=>t.value)),o,l,s,n)),{uid:Symbol("scale"),key:r});t.forEach(t=>t.scale=c)}return u})}function dG(t,e,n,r){let i=t.theme;return r(rO("string"==typeof e&&i[e]||{},Object.assign({type:e},n)))}function dY(t,e,n){var r;let[i]=cH("mark",n),[a]=cH("theme",n),[o]=cH("labelTransform",n),{key:l,frame:s=!1,theme:u,clip:c,style:f={},labelTransform:p=[]}=e,d=a(dJ(u)),h=Array.from(t.values()),y=(function(t,e,n){let{coordinates:r=[],title:i}=e,[,a]=cH("component",n),o=t.filter(({guide:t})=>null!==t),l=[],s=function(t,e,n){let[,r]=cH("component",n),{coordinates:i}=t;function a(t,e,n,a){let o=function(t,e,n=[]){return"x"===t?cX(n)?`${e}Y`:`${e}X`:"y"===t?cX(n)?`${e}X`:`${e}Y`:null}(e,t,i);if(!a||!o)return;let{props:l}=r(o),{defaultPosition:s,defaultSize:u,defaultOrder:c,defaultCrossPadding:[f]}=l;return Object.assign(Object.assign({position:s,defaultSize:u,order:c,type:o,crossPadding:f},a),{scales:[n]})}return e.filter(t=>t.slider||t.scrollbar).flatMap(t=>{let{slider:e,scrollbar:n,name:r}=t;return[a("slider",r,t,e),a("scrollbar",r,t,n)]}).filter(t=>!!t)}(e,t,n);if(l.push(...s),i){let{props:t}=a("title"),{defaultPosition:e,defaultOrientation:n,defaultOrder:r,defaultSize:o,defaultCrossPadding:s}=t;l.push(Object.assign({type:"title",position:e,orientation:n,order:r,crossPadding:s[0],defaultSize:o},"string"==typeof i?{title:i}:i))}return(function(t,e){let n=t.filter(t=>(function(t){if(!t||!t.type)return!1;if("function"==typeof t.type)return!0;let{type:e,domain:n,range:r,interpolator:i}=t,a=n&&n.length>0,o=r&&r.length>0;return!!(["linear","sqrt","log","time","pow","threshold","quantize","quantile","ordinal","band","point"].includes(e)&&a&&o||["sequential"].includes(e)&&a&&(o||i)||["constant","identity"].includes(e)&&o)})(t));return[...function(t,e){let n=["shape","size","color","opacity"],r=(t,e)=>"constant"===t&&"size"===e,i=t.filter(({type:t,name:e})=>"string"==typeof t&&n.includes(e)&&!r(t,e)),a=i.filter(({type:t})=>"constant"===t),o=new Map(rd(i.filter(({type:t})=>"constant"!==t),t=>t.field?t.field:Symbol("independent")).map(([t,e])=>[t,[...e,...a]]).filter(([,t])=>t.some(t=>"constant"!==t.type)));if(0===o.size)return[];let l=t=>t.sort(([t],[e])=>t.localeCompare(e));return Array.from(o).map(([,t])=>{let e=(function(t){if(1===t.length)return[t];let e=[];for(let n=1;n<=t.length;n++)e.push(...function t(e,n=e.length){if(1===n)return e.map(t=>[t]);let r=[];for(let i=0;i<e.length;
1i++)t(e.slice(i+1),n-1).forEach(t=>{r.push([e[i],...t])});return r}(t,n));return e})(t).sort((t,e)=>e.length-t.length).map(t=>({combination:t,option:t.map(t=>[t.name,function(t){let{type:e}=t;return"string"!=typeof e?null:e in dr?"continuous":e in da?"discrete":e in di?"distribution":e in dl?"constant":null}(t)])}));for(let{option:t,combination:n}of e)if(!t.every(t=>"constant"===t[1])&&t.every(t=>"discrete"===t[1]||"constant"===t[1]))return["legendCategory",n];for(let[t,n]of iq)for(let{option:r,combination:i}of e)if(n.some(t=>iN(l(t),l(r))))return[t,i];return null}).filter(rU)}(n,0),...n.map(t=>{let{name:n}=t;if(cV(e,"helix").length>0||cK(e)||cX(e)&&(cU(e)||cQ(e)))return null;if(n.startsWith("x"))return cU(e)?["axisArc",[t]]:cQ(e)?["axisLinear",[t]]:[cX(e)?"axisY":"axisX",[t]];if(n.startsWith("y"))return cU(e)?["axisLinear",[t]]:cQ(e)?["axisArc",[t]]:[cX(e)?"axisX":"axisY",[t]];if(n.startsWith("z"))return["axisZ",[t]];if(n.startsWith("position")){if(cJ(e))return["axisRadar",[t]];if(!cU(e))return["axisY",[t]]}return null}).filter(rU)]})(o,r).forEach(([t,e])=>{let{props:n}=a(t),{defaultPosition:i,defaultPlane:s="xy",defaultOrientation:u,defaultSize:c,defaultOrder:f,defaultLength:p,defaultPadding:d=[0,0],defaultCrossPadding:h=[0,0]}=n,{guide:y,field:g}=rO({},...e);for(let n of Array.isArray(y)?y:[y]){let[a,y]=function(t,e,n,r,i,a,o){let[l]=df(o),s=[r.position||e,null!=l?l:n];return"string"==typeof t&&t.startsWith("axis")?function(t,e,n,r,i){let{name:a}=n[0];if("axisRadar"===t){let t=r.filter(t=>t.name.startsWith("position")),e=function(t){let e=/position(\d*)/g.exec(t);return e?+e[1]:null}(a);if(null===e)return[null,null];let[n,o]=df(i);return["center",(o-n)/(cJ(i)?t.length:t.length-1)*e+n]}if("axisY"===t&&cV(i,"parallel").length>0)return cX(i)?["center","horizontal"]:["center","vertical"];if("axisLinear"===t){let[t]=df(i);return["center",t]}return"axisArc"===t?"inner"===e[0]?["inner",null]:["outer",null]:cU(i)||cQ(i)?["center",null]:"axisX"===t&&cV(i,"reflect").length>0||"axisX"===t&&cV(i,"reflectY").length>0?["top",null]:e}(t,s,i,a,o):"string"==typeof t&&t.startsWith("legend")&&cU(o)&&"center"===r.position?["center","vertical"]:s}(t,i,u,n,e,o,r);if(!a&&!y)continue;let m="left"===a||"right"===a,v=m?d[1]:d[0],b=m?h[1]:h[0],{size:x,order:O=f,length:w=p,padding:M=v,crossPadding:_=b}=n;l.push(Object.assign(Object.assign({title:g}
1,n),{defaultSize:c,length:w,position:a,plane:s,orientation:y,padding:M,order:O,crossPadding:_,size:x,type:t,scales:e}))}}),l})(function(t,e,n){var r;for(let[e]of n.entries())if("cell"===e.type)return t.filter(t=>"shape"!==t.name);if(1!==e.length||t.some(t=>"shape"===t.name))return t;let{defaultShape:i}=e[0];if(!["point","line","rect","hollow"].includes(i))return t;let a=(null===(r=t.find(t=>"color"===t.name))||void 0===r?void 0:r.field)||null;return[...t,{field:a,name:"shape",type:"constant",domain:[],range:[{point:"point",line:"hyphen",rect:"square",hollow:"hollow"}[i]]}]}(Array.from(function(t,e){var n;let{components:r=[]}=e,i=["scale","encode","axis","legend","data","transform"],a=Array.from(new Set(t.flatMap(t=>t.channels.map(t=>t.scale)))),o=new Map(a.map(t=>[t.name,t]));for(let t of r)for(let e of function(t){let{channels:e=[],type:n,scale:r={}}=t,i=["shape","color","opacity","size"];return 0!==e.length?e:"axisX"===n?["x"]:"axisY"===n?["y"]:"legends"===n?Object.keys(r).filter(t=>i.includes(t)):[]}(t)){let r=o.get(e),l=(null===(n=t.scale)||void 0===n?void 0:n[e])||{},{independent:s=!1}=l;if(r&&!s){let{guide:e}=r,n="boolean"==typeof e?{}:e;r.guide=rO({},n,t),Object.assign(r,l)}else{let n=Object.assign(Object.assign({},l),{expectedDomain:l.domain,name:e,guide:oQ(t,i)});a.push(n)}}return a}(h,e)),h,t),e,n).map(t=>{let e=rO(t,t.style);return delete e.style,e}),g=function(t,e,n,r){var i,a,o,l;let{width:s,height:u,depth:c,x:f=0,y:p=0,z:d=0,inset:h=null!==(i=n.inset)&&void 0!==i?i:0,insetLeft:y=h,insetTop:g=h,insetBottom:m=h,insetRight:v=h,margin:b=null!==(a=n.margin)&&void 0!==a?a:0,marginLeft:x=b,marginBottom:O=b,marginTop:w=b,marginRight:M=b,padding:_=n.padding,paddingBottom:k=_,paddingLeft:j=_,paddingRight:A=_,paddingTop:E=_}=function(t,e,n,r){let{coordinates:i}=e;if(!cU(i)&&!cQ(i))return e;let a=t.filter(t=>"string"==typeof t.type&&t.type.startsWith("axis"));if(0===a.length)return e;let o=a.map(t=>{let e="axisArc"===t.type?"arc":"linear";return dy(t,e,n)}),l=iF(o,t=>{var e;return null!==(e=t.labelSpacing)&&void 0!==e?e:0}),s=iF(a.flatMap((t,e)=>dd(o[e],dp(t,r))).filter(rU),t=>t.height)+l,u=a.flatMap((t,e)=>dh(o[e])).filter(t=>null!==t),c=0===u.length?0:iF(u,t=>t.height),{inset:f=s,insetLeft:p=f,insetBottom:d=f,insetTop:h=f+c,insetRight:y=f}=e;return Object.assign(Object.assign({},e),{insetLeft:p,insetBottom:d,insetTop:h,insetRight:y})}(t,e,n,r),S=16===x&&"auto"===j,P=16===M&&"auto"===A,C=rl(e,"coordinates",[]).some(t=>"transpose"===t.type),T=t.find(({type:t})=>"axisX"===t),{size:R,labelTransform:L}=T||{},N=1/4,I=(t,n,r,i,a)=>{let{marks:o}=e;if(0===o.length||t-i-a-t*N>0)return[i,a];let l=t*(1-N);return["auto"===n?l*i/(i+a):i,"auto"===r?l*a/(i+a):a]},F=t=>"auto"===t?20:null!=t?t:20,B=F(E),D=F(k),{paddingLeft:z,paddingRight:$}=db(t,u-B-D,[B+w,D+O],["left","right"],e,n,r),W=s-x-M,[Z,H]=I(W,j,A,z,$),q=W-Z-H,{paddingTop:G,paddingBottom:Y}=db(t,q,[Z+x,H+M],["bottom","top"],e,n,r),V=u-O-w,[U,X]=I(V,k,E,Y,G),K=V-U-X;if(R&&!C&&!L){let{fontSize:t=12,fontFamily:e="sans-serif",scales:n=[]}=T,r=null!==(l=null===(o=null==n?void 0:n[0])||void 0===o?void 0:o.domain)&&void 0!==l?l:[];if(!r.length)return;let i=(n,r,i,a)=>{let o=a8(r,{fontSize:t,fontFamily:e}),l=o/2-i-a;l>0&&(q-=l,"left"===n?Z+=o/2-i:H+=o/2-i)};S&&i("left",function(t){if(iL(t))return t[0]}(r),x,Z),P&&i("right",oS(r),M,H)}return{width:s,height:u,depth:c,insetLeft:y,insetTop:g,insetBottom:m,insetRight:v,innerWidth:q,innerHeight:K,paddingLeft:Z,paddingRight:H,paddingTop:X,paddingBottom:U,marginLeft:x,marginBottom:O,marginTop:w,marginRight:M,x:f,y:p,z:d}}(y,e,d,n),m=function(t,e,n){let[r]=cH("coordinate",n),{innerHeight:i,innerWidth:a,insetLeft:o,insetTop:l,insetRight:s,insetBottom:u}=t,{coordinates:c=[]}=e,f=c.find(t=>"cartesian"===t.type||"cartesian3D"===t.type)?c:[...c,{type:"cartesian"}],p="cartesian3D"===f[0].type,d=Object.assign(Object.assign({},t),{x:o,y:l,width:a-o-s,height:i-u-l,transformations:f.flatMap(r)});return p?new iY.Coordinate3D(d):new iY.Coordinate(d)}(g,e,n),v=s?rO({mainLineWidth:1,mainStroke:"#000"},f):f;!function(t,e,n){let r=rp(t,t=>`${t.plane||"xy"}-${t.position}`),{paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:l,marginLeft:s,marginTop:u,marginBottom:c,marginRight:f,innerHe
1ight:p,innerWidth:d,insetBottom:h,insetLeft:y,insetRight:g,insetTop:m,height:v,width:b,depth:x}=n,O={xy:dx({width:b,height:v,paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:l,marginLeft:s,marginTop:u,marginBottom:c,marginRight:f,innerHeight:p,innerWidth:d,insetBottom:h,insetLeft:y,insetRight:g,insetTop:m}),yz:dx({width:x,height:v,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:x,innerHeight:v,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0}),xz:dx({width:b,height:x,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:b,innerHeight:x,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0})};for(let[t,n]of r.entries()){let[r,i]=t.split("-"),a=O[r][i],[o,l]=iR(n,t=>"string"==typeof t.type&&!!("center"===i||t.type.startsWith("axis")&&["inner","outer"].includes(i)));o.length&&function(t,e,n,r){let[i,a]=iR(t,t=>!!("string"==typeof t.type&&t.type.startsWith("axis")));(function(t,e,n,r){if("center"===r){if(iQ(e)&&iU(e))(function(t,e,n,r){let[i,a,o,l]=n;for(let e of t)e.bbox={x:i,y:a,width:o,height:l},e.radar={index:t.indexOf(e),count:t.length}})(t,0,n,0);else{var i;iU(e)?function(t,e,n){let[r,i,a,o]=n;for(let e of t)e.bbox={x:r,y:i,width:a,height:o}}(t,0,n):iQ(e)&&("horizontal"===(i=t[0].orientation)?function(t,e,n){let[r,i,a]=n,o=Array(t.length).fill(0),l=e.map(o).filter((t,e)=>e%2==1).map(t=>t+i);for(let e=0;e<t.length;e++){let n=t[e],i=l[e],o=l[e+1]-i;n.bbox={x:r,y:i,width:a,height:o}}}(t,e,n):"vertical"===i&&function(t,e,n){let[r,i,,a]=n,o=Array(t.length).fill(0),l=e.map(o).filter((t,e)=>e%2==0).map(t=>t+r);for(let e=0;e<t.length;e++){let n=t[e],r=l[e],o=l[e+1]-r;n.bbox={x:r,y:i,width:o,height:a}}}(t,e,n))}}else"inner"===r?function(t,e,n){let[r,i,,a]=n,[o,l]=e.getCenter(),[s]=i1(e),u=a/2*s,c=o-u,f=l-u;for(let e=0;e<t.length;e++)t[e].bbox={x:r+c,y:i+f,width:2*u,height:2*u}}(t,e,n):"outer"===r&&function(t,e,n){let[r,i,a,o]=n;for(let e of t)e.bbox={x:r,y:i,width:a,height:o}}(t,0,n)})(i,e,n,r),function(t,e,n){if(0===t.length)return;let[r,i,a,o]=n,[l]=i1(e),s=o/2*l/Math.sqrt(2),u=r+a/2,c=i+o/2;for(let e=0;e<t.length;e++)t[e].bbox={x:u-s,y:c-s,width:2*s,height:2*s}}(a,e,n)}(o,e,a,i),l.length&&function(t,e,n){let[r,i,a,o,l,s,u,c,f]=n,[p,d,h,y,g,m,v,b]="vertical"===l?["y",i,"x",r,"height",o,"width",a]:["x",r,"y",i,"width",a,"height",o];t.sort((t,e)=>null==u?void 0:u(t.order,e.order));let x=t=>"title"===t||"group"===t||t.startsWith("legend"),O=(t,e,n)=>void 0===n?e:x(t)?n:e,w=(t,e,n)=>void 0===n?e:x(t)?n:e;for(let e=0,n=s?d+m:d;e<t.length;e++){let r=t[e],{crossPadding:i=0,type:a}=r,{size:o}=r;r.bbox={[p]:s?n-o-i:n+i,[h]:w(a,y,c),[g]:o,[v]:O(a,b,f)},n+=(o+i)*(s?-1:1)}for(let e of t.filter(t=>"group"===t.type)){let{bbox:t,children:n}=e,r=t[v],i=r/n.length,a=n.reduce((t,e)=>{var n;return(null===(n=e.layout)||void 0===n?void 0:n.justifyContent)||t},"flex-start"),o=n.map((t,e)=>{let{length:r=i,padding:a=0}=t;return r+(e===n.length-1?0:a)}),l=r-iI(o),s="flex-start"===a?0:"center"===a?l/2:l;for(let e=0,r=t[h]+s;e<n.length;e++){let i=n[e],{padding:l=0}=i,s=e===n.length-1?0:l;i.bbox={[g]:t[g],[p]:t[p],[h]:r,[v]:o[e]-s},rO(i,{layout:{justifyContent:a}}),r+=o[e]}}}(n,0,a)}}(dc(y),m,g),function(t){let e=t.find(({type:t})=>"axisX"===t),n=t.find(({type:t})=>"axisY"===t),r=t.find(({type:t})=>"axisZ"===t);e&&n&&r&&(e.plane="xy",n.plane="xy",r.plane="yz",r.origin=[e.bbox.x,e.bbox.y,0],r.eulerAngles=[0,-90,0],r.bbox.x=e.bbox.x,r.bbox.y=e.bbox.y,t.push(Object.assign(Object.assign({},e),{plane:"xz",showLabel:!1,showTitle:!1,origin:[e.bbox.x,e.bbox.y,0],eulerAngles:[-90,0,0]})),t.push(Object.assign(Object.assign({},n),{plane:"yz",showLabel:!1,showTitle:!1,origin:[n.bbox.x+n.bbox.width,n.bbox.y,0],eulerAngles:[0,-90,0]})),t.push(Object.assign(Object.assign({},r),{plane:"xz",actualPosition:"left",showLabel:!1,showTitle:!1,eulerAngles:[90,-90,0]})))}(y);let b=new Map(Array.from(t.values()).flatMap(t=>{let{channels:e}=t;return e.map(({scale:t})=>[t.uid,p2(t,n)])}));!function(t,e){ry(Array.from(t.values()).flatMap(t=>t.channels),t=>t.map(t=>
1e.get(t.scale.uid)),t=>t.name).filter(([,t])=>t.some(t=>"function"==typeof t.getOptions().groupTransform)&&t.every(t=>t.getTicks)).map(t=>t[1]).forEach(t=>{(0,t.map(t=>t.getOptions().groupTransform)[0])(t)})}(t,b);let x={};for(let t of y){let{scales:e=[]}=t,i=[];for(let t of e){let{name:e,uid:a}=t,o=null!==(r=b.get(a))&&void 0!==r?r:p2(t,n);i.push(o),"y"===e&&o.update(Object.assign(Object.assign({},o.getOptions()),{xScale:x.x})),p1(x,{[e]:o})}t.scaleInstances=i}let O=[],w=new Map;for(let[e,n]of t.entries()){let{children:t,dataDomain:r,modifier:a,key:o,data:s}=e;w.set(o,s);let{index:u,channels:c,tooltip:f}=n,p=iP(Object.fromEntries(c.map(({name:t,scale:e})=>[t,e])),({uid:t})=>b.get(t));p1(x,p);let d=function(t,e){let n={};for(let r of t){let{values:t,name:i}=r,a=e[i];for(let e of t){let{name:t,value:r}=e;n[t]=r.map(t=>a.map(t))}}return n}(c,p),[h,y,v]=function([t,e,n]){if(n)return[t,e,n];let r=[],i=[];for(let n=0;n<t.length;n++){let a=t[n],o=e[n];o.every(([t,e])=>rU(t)&&rU(e))&&(r.push(a),i.push(o))}return[r,i]}(i(e)(u,p,d,m)),M=r||h.length,_=a?a(y,M,g):[],k=t=>{var e,n;return null===(n=null===(e=f.title)||void 0===e?void 0:e[t])||void 0===n?void 0:n.value},j=t=>f.items.map(e=>e[t]),A=h.map((t,e)=>{let n=Object.assign({points:y[e],transform:_[e],index:t,markKey:o,viewKey:l,data:s[t]},f&&{title:k(t),items:j(t)});for(let[r,i]of Object.entries(d))n[r]=i[t],v&&(n[`series${ix(r)}`]=v[e].map(t=>i[t]));return v&&(n.seriesIndex=v[e]),v&&f&&(n.seriesItems=v[e].map(t=>j(t)),n.seriesTitle=v[e].map(t=>k(t))),n});n.data=A,n.index=h;let E=null==t?void 0:t(A,p,g);O.push(...E||[])}return[{layout:g,theme:d,coordinate:m,markState:t,key:l,clip:c,scale:x,style:v,components:y,data:w,options:e,labelTransform:rq(p.map(o))},O]}function dV(t,e,n,r){return d$(this,void 0,void 0,function*(){let{library:i}=r,{components:a,theme:o,layout:l,markState:s,coordinate:u,key:c,style:f,clip:p,scale:d}=t,{x:h,y,width:g,height:m}=l,v=dW(l,["x","y","width","height"]),b=["view","plot","main","content"],x=b.map((t,e)=>e),O=b.map(t=>rK(Object.assign({},o.view,f),t)),w=["a","margin","padding","inset"].map(t=>rX(v,t)),M=t=>t.style("x",t=>E[t].x).style("y",t=>E[t].y).style("width",t=>E[t].width).style("height",t=>E[t].height).each(function(t,e,n){!function(t,e){for(let[n,r]of Object.entries(e))t.style(n,r)}(r2(n),O[t])}),_=0,k=0,j=g,A=m,E=x.map(t=>{let{left:e=0,top:n=0,bottom:r=0,right:i=0}=w[t];return _+=e,k+=n,j-=e+i,A-=n+r,{x:_,y:k,width:j,height:A}});e.selectAll(d4(tw)).data(x.filter(t=>rU(O[t])),t=>b[t]).join(t=>t.append("rect").attr("className",tw).style("zIndex",-2).call(M),t=>t.call(M),t=>t.remove());let S=function(t){let e=-1/0,n=1/0;for(let[r,i]of t){let{animate:t={}}=r,{data:a}=i,{enter:o={},update:l={},exit:s={}}=t,{type:u,duration:c=300,delay:f=0}=l,{type:p,duration:d=300,delay:h=0}=o,{type:y,duration:g=300,delay:m=0}=s;for(let t of a){let{updateType:r=u,updateDuration:i=c,updateDelay:a=f,enterType:o=p,enterDuration:l=d,enterDelay:s=h,exitDuration:v=g,exitDelay:b=m,exitType:x=y}=t;(void 0===r||r)&&(e=Math.max(e,i+a),n=Math.min(n,a)),(void 0===x||x)&&(e=Math.max(e,v+b),n=Math.min(n,b)),(void 0===o||o)&&(e=Math.max(e,l+s),n=Math.min(n,s))}}return e===-1/0?null:[n,e-n]}(s),P=!!S&&{duration:S[1]};for(let[,t]of rd(a,t=>`${t.type}-${t.position}`))t.forEach((t,e)=>t.index=e);let C=e.selectAll(d4(tx)).data(a,t=>`${t.type}-${t.position}-${t.index}`).join(t=>t.append("g").style("zIndex",({zIndex:t})=>t||-1).attr("className",tx).append(t=>du(rO({animate:P,scale:d},t),u,o,i,s)),t=>t.transition(function(t,e,n){let{preserve:r=!1}=t;if(r)return;let{attributes:a}=du(rO({animate:P,scale:d},t),u,o,i,s),[l]=n.childNodes;return l.update(a,!1)})).transitions();n.push(...C.flat().filter(rU));let T=e.selectAll(d4(tb)).data([l],()=>c).join(t=>t.append("rect").style("zIndex",0).style("fill","transparent").attr("className",tb).call(d2).call(d3,Array.from(s.keys())).call(d6,p),t=>t.call(d3,Array.from(s.keys())).call(d2).call(d6,p)).transitions();for(let[a,o]of(n.push(...T.flat()),s.entries())){let{data:l}=o,{key:s,class:u,type:c}=a,f=e.select(`#${s}`),p=function(t,e,n,r){let{library:i}=r,[a]=cH("shape",i),{data:o,encode:l}=t,{defaultShape:s,data:u,shape:c}=e,f=iP(l,t=>t.value),p=u.map(t=>t.points),{theme:d,coordinate:h}=n,{type:y,style:g={}}=t,m=Object.assign(Object.assign({},r),{document:cq(r),coordinate:h,theme:d});return e=>{let{shape:n=s}=g,{shape:r=n,points:i,seriesIndex:l,index:u}=e,h=Object.assign(Object.assign({},dW(e,["shape","points","seriesIndex","index"])),{index:u}),v=l?l.map(t=>o[t]):o[u],b=l||u,x=iP(g,t=>dU(t,v,b,o,{channel:f}));return(c[r]?c[r](x,m):a(Object.assign(Object.assign({},x),{type:d5(t,r)}),m))(i,h,dX(d,y,r,s),p)}}(a,o,t,r),d=dK("enter",a,o,t,i),h=dK("update",a,o,t,i),y=dK("exit",a,o,t,i),g=function(t,e,n,r){let i=t.node().parentElement;return i&&"function"==typeof i.findAll?i.findAll(t=>void 0!==t.style.facet&&t.style.facet===n&&t!==e.node()).flatMap(t=>t.getElementsByClassName(r)):[]}(e,f,u,"element"),m=f.selectAll(d4(tm)).selectFacetAll(g).data(l,t=>t.key,t=>t.groupKey).join(t=>t.append(p).attr("className",tm).attr("markType",c).transition(function(t,e,n){return d(t,[n])}),t=>t.call(t=>{let e=t.parent(),n=function(t){let e=new Map;return n=>{if(e.has(n))return e.get(n);let r=t(n);return e.set(n,r),r}}(t=>{let[e,n]=t.getBounds().min;return[e,n]});t.transition(function(t,r,i){!function(t,e,n){if(!t.__facet__)return;let r=t.parentNode.parentNode,i=e.parentNode,[a,o]=n(r),[l,s]=n(i);!function(t,e){let{transform:n}=t.style,r="none"===n||void 0===n?"":n;t.style.transform=`${r} ${e}`.trimStart()}(t,`translate(${a-l}, ${o-s})`),e.append(t)}(i,e,n);
1let a=p(t,r),o=h(t,[i],[a]);return(null==o?void 0:o.length)||(i.nodeName===a.nodeName&&"g"!==a.nodeName?rV(i,a):(i.parentNode.replaceChild(a,i),a.className=tm,a.markType=c,a.__data__=i.__data__)),o}).each(function(t,e,n){n.__removed__&&(n.__removed__=!1)}).attr("markType",c).attr("className",tm)}),t=>t.each(function(t,e,n){n.__removed__=!0}).transition(function(t,e,n){return y(t,[n])}).remove(),t=>t.append(p).attr("className",tm).attr("markType",c).transition(function(t,e,n){let{__fromElements__:r}=n,i=h(t,r,[n]);return new r5(r,null,n.parentNode).transition(i).remove(),i}),t=>t.transition(function(t,e,n){let r=new r5([],n.__toData__,n.parentNode).append(p).attr("className",tm).attr("markType",c).nodes();return h(t,[n],r)}).remove()).transitions();n.push(...m.flat())}(function(t,e,n,r,i){let[a]=cH("labelTransform",r),{markState:o,labelTransform:l}=t,s=e.select(d4(tg)).node(),u=new Map,c=new Map,f=Array.from(o.entries()).flatMap(([n,a])=>{let{labels:o=[],key:l}=n,s=function(t,e,n,r,i){let[a]=cH("shape",r),{data:o,encode:l}=t,{data:s,defaultLabelShape:u}=e,c=s.map(t=>t.points),f=iP(l,t=>t.value),{theme:p,coordinate:d}=n,h=Object.assign(Object.assign({},i),{document:cq(i),theme:p,coordinate:d});return t=>{let{index:e,points:n}=t,r=o[e],{formatter:i=t=>`${t}`,transform:l,style:s,render:d,selector:y,element:g}=t,m=iP(Object.assign(Object.assign({},dW(t,["formatter","transform","style","render","selector","element"])),s),t=>dU(t,r,e,o,{channel:f,element:g})),{shape:v=u,text:b}=m,x=dW(m,["shape","text"]),O="string"==typeof i?v7(i):i,w=Object.assign(Object.assign({},x),{text:O(b,r,e,o),datum:r});return a(Object.assign({type:`label.${v}`,render:d},x),h)(n,w,dX(p,"label",v,"label"),c)}}(n,a,t,r,i),f=e.select(`#${l}`).selectAll(d4(tm)).nodes().filter(t=>{var e;return!t.__removed__&&!((null===(e=t.style)||void 0===e?void 0:e.visibility)==="hidden"||t.children&&t.children.some(t=>{var e;return(null===(e=t.style)||void 0===e?void 0:e.visibility)==="hidden"}))});return o.flatMap((t,e)=>{let{transform:n=[]}=t,r=dW(t,["transform"]);return f.flatMap(n=>{let i=function(t,e,n){let{seriesIndex:r,seriesKey:i,points:a,key:o,index:l}=n.__data__,s=function(t){let e=t.cloneNode(!0),n=t.getAnimations();e.style.visibility="hidden",n.forEach(t=>{let n=t.effect.getKeyframes();e.attr(n[n.length-1])}),t.parentNode.appendChild(e);let r=e.getLocalBounds();e.destroy();let{min:i,max:a}=r;return[i,a]}(n);if(!r)return[Object.assign(Object.assign({},t),{key:`${o}-${e}`,bounds:s,index:l,points:a,dependentElement:n})];let u=function(t){let{selector:e}=t;if(!e)return null;if("function"==typeof e)return e;if("first"===e)return t=>[t[0]];if("last"===e)return t=>[t[t.length-1]];throw Error(`Unknown selector: ${e}`)}(t),c=r.map((r,o)=>Object.assign(Object.assign({},t),{key:`${i[o]}-${e}`,bounds:[a[o]],index:r,points:a,dependentElement:n}));return u?u(c):c}(r,e,n);return i.forEach(e=>{u.set(e,t=>s(Object.assign(Object.assign({},t),{element:n}))),c.set(e,t)}),i})})}),p=r2(s).selectAll(d4(tO)).data(f,t=>t.key).join(t=>t.append(t=>u.get(t)(t)).attr("className",tO),t=>t.each(function(t,e,n){rV(n,u.get(t)(t))}),t=>t.remove()).nodes(),d=rp(p,t=>c.get(t.__data__)),{coordinate:h,layout:y}=t,g={canvas:i.canvas,coordinate:h,layout:y};for(let[t,e]of d){let{transform:n=[]}=t;rq(n.map(a))(e,g)}l&&l(p,g)})(t,e,0,i,r),function(t,e,n,r){let i=rl(t.scale,"y.options.breaks",[]),{document:a}=r.canvas;if([tM,t_].forEach(t=>{a.getElementsByClassName(t).forEach(t=>{t.remove()})}),!i.length)return;let o=e.select(d4(tb)).node(),[l]=cH("shape",n),s=new Map;i.forEach((n,i)=>{s.set(n,l({type:"break"},{view:t,selection:e,context:r}))}),r2(o).selectAll(d4(tM)).data(i,t=>t.key).join(t=>t.append((t,e)=>s.get(t)(t,e)).attr("className",tM),t=>t.each(function(t,e,n){rV(n,s.get(t)(t,e))}),t=>t.remove()).nodes()}(t,e,i,r)})}function dU(t,e,n,r,i){return"function"==typeof t?t(e,n,r,i):"string"!=typeof t?t:r0(e)&&void 0!==e[t]?e[t]:t}function dX(t,e,n,r){if("string"!=typeof e)return;let{color:i}=t,a=t[e]||{};return Object.assign({color:i},a[n]||a[r])}function dK(t,e,n,r,i){var a,o;let[,l]=cH("shape",i),[s]=cH("animation",i),{defaultShape:u,shape:c}=n,{theme:f,coordinate:p}=r,d=ix(t),h=`default${d}Animation`,{[h]:y}=(null===(a=c[u])||void 0===a?void 0:a.props)||l(d5(e,u)).props,{[t]:g={}}=f,m=(null===(o=e.animate)||void 0===o?void 0:o[t])||{},v={coordinate:p};return(e,n,r)=>{let{[`${t}Type`]:i,[`${t}Delay`]:a,[`${t}Duration`]:o,[`${t}Easing`]:l}=e,u=Object.assign({type:i||y},m);if(!u.type)return null;
1let c=s(u,v)(n,r,rO(g,{delay:a,duration:o,easing:l}));return(Array.isArray(c)?c:[c]).filter(Boolean)}}function dQ(t){return t.finished.then(()=>{t.cancel()}),t}function dJ(t={}){if("string"==typeof t)return{type:t};let{type:e="light"}=t;return Object.assign(Object.assign({},dW(t,["type"])),{type:e})}function d0(t){let{interaction:e={}}=t;return Object.entries(rO({event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},e)).reverse()}function d1(t,e){return d$(this,void 0,void 0,function*(){let{data:n}=t,r=dW(t,["data"]);if(void 0==n)return t;let[,{data:i}]=yield dE([],{data:n},e);return Object.assign({data:i},r)})}function d2(t){t.style("transform",t=>`translate(${t.paddingLeft+t.marginLeft}, ${t.paddingTop+t.marginTop})`).style("width",t=>t.innerWidth).style("height",t=>t.innerHeight)}function d5(t,e){let{type:n}=t;return"string"==typeof e?`${n}.${e}`:e}function d3(t,e){let n=t=>void 0!==t.class?`${t.class}`:"";0!==t.nodes().length&&(t.selectAll(d4(ty)).data(e,t=>t.key).join(t=>t.append("g").attr("className",ty).attr("id",t=>t.key).style("facet",n).style("fill","transparent").style("zIndex",t=>{var e;return null!==(e=t.zIndex)&&void 0!==e?e:0}),t=>t.style("facet",n).style("fill","transparent").style("zIndex",t=>{var e;return null!==(e=t.zIndex)&&void 0!==e?e:0}),t=>t.remove()),t.select(d4(tg)).node()||t.append("g").attr("className",tg).style("zIndex",0))}function d4(...t){return t.map(t=>`.${t}`).join("")}function d6(t,e){t.node()&&t.style("clipPath",t=>{if(!e)return null;let{paddingTop:n,paddingLeft:r,marginLeft:i,marginTop:a,innerWidth:o,innerHeight:l}=t;return new tk.UL({style:{x:r+i,y:n+a,width:o,height:l}})})}function d8(t){let{style:e,scale:n,type:r}=t,i={},a=rl(e,"columnWidthRatio");return a&&"interval"===r&&(i.x=Object.assign(Object.assign({},null==n?void 0:n.x),{padding:1-a})),Object.assign(Object.assign({},t),{scale:Object.assign(Object.assign({},n),i)})}let d9=t=>{if(!t||"string"!=typeof t)return t;let e=t.endsWith("%")?parseFloat(t.slice(0,-1))/100:parseFloat(t);if(isNaN(e)||e<0||e>1)throw Error(`Invalid gap value: ${t}. It should be between 0 and 1.`);return e};function d7(t){let{axis:e}=t,n=rl(e,"y.breaks");return n&&uk(t,"scale.y.breaks",n.map(t=>Object.assign(Object.assign({key:`break-${t.start}-${t.end}`},t),{gap:d9(t.gap)}))),t}function ht(t,e={},n=!1,r=!0){let{canvas:i,emitter:a}=e;i&&(function(t){let e=t.getRoot().querySelectorAll(`.${tv}`);null==e||e.forEach(t=>{let{nameInteraction:e=new Map}=t;(null==e?void 0:e.size)>0&&Array.from(null==e?void 0:e.values()).forEach(t=>{null==t||t.destroy()})})}(i),n?i.destroy():i.destroyChildren()),r&&a.off()}function he(t,e){let n;let r=-1,i=-1;if(void 0===e)for(let e of t)++i,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,r=i);else for(let a of t)null!=(a=e(a,++i,t))&&(n>a||void 0===n&&a>=a)&&(n=a,r=i);return r}function hn(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 a of t)null!=(a=e(a,++i,t))&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}var hr=function(t,e,n){var r,i,a,o,l=0;n||(n={});var s=function(){l=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},u=function(){var u=Date.now();l||!1!==n.leading||(l=u);var c=e-(u-l);return i=this,a=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),l=u,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(s,c)),o};return u.cancel=function(){clearTimeout(r),l=0,r=i=a=null},u};function hi(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}var ha=function(t,e){if(null==e){t.innerHTML="";return}t.replaceChildren?Array.isArray(e)?t.replaceChildren.apply(t,(0,i5.ev)([],(0,i5.CR)(e),!1)):t.replaceChildren(e):(t.innerHTML="",Array.isArray(e)?e.forEach(function(e){return t.appendChild(e)}):t.appendChild(e))};function ho(t){return void 0===t&&(t=""),{CONTAINER:"".concat(t,"tooltip"),TITLE:"".concat(t,"tooltip-title"),LIST:"".concat(t,"tooltip-list"),LIST_ITEM:"".concat(t,"tooltip-list-item"),NAME:"".concat(t,"tooltip-list-item-name"),MARKER:"".concat(t,"tooltip-list-item-marker"),NAME_LABEL:"".concat(t,"tooltip-list-item-name-label"),VALUE:"".concat(t,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(t,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(t,"tooltip-crosshair-y")}}var hl={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},hs=function(t){function e(e){var n,r,i,a,o,l=this,s=null===(o=null===(a=e.style)||void 0===a?void 0:a.template)||void 0===o?void 0:o.prefixCls,u=ho(s);return(l=t.call(this,e,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,
1container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'<div class="'.concat(u.CONTAINER,'"></div>'),title:'<div class="'.concat(u.TITLE,'"></div>'),item:'<li class="'.concat(u.LIST_ITEM,'" data-index={index}>\n        <span class="').concat(u.NAME,'">\n          <span class="').concat(u.MARKER,'" style="background:{color}"></span>\n          <span class="').concat(u.NAME_LABEL,'" title="{name}">{name}</span>\n        </span>\n        <span class="').concat(u.VALUE,'" title="{value}">{value}</span>\n      </li>')},style:(void 0===(n=s)&&(n=""),i=ho(n),(r={})[".".concat(i.CONTAINER)]={position:"absolute",visibility:"visible","z-index":8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},r[".".concat(i.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},r[".".concat(i.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},r[".".concat(i.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},r[".".concat(i.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},r[".".concat(i.NAME)]={display:"flex","align-items":"center","max-width":"216px"},r[".".concat(i.NAME_LABEL)]=(0,i5.pi)({flex:1},hl),r[".".concat(i.VALUE)]=(0,i5.pi)({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},hl),r[".".concat(i.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},r[".".concat(i.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},r)})||this).timestamp=-1,l.prevCustomContentKey=l.attributes.contentKey,l.initShape(),l.render(l.attributes,l),l}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"elementSize",{get:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var t=this.attributes,e=t.data,n=t.template;return e.map(function(t,e){var r,i=t.name,a=t.color,o=t.index,l=(0,i5._T)(t,["name","color","index"]),s=(0,i5.pi)({name:void 0===i?"":i,color:void 0===a?"black":a,index:null!=o?o:e},l);return hi((r=n.item)&&s?r.replace(/\\?\{([^{}]+)\}/g,function(t,e){return"\\"===t.charAt(0)?t.slice(1):void 0===s[e]?"":s[e]}):r)})},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var e;null===(e=this.element)||void 0===e||e.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(t,e){var n=this;if(void 0!==t&&void 0!==e){var r="hidden"===this.element.style.visibility,i=function(){n.attributes.x=null!=t?t:n.attributes.x,n.attributes.y=null!=e?e:n.attributes.y,n.updatePosition()};r?this.closeTransition(i):i()}this.element.style.visibility="visible"},e.prototype.hide=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.attributes.enterable&&this.isCursorEntered(t,e)||(this.element.style.visibility="hidden")},e.prototype.initShape=function(){var t=this.attributes.template;this.element=hi(t.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(void 0===this.prevCustomContentKey||this.prevCustomContentKey!==this.attributes.contentKey){this.prevCustomContentKey=this.attributes.contentKey;var t=this.attributes.content;t&&("string"==typeof t?this.element.innerHTML=t:ha(this.element,t))}},e.prototype.renderHTMLTooltipElement=function(){var t,e,n=this.attributes,r=n.template,i=n.title,a=n.enterable,o=n.style,l=n.content,s=ho(r.prefixCls),u=this.element;if(this.element.style.pointerEvents=a?"auto":"none",l)this.renderCustomContent();else{i?(u.innerHTML=r.title,u.getElementsByClassName(s.TITLE)[0].innerHTML=i):null===(e=null===(t=u.getElementsByClassName(s.TITLE))||void 0===t?void 0:t[0])||void 0===e||e.remove();var c=this.HTMLTooltipItemsElements,f=document.createElement("ul");f.className=s.LIST,ha(f,c);var p=this.element.querySelector(".".concat(s.LIST));p?p.replaceWith(f):u.appendChild(f)}!function(t,e){Object.entries(e).forEach(function(e){var n=(0,i5.CR)(e,2),r=n[0],i=n[1];(0,i5.ev)([t],(0,i5.CR)(t.querySelectorAll(r)),!1).filter(function(t){return t.matches(r)}
1).forEach(function(t){t&&(t.style.cssText+=Object.entries(i).reduce(function(t,e){return"".concat(t).concat(e.join(":"),";")},""))})})}(u,o)},e.prototype.getRelativeOffsetFromCursor=function(t){var e=this.attributes,n=e.position,r=e.offset,i=(t||n).split("-"),a={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},o=this.elementSize,l=o.width,s=o.height,u=[-l/2,-s/2];return i.forEach(function(t){var e=(0,i5.CR)(u,2),n=e[0],i=e[1],o=(0,i5.CR)(a[t],2),c=o[0],f=o[1];u=[n+(l/2+r[0])*c,i+(s/2+r[1])*f]}),u},e.prototype.setOffsetPosition=function(t){var e=(0,i5.CR)(t,2),n=e[0],r=e[1],i=this.attributes,a=i.x,o=i.y,l=i.container,s=l.x,u=l.y;this.element.style.left="".concat(+(void 0===a?0:a)+s+n,"px"),this.element.style.top="".concat(+(void 0===o?0:o)+u+r,"px")},e.prototype.updatePosition=function(){var t=this.attributes.showDelay,e=Date.now();this.timestamp>0&&e-this.timestamp<(void 0===t?60:t)||(this.timestamp=e,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},e.prototype.autoPosition=function(t){var e=(0,i5.CR)(t,2),n=e[0],r=e[1],i=this.attributes,a=i.x,o=i.y,l=i.bounding,s=i.position;if(!l)return[n,r];var u=this.element,c=u.offsetWidth,f=u.offsetHeight,p=(0,i5.CR)([+a+n,+o+r],2),d=p[0],h=p[1],y={left:"right",right:"left",top:"bottom",bottom:"top"},g=l.x,m=l.y,v={left:d<g,right:d+c>g+l.width,top:h<m,bottom:h+f>m+l.height},b=[];s.split("-").forEach(function(t){v[t]?b.push(y[t]):b.push(t)});var x=b.join("-");return this.getRelativeOffsetFromCursor(x)},e.prototype.isCursorEntered=function(t,e){if(this.element){var n=this.element.getBoundingClientRect();return new o0(n.x,n.y,n.width,n.height).isPointIn(t,e)}return!1},e.prototype.closeTransition=function(t){var e=this,n=this.element.style.transition;this.element.style.transition="none",t(),setTimeout(function(){e.element.style.transition=n},10)},e.tag="tooltip",e}(al),hu=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let hc="tooltipLocked";function hf(t,e){var n;if(e)return"string"==typeof e?document.querySelector(e):e;let r=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView;if(r)return r.getContextService().getDomElement().parentElement}function hp({root:t,data:e,x:n,y:r,render:i,event:a,single:o,position:l="right-bottom",enterable:s=!1,css:u,mount:c,bounding:f,offset:p}){let d=hf(t,c),h=hf(t),y=o?h:t,g=f||function(t){let{min:[e,n],max:[r,i]}=t.getRenderBounds();return{x:e,y:n,width:r-e,height:i-n}}(t),m=function(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y}}(h,d),{tooltipElement:v=function(t,e,n,r,i,a,o,l={},s=[10,10]){let u=new hs({className:"tooltip",style:{x:e,y:n,container:o,data:[],bounding:a,position:r,enterable:i,title:"",offset:s,template:{prefixCls:"g2-"},style:rO({[iH("tooltip")]:{},[iH("tooltip-title")]:{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},l)}});return t.appendChild(u.HTMLTooltipElement),u}(d,n,r,l,s,g,m,u,p)}=y,{items:b,title:x=""}=e;v.update(Object.assign({x:n,y:r,data:b.map(t=>Object.assign(Object.assign({},t),{value:t.value||0===t.value?t.value:""})),title:x,position:l,enterable:s,container:m},void 0!==i&&{content:i(a,{items:b,title:x})})),y.tooltipElement=v}function hd({root:t,single:e,emitter:n,nativeEvent:r=!0,event:i=null}){r&&n.emit("tooltip:hide",{nativeEvent:r});let a=hf(t),{tooltipElement:o}=e?a:t;o&&o.hide(null==i?void 0:i.clientX,null==i?void 0:i.clientY),hb(t),hx(t),hO(t)}function hh({root:t,single:e}){let n=hf(t),r=e?n:t;if(!r)return;let{tooltipElement:i}=r;i&&(i.destroy(),r.tooltipElement=void 0),hb(t),hx(t),hO(t)}function hy(t){let{value:e}=t;return Object.assign(Object.assign({},t),{value:void 0===e?"undefined":e})}function hg(t){let e=t.getAttribute("fill"),n=t.getAttribute("stroke"),{__data__:r}=t,{color:i=e&&"transparent"!==e?e:n}=r;return i}function hm(t,e=t=>t){return Array.from(new Map(t.map(t=>[e(t),t])).values())}function hv(t,e,n,r=t.map(t=>t.__data__),i={}){let a=t=>t instanceof Date?+t:t,o=hm(r.map(t=>t.title),a).filter(rU),l=r.flatMap((r,a)=>{let o=r.element||t[a],{items:l=[],title:s}=r,u=l.filter(rU),c=void 0!==n?n:l.length<=1;return u.map(t=>
1{var{color:n=hg(o)||i.color,name:a}=t,l=hu(t,["color","name"]);let u=function(t,e){let{color:n,facet:r=!1}=t,{color:i,series:a}=e,o=function(t,e){var n,r,i,a;let o=null!==(n=e.markKey)&&void 0!==n?n:null===(i=null===(r=e.element)||void 0===r?void 0:r.__data__)||void 0===i?void 0:i.markKey,l=Object.keys(t).find(e=>{if(e.startsWith("series")){let n=t[e].getOptions();return"series"===n.name&&n.markKey===o}});return null!==(a=t[l])&&void 0!==a?a:t.series}(t,e);if(o&&o.invert&&!(o instanceof rR)&&!(o instanceof r$))return o.clone().invert(a);if(a&&o instanceof rR&&o.invert(a)!==i&&!r)return o.invert(a);if(n&&n.invert&&!(n instanceof rR)&&!(n instanceof r$)){let t=n.invert(i);return Array.isArray(t)?null:t}return null}(e,r),f=!c||dj in l?a||u:u||a;return Object.assign(Object.assign({},l),{color:n,name:f||s})})}).map(hy);return Object.assign(Object.assign({},o.length>0&&{title:o.join(",")}),{items:hm(l,t=>`(${a(t.name)}, ${a(t.value)}, ${a(t.color)})`)})}function hb(t){t.ruleY&&(t.ruleY.remove(),t.ruleY=void 0)}function hx(t){t.ruleX&&(t.ruleX.remove(),t.ruleX=void 0)}function hO(t){t.markers&&(t.markers.forEach(t=>t.remove()),t.markers=[])}function hw(t,e){return Array.from(t.values()).some(t=>{var n;return null===(n=t.interaction)||void 0===n?void 0:n[e]})}function hM(t,e){return void 0===t?e:t}function h_(t){let{title:e,items:n}=t;return 0===n.length&&void 0===e}function hk({root:t,event:e,elements:n=[],coordinate:r,scale:i,shared:a}){var o,l;let s=t=>iG.includes(t.markType),u=n.filter(t=>!s(t)),c=u.length>0&&u.every(t=>"interval"===t.markType)&&!iU(r),f=i.x,p=function(t){let{x:e}=t;if(!e||!e.valueBandWidth)return!0;let{valueBandWidth:n}=e;return!!(0,tR.Z)(n)||1===new Set(n.values()).size}(i),d=i.series,h=null!==(l=null===(o=null==f?void 0:f.getBandWidth)||void 0===o?void 0:o.call(f))&&void 0!==l?l:0,y=d&&d.valueBandWidth?t=>{let e=Math.round(1/d.valueBandWidth);return t.__data__.x+t.__data__.series*h+h/(2*e)}:t=>t.__data__.x+h/2;c&&u.sort((t,e)=>y(t)-y(e));let g=t=>{let{target:e=oS(n)}=t;return cN(e,e=>!!e.classList&&(rW(e)&&uk(e,"__data__.normalized",function(t,e){let{innerWidth:n,innerHeight:r,marginLeft:i,paddingLeft:a,insetLeft:o,marginTop:l,paddingTop:s,insetTop:u}=t.getOptions();return{x:(e.x-i-a-o)/n,y:(e.y-l-s-u)/r}}(r,{x:t.offsetX,y:t.offsetY})),e.classList.includes("element")))};return(c?e=>{let n=ch(t,e);if(!n)return;let[i]=r.invert(n),o=uT(y).center,l=p?o(u,i):function(t,e){let{adjustedRange:n,valueBandWidth:r,valueStep:i}=t,a=Array.from(r.values()),o=Array.from(i.values()),l=n.map((t,e)=>{let n=(o[e]-a[e])/2;return[t-n,t+a[e]+n]}).findIndex(([t,n])=>t<=e&&e<=n);return -1!==l?l:e>.5?n.length-1:0}(f,i),s=u[l];if(!a){let t=u.find(t=>t!==s&&y(t)===y(s));if(t)return g(e)||t}return s}:g)(e)}function hj({root:t,event:e,elements:n,coordinate:r,scale:i,startX:a,startY:o}){let l=iV(r),s=[],u=[];for(let t of n){if(iG.includes(t.markType))continue;let{__data__:e}=t,{seriesX:n,title:r,items:i}=e;n?s.push(t):(r||i)&&u.push(t)}let c=u.length&&u.every(t=>"interval"===t.markType)&&!iU(r),f=t=>t.__data__.x,p=!!i.x.getBandWidth&&u.length>0;s.sort((t,e)=>{let n=l?0:1,r=t=>t.getBounds().min[n];return l?r(e)-r(t):r(t)-r(e)});let d=t=>{let e=l?1:0,{min:n,max:r}=t.getLocalBounds();return ud([n[e],r[e]])};c?u.sort((t,e)=>f(t)-f(e)):u.sort((t,e)=>{let[n,r]=d(t),[i,a]=d(e),o=(n+r)/2,s=(i+a)/2;return l?s-o:o-s});let h=new Map(s.map(t=>{let{__data__:e}=t,{seriesX:n}=e;return[t,[ud(n.map((t,e)=>e),t=>n[+t]),n]]})),{x:y}=i,g=(null==y?void 0:y.getBandWidth)?y.getBandWidth()/2:0,m=t=>{let[e]=r.invert(t);return e-g},v=(t,e,n,r)=>{let{_x:i}=t,a=void 0!==i?y.map(i):m(e),o=r.filter(rU),[l,s]=ud([o[0],o[o.length-1]]);if(!p&&(a<l||a>s)&&l!==s)return null;let u=(0,uT(t=>r[+t]).center)(n,a);return n[u]},b=c?(t,e)=>{let n=(0,uT(f).center)(e,m(t)),r=e[n];return rp(e,f).get(f(r))}:(t,e)=>{let n=t[l?1:0],r=e.filter(t=>{let[e,r]=d(t);return n>=e&&n<=r});if(!p||r.length>0)return r;let i=(0,uT(t=>{let[e,n]=d(t);return(e+n)/2}).center)(e,n);return[e[i]].filter(rU)},x=(t,e)=>{let{__data__:n}=t;return Object.fromEntries(Object.entries(n).filter(([t])=>
1t.startsWith("series")&&"series"!==t).map(([t,n])=>{let r=n[e];return[rM(t.replace("series","")),r]}))},O=ch(t,e);if(!O)return;let w=[O[0]-a,O[1]-o];if(!w)return;let M=b(w,u),_=[],k=[];for(let t of s){let[n,i]=h.get(t),a=v(e,w,n,i);if(null!==a){_.push(t);let e=x(t,a),{x:n,y:i}=e,o=r.map([(n||0)+g,i||0]);k.push([Object.assign(Object.assign({},e),{element:t}),o])}}let j=Array.from(new Set(k.map(t=>t[0].x))),A=j[he(j,t=>Math.abs(t-m(w)))],E=k.filter(t=>t[0].x===A),S=[...E.map(t=>t[0]),...M.map(t=>t.__data__)];return{selectedElements:[..._,...M],selectedData:S,filteredSeriesData:E,abstractX:m}}function hA(t,e){var{elements:n,sort:r,filter:i,scale:a,coordinate:o,crosshairs:l,crosshairsX:s,crosshairsY:u,render:c,groupName:f,emitter:p,wait:d=50,leading:h=!0,trailing:y=!1,startX:g=0,startY:m=0,body:v=!0,single:b=!0,position:x,enterable:O,mount:w,bounding:M,theme:_,offset:k,disableNative:j=!1,marker:A=!0,preserve:E=!1,style:S={},css:P={},clickLock:C=!1,disableAutoHide:T=!1}=e,R=hu(e,["elements","sort","filter","scale","coordinate","crosshairs","crosshairsX","crosshairsY","render","groupName","emitter","wait","leading","trailing","startX","startY","body","single","position","enterable","mount","bounding","theme","offset","disableNative","marker","preserve","style","css","clickLock","disableAutoHide"]);let L=n(t),N=rO(S,R),I=iU(o),F=iV(o),{innerWidth:B,innerHeight:D,width:z,height:$,insetLeft:W,insetTop:Z}=o.getOptions(),H=hr(e=>{var n;if(C&&t.getAttribute(hc))return;let d=ch(t,e);if(!d)return;let h=cd(t),y=h.min[0],j=h.min[1],{selectedElements:E,selectedData:S,filteredSeriesData:T,abstractX:R}=hj({root:t,event:e,elements:L,coordinate:o,scale:a,startX:g,startY:m}
1),H=hv(E,a,f,S,_);if(r&&H.items.sort((t,e)=>r(t)-r(e)),i&&(H.items=H.items.filter(i)),0===E.length||h_(H)){q(e);return}if(v&&hp({root:t,data:H,x:d[0]+y,y:d[1]+j,render:c,event:e,single:b,position:x,enterable:O,mount:w,bounding:M,css:P,offset:k}),l||s||u){let e=rX(N,"crosshairs"),n=Object.assign(Object.assign({},e),rX(N,"crosshairsX")),r=Object.assign(Object.assign({},e),rX(N,"crosshairsY")),i=T.map(t=>t[1]);s&&function(t,e,n,r){var{plotWidth:i,plotHeight:a,mainWidth:o,mainHeight:l,startX:s,startY:u,transposed:c,polar:f,insetLeft:p,insetTop:d}=r;let h=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},hu(r,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"])),y=((t,e)=>{if(1===e.length)return e[0];let n=he(e.map(e=>sC(e,t)),t=>t);return e[n]})(n,e);if(f){let[e,n,r]=(()=>{let t=s+p+o/2,e=u+d+l/2,n=sC([t,e],y);return[t,e,n]})(),i=t.ruleX||((e,n,r)=>{let i=new tk.Cd({style:Object.assign({cx:e,cy:n,r},h)});return t.appendChild(i),i})(e,n,r);i.style.cx=e,i.style.cy=n,i.style.r=r,t.ruleX=i}else{let[e,n,r,o]=c?[s+y[0],s+y[0],u,u+a]:[s,s+i,y[1]+u,y[1]+u],l=t.ruleX||((e,n,r,i)=>{let a=new tk.x1({style:Object.assign({x1:e,x2:n,y1:r,y2:i},h)});return t.appendChild(a),a})(e,n,r,o);l.style.x1=e,l.style.x2=n,l.style.y1=r,l.style.y2=o,t.ruleX=l}}(t,i,d,Object.assign(Object.assign({},n),{plotWidth:B,plotHeight:D,mainWidth:z,mainHeight:$,insetLeft:W,insetTop:Z,startX:g,startY:m,transposed:F,polar:I})),u&&function(t,e,n){var{plotWidth:r,plotHeight:i,mainWidth:a,mainHeight:o,startX:l,startY:s,transposed:u,polar:c,insetLeft:f,insetTop:p}=n;let d=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},hu(n,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"])),h=e.map(t=>t[1]),y=e.map(t=>t[0]),g=hn(h),m=hn(y),[v,b,x,O]=(()=>{if(c){let t=Math.min(a,o)/2,e=l+f+a/2,n=s+p+o/2,r=sT(sP([m,g],[e,n])),i=e+t*Math.cos(r),u=n+t*Math.sin(r);return[e,i,n,u]}return u?[l,l+r,g+s,g+s]:[m+l,m+l,s,s+i]})();if(y.length>0){let e=t.ruleY||(()=>{let e=new tk.x1({style:Object.assign({x1:v,x2:b,y1:x,y2:O},d)});return t.appendChild(e),e})();e.style.x1=v,e.style.x2=b,e.style.y1=x,e.style.y2=O,t.ruleY=e}}(t,i,Object.assign(Object.assign({},r),{plotWidth:B,plotHeight:D,mainWidth:z,mainHeight:$,insetLeft:W,insetTop:Z,startX:g,startY:m,transposed:F,polar:I}))}A&&function(t,{data:e,style:n,theme:r}){t.markers&&t.markers.forEach(t=>t.remove());let{type:i=""}=n,a=e.filter(t=>{let[{x:e,y:n}]=t;return rU(e)&&rU(n)}).map(t=>{let[{color:e,element:a},o]=t,l=e||a.style.fill||a.style.stroke||r.color,s="hollow"===i?"transparent":l,u="hollow"===i?l:"#fff";return new tk.Cd({className:"g2-tooltip-marker",style:Object.assign({cx:o[0],cy:o[1],fill:s,r:4,stroke:u,lineWidth:2,pointerEvents:"none"},n)})});for(let e of a)t.appendChild(e);t.markers=a}(t,{data:T,style:rX(N,"marker"),theme:_});let G=null===(n=T[0])||void 0===n?void 0:n[0].x,Y=null!=G?G:R(focus);p.emit("tooltip:show",Object.assign(Object.assign({},e),{nativeEvent:!0,data:Object.assign(Object.assign({},H),{data:{x:u$(a.x,Y,!0)}})}))},d,{leading:h,trailing:y}),q=e=>{C&&t.getAttribute(hc)||T||hd({root:t,single:b,emitter:p,event:e})},G=()=>{hh({root:t,single:b})},Y=e=>{var n,{nativeEvent:r,data:i,offsetX:l,offsetY:s}=e,u=hu(e,["nativeEvent","data","offsetX","offsetY"]);if(r)return;let c=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.x,f=a.x.map(c),[p,d]=o.map([f,.5]),h=cd(t),y=h.min[0],g=h.min[1];H(Object.assign(Object.assign({},u),{offsetX:void 0!==l?l:y+p,offsetY:void 0!==s?s:g+d,_x:c}))},V=()=>{hd({root:t,single:b,emitter:p,nativeEvent:!1})},U=()=>{tt(),G()},X=e=>{ch(t,e)||q(e)},K=()=>{J()},Q=e=>{C&&t.setAttribute(hc,!t.getAttribute(hc)),H(e)},J=()=>{j||(t.addEventListener("pointerdown",Q),t.addEventListener("pointerenter",H),t.addEventListener("pointermove",H),t.addEventListener("pointerleave",X),t.addEventListener("pointerup",q))},tt=()=>{j||(t.removeEventListener("pointerdown",Q),t.removeEventListener("pointerenter",H),t.removeEventListener("pointermove",H),t.removeEventListener("pointerleave",X),t.removeEventListener("pointerup",q))};return J(),p.on("tooltip:show",Y),p.on("tooltip:hide",V),p.on("tooltip:disable",U),p.on("tooltip:enable",K),()=>{tt(),p.off("tooltip:show",Y),p.off("tooltip:hide",V),p.off("tooltip:disable",U),p.off("tooltip:enable",K),E?hd({root:t,single:b,emitter:p,nativeEvent:!1}):G()}}function hE(t){let{shared:e,crosshairs:n,crosshairsX:r,crosshairsY:i,series:a,name:o,item:l=()=>({}),facet:s=!1}=t,u=hu(t,["shared","crosshairs","crosshairsX","crosshairsY","series","name","item","facet"]);return(t,o,c)=>{let{container:f,view:p}=t,{scale:d,markState:h,coordinate:y,theme:g}=p,m=hw(h,"seriesTooltip"),v=hw(h,"crosshairs"),b=cp(f),x=hM(a,m),O=hM(n,v);if(u.clickLock&&!s&&b.setAttribute(hc,!1),x&&Array.from(h.values()).some(t=>{var e;return(null===(e=t.interaction)||void 0===e?void 0:e.seriesTooltip)&&t.tooltip})&&!s)return hA(b,Object.assign(Object.assign({},u),{theme:g,elements:cu,scale:d,coordinate:y,crosshairs:O,crosshairsX:hM(hM(r,n),!1),crosshairsY:hM(i,O),item:l,emitter:c}));if(x&&s){let e=o.filter(e=>e!==t&&e.options.parentKey===t.options.key),a=cc(t,o),s=e[0].view.scale,f=b.getBounds(),p=f.min[0],d=f.min[1];Object.assign(s,{facet:!0});let h=b.parentNode.parentNode;return u.clickLock&&h.setAttribute(hc,!1),hA(h,Object.assign(Object.assign({},u),{theme:g,elements:()=>a,scale:s,coordinate:y,crosshairs:hM(n,v),crosshairsX:hM(hM(r,n),!1),crosshairsY:hM(i,O),item:l,startX:p,startY:d,emitter:c}))}return function(t,{elements:e,coordinate:n,scale:r,render:i,groupName:a,sort:o,filter:l,emitter:s,wait:u=50,leading:c=!0,trailing:f=!1,groupKey:p=t=>t,single:d=!0,position:h,enterable:y,datum:g,view:m,mount:v,bounding:b,theme:x,offset:O,shared:w=!1,body:M=!0,disableNative:_=!1,preserve:k=!1,css:j={},clickLock:A=!1,disableAutoHide:E=!1}){let S=e(t),P=rp(S,p),C=hr(e=>{if(A&&t.getAttribute(hc))return;let u=hk({root:t,event:e,elements:S,coordinate:n,scale:r,shared:w});if(!u){E||hd({root:t,single:d,emitter:s,event:e});return}let c=p(u),f=P.get(c);if(!f)return;let g=1!==f.length||w?hv(f,r,a,void 0,x):function(t){let{__data__:e}=t;if(rW(t))return function(t){var e,n,r,i,a,o,l;let{__data__:s}=t,{title:u,items:c=[]}=s;if(c.some(t=>dj in t)){let e=c.filter(rU).map(e=>{var{color:n=hg(t)}=e;return Object.assign(Object.assign({},hu(e,["color"])),{color:n})}).map(hy);return Object.assign(Object.assign({},u&&{title:u}),{items:e})}let f=null!==(n=null===(e=null==s?void 0:s.normalized)||void 0===e?void 0:e.x)&&void 0!==n?n:0,p=null===(r=t.parentNode)||void 0===r?void 0:r.__data__,{x:d={},y:h={},color:y={}}=null!==(i=null==p?void 0:p.encode)&&void 0!==i?i:{},{value:g=[]}=d,{value:m=[]}=h,{value:v=[]}=y,b=Math.min(Math.round(g.length*f),g.length-1);return{title:`${g[b]}, ${m[b]}`,items:[{name:null!==(a=y.field)&&void 0!==a?a:"value",value:v[b],color:(null===(o=t.style)||void 0===o?void 0:o.fill)||(null===(l=t.getAttribute)||void 0===l?void 0:l.call(t,"color"))||"#000"}]}}(t);let{title:n,items:r=[]}=e,i=r.filter(rU).map(e=>{var{color:n=hg(t)}=e;return Object.assign(Object.assign({},hu(e,["color"])),{color:n})}).map(hy);return Object.assign(Object.assign({},n&&{title:n}),{items:i})}(f[0]);if(o&&g.items.sort((t,e)=>o(t)-o(e)),l&&(g.items=g.items.filter(l)),h_(g)){E||hd({root:t,single:d,emitter:s,event:e});return}let{offsetX:_,offsetY:k}=e;M&&hp({root:t,data:g,x:_,y:k,render:i,event:e,single:d,position:h,enterable:y,mount:v,bounding:b,css:j,offset:O}),s.emit("tooltip:show",Object.assign(Object.assign({},e),{nativeEvent:!0,data:Object.assign(Object.assign({},g),{data:rZ(u,m)})}))},u,{leading:c,trailing:f}),T=e=>{E||hd({root:t,single:d,emitter:s,event:e})},R=e=>{A&&t.setAttribute(hc,!t.getAttribute(hc)),C(e)},L=()=>{_||(t.addEventListener("pointerdown",R),t.addEventListener("pointermove",C),t.addEventListener("pointerleave",T),t.addEventListener("pointerup",T))},N=()=>{_||(t.removeEventListener("pointerdown",R),t.removeEventListener("pointermove",C),t.removeEventListener("pointerleave",T),t.removeEventListener("pointerup",T))},I=({nativeEvent:e,offsetX:n,offsetY:r,data:i})=>{if(e)return;let{data:a}=i,o=cC(S,a,g);if(!o)return;let{x:l,y:s,width:u,height:c}=o.getBBox(),f=t.getBBox();C({target:o,offsetX:void 0!==n?n+f.x:l+u/2,offsetY:void 0!==r?r+f.y:s+c/2})},F=({nativeEvent:e}={})=>{e||hd({root:t,single:d,emitter:s,nativeEvent:!1})},B=()=>{N(),hh({root:t,single:d})},D=()=>{L()};return s.on("tooltip:show",I),s.on("tooltip:hide",F),s.on("tooltip:enable",D),s.on("tooltip:disable",B),L(),()=>{N(),s.off("tooltip:show",I),s.off("tooltip:hide",F),s.off("tooltip:enable",D),s.off("tooltip:disable",B),k?hd({root:t,single:d,emitter:s,nativeEvent:!1}):hh({root:t,single:d})}}(b,Object.assign(Object.assign({},u),{datum:cv(p),elements:cu,scale:d,coordinate:y,groupKey:e?cm(p):void 0,item:l,emitter:c,view:p,theme:g,shared:e}))}}hE.props={reapplyWhenUpdate:!0};let hS=t=>t?parseInt(t):0;function hP(t,e){let n=[t];for(;n.length;){let t=n.shift();for(let r of(e&&e(t),t.children||[]))n.push(r)}}class hC{constructor(t={},e){this.parentNode=null,this.children=[],this.index=0,this.type=e,this.value=t}map(t=t=>t){let e=t(this.value);return this.value=e,this}attr(t,e){return 1==arguments.length?this.value[t]:this.map(n=>(n[t]=e,n))}append(t){let e=new t({});return e.children=[],this.push(e),e}push(t){return t.parentNode=this,t.index=this.children.length,this.children.push(t),this}remove(){let t=this.parentNode;if(t){let{children:e}
1=t,n=e.findIndex(t=>t===this);e.splice(n,1)}return this}getNodeByKey(t){let e=null;return hP(this,n=>{t===n.attr("key")&&(e=n)}),e}getNodesByType(t){let e=[];return hP(this,n=>{t===n.type&&e.push(n)}),e}getNodeByType(t){let e=null;return hP(this,n=>{e||t!==n.type||(e=n)}),e}call(t,...e){return t(this.map(),...e),this}getRoot(){let t=this;for(;t&&t.parentNode;)t=t.parentNode;return t}}var hT=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let hR=["width","height","depth","padding","paddingLeft","paddingRight","paddingBottom","paddingTop","inset","insetLeft","insetRight","insetTop","insetBottom","margin","marginLeft","marginRight","marginTop","marginBottom","autoFit","theme","title","interaction"],hL="__remove__",hN="__callback__";function hI(t){return Object.assign(Object.assign({},t.value),{type:t.type})}function hF(t,e){let{width:n,height:r,autoFit:i,depth:a=0}=t,o=640,l=480;if(i){let{width:t,height:n}=function(t){let e=getComputedStyle(t),n=t.clientWidth||hS(e.width),r=t.clientHeight||hS(e.height);return{width:n-(hS(e.paddingLeft)+hS(e.paddingRight)),height:r-(hS(e.paddingTop)+hS(e.paddingBottom))}}(e);o=t||o,l=n||l}return o=n||o,l=r||l,{width:Math.max((0,tR.Z)(o)?o:1,1),height:Math.max((0,tR.Z)(l)?l:1,1),depth:a}}function hB(t){return e=>{for(let[n,r]of Object.entries(t)){let{type:t}=r;"value"===t?function(t,e,{key:n=e}){t.prototype[e]=function(t){return 0==arguments.length?this.attr(n):this.attr(n,t)}}(e,n,r):"array"===t?function(t,e,{key:n=e}){t.prototype[e]=function(t){if(0==arguments.length)return this.attr(n);if(Array.isArray(t))return this.attr(n,t);let e=[...this.attr(n)||[],t];return this.attr(n,e)}}(e,n,r):"object"===t?function(t,e,{key:n=e}){t.prototype[e]=function(t,e){if(0==arguments.length)return this.attr(n);if(1==arguments.length&&"string"!=typeof t)return this.attr(n,t);let r=this.attr(n)||{};return r[t]=1==arguments.length||e,this.attr(n,r)}}(e,n,r):"node"===t?function(t,e,{ctor:n}){t.prototype[e]=function(t){let r=this.append(n);return"mark"===e&&(r.type=t),r}}(e,n,r):"container"===t?function(t,e,{ctor:n}){t.prototype[e]=function(){return this.type=null,this.append(n)}}(e,n,r):"mix"===t&&function(t,e,n){t.prototype[e]=function(t){if(0==arguments.length)return this.attr(e);if(Array.isArray(t))return this.attr(e,{items:t});if(r0(t)&&(void 0!==t.title||void 0!==t.items)||null===t||!1===t)return this.attr(e,t);let n=this.attr(e)||{},{items:r=[]}=n;return r.push(t),n.items=r,this.attr(e,n)}}(e,n,0)}return e}}function hD(t){return Object.fromEntries(Object.entries(t).map(([t,e])=>[t,{type:"node",ctor:e}]))}let hz={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},h$=Object.assign(Object.assign({},hz),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),hW=Object.assign(Object.assign({},hz),{labelTransform:{type:"array"}}),hZ=class extends hC{changeData(t){var e;let n=this.getRoot();if(n)return this.attr("data",t),(null===(e=this.children)||void 0===e?void 0:e.length)&&this.children.forEach(e=>{e.attr("data",t)}),null==n?void 0:n.render()}getView(){let{views:t}=this.getRoot().getContext();if(null==t?void 0:t.length)return t.find(t=>t.key===this._key)}getScale(){var t;return null===(t=this.getView())||void 0===t?void 0:t.scale}getScaleByChannel(t){let e=this.getScale();if(e)return e[t]}getCoordinate(){var t;return null===(t=this.getView())||void 0===t?void 0:t.coordinate}getTheme(){var t;return null===(t=this.getView())||void 0===t?void 0:t.theme}getGroup(){let t=this._key;if(t)return this.getRoot().getContext().canvas.getRoot().getElementById(t)}show(){let t=this.getGroup();t&&(t.isVisible()||cl(t))}hide(){let t=this.getGroup();t&&t.isVisible()&&co(t)}};hZ=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([hB(hW)],hZ);let hH=class extends hC{changeData(t){let e=this.getRoot();if(e)return this.attr("data",t),null==e?void 0:e.render()}getMark(){var t;let e=null===(t=this.getRoot())||void 0===t?void 0:t.getView();if(!e)return;let{markState:n}=e,r=Array.from(n.keys()).find(t=>t.key===this.attr("key"));return n.get(r)}getScale(){var t;let e=null===(t=this.getRoot())||void 0===t?void 0:t.getView();if(e)return null==e?void 0:e.scale}
1getScaleByChannel(t){var e,n;let r=null===(e=this.getRoot())||void 0===e?void 0:e.getView();if(r)return null===(n=null==r?void 0:r.scale)||void 0===n?void 0:n[t]}getGroup(){let t=this.attr("key");if(t)return this.getRoot().getContext().canvas.getRoot().getElementById(t)}};hH=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([hB(h$)],hH);var hq=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},hG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};class hY extends hZ{constructor(t){let{container:e,canvas:n,renderer:r,plugins:i,lib:a,createCanvas:o}=t;super(hG(t,["container","canvas","renderer","plugins","lib","createCanvas"]),"view"),this._hasBindAutoFit=!1,this._rendering=!1,this._trailingClear=null,this._trailing=!1,this._trailingResolve=null,this._trailingReject=null,this._previousDefinedType=null,this._onResize=ro(()=>{this.forceFit()},300),this._renderer=r||new rn,this._plugins=i||[],this._container=function(t){if(void 0===t){let t=document.createElement("div");return t[hL]=!0,t}return"string"==typeof t?document.getElementById(t):t}(e),this._emitter=new th,this._context={library:Object.assign(Object.assign({},a),nu),emitter:this._emitter,canvas:n,createCanvas:o},this._create()}render(){let t,e;if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._bindAutoFit(),this._rendering=!0;let n=new Promise((t,e)=>(function(t,e={},n=()=>{},r=t=>{throw t}){var i;let a=function t(e,n=!0){if(Array.isArray(e))return e.map((r,i)=>t(e[i],n));if("object"==typeof e&&e)return iy(e,(e,r)=>n&&iv.includes(r)?t(e,"children"===r):n?e:t(e,!1));if("string"==typeof e){let t=e.trim();if(t.startsWith("{")&&t.endsWith("}"))return ib(t.slice(1,-1))}return e}(t),{width:o=640,height:l=480,depth:s=0}=a,u=function(t){let e=rO({},t),n=new Map([[e,null]]),r=new Map([[null,-1]]),i=[e];for(;i.length;){let t=i.shift();if(void 0===t.key){let e=n.get(t),i=r.get(t),a=null===e?"0":`${e.key}-${i}`;t.key=a}let{children:e=[]}=t;if(Array.isArray(e))for(let a=0;a<e.length;a++){let o=rO({},e[a]);e[a]=o,n.set(o,t),r.set(o,a),i.push(o)}}return e}(function t(e){let n=(function(...t){return e=>t.reduce((t,e)=>e(t),e)})(d8,d7)(e);return n.children&&Array.isArray(n.children)&&(n.children=n.children.map(e=>t(e))),n}(a)),{canvas:c=function(t,e){let n=new rn;return n.registerPlugin(new ra),new tk.Xz({width:t,height:e,container:document.createElement("div"),renderer:n})}(o,l),emitter:f=new th,library:p}=e;e.canvas=c,e.emitter=f,e.externals={};let{width:d,height:h}=c.getConfig();(d!==o||h!==l)&&c.resize(o,l),f.emit(r3.BEFORE_RENDER);let y=r2(c.document.documentElement);return c.ready.then(()=>(function t(e,n,r){return d$(this,void 0,void 0,function*(){var i;let{library:a}=r,[o]=cH("composition",a),[l]=cH("interaction",a),s=new Set(Object.keys(a).map(t=>{var e;return null===(e=/mark\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(rU)),u=new Set(Object.keys(a).map(t=>{var e;return null===(e=/component\.(.*)/.exec(t))||void 0===e?void 0:e[1]}).filter(rU)),c=t=>{let{type:e}=t;if("function"==typeof e){let{props:t={}}=e,{composite:n=!0}=t;if(n)return"mark"}return"string"!=typeof e?e:s.has(e)||u.has(e)?"mark":e},f=t=>"mark"===c(t),p=t=>"standardView"===c(t),d=t=>{let{type:e}=t;return"string"==typeof e&&!!u.has(e)},h=t=>p(t)?[t]:o({type:c(t),static:d(t)})(t),y=[],g=new Map,m=new Map,v=[e],b=[];for(;v.length;){let t=v.shift();if(p(t)){let e=m.get(t),[n,i]=e?dY(e,t,a):yield dH(t,r);g.set(n,t),y.push(n);let o=i.flatMap(h).map(t=>cY(t,a));if(v.push(...o),o.every(p)){let t=yield Promise.all(o.map(t=>dq(t,r)));!function(t){let e=t.flatMap(t=>
1Array.from(t.values())).flatMap(t=>t.channels.map(t=>t.scale));p5(e,"x"),p5(e,"y")}(t);for(let e=0;e<o.length;e++){let n=o[e],r=t[e];m.set(n,r)}}}else{let e=h(f(t)?t:yield d1(t,r));Array.isArray(e)?v.push(...e):"function"==typeof e&&b.push(e())}}r.emitter.emit(r3.BEFORE_PAINT);let x=new Map,O=new Map,w=[];n.selectAll(d4(tv)).data(y,t=>t.key).join(t=>t.append("g").attr("className",tv).attr("id",t=>t.key).call(dZ).each(function(t,e,n){dV(t,r2(n),w,r),x.set(t,n)}),t=>t.call(dZ).each(function(t,e,n){dV(t,r2(n),w,r),O.set(t,n)}),t=>t.each(function(t,e,n){for(let t of n.nameInteraction.values())t.destroy()}).remove());let M=(e,n,i)=>Array.from(e.entries()).map(([a,o])=>{let l=i||new Map,s=(t,e=t=>t)=>l.set(t,e),u=g.get(a),c=function(e,n,r){let{library:i}=r,a=function(t){let[,e]=cH("interaction",t);return t=>{let[n,r]=t;try{return[n,e(n)]}catch(t){return[n,r.type]}}}(i),o=d0(n).map(a).filter(t=>t[1]&&t[1].props&&t[1].props.reapplyWhenUpdate).map(t=>t[0]);return(n,i,a)=>d$(this,void 0,void 0,function*(){let[l,s]=yield dH(n,r);for(let t of(dV(l,e,[],r),o.filter(t=>t!==i)))!function(t,e,n,r,i){var a;let{library:o}=i,[l]=cH("interaction",o),s=e.node().nameInteraction,u=d0(n).find(([e])=>e===t),c=s.get(t);if(!c||(null===(a=c.destroy)||void 0===a||a.call(c),!u[1]))return;let f=dG(r,t,u[1],l)({options:n,view:r,container:e.node(),update:t=>Promise.resolve(t)},[],i.emitter);s.set(t,{destroy:f})}(t,e,n,l,r);for(let n of s)t(n,e,r);return a(),{options:n,view:l}})}(r2(o),u,r),f={view:a,container:o,options:u,setState:s,update:(t,r)=>d$(this,void 0,void 0,function*(){let i=rq(Array.from(l.values()))(u);return yield c(i,t,()=>{(0,rm.Z)(r)&&n(e,r,l)})})};return r.externals.update=f.update,r.externals.setState=s,f}),_=(t=O,e,n)=>{var i;let a=M(t,_,n);for(let t of a){let{options:n,container:o}=t,s=o.nameInteraction,u=d0(n);for(let n of(e&&(u=u.filter(t=>e.includes(t[0]))),u)){let[e,o]=n,u=s.get(e);if(u&&(null===(i=u.destroy)||void 0===i||i.call(u)),o){let n=dG(t.view,e,o,l)(t,a,r.emitter);s.set(e,{destroy:n})}}}},k=M(x,_);for(let t of k){let{options:e}=t,n=new Map;for(let i of(t.container.nameInteraction=n,d0(e))){let[e,a]=i;if(a){let i=dG(t.view,e,a,l)(t,k,r.emitter);n.set(e,{destroy:i})}}}_();let{width:j,height:A}=e,E=[];for(let e of b){let i=new Promise(i=>d$(this,void 0,void 0,function*(){for(let i of e){let e=Object.assign({width:j,height:A},i);yield t(e,n,r)}i()}));E.push(i)}return r.views=y,null===(i=r.animations)||void 0===i||i.forEach(t=>null==t?void 0:t.cancel()),r.animations=w,r.emitter.emit(r3.AFTER_PAINT),Promise.all([...w.filter(rU).map(dQ).map(t=>t.finished),...E])})})(Object.assign(Object.assign({},u),{width:o,height:l,depth:s}),y,e)).then(()=>{if(s){let[t,e]=c.document.documentElement.getPosition();c.document.documentElement.setPosition(t,e,-s/2)}c.requestAnimationFrame(()=>{c.requestAnimationFrame(()=>{f.emit(r3.AFTER_RENDER),null==n||n()})})}).catch(t=>{null==r||r(t)}),"string"==typeof(i=c.getConfig().container)?document.getElementById(i):i})(this._computedOptions(),this._context,this._createResolve(t),this._createReject(e))),[r,i,a]=[new Promise((n,r)=>{e=n,t=r}),e,t];return n.then(i).then(()=>{if(this._trailingClear){let t=this.options();this._trailingClear(),this._trailing&&this.options(t)}}).catch(a).then(()=>{this._trailingClear=null,this._renderTrailing()}),r}options(t){if(0==arguments.length)return function(t){let e=function(t){if(null!==t.type)return t;let e=t.children[t.children.length-1];for(let n of hR)e.attr(n,t.attr(n));return e}(t),n=[e],r=new Map;for(r.set(e,hI(e));n.length;){let t=n.pop(),e=r.get(t),{children:i=[]}=t;for(let t of i)if(t.type===hN)e.children=t.value;else{let i=hI(t),{children:a=[]}=e;a.push(i),n.push(t),r.set(t,i),e.children=a}}return r.get(e)}(this);let{type:e}=t;return e&&(this._previousDefinedType=e),!function(t,e,n,r,i){let a=function(t,e,n,r,i){let{type:a}=t,{type:o=n||a}=e;if("function"!=typeof o&&new Set(Object.keys(i)).has(o)){for(let n of hR)void 0!==t.attr(n)&&void 0===e[n]&&(e[n]=t.attr(n));return e}if("function"==typeof o||new Set(Object.keys(r)).has(o)){let t={type:"view"},n=Object.assign({},e);for(let e of hR)void 0!==n[e]&&(t[e]=n[e],delete n[e]);return Object.assign(Object.assign({},t),{children:[n]})}return e}
1(t,e,n,r,i),o=[[null,t,a]];for(;o.length;){let[t,e,n]=o.shift();if(e){if(n){!function(t,e){let{type:n,children:r}=e,i=hT(e,["type","children"]);t.type===n||void 0===n?function t(e,n,r=5,i=0){if(!(i>=r)){for(let a of Object.keys(n)){let o=n[a];rx(o)&&rx(e[a])?t(e[a],o,r,i+1):e[a]=o}return e}}(t.value,i):"string"==typeof n&&(t.type=n,t.value=i)}(e,n);let{children:t}=n,{children:r}=e;if(Array.isArray(t)&&Array.isArray(r)){let n=Math.max(t.length,r.length);for(let i=0;i<n;i++){let n=t[i],a=r[i];o.push([e,a,n])}}else"function"==typeof t&&o.push([e,null,t])}else e.remove()}else!function(t,e,n,r){if(!t)return;let i=[[t,e]];for(;i.length;){let[t,e]=i.shift(),a=function(t,e,n){if("function"==typeof t){let e=new hC;return e.value=t,e.type=hN,e}let{type:r,children:i}=t,a=hT(t,["type","children"]),o=new(function(t,e,n){if("function"==typeof t)return e.mark;let r=Object.assign(Object.assign({},e),n)[t];if(!r)throw Error(`Unknown mark: ${t}.`);return r}(r,e,n));return o.value=a,o.type=r,o}(e,n,r);Array.isArray(t.children)&&t.push(a);let{children:o}=e;if(Array.isArray(o))for(let t of o)i.push([a,t]);else"function"==typeof o&&i.push([a,o])}}(t,n,r,i)}}(this,t,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(t,e,n){return this._emitter.on(t,e,n),this}once(t,e){return this._emitter.once(t,e),this}emit(t,...e){return this._emitter.emit(t,...e),this}off(t,e){return this._emitter.off(t,e),this}clear(t=!0){if(this._rendering){this._trailingClear=()=>{this.clear(t)},this._reset();return}let e=this.options();this.emit(r3.BEFORE_CLEAR),this._reset(),ht(e,this._context,!1,t),this.emit(r3.AFTER_CLEAR)}destroy(){let t=this.options();this.emit(r3.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),ht(t,this._context,!0),this._container[hL]&&function(t){let e=t.parentNode;e&&e.removeChild(t)}(this._container),this.emit(r3.AFTER_DESTROY)}forceFit(){this.options.autoFit=!0;let{width:t,height:e}=hF(this.options(),this._container);if(t===this._width&&e===this._height)return Promise.resolve(this);this.emit(r3.BEFORE_CHANGE_SIZE);let n=this.render();return n.then(()=>{this.emit(r3.AFTER_CHANGE_SIZE)}),n}changeSize(t,e){if(t===this._width&&e===this._height)return Promise.resolve(this);this.emit(r3.BEFORE_CHANGE_SIZE),this.attr("width",t),this.attr("height",e);let n=this.render();return n.then(()=>{this.emit(r3.AFTER_CHANGE_SIZE)}),n}getDataByXY(t,e={}){let{shared:n=!1,series:r,facet:i=!1,startX:a=0,startY:o=0}=e,{canvas:l,views:s}=this._context,{document:u}=l,{x:c,y:f}=t,{coordinate:p,scale:d,markState:h,data:y,key:g}=s[0],m=u.getElementsByClassName(tm),v=n?t=>t.__data__.x:t=>t,b=rp(m,v),x=cp(u.getElementsByClassName(tv)[0]),O=t=>Array.from(t.values()).some(t=>{var e,n;return(null===(e=t.interaction)||void 0===e?void 0:e.seriesTooltip)||(null===(n=t.channels)||void 0===n?void 0:n.some(t=>"series"===t.name&&void 0!==t.values))}),w=hM(r,O(h)),M=t=>rl(t,"__data__.data",null);try{if(w&&O(h)&&!i){let{selectedData:t}=hj({root:x,event:{offsetX:c,offsetY:f},elements:m,coordinate:p,scale:d,startX:a,startY:o}),e=y.get(`${g}-0`);return t.map(({index:t})=>e[t])}let t=hk({root:x,event:{offsetX:c,offsetY:f},elements:m,coordinate:p,scale:d,shared:n});if(rW(t))return rZ(t,y.get(g));let e=v(t),r=b.get(e);return r?r.map(M):[]}catch(e){let t=l.document.elementFromPointSync(c,f);return t?M(t):[]}}_create(){let{library:t}=this._context,e=["mark.mark",...Object.keys(t).filter(t=>t.startsWith("mark.")||"component.axisX"===t||"component.axisY"===t||"component.legends"===t)];for(let t of(this._marks={},e)){let e=t.split(".").pop();class n extends hH{constructor(){super({},e)}}this._marks[e]=n,this[e]=function(t){let r=this.append(n);return"mark"===e&&(r.type=t),r}}let n=["composition.view",...Object.keys(t).filter(t=>t.startsWith("composition.")&&"composition.mark"!==t)];for(let t of(this._compositions=Object.fromEntries(n.map(t=>{let e=t.split(".").pop(),n=class extends hZ{constructor(){super({},e)}};return[e,n=hq([hB(hD(this._marks))],n)]})),Object.values(this._compositions)))hB(hD(this._compositions))(t);for(let t of n){let e=t.split(".").pop();this[e]=function(){let t=this._compositions[e];return this.type=null,this.append(t)}}}_reset(){let t=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([e])=>e.startsWith("margin")||e.startsWith("padding")||e.startsWith("inset")||t.includes(e))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{let t=this._trailingResolve.bind(this);this._trailingResolve=null,t(this)}).catch(t=>{let e=this._trailingReject.bind(this);this._trailingReject=null,e(t)}))}_createResolve(t){return()=>{this._rendering=!1,t(this)}}_createReject(t){return e=>{this._rendering=!1,t(e)}}_computedOptions(){let t=this.options(),{key:e="G2_CHART_KEY"}=t,{width:n,height:r,depth:i}=hF(t,this._container);return this._width=n,this._height=r,this._key=e,Object.assign(Object.assign({key:this._key},t),{width:n,height:r,depth:i})}_createCanvas(){var t,e;let{width:n,height:r}=hF(this.options(),this._container);this._plugins.push(new ra),this._plugins.forEach(t=>this._renderer.registerPlugin(t)),this._context.canvas=new tk.Xz({container:this._container,width:n,height:r,renderer:this._renderer});let i=null===(e=null===(t=this._context.canvas)||void 0===t?void 0:t.getContextService())||void 0===e?void 0:e.getDomElement();i&&(i.style.display="block")}_addToTrailing(){var t;return null===(t=this._trailingResolve)||void 0===t||t.call(this,this),this._trailing=!0,new Promise((t,e)=>{this._trailingResolve=t,this._trailingReject=e})}_bindAutoFit(){let{autoFit:t}=this.options();if(this._hasBindAutoFit){t||this._unbindAutoFit();return}t&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}}var hV=Object.prototype.hasOwnProperty,hU=function(t,e){if(null===t||!rx(t))return{};var n={};return oX(e,function(e){hV.call(t,e)&&(n[e]=t[e])}),n};function hX(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 hK(t,e,n,r,i){for(var a,o=t.children,l=-1,s=o.length,u=t.value&&(r-e)/t.value;++l<s;)(a=o[l]).y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*u}function hQ(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 hJ(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=h1)):void 0===e&&(e=h0);for(var n,r,i,a,o,l=new h3(t),s=[l];n=s.pop();)if((i=e(n.data))&&(o=(i=Array.from(i)).length))for(n.children=i,a=o-1;a>=0;--a)s.push(r=i[a]=new h3(i[a])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(h5)}function h0(t){return t.children}function h1(t){return Array.isArray(t)?t[1]:null}function h2(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function h5(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function h3(t){this.data=t,this.depth=this.height=0,this.parent=null}function h4(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function h6(t,e,n,r){return e&&h4(t,e),n&&h4(t,n),r&&h4(t,r),t}h3.prototype=hJ.prototype={constructor:h3,count:function(){return this.eachAfter(hQ)},each:function(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,a=this,o=[a],l=[],s=-1;a=o.pop();)if(l.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)o.push(n[r]);for(;a=l.pop();)t.call(e,a,++s,this);return this},eachBefore:function(t,e){for(var n,r,i=this,a=[i],o=-1;i=a.pop();
1)if(t.call(e,i,++o,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(t,e){let n=-1;for(let 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;)r.push(e=e.parent);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 hJ(this).eachBefore(h2)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,a=[i];do for(t=a.reverse(),a=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)a.push(e[n]);while(a.length)}};let h8={field:"value",size:[1,1],round:!1,padding:0,sort:(t,e)=>e.value-t.value,as:["x","y"],ignoreParentValue:!0},h9="childNodeCount",h7="Invalid field: it must be a string!";var yt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ye="sunburst",yn="markType",yr="path",yi="ancestor-node",ya={id:ye,encode:{x:"x",y:"y",key:yr,color:yi,value:"value"},axis:{x:!1,y:!1},style:{[yn]:ye,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[h9]:h9,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},yo=t=>{let{encode:e,data:n=[]}=t,r=yt(t,["encode","data"]),i=Object.assign(Object.assign({},r.coordinate),{innerRadius:Math.max(rl(r,["coordinate","innerRadius"],.2),1e-5)}),a=Object.assign(Object.assign({},ya.encode),e),{value:o}=a;return[rO({},ya,Object.assign(Object.assign({type:"rect",data:function(t){let{data:e,encode:n}=t,{color:r,value:i}=n,a=function(t,e){let n;let r=(e=h6({},h8,e)).as;if(!(0,rm.Z)(r)||2!==r.length)throw TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=function(t,e){let{field:n,fields:r}=t;if((0,tN.Z)(n))return n;if((0,rm.Z)(n))return console.warn(h7),n[0];if(console.warn(`${h7} will try to get fields instead.`),(0,tN.Z)(r))return r;if((0,rm.Z)(r)&&r.length)return r[0];throw TypeError(h7)}(e)}catch(t){console.warn(t)}let i=(function(){var t=1,e=1,n=0,r=!1;function i(i){var a,o=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/o,i.eachBefore((a=e,function(t){t.children&&hK(t,t.x0,a*(t.depth+1)/o,t.x1,a*(t.depth+2)/o);var e=t.x0,r=t.y0,i=t.x1-n,l=t.y1-n;i<e&&(e=i=(e+i)/2),l<r&&(r=l=(r+l)/2),t.x0=e,t.y0=r,t.x1=i,t.y1=l})),r&&i.eachBefore(hX),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})().size(e.size).round(e.round).padding(e.padding)(hJ(t).sum(t=>ss(t.children)?e.ignoreParentValue?0:t[n]-oK(t.children,(t,e)=>t+e[n],0):t[n]).sort(e.sort)),a=r[0],o=r[1];return i.each(t=>{var e,n;t[a]=[t.x0,t.x1,t.x1,t.x0],t[o]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(n=t.data)||void 0===n?void 0:n.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach(e=>{-1===r.indexOf(e)&&delete t[e]})}),function(t){let e=[];
1if(t&&t.each){let n,r;t.each(t=>{var i,a;t.parent!==n?(n=t.parent,r=0):r+=1;let o=uL(((null===(i=t.ancestors)||void 0===i?void 0:i.call(t))||[]).map(t=>e.find(e=>e.name===t.name)||t),({depth:e})=>e>0&&e<t.depth);t.nodeAncestor=o,t[h9]=(null===(a=t.children)||void 0===a?void 0:a.length)||0,t.nodeIndex=r,e.push(t)})}else t&&t.eachNode&&t.eachNode(t=>{e.push(t)});return e}(i)}(e,{field:i,type:"hierarchy.partition",as:["x","y"]}),o=[];return a.forEach(t=>{var e,n,a,l;if(0===t.depth)return null;let s=t.data.name,u=[s],c=Object.assign({},t);for(;c.depth>1;)s=`${null===(e=c.parent.data)||void 0===e?void 0:e.name} / ${s}`,u.unshift(null===(n=c.parent.data)||void 0===n?void 0:n.name),c=c.parent;let f=Object.assign(Object.assign(Object.assign({},hU(t.data,[i])),{[yr]:s,[yi]:c.data.name}),t);r&&r!==yi&&(f[r]=t.data[r]||(null===(l=null===(a=t.parent)||void 0===a?void 0:a.data)||void 0===l?void 0:l[r])),o.push(f)}),o.map(t=>{let e=t.x.slice(0,2),n=[t.y[2],t.y[0]];return e[0]===e[1]&&(n[0]=n[1]=(t.y[2]+t.y[0])/2),Object.assign(Object.assign({},t),{x:e,y:n,fillOpacity:Math.pow(.85,t.depth)})})}({encode:a,data:n}),encode:a,tooltip:{title:"path",items:[t=>({name:o,value:t[o]})]}},r),{coordinate:i}))]};yo.props={};var yl=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return oX(t,function(n,r){(0,am.Z)(t)&&"prototype"===r||e.push(r)}),e};let ys=t=>t.querySelectorAll(".element").filter(t=>rl(t,["style",yn])===ye),yu={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}},yc=()=>[["cartesian"]];yc.props={};let yf=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];yf.props={transform:!0};let yp=(t={})=>Object.assign(Object.assign({},{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1}),t),yd=t=>{let{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=yp(t);return[...yf(),...iD({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};yd.props={};let yh=()=>[["parallel",0,1,0,1]];yh.props={};let yy=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];yy.props={transform:!0};let yg=t=>{let{startAngle:e=-Math.PI/2,endAngle:n=3*Math.PI/2,innerRadius:r=0,outerRadius:i=1}=t;return[...yh(),...iD({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};yg.props={};let ym=({startAngle:t=0,endAngle:e=6*Math.PI,innerRadius:n=0,outerRadius:r=1})=>[["translate",.5,.5],["reflect.y"],["translate",-.5,-.5],["helix",t,e,n,r]];ym.props={};let yv=({value:t})=>e=>e.map(()=>t);yv.props={};let yb=({value:t})=>e=>e.map(e=>e[t]);yb.props={};let yx=({value:t})=>e=>e.map(t);yx.props={};let yO=({value:t})=>()=>t;function yw(t,e){if(null!==t)return{type:"column",value:t,field:e}}function yM(t,e){return Object.assign(Object.assign({},yw(t,e)),{inferred:!0})}function y_(t,e){if(null!==t)return{type:"column",value:t,field:e,visual:!0}}function yk(t,e){let n=[];for(let r of t)n[r]=e;return n}function yj(t,e){let n=t[e];if(!n)return[null,null];let{value:r,field:i=null}=n;return[r,i]}function yA(t,...e){for(let n of e){if("string"!=typeof n)return[n,null];{let[e,r]=yj(t,n);if(null!==e)return[e,r]}}return[null,null]}function yE(t){return!(t instanceof Date)&&"object"==typeof t}yO.props={};let yS=()=>(t,e)=>{let{encode:n}=e,{y1:r}=n;return void 0!==r?[t,e]:[t,rO({},e,{encode:{y1:yM(yk(t,0))}})]};yS.props={};let yP=()=>(t,e)=>{let{encode:n}=e,{x:r}=n;return void 0!==r?[t,e]:[t,rO({},e,{encode:{x:yM(yk(t,0))},scale:{x:{guide:null}}})]};yP.props={};let yC=(t,e)=>cn(Object.assign({colorAttribute:"fill"},t),e);yC.props=Object.assign(Object.assign({},cn.props),{defaultMarker:"square"});let yT=(t,e)=>cn(Object.assign({colorAttribute:"stroke"},t),e);function yR(){}function yL(t){this._context=t}function yN(t){return new yL(t)}yT.props=Object.assign(Object.assign({},cn.props),{defaultMarker:"hollowSquare"}),yL.prototype={areaStart:yR,areaEnd:yR,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))}};var yI=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function yF(t,e,n,r,i){let[a,o,l,s]=t;return iV(r)?i?[[n?n[1][0]:a[0],a[1]],o,l,[n?n[2][0]:s[0],s[1]]]:[a,[e?e[0][0]:o[0],o[1]],[e?e[3][0]:l[0],l[1]],s]:i?[[a[0],n?n[1][1]:a[1]],o,l,[s[0],n?n[2][1]:s[1]]]:[a,[o[0],e?e[0][1]:o[1]],[l[0],e?e[3][1]:l[1]],s]}let yB=(t,e,n)=>({x:Math.cos(t)*e*n,y:Math.sin(t)*e}),yD=(t,e)=>e/Math.tan(t/2),yz=(t,e)=>
1{let{adjustPoints:n=yF,radius:r,radiusTopLeft:i=r,radiusTopRight:a=r,radiusBottomRight:o=r,radiusBottomLeft:l=r,innerRadius:s=0,innerRadiusTopLeft:u=s,innerRadiusTopRight:c=s,innerRadiusBottomRight:f=s,innerRadiusBottomLeft:p=s,first:d=!0,last:h=!0}=t,y=yI(t,["adjustPoints","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","first","last"]),{coordinate:g,document:m}=e;return(t,e,r,s)=>{let{index:v}=e,{color:b}=r,x=yI(r,["color"]),O=n(t,s[v+1],s[v-1],g,y.reverse),[w,M,_,k]=iV(g)?sz(O):O,{color:j=b,opacity:A}=e,E=[d&&null!=i?i:u,d&&null!=a?a:c,h&&null!=o?o:f,h&&null!=l?l:p],S=E.find(t=>t>0)?function(t,e){let[n,r,i,a]=t,[o,l,s,u]=e,c=r[0]-n[0]>i[0]-a[0],f=Math.atan2(Math.abs(r[1]-i[1]),Math.abs(r[0]-i[0])),p=c?[yD(f,o),yD(f,l),s,u]:[o,l,yD(f,s),yD(f,u)],d=c?1:-1,h=p.map(t=>yB(f,t,d));return`M${n[0]+p[0]} ${n[1]} L${r[0]-p[1]} ${r[1]} Q${r[0]} ${r[1]} ${r[0]-h[1].x} ${r[1]+h[1].y} L${i[0]+h[2].x} ${i[1]-h[2].y} Q${i[0]} ${i[1]} ${i[0]-p[2]} ${i[1]} L${a[0]+p[3]} ${a[1]} Q${a[0]} ${a[1]} ${a[0]-h[3].x} ${a[1]-h[3].y} L${n[0]+h[0].x} ${n[1]+h[0].y} Q${n[0]} ${n[1]} ${n[0]+p[0]} ${n[1]} Z`}([w,M,_,k],E):s4().curve(yN)([w,M,_,k]);return r2(m.createElement("path",{})).call(sF,x).style("d",S).style("fill",j).style("fillOpacity",A).call(sF,y).node()}};function y$(t,e,n,r,i){let[a,o,l,s]=t;return iV(r)?i?[[n?n[1][0]:(a[0]+s[0])/2,a[1]],o,l,[n?n[2][0]:(a[0]+s[0])/2,s[1]]]:[a,[e?e[0][0]:(o[0]+l[0])/2,o[1]],[e?e[3][0]:(o[0]+l[0])/2,l[1]],s]:i?[[a[0],n?n[1][1]:(a[1]+s[1])/2],o,l,[s[0],n?n[2][1]:(a[1]+s[1])/2]]:[a,[o[0],e?e[0][1]:(o[1]+l[1])/2],[l[0],e?e[3][1]:(o[1]+l[1])/2],s]}yz.props={defaultMarker:"square"};let yW=(t,e)=>yz(Object.assign({adjustPoints:y$},t),e);function yZ(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}yW.props={defaultMarker:"square"};let yH=(t={})=>{let{channel:e="x"}=t;return(t,n)=>{let{encode:r}=n,{tooltip:i}=n;if(r1(i))return[t,n];let{title:a}=i;if(void 0!==a)return[t,n];let o=Object.keys(r).filter(t=>t.startsWith(e)).filter(t=>!r[t].inferred).map(t=>yj(r,t)).filter(([t])=>t).map(t=>t[0]);if(0===o.length)return[t,n];let l=[];for(let e of t)l[e]={value:o.map(t=>t[e]instanceof Date?function(t){let e=t.getFullYear(),n=yZ(t.getMonth()+1),r=yZ(t.getDate()),i=`${e}-${n}-${r}`,a=t.getHours(),o=t.getMinutes(),l=t.getSeconds();return a||o||l?`${i} ${yZ(a)}:${yZ(o)}:${yZ(l)}`:i}(t[e]):t[e]).join(", ")};return[t,rO({},n,{tooltip:{title:l}})]}};yH.props={};let yq=t=>{let{channel:e}=t;return(t,n)=>{let{encode:r,tooltip:i}=n;if(r1(i))return[t,n];let{items:a=[]}=i;return!a||a.length>0?[t,n]:[t,rO({},n,{tooltip:{items:(Array.isArray(e)?e:[e]).flatMap(t=>Object.keys(r).filter(e=>e.startsWith(t)).map(t=>{let{field:e,value:n,inferred:i=!1,aggregate:a}=r[t];return i?null:a&&n?{channel:t}:e?{field:e}:n?{channel:t}:null}).filter(t=>null!==t))}})]}};yq.props={};var yG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let yY=()=>(t,e)=>{let{encode:n}=e,{key:r}=n,i=yG(n,["key"]);if(void 0!==r)return[t,e];let a=Object.values(i).map(({value:t})=>t),o=t.map(t=>a.filter(Array.isArray).map(e=>e[t]).join("-"));return[t,rO({},e,{encode:{key:yw(o)}})]};function yV(t={}){let{shapes:e}=t;return[{name:"color"},{name:"opacity"},{name:"shape",range:e},{name:"enterType"},{name:"enterDelay",scaleKey:"enter"},{name:"enterDuration",scaleKey:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function yU(t={}){return[...yV(t),{name:"title",scale:"identity"}]}function yX(){return[{type:yH,channel:"color"},{type:yq,channel:["x","y"]}]}function yK(){return[{type:yH,channel:"x"},{type:yq,channel:["y"]}]}function yQ(t={}){return yV(t)}function yJ(){return[{type:yY}]}function y0(t,e){return t.getBandWidth(t.invert(e))}function y1(t,e,n={}){let{x:r,y:i,series:a}=e,{x:o,y:l,series:s}=t,{style:{bandOffset:u=s?0:.5,bandOffsetX:c=u,bandOffsetY:f=u}={}}=n,p=!!(null==o?void 0:o.getBandWidth),d=!!(null==l?void 0:l.getBandWidth),h=!!(null==s?void 0:s.getBandWidth);return p||d?(t,e)=>{let n=p?y0(o,r[e]):0,u=d?y0(l,i[e]):0,y=h&&a?(y0(s,a[e])/2+ +a[e])*n:0,[g,m]=t;return[g+c*n+y,m+f*u]}:t=>t}function y2(t){return parseFloat(t)/100}function y5(t,e,n,r){let{x:i,y:a}=n,{innerWidth:o,innerHeight:l}=r.getOptions(),s=Array.from(t,t=>{let e=i[t],n=a[t];return[["string"==typeof e?y2(e)*o:+e,"string"==typeof n?y2(n)*l:+n]]});return[t,s]}function y3(t){return"function"==typeof t?t:e=>e[t]}function y4(t,e){return Array.from(t,y3(e))}function y6(t,e){let n=Array.isArray(t)?{links:t}:t&&"object"==typeof t?{links:t.links||[],nodes:t.nodes}:{links:[]},{source:r=t=>t.source,target:i=t=>t.target,value:a=t=>t.value}=e,{links:o,nodes:l}=n;if(!o.length)return{links:[],nodes:l||[]};let s=y4(o,r),u=y4(o,i),c=y4(o,a);return{links:o.map((t,e)=>({target:u[e],source:s[e],value:c[e]})),nodes:l||Array.from(new Set([...s,...u]),t=>({key:t}))}}function y8(t,e){return t.getBandWidth(t.invert(e))}yY.props={};let y9={rect:yC,hollow:yT,funnel:yz,pyramid:yW},y7=()=>(t,e,n,r)=>{let{x:i,y1:a,series:o,size:l}=n,{y:s}=n;s=s.map(t=>void 0!==t?t:1);let u=e.x,c=e.series,[f]=r.getSize(),p=l?l.map(t=>+t/f):null,d=l?(t,e,n)=>{let r=t+e/2,i=p[n];return[r-i/2,r+i/2]}:(t,e,n)=>[t,t+e],h=Array.from(t,t=>{let e=y8(u,i[t]),n=c?y8(c,null==o?void 0:o[t]):1,l=(+(null==o?void 0:o[t])||0)*e,[f,p]=d(+i[t]+l,e*n,t),h=+s[t],y=+a[t];return[[f,h],[p,h],[p,y],[f,y]].map(t=>r.map(t))});return[t,h]};y7.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:y9,channels:[...yU({shapes:Object.keys(y9)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[...yJ(),{type:yS},{type:yP}],postInference:[...yK()],interaction:{shareTooltip:!0}};let gt={rect:yC,hollow:yT},ge=()=>(t,e,n,r)=>{let{x:i,x1:a,y:o,y1:l}=n,s=Array.from(t,t=>{let e=[+i[t],+o[t]];return[e,[+a[t],+o[t]],[+a[t],+l[t]],[+i[t],+l[t]]].map(t=>r.map(t))});return[t,s]};ge.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:gt,channels:[...yU({shapes:Object.keys(gt)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...yJ(),{type:yS}],postInference:[...yK()],interaction:{shareTooltip:!0}};var gn=gi(sU);function gr(t){this._curve=t}function gi(t){function e(e){return new gr(t(e))}return e._curve=t,e}function ga(t){var e=t.curve;
1return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(gi(t)):e()._curve},t}gr.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)))}};var go=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let gl=s6(t=>{let{d1:e,d2:n,style1:r,style2:i}=t.attributes,a=t.ownerDocument;r2(t).maybeAppend("line",()=>a.createElement("path",{})).style("d",e).call(sF,r),r2(t).maybeAppend("line1",()=>a.createElement("path",{})).style("d",n).call(sF,i)}),gs=(t,e)=>{let{curve:n,gradient:r=!1,gradientColor:i="between",defined:a=t=>!Number.isNaN(t)&&null!=t,connect:o=!1}=t,l=go(t,["curve","gradient","gradientColor","defined","connect"]),{coordinate:s,document:u}=e;return(t,e,c)=>{let f;let{color:p,lineWidth:d}=c,h=go(c,["color","lineWidth"]),{color:y=p,size:g=d,seriesColor:m,seriesX:v,seriesY:b}=e,x=sZ(s,e),O=iV(s),w=r&&m?sD(m,v,b,r,i,O):y,M=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},h),w&&{stroke:w}),g&&{lineWidth:g}),x&&{transform:x}),l);if(iU(s)){let t=s.getCenter();f=e=>ga(s4().curve(gn)).angle((n,r)=>sR(sP(e[r],t))).radius((n,r)=>sC(e[r],t)).defined(([t,e])=>a(t)&&a(e)).curve(n)(e)}else f=s4().x(t=>t[0]).y(t=>t[1]).defined(([t,e])=>a(t)&&a(e)).curve(n);let[_,k]=function(t,e){let n=[],r=[],i=!1,a=null;for(let o of t)e(o[0])&&e(o[1])?(n.push(o),i&&(i=!1,r.push([a,o])),a=o):i=!0;return[n,r]}(t,a),j=rX(M,"connect"),A=!!k.length;return A&&(!o||Object.keys(j).length)?A&&!o?r2(u.createElement("path",{})).style("d",f(t)).call(sF,M).node():r2(new gl).style("style1",Object.assign(Object.assign({},M),j)).style("style2",M).style("d1",k.map(f).join(",")).style("d2",f(t)).node():r2(u.createElement("path",{})).style("d",f(_)||[]).call(sF,M).node()}};gs.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let gu=(t,e)=>{let{coordinate:n}=e;return(...r)=>gs(Object.assign({curve:iU(n)?yN:sU},t),e)(...r)};function gc(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 gf(t,e){this._context=t,this._k=(1-e)/6}function gp(t,e){this._context=t,this._k=(1-e)/6}function gd(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>1e-12){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>1e-12){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/c,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function gh(t,e){this._context=t,this._alpha=e}function gy(t,e){this._context=t,this._alpha=e}gu.props=Object.assign(Object.assign({},gs.props),{defaultMarker:"line"}),gf.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:gc(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:gc(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}},function t(e){function n(t){return new gf(t,e)}return n.tension=function(e){return t(+e)},n}(0),gp.prototype={areaStart:yR,areaEnd:yR,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:gc(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}},function t(e){function n(t){return new gp(t,e)}return n.tension=function(e){return t(+e)},n}(0),gh.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:gd(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}},function t(e){function n(t){return e?new gh(t,e):new gf(t,0)}
1return n.alpha=function(e){return t(+e)},n}(.5),gy.prototype={areaStart:yR,areaEnd:yR,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:gd(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}};var gg=function t(e){function n(t){return e?new gy(t,e):new gp(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function gm(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function gv(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function gb(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,l=(a-r)/3;t._context.bezierCurveTo(r+l,i+l*e,a-l,o-l*n,a,o)}function gx(t){this._context=t}function gO(t){this._context=new gw(t)}function gw(t){this._context=t}function gM(t){return new gx(t)}function g_(t){return new gO(t)}gx.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:gb(this,this._t0,gv(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,gb(this,gv(this,n=gm(this,t,e)),n);break;default:gb(this,this._t0,n=gm(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(gO.prototype=Object.create(gx.prototype)).point=function(t,e){gx.prototype.point.call(this,e,t)},gw.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,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};var gk=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let gj=(t,e)=>{let n=gk(t,[]),{coordinate:r}=e;return(...t)=>gs(Object.assign({curve:iU(r)?gg:iV(r)?g_:gM},n),e)(...t)};function gA(t,e){this._context=t,this._t=e}function gE(t){return new gA(t,.5)}function gS(t){return new gA(t,0)}function gP(t){return new gA(t,1)}gj.props=Object.assign(Object.assign({},gs.props),{defaultMarker:"smooth"}),gA.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}};let gC=(t,e)=>gs(Object.assign({curve:gP},t),e);gC.props=Object.assign(Object.assign({},gs.props),{defaultMarker:"hv"});let gT=(t,e)=>gs(Object.assign({curve:gS},t),e);gT.props=Object.assign(Object.assign({},gs.props),{defaultMarker:"vh"});let gR=(t,e)=>gs(Object.assign({curve:gE},t),e);gR.props=Object.assign(Object.assign({},gs.props),{defaultMarker:"hvh"});var gL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let gN=(t,e)=>{let{document:n}=e;
1return(e,r,i)=>{let{seriesSize:a,color:o}=r,{color:l}=i,s=gL(i,["color"]),u=s1();for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1],i=a[t],o=a[t+1];[...n,...r].every(rU)&&function(t,e,n,r,i){let a=sT(sP(n,e)),o=a+Math.PI/2,l=[r/2*Math.cos(o),r/2*Math.sin(o)],s=[i/2*Math.cos(o),i/2*Math.sin(o)],u=[i/2*Math.cos(a),i/2*Math.sin(a)],c=[r/2*Math.cos(a),r/2*Math.sin(a)],f=function([t,e],[n,r]){return[t+n,e+r]}(e,l),p=function([t,e],[n,r]){return[t+n,e+r]}(n,s),d=function([t,e],[n,r]){return[t+n,e+r]}(p,u),h=function([t,e],[n,r]){return[t+n,e+r]}(n,u),y=sP(h,s),g=sP(n,s),m=sP(e,l),v=sP(m,c),b=sP(e,c),x=sP(f,c);t.moveTo(...f),t.lineTo(...p),t.arcTo(...d,...h,i/2),t.arcTo(...y,...g,i/2),t.lineTo(...m),t.arcTo(...v,...b,r/2),t.arcTo(...x,...f,r/2),t.closePath()}(u,n,r,i,o)}return r2(n.createElement("path",{})).call(sF,s).style("fill",o||l).style("d",u.toString()).call(sF,t).node()}};gN.props=Object.assign(Object.assign({},gs.props),{defaultMarker:"line"});let gI=()=>(t,e)=>{let{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,rO({},e,{encode:{series:y_(yk(t,void 0))}})]};gI.props={};let gF=()=>(t,e)=>{let{encode:n}=e,{series:r,color:i}=n;if(void 0!==r||void 0===i)return[t,e];let[a,o]=yj(n,"color");return[t,rO({},e,{encode:{series:yw(a,o)}})]};gF.props={};let gB={line:gu,smooth:gj,hv:gC,vh:gT,hvh:gR,trail:gN},gD=(t,e,n,r)=>{var i,a;let{series:o,x:l,y:s}=n,{x:u,y:c}=e;if(void 0===l||void 0===s)throw Error("Missing encode for x or y channel.");let f=o?Array.from(rp(t,t=>o[t]).values()):[t],p=f.map(t=>t[0]).filter(t=>void 0!==t),d=((null===(i=null==u?void 0:u.getBandWidth)||void 0===i?void 0:i.call(u))||0)/2,h=((null===(a=null==c?void 0:c.getBandWidth)||void 0===a?void 0:a.call(c))||0)/2;return[p,Array.from(f,t=>t.map(t=>r.map([+l[t]+d,+s[t]+h]))),f]},gz=(t,e,n,r)=>{let i=Object.entries(n).filter(([t])=>t.startsWith("position")).map(([,t])=>t);if(0===i.length)throw Error("Missing encode for position channel.");iU(r)&&i.push(i[0]);let a=Array.from(t,t=>{let e=i.map(e=>+e[t]),n=r.map(e),a=[];for(let t=0;t<n.length;t+=2)a.push([n[t],n[t+1]]);return a});return[t,a]},g$=()=>(t,e,n,r)=>(iQ(r)?gz:gD)(t,e,n,r);g$.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:gB,channels:[...yU({shapes:Object.keys(gB)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...yJ(),{type:gI},{type:gF}],postInference:[...yK(),{type:yH,channel:"color"},{type:yq,channel:["position"]}],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};var gW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function gZ(t,e,n,r){if(1===e.length)return;let{size:i}=n;if("fixed"===t)return i;if("normal"===t||iJ(r)){let[[t,n],[r,i]]=e;return Math.max(0,(Math.abs((r-t)/2)+Math.abs((i-n)/2))/2)}return i}let gH=(t,e)=>{let{colorAttribute:n,symbol:r,mode:i="auto"}=t,a=gW(t,["colorAttribute","symbol","mode"]),o=ns.get(sq(r))||ns.get("point"),{coordinate:l,document:s}=e;return(e,r,u)=>{let{lineWidth:c,color:f}=u,p=a.stroke?c||1:c,{color:d=f,transform:h,opacity:y}=r,[g,m]=sH(e),v=gZ(i,e,r,l)||a.r||u.r;return r2(s.createElement("path",{})).call(sF,u).style("fill","transparent").style("d",o(g,m,v)).style("lineWidth",p).style("transform",h).style("transformOrigin",`${g-v} ${m-v}`).style("stroke",d).style(sW(t),y).style(n,d).call(sF,a).node()}};gH.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let gq=(t,e)=>gH(Object.assign({colorAttribute:"stroke",symbol:"point"},t),e);gq.props=Object.assign({defaultMarker:"hollowPoint"},gH.props);let gG=(t,e)=>gH(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t),e);gG.props=Object.assign({defaultMarker:"hollowDiamond"},gH.props);let gY=(t,e)=>gH(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t),e);gY.props=Object.assign({defaultMarker:"hollowHexagon"},gH.props);let gV=(t,e)=>
1gH(Object.assign({colorAttribute:"stroke",symbol:"square"},t),e);gV.props=Object.assign({defaultMarker:"hollowSquare"},gH.props);let gU=(t,e)=>gH(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t),e);gU.props=Object.assign({defaultMarker:"hollowTriangleDown"},gH.props);let gX=(t,e)=>gH(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t),e);gX.props=Object.assign({defaultMarker:"hollowTriangle"},gH.props);let gK=(t,e)=>gH(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t),e);gK.props=Object.assign({defaultMarker:"hollowBowtie"},gH.props);var gQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let gJ=(t,e)=>{let{colorAttribute:n,mode:r="auto"}=t,i=gQ(t,["colorAttribute","mode"]),{coordinate:a,document:o}=e;return(e,l,s)=>{let{lineWidth:u,color:c}=s,f=i.stroke?u||1:u,{color:p=c,transform:d,opacity:h}=l,[y,g]=sH(e),m=gZ(r,e,l,a)||i.r||s.r;return r2(o.createElement("circle",{})).call(sF,s).style("fill","transparent").style("cx",y).style("cy",g).style("r",m).style("lineWidth",f).style("transform",d).style("transformOrigin",`${y} ${g}`).style("stroke",p).style(sW(t),h).style(n,p).call(sF,i).node()}},g0=(t,e)=>gJ(Object.assign({colorAttribute:"fill"},t),e);g0.props={defaultMarker:"circle",defaultEnterAnimation:"fadeIn",defaultExitAnimation:"fadeOut"};let g1=(t,e)=>gJ(Object.assign({colorAttribute:"stroke"},t),e);g1.props=Object.assign({defaultMarker:"hollowPoint"},g0.props);let g2=(t,e)=>gH(Object.assign({colorAttribute:"fill",symbol:"point"},t),e);g2.props=Object.assign({defaultMarker:"point"},gH.props);let g5=(t,e)=>gH(Object.assign({colorAttribute:"stroke",symbol:"plus"},t),e);g5.props=Object.assign({defaultMarker:"plus"},gH.props);let g3=(t,e)=>gH(Object.assign({colorAttribute:"fill",symbol:"diamond"},t),e);g3.props=Object.assign({defaultMarker:"diamond"},gH.props);let g4=(t,e)=>gH(Object.assign({colorAttribute:"fill",symbol:"square"},t),e);g4.props=Object.assign({defaultMarker:"square"},gH.props);let g6=(t,e)=>gH(Object.assign({colorAttribute:"fill",symbol:"triangle"},t),e);g6.props=Object.assign({defaultMarker:"triangle"},gH.props);let g8=(t,e)=>gH(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t),e);g8.props=Object.assign({defaultMarker:"hexagon"},gH.props);let g9=(t,e)=>gH(Object.assign({colorAttribute:"stroke",symbol:"cross"},t),e);g9.props=Object.assign({defaultMarker:"cross"},gH.props);let g7=(t,e)=>gH(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t),e);g7.props=Object.assign({defaultMarker:"bowtie"},gH.props);let mt=(t,e)=>gH(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t),e);mt.props=Object.assign({defaultMarker:"hyphen"},gH.props);let me=(t,e)=>gH(Object.assign({colorAttribute:"stroke",symbol:"line"},t),e);me.props=Object.assign({defaultMarker:"line"},gH.props);let mn=(t,e)=>gH(Object.assign({colorAttribute:"stroke",symbol:"tick"},t),e);mn.props=Object.assign({defaultMarker:"tick"},gH.props);let mr=(t,e)=>gH(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t),e);mr.props=Object.assign({defaultMarker:"triangleDown"},gH.props);let mi=()=>(t,e)=>{let{encode:n}=e,{y:r}=n;return void 0!==r?[t,e]:[t,rO({},e,{encode:{y:yM(yk(t,0))},scale:{y:{guide:null}}})]};mi.props={};let ma=()=>(t,e)=>{let{encode:n}=e,{size:r}=n;return void 0!==r?[t,e]:[t,rO({},e,{encode:{size:y_(yk(t,3))}})]};ma.props={};let mo={hollow:gq,hollowDiamond:gG,hollowHexagon:gY,hollowSquare:gV,hollowTriangleDown:gU,hollowTriangle:gX,hollowBowtie:gK,hollowCircle:g1,point:g2,plus:g5,diamond:g3,square:g4,triangle:g6,hexagon:g8,cross:g9,bowtie:g7,hyphen:mt,line:me,tick:mn,triangleDown:mr,circle:g0},ml=t=>(e,n,r,i)=>{let{x:a,y:o,x1:l,y1:s,size:u,dx:c,dy:f}=r,[p,d]=i.getSize(),h=y1(n,r,t),y=t=>{let e=+((null==c?void 0:c[t])||0),n=+((null==f?void 0:f[t])||0);return[(l?(+a[t]+ +l[t])/2:+a[t])+e,(s?(+o[t]+ +s[t])/2:+o[t])+n]},g=u?Array.from(e,t=>{let[e,n]=y(t),r=+u[t],a=r/p,o=r/d;return[i.map(h([e-a,n-o],t)),i.map(h([e+a,n+o],t))]}):Array.from(e,t=>[i.map(h(y(t),t))]);return[e,g]};ml.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:mo,channels:[...yU({shapes:Object.keys(mo)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[...yJ(),{type:yP},{type:mi}],postInference:[{type:ma},...yX()]};let ms=(t,e)=>{let{coordinate:n}=e;
1return(e,r,i)=>{let{color:a,text:o="",fontSize:l,rotate:s=0,transform:u=""}=r,c={text:String(o),stroke:a,fill:a,fontSize:l},[[f,p]]=e;return r2(new s9).style("x",f).style("y",p).call(sF,i).style("transform",`${u}rotate(${+s})`).style("coordCenter",n.getCenter()).call(sF,c).call(sF,t).node()}};ms.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var mu=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let mc=s6(t=>{let e=t.attributes,{class:n,x:r,y:i,transform:a}=e,o=mu(e,["class","x","y","transform"]),l=rX(o,"marker"),{size:s=24}=l,u=()=>(function(t){let e=t/Math.sqrt(2),n=t*Math.sqrt(2),[r,i]=[-e,e-n],[a,o]=[0,0],[l,s]=[e,e-n];return[["M",r,i],["A",t,t,0,1,1,l,s],["L",a,o],["Z"]]})(s/2),[c,f]=function(t){let{min:e,max:n}=t.getLocalBounds();return[(e[0]+n[0])*.5,(e[1]+n[1])*.5]}(r2(t).maybeAppend("marker",()=>new l2({})).call(t=>t.node().update(Object.assign({symbol:u},l))).node());r2(t).maybeAppend("text","text").style("x",c).style("y",f).call(sF,o)}),mf=(t,e)=>{let n=mu(t,[]);return(t,e,r)=>{let{color:i}=r,a=mu(r,["color"]),{color:o=i,text:l=""}=e,s={text:String(l),stroke:o,fill:o},[[u,c]]=t;
1return r2(new mc).call(sF,a).style("transform",`translate(${u},${c})`).call(sF,s).call(sF,n).node()}};mf.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let mp=(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let{color:a,text:o="",fontSize:l,rotate:s=0,transform:u=""}=r,c={text:String(o),stroke:a,fill:a,fontSize:l,textAlign:"center",textBaseline:"middle"},[[f,p]]=e;return r2(new tk.xv).style("x",f).style("y",p).call(sF,i).style("transformOrigin","center center").style("transform",`${u}rotate(${s}deg)`).style("coordCenter",n.getCenter()).call(sF,c).call(sF,t).node()}};mp.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let md=()=>(t,e)=>{let{data:n}=e;if(!Array.isArray(n)||n.some(yE))return[t,e];let r=Array.isArray(n[0])?n:[n],i=r.map(t=>t[0]),a=r.map(t=>t[1]);return[t,rO({},e,{encode:{x:yw(i),y:yw(a)}})]};md.props={};var mh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let my=()=>(t,e)=>{let{data:n,style:r={}}=e,i=mh(e,["data","style"]),{x:a,y:o}=r,l=mh(r,["x","y"]);return void 0==a||void 0==o?[t,e]:[[0],rO({},i,{data:[0],cartesian:!0,encode:{x:yw([a||0]),y:yw([o||0])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:l})]};my.props={};let mg={text:ms,badge:mf,tag:mp},mm=t=>{let{cartesian:e=!1}=t;return e?y5:(e,n,r,i)=>{let{x:a,y:o}=r,l=y1(n,r,t),s=Array.from(e,t=>{let e=[+a[t],+o[t]];return[i.map(l(e,t))]});return[e,s]}};mm.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:mg,channels:[...yU({shapes:Object.keys(mg)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize",scale:"identity"},{name:"rotate",scale:"identity"}],preInference:[...yJ(),{type:md},{type:my}],postInference:[...yX()]};let mv=()=>(t,e)=>[t,rO({scale:{x:{padding:0},y:{padding:0}}},e)];mv.props={};let mb={cell:yC,hollow:yT},mx=()=>(t,e,n,r)=>{let{x:i,y:a}=n,o=e.x,l=e.y,s=Array.from(t,t=>{let e=o.getBandWidth(o.invert(+i[t])),n=l.getBandWidth(l.invert(+a[t])),s=+i[t],u=+a[t];return[[s,u],[s+e,u],[s+e,u+n],[s,u+n]].map(t=>r.map(t))});return[t,s]};function mO(t,e,n){var r=null,i=sY(!0),a=null,o=sU,l=null,s=s2(u);function u(u){var c,f,p,d,h,y=(u=sG(u)).length,g=!1,m=Array(y),v=Array(y);for(null==a&&(l=o(h=s())),c=0;c<=y;++c){if(!(c<y&&i(d=u[c],c,u))===g){if(g=!g)f=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),p=c-1;p>=f;--p)l.point(m[p],v[p]);l.lineEnd(),l.areaEnd()}}g&&(m[c]=+t(d,c,u),v[c]=+e(d,c,u),l.point(r?+r(d,c,u):m[c],n?+n(d,c,u):v[c]))}if(h)return l=null,h+""||null}function c(){return s4().defined(i).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?s5:sY(+t),e="function"==typeof e?e:void 0===e?sY(0):sY(+e),n="function"==typeof n?n:void 0===n?s3:sY(+n),u.x=function(e){return arguments.length?(t="function"==typeof e?e:sY(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:sY(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:sY(+t),u):r},u.y=function(t){return arguments.length?(e="function"==typeof t?t:sY(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"==typeof t?t:sY(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:sY(+t),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(r).y(e)},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:sY(!!t),u):i},u.curve=function(t){return arguments.length?(o=t,null!=a&&(l=o(a)),u):o},u.context=function(t){return arguments.length?(null==t?a=l=null:l=o(a=t),u):a},u}mx.props={defaultShape:"cell",defaultLabelShape:"label",shape:mb,composite:!1,channels:[...yU({shapes:Object.keys(mb)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...yJ(),{type:yP},{type:mi},{type:mv}],postInference:[...yX()]};var mw=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let mM=s6(t=>{let{areaPath:e,connectPath:n,areaStyle:r,connectStyle:i}=t.attributes,a=t.ownerDocument;r2(t).maybeAppend("connect-path",()=>a.createElement("path",{})).style("d",n).call(sF,i),r2(t).maybeAppend("area-path",()=>a.createElement("path",{}
1)).style("d",e).call(sF,r)}),m_=(t,e)=>{let{curve:n,gradient:r=!1,defined:i=t=>!Number.isNaN(t)&&null!=t,connect:a=!1}=t,o=mw(t,["curve","gradient","defined","connect"]),{coordinate:l,document:s}=e;return(t,e,u)=>{let{color:c}=u,{color:f=c,seriesColor:p,seriesX:d,seriesY:h}=e,y=iV(l),g=sZ(l,e),m=r&&p?sD(p,d,h,r,void 0,y):f,v=Object.assign(Object.assign(Object.assign(Object.assign({},u),{stroke:m,fill:m}),g&&{transform:g}),o),[b,x]=function(t,e){let n=[],r=[],i=[],a=!1,o=null,l=t.length/2;for(let s=0;s<l;s++){let u=t[s],c=t[s+l];if([...u,...c].some(t=>!e(t)))a=!0;else{if(n.push(u),r.push(c),a&&o){a=!1;let[t,e]=o;i.push([t,u,e,c])}o=[u,c]}}return[n.concat(r),i]}(t,i),O=rX(v,"connect"),w=!!x.length,M=t=>r2(s.createElement("path",{})).style("d",t||"").call(sF,v).node();if(iU(l)){let e=t=>{var e,r,a,o,s,u;let c=l.getCenter(),f=t.slice(0,t.length/2),p=t.slice(t.length/2);return(r=(e=mO().curve(gn)).curve,a=e.lineX0,o=e.lineX1,s=e.lineY0,u=e.lineY1,e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return ga(a())},delete e.lineX0,e.lineEndAngle=function(){return ga(o())},delete e.lineX1,e.lineInnerRadius=function(){return ga(s())},delete e.lineY0,e.lineOuterRadius=function(){return ga(u())},delete e.lineY1,e.curve=function(t){return arguments.length?r(gi(t)):r()._curve},e).angle((t,e)=>sR(sP(f[e],c))).outerRadius((t,e)=>sC(f[e],c)).innerRadius((t,e)=>sC(p[e],c)).defined((t,e)=>[...f[e],...p[e]].every(i)).curve(n)(p)};return w&&(!a||Object.keys(O).length)?w&&!a?M(e(t)):r2(new mM).style("areaStyle",v).style("connectStyle",Object.assign(Object.assign({},O),o)).style("areaPath",e(t)).style("connectPath",x.map(e).join("")).node():M(e(b))}{let e=t=>{let e=t.slice(0,t.length/2),r=t.slice(t.length/2);return y?mO().y((t,n)=>e[n][1]).x1((t,n)=>e[n][0]).x0((t,e)=>r[e][0]).defined((t,n)=>[...e[n],...r[n]].every(i)).curve(n)(e):mO().x((t,n)=>e[n][0]).y1((t,n)=>e[n][1]).y0((t,e)=>r[e][1]).defined((t,n)=>[...e[n],...r[n]].every(i)).curve(n)(e)};return w&&(!a||Object.keys(O).length)?w&&!a?M(e(t)):r2(new mM).style("areaStyle",v).style("connectStyle",Object.assign(Object.assign({},O),o)).style("areaPath",e(t)).style("connectPath",x.map(e).join("")).node():M(e(b))}}};m_.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let mk=(t,e)=>{let{coordinate:n}=e;return(...r)=>m_(Object.assign({curve:iU(n)?yN:sU},t),e)(...r)};mk.props=Object.assign(Object.assign({},m_.props),{defaultMarker:"square"});var mj=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let mA=(t,e)=>{let n=mj(t,[]),{coordinate:r}=e;return(...t)=>m_(Object.assign({curve:iU(r)?gg:iV(r)?g_:gM},n),e)(...t)};mA.props=Object.assign(Object.assign({},m_.props),{defaultMarker:"smooth"});let mE=(t,e)=>(...n)=>m_(Object.assign({curve:gE},t),e)(...n);mE.props=Object.assign(Object.assign({},m_.props),{defaultMarker:"hvh"});let mS=(t,e)=>(...n)=>m_(Object.assign({curve:gS},t),e)(...n);mS.props=Object.assign(Object.assign({},m_.props),{defaultMarker:"vh"});let mP=(t,e)=>(...n)=>m_(Object.assign({curve:gP},t),e)(...n);mP.props=Object.assign(Object.assign({},m_.props),{defaultMarker:"hv"});let mC={area:mk,smooth:mA,hvh:mE,vh:mS,hv:mP},mT=()=>(t,e,n,r)=>{var i,a;let{x:o,y:l,y1:s,series:u}=n,{x:c,y:f}=e,p=u?Array.from(rp(t,t=>u[t]).values()):[t],d=p.map(t=>t[0]).filter(t=>void 0!==t),h=((null===(i=null==c?void 0:c.getBandWidth)||void 0===i?void 0:i.call(c))||0)/2,y=((null===(a=null==f?void 0:f.getBandWidth)||void 0===a?void 0:a.call(f))||0)/2;return[d,Array.from(p,t=>{let e=t.length,n=Array(2*e);for(let i=0;i<t.length;i++){let a=t[i];n[i]=r.map([+o[a]+h,+l[a]+y]),n[e+i]=r.map([+o[a]+h,+s[a]+y])}return n}),p]};mT.props={defaultShape:"area",defaultLabelShape:"label",composite:!1,shape:mC,channels:[...yU({shapes:Object.keys(mC)}),{name:"x",required:!0},{name:"y",required:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...yJ(),{type:gF},{type:yS},{type:mv}],postInference:[...yK()],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};let mR=()=>(t,e)=>{let{encode:n}=e,{y1:r}=n;if(r)return[t,e];let[i]=yj(n,"y");return[t,rO({},e,{encode:{y1:yw([...i])}})]};mR.props={};let mL=()=>(t,e)=>{let{encode:n}=e,{x1:r}=n;if(r)return[t,e];let[i]=yj(n,"x");return[t,rO({},e,{encode:{x1:yw([...i])}})]};mL.props={};var mN=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let mI=(t,e)=>{let{arrow:n=!0,arrowSize:r="40%"}=t,i=mN(t,["arrow","arrowSize"]),{document:a}=e;return(t,e,o)=>{let{defaultColor:l}=o,s=mN(o,["defaultColor"]),{color:u=l,transform:c}=e,[f,p]=t,d=s1();if(d.moveTo(...f),d.lineTo(...p),n){let[t,e]=function(t,e,n){let{arrowSize:r}=n,i="string"==typeof r?+parseFloat(r)/100*sC(t,e):r,a=Math.PI/6,o=Math.atan2(e[1]-t[1],e[0]-t[0]),l=Math.PI/2-o-a,s=[e[0]-i*Math.sin(l),e[1]-i*Math.cos(l)],u=o-a;return[s,[e[0]-i*Math.cos(u),e[1]-i*Math.sin(u)]]}(f,p,{arrowSize:r});d.moveTo(...t),d.lineTo(...p),d.lineTo(...e)}return r2(a.createElement("path",{})).call(sF,s).style("d",d.toString()).style("stroke",u).style("transform",c).call(sF,i).node()}};mI.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let mF=(t,e)=>{let{arrow:n=!1}=t;return(...r)=>mI(Object.assign(Object.assign({},t),{arrow:n}),e)(...r)};mF.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var mB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let mD=(t,e)=>{let n=mB(t,[]),{coordinate:r,document:i}=e;return(t,e,a)=>{let{color:o}=a,l=mB(a,["color"]),{color:s=o,transform:u}=e,[c,f]=t,p=s1();if(p.moveTo(c[0],c[1]),iU(r)){let t=r.getCenter();p.quadraticCurveTo(t[0],t[1],f[0],f[1])}else{let t=sI(c,f),e=sC(c,f)/2;sB(p,c,f,t,e)}return r2(i.createElement("path",{})).call(sF,l).style("d",p.toString()).style("stroke",s).style("transform",u).call(s
1F,n).node()}};mD.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var mz=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let m$=(t,e)=>{let n=mz(t,[]),{document:r}=e;return(t,e,i)=>{let{color:a}=i,o=mz(i,["color"]),{color:l=a,transform:s}=e,[u,c]=t,f=s1();return f.moveTo(u[0],u[1]),f.bezierCurveTo(u[0]/2+c[0]/2,u[1],u[0]/2+c[0]/2,c[1],c[0],c[1]),r2(r.createElement("path",{})).call(sF,o).style("d",f.toString()).style("stroke",l).style("transform",s).call(sF,n).node()}};m$.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var mW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let mZ=(t,e)=>{let{cornerRatio:n=1/3}=t,r=mW(t,["cornerRatio"]),{coordinate:i,document:a}=e;return(t,e,o)=>{let{defaultColor:l}=o,s=mW(o,["defaultColor"]),{color:u=l,transform:c}=e,[f,p]=t,d=function(t,e,n,r){let i=s1();if(iU(n)){let a=n.getCenter(),o=sC(t,a),l=sC(e,a);return i.moveTo(t[0],t[1]),sB(i,t,e,a,(l-o)*r+o),i.lineTo(e[0],e[1]),i}return iV(n)?(i.moveTo(t[0],t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,e[1])):(i.moveTo(t[0],t[1]),i.lineTo(t[0],t[1]+(e[1]-t[1])*r),i.lineTo(e[0],t[1]+(e[1]-t[1])*r)),i.lineTo(e[0],e[1]),i}(f,p,i,n);return r2(a.createElement("path",{})).call(sF,s).style("d",d.toString()).style("stroke",u).style("transform",c).call(sF,r).node()}};mZ.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let mH={link:mF,arc:mD,smooth:m$,vhv:mZ},mq=t=>(e,n,r,i)=>{let{x:a,y:o,x1:l=a,y1:s=o}=r,u=y1(n,r,t),c=e.map(t=>[i.map(u([+a[t],+o[t]],t)),i.map(u([+l[t],+s[t]],t))]);return[e,c]};mq.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:mH,channels:[...yU({shapes:Object.keys(mH)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...yJ(),{type:mR},{type:mL}],postInference:[...yX()]};var mG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let mY=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o}=a,l=mG(a,["color"]),{color:s=o,src:u="",size:c=32,transform:f=""}=i,{width:p=c,height:d=c}=t,[[h,y]]=e,[g,m]=n.getSize();p="string"==typeof p?y2(p)*g:p,d="string"==typeof d?y2(d)*m:d;let v=h-Number(p)/2,b=y-Number(d)/2;return r2(r.createElement("image",{})).call(sF,l).style("x",v).style("y",b).style("src",u).style("stroke",s).style("transform",f).call(sF,t).style("width",p).style("height",d).node()}};mY.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let mV={image:mY},mU=t=>{let{cartesian:e}=t;return e?y5:(e,n,r,i)=>{let{x:a,y:o}=r,l=y1(n,r,t),s=Array.from(e,t=>{let e=[+a[t],+o[t]];return[i.map(l(e,t))]});return[e,s]}};mU.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:mV,channels:[...yU({shapes:Object.keys(mV)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[...yJ(),{type:md},{type:my}],postInference:[...yX()]};var mX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let mK=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o}=a,l=mX(a,["color"]),{color:s=o,transform:u}=i,c=function(t,e){let n=s1();if(iU(e)){let r=e.getCenter(),i=[...t,t[0]],a=i.map(t=>sC(t,r));
1return i.forEach((e,i)=>{if(0===i){n.moveTo(e[0],e[1]);return}let o=a[i],l=t[i-1],s=a[i-1];void 0!==s&&1e-10>Math.abs(o-s)?sB(n,l,e,r,o):n.lineTo(e[0],e[1])}),n.closePath(),n}return t.forEach((t,e)=>0===e?n.moveTo(t[0],t[1]):n.lineTo(t[0],t[1])),n.closePath(),n}(e,n);return r2(r.createElement("path",{})).call(sF,l).style("d",c.toString()).style("stroke",s).style("fill",s).style("transform",u).call(sF,t).node()}};mK.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var mQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let mJ=(t,e)=>{let n=mQ(t,[]),{coordinate:r,document:i}=e;return(t,e,a)=>{let{color:o}=a,l=mQ(a,["color"]),{color:s=o,transform:u}=e,c=function(t,e){let[n,r,i,a]=t,o=s1();if(iU(e)){let t=e.getCenter(),l=sC(t,n);return o.moveTo(n[0],n[1]),o.quadraticCurveTo(t[0],t[1],i[0],i[1]),sB(o,i,a,t,l),o.quadraticCurveTo(t[0],t[1],r[0],r[1]),sB(o,r,n,t,l),o.closePath(),o}return o.moveTo(n[0],n[1]),o.bezierCurveTo(n[0]/2+i[0]/2,n[1],n[0]/2+i[0]/2,i[1],i[0],i[1]),o.lineTo(a[0],a[1]),o.bezierCurveTo(a[0]/2+r[0]/2,a[1],a[0]/2+r[0]/2,r[1],r[0],r[1]),o.lineTo(n[0],n[1]),o.closePath(),o}(t,r);return r2(i.createElement("path",{})).call(sF,l).style("d",c.toString()).style("fill",s||o).style("stroke",s||o).style("transform",u).call(s
1F,n).node()}};mJ.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let m0={polygon:mK,ribbon:mJ},m1=()=>(t,e,n,r)=>{let i=Object.entries(n).filter(([t])=>t.startsWith("x")).map(([,t])=>t),a=Object.entries(n).filter(([t])=>t.startsWith("y")).map(([,t])=>t),o=t.map(t=>{let e=[];for(let n=0;n<i.length;n++){let o=i[n][t];if(void 0===o)break;let l=a[n][t];e.push(r.map([+o,+l]))}return e});return[t,o]};m1.props={defaultShape:"polygon",defaultLabelShape:"label",composite:!1,shape:m0,channels:[...yU({shapes:Object.keys(m0)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...yJ()],postInference:[...yX()]};var m2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let m5=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o,transform:l}=i,{color:s,fill:u=s,stroke:c=s}=a,f=m2(a,["color","fill","stroke"]),p=function(t,e){let n=s1();if(iU(e)){let r=e.getCenter(),[i,a]=r,o=sT(sP(t[0],r)),l=sT(sP(t[1],r)),s=sC(r,t[2]),u=sC(r,t[3]),c=sC(r,t[8]),f=sC(r,t[10]),p=sC(r,t[11]);n.moveTo(...t[0]),n.arc(i,a,s,o,l),n.arc(i,a,s,l,o,!0),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.arc(i,a,u,o,l),n.lineTo(...t[6]),n.arc(i,a,f,l,o,!0),n.closePath(),n.moveTo(...t[8]),n.arc(i,a,c,o,l),n.arc(i,a,c,l,o,!0),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.arc(i,a,p,o,l),n.arc(i,a,p,l,o,!0)}else n.moveTo(...t[0]),n.lineTo(...t[1]),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.lineTo(...t[5]),n.lineTo(...t[6]),n.lineTo(...t[7]),n.closePath(),n.moveTo(...t[8]),n.lineTo(...t[9]),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.lineTo(...t[13]);return n}(e,n);return r2(r.createElement("path",{})).call(sF,f).style("d",p.toString()).style("stroke",c).style("fill",o||u).style("transform",l).call(sF,t).node()}};m5.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var m3=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let m4=(t,e)=>{let{coordinate:n,document:r}=e;return(e,i,a)=>{let{color:o,transform:l}=i,{color:s,fill:u=s,stroke:c=s}=a,f=m3(a,["color","fill","stroke"]),p=function(t,e,n=4){let r=s1();if(!iU(e))return r.moveTo(...t[2]),r.lineTo(...t[3]),r.lineTo(t[3][0]-n,t[3][1]),r.lineTo(t[10][0]-n,t[10][1]),r.lineTo(t[10][0]+n,t[10][1]),r.lineTo(t[3][0]+n,t[3][1]),r.lineTo(...t[3]),r.closePath(),r.moveTo(...t[10]),r.lineTo(...t[11]),r.moveTo(t[3][0]+n/2,t[8][1]),r.arc(t[3][0],t[8][1],n/2,0,2*Math.PI),r.closePath(),r;let i=e.getCenter(),[a,o]=i,l=sC(i,t[3]),s=sC(i,t[8]),u=sC(i,t[10]),c=sT(sP(t[2],i)),f=Math.asin(n/s),p=c-f,d=c+f;r.moveTo(...t[2]),r.lineTo(...t[3]),r.moveTo(Math.cos(p)*l+a,Math.sin(p)*l+o),r.arc(a,o,l,p,d),r.lineTo(Math.cos(d)*u+a,Math.sin(d)*u+o),r.arc(a,o,u,d,p,!0),r.lineTo(Math.cos(p)*l+a,Math.sin(p)*l+o),r.closePath(),r.moveTo(...t[10]),r.lineTo(...t[11]);let h=(p+d)/2;return r.moveTo(Math.cos(h)*(s+n/2)+a,Math.sin(h)*(s+n/2)+o),r.arc(Math.cos(h)*s+a,Math.sin(h)*s+o,n/2,h,2*Math.PI+h),r.closePath(),r}(e,n,4);return r2(r.createElement("path",{})).call(sF,f).style("d",p.toString()).style("stroke",c).style("fill",o||u).style("transform",l).call(sF,t).node()}};m4.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let m6={box:m5,violin:m4},m8=()=>(t,e,n,r)=>{let{x:i,y:a,y1:o,y2:l,y3:s,y4:u,series:c}=n,f=e.x,p=e.series,d=Array.from(t,t=>{let e=f.getBandWidth(f.invert(+i[t])),n=e*(p?p.getBandWidth(p.invert(+(null==c?void 0:c[t]))):1),d=(+(null==c?void 0:c[t])||0)*e,h=+i[t]+d+n/2,[y,g,m,v,b]=[+a[t],+o[t],+l[t],+s[t],+u[t]];return[[h-n/2,b],[h+n/2,b],[h,b],[h,v],[h-n/2,v],[h+n/2,v],[h+n/2,g],[h-n/2,g],[h-n/2,m],[h+n/2,m],[h,g],[h,y],[h-n/2,y],[h+n/2,y]].map(t=>r.map(t))});return[t,d]};m8.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:m6,channels:[...yU({shapes:Object.keys(m6)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...yJ(),{type:yP}],postInference:[...yK()],interaction:{shareTooltip:!0}};let m9={vector:mI},m7=()=>(t,e,n,r)=>{let{x:i,y:a,size:o,rotate:l}=n,[s,u]=r.getSize(),c=t.map(t=>{let e=+l[t]/180*Math.PI,n=+o[t],c=n/s*Math.cos(e),f=-(n/u)*Math.sin(e);return[r.map([+i[t]-c/2,+a[t]-f/2]),r.map([+i[t]+c/2,+a[t]+f/2])]});return[t,c]};m7.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:m9,channels:[...yU({shapes:Object.keys(m9)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...yJ()],postInference:[...yX()]};var vt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let ve=(t,e)=>{let{arrow:n,arrowSize:r=4}=t,i=vt(t,["arrow","arrowSize"]),{coordinate:a,document:o}=e;return(t,e,l)=>{var s;
1let{color:u,lineWidth:c}=l,f=vt(l,["color","lineWidth"]),{color:p=u,size:d=c}=e,h=n?(s=Object.assign({fill:i.stroke||p,stroke:i.stroke||p},rX(i,"arrow")),o.createElement("path",{style:Object.assign({d:`M ${r},${r} L -${r},0 L ${r},-${r} L 0,0 Z`,transformOrigin:"center"},s)})):null,y=function(t,e){if(!iU(e))return s4().x(t=>t[0]).y(t=>t[1])(t);let n=e.getCenter();return u7()({startAngle:0,endAngle:2*Math.PI,outerRadius:sC(t[0],n),innerRadius:sC(t[1],n)})}(t,a),g=function(t,e){if(!iU(t))return e;let[n,r]=t.getCenter();return`translate(${n}, ${r}) ${e||""}`}(a,e.transform);return r2(o.createElement("path",{})).call(sF,f).style("d",y).style("stroke",p).style("lineWidth",d).style("transform",g).style("markerEnd",h).call(sF,i).node()}};ve.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let vn=()=>(t,e)=>{let{data:n}=e;return!Array.isArray(n)||n.some(yE)?[t,e]:[t,rO({},e,{encode:{x:yw(n)}})]};vn.props={};let vr={line:ve},vi=t=>(e,n,r,i)=>{let{x:a}=r,o=y1(n,r,rO({style:{bandOffset:0}},t)),l=Array.from(e,t=>[[a[t],1],[a[t],0]].map(e=>i.map(o(e,t))));return[e,l]};vi.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:vr,channels:[...yQ({shapes:Object.keys(vr)}),{name:"x",required:!0}],preInference:[...yJ(),{type:vn}],postInference:[]};let va=()=>(t,e)=>{let{data:n}=e;return!Array.isArray(n)||n.some(yE)?[t,e]:[t,rO({},e,{encode:{y:yw(n)}})]};va.props={};let vo={line:ve},vl=t=>(e,n,r,i)=>{let{y:a}=r,o=y1(n,r,rO({style:{bandOffset:0}},t)),l=Array.from(e,t=>[[0,a[t]],[1,a[t]]].map(e=>i.map(o(e,t))));return[e,l]};vl.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:vo,channels:[...yQ({shapes:Object.keys(vo)}),{name:"y",required:!0}],preInference:[...yJ(),{type:va}],postInference:[]};var vs=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function vu(t,e,n){return[["M",t,e],["L",t+2*n,e-n],["L",t+2*n,e+n],["Z"]]}let vc=(t,e)=>{let{offsetX:n=0,sourceOffsetX:r=n,targetOffsetX:i=n,offsetY:a=0,sourceOffsetY:o=a,targetOffsetY:l=a,connectLength1:s,endMarker:u=!0}=t,c=vs(t,["offsetX","sourceOffsetX","targetOffsetX","offsetY","sourceOffsetY","targetOffsetY","connectLength1","endMarker"]),{coordinate:f}=e;return(t,e,n)=>{let{color:a,connectLength1:p}=n,d=vs(n,["color","connectLength1"]),{color:h,transform:y}=e,g=function(t,e,n,r,i,a,o=0){let[[l,s],[u,c]]=e;if(iV(t)){let t=l+n,e=t+o,f=s+i,p=c+a;return[[t,f],[e,f],[e,p],[u+r,p]]}let f=s-n,p=f-o,d=l-i,h=u-a;return[[d,f],[d,p],[h,p],[h,c-r]]}(f,t,o,l,r,i,null!=s?s:p),m=rX(Object.assign(Object.assign({},c),n),"endMarker");return r2(new tk.y$).call(sF,d).style("d",s4().x(t=>t[0]).y(t=>t[1])(g)).style("stroke",h||a).style("transform",y).style("markerEnd",u?new l2({className:"marker",style:Object.assign(Object.assign({},m),{symbol:vu})}):null).call(sF,c).node()}};vc.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let vf={connector:vc},vp=(...t)=>mq(...t);function vd(t,e,n,r){if(e)return()=>[0,1];let{[t]:i,[`${t}1`]:a}=n;return t=>{var e;let n=(null===(e=r.getBandWidth)||void 0===e?void 0:e.call(r,r.invert(+a[t])))||0;return[i[t],a[t]+n]}}function vh(t={}){let{extendX:e=!1,extendY:n=!1}=t;return(t,r,i,a)=>{let o=vd("x",e,i,r.x),l=vd("y",n,i,r.y),s=Array.from(t,t=>{let[e,n]=o(t),[r,i]=l(t);return[[e,r],[n,r],[n,i],[e,i]].map(t=>a.map(t))});return[t,s]}}vp.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:vf,channels:[...yQ({shapes:Object.keys(vf)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...yJ()],postInference:[]};let vy={range:yC},vg=()=>vh();vg.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:vy,channels:[...yQ({shapes:Object.keys(vy)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...yJ()],postInference:[]};let vm=()=>(t,e)=>{let{data:n}=e;
1if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(yE))){let r=(t,e)=>Array.isArray(t[0])?t.map(t=>t[e]):[t[e]];return[t,rO({},e,{encode:{x:yw(r(n,0)),x1:yw(r(n,1))}})]}return[t,e]};vm.props={};let vv={range:yC},vb=()=>vh({extendY:!0});vb.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:vv,channels:[...yQ({shapes:Object.keys(vv)}),{name:"x",required:!0}],preInference:[...yJ(),{type:vm}],postInference:[]};let vx=()=>(t,e)=>{let{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(yE))){let r=(t,e)=>Array.isArray(t[0])?t.map(t=>t[e]):[t[e]];return[t,rO({},e,{encode:{y:yw(r(n,0)),y1:yw(r(n,1))}})]}return[t,e]};vx.props={};let vO={range:yC},vw=()=>vh({extendX:!0});vw.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:vO,channels:[...yQ({shapes:Object.keys(vO)}),{name:"y",required:!0}],preInference:[...yJ(),{type:vx}],postInference:[]};var vM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let v_=(t,e)=>{let{arrow:n,colorAttribute:r}=t,i=vM(t,["arrow","colorAttribute"]),{coordinate:a,document:o}=e;return(t,e,n)=>{let{color:l,stroke:s}=n,u=vM(n,["color","stroke"]),{d:c,color:f=l}=e,[p,d]=a.getSize();return r2(o.createElement("path",{})).call(sF,u).style("d","function"==typeof c?c({width:p,height:d}):c).style(r,f).call(sF,i).node()}};v_.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let vk=(t,e)=>v_(Object.assign({colorAttribute:"fill"},t),e);vk.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let vj=(t,e)=>v_(Object.assign({fill:"none",colorAttribute:"stroke"},t),e);vj.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let vA={path:vk,hollow:vj},vE=t=>(t,e,n,r)=>[t,t.map(()=>[[0,0]])];vE.props={defaultShape:"path",defaultLabelShape:"label",shape:vA,composite:!1,channels:[...yU({shapes:Object.keys(vA)}),{name:"d",scale:"identity"}],preInference:[...yJ()],postInference:[]};var vS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let vP=(t,e)=>{let{render:n}=t,r=vS(t,["render"]);return t=>{let[[i,a]]=t;return n(Object.assign(Object.assign({},r),{x:i,y:a}),e)}};vP.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let vC=()=>(t,e)=>{let{style:n={}}=e;return[t,rO({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,t])=>"function"==typeof t).map(([t,e])=>[t,()=>e])))})]};vC.props={};let vT=t=>{let{cartesian:e}=t;return e?y5:(e,n,r,i)=>{let{x:a,y:o}=r,l=y1(n,r,t),s=Array.from(e,t=>{let e=[+a[t],+o[t]];return[i.map(l(e,t))]});return[e,s]}};vT.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:{shape:vP},channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[...yJ(),{type:md},{type:my},{type:vC}]};var vR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let vL=(t,e)=>{let{document:n}=e;return(e,r,i)=>{let{transform:a}=r,{color:o}=i,l=vR(i,["color"]),{color:s=o}=r,[u,...c]=e,f=s1();return f.moveTo(...u),c.forEach(([t,e])=>{f.lineTo(t,e)}),f.closePath(),r2(n.createElement("path",{})).call(sF,l).style("d",f.toString()).style("stroke",s||o).style("fill",s||o).style("fillOpacity",.4).style("transform",a).call(sF,t).node()}};vL.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let vN={density:vL},vI=()=>(t,e,n,r)=>{let{x:i,series:a}=n,o=Object.entries(n).filter(([t])=>t.startsWith("y")).map(([,t])=>t),l=Object.entries(n).filter(([t])=>t.startsWith("size")).map(([,t])=>t);if(void 0===i||void 0===o||void 0===l)throw Error("Missing encode for x or y or size channel.");let s=e.x,u=e.series,c=Array.from(t,e=>{let n=s.getBandWidth(s.invert(+i[e])),c=u?u.getBandWidth(u.invert(+(null==a?void 0:a[e]))):1,f=(+(null==a?void 0:a[e])||0)*n,p=+i[e]+f+n*c/2;return[...o.map((n,r)=>[p+ +l[r][e]/t.length,+o[r][e]]),...o.map((n,r)=>[p-+l[r][e]/t.length,+o[r][e]]).reverse()].map(t=>r.map(t))});return[t,c]};function vF(t,e,n){let r=t?t():document.createElement("canvas");return r.width=e,r.height=n,r}vI.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:vN,channels:[...yU({shapes:Object.keys(vN)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"series",scale:"band"},{name:"size",required:!0,scale:"identity"}],preInference:[...yJ(),{type:yS},{type:yP}],postInference:[...yK()],interaction:{shareTooltip:!0}};let vB=im((t,e,n)=>{let r=vF(n,2*t,2*t),i=r.getContext("2d");if(1===e)i.beginPath(),i.arc(t,t,t,0,2*Math.PI,!1),i.fillStyle="rgba(0,0,0,1)",i.fill();else{let n=i.createRadialGradient(t,t,t*e,t,t,t);n.addColorStop(0,"rgba(0,0,0,1)"),n.addColorStop(1,"rgba(0,0,0,0)"),i.fillStyle=n,i.fillRect(0,0,2*t,2*t)}return r},t=>`${t}`);var vD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let vz=(t,e)=>{let{gradient:n,opacity:r,maxOpacity:i,minOpacity:a,blur:o,useGradientOpacity:l}=t,s=vD(t,["gradient","opacity","maxOpacity","minOpacity","blur","useGradientOpacity"]),{coordinate:u,createCanvas:c,document:f}=e;return(t,e,p)=>{var d,h;let{transform:y}=e,[g,m]=u.getSize(),v=t.map(t=>({x:t[0],y:t[1],value:t[2],radius:t[3]})),b=dv(t,t=>t[2]),x=iF(t,t=>
1t[2]),O=g&&m?function(t,e,n,r,i,a,o){let l=Object.assign({blur:.85,minOpacity:0,opacity:.6,maxOpacity:1,gradient:[[.25,"rgb(0,0,255)"],[.55,"rgb(0,255,0)"],[.85,"yellow"],[1,"rgb(255,0,0)"]]},a);l.minOpacity*=255,l.opacity*=255,l.maxOpacity*=255;let s=vF(o,t,e).getContext("2d"),u=function(t,e){let n=vF(e,256,1).getContext("2d"),r=n.createLinearGradient(0,0,256,1);return("string"==typeof t?t.split(" ").map(t=>{let[e,n]=t.split(":");return[+e,n]}):t).forEach(([t,e])=>{r.addColorStop(t,e)}),n.fillStyle=r,n.fillRect(0,0,256,1),n.getImageData(0,0,256,1).data}(l.gradient,o);s.clearRect(0,0,t,e),function(t,e,n,r,i,a){let{blur:o}=i,l=r.length;for(;l--;){let{x:i,y:s,value:u,radius:c}=r[l],f=Math.min(u,n),p=i-c,d=s-c,h=vB(c,1-o,a),y=(f-e)/(n-e);t.globalAlpha=Math.max(y,.001),t.drawImage(h,p,d)}}(s,n,r,i,l,o);let c=function(t,e,n,r,i){let{minOpacity:a,opacity:o,maxOpacity:l,useGradientOpacity:s}=i,u=t.getImageData(0,0,e,n),c=u.data,f=c.length;for(let t=3;t<f;t+=4){let e=c[t],n=4*e;if(!n)continue;let i=o||Math.max(0,Math.min(l,Math.max(a,e)));c[t-3]=r[n],c[t-2]=r[n+1],c[t-1]=r[n+2],c[t]=s?r[n+3]:i}return u}(s,t,e,u,l),f=vF(o,t,e).getContext("2d");return f.putImageData(c,0,0),f}(g,m,b,x,v,(d={gradient:n,opacity:r,minOpacity:a,maxOpacity:i,blur:o,useGradientOpacity:l},h=t=>void 0===t,Object.keys(d).reduce((t,e)=>{let n=d[e];return h(n,e)||(t[e]=n),t},{})),c):{canvas:null};return r2(f.createElement("image",{})).call(sF,p).style("x",0).style("y",0).style("width",g).style("height",m).style("src",O.canvas.toDataURL()).style("transform",y).call(sF,s).node()}};vz.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};let v$={heatmap:vz},vW=t=>(t,e,n,r)=>{let{x:i,y:a,size:o,color:l}=n;return[[0],[Array.from(t,t=>{let e=o?+o[t]:40;return[...r.map([+i[t],+a[t]]),l[t],e]})]]};vW.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:v$,channels:[...yU({shapes:Object.keys(v$)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[...yJ(),{type:yP},{type:mi}],postInference:[...yX()]};var vZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let vH=()=>({axis:!1,type:"text",encode:{x:"x",y:"y",text:"text",rotate:"rotate",fontSize:"size",shape:"tag"},scale:{x:{range:[0,1]},y:{range:[0,1]}},style:{fontFamily:t=>t.fontFamily},tooltip:{items:[t=>({name:t.text,value:t.value})]}}),vq=(t,e)=>{var n,r,i,a;return n=void 0,r=void 0,i=void 0,a=function*(){let{width:n,height:r}=e,{data:i,encode:a={},scale:o,style:l={},layout:s={}}=t,u=vZ(t,["data","encode","scale","style","layout"]),c=function(t,e){let{text:n="text",value:r="value"}=e;return t.map(t=>Object.assign(Object.assign({},t),{text:t[n],value:t[r]}))}(i,a);return rO({},vH(),Object.assign(Object.assign({data:{value:c,transform:[Object.assign({type:"wordCloud",size:[n,r]},s)]},encode:a,scale:o,style:l},u),{axis:!1}))},new(i||(i=Promise))(function(t,e){function o(t){try{s(a.next(t))}catch(t){e(t)}}function l(t){try{s(a.throw(t))}catch(t){e(t)}}function s(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(o,l)}s((a=a.apply(n,r||[])).next())})};vq.props={};var vG={value:()=>{}};function vY(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new vV(r)}function vV(t){this._=t}function vU(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=vG,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}vV.prototype=vY.prototype={constructor:vV,on:function(t,e){var n,r=this._,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((n=(t=i[a]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=vU(r[n],t.name,e);else if(null==e)for(n in r)r[n]=vU(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new vV(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],a=0,n=r.length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var vX,vK,vQ,vJ,v0,v1,v2,v5,v3,v4,v6,v8,v9,v7,bt,be,bn,br,bi=0,ba=0,bo=0,bl=0,bs=0,bu=0,bc="object"==typeof performance&&performance.now?performance:Date,bf="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function bp(){return bs||(bf(bd),bs=bc.now()+bu)}function bd(){bs=0}function bh(){this._call=this._time=this._next=null}function by(t,e,n){var r=new bh;return r.restart(t,e,n),r}function bg(){bs=(bl=bc.now())+bu,bi=ba=0;try{!function(){bp(),++bi;for(var t,e=bn;e;)(t=bs-e._time)>=0&&e._call.call(void 0,t),e=e._next;--bi}()}finally{bi=0,function(){for(var t,e,n=bn,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:bn=e);br=t,bv(r)}(),bs=0}}function bm(){var t=bc.now(),e=t-bl;e>1e3&&(bu-=e,bl=t)}function bv(t){!bi&&(ba&&(ba=clearTimeout(ba)),t-bs>24?(t<1/0&&(ba=setTimeout(bg,t-bc.now()-bu)),bo&&(bo=clearInterval(bo))):(bo||(bl=bc.now(),bo=setInterval(bm,1e3)),bi=1,bf(bg)))}function bb(t){return t.x}function bx(t){return t.y}bh.prototype=by.prototype={constructor:bh,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?bp():+n)+(null==e?0:+e),this._next||br===this||(br?br._next=this:bn=this,br=this),this._call=t,this._time=n,bv()},stop:function(){this._call&&(this._call=null,this._time=1/0,bv())}};var bO=Math.PI*(3-Math.sqrt(5));function bw(t){let e;var n,r=1,i=.001,a=1-Math.pow(.001,1/300),o=0,l=.6,s=new Map,u=by(p),c=vY("tick","end"),f=(e=1,()=>(e=(1664525*e+1013904223)%4294967296)/4294967296);function p(){d(),c.call("tick",n),r<i&&(u.stop(),c.call("end",n))}function d(e){var i,u,c=t.length;void 0===e&&(e=1);for(var f=0;f<e;
1++f)for(r+=(o-r)*a,s.forEach(function(t){t(r)}),i=0;i<c;++i)null==(u=t[i]).fx?u.x+=u.vx*=l:(u.x=u.fx,u.vx=0),null==u.fy?u.y+=u.vy*=l:(u.y=u.fy,u.vy=0);return n}function h(){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),a=n*bO;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function y(e){return e.initialize&&e.initialize(t,f),e}return null==t&&(t=[]),h(),n={tick:d,restart:function(){return u.restart(p),n},stop:function(){return u.stop(),n},nodes:function(e){return arguments.length?(t=e,h(),s.forEach(y),n):t},alpha:function(t){return arguments.length?(r=+t,n):r},alphaMin:function(t){return arguments.length?(i=+t,n):i},alphaDecay:function(t){return arguments.length?(a=+t,n):+a},alphaTarget:function(t){return arguments.length?(o=+t,n):o},velocityDecay:function(t){return arguments.length?(l=1-t,n):1-l},randomSource:function(t){return arguments.length?(f=t,s.forEach(y),n):f},force:function(t,e){return arguments.length>1?(null==e?s.delete(t):s.set(t,y(e)),n):s.get(t)},find:function(e,n,r){var i,a,o,l,s,u=0,c=t.length;for(null==r?r=1/0:r*=r,u=0;u<c;++u)(o=(i=e-(l=t[u]).x)*i+(a=n-l.y)*a)<r&&(s=l,r=o);return s},on:function(t,e){return arguments.length>1?(c.on(t,e),n):c.on(t)}}}function bM(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a,o,l,s,u,c,f,p,d=t._root,h={data:r},y=t._x0,g=t._y0,m=t._x1,v=t._y1;if(!d)return t._root=h,t;for(;d.length;)if((u=e>=(a=(y+m)/2))?y=a:m=a,(c=n>=(o=(g+v)/2))?g=o:v=o,i=d,!(d=d[f=c<<1|u]))return i[f]=h,t;if(l=+t._x.call(null,d.data),s=+t._y.call(null,d.data),e===l&&n===s)return h.next=d,i?i[f]=h:t._root=h,t;do i=i?i[f]=[,,,,]:t._root=[,,,,],(u=e>=(a=(y+m)/2))?y=a:m=a,(c=n>=(o=(g+v)/2))?g=o:v=o;while((f=c<<1|u)==(p=(s>=o)<<1|l>=a));return i[p]=d,i[f]=h,t}function b_(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function bk(t){return t[0]}function bj(t){return t[1]}function bA(t,e,n){var r=new bE(null==e?bk:e,null==n?bj:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function bE(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function bS(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var bP=bA.prototype=bE.prototype;function bC(t){return function(){return t}}function bT(t){return(t()-.5)*1e-6}function bR(t){return t.x+t.vx}function bL(t){return t.y+t.vy}function bN(t){var e,n,r,i=bC(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)i=e[a],i.vx+=(r[a]-i.x)*n[a]*t}function o(){if(e){var a,o=e.length;for(a=0,n=Array(o),r=Array(o);a<o;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!=typeof t&&(t=bC(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:bC(+t),o(),a):i},a.x=function(e){return arguments.length?(t="function"==typeof e?e:bC(+e),o(),a):t},a}function bI(t){var e,n,r,i=bC(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)i=e[a],i.vy+=(r[a]-i.y)*n[a]*t}function o(){if(e){var a,o=e.length;for(a=0,n=Array(o),r=Array(o);a<o;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!=typeof t&&(t=bC(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:bC(+t),o(),a):i},a.y=function(e){return arguments.length?(t="function"==typeof e?e:bC(+e),o(),a):t},a}bP.copy=function(){var t,e,n=new bE(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=bS(r),n;for(t=[{source:r,target:n._root=[,,,,]}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=[,,,,]}):r.target[i]=bS(e));return n},bP.add=function(t){let e=+this._x.call(null,t),n=+this._y.call(null,t);return bM(this.cover(e,n),e,n,t)},bP.addAll=function(t){var e,n,r,i,a=t.length,o=Array(a),l=Array(a),s=1/0,u=1/0,c=-1/0,f=-1/0;for(n=0;n<a;++n)!(isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e)))&&(o[n]=r,l[n]=i,r<s&&(s=r),r>c&&(c=r),i<u&&(u=i),i>f&&(f=i));if(s>c||u>f)return this;for(this.cover(s,u).cover(c,f),n=0;n<a;++n)bM(this,o[n],l[n],t[n]);return this},bP.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,a=(r=Math.floor(e))+1;else{for(var o,l,s=i-n||1,u=this._root;n>t||t>=i||r>e||e>=a;)switch(l=(e<r)<<1|t<n,(o=[,,,,])[l]=u,u=o,s*=2,l){case 0:i=n+s,a=r+s;break;case 1:n=i-s,a=r+s;break;case 2:i=n+s,r=a-s;break;case 3:n=i-s,r=a-s}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},bP.data=function(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t},bP.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]]},bP.find=function(t,e,n){var r,i,a,o,l,s,u,c=this._x0,f=this._y0,p=this._x1,d=this._y1,h=[],y=this._root;for(y&&h.push(new b_(y,c,f,p,d)),null==n?n=1/0:(c=t-n,f=e-n,p=t+n,d=e+n,n*=n);s=h.pop();)if((y=s.node)&&!((i=s.x0)>p)&&!((a=s.y0)>d)&&!((o=s.x1)<c)&&!((l=s.y1)<f)){if(y.length){var g=(i+o)/2,m=(a+l)/2;h.push(new b_(y[3],g,m,o,l),new b_(y[2],i,m,g,l),new b_(y[1],g,a,o,m),new b_(y[0],i,a,g,m)),(u=(e>=m)<<1|t>=g)&&(s=h[h.length-1],h[h.length-1]=h[h.length-1-u],h[h.length-1-u]=s)}else{var v=t-+this._x.call(null,y.data),b=e-+this._y.call(null,y.data),x=v*v+b*b;if(x<n){var O=Math.sqrt(n=x);c=t-O,f=e-O,p=t+O,d=e+O,r=y.data}}}return r},bP.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,n,r,i,a,o,l,s,u,c,f,p,d=this._root,h=this._x0,y=this._y0,g=this._x1,m=this._y1;if(!d)return this;if(d.length)for(;;){if((u=a>=(l=(h+g)/2))?h=l:g=l,(c=o>=(s=(y+m)/2))?y=s:m=s,e=d,!(d=d[f=c<<1|u]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,p=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: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[p]=d:this._root=d
1)):this._root=i,this},bP.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},bP.root=function(){return this._root},bP.size=function(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t},bP.visit=function(t){var e,n,r,i,a,o,l=[],s=this._root;for(s&&l.push(new b_(s,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(s=e.node,r=e.x0,i=e.y0,a=e.x1,o=e.y1)&&s.length){var u=(r+a)/2,c=(i+o)/2;(n=s[3])&&l.push(new b_(n,u,c,a,o)),(n=s[2])&&l.push(new b_(n,r,c,u,o)),(n=s[1])&&l.push(new b_(n,u,i,a,c)),(n=s[0])&&l.push(new b_(n,r,i,u,c))}return this},bP.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new b_(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var a,o=e.x0,l=e.y0,s=e.x1,u=e.y1,c=(o+s)/2,f=(l+u)/2;(a=i[0])&&n.push(new b_(a,o,l,c,f)),(a=i[1])&&n.push(new b_(a,c,l,s,f)),(a=i[2])&&n.push(new b_(a,o,f,c,u)),(a=i[3])&&n.push(new b_(a,c,f,s,u))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},bP.x=function(t){return arguments.length?(this._x=t,this):this._x},bP.y=function(t){return arguments.length?(this._y=t,this):this._y};let bF={hollow:gq,hollowDiamond:gG,hollowHexagon:gY,hollowSquare:gV,hollowTriangleDown:gU,hollowTriangle:gX,hollowBowtie:gK,hollowCircle:g1,point:g2,plus:g5,diamond:g3,square:g4,triangle:g6,hexagon:g8,cross:g9,bowtie:g7,hyphen:mt,line:me,tick:mn,triangleDown:mr,circle:g0},bB=t=>(e,n,r,i)=>{let{x:a,y:o,size:l}=r;if(!a.length||!o.length)return[e,o.map(()=>[[]])];let[s,u]=i.getSize(),c=y1(n,r,t),f=Array.from(e,t=>{let e=+a[t]*s,n=+o[t]*u,r=+l[t]||4;return{i:t,x:e,y:n,r}}),p=bw(f).stop().force("collide",(function(t){var e,n,r,i=1,a=1;function o(){for(var t,o,s,u,c,f,p,d=e.length,h=0;h<a;++h)for(t=0,o=bA(e,bR,bL).visitAfter(l);t<d;++t)p=(f=n[(s=e[t]).index])*f,u=s.x+s.vx,c=s.y+s.vy,o.visit(y);function y(t,e,n,a,o){var l=t.data,d=t.r,h=f+d;if(l){if(l.index>s.index){var y=u-l.x-l.vx,g=c-l.y-l.vy,m=y*y+g*g;m<h*h&&(0===y&&(m+=(y=bT(r))*y),0===g&&(m+=(g=bT(r))*g),m=(h-(m=Math.sqrt(m)))/m*i,s.vx+=(y*=m)*(h=(d*=d)/(p+d)),s.vy+=(g*=m)*h,l.vx-=y*(h=1-h),l.vy-=g*h)}return}return e>u+h||a<u-h||n>c+h||o<c-h}}function l(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 s(){if(e){var r,i,a=e.length;for(r=0,n=Array(a);r<a;++r)n[(i=e[r]).index]=+t(i,r,e)}}return"function"!=typeof t&&(t=bC(null==t?1:+t)),o.initialize=function(t,n){e=t,r=n,s()},o.iterations=function(t){return arguments.length?(a=+t,o):a},o.strength=function(t){return arguments.length?(i=+t,o):i},o.radius=function(e){return arguments.length?(t="function"==typeof e?e:bC(+e),s(),o):t},o})().radius(t=>t.r+1).strength(1));p.force("x",bN(t=>t.x).strength(0)),p.force("y",bI(t=>t.y).strength(5));for(let t=0;t<200;t++)p.tick();p.stop();let d=t=>{let e=f.find(e=>e.i===t);return[e.x/s,e.y/u]},h=l?Array.from(e,t=>{let[e,n]=d(t),r=+l[t],a=r/s,o=r/u;return[i.map(c([e-a,n-o],t)),i.map(c([e+a,n+o],t))]}):Array.from(e,t=>[i.map(c(d(t),t))]);return[e,h]};bB.props={defaultShape:"point",defaultLabelShape:"label",composite:!1,shape:bF,channels:[...yU({shapes:Object.keys(bF)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"}],preInference:[...yJ(),{type:yP},{type:mi}],postInference:[{type:ma},...yX()]};let bD=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];bD.props={};let bz=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];bz.props={};let b$=t=>new oU(t);b$.props={};let bW=t=>new rT(t);bW.props={};let bZ=t=>new rR(t);bZ.props={};class bH extends rA{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:sd}}map(t){return oZ(t)?t:this.options.unknown}invert(t){return this.map(t)}clone(){return new bH(this.options)}getTicks(){let{domain:t,tickCount:e,tickMethod:n}=this.options,[r,i]=t;return(0,tR.Z)(r)&&(0,tR.Z)(i)?n(r,i,e):[]}}let bq=t=>new bH(t);bq.props={};class bG extends rR{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:rE,paddingInner:1,paddingOuter:0}}constructor(t){super(t)}getPaddingInner(){return 1}clone(){return new bG(this.options)}update(t){super.update(t)}getPaddingOuter(){return this.options.padding}}let bY=t=>new bG(t);bY.props={};var bV=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,bU=/\[([^]*?)\]/gm;function bX(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var bK=function(t){return function(e,n){var r=n[t].map(function(t){return t.toLowerCase()}).indexOf(e.toLowerCase());return r>-1?r:null}};function bQ(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];for(var a in i)t[a]=i[a]}return t}var bJ=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],b0=["January","February","March","April","May","June","July","August","September","October","November","December"],b1=bX(b0,3),b2=bQ({},{dayNamesShort:bX(bJ,3),dayNames:bJ,monthNamesShort:b1,monthNames:b0,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}}),b5=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},b3={D:function(t){return String(t.getDate())},DD:function(t){return b5(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return b5(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return b5(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return b5(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return b5(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return b5(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return b5(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return b5(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return b5(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return b5(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return b5(t.getMilliseconds(),3)},a:function(t,e){return 12>t.getHours()?e.amPm[0]:e.amPm[1]},A:function(t,e){return 12>t.getHours()?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+b5(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+b5(Math.floor(Math.abs(e)/60),2)+":"+b5(Math.abs(e)%60,2)}};bK("monthNamesShort"),bK("monthNames");var b4={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},b6=function(t,e,n){if(void 0===e&&(e=b4.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw Error("Invalid Date pass to format");e=b4[e]||e;var r=[];e=e.replace(bU,function(t,e){return r.push(e),"@@@"});var i=bQ(bQ({},b2),n);return(e=e.replace(bV,function(e){return b3[e](t,i)}
1)).replace(/@@@/g,function(){return r.shift()})};function b8(t,e,n,r){let i=(t,e)=>{let i=t=>r(t)%e==0,a=e;for(;a&&!i(t);)n(t,-1),a-=1;return t},a=(t,n)=>{n&&i(t,n),e(t)},o=(t,e)=>{let r=new Date(+t-1);return a(r,e),n(r,e),a(r),r};return{ceil:o,floor:(t,e)=>{let n=new Date(+t);return a(n,e),n},range:(t,e,r,i)=>{let l=[],s=Math.floor(r),u=i?o(t,r):o(t);for(;u<e;n(u,s),a(u))l.push(new Date(+u));return l},duration:t}}let b9=b8(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),b7=b8(1e3,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getSeconds()),xt=b8(6e4,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getMinutes()),xe=b8(36e5,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+36e5*e)},t=>t.getHours()),xn=b8(864e5,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+864e5*e)},t=>t.getDate()-1),xr=b8(2592e6,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{let n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),xi={millisecond:b9,second:b7,minute:xt,hour:xe,day:xn,week:b8(6048e5,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setDate(t.getDate()+7*e)},t=>{let e=xr.floor(t);return Math.floor((+new Date(+t)-+e)/6048e5)}),month:xr,year:b8(31536e6,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{let n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear())},xa=b8(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),xo=b8(1e3,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getUTCSeconds()),xl=b8(6e4,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getUTCMinutes()),xs=b8(36e5,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+36e5*e)},t=>t.getUTCHours()),xu=b8(864e5,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+864e5*e)},t=>t.getUTCDate()-1),xc=b8(2592e6,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{let n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),xf={millisecond:xa,second:xo,minute:xl,hour:xs,day:xu,week:b8(6048e5,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+6048e5*e)},t=>{let e=xc.floor(t);return Math.floor((+new Date(+t)-+e)/6048e5)}),month:xc,year:b8(31536e6,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{let n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear())};function xp(t,e,n,r,i){let a;let o=+t,l=+e,{tickIntervals:s,year:u,millisecond:c}=function(t){let{year:e,month:n,week:r,day:i,hour:a,minute:o,second:l,millisecond:s}=t?xf:xi;return{tickIntervals:[[l,1],[l,5],[l,15],[l,30],[o,1],[o,5],[o,15],[o,30],[a,1],[a,3],[a,6],[a,12],[i,1],[i,2],[r,1],[n,1],[n,3],[e,1]],year:e,millisecond:s}}(i),f=([t,e])=>t.duration*e,p=r?(l-o)/r:n||5,d=r||(l-o)/p,h=s.length,y=oR(s,d,0,h,f);if(y===h){let t=rB(o/u.duration,l/u.duration,p);a=[u,t]}else if(y){let[t,e]=d/f(s[y-1])<f(s[y])/d?s[y-1]:s[y],n=r?Math.ceil(r/t.duration):e;a=[t,n]}else a=[c,Math.max(rB(o,l,p),1)];return a}let xd=(t,e,n,r,i)=>{let a=t>e,o=a?e:t,l=a?t:e,[s,u]=xp(o,l,n,r,i),c=s.range(o,new Date(+l+1),u,!0);return a?c.reverse():c},xh=(t,e,n,r,i)=>{let a=t>e,o=a?e:t,l=a?t:e,[s,u]=xp(o,l,n,r,i),c=[s.floor(o,u),s.ceil(l,u)];return a?c.reverse():c};function xy(t){let e=t.getTimezoneOffset(),n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}class xg extends oV{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:xd,interpolate:oB,mask:void 0,utc:!1}}chooseTransforms(){return[t=>+t,t=>new Date(t)]}chooseNice(){return xh}getTickMethodOptions(){let{domain:t,tickCount:e,tickInterval:n,utc:r}=this.options;return[t[0],t[t.length-1],e,n,r]}getFormatter(){let{mask:t,utc:e}=this.options,n=e?xf:xi,r=e?xy:oP;return e=>b6(r(e),t||function(t,e){let{second:n,minute:r,hour:i,day:a,week:o,month:l,year:s}=e;return n.floor(t)<t?".SSS":r.floor(t)<t?":ss":i.floor(t)<t?"hh:mm":a.floor(t)<t?"hh A":l.floor(t)<t?o.floor(t)<t?"MMM DD":"ddd DD":s.floor(t)<t?"MMMM":"YYYY"}(e,n))}clone(){return new xg(this.options)}}let xm=t=>new xg(t);xm.props={};let xv=t=>e=>-t(-e),xb=(t,e)=>{let n=Math.log(t),r=t===Math.E?Math.log:10===t?Math.log10:2===t?Math.log2:t=>Math.log(t)/n;return e?xv(r):r},xx=(t,e)=>{let n=t===Math.E?Math.exp:e=>t**e;return e?xv(n):n},xO=(t,e,n,r=10)=>{let i=t<0,a=xx(r,i),o=xb(r,i),l=e<t,s=l?e:t,u=l?t:e,c=o(s),f=o(u),p=[];if(!(r%1)&&f-c<n){if(c=Math.floor(c),f=Math.ceil(f),i)for(;c<=f;c+=1){let t=a(c);for(let e=r-1;e>=1;e-=1){let n=t*e;if(n>u)break;n>=s&&p.push(n)}}else for(;c<=f;c+=1){let t=a(c);for(let e=1;e<r;e+=1){let n=t*e;if(n>u)break;n>=s&&p.push(n)}}2*p.length<n&&(p=rz(s,u,n))}else{let t=-1===n?f-c:Math.min(f-c,n);p=rz(c,f,t).map(a)}return l?p.reverse():p},xw=(t,e,n,r)=>{let i=t<0,a=xb(r,i),o=xx(r,i),l=t>e,s=[o(Math.floor(a(l?e:t))),o(Math.ceil(a(l?t:e)))];return l?s.reverse():s};class xM extends oV{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:oz,tickMethod:xO,tickCount:5}}chooseNice(){return xw}getTickMethodOptions(){let{domain:t,tickCount:e,base:n}=this.options;return[t[0],t[t.length-1],e,n]}chooseTransforms(){let{base:t,domain:e}=this.options,n=e[0]<0;
1return[xb(t,n),xx(t,n)]}clone(){return new xM(this.options)}}let x_=t=>new xM(t);x_.props={};let xk=t=>e=>e<0?-((-e)**t):e**t,xj=t=>e=>e<0?-((-e)**(1/t)):e**(1/t),xA=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);class xE extends oV{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:oz,tickMethod:rz,tickCount:5}}constructor(t){super(t)}chooseTransforms(){let{exponent:t}=this.options;return 1===t?[oP,oP]:[.5===t?xA:xk(t),xj(t)]}clone(){return new xE(this.options)}}let xS=t=>new xE(t);xS.props={};class xP extends xE{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:oz,tickMethod:rz,tickCount:5,exponent:.5}}constructor(t){super(t)}update(t){super.update(t)}clone(){return new xP(this.options)}}let xC=t=>new xP(t);xC.props={};let xT=t=>new sl(t);xT.props={};let xR=t=>new sy(t);xR.props={};let xL=t=>new sh(t);xL.props={};let xN=t=>e=>{let n=t(e);return(0,tR.Z)(n)?Math.round(n):n},xI=jI=class extends oU{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:oP,tickMethod:rz,tickCount:5}}constructor(t){super(t)}clone(){return new jI(this.options)}};xI=jI=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([(jR=function(t){return[t(0),t(1)]},jL=t=>{let[e,n]=t;return oT(oB(0,1),oC(e,n))},t=>{t.prototype.rescale=function(){this.initRange(),this.nice();let[t]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t))},t.prototype.initRange=function(){let{interpolator:t}=this.options;this.options.range=jR(t)},t.prototype.composeOutput=function(t,e){let{domain:n,interpolator:r,round:i}=this.getOptions(),a=jL(n.map(t)),o=i?xN(r):r;this.output=oT(o,a,e,t)},t.prototype.invert=void 0})],xI);let xF=t=>new xI(t);xF.props={};let xB=t=>new r$(t);function xD({colorDefault:t,colorBlack:e,colorWhite:n,colorStroke:r,colorBackground:i,padding1:a,padding2:o,padding3:l,alpha90:s,alpha65:u,alpha45:c,alpha25:f,alpha10:p,category10:d,category20:h,sizeDefault:y=1,padding:g="auto",margin:m=16}){return{padding:g,margin:m,size:y,color:t,category10:d,category20:h,enter:{duration:300,fill:"both",delay:0},update:{duration:300,fill:"both",delay:0},exit:{duration:300,fill:"both",delay:0},view:{viewFill:i,plotFill:"transparent",mainFill:"transparent",contentFill:"transparent"},line:{line:{fill:"",strokeOpacity:1,lineWidth:1,lineCap:"round"}},point:{point:{r:3,fillOpacity:.95,lineWidth:0},hollow:{r:3,strokeOpacity:.95,lineWidth:1},plus:{r:3,strokeOpacity:.95,lineWidth:3},diamond:{r:3,strokeOpacity:.95,lineWidth:1}},interval:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},area:{area:{fillOpacity:.85,lineWidth:0}},polygon:{polygon:{fillOpacity:.95}},cell:{cell:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},rect:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},link:{link:{fill:"",strokeOpacity:1}},vector:{vector:{fillOpacity:1}},box:{box:{fillOpacity:.95,stroke:e,lineWidth:1}},text:{text:{fill:"#1D2129",fontSize:12,lineWidth:0,connectorStroke:r,connectorStrokeOpacity:.45,connectorLineWidth:1,backgroundFill:r,backgroundFillOpacity:.15,backgroundPadding:[2,4],startMarkerSymbol:"circle",startMarkerSize:4,endMarkerSymbol:"circle",endMarkerSize:4},badge:{fill:"#1D2129",fillOpacity:.65,lineWidth:0,fontSize:10,textAlign:"center",textBaseline:"middle",markerFill:r,markerFillOpacity:.25,markerStrokeOpacity:0}},lineX:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},lineY:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},rangeX:{range:{fill:r,fillOpacity:.15,lineWidth:0}},rangeY:{range:{fill:r,fillOpacity:.15,lineWidth:0}},connector:{connector:{stroke:r,strokeOpacity:.45,lineWidth:1,connectLength1:12,endMarker:!0,endMarkerSize:6,endMarkerFill:r,endMarkerFillOpacity:.95}},axis:{arrow:!1,gridLineDash:[3,4],gridLineWidth:.5,gridStroke:e,gridStrokeOpacity:p,labelAlign:"horizontal",labelFill:e,labelOpacity:c,labelFontSize:12,labelFontWeight:"normal",labelSpacing:a,line:!1,lineLineWidth:.5,lineStroke:e,lineStrokeOpacity:c,tickLength:4,tickLineWidth:1,tickStroke:e,tickOpacity:c,titleFill:e,titleOpacity:s,titleFontSize:12,titleFontWeight:"normal",titleSpacing:12,titleTransformOrigin:"center",lineArrowOffset:6,lineArrowSize:6},axisTop:{gridDirection:"positive",labelDirection:"negative",tickDirection:"negative",titlePosition:"top",titleSpacing:12,labelSpacing:4,titleTextBaseline:"middle"},axisBottom:{gridDirection:"negative",labelDirection:"positive",tickDirection:"positive",titlePosition:"bottom",titleSpacing:12,labelSpacing:4,titleTextBaseline:"bottom",titleTransform:"translate(0, 8)"},axisLeft:{gridDirection:"positive",labelDirection:"negative",labelSpacing:4,tickDirection:"negative",titlePosition:"left",titleSpacing:12,titleTextBaseline:"middle",titleDirection:"vertical",titleTransform:"rotate(-90) translate(0, -8)",titleTransformOrigin:"center"},axisRight:{gridDirection:"negative",labelDirection:"positive",labelSpacing:4,tickDirection:"positive",titlePosition:"right",titleSpacing:12,titleTextBaseline:"top",titleDirection:"vertical",titleTransformOrigin:"center"},axisLinear:{girdClosed:!0,gridConnect:"arc",gridDirection:"negative",gridType:"surround",titlePosition:"top",titleSpacing:0},axisArc:{title:!1,titlePosition:"inner",line:!1,tick:!0,labelSpacing:4},axisRadar:{girdClosed:!0,gridStrokeOpacity:.3,gridType:"surround",tick:!1,titlePosition:"start"}
vendor: 4,149 bytes, line 1
1,legendCategory:{backgroundFill:"transparent",itemBackgroundFill:"transparent",itemLabelFill:e,itemLabelFillOpacity:s,itemLabelFontSize:12,itemLabelFontWeight:"normal",itemMarkerFillOpacity:1,itemMarkerSize:8,focusMarkerSize:12,itemSpacing:[a,a,a/2],itemValueFill:e,itemValueFillOpacity:.65,itemValueFontSize:12,itemValueFontWeight:"normal",navButtonFill:e,navButtonFillOpacity:.65,navPageNumFill:e,navPageNumFillOpacity:.45,navPageNumFontSize:12,padding:8,title:!1,titleFill:e,titleFillOpacity:.65,titleFontSize:12,titleFontWeight:"normal",titleSpacing:4,tickStroke:e,tickStrokeOpacity:.25,rowPadding:a,colPadding:o,maxRows:3,maxCols:3},legendContinuous:{handleHeight:12,handleLabelFill:e,handleLabelFillOpacity:c,handleLabelFontSize:12,handleLabelFontWeight:"normal",handleMarkerFill:e,handleMarkerFillOpacity:.6,handleMarkerLineWidth:1,handleMarkerStroke:e,handleMarkerStrokeOpacity:.25,handleWidth:10,labelFill:e,labelFillOpacity:c,labelFontSize:12,labelFontWeight:"normal",labelSpacing:3,tick:!0,tickLength:12,ribbonSize:12,ribbonFill:"#aaa",handle:!0,handleLabel:!1,handleShape:"slider",handleIconSize:12/1.8,indicator:!1,titleFontSize:12,titleSpacing:4,titleFontWeight:"normal",titleFillOpacity:s,tickStroke:e,tickStrokeOpacity:c},label:{fill:e,fillOpacity:.65,fontSize:12,fontWeight:"normal",stroke:void 0,offset:12,connectorStroke:e,connectorStrokeOpacity:.45,connectorLineWidth:1,connectorLength:12,connectorLength2:8,connectorDistance:4},innerLabel:{fill:n,fontSize:12,fillOpacity:.85,fontWeight:"normal",stroke:void 0,offset:0},htmlLabel:{fontSize:12,opacity:.65,color:e,fontWeight:"normal"},slider:{trackSize:16,trackFill:r,trackFillOpacity:1,selectionFill:t,selectionFillOpacity:.15,handleIconSize:10,handleIconFill:"#f7f7f7",handleIconFillOpacity:1,handleIconStroke:e,handleIconStrokeOpacity:.25,handleIconLineWidth:1,handleIconRadius:2,handleLabelFill:e,handleLabelFillOpacity:.45,handleLabelFontSize:12,handleLabelFontWeight:"normal"},scrollbar:{padding:[0,0,0,0],trackSize:6,isRound:!0,slidable:!0,scrollable:!0,trackFill:"#e5e5e5",trackFillOpacity:0,thumbFill:"#000",thumbFillOpacity:.15,thumbHighlightedFillOpacity:.2},title:{spacing:8,titleFill:e,titleFillOpacity:s,titleFontSize:16,titleFontWeight:"bold",titleTextBaseline:"top",subtitleFill:e,subtitleFillOpacity:u,subtitleFontSize:12,subtitleFontWeight:"normal",subtitleTextBaseline:"top"},tooltip:{css:{[iH("tooltip")]:{"font-family":"sans-serif"}}}}}xB.props={};let xz=xD({colorBlack:"#1D2129",colorWhite:"#ffffff",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),x$=t=>rO({},xz,t);x$.props={};let xW=t=>rO({},x$(),{category10:"category10",category20:"category20"},t);xW.props={};let xZ=xD({colorBlack:"#fff",colorWhite:"#000",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.25}),xH=t=>rO({},xZ,{tooltip:{crosshairsStroke:"#fff",crosshairsLineWidth:1,crosshairsStrokeOpacity:.25,css:{[iH("tooltip")]:{background:"#1f1f1f",opacity:.95},[iH("tooltip-title")]:{color:"#A6A6A6"},[iH("tooltip-list-item-name-label")]:{color:"#A6A6A6"},[iH("tooltip-list-item-value")]:{color:"#A6A6A6"}}}},t),xq=t=>Object.assign({},xH(),{category10:"category10",category20:"category20"},t);xq.props={};let xG=xD({colorBlack:"#000",colorWhite:"#fff",colorStroke:"#888",colorDefault:"#4e79a7",colorBackgroun
1d:"transparent",category10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category20:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),xY=t=>rO({},xG,{text:{text:{fontSize:10}},axis:{gridLineDash:[0,0],gridLineWidth:1,gridStroke:"#ddd",gridStrokeOpacity:1,labelOpacity:1,labelStrokeOpacity:1,labelFontSize:10,line:!0,lineLineWidth:1,lineStroke:"#888",lineStrokeOpacity:1,tickLength:5,tickStrokeOpacity:1,titleOpacity:1,titleStrokeOpacity:1,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},axisLeft:{gridFilter:(t,e)=>0!==e},axisRight:{gridFilter:(t,e)=>0!==e},legendCategory:{itemLabelFillOpacity:1,itemLabelFontSize:10,itemValueFillOpacity:1,itemValueFontSize:10,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},legendContinuous:{handleLabelFontSize:10,labelFillOpacity:.45,labelFontSize:10},label:{fontSize:10},innerLabel:{fontSize:10},htmlLabel:{fontSize:10},slider:{handleLabelFontSize:10,trackFillOpacity:.05}},t);xY.props={};let xV=t=>(...e)=>{let n=lc(Object.assign({},{crossPadding:50},t))(...e);return lo(n,t),n};xV.props=Object.assign(Object.assign({},lc.props),{defaultPosition:"bottom"});let xU=t=>(...e)=>{let n=lc(Object.assign({},{crossPadding:10},t))(...e);return lo(n,t),n};xU.props=Object.assign(Object.assign({},lc.props),{defaultPosition:"left"});var xX=function(){},xK=ad({prevBtnGroup:"prev-btn-group",prevBtn:"prev-btn",nextBtnGroup:"next-btn-group",nextBtn:"next-btn",pageInfoGroup:"page-info-group",pageInfo:"page-info",playWindow:"play-window",contentGroup:"content-group",controller:"controller",clipPath:"clip-path"},"navigator"),xQ=function(t){function e(e){var n=t.call(this,e,{x:0,y:0,animate:{easing:"linear",duration:200,fill:"both"},buttonCursor:"pointer",buttonFill:"black",buttonD:[["M",-6,-6],["L",6,0],["L",-6,6],["Z"]],buttonSize:12,controllerPadding:5,controllerSpacing:5,formatter:function(t,e){return"".concat(t,"/").concat(e)},defaultPage:0,loop:!1,orientation:"horizontal",pageNumFill:"black",pageNumFontSize:12,pageNumTextAlign:"start",pageNumTextBaseline:"middle"})||this;return n.playState="idle",n.contentGroup=n.appendChild(new tk.ZA({class:xK.contentGroup.name})),n.playWindow=n.contentGroup.appendChild(new tk.ZA({class:xK.playWindow.name})),n.innerCurrPage=n.defaultPage,n}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"defaultPage",{get:function(){var t=this.attributes.defaultPage;return(0,tT.Z)(t,0,Math.max(this.pageViews.length-1,0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.playWindow.children},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"controllerShape",{get:function(){return this.totalPages>1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var t,e,n=this.pageViews,r=(0,i5.CR)(((null===(e=(t=n.map(function(t){var e=t.getBBox();return[e.width,e.height]}))[0])||void 0===e?void 0:e.map(function(e,n){return t.map(function(t){return t[n]})}))||[]).map(function(t){return Math.max.apply(Math,(0,i5.ev)([],(0,i5.CR)(t),!1))}),2),i=r[0],a=r[1],o=this.attributes,l=o.pageWidth,s=o.pageHeight;return{pageWidth:void 0===l?i:l,pageHeight:void 0===s?a:s}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e=t.prototype.getBBox.call(this),n=e.x,r=e.y,i=this.controllerShape,a=this.pageShape,o=a.pageWidth,l=a.pageHeight;return new o0(n,r,o+i.width,l)},e.prototype.goTo=function(t){var e=this,n=this.attributes.animate,r=this.currPage,i=this.playState,a=this.playWindow,o=this.pageViews;if("idle"!==i||t<0||o.length<=0||t>=o.length)return null;o[r].setLocalPosition(0,0),this.prepareFollowingPage(t);var l=(0,i5.CR)(this.getFollowingPageDiff(t),2),s=l[0],u=l[1];this.playState="running";var c=at(a,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-s,", ").concat(-u,")")}],n);return i9(c,function(){e.innerCurrPage=t,e.playState="idle",e.setVisiblePages([t]),e.updatePageInfo()}),c},e.prototype.prev=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n<=0)return null;var r=t?(n-1+e)%e:(0,tT.Z)(n-1,0,e);return this.goTo(r)},e.prototype.next=function(){var t=this.attributes.loop,e=this.pageViews.length,n=this.currPage;if(!t&&n>=e-1)return null;
1var r=t?(n+1)%e:(0,tT.Z)(n+1,0,e);return this.goTo(r)},e.prototype.renderClipPath=function(t){var e=this.pageShape,n=e.pageWidth,r=e.pageHeight;if(!n||!r){this.contentGroup.style.clipPath=void 0;return}this.clipPath=t.maybeAppendByClassName(xK.clipPath,"rect").styles({width:n,height:r}),this.contentGroup.attr("clipPath",this.clipPath.node())},e.prototype.setVisiblePages=function(t){this.playWindow.children.forEach(function(e,n){t.includes(n)?i3(e):i4(e)})},e.prototype.adjustControllerLayout=function(){var t=this.prevBtnGroup,e=this.nextBtnGroup,n=this.pageInfoGroup,r=this.attributes,i=r.orientation,a=r.controllerPadding,o=n.getBBox(),l=o.width;o.height;var s=(0,i5.CR)("horizontal"===i?[-180,0]:[-90,90],2),u=s[0],c=s[1];t.setLocalEulerAngles(u),e.setLocalEulerAngles(c);var f=t.getBBox(),p=f.width,d=f.height,h=e.getBBox(),y=h.width,g=h.height,m=Math.max(p,l,y),v="horizontal"===i?{offset:[[0,0],[p/2+a,0],[p+l+2*a,0]],textAlign:"start"}:{offset:[[m/2,-d-a],[m/2,0],[m/2,g+a]],textAlign:"center"},b=(0,i5.CR)(v.offset,3),x=(0,i5.CR)(b[0],2),O=x[0],w=x[1],M=(0,i5.CR)(b[1],2),_=M[0],k=M[1],j=(0,i5.CR)(b[2],2),A=j[0],E=j[1],S=v.textAlign,P=n.querySelector("text");P&&(P.style.textAlign=S),t.setLocalPosition(O,w),n.setLocalPosition(_,k),e.setLocalPosition(A,E)},e.prototype.updatePageInfo=function(){var t,e=this.currPage,n=this.pageViews,r=this.attributes.formatter;n.length<2||(null===(t=this.pageInfoGroup.querySelector(xK.pageInfo.class))||void 0===t||t.attr("text",r(e+1,n.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(t){var e=this.currPage;if(e===t)return[0,0];var n=this.attributes.orientation,r=this.pageShape,i=r.pageWidth,a=r.pageHeight,o=t<e?-1:1;return"horizontal"===n?[o*i,0]:[0,o*a]},e.prototype.prepareFollowingPage=function(t){var e=this.currPage,n=this.pageViews;if(this.setVisiblePages([t,e]),t!==e){var r=(0,i5.CR)(this.getFollowingPageDiff(t),2),i=r[0],a=r[1];n[t].setLocalPosition(i,a)}},e.prototype.renderController=function(t){var e=this,n=this.attributes,r=n.controllerSpacing,i=n.classNamePrefix,a=void 0===i?"":i,o=this.pageShape,l=o.pageWidth,s=o.pageHeight,u=this.pageViews.length>=2,c=t.maybeAppendByClassName(xK.controller,"g");if(i6(c.node(),u),u){var f=aP(this.attributes,"button"),p=aP(this.attributes,"pageNum"),d=(0,i5.CR)(aT(f),2),h=d[0],y=d[1],g=h.size,m=(0,i5._T)(h,["size"]),v=!c.select(xK.prevBtnGroup.class).node(),b=c.maybeAppendByClassName(xK.prevBtnGroup,"g").styles(y);this.prevBtnGroup=b.node();var x=b.maybeAppendByClassName(xK.prevBtn,"path");if(a){var O=lV(xK.prevBtn.name,lU.prevBtn,a);x.node().setAttribute("class",O)}var w=c.maybeAppendByClassName(xK.nextBtnGroup,"g").styles(y);this.nextBtnGroup=w.node();var M=w.maybeAppendByClassName(xK.nextBtn,"path");if(a){var _=lV(xK.nextBtn.name,lU.nextBtn,a);M.node().setAttribute("class",_)}[x,M].forEach(function(t){t.styles((0,i5.pi)((0,i5.pi)({},m),{transformOrigin:"center"})),aW(t.node(),g,!0)});var k=c.maybeAppendByClassName(xK.pageInfoGroup,"g");this.pageInfoGroup=k.node();var j=k.maybeAppendByClassName(xK.pageInfo,"text");if(j.styles(p),a){var A=lV(xK.pageInfo.name,lU.pageInfo,a);j.node().setAttribute("class",A)}this.updatePageInfo(),c.node().setLocalPosition(l+r,s/2),v&&(this.prevBtnGroup.addEventListener("click",function(){e.prev()}),this.nextBtnGroup.addEventListener("click",function(){e.next()}))}},e.prototype.render=function(t,e){var n=t.x,r=t.y;this.attr("transform","translate(".concat(void 0===n?0:n,", ").concat(void 0===r?0:r,")"));var i=ap(e);this.renderClipPath(i),this.renderController(i),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var t=this,e=ro(function(){return t.render(t.attributes,t)},50);this.playWindow.addEventListener(tk.Dk.INSERTED,e),this.playWindow.addEventListener(tk.Dk.REMOVED,e)},e}(al),xJ={CONTAINER:"component-poptip",ARROW:"component-poptip-arrow",TEXT:"component-poptip-text"},x0=((jF={})[".".concat(xJ.CONTAINER)]={visibility:"visible",position:"absolute","background-color":"rgba(0, 0, 0)","box-shadow":"0px 0px 10px #aeaeae","border-radius":"3px",color:"#fff",opacity:.8,"font-size":"12px",padding:"4px 6px",display:"flex","justify-content":"center","align-items":"center","z-index":8,transition:"visibility 50ms"},jF[".".concat(xJ.TEXT)]={"text-align":"center"}
1,jF[".".concat(xJ.CONTAINER,"[data-position='top']")]={transform:"translate(-50%, -100%)"},jF[".".concat(xJ.CONTAINER,"[data-position='left']")]={transform:"translate(-100%, -50%)"},jF[".".concat(xJ.CONTAINER,"[data-position='right']")]={transform:"translate(0, -50%)"},jF[".".concat(xJ.CONTAINER,"[data-position='bottom']")]={transform:"translate(-50%, 0)"},jF[".".concat(xJ.CONTAINER,"[data-position='top-left']")]={transform:"translate(0,-100%)"},jF[".".concat(xJ.CONTAINER,"[data-position='top-right']")]={transform:"translate(-100%,-100%)"},jF[".".concat(xJ.CONTAINER,"[data-position='left-top']")]={transform:"translate(-100%, 0)"},jF[".".concat(xJ.CONTAINER,"[data-position='left-bottom']")]={transform:"translate(-100%, -100%)"},jF[".".concat(xJ.CONTAINER,"[data-position='right-top']")]={transform:"translate(0, 0)"},jF[".".concat(xJ.CONTAINER,"[data-position='right-bottom']")]={transform:"translate(0, -100%)"},jF[".".concat(xJ.CONTAINER,"[data-position='bottom-left']")]={transform:"translate(0, 0)"},jF[".".concat(xJ.CONTAINER,"[data-position='bottom-right']")]={transform:"translate(-100%, 0)"},jF[".".concat(xJ.ARROW)]={width:"4px",height:"4px",transform:"rotate(45deg)","background-color":"rgba(0, 0, 0)",position:"absolute","z-index":-1},jF[".".concat(xJ.CONTAINER,"[data-position='top']")]={transform:"translate(-50%, calc(-100% - 5px))"},jF["[data-position='top'] .".concat(xJ.ARROW)]={bottom:"-2px"},jF[".".concat(xJ.CONTAINER,"[data-position='left']")]={transform:"translate(calc(-100% - 5px), -50%)"},jF["[data-position='left'] .".concat(xJ.ARROW)]={right:"-2px"},jF[".".concat(xJ.CONTAINER,"[data-position='right']")]={transform:"translate(5px, -50%)"},jF["[data-position='right'] .".concat(xJ.ARROW)]={left:"-2px"},jF[".".concat(xJ.CONTAINER,"[data-position='bottom']")]={transform:"translate(-50%, 5px)"},jF["[data-position='bottom'] .".concat(xJ.ARROW)]={top:"-2px"},jF[".".concat(xJ.CONTAINER,"[data-position='top-left']")]={transform:"translate(0, calc(-100% - 5px))"},jF["[data-position='top-left'] .".concat(xJ.ARROW)]={left:"10px",bottom:"-2px"},jF[".".concat(xJ.CONTAINER,"[data-position='top-right']")]={transform:"translate(-100%, calc(-100% - 5px))"},jF["[data-position='top-right'] .".concat(xJ.ARROW)]={right:"10px",bottom:"-2px"},jF[".".concat(xJ.CONTAINER,"[data-position='left-top']")]={transform:"translate(calc(-100% - 5px), 0)"},jF["[data-position='left-top'] .".concat(xJ.ARROW)]={right:"-2px",top:"8px"},jF[".".concat(xJ.CONTAINER,"[data-position='left-bottom']")]={transform:"translate(calc(-100% - 5px), -100%)"},jF["[data-position='left-bottom'] .".concat(xJ.ARROW)]={right:"-2px",bottom:"8px"},jF[".".concat(xJ.CONTAINER,"[data-position='right-top']")]={transform:"translate(5px, 0)"},jF["[data-position='right-top'] .".concat(xJ.ARROW)]={left:"-2px",top:"8px"},jF[".".concat(xJ.CONTAINER,"[data-position='right-bottom']")]={transform:"translate(5px, -100%)"},jF["[data-position='right-bottom'] .".concat(xJ.ARROW)]={left:"-2px",bottom:"8px"},jF[".".concat(xJ.CONTAINER,"[data-position='bottom-left']")]={transform:"translate(0, 5px)"},jF["[data-position='bottom-left'] .".concat(xJ.ARROW)]={top:"-2px",left:"8px"},jF[".".concat(xJ.CONTAINER,"[data-position='bottom-right']")]={transform:"translate(-100%, 5px)"},jF["[data-position='bottom-right'] .".concat(xJ.ARROW)]={top:"-2px",right:"8px"},jF),x1=void 0,x2=function(t){var e;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e||(e=t.apply(x1,n)),e}};function x5(t){var e=t&&document.getElementById(t);return e||((e=document.createElement("div")).setAttribute("id",t),document.body.appendChild(e)),e}var x3=function(t){function e(n){var r=t.call(this,rO({style:{id:"component-poptip"}},e.defaultOptions,n))||this;return r.visibility="visible",r.map=new Map,r.domStyles="",r.initShape(),r.render(r.attributes,r),r}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"visible",{get:function(){return"visible"===this.visibility},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){this.visibility=this.style.visibility,this.updatePoptipElement()},e.prototype.update=function(t){this.attr(rO({},this.style,t)),this.render(this.attributes,this)},e.prototype.bind=function(t,e){var n=this;if(t){var r=this.style.text,i=function(i){var a=t,o=n.style,l=r;if(e){var s="function"==typeof e?e.call(null,i):e,u=s.html,c=s.target,f=(0,i5._T)(s,["html","target"]);o=h6({},n.style,f),(c||!1===c)&&(a=c),"string"==typeof u&&(l=u)}var p=o.position,d=o.arrowPointAtCenter,h=o.follow,y=o.offset;if(a){var g=i.clientX,m=i.clientY,v=(0,i5.CR)(function(t,e,n,r,i,a){if(void 0===i&&(i=!1),void 0===a&&(a=!1),a)return[t,e];var o=n.getBoundingClientRect(),l=o.x,s=o.y,u=o.width,c=o.height;switch(r){case"top":return i?[l+u/2,s]:[t,s];case"left":return i?[l,s+c/2]:[l,e];case"bottom":return i?[l+u/2,s+c]:[t,s+c];case"right":return i?[l+u,s+c/2]:[l+u,e];case"top-right":case"right-top":return[l+u,s];case"left-bottom":case"bottom-left":return[l,s+c];case"right-bottom":case"bottom-right":return[l+u,s+c];default:return[l,s]}}(g,m,a,p,d,h),2),b=v[0],x=v[1];n.showTip(b,x,{text:l,position:p,offset:y})}else n.hideTip()},a=function(){n.hideTip()};t.addEventListener("mousemove",i),t.addEventListener("mouseleave",a),this.map.set(t,[i,a])}},e.prototype.unbind=function(t){if(this.map.has(t)){var e=(0,i5.CR)(this.map.get(t)||[],2),n=e[0],r=e[1];n&&t.removeEventListener("mousemove",n),r&&t.removeEventListener("mouseleave",r),this.map.delete(t)}},e.prototype.clear=function(){this.container.innerHTML=""},e.prototype.destroy=function(){var e,n=this;
1(0,i5.ev)([],(0,i5.CR)(this.map.keys()),!1).forEach(function(t){return n.unbind(t)}),null===(e=this.container)||void 0===e||e.remove(),t.prototype.destroy.call(this)},e.prototype.showTip=function(t,e,n){var r=rl(n,"text");if((!r||"string"==typeof r)&&(this.applyStyles(),t&&e&&n)){var i=n.offset,a=n.position;if(a&&this.container.setAttribute("data-position",a),this.setOffsetPosition(t,e,i),"string"==typeof r){var o=this.container.querySelector(".".concat(xJ.TEXT));o&&(o.innerHTML=r)}this.visibility="visible",this.container.style.visibility="visible"}},e.prototype.hideTip=function(){this.visibility="hidden",this.container.style.visibility="hidden"},e.prototype.getContainer=function(){return this.container},e.prototype.getClassName=function(){var t=this.style.containerClassName;return"".concat(xJ.CONTAINER).concat(t?" ".concat(t):"")},e.prototype.initShape=function(){var t=this,e=this.style.id;this.container=x2(x5)(e),this.container.className=this.getClassName(),this.container.addEventListener("mousemove",function(){return t.showTip()}),this.container.addEventListener("mouseleave",function(){return t.hideTip()})},e.prototype.updatePoptipElement=function(){var t=this.container;this.clear();var e=this.style,n=e.id,r=e.template,i=e.text;this.container.setAttribute("id",n),this.container.className=this.getClassName();var a='<span class="'.concat(xJ.ARROW,'"></span>');(t.innerHTML=a,(0,tN.Z)(r))?t.innerHTML+=r:r&&(r instanceof Element||r instanceof Document)&&t.appendChild(r),i&&(t.getElementsByClassName(xJ.TEXT)[0].textContent=i),this.applyStyles(),this.container.style.visibility=this.visibility},e.prototype.applyStyles=function(){var t=Object.entries(ar({},x0,this.style.domStyles)).reduce(function(t,e){var n=(0,i5.CR)(e,2),r=n[0],i=Object.entries(n[1]).reduce(function(t,e){var n=(0,i5.CR)(e,2),r=n[0],i=n[1];return"".concat(t).concat(r,": ").concat(i,";")},"");return"".concat(t).concat(r,"{").concat(i,"}")},"");if(this.domStyles!==t){this.domStyles=t;var e=this.container.querySelector("style");e&&this.container.removeChild(e),(e=document.createElement("style")).innerHTML=t,this.container.appendChild(e)}},e.prototype.setOffsetPosition=function(t,e,n){void 0===n&&(n=this.style.offset);var r=(0,i5.CR)(n,2),i=r[0],a=r[1];this.container.style.left="".concat(t+(void 0===i?0:i),"px"),this.container.style.top="".concat(e+(void 0===a?0:a),"px")},e.tag="poptip",e.defaultOptions={style:{x:0,y:0,width:0,height:0,target:null,visibility:"hidden",text:"",position:"top",follow:!1,offset:[0,0],domStyles:x0,template:'<div class="'.concat(xJ.TEXT,'"></div>')}},e}(al),x4=ad({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",focusGroup:"focus-group",focus:"focus",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item"),x6={offset:[0,20],domStyles:{".component-poptip":{opacity:"1",padding:"8px 12px",background:"#fff",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".component-poptip-arrow":{display:"none"},".component-poptip-text":{color:"#000",lineHeight:"20px"}}},x8=function(t){function e(e,n){var r=t.call(this,e,{span:[1,1],marker:function(){return new tk.Cd({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this;return r.keyFields={},r.keyFields=n||{},r}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"showValue",{get:function(){var t=this.attributes.valueText;return!!t&&("string"==typeof t||"number"==typeof t?""!==t:"function"==typeof t||""!==t.attr("text"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var t=this.labelGroup,e=this.valueGroup,n=this.attributes,r=n.markerSize,i=n.focus,a=n.focusMarkerSize,o=t.node().getBBox(),l=o.width,s=o.height,u=e.node().getBBox();return{markerWidth:r,labelWidth:l,valueWidth:u.width,focusWidth:i?null!=a?a:12:0,height:Math.max(r,s,u.height)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var t=this.attributes.span;if(!t)return[1,1];var e=(0,i5.CR)(or(t),2),n=e[0],r=e[1],i=this.showValue?r:0,a=n+i;return[n/a,i/a]}
1,enumerable:!1,configurable:!0}),e.prototype.setAttribute=function(e,n){t.prototype.setAttribute.call(this,e,n)},Object.defineProperty(e.prototype,"shape",{get:function(){var t,e=this.attributes,n=e.markerSize,r=e.width,i=this.actualSpace,a=i.markerWidth,o=i.focusWidth,l=i.height,s=this.actualSpace,u=s.labelWidth,c=s.valueWidth,f=(0,i5.CR)(this.spacing,3),p=f[0],d=f[1],h=f[2];if(r){var y=r-n-p-d-o-h,g=(0,i5.CR)(this.span,2),m=g[0],v=g[1];u=(t=(0,i5.CR)([m*y,v*y],2))[0],c=t[1]}return{width:a+u+c+p+d+o+h,height:l,markerWidth:a,labelWidth:u,valueWidth:c,focusWidth:o}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var t=this.attributes,e=t.spacing,n=t.focus;if(!e)return[0,0,0];var r=(0,i5.CR)(or(e),3),i=r[0],a=r[1],o=r[2];return[i,this.showValue?a:0,n?o:0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var t=this.shape,e=t.markerWidth,n=t.labelWidth,r=t.valueWidth,i=t.focusWidth,a=t.width,o=t.height,l=(0,i5.CR)(this.spacing,3),s=l[0],u=l[1];return{height:o,width:a,markerWidth:e,labelWidth:n,valueWidth:r,focusWidth:i,position:[e/2,e+s,e+n+s+u,e+n+r+s+u+l[2]+i/2]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var t,e=(t=this.markerGroup.node().querySelector(x4.marker.class))?t.style:{},n=this.attributes,r=n.markerSize,i=n.markerStrokeWidth,a=void 0===i?e.strokeWidth:i,o=n.markerLineWidth,l=void 0===o?e.lineWidth:o,s=n.markerStroke,u=void 0===s?e.stroke:s,c=+(a||l||(u?1:0))*Math.sqrt(2),f=this.markerGroup.node().getBBox();return(1-c/Math.max(f.width,f.height))*r},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(t){var e=this,n=this.attributes,r=n.marker,i=n.classNamePrefix,a=aP(this.attributes,"marker");this.markerGroup=t.maybeAppendByClassName(x4.markerGroup,"g").style("zIndex",0),as(!!r,this.markerGroup,function(){var t,n=e.markerGroup.node(),o=null===(t=n.childNodes)||void 0===t?void 0:t[0],l=lV(x4.marker.name,lU.marker,i),s="string"==typeof r?new l2({style:{symbol:r},className:l}):r();if(o){if(s.nodeName===o.nodeName)o instanceof l2?o.update((0,i5.pi)((0,i5.pi)({},a),{symbol:r})):(function(t,e){var n,r,i=e.attributes;try{for(var a=(0,i5.XA)(Object.entries(i)),o=a.next();!o.done;o=a.next()){var l=(0,i5.CR)(o.value,2),s=l[0],u=l[1];"id"!==s&&"className"!==s&&t.attr(s,u)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}(o,s),ap(o).styles(a));else{if(o.remove(),!(s instanceof l2)){var u=lV(x4.marker.name,lU.marker,i);s.className=u}ap(s).styles(a),n.appendChild(s)}}else{if(!(s instanceof l2)){var c=lV(x4.marker.name,lU.marker,i);s.className=c,ap(s).styles(a)}n.appendChild(s)}e.markerGroup.node().scale(1/e.markerGroup.node().getScale()[0]);var f=aW(e.markerGroup.node(),e.scaleSize,!0);e.markerGroup.node().style._transform="scale(".concat(f,")")})},e.prototype.renderLabel=function(t){var e=aP(this.attributes,"label"),n=e.text,r=(0,i5._T)(e,["text"]),i=this.attributes.classNamePrefix;this.labelGroup=t.maybeAppendByClassName(x4.labelGroup,"g").style("zIndex",0);var a=lV(x4.label.name,lU.label,i),o=this.labelGroup.maybeAppendByClassName(x4.label,function(){return a$(n)});o.node().setAttribute("class",a),o.styles(r)},e.prototype.renderValue=function(t){var e=this,n=aP(this.attributes,"value"),r=n.text,i=(0,i5._T)(n,["text"]),a=this.attributes.classNamePrefix;this.valueGroup=t.maybeAppendByClassName(x4.valueGroup,"g").style("zIndex",0),as(this.showValue,this.valueGroup,function(){var t=lV(x4.value.name,lU.value,a),n=e.valueGroup.maybeAppendByClassName(x4.value,function(){return a$(r)});n.node().setAttribute("class",t),n.styles(i)})},e.prototype.createPoptip=function(){var t=this.attributes.poptip||{},e=new x3({style:ar(x6,(t.render,(0,i5._T)(t,["render"])))});return this.poptipGroup=e,e},e.prototype.bindPoptip=function(t){var e=this,n=this.attributes.poptip;n&&(this.poptipGroup||this.createPoptip()).bind(t,function(){var t=e.attributes,r=t.labelText,i=t.valueText,a=t.markerFill,o="string"==typeof r?r:null==r?void 0:r.attr("text"),l="string"==typeof i?i:null==i?void 0:i.attr("text");if("function"==typeof n.render)return{html:n.render((0,i5.pi)((0,i5.pi)({},e.keyFields),{label:o,value:l,color:a}))};var s="";return("string"==typeof o||"number"==typeof o)&&(s+='<div class="component-poptip-label">'.concat(o,"</div>")),("string"==typeof l||"number"==typeof l)&&(s+='<div class="component-poptip-value">'.concat(l,"</div>")),{html:s}})},e.prototype.renderFocus=function(t){var e=this,n=this.attributes,r=n.focus,i=n.focusMarkerSize,a=n.classNamePrefix,o={x:0,y:0,size:i,opacity:.6,symbol:"focus",stroke:"#aaaaaa",lineWidth:1};(0,oW.Z)(r)||(this.focusGroup=t.maybeAppendByClassName(x4.focusGroup,"g").style("zIndex",0),as(r,this.focusGroup,function(){var n=lV(x4.focus.name,lU.focusIcon,a),r=new l2({style:(0,i5.pi)((0,i5.pi)({},o),{symbol:"focus"}),className:n}),i=new tk.Cd({style:{r:o.size/2,fill:"transparent"}}
1),l=e.focusGroup.node();l.appendChild(i),l.appendChild(r),r.update({opacity:0}),t.node().addEventListener("pointerenter",function(){r.update({opacity:1})}),t.node().addEventListener("pointerleave",function(){r.update({opacity:0})})}))},e.prototype.renderPoptip=function(t){var e=this;this.attributes.poptip&&[t.maybeAppendByClassName(x4.value,"g").node(),t.maybeAppendByClassName(x4.label,"g").node()].forEach(function(t){t&&e.bindPoptip(t)})},e.prototype.renderBackground=function(t){var e=this.shape,n=e.width,r=e.height,i=aP(this.attributes,"background");this.background=t.maybeAppendByClassName(x4.backgroundGroup,"g").style("zIndex",-1);var a=this.background.maybeAppendByClassName(x4.background,"rect");a.styles((0,i5.pi)({width:n,height:r},i));var o=this.attributes.classNamePrefix,l=void 0===o?"":o;if(l){var s=lV(x4.background.name,lU.background,l);a.node().setAttribute("class",s)}},e.prototype.adjustLayout=function(){var t=this.layout,e=t.labelWidth,n=t.valueWidth,r=t.height,i=(0,i5.CR)(t.position,4),a=i[0],o=i[1],l=i[2],s=i[3],u=r/2;this.markerGroup.styles({transform:"translate(".concat(a,", ").concat(u,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(o,", ").concat(u,")")}),this.focusGroup&&this.focusGroup.styles({transform:"translate(".concat(s,", ").concat(u,")")}),oe(this.labelGroup.select(x4.label.class).node(),Math.ceil(e)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(l,", ").concat(u,")")}),oe(this.valueGroup.select(x4.value.class).node(),Math.ceil(n)))},e.prototype.render=function(t,e){var n=ap(e),r=t.x,i=t.y;n.styles({transform:"translate(".concat(void 0===r?0:r,", ").concat(void 0===i?0:i,")")}),this.renderMarker(n),this.renderLabel(n),this.renderValue(n),this.renderBackground(n),this.renderPoptip(n),this.renderFocus(n),this.adjustLayout()},e}(al),x9=ad({page:"item-page",navigator:"navigator",item:"item"},"items"),x7=function(t,e,n){return(void 0===n&&(n=!0),t)?e(t):n},Ot=function(t){function e(e){var n=t.call(this,e,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:xX,mouseenter:xX,mouseleave:xX})||this;return n.navigatorShape=[0,0],n}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var t=this.attributes,e=t.gridRow,n=t.gridCol,r=t.data;if(!e&&!n)throw Error("gridRow and gridCol can not be set null at the same time");return e&&n?[e,n]:e?[e,r.length]:[r.length,n]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var t=this.attributes,e=t.data,n=t.layout,r=t.poptip,i=t.focus,a=t.focusMarkerSize,o=t.classNamePrefix,l=aP(this.attributes,"item");return e.map(function(t,s){var u=t.id,c=void 0===u?s:u,f=t.label,p=t.value;return{id:"".concat(c),index:s,style:(0,i5.pi)({layout:n,labelText:f,valueText:p,poptip:r,focus:i,focusMarkerSize:a,classNamePrefix:o},Object.fromEntries(Object.entries(l).map(function(n){var r=(0,i5.CR)(n,2);return[r[0],aR(r[1],[t,s,e])]})))}})},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var t=this,e=this.attributes,n=e.orientation,r=e.width,i=e.rowPadding,a=e.colPadding,o=(0,i5.CR)(this.navigatorShape,1)[0],l=(0,i5.CR)(this.grid,2),s=l[0],u=l[1],c=u*s,f=0;return this.pageViews.children.map(function(e,l){var p,d,h=Math.floor(l/c),y=l%c,g=t.ifHorizontal(u,s),m=[Math.floor(y/g),y%g];"vertical"===n&&m.reverse();var v=(0,i5.CR)(m,2),b=v[0],x=v[1],O=(r-o-(u-1)*a)/u,w=e.getBBox().height,M=(0,i5.CR)([0,0],2),_=M[0],k=M[1];return"horizontal"===n?(_=(p=(0,i5.CR)([f,b*(w+i)],2))[0],k=p[1],f=x===u-1?0:f+O+a):(_=(d=(0,i5.CR)([x*(O+a),f],2))[0],k=d[1],f=b===s-1?0:f+w+i),{page:h,index:l,row:b,col:x,pageIndex:y,width:O,height:w,x:_,y:k}})},e.prototype.getFlexLayout=function(){var t=this.attributes,e=t.width,n=t.height,r=t.rowPadding,i=t.colPadding,a=(0,i5.CR)(this.navigatorShape,1)[0],o=(0,i5.CR)(this.grid,2),l=o[0],s=o[1],u=(0,i5.CR)([e-a,n],2),c=u[0],f=u[1],p=(0,i5.CR)([0,0,0,0,0,0,0,0],8),d=p[0],h=p[1],y=p[2],g=p[3],m=p[4],v=p[5],b=p[6],x=p[7];return this.pageViews.children.map(function(t,e){var n,a,o,u,p=t.getBBox(),O=p.width,w=p.height,M=0===b?0:i,_=b+M+O;return _<=c&&x7(m,function(t){return t<s})?(d=(n=(0,i5.CR)([b+M,x,_],3))[0],h=n[1],b=n[2]):(v=(a=(0,i5.CR)([v+1,0,0,x+w+r],4))[0],m=a[1],b=a[2],(x=a[3])+w<=f&&x7(v,function(t){return t<l}))?(d=(o=(0,i5.CR)([b,x,O],3))[0],h=o[1],b=o[2]):(d=(u=(0,i5.CR)([0,0,O,0,y+1,0,0,0],8))[0],h=u[1],b=u[2],x=u[3],y=u[4],g=u[5],v=u[6],m=u[7]),{width:O,height:w,x:d,y:h,page:y,index:e,pageIndex:g++,row:v,col:m++}})},Object.defineProperty(e.prototype,"itemsLayout",{get:function(){this.navigatorShape=[0,0];var t="grid"===this.attributes.layout?this.getGridLayout:this.getFlexLayout,e=t.call(this);return e.slice(-1)[0].page>0?(this.navigatorShape=[55,0],t.call(this)):e}
1,enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(t,e){return l5(this.attributes.orientation,t,e)},e.prototype.flattenPage=function(t){t.querySelectorAll(x9.item.class).forEach(function(e){t.appendChild(e)}),t.querySelectorAll(x9.page.class).forEach(function(e){t.removeChild(e).destroy()})},e.prototype.renderItems=function(t){var e=this.attributes,n=e.click,r=e.mouseenter,i=e.mouseleave,a=e.classNamePrefix;this.flattenPage(t);var o=this.dispatchCustomEvent.bind(this),l=lV(x9.item.name,lU.item,a);ap(t).selectAll(x9.item.class).data(this.renderData,function(t){return t.id}).join(function(t){return t.append(function(t){return new x8({style:t.style},(0,i5._T)(t,["style"]))}).attr("className",l).on("click",function(){null==n||n(this),o("itemClick",{item:this})}).on("pointerenter",function(){null==r||r(this),o("itemMouseenter",{item:this})}).on("pointerleave",function(){null==i||i(this),o("itemMouseleave",{item:this})})},function(t){return t.each(function(t){var e=t.style;this.update(e)})},function(t){return t.remove()})},e.prototype.relayoutNavigator=function(){var t,e=this.attributes,n=e.layout,r=e.width,i=(null===(t=this.pageViews.children[0])||void 0===t?void 0:t.getBBox().height)||0,a=(0,i5.CR)(this.navigatorShape,2),o=a[0],l=a[1];this.navigator.update("grid"===n?{pageWidth:r-o,pageHeight:i-l}:{})},e.prototype.adjustLayout=function(){var t,e,n=this,r=Object.entries((t=this.itemsLayout,e="page",t.reduce(function(t,n){return(t[n[e]]=t[n[e]]||[]).push(n),t},{}))).map(function(t){var e=(0,i5.CR)(t,2);return{page:e[0],layouts:e[1]}}),i=(0,i5.ev)([],(0,i5.CR)(this.navigator.getContainer().children),!1);r.forEach(function(t){var e=t.layouts,r=n.pageViews.appendChild(new tk.ZA({className:x9.page.name}));e.forEach(function(t){var e=t.x,n=t.y,a=t.index,o=t.width,l=t.height,s=i[a];r.appendChild(s),uk(s,"__layout__",t),s.update({x:e,y:n,width:o,height:l})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(t){var e=this.attributes,n=ar({orientation:e.orientation,classNamePrefix:e.classNamePrefix},aP(this.attributes,"nav")),r=this;return t.selectAll(x9.navigator.class).data(["nav"]).join(function(t){return t.append(function(){return new xQ({style:n})}).attr("className",x9.navigator.name).each(function(){r.navigator=this})},function(t){return t.each(function(){this.update(n)})},function(t){return t.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(t,e){var n=this.attributes.data;if(n&&0!==n.length){var r=this.renderNavigator(ap(e));this.renderItems(r.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(t,e){var n=new tk.Aw(t,{detail:e});this.dispatchEvent(n)},e}(al),Oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i5.ZT)(e,t),e.prototype.update=function(t){this.attr(t)},e}(tk.k9),On=function(t){function e(e){return t.call(this,e,l9)||this}return(0,i5.ZT)(e,t),e.prototype.renderTitle=function(t,e,n){var r=this.attributes,i=r.showTitle,a=r.titleText,o=r.classNamePrefix,l=aP(this.attributes,"title"),s=(0,i5.CR)(aT(l),2),u=s[0],c=s[1];this.titleGroup=t.maybeAppendByClassName(st.titleGroup,"g").styles(c);var f=(0,i5.pi)((0,i5.pi)({width:e,height:n},u),{text:i?a:"",classNamePrefix:o});this.title=this.titleGroup.maybeAppendByClassName(st.title,function(){return new lQ({style:f})}).update(f)},e.prototype.renderCustom=function(t){var e=this.attributes.data,n={innerHTML:this.attributes.render(e),pointerEvents:"auto"};t.maybeAppendByClassName(st.html,function(){return new Oe({className:st.html.name,style:n})}).update(n)},e.prototype.renderItems=function(t,e){var n=e.x,r=e.y,i=e.width,a=e.height,o=aP(this.attributes,"title",!0),l=(0,i5.CR)(aT(o),2),s=l[0],u=l[1],c=(0,i5.pi)((0,i5.pi)({},s),{width:i,height:a,x:0,y:0});this.itemsGroup=t.maybeAppendByClassName(st.itemsGroup,"g").styles((0,i5.pi)((0,i5.pi)({},u),{transform:"translate(".concat(n,", ").concat(r,")")}));var f=this;this.itemsGroup.selectAll(st.items.class).data(["items"]).join(function(t){return t.append(function(){return new Ot({style:c}
1)}).attr("className",st.items.name).each(function(){f.items=ap(this)})},function(t){return t.update(c)},function(t){return t.remove()})},e.prototype.adjustLayout=function(){if(this.attributes.showTitle){var t=this.title.node().getAvailableSpace(),e=t.x,n=t.y;this.itemsGroup.node().style.transform="translate(".concat(e,", ").concat(n,")")}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.showTitle,n=t.width,r=t.height;return e?this.title.node().getAvailableSpace():new o0(0,0,n,r)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var e,n,r=null===(e=this.title)||void 0===e?void 0:e.node(),i=null===(n=this.items)||void 0===n?void 0:n.node();return r&&i?function(t,e){var n=t.attributes,r=n.position,i=n.spacing,a=n.inset,o=n.text,l=t.getBBox(),s=e.getBBox(),u=ok(r),c=(0,i5.CR)(or(o?i:0),4),f=c[0],p=c[1],d=c[2],h=c[3],y=(0,i5.CR)(or(a),4),g=y[0],m=y[1],v=y[2],b=y[3],x=(0,i5.CR)([h+p,f+d],2),O=x[0],w=x[1],M=(0,i5.CR)([b+m,g+v],2),_=M[0],k=M[1];if("l"===u[0])return new o0(l.x,l.y,s.width+l.width+O+_,Math.max(s.height+k,l.height));if("t"===u[0])return new o0(l.x,l.y,Math.max(s.width+_,l.width),s.height+l.height+w+k);var j=(0,i5.CR)([e.attributes.width||s.width,e.attributes.height||s.height],2),A=j[0],E=j[1];return new o0(s.x,s.y,A+l.width+O+_,E+l.height+w+k)}(r,i):t.prototype.getBBox.call(this)},e.prototype.render=function(t,e){var n=this.attributes,r=n.width,i=n.height,a=n.x,o=n.y,l=n.classNamePrefix,s=n.render,u=ap(e),c=e.className||"legend-category";l?e.attr("className","".concat(c," ").concat(l,"legend")):e.className||e.attr("className","legend-category"),e.style.transform="translate(".concat(void 0===a?0:a,", ").concat(void 0===o?0:o,")"),s?this.renderCustom(u):(this.renderTitle(u,r,i),this.renderItems(u,this.availableSpace),this.adjustLayout())},e}(al),Or=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})};let Oi="legend-category",Oa="legend-html-category";function Oo(t){return t.getElementsByClassName("legend-category-item-marker")[0]}function Ol(t){return t.getElementsByClassName("legend-category-item-label")[0]}function Os(t){return t.getElementsByClassName("legend-category-item-focus-group")[0]}function Ou(t){return t.getElementsByClassName("items-item")}function Oc(t){return t.getElementsByClassName(Oi)}function Of(t){return t.getElementsByClassName("legend-continuous")}function Op(t){let e=t.parentNode;for(;e&&!e.__data__;)e=e.parentNode;return e.__data__}function Od(t,e){return Or(this,arguments,void 0,function*(t,{legend:e,channel:n,value:r,ordinal:i,channels:a,allChannels:o,facet:l=!1}){let{view:s,update:u,setState:c}=t;c(e,t=>{var u,c;let{marks:f}=t,p=null===(c=null===(u=e.attributes)||void 0===u?void 0:u.scales)||void 0===c?void 0:c.find(t=>t.name===n),d=f.map(e=>{var u,c;if((null!==(u=e.scale[n].key)&&void 0!==u?u:n)!==(null!==(c=null==p?void 0:p.key)&&void 0!==c?c:null==p?void 0:p.name)||"legends"===e.type||iG.includes(e.type))return e;let{transform:f=[],data:d=[]}=e,h=f.findIndex(({type:t})=>t.startsWith("group")||t.startsWith("bin")),y=[...f];return d.length&&y.splice(h+1,0,{type:"filter",[n]:{value:r,ordinal:i}}),rO({},e,Object.assign(Object.assign({transform:y,scale:Object.fromEntries(a.map(e=>{let n=function(t,e,n){var r;let i=Object.keys(t).find(r=>{if(r.startsWith(n)){let i=t[r].getOptions();return i.name===n&&i.markKey===e}});return null!==(r=t[i])&&void 0!==r?r:t[n]}(s.scale,t.key,e);return[e,{domain:n.getOptions().domain}]}))},!i&&{animate:!1}),{legend:!l&&Object.fromEntries(o.map(t=>[t,{preserve:!0}]))}))});return Object.assign(Object.assign({},t),{marks:d})}),yield u()})}function Oh(t,e){for(let n of t)Od(n,Object.assign(Object.assign({},e),{facet:!0}))}var Oy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};
1function Og(t,e){let n=ln(t,"shape"),r=ln(t,"color"),i=n?n.clone():null,a=[];for(let[t,n]of e){let e=t.type,o=((null==r?void 0:r.getOptions().domain.length)>0?null==r?void 0:r.getOptions().domain:n.data).map((e,r)=>{var a;return i?i.map(e||"point"):(null===(a=null==t?void 0:t.style)||void 0===a?void 0:a.shape)||n.defaultShape||"point"});"string"==typeof e&&a.push([e,o])}if(0===a.length)return["point",["point"]];if(1===a.length||!n)return a[0];let{range:o}=n.getOptions();return a.map(([t,e])=>{let n=0;for(let t=0;t<a.length;t++){let r=o[t%o.length];e[t]===r&&n++}return[n/e.length,[t,e]]}).sort((t,e)=>e[0]-t[0])[0][1]}let Om=t=>{let{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:l,cols:s,itemMarker:u,render:c}=t,f=Oy(t,["labelFormatter","layout","order","orientation","position","size","title","cols","itemMarker","render"]),{gridRow:p}=f;return e=>{let{value:r,theme:i}=e,{bbox:o}=r,{width:u,height:d}=function(t,e,n){let{position:r}=e;if("center"===r){let{bbox:e}=t,{width:n,height:r}=e;return{width:n,height:r}}let{width:i,height:a}=lr(t,e,n);return{width:i,height:a}}(r,t,Om),h=o7(a,n),y=Object.assign(Object.assign(Object.assign(Object.assign({orientation:["right","left","center"].includes(a)?"vertical":"horizontal",width:u,height:d,layout:void 0!==s?"grid":"flex"},void 0!==s&&{gridCol:s}),void 0!==p&&{gridRow:p}),{titleText:o9(l)}),function(t,e){let{labelFormatter:n=t=>`${t}`}=t,{scales:r,theme:i}=e,a=function(t,e){let n=ln(t,"size");return n instanceof bH?2*n.map(NaN):e}(r,i.legendCategory.itemMarkerSize),o={itemMarker:function(t,e){let{scales:n,library:r,markState:i}=e,[a,o]=Og(n,i),{itemMarker:l,itemMarkerSize:s}=t,u=(t,e)=>{var n,i,o;let l=(null===(o=null===(i=null===(n=r[`mark.${a}`])||void 0===n?void 0:n.props)||void 0===i?void 0:i.shape[t])||void 0===o?void 0:o.props.defaultMarker)||oS(t.split(".")),u="function"==typeof s?s(e):s;return()=>(function(t,e){var{d:n,fill:r,lineWidth:i,path:a,stroke:o,color:l}=e,s=eH(e,["d","fill","lineWidth","path","stroke","color"]);let u=ns.get(t)||ns.get("point");return(...t)=>new tk.y$({style:Object.assign(Object.assign({},s),{d:u(...t),stroke:u.style.includes("stroke")?l||o:"",fill:u.style.includes("fill")?l||r:"",lineWidth:u.style.includes("lineWidth")?i||i||2:0})})})(l,{color:e.color})(0,0,u)},c=t=>`${o[t]}`;return ln(n,"shape")&&!l?(t,e)=>u(c(e),t):"function"==typeof l?(t,e)=>{let n=l(t.id,e);return"string"==typeof n?u(n,t):n}:(t,e)=>u(l||c(e),t)}(Object.assign(Object.assign({},t),{itemMarkerSize:a}),e),itemMarkerSize:a,itemMarkerOpacity:function(t){let e=ln(t,"opacity");if(e){let{range:t}=e.getOptions();return(e,n)=>t[n]}}(r),itemMarkerLineWidth:function(t,e){let{scales:n,markState:r}=e,[i,a]=Og(n,r),{itemMarker:o,itemMarkerLineWidth:l}=t;if(void 0!==l)return l;let s=["line","hyphen","dash","smooth","hv","hvh","vh","vhv"];return"string"==typeof o&&s.includes(o)?4:"function"==typeof o?(t,e)=>{let n=o(t.id,e);if("string"==typeof n&&s.includes(n))return 4}:(Array.isArray(a)?a:[a]).some(t=>s.includes(t))?4:void 0}(t,e)},l="string"==typeof n?v7(n):n,s=ln(r,"color"),u=r.find(t=>t.getOptions().domain.length>0).getOptions().domain,c=s?t=>s.map(t):()=>e.theme.color;return Object.assign(Object.assign({},o),{data:u.map(t=>({id:t,label:l(t),color:c(t)}))})}(t,e)),{legendCategory:g={}}=i,m=li(Object.assign({},g,Object.assign(Object.assign({},y),{data:(null==y?void 0:y.data.filter(t=>""!==t.id&&void 0!==t.id))||[]}),f,{classNamePrefix:"g2-"}));if(c)return new On({className:Oa,style:Object.assign(Object.assign({},m),{x:o.x,y:o.y,render:c})});let v=new le({style:Object.assign(Object.assign({x:o.x,y:o.y,width:o.width,height:o.height},h),{subOptions:m})});return v.appendChild(new On({className:"legend-category",style:m})),v}};Om.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};let Ov=t=>()=>new tk.ZA;Ov.props={};var Ob=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function Ox(t,e,n,r){switch(r){case"center":return{x:t+n/2,y:e,textAlign:"middle"};case"right":return{x:t+n,y:e,textAlign:"right"};default:return{x:t,y:e,textAlign:"left"}}}let OO=(jN={render(t,e){let{width:n,title:r,subtitle:i,spacing:a=2,align:o="left",x:l,y:s}=t,u=Ob(t,["width","title","subtitle","spacing","align","x","y"]);e.style.transform=`translate(${l}, ${s})`;let c=rX(u,"title"),f=rX(u,"subtitle"),p=o8(e,".title","text").attr("className","title").call(s
1F,Object.assign(Object.assign(Object.assign({},Ox(0,0,n,o)),{fontSize:14,textBaseline:"top",text:r}),c)).node().getLocalBounds();o8(e,".sub-title","text").attr("className","sub-title").call(t=>{if(!i)return t.node().remove();t.node().attr(Object.assign(Object.assign(Object.assign({},Ox(0,p.max[1]+a,n,o)),{fontSize:12,textBaseline:"top",text:i}),f))})}},class extends tk.b_{constructor(t){super(t),this.descriptor=jN}connectedCallback(){var t,e;null===(e=(t=this.descriptor).render)||void 0===e||e.call(t,this.attributes,this)}update(t={}){var e,n;this.attr(rO({},this.attributes,t)),null===(n=(e=this.descriptor).render)||void 0===n||n.call(e,this.attributes,this)}}),Ow=t=>({value:e,theme:n})=>{let{x:r,y:i,width:a,height:o}=e.bbox;return new OO({style:rO({},n.title,Object.assign({x:r,y:i,width:a,height:o},t))})};function OM({map:t,initKey:e},n){let r=e(n);return t.has(r)?t.get(r):n}function O_(t){return"object"==typeof t?t.valueOf():t}Ow.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};class Ok extends Map{constructor(t){if(super(),this.map=new Map,this.initKey=O_,null!==t)for(let[e,n]of t)this.set(e,n)}get(t){return super.get(OM({map:this.map,initKey:this.initKey},t))}has(t){return super.has(OM({map:this.map,initKey:this.initKey},t))}set(t,e){return super.set(function({map:t,initKey:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}({map:this.map,initKey:this.initKey},t),e)}delete(t){return super.delete(function({map:t,initKey:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}({map:this.map,initKey:this.initKey},t))}}let Oj=Symbol("defaultUnknown");function OA(t,e,n){for(let r=0;r<e.length;r+=1)t.has(e[r])||t.set(n(e[r]),r)}function OE(t){let{value:e,from:n,to:r,mapper:i,notFoundReturn:a}=t,o=i.get(e);if(void 0===o){if(a!==Oj)return a;o=n.push(e)-1,i.set(e,o)}return r[o%r.length]}function OS(t){return t instanceof Date?t=>`${t}`:"object"==typeof t?t=>JSON.stringify(t):t=>t}class OP extends lh{getDefaultOptions(){return{domain:[],range:[],unknown:Oj}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&OA(this.domainIndexMap,this.getDomain(),this.domainKey),OE({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&OA(this.rangeIndexMap,this.getRange(),this.rangeKey),OE({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){let[e]=this.options.domain,[n]=this.options.range;if(this.domainKey=OS(e),this.rangeKey=OS(n),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!t||t.range)&&this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new OP(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;let{domain:t,compare:e}=this.options;return this.sortedDomain=e?[...t].sort(e):t,this.sortedDomain}}class OC extends OP{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:Oj,flex:[]}}constructor(t){super(t)}clone(){return new OC(this.options)}getStep(t){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===t?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===t?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){let{padding:t,paddingInner:e}=this.options;return t>0?t:e}getPaddingOuter(){let{padding:t,paddingOuter:e}=this.options;return t>0?t:e}rescale(){super.rescale();let{align:t,domain:e,range:n,round:r,flex:i}=this.options,{adjustedRange:a,valueBandWidth:o,valueStep:l}=function(t){var e;let n,r;let{domain:i}=t,a=i.length;if(0===a)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};if(null===(e=t.flex)||void 0===e?void 0:e.length)return function(t){let{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:l}=t,s=e.length,u=function(t,e){let n=e-t.length;return n>0?[...t,...Array(n).fill(1)]:n<0?t.slice(0,e):t}(a,s),[c,f]=n,p=f-c,d=p/(2/s*r+1-1/s*i),h=d*i/s,y=d-s*h,g=function(t){let e=Math.min(...t);return t.map(t=>t/e)}(u),m=y/g.reduce((t,e)=>t+e),v=new Ok(e.map((t,e)=>{let n=g[e]*m;return[t,o?Math.floor(n):n]})),b=new Ok(e.map((t,e)=>{let n=g[e]*m+h;return[t,o?Math.floor(n):n]})),x=Array.from(b.values()).reduce((t,e)=>t+e),O=c+(p-(x-x/s*i))*l,w=o?Math.round(O):O,M=Array(s);for(let t=0;t<s;t+=1){M[t]=Math.round(1e12*w)/1e12;let n=e[t];w+=b.get(n)}return{valueBandWidth:v,valueStep:b,adjustedRange:M}}(t);let{range:o,paddingOuter:l,paddingInner:s,round:u,align:c}
1=t,f=o[0],p=o[1]-f;n=p/Math.max(1,2*l+(a-s)),u&&(n=Math.floor(n)),f+=(p-n*(a-s))*c,r=n*(1-s),u&&(f=Math.round(f),r=Math.round(r));let d=Array(a).fill(0).map((t,e)=>f+e*n);return{valueStep:n,valueBandWidth:r,adjustedRange:d}}({align:t,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=l,this.valueBandWidth=o,this.adjustedRange=a}}var OT=function(t){if("object"!=typeof t||null===t)return t;if((0,rm.Z)(t)){e=[];for(var e,n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=OT(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"==typeof t[i]&&null!=t[i]?e[i]=OT(t[i]):e[i]=t[i];return e},OR=function(t){function e(e){var n=this,r=e.style,i=(0,i5._T)(e,["style"]);return(n=t.call(this,rO({},{type:"column"},(0,i5.pi)({style:r},i)))||this).columnsGroup=new tk.ZA({name:"columns"}),n.appendChild(n.columnsGroup),n.render(),n}return(0,i5.ZT)(e,t),e.prototype.render=function(){var t=this.attributes,e=t.columns,n=t.x,r=t.y;this.columnsGroup.style.transform="translate(".concat(n,", ").concat(r,")"),ap(this.columnsGroup).selectAll(".column").data(e.flat()).join(function(t){return t.append("rect").attr("className","column").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.attr(t)})},function(t){return t.remove()})},e.prototype.update=function(t){this.attr(ar({},this.attributes,t)),this.render()},e.prototype.clear=function(){this.removeChildren()},e}(tk.s$),OL=function(t){function e(e){var n=this,r=e.style,i=(0,i5._T)(e,["style"]);return(n=t.call(this,rO({},{type:"lines"},(0,i5.pi)({style:r},i)))||this).linesGroup=n.appendChild(new tk.ZA),n.areasGroup=n.appendChild(new tk.ZA),n.render(),n}return(0,i5.ZT)(e,t),e.prototype.render=function(){var t=this.attributes,e=t.lines,n=t.areas,r=t.x,i=t.y;this.style.transform="translate(".concat(r,", ").concat(i,")"),e&&this.renderLines(e),n&&this.renderAreas(n)},e.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},e.prototype.update=function(t){this.attr(ar({},this.attributes,t)),this.render()},e.prototype.renderLines=function(t){ap(this.linesGroup).selectAll(".line").data(t).join(function(t){return t.append("path").attr("className","line").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.attr(t)})},function(t){return t.remove()})},e.prototype.renderAreas=function(t){ap(this.linesGroup).selectAll(".area").data(t).join(function(t){return t.append("path").attr("className","area").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.style(t)})},function(t){return t.remove()})},e}(tk.s$);function ON(t,e){void 0===e&&(e=!1);var n=e?t.length-1:0,r=t.map(function(t,e){return(0,i5.ev)([e===n?"M":"L"],(0,i5.CR)(t),!1)});return e?r.reverse():r}function OI(t,e){if(void 0===e&&(e=!1),t.length<=2)return ON(t);for(var n=[],r=t.length,i=0;i<r;i+=1){var a=e?t[r-i-1]:t[i];iN(a,n.slice(-2))||n.push.apply(n,(0,i5.ev)([],(0,i5.CR)(a),!1))}var o=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r,i,a,o=!!e,l=[],s=0,u=t.length;s<u;s+=2)l.push([t[s],t[s+1]]);for(var c=function(t,e,n,r){var i,a,o,l,s,u,c=[],f=!!r,p=[1/0,1/0],d=[-1/0,-1/0];if(f){p=(i=(0,i5.CR)(r,2))[0],d=i[1];for(var h=0,y=t.length;h<y;h+=1){var g=t[h];p=aO(p,g),d=aw(d,g)}}for(var h=0,m=t.length;h<m;h+=1){var g=t[h];if(0!==h||n){if(h!==m-1||n){a=t[[h?h-1:m-1,h-1][n?0:1]];var v=[0,0];v=av(v=ax(o=t[n?(h+1)%m:h+1],a),.4);var b=aM(g,a),x=aM(g,o),O=b+x;0!==O&&(b/=O,x/=O);var w=av(v,-b),M=av(v,x);s=ab(g,w),l=aO(l=ab(g,M),aw(o,g)),w=av(w=ax(l=aw(l,aO(o,g)),g),-b/x),s=aO(s=ab(g,w),aw(a,g)),s=aw(s,aO(a,g)),M=av(M=ax(g,s),x/b),l=ab(g,M),f&&(s=aO(s=aw(s,p),d),l=aO(l=aw(l,p),d)),c.push(u),c.push(s),u=l}else s=g,c.push(u),c.push(s)}else u=g}return n&&c.push(c.shift()),c}(l,0,o,n),f=l.length,p=[],s=0;s<f-1;s+=1)r=c[2*s],i=c[2*s+1],a=l[s+1],p.push(["C",r[0],r[1],i[0],i[1],a[0],a[1]]);return o&&(r=c[f],i=c[f+1],a=(0,i5.CR)(l,1)[0],p.push(["C",r[0],r[1],i[0],i[1],a[0],a[1]])),p}(n,!1);return e?o.unshift((0,i5.ev)(["M"],(0,i5.CR)(t[r-1]),!1)):o.unshift((0,i5.ev)(["M"],(0,i5.CR)(t[0]),!1)),o}function OF(t,e,n){var r=OT(t);return r.push(["L",e,n],["L",0,n],["Z"]),r}var OB=n(20203),OD=function(t,e){if((0,rm.Z)(t)){for(var n,r=1/0,i=0;i<t.length;i++){var a=t[i],o=(0,am.Z)(e)?e(a):a[e];o<r&&(n=a,r=o)}return n}},Oz=n(7086),O$=function(t,e){if((0,rm.Z)(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var a=t[i],o=(0,am.Z)(e)?e(a):a[e];o>r&&(n=a,r=o)}return n}};function OW(t){return 0===t.length?[0,0]:[(0,OB.Z)(OD(t,function(t){return(0,OB.Z)(t)||0})),(0,Oz.Z)(O$(t,function(t){return(0,Oz.Z)(t)||0}))]}function OZ(t){for(var e=OT(t),n=e[0].length,r=(0,i5.CR)([Array(n).fill(0),Array(n).fill(0)],2),i=r[0],a=r[1],o=0;o<e.length;o+=1)for(var l=e[o],s=0;s<n;s+=1)l[s]>=0?(l[s]+=i[s],i[s]=l[s]):(l[s]+=a[s],a[s]=l[s]);return e}var OH=function(t){function e(e){return t.call(this,e,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"rawData",{get:function(){var t=this.attributes.data;if(!t||(null==t?void 0:t.length)===0)return[[]];var e=OT(t);return(0,tR.Z)(e[0])?[e]:e}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?OZ(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var t=this.scales.y,e=(0,i5.CR)(t.getOptions().domain||[0,0],2),n=e[0],r=e[1];return r<0?t.map(r):t.map(n<0?0:n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var t=this.attributes;return{width:t.width,height:t.height}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var t=this,e=this.attributes,n=e.type,r=e.isStack,i=e.smooth;if("line"!==n)throw Error("linesStyle can only be used in line type");var a=aP(this.attributes,"area"),o=aP(this.attributes,"line"),l=this.containerShape.width,s=this.data;if(0===s[0].length)return{lines:[],areas:[]};var u=this.scales,c=(h=(p={type:"line",x:u.x,y:u.y}).x,y=p.y,m=(g=(0,i5.CR)(y.getOptions().range||[0,0],2))[0],(v=g[1])>m&&(v=(d=(0,i5.CR)([m,v],2))[0],m=d[1]),s.map(function(t){return t.map(function(t,e){return[h.map(e),(0,tT.Z)(y.map(t),v,m)]})})),f=[];if(a){var p,d,h,y,g,m,v,b=this.baseline;f=r?i?function(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var a=t[i],o=OI(a),l=void 0;if(0===i)l=OF(o,e,n);else{var s=OI(t[i-1],!0),u=a[0];s[0][0]="L",l=(0,i5.ev)((0,i5.ev)((0,i5.ev)([],(0,i5.CR)(o),!1),(0,i5.CR)(s),!1),[(0,i5.ev)(["M"],(0,i5.CR)(u),!1),["Z"]],!1)}r.push(l)}return r}(c,l,b):function(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var a=ON(t[i]),o=void 0;if(0===i)o=OF(a,e,n);else{var l=ON(t[i-1],!0);l[0][0]="L",o=(0,i5.ev)((0,i5.ev)((0,i5.ev)([],(0,i5.CR)(a),!1),(0,i5.CR)(l),!1),[["Z"]],!1)}r.push(o)}return r}(c,l,b):c.map(function(t){return OF(i?OI(t):ON(t),l,b)})}return{lines:c.map(function(e,n){return(0,i5.pi)({stroke:t.getColor(n),d:i?OI(e):ON(e)},o)}),areas:f.map(function(e,n){return(0,i5.pi)({d:e,fill:t.getColor(n)},a)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var t=this,e=aP(this.attributes,"column"),n=this.attributes,r=n.isStack,i=n.type,a=n.scale;if("column"!==i)throw Error("columnsStyle can only be used in column type");var o=this.containerShape.height,l=this.rawData;if(!l)return{columns:[]};r&&(l=OZ(l));var s=this.createScales(l),u=s.x,c=s.y,f=(0,i5.CR)(OW(l),2),p=f[0],d=new lL({domain:[0,f[1]-(p>0?0:p)],range:[0,o*a]}),h=u.getBandWidth(),y=this.rawData;return{columns:l.map(function(n,i){return n.map(function(n,a){var o=h/l.length;return(0,i5.pi)((0,i5.pi)({fill:t.getColor(i)},e),r?{x:u.map(a),y:c.map(n),width:h,height:d.map(y[i][a])}:{x:u.map(a)+o*i,y:n>=0?c.map(n):c.map(0),width:o,height:d.map(Math.abs(n))})})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(t,e){(n=".container",r="rect",e.querySelector(n)?ap(e).select(n):ap(e).append(r)).attr("className","container").node();var n,r,i=t.type,a=t.x,o=t.y,l="spark".concat(i),s=(0,i5.pi)({x:a,y:o},"line"===i?this.linesStyle:this.columnsStyle);ap(e).selectAll(".spark").data([i]).join(function(t){return t.append(function(t){return"line"===t?new OL({className:l,style:s}):new OR({className:l,style:s})}).attr("className","spark ".concat(l))},function(t){return t.update(s)},function(t){return t.remove()})},e.prototype.getColor=function(t){var e=this.attributes.color;return(0,rm.Z)(e)?e[t%e.length]:(0,am.Z)(e)?e.call(null,t):e},e.prototype.createScales=function(t){var e,n,r=this.attributes,i=r.type,a=r.scale,o=r.range,l=void 0===o?[]:o,s=r.spacing,u=this.containerShape,c=u.width,f=u.height,p=(0,i5.CR)(OW(t),2),d=p[0],h=p[1],y=new lL({domain:[null!==(e=l[0])&&void 0!==e?e:d,null!==(n=l[1])&&void 0!==n?n:h],range:[f,f*(1-a)]});return"line"===i?{type:i,x:new lL({domain:[0,t[0].length-1],range:[0,c]}),y:y}:{type:i,x:new OC({domain:t[0].map(function(t,e){return e}),range:[0,c],paddingInner:s,paddingOuter:s/2,align:.5}),y:y}},e.tag="sparkline",e}(al),Oq=function(t){function e(e){var n=t.call(this,e,(0,i5.pi)((0,i5.pi)((0,i5.pi)({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(t){return t.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},aC(lZ,"handle")),aC(l$,"handleIcon")),aC(lW,"handleLabel")))||this;return n.range=[0,1],n.onDragStart=function(t){return function(e){e.stopPropagation(),n.target=t,n.prevPos=n.getOrientVal(lF(e));var r=n.availableSpace,i=r.x,a=r.y,o=n.getBBox(),l=o.x,s=o.y;n.selectionStartPos=n.getRatio(n.prevPos-n.getOrientVal([i,a])-n.getOrientVal([+l,+s])),n.selectionWidth=0,document.addEventListener("pointermove",n.onDragging),document.addEventListener("pointerup",n.onDragEnd)}},n.onDragging=function(t){var e=n.attributes,r=e.slidable,i=e.brushable,a=e.type;t.stopPropagation();var o=n.getOrientVal(lF(t)),l=o-n.prevPos;if(l){var s=n.getRatio(l);switch(n.target){case"start":r&&n.setValuesOffset(s);break;case"end":r&&n.setValuesOffset(0,s);break;case"selection":r&&n.setValuesOffset(s,s);break;case"track":if(!i)return;n.selectionWidth+=s,"range"===a?n.innerSetValues([n.selectionStartPos,n.selectionStartPos+n.selectionWidth].sort(),!0):n.innerSetValues([0,n.selectionStartPos+n.selectionWidth],!0)}n.prevPos=o}},n.onDragEnd=function(){document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointerup",n.onDragEnd),n.target="",n.updateHandlesPosition(!1)},n.onValueChange=function(t){var e=n.attributes,r=e.onChange,i=e.type,a="range"===i?t:t[1],o="range"===i?n.getValues():n.getValues()[1],l=new tk.Aw("valuechange",{detail:{oldValue:a,value:o}});n.dispatchEvent(l),null==r||r(o)},n.selectionStartPos=0,n.selectionWidth=0,n.prevPos=0,n.target="",n}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(t){this.attributes.values=this.clampValues(t)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){if("horizontal"!==this.attributes.orientation)return null;var t=aP(this.attributes,"sparkline");return(0,i5.pi)((0,i5.pi)({zIndex:0},this.availableSpace),t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var t=this.attributes,e=t.trackLength,n=t.trackSize,r=(0,i5.CR)(this.getOrientVal([[e,n],[n,e]]),2);return{width:r[0],height:r[1]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes,e=(t.x,t.y,t.padding),n=(0,i5.CR)(or(e),4),r=n[0],i=n[1],a=n[2],o=n[3],l=this.shape;return{x:o,y:r,width:l.width-(o+i),height:l.height-(r+a)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1),this.attributes.values=t;var n=!1!==e&&this.attributes.animate;this.updateSelectionArea(n),this.updateHandlesPosition(n)},e.prototype.updateSelectionArea=function(t){var e=this.calcSelectionArea();this.foregroundGroup.selectAll(lH.selection.class).each(function(n,r){ae(this,e[r],t)})},e.prototype.updateHandlesPosition=function(t){this.attributes.showHandle&&(this.startHandle&&ae(this.startHandle,this.getHandleStyle("start"),t),this.endHandle&&ae(this.endHandle,this.getHandleStyle("end"),t))},e.prototype.innerSetValues=function(t,e){void 0===t&&(t=[0,0]),void 0===e&&(e=!1);var n=this.values,r=this.clampValues(t);this.attributes.values=r,this.setValues(r),e&&this.onValueChange(n)},e.prototype.renderTrack=function(t){var e=this.attributes,n=e.x,r=e.y,i=aP(this.attributes,"track");this.trackShape=ap(t).maybeAppendByClassName(lH.track,"rect").styles((0,i5.pi)((0,i5.pi)({x:n,y:r},this.shape),i))},e.prototype.renderBrushArea=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.brushable;this.brushArea=ap(t).maybeAppendByClassName(lH.brushArea,"rect").styles((0,i5.pi)({x:n,y:r,fill:"transparent",cursor:i?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(t){var e=this,n=this.attributes,r=n.x,i=n.y;as("horizontal"===n.orientation,ap(t).maybeAppendByClassName(lH.sparklineGroup,"g"),function(t){var n=(0,i5.pi)((0,i5.pi)({},e.sparklineStyle),{x:r,y:i});t.maybeAppendByClassName(lH.sparkline,function(){return new OH({style:n})}).update(n)})},e.prototype.renderHandles=function(){var t,e=this,n=this.attributes,r=n.showHandle,i=n.type,a=this;null===(t=this.foregroundGroup)||void 0===t||t.selectAll(lH.handle.class).data((r?"range"===i?["start","end"]:["end"]:[]).map(function(t){return{type:t}}),function(t){return t.type}).join(function(t){return t.append(function(t){var n=t.type;return new lY({style:e.getHandleStyle(n)})}).each(function(t){var e=t.type;this.attr("class","".concat(lH.handle.name," ").concat(e,"-handle")),a["".concat(e,"Handle")]=this,this.addEventListener("pointerdown",a.onDragStart(e))})},function(t){return t.each(function(t){var e=t.type;this.update(a.getHandleStyle(e))})},function(t){return t.each(function(t){var e=t.type;a["".concat(e,"Handle")]=void 0}).remove()})},e.prototype.renderSelection=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.type,a=e.selectionType;this.foregroundGroup=ap(t).maybeAppendByClassName(lH.foreground,"g");var o=aP(this.attributes,"selection"),l=function(t){return t.style("visibility",function(t){return t.show?"visible":"hidden"}).style("cursor",function(t){return"select"===a?"grab":"invert"===a?"crosshair":"default"}).styles((0,i5.pi)((0,i5.pi)({},o),{transform:"translate(".concat(n,", ").concat(r,")")}))},s=this;this.foregroundGroup.selectAll(lH.selection.class).data("value"===i?[]:this.calcSelectionArea().map(function(t,e){return{style:(0,i5.pi)({},t),index:e,show:"select"===a?1===e:1!==e}}),function(t){return t.index}).join(function(t){return t.append("rect").attr("className",lH.selection.name).call(l).each(function(t,e){var n=this;1===e?(s.selectionShape=ap(this),this.on("pointerdown",function(t){n.attr("cursor","grabbing"),s.onDragStart("selection")(t)}),s.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),s.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),s.dispatchCustomEvent(this,"click","
1selectionClick"),this.addEventListener("pointerdown",function(){n.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){n.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){n.attr("cursor","pointer")})):this.on("pointerdown",s.onDragStart("track"))})},function(t){return t.call(l)},function(t){return t.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(t,e){this.renderTrack(e),this.renderSparkline(e),this.renderBrushArea(e),this.renderSelection(e)},e.prototype.clampValues=function(t,e){void 0===e&&(e=4);var n,r=(0,i5.CR)(this.range,2),i=r[0],a=r[1],o=(0,i5.CR)(this.getValues().map(function(t){return lN(t,e)}),2),l=o[0],s=o[1],u=Array.isArray(t)?t:[l,null!=t?t:s],c=(0,i5.CR)((u||[l,s]).map(function(t){return lN(t,e)}),2),f=c[0],p=c[1];if("value"===this.attributes.type)return[0,(0,tT.Z)(p,i,a)];f>p&&(f=(n=(0,i5.CR)([p,f],2))[0],p=n[1]);var d=p-f;return d>a-i?[i,a]:f<i?l===i&&s===p?[i,p]:[i,d+i]:p>a?s===a&&l===f?[f,a]:[a-d,a]:[f,p]},e.prototype.calcSelectionArea=function(t){var e=(0,i5.CR)(this.clampValues(t),2),n=e[0],r=e[1],i=this.availableSpace,a=i.x,o=i.y,l=i.width,s=i.height;return this.getOrientVal([[{y:o,height:s,x:a,width:n*l},{y:o,height:s,x:n*l+a,width:(r-n)*l},{y:o,height:s,x:r*l,width:(1-r)*l}],[{x:a,width:l,y:o,height:n*s},{x:a,width:l,y:n*s+o,height:(r-n)*s},{x:a,width:l,y:r*s,height:(1-r)*s}]])},e.prototype.calcHandlePosition=function(t){var e=this.attributes.handleIconOffset,n=this.availableSpace,r=n.x,i=n.y,a=n.width,o=n.height,l=(0,i5.CR)(this.clampValues(),2),s=l[0],u=l[1],c=("start"===t?s:u)*this.getOrientVal([a,o])+("start"===t?-e:e);return{x:r+this.getOrientVal([c,a/2]),y:i+this.getOrientVal([o/2,c])}},e.prototype.inferTextStyle=function(t){return"horizontal"===this.attributes.orientation?{}:"start"===t?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:"end"===t?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(t){var e,n=this.attributes,r=n.type,i=n.orientation,a=n.formatter,o=n.autoFitLabel,l=aP(this.attributes,"handle"),s=aP(l,"label"),u=l.spacing,c=this.getHandleSize(),f=this.clampValues(),p=a("start"===t?f[0]:f[1]),d=new ac({style:(0,i5.pi)((0,i5.pi)((0,i5.pi)({},s),this.inferTextStyle(t)),{text:p})}),h=d.getBBox(),y=h.width,g=h.height;if(d.destroy(),!o){if("value"===r)return{text:p,x:0,y:-g-u};var m=u+c+("horizontal"===i?y/2:0);return(e={text:p})["horizontal"===i?"x":"y"]="start"===t?-m:m,e}var v=0,b=0,x=this.availableSpace,O=x.width,w=x.height,M=this.calcSelectionArea()[1],_=M.x,k=M.y,j=M.width,A=M.height,E=u+c;if("horizontal"===i){var S=E+y/2;v="start"===t?_-E-y>0?-S:S:O-_-j-E>y?S:-S}else{var P=g+E;b="start"===t?k-c>g?-P:E:w-(k+A)-c>g?P:-E}return{x:v,y:b,text:p}},e.prototype.getHandleLabelStyle=function(t){var e=aP(this.attributes,"handleLabel");return(0,i5.pi)((0,i5.pi)((0,i5.pi)({},e),this.calcHandleText(t)),this.inferTextStyle(t))},e.prototype.getHandleIconStyle=function(){var t=this.attributes.handleIconShape,e=aP(this.attributes,"handleIcon"),n=this.getOrientVal(["ew-resize","ns-resize"]),r=this.getHandleSize();return(0,i5.pi)({cursor:n,shape:t,size:r},e)},e.prototype.getHandleStyle=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.showLabel,a=e.showLabelOnInteraction,o=e.orientation,l=this.calcHandlePosition(t),s=l.x,u=l.y,c=this.calcHandleText(t),f=i;return!i&&a&&(f=!!this.target),(0,i5.pi)((0,i5.pi)((0,i5.pi)({},aC(this.getHandleIconStyle(),"icon")),aC((0,i5.pi)((0,i5.pi)({},this.getHandleLabelStyle(t)),c),"label")),{transform:"translate(".concat(s+n,", ").concat(u+r,")"),orientation:o,showLabel:f,type:t,zIndex:3})},e.prototype.getHandleSize=function(){var t=this.attributes,e=t.handleIconSize,n=t.width,r=t.height;return e||Math.floor((this.getOrientVal([+r,+n])+4)/2.4)},e.prototype.getOrientVal=function(t){var e=(0,i5.CR)(t,2),n=e[0],r=e[1];return"horizontal"===this.attributes.orientation?n:r},e.prototype.setValuesOffset=function(t,e){void 0===e&&(e=0);var n=this.attributes.type,r=(0,i5.CR)(this.getValues(),2),i=[r[0]+("range"===n?t:0),r[1]+e].sort();this.innerSetValues(i,!0)},e.prototype.getRatio=function(t){var e=this.availableSpace,n=e.width,r=e.height;return t/this.getOrientVal([n,r])},e.prototype.dispatchCustomEvent=function(t,e,n){var r=this;t.on(e,function(t){t.stopPropagation(),r.dispatchEvent(new tk.Aw(n,{detail:t}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var t=this.brushArea;this.dispatchCustomEvent(t,"click","trackClick"),this.dispatchCustomEvent(t,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(t,"pointerleave","trackMouseleave"),t.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(t){if(this.attributes.scrollable){var e=t.deltaX,n=t.deltaY,r=this.getRatio(n||e);this.setValuesOffset(r,r)}},e.tag="slider",e}(al),OG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let OY=t=>{let{orientation:e,labelFormatter:n,size:r,style:i={},position:a}=t,o=OG(t,["orientation","labelFormatter","size","style","position"]);return r=>{var l;let{scales:[s],value:u,theme:c,coordinate:f}=r,{bbox:p}=u,{width:d,height:h}=p,{slider:y={}}
1=c,g=(null===(l=s.getFormatter)||void 0===l?void 0:l.call(s))||(t=>t+""),m="string"==typeof n?v7(n):n,v="horizontal"===e,b=iV(f)&&v,{trackSize:x=y.trackSize}=i,[O,w]=function(t,e,n){let{x:r,y:i,width:a,height:o}=t;return"left"===e?[r+a-n,i]:"right"===e||"bottom"===e?[r,i]:"top"===e?[r,i+o-n]:void 0}(p,a,x);return new Oq({className:"slider",style:Object.assign({},y,Object.assign(Object.assign({x:O,y:w,trackLength:v?d:h,orientation:e,formatter:t=>(m||g)(u$(s,b?1-t:t,!0)),sparklineData:function(t,e){let{markState:n}=e;return(0,rm.Z)(t.sparklineData)?t.sparklineData:function(t,e){let[n]=Array.from(t.entries()).filter(([t])=>"line"===t.type||"area"===t.type||"interval"===t.type).filter(([t])=>t.slider).map(([t])=>{let{encode:n,slider:r}=t;if(null==r?void 0:r.x)return Object.fromEntries(e.map(t=>{let e=n[t];return[t,e?e.value:void 0]}))});return(null==n?void 0:n.series)?Object.values(n.series.reduce((t,e,r)=>(t[e]=t[e]||[],t[e].push(n.y[r]),t),{})):null==n?void 0:n.y}(n,["y","series"])}(t,r)},i),o))})}};OY.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};let OV=t=>OY(Object.assign(Object.assign({},t),{orientation:"horizontal"}));OV.props=Object.assign(Object.assign({},OY.props),{defaultPosition:"bottom"});let OU=t=>OY(Object.assign(Object.assign({},t),{orientation:"vertical"}));OU.props=Object.assign(Object.assign({},OY.props),{defaultPosition:"left"});var OX=function(t){function e(e){var n=t.call(this,e,{x:0,y:0,isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return n.range=[0,1],n.onValueChange=function(t){var e=n.attributes.value;if(t!==e){var r={detail:{oldValue:t,value:e}};n.dispatchEvent(new tk.Aw("scroll",r)),n.dispatchEvent(new tk.Aw("valuechange",r))}},n.onTrackClick=function(t){if(n.attributes.slidable){var e=(0,i5.CR)(n.getLocalPosition(),2),r=e[0],i=e[1],a=(0,i5.CR)(n.padding,4),o=a[0],l=a[3],s=n.getOrientVal([r+l,i+o]),u=(n.getOrientVal(lI(t))-s)/n.trackLength;n.setValue(u,!0)}},n.onThumbMouseenter=function(t){n.dispatchEvent(new tk.Aw("thumbMouseenter",{detail:t.detail}))},n.onTrackMouseenter=function(t){n.dispatchEvent(new tk.Aw("trackMouseenter",{detail:t.detail}))},n.onThumbMouseleave=function(t){n.dispatchEvent(new tk.Aw("thumbMouseleave",{detail:t.detail}))},n.onTrackMouseleave=function(t){n.dispatchEvent(new tk.Aw("trackMouseleave",{detail:t.detail}))},n}return(0,i5.ZT)(e,t),Object.defineProperty(e.prototype,"padding",{get:function(){return or(this.attributes.padding)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var t=this.attributes.value,e=(0,i5.CR)(this.range,2),n=e[0],r=e[1];return(0,tT.Z)(t,n,r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackLength",{get:function(){var t=this.attributes,e=t.viewportLength,n=t.trackLength;return void 0===n?e:n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var t=this.attributes.trackSize,e=this.trackLength,n=(0,i5.CR)(this.padding,4),r=n[0],i=n[1],a=n[2],o=n[3],l=(0,i5.CR)(this.getOrientVal([[e,t],[t,e]]),2);return{x:o,y:r,width:+l[0]-(o+i),height:+l[1]-(r+a)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackRadius",{get:function(){var t=this.attributes,e=t.isRound,n=t.trackSize;return e?n/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thumbRadius",{get:function(){var t=this.attributes,e=t.isRound,n=t.thumbRadius;if(!e)return 0;var r=this.availableSpace,i=r.width,a=r.height;return n||this.getOrientVal([a,i])/2},enumerable:!1,configurable:!0}),e.prototype.getValues=function(t){void 0===t&&(t=this.value);var e=this.attributes,n=e.viewportLength/e.contentLength,r=(0,i5.CR)(this.range,2),i=r[0],a=t*(r[1]-i-n);return[a,a+n]},e.prototype.getValue=function(){return this.value},e.prototype.renderSlider=function(t){var e=this.attributes,n=e.x,r=e.y,i=e.orientation,a=e.trackSize,o=e.padding,l=e.slidable,s=aP(this.attributes,"track"),u=aP(this.attributes,"thumb"),c=(0,i5.pi)((0,i5.pi)({x:n,y:r,brushable:!1,orientation:i,padding:o,selectionRadius:this.thumbRadius,showHandle:!1,slidable:l,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:a,values:this.getValues()},aC(s,"track")),aC(u,"selection"));this.slider=ap(t).maybeAppendByClassName("scrollbar",function(){return new Oq({style:c}
1)}).update(c).node()},e.prototype.render=function(t,e){this.renderSlider(e)},e.prototype.setValue=function(t,e){void 0===e&&(e=!1);var n=this.attributes.value,r=(0,i5.CR)(this.range,2),i=r[0],a=r[1];this.slider.setValues(this.getValues((0,tT.Z)(t,i,a)),e),this.onValueChange(n)},e.prototype.bindEvents=function(){var t=this;this.slider.addEventListener("trackClick",function(e){e.stopPropagation(),t.onTrackClick(e.detail)}),this.onHover()},e.prototype.getOrientVal=function(t){return"horizontal"===this.attributes.orientation?t[0]:t[1]},e.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},e.tag="scrollbar",e}(al),OK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let OQ=t=>{let{orientation:e,labelFormatter:n,style:r}=t,i=OK(t,["orientation","labelFormatter","style"]);return({scales:[t],value:n,theme:a})=>{let{bbox:o}=n,{x:l,y:s,width:u,height:c}=o,{scrollbar:f={}}=a,{ratio:p,range:d}=t.getOptions(),h="horizontal"===e?u:c,y=h/p,[g,m]=d;return new OX({className:"g2-scrollbar",style:Object.assign({},f,Object.assign(Object.assign(Object.assign(Object.assign({},r),{x:l,y:s,trackLength:h,value:m>g?0:1}),i),{orientation:e,contentLength:y,viewportLength:h}))})}};OQ.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};let OJ=t=>OQ(Object.assign(Object.assign({},t),{orientation:"horizontal"}));OJ.props=Object.assign(Object.assign({},OQ.props),{defaultPosition:"bottom"});let O0=t=>OQ(Object.assign(Object.assign({},t),{orientation:"vertical"}));O0.props=Object.assign(Object.assign({},OQ.props),{defaultPosition:"left"});let O1=(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let[a]=e,{transform:o="",fillOpacity:l=1,strokeOpacity:s=1,opacity:u=1}=a.style,[c,f]=iV(n)?["left bottom","scale(1, 0.0001)"]:["left top","scale(0.0001, 1)"],p=[{transform:`${o} ${f}`.trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${o} ${f}`.trimStart(),transformOrigin:c,fillOpacity:l,strokeOpacity:s,opacity:u,offset:.01},{transform:`${o} scale(1, 1)`.trimStart(),transformOrigin:c,fillOpacity:l,strokeOpacity:s,opacity:u}];return a.animate(p,Object.assign(Object.assign({},i),t))}},O2=(t,e)=>{let{coordinate:n}=e;return tk.ux.registerProperty({name:"scaleInYRadius",inherits:!1,initialValue:"",interpolable:!0,syntax:tk.h0.NUMBER}),(e,r,i)=>{let[a]=e;return iU(n)?(e=>{let{__data__:r,style:a}=e,{fillOpacity:o=1,strokeOpacity:l=1,opacity:s=1}=a,{points:u,y:c,y1:f}=r,{innerRadius:p,outerRadius:d}=s$(n,u,[c,f]);return e.animate([{scaleInYRadius:p+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{scaleInYRadius:p+1e-4,fillOpacity:o,strokeOpacity:l,opacity:s,offset:.01},{scaleInYRadius:d,fillOpacity:o,strokeOpacity:l,opacity:s}],Object.assign(Object.assign({},i),t))})(a):(e=>{let{style:r}=e,{transform:a="",fillOpacity:o=1,strokeOpacity:l=1,opacity:s=1}=r,[u,c]=iV(n)?["left top","scale(0.0001, 1)"]:["left bottom","scale(1, 0.0001)"],f=[{transform:`${a} ${c}`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${a} ${c}`.trimStart(),transformOrigin:u,fillOpacity:o,strokeOpacity:l,opacity:s,offset:.01},{transform:`${a} scale(1, 1)`.trimStart(),transformOrigin:u,fillOpacity:o,strokeOpacity:l,opacity:s}];return e.animate(f,Object.assign(Object.assign({},i),t))})(a)}},O5=(t,e)=>{tk.ux.registerProperty({name:"waveInArcAngle",inherits:!1,initialValue:"",interpolable:!0,syntax:tk.h0.NUMBER});let{coordinate:n}=e;return(r,i,a)=>{let[o]=r;if(!iU(n))return O1(t,e)(r,i,a);let{__data__:l,style:s}=o,{radius:u=0,inset:c=0,fillOpacity:f=1,strokeOpacity:p=1,opacity:d=1}=s,{points:h,y,y1:g}
1=l,m=u7().cornerRadius(u).padAngle(c*Math.PI/180),v=s$(n,h,[y,g]),{startAngle:b,endAngle:x}=v,O=o.animate([{waveInArcAngle:b+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{waveInArcAngle:b+1e-4,fillOpacity:f,strokeOpacity:p,opacity:d,offset:.01},{waveInArcAngle:x,fillOpacity:f,strokeOpacity:p,opacity:d}],Object.assign(Object.assign({},a),t));return O.onframe=function(){o.style.d=m(Object.assign(Object.assign({},v),{endAngle:Number(o.style.waveInArcAngle)}))},O.onfinish=function(){o.style.d=m(Object.assign(Object.assign({},v),{endAngle:x}))},O}};O5.props={};let O3=t=>(e,n,r)=>{let[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:l=1}=i.style;return i.animate([{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:a,strokeOpacity:o,opacity:l}],Object.assign(Object.assign({},r),t))};O3.props={};let O4=t=>(e,n,r)=>{let[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:l=1}=i.style;return i.animate([{fillOpacity:a,strokeOpacity:o,opacity:l},{fillOpacity:0,strokeOpacity:0,opacity:0}],Object.assign(Object.assign({},r),t))};O4.props={};let O6=t=>(e,n,r)=>{var i;let[a]=e,o=(null===(i=a.getTotalLength)||void 0===i?void 0:i.call(a))||0;return a.animate([{lineDash:[0,o]},{lineDash:[o,0]}],Object.assign(Object.assign({},r),t))};O6.props={};let O8={opacity:1,strokeOpacity:1,fillOpacity:1,lineWidth:0,x:0,y:0,cx:0,cy:0,r:0,rx:0,ry:0,width:0,height:0},O9={[tk.bn.CIRCLE]:["cx","cy","r"],[tk.bn.ELLIPSE]:["cx","cy","rx","ry"],[tk.bn.RECT]:["x","y","width","height"],[tk.bn.IMAGE]:["x","y","width","height"],[tk.bn.LINE]:["x1","y1","x2","y2"],[tk.bn.POLYLINE]:["points"],[tk.bn.POLYGON]:["points"]};function O7(t,e,n=!1){let r={};for(let i of e){let e=t.style[i];e?r[i]=e:n&&(r[i]=O8[i])}return r}let wt=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function we(t){let{min:e,max:n}=t.getLocalBounds(),[r,i]=e,[a,o]=n;return[r,i,a-r,o-i]}function wn(t,e){let[n,r,i,a]=we(t),o=Math.ceil(Math.sqrt(e/(a/i))),l=[],s=a/Math.ceil(e/o),u=0,c=e;for(;c>0;){let t=Math.min(c,o),e=i/t;for(let i=0;i<t;i++){let t=n+i*e,a=r+u*s;l.push(function(t){let[e,n,r,i]=t;return`
2    M ${e} ${n}
3    L ${e+r} ${n}
4    L ${e+r} ${n+i}
5    L ${e} ${n+i}
6    Z
7  `}([t,a,e,s]))}c-=t,u+=1}return l}function wr(t,e){t.__data__=e.__data__,t.className=e.className,t.markType=e.markType,e.parentNode.replaceChild(t,e)}function wi(t,e){return t.indexOf(e)===t.lastIndexOf(e)}function wa(t){let e=(0,tk.YR)(t);if(e&&!(!wi(e,"m")||!wi(e,"M")))return e}function wo(t){let{nodeName:e}=t;if("path"===e){let e=rl(t,"attributes");return e.markerEnd||e.markerStart}return!1}function wl(t,e,n,r){let{nodeName:i}=e,{nodeName:a}=n,o=wa(e),l=wa(n),{opacity:s=1,strokeOpacity:u=1,fillOpacity:c=1}=e.style,{opacity:f=1,strokeOpacity:p=1,fillOpacity:d=1}=n.style,h=void 0===o||void 0===l,y=wo(e)||wo(n);if(i===a&&"path"!==i||h||y)return function(t,e,n){let{transform:r}=t.style,{transform:i}=e.style;wr(e,t);let a=wt;if(t.nodeName===tk.bn.GROUP){let[n,i,a,o]=we(t),[l,s,u,c]=we(e);r=`translate(${n-l}, ${i-s}) scale(${a/u}, ${o/c})`}else a=a.concat(O9[t.nodeName]||[]);let o=[Object.assign({transform:null!=r?r:"none"},O7(t,a,!0)),Object.assign({transform:null!=i?i:"none"},O7(e,a,!0))];return e.animate(o,n)}(e,n,r);let g=function(t,e){let{nodeName:n}=t;if("path"===n)return t;let r=new tk.y$({style:Object.assign(Object.assign({},O7(t,wt)),{d:e})});return wr(r,t),r}(t,o),m=Object.assign(Object.assign({},O7(e,wt)),{opacity:s,strokeOpacity:u,fillOpacity:c}),v=Object.assign(Object.assign({},O7(n,wt)),{opacity:f,strokeOpacity:p,fillOpacity:d}),b=[m,v];if(o!==l){b[0].d=o,b[1].d=l;let t=g.animate(b,r);return t.onfinish=()=>{rV(g,n),g.style.d=l,g.style.transform="none"},g.style.transform="none",t}return iN(m,v)?null:g.animate(b,r)}let ws=t=>(e,n,r)=>{let i=function(t="pack"){return"function"==typeof t?t:wn}(t.split),a=Object.assign(Object.assign({},r),t),{length:o}=e,{length:l}=n;if(1===o&&1===l||o>1&&l>1){let[t]=e,[r]=n;return wl(t,t,r,a)}if(1===o&&l>1){let[t]=e;return function(t,e,n,r){t.style.visibility="hidden";let i=r(t,e.length);return e.map((e,r)=>wl(e,new tk.y$({style:Object.assign({d:i[r]},O7(t,wt))}),e,n))}(t,n,a,i)}if(o>1&&1===l){let[t]=n;return function(t,e,n,r){let i=r(e,t.length),{fillOpacity:a=1,strokeOpacity:o=1,opacity:l=1}=e.style,s=e.animate([{fillOpacity:0,strokeOpacity:0,opacity:0}
7,{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:a,strokeOpacity:o,opacity:l}],n);return[...t.map((t,r)=>wl(t,t,new tk.y$({style:{d:i[r],fill:e.style.fill}}),n)),s]}(e,t,a,i)}return null};ws.props={};let wu=(t,e)=>(n,r,i)=>{let[a]=n,{min:[o,l],halfExtents:s}=a.getLocalBounds(),u=2*s[0],c=2*s[1],f=new tk.y$({style:{d:`M${o},${l}L${o+u},${l}L${o+u},${l+c}L${o},${l+c}Z`}});return a.appendChild(f),a.style.clipPath=f,O1(t,e)([f],r,i)};wu.props={};let wc=(t,e)=>(n,r,i)=>{let[a]=n,{min:[o,l],halfExtents:s}=a.getLocalBounds(),u=2*s[0],c=2*s[1],f=new tk.y$({style:{d:`M${o},${l}L${o+u},${l}L${o+u},${l+c}L${o},${l+c}Z`}});return a.appendChild(f),a.style.clipPath=f,O2(t,e)([f],r,i)};wc.props={};var wf=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function wp(t){var{delay:e,createGroup:n,createRegionGroup:r,background:i=!1,link:a=!1}=t,o=wf(t,["delay","createGroup","createRegionGroup","background","link"]);return(t,l,s)=>{let{container:u,view:c,options:f}=t,{scale:p,coordinate:d}=c;return function(t,{elements:e,datum:n,groupKey:r=t=>t,regionGroupKey:i=t=>t,link:a=!1,background:o=!1,delay:l=60,scale:s,coordinate:u,emitter:c,state:f={},region:p=!1,regionEleFilter:d=t=>cI.includes(t.markType)}){var h,y;let g;let m=null!==(h=e(t))&&void 0!==h?h:[],v=p?m.filter(d):m,b=new Set(v),x=p?i:r,O=rp(v,x),w=cF({elementsof:e,root:t,coordinate:u,scale:s}),M=cj(v,n),[_,k]=cA(Object.assign({elements:v,valueof:M,link:a,coordinate:u},rX(f.active,"link"))),[j,A,E]=cS(Object.assign({document:t.ownerDocument,scale:s,coordinate:u,background:o,valueof:M},rX(f.active,"background"))),{updateState:S,removeState:P,hasState:C}=cw(rO(f,{active:Object.assign({},(null===(y=f.active)||void 0===y?void 0:y.offset)&&{transform:(...t)=>{let e=f.active.offset(...t),[,n]=t;return cE(v[n],e,u)}})}),v)(M),T=t=>{let{nativeEvent:e=!0}=t,r=t.target;if(p&&(r=w(t)),!b.has(r))return;g&&clearTimeout(g);let i=x(r),a=O.get(i),o=new Set(a);for(let t of v)o.has(t)?C(t,"active")||S(t,"active"):(S(t,"inactive"),k(t)),t!==r&&A(t);j(r),_(a),e&&c.emit("element:highlight",{nativeEvent:e,data:{data:n(r),group:a.map(n)}})},R=()=>{g&&clearTimeout(g),g=setTimeout(()=>{L(),g=null},l)},L=(t=!0)=>{for(let t of v)P(t,"active","inactive"),A(t),k(t);t&&c.emit("element:unhighlight",{nativeEvent:t})},N=t=>{let e=t.target;if(p&&(e=w(t)),!e){l>0?R():L();return}(!o||E(e))&&(o||b.has(e))&&(l>0?R():L())},I=()=>{L()};t.addEventListener("pointerover",T),t.addEventListener("pointermove",T),t.addEventListener("pointerout",N),t.addEventListener("pointerleave",I);let F=t=>{let{nativeEvent:e}=t;e||L(!1)},B=t=>{let{nativeEvent:e}=t;if(e)return;let{data:r}=t.data,i=cC(v,r,n);i&&T({target:i,nativeEvent:!1})};return c.on("element:highlight",B),c.on("element:unhighlight",F),()=>{for(let e of(t.removeEventListener("pointerover",T),t.removeEventListener("pointermove",T),t.removeEventListener("pointerout",N),t.removeEventListener("pointerleave",I),c.off("element:highlight",B),c.off("element:unhighlight",F),v))A(e),k(e)}}(cp(u),Object.assign({elements:cu,datum:cv(c),groupKey:n?n(c):void 0,regionGroupKey:r?r(c):cm(c),coordinate:d,scale:p,state:ck(f,[["active",i?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:i,link:a,delay:e,emitter:s},o))}}function wd(t){return wp(Object.assign(Object.assign({},t),{createGroup:cm}))}function wh(t){return wp(Object.assign(Object.assign({},t),{createGroup:cg}))}wp.props={reapplyWhenUpdate:!0},wd.props={reapplyWhenUpdate:!0},wh.props={reapplyWhenUpdate:!0};var wy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function wg(t){var{delay:e,createGroup:n,scale:r,shadow:i,shadowColor:a,shadowBlur:o,shadowOffsetX:l,shadowOffsetY:s,zIndex:u}=t,c=wy(t,["delay","createGroup","scale","shadow","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","zIndex"]);return(t,f,p)=>{let{container:d,view:h,options:y}=t,g=cp(d),m=cv(h),{coordinate:v}=h;return function(t,{elements:e,datum:n,groupKey:r=t=>t,scaleFactor:i=1.04,shadow:a=!0,shadowColor:o="rgba(0, 0, 0, 0.4)",shadowBlur:l=10,shadowOffsetX:s=0,shadowOffsetY:u=2,zIndex:c=10,delay:f=60,emitter:p,state:d={},coordinate:h}){let y;let g=()=>{var n;return null!==(n=e(t))&&void 0!==n?n:[]},m=g(),v=cj(m,n),{updateState:b,removeState:x,hasState:O}=cw(rO(d,{active:{}}),m)(v),w=new Map,M=t=>{if(w.has(t))return;let e=t.style.transform||"",n=t.style.transformOrigin||"",r="none"===e?"":e;if(w.set(t,{transform:e,transformOrigin:n,zIndex:t.style.zIndex||
70,shadowColor:t.style.shadowColor||"",shadowBlur:t.style.shadowBlur||0,shadowOffsetX:t.style.shadowOffsetX||0,shadowOffsetY:t.style.shadowOffsetY||0}),h&&iU(h)&&!r){let e=h.getCenter();t.style.transformOrigin=`${e[0]}px ${e[1]}px`}let f=`scale(${i})`;t.style.transform=r?`${r} ${f}`:f,t.style.zIndex=c,a&&(t.style.shadowColor=o,t.style.shadowBlur=l,t.style.shadowOffsetX=s,t.style.shadowOffsetY=u)},_=t=>{let e=w.get(t);e&&(t.style.transform=e.transform,t.style.transformOrigin=e.transformOrigin,t.style.zIndex=e.zIndex,t.style.shadowColor=e.shadowColor,t.style.shadowBlur=e.shadowBlur,t.style.shadowOffsetX=e.shadowOffsetX,t.style.shadowOffsetY=e.shadowOffsetY,w.delete(t))},k=t=>{let{nativeEvent:e=!0}=t,i=t.target,a=g();if(!new Set(a).has(i))return;y&&clearTimeout(y);let o=rp(a,r),l=r(i),s=o.get(l);if(!s)return;let u=new Set(s);for(let t of a)u.has(t)||(x(t,"active"),_(t));for(let t of s)O(t,"active")||b(t,"active"),M(t);e&&p.emit("element:hoverscale",{nativeEvent:e,data:{data:n(i),group:s.map(n)}})},j=()=>{y&&clearTimeout(y),y=setTimeout(()=>{A(),y=null},f)},A=(t=!0)=>{for(let t of g())x(t,"active"),_(t);t&&p.emit("element:unhoverscale",{nativeEvent:t})},E=()=>{f>0?j():A()},S=()=>{A()};t.addEventListener("pointerover",k),t.addEventListener("pointermove",k),t.addEventListener("pointerout",E),t.addEventListener("pointerleave",S);let P=t=>{let{nativeEvent:e}=t;e||A(!1)},C=t=>{let{nativeEvent:e}=t;if(e)return;let{data:r}=t.data,i=cC(g(),r,n);i&&k({target:i,nativeEvent:!1})};return p.on("element:hoverscale",C),p.on("element:unhoverscale",P),()=>{for(let e of(t.removeEventListener("pointerover",k),t.removeEventListener("pointermove",k),t.removeEventListener("pointerout",E),t.removeEventListener("pointerleave",S),p.off("element:hoverscale",C),p.off("element:unhoverscale",P),g()))_(e);w.clear()}}(g,Object.assign({elements:cu,datum:m,groupKey:n?t=>n(h)(m(t)):void 0,state:ck(y,["active"]),scaleFactor:r,shadow:i,shadowColor:a,shadowBlur:o,shadowOffsetX:l,shadowOffsetY:s,zIndex:u,delay:e,emitter:p,coordinate:v},c))}}wg.props={reapplyWhenUpdate:!0};var wm=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function wv(t){var{createGroup:e,createRegionGroup:n,background:r=!1,link:i=!1}=t,a=wm(t,["createGroup","createRegionGroup","background","link"]);return(t,o,l)=>{let{container:s,view:u,options:c}=t,{coordinate:f,scale:p}=u;return function(t,{elements:e,datum:n,groupKey:r=t=>t,regionGroupKey:i=t=>t,link:a=!1,single:o=!1,multipleSelectHotkey:l,coordinate:s,background:u=!1,scale:c,emitter:f,state:p={},region:d=!1,regionEleFilter:h=t=>cI.includes(t.markType)}){var y;let g=e(t),m=new Set(g),v=cF({elementsof:e,root:t,coordinate:s,scale:c}),b=rp(g,r),x=rp(g,i),O=cj(g,n),[w,M]=cA(Object.assign({link:a,elements:g,valueof:O,coordinate:s},rX(p.selected,"link"))),[_,k]=cS(Object.assign({document:t.ownerDocument,background:u,coordinate:s,scale:c,valueof:O},rX(p.selected,"background"))),{updateState:j,removeState:A,hasState:E}=cw(rO(p,{selected:Object.assign({},(null===(y=p.selected)||void 0===y?void 0:y.offset)&&{transform:(...t)=>{let e=p.selected.offset(...t),[,n]=t;return cE(g[n],e,s)}})}),g)(O),S=!o,P=null,C=(t=!0)=>{for(let t of g)A(t,"selected","unselected"),M(t),k(t);t&&f.emit("element:unselect",{nativeEvent:!0})},T=({event:t,element:e,nativeEvent:i=!0,filter:a=t=>!0,groupBy:o=r,groupMap:l=b})=>{let s=g.filter(a);if(E(e,"selected"))C();else{let r=o(e),a=l.get(r),u=new Set(a);for(let t of s)u.has(t)?j(t,"selected"):(j(t,"unselected"),M(t)),t!==e&&k(t);if(w(a),_(e),!i)return;f.emit("element:select",Object.assign(Object.assign({},t),{nativeEvent:i,data:{data:[n(e),...a.map(n)]}}))}},R=({event:t,element:e,nativeEvent:i=!0,filter:o=t=>!0,groupBy:l=r,groupMap:s=b})=>{let u=l(e),c=s.get(u),p=new Set(c),d=g.filter(o);if(E(e,"selected")){if(!g.some(t=>!p.has(t)&&E(t,"selected")))return C();for(let t of c)j(t,"unselected"),M(t),k(t)}else{let t=c.some(t=>E(t,"selected"));
7for(let t of d)p.has(t)?j(t,"selected"):E(t,"selected")||j(t,"unselected");!t&&a&&w(c),_(e)}i&&f.emit("element:select",Object.assign(Object.assign({},t),{nativeEvent:i,data:{data:g.filter(t=>E(t,"selected")).map(n)}}))},L=t=>{if(m.has(t))return!0;for(let e of m)if(cr(e,e=>e===t))return!0;return!1},N=t=>{if(m.has(t))return t;for(let e of m){let n=null;if(cr(e,r=>{r===t&&(n=e)}),n)return n}return t},I=t=>{let{target:e,nativeEvent:n=!0}=t,a=S?R:T,o=e,l=L(e);return!d||l?l?a({event:t,element:N(o),nativeEvent:n,groupBy:r}):C():(o=v(t),m.has(o))?a({event:t,element:o,nativeEvent:n,filter:h,groupBy:i,groupMap:x}):C()},F=Array.isArray(l)?l:[l],B=t=>{F.includes(t.code)&&!P&&(P=t.code,S=!0)},D=t=>{t.code===P&&(P=null,S=!1)};t.addEventListener("click",I),l&&(S=!1,document.addEventListener("keydown",B),document.addEventListener("keyup",D));let z=t=>{let{nativeEvent:e,data:r}=t;if(!e)for(let t of S?r.data:r.data.slice(0,1))I({target:cC(g,t,n),nativeEvent:!1})},$=()=>{C(!1)};return f.on("element:select",z),f.on("element:unselect",$),()=>{for(let t of g)M(t);t.removeEventListener("click",I),l&&(document.removeEventListener("keydown",B),document.removeEventListener("keyup",D)),f.off("element:select",z),f.off("element:unselect",$)}}(cp(s),Object.assign({elements:cu,datum:cv(u),groupKey:e?e(u):void 0,regionGroupKey:n?n(u):cm(u),coordinate:f,scale:p,state:ck(c,[["selected",r?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:r,link:i,emitter:l},a))}}function wb(t){return wv(Object.assign(Object.assign({},t),{createGroup:cm}))}function wx(t){return wv(Object.assign(Object.assign({},t),{createGroup:cg}))}wv.props={reapplyWhenUpdate:!0},wb.props={reapplyWhenUpdate:!0},wx.props={reapplyWhenUpdate:!0};var wO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function ww(t){var{wait:e=20,leading:n,trailing:r=!1,labelFormatter:i=t=>`${t}`}=t,a=wO(t,["wait","leading","trailing","labelFormatter"]);return t=>{let o;let{view:l,container:s,update:u,setState:c}=t,{markState:f,scale:p,coordinate:d}=l,h=function(t,e,n){let[r]=Array.from(t.entries()).filter(([t])=>t.type===e).map(([t])=>{let{encode:e}=t;return Object.fromEntries(n.map(t=>{let n=e[t];return[t,n?n.value:void 0]}))});return r}(f,"line",["x","y","series"]);if(!h)return;let{y:y,x:g,series:m=[]}=h,v=y.map((t,e)=>e),b=ud(v.map(t=>g[t])),x=cp(s),O=s.getElementsByClassName(tm),w=rp(s.getElementsByClassName(tO),t=>t.__data__.key.split("-")[0]),M=new tk.x1({style:Object.assign({x1:0,y1:0,x2:0,y2:x.getAttribute("height"),stroke:"black",lineWidth:1},rX(a,"rule"))}),_=new tk.xv({style:Object.assign({x:0,y:x.getAttribute("height"),text:"",fontSize:10},rX(a,"label"))});M.append(_),x.appendChild(M);let k=(t,e,n)=>{let[r]=t.invert(n);return b[uD(b,e.invert(r))]},j=(t,e)=>{M.setAttribute("x1",t[0]),M.setAttribute("x2",t[0]),_.setAttribute("text",i(e))},A=t=>{let{scale:e,coordinate:n}=o,{x:r,y:i}=e,a=k(n,r,t);for(let e of(j(t,a),O)){let{seriesIndex:t,key:r}=e.__data__,o=t[uT(t=>g[+t]).center(t,a)],l=[0,i.map(1)],s=[0,i.map(y[o]/y[t[0]])],[,u]=n.map(l),[,c]=n.map(s),f=u-c;for(let t of(e.setAttribute("transform",`translate(0, ${f})`),w.get(r)||[]))t.setAttribute("dy",f)}},E=hr(t=>{let e=ch(x,t);e&&A(e)},e,{leading:n,trailing:r});return(t=>{var e,n,r,i;return e=this,n=void 0,r=void 0,i=function*(){let{x:e}=p,n=k(d,e,t);j(t,n),c("chartIndex",t=>{let e=rO({},t),r=e.marks.find(t=>"line"===t.type),i=iF(rh(v,t=>iF(t,t=>+y[t])/dv(t,t=>+y[t]),t=>m[t]).values());rO(r,{scale:{y:{domain:[1/i,i]}}});let a=function(t){let{transform:e=[]}=t,n=e.find(t=>"normalizeY"===t.type);if(n)return n;let r={type:"normalizeY"};return e.push(r),t.transform=e,r}(r);for(let t of(a.groupBy="color",a.basis=(t,e)=>e[t[uT(t=>g[+t]).center(t,n)]],e.marks))t.animate=!1;return e}),o=(yield u("chartIndex")).view},new(r||(r=Promise))(function(t,a){function o(t){try{s(i.next(t))}catch(t){a(t)}}function l(t){try{s(i.throw(t))}catch(t){a(t)}}function s(e){var n;e.done?t(e.value):((n=e.value)instanceof r?n:new r(function(t){t(n)})).then(o,l)}s((i=i.apply(e,n||[])).next())})})([0,0]),x.addEventListener("pointerenter",E),x.addEventListener("pointermove",E),x.addEventListener("pointerleave",E),()=>{M.remove(),x.removeEventListener("pointerenter",E),x.removeEventListener("pointermove",E),x.removeEventListener("pointerleave",E)}}}ww.props={reapplyWhenUpdate:!0};var wM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function w_(t,e){for(let[n,r]of Object.entries(e))t.style(n,r)}let wk=s6(t=>{let e=t.attributes,{x:n,y:r,width:i,height:a,class:o,renders:l={},handleSize:s=10,document:u}=e,c=wM(e,["x","y","width","height","class","renders","handleSize","document"]);if(!u||void 0===i||void 0===a||void 0===n||void 0===r)return;let f=s/2,p=(t,e,n)=>{t.handle||(t.handle=n.createElement("rect"),t.append(t.handle));let{handle:r}=t;return r.attr(e),r},d=rX(rQ(c,"handleNW","handleNE"),"handleN"),{render:h=p}=d,y=wM(d,["render"]),g=rX(c,"handleE"),{render:m=p}=g,v=wM(g,["render"]),b=rX(rQ(c,"handleSE","handleSW"),"handleS"),{render:x=p}=b,O=wM(b,["render"]),w=rX(c,"handleW"),{render:M=p}=w,_=wM(w,["render"]),k=rX(c,"handleNW"),{render:j=p}=k,A=wM(k,["render"]),E=rX(c,"handleNE"),{render:S=p}=E,P=wM(E,["render"]),C=rX(c,"handleSE"),{render:T=p}=C,R=wM(C,["render"]),L=rX(c,"handleSW"),{render:N=p}=L,I=wM(L,["render"]),F=(t,e)=>{let{id:n}=t,r=e(t,t.attributes,u);r.id=n,r.style.draggable=!0},B=t=>()=>new(s6(e=>F(e,t)))({}),D=r2(t).attr("className",o).style("transform",`translate(${n}, ${r})`).style("draggable",!0);D.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(w_,Object.assign(Object.assign({width:i,height:a},rQ(c,"handle")),{transform:void 0})),D.maybeAppend("handle-n",B(h)).style("x",f).style("y",-f).style("width",i-s).style("height",s).style("fill","transparent").call(w_,y),D.maybeAppend("handle-e",B(m)).style("x",i-f).style("y",f).style("width",s).style("height",a-s).style("fill","transparent").call(w_,v),D.maybeAppend("handle-s",B(x)).style("x",f).style("y",a-f).style("width",i-s).style("height",s).style("fill","transparent").call(w_,O),D.maybeAppend("handle-w",B(M)).style("x",-f).style("y",f).style("width",s).style("height",a-s).style("fill","transparent").call(w_,_),D.maybeAppend("handle-nw",B(j)).style("x",-f).style("y",-f).style("width",s).style("height",s).style("fill","transparent").call(w_,A),D.maybeAppend("handle-ne",B(S)).style("x",i-f).style("y",-f).style("width",s).style("height",s).style("fill","transparent").call(w_,P),D.maybeAppend("handle-se",B(T)).style("x",i-f).style("y",a-f).style("width",s).style("height",s).style("fill","transparent").call(w_,R),D.maybeAppend("handle-sw",B(N)).style("x",-f).style("y",a-f).style("width",s).style("height",s).style("fill","transparent").call(w_,I)});function wj(t,e){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:i=()=>{},brushstarted:a=()=>{},brushupdated:o=()=>{},extent:l=function(t){let{width:e,height:n}=t.getBBox();return[0,0,e,n]}(t),brushRegion:s=(t,e,n,r,i)=>
7[t,e,n,r],reverse:u=!1,fill:c="#777",fillOpacity:f="0.3",stroke:p="#fff",selectedHandles:d=["handle-n","handle-e","handle-s","handle-w","handle-nw","handle-ne","handle-se","handle-sw"]}=e,h=wM(e,["brushed","brushended","brushcreated","brushstarted","brushupdated","extent","brushRegion","reverse","fill","fillOpacity","stroke","selectedHandles"]);let y=null,g=null,m=null,v=null,b=null,x=!1,[O,w,M,_]=l;cP(t,"crosshair"),t.style.draggable=!0;let k=(t,e,n)=>{if(a(n),v&&v.remove(),b&&b.remove(),y=[t,e],u)return j();A()},j=()=>{b=new tk.y$({style:Object.assign(Object.assign({},h),{fill:c,fillOpacity:f,stroke:p,pointerEvents:"none"})}),v=new wk({style:{x:0,y:0,width:0,height:0,draggable:!0,document:t.ownerDocument},className:"mask"}),t.appendChild(b),t.appendChild(v)},A=()=>{v=new wk({style:Object.assign(Object.assign({document:t.ownerDocument,x:0,y:0},h),{fill:c,fillOpacity:f,stroke:p,draggable:!0}),className:"mask"}),t.appendChild(v)},E=(t=!0)=>{v&&v.remove(),b&&b.remove(),y=null,g=null,m=null,x=!1,v=null,b=null,r(t)},S=(t,e,r=!0)=>{let[i,a,o,c]=function(t,e,n,r,i){let[a,o,l,s]=i;return[Math.max(a,Math.min(t,n)),Math.max(o,Math.min(e,r)),Math.min(l,Math.max(t,n)),Math.min(s,Math.max(e,r))]}(t[0],t[1],e[0],e[1],l),[f,p,d,h]=s(i,a,o,c,l);return u?C(f,p,d,h):P(f,p,d,h),n(f,p,d,h,r),[f,p,d,h]},P=(t,e,n,r)=>{v.style.x=t,v.style.y=e,v.style.width=n-t,v.style.height=r-e},C=(t,e,n,r)=>{b.style.d=`
8      M${O},${w}L${M},${w}L${M},${_}L${O},${_}Z
9      M${t},${e}L${t},${r}L${n},${r}L${n},${e}Z
10    `,v.style.x=t,v.style.y=e,v.style.width=n-t,v.style.height=r-e},T=t=>{let e=(t,e,n,r,i)=>t+e<r?r-e:t+n>i?i-n:t,n=t[0]-m[0],r=t[1]-m[1],i=e(n,y[0],g[0],O,M),a=e(r,y[1],g[1],w,_);S([y[0]+i,y[1]+a],[g[0]+i,g[1]+a])},R={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},L=t=>I(t)||N(t),N=t=>{let{id:e}=t;return -1!==d.indexOf(e)&&new Set(Object.keys(R)).has(e)},I=t=>t===v.getElementById("selection"),F=e=>{let{target:n}=e,[r,i]=cy(t,e);if(!v||!L(n)){k(r,i,e),x=!0;return}L(n)&&(m=[r,i])},B=e=>{let{target:n}=e,r=cy(t,e);if(!y)return;if(!m)return S(y,r);if(I(n))return T(r);let[i,a]=[r[0]-m[0],r[1]-m[1]],{id:o}=n;if(R[o]){let[t,e,n,r]=R[o].vector;return S([y[0]+i*t,y[1]+a*e],[g[0]+i*n,g[1]+a*r])}},D=e=>{if(m){m=null;let{x:t,y:n,width:r,height:i}=v.style;y=[t,n],g=[t+r,n+i],o(t,n,t+r,n+i,e);return}g=cy(t,e);let[n,r,a,l]=S(y,g);x=!1,i(n,r,a,l,e)},z=t=>{let{target:e}=t;v&&!L(e)&&E()},$=e=>{let{target:n}=e;v&&L(n)&&!x?I(n)?cP(t,"move"):N(n)&&cP(t,R[n.id].cursor):cP(t,"crosshair")},W=()=>{cP(t,"default")};return t.addEventListener("dragstart",F),t.addEventListener("drag",B),t.addEventListener("dragend",D),t.addEventListener("click",z),t.addEventListener("pointermove",$),t.addEventListener("pointerleave",W),{mask:v,move(t,e,n,r,i=!0){v||k(t,e,{}),y=[t,e],g=[n,r],S([t,e],[n,r],i)},remove(t=!0){v&&E(t)},destroy(){v&&E(!1),cP(t,"default"),t.removeEventListener("dragstart",F),t.removeEventListener("drag",B),t.removeEventListener("dragend",D),t.removeEventListener("click",z),t.removeEventListener("pointermove",$),t.removeEventListener("pointerleave",W)}}}function wA(t,e,n){return e.filter(e=>{if(e===t)return!1;let{interaction:r={}}=e.options;return Object.values(r).find(t=>t.brushKey===n)})}function wE(t,e){var{elements:n,selectedHandles:r,siblings:i=t=>[],datum:a,brushRegion:o,extent:l,reverse:s,scale:u,coordinate:c,series:f=!1,key:p=t=>t,bboxOf:d=t=>{let{x:e,y:n,width:r,height:i}=t.style;return{x:e,y:n,width:r,height:i}},state:h={},emitter:y}=e,g=wM(e,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);let m=n(t),v=i(t),b=v.flatMap(n),x=cj(m,a),O=rX(g,"mask"),{setState:w,removeState:M}=cM(h,x),_=new Map,{width:k,height:j,x:A=0,y:E=0}=d(t),S=()=>{for(let t of[...m,...b])M(t,"active","inactive")},P=(t,e,n,r)=>{var i;for(let t of v)null===(i=t.brush)||void 0===i||i.remove();let a=new Set;for(let i of m){let{min:o,max:l}=i.getLocalBounds(),[s,u]=o,[c,f]=l;!function(t,e){let[n,r,i,a]=t,[o,l,s,u]=e;return!(o>i||s<n||l>a||u<r)}([s,u,c,f],[t,e,n,r])?w(i,"inactive"):(w(i,"active"),a.add(p(i)))}for(let t of b)a.has(p(t))?w(t,"active"):w(t,"inactive")},C=()=>{for(let t of m)M(t,"inactive");for(let t of _.values())t.remove();_.clear()},T=(e,n,r,i)=>{let a=t=>{let e=t.cloneNode();return e.__data__=t.__data__,t.parentNode.appendChild(e),_.set(t,e),e},o=new tk.UL({style:{x:e+A,y:n+E,width:r-e,height:i-n}});for(let e of(t.appendChild(o),m)){let t=_.get(e)||a(e);t.style.clipPath=o,w(e,"inactive"),w(t,"active")}},R=wj(t,Object.assign(Object.assign({},O),{extent:l||[0,0,k,j],brushRegion:o,reverse:s,selectedHandles:r,brushended:t=>{let e=f?C:S;t&&y.emit("brush:remove",{nativeEvent:!0}),e()},brushed:(t,e,n,r,i)=>{let a=uZ(t,e,n,r,u,c);i&&y.emit("brush:highlight",{nativeEvent:!0,data:{selection:a}}),(f?T:P)(t,e,n,r)},brushcreated:(t,e,n,r,i)=>{let a=uZ(t,e,n,r,u,c);y.emit("brush:end",Object.assign(Object.assign({},i),{nativeEvent:!0,data:{selection:a}}))},brushupdated:(t,e,n,r,i)=>{let a=uZ(t,e,n,r,u,c);y.emit("brush:end",Object.assign(Object.assign({},i),{nativeEvent:!0,data:{selection:a}}))},brushstarted:t=>{y.emit("brush:start",t)}})),L=({nativeEvent:t,data:e})=>
10{if(t)return;let{selection:n}=e,[r,i,a,o]=function(t,e,n){let{x:r,y:i}=e,[a,o]=t,l=uH(a,r),s=uH(o,i),u=[l[0],s[0]],c=[l[1],s[1]],[f,p]=n.map(u),[d,h]=n.map(c);return[f,p,d,h]}(n,u,c);R.move(r,i,a,o,!1)};y.on("brush:highlight",L);let N=({nativeEvent:t}={})=>{t||R.remove(!1)};y.on("brush:remove",N);let I=R.destroy.bind(R);return R.destroy=()=>{y.off("brush:highlight",L),y.off("brush:remove",N),I()},R}function wS(t){var{facet:e,brushKey:n}=t,r=wM(t,["facet","brushKey"]);return(t,i,a)=>{let{container:o,view:l,options:s}=t,u=cp(o),c={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",reverse:!1},f=["active",["inactive",{opacity:.5}]],{scale:p,coordinate:d}=l;if(e){let e=u.getBounds(),n=e.min[0],o=e.min[1],l=e.max[0],s=e.max[1];return wE(u.parentNode.parentNode,Object.assign(Object.assign({elements:()=>cc(t,i),datum:cv(cf(t,i).map(t=>t.view)),brushRegion:(t,e,n,r)=>[t,e,n,r],extent:[n,o,l,s],state:ck(cf(t,i).map(t=>t.options),f),emitter:a,scale:p,coordinate:d,selectedHandles:void 0},c),r))}let h=wE(u,Object.assign(Object.assign({elements:cu,key:t=>t.__data__.key,siblings:()=>wA(t,i,n).map(t=>cp(t.container)),datum:cv([l,...wA(t,i,n).map(t=>t.view)]),brushRegion:(t,e,n,r)=>[t,e,n,r],extent:void 0,state:ck([s,...wA(t,i,n).map(t=>t.options)],f),emitter:a,scale:p,coordinate:d,selectedHandles:void 0},c),r));return u.brush=h,()=>h.destroy()}}function wP(t,e,n,r,i){let[,a,,o]=i;return[t,a,n,o]}function wC(t,e,n,r,i){let[a,,o]=i;return[a,e,o,r]}wS.props={reapplyWhenUpdate:!0};var wT=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let wR="axis-hot-area";function wL(t){return t.getElementsByClassName("axis")}function wN(t){return t.getElementsByClassName("axis-line")[0]}function wI(t){return t.getElementsByClassName("axis-main-group")[0].getLocalBounds()}var wF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function wB(t){var{hideX:e=!0,hideY:n=!0}=t,r=wF(t,["hideX","hideY"]);return(t,i,a)=>{let{container:o,view:l,options:s,update:u,setState:c}=t,f=cp(o),p=!1,d=!1,h=l,{scale:y,coordinate:g}=l;return function(t,e){var{filter:n,reset:r,brushRegion:i,extent:a,reverse:o,emitter:l,scale:s,coordinate:u,selection:c,series:f=!1}=e;let p=rX(wF(e,["filter","reset","brushRegion","extent","reverse","emitter","scale","coordinate","selection","series"]),"mask"),{width:d,height:h}=t.getBBox(),y=function(t=300){let e=null;return n=>{let{timeStamp:r}=n;return null!==e&&r-e<t?(e=r,!0):(e=r,!1)}}(),g=wj(t,Object.assign(Object.assign({},p),{extent:a||[0,0,d,h],brushRegion:i,reverse:o,brushcreated:function(t,e,r,i,a){(t!==r||e!==i)&&(a.nativeEvent=!0,n(c(t,e,r,i),a),g.remove())}}));function m(t){y(t)&&(t.nativeEvent=!0,r(t))}t.addEventListener("click",m);let v=({nativeEvent:t,data:e})=>{if(t)return;let{selection:r}=e;n(r,{nativeEvent:!1})};return l.on("brush:filter",v),()=>{g.destroy(),l.off("brush:filter",v),t.removeEventListener("click",m)}}(f,Object.assign(Object.assign({brushRegion:(t,e,n,r)=>[t,e,n,r],selection:(t,e,n,r)=>{let{scale:i,coordinate:a}=h;return uZ(t,e,n,r,i,a)},filter:(t,r)=>{var i,o,l,f;return i=this,o=void 0,l=void 0,f=function*(){if(d)return;d=!0;let[i,o]=t;c("brushFilter",t=>{let{marks:r}=t,a=r.map(t=>rO({axis:Object.assign(Object.assign({},e&&{x:{transform:[{type:"hide"}]}}),n&&{y:{transform:[{type:"hide"}]}})},t,{scale:{x:{domain:i,nice:!1},y:{domain:o,nice:!1}}}));return Object.assign(Object.assign({},s),{marks:a,clip:!0})}),a.emit("brush:filter",Object.assign(Object.assign({},r),{data:{selection:[i,o]}})),h=(yield u()).view,d=!1,p=!0},new(l||(l=Promise))(function(t,e){function n(t){try{a(f.next(t))}catch(t){e(t)}}function r(t){try{a(f.throw(t))}catch(t){e(t)}}function a(e){var i;e.done?t(e.value):((i=e.value)instanceof l?i:new l(function(t){t(i)})).then(n,r)}a((f=f.apply(i,o||[])).next())})},reset:t=>{if(d||!p)return;let{scale:e}=l,{x:n,y:r}=e,i=n.getOptions().domain,o=r.getOptions().domain;
10a.emit("brush:filter",Object.assign(Object.assign({},t),{data:{selection:[i,o]}})),p=!1,h=l,c("brushFilter"),u()},extent:void 0,emitter:a,scale:y,coordinate:g},{maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",unhighlightedOpacity:.5,reverse:!1}),r))}}function wD(t,e,n){let r=t?n:e,i=t?e:n,a=uz(r),o=uz(i),l=i.getOptions().domain,s=!o&&l&&l.length>=2&&0===l[0];return{currentScale:r,targetScale:i,isSourceDiscrete:a,isTargetDiscrete:o,shouldPreserveZeroBaseline:s}}function wz(t){return t instanceof Date?t.getTime():"string"==typeof t?parseFloat(t):Number(t)}function w$(t,e,n,r,i,a="filter",o=!1){if(cB(a))return[];let l=o?"y":"x",s=o?"x":"y",u=[];for(let r of t){let{channelData:t}=r,i=t[l]||[],o=t[s]||[],c=Array.isArray(i[0])?i[0]:i,f=Array.isArray(o[0]);if(0===c.length)continue;let p=c.length;for(let t=0;t<p;t++){let r=c[t],i=!1;if(n)i=e.includes(r);else if(e.length>=2){let t=wz(r),n=wz(e[0]),a=wz(e[e.length-1]);isNaN(t)||isNaN(n)||isNaN(a)||(i=t>=n&&t<=a)}if("filter"===a&&i){if(f){let e=o.length;for(let n=0;n<e;n++){let e=o[n];if(Array.isArray(e)&&t<e.length){let n=wz(e[t]);isNaN(n)||u.push(n)}}}else if(t<o.length){let e=wz(o[t]);isNaN(e)||u.push(e)}}}}return u.length>0?function({isTargetDiscrete:t,filteredValues:e,shouldPreserveZeroBaseline:n}){if(t)return Array.from(new Set(e)).sort((t,e)=>t-e);{let t=Math.min(...e),r=Math.max(...e);return n?[0,r]:[t,r]}}({isTargetDiscrete:r,filteredValues:u,shouldPreserveZeroBaseline:i}):[]}function wW(t,e,n,r){r&&e instanceof Map?e.forEach((e,n)=>{e&&Array.isArray(e)&&e.length>0&&(t[n]=e)}):!r&&Array.isArray(e)&&e.length>0&&(t[n?"x":"y"]=e)}let wZ="slider";function wH(t){var e,n,r,i;if(!(null==t?void 0:t.markState))return 0;let a=0;for(let[o,l]of t.markState.entries()){if("point"!==o.type||!(null==l?void 0:l.channels))continue;let t=null===(e=l.channels)||void 0===e?void 0:e.find(t=>"size"===t.name);if(t){if((null===(r=null===(n=t.scale)||void 0===n?void 0:n.range)||void 0===r?void 0:r.length)>0){a=Math.max(a,Math.max(...t.scale.range.filter(t=>"number"==typeof t)));continue}if((null===(i=t.values)||void 0===i?void 0:i.length)>0){let e=t.values.filter(t=>void 0!==t.value).flatMap(t=>Array.isArray(t.value)?t.value:[t.value]).filter(t=>"number"==typeof t&&!isNaN(t));e.length>0&&(a=Math.max(a,...e))}}}return a}function wq(t,e,n,r,i,a,o){if(o){let l=a?r:i.x,s=a?i.y:r;t.emit(e,Object.assign(Object.assign({},n),{nativeEvent:o,data:{selection:[wY(l),wY(s)]}}))}}function wG(t,e,n,r){let{domain0:i,filteredDomain:a,channel0:o,channel1:l,prefix:s,hasState:u,isMultiAxis:c,markToScaleMap:f,enableAdaptiveFiltering:p}=r;t(e,c&&a instanceof Map?t=>Object.assign({},function(t,e,n,r,i=!1,a="x",o="y",l=new Map,s=new Map){let{marks:u}=t,c=wH(e),f=u.map(t=>{var e,u;let c="string"==typeof(null==t?void 0:t.key)?t.key:String((null==t?void 0:t.key)||""),f=l.get(c),p=s.get(f),d=p&&{y:Object.assign({domain:p,nice:!0},"y"!==f?{independent:!0}:void 0)};return rO({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},t,{scale:Object.assign(Object.assign({},n),d),[r]:Object.assign(Object.assign({},(null===(e=t[r])||void 0===e?void 0:e[a])&&{[a]:Object.assign({preserve:!0},i&&{ratio:null})}),(null===(u=t[r])||void 0===u?void 0:u[o])&&{[o]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},t),{marks:f,insetLeft:c,insetRight:c,insetTop:c,insetBottom:c,clip:!0,animate:!1})}(t,n,{[o]:{domain:i,nice:!1}},s,u,o,l,f||new Map,a)):t=>Object.assign({},function(t,e,n,r,i=!1,a="x",o="y"){let{marks:l}=t,s=wH(e),u=l.map(t=>{var e,l;return rO({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},t,{scale:n,[r]:Object.assign(Object.assign({},(null===(e=t[r])||void 0===e?void 0:e[a])&&{[a]:Object.assign({preserve:!0},i&&{ratio:null})}),(null===(l=t[r])||void 0===l?void 0:l[o])&&{[o]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},t),{marks:u,insetLeft:s,insetRight:s,insetTop:s,insetBottom:s,clip:!0,animate:!1})}(t,n,Object.assign({[o]:{domain:i,nice:!1}},p&&Array.isArray(a)?{[l]:{domain:a,nice:!0}}:{}),s,u,o,l)))}function wY(t){return[t[0],t[t.length-1]]}function wV({initDomain:t={},className:e=wZ,prefix:n="slider",setValue:r=(t,e)=>t.setValues(e),hasState:i=!1,wait:a=50,leading:o=!0,trailing:l=!1,adaptiveMode:s="filter",getInitValues:u=t=>{var e;let n=null===(e=null==t?void 0:t.attributes)||void 0===e?void 0:e.values;if(0!==n[0]||1!==n[1])return n}}){return(c,f,p)=>{let{container:d,view:h,update:y,setState:g}=c,m=d.getElementsByClassName(e);
10if(!m.length)return()=>{};let{scale:v,coordinate:b}=h,{x:x,y:O}=v,w=iV(b),M=t=>{let e="vertical"===t?"y":"x",n="vertical"===t?"x":"y";return w?[n,e]:[e,n]},_=new Map,k=new Set,j=cz(h),A=function(t,e,n,r,i){var a,o,l,s;let u={x:e.x||n.getOptions().domain||[],y:e.y||r.getOptions().domain||[]},{hasIndependentX:c,hasIndependentY:f}=i||cz(t);if(c||f){let e=1,n=1;for(let[r,i]of t.markState.entries())if(null==i?void 0:i.channels){if(c){let t=i.channels.find(t=>"x"===t.name);(null===(o=null===(a=null==r?void 0:r.scale)||void 0===a?void 0:a.x)||void 0===o?void 0:o.independent)&&(u[`x${e}`]=t.scale.domain,e++)}if(f){let t=i.channels.find(t=>"y"===t.name);(null===(s=null===(l=null==r?void 0:r.scale)||void 0===l?void 0:l.y)||void 0===s?void 0:s.independent)&&(u[`y${n}`]=t.scale.domain,n++)}}}return u}(h,t,x,O,j),E=Array.from(m),S=t=>E.some(e=>{let{orientation:n}=e.attributes,[r]=M(n);return r===t}),P=S("x")&&!S("y"),C=S("y")&&!S("x"),T=!cB(s)&&(P||C);for(let t of m){let{orientation:e}=t.attributes,[c,f]=M(e),d=`${n}${ix(c)}:filter`,m="x"===c,{ratio:b}=x.getOptions(),{ratio:E}=O.getOptions(),S=!1,R=function({getFiltering:t,setFiltering:e,domainsOf:n,view:r,independentScaleInfo:i,enableAdaptiveFiltering:a,hasOnlyXSlider:o,hasOnlyYSlider:l,adaptiveMode:s,scaleX:u,scaleY:c,scale:f,channelDomain:p,channel0:d,channel1:h,isX:y,emitter:g,eventName:m,setState:v,slider:b,prefix:x,hasState:O,update:w,wait:M,leading:_,trailing:k}){return hr(M=>{var _,k,j,A;return _=this,k=void 0,j=void 0,A=function*(){let{initValue:_=!1}=M;if(t()&&!_)return;e(!0);let{nativeEvent:k=!0}=M,{markDataPairs:j}=function(t){var e,n;let r=[],i=[],a=[],o=t.markState;if(o){for(let[t,l]of o.entries())if(null==l?void 0:l.channels){let o={};for(let t of l.channels)if((null==t?void 0:t.name)==="x"&&(null===(e=t.values)||void 0===e?void 0:e.length)>0){let e=[];for(let n of t.values)(null==n?void 0:n.value)&&(e=e.concat(n.value),r.push(n.value));o.x=e}else if(t&&("y"===t.name||t.name.startsWith("y"))&&(null===(n=t.values)||void 0===n?void 0:n.length)>0){let e=t.name,n=[];for(let r of t.values)if(null==r?void 0:r.value){let t=r.value;n.push(t),("y"===e||"y1"===e)&&(Array.isArray(t)?i.push(t.flat()):i.push([t]))}o[e]=n}let s=o.x||[],u=o.y||[];s.length>0&&u.length>0&&a.push({markKey:t.key||`mark_${a.length}`,channelData:o})}}return{xChannelValues:r.flat(),yChannelValues:i.flat(),markDataPairs:a}}(r);if(i[`hasIndependent${h.toUpperCase()}`]){let[t]=n(M),{filteredDomain:e,markToScaleMap:w}=function({view:t,domain0:e,shouldFilterXAxis:n,enableAdaptiveFiltering:r,markDataPairs:i,adaptiveMode:a,scaleX:o,scaleY:l,scale:s,channelDomain:u,independentScaleInfo:c,channel0:f}){let p=new Map,d=new Map;if(!r||0===i.length||!(null==e?void 0:e.length))return{filteredDomain:p,markToScaleMap:d};let h=rl(t,"options.slider");if(Object.keys(h).length>0&&Object.prototype.hasOwnProperty.call(h,f)){let t=function(t,e,n,r,i){let a=t?r:n,o=Object.keys((t=>{let e={};
10return Object.keys(i).forEach(n=>{(n===t||n.match(RegExp(`^${t}\\d+$`)))&&(e[n]=i[n])}),e})(t?"x":"y")),l=o.map(t=>e[t]),s=uz(a),u=l.map(t=>uz(t)),c=l.map((t,e)=>{let n=t.getOptions().domain;return!u[e]&&n&&n.length>=2&&0===n[0]});return{currentScale:a,targetScales:l,isSourceDiscrete:s,isTargetDiscrete:u,shouldPreserveZeroBaseline:c,targetScaleKeys:o}}(n,s,o,l,u);(n?c.markToXScaleMap:c.markToYScaleMap).forEach((t,e)=>{d.set(e,t)});let r=function({markDataPairs:t,domain:e,scaleInfo:n,markToScaleMap:r,adaptiveMode:i,shouldFilterXAxis:a=!1}){let o=new Map,{isSourceDiscrete:l,isTargetDiscrete:s,shouldPreserveZeroBaseline:u,targetScaleKeys:c}=n;return t.forEach(t=>{let n=r.get(t.markKey);if(!n)return;let f=c.indexOf(n);if(-1===f)return;let p=w$([t],e,l,s[f],u[f],i,a);o.set(n,p)}),o}({markDataPairs:i,domain:e,scaleInfo:t,markToScaleMap:d,adaptiveMode:a,isViewSlider:!0,shouldFilterXAxis:n});return wW(u,r,n,!0),{filteredDomain:r,markToScaleMap:d}}{let r=function(t,e){for(let[n]of t.markState.entries()){let t=rl(n,"slider");if(Object.keys(t||{}).length>0&&Object.prototype.hasOwnProperty.call(t,e))return String(n.key||"")}return null}(t,f);if(r){let t=wD(n,o,l),s=n?c.markToXScaleMap:c.markToYScaleMap,u=s.get(r)||"";if(u)return d.set(r,u),{filteredDomain:function(t,e,n,r,i,a,o=!1,l){let s=new Map;if(0===t.length||0===e.length)return s;let{isSourceDiscrete:u,isTargetDiscrete:c,shouldPreserveZeroBaseline:f}=n,p=l?t.filter(t=>l.get(t.markKey)===i):t.filter(t=>t.markKey===r);if(0===p.length)return s;let d=w$(p,e,u,c,f,a,o);return s.set(i,d),s}(i,e,t,r,u,a,n,s),markToScaleMap:d}}}return{filteredDomain:p,markToScaleMap:d}}({view:r,domain0:t,shouldFilterXAxis:l&&!y,enableAdaptiveFiltering:a&&(o&&y||l&&!y),markDataPairs:j,adaptiveMode:s,scaleX:u,scaleY:c,scale:f,channelDomain:p,independentScaleInfo:i,channel0:d});p[d]=t,wq(g,m,M,t,p,y,k),wG(v,b,r,{domain0:t,filteredDomain:e,channel0:d,channel1:h,prefix:x,hasState:O,isMultiAxis:!0,markToScaleMap:w,enableAdaptiveFiltering:a})}else{let[t,e]=n(M),i=function({domain0:t,domain1:e,shouldFilterXAxis:n,enableAdaptiveFiltering:r,markDataPairs:i,adaptiveMode:a,scaleX:o,scaleY:l,channelDomain:s,hasOnlyXSlider:u,hasOnlyYSlider:c,isX:f}){let p=e;return r&&i.length>0&&(u&&f||c&&!f)&&(null==t?void 0:t.length)>0&&wW(s,p=function({markDataPairs:t,domain:e,scaleInfo:n,adaptiveMode:r,shouldFilterXAxis:i=!1}){let{isSourceDiscrete:a,isTargetDiscrete:o,shouldPreserveZeroBaseline:l}=n;return w$(t,e,a,o,l,r,i)}({markDataPairs:i,domain:t,scaleInfo:wD(n,o,l),adaptiveMode:a,shouldFilterXAxis:n}),n,!1),p}({domain0:t,domain1:e,shouldFilterXAxis:l&&!y,enableAdaptiveFiltering:a,markDataPairs:j,adaptiveMode:s,scaleX:u,scaleY:c,channelDomain:p,hasOnlyXSlider:o,hasOnlyYSlider:l,isX:y});p[d]=t,wq(g,m,M,t,p,y,k),wG(v,b,r,{domain0:t,filteredDomain:i,channel0:d,channel1:h,prefix:x,hasState:O,isMultiAxis:!1,markToScaleMap:void 0,enableAdaptiveFiltering:a})}yield w(),e(!1)},new(j||(j=Promise))(function(t,e){function n(t){try{i(A.next(t))}catch(t){e(t)}}function r(t){try{i(A.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):((i=e.value)instanceof j?i:new j(function(t){t(i)})).then(n,r)}i((A=A.apply(_,k||[])).next())})},M,{leading:_,trailing:k})}({getFiltering:()=>S,setFiltering:t=>{S=t},domainsOf:t=>{if(t.data){let{selection:e}=t.data,[n=wY(A.x),r=wY(A.y)]=e;return m?[uW(x,n,b),uW(O,r,E)]:[uW(O,r,E),uW(x,n,b)]}let{value:n}=t.detail;return[function(t,e,n){let[r,i]=t,a=n?t=>1-t:t=>t,o=u$(e,a(r),!0),l=u$(e,a(i),!1);return uW(e,[o,l])}(n,v[c],w&&"horizontal"===e),A[f]]},view:h,independentScaleInfo:j,enableAdaptiveFiltering:T,hasOnlyXSlider:P,hasOnlyYSlider:C,adaptiveMode:s,scaleX:x,scaleY:O,scale:v,channelDomain:A,channel0:c,channel1:f,isX:m,emitter:p,eventName:d,setState:g,slider:t,prefix:n,hasState:i,update:y,wait:a,leading:o,trailing:l}),L=e=>{let{nativeEvent:n}=e;if(n)return;let{data:i}=e,{selection:a}=i,[o,l]=a;t.dispatchEvent(new tk.Aw("valuechange",{data:i,nativeEvent:!1})),r(t,m?uq(o,x):uq(l,O))};p.on(d,L),t.addEventListener("valuechange",R),_.set(t,R),k.add([d,L]);let N=u(t);N&&t.dispatchEvent(new tk.Aw("valuechange",{detail:{value:N},nativeEvent:!1,initValue:!0}))}return()=>{for(let[t,e]of _)t.removeEventListener("valuechange",e);for(let[t,e]of k)p.off(t,e)}}}function wU({className:t=wZ,setValue:e=(t,e)=>t.setValues(e),minRange:n=.01,wheelSensitivity:r=.05,x:i=!0,y:a=!0}={}){return o=>{let{container:l,view:s}=o,{coordinate:u}=s,c=iV(u),f=function(t){var e;try{let n=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView;if(!n||"function"!=typeof n.getContextService)return null;let r=n.getContextService().getDomElement();return r instanceof HTMLElement?r:null}catch(t){return null}}(l),p=Math.max(1e-6,Math.min(1,n)),d=l.getElementsByClassName(t);if(!d.length)return()=>{};let h=(t,e)=>!0===t||!1!==t&&("shift"===t?e.shiftKey&&!e.ctrlKey&&!e.altKey:"ctrl"===t?e.ctrlKey&&!e.shiftKey&&!e.altKey:"alt"===t&&e.altKey&&!e.shiftKey&&!e.ctrlKey),y=(t,n)=>
10{e(t,n),t.dispatchEvent(new tk.Aw("valuechange",{detail:{value:n},nativeEvent:!0}))},g=(t,e,n,r,i)=>Math.max(r,Math.min(i,Math.max(0,Math.min(1,(t-e)/n)))),m=t=>{if(!f)return;let e=t.target;if(!f.contains(e))return;let n=f.getBoundingClientRect(),o=t.clientX-n.left,l=t.clientY-n.top,s=[];for(let e of d){let{values:n,orientation:r}=e.attributes;if(!n)continue;let o="horizontal"===r;h("x"==(c?o?"y":"x":o?"x":"y")?i:a,t)&&s.push(e)}if(0!==s.length)for(let e of(t.preventDefault(),t.stopPropagation(),s)){let{values:n,orientation:i,x:a,y:s,trackLength:u}=e.attributes,[c,f]=n,d=f-c,h="horizontal"===i?g(o,a,u,c,f):g(l,s,u,c,f),m=r*Math.max(.1,Math.min(100,.01/Math.max(d,1e-4))),v=Math.max(p,Math.min(1,d*(1+t.deltaY*m))),b=(h-c)/d,x=(f-h)/d,O=h-v*b,w=h+v*x;O<0?(O=0,w=Math.min(1,v)):w>1&&(w=1,O=Math.max(0,1-v)),y(e,[O,w])}};return f&&f.addEventListener("wheel",m,{passive:!1,capture:!0}),()=>{f&&f.removeEventListener("wheel",m,{capture:!0})}}}wU.props={reapplyWhenUpdate:!0};let wX="g2-scrollbar";var wK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let wQ={backgroundColor:"rgba(0,0,0,0.75)",color:"#fff",width:"max-content",padding:"1px 4px",fontSize:"12px",borderRadius:"2.5px",boxShadow:"0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)"};function wJ(t){return"text"===t.nodeName&&!!t.isOverflowing()}function w0(t){var{offsetX:e=8,offsetY:n=8}=t,r=wK(t,["offsetX","offsetY"]);return t=>{let{container:i}=t,[a,o]=i.getBounds().min,l=rX(r,"tip"),s=new Set,u=t=>{var r;let{target:u}=t;if(!wJ(u)){t.stopPropagation();return}let{offsetX:c,offsetY:f}=t,p=c+e-a,d=f+n-o;if(u.tip){u.tip.style.x=p,u.tip.style.y=d;return}let{text:h}=u.style,y=new tk.k9({className:"poptip",style:{innerHTML:(r=Object.assign(Object.assign({},wQ),l),`<div style="${Object.entries(r).map(([t,e])=>`${t.replace(/([A-Z])/g,"-$1").toLowerCase()}:${e}`).join(";")}">${h}</div>`),x:p,y:d}});i.appendChild(y),u.tip=y,s.add(y)},c=t=>{let{target:e}=t;if(!wJ(e)){t.stopPropagation();return}e.tip&&(e.tip.remove(),e.tip=null,s.delete(e.tip))};return i.addEventListener("pointerover",u),i.addEventListener("pointerout",c),()=>{i.removeEventListener("pointerover",u),i.removeEventListener("pointerout",c),s.forEach(t=>t.remove())}}}w0.props={reapplyWhenUpdate:!0};var w1=function(t,e){var n=yl(e),r=n.length;if((0,tL.Z)(t))return!r;for(var i=0;i<r;i+=1){var a=n[i];if(e[a]!==t[a]||!(a in t))return!1}return!0},w2=function(t,e){if(!(0,rm.Z)(t))return null;if((0,am.Z)(e)&&(n=e),rx(e)&&(n=function(t){return w1(t,e)}),n){for(var n,r=0;r<t.length;r+=1)if(n(t[r]))return t[r]}return null};function w5(t){return null==t?null:w3(t)}function w3(t){if("function"!=typeof t)throw Error();return t}var w4={depth:-1},w6={},w8={};function w9(t){return t.id}function w7(t){return t.parentId}function Mt(){var t,e=w9,n=w7;function r(r){var i,a,o,l,s,u,c,f,p=Array.from(r),d=e,h=n,y=new Map;if(null!=t){let e=p.map((e,n)=>{var i;let a;return i=t(e,n,r),a=(i=`${i}`).length,Mn(i,a-1)&&!Mn(i,a-2)&&(i=i.slice(0,-1)),"/"===i[0]?i:`/${i}`}),n=e.map(Me),i=new Set(e).add("");for(let t of n)i.has(t)||(i.add(t),e.push(t),n.push(Me(t)),p.push(w8));d=(t,n)=>e[n],h=(t,e)=>n[e]}for(o=0,i=p.length;o<i;++o)a=p[o],u=p[o]=new h3(a),null!=(c=d(a,o,r))&&(c+="")&&(f=u.id=c,y.set(f,y.has(f)?w6:u)),null!=(c=h(a,o,r))&&(c+="")&&(u.parent=c);for(o=0;o<i;++o)if(c=(u=p[o]).parent){if(!(s=y.get(c)))throw Error("missing: "+c);if(s===w6)throw Error("ambiguous: "+c);s.children?s.children.push(u):s.children=[u],u.parent=s}else{if(l)throw Error("multiple roots");l=u}if(!l)throw Error("no root");if(null!=t){for(;l.data===w8&&1===l.children.length;)l=l.children[0],--i;for(let t=p.length-1;t>=0&&(u=p[t]).data===w8;--t)u.data=null}if(l.parent=w4,l.eachBefore(function(t){t.depth=t.parent.depth+1,--i}).eachBefore(h5),l.parent=null,i>0)throw Error("cycle");return l}return r.id=function(t){return arguments.length?(e=w5(t),r):e},r.parentId=function(t){return arguments.length?(n=w5(t),r):n},r.path=function(e){return arguments.length?(t=w5(e),r):t},r}function Me(t){let e=t.length;if(e<2)return"";for(;--e>1&&!Mn(t,e););return t.slice(0,e)}function Mn(t,e){if("/"===t[e]){let n=0;for(;e>0&&"\\"===t[--e];)++n;if((1&n)==0)return!0}return!1}function Mr(t,e,n,r,i){var a,o,l=t.children,s=l.length,u=Array(s+1);for(u[0]=o=a=0;a<s;++a)u[a+1]=o+=l[a].value;
10!function t(e,n,r,i,a,o,s){if(e>=n-1){var c=l[e];c.x0=i,c.y0=a,c.x1=o,c.y1=s;return}for(var f=u[e],p=r/2+f,d=e+1,h=n-1;d<h;){var y=d+h>>>1;u[y]<p?d=y+1:h=y}p-u[d-1]<u[d]-p&&e+1<d&&--d;var g=u[d]-f,m=r-g;if(o-i>s-a){var v=r?(i*m+o*g)/r:o;t(e,d,g,i,a,v,s),t(d,n,m,v,a,o,s)}else{var b=r?(a*m+s*g)/r:s;t(e,d,g,i,a,o,b),t(d,n,m,i,b,o,s)}}(0,s,t.value,e,n,r,i)}function Mi(t,e,n,r,i){for(var a,o=t.children,l=-1,s=o.length,u=t.value&&(i-n)/t.value;++l<s;)(a=o[l]).x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*u}function Ma(t,e,n,r,i){(1&t.depth?Mi:hK)(t,e,n,r,i)}var Mo=(1+Math.sqrt(5))/2;function Ml(t,e,n,r,i,a){for(var o,l,s,u,c,f,p,d,h,y,g,m=[],v=e.children,b=0,x=0,O=v.length,w=e.value;b<O;){s=i-n,u=a-r;do c=v[x++].value;while(!c&&x<O);for(f=p=c,h=Math.max(p/(g=c*c*(y=Math.max(u/s,s/u)/(w*t))),g/f);x<O;++x){if(c+=l=v[x].value,l<f&&(f=l),l>p&&(p=l),(d=Math.max(p/(g=c*c*y),g/f))>h){c-=l;break}h=d}m.push(o={value:c,dice:s<u,children:v.slice(b,x)}),o.dice?hK(o,n,r,i,w?r+=u*c/w:a):Mi(o,n,r,w?n+=s*c/w:i,a),w-=c,b=x}return m}var Ms=function t(e){function n(t,n,r,i,a){Ml(e,t,n,r,i,a)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Mo),Mu=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,l,s,u,c,f=-1,p=o.length,d=t.value;++f<p;){for(s=(l=o[f]).children,u=l.value=0,c=s.length;u<c;++u)l.value+=s[u].value;l.dice?hK(l,n,r,i,d?r+=(a-r)*l.value/d:a):Mi(l,n,r,d?n+=(i-n)*l.value/d:i,a),d-=l.value}else t._squarify=o=Ml(e,t,n,r,i,a),o.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Mo);function Mc(){return 0}function Mf(t){return function(){return t}}function Mp(t,e,n){var r;let{value:i}=n,a=function(t,e){let n={treemapBinary:Mr,treemapDice:hK,treemapSlice:Mi,treemapSliceDice:Ma,treemapSquarify:Ms,treemapResquarify:Mu},r="treemapSquarify"===t?n[t].ratio(e):n[t];if(!r)throw TypeError("Invalid tile method!");return r}(e.tile,e.ratio),o=(r=e.path,Array.isArray(t)?"function"==typeof r?Mt().path(r)(t):Mt()(t):hJ(t));(0,rm.Z)(t)?function t(e){let n=rl(e,["data","name"]);n.replaceAll&&(e.path=n.replaceAll(".","/").split("/")),e.children&&e.children.forEach(e=>{t(e)})}(o):function t(e,n=[e.data.name]){e.id=e.id||e.data.name,e.path=n,e.children&&e.children.forEach(r=>{r.id=`${e.id}/${r.data.name}`,r.path=[...n,r.data.name],t(r,r.path)})}(o),i?o.sum(t=>e.ignoreParentValue&&t.children?0:y3(i)(t)).sort(e.sort):o.count(),(function(){var t=Ms,e=!1,n=1,r=1,i=[0],a=Mc,o=Mc,l=Mc,s=Mc,u=Mc;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(hX),t}function f(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,f=e.x1-n,p=e.y1-n;f<r&&(r=f=(r+f)/2),p<c&&(c=p=(c+p)/2),e.x0=r,e.y0=c,e.x1=f,e.y1=p,e.children&&(n=i[e.depth+1]=a(e)/2,r+=u(e)-n,c+=o(e)-n,f-=l(e)-n,p-=s(e)-n,f<r&&(r=f=(r+f)/2),p<c&&(c=p=(c+p)/2),t(e,r,c,f,p))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(n=+t[0],r=+t[1],c):[n,r]},c.tile=function(e){return arguments.length?(t=w3(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(a="function"==typeof t?t:Mf(+t),c):a},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:Mf(+t),c):o},c.paddingRight=function(t){return arguments.length?(l="function"==typeof t?t:Mf(+t),c):l},c.paddingBottom=function(t){return arguments.length?(s="function"==typeof t?t:Mf(+t),c):s},c.paddingLeft=function(t){return arguments.length?(u="function"==typeof t?t:Mf(+t),c):u},c})().tile(a).size(e.size).round(e.round).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(o);let l=o.descendants().map(t=>Object.assign(t,{id:t.id.replace(/^\//,""),x:[t.x0,t.x1],y:[t.y0,t.y1]}));return[l.filter("function"==typeof e.layer?e.layer:t=>t.height===e.layer),l]}var Md=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let Mh={breadCrumbFill:"rgba(0, 0, 0, 0.85)",breadCrumbFontSize:12,breadCrumbY:12,activeFill:"rgba(0, 0, 0, 0.5)"};var My=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let Mg="partition",Mm="markType",Mv="path",Mb="ancestor-node",Mx="childNodeCount",MO={id:Mg,encode:{x:"x",y:"y",key:Mv,color:Mb,value:"value",name:"name"},labels:[{style:{pointerEvents:"none"},text:"value",position:"inside",transform:[{type:"overflowHide"}]}],axis:{x:{title:"Time/Order",label:!0},y:!1},style:{[Mm]:Mg,[Mx]:"childNodeCount"},state:{active:{zIndex:2},inactive:{zIndex:1}},legend:!1,coordinate:{type:"cartesian",grid:!1},interaction:{drillDown:!0}},Mw=t=>{let{encode:e,data:n=[],layout:r={}}=t,i=My(t,["encode","data","layout"]),{fillParent:a=!0,sort:o}=r,l=Object.assign(Object.assign({},MO.encode),e),{value:s}=l;return[rO({},MO,Object.assign({type:"rect",data:function(t){let{data:e,encode:n,fillParent:r,sort:i}=t,{color:a,value:o,name:l}=n;return(function(t,e={}){let{valueField:n="value",sort:r,fillParent:i=!0,nameField:a="name"}=e;if(!t||0===t.length)return[];let o=(t,e=null,r=0)=>{let i={data:t,depth:r,parent:e,children:[],x0:0,x1:0,value:t[n]||0};return t.children&&t.children.length>0&&(i.children=t.children.map(t=>o(t,i,r+1))),i},l=[],s=0;return t.forEach(t=>{let e=o(t),u=(t,e=0,n=!1,a=0)=>
10{if(n||0===t.depth)t.x0=n?e:0,t.x1=t.x0+t.value;else if(t.x0=e,i&&a>0){let n=t.parent?t.parent.children.reduce((t,e)=>t+e.value,0):t.value,r=t.parent?t.parent.children.length:1,i=n>0?t.value/n:1/r;t.x1=e+a*i}else t.x1=e+t.value;let o=t.x0,l=t.x1-t.x0,s=r?[...t.children].sort((t,e)=>r(t.data,e.data)):t.children;if(i&&s.length>0){let e=t.children.reduce((t,e)=>t+e.value,0);s.forEach(t=>{u(t,o,!1,l);let n=e>0?t.value/e:1/s.length;o+=l*n})}else s.forEach(t=>{u(t,o,!1,0),o+=t.x1-t.x0})};u(e,s,!0),s+=e.value;let c=t=>{var e,r,i;let o=t=>{var e;return null!==(e=t[a])&&void 0!==e?e:t.name},l=[o(t.data)],s=t;for(;s.parent;)l.unshift(o(s.parent.data)),s=s.parent;return Object.assign(Object.assign({},hU(t.data,[n])),{[Mv]:l,[Mb]:null!==(i=null===(r=null===(e=s.parent)||void 0===e?void 0:e.data)||void 0===r?void 0:r[a])&&void 0!==i?i:t.data[a],name:t.data[a],depth:t.depth,value:t.value,x:[t.x0,t.x1],y:[t.depth,t.depth+1],[Mx]:t.children.length})},f=t=>{l.push(c(t)),t.children.forEach(f)};f(e)}),l})(e,{valueField:o,fillParent:r,nameField:l,sort:i}).map(t=>{let e=Object.assign({},t);return a&&a!==Mb&&(e[a]=t[a]),e})}({encode:l,data:n,fillParent:a,sort:o}),encode:l,tooltip:{title:"path",items:[t=>({name:s,value:t[s]})]},interaction:{elementHighlight:!0}},i))]};Mw.props={};let MM=t=>t.querySelectorAll(".element").filter(t=>(t.style||{})[Mm]===Mg),M_={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.6)",fontSize:11},y:4,active:{fill:"rgba(0, 0, 0, 0.4)"}};var Mk=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})},Mj=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let MA={pointR:6,pointStrokeWidth:1,pointStroke:"#888",pointActiveStroke:"#f5f5f5",pathStroke:"#888",pathLineDash:[3,4],labelFontSize:12,labelFill:"#888",labelStroke:"#fff",labelLineWidth:1,labelY:-6,labelX:2},ME="movePoint",MS=t=>{let e=t.target,{markType:n}=e;"line"===n&&(e.attr("_lineWidth",e.attr("lineWidth")||1),e.attr("lineWidth",e.attr("_lineWidth")+3)),"interval"===n&&(e.attr("_opacity",e.attr("opacity")||1),e.attr("opacity",.7*e.attr("_opacity")))},MP=t=>{let e=t.target,{markType:n}=e;"line"===n&&e.attr("lineWidth",e.attr("_lineWidth")),"interval"===n&&e.attr("opacity",e.attr("_opacity"))},MC=(t,e,n)=>e.map(e=>["x","color"].reduce((r,i)=>{let a=n[i];return a?e[a]===t[a]&&r:r},!0)?Object.assign(Object.assign({},e),t):e),MT=t=>{let e=rl(t,["__data__","y"]),n=rl(t,["__data__","y1"])-e,{__data__:{data:r,encode:i,transform:a},childNodes:o}=t.parentNode,l=w2(a,({type:t})=>"normalizeY"===t),s=rl(i,["y","field"]),u=r[o.indexOf(t)][s];return(t,e=!1)=>l||e?t/(1-t)/(n/(1-n))*u:t},MR=(t,e)=>{let n=rl(t,["__data__","seriesItems",e,"0","value"]),r=rl(t,["__data__","seriesIndex",e]),{__data__:{data:i,encode:a,transform:o}}=t.parentNode,l=w2(o,({type:t})=>"normalizeY"===t),s=rl(a,["y","field"]),u=i[r][s];return t=>l?1===n?t:t/(1-t)/(n/(1-n))*u:t},ML=(t,e,n)=>{t.forEach((t,r)=>{t.attr("stroke",e[1]===r?n.activeStroke:n.stroke)})},MN=(t,e,n,r)=>{let i=new tk.y$({style:n}),a=new tk.xv({style:r});return e.appendChild(a),t.appendChild(i),[i,a]},MI=(t,e)=>{if(!rl(t,["options","range","indexOf"]))return;let n=t.options.range.indexOf(e);return t.sortedDomain[n]},MF=(t,e,n)=>{let r=cT(t,e),i=cT(t,n)/r;return[t[0]+(e[0]-t[0])*i,t[1]+(e[1]-t[1])*i]};var MB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let MD=()=>t=>{let{children:e}=t;if(!Array.isArray(e))return[];let{x:n=0,y:r=0,width:i,height:a,data:o}=t;return e.map(t=>{var{data:e,x:l,y:s,width:u,height:c}=t;return Object.assign(Object.assign({},MB(t,["data","x","y","width","height"])),{data:sA(e,o),x:null!=l?l:n,y:null!=s?s:r,width:null!=u?u:i,height:null!=c?c:a})})};MD.props={};var Mz=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let M$=()=>t=>{let{children:e}=t;if(!Array.isArray(e))return[];let{direction:n="row",ratio:r=e.map(()=>1),padding:i=0,data:a}=t,[o,l,s,u]="col"===n?["y","height","width","x"]:["x","width","height","y"],c=r.reduce((t,e)=>t+e),f=t[l]-i*(e.length-1),p=r.map(t=>t/c*f),d=[],h=t[o]||0;for(let n=0;n<p.length;n+=1){let r=e[n],{data:c}=r,f=Mz(r,["data"]),y=sA(c,a);d.push(Object.assign({[o]:h,[l]:p[n],[u]:t[u]||0,[s]:t[s],data:y},f)),h+=p[n]+i}return d};M$.props={};class MW{constructor(t){this.$value=t}static of(t){return new MW(t)}call(t,...e){return this.$value=t(this.$value,...e),this}value(){return this.$value}}var MZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let MH=sk(t=>{let{encode:e,data:n,scale:r,shareSize:i=!1}=t,{x:a,y:o}=e,l=(t,e)=>{var a;if(void 0===t||!i)return{};let o=rp(n,e=>e[t]),l=(null===(a=null==r?void 0:r[e])||void 0===a?void 0:a.domain)||Array.from(o.keys()),s=l.map(t=>o.has(t)?o.get(t).length:1);return{domain:l,flex:s}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,paddingInner:.1,guide:void 0===a?null:{position:"top"}},void 0===a&&{paddingInner:0}),l(a,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,paddingInner:.1,guide:void 0===o?null:{position:"right"}},void 0===o&&{paddingInner:0}),l(o,"y"))}}}),Mq=sj(t=>{let e,n,r;let{data:i,scale:a,legend:o}=t,l=[t];for(;l.length;){let{children:t,encode:i={},scale:a={},legend:o={}}=l.shift(),{color:s}=i,{color:u}=a,{color:c}=o;void 0!==s&&(e=s),void 0!==u&&(n=u),void 0!==c&&(r=c),Array.isArray(t)&&l.push(...t)}let s="string"==typeof e?e:"",[u,c]=(()=>{var t;let n=null===(t=null==a?void 0:a.color)||void 0===t?void 0:t.domain;if(void 0!==n)return[n];if(void 0===e)return[void 0];let r="function"==typeof e?e:t=>t[e],o=i.map(r);return o.some(t=>"number"==typeof t)?[oJ(o)]:[Array.from(new Set(o)),"ordinal"]})();return Object.assign({encode:{color:{type:"column",value:null!=u?u:[]}},scale:{color:rO({},n,{domain:u,type:c})}},void 0===o&&{legend:{color:rO({title:s},r)}})}),MG=sk(()=>({animate:{enterType:"fadeIn"}})),MY=sj(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}}
10)),MV=sj(()=>({type:"cell"})),MU=sj(t=>{let{data:e}=t;return{data:{type:"inline",value:e,transform:[{type:"custom",callback:()=>{let{data:e,encode:n}=t,{x:r,y:i}=n,a=r?Array.from(new Set(e.map(t=>t[r]))):[],o=i?Array.from(new Set(e.map(t=>t[i]))):[];return(()=>{if(a.length&&o.length){let t=[];for(let e of a)for(let n of o)t.push({[r]:e,[i]:n});return t}return a.length?a.map(t=>({[r]:t})):o.length?o.map(t=>({[i]:t})):void 0})()}}]}}}),MX=sj((t,e=MK,n=MJ,r=M0,i={})=>{let{data:a,encode:o,children:l,scale:s,x:u=0,y:c=0,shareData:f=!1,key:p}=t,{value:d}=a,{x:h,y:y}=o,{color:g}=s,{domain:m}=g;return{children:(t,a,o)=>{let{x:s,y:g}=a,{paddingLeft:v,paddingTop:b,marginLeft:x,marginTop:O}=o,{domain:w}=s.getOptions(),{domain:M}=g.getOptions(),_=iC(t),k=t.map(e),j=t.map(({x:t,y:e})=>[s.invert(t),g.invert(e)]),A=j.map(([t,e])=>n=>{let{[h]:r,[y]:i}=n;return(void 0===h||r===t)&&(void 0===y||i===e)}).map(t=>d.filter(t)),E=f?iF(A,t=>t.length):void 0,S=j.map(([t,e])=>({columnField:h,columnIndex:w.indexOf(t),columnValue:t,columnValuesLength:w.length,rowField:y,rowIndex:M.indexOf(e),rowValue:e,rowValuesLength:M.length})),P=S.map(t=>Array.isArray(l)?l:[l(t)].flat(1));return _.flatMap(t=>{let[e,a,o,l]=k[t],s=S[t],f=A[t];return P[t].map(g=>{var w,M,{scale:_,key:k,facet:j=!0,axis:A={},legend:S={}}=g,P=MZ(g,["scale","key","facet","axis","legend"]);let C=(null===(w=null==_?void 0:_.y)||void 0===w?void 0:w.guide)||A.y,T=(null===(M=null==_?void 0:_.x)||void 0===M?void 0:M.guide)||A.x,R=j?f:0===f.length?[]:d,L={x:M1(T,n)(s,R),y:M1(C,r)(s,R)};return Object.assign(Object.assign({key:`${k}-${t}`,data:R,margin:0,x:e+v+u+x,y:a+b+c+O,parentKey:p,width:o,height:l,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!R.length,dataDomain:E,scale:rO({x:{tickCount:h?5:void 0},y:{tickCount:y?5:void 0}},_,{color:{domain:m}}),axis:rO({},A,L),legend:!1},P),i)})})}}});function MK(t){let{points:e}=t;return sN(e)}function MQ(t,e){return e.length?rO({title:!1,tick:null,label:null},t):rO({title:!1,tick:null,label:null,grid:null},t)}function MJ(t){return(e,n)=>{let{rowIndex:r,rowValuesLength:i,columnIndex:a,columnValuesLength:o}=e;return r!==i-1?MQ(t,n):rO({title:a===o-1&&void 0,grid:n.length?void 0:null},t)}}function M0(t){return(e,n)=>{let{rowIndex:r,columnIndex:i}=e;return 0!==i?MQ(t,n):rO({title:0===r&&void 0,grid:n.length?void 0:null},t)}}function M1(t,e){return"function"==typeof t?t:null===t||!1===t?()=>null:e(t)}let M2=()=>t=>[MW.of(t).call(MV).call(Mq).call(MG).call(MH).call(MY).call(MU).call(MX).value()];M2.props={};var M5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let M3=sk(t=>({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),M4=sj(t=>{let{data:e,children:n,x:r=0,y:i=0,key:a}=t;return{children:(t,o,l)=>{let{x:s,y:u}=o,{paddingLeft:c,paddingTop:f,marginLeft:p,marginTop:d}=l,{domain:h}=s.getOptions(),{domain:y}=u.getOptions(),g=iC(t),m=t.map(({points:t})=>sN(t)),v=t.map(({x:t,y:e})=>[s.invert(t),u.invert(e)]),b=v.map(([t,e])=>({columnField:t,columnIndex:h.indexOf(t),columnValue:t,columnValuesLength:h.length,rowField:e,rowIndex:y.indexOf(e),rowValue:e,rowValuesLength:y.length})),x=b.map(t=>Array.isArray(n)?n:[n(t)].flat(1));return g.flatMap(t=>{let[n,o,l,s]=m[t],[u,h]=v[t],y=b[t];return x[t].map(g=>{var m,v,b;let{scale:x,key:O,encode:w,axis:M,interaction:_}=g,k=M5(g,["scale","key","encode","axis","interaction"]),j=null===(m=null==x?void 0:x.y)||void 0===m?void 0:m.guide,A={x:("function"==typeof(b=null===(v=null==x?void 0:x.x)||void 0===v?void 0:v.guide)?b:null===b?()=>null:(t,e)=>{let{rowIndex:n,rowValuesLength:r}=t;if(n!==r-1)return MQ(b,e)})(y,e),y:("function"==typeof j?j:null===j?()=>null:(t,e)=>{let{columnIndex:n}=t;if(0!==n)return MQ(j,e)})(y,e)};return Object.assign({data:e,parentKey:a,key:`${O}-${t}`,x:n+c+r+p,y:o+f+i+d,width:l,height:s,margin:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:rO({x:{facet:!1},y:{facet:!1}},x),axis:rO({x:{tickCount:5},y:{tickCount:5}},M,A),legend:!1,encode:rO({},w,{x:u,y:h}),interaction:rO({},_,{legendFilter:!1})},k)})})}}}),M6=sj(t=>{let{encode:e}=t,n=M5(t,["encode"]),{position:r=[],x:i=r,y:a=[...r].reverse()}=e,o=M5(e,["position","x","y"]),l=[];for(let t of[i].flat(1))for(let e of[a].flat(1))l.push({$x:t,$y:e});return Object.assign(Object.assign({},n),{data:l,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"}),scale:Object.assign(Object.assign({},1===[i].flat(1).length&&{x:{paddingInner:0}}),1===[a].flat(1).length&&{y:{paddingInner:0}})})});var M8=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let M9=sk(t=>({scale:{x:{guide:{type:"axisArc"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),M7=sk(t=>({coordinate:{type:"polar"}})),_t=t=>{let{encode:e}=t,n=M8(t,["encode"]),{position:r}=e;return Object.assign(Object.assign({},n),{encode:{x:r}})};function _e(t){return t=>null}function _n(t){let{points:e}=t,[n,r,i,a]=e,o=sC(n,a),l=sP(n,a),s=sL(l,sP(r,i)),u=1/Math.sin(s/2),c=o/(1+u),f=c*Math.sqrt(2),[p,d]=i,h=sR(l)+s/2,y=c*u;return[p+y*Math.sin(h)-f/2,d-y*Math.cos(h)-f/2,f,f]}let _r=()=>t=>{let{children:e=[],duration:n=1e3,iterationCount:r=1,direction:i="normal",easing:a="ease-in-out-sine"}=t,o=e.length;if(!Array.isArray(e)||0===o)return[];let{key:l}=e[0],s=e.map(t=>Object.assign(Object.assign({},t),{key:l})).map(t=>(function(t,e,n){let r=[t];for(;r.length;){let t=r.pop();t.animate=rO({enter:{duration:e},update:{duration:e,easing:n,type:"morphing",fill:"both"},exit:{type:"fadeOut",duration:e}},t.animate||{});let{children:i}=t;Array.isArray(i)&&r.push(...i)}return t})(t,n,a));return function*(){let t,e=0;for(;"infinite"===r||e<r;
10){let[n,r]=function(t,e,n){let r=[0,n],i=[-n+1,1];return"normal"===t?r:"reverse"===t?i:"alternate"===t?e%2==0?r:i:"reverse-alternate"===t?e%2==0?i:r:void 0}(i,e,o);for(let e=n;e<r;e+=1){let n=Math.abs(e);t!==n&&(yield s[n]),t=n}e++}}};function _i(t,e,n){let{encode:r}=n;if(null===t)return[e];let i=(Array.isArray(t)?t:[t]).map(t=>{var e;return[t,null===(e=yj(r,t))||void 0===e?void 0:e[0]]}).filter(([,t])=>rU(t));return Array.from(rp(e,t=>i.map(([,e])=>e[t]).join("-")).values())}function _a(t){return Array.isArray(t)?(e,n,r)=>(n,r)=>t.reduce((t,i)=>0!==t?t:up(e[n][i],e[r][i]),0):"function"==typeof t?(e,n,r)=>_p(n=>t(e[n])):"series"===t?_s:"value"===t?_u:"sum"===t?_c:"maxIndex"===t?_f:null}function _o(t,e){for(let n of t)n.sort(e)}function _l(t,e){return(null==e?void 0:e.domain)||Array.from(new Set(t))}function _s(t,e,n){return _p(t=>n[t])}function _u(t,e,n){return _p(t=>e[t])}function _c(t,e,n){let r=new Map(Array.from(rp(iC(t),t=>n[+t]).entries()).map(([t,n])=>[t,n.reduce((t,n)=>t+ +e[n])]));return _p(t=>r.get(n[t]))}function _f(t,e,n){let r=new Map(Array.from(rp(iC(t),t=>n[+t]).entries()).map(([t,n])=>[t,s7(n,t=>e[t])]));return _p(t=>r.get(n[t]))}function _p(t){return(e,n)=>up(t(e),t(n))}_r.props={};let _d=(t={})=>{let{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(t,l)=>{var s;let u;let{data:c,encode:f,style:p={}}=l,[d,h]=yj(f,"y"),[y,g]=yj(f,"y1"),[m]=o?yA(f,"series","color"):yj(f,"color"),v=_i(e,t,l),b=(null!==(s=_a(n))&&void 0!==s?s:()=>null)(c,d,m);b&&_o(v,b);let x=Array(t.length),O=Array(t.length),w=Array(t.length),M=[],_=[];for(let t of v){r&&t.reverse();let e=y?+y[t[0]]:0,n=[],i=[];for(let r of t){let t=w[r]=+d[r]-e;t<0?i.push(r):t>=0&&n.push(r)}let a=n.length>0?n:i,o=i.length>0?i:n,l=n.length-1,s=0;for(;l>0&&0===d[a[l]];)l--;for(;s<o.length-1&&0===d[o[s]];)s++;M.push(a[l]),_.push(o[s]);let u=e;for(let t of i.reverse()){let e=w[t];u=x[t]=(O[t]=u)+e}let c=e;for(let t of n){let e=w[t];e>0?c=x[t]=(O[t]=c)+e:x[t]=O[t]=c}}let k=new Set(M),j=new Set(_),A="y"===i?x:O,E="y"===a?x:O;return u="point"===l.type?{y0:yM(d,h),y:yw(A,h)}:{y0:yM(d,h),y:yw(A,h),y1:yw(E,g)},[t,rO({},l,{encode:Object.assign({},u),style:Object.assign({first:(t,e)=>k.has(e),last:(t,e)=>j.has(e)},p)})]}};function _h(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 _y(t,e){let n=function(t,e){let n,r=0,i=0,a=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-i,i+=n/++r,a+=n*(e-i));else{let o=-1;for(let l of t)null!=(l=e(l,++o,t))&&(l=+l)>=l&&(n=l-i,i+=n/++r,a+=n*(l-i))}if(r>1)return a/(r-1)}(t,e);return n?Math.sqrt(n):n}_d.props={};var _g=Array.prototype,_m=_g.slice;_g.map;let _v=Math.sqrt(50),_b=Math.sqrt(10),_x=Math.sqrt(2);function _O(t,e,n){let r,i,a;let o=(e-t)/Math.max(0,n),l=Math.floor(Math.log10(o)),s=o/Math.pow(10,l),u=s>=_v?10:s>=_b?5:s>=_x?2:1;return(l<0?(r=Math.round(t*(a=Math.pow(10,-l)/u)),i=Math.round(e*a),r/a<t&&++r,i/a>e&&--i,a=-a):(r=Math.round(t/(a=Math.pow(10,l)*u)),i=Math.round(e/a),r*a<t&&++r,i*a>e&&--i),i<r&&.5<=n&&n<2)?_O(t,e,2*n):[r,i,a]}function _w(t,e,n){return _O(t=+t,e=+e,n=+n)[2]}function _M(t){return Math.max(1,Math.ceil(Math.log(_h(t))/Math.LN2)+1)}function __(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=void 0===i?uy:uh(i);r>n;){if(r-n>600){let a=r-n+1,o=e-n+1,l=Math.log(a),s=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*s*(a-s)/a)*(o-a/2<0?-1:1),c=Math.max(n,Math.floor(e-o*s/a+u)),f=Math.min(r,Math.floor(e+(a-o)*s/a+u));__(t,e,c,f,i)}let a=t[e],o=n,l=r;for(_k(t,n,e),i(t[r],a)>0&&_k(t,n,r);o<l;){for(_k(t,o,l),++o,--l;0>i(t[o],a);)++o;for(;i(t[l],a)>0;)--l}0===i(t[n],a)?_k(t,n,l):_k(t,++l,r),l<=e&&(n=l+1),e<=l&&(r=l-1)}return t}function _k(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}function _j(t,e,n){if(!(!(r=(t=Float64Array.from(function*(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)}}(t,n))).length)||isNaN(e=+e))){if(e<=0||r<2)return dv(t);if(e>=1)return iF(t);var r,i=(r-1)*e,a=Math.floor(i),o=iF(__(t,a).subarray(0,a+1));
10return o+(dv(t.subarray(a+1))-o)*(i-a)}}var _A=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function _E(t){return e=>null===e?t:`${t} of ${e}`}function _S(){return[(t,e)=>hn(t,t=>+e[t]),_E("mean")]}function _P(){return[(t,e)=>_j(t,.5,t=>+e[t]),_E("median")]}function _C(){return[(t,e)=>iF(t,t=>+e[t]),_E("max")]}function _T(){return[(t,e)=>dv(t,t=>+e[t]),_E("min")]}function _R(){return[(t,e)=>t.length,_E("count")]}function _L(){return[(t,e)=>iI(t,t=>+e[t]),_E("sum")]}function _N(){return[(t,e)=>e[t[0]],_E("first")]}function _I(){return[(t,e)=>e[t[t.length-1]],_E("last")]}let _F=(t={})=>{let{groupBy:e}=t,n=_A(t,["groupBy"]);return(t,r)=>{let{data:i,encode:a}=r,o=e(t,r);if(!o)return[t,r];let l=(t,e)=>{if(t)return t;let{from:n}=e;if(!n)return t;let[,r]=yj(a,n);return r},s=Object.entries(n).map(([t,e])=>{let[n,r]=function(t){if("function"==typeof t)return[t,null];let e={mean:_S,max:_C,count:_R,first:_N,last:_I,sum:_L,min:_T,median:_P}[t];if(!e)throw Error(`Unknown reducer: ${t}.`);return e()}(e),[s,u]=yj(a,t),c=l(u,e);return[t,Object.assign(Object.assign({},Object.assign(Object.assign({},yw(o.map(t=>n(t,null!=s?s:i)),(null==r?void 0:r(c))||c)),{constant:!1})),{aggregate:!0})]}),u=Object.keys(a).map(t=>{let[e,n]=yj(a,t);return[t,yw(o.map(t=>e[t[0]]),n)]}),c=o.map(t=>i[t[0]]);return[iC(o),rO({},r,{data:c,encode:Object.fromEntries([...u,...s])})]}};_F.props={};var _B=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let _D="thresholds",_z=(t={})=>{let{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=_B(t,["groupChannels","binChannels"]),i={};return _F(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([t])=>!t.startsWith(_D)))),Object.fromEntries(n.flatMap(t=>{let e=([e])=>+i[t].get(e).split(",")[1];return e.from=t,[[t,([e])=>+i[t].get(e).split(",")[0]],[`${t}1`,e]]}))),{groupBy:(t,a)=>{let{encode:o}=a,l=n.map(t=>{let[e]=yj(o,t);return e}),s=rX(r,_D),u=t.filter(t=>l.every(e=>rU(e[t]))),c=[...e.map(t=>{let[e]=yj(o,t);return e}).filter(rU).map(t=>e=>t[e]),...n.map((t,e)=>{let n=l[e],r=s[t]||function(t){let[e,n]=oJ(t);return Math.min(200,function(t,e,n){let r=_h(t),i=_y(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}(t,e,n))}(n),a=new Map((function(){var t=rf,e=oJ,n=_M;function r(r){Array.isArray(r)||(r=Array.from(r));var i,a,o,l=r.length,s=Array(l);for(i=0;i<l;++i)s[i]=t(r[i],i,r);var u=e(s),c=u[0],f=u[1],p=n(s,c,f);if(!Array.isArray(p)){let t=f,n=+p;if(e===oJ&&([c,f]=function(t,e,n){let r;for(;;){let i=_w(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}}(c,f,n)),(p=function(t,e,n){if(e=+e,t=+t,!((n=+n)>0))return[];if(t===e)return[t];let r=e<t,[i,a,o]=r?_O(e,t,n):_O(t,e,n);if(!(a>=i))return[];let l=a-i+1,s=Array(l);if(r){if(o<0)for(let t=0;t<l;++t)s[t]=-((a-t)/o);else for(let t=0;t<l;++t)s[t]=(a-t)*o}else if(o<0)for(let t=0;t<l;++t)s[t]=-((i+t)/o);else for(let t=0;t<l;++t)s[t]=(i+t)*o;return s}(c,f,n))[0]<=c&&(o=_w(c,f,n)),p[p.length-1]>=f){if(t>=f&&e===oJ){let t=_w(c,f,n);isFinite(t)&&(t>0?f=(Math.floor(f/t)+1)*t:t<0&&(f=-((Math.ceil(-(f*t))+1)/t)))}else p.pop()}}for(var d=p.length,h=0,y=d;p[h]<=c;)++h;for(;p[y-1]>f;)--y;(h||y<d)&&(p=p.slice(h,y),d=y-h);var g,m=Array(d+1);for(i=0;i<=d;++i)(g=m[i]=[]).x0=i>0?p[i-1]:c,g.x1=i<d?p[i]:f;if(isFinite(o)){if(o>0)for(i=0;i<l;++i)null!=(a=s[i])&&c<=a&&a<=f&&m[Math.min(d,Math.floor((a-c)/o))].push(r[i]);else if(o<0){for(i=0;i<l;++i)if(null!=(a=s[i])&&c<=a&&a<=f){let t=Math.floor((c-a)*o);m[Math.min(d,t+(p[t]<=a))].push(r[i])}}}else for(i=0;i<l;++i)null!=(a=s[i])&&c<=a&&a<=f&&m[uF(p,a,0,d)].push(r[i]);return m}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:()=>e,r):t},r.domain=function(t){var n;return arguments.length?(e="function"==typeof t?t:(n=[t[0],t[1]],()=>n),r):e},r.thresholds=function(t){var e;return arguments.length?(n="function"==typeof t?t:(e=Array.isArray(t)?_m.call(t):t,()=>e),r):n},r})().thresholds(r).value(t=>+n[t])(u).flatMap(t=>{let{x0:e,x1:n}=t,r=`${e},${n}`;return t.map(t=>[t,r])}));return i[t]=a,t=>a.get(t)})];return Array.from(rp(u,t=>c.map(e=>e(t)).join("-")).values())}}))};_z.props={};let _$=(t={})=>{let{thresholds:e}=t;return _z(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};_$.props={};var _W=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let _Z=(t={})=>{let{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t;return _W(t,["groupBy","reverse","orderBy","padding"]),(t,a)=>{let{data:o,encode:l,scale:s}=a,{series:u}=s,[c]=yj(l,"y"),[f]=yA(l,"series","color"),p=_l(f,u),d=rO({},a,{scale:{series:{domain:p,paddingInner:i}}}),h=_i(e,t,a),y=_a(r);if(!y)return[t,rO(d,{encode:{series:yw(f)}})];let g=y(o,c,f);g&&_o(h,g);let m=Array(t.length);for(let t of h){n&&t.reverse();for(let e=0;e<t.length;
10e++)m[t[e]]=p[e]}return[t,rO(d,{encode:{series:yw(r?m:f)}})]}};function _H(t,e,n){if(null===t)return[-.5,.5];let r=new rR({domain:_l(t,e),range:[0,1],padding:n}).getBandWidth();return[-r/2,r/2]}_Z.props={};let _q=(t={})=>{let{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(t,e)=>{let{encode:a,scale:o}=e,{x:l,y:s}=o,[u]=yj(a,"x"),[c]=yj(a,"y"),f=_H(u,l,n),p=_H(c,s,r),d=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(i(),...p)),h=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(i(),...f));return[t,rO({scale:{x:{padding:.5},y:{padding:.5}}},e,{encode:{dy:yw(d),dx:yw(h)}})]}};_q.props={};let _G=(t={})=>{let{padding:e=0,random:n=Math.random}=t;return(t,r)=>{let{encode:i,scale:a}=r,{x:o}=a,[l]=yj(i,"x"),s=_H(l,o,e),u=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(n(),...s));return[t,rO({scale:{x:{padding:.5}}},r,{encode:{dx:yw(u)}})]}};_G.props={};let _Y=(t={})=>{let{padding:e=0,random:n=Math.random}=t;return(t,r)=>{let{encode:i,scale:a}=r,{y:o}=a,[l]=yj(i,"y"),s=_H(l,o,e),u=t.map(()=>(function(t,e,n){return e*(1-t)+n*t})(n(),...s));return[t,rO({scale:{y:{padding:.5}}},r,{encode:{dy:yw(u)}})]}};_Y.props={};var _V=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let _U=(t={})=>{let{groupBy:e="x"}=t;return(t,n)=>{let{encode:r,style:i={}}=n,{x:a}=r,o=Object.entries(_V(r,["x"])).filter(([t])=>t.startsWith("y")).map(([t])=>[t,yj(r,t)[0]]),l=o.map(([e])=>[e,Array(t.length)]),s=_i(e,t,n),u=Array(s.length);for(let t=0;t<s.length;t++){let[e,n]=oJ(s[t].flatMap(t=>o.map(([,e])=>+e[t])));u[t]=(e+n)/2}let c=Math.max(...u);for(let t=0;t<s.length;t++){let e=c-u[t];for(let n of s[t])for(let t=0;t<o.length;t++){let[,r]=o[t],[,i]=l[t];i[n]=+r[n]+e}}return[t,rO({},n,{encode:Object.fromEntries(l.map(([t,e])=>[t,yw(e,yj(r,t)[1])])),style:Object.assign({first:(t,e)=>0===e,last:(t,e)=>e===s.length-1},i)})]}};_U.props={};let _X=(t={})=>{let{groupBy:e="x"}=t;return(t,n)=>{let{encode:r}=n,[i]=yj(r,"y"),[a,o]=yj(r,"y1"),l=_i(e,t,n),s=Array(t.length);for(let t of l){let e=t.map(t=>+i[t]);for(let n=0;n<t.length;n++){let r=t[n],a=Math.max(...e.filter((t,e)=>e!==n));s[r]=+i[r]>a?a:i[r]}}return[t,rO({},n,{encode:{y1:yw(s,o)}})]}};_X.props={};let _K=t=>{let{groupBy:e=["x"],reducer:n=(t,e)=>e[t[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(t,o)=>{let{encode:l}=o,s=(Array.isArray(e)?e:[e]).map(t=>[t,yj(l,t)[0]]);if(0===s.length)return[t,o];let u=[t];for(let[,t]of s){let e=[];for(let n of u){let r=Array.from(rp(n,e=>t[e]).values());e.push(...r)}u=e}if(r){let[t]=yj(l,r);t&&u.sort((e,r)=>n(e,t)-n(r,t)),i&&u.reverse()}let c=(a||3e3)/u.length,[f]=a?[yk(t,c)]:yA(l,"enterDuration",yk(t,c)),[p]=yA(l,"enterDelay",yk(t,0)),d=Array(t.length);for(let t=0,e=0;t<u.length;t++){let n=u[t],r=iF(n,t=>+f[t]);for(let t of n)d[t]=+p[t]+e;e+=r}return[t,rO({},o,{encode:{enterDuration:y_(f),enterDelay:y_(d)}})]}};_K.props={};var _Q=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let _J=(t={})=>{let{groupBy:e="x",basis:n="max"}=t;return(t,r)=>{let{encode:i,tooltip:a}=r,{x:o}=i,l=Object.entries(_Q(i,["x"])).filter(([t])=>t.startsWith("y")).map(([t])=>[t,yj(i,t)[0]]),[,s]=l.find(([t])=>"y"===t),u=l.map(([e])=>[e,Array(t.length)]),c=_i(e,t,r),f="function"==typeof n?n:({min:(t,e)=>dv(t,t=>e[+t]),max:(t,e)=>iF(t,t=>e[+t]),first:(t,e)=>e[t[0]],last:(t,e)=>e[t[t.length-1]],mean:(t,e)=>hn(t,t=>e[+t]),median:(t,e)=>_j(t,.5,t=>e[+t]),sum:(t,e)=>iI(t,t=>e[+t]),deviation:(t,e)=>_y(t,t=>e[+t])})[n]||iF;for(let t of c){let e=f(t,s);for(let n of t)for(let t=0;t<l.length;t++){let[,r]=l[t],[,i]=u[t];i[n]=+r[n]/e}}let p=r1(a)||(null==a?void 0:a.items)&&(null==a?void 0:a.items.length)!==0;return[t,rO({},r,Object.assign({encode:Object.fromEntries(u.map(([t,e])=>[t,yw(e,yj(i,t)[1])]))},!p&&i.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};function _0(t,e){return[t[0]]}function _1(t,e){let n=t.length-1;return[t[n]]}function _2(t,e){let n=s7(t,t=>e[t]);return[t[n]]}function _5(t,e){let n=he(t,t=>e[t]);return[t[n]]}_J.props={};let _3=(t={})=>{let{groupBy:e="series",channel:n,selector:r}=t;return(t,i)=>{let{encode:a}=i,o=_i(e,t,i),[l]=yj(a,n),s="function"==typeof r?r:({first:_0,last:_1,max:_2,min:_5})[r]||_0;return[o.flatMap(t=>s(t,l)),i]}};_3.props={};var _4=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let _6=(t={})=>{let{selector:e}=t;return _3(Object.assign({channel:"x",selector:e},_4(t,["selector"])))};_6.props={};var _8=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let _9=(t={})=>{let{selector:e}=t;return _3(Object.assign({channel:"y",selector:e},_8(t,["selector"])))};_9.props={};var _7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let kt=(t={})=>{let{channels:e=["x","y"]}=t;return _F(Object.assign(Object.assign({},_7(t,["channels"])),{groupBy:(t,n)=>_i(e,t,n)}))};kt.props={};let ke=(t={})=>kt(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));ke.props={};let kn=(t={})=>kt(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));kn.props={};let kr=(t={})=>kt(Object.assign(Object.assign({},t),{channels:["color"]}));kr.props={};let ki=(t={})=>(e,n)=>{var r,i;let{reverse:a,slice:o,channel:l,by:s,ordinal:u=!0,reducer:c}=t,{encode:f,scale:p={}}=n,d=p[l].domain,[h]=yj(f,null!=s?s:l),[y]=yj(f,l),g=function(t,e,n){let{by:r=t,reducer:i="max"}=e,[a]=yj(n,r);if("function"==typeof i)return t=>i(t,a);if("max"===i)return t=>iF(t,t=>+a[t]);if("min"===i)return t=>dv(t,t=>+a[t]);if("sum"===i)return t=>iI(t,t=>+a[t]);if("median"===i)return t=>_j(t,.5,t=>+a[t]);if("mean"===i)return t=>hn(t,t=>+a[t]);if("first"===i)return t=>a[t[0]];if("last"===i)return t=>a[t[t.length-1]];throw Error(`Unknown reducer: ${i}`)}(l,{by:s,reducer:c},f),m=(r=function(t,e,n){if(!Array.isArray(n))return t;let r=new Set(n);return t.filter(t=>r.has(e[t]))}(e,y,d),i=t=>y[t],(2!==g.length?ud(rh(r,g,i),([t,e],[n,r])=>up(e,r)||up(t,n)):ud(rp(r,i),([t,e],[n,r])=>g(e,r)||up(t,n))).map(([t])=>t)),v=u?e:ud(e,t=>h[t]);return a&&(u||v.reverse(),m.reverse()),[v,rO(n,{scale:{[l]:{domain:o?m.slice(..."number"==typeof o?[0,o]:o):m}}})]};ki.props={};let ka=(t={})=>ki(Object.assign(Object.assign({},t),{channel:"x"}));ka.props={};let ko=(t={})=>ki(Object.assign(Object.assign({},t),{channel:"y"}));ko.props={};let kl=(t={})=>ki(Object.assign(Object.assign({},t),{channel:"color"}));kl.props={};let ks=(t={})=>{let{field:e,channel:n="y",reducer:r="sum"}=t;return(t,i)=>{let{data:a,encode:o}=i,[l]=yj(o,"x"),s=ry(t,function(t,e){if("function"==typeof t)return n=>t(n,e);if("sum"===t)return t=>iI(t,t=>+e[t]);throw Error(`Unknown reducer: ${t}`)}(r,e?"string"==typeof e?a.map(t=>t[e]):a.map(e):yj(o,n)[0]),t=>l[t]).map(t=>t[1]);return[t,rO({},i,{scale:{x:{flex:s}}})]}};ks.props={};let ku=t=>
10(e,n)=>[e,rO({},n,{modifier:function(t){let{padding:e=0,direction:n="col"}=t;return(t,r,i)=>{let a=t.length;if(0===a)return[];let{innerWidth:o,innerHeight:l}=i,s=Math.ceil(Math.sqrt(r/(l/o))),u=o/s,c=Math.ceil(r/s),f=c*u;for(;f>l;)s+=1,u=o/s,f=(c=Math.ceil(r/s))*u;let p=l-c*u,d=c<=1?0:p/(c-1),[h,y]=c<=1?[(o-a*u)/(a-1),(l-u)/2]:[0,0];return t.map((t,r)=>{let[i,a,o,l]=sN(t),f="col"===n?r%s:Math.floor(r/c),g="col"===n?Math.floor(r/s):r%c,m=f*u,v=(c-g-1)*u+p,b=(u-e)/o,x=(u-e)/l;return`translate(${m-i+h*f+.5*e}, ${v-a-d*g-y+.5*e}) scale(${b}, ${x})`})}}(t),axis:!1})];function kc(t,e,n,r){let i,a,o;let l=t.length;if(r>=l||0===r)return t;let s=n=>1*e[t[n]],u=e=>1*n[t[e]],c=[],f=(l-2)/(r-2),p=0;c.push(p);for(let t=0;t<r-2;t++){let e=0,n=0,r=Math.floor((t+1)*f)+1,d=Math.floor((t+2)*f)+1,h=(d=Math.min(d,l))-r;for(;r<d;r++)e+=s(r),n+=u(r);e/=h,n/=h;let y=Math.floor((t+0)*f)+1,g=Math.floor((t+1)*f)+1,m=[s(p),u(p)];for(i=a=-1;y<g;y++)(a=.5*Math.abs((m[0]-e)*(s(y)-m[1])-(m[0]-u(y))*(n-m[0])))>i&&(i=a,o=y);c.push(o),p=o}return c.push(l-1),c.map(e=>t[e])}ku.props={};let kf=(t={})=>{let{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=function(t){if("function"==typeof t)return t;if("lttb"===t)return kc;let e={first:t=>[t[0]],last:t=>[t[t.length-1]],min:(t,e,n)=>[t[he(t,t=>n[t])]],max:(t,e,n)=>[t[s7(t,t=>n[t])]],median:(t,e,n)=>[t[function(t,e,n=uN){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(e,r)=>uN(n(t[r],r,t))),e<=0)return he(r);if(e>=1)return s7(r);var r,i=Uint32Array.from(t,(t,e)=>e),a=r.length-1,o=Math.floor(a*e);return __(i,o,0,a,(t,e)=>uy(r[t],r[e])),(o=function(t,e=up){let n;let r=!1;if(1===e.length){let i;for(let a of t){let t=e(a);(r?up(t,i)>0:0===up(t,t))&&(n=a,i=t,r=!0)}}else for(let i of t)(r?e(i,n)>0:0===e(i,i))&&(n=i,r=!0);return n}(i.subarray(0,o+1),t=>r[t]))>=0?o:-1}}(t,.5,t=>n[t])]]},n=e[t]||e.median;return(t,e,r,i)=>{let a=Math.max(1,Math.floor(t.length/i));return(function(t,e){let n=t.length,r=[],i=0;for(;i<n;)r.push(t.slice(i,i+=e));return r})(t,a).flatMap(t=>n(t,e,r))}}(e);return(t,e)=>{let{encode:a}=e,o=_i(r,t,e),[l]=yj(a,"x"),[s]=yj(a,"y");return[o.flatMap(t=>i(t,l,s,n)),e]}};kf.props={};let kp=(t={})=>(e,n)=>{let{encode:r,data:i}=n,a=Object.keys(t).length>0,o=Object.entries(t).map(([t,e])=>{let[n]=yj(r,t);if(!n)return null;let[i,a=!0]="object"==typeof e?[e.value,e.ordinal]:[e,!0];if("function"==typeof i)return t=>i(n[t]);if(a){let t=Array.isArray(i)?i:[i];return 0===t.length?null:e=>t.includes(n[e])}{let[t,e]=i;return r=>n[r]>=t&&n[r]<=e}}).filter(rU),l=e.filter(t=>o.every(e=>e(t))),s=l.map((t,e)=>e);if(0===o.length&&a)return[[],function(t){var e;let n;let{encode:r}=t,i=Object.assign(Object.assign({},t),{encode:Object.assign(Object.assign({},t.encode),{y:Object.assign(Object.assign({},t.encode.y),{value:[]})})}),a=null===(e=null==r?void 0:r.color)||void 0===e?void 0:e.field;if(!r||!a)return i;for(let[t,e]of Object.entries(r))("x"===t||"y"===t)&&e.field===a&&(n=Object.assign(Object.assign({},n),{[t]:Object.assign(Object.assign({},e),{value:[]})}));return n?Object.assign(Object.assign({},t),{encode:Object.assign(Object.assign({},t.encode),n)}):i}(n)];let u=Object.entries(r).map(([t,e])=>[t,Object.assign(Object.assign({},e),{value:s.map(t=>e.value[l[t]]).filter(t=>void 0!==t)})]);return[s,rO({},n,{encode:Object.fromEntries(u),data:l.map(t=>i[t])})]};kp.props={};var kd={},kh={};function ky(t){return Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function kg(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 km(t,e){var n=t+"",r=n.length;return r<e?Array(e-r+1).join(0)+n:n}function kv(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;kb&&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}let kb=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),kx=t=>{let{value:e,format:n=e.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>{var t,a,o,l;return t=void 0,a=void 0,o=void 0,l=function*(){let t=yield fetch(e);if("csv"===n){let e=yield t.text();return(function(t){var e=RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,l=0,s=a<=0,u=!1;function c(){if(s)return kh;if(u)return u=!1,kd;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++<a&&34!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)>=a?s=!0:10===(r=t.charCodeAt(o++))?u=!0:13===r&&(u=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o<a;){if(10===(r=t.charCodeAt(e=o++)))u=!0;else if(13===r)u=!0,10===t.charCodeAt(o)&&++o;else if(r!==n)continue;return t.slice(i,e)}return s=!0,t.slice(i,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(r=c())!==kh;){for(var f=[];r!==kd&&r!==kh;)f.push(r),r=c();e&&null==(f=e(f,l++))||i.push(f)}return i}function i(e,n){return e.map(function(e){return n.map(function(t){return o(e[t])}).join(t)})}function a(e){return e.map(o).join(t)}function o(t){var n,r,i,a,o,l;return null==t?"":t instanceof Date?(r=(n=t).getUTCHours(),i=n.getUTCMinutes(),a=n.getUTCSeconds(),o=n.getUTCMilliseconds(),isNaN(n)?"Invalid Date":((l=n.getUTCFullYear())<0?"-"+km(-l,6):l>9999?"+"+km(l,6):km(l,4))+"-"+km(n.getUTCMonth()+1,2)+"-"+km(n.getUTCDate(),2)+(o?"T"+km(r,2)+":"+km(i,2)+":"+km(a,2)+"."+km(o,3)+"Z":a?"T"+km(r,2)+":"+km(i,2)+":"+km(a,2)+"Z":i||r?"T"+km(r,2)+":"+km(i,2)+"Z":"")):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,a=r(t,function(t,r){var a;if(n)return n(t,r-1);i=t,n=e?(a=ky(t),function(n,r){return e(a(n),r,t)}):ky(t)});return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n&&(n=kg(e)),[n.map(o).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=kg(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}})(r).parse(e,i?kv:rH)}if("json"===n)return yield t.json();throw Error(`Unknown format: ${n}.`)},new(o||(o=Promise))(function(e,n){function r(t){try{s(l.next(t))}catch(t){n(t)}}function i(t){try{s(l.throw(t))}catch(t){n(t)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(t){t(n)})).then(r,i)}s((l=l.apply(t,a||[])).next())})}};kx.props={};let kO=t=>{let{value:e}=t;return()=>e};kO.props={};let kw=t=>{let{fields:e=[]}=t,n=e.map(t=>{if(Array.isArray(t)){let[e,n=!0]=t;return[e,n]}return[t,!0]});return t=>[...t].sort((t,e)=>n.reduce((n,[r,i=!0])=>0!==n?n:i?t[r]<e[r]?-1:+(t[r]!==e[r]):t[r]>e[r]?-1:+(t[r]!==e[r]),0))};kw.props={};let kM=t=>{let{callback:e}=t;return t=>Array.isArray(t)?[...t].sort(e):t};function k_(t){return null!=t&&!Number.isNaN(t)}kM.props={};let kk=t=>{let{callback:e=k_}=t;return t=>t.filter(e)};kk.props={};let kj=t=>{let{fields:e}=t;return t=>t.map(t=>(function(t,e=[]){return e.reduce((e,n)=>(n in t&&(e[n]=t[n]),e),{})})(t,e))};kj.props={};let kA=t=>e=>t&&0!==Object.keys(t).length?e.map(e=>Object.entries(e).reduce((e,[n,r])=>(e[t[n]||n]=r,e),{})):e;kA.props={};let kE=t=>{let{fields:e,key:n="key",value:r="value"}=t;return t=>e&&0!==Object.keys(e).length?t.flatMap(t=>e.map(e=>Object.assign(Object.assign({},t),{[n]:e,[r]:t[e]}))):t};kE.props={};let kS=t=>{let{start:e,end:n}=t;return t=>t.slice(e,n)};kS.props={};let kP=t=>{let{callback:e=rH}=t;return t=>e(t)};kP.props={};let kC=t=>{let{callback:e=rH}=t;return t=>Array.isArray(t)?t.map(e):t};function kT(t){return"string"==typeof t?e=>e[t]:t}kC.props={};let kR=t=>{let{join:e,on:n,select:r=[],as:i=r,unknown:a=NaN}=t,[o,l]=n,s=kT(l),u=kT(o),c=rh(e,([t])=>t,t=>s(t));return t=>t.map(t=>{let e=c.get(u(t));return Object.assign(Object.assign({},t),r.reduce((t,n,r)=>(t[i[r]]=e?e[n]:a,t),{}))})};kR.props={};var kL=n(53345),kN=n.n(kL);let kI=t=>{let{field:e,groupBy:n,as:r=["y","size"],min:i,max:a,size:o=10,width:l}=t,[s,u]=r;return t=>Array.from(rp(t,t=>n.map(e=>t[e]).join("-")).values()).map(t=>{let n=kN().create(t.map(t=>t[e]),{min:i,max:a,size:o,width:l}),r=n.map(t=>t.x),c=n.map(t=>t.y);return Object.assign(Object.assign({},t[0]),{[s]:r,[u]:c})})};kI.props={};let kF=()=>t=>(console.log("G2 data section:",t),t);kF.props={};let kB=Math.PI/180;function kD(t){return t.text}function kz(){return"serif"}function k$(){return"normal"}function kW(t){return t.value}function kZ(){return 90*~~(2*Math.random())}function kH(){return 1}function kq(){}function kG(t){let e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function kY(t){let e=[],n=-1;for(;++n<t;)e[n]=0;return e}function kV(){return document.createElement("canvas")}function kU(t){return"function"==typeof t?t:function(){return t}}let kX={archimedean:kG,rectangular:function(t){let e=4*t[0]/t[1],n=0,r=0;return function(t){let i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}};var kK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let kQ={fontSize:[20,60],font:"Impact",padding:2,rotate:function(){return(~~(6*Math.random())-3)*30}};
10function kJ(t){return new Promise((e,n)=>{if(t instanceof HTMLImageElement){e(t);return}if("string"==typeof t){let r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=()=>e(r),r.onerror=()=>{console.error(`'image ${t} load failed !!!'`),n()};return}n()})}let k0=(t,e)=>n=>{var r,i,a,o;return r=void 0,i=void 0,a=void 0,o=function*(){let r=Object.assign({},kQ,t,{canvas:e.createCanvas}),i=function(){let t=[256,256],e=kD,n=kz,r=kW,i=k$,a=kZ,o=kH,l=kG,s=Math.random,u=kq,c=[],f=null,p=1/0,d=kV,h={};return h.start=function(){let[y,g]=t,m=function(t){t.width=t.height=1;let e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;let n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",n.textBaseline="middle",{context:n,ratio:e}}(d()),v=h.board?h.board:kY((t[0]>>5)*t[1]),b=c.length,x=[],O=c.map(function(t,l,s){return t.text=e.call(this,t,l,s),t.font=n.call(this,t,l,s),t.style=k$.call(this,t,l,s),t.weight=i.call(this,t,l,s),t.rotate=a.call(this,t,l,s),t.size=~~r.call(this,t,l,s),t.padding=o.call(this,t,l,s),t}).sort(function(t,e){return e.size-t.size}),w=-1,M=h.board?[{x:0,y:0},{x:y,y:g}]:void 0;function _(){let e=Date.now();for(;Date.now()-e<p&&++w<b;){let e=O[w];e.x=y*(s()+.5)>>1,e.y=g*(s()+.5)>>1,function(t,e,n,r){if(e.sprite)return;let i=t.context,a=t.ratio;i.clearRect(0,0,2048/a,2048/a);let o=0,l=0,s=0,u=n.length;for(--r;++r<u;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/a)+"px "+e.font;let t=i.measureText(e.text+"m").width*a,u=e.size<<1;if(e.rotate){let n=Math.sin(e.rotate*kB),r=Math.cos(e.rotate*kB),i=t*r,a=t*n,o=u*r,l=u*n;t=Math.max(Math.abs(i+l),Math.abs(i-l))+31>>5<<5,u=~~Math.max(Math.abs(a+o),Math.abs(a-o))}else t=t+31>>5<<5;if(u>s&&(s=u),o+t>=2048&&(o=0,l+=s,s=0),l+u>=2048)break;i.translate((o+(t>>1))/a,(l+(u>>1))/a),e.rotate&&i.rotate(e.rotate*kB),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=t,e.height=u,e.xoff=o,e.yoff=l,e.x1=t>>1,e.y1=u>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=t}let c=i.getImageData(0,0,2048/a,2048/a).data,f=[];for(;--r>=0;){if(!(e=n[r]).hasText)continue;let t=e.width,i=t>>5,a=e.y1-e.y0;for(let t=0;t<a*i;t++)f[t]=0;if(null==(o=e.xoff))return;l=e.yoff;let s=0,u=-1;for(let n=0;n<a;n++){for(let e=0;e<t;e++){let t=i*n+(e>>5),r=c[(l+n)*2048+(o+e)<<2]?1<<31-e%32:0;f[t]|=r,s|=r}s?u=n:(e.y0++,a--,n--,l++)}e.y1=e.y0+u,e.sprite=f.slice(0,(e.y1-e.y0)*i)}}(m,e,O,w),e.hasText&&function(e,n,r){let i=n.x,a=n.y,o=Math.sqrt(t[0]*t[0]+t[1]*t[1]),u=l(t),c=.5>s()?1:-1,f,p=-c,d,h;for(;(f=u(p+=c))&&!(Math.min(Math.abs(d=~~f[0]),Math.abs(h=~~f[1]))>=o);)if(n.x=i+d,n.y=a+h,!(n.x+n.x0<0)&&!(n.y+n.y0<0)&&!(n.x+n.x1>t[0])&&!(n.y+n.y1>t[1])&&(!r||!function(t,e,n){n>>=5;let r=t.sprite,i=t.width>>5,a=t.x-(i<<4),o=127&a,l=32-o,s=t.y1-t.y0,u=(t.y+t.y0)*n+(a>>5),c;for(let t=0;t<s;t++){c=0;for(let n=0;n<=i;n++)if((c<<l|(n<i?(c=r[t*i+n])>>>o:0))&e[u+n])return!0;u+=n}return!1}(n,e,t[0]))&&(!r||n.x+n.x1>r[0].x&&n.x+n.x0<r[1].x&&n.y+n.y1>r[0].y&&n.y+n.y0<r[1].y)){let r=n.sprite,i=n.width>>5,a=t[0]>>5,o=n.x-(i<<4),l=127&o,s=32-l,u=n.y1-n.y0,c,f=(n.y+n.y0)*a+(o>>5);for(let t=0;t<u;t++){c=0;for(let n=0;n<=i;n++)e[f+n]|=c<<s|(n<i?(c=r[t*i+n])>>>l:0);f+=a}return delete n.sprite,!0}return!1}(v,e,M)&&(u.call(null,"word",{cloud:h,word:e}),x.push(e),M?h.hasImage||function(t,e){let n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}(M,e):M=[{x:e.x+e.x0,y:e.y+e.y0},{x:e.x+e.x1,y:e.y+e.y1}],e.x-=t[0]>>1,e.y-=t[1]>>1)}h._tags=x,h._bounds=M,w>=b&&(h.stop(),u.call(null,"end",{cloud:h,words:x,bounds:M}))}return f&&clearInterval(f),f=setInterval(_,0),_(),h},h.stop=function(){return f&&(clearInterval(f),f=null),h},h.createMask=e=>{let n=document.createElement("canvas"),[r,i]=t;if(!r||!i)return;let a=r>>5,o=kY((r>>5)*i);n.width=r,n.height=i;let l=n.getContext("2d");l.drawImage(e,0,0,e.width,e.height,0,0,r,i);let s=l.getImageData(0,0,r,i).data;for(let t=0;t<i;t++)for(let e=0;e<r;e++){let n=a*t+(e>>5),i=t*r+e<<2,l=s[i]>=250&&s[i+1]>=250&&s[i+2]>=250?1<<31-e%32:0;o[n]|=l}h.board=o,h.hasImage=!0},h.timeInterval=function(t){p=null==t?1/0:t},h.words=function(t){c=t},h.size=function(e=[]){t=[+e[0],+e[1]]},h.text=function(t){e=kU(t)},h.font=function(t){n=kU(t)},h.fontWeight=function(t){i=kU(t)},h.rotate=function(t){a=kU(t)},h.canvas=function(t){d=kU(t)},h.spiral=function(t){l=kX[t]||t},h.fontSize=function(t){r=kU(t)},h.padding=function(t){o=kU(t)},h.random=function(t){s=kU(t)},h.on=function(t){u=kU(t)},h}();
10yield({set(t,e,n){if(void 0===r[t])return this;let a=e?e.call(null,r[t]):r[t];return n?n.call(null,a):"function"==typeof i[t]?i[t](a):i[t]=a,this},setAsync(t,e,n){var a,o,l,s;return a=this,o=void 0,l=void 0,s=function*(){if(void 0===r[t])return this;let a=e?yield e.call(null,r[t]):r[t];return n?n.call(null,a):"function"==typeof i[t]?i[t](a):i[t]=a,this},new(l||(l=Promise))(function(t,e){function n(t){try{i(s.next(t))}catch(t){e(t)}}function r(t){try{i(s.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):((i=e.value)instanceof l?i:new l(function(t){t(i)})).then(n,r)}i((s=s.apply(a,o||[])).next())})}}).set("fontSize",t=>{let e=n.map(t=>t.value);return function(t,e){if("function"==typeof t)return t;if(Array.isArray(t)){let[n,r]=t;if(!e)return()=>(r+n)/2;let[i,a]=e;return a===i?()=>(r+n)/2:({value:t})=>(r-n)/(a-i)*(t-i)+n}return()=>t}(t,[dv(e),iF(e)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").set("canvas").setAsync("imageMask",kJ,i.createMask),i.words([...n]);let a=i.start(),[o,l]=r.size,s=[{x:0,y:0},{x:o,y:l}],{_bounds:u=s,_tags:c,hasImage:f}=a,p=c.map(t=>{var{x:e,y:n,font:r}=t;return Object.assign(Object.assign({},kK(t,["x","y","font"])),{x:e+o/2,y:n+l/2,fontFamily:r})}),[{x:d,y:h},{x:y,y:g}]=u,m={text:"",value:0,opacity:0,fontSize:0};return p.push(Object.assign(Object.assign({},m),{x:f?0:d,y:f?0:h}),Object.assign(Object.assign({},m),{x:f?o:y,y:f?l:g})),p},new(a||(a=Promise))(function(t,e){function n(t){try{s(o.next(t))}catch(t){e(t)}}function l(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof a?r:new a(function(t){t(r)})).then(n,l)}s((o=o.apply(r,i||[])).next())})};k0.props={};let k1=t=>{let{field:e="y",alpha:n=.6,as:r=e}=t;return t=>{let i=function(t,e){if(e<0||e>1)throw Error("alpha must be between 0 and 1.");if(0===t.length)return[];let n=t[0],r=[];for(let i of t){if(null==i){r.push(i),console.warn("EMA:The value is null or undefined",t);continue}null==n&&(n=i);let a=n*e+(1-e)*i;r.push(a),n=a}return r}(t.map(t=>t[e]),n);return t.map((t,e)=>Object.assign(Object.assign({},t),{[r]:i[e]}))}};function k2(t){let{min:e,max:n}=t;return[[e[0],e[1]],[n[0],n[1]]]}function k5(t,e,n=.01){let[r,i]=t,[a,o]=e;return r>=a[0]-n&&r<=o[0]+n&&i>=a[1]-n&&i<=o[1]+n}function k3(t,e,n=.01){let[r,i]=t;return!(k5(r,e,n)&&k5(i,e,n))}function k4(){let t=new Map;return[e=>t.get(e),(e,n)=>t.set(e,n)]}function k6(t){return"object"==typeof t?t:(0,tk.lu)(t)}function k8(t){let e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function k9(t,e,n){return .2126*k8(t)+.7152*k8(e)+.0722*k8(n)}function k7(t,e){if(!t||!e||t===e)return 1;let{r:n,g:r,b:i}=t,{r:a,g:o,b:l}=e,s=k9(n,r,i),u=k9(a,o,l);return(Math.max(s,u)+.05)/(Math.min(s,u)+.05)}function jt(t,e){let n=s7(e,e=>k7(t,k6(e)));return e[n]}function je(t){var e;let n=t.getAnimations();
10if(!n||0===n.length)return cd(t);let r=t.cloneNode(!0);r.style.visibility="hidden",n.forEach(t=>{let e=t.effect.getKeyframes();e&&e.length>0&&r.attr(e[e.length-1])}),null===(e=t.parentNode)||void 0===e||e.appendChild(r);let i=cd(r);return r.destroy(),i}k1.props={};let jn=(t,e)=>{let[[n,r],[i,a]]=e,[[o,l],[s,u]]=t,c=0,f=0;return o<n?c=n-o:s>i&&(c=i-s),l<r?f=r-l:u>a&&(f=a-u),[c,f]},jr=(t,e)=>t&&t.min&&t.max?e&&e.min&&e.max?{min:[Math.min(t.min[0],e.min[0]),Math.min(t.min[1],e.min[1])],max:[Math.max(t.max[0],e.max[0]),Math.max(t.max[1],e.max[1])]}:t:e&&e.min&&e.max?e:{min:[0,0],max:[0,0]};var ji=t=>t;function ja(t,e){t&&jl.hasOwnProperty(t.type)&&jl[t.type](t,e)}var jo={Feature:function(t,e){ja(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)ja(n[r].geometry,e)}},jl={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){js(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)js(n[r],e,0)},Polygon:function(t,e){ju(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)ju(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)ja(n[r],e)}};function js(t,e,n){var r,i=-1,a=t.length-n;for(e.lineStart();++i<a;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function ju(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)js(t[n],e,1);e.polygonEnd()}function jc(t,e){t&&jo.hasOwnProperty(t.type)?jo[t.type](t,e):ja(t,e)}class jf{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){let e=this._partials,n=0;for(let r=0;r<this._n&&r<32;r++){let i=e[r],a=t+i,o=Math.abs(t)<Math.abs(i)?t-(a-i):i-(a-t);o&&(e[n++]=o),t=a}return e[n]=t,this._n=n+1,this}valueOf(){let t=this._partials,e=this._n,n,r,i,a=0;if(e>0){for(a=t[--e];e>0&&(a=(n=a)+(r=t[--e]),!(i=r-(a-n))););e>0&&(i<0&&t[e-1]<0||i>0&&t[e-1]>0)&&(n=a+(r=2*i),r==n-a&&(a=n))}return a}}var jp=Math.PI,jd=jp/2,jh=jp/4,jy=2*jp,jg=180/jp,jm=jp/180,jv=Math.abs,jb=Math.atan,jx=Math.atan2,jO=Math.cos,jw=Math.ceil,jM=Math.exp,j_=Math.log,jk=Math.pow,jj=Math.sin,jA=Math.sign||function(t){return t>0?1:t<0?-1:0},jE=Math.sqrt,jS=Math.tan;function jP(t){return t>1?0:t<-1?jp:Math.acos(t)}function jC(t){return t>1?jd:t<-1?-jd:Math.asin(t)}function jT(){}var jR,jL,jN,jI,jF,jB,jD,jz,j$,jW=new jf,jZ=new jf,jH={point:jT,lineStart:jT,lineEnd:jT,polygonStart:function(){jH.lineStart=jq,jH.lineEnd=jV},polygonEnd:function(){jH.lineStart=jH.lineEnd=jH.point=jT,jW.add(jv(jZ)),jZ=new jf},result:function(){var t=jW/2;return jW=new jf,t}};function jq(){jH.point=jG}function jG(t,e){jH.point=jY,jB=jz=t,jD=j$=e}function jY(t,e){jZ.add(j$*t-jz*e),jz=t,j$=e}function jV(){jY(jB,jD)}var jU,jX,jK,jQ,jJ=1/0,j0=1/0,j1=-1/0,j2=j1,j5={point:function(t,e){t<jJ&&(jJ=t),t>j1&&(j1=t),e<j0&&(j0=e),e>j2&&(j2=e)},lineStart:jT,lineEnd:jT,polygonStart:jT,polygonEnd:jT,result:function(){var t=[[jJ,j0],[j1,j2]];return j1=j2=-(j0=jJ=1/0),t}},j3=0,j4=0,j6=0,j8=0,j9=0,j7=0,At=0,Ae=0,An=0,Ar={point:Ai,lineStart:Aa,lineEnd:As,polygonStart:function(){Ar.lineStart=Au,Ar.lineEnd=Ac},polygonEnd:function(){Ar.point=Ai,Ar.lineStart=Aa,Ar.lineEnd=As},result:function(){var t=An?[At/An,Ae/An]:j7?[j8/j7,j9/j7]:j6?[j3/j6,j4/j6]:[NaN,NaN];return j3=j4=j6=j8=j9=j7=At=Ae=An=0,t}};function Ai(t,e){j3+=t,j4+=e,++j6}function Aa(){Ar.point=Ao}function Ao(t,e){Ar.point=Al,Ai(jK=t,jQ=e)}function Al(t,e){var n=t-jK,r=e-jQ,i=jE(n*n+r*r);j8+=i*(jK+t)/2,j9+=i*(jQ+e)/2,j7+=i,Ai(jK=t,jQ=e)}function As(){Ar.point=Ai}function Au(){Ar.point=Af}function Ac(){Ap(jU,jX)}function Af(t,e){Ar.point=Ap,Ai(jU=jK=t,jX=jQ=e)}function Ap(t,e){var n=t-jK,r=e-jQ,i=jE(n*n+r*r);j8+=i*(jK+t)/2,j9+=i*(jQ+e)/2,j7+=i,At+=(i=jQ*t-jK*e)*(jK+t),Ae+=i*(jQ+e),An+=3*i,Ai(jK=t,jQ=e)}function Ad(t){this._context=t}Ad.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,jy)}},result:jT};var Ah,Ay,Ag,Am,Av,Ab=new jf,Ax={point:jT,lineStart:function(){Ax.point=AO},lineEnd:function(){Ah&&Aw(Ay,Ag),Ax.point=jT},polygonStart:function(){Ah=!0},polygonEnd:function(){Ah=null},result:function(){var t=+Ab;return Ab=new jf,t}};function AO(t,e){Ax.point=Aw,Ay=Am=t,Ag=Av=e}function Aw(t,e){Am-=t,Av-=e,Ab.add(jE(Am*Am+Av*Av)),Am=t,Av=e}class AM{constructor(t){this._append=null==t?A_:function(t){let e=Math.floor(t);if(!(e>=0))throw RangeError(`invalid digits: ${t}`);if(e>15)return A_;if(e!==r){let t=10**e;r=e,i=function(e){let n=1;this._+=e[0];for(let r=e.length;n<r;++n)this._+=Math.round(arguments[n]*t)/t+e[n]}}return i}(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(t,e){switch(this._point){case 0:this._append`M${t},${e}`,this._point=1;break;case 1:this._append`L${t},${e}`;break;default:if(this._append`M${t},${e}`,this._radius!==a||this._append!==i){let t=this._radius,e=this._;this._="",this._append`m0,${t}a${t},${t} 0 1,1 0,${-2*t}a${t},${t} 0 1,1 0,${2*t}z`,a=t,i=this._append,o=this._,this._=e}this._+=o}}result(){let t=this._;return this._="",t.length?t:null}}function A_(t){let e=1;this._+=t[0];for(let n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Ak(t,e){let n=3,r=4.5,i,a;function o(t){return t&&("function"==typeof r&&a.pointRadius(+r.apply(this,arguments)),jc(t,i(a))),a.result()}return o.area=function(t){return jc(t,i(jH)),jH.result()},o.measure=function(t){return jc(t,i(Ax)),Ax.result()},o.bounds=function(t){return jc(t,i(j5)),j5.result()},o.centroid=function(t){return jc(t,i(Ar)),Ar.result()},o.projection=function(e){return arguments.length?(i=null==e?(t=null,ji):(t=e).stream,o):t},o.context=function(t){return arguments.length?(a=null==t?(e=null,new AM(n)):new Ad(e=t),"function"!=typeof r&&a.pointRadius(r),o):e},o.pointRadius=function(t){return arguments.length?(r="function"==typeof t?t:(a.pointRadius(+t),+t),o):r},o.digits=function(t){if(!arguments.length)return n;if(null==t)n=null;else{let e=Math.floor(t);if(!(e>=0))throw RangeError(`invalid digits: ${t}`);n=e}return null===e&&(a=new AM(n)),o},o.projection(t).digits(n).context(e)}function Aj(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)),a=Array(i);++r<i;)a[r]=t+r*n;return a}function AA(t,e,n){var r=Aj(t,e-1e-6,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function AE(t,e,n){var r=Aj(t,e-1e-6,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function AS(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:jT,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function AP(t,e){return 1e-6>jv(t[0]-e[0])&&1e-6>jv(t[1]-e[1])}function AC(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 AT(t,e,n,r,i){var a,o,l=[],s=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],o=t[e];if(AP(r,o)){if(!r[2]&&!o[2]){for(i.lineStart(),a=0;a<e;++a)i.point((r=t[a])[0],r[1]);i.lineEnd();return}o[0]+=2e-6}l.push(n=new AC(r,t,null,!0)),s.push(n.o=new AC(r,null,n,!1)),l.push(n=new AC(o,t,null,!1)),s.push(n.o=new AC(o,null,n,!0))}}),l.length){for(s.sort(e),AR(l),AR(s),a=0,o=s.length;a<o;++a)s[a].e=n=!n;for(var u,c,f=l[0];;){for(var p=f,d=!0;p.v;)if((p=p.n)===f)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(a=0,o=u.length;a<o;
10++a)i.point((c=u[a])[0],c[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(d)for(a=(u=p.p.z).length-1;a>=0;--a)i.point((c=u[a])[0],c[1]);else r(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function AR(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 AL(t){return[jx(t[1],t[0]),jC(t[2])]}function AN(t){var e=t[0],n=t[1],r=jO(n);return[r*jO(e),r*jj(e),jj(n)]}function AI(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function AF(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 AB(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function AD(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Az(t){var e=jE(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function A$(t){return jv(t[0])<=jp?t[0]:jA(t[0])*((jv(t[0])+jp)%jy-jp)}function AW(t){return Array.from(function*(t){for(let e of t)yield*e}(t))}function AZ(t,e,n,r){return function(i){var a,o,l,s=e(i),u=AS(),c=e(u),f=!1,p={point:d,lineStart:y,lineEnd:g,polygonStart:function(){p.point=m,p.lineStart=v,p.lineEnd=b,o=[],a=[]},polygonEnd:function(){p.point=d,p.lineStart=y,p.lineEnd=g,o=AW(o);var t=function(t,e){var n=A$(e),r=e[1],i=jj(r),a=[jj(n),-jO(n),0],o=0,l=0,s=new jf;1===i?r=jd+1e-6:-1===i&&(r=-jd-1e-6);for(var u=0,c=t.length;u<c;++u)if(p=(f=t[u]).length)for(var f,p,d=f[p-1],h=A$(d),y=d[1]/2+jh,g=jj(y),m=jO(y),v=0;v<p;++v,h=x,g=w,m=M,d=b){var b=f[v],x=A$(b),O=b[1]/2+jh,w=jj(O),M=jO(O),_=x-h,k=_>=0?1:-1,j=k*_,A=j>jp,E=g*w;if(s.add(jx(E*k*jj(j),m*M+E*jO(j))),o+=A?_+k*jy:_,A^h>=n^x>=n){var S=AF(AN(d),AN(b));Az(S);var P=AF(a,S);Az(P);var C=(A^_>=0?-1:1)*jC(P[2]);(r>C||r===C&&(S[0]||S[1]))&&(l+=A^_>=0?1:-1)}}return(o<-.000001||o<1e-6&&s<-.000000000001)^1&l}(a,r);o.length?(f||(i.polygonStart(),f=!0),AT(o,Aq,t,n,i)):t&&(f||(i.polygonStart(),f=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),o=a=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 h(t,e){s.point(t,e)}function y(){p.point=h,s.lineStart()}function g(){p.point=d,s.lineEnd()}function m(t,e){l.push([t,e]),c.point(t,e)}function v(){c.lineStart(),l=[]}function b(){m(l[0][0],l[0][1]),c.lineEnd();var t,e,n,r,s=c.clean(),p=u.result(),d=p.length;if(l.pop(),a.push(l),l=null,d){if(1&s){if((e=(n=p[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()}return}d>1&&2&s&&p.push(p.pop().concat(p.shift())),o.push(p.filter(AH))}}return p}}function AH(t){return t.length>1}function Aq(t,e){return((t=t.x)[0]<0?t[1]-jd-1e-6:jd-t[1])-((e=e.x)[0]<0?e[1]-jd-1e-6:jd-e[1])}var AG=AZ(function(){return!0},function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var l,s,u,c,f,p,d=a>0?jp:-jp,h=jv(a-n);1e-6>jv(h-jp)?(t.point(n,r=(r+o)/2>0?jd:-jd),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(d,r),t.point(a,r),e=0):i!==d&&h>=jp&&(1e-6>jv(n-i)&&(n-=1e-6*i),1e-6>jv(a-d)&&(a-=1e-6*d),l=n,s=r,r=jv(p=jj(l-(u=a)))>1e-6?jb((jj(s)*(f=jO(o))*jj(u)-jj(o)*(c=jO(s))*jj(l))/(c*f*p)):(s+o)/2,t.point(i,r),t.lineEnd(),t.lineStart(),t.point(d,r),e=0),t.point(n=a,r=o),i=d},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*jd,r.point(-jp,i),r.point(0,i),r.point(jp,i),r.point(jp,0),r.point(jp,-i),r.point(0,-i),r.point(-jp,-i),r.point(-jp,0),r.point(-jp,i);else if(jv(t[0]-e[0])>1e-6){var a=t[0]<e[0]?jp:-jp;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(e[0],e[1])},[-jp,-jd]);function AY(t,e){e=AN(e),e[0]-=t,Az(e);var n=jP(-e[1]);return((0>-e[2]?-n:n)+jy-1e-6)%jy}function AV(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,l,u){var c=0,f=0;if(null==i||(c=o(i,l))!==(f=o(a,l))||0>s(i,a)^l>0)do u.point(0===c||3===c?t:n,c>1?r:e);while((c=(c+l+4)%4)!==f);else u.point(a[0],a[1])}function o(r,i){return 1e-6>jv(r[0]-t)?i>0?0:3:1e-6>jv(r[0]-n)?i>0?2:1:1e-6>jv(r[1]-e)?i>0?1:0:i>0?3:2}function l(t,e){return s(t.x,e.x)}function s(t,e){var n=o(t,1),r=o(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(o){var s,u,c,f,p,d,h,y,g,m,v,b=o,x=AS(),O={point:w,lineStart:function(){O.point=M,u&&u.push(c=[]),m=!0,g=!1,h=y=NaN},lineEnd:function(){s&&(M(f,p),d&&g&&x.rejoin(),s.push(x.result())),O.point=w,g&&b.lineEnd()},polygonStart:function(){b=x,s=[],u=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=u.length;n<i;++n)for(var a,o,l=u[n],s=1,c=l.length,f=l[0],p=f[0],d=f[1];s<c;++s)a=p,o=d,p=(f=l[s])[0],d=f[1],o<=r?d>r&&(p-a)*(r-o)>(d-o)*(t-a)&&++e:d<=r&&(p-a)*(r-o)<(d-o)*(t-a)&&--e;return e}(),n=v&&e,i=(s=AW(s)).length;
vendor: 4,990 bytes, line 10
10(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&AT(s,l,e,a,o),o.polygonEnd()),b=o,s=u=c=null}};function w(t,e){i(t,e)&&b.point(t,e)}function M(a,o){var l=i(a,o);if(u&&c.push([a,o]),m)f=a,p=o,d=l,m=!1,l&&(b.lineStart(),b.point(a,o));else if(l&&g)b.point(a,o);else{var s=[h=Math.max(-1e9,Math.min(1e9,h)),y=Math.max(-1e9,Math.min(1e9,y))],x=[a=Math.max(-1e9,Math.min(1e9,a)),o=Math.max(-1e9,Math.min(1e9,o))];!function(t,e,n,r,i,a){var o,l=t[0],s=t[1],u=e[0],c=e[1],f=0,p=1,d=u-l,h=c-s;if(o=n-l,d||!(o>0)){if(o/=d,d<0){if(o<f)return;o<p&&(p=o)}else if(d>0){if(o>p)return;o>f&&(f=o)}if(o=i-l,d||!(o<0)){if(o/=d,d<0){if(o>p)return;o>f&&(f=o)}else if(d>0){if(o<f)return;o<p&&(p=o)}if(o=r-s,h||!(o>0)){if(o/=h,h<0){if(o<f)return;o<p&&(p=o)}else if(h>0){if(o>p)return;o>f&&(f=o)}if(o=a-s,h||!(o<0)){if(o/=h,h<0){if(o>p)return;o>f&&(f=o)}else if(h>0){if(o<f)return;o<p&&(p=o)}return f>0&&(t[0]=l+f*d,t[1]=s+f*h),p<1&&(e[0]=l+p*d,e[1]=s+p*h),!0}}}}}(s,x,t,e,n,r)?l&&(b.lineStart(),b.point(a,o),v=!1):(g||(b.lineStart(),b.point(s[0],s[1])),b.point(x[0],x[1]),l||b.lineEnd(),v=!1)}h=a,y=o,g=l}return O}}function AU(t,e){function n(n,r){return e((n=t(n,r))[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 AX(t,e){return jv(t)>jp&&(t-=Math.round(t/jy)*jy),[t,e]}function AK(t,e,n){return(t%=jy)?e||n?AU(AJ(t),A0(e,n)):AJ(t):e||n?A0(e,n):AX}function AQ(t){return function(e,n){return jv(e+=t)>jp&&(e-=Math.round(e/jy)*jy),[e,n]}}function AJ(t){var e=AQ(t);return e.invert=AQ(-t),e}function A0(t,e){var n=jO(t),r=jj(t),i=jO(e),a=jj(e);function o(t,e){var o=jO(e),l=jO(t)*o,s=jj(t)*o,u=jj(e),c=u*n+l*r;return[jx(s*i-c*a,l*n-u*r),jC(c*i+s*a)]}return o.invert=function(t,e){var o=jO(e),l=jO(t)*o,s=jj(t)*o,u=jj(e),c=u*i-s*a;return[jx(s*i+u*a,l*n+c*r),jC(c*n-l*r)]},o}function A1(t){return function(e){var n=new A2;for(var r in t)n[r]=t[r];return n.stream=e,n}}function A2(){}function A5(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),jc(n,t.stream(j5)),e(j5.result()),null!=r&&t.clipExtent(r),t}function A3(t,e,n){return A5(t,function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,l=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,l])},n)}function A4(t,e,n){return A3(t,[[0,0],e],n)}function A6(t,e,n){return A5(t,function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])},n)}function A8(t,e,n){return A5(t,function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])},n)}AX.invert=AX,A2.prototype={constructor:A2,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 A9=jO(30*jm);function A7(t,e){return+e?function(t,e){function n(r,i,a,o,l,s,u,c,f,p,d,h,y,g){var m=u-r,v=c-i,b=m*m+v*v;if(b>4*e&&y--){var x=o+p,O=l+d,w=s+h,M=jE(x*x+O*O+w*w),_=jC(w/=M),k=1e-6>jv(jv(w)-1)||1e-6>jv(a-f)?(a+f)/2:jx(O,x),j=t(k,_),A=j[0],E=j[1],S=A-r,P=E-i,C=v*S-m*P;(C*C/b>e||jv((m*S+v*P)/b-.5)>.3||o*p+l*d+s*h<A9)&&(n(r,i,a,o,l,s,A,E,k,x/=M,O/=M,w,y,g),g.point(A,E),n(A,E,k,x,O,w,u,c,f,p,d,h,y,g))}}return function(e){var r,i,a,o,l,s,u,c,f,p,d,h,y={point:g,lineStart:m,lineEnd:b,polygonStart:function(){e.polygonStart(),y.lineStart=x},polygonEnd:function(){e.polygonEnd(),y.lineStart=m}};function g(n,r){n=t(n,r),e.point(n[0],n[1])}function m(){c=NaN,y.point=v,e.lineStart()}function v(r,i){var a=AN([r,i]),o=t(r,i);n(c,f,u,p,d,h,c=o[0],f=o[1],u=r,p=a[0],d=a[1],h=a[2],16,e),e.point(c,f)}function b(){y.point=g,e.lineEnd()}function x(){m(),y.point=O,y.lineEnd=w}function O(t,e){v(r=t,e),i=c,a=f,o=p,l=d,s=h,y.point=v}function w(){n(c,f,u,p,d,h,i,a,r,o,l,s,16,e),y.lineEnd=b,b()}return y}}(t,e):A1({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}var Et=A1({point:function(t,e){this.stream.point(t*jm,e*jm)}});function Ee(t,e,n,r,i,a){if(!a)return function(t,e,n,r,i){function a(a,o){return[e+t*(a*=r),n-t*(o*=i)]}return a.invert=function(a,o){return[(a-e)/t*r,(n-o)/t*i]},a}(t,e,n,r,i);var o=jO(a),l=jj(a),s=o*t,u=l*t,c=o/t,f=l/t,p=(l*n-o*e)/t,d=(l*e+o*n)/t;function h(t,a){return[s*(t*=r)-u*(a*=i)+e,n-u*t-s*a]}return h.invert=function(t,e){return[r*(c*t-f*e+p),i*(d-f*t-c*e)]},h}function En(t){return Er(function(){return t})()}function Er(t){var e,n,r,i,a,o,l,s,u,c,f=150,p=480,d=250,h=0,y=0,g=0,m=0,v=0,b=0,x=1,O=1,w=null,M=AG,_=null,k=ji,j=.5;function A(t){return s(t[0]*jm,t[1]*jm)}function E(t){return(t=s.invert(t[0],t[1]))&&[t[0]*jg,t[1]*jg]}function S(){var t=Ee(f,0,0,x,O,b).apply(null,e(h,y)),r=Ee(f,p-t[0],d-t[1],x,O,b);return n=AK(g,m,v),l=AU(e,r),s=AU(n,l),o=A7(l,j),P()}function P(){return u=c=null,A}
10return A.stream=function(t){var e;return u&&c===t?u:u=Et((e=n,A1({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}}))(M(o(k(c=t)))))},A.preclip=function(t){return arguments.length?(M=t,w=void 0,P()):M},A.postclip=function(t){return arguments.length?(k=t,_=r=i=a=null,P()):k},A.clipAngle=function(t){return arguments.length?(M=+t?function(t){var e=jO(t),n=2*jm,r=e>0,i=jv(e)>1e-6;function a(t,n){return jO(t)*jO(n)>e}function o(t,n,r){var i=AN(t),a=AN(n),o=[1,0,0],l=AF(i,a),s=AI(l,l),u=l[0],c=s-u*u;if(!c)return!r&&t;var f=AF(o,l),p=AD(o,e*s/c);AB(p,AD(l,-e*u/c));var d=AI(p,f),h=AI(f,f),y=d*d-h*(AI(p,p)-1);if(!(y<0)){var g=jE(y),m=AD(f,(-d-g)/h);if(AB(m,p),m=AL(m),!r)return m;var v,b=t[0],x=n[0],O=t[1],w=n[1];x<b&&(v=b,b=x,x=v);var M=x-b,_=1e-6>jv(M-jp);if(!_&&w<O&&(v=O,O=w,w=v),_||M<1e-6?_?O+w>0^m[1]<(1e-6>jv(m[0]-b)?O:w):O<=m[1]&&m[1]<=w:M>jp^(b<=m[0]&&m[0]<=x)){var k=AD(f,(-d+g)/h);return AB(k,p),[m,AL(k)]}}}function l(e,n){var i=r?t:jp-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return AZ(a,function(t){var e,n,s,u,c;return{lineStart:function(){u=s=!1,c=1},point:function(f,p){var d,h,y=[f,p],g=a(f,p),m=r?g?0:l(f,p):g?l(f+(f<0?jp:-jp),p):0;!e&&(u=s=g)&&t.lineStart(),g!==s&&(!(h=o(e,y))||AP(e,h)||AP(y,h))&&(y[2]=1),g!==s?(c=0,g?(t.lineStart(),h=o(y,e),t.point(h[0],h[1])):(h=o(e,y),t.point(h[0],h[1],2),t.lineEnd()),e=h):i&&e&&r^g&&!(m&n)&&(d=o(y,e,!0))&&(c=0,r?(t.lineStart(),t.point(d[0][0],d[0][1]),t.point(d[1][0],d[1][1]),t.lineEnd()):(t.point(d[1][0],d[1][1]),t.lineEnd(),t.lineStart(),t.point(d[0][0],d[0][1],3))),!g||e&&AP(e,y)||t.point(y[0],y[1]),e=y,s=g,n=m},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return c|(u&&s)<<1}}},function(e,r,i,a){!function(t,e,n,r,i,a){if(n){var o=jO(e),l=jj(e),s=r*n;null==i?(i=e+r*jy,a=e-s/2):(i=AY(o,i),a=AY(o,a),(r>0?i<a:i>a)&&(i+=r*jy));for(var u,c=i;r>0?c>a:c<a;c-=s)u=AL([o,-l*jO(c),-l*jj(c)]),t.point(u[0],u[1])}}(a,t,n,i,e,r)},r?[0,-t]:[-jp,t-jp])}(w=t*jm):(w=null,AG),P()):w*jg},A.clipExtent=function(t){return arguments.length?(k=null==t?(_=r=i=a=null,ji):AV(_=+t[0][0],r=+t[0][1],i=+t[1][0],a=+t[1][1]),P()):null==_?null:[[_,r],[i,a]]},A.scale=function(t){return arguments.length?(f=+t,S()):f},A.translate=function(t){return arguments.length?(p=+t[0],d=+t[1],S()):[p,d]},A.center=function(t){return arguments.length?(h=t[0]%360*jm,y=t[1]%360*jm,S()):[h*jg,y*jg]},A.rotate=function(t){return arguments.length?(g=t[0]%360*jm,m=t[1]%360*jm,v=t.length>2?t[2]%360*jm:0,S()):[g*jg,m*jg,v*jg]},A.angle=function(t){return arguments.length?(b=t%360*jm,S()):b*jg},A.reflectX=function(t){return arguments.length?(x=t?-1:1,S()):x<0},A.reflectY=function(t){return arguments.length?(O=t?-1:1,S()):O<0},A.precision=function(t){return arguments.length?(o=A7(l,j=t*t),P()):jE(j)},A.fitExtent=function(t,e){return A3(A,t,e)},A.fitSize=function(t,e){return A4(A,t,e)},A.fitWidth=function(t,e){return A6(A,t,e)},A.fitHeight=function(t,e){return A8(A,t,e)},function(){return e=t.apply(this,arguments),A.invert=e.invert&&E,S()}}function Ei(t){var e=0,n=jp/3,r=Er(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*jm,n=t[1]*jm):[e*jg,n*jg]},i}function Ea(t,e){var n=jj(t),r=(n+jj(e))/2;if(1e-6>jv(r))return function(t){var e=jO(t);function n(t,n){return[t*e,jj(n)/e]}return n.invert=function(t,n){return[t/e,jC(n*e)]},n}(t);var i=1+n*(2*r-n),a=jE(i)/r;function o(t,e){var n=jE(i-2*r*jj(e))/r;return[n*jj(t*=r),a-n*jO(t)]}return o.invert=function(t,e){var n=a-e,o=jx(t,jv(n))*jA(n);return n*r<0&&(o-=jp*jA(t)*jA(n)),[o/r,jC((i-(t*t+n*n)*r*r)/(2*r))]},o}function Eo(){return Ei(Ea).scale(155.424).center([0,33.6442])}function El(){return Eo().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Es(){var t,e,n,r,i,a,o=El(),l=Eo().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=Eo().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){a=[t,e]}};function c(t){var e=t[0],o=t[1];return a=null,n.point(e,o),a||(r.point(e,o),a)||(i.point(e,o),a)}function f(){return t=e=null,c}return c.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?l:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:o).invert(t)},c.stream=function(n){var r,i;return t&&e===n?t:(i=(r=[o.stream(e=n),l.stream(n),s.stream(n)]).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()}})},c.precision=function(t){return arguments.length?(o.precision(t),l.precision(t),s.precision(t),f()):o.precision()},c.scale=function(t){return arguments.length?(o.scale(t),l.scale(.35*t),s.scale(t),c.translate(o.translate())):o.scale()},c.translate=function(t){if(!arguments.length)return o.translate();var e=o.scale(),a=+t[0],c=+t[1];return n=o.translate(t).clipExtent([[a-.455*e,c-.238*e],[a+.455*e,c+.238*e]]).stream(u),r=l.translate([a-.307
10*e,c+.201*e]).clipExtent([[a-.425*e+1e-6,c+.12*e+1e-6],[a-.214*e-1e-6,c+.234*e-1e-6]]).stream(u),i=s.translate([a-.205*e,c+.212*e]).clipExtent([[a-.214*e+1e-6,c+.166*e+1e-6],[a-.115*e-1e-6,c+.234*e-1e-6]]).stream(u),f()},c.fitExtent=function(t,e){return A3(c,t,e)},c.fitSize=function(t,e){return A4(c,t,e)},c.fitWidth=function(t,e){return A6(c,t,e)},c.fitHeight=function(t,e){return A8(c,t,e)},c.scale(1070)}function Eu(t){return function(e,n){var r=jO(e),i=jO(n),a=t(r*i);return a===1/0?[2,0]:[a*i*jj(e),a*jj(n)]}}function Ec(t){return function(e,n){var r=jE(e*e+n*n),i=t(r),a=jj(i);return[jx(e*a,r*jO(i)),jC(r&&n*a/r)]}}var Ef=Eu(function(t){return jE(2/(1+t))});function Ep(){return En(Ef).scale(124.75).clipAngle(179.999)}Ef.invert=Ec(function(t){return 2*jC(t/2)});var Ed=Eu(function(t){return(t=jP(t))&&t/jj(t)});function Eh(){return En(Ed).scale(79.4188).clipAngle(179.999)}function Ey(t,e){return[t,j_(jS((jd+e)/2))]}function Eg(){return Em(Ey).scale(961/jy)}function Em(t){var e,n,r,i=En(t),a=i.center,o=i.scale,l=i.translate,s=i.clipExtent,u=null;function c(){var a=jp*o(),l=i((function(t){function e(e){return e=t(e[0]*jm,e[1]*jm),e[0]*=jg,e[1]*=jg,e}return t=AK(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),e[0]*=jg,e[1]*=jg,e},e})(i.rotate()).invert([0,0]));return s(null==u?[[l[0]-a,l[1]-a],[l[0]+a,l[1]+a]]:t===Ey?[[Math.max(l[0]-a,u),e],[Math.min(l[0]+a,n),r]]:[[u,Math.max(l[1]-a,e)],[n,Math.min(l[1]+a,r)]])}return i.scale=function(t){return arguments.length?(o(t),c()):o()},i.translate=function(t){return arguments.length?(l(t),c()):l()},i.center=function(t){return arguments.length?(a(t),c()):a()},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]),c()):null==u?null:[[u,e],[n,r]]},c()}function Ev(t){return jS((jd+t)/2)}function Eb(t,e){var n=jO(t),r=t===e?jj(t):j_(n/jO(e))/j_(Ev(e)/Ev(t)),i=n*jk(Ev(t),r)/r;if(!r)return Ey;function a(t,e){i>0?e<-jd+1e-6&&(e=-jd+1e-6):e>jd-1e-6&&(e=jd-1e-6);var n=i/jk(Ev(e),r);return[n*jj(r*t),i-n*jO(r*t)]}return a.invert=function(t,e){var n=i-e,a=jA(r)*jE(t*t+n*n),o=jx(t,jv(n))*jA(n);return n*r<0&&(o-=jp*jA(t)*jA(n)),[o/r,2*jb(jk(i/a,1/r))-jd]},a}function Ex(){return Ei(Eb).scale(109.5).parallels([30,30])}function EO(t,e){return[t,e]}function Ew(){return En(EO).scale(152.63)}function EM(t,e){var n=jO(t),r=t===e?jj(t):(n-jO(e))/(e-t),i=n/r+t;if(1e-6>jv(r))return EO;function a(t,e){var n=i-e,a=r*t;return[n*jj(a),i-n*jO(a)]}return a.invert=function(t,e){var n=i-e,a=jx(t,jv(n))*jA(n);return n*r<0&&(a-=jp*jA(t)*jA(n)),[a/r,i-jA(r)*jE(t*t+n*n)]},a}function E_(){return Ei(EM).scale(131.154).center([0,13.9389])}Ed.invert=Ec(function(t){return t}),Ey.invert=function(t,e){return[t,2*jb(jM(e))-jd]},EO.invert=EO;var Ek=jE(3)/2;function Ej(t,e){var n=jC(Ek*jj(e)),r=n*n,i=r*r*r;return[t*jO(n)/(Ek*(1.340264+-.24331799999999998*r+i*(.0062510000000000005+.034164*r))),n*(1.340264+-.081106*r+i*(893e-6+.003796*r))]}function EA(){return En(Ej).scale(177.158)}function EE(t,e){var n=jO(e),r=jO(t)*n;return[n*jj(t)/r,jj(e)/r]}function ES(){return En(EE).scale(144.049).clipAngle(60)}function EP(){var t,e,n,r,i,a,o,l=1,s=0,u=0,c=1,f=1,p=0,d=null,h=1,y=1,g=A1({point:function(t,e){var n=b([t,e]);this.stream.point(n[0],n[1])}}),m=ji;function v(){return h=l*c,y=l*f,a=o=null,b}function b(n){var r=n[0]*h,i=n[1]*y;if(p){var a=i*t-r*e;r=r*t+i*e,i=a}return[r+s,i+u]}return b.invert=function(n){var r=n[0]-s,i=n[1]-u;if(p){var a=i*t+r*e;r=r*t-i*e,i=a}return[r/h,i/y]},b.stream=function(t){return a&&o===t?a:a=g(m(o=t))},b.postclip=function(t){return arguments.length?(m=t,d=n=r=i=null,v()):m},b.clipExtent=function(t){return arguments.length?(m=null==t?(d=n=r=i=null,ji):AV(d=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),v()):null==d?null:[[d,n],[r,i]]},b.scale=function(t){return arguments.length?(l=+t,v()):l},b.translate=function(t){return arguments.length?(s=+t[0],u=+t[1],v()):[s,u]},b.angle=function(n){return arguments.length?(e=jj(p=n%360*jm),t=jO(p),v()):p*jg},b.reflectX=function(t){return arguments.length?(c=t?-1:1,v()):c<0},b.reflectY=function(t){return arguments.length?(f=t?-1:1,v()):f<0},b.fitExtent=function(t,e){return A3(b,t,e)},b.fitSize=function(t,e){return A4(b,t,e)},b.fitWidth=function(t,e){return A6(b,t,e)},b.fitHeight=function(t,e){return A8(b,t,e)},b}function EC(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),e*(1.007226+n*(.015085+r*(-.04447
105+.028874*n-.005916*r)))]}function ET(){return En(EC).scale(175.295)}function ER(t,e){return[jO(e)*jj(t),jj(e)]}function EL(){return En(ER).scale(249.5).clipAngle(90.000001)}function EN(t,e){var n=jO(e),r=1+jO(t)*n;return[n*jj(t)/r,jj(e)/r]}function EI(){return En(EN).scale(250).clipAngle(142)}function EF(t,e){return[j_(jS((jd+e)/2)),-t]}function EB(){var t=Em(EF),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)}Ej.invert=function(t,e){for(var n,r,i=e,a=i*i,o=a*a*a,l=0;l<12&&(r=i*(1.340264+-.081106*a+o*(893e-6+.003796*a))-e,i-=n=r/(1.340264+-.24331799999999998*a+o*(.0062510000000000005+.034164*a)),o=(a=i*i)*a*a,!(1e-12>jv(n)));++l);return[Ek*t*(1.340264+-.24331799999999998*a+o*(.0062510000000000005+.034164*a))/jO(i),jC(jj(i)/Ek)]},EE.invert=Ec(jb),EC.invert=function(t,e){var n,r=e,i=25;do{var a=r*r,o=a*a;r-=n=(r*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-e)/(1.007226+a*(.045255+o*(-.311325+.259866*a-.005916*11*o)))}while(jv(n)>1e-6&&--i>0);return[t/(.8707+(a=r*r)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),r]},ER.invert=Ec(jC),EN.invert=Ec(function(t){return 2*jb(t)}),EF.invert=function(t,e){return[-e,2*jb(jM(t))-jd]};var ED=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function Ez(t){let{data:e}=t;if(Array.isArray(e))return Object.assign(Object.assign({},t),{data:{value:e}});let{type:n}=e;return"graticule10"===n?Object.assign(Object.assign({},t),{data:{value:[(function(){var t,e,n,r,i,a,o,l,s,u,c,f,p=10,d=10,h=90,y=360,g=2.5;function m(){return{type:"MultiLineString",coordinates:v()}}function v(){return Aj(jw(r/h)*h,n,h).map(c).concat(Aj(jw(l/y)*y,o,y).map(f)).concat(Aj(jw(e/p)*p,t,p).filter(function(t){return jv(t%h)>1e-6}).map(s)).concat(Aj(jw(a/d)*d,i,d).filter(function(t){return jv(t%y)>1e-6}).map(u))}return m.lines=function(){return v().map(function(t){return{type:"LineString",coordinates:t}})},m.outline=function(){return{type:"Polygon",coordinates:[c(r).concat(f(o).slice(1),c(n).reverse().slice(1),f(l).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],l=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),l>o&&(t=l,l=o,o=t),m.precision(g)):[[r,l],[n,o]]},m.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),m.precision(g)):[[e,a],[t,i]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(h=+t[0],y=+t[1],m):[h,y]},m.stepMinor=function(t){return arguments.length?(p=+t[0],d=+t[1],m):[p,d]},m.precision=function(p){return arguments.length?(g=+p,s=AA(a,i,90),u=AE(e,t,g),c=AA(l,o,90),f=AE(r,n,g),m):g},m.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])})()()]}}):"sphere"===n?Object.assign(Object.assign({},t),{sphere:!0,data:{value:[{type:"Sphere"}]}}):t}function E$(t){return"geoPath"===t.type}let EW=()=>t=>{let e;let{children:n,coordinate:r={}}=t;if(!Array.isArray(n))return[];let{type:i="equalEarth"}=r,a=ED(r,["type"]),o=function(t){if("function"==typeof t)return t;let e=X[`geo${ix(t)}`];if(!e)throw Error(`Unknown coordinate: ${t}`);return e}(i),l=n.map(e=>Object.assign(Object.assign({},e),{data:sA(e.data,t.data)})).map(Ez);return[Object.assign(Object.assign({},t),{type:"view",scale:{x:{type:"identity"},y:{type:"identity"}},axis:!1,coordinate:{type:function(){return[["custom",(t,n,r,i)=>{let s=o();!function(t,e,n,r){let{outline:i=(()=>{let t=e.filter(E$);return t.find(t=>t.sphere)?{type:"Sphere"}:{type:"FeatureCollection",features:t.filter(t=>!t.sphere).flatMap(t=>t.data.value).flatMap(t=>(function(t){if(!t||!t.type)return null;let e={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featureCollection"}[t.type];return e?"geometry"===e?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]}:"feature"===e?{type:"FeatureCollection",features:[t]}:"featureCollection"===e?t:void 0:null})(t).features)}})()}=r,{size:a="fitExtent"}=r;"fitExtent"===a?function(t,e,n){let{x:r,y:i,width:a,height:o}=n;
10t.fitExtent([[r,i],[a,o]],e)}(t,i,n):"fitWidth"===a&&function(t,e,n){let{width:r,height:i}=n,[[a,o],[l,s]]=Ak(t.fitWidth(r,e)).bounds(e),u=Math.ceil(s-o),c=Math.min(Math.ceil(l-a),u),f=t.scale()*(c-1)/c,[p,d]=t.translate();t.scale(f).translate([p,d+(i-u)/2]).precision(.2)}(t,i,n)}(s,l,{x:t,y:n,width:r,height:i},a),function(t,e){var n;for(let[r,i]of Object.entries(e))null===(n=t[r])||void 0===n||n.call(t,i)}(s,a),e=Ak(s);let u=new oU({domain:[t,t+r]}),c=new oU({domain:[n,n+i]}),f=t=>{let e=s(t);if(!e)return[null,null];let[n,r]=e;return[u.map(n),c.map(r)]},p=t=>{if(!t)return null;let[e,n]=t,r=[u.invert(e),c.invert(n)];return s.invert(r)};return{transform:t=>f(t),untransform:t=>p(t)}}]]}},children:l.flatMap(t=>E$(t)?function(t){let{style:n,tooltip:r={}}=t;return Object.assign(Object.assign({},t),{type:"path",tooltip:dw(r,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},n),{d:t=>e(t)||[]})})}(t):t)})]};EW.props={};var EZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let EH=()=>t=>{let{type:e,data:n,scale:r,encode:i,style:a,animate:o,key:l,state:s,tooltip:u}=t;return[Object.assign(Object.assign({type:"geoView"},EZ(t,["type","data","scale","encode","style","animate","key","state","tooltip"])),{children:[{type:"geoPath",key:`${l}-0`,data:{value:n},scale:r,encode:i,style:a,animate:o,state:s,tooltip:u}]})]};function Eq(t){return t.index}function EG(t,e){var n=t.get(e);if(!n)throw Error("node not found: "+e);return n}EH.props={};var EY=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let EV={joint:!0},EU={type:"link",axis:!1,legend:!1,encode:{x:[t=>t.source.x,t=>t.target.x],y:[t=>t.source.y,t=>t.target.y]},style:{stroke:"#999",strokeOpacity:.6}},EX={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},EK={text:""},EQ=t=>{let{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:l=[],animate:s={},tooltip:u={}}=t,{nodeKey:c=t=>t.id,linkKey:f=t=>t.id}=n,p=Object.assign({nodeKey:c,linkKey:f},EY(n,["nodeKey","linkKey"])),d=rX(p,"node"),h=rX(p,"link"),{links:y,nodes:g}=y6(e,p),{nodesData:m,linksData:v}=function(t,e,n){let{nodes:r,links:i}=t,{joint:a,nodeStrength:o,linkStrength:l}=e,{nodeKey:s=t=>t.id,linkKey:u=t=>t.id}=n,c=function(){var t,e,n,r,i,a=bC(-30),o=1,l=1/0,s=.81;function u(n){var i,a=t.length,o=bA(t,bb,bx).visitAfter(f);for(r=n,i=0;i<a;++i)e=t[i],o.visit(p)}function c(){if(t){var e,n,r=t.length;for(e=0,i=Array(r);e<r;++e)i[(n=t[e]).index]=+a(n,e,t)}}function f(t){var e,n,r,a,o,l=0,s=0;if(t.length){for(r=a=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(l+=e.value,s+=n,r+=n*e.x,a+=n*e.y);t.x=r/s,t.y=a/s}else{(e=t).x=e.data.x,e.y=e.data.y;do l+=i[e.data.index];while(e=e.next)}t.value=l}function p(t,a,u,c){if(!t.value)return!0;var f=t.x-e.x,p=t.y-e.y,d=c-a,h=f*f+p*p;if(d*d/s<h)return h<l&&(0===f&&(h+=(f=bT(n))*f),0===p&&(h+=(p=bT(n))*p),h<o&&(h=Math.sqrt(o*h)),e.vx+=f*t.value*r/h,e.vy+=p*t.value*r/h),!0;if(!t.length&&!(h>=l)){(t.data!==e||t.next)&&(0===f&&(h+=(f=bT(n))*f),0===p&&(h+=(p=bT(n))*p),h<o&&(h=Math.sqrt(o*h)));do t.data!==e&&(d=i[t.data.index]*r/h,e.vx+=f*d,e.vy+=p*d);while(t=t.next)}}return u.initialize=function(e,r){t=e,n=r,c()},u.strength=function(t){return arguments.length?(a="function"==typeof t?t:bC(+t),c(),u):a},u.distanceMin=function(t){return arguments.length?(o=t*t,u):Math.sqrt(o)},u.distanceMax=function(t){return arguments.length?(l=t*t,u):Math.sqrt(l)},u.theta=function(t){return arguments.length?(s=t*t,u):Math.sqrt(s)},u}(),f=(function(t){var e,n,r,i,a,o,l=Eq,s=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},u=bC(30),c=1;function f(r){for(var i=0,l=t.length;i<c;++i)for(var s,u,f,p,d,h,y,g=0;g<l;++g)u=(s=t[g]).source,h=((h=Math.sqrt((p=(f=s.target).x+f.vx-u.x-u.vx||bT(o))*p+(d=f.y+f.vy-u.y-u.vy||bT(o))*d))-n[g])/h*r*e[g],p*=h,d*=h,f.vx-=p*(y=a[g]),f.vy-=d*y,u.vx+=p*(y=1-y),u.vy+=d*y}function p(){if(r){var o,s,u=r.length,c=t.length,f=new Map(r.map((t,e)=>[l(t,e,r),t]));for(o=0,i=Array(u);o<c;++o)(s=t[o]).index=o,"object"!=typeof s.source&&(s.source=EG(f,s.source)),"object"!=typeof s.target&&(s.target=EG(f,s.target)),i[s.source.index]=(i[s.source.index]||0)+1,i[s.target.index]=(i[s.target.index]||0)+1;for(o=0,a=Array(c);o<c;++o)s=t[o],a[o]=i[s.source.index]/(i[s.source.index]+i[s.target.index]);e=Array(c),d(),n=Array(c),h()}}function d(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+s(t[n],n,t)}function h(){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,o=e,p()},f.links=function(e){return arguments.length?(t=e,p(),f):t},f.id=function(t){return arguments.length?(l=t,f):l},f.iterations=function(t){return arguments.length?(c=+t,f):c},f.strength=function(t){return arguments.length?(s="function"==typeof t?t:bC(+t),d(),f):s},f.distance=function(t){return arguments.length?(u="function"==typeof t?t:bC(+t),h(),f):u},f})(i).id(y3(u));
10"function"==typeof o&&c.strength(o),"function"==typeof l&&f.strength(l);let p=bw(r).force("link",f).force("charge",c);a?p.force("center",function(t,e){var n,r=1;function i(){var i,a,o=n.length,l=0,s=0;for(i=0;i<o;++i)l+=(a=n[i]).x,s+=a.y;for(l=(l/o-t)*r,s=(s/o-e)*r,i=0;i<o;++i)a=n[i],a.x-=l,a.y-=s}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}()):p.force("x",bN()).force("y",bI()),p.stop();let d=Math.ceil(Math.log(p.alphaMin())/Math.log(1-p.alphaDecay()));for(let t=0;t<d;t++)p.tick();return{nodesData:r,linksData:i}}({links:y,nodes:g},rO({},EV,a),p),b=dO(u,"link",{items:[t=>({name:"source",value:y3(f)(t.source)}),t=>({name:"target",value:y3(f)(t.target)})]}),x=dO(u,"node",{items:[t=>({name:"key",value:y3(c)(t)})]},!0);return[rO({},EU,{data:v,encode:h,labels:l,style:rX(i,"link"),tooltip:b,animate:d_(s,"link")}),rO({},EX,{data:m,encode:Object.assign({},d),scale:r,style:rX(i,"node"),tooltip:x,labels:[Object.assign(Object.assign({},EK),rX(i,"label")),...o],animate:d_(s,"link")})]};function EJ(t,e){return t.parent===e.parent?1:2}function E0(t){var e=t.children;return e?e[0]:t.t}function E1(t){var e=t.children;return e?e[e.length-1]:t.t}function E2(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 E5(){var t=EJ,e=1,n=1,r=null;function i(i){var s=function(t){for(var e,n,r,i,a,o=new E2(t,0),l=[o];e=l.pop();)if(r=e._.children)for(e.children=Array(a=r.length),i=a-1;i>=0;--i)l.push(n=e.children[i]=new E2(r[i],i)),n.parent=e;return(o.parent=new E2(null,0)).children=[o],o}(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),r)i.eachBefore(l);else{var u=i,c=i,f=i;i.eachBefore(function(t){t.x<u.x&&(u=t),t.x>c.x&&(c=t),t.depth>f.depth&&(f=t)});var p=u===c?1:t(u,c)/2,d=p-u.x,h=e/(c.x+p+d),y=n/(f.depth||1);i.eachBefore(function(t){t.x=(t.x+d)*h,t.y=t.depth*y})}return i}function a(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,a=i.length;--a>=0;)e=i[a],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a,o,l=e,s=e,u=n,c=l.parent.children[0],f=l.m,p=s.m,d=u.m,h=c.m;u=E1(u),l=E0(l),u&&l;)c=E0(c),(s=E1(s)).a=e,(o=u.z+d-l.z-f+t(u._,l._))>0&&(function(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}((i=u,a=r,i.a.parent===e.parent?i.a:a),e,o),f+=o,p+=o),d+=u.m,f+=l.m,h+=c.m,p+=s.m;u&&!E1(s)&&(s.t=u,s.m+=d-p),l&&!E0(c)&&(c.t=l,c.m+=f-h,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(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 E3(t,e){return t.parent===e.parent?1:2}function E4(t,e){return t+e.x}function E6(t,e){return Math.max(t,e.y)}function E8(){var t=E3,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter(function(e){var n=e.children;n?(e.x=n.reduce(E4,0)/n.length,e.y=1+n.reduce(E6,0)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)});var l=function(t){for(var e;e=t.children;)t=e[0];return t}(i),s=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),u=l.x-t(l,s)/2,c=s.x+t(s,l)/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)/(c-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}EQ.props={},E2.prototype=Object.create(h3.prototype);let E9=t=>e=>n=>{let{field:r="value",nodeSize:i,separation:a,sortBy:o,as:l=["x","y"]}=e,[s,u]=l,c=hJ(n,t=>t.children).sum(t=>t[r]).sort(o),f=t();f.size([1,1]),i&&f.nodeSize(i),a&&f.separation(a),f(c);let p=[];c.each(t=>{t[s]=t.x,t[u]=t.y,t.name=t.data.name,p.push(t)});let d=c.links();return d.forEach(t=>{t[s]=[t.source[s],t.target[s]],t[u]=[t.source[u],t.target[u]]}),{nodes:p,edges:d}},E7=t=>E9(E8)(t);E7.props={};let St=t=>E9(E5)(t);St.props={};let Se={sortBy:(t,e)=>e.value-t.value},Sn={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},Sr={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},Si={text:"",fontSize:10},Sa=t=>{let{data:e,encode:n={},scale:r={},style:i={},layout:a={},nodeLabels:o=[],linkLabels:l=[],animate:s={},tooltip:u={}}=t,c=null==n?void 0:n.value,{nodes:f,edges:p}=St(Object.assign(Object.assign(Object.assign({},Se),a),{field:c}))(e),d=dO(u,"node",{title:"name",items:["value"]},!0),h=dO(u,"link",{title:"",items:[t=>({name:"source",value:t.source.name}),t=>({name:"target",value:t.target.name})]});return[rO({},Sr,{data:p,encode:rX(n,"link"),scale:rX(r,"link"),labels:l,style:Object.assign({stroke:"#999"},rX(i,"link")),tooltip:h,animate:d_(s,"link")}),rO({}
10,Sn,{data:f,scale:rX(r,"node"),encode:rX(n,"node"),labels:[Object.assign(Object.assign({},Si),rX(i,"label")),...o],style:Object.assign({},rX(i,"node")),tooltip:d,animate:d_(s,"node")})]};function So(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 Sl(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 Ss(t,e){for(var n=0;n<e.length;++n)if(!Sl(t,e[n]))return!1;return!0}function Su(t,e){var n=t.x,r=t.y,i=t.r,a=e.x,o=e.y,l=e.r,s=a-n,u=o-r,c=l-i,f=Math.sqrt(s*s+u*u);return{x:(n+a+s/f*c)/2,y:(r+o+u/f*c)/2,r:(f+i+l)/2}}function Sc(t,e,n){var r=t.x,i=t.y,a=t.r,o=e.x,l=e.y,s=e.r,u=n.x,c=n.y,f=n.r,p=r-o,d=r-u,h=i-l,y=i-c,g=s-a,m=f-a,v=r*r+i*i-a*a,b=v-o*o-l*l+s*s,x=v-u*u-c*c+f*f,O=d*h-p*y,w=(h*x-y*b)/(2*O)-r,M=(y*g-h*m)/O,_=(d*b-p*x)/(2*O)-i,k=(p*m-d*g)/O,j=M*M+k*k-1,A=2*(a+w*M+_*k),E=w*w+_*_-a*a,S=-(Math.abs(j)>1e-6?(A+Math.sqrt(A*A-4*j*E))/(2*j):E/A);return{x:r+w+M*S,y:i+_+k*S,r:S}}function Sf(t,e,n){var r,i,a,o,l=t.x-e.x,s=t.y-e.y,u=l*l+s*s;u?(i=e.r+n.r,i*=i,o=t.r+n.r,i>(o*=o)?(r=(u+o-i)/(2*u),a=Math.sqrt(Math.max(0,o/u-r*r)),n.x=t.x-r*l-a*s,n.y=t.y-r*s+a*l):(r=(u+i-o)/(2*u),a=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*l-a*s,n.y=e.y+r*s+a*l)):(n.x=e.x+n.r,n.y=e.y)}function Sp(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 Sd(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function Sh(t){this._=t,this.next=null,this.previous=null}function Sy(t){return Math.sqrt(t.value)}function Sg(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function Sm(t,e,n){return function(r){if(i=r.children){var i,a,o,l=i.length,s=t(r)*e||0;if(s)for(a=0;a<l;++a)i[a].r+=s;if(o=function(t,e){var n,r,i,a,o,l,s,u,c,f,p,d;if(!(a=(t="object"==typeof(d=t)&&"length"in d?d:Array.from(d)).length))return 0;if((n=t[0]).x=0,n.y=0,!(a>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(a>2))return n.r+r.r;Sf(r,n,i=t[2]),n=new Sh(n),r=new Sh(r),i=new Sh(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;e:for(s=3;s<a;++s){Sf(n._,r._,i=t[s]),i=new Sh(i),u=r.next,c=n.previous,f=r._.r,p=n._.r;do if(f<=p){if(Sp(u._,i._)){r=u,n.next=r,r.previous=n,--s;continue e}f+=u._.r,u=u.next}else{if(Sp(c._,i._)){(n=c).next=r,r.previous=n,--s;continue e}p+=c._.r,c=c.previous}while(u!==c.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,o=Sd(n);(i=i.next)!==r;)(l=Sd(i))<o&&(n=i,o=l);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(s=0,i=function(t,e){for(var n,r,i=0,a=(t=function(t,e){let n=t.length,r,i;for(;n;)i=e()*n--|0,r=t[n],t[n]=t[i],t[i]=r;return t}(Array.from(t),e)).length,o=[];i<a;)n=t[i],r&&Sl(r,n)?++i:(r=function(t){switch(t.length){case 1:var e;return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return Su(t[0],t[1]);case 3:return Sc(t[0],t[1],t[2])}}(o=function(t,e){var n,r;if(Ss(e,t))return[e];for(n=0;n<t.length;++n)if(So(e,t[n])&&Ss(Su(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(So(Su(t[n],t[r]),e)&&So(Su(t[n],e),t[r])&&So(Su(t[r],e),t[n])&&Ss(Sc(t[n],t[r],e),t))return[t[n],t[r],e];throw Error()}(o,n)),i=0);return r}(n,e);s<a;++s)n=t[s],n.x-=i.x,n.y-=i.y;return i.r}(i,n),s)for(a=0;a<l;++a)i[a].r-=s;r.r=o+s}}}function Sv(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)}}Sa.props={};var Sb=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let Sx=(t,e)=>({size:[t,e],padding:0,sort:(t,e)=>e.value-t.value}),SO=(t,e,n)=>({type:"point",axis:!1,legend:!1,scale:{x:{domain:[0,t]},y:{domain:[0,e]},size:{type:"identity"}},encode:{x:"x",y:"y",size:"r",shape:"point"},style:{fill:n.color?void 0:t=>0===t.height?"#ddd":"#fff",stroke:n.color?void 0:t=>0===t.height?"":"#000"}}),Sw={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>2*t.r},SM={title:t=>t.data.name,items:[{field:"value"}]},S_=(t,e,n)=>{let{value:r}=n,i=(0,rm.Z)(t)?Mt().path(e.path)(t):hJ(t);return r?i.sum(t=>y3(r)(t)).sort(e.sort):i.count(),(function(){var t=null,e=1,n=1,r=Mc;function i(i){let a;let o=(a=1,()=>(a=(1664525*a+1013904223)%4294967296)/4294967296);return i.x=e/2,i.y=n/2,t?i.eachBefore(Sg(t)).eachAfter(Sm(r,.5,o)).eachBefore(Sv(1)):i.eachBefore(Sg(Sy)).eachAfter(Sm(Mc,1,o)).eachAfter(Sm(r,i.r/Math.min(e,n),o)).eachBefore(Sv(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=w5(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:Mf(+t),i):r},i})().size(e.size).padding(e.padding)(i),i.descendants()},Sk=(t,e)=>{let{width:n,height:r}=e,{data:i,encode:a={},scale:o={},style:l={},layout:s={},labels:u=[],tooltip:c={}}
10=t,f=Sb(t,["data","encode","scale","style","layout","labels","tooltip"]),p=SO(n,r,a),d=S_(i,rO({},Sx(n,r),s),rO({},p.encode,a)),h=rX(l,"label");return rO({},p,Object.assign(Object.assign({data:d,encode:a,scale:o,style:l,labels:[Object.assign(Object.assign({},Sw),h),...u]},f),{tooltip:dw(c,SM),axis:!1}))};function Sj(t){return t.target.depth}function SA(t,e){return t.sourceLinks.length?t.depth:e-1}function SE(t){return function(){return t}}function SS(t,e){return SC(t.source,e.source)||t.index-e.index}function SP(t,e){return SC(t.target,e.target)||t.index-e.index}function SC(t,e){return t.y0-e.y0}function ST(t){return t.value}function SR(t){return t.index}function SL(t){return t.nodes}function SN(t){return t.links}function SI(t,e){let n=t.get(e);if(!n)throw Error("missing: "+e);return n}function SF({nodes:t}){for(let e of t){let t=e.y0,n=t;for(let n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(let t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}Sk.props={};let SB={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:t=>t.nodes,links:t=>t.links,nodeSort:void 0,linkSort:void 0,iterations:6},SD={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?dv(t.sourceLinks,Sj)-1:0},justify:SA},Sz=t=>e=>{let{nodeId:n,nodeSort:r,nodeAlign:i,nodeWidth:a,nodePadding:o,nodeDepth:l,nodes:s,links:u,linkSort:c,iterations:f}=Object.assign({},SB,t),p=(function(){let t,e,n,r=0,i=0,a=1,o=1,l=24,s=8,u,c=SR,f=SA,p=SL,d=SN,h=6;function y(y){let m={nodes:p(y),links:d(y)};return function({nodes:t,links:e}){t.forEach((t,e)=>{t.index=e,t.sourceLinks=[],t.targetLinks=[]});let r=new Map(t.map(t=>[c(t),t]));if(e.forEach((t,e)=>{t.index=e;let{source:n,target:i}=t;"object"!=typeof n&&(n=t.source=SI(r,n)),"object"!=typeof i&&(i=t.target=SI(r,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}),null!=n)for(let{sourceLinks:e,targetLinks:r}of t)e.sort(n),r.sort(n)}(m),function({nodes:t}){for(let e of t)e.value=void 0===e.fixedValue?Math.max(iI(e.sourceLinks,ST),iI(e.targetLinks,ST)):e.fixedValue}(m),function({nodes:e}){let n=e.length,r=new Set(e),i=new Set,a=0;for(;r.size;){if(r.forEach(t=>{for(let{target:e}of(t.depth=a,t.sourceLinks))i.add(e)}),++a>n)throw Error("circular link");r=i,i=new Set}if(t){let n;let r=Math.max(iF(e,t=>t.depth)+1,0);for(let i=0;i<e.length;i++)(n=e[i]).depth=t.call(null,n,r)}}(m),function({nodes:t}){let e=t.length,n=new Set(t),r=new Set,i=0;for(;n.size;){if(n.forEach(t=>{for(let{source:e}of(t.height=i,t.targetLinks))r.add(e)}),++i>e)throw Error("circular link");n=r,r=new Set}}(m),function(t){let c=function({nodes:t}){let n=Math.max(iF(t,t=>t.depth)+1,0),i=(a-r-l)/(n-1),o=Array(n).fill(0).map(()=>[]);for(let e of t){let t=Math.max(0,Math.min(n-1,Math.floor(f.call(null,e,n))));e.layer=t,e.x0=r+t*i,e.x1=e.x0+l,o[t]?o[t].push(e):o[t]=[e]}if(e)for(let t of o)t.sort(e);return o}(t);u=Math.min(s,(o-i)/(iF(c,t=>t.length)-1)),function(t){let e=dv(t,t=>(o-i-(t.length-1)*u)/iI(t,ST));for(let r of t){let t=i;for(let n of r)for(let r of(n.y0=t,n.y1=t+n.value*e,t=n.y1+u,n.sourceLinks))r.width=r.value*e;t=(o-t+u)/(r.length+1);for(let e=0;e<r.length;++e){let n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}(function(t){if(void 0===n)for(let{sourceLinks:e,targetLinks:n}of t)e.sort(SP),n.sort(SS)})(r)}}(c);for(let t=0;t<h;++t){let n=Math.pow(.99,t),r=Math.max(1-n,(t+1)/h);(function(t,n,r){for(let i=t.length,a=i-2;a>=0;--a){let i=t[a];for(let t of i){let e=0,r=0;for(let{target:n,value:i}of t.sourceLinks){let a=i*(n.layer-t.layer);e+=function(t,e){let n=e.y0-(e.targetLinks.length-1)*u/2;for(let{source:r,width:i}of e.targetLinks){if(r===t)break;n+=i+u}for(let{target:r,width:i}of t.sourceLinks){if(r===e)break;n-=i}return n}(t,n)*a,r+=a}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,b(t)}void 0===e&&i.sort(SC),i.length&&g(i,r)}})(c,n,r),function(t,n,r){for(let i=1,a=t.length;i<a;++i){let a=t[i];for(let t of a){let e=0,r=0;for(let{source:n,value:i}of t.targetLinks){let a=i*(t.layer-n.layer);e+=function(t,e){let n=t.y0-(t.sourceLinks.length-1)*u/2;for(let{target:r,width:i}of t.sourceLinks){if(r===e)break;n+=i+u}for(let{source:r,width:i}of e.targetLinks){if(r===t)break;n-=i}return n}(n,t)*a,r+=a}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,b(t)}void 0===e&&a.sort(SC),a.length&&g(a,r)}}(c,n,r)}}(m),SF(m),m}function g(t,e){let n=t.length>>1,r=t[n];v(t,r.y0-u,n-1,e),m(t,r.y1+u,n+1,e),v(t,o,t.length-1,e),m(t,i,0,e)}function m(t,e,n,r){for(;n<t.length;++n){let i=t[n],a=(e-i.y0)*r;a>1e-6&&(i.y0+=a,i.y1+=a),e=i.y1+u}}function v(t,e,n,r){for(;n>=0;--n){let i=t[n],a=(i.y1-e)*r;a>1e-6&&(i.y0-=a,i.y1-=a),e=i.y0-u}}function b({sourceLinks:t,targetLinks:e}){if(void 0===n){for(let{source:{sourceLinks:t}}of e)t.sort(SP);for(let{target:{targetLinks:e}}of t)e.sort(SS)}}return y.update=function(t){return SF(t),t},y.nodeId=function(t){return arguments.length?(c="function"==typeof t?t:SE(t),y):c},y.nodeAlign=function(t){return arguments.length?(f="function"==typeof t?t:SE(t),y):f},y.nodeDepth=function(e){return arguments.length?(t=e,y):t},y.nodeSort=function(t){return arguments.length?(e=t,y):e},y.nodeWidth=function(t){return arguments.length?(l=+t,y):l},y.nodePadding=function(t){return arguments.length?(s=u=+t,y):s},y.nodes=function(t){return arguments.length?(p="function"==typeof t?t:SE(t),y):p},y.links=function(t){return arguments.length?(d="function"==typeof t?t:SE(t),y):d},y.linkSort=function(t){return arguments.length?(n=t,y):n},y.size=function(t){return arguments.length?(r=i=0,a=+t[0],o=+t[1],y):[a-r,o-i]},y.extent=function(t){return arguments.length?(r=+t[0][0],a=+t[1][0],i=+t[0][1],o=+t[1][1],y):[[r,i],[a,o]]},y.iterations=function(t){return arguments.length?(h=+t,y):h},y})().nodeSort(r).linkSort(c).links(u).nodes(s).nodeWidth(a).nodePadding(o).nodeDepth(l).nodeAlign(function(t){let e=typeof t;return"string"===e?SD[t]||SA:"function"===e?t:SA}(i)).iterations(f).extent([[0,0],[1,1]]);"function"==typeof n&&p.nodeId(n);let{nodes:d,links:h}=p(e);return{nodes:d.map(t=>{let{x0:e,x1:n,y0:r,y1:i}=t;return Object.assign(Object.assign({},t),{x:[e,n,n,e],y:[r,r,i,i]})}),links:h.map(t=>{let{source:e,target:n}=t,r=e.x1,i=n.x0,a=t.width/2;return Object.assign(Object.assign({},t),{x:[r,r,i,i],y:[t.y0+a,t.y0-a,t.y1+a,t.y1-a]})})}};Sz.props={};var S$=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let SW={nodeId:t=>t.key,nodeWidth:.02,nodePadding:.02},SZ={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},SH={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},Sq={textAlign:t=>t.x[0]<.5?"start":"end",position:t=>t.x[0]<.5?"right":"left",fontSize:10},SG=t=>{let{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:l=[],animate:s={},tooltip:u={},interaction:c,state:f={},viewStyle:p={}}=t,{links:d,nodes:h}=y6(e,n);if(!d||0===d.length)return[rO({},SZ,{data:[],encode:{},scale:r,style:rX(i,"node"),viewStyle:p,labels:[],tooltip:!1,animate:!1,axis:!1,interaction:c,state:{}}),rO({},SH,{data:[],encode:{},labels:[],style:rX(i,"link"),tooltip:!1,animate:!1,interaction:c,state:{}})];let y=rX(n,"node"),g=rX(n,"link"),{key:m=t=>t.key,color:v=m}=y,{links:b,nodes:x}=Sz(Object.assign(Object.assign(Object.assign({},SW),{nodeId:y3(m)}),a))({links:d,nodes:h}),O=rX(i,"label"),{text:w=m,spacing:M=5}=O,_=S$(O,["text","spacing"]),k=y3(m),j=dO(u,"node",{title:k,items:[{field:"value"}]},!0),A=dO(u,"link",{title:"",items:[t=>({name:"source",value:k(t.source)}),t=>({name:"target",value:k(t.target)})]}),[E,S]=Object.entries(f).reduce((t,[e,n])=>{let r=rQ(n,"node","link"),i=rX(n,"node");t[0][e]=Object.assign(Object.assign({},r),i);let a=rX(n,"link");return t[1][e]=Object.assign(Object.assign({},r),a),t},[{},{}]);return[rO({},SZ,{data:x,encode:Object.assign(Object.assign({},y),{color:v}),scale:r,style:rX(i,"node"),viewStyle:p,labels:[Object.assign(Object.assign(Object.assign({},Sq),{text:w,dx:t=>t.x[0]<.5?M:-M}),_),...o],tooltip:j,animate:d_(s,"node"),axis:!1,interaction:c,state:E}),rO({},SH,{data:b,encode:g,labels:l,style:Object.assign({fill:g.color?void 0:"#aaa",lineWidth:0},rX(i,"link")),tooltip:A,animate:d_(s,"link"),interaction:c,state:S})]};function SY(t,e){return e.value-t.value}function SV(t,e){return e.frequency-t.frequency}function SU(t,e){return`${t.id}`.localeCompare(`${e.id}`)}function SX(t,e){return`${t.name}`.localeCompare(`${e.name}`)}SG.props={};let SK={y:0,thickness:.05,weight:!1,marginRatio:.1,id:t=>t.id,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null},SQ=t=>e=>(function(t){let{y:e,thickness:n,weight:r,marginRatio:i,id:a,source:o,target:l,s
10ourceWeight:s,targetWeight:u,sortBy:c}=Object.assign(Object.assign({},SK),t);return function(t){let f=t.nodes.map(t=>Object.assign({},t)),p=t.edges.map(t=>Object.assign({},t));return function(t,e){e.forEach(t=>{t.source=o(t),t.target=l(t),t.sourceWeight=s(t),t.targetWeight=u(t)});let n=rp(e,t=>t.source),r=rp(e,t=>t.target);t.forEach(t=>{t.id=a(t);let e=n.has(t.id)?n.get(t.id):[],i=r.has(t.id)?r.get(t.id):[];t.frequency=e.length+i.length,t.value=iI(e,t=>t.sourceWeight)+iI(i,t=>t.targetWeight)})}(f,p),function(t,e){let n="function"==typeof c?c:K[c];n&&t.sort(n)}(f,0),function(t,a){let o=t.length;if(!o)throw rY("Invalid nodes: it's empty!");if(!r){let n=1/o;return t.forEach((t,r)=>{t.x=(r+.5)*n,t.y=e})}let l=i/(2*o),s=t.reduce((t,e)=>t+=e.value,0);t.reduce((t,r)=>{r.weight=r.value/s,r.width=r.weight*(1-i),r.height=n;let a=l+t,o=a+r.width,u=e-n/2,c=u+n;return r.x=[a,o,o,a],r.y=[u,u,c,c],t+r.width+2*l},0)}(f,0),function(t,n){let i=new Map(t.map(t=>[t.id,t]));if(!r)return n.forEach(t=>{let e=o(t),n=l(t),r=i.get(e),a=i.get(n);r&&a&&(t.x=[r.x,a.x],t.y=[r.y,a.y])});n.forEach(t=>{t.x=[0,0,0,0],t.y=[e,e,e,e]});let a=rp(n,t=>t.source),s=rp(n,t=>t.target);t.forEach(t=>{let{edges:e,width:n,x:r,y:i,value:o,id:l}=t,u=a.get(l)||[],c=s.get(l)||[],f=0;u.map(t=>{let e=t.sourceWeight/o*n;t.x[0]=r[0]+f,t.x[1]=r[0]+f+e,f+=e}),c.forEach(t=>{let e=t.targetWeight/o*n;t.x[3]=r[0]+f,t.x[2]=r[0]+f+e,f+=e})})}(f,p),{nodes:f,edges:p}}})(t)(e);SQ.props={};var SJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let S0={y:0,thickness:.05,marginRatio:.1,id:t=>t.key,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null},S1={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{opacity:1,fillOpacity:1,lineWidth:1}},S2={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1}},S5={position:"outside",fontSize:10},S3=(t,e)=>{let{data:n,encode:r={},scale:i,style:a={},layout:o={},nodeLabels:l=[],linkLabels:s=[],animate:u={},tooltip:c={}}=t,{nodes:f,links:p}=y6(n,r),d=rX(r,"node"),h=rX(r,"link"),{key:y=t=>t.key,color:g=y}=d,{linkEncodeColor:m=t=>t.source}=h,{nodeWidthRatio:v=S0.thickness,nodePaddingRatio:b=S0.marginRatio}=o,x=SJ(o,["nodeWidthRatio","nodePaddingRatio"]),{nodes:O,edges:w}=SQ(Object.assign(Object.assign(Object.assign(Object.assign({},S0),{id:y3(y),thickness:v,marginRatio:b}),x),{weight:!0}))({nodes:f,edges:p}),M=rX(a,"label"),{text:_=y}=M,k=SJ(M,["text"]),j=dO(c,"node",{title:"",items:[t=>({name:t.key,value:t.value})]},!0),A=dO(c,"link",{title:"",items:[t=>({name:`${t.source} -> ${t.target}`,value:t.value})]}),{height:E,width:S}=e,P=Math.min(E,S);return[rO({},S2,{data:w,encode:Object.assign(Object.assign({},h),{color:m}),labels:s,style:Object.assign({fill:m?void 0:"#aaa"},rX(a,"link")),tooltip:A,animate:d_(u,"link")}),rO({},S1,{data:O,encode:Object.assign(Object.assign({},d),{color:g}),scale:i,style:rX(a,"node"),coordinate:{type:"polar",outerRadius:(P-20)/P,startAngle:-(2*Math.PI),endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},S5),{text:_}),k),...l],tooltip:j,animate:d_(u,"node"),axis:!1})]};S3.props={};var S4=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let S6=(t,e)=>({tile:"treemapSquarify",ratio:.5*(1+Math.sqrt(5)),size:[t,e],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,sort:(t,e)=>e.value-t.value,layer:0}),S8=(t,e)=>({type:"rect",axis:!1,encode:{x:"x",y:"y",key:"id",color:t=>t.path[1]},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]}},style:{stroke:"#fff"},state:{active:{opacity:.6},inactive:{opacity:1}}}),S9={fontSize:10,text:t=>oS(t.path),position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.x1-t.x0,isTreemapLabel:!0},S7={title:t=>{var e,n;return null===(n=null===(e=t.path)||void 0===e?void 0:e.join)||void 0===n?void 0:n.call(e,".")},items:[{field:"value"}]},Pt={title:t=>oS(t.path),items:[{field:"value"}]},Pe=(t,e)=>{let{width:n,height:r,options:i}=e,{data:a,encode:o={},scale:l,style:s={},layout:u={},labels:c=[],tooltip:f={}}=t,p=S4(t,["data","encode","scale","style","layout","labels","tooltip"]),d=rl(i,["interaction","treemapDrillDown"])||rl(i,["marks",0,"interaction","treemapDrillDown"]),h=rO({},S6(n,r),u,{layer:d?t=>1===t.depth:u.layer}),[y,g]=Mp(a,h,o),m=rX(s,"label");return rO({},S8(n,r),Object.assign(Object.assign({data:y,scale:l,style:s,labels:[Object.assign(Object.assign(Object.assign({},S9),m),d&&{cursor:"pointer"}),...c]},p),{encode:o,tooltip:dw(f,S7),axis:!1}),d?{interaction:Object.assign(Object.assign({},p.interaction),{treemapDrillDown:d?Object.assign(Object.assign({},d),{originData:g,layout:h}):void 0}),encode:Object.assign({color:t=>oS(t.path)},o),tooltip:dw(f,Pt)}:{})};Pe.props={};var Pn=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function Pr(t,e){return dv(t,t=>e[t])}function Pi(t,e){return iF(t,t=>e[t])}function Pa(t,e){let n=2.5*Po(t,e)-1.5*Ps(t,e);return dv(t,t=>e[t]>=n?e[t]:NaN)}function Po(t,e){return _j(t,.25,t=>e[t])}function Pl(t,e){return _j(t,.5,t=>e[t])}function Ps(t,e){return _j(t,.75,t=>e[t])}function Pu(t,e){let n=2.5*Ps(t,e)-1.5*Po(t,e);return iF(t,t=>e[t]<=n?e[t]:NaN)}function Pc(){return(t,e)=>{let{encode:n}=e,{y:r,x:i}=n,{value:a}=r,{value:o}=i;return[Array.from(rp(t,t=>o[+t]).values()).flatMap(t=>{let e=Pa(t,a),n=Pu(t,a);return t.filter(t=>a[t]<e||a[t]>n)}),e]}}let Pf=t=>{let{data:e,encode:n,style:r={},tooltip:i={},transform:a,animate:o}=t,l=Pn(t,["data","encode","style","tooltip","transform","animate"]),{point:s=!0}=r,u=Pn(r,["point"]),{y:c}
10=n,f={y:c,y1:c,y2:c,y3:c,y4:c},p={y1:Po,y2:Pl,y3:Ps},d=dO(i,"box",{items:[{channel:"y",name:"min"},{channel:"y1",name:"q1"},{channel:"y2",name:"q2"},{channel:"y3",name:"q3"},{channel:"y4",name:"max"}]},!0),h=dO(i,"point",{title:{channel:"x"},items:[{name:"outlier",channel:"y"}]});if(!s)return Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:Pr},p),{y4:Pi})],encode:Object.assign(Object.assign({},n),f),style:u,tooltip:d},l);let y=rX(u,"box"),g=rX(u,"point");return[Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:Pa},p),{y4:Pu})],encode:Object.assign(Object.assign({},n),f),style:y,tooltip:d,animate:d_(o,"box")},l),{type:"point",data:e,transform:[{type:Pc}],encode:n,style:Object.assign({},g),tooltip:h,animate:d_(o,"point")}]};Pf.props={};let Pp=(t,e)=>Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))/2,Pd=(t,e,n)=>{let r=Math.atan2(t[1]-n[1],t[0]-n[0]),i=Math.atan2(e[1]-n[1],e[0]-n[0])-r;return i<0&&(i+=2*Math.PI),i},Ph=(t,e)=>{if(!e)return;let{coordinate:n}=e;if(!(null==n?void 0:n.getCenter))return;let r=n.getCenter();return(n,i,a)=>{let{document:o}=e.canvas,{color:l,index:s}=i,u=o.createElement("g",{}),c=Pp(n[0],n[1]),f=2*Pp(n[0],r),p=Pd(n[3],n[0],r)>Math.PI,d=o.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:[["M",...n[0]],["A",c,c,0,1,0,...n[1]],["A",f+2*c,f+2*c,0,p?1:0,0,...n[2]],["A",c,c,0,1,0===s?0:1,...n[3]],["A",f,f,0,p?1:0,1,...n[0]],["Z"]]},a),oQ(t,["shape","last","first"])),{fill:l||a.color})});return u.appendChild(d),u}};var Py=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let Pg={coordinate:{type:"radial",innerRadius:.9,outerRadius:1,startAngle:-1.1*Math.PI,endAngle:.1*Math.PI},axis:{x:!1},legend:!1,tooltip:!1,encode:{x:"x",y:"y",color:"color"},scale:{color:{range:["#30BF78","#D0D0D0"]}}},Pm={style:{shape:(t,e)=>{let{shape:n,radius:r}=t,i=Py(t,["shape","radius"]),a=rX(i,"pointer"),o=rX(i,"pin"),{shape:l}=a,s=Py(a,["shape"]),{shape:u}=o,c=Py(o,["shape"]),{coordinate:f,theme:p}=e;return(t,e)=>{let n=t.map(t=>f.invert(t)),[a,o,d]=function(t,e){let{transformations:n}=t.getOptions(),[,...r]=n.find(t=>t[0]===e);return r}(f,"polar"),h=f.clone(),{color:y}=e,g=i$({startAngle:a,endAngle:o,innerRadius:d,outerRadius:r});g.push(["cartesian"]),h.update({transformations:g});let m=n.map(t=>h.map(t)),[v,b]=sH(m),[x,O]=f.getCenter(),w=Object.assign(Object.assign({x1:v,y1:b,x2:x,y2:O,stroke:y},s),i),M=Object.assign(Object.assign({cx:x,cy:O,stroke:y}
10,c),i),_=r2(new tk.ZA);return r1(l)||("function"==typeof l?_.append(()=>l(m,e,h,p)):_.append("line").call(sF,w).node()),r1(u)||("function"==typeof u?_.append(()=>u(m,e,h,p)):_.append("circle").call(sF,M).node()),_.node()}},lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},Pv={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},tooltip:!1},Pb=t=>{var e;let{data:n={},scale:r={},style:i={},animate:a={},transform:o=[]}=t,l=Py(t,["data","scale","style","animate","transform"]),{targetData:s,totalData:u,target:c,total:f,scale:p}=function(t,e){let{name:n="score",target:r,total:i,percent:a,thresholds:o=[]}=function(t){if((0,tR.Z)(t)){let e=Math.max(0,Math.min(t,1));return{percent:e,target:e,total:1}}return t}(t),l=a||r,s=a?1:i,u=Object.assign({y:{domain:[0,s]}},e);return o.length?{targetData:[{x:n,y:l,color:"target"}],totalData:o.map((t,e)=>({x:n,y:e>=1?t-o[e-1]:t,color:e})),target:l,total:s,scale:u}:{targetData:[{x:n,y:l,color:"target"}],totalData:[{x:n,y:l,color:"target"},{x:n,y:s-l,color:"total"}],target:l,total:s,scale:u}}(n,r),d=rX(i,"text"),{tooltip:h}=d,y=Py(d,["tooltip"]),g=(e=["pointer","pin"],Object.fromEntries(Object.entries(i).filter(([t])=>e.find(e=>t.startsWith(e))))),m=rX(i,"arc");return[rO({},Pg,Object.assign({type:"interval",transform:[{type:"stackY"}],data:u,scale:p,style:"round"===m.shape?Object.assign(Object.assign({},m),{shape:Ph}):m,animate:"object"==typeof a?rX(a,"arc"):a},l)),rO({},Pg,Pm,Object.assign({type:"point",data:s,scale:p,style:g,animate:"object"==typeof a?rX(a,"indicator"):a},l)),rO({},Pv,{style:Object.assign({text:function(t,{target:e,total:n}){let{content:r}=t;return r?r(e,n):e.toString()}(y,{target:c,total:f})},y),tooltip:h,animate:"object"==typeof a?rX(a,"text"):a})]};Pb.props={};let Px={pin:function(t,e,n){let r=4*n/3,i=Math.max(r,2*n),a=r/2,o=a+e-i/2,l=Math.asin(a/((i-a)*.85)),s=Math.sin(l)*a,u=Math.cos(l)*a,c=t-u,f=o+s,p=o+a/Math.sin(l);return`
11      M ${c} ${f}
12      A ${a} ${a} 0 1 1 ${c+2*u} ${f}
13      Q ${t} ${p} ${t} ${e+i/2}
14      Q ${t} ${p} ${c} ${f}
15      Z 
16    `},rect:function(t,e,n){let r=.618*n;return`
17      M ${t-r} ${e-n}
18      L ${t+r} ${e-n}
19      L ${t+r} ${e+n}
20      L ${t-r} ${e+n}
21      Z
22    `},circle:function(t,e,n){return`
23      M ${t} ${e-n} 
24      a ${n} ${n} 0 1 0 0 ${2*n}
25      a ${n} ${n} 0 1 0 0 ${-(2*n)}
26      Z
27    `},diamond:function(t,e,n){return`
28      M ${t} ${e-n}
29      L ${t+n} ${e}
30      L ${t} ${e+n}
31      L ${t-n} ${e}
32      Z
33    `},triangle:function(t,e,n){return`
34      M ${t} ${e-n}
35      L ${t+n} ${e+n}
36      L ${t-n} ${e+n}
37      Z
38    `}};var PO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let Pw=(t="circle")=>Px[t]||Px.circle,PM=(t,e)=>{if(!e)return;let{coordinate:n}=e,{liquidOptions:r,styleOptions:i}=t,{liquidShape:a,percent:o}=r,{background:l,outline:s={},wave:u={}}=i,c=PO(i,["background","outline","wave"]),{border:f=2,distance:p=0}=s,d=PO(s,["border","distance"]),{length:h=192,count:y=3}=u;return(t,r,i)=>{let{document:s}=e.canvas,{color:u,fillOpacity:g}=i,m=Object.assign(Object.assign({fill:u},i),c),v=s.createElement("g",{}),[b,x]=n.getCenter(),O=n.getSize(),w=Math.min(...O)/2,M=(0,am.Z)(a)?a:Pw(a),_=M(b,x,w,...O),k=M(b,x,w+f/2,...O);if(Object.keys(l).length){let t=s.createElement("path",{style:Object.assign({d:_,fill:"#fff"},l)});v.appendChild(t)}if(o>0){let t=s.createElement("path",{style:{d:k}});v.appendChild(t),v.style.clipPath=t,function(t,e,n,r,i,a,o,l,s,u,c){let{fill:f,fillOpacity:p,opacity:d}=i;for(let i=0;i<r;i++){let h=r<=1?1:i/(r-1),y=function(t,e,n,r,i,a,o){let l=4*Math.ceil(2*t/n*4),s=[],u=0;for(;u<-(2*Math.PI);)u+=2*Math.PI;for(;u>0;)u-=2*Math.PI;let c=a-t+(u=u/Math.PI/2*n)-2*t;s.push(["M",c,e]);let f=0;for(let t=0;t<l;++t){var p;
38let r=t%4,a=(p=t*n/4,0===r?[[p+.5*n/Math.PI/2,i/2],[p+.5*n/Math.PI,i],[p+n/4,i]]:1===r?[[p+.5*n/Math.PI/2*(Math.PI-2),i],[p+.5*n/Math.PI/2*(Math.PI-1),i/2],[p+n/4,0]]:2===r?[[p+.5*n/Math.PI/2,-i/2],[p+.5*n/Math.PI,-i],[p+n/4,-i]]:[[p+.5*n/Math.PI/2*(Math.PI-2),-i],[p+.5*n/Math.PI/2*(Math.PI-1),-i/2],[p+n/4,0]]);s.push(["C",a[0][0]+c,-a[0][1]+e,a[1][0]+c,-a[1][1]+e,a[2][0]+c,-a[2][1]+e]),t===l-1&&(f=a[2][0])}return s.push(["L",f+c,o+t]),s.push(["L",c,o+t]),s.push(["Z"]),s}(l,o+l*n,s,0,l/40,t,e),g=c.createElement("path",{style:{d:y,fill:f,opacity:(.2+.7*h)*Number(d||p)}});a.appendChild(g);try{if(!1===u)return;let t=[{transform:"translate(0, 0)"},{transform:`translate(${2*s}, 0)`}];g.animate(t,{duration:2*(2500+2500*h),iterations:1/0})}catch(t){console.warn("off-screen group animate error!")}}}(b,x,1-o,y,m,v,t.getBBox().y,2*w,h,!0,s)}let j=s.createElement("path",{style:{d:_,fill:"transparent",lineWidth:f+2*p,stroke:"#fff"}}),A=s.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:_,stroke:u,strokeOpacity:g,lineWidth:f},m),d),{fill:"transparent"})});return v.appendChild(j),v.appendChild(A),v}};PM.props={};var P_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let Pk={axis:{x:!1,y:!1},legend:!1,tooltip:!1,encode:{x:"type",y:"percent"},scale:{y:{domain:[0,1]}},style:{shape:PM},animate:{enter:{type:"fadeIn"}}},Pj={type:"text",style:{x:"50%",y:"50%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},animate:{enter:{type:"fadeIn"}}},PA=t=>{let{data:e={},style:n={},animate:r}=t,i=P_(t,["data","style","animate"]),a=Math.max(0,(0,tR.Z)(e)?e:null==e?void 0:e.percent),o=[{percent:a,type:"liquid"}],l=Object.assign(Object.assign({},rX(n,"text")),rX(n,"content")),s=rX(n,"outline"),u=rX(n,"wave"),c=rX(n,"background");return[rO({},Pk,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:a,liquidShape:null==n?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:s,wave:u,background:c})},animate:r},i)),rO({},Pj,{style:Object.assign({text:`${iZ(100*a)} %`},l),animate:r})]};function PE(t){let e=Array(t);for(let n=0;n<t;++n)e[n]=0;return e}function PS(t,e){return PE(t).map(()=>PE(e))}function PP(t,e){let n=0;for(let r=0;r<t.length;++r)n+=t[r]*e[r];return n}function PC(t){return Math.sqrt(PP(t,t))}function PT(t,e,n){for(let r=0;r<e.length;++r)t[r]=e[r]*n}function PR(t,e,n,r,i){for(let a=0;a<t.length;++a)t[a]=e*n[a]+r*i[a]}function PL(t,e){let n=function(t){let e=[];for(let n=0;n<t.length;++n)for(let r=n+1;r<t.length;++r){let i=PB(t[n],t[r]);for(let t=0;t<i.length;++t){let a=i[t];a.parentIndex=[n,r],e.push(a)}}return e}(t),r=n.filter(function(e){return function(t,e){for(let n=0;n<e.length;++n)if(PI(t,e[n])>e[n].radius+1e-10)return!1;return!0}(e,t)}),i=0,a=0,o,l=[];
38if(r.length>1){let e=function(t){let e={x:0,y:0};for(let n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}(r);for(o=0;o<r.length;++o){let t=r[o];t.angle=Math.atan2(t.x-e.x,t.y-e.y)}r.sort(function(t,e){return e.angle-t.angle});let n=r[r.length-1];for(o=0;o<r.length;++o){let e=r[o];a+=(n.x+e.x)*(e.y-n.y);let s={x:(e.x+n.x)/2,y:(e.y+n.y)/2},u=null;for(let r=0;r<e.parentIndex.length;++r)if(n.parentIndex.indexOf(e.parentIndex[r])>-1){let i=t[e.parentIndex[r]],a=Math.atan2(e.x-i.x,e.y-i.y),o=Math.atan2(n.x-i.x,n.y-i.y),l=o-a;l<0&&(l+=2*Math.PI);let c=o-l/2,f=PI(s,{x:i.x+i.radius*Math.sin(c),y:i.y+i.radius*Math.cos(c)});f>2*i.radius&&(f=2*i.radius),(null===u||u.width>f)&&(u={circle:i,width:f,p1:e,p2:n})}null!==u&&(l.push(u),i+=PN(u.circle.radius,u.width),n=e)}}else{let e=t[0];for(o=1;o<t.length;++o)t[o].radius<e.radius&&(e=t[o]);let n=!1;for(o=0;o<t.length;++o)if(PI(t[o],e)>Math.abs(e.radius-t[o].radius)){n=!0;break}n?i=a=0:(i=e.radius*e.radius*Math.PI,l.push({circle:e,p1:{x:e.x,y:e.y+e.radius},p2:{x:e.x-1e-10,y:e.y+e.radius},width:2*e.radius}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=l,e.innerPoints=r,e.intersectionPoints=n),i+a}function PN(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function PI(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function PF(t,e,n){return n>=t+e?0:n<=Math.abs(t-e)?Math.PI*Math.min(t,e)*Math.min(t,e):PN(t,t-(n*n-e*e+t*t)/(2*n))+PN(e,e-(n*n-t*t+e*e)/(2*n))}function PB(t,e){let n=PI(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),l=t.x+a*(e.x-t.x)/n,s=t.y+a*(e.y-t.y)/n,u=-(e.y-t.y)*(o/n),c=-(e.x-t.x)*(o/n);return[{x:l+u,y:s-c},{x:l-u,y:s+c}]}function PD(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):function(t,e,n,r){let i=(r=r||{}).maxIterations||100,a=r.tolerance||1e-10,o=t(e),l=t(n),s=n-e;if(o*l>0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===l)return n;for(let n=0;n<i;++n){let n=e+(s/=2),r=t(n);if(r*o>=0&&(e=n),Math.abs(s)<a||0===r)return n}return e+s}(function(r){return PF(t,e,r)-n},0,t+e)}function Pz(t,e){let n=function(t,e){let n;let r=e&&e.lossFunction?e.lossFunction:P$,i={},a={};for(let e=0;e<t.length;++e){let r=t[e];1==r.sets.length&&(i[n=r.sets[0]]={x:1e10,y:1e10,rowid:Object.keys(i).length,size:r.size,radius:Math.sqrt(r.size/Math.PI)},a[n]=[])}t=t.filter(function(t){return 2==t.sets.length});for(let e=0;e<t.length;++e){let n=t[e],r=n.hasOwnProperty("weight")?n.weight:1,o=n.sets[0],l=n.sets[1];n.size+1e-10>=Math.min(i[o].size,i[l].size)&&(r=0),a[o].push({set:l,size:n.size,weight:r}),a[l].push({set:o,size:n.size,weight:r})}let o=[];for(n in a)if(a.hasOwnProperty(n)){let t=0;for(let e=0;e<a[n].length;++e)t+=a[n][e].size*a[n][e].weight;o.push({set:n,size:t})}function l(t,e){return e.size-t.size}o.sort(l);let s={};function u(t){return t.set in s}function c(t,e){i[e].x=t.x,i[e].y=t.y,s[e]=!0}c({x:0,y:0},o[0].set);for(let e=1;e<o.length;++e){let s=o[e].set,f=a[s].filter(u);if(n=i[s],f.sort(l),0===f.length)throw"ERROR: missing pairwise overlap information";let p=[];for(let t=0;t<f.length;++t){let e=i[f[t].set],r=PD(n.radius,e.radius,f[t].size);p.push({x:e.x+r,y:e.y}),p.push({x:e.x-r,y:e.y}),p.push({y:e.y+r,x:e.x}),p.push({y:e.y-r,x:e.x});for(let a=t+1;a<f.length;++a){let t=i[f[a].set],o=PD(n.radius,t.radius,f[a].size),l=PB({x:e.x,y:e.y,radius:r},{x:t.x,y:t.y,radius:o});for(let t=0;t<l.length;++t)p.push(l[t])}}let d=1e50,h=p[0];for(let e=0;e<p.length;++e){i[s].x=p[e].x,i[s].y=p[e].y;let n=r(i,t);n<d&&(d=n,h=p[e])}c(h,s)}return i}(t,e),r=e.lossFunction||P$;if(t.length>=8){let i=function(t,e){let n,r,i;let a=(e=e||{}).restarts||10,o=[],l={};for(n=0;n<t.length;++n){let e=t[n];1==e.sets.length&&(l[e.sets[0]]=o.length,o.push(e))}let s=function(t,e,n){let r=PS(e.length,e.length),i=PS(e.length,e.length);return t.filter(function(t){return 2==t.sets.length}).map(function(t){let a=n[t.sets[0]],o=n[t.sets[1]],l=PD(Math.sqrt(e[a].size/Math.PI),Math.sqrt(e[o].size/Math.PI),t.size);r[a][o]=r[o][a]=l;let s=0;t.size+1e-10>=Math.min(e[a].size,e[o].size)?s=1:t.size<=1e-10&&(s=-1),i[a][o]=i[o][a]=s}),{distances:r,constraints:i}}(t,o,l),u=s.distances,c=s.constraints,f=PC(u.map(PC))/u.length;u=u.map(function(t){return t.map(function(t){return t/f})});let p=function(t,e){return function(t,e,n,r){let i=0,a;for(a=0;a<e.length;++a)e[a]=0;for(a=0;a<n.length;++a){let o=t[2*a],l=t[2*a+1];for(let s=a+1;s<n.length;++s){let u=t[2*s],c=t[2*s+1],f=n[a][s],p=r[a][s],d=(u-o)*(u-o)+(c-l)*(c-l),h=Math.sqrt(d),y=d-f*f;p>0&&h<=f||p<0&&h>=f||(i+=2*y*y,e[2*a]+=4*y*(o-u),e[2*a+1]+=4*y*(l-c),e[2*s]+=4*y*(u-o),e[2*s+1]+=4*y*(c-l))}}return i}(t,e,u,c)};for(n=0;n<a;++n)i=function(t,e,n){let r,i={x:e.slice(),fx:0,fxprime:e.slice()},a={x:e.slice(),fx:0,fxprime:e.slice()},o=e.slice(),l=1,s=(n=n||{}).maxIterations||20*e.length;i.fx=t(i.x,i.fxprime);let u=i.fxprime.slice();PT(u,i.fxprime,-1);for(let e=0;e<s;++e){if(l=function(t,e,n,r,i,a,o){let l=n.fx,s=PP(n.fxprime,e),u=l,c=l,f=s,p=0;function d(c,p,d){for(let h=0;h<16;++h)if(i=(c+p)/2,PR(r.x,1,n.x,i,e),u=r.fx=t(r.x,r.fxprime),f=PP(r.fxprime,e),u>l+a*i*s||u>=d)p=i;else{if(Math.abs(f)<=-o*s)return i;f*(p-c)>=0&&(p=c),c=i,d=u}return 0}i=i||1,a=a||1e-6,o=o||.1;for(let h=0;h<10;++h){if(PR(r.x,1,n.x,i,e),u=r.fx=t(r.x,r.fxprime),f=PP(r.fxprime,e),u>l+a*i*s||h&&u>=c)return d(p,i,c);if(Math.abs(f)<=-o*s)break;if(f>=0)return d(i,p,u);c=u,p=i,i*=2}return i}(t,u,i,a,l),n.history&&n.history.push({x:i.x.slice(),fx:i.fx,fxprime:i.fxprime.slice(),alpha:l}),l){PR(o,1,a.fxprime,-1,i.fxprime);let t=PP(i.fxprime,i.fxprime);PR(u,Math.max(0,PP(o,a.fxprime)/t),u,-1,a.fxprime),r=i,i=a,a=r}else PT(u,i.fxprime,-1);if(1e-5>=PC(i.fxprime))break}return n.history&&n.history.push({x:i.x.slice(),fx:i.fx,fxprime:i.fxprime.slice(),alpha:l}),i}(p,PE(2*u.length).map(Math.random),e),(!r||i.fx<r.fx)&&(r=i);let d=r.x,h={};for(n=0;n<o.length;
38++n){let t=o[n];h[t.sets[0]]={x:d[2*n]*f,y:d[2*n+1]*f,radius:Math.sqrt(t.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)PT(e.history[n].x,f);return h}(t,e);r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function P$(t,e){let n=0;for(let r=0;r<e.length;++r){let i;let a=e[r];if(1!=a.sets.length){if(2==a.sets.length){let e=t[a.sets[0]],n=t[a.sets[1]];i=PF(e.radius,n.radius,PI(e,n))}else i=PL(a.sets.map(function(e){return t[e]}));n+=(a.hasOwnProperty("weight")?a.weight:1)*(i-a.size)*(i-a.size)}}return n}PA.props={};let PW=t=>{let{sets:e="sets",size:n="size",as:r=["key","path"],padding:i=0}=t,[a,o]=r;return t=>{let r;let l=t.map(t=>Object.assign(Object.assign({},t),{sets:t[e],size:t[n],[a]:t.sets.join("&")}));l.sort((t,e)=>t.sets.length-e.sets.length);let s=function(t,e){let n;(e=e||{}).maxIterations=e.maxIterations||500;let r=e.initialLayout||Pz,i=e.lossFunction||P$,a=r(t=function(t){let e,n,r,i;t=t.slice();let a=[],o={};for(e=0;e<t.length;++e){let n=t[e];1==n.sets.length?a.push(n.sets[0]):2==n.sets.length&&(o[[r=n.sets[0],i=n.sets[1]]]=!0,o[[i,r]]=!0)}for(a.sort((t,e)=>t>e?1:-1),e=0;e<a.length;++e)for(r=a[e],n=e+1;n<a.length;++n)[r,i=a[n]]in o||t.push({sets:[r,i],size:0});return t}(t),e),o=[],l=[];for(n in a)a.hasOwnProperty(n)&&(o.push(a[n].x),o.push(a[n].y),l.push(n));let s=function(t,e,n){let r;let i=(n=n||{}).maxIterations||200*e.length,a=n.nonZeroDelta||1.05,o=n.zeroDelta||.001,l=n.minErrorDelta||1e-6,s=n.minErrorDelta||1e-5,u=void 0!==n.rho?n.rho:1,c=void 0!==n.chi?n.chi:2,f=void 0!==n.psi?n.psi:-.5,p=void 0!==n.sigma?n.sigma:.5,d=e.length,h=Array(d+1);h[0]=e,h[0].fx=t(e),h[0].id=0;for(let n=0;n<d;++n){let r=e.slice();r[n]=r[n]?r[n]*a:o,h[n+1]=r,h[n+1].fx=t(r),h[n+1].id=n+1}function y(t){for(let e=0;e<t.length;e++)h[d][e]=t[e];h[d].fx=t.fx}let g=(t,e)=>t.fx-e.fx,m=e.slice(),v=e.slice(),b=e.slice(),x=e.slice();for(let e=0;e<i;++e){if(h.sort(g),n.history){let t=h.map(t=>{let e=t.slice();return e.fx=t.fx,e.id=t.id,e});t.sort((t,e)=>t.id-e.id),n.history.push({x:h[0].slice(),fx:h[0].fx,simplex:t})}r=0;for(let t=0;t<d;++t)r=Math.max(r,Math.abs(h[0][t]-h[1][t]));if(Math.abs(h[0].fx-h[d].fx)<l&&r<s)break;for(let t=0;t<d;++t){m[t]=0;for(let e=0;e<d;++e)m[t]+=h[e][t];m[t]/=d}let e=h[d];if(PR(v,1+u,m,-u,e),v.fx=t(v),v.fx<h[0].fx)PR(x,1+c,m,-c,e),x.fx=t(x),y(x.fx<v.fx?x:v);else if(v.fx>=h[d-1].fx){let n=!1;if(v.fx>e.fx?(PR(b,1+f,m,-f,e),b.fx=t(b),b.fx<e.fx?y(b):n=!0):(PR(b,1-f*u,m,f*u,e),b.fx=t(b),b.fx<v.fx?y(b):n=!0),n){if(p>=1)break;for(let e=1;e<h.length;++e)PR(h[e],1-p,h[0],p,h[e]),h[e].fx=t(h[e])}}else y(v)}return h.sort(g),{fx:h[0].fx,x:h[0]}}(function(e){let n={};for(let t=0;t<l.length;++t){let r=l[t];n[r]={x:e[2*t],y:e[2*t+1],radius:a[r].radius}}return i(n,t)},o,e).x;for(let t=0;t<l.length;++t)a[n=l[t]].x=s[2*t],a[n].y=s[2*t+1];return a}(l);return l.map(t=>{let n=t[e];return Object.assign(Object.assign({},t),{[o]:({width:t,height:e})=>{r=r||function(t,e,n,r){let i=[],a=[];for(let e in t)t.hasOwnProperty(e)&&(a.push(e),i.push(t[e]));e-=2*r,n-=2*r;let o=function(t){let e=function(e){return{max:Math.max.apply(null,t.map(function(t){return t[e]+t.radius})),min:Math.min.apply(null,t.map(function(t){return t[e]-t.radius}))}};return{xRange:e("x"),yRange:e("y")}}(i),l=o.xRange,s=o.yRange;if(l.max==l.min||s.max==s.min)return console.log("not scaling solution: zero size detected"),t;let u=e/(l.max-l.min),c=Math.min(n/(s.max-s.min),u),f=(e-(l.max-l.min)*c)/2,p=(n-(s.max-s.min)*c)/2,d={};for(let t=0;t<i.length;++t){let e=i[t];d[a[t]]={radius:c*e.radius,x:r+f+(e.x-l.min)*c,y:r+p+(e.y-s.min)*c}}return d}(s,t,e,i);let a=function(t){let e={};PL(t,e);let n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){let t=n[0].circle;return function(t,e,n){let r=[],i=t-n;return r.push("M",i,e),r.push("A",n,n,0,1,0,i+2*n,e),r.push("A",n,n,0,1,0,i,e),r.join(" ")}(t.x,t.y,t.radius)}{let t=["\nM",n[0].p2.x,n[0].p2.y];for(let e=0;e<n.length;++e){let r=n[e],i=r.circle.radius,a=r.width>i;t.push("\nA",i,i,0,a?1:0,1,r.p1.x,r.p1.y)}return t.join(" ")}}(n.map(t=>r[t]));return/[zZ]$/.test(a)||(a+=" Z"),a}})})}};PW.props={};var PZ=function(){return(PZ=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}
38,PH=function(t,e){class n extends t{constructor(t){super(Object.assign(Object.assign({},t),{lib:e}))}}return n}(hY,PZ(PZ({},Object.assign(Object.assign(Object.assign(Object.assign({},{"composition.geoView":EW,"composition.geoPath":EH}),{"data.arc":SQ,"data.cluster":E7,"mark.forceGraph":EQ,"mark.tree":Sa,"mark.pack":Sk,"mark.sankey":SG,"mark.chord":S3,"mark.treemap":Pe,"mark.partition":Mw}),{"data.venn":PW,"mark.boxplot":Pf,"mark.gauge":Pb,"mark.wordCloud":vq,"mark.liquid":PA}),{"data.fetch":kx,"data.inline":kO,"data.sortBy":kw,"data.sort":kM,"data.filter":kk,"data.pick":kj,"data.rename":kA,"data.fold":kE,"data.slice":kS,"data.custom":kP,"data.map":kC,"data.join":kR,"data.kde":kI,"data.log":kF,"data.wordCloud":k0,"data.ema":k1,"transform.stackY":_d,"transform.binX":_$,"transform.bin":_z,"transform.dodgeX":_Z,"transform.jitter":_q,"transform.jitterX":_G,"transform.jitterY":_Y,"transform.symmetryY":_U,"transform.diffY":_X,"transform.stackEnter":_K,"transform.normalizeY":_J,"transform.select":_3,"transform.selectX":_6,"transform.selectY":_9,"transform.groupX":ke,"transform.groupY":kn,"transform.groupColor":kr,"transform.group":kt,"transform.sortX":ka,"transform.sortY":ko,"transform.sortColor":kl,"transform.flexX":ks,"transform.pack":ku,"transform.sample":kf,"transform.filter":kp,"coordinate.cartesian":yc,"coordinate.polar":iD,"coordinate.transpose":yf,"coordinate.theta":yd,"coordinate.parallel":yh,"coordinate.fisheye":yy,"coordinate.radial":i$,"coordinate.radar":yg,"coordinate.helix":ym,"encode.constant":yv,"encode.field":yb,"encode.transform":yx,"encode.column":yO,"mark.interval":y7,"mark.rect":ge,"mark.line":g$,"mark.point":ml,"mark.text":mm,"mark.cell":mx,"mark.area":mT,"mark.link":mq,"mark.image":mU,"mark.polygon":m1,"mark.box":m8,"mark.vector":m7,"mark.lineX":vi,"mark.lineY":vl,"mark.connector":vp,"mark.range":vg,"mark.rangeX":vb,"mark.rangeY":vw,"mark.path":vE,"mark.shape":vT,"mark.density":vI,"mark.heatmap":vW,"mark.wordCloud":vq,"mark.beeswarm":bB,"palette.category10":bD,"palette.category20":bz,"scale.linear":b$,"scale.ordinal":bW,"scale.band":bZ,"scale.identity":bq,"scale.point":bY,"scale.time":xm,"scale.log":x_,"scale.pow":xS,"scale.sqrt":xC,"scale.threshold":xT,"scale.quantile":xR,"scale.quantize":xL,"scale.sequential":xF,"scale.constant":xB,"theme.classic":xW,"theme.classicDark":xq,"theme.academy":xY,"theme.light":x$,"theme.dark":xH,"component.axisX":xV,"component.axisY":xU,"component.legendCategory":Om,"component.legendContinuous":sv,"component.legends":Ov,"component.title":Ow,"component.sliderX":OV,"component.sliderY":OU,"component.scrollbarX":OJ,"component.scrollbarY":O0,"animation.scaleInX":O1,"animation.scaleOutX":(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let[a]=e,{transform:o="",fillOpacity:l=1,strokeOpacity:s=1,opacity:u=1}=a.style,[c,f]=iV(n)?["left bottom","scale(1, 0.0001)"]:["left top","scale(0.0001, 1)"],p=[{transform:`${o} scale(1, 1)`.trimStart(),transformOrigin:c},{transform:`${o} ${f}`.trimStart(),transformOrigin:c,fillOpacity:l,strokeOpacity:s,opacity:u,offset:.99},{transform:`${o} ${f}`.trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0}];return a.animate(p,Object.assign(Object.assign({},i),t))}},"animation.scaleInY":O2,"animation.scaleOutY":(t,e)=>{let{coordinate:n}=e;return(e,r,i)=>{let[a]=e,{transform:o="",fillOpacity:l=1,strokeOpacity:s=1,opacity:u=1}=a.style,[c,f]=iV(n)?["left top","scale(0.0001, 1)"]:["left bottom","scale(1, 0.0001)"],p=[{transform:`${o} scale(1, 1)`.trimStart(),transformOrigin:c},{transform:`${o} ${f}`.trimStart(),transformOrigin:c,fillOpacity:l,strokeOpacity:s,opacity:u,offset:.99},{transform:`${o} ${f}`.trimStart(),transformOrigin:c,fillOpacity:0,strokeOpacity:0,opacity:0}];return a.animate(p,Object.assign(Object.assign({},i),t))}},"animation.waveIn":O5,"animation.fadeIn":O3,"animation.fadeOut":O4,"animation.zoomIn":t=>(e,n,r)=>{let[i]=e,{transform:a="",fillOpacity:o=1,strokeOpacity:l=1,opacity:s=1}=i.style,u="center center",c=[{transform:`${a} scale(0.0001)`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${a} scale(0.0001)`.trimStart(),transformOrigin:u,fillOpacity:o,strokeOpacity:l,opacity:s,offset:.01},{transform:`${a} scale(1)`.trimStart(),transformOrigin:u,fillOpacity:o,strokeOpacity:l,opacity:s}];return i.animate(c,Object.assign(Object.assign({},r),t))},"animation.zoomOut":t=>(e,n,r)=>{let[i]=e,{transform:a="",fillOpacity:o=1,strokeOpacity:l=1,opacity:s=1}=i.style,u="center center",c=[{transform:`${a} scale(1)`.trimStart(),transformOrigin:u},{transform:`${a} scale(0.0001)`.trimStart(),transformOrigin:u,fillOpacity:o,strokeOpacity:l,opacity:s,offset:.99},{transform:`${a} scale(0.0001)`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}
38];return i.animate(c,Object.assign(Object.assign({},r),t))},"animation.pathIn":O6,"animation.morphing":ws,"animation.growInX":wu,"animation.growInY":wc,"interaction.elementHighlight":wp,"interaction.elementHighlightByX":wd,"interaction.elementHighlightByColor":wh,"interaction.elementHoverScale":wg,"interaction.elementSelect":wv,"interaction.elementSelectByX":wb,"interaction.elementSelectByColor":wx,"interaction.fisheye":function({wait:t=30,leading:e,trailing:n=!1}){return r=>{let{options:i,update:a,setState:o,container:l}=r,s=cp(l),u=hr(t=>{let e=ch(s,t);if(!e){o("fisheye"),a();return}o("fisheye",t=>{let n=rO({},t,{interaction:{tooltip:{preserve:!0}}});for(let t of n.marks)t.animate=!1;let[r,i]=e,a=function(t){let{coordinate:e={}}=t,{transform:n=[]}=e,r=n.find(t=>"fisheye"===t.type);if(r)return r;let i={type:"fisheye"};return n.push(i),e.transform=n,t.coordinate=e,i}(n);return a.focusX=r,a.focusY=i,a.visual=!0,n}),a()},t,{leading:e,trailing:n});return s.addEventListener("pointerenter",u),s.addEventListener("pointermove",u),s.addEventListener("pointerleave",u),()=>{s.removeEventListener("pointerenter",u),s.removeEventListener("pointermove",u),s.removeEventListener("pointerleave",u)}}},"interaction.chartIndex":ww,"interaction.tooltip":hE,"interaction.legendFilter":function(){return(t,e,n)=>{let{container:r}=t,i=e.filter(e=>e!==t),a=i.length>0,o=t=>Op(t).scales.map(t=>t.name),l=[...Oc(r),...r.getElementsByClassName(Oa),...Of(r)],s=l.flatMap(o),u=a?hr(Oh,50,{trailing:!0}):hr(Od,50,{trailing:!0}),c=l.map(e=>{let{name:l,domain:c}=Op(e).scales[0],f=o(e),p={legend:e,channel:l,channels:f,allChannels:s};return e.className===Oi?function(t,{legends:e,marker:n,label:r,datum:i,filter:a,defaultSelect:o,emitter:l,channel:s,state:u={}}){let c=new Map,f=new Map,p=new Map,d=new Map,{unselected:h={markerStroke:"#aaa",markerFill:"#aaa",labelFill:"#aaa"}}=u,y={unselected:rX(h,"marker")},g={unselected:rX(h,"label")},{setState:m,removeState:v}=cM(y,void 0),{setState:b,removeState:x}=cM(g,void 0),O=Array.from(e(t)),w=O.map(i),M=()=>{for(let t of O){let e=i(t),a=n(t),o=r(t);w.includes(e)?(v(a,"unselected"),x(o,"unselected")):(m(a,"unselected"),b(o,"unselected"))}};for(let e of O){let n=()=>{cP(t,"pointer")},r=()=>{cP(t,t.cursor)},o=t=>Or(this,void 0,void 0,function*(){let n=i(e),r=w.indexOf(n);-1===r?w.push(n):w.splice(r,1),yield a(w),M();let{nativeEvent:o=!0}=t;o&&(w.length===O.length?l.emit("legend:reset",{nativeEvent:o}):l.emit("legend:filter",Object.assign(Object.assign({},t),{nativeEvent:o,data:{channel:s,values:w}})))});e.addEventListener("click",o),e.addEventListener("pointerenter",n),e.addEventListener("pointerout",r),c.set(e,o),f.set(e,n),p.set(e,r);let u=Os(e);if(u){let t=t=>Or(this,void 0,void 0,function*(){t.stopPropagation();let n=i(e),r=w.indexOf(n),{nativeEvent:o=!0}=t;if(-1!==r&&1===w.length){if(!o)return;w=O.map(i),yield a(w),M(),l.emit("legend:reset",{nativeEvent:o})}else{if(w=[n],yield a(w),M(),!o)return;l.emit("legend:focus",Object.assign(Object.assign({},t),{nativeEvent:o,data:{channel:s,value:n}}))}});u.addEventListener("click",t),d.set(e,t)}}let _=t=>Or(this,void 0,void 0,function*(){let{nativeEvent:e}=t;if(e)return;let{data:n}=t,{channel:r,value:i}=n;r===s&&(w=[i],yield a(w),M())}),k=t=>Or(this,void 0,void 0,function*(){let{nativeEvent:e}=t;if(e)return;let{data:n}=t,{channel:r,values:i}=n;r===s&&(w=i,yield a(w),M())}),j=t=>Or(this,void 0,void 0,function*(){let{nativeEvent:e}=t;e||(w=O.map(i),yield a(w),M())});return l.on("legend:filter",k),l.on("legend:focus",_),l.on("legend:reset",j),o&&l.emit("legend:filter",{data:{channel:s,values:o}}),()=>{for(let t of O){t.removeEventListener("click",c.get(t)),t.removeEventListener("pointerenter",f.get(t)),t.removeEventListener("pointerout",p.get(t));let e=Os(t);e&&e.removeEventListener("click",d.get(t))}l.off("legend:focus",_),l.off("legend:filter",k),l.off("legend:reset",j)}}(e,{legends:Ou,marker:Oo,label:Ol,datum:t=>{let{__data__:e}=t,{index:n}=e;return c[n]},filter:e=>{let n=Object.assign(Object.assign({},p),{value:e,ordinal:!0});a?u(i,n):u(t,n)},state:e.attributes.state,defaultSelect:e.attributes.defaultSelect,channel:l,emitter:n}):e.className===Oa?function(t,{domain:e,filter:n,defaultSelect:r,emitter:i,channel:a}){let o=new Map,l=new Map,s=new Map,u=[...e],c=()=>{var e;let n=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView;return n&&n.getContextService().getDomElement().parentElement||document.body},f=()=>{c().querySelectorAll("[legend-value]").forEach(t=>{let n=t.getAttribute("legend-value");n&&e.includes(n)&&(u.includes(n)?(t.style.opacity="1",t.classList.remove("legend-item-inactive")):(t.style.opacity="0.4",t.classList.add("legend-item-inactive")))})};(()=>{let t=c().querySelector(".legend-html"),r=r=>Or(this,void 0,void 0,function*(){let o=r.target;for(;o&&!o.hasAttribute("legend-value")&&(o=o.parentElement)!==t;);if(!o||!o.hasAttribute("legend-value"))return;r.preventDefault(),r.stopPropagation();let l=o.getAttribute("legend-value");if(!l)return;let s=u.indexOf(l);-1===s?u.push(l):u.splice(s,1),yield n(u),f(),u.length===e.length?
38i.emit("legend:reset",{nativeEvent:!0}):i.emit("legend:filter",{nativeEvent:!0,data:{channel:a,values:u}})});t.addEventListener("click",r),o.set(t,r)})();let p=t=>Or(this,void 0,void 0,function*(){let{nativeEvent:e}=t;if(e)return;let{data:r}=t,{channel:i,value:o}=r;i===a&&(u=[o],yield n(u),f())}),d=t=>Or(this,void 0,void 0,function*(){let{nativeEvent:e}=t;if(e)return;let{data:r}=t,{channel:i,values:o}=r;i===a&&(u=o,yield n(u),f())}),h=t=>Or(this,void 0,void 0,function*(){let{nativeEvent:r}=t;r||(u=[...e],yield n(u),f())});return i.on("legend:filter",d),i.on("legend:focus",p),i.on("legend:reset",h),r&&i.emit("legend:filter",{data:{channel:a,values:r}}),()=>{c().querySelectorAll("[legend-value]").forEach(t=>{let n=t.getAttribute("legend-value");if(!n||!e.includes(n))return;let r=o.get(t),i=l.get(t),a=s.get(t);r&&t.removeEventListener("click",r),i&&t.removeEventListener("pointerenter",i),a&&t.removeEventListener("pointerout",a)}),o.clear(),l.clear(),s.clear(),i.off("legend:filter",d),i.off("legend:focus",p),i.off("legend:reset",h)}}(r,{domain:c,filter:e=>{let n=Object.assign(Object.assign({},p),{value:e,ordinal:!0});a?u(i,n):u(t,n)},defaultSelect:e.attributes.defaultSelect,channel:l,emitter:n}):function(t,{legend:e,filter:n,emitter:r,channel:i}){let{attributes:a}=e,o=t=>{let{value:e}=t.detail,o=e.map(t=>{var e,n;let r=null===(e=a.data)||void 0===e?void 0:e.find(e=>e.value===t);return r&&null!==(n=r.domainValue)&&void 0!==n?n:t});n(o),r.emit({nativeEvent:!0,data:{channel:i,values:o}})};return e.addEventListener("valuechange",o),()=>{e.removeEventListener("valuechange",o)}}(0,{legend:e,filter:e=>{let n=Object.assign(Object.assign({},p),{value:e,ordinal:!1});a?u(i,n):u(t,n)},emitter:n,channel:l})});return()=>{c.forEach(t=>t())}}},"interaction.legendHighlight":function(){return(t,e,n)=>{let{container:r,view:i,options:a}=t,o=Oc(r),l=cu(r),s=t=>Op(t).scales[0].name,u=t=>{let{scale:{[t]:e}}=i;return e},c=ck(a,["active","inactive"]),f=cj(l,cv(i)),p=[];for(let t of o){let e=e=>{let{data:n}=t.attributes,{__data__:r}=e,{index:i}=r;return n[i].label},r=s(t),i=Ou(t),a=u(r),o=rp(l,t=>a.invert(t.__data__[r])),{state:d={}}=t.attributes,{inactive:h={}}=d,{setState:y,removeState:g}=cM(c,f),m={inactive:rX(h,"marker")},v={inactive:rX(h,"label")},{setState:b,removeState:x}=cM(m),{setState:O,removeState:w}=cM(v),M=t=>{for(let e of i){let n=Oo(e),r=Ol(e);e===t||null===t?(x(n,"inactive"),w(r,"inactive")):(b(n,"inactive"),O(r,"inactive"))}},_=(t,i)=>{let a=e(i),s=new Set(o.get(a));for(let t of l)s.has(t)?y(t,"active"):y(t,"inactive");M(i);let{nativeEvent:u=!0}=t;u&&n.emit("legend:highlight",Object.assign(Object.assign({},t),{nativeEvent:u,data:{channel:r,value:a}}))},k=new Map;for(let t of i){let e=e=>{_(e,t)};t.addEventListener("pointerover",e),k.set(t,e)}let j=t=>{for(let t of l)g(t,"inactive","active");M(null);let{nativeEvent:e=!0}=t;e&&n.emit("legend:unhighlight",{nativeEvent:e})},A=t=>{let{nativeEvent:n,data:a}=t;if(n)return;let{channel:o,value:l}=a;if(o!==r)return;let s=i.find(t=>e(t)===l);s&&_({nativeEvent:!1},s)},E=t=>{let{nativeEvent:e}=t;e||j({nativeEvent:!1})};t.addEventListener("pointerleave",j),n.on("legend:highlight",A),n.on("legend:unhighlight",E);let S=()=>{for(let[e,r]of(t.removeEventListener(j),n.off("legend:highlight",A),n.off("legend:unhighlight",E),k))e.removeEventListener(r)};p.push(S)}return()=>p.forEach(t=>t())}},"interaction.brushHighlight":wS,"interaction.brushXHighlight":function(t){return wS(Object.assign(Object.assign({},t),{brushRegion:wP,selectedHandles:["handle-e","handle-w"]}))},"interaction.brushYHighlight":function(t){return wS(Object.assign(Object.assign({},t),{brushRegion:wC,selectedHandles:["handle-n","handle-s"]}))},"interaction.brushAxisHighlight":function(t){return(e,n,r)=>{let{container:i,view:a,options:o}=e,{x:l,y:s}=cp(i).getBBox(),{coordinate:u}=a;return function(t,e){var{axes:n,elements:r,points:i,horizontal:a,datum:o,offsetY:l,offsetX:s,reverse:u=!1,state:c={},emitter:f,coordinate:p}=e,d=wT(e,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);let h=r(t),y=n(t),{setState:g,removeState:m}=cM(c,cj(h,o)),v=new Map,b=rX(d,"mask"),x=t=>Array.from(v.values()).every(([e,n,r,i])=>t.some(([t,a])=>t>=e&&t<=r&&a>=n&&a<=i)),O=y.map(t=>t.attributes.scale),w=t=>t.length>2?[t[0],t[t.length-1]]:t,M=new Map,_=()=>
38{M.clear();for(let t=0;t<y.length;t++){let{domain:e}=O[t].getOptions();M.set(t,w(e))}};_();let k=(t,e)=>{let n=[];for(let t of h)x(i(t))?(g(t,"active"),n.push(t)):g(t,"inactive");M.set(t,A(n,t)),e&&f.emit("brushAxis:highlight",{nativeEvent:!0,data:{selection:(()=>{if(!E)return Array.from(M.values());let t=[];for(let[e,n]of M){let{name:r}=O[e].getOptions();"x"===r?t[0]=n:t[1]=n}return t})()}})},j=t=>{for(let t of h)m(t,"active","inactive");_(),t&&f.emit("brushAxis:remove",{nativeEvent:!0})},A=(t,e)=>{let n=O[e],{name:r}=n.getOptions(),i=t.map(t=>{let e=t.__data__;return n.invert(e[r])});return w(uW(n,i))},E=y.some(a)&&y.some(t=>!a(t)),S=[];for(let t=0;t<y.length;t++){let e=y[t],{hotZone:n,brushRegion:r,extent:i}=(a(e)?function(t,e){var{offsetY:n,offsetX:r,cross:i=!1}=e,a=wT(e,["offsetY","offsetX","cross"]);let o=wI(t),[,l]=wN(t).getLocalBounds().min,[s,u]=o.min,[c,f]=o.max,p=f-u;return{brushRegion:wP,hotZone:new tk.UL({className:wR,style:Object.assign({width:c-s,height:i?p:2*p,transform:`translate(${s}, ${i?u:l-p})`},a)}),extent:i?(t,e,n,r)=>[t,-1/0,n,1/0]:(t,e,r,i)=>[t,Math.floor(u-n),r,Math.ceil(f-n)]}}:function(t,e){var{cross:n,offsetX:r,offsetY:i}=e,a=wT(e,["cross","offsetX","offsetY"]);let o=wI(t),[l]=wN(t).getLocalBounds().min,[s,u]=o.min,[c,f]=o.max,p=(c-s)*2;return{brushRegion:wC,hotZone:new tk.UL({className:wR,style:Object.assign({width:n?p/2:p,transform:`translate(${(n?s:l-p/2).toFixed(2)}, ${u})`,height:f-u},a)}),extent:n?(t,e,n,r)=>[-1/0,e,1/0,r]:(t,e,n,i)=>[Math.floor(s-r),e,Math.ceil(c-r),i]}})(e,{offsetY:l,offsetX:s,cross:E,zIndex:999,fill:"transparent"});e.parentNode.appendChild(n);let o=wj(n,Object.assign(Object.assign({},b),{reverse:u,brushRegion:r,brushended(n){v.delete(e),0===Array.from(v.entries()).length?j(n):k(t,n)},brushed(n,r,a,o,l){v.set(e,i(n,r,a,o)),k(t,l)}}));S.push(o)}let P=(t={})=>{let{nativeEvent:e}=t;e||S.forEach(t=>t.remove(!1))},C=(t,e,n)=>{let[r,i]=t,o=T(r,e,n),l=T(i,e,n)+(e.getStep?e.getStep():0);return a(n)?[o,-1/0,l,1/0]:[-1/0,o,1/0,l]},T=(t,e,n)=>{let{height:r,width:i}=p.getOptions(),o=e.clone();return a(n)?o.update({range:[0,i]}):o.update({range:[r,0]}),o.map(t)},R=t=>{let{nativeEvent:e}=t;if(e)return;let{selection:n}=t.data;for(let t=0;t<S.length;t++){let e=n[t],r=S[t],i=y[t];if(e){let n=O[t];r.move(...C(e,n,i),!1)}else r.remove(!1)}};return f.on("brushAxis:remove",P),f.on("brushAxis:highlight",R),()=>{S.forEach(t=>t.destroy()),f.off("brushAxis:remove",P),f.off("brushAxis:highlight",R)}}(i,Object.assign({elements:cu,axes:wL,offsetY:s,offsetX:l,points:t=>t.__data__.points,horizontal:t=>{let{startPos:[e,n],endPos:[r,i]}=t.attributes;return e!==r&&n===i},datum:cv(a),state:ck(o,["active",["inactive",{opacity:.5}]]),coordinate:u,emitter:r},t))}},"interaction.brushFilter":wB,"interaction.brushXFilter":function(t){return wB(Object.assign(Object.assign({hideX:!0},t),{brushRegion:wP}))},"interaction.brushYFilter":function(t){return wB(Object.assign(Object.assign({hideY:!0},t),{brushRegion:wC}))},"interaction.sliderFilter":wV,"interaction.sliderWheel":wU,"interaction.scrollbarFilter":function(t={}){return(e,n,r)=>{let{view:i,container:a}=e;if(!a.getElementsByClassName(wX).length)return()=>{};let{scale:o}=i,{x:l,y:s}=o,u={x:[...l.getOptions().domain],y:[...s.getOptions().domain]};return l.update({domain:l.getOptions().expectedDomain}),s.update({domain:s.getOptions().expectedDomain}),wV(Object.assign({initDomain:u,className:wX,prefix:"scrollbar",hasState:!0,setValue:(t,e)=>t.setValue(e[0]),getInitValues:t=>{let e=t.slider.attributes.values;if(0!==e[0]||1!==e[1])return e},adaptiveMode:!1},t))(e,n,r)}},"interaction.poptip":w0,"interaction.treemapDrillDown":function(t={}){let{originData:e=[],layout:n}=t,r=rO({},Mh,Md(t,["originData","layout"])),i=rX(r,"breadCrumb"),a=rX(r,"active");return t=>{let{update:r,setState:o,container:l,options:s}=t,u=r2(l).select(`.${tb}`).node(),{state:c}=s.marks[0],f=new tk.ZA;u.appendChild(f);let p=(t,s)=>{var c,d,h,y;return c=this,d=void 0,h=void 0,y=function*(){if(f.removeChildren(),s){let e="",n=i.y,r=0,o=[],l=u.getBBox().width,s=t.map((a,s)=>{e=`${e}${a}/`,o.push(a);let u=new tk.xv({name:e.replace(/\/$/,""),style:Object.assign(Object.assign({text:a,x:r,path:[...o],depth:s},i),{y:n})});f.appendChild(u),r+=u.getBBox().width;let c=new tk.xv({style:Object.assign(Object.assign({x:r,text:" / "},i),{y:n})});return f.appendChild(c),(r+=c.getBBox().width)>l&&(n=f.getBBox().height+i.y,r=0,u.attr({x:r,y:n}),r+=u.getBBox().width,c.attr({x:r,y:n}),r+=c.getBBox().width),s===ss(t)-1&&c.remove(),u});
38s.forEach((t,e)=>{if(e===ss(s)-1)return;let n=Object.assign({},t.attributes);t.attr("cursor","pointer"),t.addEventListener("mouseenter",()=>{t.attr(a)}),t.addEventListener("mouseleave",()=>{t.attr(n)}),t.addEventListener("click",()=>{p(rl(t,["style","path"]),rl(t,["style","depth"]))})})}(function(t,e){[...Oc(t),...Of(t)].forEach(t=>{e(t,t=>t)})})(l,o),o("treemapDrillDown",r=>{let{marks:i}=r,a=t.join("/"),o=i.map(t=>{if("rect"!==t.type)return t;let r=e;if(s){let t=e.filter(t=>{let e=rl(t,["id"]);return e&&(e.match(`${a}/`)||a.match(e))}).map(t=>({value:0===t.height?rl(t,["value"]):void 0,name:rl(t,["id"])})),{paddingLeft:i,paddingBottom:o,paddingRight:l}=n;r=Mp(t,Object.assign(Object.assign({},n),{paddingTop:(n.paddingTop||f.getBBox().height+10)/(s+1),paddingLeft:i/(s+1),paddingBottom:o/(s+1),paddingRight:l/(s+1),path:t=>t.name,layer:t=>t.depth===s+1}),{value:"value"})[0]}else r=e.filter(t=>1===t.depth);let i=[];return r.forEach(({path:t})=>{i.push(oS(t))}),rO({},t,{data:r,scale:{color:{domain:i}}})});return Object.assign(Object.assign({},r),{marks:o})}),yield r(void 0,["legendFilter"])},new(h||(h=Promise))(function(t,e){function n(t){try{i(y.next(t))}catch(t){e(t)}}function r(t){try{i(y.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):((i=e.value)instanceof h?i:new h(function(t){t(i)})).then(n,r)}i((y=y.apply(c,d||[])).next())})},d=t=>t.attributes.key.split("-")[0],h=t=>rl(t,["__data__","key"]),y=t=>{let n=t.target,{markType:r,nodeName:i,attributes:a}=n||{};if("rect"!==r&&i!==tk.bn.TEXT)return;let o=i===tk.bn.TEXT&&!0===rl(a,"isTreemapLabel")?d(n):h(n),l=w2(e,t=>t.id===o);rl(l,"height")&&p(rl(l,"path"),rl(l,"depth"))};u.addEventListener("click",y);let g=yl(Object.assign(Object.assign({},c.active),c.inactive)),m=()=>{cL(u).forEach(t=>{let n=rl(t,["style","cursor"]),r=w2(e,e=>e.id===rl(t,["__data__","key"]));if("pointer"!==n&&(null==r?void 0:r.height)){t.style.cursor="pointer";let e=hU(t.attributes,g);t.addEventListener("mouseenter",()=>{t.attr(c.active)}),t.addEventListener("mouseleave",()=>{t.attr(rO(e,c.inactive))})}})};return m(),u.addEventListener("mousemove",m),()=>{f.remove(),u.removeEventListener("click",y),u.removeEventListener("mousemove",m)}}},"interaction.drillDown":function(t={}){let{breadCrumb:e={}}=t,n=rO({},M_,e);return t=>{let{update:e,setState:r,container:i,view:a,options:o}=t,l=i.ownerDocument,s=r2(i).select(`.${tb}`).node(),u=o.marks.find(({id:t})=>t===Mg);if(!u)return;let{state:c}=u,f=l.createElement("g");f.style.transform=`translate(${n.x||0}px, ${n.y||0}px)`,f.setAttribute("x","drilldown-breadcrumb"),s.appendChild(f);let p=t=>{var i,a,o,u;return i=this,a=void 0,o=void 0,u=function*(){if(f.removeChildren(),t&&t.length>0){let e=l.createElement("text",{style:Object.assign({text:n.rootText},n.style)});f.appendChild(e);let r="",i=n.style.y,a=e.getBBox().width,o=s.getBBox().width,u=t.map((t,e)=>{let s=l.createElement("text",{style:Object.assign(Object.assign({x:a,text:" / "},n.style),{y:i})});f.appendChild(s),a+=s.getBBox().width,r=`${r}${t} / `;let u=l.createElement("text",{name:r.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:t,x:a},n.style),{y:i})});return f.appendChild(u),(a+=u.getBBox().width)>o&&(i=f.getBBox().height,a=0,s.attr({x:a,y:i}),a+=s.getBBox().width,u.attr({x:a,y:i}),a+=u.getBBox().width),u});[e,...u].forEach((e,r)=>{if(r===u.length)return;let i=Object.assign({},e.attributes);e.attr("cursor","pointer"),e.addEventListener("mouseenter",()=>{e.attr(n.active)}),e.addEventListener("mouseleave",()=>{e.attr(i)}),e.addEventListener("click",()=>{p(t.slice(0,r))})})}r("drillDown",e=>{let{marks:n}=e,r=n.map(e=>{if(e.id!==Mg&&"rect"!==e.type)return e;let{data:n}=e;return rO({},e,{data:n.filter(e=>{var n;let r=null!==(n=e.path)&&void 0!==n?n:[];if(0===t.length)return!0;if(!Array.isArray(r)||r.length<t.length)return!1;for(let e=0;e<t.length;e++)if(r[e]!==t[e])return!1;return!0})})});return Object.assign(Object.assign({},e),{marks:r})}),yield e()},new(o||(o=Promise))(function(t,e){function n(t){try{l(u.next(t))}catch(t){e(t)}}function r(t){try{l(u.throw(t))}catch(t){e(t)}}function l(e){var i;e.done?t(e.value):((i=e.value)instanceof o?i:new o(function(t){t(i)})).then(n,r)}l((u=u.apply(i,a||[])).next())})},d=t=>{var e,n;let r=t.target,i=r.markType,a=r.style||{},o=a[Mm],l=a[Mx],s=r.__data__;"rect"===i&&o===Mg&&l&&p(null!==(n=null===(e=null==s?void 0:s.data)||void 0===e?void 0:e.path)&&void 0!==n?n:[])};s.addEventListener("click",d);let h=yl(Object.assign(Object.assign({},c.active),c.inactive)),y=()=>
38{MM(s).forEach(t=>{let e=rl(t,["style",Mx]);if("pointer"!==rl(t,["style","cursor"])&&e){t.style.cursor="pointer";let e=hU(t.attributes,h);t.addEventListener("mouseenter",()=>{t.attr(c.active)}),t.addEventListener("mouseleave",()=>{t.attr(rO(e,c.inactive))})}})};return s.addEventListener("mousemove",y),()=>{f.remove(),s.removeEventListener("click",d),s.removeEventListener("mousemove",y)}}},"interaction.elementPointMove":function(t={}){let{selection:e=[],precision:n=2}=t,r=Mj(t,["selection","precision"]),i=Object.assign(Object.assign({},MA),r||{}),a=rX(i,"path"),o=rX(i,"label"),l=rX(i,"point");return(t,r,i)=>{let s;let{update:u,setState:c,container:f,view:p,options:{marks:d,coordinate:h}}=t,y=cp(f),g=cL(y),m=e,{transform:v=[],type:b}=h,x=!!w2(v,({type:t})=>"transpose"===t),O="polar"===b,w="theta"===b,M=!!w2(g,({markType:t})=>"area"===t);M&&(g=g.filter(({markType:t})=>"area"===t));let _=new tk.ZA({style:{zIndex:2}});y.appendChild(_);let k=()=>{i.emit("element-point:select",{nativeEvent:!0,data:{selection:m}})},j=(t,e)=>{i.emit("element-point:moved",{nativeEvent:!0,data:{changeData:t,data:e}})},A=t=>{let e=t.target;m=[e.parentNode.childNodes.indexOf(e)],k(),S(e)},E=t=>{let{data:{selection:e},nativeEvent:n}=t;if(n)return;let r=rl(g,[null==(m=e)?void 0:m[0]]);r&&S(r)},S=t=>{let e;let{attributes:r,markType:i,__data__:h}=t,{stroke:y}=r,{points:g,seriesTitle:v,color:b,title:A,seriesX:E,y1:P}=h;if(x&&"interval"!==i)return;let{scale:C,coordinate:T}=(null==s?void 0:s.view)||p,{color:R,y:L,x:N}=C,I=T.getCenter();_.removeChildren();let F=(t,e,n,r)=>Mk(this,void 0,void 0,function*(){return c("elementPointMove",i=>{var a;let o=((null===(a=null==s?void 0:s.options)||void 0===a?void 0:a.marks)||d).map(i=>{if(!r.includes(i.type))return i;let{data:a,encode:o}=i,l=Object.keys(o).reduce((r,i)=>{let a=o[i];return"x"===i&&(r[a]=t),"y"===i&&(r[a]=e),"color"===i&&(r[a]=n),r},{}),s=MC(l,a,o);return j(l,s),rO({},i,{data:s,animate:!1})});return Object.assign(Object.assign({},i),{marks:o})}),yield u("elementPointMove")});if(["line","area"].includes(i))g.forEach((r,i)=>{let u=N.invert(E[i]);if(!u)return;let c=new tk.Cd({name:ME,style:Object.assign({cx:r[0],cy:r[1],fill:y},l)}),p=MR(t,i);c.addEventListener("mousedown",d=>{let h=T.output([E[i],0]),y=null==v?void 0:v.length;f.attr("cursor","move"),m[1]!==i&&(m[1]=i,k()),ML(_.childNodes,m,l);let[x,w]=MN(_,c,a,o),j=t=>{let a=r[1]+t.clientY-e[1];if(M){if(O){let[o,l]=MF(I,h,[r[0]+t.clientX-e[0],a]),[,s]=T.output([1,L.output(0)]),[,u]=T.invert([o,s-(g[i+y][1]-l)]),f=(i+1)%y,d=cR([g[(i-1+y)%y],[o,l],v[f]&&g[f]]);w.attr("text",p(L.invert(u)).toFixed(n)),x.attr("d",d),c.attr("cx",o),c.attr("cy",l)}else{let[,t]=T.output([1,L.output(0)]),[,e]=T.invert([r[0],t-(g[i+y][1]-a)]),o=cR([g[i-1],[r[0],a],v[i+1]&&g[i+1]]);w.attr("text",p(L.invert(e)).toFixed(n)),x.attr("d",o),c.attr("cy",a)}}else{let[,t]=T.invert([r[0],a]),e=cR([g[i-1],[r[0],a],g[i+1]]);w.attr("text",L.invert(t).toFixed(n)),x.attr("d",e),c.attr("cy",a)}};e=[d.clientX,d.clientY],window.addEventListener("mousemove",j);let A=()=>Mk(this,void 0,void 0,function*(){if(f.attr("cursor","default"),window.removeEventListener("mousemove",j),f.removeEventListener("mouseup",A),(0,oW.Z)(w.attr("text")))return;let e=Number(w.attr("text")),n=MI(R,b);s=yield F(u,e,n,["line","area"]),w.remove(),x.remove(),S(t)});f.addEventListener("mouseup",A)}),_.appendChild(c)}),ML(_.childNodes,m,l);else if("interval"===i){let r=[(g[0][0]+g[1][0])/2,g[0][1]];x?r=[g[0][0],(g[0][1]+g[1][1])/2]:w&&(r=g[0]);let u=MT(t),c=new tk.Cd({name:ME,style:Object.assign(Object.assign({cx:r[0],cy:r[1],fill:y},l),{stroke:l.activeStroke})});c.addEventListener("mousedown",l=>{f.attr("cursor","move");let p=MI(R,b),[d,h]=MN(_,c,a,o),y=t=>{if(x){let i=r[0]+t.clientX-e[0],[a]=T.output([L.output(0),L.output(0)]),[,o]=T.invert([a+(i-g[2][0]),r[1]]),l=cR([[i,g[0][1]],[i,g[1][1]],g[2],g[3]],!0);h.attr("text",u(L.invert(o)).toFixed(n)),d.attr("d",l),c.attr("cx",i)}else if(w){let i=r[1]+t.clientY-e[1],a=r[0]+t.clientX-e[0],[o,l]=MF(I,[a,i],r),[s,f]=MF(I,[a,i],g[1]),p=P-T.invert([o,l])[1];if(p<0)return;let y=function(t,e,n=0){let r=[["M",...e[1]]],i=cT(t,e[1]),a=cT(t,e[0]);return 0===i?r.push(["L",...e[3]],["A",a,a,0,n,1,...e[0]],["Z"]):r.push(["A",i,i,0,n,0,...e[2]],["L",...e[3]],["A",a,a,0,n,1,...e[0]],["Z"]),r}(I,[[o,l],[s,f],g[2],g[3]],p>.5?1:0);h.attr("text",u(p,!0).toFixed(n)),d.attr("d",y),c.attr("cx",o),c.attr("cy",l)}else{let i=r[1]+t.clientY-e[1],[,a]=T.output([1,L.output(0)]),[,o]=T.invert([r[0],a-(g[2][1]-i)]),l=cR([[g[0][0],i],[g[1][0],i],g[2],g[3]],!0);h.attr("text",u(L.invert(o)).toFixed(n)),d.attr("d",l),c.attr("cy",i)}};e=[l.clientX,l.clientY],window.addEventListener("mousemove",y);let m=()=>Mk(this,void 0,void 0,function*(){if(f.attr("cursor","default"),f.removeEventListener("mouseup",m),window.removeEventListener("mousemove",y),(0,oW.Z)(h.attr("text")))return;let e=Number(h.attr("text"));s=yield F(A,e,p,[i]),h.remove(),d.remove(),S(t)});f.addEventListener("mouseup",m)}),_.appendChild(c)}};g.forEach((t,e)=>{m[0]===e&&S(t),t.addEventListener("click",A),t.addEventListener("mouseenter",MS),t.addEventListener("mouseleave",MP)});let P=t=>{let e=null==t?void 0:t.target;e&&(e.name===ME||g.includes(e))||(m=[],k(),_.removeChildren())};return i.on("element-point:select",E),i.on("element-point:unselect",P),f.addEventListener("mousedown",P),()=>{_.remove(),i.off("element-point:select",E),i.off("element-point:unselect",P),f.removeEventListener("mousedown",P),g.forEach(t=>{t.removeEventListener("click",A),t.removeEventListener("mouseenter",MS),t.removeEventListener("mouseleave",MP)})}}}
38,"composition.spaceLayer":MD,"composition.spaceFlex":M$,"composition.facetRect":M2,"composition.repeatMatrix":()=>t=>[MW.of(t).call(MV).call(Mq).call(M4).call(M6).call(MG).call(MY).call(M3).value()],"composition.facetCircle":()=>t=>[MW.of(t).call(MV).call(_t).call(Mq).call(M7).call(MU).call(MX,_n,_e,_e,{frame:!1}).call(MG).call(MY).call(M9).value()],"composition.timingKeyframe":_r,"labelTransform.overlapHide":t=>{let{priority:e}=t;return t=>{let n=[];return e&&t.sort(e),t.forEach(t=>{cl(t);let e=t.getLocalBounds();n.some(t=>(function(t,e){let[n,r]=t,[i,a]=e;return n[0]<a[0]&&r[0]>i[0]&&n[1]<a[1]&&r[1]>i[1]})(k2(e),k2(t.getLocalBounds())))?co(t):n.push(t)}),t}},"labelTransform.overlapDodgeY":t=>{let{maxIterations:e=10,maxError:n=.1,padding:r=1}=t;return t=>{let i=t.length;if(i<=1)return t;let[a,o]=k4(),[l,s]=k4(),[u,c]=k4(),[f,p]=k4();for(let e of t){let{min:t,max:n}=function(t){let e=t.cloneNode(!0),n=e.getElementById("connector");n&&e.removeChild(n);let{min:r,max:i}=e.getRenderBounds();return e.destroy(),{min:r,max:i}}(e),[r,i]=t,[a,l]=n;o(e,i),s(e,i),c(e,l-i),p(e,[r,a])}for(let a=0;a<e;a++){t.sort((t,e)=>up(l(t),l(e)));let e=0;for(let n=0;n<i-1;n++){let i;let a=t[n],o=n+1;for(;(i=t[o])&&!function([t,e],[n,r]){return r>t&&e>n}(f(a),f(i));)o+=1;if(i){let t=l(a),n=u(a),o=l(i),c=o-(t+n);if(c<r){let n=(r-c)/2;e=Math.max(e,n),s(a,t-n),s(i,o+n)}}}if(e<n)break}for(let e of t)e.style.y+=l(e)-a(e);return t}},"labelTransform.overflowHide":()=>t=>(t.forEach(t=>{cl(t);let e=t.attr("bounds");k3(k2(t.getLocalBounds()),e)&&co(t)}),t),"labelTransform.contrastReverse":t=>{let{threshold:e=4.5,palette:n=["#000","#fff"]}=t;return t=>(t.forEach(t=>{let r=t.attr("dependentElement").parsedStyle.fill;k7(t.parsedStyle.fill,r)<e&&t.attr("fill",jt(r,n))}),t)},"labelTransform.overflowStroke":t=>{let{palette:e=["#000","#fff"],threshold:n=2}=t;return t=>(t.forEach(t=>{var r,i;let a=t.attr("dependentElement"),o=null!==(i=null!==(r=t.attributes.fill)&&void 0!==r?r:t.parsedStyle.fill)&&void 0!==i?i:"#fff";if(k3(k2(je(t)),k2(je(a)),n)){let n=jt(k6(o),e);t.attr("stroke",n)}else t.removeAttribute("stroke")}),t)},"labelTransform.exceedAdjust":(t={})=>(e,{canvas:n,layout:r})=>{let{bounds:i="view",offsetX:a=0,offsetY:o=0}=t,l=(()=>{if("main"===i){let{x:t=0,y:e=0,width:n=0,height:i=0,marginLeft:l=0,marginRight:s=0,marginTop:u=0,marginBottom:c=0,paddingLeft:f=0,paddingRight:p=0,paddingTop:d=0,paddingBottom:h=0}=r;return[[t+l+f+a,e+u+d+o],[t+n-s-p-a,e+i-c-h-o]]}{let{x:t=0,y:e=0,width:n=0,height:i=0}=r;return[[t+a,e+o],[t+n-a,e+i-o]]}})();return e.forEach(t=>{cl(t);let{max:e,min:n}=jr(t.getRenderBounds(),t.getBounds());if(!e||!n||0===e[0]&&0===e[1]&&0===n[0]&&0===n[1])return;let[r,i]=e,[a,o]=n,s=jn([[a,o],[r,i]],l);t.style.connector&&t.style.connectorPoints&&(t.style.connectorPoints[0][0]-=s[0],t.style.connectorPoints[0][1]-=s[1]),t.style.x+=s[0],t.style.y+=s[1]}),e}})),{"interaction.drillDown":function(t={}){let{breadCrumb:e={},isFixedColor:n=!1}=t,r=rO({},yu,e);return t=>{let{update:e,setState:i,container:a,view:o,options:l}=t,s=a.ownerDocument,u=r2(a).select(`.${tb}`).node(),{state:c}=l.marks.find(({id:t})=>t===ye),f=s.createElement("g");u.appendChild(f);let p=(t,a)=>{var l,c,d,h;return l=this,c=void 0,d=void 0,h=function*(){if(f.removeChildren(),t){let e=s.createElement("text",{style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});f.appendChild(e);let n="",i=null==t?void 0:t.split(" / "),a=r.style.y,o=f.getBBox().width,l=u.getBBox().width,c=i.map((t,e)=>{let i=s.createElement("text",{style:Object.assign(Object.assign({x:o,text:" / "},r.style),{y:a})});f.appendChild(i),o+=i.getBBox().width,n=`${n}${t} / `;let u=s.createElement("text",{name:n.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:t,x:o,depth:e+1},r.style),{y:a})});return f.appendChild(u),(o+=u.getBBox().width)>l&&(a=f.getBBox().height,o=0,i.attr({x:o,y:a}),o+=i.getBBox().width,u.attr({x:o,y:a}),o+=u.getBBox().width),u});[e,...c].forEach((t,e)=>{if(e===c.length)return;let n=Object.assign({},t.attributes);t.attr("cursor","pointer"),t.addEventListener("mouseenter",()=>{t.attr(r.active)}),t.addEventListener("mouseleave",()=>{t.attr(n)}),t.addEventListener("click",()=>{p(t.name,rl(t,["style","depth"]))})})}i("drillDown",e=>{let{marks:r}=e,i=r.map(e=>{if(e.id!==ye&&"rect"!==e.type)return e;let{data:r}=e,i=Object.fromEntries(["color"].map(t=>[t,{domain:o.scale[t].getOptions().domain}])),l=r.filter(e=>{let r=e.path;return n||(e[yi]=r.split(" / ")[a]),!t||RegExp(`^${t}.+`).test(r)});return rO({},e,n?{data:l,scale:i}:{data:l})});return Object.assign(Object.assign({},e),{marks:i})}),yield e()},new(d||(d=Promise))(function(t,e){function n(t){try{i(h.next(t))}catch(t){e(t)}}function r(t){try{i(h.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):((i=e.value)instanceof d?i:new d(function(t){t(i)})).then(n,r)}i((h=h.apply(l,c||[])).next())})},d=t=>{let e=t.target;if(rl(e,["style",yn])!==ye||"rect"!==rl(e,["markType"])||!rl(e,["style",h9]))return;let n=rl(e,["__data__","key"]),r=rl(e,["style","depth"]);e.style.cursor="pointer",p(n,r)};u.addEventListener("click",d);let h=yl(Object.assign(Object.assign({},c.active),c.inactive)),y=()=>{ys(u).forEach(t=>{let e=rl(t,["style",h9]);if("pointer"!==rl(t,["style","cursor"])&&e){t.style.cursor="pointer";let e=hU(t.attributes,h);t.addEventListener("mouseenter",()=>{t.attr(c.active)}),t.addEventListener("mouseleave",()=>{t.attr(rO(e,c.inactive))})}})};return u.addEventListener("mousemove",y),()=>{f.remove(),u.removeEventListener("click",d),u.removeEventListener("mousemove",y)}}},"mark.sunburst":yo})),Pq=function(){return(Pq=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},PG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},PY=["renderer","plugins"],PV=["width","height","autoFit","theme","inset","insetLeft","insetRight","insetTop","insetBottom","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","depth","title","clip","children","type","data","direction","plugins"],PU="__transform__",PX=function(t,e){return(0,tc.isBoolean)(e)?{type:t,available:e}:Pq({type:t},e)},PK={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",y1Field:"encode.y1",sizeField:"encode.size",setsField:"encode.sets",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",fontSizeField:"encode.fontSize",coordinateType:"coordinate.type",radiu
38s:"coordinate.outerRadius",innerRadius:"coordinate.innerRadius",startAngle:"coordinate.startAngle",endAngle:"coordinate.endAngle",focusX:"coordinate.focusX",focusY:"coordinate.focusY",distortionX:"coordinate.distortionX",distortionY:"coordinate.distortionY",visual:"coordinate.visual",stack:{target:"transform",value:function(t){return PX("stackY",t)}},normalize:{target:"transform",value:function(t){return PX("normalizeY",t)}},percent:{target:"transform",value:function(t){return PX("normalizeY",t)}},group:{target:"transform",value:function(t){return PX("dodgeX",t)}},sort:{target:"transform",value:function(t){return PX("sortX",t)}},symmetry:{target:"transform",value:function(t){return PX("symmetryY",t)}},diff:{target:"transform",value:function(t){return PX("diffY",t)}},meta:{target:"scale",value:function(t){return t}},label:{target:"labels",value:function(t){return t}},shape:"style.shape",connectNulls:{target:"style",value:function(t){return(0,tc.isBoolean)(t)?{connect:t}:t}},transpose:{target:"transpose",value:function(t){return PX("transpose",t)}}},PQ=["xField","yField","seriesField","colorField","shapeField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],PJ=[{key:"annotations",extendedProperties:[]},{key:"line",type:"line",extendedProperties:PQ},{key:"connector",type:"connector",extendedProperties:[]},{key:"point",type:"point",extendedProperties:PQ,defaultShapeConfig:{shapeField:"circle"}},{key:"area",type:"area",extendedProperties:PQ}],P0=[{key:"transform",callback:function(t,e,n){t[e]=t[e]||[];var r,i=n.available,a=PG(n,["available"]);if(void 0===i||i)t[e].push(Pq(((r={})[PU]=!0,r),a));else{var o=t[e].indexOf(function(t){return t.type===n.type});-1!==o&&t[e].splice(o,1)}}},{key:"labels",callback:function(t,e,n){var r;if(!n||(0,tc.isArray)(n)){t[e]=n||[];return}n.text||(n.text=t.yField),t[e]=t[e]||[],t[e].push(Pq(((r={})[PU]=!0,r),n))}},{key:"transpose",callback:function(t,e,n){var r;n.available?t.coordinate={transform:[Pq(((r={})[PU]=!0,r),n)]}:t.coordinate={}}}],P1=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],P2=(l=function(t,e){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),P5=function(){return(P5=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},P3=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},P4=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=P3(e,["style"]);return t.call(this,P5({style:P5({fill:"#eee"},n)},r))||this}return P2(e,t),e}(tk.mg),P6=(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),P8=function(){return(P8=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},P9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},P7=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=P9(e,["style"]);return t.call(this,P8({style:P8({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},n)},r))||this}return P6(e,t),e}(tk.xv),Ct=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},Ce=function(t,e){if((0,tc.isArray)(e))return e},Cn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tc.mergeWith.apply(void 0,Ct(Ct([],t,!1),[Ce],!1))},Cr=(u=function(t,e){return(u=Object.setPrototypeOf||({__proto__:[]}
38)instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Ci=function(t){function e(e,n,r){var i=t.call(this,{style:Cn(r,n)})||this;return i.chart=e,i}return Cr(e,t),e.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this)},e.prototype.disconnectedCallback=function(){},e.prototype.attributeChangedCallback=function(t){},e.prototype.update=function(t,e){var n;return this.attr(Cn({},this.attributes,t||{})),null===(n=this.render)||void 0===n?void 0:n.call(this,this.attributes,this,e)},e.prototype.clear=function(){this.removeChildren()},e.prototype.getElementsLayout=function(){var t=this.chart.getContext().canvas.document.getElementsByClassName("element"),e=[];return t.forEach(function(t){var n=t.getBBox(),r=n.x,i=n.y,a=n.width,o=n.height,l=t.__data__;e.push({bbox:n,x:r,y:i,width:a,height:o,key:l.key,data:l})}),e},e.prototype.bindEvents=function(t,e){},e}(tk.b_),Ca=(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Co=function(){return(Co=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Cl=function(t){function e(n,r){return t.call(this,n,r,{type:e.tag})||this}return Ca(e,t),e.prototype.getConversionTagLayout=function(){var t="vertical"===this.direction,e=Array.from(this.getElementsLayout()).sort(function(e,n){return t?e.y-n.y:e.x-n.x}),n=e[0],r=n.x,i=n.y,a=n.height,o=n.width,l=n.data,s=["items",0,"value"],u=(0,tc.get)(l,s),c=t?e[1].y-i-a:e[1].x-r-o,f=[],p=this.attributes,d=p.size,h=void 0===d?40:d,y=p.arrowSize,g=void 0===y?20:y,m=p.spacing,v=void 0===m?4:m;return e.forEach(function(e,n){if(n>0){var r=e.x,i=e.y,a=e.height,o=e.width,l=e.data,p=e.key,d=(0,tc.get)(l,s),y=h/2;if(t){var m=r+o/2,b=i;f.push({points:[[m+y,b-c+v],[m+y,b-g-v],[m,b-v],[m-y,b-g-v],[m-y,b-c+v]],center:[m,b-c/2],width:c,value:[u,d],key:p})}else{var m=r,b=i+a/2;f.push({points:[[r-c+v,b-y],[r-g-v,b-y],[m-v,b],[r-g-v,b+y],[r-c+v,b+y]],center:[m-c/2,b],width:c,value:[u,d],key:p})}u=d}}),f},e.prototype.render=function(){this.setDirection(),this.drawConversionTag()},e.prototype.setDirection=function(){var t=this.chart.getCoordinate(),e=(0,tc.get)(t,"options.transformations"),n="horizontal";e.forEach(function(t){t.includes("transpose")&&(n="vertical")}),this.direction=n},e.prototype.drawConversionTag=function(){var t=this,e=this.getConversionTagLayout(),n=this.attributes,r=n.style,i=n.text,a=i.style,o=i.formatter;e.forEach(function(e){var n=e.points,i=e.center,l=e.value,s=e.key,u=l[0],c=l[1],f=i[0],p=i[1],d=new P4({style:Co({points:n,fill:"#eee"},r),id:"polygon-".concat(s)}),h=new P7({style:Co({x:f,y:p,text:(0,tc.isFunction)(o)?o(u,c):(c/u*100).toFixed(2)+"%"},a),id:"text-".concat(s)});t.appendChild(d),t.appendChild(h)})},e.prototype.update=function(){this.clear(),this.drawConversionTag()},e.prototype.destroy=function(){this.clear()},e.tag="ConversionTag",e}(Ci),Cs=(f=function(t,e){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Cu=function(){return(Cu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Cc=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},Cf={ConversionTag:Cl,BidirectionalBarAxisText:function(t){function e(n,r){return t.call(this,n,r,{type:e.tag})||this}return Cs(e,t),e.prototype.render=function(){this.drawText()},e.prototype.getBidirectionalBarAxisTextLayout=function(){var t="vertical"===this.attributes.layout,e=this.getElementsLayout(),n=t?(0,tc.uniqBy)(e,"x"):(0,tc.uniqBy)(e,"y"),r=["title"],i=[],a=this.chart.getContext().views,o=(0,tc.get)(a,[0,"layout"]),l=o.width,s=o.height;
38return n.forEach(function(e){var n=e.x,a=e.y,o=e.height,u=e.width,c=e.data,f=e.key,p=(0,tc.get)(c,r);t?i.push({x:n+u/2,y:s,text:p,key:f}):i.push({x:l,y:a+o/2,text:p,key:f})}),(0,tc.uniqBy)(i,"text").length!==i.length&&(i=Object.values((0,tc.groupBy)(i,"text")).map(function(e){var n,r=e.reduce(function(e,n){return e+(t?n.x:n.y)},0);return Cu(Cu({},e[0]),((n={})[t?"x":"y"]=r/e.length,n))})),i},e.prototype.transformLabelStyle=function(t){var e={},n=/^label[A-Z]/;return Object.keys(t).forEach(function(r){n.test(r)&&(e[r.replace("label","").replace(/^[A-Z]/,function(t){return t.toLowerCase()})]=t[r])}),e},e.prototype.drawText=function(){var t=this,e=this.getBidirectionalBarAxisTextLayout(),n=this.attributes,r=n.layout,i=n.labelFormatter,a=Cc(n,["layout","labelFormatter"]);e.forEach(function(e){var n=e.x,o=e.y,l=e.text,s=e.key,u=new P7({style:Cu({x:n,y:o,text:(0,tc.isFunction)(i)?i(l):l,wordWrap:!0,wordWrapWidth:"horizontal"===r?64:120,maxLines:2,textOverflow:"ellipsis"},t.transformLabelStyle(a)),id:"text-".concat(s)});t.appendChild(u)})},e.prototype.destroy=function(){this.clear()},e.prototype.update=function(){this.destroy(),this.drawText()},e.tag="BidirectionalBarAxisText",e}(Ci)},Cp=function(){function t(t,e){this.container=new Map,this.chart=t,this.config=e,this.init()}return t.prototype.init=function(){var t=this;
38P1.forEach(function(e){var n,r=e.key,i=e.shape,a=t.config[r];if(a){var o=new Cf[i](t.chart,a);t.chart.getContext().canvas.appendChild(o),t.container.set(r,o)}else null===(n=t.container.get(r))||void 0===n||n.clear()})},t.prototype.update=function(){var t=this;this.container.size&&P1.forEach(function(e){var n=e.key,r=t.container.get(n);null==r||r.update()})},t.prototype.destroy=function(){this.container.forEach(function(t){t.destroy()}),this.container.clear()},t}(),Cd=(p=function(t,e){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Ch=function(){return(Ch=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Cy="data-chart-source-type",Cg=function(t){function e(e,n){var r=t.call(this)||this;return r.eventListeners=[],r.bindedEvents=!1,r.container="string"==typeof e?document.getElementById(e):e,r.options=r.mergeOption(n),r.createG2(),r.bindEvents(),r}return Cd(e,t),e.prototype.getChartOptions=function(){return Ch(Ch({},(0,tc.pick)(this.options,PY)),{container:this.container})},e.prototype.getSpecOptions=function(){return"base"===this.type||this.__skipDelCustomKeys__?Ch(Ch({},this.options),this.getChartOptions()):this.options},e.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new PH(this.getChartOptions()),this.container.setAttribute(Cy,"Ant Design Charts")},e.prototype.bindEvents=function(){var t=this;if(this.chart){var e=function(e){(null==e?void 0:e.type)&&t.emit(e.type,e)};this.chart.on("*",e),this.eventListeners.push(function(){var n;null===(n=t.chart)||void 0===n||n.off("*",e)})}},e.prototype.getBaseOptions=function(){return{type:"view",autoFit:!0}},e.prototype.getDefaultOptions=function(){},e.prototype.render=function(){var t=this;"base"!==this.type&&this.execAdaptor(),this.chart.options(this.getSpecOptions()),this.chart.render().then(function(){t.annotation?t.annotation.update():t.annotation=new Cp(t.chart,t.options),t.bindSizeSensor()})},e.prototype.update=function(t){this.options=this.mergeOption(t)},e.prototype.mergeOption=function(t){return Cn({},this.getBaseOptions(),this.getDefaultOptions(),t)},e.prototype.changeData=function(t){this.chart.changeData(t)},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.destroy=function(){this.eventListeners.forEach(function(t){return t()}),this.eventListeners=[],this.annotation&&"function"==typeof this.annotation.destroy&&this.annotation.destroy(),this.annotation=null,this.chart.destroy(),this.off(),this.bindedEvents=!1,this.container.removeAttribute(Cy)},e.prototype.execAdaptor=function(){this.getSchemaAdaptor()({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.bindedEvents){var e=this.options.autoFit;if(void 0===e||e){var n=function(){t.annotation&&t.annotation.update()};this.chart.on(r3.AFTER_CHANGE_SIZE,n),this.eventListeners.push(function(){var e;null===(e=t.chart)||void 0===e||e.off(r3.AFTER_CHANGE_SIZE,n)}),this.bindedEvents=!0}}},e}(th),Cm=(d=function(t,e){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Cv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="base",e}return Cm(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"line"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return function(t){return t}},e}(Cg),Cb=function(t){var e=t.options,n=e.children;
38return(void 0===n?[]:n).forEach(function(t){Object.keys(t).forEach(function(e){(0,tc.isArray)(t[e])&&"data"!==e&&(t[e]=t[e].filter(function(t){return!t[PU]}))})}),e},Cx=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},CO=function(t){var e=t.children,n=Object.keys(PK).concat(PJ.map(function(t){return t.key}));return n.forEach(function(e){delete t[e]}),(void 0===e?[]:e).forEach(function(t){Object.keys(t).forEach(function(e){n.includes(e)&&delete t[e]})}),Object.keys(t).forEach(function(e){Cx(Cx([],PV,!0),P1.map(function(t){return t.key}),!0).includes(e)||delete t[e]}),t},Cw=function(){return(Cw=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},CM=function(t){var e=Cb(t),n=e.children,r=void 0===n?[]:n,i=(0,tc.omit)(e,[].concat(PV,PJ.map(function(t){return t.key}))),a=function(t){var e;return null===(e=P0.find(function(e){return e.key===t}))||void 0===e?void 0:e.callback},o=function(t,e,n){var r=a(e);r?r(t,e,n):t[e]=Cn({},t[e],n)},l=function(t){Object.keys(t).forEach(function(e){if(t[e]){var n=PJ.find(function(t){return t.key===e});if(n){var i=n.type,a=n.extendedProperties,o=n.defaultShapeConfig;if(i){var l=t[e].tooltip;r.push(s(Cn({},(0,tc.pick)(t,a),void 0===o?{}:o,{type:i},t[e],{tooltip:!!l&&l})))}else if((0,tc.isArray)(t[e])){var u=t[e].some(function(t){return"text"===t.type});t[e].forEach(function(t){r.push(s(Cw(Cw(Cw({},u?{data:[]}:{}),{tooltip:!1}),t)))})}}}})},s=function(t){return l(t),Object.keys(PK).forEach(function(e){var n=PK[e];if(!(0,tc.isUndefined)(t[e])){if((0,tc.isObject)(n)){var r=n.value,i=n.target,a=r(t[e]);o(t,i,a)}else(0,tc.set)(t,n,t[e])}}),t};return r.forEach(function(t){var e=Cn({},i,t);s(Cn(t,e))}),l(e),CO(e),t},C_=function(){return(C_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function Ck(t){var e=t.options,n=e.stack,r=e.tooltip,i=e.xField;if(!n)return t;var a=PJ.map(function(t){return t.type}).filter(function(t){return!!t}),o=!1;return a.forEach(function(t){e[t]&&(o=!0,(0,tc.set)(e,[t,"stack"],C_({y1:"y"},"object"==typeof n?n:{})))}),!o||(0,tc.isBoolean)(r)||r||(0,tc.set)(e,"tooltip",{title:i,items:[{channel:"y"}]}),t}function Cj(t){return(0,tc.flow)(Ck)(t)}function CA(t){return(0,tc.flow)(Cj,CM)(t)}
38var CE=(h=function(t,e){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),CS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return CE(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"area"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return CA},e}(Cg),CP=function(){return(CP=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function CC(t){return(0,tc.flow)(function(t){var e=t.options;(0,tc.get)(e,"children.length")>1&&(0,tc.set)(e,"children",[{type:"interval"}]);var n=e.scale,r=e.markBackground,i=e.data,a=e.children,o=e.yField,l=(0,tc.get)(n,"y.domain",[]);if(r&&l.length&&(0,tc.isArray)(i)){var s="domainMax",u=i.map(function(t){var e;return CP(CP({originData:CP({},t)},(0,tc.omit)(t,o)),((e={})[s]=l[l.length-1],e))});a.unshift(CP({type:"interval",data:u,yField:s,tooltip:!1,style:{fill:"#eee"},label:!1},r))}return t},Cj,CM)(t)}var CT=(y=function(t,e){return(y=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});nc("shape.interval.bar25D",function(t,e){return function(n){var r=t.fill,i=void 0===r?"#2888FF":r,a=t.stroke,o=t.fillOpacity,l=void 0===o?1:o,s=t.strokeOpacity,u=void 0===s?.2:s,c=t.pitch,f=void 0===c?8:c,p=n[0],d=n[1],h=n[2],y=n[3],g=(d[1]-p[1])/2,m=e.document,v=m.createElement("g",{}),b=m.createElement("polygon",{style:{points:[p,[p[0]-f,p[1]+g],[h[0]-f,p[1]+g],y],fill:i,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),x=m.createElement("polygon",{style:{points:[[p[0]-f,p[1]+g],d,h,[h[0]-f,p[1]+g]],fill:i,fillOpacity:l,stroke:a,strokeOpacity:u}}),O=m.createElement("polygon",{style:{points:[p,[p[0]-f,p[1]+g],d,[p[0]+f,p[1]+g]],fill:i,fillOpacity:l-.2}});return v.appendChild(b),v.appendChild(x),v.appendChild(O),v}});var CR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="Bar",e}return CT(e,t),e.getDefaultOptions=function(){return{type:"view",coordinate:{transform:[{type:"transpose"}]},children:[{type:"interval"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return CC},e}(Cg),CL=(g=function(t,e){return(g=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});nc("shape.interval.column25D",function(t,e){return function(n){var r=t.fill,i=void 0===r?"#2888FF":r,a=t.stroke,o=t.fillOpacity,l=void 0===o?1:o,s=t.strokeOpacity,u=void 0===s?.2:s,c=t.pitch,f=void 0===c?8:c,p=(n[1][0]-n[0][0])/2+n[0][0],d=e.document,h=d.createElement("g",{}),y=d.createElement("polygon",{style:{points:[[n[0][0],n[0][1]],[p,n[1][1]+f],[p,n[3][1]+f],[n[3][0],n[3][1]]],fill:i,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),g=d.createElement("polygon",{style:{points:[[p,n[1][1]+f],[n[1][0],n[1][1]],[n[2][0],n[2][1]],[p,n[2][1]+f]],fill:i,fillOpacity:l,stroke:a,strokeOpacity:u}}),m=d.createElement("polygon",{style:{points:[[n[0][0],n[0][1]],[p,n[1][1]-f],[n[1][0],n[1][1]],[p,n[1][1]+f]],fill:i,fillOpacity:l-.2}});return h.appendChild(g),h.appendChild(y),h.appendChild(m),h}});var CN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return CL(e,t),e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return CC},e}(Cg);function CI(t){return(0,tc.flow)(function(t){var e=t.options,n=e.children;
38return e.legend&&(void 0===n?[]:n).forEach(function(t){if(!(0,tc.get)(t,"colorField")){var e=(0,tc.get)(t,"yField");(0,tc.set)(t,"colorField",function(){return e})}}),t},function(t){var e=t.options,n=e.annotations,r=void 0===n?[]:n,i=e.children,a=e.scale,o=!1;return(0,tc.get)(a,"y.key")||(void 0===i?[]:i).forEach(function(t,e){if(!(0,tc.get)(t,"scale.y.key")){var n="child".concat(e,"Scale");(0,tc.set)(t,"scale.y.key",n);var i=t.annotations,a=void 0===i?[]:i;a.length>0&&((0,tc.set)(t,"scale.y.independent",!1),a.forEach(function(t){(0,tc.set)(t,"scale.y.key",n)})),!o&&r.length>0&&void 0===(0,tc.get)(t,"scale.y.independent")&&(o=!0,(0,tc.set)(t,"scale.y.independent",!1),r.forEach(function(t){(0,tc.set)(t,"scale.y.key",n)}))}}),t},Cj,CM)(t)}var CF=(m=function(t,e){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),CB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="DualAxes",e}return CF(e,t),e.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return CI},e}(Cg);function CD(t){return(0,tc.flow)(function(t){var e=t.options,n=e.xField;return e.colorField||(0,tc.set)(e,"colorField",n),t},function(t){var e=t.options,n=e.compareField,r=e.transform,i=e.isTransposed,a=e.coordinate;return r||(n?(0,tc.set)(e,"transform",[]):(0,tc.set)(e,"transform",[{type:"symmetryY"}])),!a&&(void 0===i||i)&&(0,tc.set)(e,"coordinate",{transform:[{type:"transpose"}]}),t},function(t){var e=t.options,n=e.compareField,r=e.seriesField,i=e.data,a=e.children,o=e.yField,l=e.isTransposed;if(n||r){var s=Object.values((0,tc.groupBy)(i,function(t){return t[n||r]}));a[0].data=s[0],a.push({type:"interval",data:s[1],yField:function(t){return-t[o]}}),delete e.compareField,delete e.data}return r&&((0,tc.set)(e,"type","spaceFlex"),(0,tc.set)(e,"ratio",[1,1]),(0,tc.set)(e,"direction",void 0===l||l?"row":"col"),delete e.seriesField),t},function(t){var e=t.options,n=e.tooltip,r=e.xField,i=e.yField;return n||(0,tc.set)(e,"tooltip",{title:!1,items:[function(t){return{name:t[r],value:t[i]}}]}),t},Cj,CM)(t)}var Cz=(v=function(t,e){return(v=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),C$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return Cz(e,t),e.getDefaultOptions=function(){return{type:"view",scale:{x:{padding:0}},animate:{enter:{type:"fadeIn"}},axis:!1,shapeField:"funnel",label:{position:"inside",transform:[{type:"contrastReverse"}]},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return CD},e}(Cg);function CW(t){return(0,tc.flow)(Cj,CM)(t)}var CZ=(b=function(t,e){return(b=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),CH=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return CZ(e,t),e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return CW},e}(Cg);function Cq(t){switch(typeof t){case"function":return t;case"string":return function(e){return(0,tc.get)(e,[t])};default:return function(){return t}}}var CG=function(){return(CG=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function CY(t){return(0,tc.flow)(function(t){var e=t.options,n=e.angleField,r=e.data,i=e.label,a=e.tooltip,o=e.colorField,l=Cq(o);if((0,tc.isArray)(r)&&r.length>0){if(0===r.reduce(function(t,e){return t+e[n]},0)){var s=r.map(function(t){var e;return CG(CG({}
38,t),((e={})[n]=1,e))});if((0,tc.set)(e,"data",s),i){var u=o===(0,tc.get)(i,"text");(0,tc.set)(e,"label",CG(CG({},i),u?{}:{formatter:function(){return 0}}))}!1!==a&&((0,tc.isFunction)(a)?(0,tc.set)(e,"tooltip",function(t,e,r){var i;return a(CG(CG({},t),((i={})[n]=0,i)),e,r.map(function(t){var e;return CG(CG({},t),((e={})[n]=0,e))}))}):(0,tc.set)(e,"tooltip",CG(CG({},a),{items:[function(t,e,n){return{name:l(t,e,n),value:0}}]})))}else(0,tc.set)(e,"tooltip",a),(0,tc.set)(e,"label",i)}return t},CM)(t)}var CV=(x=function(t,e){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),CU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return CV(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"theta"},transform:[{type:"stackY",reverse:!0}],animate:{enter:{type:"waveIn"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return CY},e}(Cg);function CX(t){return(0,tc.flow)(Cj,CM)(t)}var CK=(O=function(t,e){return(O=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}O(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),CQ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e}return CK(e,t),e.getDefaultOptions=function(){return{axis:{y:{title:!1},x:{title:!1}},legend:{size:!1},children:[{type:"point"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return CX},e}(Cg);function CJ(t){return(0,tc.flow)(function(t){return(0,tc.set)(t,"options.coordinate",{type:(0,tc.get)(t,"options.coordinateType","polar")}),t},CM)(t)}var C0=(w=function(t,e){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),C1=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}return C0(e,t),e.getDefaultOptions=function(){return{axis:{x:{grid:!0,line:!0},y:{zIndex:1,title:!1,line:!0,nice:!0}},meta:{x:{padding:.5,align:0}},interaction:{tooltip:{style:{crosshairsLineDash:[4,4]}}},children:[{type:"line"}],coordinateType:"polar"}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return CJ},e}(Cg);function C2(t){return(0,tc.flow)(function(t){var e=t.options,n=e.yField,r=e.children,i=e.style,a=e.lineStyle,o=n[0],l=n[1],s=n[2],u=n[3];return(0,tc.set)(r,[0,"yField"],[s,u]),(0,tc.set)(r,[0,"style"],void 0===a?{}:a),(0,tc.set)(r,[1,"yField"],[o,l]),(0,tc.set)(r,[1,"style"],void 0===i?{}:i),delete e.yField,delete e.lineStyle,delete e.style,t},CM)(t)}var C5=(M=function(t,e){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),C3=["#26a69a","#999999","#ef5350"],C4=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return C5(e,t),e.getDefaultOptions=function(){return{type:"view",scale:{color:{domain:[-1,0,1],range:C3},y:{nice:!0}},children:[{type:"link"},{type:"interval"}],axis:{x:{title:!1,grid:!1},y:{title:!1,grid:!0,gridLineDash:null}},animate:{enter:{type:"scaleInY"}},interaction:{tooltip:{shared:!0,marker:!1,groupName:!1,crosshairs:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return C2},e}(Cg);function C6(t){return(0,tc.flow)(Cj,CM)(t)}var C8=(_=function(t,e){return(_=Object.setPrototypeOf||({__proto__:[]}
38)instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),C9=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="TinyLine",e}return C8(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"line",axis:!1}],padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return C6},e}(Cg);function C7(t){return(0,tc.flow)(Cj,CM)(t)}var Tt=(k=function(t,e){return(k=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Te=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="TinyArea",e}return Tt(e,t),e.getDefaultOptions=function(){return{type:"view",animate:{enter:{type:"growInX",duration:500}},children:[{type:"area",axis:!1}],padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return C7},e}(Cg);function Tn(t){return(0,tc.flow)(Cj,CM)(t)}var Tr=(j=function(t,e){return(j=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}j(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="TinyColumn",e}return Tr(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval",axis:!1}],padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Tn},e}(Cg),Ta=function(){return(Ta=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function To(t){return(0,tc.flow)(function(t){var e=t.options,n=e.percent,r=e.color,i=void 0===r?[]:r;if(!n)return t;var a={scale:{color:{range:i.length?i:[]}},data:[1,n]};return Object.assign(e,Ta({},a)),t},Cj,CM)(t)}var Tl=(A=function(t,e){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Ts=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="TinyProgress",e}return Tl(e,t),e.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,tooltip:!1,children:[{interaction:{tooltip:!1},coordinate:{transform:[{type:"transpose"}]},type:"interval",axis:!1,legend:!1,encode:{y:function(t){return t},color:function(t,e){return e}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return To},e}(Cg),Tu=function(){return(Tu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function Tc(t){return(0,tc.flow)(function(t){var e=t.options.radius;return(0,tc.set)(t,"options.coordinate.innerRadius",void 0===e?.8:e),t}
38,function(t){var e=t.options,n=e.percent,r=e.color,i=void 0===r?[]:r;if(!n)return t;var a={scale:{color:{range:i.length?i:[]}},data:[1,n]};return Object.assign(e,Tu({},a)),t},Cj,CM)(t)}var Tf=(E=function(t,e){return(E=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}E(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Tp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="TinyRing",e}return Tf(e,t),e.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,coordinate:{type:"theta"},animate:{enter:{type:"waveIn"}},interaction:{tooltip:!1},tooltip:!1,children:[{type:"interval",axis:!1,legend:!1,encode:{y:function(t){return t},color:function(t,e){return e}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Tc},e}(Cg);function Td(t){return(0,tc.flow)(CM)(t)}var Th=(S=function(t,e){return(S=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Ty=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return Th(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"polar"},animate:{enter:{type:"waveIn"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Td},e}(Cg),Tg="__start__",Tm="__end__",Tv="__waterfall_value__",Tb=function(){return(Tb=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Tx=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function TO(t){return(0,tc.flow)(function(t){var e=t.options,n=e.data,r=void 0===n?[]:n,i=e.yField;return r.length&&(r.reduce(function(t,e,n){var a,o=Cq(i),l=o(e,n,r);if(0===n||e.isTotal)e[Tg]=0,e[Tm]=l,e[Tv]=l;else{var s=null!==(a=t[Tm])&&void 0!==a?a:o(t,n,r);e[Tg]=s,e[Tm]=s+l,e[Tv]=t[Tm]}return e},[]),Object.assign(e,{yField:[Tg,Tm]})),t},function(t){var e=t.options,n=e.data,r=e.xField,i=e.children,a=e.linkStyle,o=Tx([],void 0===n?[]:n,!0);return o.reduce(function(t,e,n){return n>0&&(e.x1=t[r],e.x2=e[r],e.y1=t[Tm]),e},[]),o.shift(),i.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:o,style:Tb({stroke:"#697474"},a),label:!1,tooltip:!1}),t},Cj,function(t){var e=t.options,n=e.data,r=void 0===n?[]:n,i=e.connector;return i&&(0,tc.set)(e,"connector",Tb({xField:i.reverse?["x2","x1"]:["x1","x2"],yField:i.reverse?["y2","y1"]:["y1","y2"],data:[{x1:r[0].x,y1:r[0][Tm],x2:r[r.length-1].x,y2:r[r.length-1][Tm]}]},(0,tc.isObject)(i)?i:{})),t},CM)(t)}var Tw=(P=function(t,e){return(P=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}P(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),TM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}return Tw(e,t),e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:Tv,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlight:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return TO},e}(Cg);function T_(t){return(0,tc.flow)(function(t){var e=t.options,n=e.data,r=e.binNumber,i=e.binWidth,a=e.children,o=e.channel,l=void 0===o?"count":o,s=(0,tc.get)(a,"[0].transform[0]",{});return(0,tc.isNumber)(i)?(0,tc.assign)(s,{thresholds:(0,tc.ceil)((0,tc.divide)(n.length,i)),y:l}):(0,tc.isNumber)(r)&&(0,tc.assign)(s,{thresholds:r,y:l}),t},Cj,CM)(t)}
38var Tk=(C=function(t,e){return(C=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}C(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Tj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="Histogram",e}return Tk(e,t),e.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlight:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return T_},e}(Cg);function TA(t){return(0,tc.flow)(function(t){var e=t.options,n=e.tooltip,r=void 0===n?{}:n,i=e.colorField,a=e.sizeField;return r&&!r.field&&(r.field=i||a),t},function(t){var e=t.options,n=e.mark,r=e.children;return n&&(r[0].type=n),t},Cj,CM)(t)}var TE=(T=function(t,e){return(T=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),TS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}return TE(e,t),e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{valueFormatter:"~s"},axis:{y:{title:null,grid:!0},x:{title:null,grid:!0}},children:[{type:"point"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return TA},e}(Cg);function TP(t){return(0,tc.flow)(function(t){var e=t.options.boxType;return t.options.children[0].type=void 0===e?"box":e,t},Cj,CM)(t)}var TC=(R=function(t,e){return(R=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}R(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),TT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}return TC(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"box"}],axis:{y:{title:!1},x:{title:!1}},tooltip:{items:[{name:"min",channel:"y"},{name:"q1",channel:"y1"},{name:"q2",channel:"y2"},{name:"q3",channel:"y3"},{name:"max",channel:"y4"}]}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return TP},e}(Cg),TR=function(t){var e=t.options,n=e.data;return(0,tc.get)(n,"value")||"fetch"!==(0,tc.get)(n,"type")&&(0,tc.isPlainObject)(n)&&(0,tc.set)(e,"data.value",n),t},TL=function(t){var e=t.options,n=e.data,r=[{type:"custom",callback:function(t){return{links:t}}}];if((0,tc.isArray)(n))n.length>0?(0,tc.set)(e,"data",{value:n,transform:r}):delete e.children;else if("fetch"===(0,tc.get)(n,"type")&&(0,tc.get)(n,"value")){var i=(0,tc.get)(n,"transform");(0,tc.isArray)(i)||(0,tc.set)(n,"transform",r)}return t};function TN(t){return(0,tc.flow)(TR,TL,Cj,CM)(t)}var TI=(L=function(t,e){return(L=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}L(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),TF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}return TI(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return TN},e}(Cg);function TB(t){e=t.options.layout,t.options.coordinate.transform="horizontal"!==(void 0===e?"horizontal":e)?void 0:[{type:"transpose"}];var e,n=t.options.layout,r=void 0===n?"horizontal":n;
38return t.options.children.forEach(function(t){var e;(null===(e=null==t?void 0:t.coordinate)||void 0===e?void 0:e.transform)&&(t.coordinate.transform="horizontal"!==r?void 0:[{type:"transpose"}])}),t}var TD=function(){return(TD=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Tz=["#f0efff","#5B8FF9","#3D76DD"];function T$(t,e,n,r){void 0===r&&(r=!0);var i=0,a=!1,o=(0,tc.map)(t,function(t){var o,l,s=(0,tc.get)(t,[e]);if((0,tc.isNil)(s))return[];if((0,tc.isString)(s)){var u=Number(s);return isNaN(u)?[]:((o={})[n]=t[n],o[e]=u,o)}return(0,tc.isArray)(s)?(a=!0,i=Math.max(i,s.length),(0,tc.map)(r?s.sort(function(t,e){return e-t}):s,function(r,i){var a;return(a={})[n]=t[n],a[e]=r,a.index=i,a})):(i=Math.max(1,i),(l={})[n]=t[n],l[e]=s,l)}).flat();return a?[o.map(function(t){return TD({index:0},t)}),i]:[o,i]}function TW(t,e){return Array(t).fill("").map(function(t,n){return(0,tc.isArray)(e)?e[n%e.length]:e})}function TZ(t){return(0,tc.flow)(function(t){var e=t.options,n=e.color,r=e.rangeField,i=void 0===r?"ranges":r,a=e.measureField,o=void 0===a?"measures":a,l=e.targetField,s=void 0===l?"targets":l,u=e.xField,c=void 0===u?"title":u,f=e.mapField,p=e.data,d=T$(p,i,c),h=d[0],y=d[1],g=T$(p,o,c,!1),m=g[0],v=g[1],b=T$(p,s,c,!1),x=b[0],O=b[1],w=(0,tc.get)(n,[i],"#f0efff"),M=(0,tc.get)(n,[o],"#5B8FF9"),_=(0,tc.get)(n,[s],"#3D76DD"),k=[TW(y,w),TW(v,M),TW(O,_)].flat();return e.children=(0,tc.map)(e.children,function(t,e){var n=[h,m,x][e],r=[i,o,s][e];return TD(TD({},t),{data:n,encode:TD(TD({},t.encode||{}),{x:c,y:r,color:function(t){var e=t.index,n=(0,tc.isNumber)(e)?"".concat(r,"_").concat(e):r;return f?(0,tc.get)(f,[r,e],n):n}})})}),(0,tc.set)(e,"scale.color.range",k),(0,tc.get)(e,"legend.color")&&(0,tc.isNil)((0,tc.get)(e,"legend.color.itemMarker"))&&(e.legend.color.itemMarker=function(t){return f&&(0,tc.includes)(null==f?void 0:f[s],t)?"line":(null==t?void 0:t.replace(/\_\d$/,""))===s?"line":"square"}),t},function(t){var e=t.options.transpose;return void 0===e||e||(0,tc.set)(t,"options.children[2].shapeField","hyphen"),t},function(t){var e=t.options,n=e.range,r=e.measure,i=e.target,a=e.children;return e.children=[void 0===n?{}:n,void 0===r?{}:r,void 0===i?{}:i].map(function(t,e){return Cn(a[e],t)}),t},TB,CM)(t)}var TH=(N=function(t,e){return(N=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}N(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Tq=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}return TH(e,t),e.getDefaultOptions=function(){return{type:"view",scale:{color:{range:Tz}},legend:{color:{itemMarker:function(t){return"targets"===t?"line":"square"}}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval",style:{maxWidth:30,zIndex:-2},axis:{y:{grid:!0,gridLineWidth:2}}},{type:"interval",style:{maxWidth:20,zIndex:-1},transform:[{type:"stackY"}]},{type:"point",encode:{size:8,shape:"line"}}],interaction:{tooltip:{shared:!0}},coordinate:{transform:[{type:"transpose"}]}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return TZ},e}(Cg);function TG(t){return(0,tc.flow)(function(t){var e=t.options.data;return t.options.data={value:e},t},Cj,CM)(t)}var TY=(I=function(t,e){return(I=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}I(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),TV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="Gauge",e}return TY(e,t),e.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"gauge"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return TG},e}(Cg);function TU(t){return(0,tc.flow)(function(t){var e=t.options.percent;return(0,tc.isNumber)(e)&&((0,tc.set)(t,"options.data",e),delete t.options.percent),t},Cj,CM)(t)}
38var TX=(F=function(t,e){return(F=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}F(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),TK=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="Liquid",e}return TX(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"liquid"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return TU},e}(Cg);function TQ(t){return(0,tc.flow)(Cj,CM)(t)}var TJ=(B=function(t,e){return(B=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}B(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),T0=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="WordCloud",e}return TJ(e,t),e.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"wordCloud"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return TQ},e}(Cg);function T1(t){return(0,tc.flow)(TR,Cj,CM)(t)}var T2=(D=function(t,e){return(D=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),T5=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}return T2(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"treemap"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return T1},e}(Cg),T3=function(){return(T3=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},T4=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function T6(t){return(0,tc.flow)(function(t){var e=t.options,n=e.startAngle,r=e.maxAngle,i=e.coordinate,a=(0,tc.isNumber)(n)?n/(2*Math.PI)*360:-90,o=(0,tc.isNumber)(r)?(Number(r)+a)/180*Math.PI:Math.PI;return(0,tc.set)(t,["options","coordinate"],T3(T3({},i),{endAngle:o,startAngle:null!=n?n:-Math.PI/2})),t},function(t){var e=t.options,n=e.tooltip,r=e.xField,i=e.yField,a=Cq(r),o=Cq(i);return n||(0,tc.set)(e,"tooltip",{title:!1,items:[function(t,e,n){return{name:a(t,e,n),value:o(t,e,n)}}]}),t},function(t){var e=t.options,n=e.markBackground,r=e.children,i=e.scale,a=e.coordinate,o=e.xField,l=(0,tc.get)(i,"y.domain",[]);if(n){var s=n.style,u=T4(n,["style"]);r.unshift(T3({type:"interval",xField:o,yField:l[l.length-1],style:T3({fillOpacity:.4,fill:"#e0e4ee"},s),coordinate:T3(T3({},a),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},u))}return t},Cj,CM)(t)}var T8=(z=function(t,e){return(z=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}z(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),T9=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial",e}return T8(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"radial",innerRadius:.1,outerRadius:1,endAngle:Math.PI},animate:{enter:{type:"waveIn",duration:800}},axis:{y:{nice:!0,labelAutoHide:!0,labelAutoRotate:!1},x:{title:!1,nice:!0,labelAutoRotate:!1,labelAutoHide:{type:"equidistance",cfg:{minGap:6}}}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return T6},e}(Cg);function T7(t){return(0,tc.flow)(TR,CM)(t)}var Rt=($=function(t,e){return($=Object.setPrototypeOf||({__proto__:[]}
38)instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}$(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Re=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="CirclePacking",e}return Rt(e,t),e.getDefaultOptions=function(){return{legend:!1,type:"view",children:[{type:"pack",encode:{color:"depth"}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return T7},e}(Cg),Rn=function(){return(Rn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function Rr(t){return(0,tc.flow)(function(t){var e=t.options,n=e.xField,r=e.yField,i=e.colorField,a=e.seriesField,o=e.children,l=null==o?void 0:o.map(function(t){return Rn(Rn({},t),{xField:n,yField:r,seriesField:a||i,colorField:i||a,data:"density"===t.type?{transform:[{type:"kde",field:r,groupBy:[n,a||i]}]}:t.data})}).filter(function(t){return e.box||"density"===t.type});return(0,tc.set)(e,"children",l),delete e.box,t},Cj,CM)(t)}var Ri=(W=function(t,e){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}W(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Ra=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}return Ri(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"density",sizeField:"size",tooltip:!1},{type:"boxplot",shapeField:"violin",style:{opacity:.5,point:!1}}],animate:{enter:{type:"fadeIn"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Rr},e}(Cg),Ro=function(){return(Ro=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Rl=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function Rs(t){return(0,tc.flow)(function(t){var e=t.options,n=e.yField;return e.children.forEach(function(t,e){(0,tc.set)(t,"yField",n[e])}),t},function(t){var e=t.options,n=e.yField,r=e.children,i=e.data;if((0,tc.isPlainObject)(i))return t;var a=(0,tc.isArray)((0,tc.get)(i,[0]))?i:[i,i];return r.forEach(function(t,e){(0,tc.set)(t,"data",Rl([],a[e].map(function(t){return Ro({groupKey:n[e]},t)}),!0))}),t},function(t){var e=t.options,n=e.yField,r=n[0],i=n[1];return e.tooltip||(0,tc.set)(e,"tooltip",{items:[{field:r,value:r},{field:i,value:i}]}),t},function(t){var e=t.options,n=e.children,r=e.layout,i=e.coordinate.transform,a=e.paddingBottom,o=e.paddingLeft,l=e.axis;(0,tc.set)(e,"axisText",Ro(Ro({},(null==l?void 0:l.x)||{}),{layout:r}));var s=n[0],u=n[1];if("vertical"===r)(0,tc.set)(e,"direction","col"),(0,tc.set)(e,"paddingLeft",void 0===o?48:o),(0,tc.set)(e,"coordinate.transform",i.filter(function(t){return"transpose"!==t.type})),(0,tc.set)(s,"paddingBottom",16),(0,tc.set)(u,"paddingTop",16),(0,tc.set)(u,"axis.x.position","top"),(0,tc.set)(u,"scale.y.range",[0,1]);else{(0,tc.set)(e,"paddingBottom",void 0===a?48:a),(0,tc.set)(s,"scale.y.range",[0,1]);var c=s.paddingRight,f=u.paddingLeft;(0,tc.set)(s,"paddingRight",void 0===c?32:c),(0,tc.set)(s,"axis.x.position","right"),(0,tc.set)(u,"paddingLeft",void 0===f?32:f)}return t},Cj,CM)(t)}var Ru=(Z=function(t,e){return(Z=Object.setPrototypeOf||({__proto__:[]}
38)instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Z(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Rc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="BidirectionalBar",e}return Ru(e,t),e.getDefaultOptions=function(){return{type:"spaceFlex",coordinate:{transform:[{type:"transpose"}]},scale:{y:{nice:!0}},direction:"row",layout:"horizontal",legend:!1,axis:{y:{title:!1},x:{title:!1,label:!1}},children:[{type:"interval"},{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Rs},e}(Cg);function Rf(t){return(0,tc.flow)(function(t){var e=t.options,n=e.data,r=e.setsField,i=e.sizeField;return(0,tc.isArray)(n)&&((0,tc.set)(e,"data",{type:"inline",value:n,transform:[{type:"venn",sets:r,size:i,as:[Y.color,Y.d]}]}),(0,tc.set)(e,"colorField",Y.color),(0,tc.set)(e,["children","0","encode","d"],Y.d)),t},CM)(t)}(H=Y||(Y={})).color="key",H.d="path";var Rp=(q=function(t,e){return(q=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}q(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Rd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="venn",e}return Rp(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"path"}],legend:{color:{itemMarker:"circle"}},encode:{color:Y.color,d:Y.d}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Rf},e}(Cg);function Rh(t){return(0,tc.flow)(TR,CM)(t)}var Ry=(G=function(t,e){return(G=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}G(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Rg={Base:Cv,Line:CH,Column:CN,Pie:CU,Area:CS,Bar:CR,DualAxes:CB,Funnel:C$,Scatter:CQ,Radar:C1,Rose:Ty,Stock:C4,TinyLine:C9,TinyArea:Te,TinyColumn:Ti,TinyProgress:Ts,TinyRing:Tp,Waterfall:TM,Histogram:Tj,Heatmap:TS,Box:TT,Sankey:TF,Bullet:Tq,Gauge:TV,Liquid:TK,WordCloud:T0,Treemap:T5,RadialBar:T9,CirclePacking:Re,Violin:Ra,BidirectionalBar:Rc,Venn:Rd,Mix:CB,Sunburst:function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="Sunburst",e}return Ry(e,t),e.getDefaultOptions=function(){return{type:"view",children:[{type:"sunburst"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Rh},e}(Cg)},Rm=function(){return(Rm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Rv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},Rb=(0,Q.forwardRef)(function(t,e){var n,r,i,a,o,l,s,u,c,f,p=t.chartType,d=Rv(t,["chartType"]),h=d.containerStyle,y=d.containerAttributes,g=d.className,m=d.loading,v=d.loadingTemplate,b=d.errorTemplate,x=d.onReady,O=Rv(d,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate","onReady"]),w=(n=Rg[void 0===p?"Base":p],r=Rm(Rm({},O),{onReady:function(t){e&&("function"==typeof e?e(t):e.current=t),null==x||x(t)}}),i=(0,Q.useRef)(null),a=(0,Q.useRef)(null),o=(0,Q.useRef)(null),l=r.onReady,s=r.onEvent,u=function(t,e){void 0===t&&(t="image/png");var n,r=null===(n=o.current)||void 0===n?void 0:n.getElementsByTagName("canvas")[0];return null==r?void 0:r.toDataURL(t,e)},c=function(t,e,n){void 0===t&&(t="download"),void 0===e&&(e="image/png");var r=t;-1===t.indexOf(".")&&(r="".concat(t,".").concat(e.split("/")[1]));var i=u(e,n),a=document.createElement("a");return a.href=i,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),a=null,r},f=function(t,e){if(void 0===e&&(e=!1),(0,tc.isObject)(t)){var n=Object.keys(t),r=e;
38n.forEach(function(n){var i=t[n];"tooltip"===n&&(r=!0),(0,tc.isFunction)(i)&&tp("".concat(i))?t[n]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ti(i.apply(void 0,t),r)}:(0,tc.isArray)(i)?i.forEach(function(t){f(t,r)}):(0,tc.isObject)(i)?f(i,r):r=e})}},(0,Q.useEffect)(function(){i.current&&!(0,tc.isEqual)(a.current,r)&&(a.current=(0,tc.cloneDeep)(r),f(r),i.current.update(r),i.current.render())},[r]),(0,Q.useEffect)(function(){if(!o.current)return function(){return null};a.current||(a.current=(0,tc.cloneDeep)(r)),f(r);var t=new n(o.current,td({},r));t.toDataURL=u,t.downloadImage=c,t.render(),i.current=t,l&&l(t);var e=function(e){s&&s(t,e)};return t.on("*",e),function(){i.current&&(i.current.destroy(),i.current.off("*",e),i.current=void 0)}},[]),{chart:i,container:o}),M=(w.chart,w.container);return Q.createElement(tu,{errorTemplate:b},m&&Q.createElement(tl,{loadingTemplate:v,theme:d.theme,loading:m}),Q.createElement("div",Rm({className:g,style:void 0===h?{height:"inherit",flex:1}:h,ref:M},void 0===y?{}:y)))}),Rx=(0,Q.createContext)({}),RO=function(){return(RO=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function Rw(t){var e=t.yField,n=t.data,r=(0,tc.isArray)(n)&&n.length>0&&(0,tc.isString)(e)&&!(0,tc.get)(t,"scale.y.domainMax"),i=Object.isFrozen(t)?RO({},t):t;return r&&0===n.reduce(function(t,n){return t+n[e]},0)?(0,tc.set)(i,"scale.y.domainMax",1):r&&0!==n.reduce(function(t,n){return t+n[e]},0)&&(0,tc.set)(i,"scale.y.domainMax",void 0),i}var RM=function(){return(RM=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function R_(t){return t.charAt(0).toLowerCase(),t.slice(1),(0,Q.forwardRef)(function(e,n){var r,i,a=(0,Q.useContext)(Rx),o=(0,Q.useMemo)(function(){return t.charAt(0).toLowerCase()+t.slice(1)},[t]),l=(0,tc.flow)([Rw])(e),s=RM(RM({},null!==(r=null==a?void 0:a.common)&&void 0!==r?r:{}),null!==(i=null==a?void 0:a[o])&&void 0!==i?i:{});return Q.createElement(Rb,RM({},s,l,{chartType:t,ref:n}))})}},16290:function(t,e){!function(t){"use strict";function e(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function r(t,e,n){if(n||2==arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||((r=r||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function i(t){return l(t,"Function")}var a,o={}.toString,l=function(t,e){return o.call(t)==="[object "+e+"]"},s=function(t){return Array.isArray?Array.isArray(t):l(t,"Array")},u=function(t){if("object"!=typeof t||null===t||!l(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},c=Object.values?function(t){return Object.values(t)}:function(t){var e,n=[],r=function(e,r){i(t)&&"prototype"===r||n.push(e)};if(t){if(s(t))for(var a=0,o=t.length;a<o&&!1!==r(t[a],a);a++);else if(e=typeof t,null!==t&&"object"==e||"function"==e){for(var l in t)if(t.hasOwnProperty(l)&&!1===r(t[l],l))break}}return n};function f(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)!function t(e,n,r,i){for(var a in r=r||0,i=i||5,n){var o;n.hasOwnProperty(a)&&(null!==(o=n[a])&&u(o)?(u(e[a])||(e[a]={}),r<i?t(e[a],o,r+1,i):e[a]=n[a]):s(o)?(e[a]=[],e[a]=e[a].concat(o)):void 0!==o&&(e[a]=o))}}(t,e[r]);return t}function p(t){return t}!function(t,e){var n;if(i(t))return(n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a,o=e?e.apply(this,r):r[0],l=n.cache;return l.has(o)?l.get(o):(a=t.apply(this,r),l.set(o,a),a)}).cache=new Map;throw TypeError("Expected a function")}(function(t,e){var n=(e=void 0===e?{}:e).fontSize,r=e.fontFamily,i=e.fontWeight,a=e.fontStyle,e=e.fontVariant;return(d=d||document.createElement("canvas").getContext("2d")).font=[a,e,i,n+"px",r].join(" "),d.measureText(l(t,"String")?t:"").width},function(t,e){return(function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var a=arguments[e],o=0,l=a.length;o<l;o++,i++)r[i]=a[o];return r}
38)([t],c(e=void 0===e?{}:e)).join("")});var d,h="undefined"!=typeof Float32Array?Float32Array:Array;function y(){var t=new h(9);return h!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var g=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],l=e[4],s=e[5],u=e[6],c=e[7],e=e[8],f=n[0],p=n[1],d=n[2],h=n[3],y=n[4],g=n[5],m=n[6],v=n[7],n=n[8];return t[0]=f*r+p*o+d*u,t[1]=f*i+p*l+d*c,t[2]=f*a+p*s+d*e,t[3]=h*r+y*o+g*u,t[4]=h*i+y*l+g*c,t[5]=h*a+y*s+g*e,t[6]=m*r+v*o+n*u,t[7]=m*i+v*l+n*c,t[8]=m*a+v*s+n*e,t};function m(){var t=new h(16);return h!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}var v=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],l=e[4],s=e[5],u=e[6],c=e[7],f=e[8],p=e[9],d=e[10],h=e[11],y=e[12],g=e[13],m=e[14],e=e[15],v=n[0],b=n[1],x=n[2],O=n[3];return t[0]=v*r+b*l+x*f+O*y,t[1]=v*i+b*s+x*p+O*g,t[2]=v*a+b*u+x*d+O*m,t[3]=v*o+b*c+x*h+O*e,v=n[4],b=n[5],x=n[6],O=n[7],t[4]=v*r+b*l+x*f+O*y,t[5]=v*i+b*s+x*p+O*g,t[6]=v*a+b*u+x*d+O*m,t[7]=v*o+b*c+x*h+O*e,v=n[8],b=n[9],x=n[10],O=n[11],t[8]=v*r+b*l+x*f+O*y,t[9]=v*i+b*s+x*p+O*g,t[10]=v*a+b*u+x*d+O*m,t[11]=v*o+b*c+x*h+O*e,v=n[12],b=n[13],x=n[14],O=n[15],t[12]=v*r+b*l+x*f+O*y,t[13]=v*i+b*s+x*p+O*g,t[14]=v*a+b*u+x*d+O*m,t[15]=v*o+b*c+x*h+O*e,t};function b(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t?e.reduce(function(t,e){return function(n){return e(t(n))}},t):p}function x(t){return t instanceof Float32Array||t instanceof Array}function O(t,e,n){for(;t<e;)t+=2*Math.PI;for(;n<t;)t-=2*Math.PI;return t}function w(t,e,r,i,a){var o=(t=n(t,2))[0],t=t[1],l=y();return o=[o,t],(t=l)[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=o[0],t[7]=o[1],t[8]=1,t}function M(t,...e){return e.reduce((t,e)=>n=>t(e(n)),t)}function _(t,e){return e-t?n=>(n-t)/(e-t):t=>.5}R=new h(3),h!=Float32Array&&(R[0]=0,R[1]=0,R[2]=0),R=new h(4),h!=Float32Array&&(R[0]=0,R[1]=0,R[2]=0,R[3]=0);let k=Math.sqrt(50),j=Math.sqrt(10),A=Math.sqrt(2);function E(t,e,n){return t=Math.floor(Math.log(e=(e-t)/Math.max(0,n))/Math.LN10),n=e/10**t,0<=t?(n>=k?10:n>=j?5:n>=A?2:1)*10**t:-(10**-t)/(n>=k?10:n>=j?5:n>=A?2:1)}let S=(t,e,n=5)=>{let r=0,i=(t=[t,e]).length-1,a=t[r],o=t[i],l;return o<a&&([a,o]=[o,a],[r,i]=[i,r]),0<(l=E(a,o,n))?l=E(a=Math.floor(a/l)*l,o=Math.ceil(o/l)*l,n):l<0&&(l=E(a=Math.ceil(a*l)/l,o=Math.floor(o*l)/l,n)),0<l?(t[r]=Math.floor(a/l)*l,t[i]=Math.ceil(o/l)*l):l<0&&(t[r]=Math.ceil(a*l)/l,t[i]=Math.floor(o*l)/l),t};function P(t){return null!=t&&!Number.isNaN(t)}function C(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();var[t]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t))},n.prototype.initRange=function(){var e=this.options.interpolator;this.options.range=t(e)},n.prototype.composeOutput=function(t,n){var{domain:r,interpolator:i,round:a}=this.getOptions(),r=e(r.map(t)),a=a?t=>l(t=i(t),"Number")?Math.round(t):t:i;this.output=M(a,r,n,t)},n.prototype.invert=void 0}}var T,R={exports:{}}
38,L={exports:{}},N=Array.prototype.concat,I=Array.prototype.slice,F=L.exports=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];!(!i||"string"==typeof i)&&(i instanceof Array||Array.isArray(i)||0<=i.length&&(i.splice instanceof Function||Object.getOwnPropertyDescriptor(i,i.length-1)&&"String"!==i.constructor.name))?e=N.call(e,I.call(i)):e.push(i)}return e},B=(F.wrap=function(t){return function(){return t(F(arguments))}},{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),D=L.exports,z=Object.hasOwnProperty,$=Object.create(null);for(T in B)z.call(B,T)&&($[B[T]]=T);var W=R.exports={to:{},get:{}};function Z(t,e,n){return Math.min(Math.max(e,t),n)}function H(t){return(t=Math.round(t).toString(16).toUpperCase()).length<2?"0"+t:t}W.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=W.get.hsl(t),n="hsl";break;case"hwb":e=W.get.hwb(t),n="hwb";break;default:e=W.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},W.get.rgb=function(t){if(!t)return null;var e,n,r,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=e[2],e=e[1],n=0;n<3;n++){var a=2*n;i[n]=parseInt(e.slice(a,2+a),16)}r&&(i[3]=parseInt(r,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(r=(e=e[1])[3],n=0;n<3;n++)i[n]=parseInt(e[n]+e[n],16);r&&(i[3]=parseInt(r+r,16)/255)}else{if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/))for(n=0;n<3;n++)i[n]=parseInt(e[n+1],0);else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:z.call(B,e[1])?((i=B[e[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(e[n+1]))}e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}for(n=0;n<3;n++)i[n]=Z(i[n],0,255);return i[3]=Z(i[3],0,1),i},W.get.hsl=function(t){var e;return(t=t&&t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/))?(e=parseFloat(t[4]),[(parseFloat(t[1])%360+360)%360,Z(parseFloat(t[2]),0,100),Z(parseFloat(t[3]),0,100),Z(isNaN(e)?1:e,0,1)]):null},W.get.hwb=function(t){var e;return(t=t&&t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/))?(e=parseFloat(t[4]),[(parseFloat(t[1])%360+360)%360,Z(parseFloat(t[2]),0,100),Z(parseFloat(t[3]),0,100),Z(isNaN(e)?1:e,0,1)]):null},W.to.hex=function(){var t=D(arguments);return"#"+H(t[0])+H(t[1])+H(t[2])+(t[3]<1?H(Math.round(255*t[3])):"")},W.to.rgb=function(){var t=D(arguments);
38return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},W.to.rgb.percent=function(){var t=D(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},W.to.hsl=function(){var t=D(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},W.to.hwb=function(){var t=D(arguments),e="";return 4<=t.length&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},W.to.keyword=function(t){return $[t.slice(0,3)]};var q=R.exports;function G(t,e,n){let r=n;return r<0&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Y(t){var e,n,r,t=q.get(t);return t?({model:t,value:e}=t,"rgb"===t?e:"hsl"===t?(e=(t=e)[0]/360,n=t[1]/100,r=t[2]/100,t=t[3],0==n?[255*r,255*r,255*r,t]:[255*G(n=2*r-(r=r<.5?r*(1+n):r+n-r*n),r,e+1/3),255*G(n,r,e),255*G(n,r,e-1/3),t]):null):null}let V=(t,e)=>n=>t*(1-n)+e*n,U=(t,e)=>{if("number"==typeof t&&"number"==typeof e)return V(t,e);if("string"!=typeof t||"string"!=typeof e)return()=>t;{let n=Y(t),r=Y(e);return null===n||null===r?n?()=>t:()=>e:t=>{var e=[,,,,];for(let o=0;o<4;o+=1){var i=n[o],a=r[o];e[o]=i*(1-t)+a*t}var[o,l,s,u]=e;return`rgba(${Math.round(o)}, ${Math.round(l)}, ${Math.round(s)}, ${u})`}}},X=(t,e)=>{let n=V(t,e);return t=>Math.round(n(t))};function K({map:t,initKey:e},n){return e=e(n),t.has(e)?t.get(e):n}function Q(t){return"object"==typeof t?t.valueOf():t}class J extends Map{constructor(t){if(super(),this.map=new Map,this.initKey=Q,null!==t)for(var[e,n]of t)this.set(e,n)}get(t){return super.get(K({map:this.map,initKey:this.initKey},t))}has(t){return super.has(K({map:this.map,initKey:this.initKey},t))}set(t,e){var n,r;return super.set(([{map:t,initKey:n},r]=[{map:this.map,initKey:this.initKey},t],n=n(r),t.has(n)?t.get(n):(t.set(n,r),r)),e)}delete(t){var e,n;return super.delete(([{map:t,initKey:e},n]=[{map:this.map,initKey:this.initKey},t],e=e(n),t.has(e)&&(n=t.get(e),t.delete(e)),n))}}class tt{constructor(t){this.options=f({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=f({},this.options,t),this.rescale(t)}rescale(t){}}let te=Symbol("defaultUnknown");function tn(t,e,n){for(let r=0;r<e.length;r+=1)t.has(e[r])||t.set(n(e[r]),r)}function tr(t){var{value:t,from:e,to:n,mapper:r,notFoundReturn:i}=t;let a=r.get(t);if(void 0===a){if(i!==te)return i;a=e.push(t)-1,r.set(t,a)}return n[a%n.length]}function ti(t){return t instanceof Date?t=>""+t:"object"==typeof t?t=>JSON.stringify(t):t=>t}class ta extends tt{getDefaultOptions(){return{domain:[],range:[],unknown:te}}constructor(t){super(t)}map(t){return 0===this.domainIndexMap.size&&tn(this.domainIndexMap,this.getDomain(),this.domainKey),tr({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&tn(this.rangeIndexMap,this.getRange(),this.rangeKey),tr({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){var[e]=this.options.domain,[n]=this.options.range;this.domainKey=ti(e),this.rangeKey=ti(n),this.rangeIndexMap?(t&&!t.range||this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new ta(this.options)}getRange(){return this.options.range}getDomain(){var t,e;return this.sortedDomain||({domain:t,compare:e}=this.options,this.sortedDomain=e?[...t].sort(e):t),this.sortedDomain}}class to extends ta{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:te,flex:[]}}constructor(t){super(t)}clone(){return new to(this.options)}getStep(t){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===t?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===t?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){var{padding:t,paddingInner:e}=this.options;return 0<t?t:e}getPaddingOuter(){var{padding:t,paddingOuter:e}=this.options;return 0<t?t:e}rescale(){super.rescale();var{align:t,domain:e,range:n,round:r,flex:i}=this.options,{adjustedRange:t,valueBandWidth:n,valueStep:r}=function(t){var e=t.domain;if(0===(e=e.length))return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};if(!(null==(n=t.flex)||!n.length))return function(t){let{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:l}=t;var s=e.length,u=0<(u=(t=s)-(c=a).length)?[...c,...Array(u).fill(1)]:u<0?c.slice(0,t):c,[t,c]=n,c=c-t,f=c/(2/s*r+1-1/s*i);let p=f*i/s;f-=s*p;let d=function(t){let e=Math.min(...t);return t.map(t=>t/e)}(u),h=f/d.reduce((t,e)=>t+e);var u=new J(e.map((t,e)=>(e=d[e]*h,[t,o?Math.floor(e):e]))),y=new J(e.map((t,e)=>(e=d[e]*h+p,[t,o?Math.floor(e):e]))),f=Array.from(y.values()).reduce((t,e)=>t+e),t=t+(c-(f-f/s*i))*l;let g=o?Math.round(t):t;var m=Array(s);for(let t=0;t<s;t+=1){m[t]=Math.round(1e12*(v=g))/1e12;var v=e[t];g+=y.get(v)}return{valueBandWidth:u,valueStep:y,adjustedRange:m}}(t);var{range:n,paddingOuter:t,paddingInner:r,round:i,align:a}=t;let o,l,s=n[0];return o=(n=n[1]-s)/Math.max(1,2*t+(e-r)),i&&(o=Math.floor(o)),s+=(n-o*(e-r))*a,l=o*(1-r),i&&(s=Math.round(s),l=Math.round(l)),t=Array(e).fill(0).map((t,e)=>s+e*o),{valueStep:o,valueBandWidth:l,adjustedRange:t}}({align:t,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=r,this.valueBandWidth=n,this.adjustedRange=t}}let tl=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&0<n)return[a];let l=E(a,o,n);if(0===l||!Number.isFinite(l))return[];if(0<l){a=Math.ceil(a/l),i=Array(r=Math.ceil((o=Math.floor(o/l))-a+1));for(let t=0;t<r;t+=1)i[t]=(a+t)*l}else{a=Math.ceil(a*(l=-l)),i=Array(r=Math.ceil((o=Math.floor(o*l))-a+1));for(let t=0;t<r;t+=1)i[t]=(a+t)/l}return i},ts=(t,e,n)=>{let r;var[t,i]=t,[e,a]=e;return M(t<i?(r=_(t,i),n(e,a)):(r=_(i,t),n(a,e)),r)},tu=(t,e,n)=>{let r=Math.min(t.length,e.length)-1,i=Array(r),a=Array(r);var o=t[0]>t[r],l=o?[...t].reverse():t,s=o?[...e].reverse():e;for(let t=0;t<r;t+=1)i[t]=_(l[t],l[t+1]),a[t]=n(s[t],s[t+1]);return e=>{var n=function(t,e,n,r,i){let a=1,o=r||t.length;for(var l=t=>t;a<o;){var s=Math.floor((a+o)/2);l(t[s])>e?o=s:a=s+1}return a}(t,e,0,r)-1,o=i[n];return M(a[n],o)(e)}},tc=(t,e,n,r)=>(2<Math.min(t.length,e.length)?tu:ts)(t,e,r?X:n);class tf extends tt{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:V,tickCount:5}}map(t){return P(t)?this.output(t):this.options.unknown}invert(t){return P(t)?this.input(t):this.options.unknown}nice(){var t,e,n,r;this.options.nice&&([t,e,n,...r]=this.getTickMethodOptions(),this.options.domain=this.chooseNice()(t,e,n,...r))}getTicks(){var t=this.options.tickMethod,[e,n,r,...i]=this.getTickMethodOptions();return t(e,n,r,...i)}getTickMethodOptions(){var{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}chooseNice(){return S}rescale(){this.nice();var[t,e]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,e,this.chooseClamp(e))}chooseClamp(t){var{clamp:e,range:n}=this.options,t=this.options.domain.map(t),n=Math.min(t.length,n.length);if(e){e=t[0];let r=(t=t[n-1])<e?t:e,i=t<e?e:t;return t=>Math.min(Math.max(r,t),i)}return p}composeOutput(t,e){var{domain:n,range:r,round:i,interpolate:a}=this.options,n=tc(n.map(t),r,a,i);this.output=M(n,e,t)}composeInput(t,e,n){var{domain:r,range:i}=this.options,i=tc(i,r.map(t),V);this.input=M(e,n,i)}}class tp extends tf{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:U,tickMethod:tl,tickCount:5}}chooseTransforms(){return[p,p]}clone(){return new tp(this.options)}}class td extends to{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:te,paddingInner:1,paddingOuter:0}}constructor(t){super(t)}getPaddingInner(){return 1}clone(){return new td(this.options)}update(t){super.update(t)}getPaddingOuter(){return this.options.padding}}function th(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}
38var ty,L=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],R=["January","February","March","April","May","June","July","August","September","October","November","December"],tg=th(R,3);!function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var i,a=e[r];for(i in a)t[i]=a[i]}}({},{dayNamesShort:th(L,3),dayNames:L,monthNamesShort:tg,monthNames:R,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][3<t%10?0:(t-t%10!=10?1:0)*t%10]}});let tm=ty=class extends tp{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:p,tickMethod:tl,tickCount:5}}constructor(t){super(t)}clone(){return new ty(this.options)}};tm=ty=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;0<=l;l--)(i=t[l])&&(o=(a<3?i(o):3<a?i(e,n,o):i(e,n))||o);return 3<a&&o&&Object.defineProperty(e,n,o),o}([C(function(t){return[t(0),t(1)]},t=>{var[t,e]=t;return M(V(0,1),_(t,e))})],tm);let tv=a=class extends tp{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:p,tickMethod:tl,tickCount:5}}constructor(t){super(t)}clone(){return new a(this.options)}};function tb(t,e,r,i,a){var o=new tp({range:[e,e+i]}),l=new tp({range:[r,r+a]});return{transform:function(t){var t=n(t,2),e=t[0],t=t[1];return[o.map(e),l.map(t)]},untransform:function(t){var t=n(t,2),e=t[0],t=t[1];return[o.invert(e),l.invert(t)]}}}function tx(t,e,r,i,a){return(0,n(t,1)[0])(e,r,i,a)}function tO(t,e,r,i,a){return n(t,1)[0]}function tw(t,e,r,i,a){var o=(t=n(t,4))[0],l=t[1],s=t[2],t=t[3],u=new tp({range:[s,t]}),c=new tp({range:[o,l]}),f=1<(s=a/i)?1:s,p=1<s?1/s:1;return{transform:function(t){var t=n(t,2),e=t[0],t=t[1],e=c.map(e),t=u.map(t);return[t*Math.cos(e)*f*.5+.5,t*Math.sin(e)*p*.5+.5]},untransform:function(t){var t=n(t,2),e=t[0],t=t[1],e=2*(e-.5)/f,t=2*(t-.5)/p,r=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),t=O(Math.atan2(t,e),o,l);return[c.invert(t),u.invert(r)]}}}function tM(t,e,r,i,a){return{transform:function(t){var t=n(t,2),e=t[0];return[t[1],e]},untransform:function(t){var t=n(t,2),e=t[0];return[t[1],e]}}}function t_(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return tP.apply(void 0,r([[-1,-1]],n(e),!1))}function tk(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return tP.apply(void 0,r([[-1,1]],n(e),!1))}function tj(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return tP.apply(void 0,r([[1,-1]],n(e),!1))}function tA(t,e,r,i,a){var o,t=n(t,1)[0],l=y();return o=Math.sin(t),t=Math.cos(t),l[0]=t,l[1]=o,l[2]=0,l[3]=-o,l[4]=t,l[5]=0,l[6]=0,l[7]=0,l[8]=1,l}function tE(t,e,r,i,a){var o=(t=n(t,4))[0],l=t[1],s=t[2],u=(t[3]-s)/(+l/(2*Math.PI)+1),c=u/(2*Math.PI),f=new tp({range:[s,s+.99*u]}),p=new tp({range:[o,l]}),d=1<(t=a/i)?1:t,h=1<t?1/t:1;return{transform:function(t){var t=n(t,2),e=t[0],t=t[1],e=p.map(e),t=f.map(t);return[Math.cos(e)*(c*e+t)*d*.5+.5,Math.sin(e)*(c*e+t)*h*.5+.5]},untransform:function(t){var t=n(t,2),e=t[0],t=t[1],e=2*(e-.5)/d,t=2*(t-.5)/h,r=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),t=O(Math.atan2(t,e)+Math.floor(r/u)*Math.PI*2,o,l),e=r-c*t;return[p.invert(t),f.invert(e)]}}}function tS(t,e,r,i,a){var o=(t=n(t,4))[0],l=t[1],s=t[2],t=t[3],u=new tp({range:[s,t]});return{transform:function(t){for(var e=[],n=t.length,r=new td({domain:Array(n).fill(0).map(function(t,e){return e}),range:[o,l]}),i=0;i<n;i++){var a=t[i],s=r.map(i),a=u.map(a);e.push(s,a)}return e},untransform:function(t){for(var e=[],n=0;n<t.length;n+=2){var r=t[n+1];e.push(u.invert(r))}return e}}}tv=a=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;0<=l;l--)(i=t[l])&&(o=(a<3?i(o):3<a?i(e,n,o):i(e,n))||o);return 3<a&&o&&Object.defineProperty(e,n,o),o}([C(function(t){return[t(0),t(.5),t(1)]},t=>{let[e,n,r]=t,i=M(V(0,.5),_(e,n)),a=M(V(.5,1),_(n,r));return t=>(e>r?t<n?a:i:t<n?i:a)(t)})],tv);var tP=function(t,e,r,i,a){var t=n(t,2),o=t[0],t=t[1],l=y();return o=[o,t],(t=l)[0]=o[0],t[1]=0,t[2]=0,t[3]=0,t[4]=o[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t};function tC(t){return 1/Math.tan(t)}function tT(t,e,r,i,a){var o=tC(n(t,1)[0]);return{transform:function(t){var t=n(t,2),e=t[0],t=t[1];return[e+t*o,t]},untransform:function(t){var t=n(t,2),e=t[0],t=t[1];return[e-t*o,t]}}}function tR(t,e,r,i,a){var o=tC(n(t,1)[0]);return{transform:function(t){var t=n(t,2),e=t[0];return[e,t[1]+e*o]},untransform:function(t){var t=n(t,2),e=t[0];return[e,t[1]-e*o]}}}function tL(t,e,n,r,i){var a=t<e,i=(a?e-r:i-e)||i-r,r=a?-1:1;return r*i*(n+1)/(n+i/((t-e)*r))+e}function tN(t,e,n,r,i){var a=t<e,i=(a?e-r:i-e)||i-r;return i/(i*(n+1)/(t-e)-n*(a?-1:1))+e}function tI(t,e,n){return n?new tp({range:[0,1],domain:[0,e]}).map(t):t}function tF(t,e,r,i,a){var o=(t=n(t,3))[0],l=t[1],t=t[2],s=tI(o,i,void 0!==t&&t);return{transform:function(t){var t=n(t,2),e=t[0],t=t[1];return[tL(e,s,l,0,1),t]},untransform:function(t){var t=n(t,2),e=t[0],t=t[1];return[tN(e,s,l,0,1),t]}}}function tB(t,e,r,i,a){var o=(t=n(t,3))[0],l=t[1],t=t[2],s=tI(o,a,void 0!==t&&t);return{transform:function(t){return[(t=n(t,2))[0],tL(t[1],s,l,0,1)]},untransform:function(t){return[(t=n(t,2))[0],tN(t[1],s,l,0,1)]}}}function tD(t,e,r,i,a){var o=(t=n(t,5))[0],l=t[1],s=t[2],u=t[3],t=t[4],
38c=tI(o,i,t=void 0!==t&&t),f=tI(l,a,t);return{transform:function(t){var t=n(t,2),e=t[0],t=t[1];return[tL(e,c,s,0,1),tL(t,f,u,0,1)]},untransform:function(t){var t=n(t,2),e=t[0],t=t[1];return[tN(e,c,s,0,1),tN(t,f,u,0,1)]}}}function tz(t,e,r,i,a){var o=(t=n(t,5))[0],l=t[1],s=t[2],u=t[3],t=void 0!==(t=t[4])&&t,c=new tp({range:[0,i]}),f=new tp({range:[0,a]}),p=t?o:c.map(o),d=t?l:f.map(l);return{transform:function(t){var t=n(t,2),e=t[0],t=t[1],r=c.map(e)-p,i=f.map(t)-d,a=Math.sqrt(r*r+i*i);return s<a?[e,t]:(a=p+(e=tL(a,0,u,0,s))*Math.cos(t=Math.atan2(i,r)),i=d+e*Math.sin(t),[c.invert(a),f.invert(i)])},untransform:function(t){var t=n(t,2),e=t[0],t=t[1],r=c.map(e)-p,i=f.map(t)-d,a=Math.sqrt(r*r+i*i);return s<a?[e,t]:(a=p+(e=tN(a,0,u,0,s))*Math.cos(t=Math.atan2(i,r)),i=d+e*Math.sin(t),[c.invert(a),f.invert(i)])}}}function t$(t,e,r,i,a,o,l){var s=new tp({range:[e,e+a]}),u=new tp({range:[r,r+o]}),c=new tp({range:[i,i+l]});return{transform:function(t){var t=n(t,3),e=t[0],r=t[1],t=t[2];return[s.map(e),u.map(r),c.map(t)]},untransform:function(t){var t=n(t,3),e=t[0],r=t[1],t=t[2];return[s.invert(e),u.invert(r),c.invert(t)]}}}function tW(t,e,r,i,a,o,l){var s,u=(t=n(t,3))[0],c=t[1],t=t[2];return s=m(),u=[u,c,t],s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=u[0],s[13]=u[1],s[14]=u[2],s[15]=1,s}function tZ(t,e,r,i,a,o,l){return{transform:function(t){var t=n(t,3),e=t[0];return[t[1],e,t[2]]},untransform:function(t){var t=n(t,3),e=t[0];return[t[1],e,t[2]]}}}function tH(t,e,r,i,a,o,l){var s,u=(t=n(t,3))[0],c=t[1],t=t[2];return s=m(),u=[u,c,t],s[0]=u[0],s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=u[1],s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=u[2],s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}function tq(t){this.options={x:0,y:0,width:300,height:150,transformations:[]},this.transformers={cartesian:tb,translate:w,custom:tx,matrix:tO,polar:tw,transpose:tM,scale:tP,"shear.x":tT,"shear.y":tR,reflect:t_,"reflect.x":tk,"reflect.y":tj,rotate:tA,helix:tE,parallel:tS,fisheye:tD,"fisheye.x":tF,"fisheye.y":tB,"fisheye.circular":tz},this.update(t)}function tG(t){this.options={x:0,y:0,z:0,width:300,height:150,depth:150,transformations:[]},this.transformers={cartesian3D:t$,translate3D:tW,scale3D:tH,transpose3D:tZ},this.update(t)}tq.prototype.update=function(t){this.options=f({},this.options,t),this.recoordinate()},tq.prototype.clone=function(){return new tq(this.options)},tq.prototype.getOptions=function(){return this.options},tq.prototype.clear=function(){this.update({transformations:[]})},tq.prototype.getSize=function(){var t=this.options;return[t.width,t.height]},tq.prototype.getCenter=function(){var t=this.options,e=t.x,n=t.y;return[(2*e+t.width)/2,(2*n+t.height)/2]},tq.prototype.transform=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this.options.transformations;return this.update({transformations:r(r([],n(i),!1),[r([],n(t),!1)],!1)}),this},tq.prototype.map=function(t){return this.output(t)},tq.prototype.invert=function(t){return this.input(t)},tq.prototype.recoordinate=function(){this.output=this.compose(),this.input=this.compose(!0)},tq.prototype.compose=function(t){function i(t,e){c.push((e=void 0===e||e)?function(e){for(var i=[],a=0;a<e.length-1;a+=2){var o=[e[a],e[a+1]],o=t(o);i.push.apply(i,r([],n(o),!1))}return i}:t)}var a,o,l=(t=void 0!==t&&t)?r([],n(this.options.transformations),!1).reverse():this.options.transformations,s=t?function(t){return t.untransform}:function(t){return t.transform},u=[],c=[];try{for(var f=e(l),d=f.next();!d.done;d=f.next()){var h,y,g,m,v,O,w=n(d.value),M=w[0],_=w.slice(1),k=this.transformers[M];k&&(y=(h=this.options).x,g=h.y,m=h.width,v=h.height,x(O=k(r([],n(_),!1),y,g,m,v))?u.push(O):(u.length&&(i(this.createMatrixTransform(u,t)),u.splice(0,u.length)),i(s(O)||p,"parallel"!==M)))}}catch(t){a={error:t}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}return u.length&&i(this.createMatrixTransform(u,t)),b.apply(void 0,r([],n(c),!1))},tq.prototype.createMatrixTransform=function(t,e){var n,r,i,a,o,l,s,u,c,f,p,d,m=y();return e&&t.reverse(),t.forEach(function(t){return g(m,m,t)}),e&&(e=t=m,(d=new h(9))[0]=e[0],d[1]=e[1],d[2]=e[2],d[3]=e[3],d[4]=e[4],d[5]=e[5],d[6]=e[6],d[7]=e[7],d[8]=e[8],d=(e=d)[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],l=e[6],s=e[7],p=d*(u=(e=e[8])*a-o*s)+n*(c=-e*i+o*l)+r*(f=s*i-a*l))&&(t[0]=u*(p=1/p),t[1]=(-e*n+r*s)*p,t[2]=(o*n-r*a)*p,t[3]=c*p,t[4]=(e*d-r*l)*p,t[5]=(-o*d+r*i)*p,t[6]=f*p,t[7]=(-s*d+n*l)*p,t[8]=(a*d-n*i)*p),function(t){var e,n,r,i,t=[t[0],t[1],1];return r=(n=e=t)[0],i=n[1],n=n[2],e[0]=r*m[0]+i*m[3]+n*m[6],e[1]=r*m[1]+i*m[4]+n*m[7],e[2]=r*m[2]+i*m[5]+n*m[8],[t[0],t[1]]}},L=tq,tG.prototype.update=function(t){this.options=f({},this.options,t),this.recoordinate()},tG.prototype.clone=function(){return new tG(this.options)},tG.prototype.getOptions=function(){return this.options},tG.prototype.clear=function(){this.update({transformations:[]})},tG.prototype.getSize=function(){var t=this.options;return[t.width,t.height,t.depth]},tG.prototype.getCenter=function(){var t=this.options,e=t.x,n=t.y,r=t.z;return[(2*e+t.width)/2,(2*n+t.height)/2,(2*r+t.depth)/2]},tG.prototype.transform=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this.options.transformations;return this.update({transformations:r(r([],n(i),!1),[r([],n(t),!1)],!1)}),this},tG.prototype.map=function(t){return this.output(t)},tG.prototype.invert=function(t){return this.input(t)},tG.prototype.recoordinate=function(){this.output=this.compose(),this.input=this.compose(!0)},tG.prototype.compose=function(t){function i(t,e){c.push((e=void 0===e||e)?function(e){for(var i=[],a=0;a<e.length-1;a+=3){var o=[e[a],e[a+1],e[a+2]],o=t(o);i.push.apply(i,r([],n(o),!1))}return i}:t)}var a,o,l=(t=void 0!==t&&t)?r([],n(this.options.transformations),!1).reverse():this.options.transformations,s=t?function(t){return t.untransform}:function(t){return t.transform},u=[],c=[];try{for(var f=e(l),d=f.next();!d.done;d=f.next()){var h,y,g,m,v,O,w,M,_=n(d.value),k=_[0],j=_.slice(1),A=this.transformers[k];A&&(y=(h=this.options).x,g=h.y,m=h.z,v=h.width,O=h.height,w=h.depth,x(M=A(r([],n(j),!1),y,g,m,v,O,w))?u.push(M):(u.length&&(i(this.createMatrixTransform(u,t)),u.splice(0,u.length)),i(s(M)||p,!0)))}}catch(t){a={error:t}}
38finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}return u.length&&i(this.createMatrixTransform(u,t)),b.apply(void 0,r([],n(c),!1))},tG.prototype.createMatrixTransform=function(t,e){var n,r,i,a,o,l,s,u,c,f,p,d,y,g,b,x,O,w,M,_,k,j,A,E,S,P,C,T,R=m();return e&&t.reverse(),t.forEach(function(t){return v(R,R,t)}),e&&(e=t=R,(T=new h(16))[0]=e[0],T[1]=e[1],T[2]=e[2],T[3]=e[3],T[4]=e[4],T[5]=e[5],T[6]=e[6],T[7]=e[7],T[8]=e[8],T[9]=e[9],T[10]=e[10],T[11]=e[11],T[12]=e[12],T[13]=e[13],T[14]=e[14],T[15]=e[15],T=(e=T)[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],l=e[6],s=e[7],u=e[8],c=e[9],f=e[10],p=e[11],d=e[12],y=e[13],g=e[14],e=e[15],C=(b=T*o-n*a)*(P=f*e-p*g)-(x=T*l-r*a)*(S=c*e-p*y)+(O=T*s-i*a)*(E=c*g-f*y)+(w=n*l-r*o)*(A=u*e-p*d)-(M=n*s-i*o)*(j=u*g-f*d)+(_=r*s-i*l)*(k=u*y-c*d))&&(t[0]=(o*P-l*S+s*E)*(C=1/C),t[1]=(r*S-n*P-i*E)*C,t[2]=(y*_-g*M+e*w)*C,t[3]=(f*M-c*_-p*w)*C,t[4]=(l*A-a*P-s*j)*C,t[5]=(T*P-r*A+i*j)*C,t[6]=(g*O-d*_-e*x)*C,t[7]=(u*_-f*O+p*x)*C,t[8]=(a*S-o*A+s*k)*C,t[9]=(n*A-T*S-i*k)*C,t[10]=(d*M-y*O+e*b)*C,t[11]=(c*O-u*M-p*b)*C,t[12]=(o*j-a*E-l*k)*C,t[13]=(T*E-n*j+r*k)*C,t[14]=(y*x-d*w-g*b)*C,t[15]=(u*w-c*x+f*b)*C),function(t){var e,n,r,i,a,t=[t[0],t[1],t[2],1];return r=(n=e=t)[0],i=n[1],a=n[2],n=n[3],e[0]=R[0]*r+R[4]*i+R[8]*a+R[12]*n,e[1]=R[1]*r+R[5]*i+R[9]*a+R[13]*n,e[2]=R[2]*r+R[6]*i+R[10]*a+R[14]*n,e[3]=R[3]*r+R[7]*i+R[11]*a+R[15]*n,[t[0],t[1],t[2]]}},tg=tG,t.Coordinate=L,t.Coordinate3D=tg,Object.defineProperty(t,"__esModule",{value:!0})}(e)},24435:function(t,e,n){"use strict";n.d(e,{TE:function(){return o},U4:function(){return f},Xk:function(){return c},Y1:function(){return O},_x:function(){return p},hE:function(){return m},l5:function(){return y},ph:function(){return g},vp:function(){return s},x4:function(){return x}});var r=n(12686),i=n(45378),a=n(75837);function o(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function l(t,e){var n=Math.min.apply(Math,(0,r.Z)(t)),i=Math.min.apply(Math,(0,r.Z)(e));return{x:n,y:i,width:Math.max.apply(Math,(0,r.Z)(t))-n,height:Math.max.apply(Math,(0,r.Z)(e))-i}}function s(t,e,n,r,i,a,o){for(var l=Math.atan(-r/n*Math.tan(i)),s=1/0,u=-1/0,c=[a,o],f=-(2*Math.PI);f<=2*Math.PI;f+=Math.PI){var p=l+f;a<o?a<p&&p<o&&c.push(p):o<p&&p<a&&c.push(p)}for(var d=0;d<c.length;d++){var h,y=n*Math.cos(i)*Math.cos(h=c[d])-r*Math.sin(i)*Math.sin(h)+t;y<s&&(s=y),y>u&&(u=y)}for(var g=Math.atan(r/(n*Math.tan(i))),m=1/0,v=-1/0,b=[a,o],x=-(2*Math.PI);x<=2*Math.PI;x+=Math.PI){var O=g+x;a<o?a<O&&O<o&&b.push(O):o<O&&O<a&&b.push(O)}for(var w=0;w<b.length;w++){var M,_=n*Math.sin(i)*Math.cos(M=b[w])+r*Math.cos(i)*Math.sin(M)+e;_<m&&(m=_),_>v&&(v=_)}return{x:s,y:m,width:u-s,height:v-m}}function u(t,e,n,i,a,l){var s=-1,u=1/0,c=[n,i],f=20;l&&l>200&&(f=l/10);for(var p=1/f,d=p/10,h=0;h<=f;h++){var y=h*p,g=[a.apply(void 0,(0,r.Z)(t.concat([y]))),a.apply(void 0,(0,r.Z)(e.concat([y])))],m=o(c[0],c[1],g[0],g[1]);m<u&&(s=y,u=m)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var v=t.length;return{x:t[v-1],y:e[v-1]}}u=1/0;for(var b=0;b<32&&!(d<1e-4);b++){var x=s-d,O=s+d,w=[a.apply(void 0,(0,r.Z)(t.concat([x]))),a.apply(void 0,(0,r.Z)(e.concat([x])))],M=o(c[0],c[1],w[0],w[1]);if(x>=0&&M<u)s=x,u=M;else{var _=[a.apply(void 0,(0,r.Z)(t.concat([O]))),a.apply(void 0,(0,r.Z)(e.concat([O])))],k=o(c[0],c[1],_[0],_[1]);O<=1&&k<u?(s=O,u=k):d*=.5}}return{x:a.apply(void 0,(0,r.Z)(t.concat([s]))),y:a.apply(void 0,(0,r.Z)(e.concat([s])))}}function c(t,e,n,r){return o(t,e,n,r)}function f(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}}function p(t,e,n,r,i,o){var l=[n-t,r-e];if(a.I6(l,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-l[1],l[0]];return a.Fv(s,s),Math.abs(a.AK([i-t,o-e],s))}function d(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function h(t,e,n,r){var a,o,l,s=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,c=3*e-3*t,f=[];if((0,i.Z)(s,0))!(0,i.Z)(u,0)&&(a=-c/u)>=0&&a<=1&&f.push(a);else{var p=u*u-4*s*c;(0,i.Z)(p,0)?f.push(-u/(2*s)):p>0&&(a=(-u+(l=Math.sqrt(p)))/(2*s),o=(-u-l)/(2*s),a>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function y(t,e,n,r,i,a,o,s){for(var u=[t,o],c=[e,s],f=h(t,n,i,o),p=h(e,r,a,s),y=0;y<f.length;
38y++)u.push(d(t,n,i,o,f[y]));for(var g=0;g<p.length;g++)c.push(d(e,r,a,s,p[g]));return l(u,c)}function g(t,e,n,r,i,a,l,s,c,f,p){var h=u([t,n,i,l],[e,r,a,s],c,f,d,p);return o(h.x,h.y,c,f)}function m(t){return function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=o(r[0],r[1],i[0],i[1])}return e}(t)}function v(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function b(t,e,n){var r=t+n-2*e;if((0,i.Z)(r,0))return[.5];var a=(t-e)/r;return a<=1&&a>=0?[a]:[]}function x(t,e,n,r,i,a){var o=b(t,n,i)[0],s=b(e,r,a)[0],u=[t,i],c=[e,a];return void 0!==o&&u.push(v(t,n,i,o)),void 0!==s&&c.push(v(e,r,a,s)),l(u,c)}function O(t,e,n,r,i,a,l,s){var c=u([t,n,i],[e,r,a],l,s,v);return o(c.x,c.y,l,s)}},15378:function(t,e){"use strict";e.Z=function(t,e,n){return t<e?e:t>n?n:t}},83262:function(t,e,n){"use strict";function r(t){return Array.isArray(t)}n.d(e,{Z:function(){return r}})},29803:function(t,e,n){"use strict";var r=n(15725);e.Z=function(t){return(0,r.Z)(t,"Boolean")}},91531:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,{Z:function(){return r}})},89148:function(t,e,n){"use strict";function r(t){return null==t}n.d(e,{Z:function(){return r}})},45378:function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=1e-5),t===e||Math.abs(t-e)<n}n.d(e,{Z:function(){return r}})},26912:function(t,e,n){"use strict";function r(t){return"number"==typeof t}n.d(e,{Z:function(){return r}})},70373:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},27412:function(t,e,n){"use strict";function r(t){return"string"==typeof t}n.d(e,{Z:function(){return r}})},15725:function(t,e){"use strict";var n={}.toString;e.Z=function(t,e){return n.call(t)==="[object "+e+"]"}},36179:function(t,e){"use strict";e.Z=function(t){return void 0===t}},7086:function(t,e,n){"use strict";function r(t){if(!Array.isArray(t))return-1/0;var e=t.length;if(!e)return-1/0;for(var n=t[0],r=1;r<e;r++)n=Math.max(n,t[r]);return n}n.d(e,{Z:function(){return r}})},20203:function(t,e,n){"use strict";var r=n(83262);e.Z=function(t){if((0,r.Z)(t))return t.reduce(function(t,e){return Math.min(t,e)},t[0])}},44502:function(t,e){"use strict";e.Z=function(t,e){return(t%e+e)%e}},58856:function(t,e,n){"use strict";n.d(e,{Y:function(){return c}});var r=n(15767),i=n(91809),a=n(96216),o=n(41282),l=n(61501),s=n(90319),u=function(t,e,n,i){var a=(0,s.k)([t,e],[n,i],.5);return(0,r.ev)((0,r.ev)([],a,!0),[n,i,n,i],!1)};function c(t,e){if(void 0===e&&(e=!1),(0,o.y)(t)&&t.every(function(t){var e=t[0];return"MC".includes(e)})){var n,s,c=[].concat(t);return e?[c,[]]:c}for(var f=(0,a.A)(t),p=(0,r.pi)({},i.z),d=[],h="",y=f.length,g=[],m=0;m<y;m+=1){f[m]&&(h=f[m][0]),d[m]=h;var v=function(t,e){var n,r,i,a,o,s,c,f=t[0],p=t.slice(1).map(Number),d=p[0],h=p[1],y=e.x1,g=e.y1,m=e.x,v=e.y;switch("TQ".includes(f)||(e.qx=null,e.qy=null),f){case"M":e.x=d,e.y=h;break;case"A":return c=[y,g].concat(p),["C"].concat((0,l.W)(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9]));case"Q":return e.qx=d,e.qy=h,["C"].concat((n=(c=[y,g].concat(p))[0],r=c[1],i=c[2],a=c[3],[1/3*n+2/3*i,1/3*r+2/3*a,1/3*(o=c[4])+2/3*i,1/3*(s=c[5])+2/3*a,o,s]));case"L":return["C"].concat(u(y,g,d,h));case"Z":if(y===m&&g===v)return["C",y,g,m,v,m,v];return["C"].concat(u(y,g,m,v))}return t}(f[m],p);f[m]=v,function(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}(f,d,m),y=f.length,"Z"===h&&g.push(m),s=(n=f[m]).length,p.x1=+n[s-2],p.y1=+n[s-1],p.x2=+n[s-4]||p.x1,p.y2=+n[s-3]||p.y1}return e?[f,g]:f}},65821:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0}},91809:function(t,e,n){"use strict";n.d(e,{z:function(){return r}});var r={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null}},61501:function(t,e,n){"use strict";function r(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}}n.d(e,{W:function(){return function t(e,n,i,a,o,l,s,u,c,f){var p,d,h,y,g,m=e,v=n,b=i,x=a,O=u,w=c,M=120*Math.PI/180,_=Math.PI/180*(+o||0),k=[];if(f)d=f[0],h=f[1],y=f[2],g=f[3];else{m=(p=r(m,v,-_)).x,v=p.y,O=(p=r(O,w,-_)).x,w=p.y;var j=(m-O)/2,A=(v-w)/2,E=j*j/(b*b)+A*A/(x*x);E>1&&(b*=E=Math.sqrt(E),x*=E);var S=b*b,P=x*x,C=(l===s?-1:1)*Math.sqrt(Math.abs((S*P-S*A*A-P*j*j)/(S*A*A+P*j*j)));y=C*b*A/x+(m+O)/2,g=-(C*x)*j/b+(v+w)/2,d=Math.asin(((v-g)/x*1e9>>0)/1e9),h=Math.asin(((w-g)/x*1e9>>0)/1e9),d=m<y?Math.PI-d:d,h=O<y?Math.PI-h:h,d<0&&(d=2*Math.PI+d),h<0&&(h=2*Math.PI+h),s&&d>h&&(d-=2*Math.PI),!s&&h>d&&(h-=2*Math.PI)}var T=h-d;if(Math.abs(T)>M){var R=h,L=O,N=w;k=t(O=y+b*Math.cos(h=d+M*(s&&h>d?1:-1)),w=g+x*Math.sin(h),b,x,o,0,s,L,N,[h,R,y,g])}T=h-d;var I=Math.cos(d),F=Math.cos(h),B=Math.tan(T/4),D=4/3*b*B,z=4/3*x*B,$=[m,v],W=[m+D*Math.sin(d),v-z*I],Z=[O+D*Math.sin(h),w-z*F],H=[O,w];if(W[0]=2*$[0]-W[0],W[1]=2*$[1]-W[1],f)return W.concat(Z,H,k);k=W.concat(Z,H,k);for(var q=[],G=0,Y=k.length;G<Y;G+=1)q[G]=G%2?r(k[G-1],k[G],_).y:r(k[G],k[G+1],_).x;return q}}})},62370:function(t,e,n){"use strict";function r(t){return t.map(function(t){return Array.isArray(t)?[].concat(t):t})}n.d(e,{U:function(){return r}})},96216:function(t,e,n){"use strict";n.d(e,{A:function(){return d}});var r=n(15767),i=n(41282),a=n(91809),o=n(86567),l=n(82591),s=n(65821);function u(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=s.R[n]&&("m"===n&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e="m"===e?"l":"L"):t.segments.push([e].concat(r.splice(0,s.R[n]))),s.R[n]););}function c(t){return t>=48&&t<=57}function f(t){for(var e,n=t.pathValue,r=t.max;t.index<r&&(10===(e=n.charCodeAt(t.index))||13===e||8232===e||8233===e||32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e));)t.index+=1}var p=function(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function d(t){if((0,i.y)(t))return[].concat(t);for(var e=function(t){if((0,o.b)(t))return[].concat(t);var e=function(t){if((0,l.n)(t))return[].concat(t);var e=new p(t);for(f(e);e.index<e.max&&!e.err.length;)!function(t){var e=t.max,n=t.pathValue,r=t.index,i=n.charCodeAt(r),a=s.R[n[r].toLowerCase()];if(t.segmentStart=r,!function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}(i)){t.err='[path-util]: Invalid path value "'.concat(n[r],'" is not a path command');return}if(t.index+=1,f(t),t.data=[],!a){u(t);return}for(;;){for(var o,l=a;l>0;l-=1){if((32|i)==97&&(3===l||4===l)?function(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);if(48===r){t.param=0,t.index+=1;return}if(49===r){t.param=1,t.index+=1;return}
38t.err='[path-util]: invalid Arc flag "'.concat(n[e],'", expecting 0 or 1 at index ').concat(e)}(t):function(t){var e,n=t.max,r=t.pathValue,i=t.index,a=i,o=!1,l=!1,s=!1,u=!1;if(a>=n){t.err="[path-util]: Invalid path value at index ".concat(a,', "pathValue" is missing param');return}if((43===(e=r.charCodeAt(a))||45===e)&&(a+=1,e=r.charCodeAt(a)),!c(e)&&46!==e){t.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(r[a],'" is not a number');return}if(46!==e){if(o=48===e,a+=1,e=r.charCodeAt(a),o&&a<n&&e&&c(e)){t.err="[path-util]: Invalid path value at index ".concat(i,', "').concat(r[i],'" illegal number');return}for(;a<n&&c(r.charCodeAt(a));)a+=1,l=!0;e=r.charCodeAt(a)}if(46===e){for(u=!0,a+=1;c(r.charCodeAt(a));)a+=1,s=!0;e=r.charCodeAt(a)}if(101===e||69===e){if(u&&!l&&!s){t.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(r[a],'" invalid float exponent');return}if(a+=1,(43===(e=r.charCodeAt(a))||45===e)&&(a+=1),a<n&&c(r.charCodeAt(a)))for(;a<n&&c(r.charCodeAt(a));)a+=1;else{t.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(r[a],'" invalid integer exponent');return}}t.index=a,t.param=+t.pathValue.slice(i,a)}(t),t.err.length)return;t.data.push(t.param),f(t),t.index<e&&44===n.charCodeAt(t.index)&&(t.index+=1,f(t))}if(t.index>=t.max||!((o=n.charCodeAt(t.index))>=48&&o<=57||43===o||45===o||46===o))break}u(t)}(e);return e.err?e.err:e.segments}(t),n=0,r=0,i=0,a=0;return e.map(function(t){var e,o=t.slice(1).map(Number),l=t[0],s=l.toUpperCase();if("M"===l)return n=o[0],r=o[1],i=n,a=r,["M",n,r];if(l!==s)switch(s){case"A":e=[s,o[0],o[1],o[2],o[3],o[4],o[5]+n,o[6]+r];break;case"V":e=[s,o[0]+r];break;case"H":e=[s,o[0]+n];break;default:e=[s].concat(o.map(function(t,e){return t+(e%2?r:n)}))}else e=[s].concat(o);var u=e.length;switch(s){case"Z":n=i,r=a;break;case"H":n=e[1];break;case"V":r=e[1];break;default:n=e[u-2],r=e[u-1],"M"===s&&(i=n,a=r)}return e})}(t),n=(0,r.pi)({},a.z),d=0;d<e.length;d+=1){e[d]=function(t,e){var n=t[0],r=e.x1,i=e.y1,a=e.x2,o=e.y2,l=t.slice(1).map(Number),s=t;if("TQ".includes(n)||(e.qx=null,e.qy=null),"H"===n)s=["L",t[1],i];else if("V"===n)s=["L",r,t[1]];else if("S"===n){var u=2*r-a,c=2*i-o;e.x1=u,e.y1=c,s=["C",u,c].concat(l)}else if("T"===n){var f=2*r-e.qx,p=2*i-e.qy;e.qx=f,e.qy=p,s=["Q",f,p].concat(l)}else if("Q"===n){var d=l[0],h=l[1];e.qx=d,e.qy=h}return s}(e[d],n);var h=e[d],y=h.length;n.x1=+h[y-2],n.y1=+h[y-1],n.x2=+h[y-4]||n.x1,n.y2=+h[y-3]||n.y1}return e}},2854:function(t,e,n){"use strict";function r(t){var e=t.slice(1).map(function(e,n,r){return n?r[n-1].slice(-2).concat(e.slice(1)):t[0].slice(1).concat(e.slice(1))}).map(function(t){return t.map(function(e,n){return t[t.length-n-2*(1-n%2)]})}).reverse();return[["M"].concat(e[0].slice(0,2))].concat(e.map(function(t){return["C"].concat(t.slice(2))}))}n.d(e,{G:function(){return r}})},35476:function(t,e,n){"use strict";function r(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}n.d(e,{y:function(){return r}})},29873:function(t,e,n){"use strict";n.d(e,{x:function(){return function t(e,n,r,i){if(void 0===i&&(i=0),i>50)return console.warn("Maximum recursion depth reached in equalizeSegments"),[e,n];var o=a(e),l=a(n),s=o.length,u=l.length,c=o.filter(function(t){return t.l}).length,f=l.filter(function(t){return t.l}).length,p=o.filter(function(t){return t.l}).reduce(function(t,e){return t+e.l},0)/c||0,d=l.filter(function(t){return t.l}).reduce(function(t,e){return t+e.l},0)/f||0,h=r||Math.max(s,u),y=[p,d],g=[h-s,h-u],m=0,v=[o,l].map(function(t,e){return t.l===h?t.map(function(t){return t.s}):t.map(function(t,n){return m=n&&g[e]&&t.l>=y[e],g[e]-=m?1:0,m?t.ss:[t.s]}).flat()});return v[0].length===v[1].length?v:t(v[0],v[1],h,i+1)}}});var r=n(90319),i=n(28198);function a(t){return t.map(function(t,e,n){var a,o,l,s,u,c,f,p,d,h,y,g,m=e&&n[e-1].slice(-2).concat(t.slice(1)),v=e?(0,i.S)(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],{bbox:!1}).length:0;return g=e?v?(void 0===a&&(a=.5),o=m.slice(0,2),l=m.slice(2,4),s=m.slice(4,6),u=m.slice(6,8),c=(0,r.k)(o,l,a),f=(0,r.k)(l,s,a),p=(0,r.k)(s,u,a),d=(0,r.k)(c,f,a),h=(0,r.k)(f,p,a),y=(0,r.k)(d,h,a),[["C"].concat(c,d,y),["C"].concat(h,p,u)]):[t,t]:[t],{s:t,ss:g,l:v}})}},86976:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});var r=n(58856);function i(t){var e,n,i;return e=0,n=0,i=0,(0,r.Y)(t).map(function(t){if("M"===t[0])return e=t[1],n=t[2],0;var r,a,o,l=t.slice(1),s=l[0],u=l[1],c=l[2],f=l[3],p=l[4],d=l[5];return a=e,i=3*((d-(o=n))*(s+c)-(p-a)*(u+f)+u*(a-c)-s*(o-f)+d*(c+a/3)-p*(f+o/3))/20,e=(r=t.slice(-2))[0],n=r[1],i}).reduce(function(t,e){return t+e},0)>=0}},59123:function(t,e,n){"use strict";n.d(e,{r:function(){return a}});var r=n(15767),i=n(70391);function a(t,e,n){return(0,i.s)(t,e,(0,r.pi)((0,r.pi)({},n),{bbox:!1,length:!0})).point}},79011:function(t,e,n){"use strict";n.d(e,{g:function(){return i}});var r=n(35476);function i(t,e){var n,i,a=t.length-1,o=[],l=0,s=(i=(n=t.length)-1,t.map(function(e,r){return t.map(function(e,a){var o=r+a;return 0===a||t[o]&&"M"===t[o][0]?["M"].concat(t[o].slice(-2)):(o>=n&&(o-=i),t[o])})}));
38return s.forEach(function(n,i){t.slice(1).forEach(function(n,o){l+=(0,r.y)(t[(i+o)%a].slice(-2),e[o%a].slice(-2))}),o[i]=l,l=0}),s[o.indexOf(Math.min.apply(null,o))]}},59548:function(t,e,n){"use strict";n.d(e,{D:function(){return a}});var r=n(15767),i=n(70391);function a(t,e){return(0,i.s)(t,void 0,(0,r.pi)((0,r.pi)({},e),{bbox:!1,length:!0})).length}},86567:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});var r=n(82591);function i(t){return(0,r.n)(t)&&t.every(function(t){var e=t[0];return e===e.toUpperCase()})}},41282:function(t,e,n){"use strict";n.d(e,{y:function(){return i}});var r=n(86567);function i(t){return(0,r.b)(t)&&t.every(function(t){var e=t[0];return"ACLMQZ".includes(e)})}},82591:function(t,e,n){"use strict";n.d(e,{n:function(){return i}});var r=n(65821);function i(t){return Array.isArray(t)&&t.every(function(t){var e=t[0].toLowerCase();return r.R[e]===t.length-1&&"achlmqstvz".includes(e)})}},90319:function(t,e,n){"use strict";function r(t,e,n){var r=t[0],i=t[1];return[r+(e[0]-r)*n,i+(e[1]-i)*n]}n.d(e,{k:function(){return r}})},70391:function(t,e,n){"use strict";n.d(e,{s:function(){return u}});var r=n(96216),i=n(90319),a=n(35476);function o(t,e,n,r,o){var l=(0,a.y)([t,e],[n,r]),s={x:0,y:0};if("number"==typeof o){if(o<=0)s={x:t,y:e};else if(o>=l)s={x:n,y:r};else{var u=(0,i.k)([t,e],[n,r],o/l);s={x:u[0],y:u[1]}}}return{length:l,point:s,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function l(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2)));return(n*a-r*i<0?-1:1)*Math.acos((n*i+r*a)/o)}var s=n(28198);function u(t,e,n){for(var i,u,c,f,p,d,h,y,g,m=(0,r.A)(t),v="number"==typeof e,b=[],x=0,O=0,w=0,M=0,_=[],k=[],j=0,A={x:0,y:0},E=A,S=A,P=A,C=0,T=0,R=m.length;T<R;T+=1)b=(h="M"===(y=(g=m[T])[0]))?b:[x,O].concat(g.slice(1)),h?(E=A={x:w=g[1],y:M=g[2]},j=0,v&&e<.001&&(P=A)):"L"===y?(j=(i=o(b[0],b[1],b[2],b[3],(e||0)-C)).length,A=i.min,E=i.max,S=i.point):"A"===y?(j=(u=function(t,e,n,r,i,s,u,c,f,p,d){var h,y=d.bbox,g=void 0===y||y,m=d.length,v=void 0===m||m,b=d.sampleSize,x=void 0===b?30:b,O="number"==typeof p,w=t,M=e,_=0,k=[w,M,0],j=[w,M],A={x:0,y:0},E=[{x:w,y:M}];O&&p<=0&&(A={x:w,y:M});for(var S=0;S<=x;S+=1){if(w=(h=function(t,e,n,r,i,a,s,u,c,f){var p=Math.abs,d=Math.sin,h=Math.cos,y=Math.sqrt,g=Math.PI,m=p(n),v=p(r),b=g/180*((i%360+360)%360);if(t===u&&e===c)return{x:t,y:e};if(0===m||0===v)return o(t,e,u,c,f).point;var x=(t-u)/2,O=(e-c)/2,w={x:h(b)*x+d(b)*O,y:-d(b)*x+h(b)*O},M=Math.pow(w.x,2)/Math.pow(m,2)+Math.pow(w.y,2)/Math.pow(v,2);M>1&&(m*=y(M),v*=y(M));var _=(Math.pow(m,2)*Math.pow(v,2)-Math.pow(m,2)*Math.pow(w.y,2)-Math.pow(v,2)*Math.pow(w.x,2))/(Math.pow(m,2)*Math.pow(w.y,2)+Math.pow(v,2)*Math.pow(w.x,2)),k=(a!==s?1:-1)*y(_=_<0?0:_),j={x:m*w.y/v*k,y:-(v*w.x)/m*k},A={x:h(b)*j.x-d(b)*j.y+(t+u)/2,y:d(b)*j.x+h(b)*j.y+(e+c)/2},E={x:(w.x-j.x)/m,y:(w.y-j.y)/v},S=l({x:1,y:0},E),P=l(E,{x:(-w.x-j.x)/m,y:(-w.y-j.y)/v});!s&&P>0?P-=2*g:s&&P<0&&(P+=2*g);var C=S+(P%=2*g)*f,T=m*h(C),R=v*d(C);return{x:h(b)*T-d(b)*R+A.x,y:d(b)*T+h(b)*R+A.y}}(t,e,n,r,i,s,u,c,f,S/x)).x,M=h.y,g&&E.push({x:w,y:M}),v&&(_+=(0,a.y)(j,[w,M])),j=[w,M],O&&_>=p&&p>k[2]){var P=(_-p)/(_-k[2]);A={x:j[0]*(1-P)+k[0]*P,y:j[1]*(1-P)+k[1]*P}}k=[w,M,_]}return O&&p>=_&&(A={x:c,y:f}),{length:_,point:A,min:{x:Math.min.apply(null,E.map(function(t){return t.x})),y:Math.min.apply(null,E.map(function(t){return t.y}))},max:{x:Math.max.apply(null,E.map(function(t){return t.x})),y:Math.max.apply(null,E.map(function(t){return t.y}))}}}(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],(e||0)-C,n||{})).length,A=u.min,E=u.max,S=u.point):"C"===y?(j=(c=(0,s.S)(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],(e||0)-C,n||{})).length,A=c.min,E=c.max,S=c.point):"Q"===y?(j=(f=function(t,e,n,r,i,o,l,s){var u,c=s.bbox,f=void 0===c||c,p=s.length,d=void 0===p||p,h=s.sampleSize,y=void 0===h?10:h,g="number"==typeof l,m=t,v=e,b=0,x=[m,v,0],O=[m,v],w={x:0,y:0},M=[{x:m,y:v}];g&&l<=0&&(w={x:m,y:v});for(var _=0;_<=y;_+=1){if(m=(u=function(t,e,n,r,i,a,o){var l=1-o;return{x:Math.pow(l,2)*t+2*l*o*n+Math.pow(o,2)*i,y:Math.pow(l,2)*e+2*l*o*r+Math.pow(o,2)*a}}(t,e,n,r,i,o,_/y)).x,v=u.y,f&&M.push({x:m,y:v}),d&&(b+=(0,a.y)(O,[m,v])),O=[m,v],g&&b>=l&&l>x[2]){var k=(b-l)/(b-x[2]);w={x:O[0]*(1-k)+x[0]*k,y:O[1]*(1-k)+x[1]*k}}x=[m,v,b]}return g&&l>=b&&(w={x:i,y:o}),{length:b,point:w,min:{x:Math.min.apply(null,M.map(function(t){return t.x})),y:Math.min.apply(null,M.map(function(t){return t.y}))},max:{x:Math.max.apply(null,M.map(function(t){return t.x})),y:Math.max.apply(null,M.map(function(t){return t.y}))}}}(b[0],b[1],b[2],b[3],b[4],b[5],(e||0)-C,n||{})).length,A=f.min,E=f.max,S=f.point):"Z"===y&&(j=(p=o((b=[x,O,w,M])[0],b[1],b[2],b[3],(e||0)-C)).length,A=p.min,E=p.max,S=p.point),v&&C<e&&C+j>=e&&(P=S),k.push(E),_.push(A),C+=j,x=(d="Z"!==y?g.slice(-2):[w,M])[0],O
38=d[1];return v&&e>=C&&(P={x:x,y:O}),{length:C,point:P,min:{x:Math.min.apply(null,_.map(function(t){return t.x})),y:Math.min.apply(null,_.map(function(t){return t.y}))},max:{x:Math.max.apply(null,k.map(function(t){return t.x})),y:Math.max.apply(null,k.map(function(t){return t.y}))}}}},28198:function(t,e,n){"use strict";n.d(e,{S:function(){return i}});var r=n(35476);function i(t,e,n,i,a,o,l,s,u,c){var f,p=c.bbox,d=void 0===p||p,h=c.length,y=void 0===h||h,g=c.sampleSize,m=void 0===g?10:g,v="number"==typeof u,b=t,x=e,O=0,w=[b,x,0],M=[b,x],_={x:0,y:0},k=[{x:b,y:x}];v&&u<=0&&(_={x:b,y:x});for(var j=0;j<=m;j+=1){if(b=(f=function(t,e,n,r,i,a,o,l,s){var u=1-s;return{x:Math.pow(u,3)*t+3*Math.pow(u,2)*s*n+3*u*Math.pow(s,2)*i+Math.pow(s,3)*o,y:Math.pow(u,3)*e+3*Math.pow(u,2)*s*r+3*u*Math.pow(s,2)*a+Math.pow(s,3)*l}}(t,e,n,i,a,o,l,s,j/m)).x,x=f.y,d&&k.push({x:b,y:x}),y&&(O+=(0,r.y)(M,[b,x])),M=[b,x],v&&O>=u&&u>w[2]){var A=(O-u)/(O-w[2]);_={x:M[0]*(1-A)+w[0]*A,y:M[1]*(1-A)+w[1]*A}}w=[b,x,O]}return v&&u>=O&&(_={x:l,y:s}),{length:O,point:_,min:{x:Math.min.apply(null,k.map(function(t){return t.x})),y:Math.min.apply(null,k.map(function(t){return t.y}))},max:{x:Math.max.apply(null,k.map(function(t){return t.x})),y:Math.max.apply(null,k.map(function(t){return t.y}))}}}},99419:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87
38],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2489:function(t,e,n){var r=n(99419),i=n(32858),a=Object.hasOwnProperty,o=Object.create(null);for(var l in r)a.call(r,l)&&(o[r[l]]=l);var s=t.exports={to:{},get:{}};function u(t,e,n){return Math.min(Math.max(e,t),n)}function c(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}s.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=s.get.hsl(t),n="hsl";break;case"hwb":e=s.get.hwb(t),n="hwb";break;default:e=s.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},s.get.rgb=function(t){if(!t)return null;var e,n,i,o=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=0,i=e[2],e=e[1];n<3;n++){var l=2*n;o[n]=parseInt(e.slice(l,l+2),16)}i&&(o[3]=parseInt(i,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(n=0,i=(e=e[1])[3];n<3;n++)o[n]=parseInt(e[n]+e[n],16);i&&(o[3]=parseInt(i+i,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(e[n+1],0);e[4]&&(e[5]?o[3]=.01*parseFloat(e[4]):o[3]=parseFloat(e[4]))}else if(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?o[3]=.01*parseFloat(e[4]):o[3]=parseFloat(e[4]))}else if(!(e=t.match(/^(\w+)$/)))return null;else return"transparent"===e[1]?[0,0,0,0]:a.call(r,e[1])?((o=r[e[1]])[3]=1,o):null;for(n=0;n<3;n++)o[n]=u(o[n],0,255);return o[3]=u(o[3],0,1),o},s.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var t=i(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},s.to.rgb=function(){var t=i(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},s.to.rgb.percent=function(){var t=i(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},s.to.hsl=function(){var t=i(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},s.to.hwb=function(){var t=i(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},s.to.keyword=function(t){return o[t.slice(0,3)]}},83718:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(t,e,r,a,o){if("function"!=typeof r)throw TypeError("The listener must be a function");var l=new i(r,a||t,o),s=n?n+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],l]:t._events[s].push(l):(t._events[s]=l,t._eventsCount++),t}function o(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),l.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},l.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=Array(a);i<a;i++)o[i]=r[i].fn;return o},l.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},l.prototype.emit=function(t,e,r,i,a,o){var l=n?n+t:t;if(!this._events[l])return!1;var s,u,c=this._events[l],f=arguments.length;
vendor: 16,265 bytes, line 38
38if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,r),!0;case 4:return c.fn.call(c.context,e,r,i),!0;case 5:return c.fn.call(c.context,e,r,i,a),!0;case 6:return c.fn.call(c.context,e,r,i,a,o),!0}for(u=1,s=Array(f-1);u<f;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var p,d=c.length;for(u=0;u<d;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,r);break;case 4:c[u].fn.call(c[u].context,e,r,i);break;default:if(!s)for(p=1,s=Array(f-1);p<f;p++)s[p-1]=arguments[p];c[u].fn.apply(c[u].context,s)}}return!0},l.prototype.on=function(t,e,n){return a(this,t,e,n,!1)},l.prototype.once=function(t,e,n){return a(this,t,e,n,!0)},l.prototype.removeListener=function(t,e,r,i){var a=n?n+t:t;if(!this._events[a])return this;if(!e)return o(this,a),this;var l=this._events[a];if(l.fn)l.fn!==e||i&&!l.once||r&&l.context!==r||o(this,a);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==e||i&&!l[s].once||r&&l[s].context!==r)&&u.push(l[s]);u.length?this._events[a]=1===u.length?u[0]:u:o(this,a)}return this},l.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&o(this,e)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,t.exports=l},19537:function(t,e,n){"use strict";n.d(e,{Ib:function(){return r},WT:function(){return i},yy:function(){return a}});var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,a="zyx"},61899:function(t,e,n){"use strict";n.d(e,{Ue:function(){return i},al:function(){return o},xO:function(){return a}});var r=n(19537);function i(){var t=new r.WT(9);return r.WT!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function o(t,e,n,i,a,o,l,s,u){var c=new r.WT(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=i,c[4]=a,c[5]=o,c[6]=l,c[7]=s,c[8]=u,c}},14690:function(t,e,n){"use strict";n.r(e),n.d(e,{add:function(){return V},adjoint:function(){return p},clone:function(){return a},copy:function(){return o},create:function(){return i},decompose:function(){return T},determinant:function(){return d},equals:function(){return J},exactEquals:function(){return Q},frob:function(){return Y},fromQuat:function(){return N},fromQuat2:function(){return E},fromRotation:function(){return M},fromRotationTranslation:function(){return A},fromRotationTranslationScale:function(){return R},fromRotationTranslationScaleOrigin:function(){return L},fromScaling:function(){return w},fromTranslation:function(){return O},fromValues:function(){return l},fromXRotation:function(){return _},fromYRotation:function(){return k},fromZRotation:function(){return j},frustum:function(){return I},getRotation:function(){return C},getScaling:function(){return P},getTranslation:function(){return S},identity:function(){return u},invert:function(){return f},lookAt:function(){return H},mul:function(){return tt},multiply:function(){return h},multiplyScalar:function(){return X},multiplyScalarAndAdd:function(){return K},ortho:function(){return W},orthoNO:function(){return $},orthoZO:function(){return Z},perspective:function(){return B},perspectiveFromFieldOfView:function(){return z},perspectiveNO:function(){return F},perspectiveZO:function(){return D},rotate:function(){return m},rotateX:function(){return v},rotateY:function(){return b},rotateZ:function(){return x},scale:function(){return g},set:function(){return s},str:function(){return G},sub:function(){return te},subtract:function(){return U},targetTo:function(){return q},translate:function(){return y},transpose:function(){return c}});var r=n(19537);function i(){var t=new r.WT(16);return r.WT!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function a(t){var e=new r.WT(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function l(t,e,n,i,a,o,l,s,u,c,f,p,d,h,y,g){var m=new r.WT(16);return m[0]=t,m[1]=e,m[2]=n,m[3]=i,m[4]=a,m[5]=o,m[6]=l,m[7]=s,m[8]=u,m[9]=c,m[10]=f,m[11]=p,m[12]=d,m[13]=h,m[14]=y,m[15]=g,m}function s(t,e,n,r,i,a,o,l,s,u,c,f,p,d,h,y,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=l,t[7]=s,t[8]=u,t[9]=c,t[10]=f,t[11]=p,t[12]=d,t[13]=h,t[14]=y,t[15]=g,t}function u(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function c(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],l=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=l}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function f(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],l=e[5],s=e[6],u=e[7],c=e[8],f=e[9],p=e[10],d=e[11],h=e[12],y=e[13],g=e[14],m=e[15],v=n*l-r*o,b=n*s-i*o,x=n*u-a*o,O=r*s-i*l,w=r*u-a*l,M=i*u-a*s,_=c*y-f*h,k=c*g-p*h,j=c*m-d*h,A=f*g-p*y,E=f*m-d*y,S=p*m-d*g,P=v*S-b*E+x*A+O*j-w*k+M*_;return P?(P=1/P,t[0]=(l*S-s*E+u*A)*P,t[1]=(i*E-r*S-a*A)*P,t[2]=(y*M-g*w+m*O)*P,t[3]=(p*w-f*M-d*O)*P,t[4]=(s*j-o*S-u*k)*P,t[5]=(n*S-i*j+a*k)*P,t[6]=(g*x-h*M-m*b)*P,t[7]=(c*M-p*x+d*b)*P,t[8]=(o*E-l*j+u*_)*P,t[9]=(r*j-n*E-a*_)*P,t[10]=(h*w-y*x+m*v)*P,t[11]=(f*x-c*w-d*v)*P,t[12]=(l*k-o*A-s*_)*P,t[13]=(n*A-r*k+i*_)*P,t[14]=(y*b-h*O-g*v)*P,t[15]=(c*O-f*b+p*v)*P,t):null}function p(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],l=e[5],s=e[6],u=e[7],c=e[8],f=e[9],p=e[10],d=e[11],h=e[12],y=e[13],g=e[14],m=e[15],v=n*l-r*o,b=n*s-i*o,x=n*u-a*o,O=r*s-i*l,w=r*u-a*l,M=i*u-a*s,_=c*y-f*h,k=c*g-p*h,j=c*m-d*h,A=f*g-p*y,E=f*m-d*y,S=p*m-d*g;return t[0]=l*S-s*E+u*A,t[1]=i*E-r*S-a*A,t[2]=y*M-g*w+m*O,t[3]=p*w-f*M-d*O,t[4]=s*j-o*S-u*k,t[5]=n*S-i*j+a*k,t[6]=g*x-h*M-m*b,t[7]=c*M-p*x+d*b,t[8]=o*E-l*j+u*_,t[9]=r*j-n*E-a*_,t[10]=h*w-y*x+m*v,t[11]=f*x-c*w-d*v,t[12]=l*k-o*A-s*_,t[13]=n*A-r*k+i*_,t[14]=y*b-h*O-g*v,t[15]=c*O-f*b+p*v,t}function d(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],l=t[6],s=t[7],u=t[8],c=t[9],f=t[10],p=t[11],d=t[12],h=t[13],y=t[14],g=t[15],m=e*o-n*a,v=e*l-r*a,b=n*l-r*o,x=u*h-c*d,O=u*y-f*d,w=c*y-f*h;return s*(e*w-n*O+r*x)-i*(a*w-o*O+l*x)+g*(u*b-c*v+f*m)-p*(d*b-h*v+y*m)}function h(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],l=e[4],s=e[5],u=e[6],c=e[7],f=e[8],p=e[9],d=e[10],h=e[11],y=e[12],g=e[13],m=e[14],v=e[15],b=n[0],x=n[1],O=n[2],w=n[3];return t[0]=b*r+x*l+O*f+w*y,t[1]=b*i+x*s+O*p+w*g,t[2]=b*a+x*u+O*d+w*m,t[3]=b*o+x*c+O*h+w*v,b=n[4],x=n[5],O=n[6],w=n[7],t[4]=b*r+x*l+O*f+w*y,t[5]=b*i+x*s+O*p+w*g,t[6]=b*a+x*u+O*d+w*m,t[7]=b*o+x*c+O*h+w*v,b=n[8],x=n[9],O=n[10],w=n[11],t[8]=b*r+x*l+O*f+w*y,t[9]=b*i+x*s+O*p+w*g,t[10]=b*a+x*u+O*d+w*m,t[11]=b*o+x*c+O*h+w*v,b=n[12],x=n[13],O=n[14],w=n[15],t[12]=b*r+x*l+O*f+w*y,t[13]=b*i+x*s+O*p+w*g,t[14]=b*a+x*u+O*d+w*m,t[15]=b*o+x*c+O*h+w*v,t}function y(t,e,n){var r,i,a,o,l,s,u,c,f,p,d,h,y=n[0],g=n[1],m=n[2];return e===t?(t[12]=e[0]*y+e[4]*g+e[8]*m+e[12],t[13]=e[1]*y+e[5]*g+e[9]*m+e[13],t[14]=e[2]*y+e[6]*g+e[10]*m+e[14],t[15]=e[3]*y+e[7]*g+e[11]*m+e[15]):(r=e[0],i=e[1],a=e[2],o=e[3],l=e[4],s=e[5],u=e[6],c=e[7],f=e[8],p=e[9],d=e[10],h=e[11],t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=l,t[5]=s,t[6]=u,t[7]=c,t[8]=f,t[9]=p,t[10]=d,t[11]=h,t[12]=r*y+l*g+f*m+e[12],t[13]=i*y+s*g+p*m+e[13],t[14]=a*y+u*g+d*m+e[14],t[15]=o*y+c*g+h*m+e[15]),t}function g(t,e,n){var r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function m(t,e,n,i){var a,o,l,s,u,c,f,p,d,h,y,g,m,v,b,x,O,w,M,_,k,j,A,E,S=i[0],P=i[1],C=i[2],T=Math.sqrt(S*S+P*P+C*C);return T<r.Ib?null:(S*=T=1/T,P*=T,C*=T,a=Math.sin(n),l=1-(o=Math.cos(n)),s=e[0],u=e[1],c=e[2],f=e[3],p=e[4],d=e[5],h=e[6],y=e[7],g=e[8],m=e[9],v=e[10],b=e[11],x=S*S*l+o,O=P*S*l+C*a,w=C*S*l-P*a,M=S*P*l-C*a,_=P*P*l+o,k=C*P*l+S*a,j=S*C*l+P*a,A=P*C*l-S*a,E=C*C*l+o,t[0]=s*x+p*O+g*w,t[1]=u*x+d*O+m*w,t[2]=c*x+h*O+v*w,t[3]=f*x+y*O+b*w,t[4]=s*M+p*_+g*k,t[5]=u*M+d*_+m*k,t[6]=c*M+h*_+v*k,t[7]=f*M+y*_+b*k,t[8]=s*j+p*A+g*E,t[9]=u*j+d*A+m*E,t[10]=c*j+h*A+v*E,t[11]=f*j+y*A+b*E,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function v(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[4],o=e[5],l=e[6],s=e[7],u=e[8],c=e[9],f=e[10],p=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+u*r,t[5]=o*i+c*r,t[6]=l*i+f*r,t[7]=s*i+p*r,t[8]=u*i-a*r,t[9]=c*i-o*r,t[10]=f*i-l*r,t[11]=p*i-s*r,t}function b(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],l=e[2],s=e[3],u=e[8],c=e[9],f=e[10],p=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-u*r,t[1]=o*i-c*r,t[2]=l*i-f*r,t[3]=s*i-p*r,t[8]=a*r+u*i,t[9]=o*r+c*i,t[10]=l*r+f*i,t[11]=s*r+p*i,t}function x(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],l=e[2],s=e[3],u=e[4],c=e[5],f=e[6],p=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+u*r,t[1]=o*i+c*r,t[2]=l*i+f*r,t[3]=s*i+p*r,t[4]=u*i-a*r,t[5]=c*i-o*r,t[6]=f*i-l*r,t[7]=p*i-s*r,t}function O(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function w(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e,n){var i,a,o,l=n[0],s=n[1],u=n[2],c=Math.sqrt(l*l+s*s+u*u);return c<r.Ib?null:(l*=c=1/c,s*=c,u*=c,i=Math.sin(e),o=1-(a=Math.cos(e)),t[0]=l*l*o+a,t[1]=s*l*o+u*i,t[2]=u*l*o-s*i,t[3]=0,t[4]=l*s*o-u*i,t[5]=s*s*o+a,t[6]=u*s*o+l*i,t[7]=0,t[8]=l*u*o+s*i,t[9]=s*u*o-l*i,t[10]=u*u*o+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function _(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function k(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function j(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function A(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],l=r+r,s=i+i,u=a+a,c=r*l,f=r*s,p=r*u,d=i*s,h=i*u,y=a*u,g=o*l,m=o*s,v=o*u;return t[0]=1-(d+y),t[1]=f+v,t[2]=p-m,t[3]=0,t[4]=f-v,t[5]=1-(c+y),t[6]=h+g,t[7]=0,t[8]=p+m,t[9]=h-g,t[10]=1-(c+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function E(t,e){var n=new r.WT(3),i=-e[0],a=-e[1],o=-e[2],l=e[3],s=e[4],u=e[5],c=e[6],f=e[7],p=i*i+a*a+o*o+l*l;return p>0?(n[0]=(s*l+f*i+u*o-c*a)*2/p,n[1]=(u*l+f*a+c*i-s*o)*2/p,n[2]=(c*l+f*o+s*a-u*i)*2/p):(n[0]=(s*l+f*i+u*o-c*a)*2,n[1]=(u*l+f*a+c*i-s*o)*2,n[2]=(c*l+f*o+s*a-u*i)*2),A(t,e,n),t}function S(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function P(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],l=e[6],s=e[8],u=e[9],c=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(a*a+o*o+l*l),t[2]=Math.sqrt(s*s+u*u+c*c),t}function C(t,e){var n=new r.WT(3);P(n,e);var i=1/n[0],a=1/n[1],o=1/n[2],l=e[0]*i,s=e[1]*a,u=e[2]*o,c=e[4]*i,f=e[5]*a,p=e[6]*o,d=e[8]*i,h=e[9]*a,y=e[10]*o,g=l+f+y,m=0;return g>0?(m=2*Math.sqrt(g+1),t[3]=.25*m,t[0]=(p-h)/m,t[1]=(d-u)/m,t[2]=(s-c)/m):l>f&&l>y?(m=2*Math.sqrt(1+l-f-y),t[3]=(p-h)/m,t[0]=.25*m,t[1]=(s+c)/m,t[2]=(d+u)/m):f>y?(m=2*Math.sqrt(1+f-l-y),t[3]=(d-u)/m,t[0]=(s+c)/m,t[1]=.25*m,t[2]=(p+h)/m):(m=2*Math.sqrt(1+y-l-f),t[3]=(s-c)/m,t[0]=(d+u)/m,t[1]=(p+h)/m,t[2]=.25*m),t}function T(t,e,n,r){e[0]=r[12],e[1]=r[13],e[2]=r[14];var i=r[0],a=r[1],o=r[2],l=r[4],s=r[5],u=r[6],c=r[8],f=r[9],p=r[10];n[0]=Math.sqrt(i*i+a*a+o*o),n[1]=Math.sqrt(l*l+s*s+u*u),n[2]=Math.sqrt(c*c+f*f+p*p);var d=1/n[0],h=1/n[1],y=1/n[2],g=i*d,m=a*h,v=o*y,b=l*d,x=s*h,O=u*y,w=c*d,M=f*h,_=p*y,k=g+x+_,j=0;return k>0?(j=2*Math.sqrt(k+1),t[3]=.25*j,t[0]=(O-M)/j,t[1]=(w-v)/j,t[2]=(m-b)/j):g>x&&g>_?(j=2*Math.sqrt(1+g-x-_),t[3]=(O-M)/j,t[0]=.25*j,t[1]=(m+b)/j,t[2]=(w+v)/j):x>_?(j=2*Math.sqrt(1+x-g-_),t[3]=(w-v)/j,t[0]=(m+b)/j,t[1]=.25*j,t[2]=(O+M)/j):(j=2*Math.sqrt(1+_-g-x),t[3]=(m-b)/j,t[0]=(w+v)/j,t[1]=(O+M)/j,t[2]=.25*j),t}function R(t,e,n,r){var i=e[0],a=e[1],o=e[2],l=e[3],s=i+i,u=a+a,c=o+o,f=i*s,p=i*u,d=i*c,h=a*u,y=a*c,g=o*c,m=l*s,v=l*u,b=l*c,x=r[0],O=r[1],w=r[2];return t[0]=(1-(h+g))*x,t[1]=(p+b)*x,t[2]=(d-v)*x,t[3]=0,t[4]=(p-b)*O,t[5]=(1-(f+g))*O,t[6]=(y+m)*O,t[7]=0,t[8]=(d+v)*w,t[9]=(y-m)*w,t[10]=(1-(f+h))*w,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function L(t,e,n,r,i){var a=e[0],o=e[1],l=e[2],s=e[3],u=a+a,c=o+o,f=l+l,p=a*u,d=a*c,h=a*f,y=o*c,g=o*f,m=l*f,v=s*u,b=s*c,x=s*f,O=r[0],w=r[1],M=r[2],_=i[0],k=i[1],j=i[2],A=(1-(y+m))*O,E=(d+x)*O,S=(h-b)*O,P=(d-x)*w,C=(1-(p+m))*w,T=(g+v)*w,R=(h+b)*M,L=(g-v)*M,N=(1-(p+y))*M;return t[0]=A,t[1]=E,t[2]=S,t[3]=0,t[4]=P,t[5]=C,t[6]=T,t[7]=0,t[8]=R,t[9]=L,t[10]=N,t[11]=0,t[12]=n[0]+_-(A*_+P*k+R*j),t[13]=n[1]+k-(E*_+C*k+L*j),t[14]=n[2]+j-(S*_+T*k+N*j),t[15]=1,t}function N(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,l=r+r,s=i+i,u=n*o,c=r*o,f=r*l,p=i*o,d=i*l,h=i*s,y=a*o,g=a*l,m=a*s;return t[0]=1-f-h,t[1]=c+m,t[2]=p-g,t[3]=0,t[4]=c-m,t[5]=1-u-h,t[6]=d+y,t[7]=0,t[8]=p+g,t[9]=d-y,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function I(t,e,n,r,i,a,o){var l=1/(n-e),s=1/(i-r),u=1/(a-o);return t[0]=2*a*l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*s,t[6]=0,t[7]=0,t[8]=(n+e)*l,t[9]=(i+r)*s,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t}function F(t,e,n,r,i){var a=1/Math.tan(e/2);if(t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0){var o=1/(r-i);t[10]=(i+r)*o,t[14]=2*i*r*o}else t[10]=-1,t[14]=-2*r;return t}var B=F;function D(t,e,n,r,i){var a=1/Math.tan(e/2);if(t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0){var o=1/(r-i);t[10]=i*o,t[14]=i*r*o}else t[10]=-1,t[14]=-r;return t}function z(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),l=Math.tan(e.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(i+a);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-((o-l)*s*.5),t[9]=(i-a)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function $(t,e,n,r,i,a,o){var l=1/(e-n),s=1/(r-i),u=1/(a-o);return t[0]=-2*l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*l,t[13]=(i+r)*s,t[14]=(o+a)*u,t[15]=1,t}var W=$;function Z(t,e,n,r,i,a,o){var l=1/(e-n),s=1/(r-i),u=1/(a-o);return t[0]=-2*l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*l,t[13]=(i+r)*s,t[14]=a*u,t[15]=1,t}function H(t,e,n,i){var a,o,l,s,c,f,p,d,h,y,g=e[0],m=e[1],v=e[2],b=i[0],x=i[1],O=i[2],w=n[0],M=n[1],_=n[2];return Math.abs(g-w)<r.Ib&&Math.abs(m-M)<r.Ib&&Math.abs(v-_)<r.Ib?u(t):(y=1/Math.sqrt((p=g-w)*p+(d=m-M)*d+(h=v-_)*h),p*=y,d*=y,h*=y,(y=Math.sqrt((a=x*h-O*d)*a+(o=O*p-b*h)*o+(l=b*d-x*p)*l))?(a*=y=1/y,o*=y,l*=y):(a=0,o=0,l=0),(y=Math.sqrt((s=d*l-h*o)*s+(c=h*a-p*l)*c+(f=p*o-d*a)*f))?(s*=y=1/y,c*=y,f*=y):(s=0,c=0,f=0),t[0]=a,t[1]=s,t[2]=p,t[3]=0,t[4]=o,t[5]=c,t[6]=d,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=-(a*g+o*m+l*v),t[13]=-(s*g+c*m+f*v),t[14]=-(p*g+d*m+h*v),t[15]=1,t)}function q(t,e,n,r){var i=e[0],a=e[1],o=e[2],l=r[0],s=r[1],u=r[2],c=i-n[0],f=a-n[1],p=o-n[2],d=c*c+f*f+p*p;d>0&&(c*=d=1/Math.sqrt(d),f*=d,p*=d);var h=s*p-u*f,y=u*c-l*p,g=l*f-s*c;return(d=h*h+y*y+g*g)>
380&&(h*=d=1/Math.sqrt(d),y*=d,g*=d),t[0]=h,t[1]=y,t[2]=g,t[3]=0,t[4]=f*g-p*y,t[5]=p*h-c*g,t[6]=c*y-f*h,t[7]=0,t[8]=c,t[9]=f,t[10]=p,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t}function G(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function Y(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8]+t[9]*t[9]+t[10]*t[10]+t[11]*t[11]+t[12]*t[12]+t[13]*t[13]+t[14]*t[14]+t[15]*t[15])}function V(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function U(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function X(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function K(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function Q(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function J(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],l=t[4],s=t[5],u=t[6],c=t[7],f=t[8],p=t[9],d=t[10],h=t[11],y=t[12],g=t[13],m=t[14],v=t[15],b=e[0],x=e[1],O=e[2],w=e[3],M=e[4],_=e[5],k=e[6],j=e[7],A=e[8],E=e[9],S=e[10],P=e[11],C=e[12],T=e[13],R=e[14],L=e[15];return Math.abs(n-b)<=r.Ib*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(i-x)<=r.Ib*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-O)<=r.Ib*Math.max(1,Math.abs(a),Math.abs(O))&&Math.abs(o-w)<=r.Ib*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(l-M)<=r.Ib*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(s-_)<=r.Ib*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(u-k)<=r.Ib*Math.max(1,Math.abs(u),Math.abs(k))&&Math.abs(c-j)<=r.Ib*Math.max(1,Math.abs(c),Math.abs(j))&&Math.abs(f-A)<=r.Ib*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(p-E)<=r.Ib*Math.max(1,Math.abs(p),Math.abs(E))&&Math.abs(d-S)<=r.Ib*Math.max(1,Math.abs(d),Math.abs(S))&&Math.abs(h-P)<=r.Ib*Math.max(1,Math.abs(h),Math.abs(P))&&Math.abs(y-C)<=r.Ib*Math.max(1,Math.abs(y),Math.abs(C))&&Math.abs(g-T)<=r.Ib*Math.max(1,Math.abs(g),Math.abs(T))&&Math.abs(m-R)<=r.Ib*Math.max(1,Math.abs(m),Math.abs(R))&&Math.abs(v-L)<=r.Ib*Math.max(1,Math.abs(v),Math.abs(L))}var tt=h,te=U},10953:function(t,e,n){"use strict";n.d(e,{Fv:function(){return g},JG:function(){return d},Jp:function(){return u},Su:function(){return f},U_:function(){return c},Ue:function(){return l},al:function(){return p},dC:function(){return y},t8:function(){return h},yY:function(){return s}});var r=n(19537),i=n(61899),a=n(35136),o=n(72647);function l(){var t=new r.WT(4);return r.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function s(t,e,n){var r=Math.sin(n*=.5);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function u(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],l=n[0],s=n[1],u=n[2],c=n[3];return t[0]=r*c+o*l+i*u-a*s,t[1]=i*c+o*s+a*l-r*u,t[2]=a*c+o*u+r*s-i*l,t[3]=o*c-r*l-i*s-a*u,t}function c(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,l=o?1/o:0;return t[0]=-n*l,t[1]=-r*l,t[2]=-i*l,t[3]=a*l,t}function f(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.yy,o=Math.PI/360;e*=o,i*=o;var l=Math.sin(e),s=Math.cos(e),u=Math.sin(n*=o),c=Math.cos(n),f=Math.sin(i),p=Math.cos(i);switch(a){case"xyz":t[0]=l*c*p+s*u*f,t[1]=s*u*p-l*c*f,t[2]=s*c*f+l*u*p,t[3]=s*c*p-l*u*f;break;case"xzy":t[0]=l*c*p-s*u*f,t[1]=s*u*p-l*c*f,t[2]=s*c*f+l*u*p,t[3]=s*c*p+l*u*f;break;case"yxz":t[0]=l*c*p+s*u*f,t[1]=s*u*p-l*c*f,t[2]=s*c*f-l*u*p,t[3]=s*c*p+l*u*f;break;case"yzx":t[0]=l*c*p+s*u*f,t[1]=s*u*p+l*c*f,t[2]=s*c*f-l*u*p,t[3]=s*c*p-l*u*f;break;case"zxy":t[0]=l*c*p-s*u*f,t[1]=s*u*p+l*c*f,t[2]=s*c*f+l*u*p,t[3]=s*c*p-l*u*f;break;case"zyx":t[0]=l*c*p-s*u*f,t[1]=s*u*p+l*c*f,t[2]=s*c*f-l*u*p,t[3]=s*c*p+l*u*f;break;default:throw Error("Unknown angle order "+a)}return t}o.d9;var p=o.al,d=o.JG,h=o.t8;o.IH;var y=u;o.bA,o.AK,o.t7,o.kE,o.we;var g=o.Fv;o.I6,a.Ue(),a.al(1,0,0),a.al(0,1,0),l(),l(),i.Ue()},75837:function(t,e,n){"use strict";n.d(e,{AK:function(){return s},Fv:function(){return l},I6:function(){return u},JG:function(){return a},Ue:function(){return i},t8:function(){return o}});var r=n(19537);function i(){var t=new r.WT(2);
38return r.WT!=Float32Array&&(t[0]=0,t[1]=0),t}function a(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t,e,n){return t[0]=e,t[1]=n,t}function l(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function s(t,e){return t[0]*e[0]+t[1]*e[1]}function u(t,e){return t[0]===e[0]&&t[1]===e[1]}i()},35136:function(t,e,n){"use strict";n.d(e,{$X:function(){return f},AK:function(){return m},Fp:function(){return h},Fv:function(){return g},IH:function(){return c},JG:function(){return s},Jp:function(){return p},TK:function(){return k},Ue:function(){return i},VC:function(){return w},VV:function(){return d},Zh:function(){return j},al:function(){return l},bA:function(){return y},d9:function(){return a},fF:function(){return x},fS:function(){return M},kC:function(){return v},kE:function(){return o},kK:function(){return O},lu:function(){return _},t7:function(){return b},t8:function(){return u}});var r=n(19537);function i(){var t=new r.WT(3);return r.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function a(t){var e=new r.WT(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function l(t,e,n){var i=new r.WT(3);return i[0]=t,i[1]=e,i[2]=n,i}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function f(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function h(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function m(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function v(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],l=n[1],s=n[2];return t[0]=i*s-a*l,t[1]=a*o-r*s,t[2]=r*l-i*o,t}function b(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function x(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function O(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function w(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],l=e[0],s=e[1],u=e[2],c=i*u-a*s,f=a*l-r*u,p=r*s-i*l;return c+=c,f+=f,p+=p,t[0]=l+o*c+i*p-a*f,t[1]=s+o*f+a*c-r*p,t[2]=u+o*p+r*f-i*c,t}function M(t,e){var n=t[0],i=t[1],a=t[2],o=e[0],l=e[1],s=e[2];return Math.abs(n-o)<=r.Ib*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-l)<=r.Ib*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(a-s)<=r.Ib*Math.max(1,Math.abs(a),Math.abs(s))}var _=f,k=function(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)},j=o;i()},72647:function(t,e,n){"use strict";n.d(e,{AK:function(){return h},Fv:function(){return d},I6:function(){return m},IH:function(){return u},JG:function(){return l},Ue:function(){return i},al:function(){return o},bA:function(){return c},d9:function(){return a},fF:function(){return g},kE:function(){return f},t7:function(){return y},t8:function(){return s},we:function(){return p}});var r=n(19537);function i(){var t=new r.WT(4);return r.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function a(t){var e=new r.WT(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(t,e,n,i){var a=new r.WT(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=i,a}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function c(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function f(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.sqrt(e*e+n*n+r*r+i*i)}function p(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function d(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t}function h(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function y(t,e,n,r){var i=e[0],a=e[1],o=e[2],l=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=l+r*(n[3]-l),t}function g(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t}function m(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}i()},62087:function(t){t.exports=function(t){return!!t&&"string"!=typeof t&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},42956:function(t){"use strict";var e=t.exports;t.exports.isNumber=function(t){return"number"==typeof t}
38,t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.min(e,t[n]);return e},t.exports.findMax=function(t){if(0===t.length)return-1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.max(e,t[n]);return e},t.exports.findMinMulti=function(t){for(var n=e.findMin(t[0]),r=1;r<t.length;r++)n=Math.min(n,e.findMin(t[r]));return n},t.exports.findMaxMulti=function(t){for(var n=e.findMax(t[0]),r=1;r<t.length;r++)n=Math.max(n,e.findMax(t[r]));return n},t.exports.inside=function(t,e,n){return t<=n&&n<=e}},53345:function(t,e,n){"use strict";var r=Math.log(2),i=t.exports,a=n(42956);function o(t){return 1-Math.abs(t)}t.exports.getUnifiedMinMax=function(t,e){return i.getUnifiedMinMaxMulti([t],e)},t.exports.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,r=!1,i=a.isNumber(e.width)?e.width:2,o=a.isNumber(e.size)?e.size:50,l=a.isNumber(e.min)?e.min:(n=!0,a.findMinMulti(t)),s=a.isNumber(e.max)?e.max:(r=!0,a.findMaxMulti(t)),u=(s-l)/(o-1);return n&&(l-=2*i*u),r&&(s+=2*i*u),{min:l,max:s}},t.exports.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=a.isNumber(e.size)?e.size:50,r=a.isNumber(e.width)?e.width:2,l=i.getUnifiedMinMax(t,{size:n,width:r,min:e.min,max:e.max}),s=l.min,u=l.max-s,c=u/(n-1);if(0===u)return[{x:s,y:1}];for(var f=[],p=0;p<n;p++)f.push({x:s+p*c,y:0});var d=function(t,e){for(var n={},r=0,i=-e;i<=e;i++)r+=t(i/e),n[i]=r;return n}(o,r),h=d[r],y=d[r-1]-d[r-2],g=0;t.forEach(function(t){var e=Math.floor((t-s)/c);if(!(e+r<0)&&!(e-r>=f.length)){var n=Math.max(e-r,0),i=Math.min(e+r,f.length-1),o=n-(e-r),l=e+r-i,u=h/(h-(d[-r-1+o]||0)-(d[-r-1+l]||0));o>0&&(g+=u*(o-1)*y);var p=Math.max(0,e-r+1);a.inside(0,f.length-1,p)&&(f[p].y+=1*u*y),a.inside(0,f.length-1,e+1)&&(f[e+1].y-=2*u*y),a.inside(0,f.length-1,i+1)&&(f[i+1].y+=1*u*y)}});var m=g,v=0,b=0;return f.forEach(function(t){v+=t.y,m+=v,t.y=m,b+=m}),b>0&&f.forEach(function(t){t.y/=b}),f},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach(function(t){e+=t.x*t.y}),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i<t.length&&(r=i,!((n+=t[i].y)>=e));i++);return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach(function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)}),Math.pow(2,e=-e/r)}}},32858:function(t,e,n){"use strict";var r=n(62087),i=Array.prototype.concat,a=Array.prototype.slice,o=t.exports=function(t){for(var e=[],n=0,o=t.length;n<o;n++){var l=t[n];r(l)?e=i.call(e,a.call(l)):e.push(l)}return e};o.wrap=function(t){return function(){return t(o(arguments))}}},58957:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(45386),i=n(75526),a=n(22843);function o(t,e,n){return e=(0,r.Z)(e),(0,a.Z)(t,(0,i.Z)()?Reflect.construct(e,n||[],(0,r.Z)(t).constructor):e.apply(t,n))}},44426:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(64268);function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=(0,r.Z)(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){s=!0,o=t},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw o}}}}},36108:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(45386);function i(){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!({}).hasOwnProperty.call(t,e)&&null!==(t=(0,r.Z)(t)););return t}(t,e);if(i){var a=Object.getOwnPropertyDescriptor(i,e);return a.get?a.get.call(arguments.length<3?t:n):a.value}}).apply(null,arguments)}function a(t,e,n,a){var o=i((0,r.Z)(1&a?t.prototype:t),e,n);return 2&a&&"function"==typeof o?function(t){return o.apply(n,t)}:o}},52644:function(t,e,n){"use strict";var r=n(83718);e.Z=r},15767:function(t,e,n){"use strict";n.d(e,{CR:function(){return u}
vendor: 2,562 bytes, line 38
38,Q_:function(){return f},XA:function(){return s},ZT:function(){return i},_T:function(){return o},ev:function(){return c},mG:function(){return l},pi:function(){return a}});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function o(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function l(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function l(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,l)}s((r=r.apply(t,e||[])).next())})}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function c(t,e,n){if(n||2==arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function f(t,e,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}"function"==typeof SuppressedError&&SuppressedError}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.