@nocobase/plugin-data-visualization 1.3.50-beta → 1.3.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -176,4 +176,4 @@ Error generating stack: `+o.message+`
176
176
  transform: translate(24px, 0);
177
177
  }
178
178
  }
179
- `,n.classList.add("loading"),n.innerHTML="<div></div><div></div><div></div><div></div>",e.appendChild(r),e.appendChild(n)},myt=function(t){var e=t.loadingTemplate,n=t.theme,r=n===void 0?"light":n,i=K.useRef(null);K.useEffect(function(){!e&&i.current&&yyt(i.current)},[]);var o=function(){return e||K.createElement("div",{ref:i})};return K.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},o())},byt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xyt=function(t){byt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;switch(r){default:return typeof i=="function"?i(r):i||K.createElement("h5",null,"组件出错了,请核查后重试: ",r.message)}},n}return e.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},e.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):K.createElement(K.Fragment,null,this.props.children)},e}(K.Component),iR=typeof global=="object"&&global&&global.Object===Object&&global,wyt=typeof self=="object"&&self&&self.Object===Object&&self,wi=iR||wyt||Function("return this")(),ei=wi.Symbol,oR=Object.prototype,Oyt=oR.hasOwnProperty,_yt=oR.toString,Kd=ei?ei.toStringTag:void 0;function Syt(t){var e=Oyt.call(t,Kd),n=t[Kd];try{t[Kd]=void 0;var r=!0}catch(o){}var i=_yt.call(t);return r&&(e?t[Kd]=n:delete t[Kd]),i}var Eyt=Object.prototype,Myt=Eyt.toString;function Pyt(t){return Myt.call(t)}var Ayt="[object Null]",Cyt="[object Undefined]",aR=ei?ei.toStringTag:void 0;function Ji(t){return t==null?t===void 0?Cyt:Ayt:aR&&aR in Object(t)?Syt(t):Pyt(t)}function lr(t){return t!=null&&typeof t=="object"}var kyt="[object Symbol]";function Zd(t){return typeof t=="symbol"||lr(t)&&Ji(t)==kyt}var Tyt=NaN;function sR(t){return typeof t=="number"?t:Zd(t)?Tyt:+t}function Qg(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Vt=Array.isArray,Lyt=1/0,lR=ei?ei.prototype:void 0,cR=lR?lR.toString:void 0;function Jg(t){if(typeof t=="string")return t;if(Vt(t))return Qg(t,Jg)+"";if(Zd(t))return cR?cR.call(t):"";var e=t+"";return e=="0"&&1/t==-Lyt?"-0":e}function Nyt(t,e){return function(n,r){var i;if(n===void 0&&r===void 0)return e;if(n!==void 0&&(i=n),r!==void 0){if(i===void 0)return r;typeof n=="string"||typeof r=="string"?(n=Jg(n),r=Jg(r)):(n=sR(n),r=sR(r)),i=t(n,r)}return i}}var Iyt=/\s/;function jyt(t){for(var e=t.length;e--&&Iyt.test(t.charAt(e)););return e}var Dyt=/^\s+/;function Fyt(t){return t&&t.slice(0,jyt(t)+1).replace(Dyt,"")}function Hn(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var uR=NaN,$yt=/^[-+]0x[0-9a-f]+$/i,Ryt=/^0b[01]+$/i,Byt=/^0o[0-7]+$/i,zyt=parseInt;function fR(t){if(typeof t=="number")return t;if(Zd(t))return uR;if(Hn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Hn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Fyt(t);var n=Ryt.test(t);return n||Byt.test(t)?zyt(t.slice(2),n?2:8):$yt.test(t)?uR:+t}var dR=1/0,Yyt=17976931348623157e292;function Wyt(t){if(!t)return t===0?t:0;if(t=fR(t),t===dR||t===-dR){var e=t<0?-1:1;return e*Yyt}return t===t?t:0}function hR(t){var e=Wyt(t),n=e%1;return e===e?n?e-n:e:0}function w_(t){return t}var Gyt="[object AsyncFunction]",Hyt="[object Function]",Uyt="[object GeneratorFunction]",Vyt="[object Proxy]";function Vc(t){if(!Hn(t))return!1;var e=Ji(t);return e==Hyt||e==Uyt||e==Gyt||e==Vyt}var O_=wi["__core-js_shared__"],pR=function(){var t=/[^.]+$/.exec(O_&&O_.keys&&O_.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Xyt(t){return!!pR&&pR in t}var qyt=Function.prototype,Kyt=qyt.toString;function Vs(t){if(t!=null){try{return Kyt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Zyt=/[\\^$.*+?()[\]{}|]/g,Qyt=/^\[object .+?Constructor\]$/,Jyt=Function.prototype,tmt=Object.prototype,emt=Jyt.toString,nmt=tmt.hasOwnProperty,rmt=RegExp("^"+emt.call(nmt).replace(Zyt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function imt(t){if(!Hn(t)||Xyt(t))return!1;var e=Vc(t)?rmt:Qyt;return e.test(Vs(t))}function omt(t,e){return t==null?void 0:t[e]}function Xs(t,e){var n=omt(t,e);return imt(n)?n:void 0}var Qd=Xs(wi,"WeakMap"),vR=Qd&&new Qd,gR=Object.create,__=function(){function t(){}return function(e){if(!Hn(e))return{};if(gR)return gR(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function amt(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function S_(){}var smt=4294967295;function Xc(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=smt,this.__views__=[]}Xc.prototype=__(S_.prototype),Xc.prototype.constructor=Xc;function yR(){}var mR=vR?function(t){return vR.get(t)}:yR,bR={},lmt=Object.prototype,cmt=lmt.hasOwnProperty;function ty(t){for(var e=t.name+"",n=bR[e],r=cmt.call(bR,e)?n.length:0;r--;){var i=n[r],o=i.func;if(o==null||o==t)return i.name}return e}function za(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}za.prototype=__(S_.prototype),za.prototype.constructor=za;function E_(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function umt(t){if(t instanceof Xc)return t.clone();var e=new za(t.__wrapped__,t.__chain__);return e.__actions__=E_(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var fmt=Object.prototype,dmt=fmt.hasOwnProperty;function ey(t){if(lr(t)&&!Vt(t)&&!(t instanceof Xc)){if(t instanceof za)return t;if(dmt.call(t,"__wrapped__"))return umt(t)}return new za(t)}ey.prototype=S_.prototype,ey.prototype.constructor=ey;function xR(t){var e=ty(t),n=ey[e];if(typeof n!="function"||!(e in Xc.prototype))return!1;if(t===n)return!0;var r=mR(n);return!!r&&t===r[0]}var hmt=800,pmt=16,vmt=Date.now;function gmt(t){var e=0,n=0;return function(){var r=vmt(),i=pmt-(r-n);if(n=r,i>0){if(++e>=hmt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function ymt(t){return function(){return t}}var ny=function(){try{var t=Xs(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),mmt=ny?function(t,e){return ny(t,"toString",{configurable:!0,enumerable:!1,value:ymt(e),writable:!0})}:w_,wR=gmt(mmt);function bmt(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function xmt(t,e,n,r){for(var i=t.length,o=n+-1;++o<i;)if(e(t[o],o,t))return o;return-1}function wmt(t){return t!==t}function Omt(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function OR(t,e,n){return e===e?Omt(t,e,n):xmt(t,wmt,n)}function _mt(t,e){var n=t==null?0:t.length;return!!n&&OR(t,e,0)>-1}var Smt=9007199254740991,Emt=/^(?:0|[1-9]\d*)$/;function ry(t,e){var n=typeof t;return e=e==null?Smt:e,!!e&&(n=="number"||n!="symbol"&&Emt.test(t))&&t>-1&&t%1==0&&t<e}function iy(t,e,n){e=="__proto__"&&ny?ny(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Jd(t,e){return t===e||t!==t&&e!==e}var Mmt=Object.prototype,Pmt=Mmt.hasOwnProperty;function oy(t,e,n){var r=t[e];(!(Pmt.call(t,e)&&Jd(r,n))||n===void 0&&!(e in t))&&iy(t,e,n)}function qs(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=void 0;l===void 0&&(l=t[s]),i?iy(n,s,l):oy(n,s,l)}return n}var _R=Math.max;function SR(t,e,n){return e=_R(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=_R(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),amt(t,this,s)}}function Amt(t,e){return wR(SR(t,e,w_),t+"")}var Cmt=9007199254740991;function M_(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Cmt}function Ya(t){return t!=null&&M_(t.length)&&!Vc(t)}function kmt(t,e,n){if(!Hn(n))return!1;var r=typeof e;return(r=="number"?Ya(n)&&ry(e,n.length):r=="string"&&e in n)?Jd(n[e],t):!1}function ER(t){return Amt(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,a&&kmt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}var Tmt=Object.prototype;function ay(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Tmt;return t===n}function Lmt(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Nmt="[object Arguments]";function MR(t){return lr(t)&&Ji(t)==Nmt}var PR=Object.prototype,Imt=PR.hasOwnProperty,jmt=PR.propertyIsEnumerable,th=MR(function(){return arguments}())?MR:function(t){return lr(t)&&Imt.call(t,"callee")&&!jmt.call(t,"callee")};function Dmt(){return!1}var AR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,CR=AR&&typeof module=="object"&&module&&!module.nodeType&&module,Fmt=CR&&CR.exports===AR,kR=Fmt?wi.Buffer:void 0,$mt=kR?kR.isBuffer:void 0,eh=$mt||Dmt,Rmt="[object Arguments]",Bmt="[object Array]",zmt="[object Boolean]",Ymt="[object Date]",Wmt="[object Error]",Gmt="[object Function]",Hmt="[object Map]",Umt="[object Number]",Vmt="[object Object]",Xmt="[object RegExp]",qmt="[object Set]",Kmt="[object String]",Zmt="[object WeakMap]",Qmt="[object ArrayBuffer]",Jmt="[object DataView]",t1t="[object Float32Array]",e1t="[object Float64Array]",n1t="[object Int8Array]",r1t="[object Int16Array]",i1t="[object Int32Array]",o1t="[object Uint8Array]",a1t="[object Uint8ClampedArray]",s1t="[object Uint16Array]",l1t="[object Uint32Array]",Ee={};Ee[t1t]=Ee[e1t]=Ee[n1t]=Ee[r1t]=Ee[i1t]=Ee[o1t]=Ee[a1t]=Ee[s1t]=Ee[l1t]=!0,Ee[Rmt]=Ee[Bmt]=Ee[Qmt]=Ee[zmt]=Ee[Jmt]=Ee[Ymt]=Ee[Wmt]=Ee[Gmt]=Ee[Hmt]=Ee[Umt]=Ee[Vmt]=Ee[Xmt]=Ee[qmt]=Ee[Kmt]=Ee[Zmt]=!1;function c1t(t){return lr(t)&&M_(t.length)&&!!Ee[Ji(t)]}function P_(t){return function(e){return t(e)}}var TR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,nh=TR&&typeof module=="object"&&module&&!module.nodeType&&module,u1t=nh&&nh.exports===TR,A_=u1t&&iR.process,qc=function(){try{var t=nh&&nh.require&&nh.require("util").types;return t||A_&&A_.binding&&A_.binding("util")}catch(e){}}(),LR=qc&&qc.isTypedArray,C_=LR?P_(LR):c1t,f1t=Object.prototype,d1t=f1t.hasOwnProperty;function NR(t,e){var n=Vt(t),r=!n&&th(t),i=!n&&!r&&eh(t),o=!n&&!r&&!i&&C_(t),a=n||r||i||o,s=a?Lmt(t.length,String):[],l=s.length;for(var c in t)(e||d1t.call(t,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ry(c,l)))&&s.push(c);return s}function IR(t,e){return function(n){return t(e(n))}}var h1t=IR(Object.keys,Object),p1t=Object.prototype,v1t=p1t.hasOwnProperty;function g1t(t){if(!ay(t))return h1t(t);var e=[];for(var n in Object(t))v1t.call(t,n)&&n!="constructor"&&e.push(n);return e}function Ks(t){return Ya(t)?NR(t):g1t(t)}var y1t=Object.prototype,m1t=y1t.hasOwnProperty,jR=ER(function(t,e){if(ay(e)||Ya(e)){qs(e,Ks(e),t);return}for(var n in e)m1t.call(e,n)&&oy(t,n,e[n])});function b1t(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var x1t=Object.prototype,w1t=x1t.hasOwnProperty;function O1t(t){if(!Hn(t))return b1t(t);var e=ay(t),n=[];for(var r in t)r=="constructor"&&(e||!w1t.call(t,r))||n.push(r);return n}function rh(t){return Ya(t)?NR(t,!0):O1t(t)}var _1t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S1t=/^\w*$/;function k_(t,e){if(Vt(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Zd(t)?!0:S1t.test(t)||!_1t.test(t)||e!=null&&t in Object(e)}var ih=Xs(Object,"create");function E1t(){this.__data__=ih?ih(null):{},this.size=0}function M1t(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var P1t="__lodash_hash_undefined__",A1t=Object.prototype,C1t=A1t.hasOwnProperty;function k1t(t){var e=this.__data__;if(ih){var n=e[t];return n===P1t?void 0:n}return C1t.call(e,t)?e[t]:void 0}var T1t=Object.prototype,L1t=T1t.hasOwnProperty;function N1t(t){var e=this.__data__;return ih?e[t]!==void 0:L1t.call(e,t)}var I1t="__lodash_hash_undefined__";function j1t(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ih&&e===void 0?I1t:e,this}function Zs(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Zs.prototype.clear=E1t,Zs.prototype.delete=M1t,Zs.prototype.get=k1t,Zs.prototype.has=N1t,Zs.prototype.set=j1t;function D1t(){this.__data__=[],this.size=0}function sy(t,e){for(var n=t.length;n--;)if(Jd(t[n][0],e))return n;return-1}var F1t=Array.prototype,$1t=F1t.splice;function R1t(t){var e=this.__data__,n=sy(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():$1t.call(e,n,1),--this.size,!0}function B1t(t){var e=this.__data__,n=sy(e,t);return n<0?void 0:e[n][1]}function z1t(t){return sy(this.__data__,t)>-1}function Y1t(t,e){var n=this.__data__,r=sy(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Do(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Do.prototype.clear=D1t,Do.prototype.delete=R1t,Do.prototype.get=B1t,Do.prototype.has=z1t,Do.prototype.set=Y1t;var oh=Xs(wi,"Map");function W1t(){this.size=0,this.__data__={hash:new Zs,map:new(oh||Do),string:new Zs}}function G1t(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ly(t,e){var n=t.__data__;return G1t(e)?n[typeof e=="string"?"string":"hash"]:n.map}function H1t(t){var e=ly(this,t).delete(t);return this.size-=e?1:0,e}function U1t(t){return ly(this,t).get(t)}function V1t(t){return ly(this,t).has(t)}function X1t(t,e){var n=ly(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Fo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Fo.prototype.clear=W1t,Fo.prototype.delete=H1t,Fo.prototype.get=U1t,Fo.prototype.has=V1t,Fo.prototype.set=X1t;var q1t="Expected a function";function T_(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(q1t);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(T_.Cache||Fo),n}T_.Cache=Fo;var K1t=500;function Z1t(t){var e=T_(t,function(r){return n.size===K1t&&n.clear(),r}),n=e.cache;return e}var Q1t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J1t=/\\(\\)?/g,tbt=Z1t(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Q1t,function(n,r,i,o){e.push(i?o.replace(J1t,"$1"):r||n)}),e});function L_(t){return t==null?"":Jg(t)}function Kc(t,e){return Vt(t)?t:k_(t,e)?[t]:tbt(L_(t))}var ebt=1/0;function Zc(t){if(typeof t=="string"||Zd(t))return t;var e=t+"";return e=="0"&&1/t==-ebt?"-0":e}function cy(t,e){e=Kc(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Zc(e[n++])];return n&&n==r?t:void 0}function ge(t,e,n){var r=t==null?void 0:cy(t,e);return r===void 0?n:r}function N_(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var DR=ei?ei.isConcatSpreadable:void 0;function nbt(t){return Vt(t)||th(t)||!!(DR&&t&&t[DR])}function rbt(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=nbt),i||(i=[]);++o<a;){var s=t[o];n(s)?N_(i,s):i[i.length]=s}return i}function ibt(t){var e=t==null?0:t.length;return e?rbt(t):[]}function I_(t){return wR(SR(t,void 0,ibt),t+"")}var j_=IR(Object.getPrototypeOf,Object),obt="[object Object]",abt=Function.prototype,sbt=Object.prototype,FR=abt.toString,lbt=sbt.hasOwnProperty,cbt=FR.call(Object);function D_(t){if(!lr(t)||Ji(t)!=obt)return!1;var e=j_(t);if(e===null)return!0;var n=lbt.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&FR.call(n)==cbt}function ubt(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}var fbt=wi.isFinite,dbt=Math.min;function hbt(t){var e=Math[t];return function(n,r){if(n=fR(n),r=r==null?0:dbt(hR(r),292),r&&fbt(n)){var i=(L_(n)+"e").split("e"),o=e(i[0]+"e"+(+i[1]+r));return i=(L_(o)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return e(n)}}var pbt=hbt("ceil");function vbt(){this.__data__=new Do,this.size=0}function gbt(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function ybt(t){return this.__data__.get(t)}function mbt(t){return this.__data__.has(t)}var bbt=200;function xbt(t,e){var n=this.__data__;if(n instanceof Do){var r=n.__data__;if(!oh||r.length<bbt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Fo(r)}return n.set(t,e),this.size=n.size,this}function Oi(t){var e=this.__data__=new Do(t);this.size=e.size}Oi.prototype.clear=vbt,Oi.prototype.delete=gbt,Oi.prototype.get=ybt,Oi.prototype.has=mbt,Oi.prototype.set=xbt;function wbt(t,e){return t&&qs(e,Ks(e),t)}function Obt(t,e){return t&&qs(e,rh(e),t)}var $R=typeof ct=="object"&&ct&&!ct.nodeType&&ct,RR=$R&&typeof module=="object"&&module&&!module.nodeType&&module,_bt=RR&&RR.exports===$R,BR=_bt?wi.Buffer:void 0,zR=BR?BR.allocUnsafe:void 0;function YR(t,e){if(e)return t.slice();var n=t.length,r=zR?zR(n):new t.constructor(n);return t.copy(r),r}function Sbt(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function WR(){return[]}var Ebt=Object.prototype,Mbt=Ebt.propertyIsEnumerable,GR=Object.getOwnPropertySymbols,F_=GR?function(t){return t==null?[]:(t=Object(t),Sbt(GR(t),function(e){return Mbt.call(t,e)}))}:WR;function Pbt(t,e){return qs(t,F_(t),e)}var Abt=Object.getOwnPropertySymbols,HR=Abt?function(t){for(var e=[];t;)N_(e,F_(t)),t=j_(t);return e}:WR;function Cbt(t,e){return qs(t,HR(t),e)}function UR(t,e,n){var r=e(t);return Vt(t)?r:N_(r,n(t))}function $_(t){return UR(t,Ks,F_)}function VR(t){return UR(t,rh,HR)}var R_=Xs(wi,"DataView"),B_=Xs(wi,"Promise"),Qc=Xs(wi,"Set"),XR="[object Map]",kbt="[object Object]",qR="[object Promise]",KR="[object Set]",ZR="[object WeakMap]",QR="[object DataView]",Tbt=Vs(R_),Lbt=Vs(oh),Nbt=Vs(B_),Ibt=Vs(Qc),jbt=Vs(Qd),_i=Ji;(R_&&_i(new R_(new ArrayBuffer(1)))!=QR||oh&&_i(new oh)!=XR||B_&&_i(B_.resolve())!=qR||Qc&&_i(new Qc)!=KR||Qd&&_i(new Qd)!=ZR)&&(_i=function(t){var e=Ji(t),n=e==kbt?t.constructor:void 0,r=n?Vs(n):"";if(r)switch(r){case Tbt:return QR;case Lbt:return XR;case Nbt:return qR;case Ibt:return KR;case jbt:return ZR}return e});var Dbt=Object.prototype,Fbt=Dbt.hasOwnProperty;function $bt(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Fbt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var uy=wi.Uint8Array;function z_(t){var e=new t.constructor(t.byteLength);return new uy(e).set(new uy(t)),e}function Rbt(t,e){var n=e?z_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Bbt=/\w*$/;function zbt(t){var e=new t.constructor(t.source,Bbt.exec(t));return e.lastIndex=t.lastIndex,e}var JR=ei?ei.prototype:void 0,t9=JR?JR.valueOf:void 0;function Ybt(t){return t9?Object(t9.call(t)):{}}function e9(t,e){var n=e?z_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Wbt="[object Boolean]",Gbt="[object Date]",Hbt="[object Map]",Ubt="[object Number]",Vbt="[object RegExp]",Xbt="[object Set]",qbt="[object String]",Kbt="[object Symbol]",Zbt="[object ArrayBuffer]",Qbt="[object DataView]",Jbt="[object Float32Array]",txt="[object Float64Array]",ext="[object Int8Array]",nxt="[object Int16Array]",rxt="[object Int32Array]",ixt="[object Uint8Array]",oxt="[object Uint8ClampedArray]",axt="[object Uint16Array]",sxt="[object Uint32Array]";function lxt(t,e,n){var r=t.constructor;switch(e){case Zbt:return z_(t);case Wbt:case Gbt:return new r(+t);case Qbt:return Rbt(t,n);case Jbt:case txt:case ext:case nxt:case rxt:case ixt:case oxt:case axt:case sxt:return e9(t,n);case Hbt:return new r;case Ubt:case qbt:return new r(t);case Vbt:return zbt(t);case Xbt:return new r;case Kbt:return Ybt(t)}}function n9(t){return typeof t.constructor=="function"&&!ay(t)?__(j_(t)):{}}var cxt="[object Map]";function uxt(t){return lr(t)&&_i(t)==cxt}var r9=qc&&qc.isMap,fxt=r9?P_(r9):uxt,dxt="[object Set]";function hxt(t){return lr(t)&&_i(t)==dxt}var i9=qc&&qc.isSet,pxt=i9?P_(i9):hxt,vxt=1,gxt=2,yxt=4,o9="[object Arguments]",mxt="[object Array]",bxt="[object Boolean]",xxt="[object Date]",wxt="[object Error]",a9="[object Function]",Oxt="[object GeneratorFunction]",_xt="[object Map]",Sxt="[object Number]",s9="[object Object]",Ext="[object RegExp]",Mxt="[object Set]",Pxt="[object String]",Axt="[object Symbol]",Cxt="[object WeakMap]",kxt="[object ArrayBuffer]",Txt="[object DataView]",Lxt="[object Float32Array]",Nxt="[object Float64Array]",Ixt="[object Int8Array]",jxt="[object Int16Array]",Dxt="[object Int32Array]",Fxt="[object Uint8Array]",$xt="[object Uint8ClampedArray]",Rxt="[object Uint16Array]",Bxt="[object Uint32Array]",ye={};ye[o9]=ye[mxt]=ye[kxt]=ye[Txt]=ye[bxt]=ye[xxt]=ye[Lxt]=ye[Nxt]=ye[Ixt]=ye[jxt]=ye[Dxt]=ye[_xt]=ye[Sxt]=ye[s9]=ye[Ext]=ye[Mxt]=ye[Pxt]=ye[Axt]=ye[Fxt]=ye[$xt]=ye[Rxt]=ye[Bxt]=!0,ye[wxt]=ye[a9]=ye[Cxt]=!1;function ah(t,e,n,r,i,o){var a,s=e&vxt,l=e&gxt,c=e&yxt;if(n&&(a=i?n(t,r,i,o):n(t)),a!==void 0)return a;if(!Hn(t))return t;var u=Vt(t);if(u){if(a=$bt(t),!s)return E_(t,a)}else{var f=_i(t),d=f==a9||f==Oxt;if(eh(t))return YR(t,s);if(f==s9||f==o9||d&&!i){if(a=l||d?{}:n9(t),!s)return l?Cbt(t,Obt(a,t)):Pbt(t,wbt(a,t))}else{if(!ye[f])return i?t:{};a=lxt(t,f,s)}}o||(o=new Oi);var h=o.get(t);if(h)return h;o.set(t,a),pxt(t)?t.forEach(function(g){a.add(ah(g,e,n,g,t,o))}):fxt(t)&&t.forEach(function(g,y){a.set(y,ah(g,e,n,y,t,o))});var p=c?l?VR:$_:l?rh:Ks,v=u?void 0:p(t);return bmt(v||t,function(g,y){v&&(y=g,g=t[y]),oy(a,y,ah(g,e,n,y,t,o))}),a}var zxt=1,Yxt=4;function l9(t){return ah(t,zxt|Yxt)}var Wxt="__lodash_hash_undefined__";function Gxt(t){return this.__data__.set(t,Wxt),this}function Hxt(t){return this.__data__.has(t)}function sh(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Fo;++e<n;)this.add(t[e])}sh.prototype.add=sh.prototype.push=Gxt,sh.prototype.has=Hxt;function Uxt(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function c9(t,e){return t.has(e)}var Vxt=1,Xxt=2;function u9(t,e,n,r,i,o){var a=n&Vxt,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(t),u=o.get(e);if(c&&u)return c==e&&u==t;var f=-1,d=!0,h=n&Xxt?new sh:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var p=t[f],v=e[f];if(r)var g=a?r(v,p,f,e,t,o):r(p,v,f,t,e,o);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!Uxt(e,function(y,m){if(!c9(h,m)&&(p===y||i(p,y,n,r,o)))return h.push(m)})){d=!1;break}}else if(!(p===v||i(p,v,n,r,o))){d=!1;break}}return o.delete(t),o.delete(e),d}function qxt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function Y_(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Kxt=1,Zxt=2,Qxt="[object Boolean]",Jxt="[object Date]",t2t="[object Error]",e2t="[object Map]",n2t="[object Number]",r2t="[object RegExp]",i2t="[object Set]",o2t="[object String]",a2t="[object Symbol]",s2t="[object ArrayBuffer]",l2t="[object DataView]",f9=ei?ei.prototype:void 0,W_=f9?f9.valueOf:void 0;function c2t(t,e,n,r,i,o,a){switch(n){case l2t:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case s2t:return!(t.byteLength!=e.byteLength||!o(new uy(t),new uy(e)));case Qxt:case Jxt:case n2t:return Jd(+t,+e);case t2t:return t.name==e.name&&t.message==e.message;case r2t:case o2t:return t==e+"";case e2t:var s=qxt;case i2t:var l=r&Kxt;if(s||(s=Y_),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;r|=Zxt,a.set(t,e);var u=u9(s(t),s(e),r,i,o,a);return a.delete(t),u;case a2t:if(W_)return W_.call(t)==W_.call(e)}return!1}var u2t=1,f2t=Object.prototype,d2t=f2t.hasOwnProperty;function h2t(t,e,n,r,i,o){var a=n&u2t,s=$_(t),l=s.length,c=$_(e),u=c.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in e:d2t.call(e,d)))return!1}var h=o.get(t),p=o.get(e);if(h&&p)return h==e&&p==t;var v=!0;o.set(t,e),o.set(e,t);for(var g=a;++f<l;){d=s[f];var y=t[d],m=e[d];if(r)var b=a?r(m,y,d,e,t,o):r(y,m,d,t,e,o);if(!(b===void 0?y===m||i(y,m,n,r,o):b)){v=!1;break}g||(g=d=="constructor")}if(v&&!g){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof w=="function"&&w instanceof w)&&(v=!1)}return o.delete(t),o.delete(e),v}var p2t=1,d9="[object Arguments]",h9="[object Array]",fy="[object Object]",v2t=Object.prototype,p9=v2t.hasOwnProperty;function g2t(t,e,n,r,i,o){var a=Vt(t),s=Vt(e),l=a?h9:_i(t),c=s?h9:_i(e);l=l==d9?fy:l,c=c==d9?fy:c;var u=l==fy,f=c==fy,d=l==c;if(d&&eh(t)){if(!eh(e))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new Oi),a||C_(t)?u9(t,e,n,r,i,o):c2t(t,e,l,n,r,i,o);if(!(n&p2t)){var h=u&&p9.call(t,"__wrapped__"),p=f&&p9.call(e,"__wrapped__");if(h||p){var v=h?t.value():t,g=p?e.value():e;return o||(o=new Oi),i(v,g,n,r,o)}}return d?(o||(o=new Oi),h2t(t,e,n,r,i,o)):!1}function dy(t,e,n,r,i){return t===e?!0:t==null||e==null||!lr(t)&&!lr(e)?t!==t&&e!==e:g2t(t,e,n,r,dy,i)}var y2t=1,m2t=2;function b2t(t,e,n,r){var i=n.length,o=i;if(t==null)return!o;for(t=Object(t);i--;){var a=n[i];if(a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){a=n[i];var s=a[0],l=t[s],c=a[1];if(a[2]){if(l===void 0&&!(s in t))return!1}else{var u=new Oi,f;if(!(f===void 0?dy(c,l,y2t|m2t,r,u):f))return!1}}return!0}function v9(t){return t===t&&!Hn(t)}function x2t(t){for(var e=Ks(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,v9(i)]}return e}function g9(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function w2t(t){var e=x2t(t);return e.length==1&&e[0][2]?g9(e[0][0],e[0][1]):function(n){return n===t||b2t(n,t,e)}}function O2t(t,e){return t!=null&&e in Object(t)}function _2t(t,e,n){e=Kc(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=Zc(e[r]);if(!(o=t!=null&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=t==null?0:t.length,!!i&&M_(i)&&ry(a,i)&&(Vt(t)||th(t)))}function y9(t,e){return t!=null&&_2t(t,e,O2t)}var S2t=1,E2t=2;function M2t(t,e){return k_(t)&&v9(e)?g9(Zc(t),e):function(n){var r=ge(n,t);return r===void 0&&r===e?y9(n,t):dy(e,r,S2t|E2t)}}function P2t(t){return function(e){return e==null?void 0:e[t]}}function A2t(t){return function(e){return cy(e,t)}}function C2t(t){return k_(t)?P2t(Zc(t)):A2t(t)}function G_(t){return typeof t=="function"?t:t==null?w_:typeof t=="object"?Vt(t)?M2t(t[0],t[1]):w2t(t):C2t(t)}function k2t(t,e,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function T2t(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[++i];if(n(o[l],l,o)===!1)break}return e}}var m9=T2t();function L2t(t,e){return t&&m9(t,e,Ks)}function N2t(t,e){return function(n,r){if(n==null)return n;if(!Ya(n))return t(n,r);for(var i=n.length,o=-1,a=Object(n);++o<i&&r(a[o],o,a)!==!1;);return n}}var b9=N2t(L2t);function I2t(t,e,n,r){return b9(t,function(i,o,a){e(r,i,n(i),a)}),r}function j2t(t,e){return function(n,r){var i=Vt(n)?k2t:I2t,o=e?e():{};return i(n,t,G_(r),o)}}function H_(t,e,n){(n!==void 0&&!Jd(t[e],n)||n===void 0&&!(e in t))&&iy(t,e,n)}function D2t(t){return lr(t)&&Ya(t)}function U_(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function F2t(t){return qs(t,rh(t))}function $2t(t,e,n,r,i,o,a){var s=U_(t,n),l=U_(e,n),c=a.get(l);if(c){H_(t,n,c);return}var u=o?o(s,l,n+"",t,e,a):void 0,f=u===void 0;if(f){var d=Vt(l),h=!d&&eh(l),p=!d&&!h&&C_(l);u=l,d||h||p?Vt(s)?u=s:D2t(s)?u=E_(s):h?(f=!1,u=YR(l,!0)):p?(f=!1,u=e9(l,!0)):u=[]:D_(l)||th(l)?(u=s,th(s)?u=F2t(s):(!Hn(s)||Vc(s))&&(u=n9(l))):f=!1}f&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),H_(t,n,u)}function x9(t,e,n,r,i){t!==e&&m9(e,function(o,a){if(i||(i=new Oi),Hn(o))$2t(t,e,a,n,x9,r,i);else{var s=r?r(U_(t,a),o,a+"",t,e,i):void 0;s===void 0&&(s=o),H_(t,a,s)}},rh)}var R2t=ER(function(t,e,n,r){x9(t,e,n,r)});function B2t(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var z2t=Nyt(function(t,e){return t/e},1);function Y2t(t,e){var n=-1,r=Ya(t)?Array(t.length):[];return b9(t,function(i,o,a){r[++n]=e(i,o,a)}),r}function Jc(t,e){var n=Vt(t)?Qg:Y2t;return n(t,G_(e))}var W2t="Expected a function",G2t=8,H2t=32,U2t=128,V2t=256;function X2t(t){return I_(function(e){for(var n=e.length,r=n,i=za.prototype.thru;r--;){var o=e[r];if(typeof o!="function")throw new TypeError(W2t);if(i&&!a&&ty(o)=="wrapper")var a=new za([],!0)}for(r=a?r:n;++r<n;){o=e[r];var s=ty(o),l=s=="wrapper"?mR(o):void 0;l&&xR(l[0])&&l[1]==(U2t|G2t|H2t|V2t)&&!l[4].length&&l[9]==1?a=a[ty(l[0])].apply(a,l[3]):a=o.length==1&&xR(o)?a[s]():a.thru(o)}return function(){var c=arguments,u=c[0];if(a&&c.length==1&&Vt(u))return a.plant(u).value();for(var f=0,d=n?e[f].apply(this,c):u;++f<n;)d=e[f].call(this,d);return d}})}var zt=X2t(),q2t=Object.prototype,K2t=q2t.hasOwnProperty,w9=j2t(function(t,e,n){K2t.call(t,n)?t[n].push(e):iy(t,n,[e])}),Z2t="[object String]";function O9(t){return typeof t=="string"||!Vt(t)&&lr(t)&&Ji(t)==Z2t}function Q2t(t,e){return Qg(e,function(n){return t[n]})}function J2t(t){return t==null?[]:Q2t(t,Ks(t))}var twt=Math.max;function ewt(t,e,n,r){t=Ya(t)?t:J2t(t),n=n&&!r?hR(n):0;var i=t.length;return n<0&&(n=twt(i+n,0)),O9(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&OR(t,e,n)>-1}function nwt(t,e){return e.length<2?t:cy(t,ubt(e,0,-1))}var rwt="[object Boolean]";function V_(t){return t===!0||t===!1||lr(t)&&Ji(t)==rwt}function _9(t,e){return dy(t,e)}var iwt="[object Number]";function tu(t){return typeof t=="number"||lr(t)&&Ji(t)==iwt}function owt(t){return t==null}function awt(t){return t===void 0}function swt(t,e){return e=Kc(e,t),t=nwt(t,e),t==null||delete t[Zc(B2t(e))]}function lwt(t){return D_(t)?void 0:t}var cwt=1,uwt=2,fwt=4,X_=I_(function(t,e){var n={};if(t==null)return n;var r=!1;e=Qg(e,function(o){return o=Kc(o,t),r||(r=o.length>1),o}),qs(t,VR(t),n),r&&(n=ah(n,cwt|uwt|fwt,lwt));for(var i=e.length;i--;)swt(n,e[i]);return n});function S9(t,e,n,r){if(!Hn(t))return t;e=Kc(e,t);for(var i=-1,o=e.length,a=o-1,s=t;s!=null&&++i<o;){var l=Zc(e[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=a){var u=s[l];c=void 0,c===void 0&&(c=Hn(u)?u:ry(e[i+1])?[]:{})}oy(s,l,c),s=s[l]}return t}function dwt(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=cy(t,a);n(s,a)&&S9(o,Kc(a,t),s)}return o}function hwt(t,e){return dwt(t,e,function(n,r){return y9(t,r)})}var E9=I_(function(t,e){return t==null?{}:hwt(t,e)});function pt(t,e,n){return t==null?t:S9(t,e,n)}var pwt=1/0,vwt=Qc&&1/Y_(new Qc([,-0]))[1]==pwt?function(t){return new Qc(t)}:yR,gwt=200;function ywt(t,e,n){var r=-1,i=_mt,o=t.length,a=!0,s=[],l=s;if(o>=gwt){var c=e?null:vwt(t);if(c)return Y_(c);a=!1,i=c9,l=new sh}else l=e?[]:s;t:for(;++r<o;){var u=t[r],f=e?e(u):u;if(u=u!==0?u:0,a&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue t;e&&l.push(f),s.push(u)}else i(l,f,n)||(l!==s&&l.push(f),s.push(u))}return s}function q_(t,e){return t&&t.length?ywt(t,G_(e)):[]}var mwt=function(t){var e=/react|\.jsx|children:\[\(|return\s+[A-Za-z0-9].createElement\((?!['"][g|circle|ellipse|image|rect|line|polyline|polygon|text|path|html|mesh]['"])([^\)])*,/i;return e.test(t)},K_=function(){return K_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},K_.apply(this,arguments)},M9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function bwt(t,e){var n=K.useRef(),r=K.useRef(),i=K.useRef(null),o=e.onReady,a=e.onEvent,s=function(u,f){var d;u===void 0&&(u="image/png");var h=(d=i.current)===null||d===void 0?void 0:d.getElementsByTagName("canvas")[0];return h==null?void 0:h.toDataURL(u,f)},l=function(u,f,d){u===void 0&&(u="download"),f===void 0&&(f="image/png");var h=u;u.indexOf(".")===-1&&(h="".concat(u,".").concat(f.split("/")[1]));var p=s(f,d),v=document.createElement("a");return v.href=p,v.download=h,document.body.appendChild(v),v.click(),document.body.removeChild(v),v=null,h},c=function(u,f){f===void 0&&(f=!1);var d=Object.keys(u),h=f;d.forEach(function(p){var v=u[p];p==="tooltip"&&(h=!0),Vc(v)&&mwt("".concat(v))?u[p]=function(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];return gyt(v.apply(void 0,g),h)}:Vt(v)?v.forEach(function(g){c(g,h)}):Hn(v)?c(v,h):h=f})};return K.useEffect(function(){if(n.current&&!_9(r.current,e)){var u=!1;if(r.current){var f=r.current;f.data;var d=M9(f,["data"]);e.data;var h=M9(e,["data"]);u=_9(d,h)}r.current=l9(e),u?n.current.changeData(ge(e,"data")):(c(e),n.current.update(e),n.current.render())}},[e]),K.useEffect(function(){if(!i.current)return function(){return null};r.current||(r.current=l9(e)),c(e);var u=new t(i.current,K_({},e));u.toDataURL=s,u.downloadImage=l,u.render(),n.current=u,o&&o(u);var f=function(d){a&&a(u,d)};return u.on("*",f),function(){n.current&&(n.current.destroy(),n.current.off("*",f),n.current=void 0)}},[]),{chart:n,container:i}}var P9=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},xwt=function(t,e){if(!P9(t))return t;for(var n=[],r=0;r<t.length;r++){var i=t[r];e(i,r)&&n.push(i)}return n};const wwt=function(t){return typeof t=="function"};var Owt=function(t){return t==null},_wt={}.toString,Z_=function(t,e){return _wt.call(t)==="[object "+e+"]"};const eu=function(t){return Array.isArray?Array.isArray(t):Z_(t,"Array")},Swt=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function Q_(t,e){if(t){var n;if(eu(t))for(var r=0,i=t.length;r<i&&(n=e(t[r],r),n!==!1);r++);else if(Swt(t)){for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),n===!1))break}}}var Ewt=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Q_(t,function(n,r){wwt(t)&&r==="prototype"||e.push(r)}),e},Mwt=function(t){return typeof t=="object"&&t!==null},hy=function(t){if(!Mwt(t)||!Z_(t,"Object"))return!1;if(Object.getPrototypeOf(t)===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},Pwt=function(t,e,n){if(!eu(t)&&!hy(t))return t;var r=n;return Q_(t,function(i,o){r=e(r,i,o)}),r};const J_=function(t){return Z_(t,"String")};function A9(t,e){for(var n in e)e.hasOwnProperty(n)&&n!=="constructor"&&e[n]!==void 0&&(t[n]=e[n])}function Awt(t,e,n,r){return e&&A9(t,e),n&&A9(t,n),t}var Cwt=5;function kwt(t,e){if(Object.hasOwn)return Object.hasOwn(t,e);if(t==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}function C9(t,e,n,r){n=n||0,r=r||Cwt;for(var i in e)if(kwt(e,i)){var o=e[i];o!==null&&hy(o)?(hy(t[i])||(t[i]={}),n<r?C9(t[i],o,n+1,r):t[i]=e[i]):eu(o)?(t[i]=[],t[i]=t[i].concat(o)):o!==void 0&&(t[i]=o)}}var py=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)C9(t,e[r]);return t};const to=function(t,e,n){for(var r=0,i=J_(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return t===void 0||r<i.length?n:t};var Twt=Object.prototype.hasOwnProperty;const k9=function(t,e){if(t===null||!hy(t))return{};var n={};return Q_(e,function(r){Twt.call(t,r)&&(n[r]=t[r])}),n};function Lwt(t){return Owt(t)?0:P9(t)?t.length:Object.keys(t).length}const Nwt={field:"value",size:[1,1],round:!1,padding:0,sort:(t,e)=>e.value-t.value,as:["x","y"],ignoreParentValue:!0},Iwt="nodeIndex",lh="childNodeCount",jwt="nodeAncestor",tS="Invalid field: it must be a string!";function Dwt(t,e){const{field:n,fields:r}=t;if(J_(n))return n;if(eu(n))return console.warn(tS),n[0];if(console.warn(`${tS} will try to get fields instead.`),J_(r))return r;if(eu(r)&&r.length)return r[0];throw new TypeError(tS)}function Fwt(t){const e=[];if(t&&t.each){let n,r;t.each(i=>{var o,a;i.parent!==n?(n=i.parent,r=0):r+=1;const s=xwt((((o=i.ancestors)===null||o===void 0?void 0:o.call(i))||[]).map(l=>e.find(c=>c.name===l.name)||l),({depth:l})=>l>0&&l<i.depth);i[jwt]=s,i[lh]=((a=i.children)===null||a===void 0?void 0:a.length)||0,i[Iwt]=r,e.push(i)})}else t&&t.eachNode&&t.eachNode(n=>{e.push(n)});return e}function $wt(t,e){e=Awt({},Nwt,e);const n=e.as;if(!eu(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=Dwt(e)}catch(l){console.warn(l)}const o=(l=>Pnt().size(e.size).round(e.round).padding(e.padding)(Wl(l).sum(c=>Lwt(c.children)?e.ignoreParentValue?0:c[r]-Pwt(c.children,(u,f)=>u+f[r],0):c[r]).sort(e.sort)))(t),a=n[0],s=n[1];return o.each(l=>{var c,u;l[a]=[l.x0,l.x1,l.x1,l.x0],l[s]=[l.y1,l.y1,l.y0,l.y0],l.name=l.name||((c=l.data)===null||c===void 0?void 0:c.name)||((u=l.data)===null||u===void 0?void 0:u.label),l.data.name=l.name,["x0","x1","y0","y1"].forEach(f=>{n.indexOf(f)===-1&&delete l[f]})}),Fwt(o)}var Rwt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const nu="sunburst",eS="markType",T9="path",vy="ancestor-node";function Bwt(t){const{data:e,encode:n}=t,{color:r,value:i}=n,a=$wt(e,{field:i,type:"hierarchy.partition",as:["x","y"]}),s=[];return a.forEach(l=>{var c,u,f,d;if(l.depth===0)return null;let h=l.data.name;const p=[h];let v=Object.assign({},l);for(;v.depth>1;)h=`${(c=v.parent.data)===null||c===void 0?void 0:c.name} / ${h}`,p.unshift((u=v.parent.data)===null||u===void 0?void 0:u.name),v=v.parent;const g=Object.assign(Object.assign(Object.assign({},k9(l.data,[i])),{[T9]:h,[vy]:v.data.name}),l);r&&r!==vy&&(g[r]=l.data[r]||((d=(f=l.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(g)}),s.map(l=>Object.assign(Object.assign({},l),{x:l.x.slice(0,2),y:[l.y[2],l.y[0]],fillOpacity:Math.pow(.85,l.depth)}))}const L9={id:nu,encode:{x:"x",y:"y",key:T9,color:vy,value:"value"},axis:{x:!1,y:!1},style:{[eS]:nu,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[lh]:lh,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},N9=t=>{const{encode:e,data:n=[],legend:r}=t,i=Rwt(t,["encode","data","legend"]),o=Object.assign(Object.assign({},i.coordinate),{innerRadius:Math.max(to(i,["coordinate","innerRadius"],.2),1e-5)}),a=Object.assign(Object.assign({},L9.encode),e),{value:s}=a,l=Bwt({encode:a,data:n});return[py({},L9,Object.assign(Object.assign({type:"rect",data:l,encode:a,tooltip:{title:"path",items:[c=>({name:s,value:c[s]})]}},i),{coordinate:o}))]};N9.props={};var zwt=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(f){a(f)}}function l(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(t,e||[])).next())})};const Ywt=t=>t.querySelectorAll(".element").filter(e=>to(e,["style",eS])===nu);function Wwt(t){return gt(t).select(`.${jf}`).node()}const Gwt={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function Hwt(t={}){const{breadCrumb:e={},fixedColor:n=!0}=t,r=py({},Gwt,e);return i=>{const{update:o,setState:a,container:s,view:l,options:c}=i,u=Wwt(s),f=c.marks.find(({id:m})=>m===nu),{state:d}=f,h=new sn;u.appendChild(h);const p=(m,b)=>zwt(this,void 0,void 0,function*(){if(h.removeChildren(),m){const x=new jr({style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});h.appendChild(x);let w="";const O=m==null?void 0:m.split(" / ");let _=r.style.y,S=h.getBBox().width;const E=u.getBBox().width,M=O.map((P,k)=>{const A=new jr({style:Object.assign(Object.assign({x:S,text:" / "},r.style),{y:_})});h.appendChild(A),S+=A.getBBox().width,w=`${w}${P} / `;const C=new jr({name:w.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:P,x:S,depth:k+1},r.style),{y:_})});return h.appendChild(C),S+=C.getBBox().width,S>E&&(_=h.getBBox().height,S=0,A.attr({x:S,y:_}),S+=A.getBBox().width,C.attr({x:S,y:_}),S+=C.getBBox().width),C});[x,...M].forEach((P,k)=>{if(k===M.length)return;const A=Object.assign({},P.attributes);P.attr("cursor","pointer"),P.addEventListener("mouseenter",()=>{P.attr(r.active)}),P.addEventListener("mouseleave",()=>{P.attr(A)}),P.addEventListener("click",()=>{p(P.name,to(P,["style","depth"]))})})}a("drillDown",x=>{const{marks:w}=x,O=w.map(_=>{if(_.id!==nu&&_.type!=="rect")return _;const{data:S}=_,E=Object.fromEntries(["color"].map(P=>[P,{domain:l.scale[P].getOptions().domain}])),M=S.filter(P=>{const k=P.path;return n&&(P[vy]=k.split(" / ")[b]),m?new RegExp(`^${m}.+`).test(k):!0});return py({},_,n?{data:M}:{data:M,scale:E})});return Object.assign(Object.assign({},x),{marks:O})}),yield o()}),v=m=>{const b=m.target;if(to(b,["style",eS])!==nu||to(b,["markType"])!=="rect"||!to(b,["style",lh]))return;const x=to(b,["__data__","key"]),w=to(b,["style","depth"]);b.style.cursor="pointer",p(x,w)};u.addEventListener("click",v);const g=Ewt(Object.assign(Object.assign({},d.active),d.inactive)),y=()=>{Ywt(u).forEach(b=>{const x=to(b,["style",lh]);if(to(b,["style","cursor"])!=="pointer"&&x){b.style.cursor="pointer";const O=k9(b.attributes,g);b.addEventListener("mouseenter",()=>{b.attr(d.active)}),b.addEventListener("mouseleave",()=>{b.attr(py(O,d.inactive))})}})};return u.addEventListener("mousemove",y),()=>{h.remove(),u.removeEventListener("click",v),u.removeEventListener("mousemove",y)}}}U.enableCSSParsing=!1;function Uwt(){return{"interaction.drillDown":Hwt,"mark.sunburst":N9}}var gy=function(){return gy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},gy.apply(this,arguments)},Vwt=T0t(ovt,gy(gy({},DF()),Uwt())),Xt=function(t){var e=qwt(t),n=e.children,r=n===void 0?[]:n,i=X_(e,[].concat(D9,yy.map(function(c){return c.key}))),o=function(c){var u;return(u=tOt.find(function(f){return f.key===c}))===null||u===void 0?void 0:u.callback},a=function(c,u,f){var d=o(u);d?d(c,u,f):c[u]=Wa({},c[u],f)},s=function(c){Object.keys(c).forEach(function(u){var f=yy.find(function(p){return p.key===u});if(f){var d=f.type,h=f.extend_keys;d?r.push(l(Wa({},E9(c,h),{type:d},c[u]))):Vt(c[u])&&c[u].forEach(function(p){r.push(l(p))})}})},l=function(c){return s(c),Object.keys(rS).forEach(function(u){var f=rS[u];if(!awt(c[u]))if(Hn(f)){var d=f.value,h=f.target,p=d(c[u]);a(c,h,p)}else pt(c,f,c[u])}),c};return r.forEach(function(c){var u=Wa({},i,c);l(Wa(c,u))}),s(e),Xwt(e),t},I9=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Xwt=function(t){var e=t.children,n=e===void 0?[]:e,r=Object.keys(rS).concat(yy.map(function(i){return i.key}));return r.forEach(function(i){delete t[i]}),n.forEach(function(i){Object.keys(i).forEach(function(o){r.includes(o)&&delete i[o]})}),Object.keys(t).forEach(function(i){I9(I9([],D9,!0),oS.map(function(o){return o.key}),!0).includes(i)||delete t[i]}),t},qwt=function(t){var e=t.options,n=e.children,r=n===void 0?[]:n;return r.forEach(function(i){Object.keys(i).forEach(function(o){Vt(i[o])&&o!=="data"&&(i[o]=i[o].filter(function(a){return!a[nS]}))})}),e},j9=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Kwt=function(t,e){if(Vt(e))return e},Wa=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return R2t.apply(void 0,j9(j9([],t,!1),[Kwt],!1))},ch=function(){return ch=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ch.apply(this,arguments)},Zwt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},Qwt=["renderer"],D9=["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"],nS="__transform__",Jwt="__skipDelCustomKeys__",Qs=function(t,e){return V_(e)?{type:t,available:e}:ch({type:t},e)},rS={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",sizeField:"encode.size",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",radius:"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 Qs("stackY",t)}},normalize:{target:"transform",value:function(t){return Qs("normalizeY",t)}},percent:{target:"transform",value:function(t){return Qs("normalizeY",t)}},group:{target:"transform",value:function(t){return Qs("dodgeX",t)}},sort:{target:"transform",value:function(t){return Qs("sortX",t)}},symmetry:{target:"transform",value:function(t){return Qs("symmetryY",t)}},diff:{target:"transform",value:function(t){return Qs("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 V_(t)?{connect:t}:t}}},iS=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],yy=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:iS},{key:"point",type:"point",extend_keys:iS},{key:"area",type:"area",extend_keys:iS}],tOt=[{key:"transform",callback:function(t,e,n){var r;t[e]=t[e]||[];var i=n.available,o=i===void 0?!0:i,a=Zwt(n,["available"]);o?t[e].push(ch((r={},r[nS]=!0,r),a)):t[e].splice(t[e].indexOf(function(s){return s.type===n.type}),1)}},{key:"labels",callback:function(t,e,n){var r;if(!n||Vt(n)){t[e]=n||[];return}n.text||(n.text=t.yField),t[e]=t[e]||[],t[e].push(ch((r={},r[nS]=!0,r),n))}}],oS=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],eOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),my=function(){return my=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},my.apply(this,arguments)},nOt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},F9=function(t){eOt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=nOt(n,["style"]);return t.call(this,my({style:my({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},r)},i))||this}return e}(jr),rOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),by=function(){return by=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},by.apply(this,arguments)},iOt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},oOt=function(t){rOt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=iOt(n,["style"]);return t.call(this,by({style:by({fill:"#eee"},r)},i))||this}return e}(af),aOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$9=function(t){aOt(e,t);function e(n,r,i){var o=t.call(this,{style:Wa(i,r)})||this;return o.chart=n,o}return e.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this)},e.prototype.disconnectedCallback=function(){},e.prototype.attributeChangedCallback=function(n){},e.prototype.update=function(n,r){var i;return this.attr(Wa({},this.attributes,n||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},e.prototype.clear=function(){this.removeChildren()},e.prototype.getElementsLayout=function(){var n=this.chart.getContext().canvas,r=n.document.getElementsByClassName("element"),i=[];return r.forEach(function(o){var a=o.getBBox(),s=a.x,l=a.y,c=a.width,u=a.height,f=o.__data__;i.push({bbox:a,x:s,y:l,width:c,height:u,key:f.key,data:f})}),i},e.prototype.bindEvents=function(n,r){},e}(_p),sOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xy=function(){return xy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},xy.apply(this,arguments)},lOt=function(t){sOt(e,t);function e(n,r){return t.call(this,n,r,{type:e.tag})||this}return e.prototype.getConversionTagLayout=function(){var n=this.direction==="vertical",r=this.getElementsLayout(),i=r[0],o=i.x,a=i.y,s=i.height,l=i.width,c=i.data,u=["items",0,"value"],f=ge(c,u),d=n?r[1].y-a-s:r[1].x-o-l,h=[],p=this.attributes,v=p.size,g=v===void 0?40:v,y=p.arrowSize,m=y===void 0?20:y,b=p.spacing,x=b===void 0?4:b;return r.forEach(function(w,O){if(O>0){var _=w.x,S=w.y,E=w.height,M=w.width,P=w.data,k=w.key,A=ge(P,u),C=g/2;if(n){var T=_+M/2,N=S;h.push({points:[[T+C,N-d+x],[T+C,N-m-x],[T,N-x],[T-C,N-m-x],[T-C,N-d+x]],center:[T,N-d/2-x],width:d,value:[f,A],key:k})}else{var T=_,N=S+E/2;h.push({points:[[_-d+x,N-C],[_-m-x,N-C],[T-x,N],[_-m-x,N+C],[_-d+x,N+C]],center:[T-d/2-x,N],width:d,value:[f,A],key:k})}f=A}}),h},e.prototype.render=function(){this.setDirection(),this.drawConversionTag()},e.prototype.setDirection=function(){var n=this.chart.getCoordinate(),r=ge(n,"options.transformations"),i="horizontal";r.forEach(function(o){o.includes("transpose")&&(i="vertical")}),this.direction=i},e.prototype.drawConversionTag=function(){var n=this,r=this.getConversionTagLayout(),i=this.attributes,o=i.style,a=i.text,s=a.style,l=a.formatter;r.forEach(function(c){var u=c.points,f=c.center,d=c.value,h=c.key,p=d[0],v=d[1],g=f[0],y=f[1],m=new oOt({style:xy({points:u,fill:"#eee"},o),id:"polygon-".concat(h)}),b=new F9({style:xy({x:g,y,text:Vc(l)?l(p,v):(v/p*100).toFixed(2)+"%"},s),id:"text-".concat(h)});n.appendChild(m),n.appendChild(b)})},e.prototype.update=function(){var n=this,r=this.getConversionTagLayout();r.forEach(function(i){var o=i.points,a=i.center,s=i.key,l=a[0],c=a[1],u=n.getElementById("polygon-".concat(s)),f=n.getElementById("text-".concat(s));u.setAttribute("points",o),f.setAttribute("x",l),f.setAttribute("y",c)})},e.tag="ConversionTag",e}($9),aS=32,R9=16,B9=48,cOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),uh=function(){return uh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},uh.apply(this,arguments)},uOt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},fOt=function(t){cOt(e,t);function e(n,r){return t.call(this,n,r,{type:e.tag})||this}return e.prototype.render=function(){this.drawText()},e.prototype.getBidirectionalBarAxisTextLayout=function(){var n=this.attributes.layout,r=n==="vertical",i=this.getElementsLayout(),o=r?q_(i,"x"):q_(i,"y"),a=["title"],s=[],l=this.chart.getContext().views,c=ge(l,[0,"layout"]),u=c.width,f=c.height;return o.forEach(function(d){var h=d.x,p=d.y,v=d.height,g=d.width,y=d.data,m=d.key,b=ge(y,a);r?s.push({x:h+g/2,y:f,text:b,key:m}):s.push({x:u,y:p+v/2,text:b,key:m})}),q_(s,"text").length!==s.length&&(s=Object.values(w9(s,"text")).map(function(d){var h,p=d.reduce(function(v,g){return v+(r?g.x:g.y)},0);return uh(uh({},d[0]),(h={},h[r?"x":"y"]=p/d.length,h))})),s},e.prototype.transformLabelStyle=function(n){var r={},i=/^label[A-Z]/;return Object.keys(n).forEach(function(o){i.test(o)&&(r[o.replace("label","").replace(/^[A-Z]/,function(a){return a.toLowerCase()})]=n[o])}),r},e.prototype.drawText=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout(),i=this.attributes,o=i.layout,a=i.labelFormatter,s=uOt(i,["layout","labelFormatter"]);r.forEach(function(l){var c=l.x,u=l.y,f=l.text,d=l.key,h=new F9({style:uh({x:c,y:u,text:Vc(a)?a(f):f,wordWrap:!0,wordWrapWidth:o==="horizontal"?aS*2:120,maxLines:2,textOverflow:"ellipsis"},n.transformLabelStyle(s)),id:"text-".concat(d)});n.appendChild(h)})},e.prototype.update=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout();r.forEach(function(i){var o=i.x,a=i.y,s=i.key,l=n.getElementById("text-".concat(s));l.setAttribute("x",o),l.setAttribute("y",a)})},e.tag="BidirectionalBarAxisText",e}($9),dOt={ConversionTag:lOt,BidirectionalBarAxisText:fOt},hOt=function(){function t(e,n){this.container=new Map,this.chart=e,this.config=n,this.init()}return t.prototype.init=function(){var e=this;oS.forEach(function(n){var r,i=n.key,o=n.shape,a=e.config[i];if(a){var s=new dOt[o](e.chart,a),l=e.chart.getContext().canvas;l.appendChild(s),e.container.set(i,s)}else(r=e.container.get(i))===null||r===void 0||r.clear()})},t.prototype.update=function(){var e=this;this.container.size&&oS.forEach(function(n){var r=n.key,i=e.container.get(r);i==null||i.update()})},t}(),pOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ru=function(){return ru=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ru.apply(this,arguments)},z9="data-chart-source-type",Rt=function(t){pOt(e,t);function e(n,r){var i=t.call(this)||this;return i.container=typeof n=="string"?document.getElementById(n):n,i.options=i.mergeOption(r),i.createG2(),i.bindEvents(),i}return e.prototype.getChartOptions=function(){return ru(ru({},E9(this.options,Qwt)),{container:this.container})},e.prototype.getSpecOptions=function(){return this.type==="base"||this[Jwt]?ru(ru({},this.options),this.getChartOptions()):this.options},e.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new Vwt(this.getChartOptions()),this.container.setAttribute(z9,"Ant Design Charts")},e.prototype.bindEvents=function(){var n=this;this.chart&&this.chart.on("*",function(r){r!=null&&r.type&&n.emit(r.type,r)})},e.prototype.getBaseOptions=function(){return{type:"view",autoFit:!0}},e.prototype.getDefaultOptions=function(){},e.prototype.render=function(){var n=this;this.type!=="base"&&this.execAdaptor(),this.chart.options(this.getSpecOptions()),this.chart.render().then(function(){n.annotation=new hOt(n.chart,n.options)}),this.bindSizeSensor()},e.prototype.update=function(n){this.options=this.mergeOption(n)},e.prototype.mergeOption=function(n){return Wa({},this.getBaseOptions(),this.getDefaultOptions(),n)},e.prototype.changeData=function(n){this.chart.changeData(n)},e.prototype.changeSize=function(n,r){this.chart.changeSize(n,r)},e.prototype.destroy=function(){this.chart.destroy(),this.off(),this.container.removeAttribute(z9)},e.prototype.execAdaptor=function(){var n=this.getSchemaAdaptor();n({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var n=this,r=this.options.autoFit,i=r===void 0?!0:r;i&&this.chart.on(Ut.AFTER_CHANGE_SIZE,function(){n.annotation.update()})},e}(Mx),vOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gOt=function(t){vOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="base",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"line"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return function(n){return n}},e}(Rt),sS=function(){return sS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},sS.apply(this,arguments)};function yOt(t){var e=t.options,n=e.stack,r=e.tooltip,i=e.xField;if(!n)return t;var o=yy.map(function(s){return s.type}).filter(function(s){return!!s}),a=!1;return o.forEach(function(s){e[s]&&(a=!0,pt(e,[s,"stack"],sS({y1:"y"},typeof n=="object"?n:{})))}),a&&!V_(r)&&!r&&pt(e,"tooltip",{title:i,items:[{channel:"y"}]}),t}function $e(t){return zt(yOt)(t)}function mOt(t){var e=t.options.layout,n=e===void 0?"horizontal":e;return t.options.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}],t}function bOt(t){mOt(t);var e=t.options.layout,n=e===void 0?"horizontal":e;return t.options.children.forEach(function(r){var i;!((i=r==null?void 0:r.coordinate)===null||i===void 0)&&i.transform&&(r.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}])}),t}function xOt(t){return zt($e,Xt)(t)}var wOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),OOt=function(t){wOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="area",n}return 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 xOt},e}(Rt),iu=function(){return iu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},iu.apply(this,arguments)};function Y9(t){var e=function(n){var r=n.options;ge(r,"children.length")>1&&pt(r,"children",[{type:"interval"}]);var i=r.scale,o=r.markBackground,a=r.data,s=r.children,l=r.yField,c=ge(i,"y.domain",[]);if(o&&c.length&&Vt(a)){var u="domainMax",f=a.map(function(d){var h;return iu(iu({originData:iu({},d)},X_(d,l)),(h={},h[u]=c[c.length-1],h))});s.unshift(iu({type:"interval",data:f,yField:u,tooltip:!1,style:{fill:"#eee"},label:!1},o))}return n};return zt(e,$e,Xt)(t)}var _Ot=function(){var t=function(e,n){return function(r){var i=e.fill,o=i===void 0?"#2888FF":i,a=e.stroke,s=e.fillOpacity,l=s===void 0?1:s,c=e.strokeOpacity,u=c===void 0?.2:c,f=e.pitch,d=f===void 0?8:f,h=r[0],p=r[1],v=r[2],g=r[3],y=(p[1]-h[1])/2,m=n.document,b=m.createElement("g",{}),x=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],[v[0]-d,h[1]+y],g],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),w=m.createElement("polygon",{style:{points:[[h[0]-d,h[1]+y],p,v,[v[0]-d,h[1]+y]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),O=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],p,[h[0]+d,h[1]+y]],fill:o,fillOpacity:l-.2}});return b.appendChild(x),b.appendChild(w),b.appendChild(O),b}};$F("shape.interval.bar25D",t)},SOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();_Ot();var EOt=function(t){SOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Bar",n}return 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},elementHighlightByColor:{background:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Y9},e}(Rt),MOt=function(){var t=function(e,n){return function(r){var i=e.fill,o=i===void 0?"#2888FF":i,a=e.stroke,s=e.fillOpacity,l=s===void 0?1:s,c=e.strokeOpacity,u=c===void 0?.2:c,f=e.pitch,d=f===void 0?8:f,h=r[1][0]-r[0][0],p=h/2+r[0][0],v=n.document,g=v.createElement("g",{}),y=v.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]+d],[p,r[3][1]+d],[r[3][0],r[3][1]]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),m=v.createElement("polygon",{style:{points:[[p,r[1][1]+d],[r[1][0],r[1][1]],[r[2][0],r[2][1]],[p,r[2][1]+d]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),b=v.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]-d],[r[1][0],r[1][1]],[p,r[1][1]+d]],fill:o,fillOpacity:l-.2}});return g.appendChild(m),g.appendChild(y),g.appendChild(b),g}};$F("shape.interval.column25D",t)},POt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();MOt();var AOt=function(t){POt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlightByColor:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Y9},e}(Rt);function COt(t){var e=function(r){var i=r.options,o=i.children,a=o===void 0?[]:o,s=i.legend;return s&&a.forEach(function(l){if(!ge(l,"colorField")){var c=ge(l,"yField");pt(l,"colorField",function(){return c})}}),r},n=function(r){var i=r.options,o=i.annotations,a=o===void 0?[]:o,s=i.children,l=s===void 0?[]:s,c=i.scale,u=!1;return ge(c,"y.key")||l.forEach(function(f,d){if(!ge(f,"scale.y.key")){var h="child".concat(d,"Scale");pt(f,"scale.y.key",h);var p=f.annotations,v=p===void 0?[]:p;v.length>0&&(pt(f,"scale.y.independent",!1),v.forEach(function(g){pt(g,"scale.y.key",h)})),!u&&a.length>0&&ge(f,"scale.y.independent")===void 0&&(u=!0,pt(f,"scale.y.independent",!1),a.forEach(function(g){pt(g,"scale.y.key",h)}))}}),r};return zt(e,n,$e,Xt)(t)}var kOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),W9=function(t){kOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="DualAxes",n}return 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 COt},e}(Rt);function TOt(t){var e=function(o){var a=o.options,s=a.xField,l=a.colorField;return l||pt(a,"colorField",s),o},n=function(o){var a=o.options,s=a.compareField,l=a.transform,c=a.isTransposed,u=c===void 0?!0:c,f=a.coordinate;return l||(s?pt(a,"transform",[]):pt(a,"transform",[{type:"symmetryY"}])),!f&&u&&pt(a,"coordinate",{transform:[{type:"transpose"}]}),o},r=function(o){var a=o.options,s=a.compareField,l=a.seriesField,c=a.data,u=a.children,f=a.yField,d=a.isTransposed,h=d===void 0?!0:d;if(s||l){var p=Object.values(w9(c,function(v){return v[s||l]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(v){return-v[f]}}),delete a.compareField,delete a.data}return l&&(pt(a,"type","spaceFlex"),pt(a,"ratio",[1,1]),pt(a,"direction",h?"row":"col"),delete a.seriesField),o},i=function(o){var a=o.options,s=a.tooltip,l=a.xField,c=a.yField;return s||pt(a,"tooltip",{title:!1,items:[function(u){return{name:u[l],value:u[c]}}]}),o};return zt(e,n,r,i,$e,Xt)(t)}var LOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),NOt=function(t){LOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return 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 TOt},e}(Rt);function IOt(t){return zt($e,Xt)(t)}var jOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),DOt=function(t){jOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="line",n}return 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 IOt},e}(Rt),Ga=function(){return Ga=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ga.apply(this,arguments)};function FOt(t){var e=function(n){var r=n.options,i=r.angleField,o=r.data,a=r.label,s=r.tooltip,l=r.colorField;if(Vt(o)){var c=o.reduce(function(f,d){return f+d[i]},0);if(c===0){var u=o.map(function(f){var d;return Ga(Ga({},f),(d={},d[i]=1,d))});pt(r,"data",u),a&&pt(r,"label",Ga(Ga({},a),{formatter:function(){return 0}})),s!==!1&&pt(r,"tooltip",Ga(Ga({},s),{items:[function(f){return{name:f[l],value:0}}]}))}}return n};return zt(e,Xt)(t)}var $Ot=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ROt=function(t){$Ot(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="pie",n}return 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 FOt},e}(Rt);function BOt(t){return zt($e,Xt)(t)}var zOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YOt=function(t){zOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="scatter",n}return 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 BOt},e}(Rt);function WOt(t){var e=function(n){return pt(n,"options.coordinate",{type:ge(n,"options.coordinateType","polar")}),n};return zt(e,Xt)(t)}var GOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),HOt=function(t){GOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radar",n}return 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 WOt},e}(Rt),$o=function(){return $o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},$o.apply(this,arguments)},UOt="__stock-range__",VOt="trend",XOt="up",qOt="down";function KOt(t){var e=function(r){var i=r.options,o=i.data,a=i.yField;return r.options.data=Jc(o,function(s){var l=s&&$o({},s);if(Array.isArray(a)&&l){var c=a[0],u=a[1],f=a[2],d=a[3];l[VOt]=l[c]<=l[u]?XOt:qOt,l[UOt]=[l[c],l[u],l[f],l[d]]}return l}),r},n=function(r){var i=r.options,o=i.xField,a=i.yField,s=i.fallingFill,l=i.risingFill,c=a[0],u=a[1],f=a[2],d=a[3];return r.options.children=Jc(r.options.children,function(h,p){var v=p===0;return $o($o({},h),{tooltip:{title:function(g){return g[o]instanceof Date?g[o].toLocaleString():g[o]},items:[{field:f},{field:d},{field:c},{field:u}]},encode:$o($o({},h.encode||{}),{y:v?[f,d]:[c,u],color:function(g){return Math.sign(g[u]-g[c])}}),style:$o($o({},h.style||{}),{lineWidth:v?1:10})})}),delete i.yField,r.options.legend={color:!1},s&&pt(r,"options.scale.color.range[0]",s),l&&pt(r,"options.scale.color.range[2]",l),r};return zt(e,n,Xt)(t)}var ZOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),QOt=["#26a69a","#999999","#ef5350"],JOt=function(t){ZOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="stock",n}return e.getDefaultOptions=function(){return{type:"view",scale:{color:{domain:[-1,0,1],range:QOt},y:{nice:!0}},children:[{type:"link"},{type:"link"}],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 KOt},e}(Rt);function t_t(t){return zt($e,Xt)(t)}var e_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),n_t=function(t){e_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyLine",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"line",axis:!1}],autoFit:!1,animate:{enter:{type:"growInX",duration:500}},padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return t_t},e}(Rt);function r_t(t){return zt($e,Xt)(t)}var i_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),o_t=function(t){i_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyArea",n}return e.getDefaultOptions=function(){return{type:"view",animate:{enter:{type:"growInX",duration:500}},children:[{type:"area",axis:!1}],autoFit:!1,padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return r_t},e}(Rt);function a_t(t){return zt($e,Xt)(t)}var s_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),l_t=function(t){s_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyColumn",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval",axis:!1}],autoFit:!1,padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a_t},e}(Rt),lS=function(){return lS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},lS.apply(this,arguments)};function c_t(t){var e=function(n){var r=n.options,i=r.percent,o=r.color,a=o===void 0?[]:o;if(!i)return n;var s={scale:{color:{range:a.length?a:[]}},data:[1,i]};return Object.assign(r,lS({},s)),n};return zt(e,$e,Xt)(t)}var u_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),f_t=function(t){u_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyProgress",n}return e.getDefaultOptions=function(){return{type:"view",data:[],autoFit:!1,margin:0,padding:0,tooltip:!1,children:[{interaction:{tooltip:!1},coordinate:{transform:[{type:"transpose"}]},type:"interval",axis:!1,legend:!1,encode:{y:function(n){return n},color:function(n,r){return r}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return c_t},e}(Rt),cS=function(){return cS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},cS.apply(this,arguments)};function d_t(t){var e=function(r){var i=r.options,o=i.radius,a=o===void 0?.8:o;return pt(r,"options.coordinate.innerRadius",a),r},n=function(r){var i=r.options,o=i.percent,a=i.color,s=a===void 0?[]:a;if(!o)return r;var l={scale:{color:{range:s.length?s:[]}},data:[1,o]};return Object.assign(i,cS({},l)),r};return zt(e,n,$e,Xt)(t)}var h_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),p_t=function(t){h_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyRing",n}return e.getDefaultOptions=function(){return{type:"view",data:[],autoFit:!1,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(n){return n},color:function(n,r){return r}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return d_t},e}(Rt);function v_t(t){return zt(Xt)(t)}var g_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),y_t=function(t){g_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="rose",n}return 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 v_t},e}(Rt),uS="__start__",ou="__end__",fS="__waterfall_value__",dS=function(){return dS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},dS.apply(this,arguments)},m_t=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};function b_t(t){var e=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.yField;return a.length&&(a.reduce(function(l,c,u){var f;if(u===0||c.isTotal)c[uS]=0,c[ou]=c[s],c[fS]=c[s];else{var d=(f=l[ou])!==null&&f!==void 0?f:l[s];c[uS]=d,c[ou]=d+c[s],c[fS]=l[ou]}return c},[]),Object.assign(i,{yField:[uS,ou]})),r},n=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.xField,l=i.children,c=i.linkStyle,u=m_t([],a,!0);return u.reduce(function(f,d,h){return h>0&&(d.x1=f[s],d.x2=d[s],d.y1=f[ou]),d},[]),u.shift(),l.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:dS({stroke:"#697474"},c),label:!1,tooltip:!1}),r};return zt(e,n,$e,Xt)(t)}var x_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),w_t=function(t){x_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="waterfall",n}return e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:fS,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return b_t},e}(Rt);function O_t(t){var e=function(n){var r=n.options,i=r.data,o=r.binNumber,a=r.binWidth,s=r.children,l=r.channel,c=l===void 0?"count":l,u=ge(s,"[0].transform[0]",{});return tu(a)?(jR(u,{thresholds:pbt(z2t(i.length,a)),y:c}),n):(tu(o)&&jR(u,{thresholds:o,y:c}),n)};return zt(e,$e,Xt)(t)}var __t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),S_t=function(t){__t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Histogram",n}return e.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return O_t},e}(Rt);function E_t(t){var e=function(r){var i=r.options,o=i.tooltip,a=i.colorField,s=i.sizeField;return o&&!o.field&&(o.field=a||s),r},n=function(r){var i=r.options,o=i.mark,a=i.children;return o&&(a[0].type=o),r};return zt(e,n,$e,Xt)(t)}var M_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),P_t=function(t){M_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="heatmap",n}return 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",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return E_t},e}(Rt);function A_t(t){var e=function(n){var r=n.options.boxType,i=r===void 0?"box":r;return n.options.children[0].type=i,n};return zt(e,$e,Xt)(t)}var C_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),k_t=function(t){C_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="box",n}return 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 A_t},e}(Rt);function T_t(t){var e=function(n){var r=n.options,i=r.data,o=[{type:"custom",callback:function(s){return{links:s}}}];if(Vt(i))i.length>0?pt(r,"data",{value:i,transform:o}):delete r.children;else if(ge(i,"type")==="fetch"&&ge(i,"value")){var a=ge(i,"transform");Vt(a)?pt(i,"transform",a.concat(o)):pt(i,"transform",o)}return n};return zt(e,$e,Xt)(t)}var L_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),N_t=function(t){L_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="sankey",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return T_t},e}(Rt),Si=function(){return Si=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Si.apply(this,arguments)},wy=["#f0efff","#5B8FF9","#3D76DD"];function hS(t,e,n,r){r===void 0&&(r=!0);var i=0,o=!1,a=Jc(t,function(s){var l,c,u=ge(s,[e]);if(owt(u))return[];if(O9(u)){var f=Number(u);return isNaN(f)?[]:(l={},l[n]=s[n],l[e]=f,l)}return Vt(u)?(o=!0,i=Math.max(i,u.length),Jc(r?u.sort(function(d,h){return h-d}):u,function(d,h){var p;return p={},p[n]=s[n],p[e]=d,p.index=h,p})):(i=Math.max(1,i),c={},c[n]=s[n],c[e]=u,c)}).flat();return o?[a.map(function(s){return Si({index:0},s)}),i]:[a,i]}function pS(t,e){return new Array(t).fill("").map(function(n,r){return Vt(e)?e[r%e.length]:e})}function I_t(t){var e=function(i){var o=i.options,a=o.color,s=o.rangeField,l=s===void 0?"ranges":s,c=o.measureField,u=c===void 0?"measures":c,f=o.targetField,d=f===void 0?"targets":f,h=o.xField,p=h===void 0?"title":h,v=o.mapField,g=o.data,y=hS(g,l,p),m=y[0],b=y[1],x=hS(g,u,p,!1),w=x[0],O=x[1],_=hS(g,d,p,!1),S=_[0],E=_[1],M=ge(a,[l],wy[0]),P=ge(a,[u],wy[1]),k=ge(a,[d],wy[2]),A=[pS(b,M),pS(O,P),pS(E,k)].flat();return i.options.children=Jc(i.options.children,function(C,T){var N=[m,w,S][T],j=[l,u,d][T];return Si(Si({},C),{data:N,encode:Si(Si({},C.encode||{}),{x:p,y:j,color:function(L){var I=L.index,F=tu(I)?"".concat(j,"_").concat(I):j;return v?ge(v,[j,I],F):F}}),style:Si(Si({},C.style||{}),{zIndex:function(L){return-L[j]}}),labels:T!==0?Jc(C.labels,function(L){return Si(Si({},L),{text:j})}):void 0})}),i.options.scale.color.range=A,i.options.legend.color.itemMarker=function(C){return v&&ewt(v==null?void 0:v[d],C)||(C==null?void 0:C.replace(/\_\d$/,""))===d?"line":"square"},i},n=function(i){var o=i.options.layout,a=o===void 0?"horizontal":o;return a!=="horizontal"&&pt(i,"options.children[2].shapeField","hyphen"),i},r=function(i){var o=i.options,a=o.range,s=a===void 0?{}:a,l=o.measure,c=l===void 0?{}:l,u=o.target,f=u===void 0?{}:u,d=o.children;return i.options.children=[s,c,f].map(function(h,p){return Wa(d[p],h)}),i};return zt(e,n,r,bOt,Xt)(t)}var j_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),D_t=function(t){j_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="bullet",n}return e.getDefaultOptions=function(){return{type:"view",scale:{color:{range:wy}},legend:{color:{itemMarker:function(n){return n==="target"?"line":"square"}}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval",style:{maxWidth:30},axis:{y:{grid:!0,gridLineWidth:2}}},{type:"interval",style:{maxWidth:20},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 I_t},e}(Rt);function F_t(t){var e=function(n){var r=n.options.data;return n.options.data={value:r},n};return zt(e,$e,Xt)(t)}var $_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),R_t=function(t){$_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Gauge",n}return e.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"gauge"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return F_t},e}(Rt);function B_t(t){var e=function(n){var r=n.options.percent;return tu(r)&&pt(n,"options.data",r),n};return zt(e,$e,Xt)(t)}var z_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Y_t=function(t){z_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Liquid",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"liquid"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return B_t},e}(Rt);function W_t(t){return zt($e,Xt)(t)}var G_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H_t=function(t){G_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="WordCloud",n}return e.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"wordCloud"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return W_t},e}(Rt);function U_t(t){var e=function(n){var r=n.options,i=r.data;return i&&pt(r,"data",{value:i}),n};return zt(e,$e,Xt)(t)}var V_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),X_t=function(t){V_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="treemap",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"treemap"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return U_t},e}(Rt),Js=function(){return Js=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Js.apply(this,arguments)};function q_t(t){var e=function(i){var o=i.options,a=o.startAngle,s=o.maxAngle,l=o.coordinate,c=tu(a)?a/(2*Math.PI)*360:-90,u=tu(s)?(Number(s)+c)/180*Math.PI:Math.PI;return pt(i,["options","coordinate"],Js(Js({},l),{endAngle:u,startAngle:a!=null?a:-Math.PI/2})),i},n=function(i){var o=i.options,a=o.tooltip,s=o.xField,l=o.yField;return a||pt(o,"tooltip",{title:!1,items:[function(c){return{name:c[s],value:c[l]}}]}),i},r=function(i){var o=i.options,a=o.markBackground,s=o.children,l=o.scale,c=o.coordinate,u=o.xField,f=ge(l,"y.domain",[]);return a&&s.unshift(Js({type:"interval",xField:u,yField:f[f.length-1],colorField:a.color,scale:{color:{type:"identity"}},style:{fillOpacity:a.opacity,fill:a.color?void 0:"#e0e4ee"},coordinate:Js(Js({},c),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},a)),i};return zt(e,n,r,$e,Xt)(t)}var K_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Z_t=function(t){K_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radial",n}return 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 q_t},e}(Rt);function Q_t(t){return zt(Xt)(t)}var J_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tSt=function(t){J_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="CirclePacking",n}return e.getDefaultOptions=function(){return{legend:!1,type:"view",children:[{type:"pack"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Q_t},e}(Rt),Oy=function(){return Oy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Oy.apply(this,arguments)};function eSt(t){var e=function(n){var r=n.options,i=r.xField,o=r.yField,a=r.seriesField,s=r.children,l=s==null?void 0:s.map(function(c){return Oy(Oy({},c),{xField:i,yField:o,seriesField:a,colorField:a,data:c.type==="density"?{transform:[{type:"kde",field:o,groupBy:[i,a]}]}:c.data})}).filter(function(c){return r.violinType!=="density"||c.type==="density"});return pt(r,"children",l),r.violinType==="polar"&&pt(r,"coordinate",{type:"polar"}),pt(r,"violinType",void 0),n};return zt(e,$e,Xt)(t)}var nSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rSt=function(t){nSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="violin",n}return 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 eSt},e}(Rt),fh=function(){return fh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},fh.apply(this,arguments)},iSt=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};function oSt(t){var e=function(o){var a=o.options,s=a.yField,l=a.children;return l.forEach(function(c,u){pt(c,"yField",s[u])}),o},n=function(o){var a=o.options,s=a.yField,l=a.children,c=a.data;if(D_(c))return o;var u=Vt(ge(c,[0]))?c:[c,c];return l.forEach(function(f,d){pt(f,"data",iSt([],u[d].map(function(h){return fh({groupKey:s[d]},h)}),!0))}),o},r=function(o){var a=o.options,s=a.yField,l=s[0],c=s[1],u=a.tooltip;return u||pt(a,"tooltip",{items:[{field:l,value:l},{field:c,value:c}]}),o},i=function(o){var a=o.options,s=a.children,l=a.layout,c=a.coordinate.transform,u=a.paddingBottom,f=u===void 0?B9:u,d=a.paddingLeft,h=d===void 0?B9:d,p=a.axis;pt(a,"axisText",fh(fh({},(p==null?void 0:p.x)||{}),{layout:l}));var v=s[0],g=s[1];if(l==="vertical")pt(a,"direction","col"),pt(a,"paddingLeft",h),pt(a,"coordinate.transform",c.filter(function(w){return w.type!=="transpose"})),pt(v,"paddingBottom",R9),pt(g,"paddingTop",R9),pt(g,"axis",{x:{position:"top"}}),pt(g,"scale",{y:{range:[0,1]}});else{pt(a,"paddingBottom",f),pt(v,"scale",{y:{range:[0,1]}});var y=v.paddingRight,m=y===void 0?aS:y,b=g.paddingLeft,x=b===void 0?aS:b;pt(v,"paddingRight",m),pt(v,"axis",{x:{position:"right"}}),pt(g,"paddingLeft",x)}return o};return zt(e,n,r,i,$e,Xt)(t)}var aSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sSt=function(t){aSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="BidirectionalBar",n}return 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 oSt},e}(Rt),tl;(function(t){t.color="key",t.d="path"})(tl||(tl={}));function lSt(t){var e=function(n){var r=n.options,i=r.data,o=r.setsField,a=r.sizeField;return Vt(i)&&(pt(r,"data",{type:"inline",value:i,transform:[{type:"venn",sets:o,size:a,as:[tl.color,tl.d]}]}),pt(r,"colorField",o),pt(r,["children","0","encode","d"],tl.d)),pt(n,"options",X_(r,["sizeField","setsField"])),n};return zt(e,Xt)(t)}var cSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),uSt=function(t){cSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="venn",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"path"}],legend:{color:{itemMarker:"circle"}},encode:{color:tl.color,d:tl.d}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return lSt},e}(Rt);function fSt(t){var e=function(n){return n};return zt(e,Xt)(t)}var dSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),hSt=function(t){dSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Sunburst",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"sunburst"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return fSt},e}(Rt),pSt={Base:gOt,Line:DOt,Column:AOt,Pie:ROt,Area:OOt,Bar:EOt,DualAxes:W9,Funnel:NOt,Scatter:YOt,Radar:HOt,Rose:y_t,Stock:JOt,TinyLine:n_t,TinyArea:o_t,TinyColumn:l_t,TinyProgress:f_t,TinyRing:p_t,Waterfall:w_t,Histogram:S_t,Heatmap:P_t,Box:k_t,Sankey:N_t,Bullet:D_t,Gauge:R_t,Liquid:Y_t,WordCloud:H_t,Treemap:X_t,RadialBar:Z_t,CirclePacking:tSt,Violin:rSt,BidirectionalBar:sSt,Venn:uSt,Mix:W9,Sunburst:hSt},vS=function(){return vS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},vS.apply(this,arguments)},G9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},el=K.forwardRef(function(t,e){var n=t.chartType,r=n===void 0?"Base":n,i=G9(t,["chartType"]),o=i.containerStyle,a=o===void 0?{height:"inherit"}:o,s=i.containerAttributes,l=s===void 0?{}:s,c=i.className,u=i.loading,f=i.loadingTemplate,d=i.errorTemplate,h=G9(i,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate"]),p=bwt(pSt[r],h),v=p.chart,g=p.container;return K.useImperativeHandle(e,function(){return v.current}),K.createElement(xyt,{errorTemplate:d},u&&K.createElement(myt,{loadingTemplate:f}),K.createElement("div",vS({className:c,style:a,ref:g},l)))}),gS=function(){return gS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},gS.apply(this,arguments)},vSt=function(t){return K.createElement(el,gS({},t,{chartType:"Area"}))},yS=function(){return yS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},yS.apply(this,arguments)},gSt=function(t){return K.createElement(el,yS({},t,{chartType:"Bar"}))},mS=function(){return mS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},mS.apply(this,arguments)},ySt=function(t){return K.createElement(el,mS({},t,{chartType:"Column"}))},bS=function(){return bS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},bS.apply(this,arguments)},mSt=function(t){return K.createElement(el,bS({},t,{chartType:"DualAxes"}))},xS=function(){return xS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},xS.apply(this,arguments)},bSt=function(t){return K.createElement(el,xS({},t,{chartType:"Line"}))},wS=function(){return wS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},wS.apply(this,arguments)},xSt=function(t){return K.createElement(el,wS({},t,{chartType:"Pie"}))},OS=function(){return OS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},OS.apply(this,arguments)},wSt=function(t){return K.createElement(el,OS({},t,{chartType:"Scatter"}))};const{booleanField:_y}=QS,OSt={isStack:t=>_y(tt({name:"isStack",title:"isStack"},t)),smooth:t=>_y(tt({name:"smooth",title:"smooth"},t)),isPercent:t=>_y(tt({name:"isPercent",title:"isPercent"},t)),isGroup:t=>_y(tt({name:"isGroup",title:"isGroup"},t)),size:()=>({size:{title:St("Size"),type:"object","x-decorator":"FormItem","x-component":"Space",properties:{type:{"x-component":"Select","x-component-props":{allowClear:!1},default:"ratio",enum:[{label:St("Aspect ratio"),value:"ratio"},{label:St("Fixed height"),value:"fixed"}]},fixed:{type:"number","x-component":"InputNumber","x-component-props":{min:0,addonAfter:"px"},"x-reactions":[{dependencies:[".type"],fulfill:{state:{visible:"{{$deps[0] === 'fixed'}}"}}}]},ratio:{type:"object","x-component":"Space","x-reactions":[{dependencies:[".type"],fulfill:{state:{visible:"{{$deps[0] === 'ratio'}}"}}}],properties:{width:{type:"number","x-component":"InputNumber","x-component-props":{placeholder:St("Width"),min:1}},colon:{type:"void","x-component":"Text","x-component-props":{children:":"}},height:{type:"number","x-component":"InputNumber","x-component-props":{placeholder:St("Height"),min:1}}}}}}})},_St=t=>e=>{var u,f;const{isDarkTheme:n}=z.useGlobalTheme(),{size:r={}}=e;let{height:i}=e;!i&&r.type==="fixed"&&(i=r.fixed);const{service:o}=K.useContext(ii),a=K.useRef(null),[s,l]=K.useState(0);K.useEffect(()=>{var v,g;const d=a.current;if(!d||o.loading===!0||i)return;let h=0;r.type==="ratio"&&((v=r.ratio)!=null&&v.width)&&((g=r.ratio)!=null&&g.height)&&(h=r.ratio.height/r.ratio.width);const p=new ResizeObserver(y=>{y.forEach(m=>{if(h){l(m.contentRect.width*h);return}l(m.contentRect.height)})});return p.observe(d),()=>p.disconnect()},[o.loading,i,r.type,(u=r.ratio)==null?void 0:u.width,(f=r.ratio)==null?void 0:f.height]);const c=i||s;return Y.jsx("div",{ref:a,style:c?{height:`${c}px`}:{},children:Y.jsx(t,tt(tt({theme:n?"classicDark":"classic"},e),c?{height:c}:{}))})};class nl extends jy{constructor({name:n,title:r,Component:i,config:o}){super({name:n,title:r,Component:_St(i),config:["xField","yField","seriesField","size",...o||[]]});ri(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yField:a,seriesField:s}=this.infer(n,{measures:r,dimensions:i});return{general:{xField:o==null?void 0:o.value,yField:a==null?void 0:a.value,seriesField:s==null?void 0:s.value}}});this.addConfigs(OSt)}getProps({data:n,general:r,advanced:i,fieldProps:o}){const a=o[r.xField],s=o[r.yField],l=o[r.seriesField];return tt(dt(tt(tt({legend:{color:{itemLabelText:u=>{const f=l==null?void 0:l.transformer;return f?f(u.label):u.label}}},tooltip:{title:u=>{const{[r.xField]:f}=u;return a!=null&&a.transformer?a.transformer(f):f},items:[u=>{const{[r.xField]:f,[r.yField]:d,[r.seriesField]:h}=u;let p="";return h?p=l.transformer?l.transformer(h):h:p=(s==null?void 0:s.label)||r.yField,{name:p,value:s!=null&&s.transformer?s.transformer(d):d}}]},axis:{x:{labelFormatter:u=>{const f=a==null?void 0:a.transformer;return f?f(u):u}},y:{labelFormatter:u=>{const f=s==null?void 0:s.transformer;return f?f(u):u}}},data:n,animate:{enter:{type:!1},update:{type:!1},exit:{type:!1}},colorField:r.seriesField,stack:r.isStack,percent:r.isPercent?!0:void 0},r.smooth?{shapeField:"smooth"}:{}),r),{seriesField:r.isGroup?r.seriesField:void 0}),i)}getReference(){return{title:this.title,link:`https://ant-design-charts-next.antgroup.com/examples#statistics-${this.name}`}}}class SSt extends nl{constructor(){super({name:"pie",title:"Pie Chart",Component:xSt});ri(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yField:a}=this.infer(n,{measures:r,dimensions:i});return{general:{colorField:o==null?void 0:o.value,angleField:a==null?void 0:a.value}}});this.config=[{property:"field",name:"angleField",title:"angleField",required:!0},{property:"field",name:"colorField",title:"colorField",required:!0},"size"]}getProps({data:n,general:r,advanced:i,fieldProps:o}){const a=r.angleField,s=o[a]||{};if(n.some(f=>f[a]<0)){const f=Math.min(...n.map(h=>h[a]));n=n.map(h=>dt(tt({},h),{[a]:h[a]-f}));const d=s.transformer;s.transformer=h=>{const p=h+f;return d?d(p):p}}const c=super.getProps({data:n,general:r,advanced:i,fieldProps:o}),u={items:[f=>{const{[r.colorField]:d,[a]:h}=f,p=d||(s==null?void 0:s.label)||a,v=s==null?void 0:s.transformer;return{name:p,value:v?v(h):h}}]};return dt(tt({},c),{tooltip:i.tooltip||u})}}class ESt extends nl{constructor(){super({name:"dualAxes",title:"Dual Axes Chart",Component:mSt});ri(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yFields:a}=this.infer(n,{measures:r,dimensions:i});return{general:{xField:o==null?void 0:o.value,yField:(a==null?void 0:a.map(s=>s.value))||[]}}});this.config=["xField",{yField:{title:'{{t("yField")}}',type:"array","x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space",properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Select","x-reactions":"{{ useChartFields }}","x-component-props":{style:{minWidth:"200px"}},required:!0},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add")}}',"x-component":"ArrayItems.Addition"}}}},"size"]}getProps({data:n,general:r,advanced:i,fieldProps:o}){var s;const a=super.getProps({data:n,general:r,advanced:i,fieldProps:o});return dt(tt({},rn.omit(a,["legend","tooltip","yField"])),{children:((s=a.yField)==null?void 0:s.map((l,c)=>{var u;return{type:"line",yField:l,colorField:()=>{const f=o[l];return(f==null?void 0:f.label)||l},axis:{y:{title:((u=o[l])==null?void 0:u.label)||l,position:c===0?"left":"right",labelFormatter:f=>{const d=o[l],h=d==null?void 0:d.transformer;return h?h(f):f}}}}}))||[]})}}const MSt=[new nl({name:"line",title:"Line Chart",Component:bSt,config:["smooth","isStack"]}),new nl({name:"area",title:"Area Chart",Component:vSt,config:["smooth",{property:"isStack",defaultValue:!0},"isPercent"]}),new nl({name:"column",title:"Column Chart",Component:ySt,config:["isGroup","isStack","isPercent"]}),new nl({name:"bar",title:"Bar Chart",Component:gSt,config:["isGroup","isStack","isPercent"]}),new SSt,new ESt,new nl({name:"scatter",title:"Scatter Chart",Component:wSt})],PSt=z.withDynamicSchemaProps(t=>{const{token:e}=z.useToken();return Y.jsx(z.CardItem,dt(tt({name:"charts",bodyStyle:{padding:`${e.paddingLG}px ${e.paddingLG}px 0`}},t),{children:t.children}))},{displayName:"ChartCardItem"});class Sy extends z.Plugin{constructor(){super(...arguments);ri(this,"charts",new OB)}load(){return Nn(this,null,function*(){this.charts.setGroup("Built-in",[...MSt,...Zz]),this.app.addComponents({ChartV2BlockInitializer:Vz,ChartV2BlockDesigner:Gz,ChartV2Block:Wz,ChartCardItem:PSt}),this.app.addScopes({useChartBlockCardProps:Yz}),this.app.schemaInitializerManager.add(ZS),this.app.schemaInitializerManager.add(Uz),this.app.schemaInitializerManager.add(US),this.app.schemaInitializerManager.add(_z),this.app.schemaInitializerManager.add(XS),this.app.schemaInitializerManager.add(Cz);const n=this.app.schemaInitializerManager.get("page:addBlock");n==null||n.add("dataBlocks.chartV2",{title:St("Charts"),Component:"ChartV2BlockInitializer"}),this.app.schemaInitializerManager.addItem("mobile:addBlock","dataBlocks.chartV2",{title:St("Charts"),Component:"ChartV2BlockInitializer"})})}}ct.Chart=jy,ct.ChartConfigContext=Pi,ct.default=Sy,Object.defineProperties(ct,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
179
+ `,n.classList.add("loading"),n.innerHTML="<div></div><div></div><div></div><div></div>",e.appendChild(r),e.appendChild(n)},myt=function(t){var e=t.loadingTemplate,n=t.theme,r=n===void 0?"light":n,i=K.useRef(null);K.useEffect(function(){!e&&i.current&&yyt(i.current)},[]);var o=function(){return e||K.createElement("div",{ref:i})};return K.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},o())},byt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xyt=function(t){byt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;switch(r){default:return typeof i=="function"?i(r):i||K.createElement("h5",null,"组件出错了,请核查后重试: ",r.message)}},n}return e.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},e.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):K.createElement(K.Fragment,null,this.props.children)},e}(K.Component),iR=typeof global=="object"&&global&&global.Object===Object&&global,wyt=typeof self=="object"&&self&&self.Object===Object&&self,wi=iR||wyt||Function("return this")(),ei=wi.Symbol,oR=Object.prototype,Oyt=oR.hasOwnProperty,_yt=oR.toString,Kd=ei?ei.toStringTag:void 0;function Syt(t){var e=Oyt.call(t,Kd),n=t[Kd];try{t[Kd]=void 0;var r=!0}catch(o){}var i=_yt.call(t);return r&&(e?t[Kd]=n:delete t[Kd]),i}var Eyt=Object.prototype,Myt=Eyt.toString;function Pyt(t){return Myt.call(t)}var Ayt="[object Null]",Cyt="[object Undefined]",aR=ei?ei.toStringTag:void 0;function Ji(t){return t==null?t===void 0?Cyt:Ayt:aR&&aR in Object(t)?Syt(t):Pyt(t)}function lr(t){return t!=null&&typeof t=="object"}var kyt="[object Symbol]";function Zd(t){return typeof t=="symbol"||lr(t)&&Ji(t)==kyt}var Tyt=NaN;function sR(t){return typeof t=="number"?t:Zd(t)?Tyt:+t}function Qg(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Vt=Array.isArray,Lyt=1/0,lR=ei?ei.prototype:void 0,cR=lR?lR.toString:void 0;function Jg(t){if(typeof t=="string")return t;if(Vt(t))return Qg(t,Jg)+"";if(Zd(t))return cR?cR.call(t):"";var e=t+"";return e=="0"&&1/t==-Lyt?"-0":e}function Nyt(t,e){return function(n,r){var i;if(n===void 0&&r===void 0)return e;if(n!==void 0&&(i=n),r!==void 0){if(i===void 0)return r;typeof n=="string"||typeof r=="string"?(n=Jg(n),r=Jg(r)):(n=sR(n),r=sR(r)),i=t(n,r)}return i}}var Iyt=/\s/;function jyt(t){for(var e=t.length;e--&&Iyt.test(t.charAt(e)););return e}var Dyt=/^\s+/;function Fyt(t){return t&&t.slice(0,jyt(t)+1).replace(Dyt,"")}function Hn(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var uR=NaN,$yt=/^[-+]0x[0-9a-f]+$/i,Ryt=/^0b[01]+$/i,Byt=/^0o[0-7]+$/i,zyt=parseInt;function fR(t){if(typeof t=="number")return t;if(Zd(t))return uR;if(Hn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Hn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Fyt(t);var n=Ryt.test(t);return n||Byt.test(t)?zyt(t.slice(2),n?2:8):$yt.test(t)?uR:+t}var dR=1/0,Yyt=17976931348623157e292;function Wyt(t){if(!t)return t===0?t:0;if(t=fR(t),t===dR||t===-dR){var e=t<0?-1:1;return e*Yyt}return t===t?t:0}function hR(t){var e=Wyt(t),n=e%1;return e===e?n?e-n:e:0}function w_(t){return t}var Gyt="[object AsyncFunction]",Hyt="[object Function]",Uyt="[object GeneratorFunction]",Vyt="[object Proxy]";function Vc(t){if(!Hn(t))return!1;var e=Ji(t);return e==Hyt||e==Uyt||e==Gyt||e==Vyt}var O_=wi["__core-js_shared__"],pR=function(){var t=/[^.]+$/.exec(O_&&O_.keys&&O_.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Xyt(t){return!!pR&&pR in t}var qyt=Function.prototype,Kyt=qyt.toString;function Vs(t){if(t!=null){try{return Kyt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Zyt=/[\\^$.*+?()[\]{}|]/g,Qyt=/^\[object .+?Constructor\]$/,Jyt=Function.prototype,tmt=Object.prototype,emt=Jyt.toString,nmt=tmt.hasOwnProperty,rmt=RegExp("^"+emt.call(nmt).replace(Zyt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function imt(t){if(!Hn(t)||Xyt(t))return!1;var e=Vc(t)?rmt:Qyt;return e.test(Vs(t))}function omt(t,e){return t==null?void 0:t[e]}function Xs(t,e){var n=omt(t,e);return imt(n)?n:void 0}var Qd=Xs(wi,"WeakMap"),vR=Qd&&new Qd,gR=Object.create,__=function(){function t(){}return function(e){if(!Hn(e))return{};if(gR)return gR(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function amt(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function S_(){}var smt=4294967295;function Xc(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=smt,this.__views__=[]}Xc.prototype=__(S_.prototype),Xc.prototype.constructor=Xc;function yR(){}var mR=vR?function(t){return vR.get(t)}:yR,bR={},lmt=Object.prototype,cmt=lmt.hasOwnProperty;function ty(t){for(var e=t.name+"",n=bR[e],r=cmt.call(bR,e)?n.length:0;r--;){var i=n[r],o=i.func;if(o==null||o==t)return i.name}return e}function za(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}za.prototype=__(S_.prototype),za.prototype.constructor=za;function E_(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function umt(t){if(t instanceof Xc)return t.clone();var e=new za(t.__wrapped__,t.__chain__);return e.__actions__=E_(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var fmt=Object.prototype,dmt=fmt.hasOwnProperty;function ey(t){if(lr(t)&&!Vt(t)&&!(t instanceof Xc)){if(t instanceof za)return t;if(dmt.call(t,"__wrapped__"))return umt(t)}return new za(t)}ey.prototype=S_.prototype,ey.prototype.constructor=ey;function xR(t){var e=ty(t),n=ey[e];if(typeof n!="function"||!(e in Xc.prototype))return!1;if(t===n)return!0;var r=mR(n);return!!r&&t===r[0]}var hmt=800,pmt=16,vmt=Date.now;function gmt(t){var e=0,n=0;return function(){var r=vmt(),i=pmt-(r-n);if(n=r,i>0){if(++e>=hmt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function ymt(t){return function(){return t}}var ny=function(){try{var t=Xs(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),mmt=ny?function(t,e){return ny(t,"toString",{configurable:!0,enumerable:!1,value:ymt(e),writable:!0})}:w_,wR=gmt(mmt);function bmt(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function xmt(t,e,n,r){for(var i=t.length,o=n+-1;++o<i;)if(e(t[o],o,t))return o;return-1}function wmt(t){return t!==t}function Omt(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function OR(t,e,n){return e===e?Omt(t,e,n):xmt(t,wmt,n)}function _mt(t,e){var n=t==null?0:t.length;return!!n&&OR(t,e,0)>-1}var Smt=9007199254740991,Emt=/^(?:0|[1-9]\d*)$/;function ry(t,e){var n=typeof t;return e=e==null?Smt:e,!!e&&(n=="number"||n!="symbol"&&Emt.test(t))&&t>-1&&t%1==0&&t<e}function iy(t,e,n){e=="__proto__"&&ny?ny(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Jd(t,e){return t===e||t!==t&&e!==e}var Mmt=Object.prototype,Pmt=Mmt.hasOwnProperty;function oy(t,e,n){var r=t[e];(!(Pmt.call(t,e)&&Jd(r,n))||n===void 0&&!(e in t))&&iy(t,e,n)}function qs(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=void 0;l===void 0&&(l=t[s]),i?iy(n,s,l):oy(n,s,l)}return n}var _R=Math.max;function SR(t,e,n){return e=_R(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=_R(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),amt(t,this,s)}}function Amt(t,e){return wR(SR(t,e,w_),t+"")}var Cmt=9007199254740991;function M_(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Cmt}function Ya(t){return t!=null&&M_(t.length)&&!Vc(t)}function kmt(t,e,n){if(!Hn(n))return!1;var r=typeof e;return(r=="number"?Ya(n)&&ry(e,n.length):r=="string"&&e in n)?Jd(n[e],t):!1}function ER(t){return Amt(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,a&&kmt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}var Tmt=Object.prototype;function ay(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Tmt;return t===n}function Lmt(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Nmt="[object Arguments]";function MR(t){return lr(t)&&Ji(t)==Nmt}var PR=Object.prototype,Imt=PR.hasOwnProperty,jmt=PR.propertyIsEnumerable,th=MR(function(){return arguments}())?MR:function(t){return lr(t)&&Imt.call(t,"callee")&&!jmt.call(t,"callee")};function Dmt(){return!1}var AR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,CR=AR&&typeof module=="object"&&module&&!module.nodeType&&module,Fmt=CR&&CR.exports===AR,kR=Fmt?wi.Buffer:void 0,$mt=kR?kR.isBuffer:void 0,eh=$mt||Dmt,Rmt="[object Arguments]",Bmt="[object Array]",zmt="[object Boolean]",Ymt="[object Date]",Wmt="[object Error]",Gmt="[object Function]",Hmt="[object Map]",Umt="[object Number]",Vmt="[object Object]",Xmt="[object RegExp]",qmt="[object Set]",Kmt="[object String]",Zmt="[object WeakMap]",Qmt="[object ArrayBuffer]",Jmt="[object DataView]",t1t="[object Float32Array]",e1t="[object Float64Array]",n1t="[object Int8Array]",r1t="[object Int16Array]",i1t="[object Int32Array]",o1t="[object Uint8Array]",a1t="[object Uint8ClampedArray]",s1t="[object Uint16Array]",l1t="[object Uint32Array]",Ee={};Ee[t1t]=Ee[e1t]=Ee[n1t]=Ee[r1t]=Ee[i1t]=Ee[o1t]=Ee[a1t]=Ee[s1t]=Ee[l1t]=!0,Ee[Rmt]=Ee[Bmt]=Ee[Qmt]=Ee[zmt]=Ee[Jmt]=Ee[Ymt]=Ee[Wmt]=Ee[Gmt]=Ee[Hmt]=Ee[Umt]=Ee[Vmt]=Ee[Xmt]=Ee[qmt]=Ee[Kmt]=Ee[Zmt]=!1;function c1t(t){return lr(t)&&M_(t.length)&&!!Ee[Ji(t)]}function P_(t){return function(e){return t(e)}}var TR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,nh=TR&&typeof module=="object"&&module&&!module.nodeType&&module,u1t=nh&&nh.exports===TR,A_=u1t&&iR.process,qc=function(){try{var t=nh&&nh.require&&nh.require("util").types;return t||A_&&A_.binding&&A_.binding("util")}catch(e){}}(),LR=qc&&qc.isTypedArray,C_=LR?P_(LR):c1t,f1t=Object.prototype,d1t=f1t.hasOwnProperty;function NR(t,e){var n=Vt(t),r=!n&&th(t),i=!n&&!r&&eh(t),o=!n&&!r&&!i&&C_(t),a=n||r||i||o,s=a?Lmt(t.length,String):[],l=s.length;for(var c in t)(e||d1t.call(t,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ry(c,l)))&&s.push(c);return s}function IR(t,e){return function(n){return t(e(n))}}var h1t=IR(Object.keys,Object),p1t=Object.prototype,v1t=p1t.hasOwnProperty;function g1t(t){if(!ay(t))return h1t(t);var e=[];for(var n in Object(t))v1t.call(t,n)&&n!="constructor"&&e.push(n);return e}function Ks(t){return Ya(t)?NR(t):g1t(t)}var y1t=Object.prototype,m1t=y1t.hasOwnProperty,jR=ER(function(t,e){if(ay(e)||Ya(e)){qs(e,Ks(e),t);return}for(var n in e)m1t.call(e,n)&&oy(t,n,e[n])});function b1t(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var x1t=Object.prototype,w1t=x1t.hasOwnProperty;function O1t(t){if(!Hn(t))return b1t(t);var e=ay(t),n=[];for(var r in t)r=="constructor"&&(e||!w1t.call(t,r))||n.push(r);return n}function rh(t){return Ya(t)?NR(t,!0):O1t(t)}var _1t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S1t=/^\w*$/;function k_(t,e){if(Vt(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Zd(t)?!0:S1t.test(t)||!_1t.test(t)||e!=null&&t in Object(e)}var ih=Xs(Object,"create");function E1t(){this.__data__=ih?ih(null):{},this.size=0}function M1t(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var P1t="__lodash_hash_undefined__",A1t=Object.prototype,C1t=A1t.hasOwnProperty;function k1t(t){var e=this.__data__;if(ih){var n=e[t];return n===P1t?void 0:n}return C1t.call(e,t)?e[t]:void 0}var T1t=Object.prototype,L1t=T1t.hasOwnProperty;function N1t(t){var e=this.__data__;return ih?e[t]!==void 0:L1t.call(e,t)}var I1t="__lodash_hash_undefined__";function j1t(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ih&&e===void 0?I1t:e,this}function Zs(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Zs.prototype.clear=E1t,Zs.prototype.delete=M1t,Zs.prototype.get=k1t,Zs.prototype.has=N1t,Zs.prototype.set=j1t;function D1t(){this.__data__=[],this.size=0}function sy(t,e){for(var n=t.length;n--;)if(Jd(t[n][0],e))return n;return-1}var F1t=Array.prototype,$1t=F1t.splice;function R1t(t){var e=this.__data__,n=sy(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():$1t.call(e,n,1),--this.size,!0}function B1t(t){var e=this.__data__,n=sy(e,t);return n<0?void 0:e[n][1]}function z1t(t){return sy(this.__data__,t)>-1}function Y1t(t,e){var n=this.__data__,r=sy(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Do(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Do.prototype.clear=D1t,Do.prototype.delete=R1t,Do.prototype.get=B1t,Do.prototype.has=z1t,Do.prototype.set=Y1t;var oh=Xs(wi,"Map");function W1t(){this.size=0,this.__data__={hash:new Zs,map:new(oh||Do),string:new Zs}}function G1t(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ly(t,e){var n=t.__data__;return G1t(e)?n[typeof e=="string"?"string":"hash"]:n.map}function H1t(t){var e=ly(this,t).delete(t);return this.size-=e?1:0,e}function U1t(t){return ly(this,t).get(t)}function V1t(t){return ly(this,t).has(t)}function X1t(t,e){var n=ly(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Fo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Fo.prototype.clear=W1t,Fo.prototype.delete=H1t,Fo.prototype.get=U1t,Fo.prototype.has=V1t,Fo.prototype.set=X1t;var q1t="Expected a function";function T_(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(q1t);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(T_.Cache||Fo),n}T_.Cache=Fo;var K1t=500;function Z1t(t){var e=T_(t,function(r){return n.size===K1t&&n.clear(),r}),n=e.cache;return e}var Q1t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J1t=/\\(\\)?/g,tbt=Z1t(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Q1t,function(n,r,i,o){e.push(i?o.replace(J1t,"$1"):r||n)}),e});function L_(t){return t==null?"":Jg(t)}function Kc(t,e){return Vt(t)?t:k_(t,e)?[t]:tbt(L_(t))}var ebt=1/0;function Zc(t){if(typeof t=="string"||Zd(t))return t;var e=t+"";return e=="0"&&1/t==-ebt?"-0":e}function cy(t,e){e=Kc(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Zc(e[n++])];return n&&n==r?t:void 0}function ge(t,e,n){var r=t==null?void 0:cy(t,e);return r===void 0?n:r}function N_(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var DR=ei?ei.isConcatSpreadable:void 0;function nbt(t){return Vt(t)||th(t)||!!(DR&&t&&t[DR])}function rbt(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=nbt),i||(i=[]);++o<a;){var s=t[o];n(s)?N_(i,s):i[i.length]=s}return i}function ibt(t){var e=t==null?0:t.length;return e?rbt(t):[]}function I_(t){return wR(SR(t,void 0,ibt),t+"")}var j_=IR(Object.getPrototypeOf,Object),obt="[object Object]",abt=Function.prototype,sbt=Object.prototype,FR=abt.toString,lbt=sbt.hasOwnProperty,cbt=FR.call(Object);function D_(t){if(!lr(t)||Ji(t)!=obt)return!1;var e=j_(t);if(e===null)return!0;var n=lbt.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&FR.call(n)==cbt}function ubt(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}var fbt=wi.isFinite,dbt=Math.min;function hbt(t){var e=Math[t];return function(n,r){if(n=fR(n),r=r==null?0:dbt(hR(r),292),r&&fbt(n)){var i=(L_(n)+"e").split("e"),o=e(i[0]+"e"+(+i[1]+r));return i=(L_(o)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return e(n)}}var pbt=hbt("ceil");function vbt(){this.__data__=new Do,this.size=0}function gbt(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function ybt(t){return this.__data__.get(t)}function mbt(t){return this.__data__.has(t)}var bbt=200;function xbt(t,e){var n=this.__data__;if(n instanceof Do){var r=n.__data__;if(!oh||r.length<bbt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Fo(r)}return n.set(t,e),this.size=n.size,this}function Oi(t){var e=this.__data__=new Do(t);this.size=e.size}Oi.prototype.clear=vbt,Oi.prototype.delete=gbt,Oi.prototype.get=ybt,Oi.prototype.has=mbt,Oi.prototype.set=xbt;function wbt(t,e){return t&&qs(e,Ks(e),t)}function Obt(t,e){return t&&qs(e,rh(e),t)}var $R=typeof ct=="object"&&ct&&!ct.nodeType&&ct,RR=$R&&typeof module=="object"&&module&&!module.nodeType&&module,_bt=RR&&RR.exports===$R,BR=_bt?wi.Buffer:void 0,zR=BR?BR.allocUnsafe:void 0;function YR(t,e){if(e)return t.slice();var n=t.length,r=zR?zR(n):new t.constructor(n);return t.copy(r),r}function Sbt(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function WR(){return[]}var Ebt=Object.prototype,Mbt=Ebt.propertyIsEnumerable,GR=Object.getOwnPropertySymbols,F_=GR?function(t){return t==null?[]:(t=Object(t),Sbt(GR(t),function(e){return Mbt.call(t,e)}))}:WR;function Pbt(t,e){return qs(t,F_(t),e)}var Abt=Object.getOwnPropertySymbols,HR=Abt?function(t){for(var e=[];t;)N_(e,F_(t)),t=j_(t);return e}:WR;function Cbt(t,e){return qs(t,HR(t),e)}function UR(t,e,n){var r=e(t);return Vt(t)?r:N_(r,n(t))}function $_(t){return UR(t,Ks,F_)}function VR(t){return UR(t,rh,HR)}var R_=Xs(wi,"DataView"),B_=Xs(wi,"Promise"),Qc=Xs(wi,"Set"),XR="[object Map]",kbt="[object Object]",qR="[object Promise]",KR="[object Set]",ZR="[object WeakMap]",QR="[object DataView]",Tbt=Vs(R_),Lbt=Vs(oh),Nbt=Vs(B_),Ibt=Vs(Qc),jbt=Vs(Qd),_i=Ji;(R_&&_i(new R_(new ArrayBuffer(1)))!=QR||oh&&_i(new oh)!=XR||B_&&_i(B_.resolve())!=qR||Qc&&_i(new Qc)!=KR||Qd&&_i(new Qd)!=ZR)&&(_i=function(t){var e=Ji(t),n=e==kbt?t.constructor:void 0,r=n?Vs(n):"";if(r)switch(r){case Tbt:return QR;case Lbt:return XR;case Nbt:return qR;case Ibt:return KR;case jbt:return ZR}return e});var Dbt=Object.prototype,Fbt=Dbt.hasOwnProperty;function $bt(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Fbt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var uy=wi.Uint8Array;function z_(t){var e=new t.constructor(t.byteLength);return new uy(e).set(new uy(t)),e}function Rbt(t,e){var n=e?z_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Bbt=/\w*$/;function zbt(t){var e=new t.constructor(t.source,Bbt.exec(t));return e.lastIndex=t.lastIndex,e}var JR=ei?ei.prototype:void 0,t9=JR?JR.valueOf:void 0;function Ybt(t){return t9?Object(t9.call(t)):{}}function e9(t,e){var n=e?z_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Wbt="[object Boolean]",Gbt="[object Date]",Hbt="[object Map]",Ubt="[object Number]",Vbt="[object RegExp]",Xbt="[object Set]",qbt="[object String]",Kbt="[object Symbol]",Zbt="[object ArrayBuffer]",Qbt="[object DataView]",Jbt="[object Float32Array]",txt="[object Float64Array]",ext="[object Int8Array]",nxt="[object Int16Array]",rxt="[object Int32Array]",ixt="[object Uint8Array]",oxt="[object Uint8ClampedArray]",axt="[object Uint16Array]",sxt="[object Uint32Array]";function lxt(t,e,n){var r=t.constructor;switch(e){case Zbt:return z_(t);case Wbt:case Gbt:return new r(+t);case Qbt:return Rbt(t,n);case Jbt:case txt:case ext:case nxt:case rxt:case ixt:case oxt:case axt:case sxt:return e9(t,n);case Hbt:return new r;case Ubt:case qbt:return new r(t);case Vbt:return zbt(t);case Xbt:return new r;case Kbt:return Ybt(t)}}function n9(t){return typeof t.constructor=="function"&&!ay(t)?__(j_(t)):{}}var cxt="[object Map]";function uxt(t){return lr(t)&&_i(t)==cxt}var r9=qc&&qc.isMap,fxt=r9?P_(r9):uxt,dxt="[object Set]";function hxt(t){return lr(t)&&_i(t)==dxt}var i9=qc&&qc.isSet,pxt=i9?P_(i9):hxt,vxt=1,gxt=2,yxt=4,o9="[object Arguments]",mxt="[object Array]",bxt="[object Boolean]",xxt="[object Date]",wxt="[object Error]",a9="[object Function]",Oxt="[object GeneratorFunction]",_xt="[object Map]",Sxt="[object Number]",s9="[object Object]",Ext="[object RegExp]",Mxt="[object Set]",Pxt="[object String]",Axt="[object Symbol]",Cxt="[object WeakMap]",kxt="[object ArrayBuffer]",Txt="[object DataView]",Lxt="[object Float32Array]",Nxt="[object Float64Array]",Ixt="[object Int8Array]",jxt="[object Int16Array]",Dxt="[object Int32Array]",Fxt="[object Uint8Array]",$xt="[object Uint8ClampedArray]",Rxt="[object Uint16Array]",Bxt="[object Uint32Array]",ye={};ye[o9]=ye[mxt]=ye[kxt]=ye[Txt]=ye[bxt]=ye[xxt]=ye[Lxt]=ye[Nxt]=ye[Ixt]=ye[jxt]=ye[Dxt]=ye[_xt]=ye[Sxt]=ye[s9]=ye[Ext]=ye[Mxt]=ye[Pxt]=ye[Axt]=ye[Fxt]=ye[$xt]=ye[Rxt]=ye[Bxt]=!0,ye[wxt]=ye[a9]=ye[Cxt]=!1;function ah(t,e,n,r,i,o){var a,s=e&vxt,l=e&gxt,c=e&yxt;if(n&&(a=i?n(t,r,i,o):n(t)),a!==void 0)return a;if(!Hn(t))return t;var u=Vt(t);if(u){if(a=$bt(t),!s)return E_(t,a)}else{var f=_i(t),d=f==a9||f==Oxt;if(eh(t))return YR(t,s);if(f==s9||f==o9||d&&!i){if(a=l||d?{}:n9(t),!s)return l?Cbt(t,Obt(a,t)):Pbt(t,wbt(a,t))}else{if(!ye[f])return i?t:{};a=lxt(t,f,s)}}o||(o=new Oi);var h=o.get(t);if(h)return h;o.set(t,a),pxt(t)?t.forEach(function(g){a.add(ah(g,e,n,g,t,o))}):fxt(t)&&t.forEach(function(g,y){a.set(y,ah(g,e,n,y,t,o))});var p=c?l?VR:$_:l?rh:Ks,v=u?void 0:p(t);return bmt(v||t,function(g,y){v&&(y=g,g=t[y]),oy(a,y,ah(g,e,n,y,t,o))}),a}var zxt=1,Yxt=4;function l9(t){return ah(t,zxt|Yxt)}var Wxt="__lodash_hash_undefined__";function Gxt(t){return this.__data__.set(t,Wxt),this}function Hxt(t){return this.__data__.has(t)}function sh(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Fo;++e<n;)this.add(t[e])}sh.prototype.add=sh.prototype.push=Gxt,sh.prototype.has=Hxt;function Uxt(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function c9(t,e){return t.has(e)}var Vxt=1,Xxt=2;function u9(t,e,n,r,i,o){var a=n&Vxt,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(t),u=o.get(e);if(c&&u)return c==e&&u==t;var f=-1,d=!0,h=n&Xxt?new sh:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var p=t[f],v=e[f];if(r)var g=a?r(v,p,f,e,t,o):r(p,v,f,t,e,o);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!Uxt(e,function(y,m){if(!c9(h,m)&&(p===y||i(p,y,n,r,o)))return h.push(m)})){d=!1;break}}else if(!(p===v||i(p,v,n,r,o))){d=!1;break}}return o.delete(t),o.delete(e),d}function qxt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function Y_(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Kxt=1,Zxt=2,Qxt="[object Boolean]",Jxt="[object Date]",t2t="[object Error]",e2t="[object Map]",n2t="[object Number]",r2t="[object RegExp]",i2t="[object Set]",o2t="[object String]",a2t="[object Symbol]",s2t="[object ArrayBuffer]",l2t="[object DataView]",f9=ei?ei.prototype:void 0,W_=f9?f9.valueOf:void 0;function c2t(t,e,n,r,i,o,a){switch(n){case l2t:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case s2t:return!(t.byteLength!=e.byteLength||!o(new uy(t),new uy(e)));case Qxt:case Jxt:case n2t:return Jd(+t,+e);case t2t:return t.name==e.name&&t.message==e.message;case r2t:case o2t:return t==e+"";case e2t:var s=qxt;case i2t:var l=r&Kxt;if(s||(s=Y_),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;r|=Zxt,a.set(t,e);var u=u9(s(t),s(e),r,i,o,a);return a.delete(t),u;case a2t:if(W_)return W_.call(t)==W_.call(e)}return!1}var u2t=1,f2t=Object.prototype,d2t=f2t.hasOwnProperty;function h2t(t,e,n,r,i,o){var a=n&u2t,s=$_(t),l=s.length,c=$_(e),u=c.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in e:d2t.call(e,d)))return!1}var h=o.get(t),p=o.get(e);if(h&&p)return h==e&&p==t;var v=!0;o.set(t,e),o.set(e,t);for(var g=a;++f<l;){d=s[f];var y=t[d],m=e[d];if(r)var b=a?r(m,y,d,e,t,o):r(y,m,d,t,e,o);if(!(b===void 0?y===m||i(y,m,n,r,o):b)){v=!1;break}g||(g=d=="constructor")}if(v&&!g){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof w=="function"&&w instanceof w)&&(v=!1)}return o.delete(t),o.delete(e),v}var p2t=1,d9="[object Arguments]",h9="[object Array]",fy="[object Object]",v2t=Object.prototype,p9=v2t.hasOwnProperty;function g2t(t,e,n,r,i,o){var a=Vt(t),s=Vt(e),l=a?h9:_i(t),c=s?h9:_i(e);l=l==d9?fy:l,c=c==d9?fy:c;var u=l==fy,f=c==fy,d=l==c;if(d&&eh(t)){if(!eh(e))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new Oi),a||C_(t)?u9(t,e,n,r,i,o):c2t(t,e,l,n,r,i,o);if(!(n&p2t)){var h=u&&p9.call(t,"__wrapped__"),p=f&&p9.call(e,"__wrapped__");if(h||p){var v=h?t.value():t,g=p?e.value():e;return o||(o=new Oi),i(v,g,n,r,o)}}return d?(o||(o=new Oi),h2t(t,e,n,r,i,o)):!1}function dy(t,e,n,r,i){return t===e?!0:t==null||e==null||!lr(t)&&!lr(e)?t!==t&&e!==e:g2t(t,e,n,r,dy,i)}var y2t=1,m2t=2;function b2t(t,e,n,r){var i=n.length,o=i;if(t==null)return!o;for(t=Object(t);i--;){var a=n[i];if(a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){a=n[i];var s=a[0],l=t[s],c=a[1];if(a[2]){if(l===void 0&&!(s in t))return!1}else{var u=new Oi,f;if(!(f===void 0?dy(c,l,y2t|m2t,r,u):f))return!1}}return!0}function v9(t){return t===t&&!Hn(t)}function x2t(t){for(var e=Ks(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,v9(i)]}return e}function g9(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function w2t(t){var e=x2t(t);return e.length==1&&e[0][2]?g9(e[0][0],e[0][1]):function(n){return n===t||b2t(n,t,e)}}function O2t(t,e){return t!=null&&e in Object(t)}function _2t(t,e,n){e=Kc(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=Zc(e[r]);if(!(o=t!=null&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=t==null?0:t.length,!!i&&M_(i)&&ry(a,i)&&(Vt(t)||th(t)))}function y9(t,e){return t!=null&&_2t(t,e,O2t)}var S2t=1,E2t=2;function M2t(t,e){return k_(t)&&v9(e)?g9(Zc(t),e):function(n){var r=ge(n,t);return r===void 0&&r===e?y9(n,t):dy(e,r,S2t|E2t)}}function P2t(t){return function(e){return e==null?void 0:e[t]}}function A2t(t){return function(e){return cy(e,t)}}function C2t(t){return k_(t)?P2t(Zc(t)):A2t(t)}function G_(t){return typeof t=="function"?t:t==null?w_:typeof t=="object"?Vt(t)?M2t(t[0],t[1]):w2t(t):C2t(t)}function k2t(t,e,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function T2t(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[++i];if(n(o[l],l,o)===!1)break}return e}}var m9=T2t();function L2t(t,e){return t&&m9(t,e,Ks)}function N2t(t,e){return function(n,r){if(n==null)return n;if(!Ya(n))return t(n,r);for(var i=n.length,o=-1,a=Object(n);++o<i&&r(a[o],o,a)!==!1;);return n}}var b9=N2t(L2t);function I2t(t,e,n,r){return b9(t,function(i,o,a){e(r,i,n(i),a)}),r}function j2t(t,e){return function(n,r){var i=Vt(n)?k2t:I2t,o=e?e():{};return i(n,t,G_(r),o)}}function H_(t,e,n){(n!==void 0&&!Jd(t[e],n)||n===void 0&&!(e in t))&&iy(t,e,n)}function D2t(t){return lr(t)&&Ya(t)}function U_(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function F2t(t){return qs(t,rh(t))}function $2t(t,e,n,r,i,o,a){var s=U_(t,n),l=U_(e,n),c=a.get(l);if(c){H_(t,n,c);return}var u=o?o(s,l,n+"",t,e,a):void 0,f=u===void 0;if(f){var d=Vt(l),h=!d&&eh(l),p=!d&&!h&&C_(l);u=l,d||h||p?Vt(s)?u=s:D2t(s)?u=E_(s):h?(f=!1,u=YR(l,!0)):p?(f=!1,u=e9(l,!0)):u=[]:D_(l)||th(l)?(u=s,th(s)?u=F2t(s):(!Hn(s)||Vc(s))&&(u=n9(l))):f=!1}f&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),H_(t,n,u)}function x9(t,e,n,r,i){t!==e&&m9(e,function(o,a){if(i||(i=new Oi),Hn(o))$2t(t,e,a,n,x9,r,i);else{var s=r?r(U_(t,a),o,a+"",t,e,i):void 0;s===void 0&&(s=o),H_(t,a,s)}},rh)}var R2t=ER(function(t,e,n,r){x9(t,e,n,r)});function B2t(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var z2t=Nyt(function(t,e){return t/e},1);function Y2t(t,e){var n=-1,r=Ya(t)?Array(t.length):[];return b9(t,function(i,o,a){r[++n]=e(i,o,a)}),r}function Jc(t,e){var n=Vt(t)?Qg:Y2t;return n(t,G_(e))}var W2t="Expected a function",G2t=8,H2t=32,U2t=128,V2t=256;function X2t(t){return I_(function(e){for(var n=e.length,r=n,i=za.prototype.thru;r--;){var o=e[r];if(typeof o!="function")throw new TypeError(W2t);if(i&&!a&&ty(o)=="wrapper")var a=new za([],!0)}for(r=a?r:n;++r<n;){o=e[r];var s=ty(o),l=s=="wrapper"?mR(o):void 0;l&&xR(l[0])&&l[1]==(U2t|G2t|H2t|V2t)&&!l[4].length&&l[9]==1?a=a[ty(l[0])].apply(a,l[3]):a=o.length==1&&xR(o)?a[s]():a.thru(o)}return function(){var c=arguments,u=c[0];if(a&&c.length==1&&Vt(u))return a.plant(u).value();for(var f=0,d=n?e[f].apply(this,c):u;++f<n;)d=e[f].call(this,d);return d}})}var zt=X2t(),q2t=Object.prototype,K2t=q2t.hasOwnProperty,w9=j2t(function(t,e,n){K2t.call(t,n)?t[n].push(e):iy(t,n,[e])}),Z2t="[object String]";function O9(t){return typeof t=="string"||!Vt(t)&&lr(t)&&Ji(t)==Z2t}function Q2t(t,e){return Qg(e,function(n){return t[n]})}function J2t(t){return t==null?[]:Q2t(t,Ks(t))}var twt=Math.max;function ewt(t,e,n,r){t=Ya(t)?t:J2t(t),n=n&&!r?hR(n):0;var i=t.length;return n<0&&(n=twt(i+n,0)),O9(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&OR(t,e,n)>-1}function nwt(t,e){return e.length<2?t:cy(t,ubt(e,0,-1))}var rwt="[object Boolean]";function V_(t){return t===!0||t===!1||lr(t)&&Ji(t)==rwt}function _9(t,e){return dy(t,e)}var iwt="[object Number]";function tu(t){return typeof t=="number"||lr(t)&&Ji(t)==iwt}function owt(t){return t==null}function awt(t){return t===void 0}function swt(t,e){return e=Kc(e,t),t=nwt(t,e),t==null||delete t[Zc(B2t(e))]}function lwt(t){return D_(t)?void 0:t}var cwt=1,uwt=2,fwt=4,X_=I_(function(t,e){var n={};if(t==null)return n;var r=!1;e=Qg(e,function(o){return o=Kc(o,t),r||(r=o.length>1),o}),qs(t,VR(t),n),r&&(n=ah(n,cwt|uwt|fwt,lwt));for(var i=e.length;i--;)swt(n,e[i]);return n});function S9(t,e,n,r){if(!Hn(t))return t;e=Kc(e,t);for(var i=-1,o=e.length,a=o-1,s=t;s!=null&&++i<o;){var l=Zc(e[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=a){var u=s[l];c=void 0,c===void 0&&(c=Hn(u)?u:ry(e[i+1])?[]:{})}oy(s,l,c),s=s[l]}return t}function dwt(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=cy(t,a);n(s,a)&&S9(o,Kc(a,t),s)}return o}function hwt(t,e){return dwt(t,e,function(n,r){return y9(t,r)})}var E9=I_(function(t,e){return t==null?{}:hwt(t,e)});function pt(t,e,n){return t==null?t:S9(t,e,n)}var pwt=1/0,vwt=Qc&&1/Y_(new Qc([,-0]))[1]==pwt?function(t){return new Qc(t)}:yR,gwt=200;function ywt(t,e,n){var r=-1,i=_mt,o=t.length,a=!0,s=[],l=s;if(o>=gwt){var c=e?null:vwt(t);if(c)return Y_(c);a=!1,i=c9,l=new sh}else l=e?[]:s;t:for(;++r<o;){var u=t[r],f=e?e(u):u;if(u=u!==0?u:0,a&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue t;e&&l.push(f),s.push(u)}else i(l,f,n)||(l!==s&&l.push(f),s.push(u))}return s}function q_(t,e){return t&&t.length?ywt(t,G_(e)):[]}var mwt=function(t){var e=/react|\.jsx|children:\[\(|return\s+[A-Za-z0-9].createElement\((?!['"][g|circle|ellipse|image|rect|line|polyline|polygon|text|path|html|mesh]['"])([^\)])*,/i;return e.test(t)},K_=function(){return K_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},K_.apply(this,arguments)},M9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function bwt(t,e){var n=K.useRef(),r=K.useRef(),i=K.useRef(null),o=e.onReady,a=e.onEvent,s=function(u,f){var d;u===void 0&&(u="image/png");var h=(d=i.current)===null||d===void 0?void 0:d.getElementsByTagName("canvas")[0];return h==null?void 0:h.toDataURL(u,f)},l=function(u,f,d){u===void 0&&(u="download"),f===void 0&&(f="image/png");var h=u;u.indexOf(".")===-1&&(h="".concat(u,".").concat(f.split("/")[1]));var p=s(f,d),v=document.createElement("a");return v.href=p,v.download=h,document.body.appendChild(v),v.click(),document.body.removeChild(v),v=null,h},c=function(u,f){f===void 0&&(f=!1);var d=Object.keys(u),h=f;d.forEach(function(p){var v=u[p];p==="tooltip"&&(h=!0),Vc(v)&&mwt("".concat(v))?u[p]=function(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];return gyt(v.apply(void 0,g),h)}:Vt(v)?v.forEach(function(g){c(g,h)}):Hn(v)?c(v,h):h=f})};return K.useEffect(function(){if(n.current&&!_9(r.current,e)){var u=!1;if(r.current){var f=r.current;f.data;var d=M9(f,["data"]);e.data;var h=M9(e,["data"]);u=_9(d,h)}r.current=l9(e),u?n.current.changeData(ge(e,"data")):(c(e),n.current.update(e),n.current.render())}},[e]),K.useEffect(function(){if(!i.current)return function(){return null};r.current||(r.current=l9(e)),c(e);var u=new t(i.current,K_({},e));u.toDataURL=s,u.downloadImage=l,u.render(),n.current=u,o&&o(u);var f=function(d){a&&a(u,d)};return u.on("*",f),function(){n.current&&(n.current.destroy(),n.current.off("*",f),n.current=void 0)}},[]),{chart:n,container:i}}var P9=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},xwt=function(t,e){if(!P9(t))return t;for(var n=[],r=0;r<t.length;r++){var i=t[r];e(i,r)&&n.push(i)}return n};const wwt=function(t){return typeof t=="function"};var Owt=function(t){return t==null},_wt={}.toString,Z_=function(t,e){return _wt.call(t)==="[object "+e+"]"};const eu=function(t){return Array.isArray?Array.isArray(t):Z_(t,"Array")},Swt=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function Q_(t,e){if(t){var n;if(eu(t))for(var r=0,i=t.length;r<i&&(n=e(t[r],r),n!==!1);r++);else if(Swt(t)){for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),n===!1))break}}}var Ewt=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Q_(t,function(n,r){wwt(t)&&r==="prototype"||e.push(r)}),e},Mwt=function(t){return typeof t=="object"&&t!==null},hy=function(t){if(!Mwt(t)||!Z_(t,"Object"))return!1;if(Object.getPrototypeOf(t)===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},Pwt=function(t,e,n){if(!eu(t)&&!hy(t))return t;var r=n;return Q_(t,function(i,o){r=e(r,i,o)}),r};const J_=function(t){return Z_(t,"String")};function A9(t,e){for(var n in e)e.hasOwnProperty(n)&&n!=="constructor"&&e[n]!==void 0&&(t[n]=e[n])}function Awt(t,e,n,r){return e&&A9(t,e),n&&A9(t,n),t}var Cwt=5;function kwt(t,e){if(Object.hasOwn)return Object.hasOwn(t,e);if(t==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}function C9(t,e,n,r){n=n||0,r=r||Cwt;for(var i in e)if(kwt(e,i)){var o=e[i];o!==null&&hy(o)?(hy(t[i])||(t[i]={}),n<r?C9(t[i],o,n+1,r):t[i]=e[i]):eu(o)?(t[i]=[],t[i]=t[i].concat(o)):o!==void 0&&(t[i]=o)}}var py=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)C9(t,e[r]);return t};const to=function(t,e,n){for(var r=0,i=J_(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return t===void 0||r<i.length?n:t};var Twt=Object.prototype.hasOwnProperty;const k9=function(t,e){if(t===null||!hy(t))return{};var n={};return Q_(e,function(r){Twt.call(t,r)&&(n[r]=t[r])}),n};function Lwt(t){return Owt(t)?0:P9(t)?t.length:Object.keys(t).length}const Nwt={field:"value",size:[1,1],round:!1,padding:0,sort:(t,e)=>e.value-t.value,as:["x","y"],ignoreParentValue:!0},Iwt="nodeIndex",lh="childNodeCount",jwt="nodeAncestor",tS="Invalid field: it must be a string!";function Dwt(t,e){const{field:n,fields:r}=t;if(J_(n))return n;if(eu(n))return console.warn(tS),n[0];if(console.warn(`${tS} will try to get fields instead.`),J_(r))return r;if(eu(r)&&r.length)return r[0];throw new TypeError(tS)}function Fwt(t){const e=[];if(t&&t.each){let n,r;t.each(i=>{var o,a;i.parent!==n?(n=i.parent,r=0):r+=1;const s=xwt((((o=i.ancestors)===null||o===void 0?void 0:o.call(i))||[]).map(l=>e.find(c=>c.name===l.name)||l),({depth:l})=>l>0&&l<i.depth);i[jwt]=s,i[lh]=((a=i.children)===null||a===void 0?void 0:a.length)||0,i[Iwt]=r,e.push(i)})}else t&&t.eachNode&&t.eachNode(n=>{e.push(n)});return e}function $wt(t,e){e=Awt({},Nwt,e);const n=e.as;if(!eu(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=Dwt(e)}catch(l){console.warn(l)}const o=(l=>Pnt().size(e.size).round(e.round).padding(e.padding)(Wl(l).sum(c=>Lwt(c.children)?e.ignoreParentValue?0:c[r]-Pwt(c.children,(u,f)=>u+f[r],0):c[r]).sort(e.sort)))(t),a=n[0],s=n[1];return o.each(l=>{var c,u;l[a]=[l.x0,l.x1,l.x1,l.x0],l[s]=[l.y1,l.y1,l.y0,l.y0],l.name=l.name||((c=l.data)===null||c===void 0?void 0:c.name)||((u=l.data)===null||u===void 0?void 0:u.label),l.data.name=l.name,["x0","x1","y0","y1"].forEach(f=>{n.indexOf(f)===-1&&delete l[f]})}),Fwt(o)}var Rwt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const nu="sunburst",eS="markType",T9="path",vy="ancestor-node";function Bwt(t){const{data:e,encode:n}=t,{color:r,value:i}=n,a=$wt(e,{field:i,type:"hierarchy.partition",as:["x","y"]}),s=[];return a.forEach(l=>{var c,u,f,d;if(l.depth===0)return null;let h=l.data.name;const p=[h];let v=Object.assign({},l);for(;v.depth>1;)h=`${(c=v.parent.data)===null||c===void 0?void 0:c.name} / ${h}`,p.unshift((u=v.parent.data)===null||u===void 0?void 0:u.name),v=v.parent;const g=Object.assign(Object.assign(Object.assign({},k9(l.data,[i])),{[T9]:h,[vy]:v.data.name}),l);r&&r!==vy&&(g[r]=l.data[r]||((d=(f=l.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(g)}),s.map(l=>Object.assign(Object.assign({},l),{x:l.x.slice(0,2),y:[l.y[2],l.y[0]],fillOpacity:Math.pow(.85,l.depth)}))}const L9={id:nu,encode:{x:"x",y:"y",key:T9,color:vy,value:"value"},axis:{x:!1,y:!1},style:{[eS]:nu,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[lh]:lh,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},N9=t=>{const{encode:e,data:n=[],legend:r}=t,i=Rwt(t,["encode","data","legend"]),o=Object.assign(Object.assign({},i.coordinate),{innerRadius:Math.max(to(i,["coordinate","innerRadius"],.2),1e-5)}),a=Object.assign(Object.assign({},L9.encode),e),{value:s}=a,l=Bwt({encode:a,data:n});return[py({},L9,Object.assign(Object.assign({type:"rect",data:l,encode:a,tooltip:{title:"path",items:[c=>({name:s,value:c[s]})]}},i),{coordinate:o}))]};N9.props={};var zwt=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(f){a(f)}}function l(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(t,e||[])).next())})};const Ywt=t=>t.querySelectorAll(".element").filter(e=>to(e,["style",eS])===nu);function Wwt(t){return gt(t).select(`.${jf}`).node()}const Gwt={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function Hwt(t={}){const{breadCrumb:e={},fixedColor:n=!0}=t,r=py({},Gwt,e);return i=>{const{update:o,setState:a,container:s,view:l,options:c}=i,u=Wwt(s),f=c.marks.find(({id:m})=>m===nu),{state:d}=f,h=new sn;u.appendChild(h);const p=(m,b)=>zwt(this,void 0,void 0,function*(){if(h.removeChildren(),m){const x=new jr({style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});h.appendChild(x);let w="";const O=m==null?void 0:m.split(" / ");let _=r.style.y,S=h.getBBox().width;const E=u.getBBox().width,M=O.map((P,k)=>{const A=new jr({style:Object.assign(Object.assign({x:S,text:" / "},r.style),{y:_})});h.appendChild(A),S+=A.getBBox().width,w=`${w}${P} / `;const C=new jr({name:w.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:P,x:S,depth:k+1},r.style),{y:_})});return h.appendChild(C),S+=C.getBBox().width,S>E&&(_=h.getBBox().height,S=0,A.attr({x:S,y:_}),S+=A.getBBox().width,C.attr({x:S,y:_}),S+=C.getBBox().width),C});[x,...M].forEach((P,k)=>{if(k===M.length)return;const A=Object.assign({},P.attributes);P.attr("cursor","pointer"),P.addEventListener("mouseenter",()=>{P.attr(r.active)}),P.addEventListener("mouseleave",()=>{P.attr(A)}),P.addEventListener("click",()=>{p(P.name,to(P,["style","depth"]))})})}a("drillDown",x=>{const{marks:w}=x,O=w.map(_=>{if(_.id!==nu&&_.type!=="rect")return _;const{data:S}=_,E=Object.fromEntries(["color"].map(P=>[P,{domain:l.scale[P].getOptions().domain}])),M=S.filter(P=>{const k=P.path;return n&&(P[vy]=k.split(" / ")[b]),m?new RegExp(`^${m}.+`).test(k):!0});return py({},_,n?{data:M}:{data:M,scale:E})});return Object.assign(Object.assign({},x),{marks:O})}),yield o()}),v=m=>{const b=m.target;if(to(b,["style",eS])!==nu||to(b,["markType"])!=="rect"||!to(b,["style",lh]))return;const x=to(b,["__data__","key"]),w=to(b,["style","depth"]);b.style.cursor="pointer",p(x,w)};u.addEventListener("click",v);const g=Ewt(Object.assign(Object.assign({},d.active),d.inactive)),y=()=>{Ywt(u).forEach(b=>{const x=to(b,["style",lh]);if(to(b,["style","cursor"])!=="pointer"&&x){b.style.cursor="pointer";const O=k9(b.attributes,g);b.addEventListener("mouseenter",()=>{b.attr(d.active)}),b.addEventListener("mouseleave",()=>{b.attr(py(O,d.inactive))})}})};return u.addEventListener("mousemove",y),()=>{h.remove(),u.removeEventListener("click",v),u.removeEventListener("mousemove",y)}}}U.enableCSSParsing=!1;function Uwt(){return{"interaction.drillDown":Hwt,"mark.sunburst":N9}}var gy=function(){return gy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},gy.apply(this,arguments)},Vwt=T0t(ovt,gy(gy({},DF()),Uwt())),Xt=function(t){var e=qwt(t),n=e.children,r=n===void 0?[]:n,i=X_(e,[].concat(D9,yy.map(function(c){return c.key}))),o=function(c){var u;return(u=tOt.find(function(f){return f.key===c}))===null||u===void 0?void 0:u.callback},a=function(c,u,f){var d=o(u);d?d(c,u,f):c[u]=Wa({},c[u],f)},s=function(c){Object.keys(c).forEach(function(u){var f=yy.find(function(p){return p.key===u});if(f){var d=f.type,h=f.extend_keys;d?r.push(l(Wa({},E9(c,h),{type:d},c[u]))):Vt(c[u])&&c[u].forEach(function(p){r.push(l(p))})}})},l=function(c){return s(c),Object.keys(rS).forEach(function(u){var f=rS[u];if(!awt(c[u]))if(Hn(f)){var d=f.value,h=f.target,p=d(c[u]);a(c,h,p)}else pt(c,f,c[u])}),c};return r.forEach(function(c){var u=Wa({},i,c);l(Wa(c,u))}),s(e),Xwt(e),t},I9=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Xwt=function(t){var e=t.children,n=e===void 0?[]:e,r=Object.keys(rS).concat(yy.map(function(i){return i.key}));return r.forEach(function(i){delete t[i]}),n.forEach(function(i){Object.keys(i).forEach(function(o){r.includes(o)&&delete i[o]})}),Object.keys(t).forEach(function(i){I9(I9([],D9,!0),oS.map(function(o){return o.key}),!0).includes(i)||delete t[i]}),t},qwt=function(t){var e=t.options,n=e.children,r=n===void 0?[]:n;return r.forEach(function(i){Object.keys(i).forEach(function(o){Vt(i[o])&&o!=="data"&&(i[o]=i[o].filter(function(a){return!a[nS]}))})}),e},j9=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Kwt=function(t,e){if(Vt(e))return e},Wa=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return R2t.apply(void 0,j9(j9([],t,!1),[Kwt],!1))},ch=function(){return ch=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ch.apply(this,arguments)},Zwt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},Qwt=["renderer"],D9=["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"],nS="__transform__",Jwt="__skipDelCustomKeys__",Qs=function(t,e){return V_(e)?{type:t,available:e}:ch({type:t},e)},rS={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",sizeField:"encode.size",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",radius:"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 Qs("stackY",t)}},normalize:{target:"transform",value:function(t){return Qs("normalizeY",t)}},percent:{target:"transform",value:function(t){return Qs("normalizeY",t)}},group:{target:"transform",value:function(t){return Qs("dodgeX",t)}},sort:{target:"transform",value:function(t){return Qs("sortX",t)}},symmetry:{target:"transform",value:function(t){return Qs("symmetryY",t)}},diff:{target:"transform",value:function(t){return Qs("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 V_(t)?{connect:t}:t}}},iS=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],yy=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:iS},{key:"point",type:"point",extend_keys:iS},{key:"area",type:"area",extend_keys:iS}],tOt=[{key:"transform",callback:function(t,e,n){var r;t[e]=t[e]||[];var i=n.available,o=i===void 0?!0:i,a=Zwt(n,["available"]);o?t[e].push(ch((r={},r[nS]=!0,r),a)):t[e].splice(t[e].indexOf(function(s){return s.type===n.type}),1)}},{key:"labels",callback:function(t,e,n){var r;if(!n||Vt(n)){t[e]=n||[];return}n.text||(n.text=t.yField),t[e]=t[e]||[],t[e].push(ch((r={},r[nS]=!0,r),n))}}],oS=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],eOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),my=function(){return my=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},my.apply(this,arguments)},nOt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},F9=function(t){eOt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=nOt(n,["style"]);return t.call(this,my({style:my({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},r)},i))||this}return e}(jr),rOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),by=function(){return by=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},by.apply(this,arguments)},iOt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},oOt=function(t){rOt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=iOt(n,["style"]);return t.call(this,by({style:by({fill:"#eee"},r)},i))||this}return e}(af),aOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$9=function(t){aOt(e,t);function e(n,r,i){var o=t.call(this,{style:Wa(i,r)})||this;return o.chart=n,o}return e.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this)},e.prototype.disconnectedCallback=function(){},e.prototype.attributeChangedCallback=function(n){},e.prototype.update=function(n,r){var i;return this.attr(Wa({},this.attributes,n||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},e.prototype.clear=function(){this.removeChildren()},e.prototype.getElementsLayout=function(){var n=this.chart.getContext().canvas,r=n.document.getElementsByClassName("element"),i=[];return r.forEach(function(o){var a=o.getBBox(),s=a.x,l=a.y,c=a.width,u=a.height,f=o.__data__;i.push({bbox:a,x:s,y:l,width:c,height:u,key:f.key,data:f})}),i},e.prototype.bindEvents=function(n,r){},e}(_p),sOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xy=function(){return xy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},xy.apply(this,arguments)},lOt=function(t){sOt(e,t);function e(n,r){return t.call(this,n,r,{type:e.tag})||this}return e.prototype.getConversionTagLayout=function(){var n=this.direction==="vertical",r=this.getElementsLayout(),i=r[0],o=i.x,a=i.y,s=i.height,l=i.width,c=i.data,u=["items",0,"value"],f=ge(c,u),d=n?r[1].y-a-s:r[1].x-o-l,h=[],p=this.attributes,v=p.size,g=v===void 0?40:v,y=p.arrowSize,m=y===void 0?20:y,b=p.spacing,x=b===void 0?4:b;return r.forEach(function(w,O){if(O>0){var _=w.x,S=w.y,E=w.height,M=w.width,P=w.data,k=w.key,A=ge(P,u),C=g/2;if(n){var T=_+M/2,N=S;h.push({points:[[T+C,N-d+x],[T+C,N-m-x],[T,N-x],[T-C,N-m-x],[T-C,N-d+x]],center:[T,N-d/2-x],width:d,value:[f,A],key:k})}else{var T=_,N=S+E/2;h.push({points:[[_-d+x,N-C],[_-m-x,N-C],[T-x,N],[_-m-x,N+C],[_-d+x,N+C]],center:[T-d/2-x,N],width:d,value:[f,A],key:k})}f=A}}),h},e.prototype.render=function(){this.setDirection(),this.drawConversionTag()},e.prototype.setDirection=function(){var n=this.chart.getCoordinate(),r=ge(n,"options.transformations"),i="horizontal";r.forEach(function(o){o.includes("transpose")&&(i="vertical")}),this.direction=i},e.prototype.drawConversionTag=function(){var n=this,r=this.getConversionTagLayout(),i=this.attributes,o=i.style,a=i.text,s=a.style,l=a.formatter;r.forEach(function(c){var u=c.points,f=c.center,d=c.value,h=c.key,p=d[0],v=d[1],g=f[0],y=f[1],m=new oOt({style:xy({points:u,fill:"#eee"},o),id:"polygon-".concat(h)}),b=new F9({style:xy({x:g,y,text:Vc(l)?l(p,v):(v/p*100).toFixed(2)+"%"},s),id:"text-".concat(h)});n.appendChild(m),n.appendChild(b)})},e.prototype.update=function(){var n=this,r=this.getConversionTagLayout();r.forEach(function(i){var o=i.points,a=i.center,s=i.key,l=a[0],c=a[1],u=n.getElementById("polygon-".concat(s)),f=n.getElementById("text-".concat(s));u.setAttribute("points",o),f.setAttribute("x",l),f.setAttribute("y",c)})},e.tag="ConversionTag",e}($9),aS=32,R9=16,B9=48,cOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),uh=function(){return uh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},uh.apply(this,arguments)},uOt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},fOt=function(t){cOt(e,t);function e(n,r){return t.call(this,n,r,{type:e.tag})||this}return e.prototype.render=function(){this.drawText()},e.prototype.getBidirectionalBarAxisTextLayout=function(){var n=this.attributes.layout,r=n==="vertical",i=this.getElementsLayout(),o=r?q_(i,"x"):q_(i,"y"),a=["title"],s=[],l=this.chart.getContext().views,c=ge(l,[0,"layout"]),u=c.width,f=c.height;return o.forEach(function(d){var h=d.x,p=d.y,v=d.height,g=d.width,y=d.data,m=d.key,b=ge(y,a);r?s.push({x:h+g/2,y:f,text:b,key:m}):s.push({x:u,y:p+v/2,text:b,key:m})}),q_(s,"text").length!==s.length&&(s=Object.values(w9(s,"text")).map(function(d){var h,p=d.reduce(function(v,g){return v+(r?g.x:g.y)},0);return uh(uh({},d[0]),(h={},h[r?"x":"y"]=p/d.length,h))})),s},e.prototype.transformLabelStyle=function(n){var r={},i=/^label[A-Z]/;return Object.keys(n).forEach(function(o){i.test(o)&&(r[o.replace("label","").replace(/^[A-Z]/,function(a){return a.toLowerCase()})]=n[o])}),r},e.prototype.drawText=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout(),i=this.attributes,o=i.layout,a=i.labelFormatter,s=uOt(i,["layout","labelFormatter"]);r.forEach(function(l){var c=l.x,u=l.y,f=l.text,d=l.key,h=new F9({style:uh({x:c,y:u,text:Vc(a)?a(f):f,wordWrap:!0,wordWrapWidth:o==="horizontal"?aS*2:120,maxLines:2,textOverflow:"ellipsis"},n.transformLabelStyle(s)),id:"text-".concat(d)});n.appendChild(h)})},e.prototype.update=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout();r.forEach(function(i){var o=i.x,a=i.y,s=i.key,l=n.getElementById("text-".concat(s));l.setAttribute("x",o),l.setAttribute("y",a)})},e.tag="BidirectionalBarAxisText",e}($9),dOt={ConversionTag:lOt,BidirectionalBarAxisText:fOt},hOt=function(){function t(e,n){this.container=new Map,this.chart=e,this.config=n,this.init()}return t.prototype.init=function(){var e=this;oS.forEach(function(n){var r,i=n.key,o=n.shape,a=e.config[i];if(a){var s=new dOt[o](e.chart,a),l=e.chart.getContext().canvas;l.appendChild(s),e.container.set(i,s)}else(r=e.container.get(i))===null||r===void 0||r.clear()})},t.prototype.update=function(){var e=this;this.container.size&&oS.forEach(function(n){var r=n.key,i=e.container.get(r);i==null||i.update()})},t}(),pOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ru=function(){return ru=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ru.apply(this,arguments)},z9="data-chart-source-type",Rt=function(t){pOt(e,t);function e(n,r){var i=t.call(this)||this;return i.container=typeof n=="string"?document.getElementById(n):n,i.options=i.mergeOption(r),i.createG2(),i.bindEvents(),i}return e.prototype.getChartOptions=function(){return ru(ru({},E9(this.options,Qwt)),{container:this.container})},e.prototype.getSpecOptions=function(){return this.type==="base"||this[Jwt]?ru(ru({},this.options),this.getChartOptions()):this.options},e.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new Vwt(this.getChartOptions()),this.container.setAttribute(z9,"Ant Design Charts")},e.prototype.bindEvents=function(){var n=this;this.chart&&this.chart.on("*",function(r){r!=null&&r.type&&n.emit(r.type,r)})},e.prototype.getBaseOptions=function(){return{type:"view",autoFit:!0}},e.prototype.getDefaultOptions=function(){},e.prototype.render=function(){var n=this;this.type!=="base"&&this.execAdaptor(),this.chart.options(this.getSpecOptions()),this.chart.render().then(function(){n.annotation=new hOt(n.chart,n.options)}),this.bindSizeSensor()},e.prototype.update=function(n){this.options=this.mergeOption(n)},e.prototype.mergeOption=function(n){return Wa({},this.getBaseOptions(),this.getDefaultOptions(),n)},e.prototype.changeData=function(n){this.chart.changeData(n)},e.prototype.changeSize=function(n,r){this.chart.changeSize(n,r)},e.prototype.destroy=function(){this.chart.destroy(),this.off(),this.container.removeAttribute(z9)},e.prototype.execAdaptor=function(){var n=this.getSchemaAdaptor();n({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var n=this,r=this.options.autoFit,i=r===void 0?!0:r;i&&this.chart.on(Ut.AFTER_CHANGE_SIZE,function(){n.annotation.update()})},e}(Mx),vOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gOt=function(t){vOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="base",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"line"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return function(n){return n}},e}(Rt),sS=function(){return sS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},sS.apply(this,arguments)};function yOt(t){var e=t.options,n=e.stack,r=e.tooltip,i=e.xField;if(!n)return t;var o=yy.map(function(s){return s.type}).filter(function(s){return!!s}),a=!1;return o.forEach(function(s){e[s]&&(a=!0,pt(e,[s,"stack"],sS({y1:"y"},typeof n=="object"?n:{})))}),a&&!V_(r)&&!r&&pt(e,"tooltip",{title:i,items:[{channel:"y"}]}),t}function $e(t){return zt(yOt)(t)}function mOt(t){var e=t.options.layout,n=e===void 0?"horizontal":e;return t.options.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}],t}function bOt(t){mOt(t);var e=t.options.layout,n=e===void 0?"horizontal":e;return t.options.children.forEach(function(r){var i;!((i=r==null?void 0:r.coordinate)===null||i===void 0)&&i.transform&&(r.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}])}),t}function xOt(t){return zt($e,Xt)(t)}var wOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),OOt=function(t){wOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="area",n}return 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 xOt},e}(Rt),iu=function(){return iu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},iu.apply(this,arguments)};function Y9(t){var e=function(n){var r=n.options;ge(r,"children.length")>1&&pt(r,"children",[{type:"interval"}]);var i=r.scale,o=r.markBackground,a=r.data,s=r.children,l=r.yField,c=ge(i,"y.domain",[]);if(o&&c.length&&Vt(a)){var u="domainMax",f=a.map(function(d){var h;return iu(iu({originData:iu({},d)},X_(d,l)),(h={},h[u]=c[c.length-1],h))});s.unshift(iu({type:"interval",data:f,yField:u,tooltip:!1,style:{fill:"#eee"},label:!1},o))}return n};return zt(e,$e,Xt)(t)}var _Ot=function(){var t=function(e,n){return function(r){var i=e.fill,o=i===void 0?"#2888FF":i,a=e.stroke,s=e.fillOpacity,l=s===void 0?1:s,c=e.strokeOpacity,u=c===void 0?.2:c,f=e.pitch,d=f===void 0?8:f,h=r[0],p=r[1],v=r[2],g=r[3],y=(p[1]-h[1])/2,m=n.document,b=m.createElement("g",{}),x=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],[v[0]-d,h[1]+y],g],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),w=m.createElement("polygon",{style:{points:[[h[0]-d,h[1]+y],p,v,[v[0]-d,h[1]+y]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),O=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],p,[h[0]+d,h[1]+y]],fill:o,fillOpacity:l-.2}});return b.appendChild(x),b.appendChild(w),b.appendChild(O),b}};$F("shape.interval.bar25D",t)},SOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();_Ot();var EOt=function(t){SOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Bar",n}return 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},elementHighlightByColor:{background:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Y9},e}(Rt),MOt=function(){var t=function(e,n){return function(r){var i=e.fill,o=i===void 0?"#2888FF":i,a=e.stroke,s=e.fillOpacity,l=s===void 0?1:s,c=e.strokeOpacity,u=c===void 0?.2:c,f=e.pitch,d=f===void 0?8:f,h=r[1][0]-r[0][0],p=h/2+r[0][0],v=n.document,g=v.createElement("g",{}),y=v.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]+d],[p,r[3][1]+d],[r[3][0],r[3][1]]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),m=v.createElement("polygon",{style:{points:[[p,r[1][1]+d],[r[1][0],r[1][1]],[r[2][0],r[2][1]],[p,r[2][1]+d]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),b=v.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]-d],[r[1][0],r[1][1]],[p,r[1][1]+d]],fill:o,fillOpacity:l-.2}});return g.appendChild(m),g.appendChild(y),g.appendChild(b),g}};$F("shape.interval.column25D",t)},POt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();MOt();var AOt=function(t){POt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlightByColor:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Y9},e}(Rt);function COt(t){var e=function(r){var i=r.options,o=i.children,a=o===void 0?[]:o,s=i.legend;return s&&a.forEach(function(l){if(!ge(l,"colorField")){var c=ge(l,"yField");pt(l,"colorField",function(){return c})}}),r},n=function(r){var i=r.options,o=i.annotations,a=o===void 0?[]:o,s=i.children,l=s===void 0?[]:s,c=i.scale,u=!1;return ge(c,"y.key")||l.forEach(function(f,d){if(!ge(f,"scale.y.key")){var h="child".concat(d,"Scale");pt(f,"scale.y.key",h);var p=f.annotations,v=p===void 0?[]:p;v.length>0&&(pt(f,"scale.y.independent",!1),v.forEach(function(g){pt(g,"scale.y.key",h)})),!u&&a.length>0&&ge(f,"scale.y.independent")===void 0&&(u=!0,pt(f,"scale.y.independent",!1),a.forEach(function(g){pt(g,"scale.y.key",h)}))}}),r};return zt(e,n,$e,Xt)(t)}var kOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),W9=function(t){kOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="DualAxes",n}return 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 COt},e}(Rt);function TOt(t){var e=function(o){var a=o.options,s=a.xField,l=a.colorField;return l||pt(a,"colorField",s),o},n=function(o){var a=o.options,s=a.compareField,l=a.transform,c=a.isTransposed,u=c===void 0?!0:c,f=a.coordinate;return l||(s?pt(a,"transform",[]):pt(a,"transform",[{type:"symmetryY"}])),!f&&u&&pt(a,"coordinate",{transform:[{type:"transpose"}]}),o},r=function(o){var a=o.options,s=a.compareField,l=a.seriesField,c=a.data,u=a.children,f=a.yField,d=a.isTransposed,h=d===void 0?!0:d;if(s||l){var p=Object.values(w9(c,function(v){return v[s||l]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(v){return-v[f]}}),delete a.compareField,delete a.data}return l&&(pt(a,"type","spaceFlex"),pt(a,"ratio",[1,1]),pt(a,"direction",h?"row":"col"),delete a.seriesField),o},i=function(o){var a=o.options,s=a.tooltip,l=a.xField,c=a.yField;return s||pt(a,"tooltip",{title:!1,items:[function(u){return{name:u[l],value:u[c]}}]}),o};return zt(e,n,r,i,$e,Xt)(t)}var LOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),NOt=function(t){LOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return 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 TOt},e}(Rt);function IOt(t){return zt($e,Xt)(t)}var jOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),DOt=function(t){jOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="line",n}return 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 IOt},e}(Rt),Ga=function(){return Ga=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ga.apply(this,arguments)};function FOt(t){var e=function(n){var r=n.options,i=r.angleField,o=r.data,a=r.label,s=r.tooltip,l=r.colorField;if(Vt(o)){var c=o.reduce(function(f,d){return f+d[i]},0);if(c===0){var u=o.map(function(f){var d;return Ga(Ga({},f),(d={},d[i]=1,d))});pt(r,"data",u),a&&pt(r,"label",Ga(Ga({},a),{formatter:function(){return 0}})),s!==!1&&pt(r,"tooltip",Ga(Ga({},s),{items:[function(f){return{name:f[l],value:0}}]}))}}return n};return zt(e,Xt)(t)}var $Ot=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ROt=function(t){$Ot(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="pie",n}return 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 FOt},e}(Rt);function BOt(t){return zt($e,Xt)(t)}var zOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YOt=function(t){zOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="scatter",n}return 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 BOt},e}(Rt);function WOt(t){var e=function(n){return pt(n,"options.coordinate",{type:ge(n,"options.coordinateType","polar")}),n};return zt(e,Xt)(t)}var GOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),HOt=function(t){GOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radar",n}return 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 WOt},e}(Rt),$o=function(){return $o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},$o.apply(this,arguments)},UOt="__stock-range__",VOt="trend",XOt="up",qOt="down";function KOt(t){var e=function(r){var i=r.options,o=i.data,a=i.yField;return r.options.data=Jc(o,function(s){var l=s&&$o({},s);if(Array.isArray(a)&&l){var c=a[0],u=a[1],f=a[2],d=a[3];l[VOt]=l[c]<=l[u]?XOt:qOt,l[UOt]=[l[c],l[u],l[f],l[d]]}return l}),r},n=function(r){var i=r.options,o=i.xField,a=i.yField,s=i.fallingFill,l=i.risingFill,c=a[0],u=a[1],f=a[2],d=a[3];return r.options.children=Jc(r.options.children,function(h,p){var v=p===0;return $o($o({},h),{tooltip:{title:function(g){return g[o]instanceof Date?g[o].toLocaleString():g[o]},items:[{field:f},{field:d},{field:c},{field:u}]},encode:$o($o({},h.encode||{}),{y:v?[f,d]:[c,u],color:function(g){return Math.sign(g[u]-g[c])}}),style:$o($o({},h.style||{}),{lineWidth:v?1:10})})}),delete i.yField,r.options.legend={color:!1},s&&pt(r,"options.scale.color.range[0]",s),l&&pt(r,"options.scale.color.range[2]",l),r};return zt(e,n,Xt)(t)}var ZOt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),QOt=["#26a69a","#999999","#ef5350"],JOt=function(t){ZOt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="stock",n}return e.getDefaultOptions=function(){return{type:"view",scale:{color:{domain:[-1,0,1],range:QOt},y:{nice:!0}},children:[{type:"link"},{type:"link"}],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 KOt},e}(Rt);function t_t(t){return zt($e,Xt)(t)}var e_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),n_t=function(t){e_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyLine",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"line",axis:!1}],autoFit:!1,animate:{enter:{type:"growInX",duration:500}},padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return t_t},e}(Rt);function r_t(t){return zt($e,Xt)(t)}var i_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),o_t=function(t){i_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyArea",n}return e.getDefaultOptions=function(){return{type:"view",animate:{enter:{type:"growInX",duration:500}},children:[{type:"area",axis:!1}],autoFit:!1,padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return r_t},e}(Rt);function a_t(t){return zt($e,Xt)(t)}var s_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),l_t=function(t){s_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyColumn",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval",axis:!1}],autoFit:!1,padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a_t},e}(Rt),lS=function(){return lS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},lS.apply(this,arguments)};function c_t(t){var e=function(n){var r=n.options,i=r.percent,o=r.color,a=o===void 0?[]:o;if(!i)return n;var s={scale:{color:{range:a.length?a:[]}},data:[1,i]};return Object.assign(r,lS({},s)),n};return zt(e,$e,Xt)(t)}var u_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),f_t=function(t){u_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyProgress",n}return e.getDefaultOptions=function(){return{type:"view",data:[],autoFit:!1,margin:0,padding:0,tooltip:!1,children:[{interaction:{tooltip:!1},coordinate:{transform:[{type:"transpose"}]},type:"interval",axis:!1,legend:!1,encode:{y:function(n){return n},color:function(n,r){return r}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return c_t},e}(Rt),cS=function(){return cS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},cS.apply(this,arguments)};function d_t(t){var e=function(r){var i=r.options,o=i.radius,a=o===void 0?.8:o;return pt(r,"options.coordinate.innerRadius",a),r},n=function(r){var i=r.options,o=i.percent,a=i.color,s=a===void 0?[]:a;if(!o)return r;var l={scale:{color:{range:s.length?s:[]}},data:[1,o]};return Object.assign(i,cS({},l)),r};return zt(e,n,$e,Xt)(t)}var h_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),p_t=function(t){h_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyRing",n}return e.getDefaultOptions=function(){return{type:"view",data:[],autoFit:!1,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(n){return n},color:function(n,r){return r}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return d_t},e}(Rt);function v_t(t){return zt(Xt)(t)}var g_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),y_t=function(t){g_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="rose",n}return 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 v_t},e}(Rt),uS="__start__",ou="__end__",fS="__waterfall_value__",dS=function(){return dS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},dS.apply(this,arguments)},m_t=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};function b_t(t){var e=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.yField;return a.length&&(a.reduce(function(l,c,u){var f;if(u===0||c.isTotal)c[uS]=0,c[ou]=c[s],c[fS]=c[s];else{var d=(f=l[ou])!==null&&f!==void 0?f:l[s];c[uS]=d,c[ou]=d+c[s],c[fS]=l[ou]}return c},[]),Object.assign(i,{yField:[uS,ou]})),r},n=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.xField,l=i.children,c=i.linkStyle,u=m_t([],a,!0);return u.reduce(function(f,d,h){return h>0&&(d.x1=f[s],d.x2=d[s],d.y1=f[ou]),d},[]),u.shift(),l.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:dS({stroke:"#697474"},c),label:!1,tooltip:!1}),r};return zt(e,n,$e,Xt)(t)}var x_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),w_t=function(t){x_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="waterfall",n}return e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:fS,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return b_t},e}(Rt);function O_t(t){var e=function(n){var r=n.options,i=r.data,o=r.binNumber,a=r.binWidth,s=r.children,l=r.channel,c=l===void 0?"count":l,u=ge(s,"[0].transform[0]",{});return tu(a)?(jR(u,{thresholds:pbt(z2t(i.length,a)),y:c}),n):(tu(o)&&jR(u,{thresholds:o,y:c}),n)};return zt(e,$e,Xt)(t)}var __t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),S_t=function(t){__t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Histogram",n}return e.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return O_t},e}(Rt);function E_t(t){var e=function(r){var i=r.options,o=i.tooltip,a=i.colorField,s=i.sizeField;return o&&!o.field&&(o.field=a||s),r},n=function(r){var i=r.options,o=i.mark,a=i.children;return o&&(a[0].type=o),r};return zt(e,n,$e,Xt)(t)}var M_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),P_t=function(t){M_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="heatmap",n}return 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",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return E_t},e}(Rt);function A_t(t){var e=function(n){var r=n.options.boxType,i=r===void 0?"box":r;return n.options.children[0].type=i,n};return zt(e,$e,Xt)(t)}var C_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),k_t=function(t){C_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="box",n}return 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 A_t},e}(Rt);function T_t(t){var e=function(n){var r=n.options,i=r.data,o=[{type:"custom",callback:function(s){return{links:s}}}];if(Vt(i))i.length>0?pt(r,"data",{value:i,transform:o}):delete r.children;else if(ge(i,"type")==="fetch"&&ge(i,"value")){var a=ge(i,"transform");Vt(a)?pt(i,"transform",a.concat(o)):pt(i,"transform",o)}return n};return zt(e,$e,Xt)(t)}var L_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),N_t=function(t){L_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="sankey",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return T_t},e}(Rt),Si=function(){return Si=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Si.apply(this,arguments)},wy=["#f0efff","#5B8FF9","#3D76DD"];function hS(t,e,n,r){r===void 0&&(r=!0);var i=0,o=!1,a=Jc(t,function(s){var l,c,u=ge(s,[e]);if(owt(u))return[];if(O9(u)){var f=Number(u);return isNaN(f)?[]:(l={},l[n]=s[n],l[e]=f,l)}return Vt(u)?(o=!0,i=Math.max(i,u.length),Jc(r?u.sort(function(d,h){return h-d}):u,function(d,h){var p;return p={},p[n]=s[n],p[e]=d,p.index=h,p})):(i=Math.max(1,i),c={},c[n]=s[n],c[e]=u,c)}).flat();return o?[a.map(function(s){return Si({index:0},s)}),i]:[a,i]}function pS(t,e){return new Array(t).fill("").map(function(n,r){return Vt(e)?e[r%e.length]:e})}function I_t(t){var e=function(i){var o=i.options,a=o.color,s=o.rangeField,l=s===void 0?"ranges":s,c=o.measureField,u=c===void 0?"measures":c,f=o.targetField,d=f===void 0?"targets":f,h=o.xField,p=h===void 0?"title":h,v=o.mapField,g=o.data,y=hS(g,l,p),m=y[0],b=y[1],x=hS(g,u,p,!1),w=x[0],O=x[1],_=hS(g,d,p,!1),S=_[0],E=_[1],M=ge(a,[l],wy[0]),P=ge(a,[u],wy[1]),k=ge(a,[d],wy[2]),A=[pS(b,M),pS(O,P),pS(E,k)].flat();return i.options.children=Jc(i.options.children,function(C,T){var N=[m,w,S][T],j=[l,u,d][T];return Si(Si({},C),{data:N,encode:Si(Si({},C.encode||{}),{x:p,y:j,color:function(L){var I=L.index,F=tu(I)?"".concat(j,"_").concat(I):j;return v?ge(v,[j,I],F):F}}),style:Si(Si({},C.style||{}),{zIndex:function(L){return-L[j]}}),labels:T!==0?Jc(C.labels,function(L){return Si(Si({},L),{text:j})}):void 0})}),i.options.scale.color.range=A,i.options.legend.color.itemMarker=function(C){return v&&ewt(v==null?void 0:v[d],C)||(C==null?void 0:C.replace(/\_\d$/,""))===d?"line":"square"},i},n=function(i){var o=i.options.layout,a=o===void 0?"horizontal":o;return a!=="horizontal"&&pt(i,"options.children[2].shapeField","hyphen"),i},r=function(i){var o=i.options,a=o.range,s=a===void 0?{}:a,l=o.measure,c=l===void 0?{}:l,u=o.target,f=u===void 0?{}:u,d=o.children;return i.options.children=[s,c,f].map(function(h,p){return Wa(d[p],h)}),i};return zt(e,n,r,bOt,Xt)(t)}var j_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),D_t=function(t){j_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="bullet",n}return e.getDefaultOptions=function(){return{type:"view",scale:{color:{range:wy}},legend:{color:{itemMarker:function(n){return n==="target"?"line":"square"}}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval",style:{maxWidth:30},axis:{y:{grid:!0,gridLineWidth:2}}},{type:"interval",style:{maxWidth:20},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 I_t},e}(Rt);function F_t(t){var e=function(n){var r=n.options.data;return n.options.data={value:r},n};return zt(e,$e,Xt)(t)}var $_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),R_t=function(t){$_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Gauge",n}return e.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"gauge"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return F_t},e}(Rt);function B_t(t){var e=function(n){var r=n.options.percent;return tu(r)&&pt(n,"options.data",r),n};return zt(e,$e,Xt)(t)}var z_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Y_t=function(t){z_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Liquid",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"liquid"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return B_t},e}(Rt);function W_t(t){return zt($e,Xt)(t)}var G_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H_t=function(t){G_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="WordCloud",n}return e.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"wordCloud"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return W_t},e}(Rt);function U_t(t){var e=function(n){var r=n.options,i=r.data;return i&&pt(r,"data",{value:i}),n};return zt(e,$e,Xt)(t)}var V_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),X_t=function(t){V_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="treemap",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"treemap"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return U_t},e}(Rt),Js=function(){return Js=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Js.apply(this,arguments)};function q_t(t){var e=function(i){var o=i.options,a=o.startAngle,s=o.maxAngle,l=o.coordinate,c=tu(a)?a/(2*Math.PI)*360:-90,u=tu(s)?(Number(s)+c)/180*Math.PI:Math.PI;return pt(i,["options","coordinate"],Js(Js({},l),{endAngle:u,startAngle:a!=null?a:-Math.PI/2})),i},n=function(i){var o=i.options,a=o.tooltip,s=o.xField,l=o.yField;return a||pt(o,"tooltip",{title:!1,items:[function(c){return{name:c[s],value:c[l]}}]}),i},r=function(i){var o=i.options,a=o.markBackground,s=o.children,l=o.scale,c=o.coordinate,u=o.xField,f=ge(l,"y.domain",[]);return a&&s.unshift(Js({type:"interval",xField:u,yField:f[f.length-1],colorField:a.color,scale:{color:{type:"identity"}},style:{fillOpacity:a.opacity,fill:a.color?void 0:"#e0e4ee"},coordinate:Js(Js({},c),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},a)),i};return zt(e,n,r,$e,Xt)(t)}var K_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Z_t=function(t){K_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radial",n}return 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 q_t},e}(Rt);function Q_t(t){return zt(Xt)(t)}var J_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tSt=function(t){J_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="CirclePacking",n}return e.getDefaultOptions=function(){return{legend:!1,type:"view",children:[{type:"pack"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Q_t},e}(Rt),Oy=function(){return Oy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Oy.apply(this,arguments)};function eSt(t){var e=function(n){var r=n.options,i=r.xField,o=r.yField,a=r.seriesField,s=r.children,l=s==null?void 0:s.map(function(c){return Oy(Oy({},c),{xField:i,yField:o,seriesField:a,colorField:a,data:c.type==="density"?{transform:[{type:"kde",field:o,groupBy:[i,a]}]}:c.data})}).filter(function(c){return r.violinType!=="density"||c.type==="density"});return pt(r,"children",l),r.violinType==="polar"&&pt(r,"coordinate",{type:"polar"}),pt(r,"violinType",void 0),n};return zt(e,$e,Xt)(t)}var nSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rSt=function(t){nSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="violin",n}return 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 eSt},e}(Rt),fh=function(){return fh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},fh.apply(this,arguments)},iSt=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};function oSt(t){var e=function(o){var a=o.options,s=a.yField,l=a.children;return l.forEach(function(c,u){pt(c,"yField",s[u])}),o},n=function(o){var a=o.options,s=a.yField,l=a.children,c=a.data;if(D_(c))return o;var u=Vt(ge(c,[0]))?c:[c,c];return l.forEach(function(f,d){pt(f,"data",iSt([],u[d].map(function(h){return fh({groupKey:s[d]},h)}),!0))}),o},r=function(o){var a=o.options,s=a.yField,l=s[0],c=s[1],u=a.tooltip;return u||pt(a,"tooltip",{items:[{field:l,value:l},{field:c,value:c}]}),o},i=function(o){var a=o.options,s=a.children,l=a.layout,c=a.coordinate.transform,u=a.paddingBottom,f=u===void 0?B9:u,d=a.paddingLeft,h=d===void 0?B9:d,p=a.axis;pt(a,"axisText",fh(fh({},(p==null?void 0:p.x)||{}),{layout:l}));var v=s[0],g=s[1];if(l==="vertical")pt(a,"direction","col"),pt(a,"paddingLeft",h),pt(a,"coordinate.transform",c.filter(function(w){return w.type!=="transpose"})),pt(v,"paddingBottom",R9),pt(g,"paddingTop",R9),pt(g,"axis",{x:{position:"top"}}),pt(g,"scale",{y:{range:[0,1]}});else{pt(a,"paddingBottom",f),pt(v,"scale",{y:{range:[0,1]}});var y=v.paddingRight,m=y===void 0?aS:y,b=g.paddingLeft,x=b===void 0?aS:b;pt(v,"paddingRight",m),pt(v,"axis",{x:{position:"right"}}),pt(g,"paddingLeft",x)}return o};return zt(e,n,r,i,$e,Xt)(t)}var aSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sSt=function(t){aSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="BidirectionalBar",n}return 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 oSt},e}(Rt),tl;(function(t){t.color="key",t.d="path"})(tl||(tl={}));function lSt(t){var e=function(n){var r=n.options,i=r.data,o=r.setsField,a=r.sizeField;return Vt(i)&&(pt(r,"data",{type:"inline",value:i,transform:[{type:"venn",sets:o,size:a,as:[tl.color,tl.d]}]}),pt(r,"colorField",o),pt(r,["children","0","encode","d"],tl.d)),pt(n,"options",X_(r,["sizeField","setsField"])),n};return zt(e,Xt)(t)}var cSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),uSt=function(t){cSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="venn",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"path"}],legend:{color:{itemMarker:"circle"}},encode:{color:tl.color,d:tl.d}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return lSt},e}(Rt);function fSt(t){var e=function(n){return n};return zt(e,Xt)(t)}var dSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),hSt=function(t){dSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Sunburst",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"sunburst"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return fSt},e}(Rt),pSt={Base:gOt,Line:DOt,Column:AOt,Pie:ROt,Area:OOt,Bar:EOt,DualAxes:W9,Funnel:NOt,Scatter:YOt,Radar:HOt,Rose:y_t,Stock:JOt,TinyLine:n_t,TinyArea:o_t,TinyColumn:l_t,TinyProgress:f_t,TinyRing:p_t,Waterfall:w_t,Histogram:S_t,Heatmap:P_t,Box:k_t,Sankey:N_t,Bullet:D_t,Gauge:R_t,Liquid:Y_t,WordCloud:H_t,Treemap:X_t,RadialBar:Z_t,CirclePacking:tSt,Violin:rSt,BidirectionalBar:sSt,Venn:uSt,Mix:W9,Sunburst:hSt},vS=function(){return vS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},vS.apply(this,arguments)},G9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},el=K.forwardRef(function(t,e){var n=t.chartType,r=n===void 0?"Base":n,i=G9(t,["chartType"]),o=i.containerStyle,a=o===void 0?{height:"inherit"}:o,s=i.containerAttributes,l=s===void 0?{}:s,c=i.className,u=i.loading,f=i.loadingTemplate,d=i.errorTemplate,h=G9(i,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate"]),p=bwt(pSt[r],h),v=p.chart,g=p.container;return K.useImperativeHandle(e,function(){return v.current}),K.createElement(xyt,{errorTemplate:d},u&&K.createElement(myt,{loadingTemplate:f}),K.createElement("div",vS({className:c,style:a,ref:g},l)))}),gS=function(){return gS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},gS.apply(this,arguments)},vSt=function(t){return K.createElement(el,gS({},t,{chartType:"Area"}))},yS=function(){return yS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},yS.apply(this,arguments)},gSt=function(t){return K.createElement(el,yS({},t,{chartType:"Bar"}))},mS=function(){return mS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},mS.apply(this,arguments)},ySt=function(t){return K.createElement(el,mS({},t,{chartType:"Column"}))},bS=function(){return bS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},bS.apply(this,arguments)},mSt=function(t){return K.createElement(el,bS({},t,{chartType:"DualAxes"}))},xS=function(){return xS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},xS.apply(this,arguments)},bSt=function(t){return K.createElement(el,xS({},t,{chartType:"Line"}))},wS=function(){return wS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},wS.apply(this,arguments)},xSt=function(t){return K.createElement(el,wS({},t,{chartType:"Pie"}))},OS=function(){return OS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},OS.apply(this,arguments)},wSt=function(t){return K.createElement(el,OS({},t,{chartType:"Scatter"}))};const{booleanField:_y}=QS,OSt={isStack:t=>_y(tt({name:"isStack",title:"isStack"},t)),smooth:t=>_y(tt({name:"smooth",title:"smooth"},t)),isPercent:t=>_y(tt({name:"isPercent",title:"isPercent"},t)),isGroup:t=>_y(tt({name:"isGroup",title:"isGroup"},t)),size:()=>({size:{title:St("Size"),type:"object","x-decorator":"FormItem","x-component":"Space",properties:{type:{"x-component":"Select","x-component-props":{allowClear:!1},default:"ratio",enum:[{label:St("Aspect ratio"),value:"ratio"},{label:St("Fixed height"),value:"fixed"}]},fixed:{type:"number","x-component":"InputNumber","x-component-props":{min:0,addonAfter:"px"},"x-reactions":[{dependencies:[".type"],fulfill:{state:{visible:"{{$deps[0] === 'fixed'}}"}}}]},ratio:{type:"object","x-component":"Space","x-reactions":[{dependencies:[".type"],fulfill:{state:{visible:"{{$deps[0] === 'ratio'}}"}}}],properties:{width:{type:"number","x-component":"InputNumber","x-component-props":{placeholder:St("Width"),min:1}},colon:{type:"void","x-component":"Text","x-component-props":{children:":"}},height:{type:"number","x-component":"InputNumber","x-component-props":{placeholder:St("Height"),min:1}}}}}}})},_St=t=>e=>{var u,f;const{isDarkTheme:n}=z.useGlobalTheme(),{size:r={}}=e;let{height:i}=e;!i&&r.type==="fixed"&&(i=r.fixed);const{service:o}=K.useContext(ii),a=K.useRef(null),[s,l]=K.useState(0);K.useEffect(()=>{var v,g;const d=a.current;if(!d||o.loading===!0||i)return;let h=0;r.type==="ratio"&&((v=r.ratio)!=null&&v.width)&&((g=r.ratio)!=null&&g.height)&&(h=r.ratio.height/r.ratio.width);const p=new ResizeObserver(y=>{y.forEach(m=>{if(h){l(m.contentRect.width*h);return}l(m.contentRect.height)})});return p.observe(d),()=>p.disconnect()},[o.loading,i,r.type,(u=r.ratio)==null?void 0:u.width,(f=r.ratio)==null?void 0:f.height]);const c=i||s;return Y.jsx("div",{ref:a,style:c?{height:`${c}px`}:{},children:Y.jsx(t,tt(tt({theme:n?"classicDark":"classic"},e),c?{height:c}:{}))})};class nl extends jy{constructor({name:n,title:r,Component:i,config:o}){super({name:n,title:r,Component:_St(i),config:["xField","yField","seriesField","size",...o||[]]});ri(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yField:a,seriesField:s}=this.infer(n,{measures:r,dimensions:i});return{general:{xField:o==null?void 0:o.value,yField:a==null?void 0:a.value,seriesField:s==null?void 0:s.value}}});this.addConfigs(OSt)}getProps({data:n,general:r,advanced:i,fieldProps:o}){const a=o[r.xField],s=o[r.yField],l=o[r.seriesField];return tt(dt(tt(tt({legend:{color:{itemLabelText:u=>{const f=l==null?void 0:l.transformer;return f?f(u.label):u.label}}},tooltip:{title:u=>{const{[r.xField]:f}=u;return a!=null&&a.transformer?a.transformer(f):f},items:[u=>{const{[r.xField]:f,[r.yField]:d,[r.seriesField]:h}=u;let p="";return h?p=l.transformer?l.transformer(h):h:p=(s==null?void 0:s.label)||r.yField,{name:p,value:s!=null&&s.transformer?s.transformer(d):d}}]},axis:{x:{labelFormatter:u=>{const f=a==null?void 0:a.transformer;return f?f(u):u}},y:{labelFormatter:u=>{const f=s==null?void 0:s.transformer;return f?f(u):u}}},data:n,animate:{enter:{type:!1},update:{type:!1},exit:{type:!1}},colorField:r.seriesField,stack:r.isStack,percent:r.isPercent?!0:void 0},r.smooth?{shapeField:"smooth"}:{}),r),{seriesField:r.isGroup?r.seriesField:void 0}),i)}getReference(){return{title:this.title,link:`https://ant-design-charts-next.antgroup.com/examples#statistics-${this.name}`}}}class SSt extends nl{constructor(){super({name:"pie",title:"Pie Chart",Component:xSt});ri(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yField:a}=this.infer(n,{measures:r,dimensions:i});return{general:{colorField:o==null?void 0:o.value,angleField:a==null?void 0:a.value}}});this.config=[{property:"field",name:"angleField",title:"angleField",required:!0},{property:"field",name:"colorField",title:"colorField",required:!0},"size"]}getProps({data:n,general:r,advanced:i,fieldProps:o}){const a=r.angleField,s=o[a]||{};if(n.some(f=>f[a]<0)){const f=Math.min(...n.map(h=>h[a]));n=n.map(h=>dt(tt({},h),{[a]:h[a]-f}));const d=s.transformer;s.transformer=h=>{const p=h+f;return d?d(p):p}}const c=super.getProps({data:n,general:r,advanced:i,fieldProps:o}),u={items:[f=>{const{[r.colorField]:d,[a]:h}=f,p=d||(s==null?void 0:s.label)||a,v=s==null?void 0:s.transformer;return{name:p,value:v?v(h):h}}]};return dt(tt({},c),{tooltip:i.tooltip||u})}}class ESt extends nl{constructor(){super({name:"dualAxes",title:"Dual Axes Chart",Component:mSt});ri(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yFields:a}=this.infer(n,{measures:r,dimensions:i});return{general:{xField:o==null?void 0:o.value,yField:(a==null?void 0:a.map(s=>s.value))||[]}}});this.config=["xField",{yField:{title:'{{t("yField")}}',type:"array","x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space",properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Select","x-reactions":"{{ useChartFields }}","x-component-props":{style:{minWidth:"200px"}},required:!0},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add")}}',"x-component":"ArrayItems.Addition"}}}},"size"]}getProps({data:n,general:r,advanced:i,fieldProps:o}){var s;const a=super.getProps({data:n,general:r,advanced:i,fieldProps:o});return dt(tt({},rn.omit(a,["legend","tooltip","yField"])),{children:((s=a.yField)==null?void 0:s.map((l,c)=>{var u;return{type:"line",yField:l,tooltip:{items:[f=>{const{[l]:d}=f,h=o[l],p=(h==null?void 0:h.label)||l,v=h!=null&&h.transformer?h.transformer(d):d;return{name:p,value:v}}]},colorField:()=>{const f=o[l];return(f==null?void 0:f.label)||l},axis:{y:{title:((u=o[l])==null?void 0:u.label)||l,position:c===0?"left":"right",labelFormatter:f=>{const d=o[l],h=d==null?void 0:d.transformer;return h?h(f):f}}}}}))||[]})}}const MSt=[new nl({name:"line",title:"Line Chart",Component:bSt,config:["smooth","isStack"]}),new nl({name:"area",title:"Area Chart",Component:vSt,config:["smooth",{property:"isStack",defaultValue:!0},"isPercent"]}),new nl({name:"column",title:"Column Chart",Component:ySt,config:["isGroup","isStack","isPercent"]}),new nl({name:"bar",title:"Bar Chart",Component:gSt,config:["isGroup","isStack","isPercent"]}),new SSt,new ESt,new nl({name:"scatter",title:"Scatter Chart",Component:wSt})],PSt=z.withDynamicSchemaProps(t=>{const{token:e}=z.useToken();return Y.jsx(z.CardItem,dt(tt({name:"charts",bodyStyle:{padding:`${e.paddingLG}px ${e.paddingLG}px 0`}},t),{children:t.children}))},{displayName:"ChartCardItem"});class Sy extends z.Plugin{constructor(){super(...arguments);ri(this,"charts",new OB)}load(){return Nn(this,null,function*(){this.charts.setGroup("Built-in",[...MSt,...Zz]),this.app.addComponents({ChartV2BlockInitializer:Vz,ChartV2BlockDesigner:Gz,ChartV2Block:Wz,ChartCardItem:PSt}),this.app.addScopes({useChartBlockCardProps:Yz}),this.app.schemaInitializerManager.add(ZS),this.app.schemaInitializerManager.add(Uz),this.app.schemaInitializerManager.add(US),this.app.schemaInitializerManager.add(_z),this.app.schemaInitializerManager.add(XS),this.app.schemaInitializerManager.add(Cz);const n=this.app.schemaInitializerManager.get("page:addBlock");n==null||n.add("dataBlocks.chartV2",{title:St("Charts"),Component:"ChartV2BlockInitializer"}),this.app.schemaInitializerManager.addItem("mobile:addBlock","dataBlocks.chartV2",{title:St("Charts"),Component:"ChartV2BlockInitializer"})})}}ct.Chart=jy,ct.ChartConfigContext=Pi,ct.default=Sy,Object.defineProperties(ct,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -8,14 +8,14 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.3.50-beta",
11
+ "@nocobase/client": "1.3.51",
12
12
  "dayjs": "1.11.10",
13
13
  "@formily/react": "2.3.0",
14
14
  "@formily/shared": "2.3.2",
15
15
  "lodash": "4.17.21",
16
- "@nocobase/cache": "1.3.50-beta",
17
- "@nocobase/server": "1.3.50-beta",
18
- "@nocobase/test": "1.3.50-beta",
16
+ "@nocobase/cache": "1.3.51",
17
+ "@nocobase/server": "1.3.51",
18
+ "@nocobase/test": "1.3.51",
19
19
  "react": "18.2.0",
20
20
  "@emotion/css": "11.13.0",
21
21
  "@ant-design/icons": "5.2.6",
@@ -23,9 +23,9 @@ module.exports = {
23
23
  "antd": "5.12.8",
24
24
  "@formily/antd-v5": "1.1.9",
25
25
  "@formily/core": "2.3.0",
26
- "@nocobase/utils": "1.3.50-beta",
26
+ "@nocobase/utils": "1.3.51",
27
27
  "react-i18next": "11.18.6",
28
28
  "sequelize": "6.35.2",
29
- "@nocobase/actions": "1.3.50-beta",
30
- "@nocobase/database": "1.3.50-beta"
29
+ "@nocobase/actions": "1.3.51",
30
+ "@nocobase/database": "1.3.51"
31
31
  };
@@ -1 +1 @@
1
- {"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2024-11-14T04:00:44.117Z"}
1
+ {"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2024-11-19T12:34:08.279Z"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-data-visualization",
3
- "version": "1.3.50-beta",
3
+ "version": "1.3.51",
4
4
  "displayName": "Data visualization",
5
5
  "displayName.zh-CN": "数据可视化",
6
6
  "description": "Provides data visualization feature, including chart block and chart filter block, support line charts, area charts, bar charts and more than a dozen kinds of charts, you can also extend more chart types.",
@@ -34,7 +34,7 @@
34
34
  "@nocobase/test": "1.x",
35
35
  "@nocobase/utils": "1.x"
36
36
  },
37
- "gitHead": "ae3ceb799109d3a088d13f999e52b02af6df2457",
37
+ "gitHead": "01f2b933a0681d99c5928d91d41f3f0c0ecae988",
38
38
  "keywords": [
39
39
  "Blocks"
40
40
  ]