diff --git a/assets/@vue_reactivity@3.4.15-2zCDAkOA.js b/assets/@vue_reactivity@3.4.19-celhyCRK.js similarity index 82% rename from assets/@vue_reactivity@3.4.15-2zCDAkOA.js rename to assets/@vue_reactivity@3.4.19-celhyCRK.js index 0807b5fb..dccfb8ba 100644 --- a/assets/@vue_reactivity@3.4.15-2zCDAkOA.js +++ b/assets/@vue_reactivity@3.4.19-celhyCRK.js @@ -1,5 +1,5 @@ -import{i as e}from"./@vue_shared@3.4.15-JOA8BF6u.js";/** -* @vue/reactivity v3.4.15 +import{i as e}from"./@vue_shared@3.4.19-Zz6ACxVX.js";/** +* @vue/reactivity v3.4.19 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(e));function t(r){return i(r)?t(r.__v_raw):!!(r&&r.__v_isReactive)}function i(r){return!!(r&&r.__v_isReadonly)}function o(r){return t(r)||i(r)}function s(r){return!!(r&&r.__v_isRef===!0)}export{o as a,s as i}; diff --git a/assets/@vue_runtime-core@3.4.15-xG7oRWIU.js.gz b/assets/@vue_runtime-core@3.4.15-xG7oRWIU.js.gz deleted file mode 100644 index b2db3aff..00000000 Binary files a/assets/@vue_runtime-core@3.4.15-xG7oRWIU.js.gz and /dev/null differ diff --git a/assets/@vue_runtime-core@3.4.15-xG7oRWIU.js b/assets/@vue_runtime-core@3.4.19-9EfOi5Ir.js similarity index 95% rename from assets/@vue_runtime-core@3.4.15-xG7oRWIU.js rename to assets/@vue_runtime-core@3.4.19-9EfOi5Ir.js index 6baab174..f4a2f8b6 100644 --- a/assets/@vue_runtime-core@3.4.15-xG7oRWIU.js +++ b/assets/@vue_runtime-core@3.4.19-9EfOi5Ir.js @@ -1,5 +1,5 @@ -import{i as x,a as k}from"./@vue_reactivity@3.4.15-2zCDAkOA.js";import{a as g,b as m,c as S,g as R,E as O,n as N,d as b,e as h,f as p,h as A}from"./@vue_shared@3.4.15-JOA8BF6u.js";/** -* @vue/runtime-core v3.4.15 +import{i as x,a as k}from"./@vue_reactivity@3.4.19-celhyCRK.js";import{a as g,b as m,c as S,g as R,E as O,n as N,d as b,e as h,f as p,h as A}from"./@vue_shared@3.4.19-Zz6ACxVX.js";/** +* @vue/runtime-core v3.4.19 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let f=null,z=null;const B=Symbol.for("v-ndc"),M=t=>t.__isSuspense,j=t=>t.__isTeleport,y=Symbol.for("v-fgt"),U=Symbol.for("v-txt"),G=Symbol.for("v-cmt"),K=Symbol.for("v-stc"),r=[];let u=null;function X(t=!1){r.push(u=t?null:[])}function L(){r.pop(),u=r[r.length-1]||null}function Y(t){return t.dynamicChildren=u||O,L(),u&&u.push(t),t}function Z(t,s,n,c,l,e){return Y(T(t,s,n,c,l,e,!0))}function D(t){return t?t.__v_isVNode===!0:!1}const E="__vInternal",I=({key:t})=>t??null,_=({ref:t,ref_key:s,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?g(t)||x(t)||S(t)?{i:f,r:t,k:s,f:!!n}:t:null);function T(t,s=null,n=null,c=0,l=null,e=t===y?0:1,i=!1,a=!1){const o={__v_isVNode:!0,__v_skip:!0,type:t,props:s,key:s&&I(s),ref:s&&_(s),scopeId:z,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:e,patchFlag:c,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:f};return a?(F(o,n),e&128&&t.normalize(o)):n&&(o.shapeFlag|=g(n)?8:16),!i&&u&&(o.patchFlag>0||e&6)&&o.patchFlag!==32&&u.push(o),o}const V=P;function P(t,s=null,n=null,c=0,l=null,e=!1){if((!t||t===B)&&(t=G),D(t)){const a=C(t,s,!0);return n&&F(a,n),!e&&u&&(a.shapeFlag&6?u[u.indexOf(t)]=a:u.push(a)),a.patchFlag|=-2,a}if(J(t)&&(t=t.__vccOpts),s){s=q(s);let{class:a,style:o}=s;a&&!g(a)&&(s.class=N(a)),b(o)&&(k(o)&&!m(o)&&(o=h({},o)),s.style=p(o))}const i=g(t)?1:M(t)?128:j(t)?64:b(t)?4:S(t)?2:0;return T(t,s,n,c,l,i,e,!0)}function q(t){return t?k(t)||E in t?h({},t):t:null}function C(t,s,n=!1){const{props:c,ref:l,patchFlag:e,children:i}=t,a=s?H(c||{},s):c;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&I(a),ref:s&&s.ref?n&&l?m(l)?l.concat(_(s)):[l,_(s)]:_(s):l,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:i,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:s&&t.type!==y?e===-1?16:e|16:e,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&C(t.ssContent),ssFallback:t.ssFallback&&C(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function w(t=" ",s=0){return V(U,null,t,s)}function $(t,s){const n=V(K,null,t);return n.staticCount=s,n}function F(t,s){let n=0;const{shapeFlag:c}=t;if(s==null)s=null;else if(m(s))n=16;else if(typeof s=="object")if(c&65){const l=s.default;l&&(l._c&&(l._d=!1),F(t,l()),l._c&&(l._d=!0));return}else{n=32;const l=s._;!l&&!(E in s)?s._ctx=f:l===3&&f&&(f.slots._===1?s._=1:(s._=2,t.patchFlag|=1024))}else S(s)?(s={default:s,_ctx:f},n=32):(s=String(s),c&64?(n=16,s=[w(s)]):n=8);t.children=s,t.shapeFlag|=n}function H(...t){const s={};for(let n=0;n{let l;return(l=t[n])||(l=t[n]=[]),l.push(c),e=>{l.length>1?l.forEach(i=>i(e)):l[0](e)}};s("__VUE_INSTANCE_SETTERS__",n=>n),s("__VUE_SSR_SETTERS__",n=>n)}function J(t){return S(t)&&"__vccOpts"in t}export{$ as a,Z as c,X as o}; diff --git a/assets/@vue_runtime-core@3.4.19-9EfOi5Ir.js.gz b/assets/@vue_runtime-core@3.4.19-9EfOi5Ir.js.gz new file mode 100644 index 00000000..2b2cd45f Binary files /dev/null and b/assets/@vue_runtime-core@3.4.19-9EfOi5Ir.js.gz differ diff --git a/assets/@vue_runtime-dom@3.4.15-w40geAFS.js b/assets/@vue_runtime-dom@3.4.19-w40geAFS.js similarity index 100% rename from assets/@vue_runtime-dom@3.4.15-w40geAFS.js rename to assets/@vue_runtime-dom@3.4.19-w40geAFS.js diff --git a/assets/@vue_shared@3.4.15-JOA8BF6u.js.gz b/assets/@vue_shared@3.4.15-JOA8BF6u.js.gz deleted file mode 100644 index 889930bc..00000000 Binary files a/assets/@vue_shared@3.4.15-JOA8BF6u.js.gz and /dev/null differ diff --git a/assets/@vue_shared@3.4.15-JOA8BF6u.js b/assets/@vue_shared@3.4.19-Zz6ACxVX.js similarity index 97% rename from assets/@vue_shared@3.4.15-JOA8BF6u.js rename to assets/@vue_shared@3.4.19-Zz6ACxVX.js index 89240b1f..9a826630 100644 --- a/assets/@vue_shared@3.4.15-JOA8BF6u.js +++ b/assets/@vue_shared@3.4.19-Zz6ACxVX.js @@ -1,5 +1,5 @@ /** -* @vue/shared v3.4.15 +* @vue/shared v3.4.19 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const h=[],b=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),A=Object.assign,f=Array.isArray,C=t=>typeof t=="function",i=t=>typeof t=="string",E=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object";let c;const R=()=>c||(c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function a(t){if(f(t)){const o={};for(let n=0;n{if(n){const s=n.split(g);s.length>1&&(o[s[0].trim()]=s[1].trim())}}),o}function y(t){let o="";if(i(t))o=t;else if(f(t))for(let n=0;n{o.forEach(p=>p()),o.length=0},l=(p,d,i,u)=>(p.addEventListener(d,i,u),()=>p.removeEventListener(d,i,u)),m=VueDemi.watch(()=>[g(n),M(s)],([p,d])=>{if(c(),!p)return;const i=k(d)?{...d}:d;o.push(...t.flatMap(u=>r.map(f=>l(p,u,f,i))))},{immediate:!0,flush:"post"}),w=()=>{m(),c()};return I(w),w}let R=!1;function ee(e,n,t={}){const{window:r=S,ignore:s=[],capture:o=!0,detectIframe:c=!1}=t;if(!r)return N;x&&!R&&(R=!0,Array.from(r.document.body.children).forEach(i=>i.addEventListener("click",N)),r.document.documentElement.addEventListener("click",N));let l=!0;const m=i=>s.some(u=>{if(typeof u=="string")return Array.from(r.document.querySelectorAll(u)).some(f=>f===i.target||i.composedPath().includes(f));{const f=g(u);return f&&(i.target===f||i.composedPath().includes(f))}}),p=[b(r,"click",i=>{const u=g(e);if(!(!u||u===i.target||i.composedPath().includes(u))){if(i.detail===0&&(l=!m(i)),!l){l=!0;return}n(i)}},{passive:!0,capture:o}),b(r,"pointerdown",i=>{const u=g(e);l=!m(i)&&!!(u&&!i.composedPath().includes(u))},{passive:!0}),c&&b(r,"blur",i=>{setTimeout(()=>{var u;const f=g(e);((u=r.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(r.document.activeElement))&&n(i)},0)})].filter(Boolean);return()=>p.forEach(i=>i())}function B(){const e=VueDemi.ref(!1);return VueDemi.getCurrentInstance()&&VueDemi.onMounted(()=>{e.value=!0}),e}function z(e){const n=B();return VueDemi.computed(()=>(n.value,!!e()))}function Q(e,n={}){const{window:t=S}=n,r=z(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const o=VueDemi.ref(!1),c=w=>{o.value=w.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",c):s.removeListener(c))},m=VueDemi.watchEffect(()=>{r.value&&(l(),s=t.matchMedia(M(e)),"addEventListener"in s?s.addEventListener("change",c):s.addListener(c),o.value=s.matches)});return I(()=>{m(),l(),s=void 0}),o}const O=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},A="__vueuse_ssr_handlers__",Y=q();function q(){return A in O||(O[A]=O[A]||{}),O[A]}function K(e,n){return Y[e]||n}function $(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const G={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},T="vueuse-storage";function te(e,n,t,r={}){var s;const{flush:o="pre",deep:c=!0,listenToStorageChanges:l=!0,writeDefaults:m=!0,mergeDefaults:w=!1,shallow:p,window:d=S,eventFilter:i,onError:u=a=>{console.error(a)},initOnMounted:f}=r,y=(p?VueDemi.shallowRef:VueDemi.ref)(typeof n=="function"?n():n);if(!t)try{t=K("getDefaultStorage",()=>{var a;return(a=S)==null?void 0:a.localStorage})()}catch(a){u(a)}if(!t)return y;const v=M(n),L=$(v),D=(s=r.serializer)!=null?s:G[L],{pause:C,resume:W}=j(y,()=>F(y.value),{flush:o,deep:c,eventFilter:i});return d&&l&&_(()=>{b(d,"storage",E),b(d,T,J),f&&E()}),f||E(),y;function F(a){try{if(a==null)t.removeItem(e);else{const h=D.write(a),V=t.getItem(e);V!==h&&(t.setItem(e,h),d&&d.dispatchEvent(new CustomEvent(T,{detail:{key:e,oldValue:V,newValue:h,storageArea:t}})))}}catch(h){u(h)}}function P(a){const h=a?a.newValue:t.getItem(e);if(h==null)return m&&v!=null&&t.setItem(e,D.write(v)),v;if(!a&&w){const V=D.read(h);return typeof w=="function"?w(V,v):L==="object"&&!Array.isArray(V)?{...v,...V}:V}else return typeof h!="string"?h:D.read(h)}function J(a){E(a.detail)}function E(a){if(!(a&&a.storageArea!==t)){if(a&&a.key==null){y.value=v;return}if(!(a&&a.key!==e)){C();try{(a==null?void 0:a.newValue)!==D.write(y.value)&&(y.value=P(a))}catch(h){u(h)}finally{a?VueDemi.nextTick(W):W()}}}}}function U(e,n,t={}){const{window:r=S,...s}=t;let o;const c=z(()=>r&&"MutationObserver"in r),l=()=>{o&&(o.disconnect(),o=void 0)},m=VueDemi.watch(()=>g(e),d=>{l(),c.value&&r&&d&&(o=new MutationObserver(n),o.observe(d,s))},{immediate:!0}),w=()=>o==null?void 0:o.takeRecords(),p=()=>{l(),m()};return I(p),{isSupported:c,stop:p,takeRecords:w}}function X(e,n,t={}){const{window:r=S,...s}=t;let o;const c=z(()=>r&&"ResizeObserver"in r),l=()=>{o&&(o.disconnect(),o=void 0)},m=VueDemi.computed(()=>Array.isArray(e)?e.map(d=>g(d)):[g(e)]),w=VueDemi.watch(m,d=>{if(l(),c.value&&r){o=new ResizeObserver(n);for(const i of d)i&&o.observe(i,s)}},{immediate:!0,flush:"post",deep:!0}),p=()=>{l(),w()};return I(p),{isSupported:c,stop:p}}function ne(e,n={}){const{reset:t=!0,windowResize:r=!0,windowScroll:s=!0,immediate:o=!0}=n,c=VueDemi.ref(0),l=VueDemi.ref(0),m=VueDemi.ref(0),w=VueDemi.ref(0),p=VueDemi.ref(0),d=VueDemi.ref(0),i=VueDemi.ref(0),u=VueDemi.ref(0);function f(){const y=g(e);if(!y){t&&(c.value=0,l.value=0,m.value=0,w.value=0,p.value=0,d.value=0,i.value=0,u.value=0);return}const v=y.getBoundingClientRect();c.value=v.height,l.value=v.bottom,m.value=v.left,w.value=v.right,p.value=v.top,d.value=v.width,i.value=v.x,u.value=v.y}return X(e,f),VueDemi.watch(()=>g(e),y=>!y&&f()),U(e,f,{attributeFilter:["style","class"]}),s&&b("scroll",f,{capture:!0,passive:!0}),r&&b("resize",f,{passive:!0}),_(()=>{o&&f()}),{height:c,bottom:l,left:m,right:w,top:p,width:d,x:i,y:u,update:f}}function re(e={}){const{window:n=S,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:o=!0}=e,c=VueDemi.ref(t),l=VueDemi.ref(r),m=()=>{n&&(o?(c.value=n.innerWidth,l.value=n.innerHeight):(c.value=n.document.documentElement.clientWidth,l.value=n.document.documentElement.clientHeight))};if(m(),_(m),b("resize",m,{passive:!0}),s){const w=Q("(orientation: portrait)");VueDemi.watch(w,()=>m())}return{width:c,height:l}}export{X as a,re as b,ne as c,te as d,ee as o,b as u}; +import{t as M,w as j,a as _,i as H,n as N,b as k,c as I,d as x}from"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";function g(e){var n;const t=M(e);return(n=t==null?void 0:t.$el)!=null?n:t}const S=H?window:void 0;function b(...e){let n,t,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,r,s]=e,n=S):[n,t,r,s]=e,!n)return N;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const o=[],c=()=>{o.forEach(p=>p()),o.length=0},l=(p,d,i,u)=>(p.addEventListener(d,i,u),()=>p.removeEventListener(d,i,u)),m=VueDemi.watch(()=>[g(n),M(s)],([p,d])=>{if(c(),!p)return;const i=k(d)?{...d}:d;o.push(...t.flatMap(u=>r.map(f=>l(p,u,f,i))))},{immediate:!0,flush:"post"}),w=()=>{m(),c()};return I(w),w}let R=!1;function ee(e,n,t={}){const{window:r=S,ignore:s=[],capture:o=!0,detectIframe:c=!1}=t;if(!r)return N;x&&!R&&(R=!0,Array.from(r.document.body.children).forEach(i=>i.addEventListener("click",N)),r.document.documentElement.addEventListener("click",N));let l=!0;const m=i=>s.some(u=>{if(typeof u=="string")return Array.from(r.document.querySelectorAll(u)).some(f=>f===i.target||i.composedPath().includes(f));{const f=g(u);return f&&(i.target===f||i.composedPath().includes(f))}}),p=[b(r,"click",i=>{const u=g(e);if(!(!u||u===i.target||i.composedPath().includes(u))){if(i.detail===0&&(l=!m(i)),!l){l=!0;return}n(i)}},{passive:!0,capture:o}),b(r,"pointerdown",i=>{const u=g(e);l=!m(i)&&!!(u&&!i.composedPath().includes(u))},{passive:!0}),c&&b(r,"blur",i=>{setTimeout(()=>{var u;const f=g(e);((u=r.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(r.document.activeElement))&&n(i)},0)})].filter(Boolean);return()=>p.forEach(i=>i())}function B(){const e=VueDemi.ref(!1);return VueDemi.getCurrentInstance()&&VueDemi.onMounted(()=>{e.value=!0}),e}function z(e){const n=B();return VueDemi.computed(()=>(n.value,!!e()))}function Q(e,n={}){const{window:t=S}=n,r=z(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const o=VueDemi.ref(!1),c=w=>{o.value=w.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",c):s.removeListener(c))},m=VueDemi.watchEffect(()=>{r.value&&(l(),s=t.matchMedia(M(e)),"addEventListener"in s?s.addEventListener("change",c):s.addListener(c),o.value=s.matches)});return I(()=>{m(),l(),s=void 0}),o}const O=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},A="__vueuse_ssr_handlers__",Y=q();function q(){return A in O||(O[A]=O[A]||{}),O[A]}function K(e,n){return Y[e]||n}function $(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const G={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},T="vueuse-storage";function te(e,n,t,r={}){var s;const{flush:o="pre",deep:c=!0,listenToStorageChanges:l=!0,writeDefaults:m=!0,mergeDefaults:w=!1,shallow:p,window:d=S,eventFilter:i,onError:u=a=>{console.error(a)},initOnMounted:f}=r,y=(p?VueDemi.shallowRef:VueDemi.ref)(typeof n=="function"?n():n);if(!t)try{t=K("getDefaultStorage",()=>{var a;return(a=S)==null?void 0:a.localStorage})()}catch(a){u(a)}if(!t)return y;const v=M(n),L=$(v),D=(s=r.serializer)!=null?s:G[L],{pause:C,resume:W}=j(y,()=>F(y.value),{flush:o,deep:c,eventFilter:i});return d&&l&&_(()=>{b(d,"storage",E),b(d,T,J),f&&E()}),f||E(),y;function F(a){try{if(a==null)t.removeItem(e);else{const h=D.write(a),V=t.getItem(e);V!==h&&(t.setItem(e,h),d&&d.dispatchEvent(new CustomEvent(T,{detail:{key:e,oldValue:V,newValue:h,storageArea:t}})))}}catch(h){u(h)}}function P(a){const h=a?a.newValue:t.getItem(e);if(h==null)return m&&v!=null&&t.setItem(e,D.write(v)),v;if(!a&&w){const V=D.read(h);return typeof w=="function"?w(V,v):L==="object"&&!Array.isArray(V)?{...v,...V}:V}else return typeof h!="string"?h:D.read(h)}function J(a){E(a.detail)}function E(a){if(!(a&&a.storageArea!==t)){if(a&&a.key==null){y.value=v;return}if(!(a&&a.key!==e)){C();try{(a==null?void 0:a.newValue)!==D.write(y.value)&&(y.value=P(a))}catch(h){u(h)}finally{a?VueDemi.nextTick(W):W()}}}}}function U(e,n,t={}){const{window:r=S,...s}=t;let o;const c=z(()=>r&&"MutationObserver"in r),l=()=>{o&&(o.disconnect(),o=void 0)},m=VueDemi.watch(()=>g(e),d=>{l(),c.value&&r&&d&&(o=new MutationObserver(n),o.observe(d,s))},{immediate:!0}),w=()=>o==null?void 0:o.takeRecords(),p=()=>{l(),m()};return I(p),{isSupported:c,stop:p,takeRecords:w}}function X(e,n,t={}){const{window:r=S,...s}=t;let o;const c=z(()=>r&&"ResizeObserver"in r),l=()=>{o&&(o.disconnect(),o=void 0)},m=VueDemi.computed(()=>Array.isArray(e)?e.map(d=>g(d)):[g(e)]),w=VueDemi.watch(m,d=>{if(l(),c.value&&r){o=new ResizeObserver(n);for(const i of d)i&&o.observe(i,s)}},{immediate:!0,flush:"post",deep:!0}),p=()=>{l(),w()};return I(p),{isSupported:c,stop:p}}function ne(e,n={}){const{reset:t=!0,windowResize:r=!0,windowScroll:s=!0,immediate:o=!0}=n,c=VueDemi.ref(0),l=VueDemi.ref(0),m=VueDemi.ref(0),w=VueDemi.ref(0),p=VueDemi.ref(0),d=VueDemi.ref(0),i=VueDemi.ref(0),u=VueDemi.ref(0);function f(){const y=g(e);if(!y){t&&(c.value=0,l.value=0,m.value=0,w.value=0,p.value=0,d.value=0,i.value=0,u.value=0);return}const v=y.getBoundingClientRect();c.value=v.height,l.value=v.bottom,m.value=v.left,w.value=v.right,p.value=v.top,d.value=v.width,i.value=v.x,u.value=v.y}return X(e,f),VueDemi.watch(()=>g(e),y=>!y&&f()),U(e,f,{attributeFilter:["style","class"]}),s&&b("scroll",f,{capture:!0,passive:!0}),r&&b("resize",f,{passive:!0}),_(()=>{o&&f()}),{height:c,bottom:l,left:m,right:w,top:p,width:d,x:i,y:u,update:f}}function re(e={}){const{window:n=S,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:o=!0}=e,c=VueDemi.ref(t),l=VueDemi.ref(r),m=()=>{n&&(o?(c.value=n.innerWidth,l.value=n.innerHeight):(c.value=n.document.documentElement.clientWidth,l.value=n.document.documentElement.clientHeight))};if(m(),_(m),b("resize",m,{passive:!0}),s){const w=Q("(orientation: portrait)");VueDemi.watch(w,()=>m())}return{width:c,height:l}}export{X as a,re as b,ne as c,te as d,ee as o,b as u}; diff --git a/assets/@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js.gz b/assets/@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js.gz new file mode 100644 index 00000000..e6570dbd Binary files /dev/null and b/assets/@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js.gz differ diff --git a/assets/@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js b/assets/@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js similarity index 100% rename from assets/@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js rename to assets/@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js diff --git a/assets/@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js.gz b/assets/@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js.gz similarity index 100% rename from assets/@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js.gz rename to assets/@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js.gz diff --git a/assets/echarts@5.4.3-Vt5ZmFiA.js b/assets/echarts@5.4.3-94QNkbi2.js similarity index 89% rename from assets/echarts@5.4.3-Vt5ZmFiA.js rename to assets/echarts@5.4.3-94QNkbi2.js index 5338e58a..72e746db 100644 --- a/assets/echarts@5.4.3-Vt5ZmFiA.js +++ b/assets/echarts@5.4.3-94QNkbi2.js @@ -1,28 +1,28 @@ -import{i as G,r as Da,m as z,c as W,e as w,a as oe,b as st,d as H,f as se,g as mo,h as E,j as ce,k as eg,l as O,n as $,L as Hf,o as On,p as Be,P as _e,q as Sl,s as tg,t as ue,u as rg,v as te,Z as Or,w as gt,x as ng,y as ag,z as ig,A as og,B as Uf,C as yo,T as Yf,D as vs,E as er,F as sg,G as Ha,H as $f,S as or,R as Xf,I as hs,J as Nn,K as ve,M as tr,N as Zf,O as ds,Q as Ne,U as lg,V as pe,W as ug,X as Kf,Y as Aa,_ as be,$ as cg,a0 as we,a1 as Bn,a2 as Z,a3 as X,a4 as St,a5 as fg,a6 as Fe,a7 as Q,a8 as He,a9 as xe,aa as ae,ab as Ma,ac as vg,ad as mt,ae as _o,af as hg,ag as qf,ah as dg,ai as Vn,aj as xl,ak as yi,al as pg,am as So,an as xo,ao as gg,ap as ps,aq as jf,ar as bl,as as _i,at as mg,au as yg,av as on,aw as Dr,ax as Qf,ay as _g,az as Sg,aA as xg,aB as Jf,aC as wl,aD as bg,aE as wg,aF as Cg,aG as Tg,aH as Dg,aI as Cl,aJ as Tl,aK as Ag,aL as Mg,aM as Ig,aN as Lg,aO as Pg,aP as Rg,aQ as kg,aR as Eg,aS as Og}from"./zrender@5.4.4-fafgp4mQ.js";import{_ as N}from"./tslib@2.3.0-21A5UWR7.js";var Dl=1e-4,ev=20;function Ng(r){return r.replace(/^\s+|\s+$/g,"")}function Ot(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function ee(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?Ng(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function ye(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),ev),r=(+r).toFixed(t),e?r:+r}function Bg(r){return r.sort(function(t,e){return t-e}),r}function dt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Vg(r)}function Vg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function tv(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function zg(r,t){var e=Da(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=z(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=z(a,function(v){return Math.floor(v)}),s=Da(o,function(v,d){return v+d},0),l=z(a,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return z(o,function(v){return v/n})}function Gg(r,t){var e=Math.max(dt(r),dt(t)),n=r+t;return e>ev?n:ye(n,e)}function rv(r){var t=Math.PI*2;return(r%t+t)%t}function Ia(r){return r>-Dl&&r=10&&t++,t}function nv(r,t){var e=gs(r),n=Math.pow(10,e),a=r/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Vt(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function av(r){return!isNaN(Vt(r))}function iv(){return Math.round(Math.random()*9)}function ov(r,t){return t===0?r:ov(t,r%t)}function Al(r,t){return r==null?t:t==null?r:r*t/ov(r,t)}function j(r){throw new Error(r)}function Ml(r,t,e){return(t-r)*e+r}var sv="series\0",lv="\0_ec_\0";function he(r){return r instanceof Array?r:r==null?[]:[r]}function bo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0||i&&oe(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var vm=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],hm=xn(vm),dm=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return hm(this,t,e)},r}(),J=le(),pm=function(r,t,e,n){if(n){var a=J(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,n.type==="group"&&n.traverse(function(i){var o=J(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},Ll=1,Pl={},dv=le(),Ss=le(),xs=0,Ya=1,$a=2,Ue=["emphasis","blur","select"],La=["normal","emphasis","blur","select"],gm=10,mm=9,jt="highlight",ma="downplay",hn="select",ya="unselect",dn="toggleSelect";function cr(r){return r!=null&&r!=="none"}var Rl=new Hf(100);function kl(r){if(G(r)){var t=Rl.get(r);return t||(t=Sl(r,-.1),Rl.put(r,t)),t}else if(tg(r)){var e=O({},r);return e.colorStops=z(r.colorStops,function(n){return{offset:n.offset,color:Sl(n.color,-.1)}}),e}return r}function Xa(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function pv(r){Xa(r,"emphasis",$a)}function gv(r){r.hoverState===$a&&Xa(r,"normal",xs)}function bs(r){Xa(r,"blur",Ya)}function mv(r){r.hoverState===Ya&&Xa(r,"normal",xs)}function ym(r){r.selected=!0}function _m(r){r.selected=!1}function El(r,t,e){t(r,e)}function xt(r,t,e){El(r,t,e),r.isGroup&&r.traverse(function(n){El(n,t,e)})}function Ol(r,t){switch(t){case"emphasis":r.hoverState=$a;break;case"normal":r.hoverState=xs;break;case"blur":r.hoverState=Ya;break;case"select":r.selected=!0}}function Sm(r,t,e,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof _e){var o=dv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(cr(s)||cr(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=O({},n),u=O({},u),u.fill=s):!cr(u.fill)&&cr(s)?(i=!0,n=O({},n),u=O({},u),u.fill=kl(s)):!cr(u.stroke)&&cr(l)&&(i||(n=O({},n),u=O({},u)),u.stroke=kl(l)),n.style=u}}if(n&&n.z2==null){i||(n=O({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c??gm)}return n}function bm(r,t,e){if(e&&e.z2==null){e=O({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??mm)}return e}function wm(r,t,e){var n=oe(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:Sm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=O({},e),o=O({opacity:n?a:i.opacity*.1},o),e.style=o),e}function Si(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return xm(this,r,t,e);if(r==="blur")return wm(this,r,e);if(r==="select")return bm(this,r,e)}return e}function Cm(r){r.stateProxy=Si;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Si),e&&(e.stateProxy=Si)}function Nl(r,t){!xv(r,t)&&!r.__highByOuter&&xt(r,pv)}function Bl(r,t){!xv(r,t)&&!r.__highByOuter&&xt(r,gv)}function Ar(r,t){r.__highByOuter|=1<<(t||0),xt(r,pv)}function Mr(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&xt(r,gv)}function Tm(r){xt(r,bs)}function yv(r){xt(r,mv)}function _v(r){xt(r,ym)}function Sv(r){xt(r,_m)}function xv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function bv(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=Ss(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){mv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function wo(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function To(r,t,e){wv(r,!0),xt(r,Cm),Rm(r,t,e)}function Pm(r){wv(r,!1)}function Ir(r,t,e,n){n?Pm(r):To(r,t,e)}function Rm(r,t,e){var n=J(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var zl=["emphasis","blur","select"],km={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function bn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function ge(r,t,e,n,a,i){Cs("update",r,t,e,n,a,i)}function De(r,t,e,n,a,i){Cs("enter",r,t,e,n,a,i)}function xr(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Wl(r){return!r.isGroup}function Hm(r){return r.shape!=null}function Iv(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Wl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Hm(o)&&(s.shape=O({},o.shape)),s}var i=n(r);t.traverse(function(o){if(Wl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ge(o,l,e,J(o).dataIndex)}}})}function Lv(r,t){return z(r,function(e){var n=e[0];n=Ra(n,t.x),n=ka(n,t.x+t.width);var a=e[1];return a=Ra(a,t.y),a=ka(a,t.y+t.height),[n,a]})}function Um(r,t){var e=Ra(r.x,t.x),n=ka(r.x+r.width,t.x+t.width),a=Ra(r.y,t.y),i=ka(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function qa(r,t,e){var n=O({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),te(a,e),new Or(n)):Ts(r.replace("path://",""),n,e,"center")}function Ym(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=xi(v,d,c,f)/h;return!(m<0||m>1)}function xi(r,t,e,n){return r*n-e*t}function $m(r){return r<=1e-6&&r>=-1e-6}function ja(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=G(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Be(l),function(c){gt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=J(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:te({content:n,formatterParams:s},a)}}function Hl(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Fn(r,t){if(r)if(E(r))for(var e=0;e=0&&s.push(l)}),s}}function Is(r,t){return Z(Z({},r,!0),t,!0)}const ly={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},uy={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Ea="ZH",Ls="EN",Tn=Ls,Sa={},Ps={},Ov=ce.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Ea)>-1?Ea:Tn}():Tn;function Nv(r,t){r=r.toUpperCase(),Ps[r]=new Te(t),Sa[r]=t}function cy(r){if(G(r)){var t=Sa[r.toUpperCase()]||{};return r===Ea||r===Ls?X(t):Z(X(t),X(Sa[Tn]),!1)}else return Z(X(r),X(Sa[Tn]),!1)}function fy(r){return Ps[r]}function vy(){return Ps[Tn]}Nv(Ls,ly);Nv(Ea,uy);var Rs=1e3,ks=Rs*60,pn=ks*60,We=pn*24,Kl=We*365,sn={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Kn="{yyyy}-{MM}-{dd}",ql={year:"{yyyy}",month:"{yyyy}-{MM}",day:Kn,hour:Kn+" "+sn.hour,minute:Kn+" "+sn.minute,second:Kn+" "+sn.second,millisecond:sn.none},Ci=["year","month","day","hour","minute","second","millisecond"],Bv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dt(r,t){return r+="","0000".substr(0,t-r.length)+r}function br(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function hy(r){return r===br(r)}function dy(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ja(r,t,e,n){var a=yt(r),i=a[Es(e)](),o=a[wr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[ei(e)](),u=a["get"+(e?"UTC":"")+"Day"](),c=a[Dn(e)](),f=(c-1)%12+1,h=a[ti(e)](),v=a[ri(e)](),d=a[ni(e)](),p=n instanceof Te?n:fy(n||Ov)||vy(),m=p.getModel("time"),g=m.get("month"),y=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Dt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Dt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Dt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Dt(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Dt(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Dt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Dt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Dt(d,3)).replace(/{S}/g,d+"")}function py(r,t,e,n,a){var i=null;if(G(e))i=e;else if($(e))i=e(r.value,t,{level:r.level});else{var o=O({},sn);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(E(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return Ja(new Date(r.value),i,a,n)}function Vv(r,t){var e=yt(r),n=e[wr(t)]()+1,a=e[ei(t)](),i=e[Dn(t)](),o=e[ti(t)](),s=e[ri(t)](),l=e[ni(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function jl(r,t,e){var n=se(r)?yt(r):r;switch(t=t||Vv(r,e),t){case"year":return n[Es(e)]();case"half-year":return n[wr(e)]()>=6?1:0;case"quarter":return Math.floor((n[wr(e)]()+1)/4);case"month":return n[wr(e)]();case"day":return n[ei(e)]();case"half-day":return n[Dn(e)]()/24;case"hour":return n[Dn(e)]();case"minute":return n[ti(e)]();case"second":return n[ri(e)]();case"millisecond":return n[ni(e)]()}}function Es(r){return r?"getUTCFullYear":"getFullYear"}function wr(r){return r?"getUTCMonth":"getMonth"}function ei(r){return r?"getUTCDate":"getDate"}function Dn(r){return r?"getUTCHours":"getHours"}function ti(r){return r?"getUTCMinutes":"getMinutes"}function ri(r){return r?"getUTCSeconds":"getSeconds"}function ni(r){return r?"getUTCMilliseconds":"getMilliseconds"}function gy(r){return r?"setUTCFullYear":"setFullYear"}function zv(r){return r?"setUTCMonth":"setMonth"}function Gv(r){return r?"setUTCDate":"setDate"}function Fv(r){return r?"setUTCHours":"setHours"}function Wv(r){return r?"setUTCMinutes":"setMinutes"}function Hv(r){return r?"setUTCSeconds":"setSeconds"}function Uv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Yv(r){if(!av(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function $v(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ai=fg;function Lo(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Bn(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?yt(r):r;if(isNaN(+l)){if(s)return"-"}else return Ja(l,n,e)}if(t==="ordinal")return mo(r)?a(r):se(r)&&i(r)?r+"":"-";var u=Vt(r);return i(u)?Yv(u):mo(r)?a(r):typeof r=="boolean"?r+"":"-"}var Ql=["a","b","c","d","e","f","g"],Ti=function(r,t){return"{"+r+(t??"")+"}"};function Xv(r,t,e){E(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function nr(r,t){return t=t||"transparent",G(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Jl(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var xa=w,yy=["left","right","top","bottom","width","height"],qn=[["width","left","right"],["height","top","bottom"]];function Os(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.y+c.y:0);d=o+m,d>a||l.newline?(i+=s+e,o=0,d=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Cr=Os;Q(Os,"vertical");Q(Os,"horizontal");function Gt(r,t,e){e=ai(e||0);var n=t.width,a=t.height,i=ee(r.left,n),o=ee(r.top,a),s=ee(r.right,n),l=ee(r.bottom,a),u=ee(r.width,n),c=ee(r.height,a),f=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-c-f),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-c/2-e[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var d=new Ne(i+e[3],o+e[0],u,c);return d.margin=e,d}function _y(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Ne(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Gt(te({width:u.width,height:u.height},t),e,n),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function An(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Lr(r,t,e){var n=e&&e.ignoreSize;!E(n)&&(n=[n,n]);var a=o(qn[0],0),i=o(qn[1],1);u(qn[0],r,a),u(qn[1],r,i);function o(c,f){var h={},v=0,d={},p=0,m=2;if(xa(c,function(_){d[_]=r[_]}),xa(c,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(p===m||!v)return d;if(v>=m)return h;for(var g=0;g=0;l--)s=Z(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Gn(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Te);hv(zr,Te);Ua(zr);oy(zr);sy(zr,by);function by(r){var t=[];return w(zr.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return rt(e).main}),r!=="dataset"&&oe(t,"dataset")<=0&&t.unshift("dataset"),t}const ie=zr;var Zv="";typeof navigator<"u"&&(Zv=navigator.platform||"");var fr="rgba(0, 0, 0, 0.2)";const wy={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:fr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Zv.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Kv=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),$e="original",ke="arrayRows",Xe="objectRows",ut="keyedColumns",Bt="typedArray",qv="unknown",ot="column",Gr="row",Ce={Must:1,Might:2,Not:3},jv=le();function Cy(r){jv(r).datasetMap=W()}function Qv(r,t,e){var n={},a=Ns(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=jv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),w(r,function(p,m){var g=H(p)?p:r[m]={name:p};g.type==="ordinal"&&c==null&&(c=m,f=d(g)),n[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});w(r,function(p,m){var g=p.name,y=d(p);if(c==null){var _=h.valueWayDim;v(n[g],_,y),v(o,_,y),h.valueWayDim+=y}else if(c===m)v(n[g],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[g],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,m,g){for(var y=0;yt)return r[n];return r[e-1]}function th(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?e:Ly(n,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function Py(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var jn,Yr,ru,nu="\0_ec_inner",Ry=1,rh=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Te(i),this._locale=new Te(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=ou(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,ou(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?ru(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=W(),u=n&&n.replaceMergeMainTypeMap;Cy(this),w(e,function(f,h){f!=null&&(ie.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?X(f):Z(a[h],f,!0))}),u&&u.each(function(f,h){ie.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ie.topologicalTravel(s,ie.getAllClassMainTypes(),c,this);function c(f){var h=My(this,f,he(e[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Ug(v,h,d);Qg(p,f,ie),a[f]=null,i.set(f,null),o.set(f,0);var m=[],g=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=f==="series",A=ie.getClass(f,S.keyInfo.subType,!T);if(!A)return;if(f==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var M=O({componentIndex:b},S.keyInfo);x=new A(C,this,this,M),O(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(m.push(x.option),g.push(x),y++):(m.push(void 0),g.push(void 0))},this),a[f]=m,i.set(f,g),o.set(f,y),f==="series"&&jn(this)}this._seriesIndices||jn(this)},t.prototype.getOption=function(){var e=X(this.option);return w(e,function(n,a){if(ie.hasClass(a)){for(var i=he(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Sn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[nu],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Hy(r,t){return r.join(",")===t.join(",")}const Uy=zy;var Ze=w,Mn=H,su=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ai(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=su.length;e=0;m--){var g=r[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Gg(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var oi=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||qv,this.seriesLayoutBy=t.seriesLayoutBy||ot,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};du=(t={},t[ke+"_"+ot]={pure:!0,appendData:i},t[ke+"_"+Gr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Xe]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[$e]={appendData:i},t[Bt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Pr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function yu(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function gn(r){return new l0(r)}var l0=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},c0=function(){function r(t,e){if(!se(e)){var n="";j(n)}this._opFn=dh[t],this._rvalFloat=Vt(e)}return r.prototype.evaluate=function(t){return se(t)?this._opFn(t,this._rvalFloat):this._opFn(Vt(t),this._rvalFloat)},r}(),ph=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=se(t)?t:Vt(t),a=se(e)?e:Vt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=G(t),l=G(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),f0=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Vt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Vt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function v0(r,t){return r==="eq"||r==="ne"?new f0(r==="eq",t):gt(dh,r)?new c0(r,t):null}var h0=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ba(t,e)},r}();function d0(r,t){var e=new h0,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ot&&j(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,m){var g=p.name,y={index:m,name:g,displayName:p.displayName};if(s.push(y),g!=null){var _="";gt(l,g)&&j(_),l[g]=y}});else for(var c=0;c65535?b0:w0}function vr(){return[1/0,-1/0]}function C0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function xu(r,t,e,n,a){var i=yh[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;um[1]&&(m[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(y){return y.property}),c=0;cg[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var m=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],g=0;g=f&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var g=0;g=f&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var g=0;gt[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(g))}return ug[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,f,h,v=new(Xr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=S)}D>0&&Dc-d&&(l=c-d,s.length=l);for(var p=0;pf[1]&&(f[1]=g),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return ba(e[i],this._dimensions[i])}Li={arrayRows:t,objectRows:function(e,n,a,i){return ba(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return ba(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),_h=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(Qn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=He(s)?Bt:$e,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=ue(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=ue(f.sourceHeader,h.sourceHeader),p=ue(f.dimensions,h.dimensions),m=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=m?[Ro(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=g.get("source",!0);a=[Ro(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&wu(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&wu(f),s.push(c),l.push(u._getVersionSign())}),n?o=S0(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[e0(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function ee(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?Ng(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function ye(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),ev),r=(+r).toFixed(t),e?r:+r}function Bg(r){return r.sort(function(t,e){return t-e}),r}function dt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Vg(r)}function Vg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function tv(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function zg(r,t){var e=Da(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=z(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=z(a,function(v){return Math.floor(v)}),s=Da(o,function(v,d){return v+d},0),l=z(a,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return z(o,function(v){return v/n})}function Gg(r,t){var e=Math.max(dt(r),dt(t)),n=r+t;return e>ev?n:ye(n,e)}function rv(r){var t=Math.PI*2;return(r%t+t)%t}function Ia(r){return r>-Dl&&r=10&&t++,t}function nv(r,t){var e=gs(r),n=Math.pow(10,e),a=r/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Vt(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function av(r){return!isNaN(Vt(r))}function iv(){return Math.round(Math.random()*9)}function ov(r,t){return t===0?r:ov(t,r%t)}function Al(r,t){return r==null?t:t==null?r:r*t/ov(r,t)}function j(r){throw new Error(r)}function Ml(r,t,e){return(t-r)*e+r}var sv="series\0",lv="\0_ec_\0";function he(r){return r instanceof Array?r:r==null?[]:[r]}function bo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0||i&&oe(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var vm=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],hm=xn(vm),dm=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return hm(this,t,e)},r}(),J=le(),pm=function(r,t,e,n){if(n){var a=J(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,n.type==="group"&&n.traverse(function(i){var o=J(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},Ll=1,Pl={},dv=le(),Ss=le(),xs=0,Ya=1,$a=2,Ue=["emphasis","blur","select"],La=["normal","emphasis","blur","select"],gm=10,mm=9,jt="highlight",ma="downplay",hn="select",ya="unselect",dn="toggleSelect";function cr(r){return r!=null&&r!=="none"}var Rl=new Hf(100);function kl(r){if(G(r)){var t=Rl.get(r);return t||(t=Sl(r,-.1),Rl.put(r,t)),t}else if(tg(r)){var e=O({},r);return e.colorStops=z(r.colorStops,function(n){return{offset:n.offset,color:Sl(n.color,-.1)}}),e}return r}function Xa(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function pv(r){Xa(r,"emphasis",$a)}function gv(r){r.hoverState===$a&&Xa(r,"normal",xs)}function bs(r){Xa(r,"blur",Ya)}function mv(r){r.hoverState===Ya&&Xa(r,"normal",xs)}function ym(r){r.selected=!0}function _m(r){r.selected=!1}function El(r,t,e){t(r,e)}function xt(r,t,e){El(r,t,e),r.isGroup&&r.traverse(function(n){El(n,t,e)})}function Ol(r,t){switch(t){case"emphasis":r.hoverState=$a;break;case"normal":r.hoverState=xs;break;case"blur":r.hoverState=Ya;break;case"select":r.selected=!0}}function Sm(r,t,e,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof _e){var o=dv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(cr(s)||cr(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=O({},n),u=O({},u),u.fill=s):!cr(u.fill)&&cr(s)?(i=!0,n=O({},n),u=O({},u),u.fill=kl(s)):!cr(u.stroke)&&cr(l)&&(i||(n=O({},n),u=O({},u)),u.stroke=kl(l)),n.style=u}}if(n&&n.z2==null){i||(n=O({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c??gm)}return n}function bm(r,t,e){if(e&&e.z2==null){e=O({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??mm)}return e}function wm(r,t,e){var n=oe(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:Sm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=O({},e),o=O({opacity:n?a:i.opacity*.1},o),e.style=o),e}function Si(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return xm(this,r,t,e);if(r==="blur")return wm(this,r,e);if(r==="select")return bm(this,r,e)}return e}function Cm(r){r.stateProxy=Si;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Si),e&&(e.stateProxy=Si)}function Nl(r,t){!xv(r,t)&&!r.__highByOuter&&xt(r,pv)}function Bl(r,t){!xv(r,t)&&!r.__highByOuter&&xt(r,gv)}function Ar(r,t){r.__highByOuter|=1<<(t||0),xt(r,pv)}function Mr(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&xt(r,gv)}function Tm(r){xt(r,bs)}function yv(r){xt(r,mv)}function _v(r){xt(r,ym)}function Sv(r){xt(r,_m)}function xv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function bv(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=Ss(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){mv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function wo(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function To(r,t,e){wv(r,!0),xt(r,Cm),Rm(r,t,e)}function Pm(r){wv(r,!1)}function Ir(r,t,e,n){n?Pm(r):To(r,t,e)}function Rm(r,t,e){var n=J(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var zl=["emphasis","blur","select"],km={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function bn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function ge(r,t,e,n,a,i){Cs("update",r,t,e,n,a,i)}function De(r,t,e,n,a,i){Cs("enter",r,t,e,n,a,i)}function xr(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Wl(r){return!r.isGroup}function Hm(r){return r.shape!=null}function Iv(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Wl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Hm(o)&&(s.shape=O({},o.shape)),s}var i=n(r);t.traverse(function(o){if(Wl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ge(o,l,e,J(o).dataIndex)}}})}function Lv(r,t){return z(r,function(e){var n=e[0];n=Ra(n,t.x),n=ka(n,t.x+t.width);var a=e[1];return a=Ra(a,t.y),a=ka(a,t.y+t.height),[n,a]})}function Um(r,t){var e=Ra(r.x,t.x),n=ka(r.x+r.width,t.x+t.width),a=Ra(r.y,t.y),i=ka(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function qa(r,t,e){var n=O({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),te(a,e),new Or(n)):Ts(r.replace("path://",""),n,e,"center")}function Ym(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=xi(v,d,c,f)/h;return!(m<0||m>1)}function xi(r,t,e,n){return r*n-e*t}function $m(r){return r<=1e-6&&r>=-1e-6}function ja(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=G(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Be(l),function(c){gt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=J(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:te({content:n,formatterParams:s},a)}}function Hl(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Fn(r,t){if(r)if(E(r))for(var e=0;e=0&&s.push(l)}),s}}function Is(r,t){return Z(Z({},r,!0),t,!0)}const ly={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},uy={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Ea="ZH",Ls="EN",Tn=Ls,Sa={},Ps={},Ov=ce.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Ea)>-1?Ea:Tn}():Tn;function Nv(r,t){r=r.toUpperCase(),Ps[r]=new Te(t),Sa[r]=t}function cy(r){if(G(r)){var t=Sa[r.toUpperCase()]||{};return r===Ea||r===Ls?X(t):Z(X(t),X(Sa[Tn]),!1)}else return Z(X(r),X(Sa[Tn]),!1)}function fy(r){return Ps[r]}function vy(){return Ps[Tn]}Nv(Ls,ly);Nv(Ea,uy);var Rs=1e3,ks=Rs*60,pn=ks*60,We=pn*24,Kl=We*365,sn={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Kn="{yyyy}-{MM}-{dd}",ql={year:"{yyyy}",month:"{yyyy}-{MM}",day:Kn,hour:Kn+" "+sn.hour,minute:Kn+" "+sn.minute,second:Kn+" "+sn.second,millisecond:sn.none},Ci=["year","month","day","hour","minute","second","millisecond"],Bv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dt(r,t){return r+="","0000".substr(0,t-r.length)+r}function br(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function hy(r){return r===br(r)}function dy(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ja(r,t,e,n){var a=yt(r),i=a[Es(e)](),o=a[wr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[ei(e)](),u=a["get"+(e?"UTC":"")+"Day"](),c=a[Dn(e)](),f=(c-1)%12+1,h=a[ti(e)](),v=a[ri(e)](),d=a[ni(e)](),p=n instanceof Te?n:fy(n||Ov)||vy(),m=p.getModel("time"),g=m.get("month"),y=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Dt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Dt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Dt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Dt(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Dt(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Dt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Dt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Dt(d,3)).replace(/{S}/g,d+"")}function py(r,t,e,n,a){var i=null;if(G(e))i=e;else if($(e))i=e(r.value,t,{level:r.level});else{var o=O({},sn);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(E(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return Ja(new Date(r.value),i,a,n)}function Vv(r,t){var e=yt(r),n=e[wr(t)]()+1,a=e[ei(t)](),i=e[Dn(t)](),o=e[ti(t)](),s=e[ri(t)](),l=e[ni(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function jl(r,t,e){var n=se(r)?yt(r):r;switch(t=t||Vv(r,e),t){case"year":return n[Es(e)]();case"half-year":return n[wr(e)]()>=6?1:0;case"quarter":return Math.floor((n[wr(e)]()+1)/4);case"month":return n[wr(e)]();case"day":return n[ei(e)]();case"half-day":return n[Dn(e)]()/24;case"hour":return n[Dn(e)]();case"minute":return n[ti(e)]();case"second":return n[ri(e)]();case"millisecond":return n[ni(e)]()}}function Es(r){return r?"getUTCFullYear":"getFullYear"}function wr(r){return r?"getUTCMonth":"getMonth"}function ei(r){return r?"getUTCDate":"getDate"}function Dn(r){return r?"getUTCHours":"getHours"}function ti(r){return r?"getUTCMinutes":"getMinutes"}function ri(r){return r?"getUTCSeconds":"getSeconds"}function ni(r){return r?"getUTCMilliseconds":"getMilliseconds"}function gy(r){return r?"setUTCFullYear":"setFullYear"}function zv(r){return r?"setUTCMonth":"setMonth"}function Gv(r){return r?"setUTCDate":"setDate"}function Fv(r){return r?"setUTCHours":"setHours"}function Wv(r){return r?"setUTCMinutes":"setMinutes"}function Hv(r){return r?"setUTCSeconds":"setSeconds"}function Uv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Yv(r){if(!av(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function $v(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ai=fg;function Lo(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Bn(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?yt(r):r;if(isNaN(+l)){if(s)return"-"}else return Ja(l,n,e)}if(t==="ordinal")return mo(r)?a(r):se(r)&&i(r)?r+"":"-";var u=Vt(r);return i(u)?Yv(u):mo(r)?a(r):typeof r=="boolean"?r+"":"-"}var Ql=["a","b","c","d","e","f","g"],Ti=function(r,t){return"{"+r+(t??"")+"}"};function Xv(r,t,e){E(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function nr(r,t){return t=t||"transparent",G(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Jl(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var xa=w,yy=["left","right","top","bottom","width","height"],qn=[["width","left","right"],["height","top","bottom"]];function Os(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.y+c.y:0);d=o+m,d>a||l.newline?(i+=s+e,o=0,d=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Cr=Os;Q(Os,"vertical");Q(Os,"horizontal");function Gt(r,t,e){e=ai(e||0);var n=t.width,a=t.height,i=ee(r.left,n),o=ee(r.top,a),s=ee(r.right,n),l=ee(r.bottom,a),u=ee(r.width,n),c=ee(r.height,a),f=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-c-f),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-c/2-e[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var d=new Ne(i+e[3],o+e[0],u,c);return d.margin=e,d}function _y(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Ne(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Gt(te({width:u.width,height:u.height},t),e,n),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function An(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Lr(r,t,e){var n=e&&e.ignoreSize;!E(n)&&(n=[n,n]);var a=o(qn[0],0),i=o(qn[1],1);u(qn[0],r,a),u(qn[1],r,i);function o(c,f){var h={},v=0,d={},p=0,m=2;if(xa(c,function(_){d[_]=r[_]}),xa(c,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(p===m||!v)return d;if(v>=m)return h;for(var g=0;g=0;l--)s=Z(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Gn(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Te);hv(zr,Te);Ua(zr);oy(zr);sy(zr,by);function by(r){var t=[];return w(zr.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return rt(e).main}),r!=="dataset"&&oe(t,"dataset")<=0&&t.unshift("dataset"),t}const ie=zr;var Zv="";typeof navigator<"u"&&(Zv=navigator.platform||"");var fr="rgba(0, 0, 0, 0.2)";const wy={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:fr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Zv.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Kv=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),$e="original",ke="arrayRows",Xe="objectRows",ut="keyedColumns",Bt="typedArray",qv="unknown",ot="column",Gr="row",Ce={Must:1,Might:2,Not:3},jv=le();function Cy(r){jv(r).datasetMap=W()}function Qv(r,t,e){var n={},a=Ns(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=jv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),w(r,function(p,m){var g=H(p)?p:r[m]={name:p};g.type==="ordinal"&&c==null&&(c=m,f=d(g)),n[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});w(r,function(p,m){var g=p.name,y=d(p);if(c==null){var _=h.valueWayDim;v(n[g],_,y),v(o,_,y),h.valueWayDim+=y}else if(c===m)v(n[g],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[g],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,m,g){for(var y=0;yt)return r[n];return r[e-1]}function th(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?e:Ly(n,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function Py(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var jn,Yr,ru,nu="\0_ec_inner",Ry=1,rh=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Te(i),this._locale=new Te(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=ou(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,ou(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?ru(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=W(),u=n&&n.replaceMergeMainTypeMap;Cy(this),w(e,function(f,h){f!=null&&(ie.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?X(f):Z(a[h],f,!0))}),u&&u.each(function(f,h){ie.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ie.topologicalTravel(s,ie.getAllClassMainTypes(),c,this);function c(f){var h=My(this,f,he(e[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Ug(v,h,d);Qg(p,f,ie),a[f]=null,i.set(f,null),o.set(f,0);var m=[],g=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=f==="series",A=ie.getClass(f,S.keyInfo.subType,!T);if(!A)return;if(f==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var M=O({componentIndex:b},S.keyInfo);x=new A(C,this,this,M),O(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(m.push(x.option),g.push(x),y++):(m.push(void 0),g.push(void 0))},this),a[f]=m,i.set(f,g),o.set(f,y),f==="series"&&jn(this)}this._seriesIndices||jn(this)},t.prototype.getOption=function(){var e=X(this.option);return w(e,function(n,a){if(ie.hasClass(a)){for(var i=he(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Sn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[nu],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Hy(r,t){return r.join(",")===t.join(",")}const Uy=zy;var Ze=w,Mn=H,su=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ai(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=su.length;e=0;m--){var g=r[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Gg(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var oi=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||qv,this.seriesLayoutBy=t.seriesLayoutBy||ot,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};du=(t={},t[ke+"_"+ot]={pure:!0,appendData:i},t[ke+"_"+Gr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Xe]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[$e]={appendData:i},t[Bt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Pr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function yu(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function gn(r){return new l0(r)}var l0=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},c0=function(){function r(t,e){if(!se(e)){var n="";j(n)}this._opFn=dh[t],this._rvalFloat=Vt(e)}return r.prototype.evaluate=function(t){return se(t)?this._opFn(t,this._rvalFloat):this._opFn(Vt(t),this._rvalFloat)},r}(),ph=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=se(t)?t:Vt(t),a=se(e)?e:Vt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=G(t),l=G(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),f0=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Vt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Vt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function v0(r,t){return r==="eq"||r==="ne"?new f0(r==="eq",t):gt(dh,r)?new c0(r,t):null}var h0=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ba(t,e)},r}();function d0(r,t){var e=new h0,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ot&&j(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,m){var g=p.name,y={index:m,name:g,displayName:p.displayName};if(s.push(y),g!=null){var _="";gt(l,g)&&j(_),l[g]=y}});else for(var c=0;c65535?b0:w0}function vr(){return[1/0,-1/0]}function C0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function xu(r,t,e,n,a){var i=yh[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;um[1]&&(m[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(y){return y.property}),c=0;cg[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var m=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],g=0;g=f&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var g=0;g=f&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var g=0;gt[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(g))}return ug[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,f,h,v=new(Xr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=S)}D>0&&Dc-d&&(l=c-d,s.length=l);for(var p=0;pf[1]&&(f[1]=g),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return ba(e[i],this._dimensions[i])}Li={arrayRows:t,objectRows:function(e,n,a,i){return ba(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return ba(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}();const ko=T0;var _h=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(Qn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=He(s)?Bt:$e,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=ue(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=ue(f.sourceHeader,h.sourceHeader),p=ue(f.dimensions,h.dimensions),m=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=m?[Ro(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=g.get("source",!0);a=[Ro(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&wu(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&wu(f),s.push(c),l.push(u._getVersionSign())}),n?o=S0(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[e0(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return w(r.blocks,function(a){var i=wh(a);i>=t&&(t=i+ +(n&&(!i||Eo(a)&&!a.noHeader)))}),t}return 0}function A0(r,t,e,n){var a=t.noHeader,i=I0(wh(t)),o=[],s=t.blocks||[];st(!s||E(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(gt(u,l)){var c=new ph(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var m=t.valueFormatter,g=bh(d)(m?O(O({},r),{valueFormatter:m}):r,d,p>0?i.html:0,n);g!=null&&o.push(g)});var f=r.renderMode==="richText"?o.join(i.richText):Oo(o.join(""),a?e:i.html);if(a)return f;var h=Lo(t.header,"ordinal",r.useUTC),v=xh(n,r.renderMode).nameStyle;return r.renderMode==="richText"?Ch(r,h,v)+i.richText+f:Oo('
'+Fe(h)+"
"+f,e)}function M0(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(S){return S=E(S)?S:[S],z(S,function(b,x){return Lo(b,E(v)?v[x]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Lo(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value),p=!s||!i,m=!s&&i,g=xh(n,a),y=g.nameStyle,_=g.valueStyle;return a==="richText"?(s?"":f)+(i?"":Ch(r,h,y))+(o?"":R0(r,d,p,m,_)):Oo((s?"":f)+(i?"":L0(h,!s,y))+(o?"":P0(d,p,m,_)),e)}}function Cu(r,t,e,n,a,i){if(r){var o=bh(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function I0(r){return{html:T0[r],richText:D0[r]}}function Oo(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function L0(r,t,e){var n=t?"margin-left:2px":"";return''+Fe(r)+""}function P0(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=E(r)?r:[r],''+z(r,function(o){return Fe(o)}).join("  ")+""}function Ch(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function R0(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(E(t)?t.join(" "):t,i)}function k0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return nr(n)}function Th(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Pi=function(){function r(){this.richTextStyles={},this._nextStyleNameId=iv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=my({color:e,type:t,renderMode:n,markerId:a});return G(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};E(e)?w(e,function(i){return O(n,i)}):O(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function E0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=E(s),u=k0(t,e),c,f,h,v;if(o>1||l&&!o){var d=O0(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=c=Pr(a,e,i[0]),f=p.type}else v=c=l?s[0]:s;var m=ms(t),g=m&&t.name||"",y=a.getName(e),_=n?g:y;return In("section",{header:g,noHeader:n||!m,sortParam:v,blocks:[In("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Bn(_),value:c,valueType:f})].concat(h||[])})}function O0(r,t,e,n,a){var i=t.getData(),o=Da(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(f){c(Pr(i,e,f),f)}):w(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(In("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var At=le();function Jn(r,t){return r.getName(t)||r.getId(t)}var wa="__universalTransitionEnabled",li=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=gn({count:B0,reset:V0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=At(this).sourceManager=new _h(this);i.prepareSource();var o=this.getInitialData(e,a);Du(o,this),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,Tu(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=An(this),i=a?ii(e):{},o=this.subType;ie.hasClass(o)&&(o+="Series"),Z(e,n.getTheme().get(this.subType)),Z(e,this.getDefaultOption()),bo(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Lr(e,i,a)},t.prototype.mergeOption=function(e,n){e=Z(this.option,e,!0),this.fillDataTextStyle(e.data);var a=An(this);a&&Lr(this.option,e,a);var i=At(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);Du(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,Tu(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!He(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Bs.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Jn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[wa])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ie.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ie);St(li,s0);St(li,Bs);hv(li,ie);function Tu(r){var t=r.name;ms(r)||(r.name=N0(r)||t)}function N0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function B0(r){return r.model.getRawData().count()}function V0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),z0}function z0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Du(r,t){w(vg(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Q(G0,t))})}function G0(r,t){var e=No(r);return e&&e.setOutputEnd((t||this).count()),t}function No(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const lt=li;var Hs=function(){function r(){this.group=new pe,this.uid=Wn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();_s(Hs);Ua(Hs);const Ye=Hs;function Hn(){var r=le();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Dh=le(),F0=Hn(),Us=function(){function r(){this.group=new pe,this.uid=Wn("viewChart"),this.renderTask=gn({plan:W0,reset:H0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Mu(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Mu(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){Fn(this.group,t)},r.markUpdateMethod=function(t,e){Dh(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Au(r,t,e){r&&Do(r)&&(t==="emphasis"?Ar:Mr)(r,e)}function Mu(r,t,e){var n=rr(r,t),a=t&&t.highlightKey!=null?Em(t.highlightKey):null;n!=null?w(he(n),function(i){Au(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Au(i,e,a)})}_s(Us);Ua(Us);function W0(r){return F0(r.model)}function H0(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&Dh(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),U0[l]}var U0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Oe=Us;var Oa="\0__throttleOriginMethod",Iu="\0__throttleRate",Lu="\0__throttleType";function Ys(r,t,e){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function Ah(r,t,e,n){var a=r[t];if(a){var i=a[Oa]||a,o=a[Lu],s=a[Iu];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=Ys(i,e,n==="debounce"),a[Oa]=i,a[Lu]=n,a[Iu]=e}return a}}function Bo(r,t){var e=r[t];e&&e[Oa]&&(e.clear&&e.clear(),r[t]=e[Oa])}var Pu=le(),Ru={itemStyle:xn(Ev,!0),lineStyle:xn(kv,!0)},Y0={lineStyle:"stroke",itemStyle:"fill"};function Mh(r,t){var e=r.visualStyleMapper||Ru[t];return e||(console.warn("Unknown style type '"+t+"'."),Ru.itemStyle)}function Ih(r,t){var e=r.visualDrawType||Y0[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var $0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=Mh(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Ih(r,n),u=o[l],c=$(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||$(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),m=O({},o);m[l]=c(p),v.setItemVisual(d,"style",m)}}}},Zr=new Te,X0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=Mh(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Zr.option=l[n];var u=a(Zr),c=o.ensureUniqueItemVisual(s,"style");O(c,u),Zr.option.decal&&(o.setItemVisual(s,"decal",Zr.option.decal),Zr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Z0={performRawSeries:!0,overallReset:function(r){var t=W();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Pu(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Pu(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Ih(e,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},ea=Math.PI;function K0(r,t){t=t||{},te(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new pe,n=new ve({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new we({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new ve({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new ds({shape:{startAngle:-ea/2,endAngle:-ea/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ea*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ea*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var q0=function(){function r(t,e,n,a){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=W();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";st(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(m){s(a,m)&&(m.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(m){m.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=W(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||gn({plan:t_,reset:r_,count:a_}));v.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||gn({reset:j0});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=W(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,v="";st(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,a).each(d):(f=!1,w(n.getSeries(),d));function d(p){var m=p.uid,g=l.set(m,s&&s.get(m)||(h=!0,gn({reset:Q0,onDirty:e_})));g.context={model:p,overallProgress:f},g.agent=o,g.__block=f,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return $(t)&&(t={overallReset:t,seriesType:i_(t)}),t.uid=Wn("stageHandler"),e&&(t.visualType=e),t},r}();function j0(r){r.overallReset(r.ecModel,r.api,r.payload)}function Q0(r){return r.overallProgress&&J0}function J0(){this.agent.dirty(),this.getDownstream().dirty()}function e_(){this.agent&&this.agent.dirty()}function t_(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function r_(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=he(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,n){return Lh(n)}):n_}var n_=Lh(0);function Lh(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Vo=["symbol","symbolSize","symbolRotate","symbolOffset"],Nu=Vo.concat(["symbolKeepAspect"]),u_={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[Ae]){if(this._disposed){this.id;return}var i,o,s;if(H(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ae]=!0,!this._model||n){var l=new Uy(this._api),u=this._theme,c=this._model=new nh;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Wo);var f={seriesTransition:s,optionChanged:!0};if(a)this[Ee]={silent:i,updateParams:f},this[Ae]=!1,this.getZr().wakeUp();else{try{dr(this),Mt.update.call(this,null,f)}catch(h){throw this[Ee]=null,this[Ae]=!1,h}this._ssr||this._zr.flush(),this[Ee]=null,this[Ae]=!1,Kr.call(this,i),qr.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ce.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(ce.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;w(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if($u[a]){var l=s,u=s,c=-s,f=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(yn,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(X(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,m=qf.createCanvas(),g=xl(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:p}),n){var y="";return w(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new ve({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new Or({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Ni(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Ni(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=vn(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=vn(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?f_(s,l,n):v_(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(U_,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&un(s,function(d){var p=J(d);if(p&&p.dataIndex!=null){var m=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=O({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),w(mn,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),d_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&cv(this.getDom(),Ks,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete yn[n.id]},t.prototype.resize=function(e){if(!this[Ae]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Ee]&&(i==null&&(i=this[Ee].silent),a=!0,this[Ee]=null),this[Ae]=!0;try{a&&dr(this),Mt.update.call(this,{type:"resize",animation:O({duration:0},e&&e.animation)})}catch(o){throw this[Ae]=!1,o}this[Ae]=!1,Kr.call(this,i),qr.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(H(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Ho[e]){var a=Ho[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=O({},e);return n.type=mn[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(H(n)||(n={silent:!!n}),!!Ba[e.type]&&this._model){if(this[Ae]){this._pendingActions.push(e);return}var a=n.silent;Vi.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&ce.browser.weChat&&this._throttledZrFlush(),Kr.call(this,a),qr.call(this,a)}},t.prototype.updateLabelLayout=function(){qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){dr=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),Oi(f,!0),Oi(f,!1),h.plan()},Oi=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,m=h?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,_=0;_h.get("hoverLayerThreshold")&&!ce.node&&!ce.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=f._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,d){var p=f.getTextContent(),m=f.getTextGuideLine(),g=f.isGroup;if(g)for(var y=f.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xr(g))return;if(g instanceof _e&&Om(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}g.__dirty&&a(g)}})}Uu=function(f){return new(function(h){N(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ar(d,p),Ve(f)},v.prototype.leaveEmphasis=function(d,p){Mr(d,p),Ve(f)},v.prototype.enterBlur=function(d){Tm(d),Ve(f)},v.prototype.leaveBlur=function(d){yv(d),Ve(f)},v.prototype.enterSelect=function(d){_v(d),Ve(f)},v.prototype.leaveSelect=function(d){Sv(d),Ve(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(ah))(f)},Xh=function(f){function h(v,d){for(var p=0;p=0)){Xu.push(e);var i=kh.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function Jh(r,t){Ho[r]=t}function j_(r,t,e){var n=I_("registerMap");n&&n(r,t,e)}var Q_=_0;lr(Xs,$0);lr(ui,X0);lr(ui,Z0);lr(Xs,u_);lr(ui,c_);lr(Fh,D_);jh(oh);Qh(R_,Qy);Jh("default",K0);ct({type:jt,event:jt,update:jt},mt);ct({type:ma,event:ma,update:ma},mt);ct({type:hn,event:hn,update:hn},mt);ct({type:ya,event:ya,update:ya},mt);ct({type:dn,event:dn,update:dn},mt);qh("light",o_);qh("dark",s_);function jr(r){return r==null?0:r.length||1}function Zu(r){return r}var J_=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Zu,this._newKeyGetter=a||Zu,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var Qr=H,It=z,oS=typeof Int32Array>"u"?Array:Int32Array,sS="e\0\0",Ku=-1,lS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],uS=["_approximateExtent"],qu,aa,Jr,en,Fi,ia,Wi,cS=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;td(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===$e;if(l&&!a.pure)for(var u=[],c=t;c0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),E(i)?i=i.slice():Qr(i)&&(i=O({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Qr(e)?O(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Qr(t)?O(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?O(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;pm(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:It(this.dimensions,this._getDimInfo,this),this.hostModel)),Fi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];$(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(pg(arguments)))})},r.internalField=function(){qu=function(t){var e=t._invertedIndicesMap;w(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new oS(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[e]=l}}}(),r}();const id=cS;function od(r,t){zs(r)||(r=Gs(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=W(),i=[],o=vS(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ad(o),l=n===r.dimensionsDefine,u=l?nd(r):rd(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=W(c),h=new mh(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function vS(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(i){var o;H(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function hS(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var dS=function(){function r(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return r}();function pS(r){var t=r.get("coordinateSystem"),e=new dS(t),n=gS[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var gS={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Re).models[0],i=r.getReferringComponents("yAxis",Re).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),pr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),pr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Re).models[0];t.coordSysDims=["single"],e.set("single",a),pr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Re).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),pr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),pr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];e.set(c,u),pr(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function pr(r){return r.get("type")==="category"}function mS(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;yS(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(w(i,function(y,_){G(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;w(i,function(y){y.coordDim===v&&p++});var m={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(i.push(m),i.push(g))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function yS(r){return!td(r.schema)}function Rr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function _S(r,t){return Rr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function SS(r,t){var e=r.get("coordinateSystem"),n=Vs.get(e),a;return t&&t.coordSysDims&&(a=z(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Uo(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function xS(r,t,e){var n,a;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ci(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=Gs(r)):(a=n.getSource(),i=a.sourceFormat===$e);var o=pS(t),s=SS(t,o),l=e.useEncodeDefaulter,u=$(l)?l:l?Q(Qv,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=od(a,c),h=xS(f.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(f),d=mS(t,{schema:f,store:v}),p=new id(f,t);p.setCalculationInfo(d);var m=h!=null&&bS(a)?function(g,y,_,S){return S===h?_:this.defaultDimValueGetter(g,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,m),p}function bS(r){if(r.sourceFormat===$e){var t=wS(r.data||[]);return!E(zn(t))}}function wS(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Ua(sd);const bt=sd;var CS=0,TS=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++CS}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&z(n,DS);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!G(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r}();function DS(r){return H(r)&&r.value!=null?r.value:r+""}const Yo=TS;function $o(r){return r.type==="interval"||r.type==="log"}function AS(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=nv(i/t,!0);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=ld(o),l=a.niceTickExtent=[ye(Math.ceil(r[0]/o)*o,s),ye(Math.floor(r[1]/o)*o,s)];return MS(l,r),a}function Hi(r){var t=Math.pow(10,gs(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ye(e*t)}function ld(r){return dt(r)+2}function ju(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function MS(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),ju(r,0,t),ju(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function fi(r,t){return r>=t[0]&&r<=t[1]}function vi(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function hi(r,t){return r*(t[1]-t[0])+t[0]}var ud=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Yo({})),E(a)&&(a=new Yo({categories:z(a,function(i){return H(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),fi(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),vi(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(hi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(bt);bt.registerClass(ud);const cd=ud;var Xt=ye,fd=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return fi(e,this._extent)},t.prototype.normalize=function(e){return vi(e,this._extent)},t.prototype.scale=function(e){return hi(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=ld(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(e?s.push({value:Xt(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function dd(r){var t=PS(r),e=[];return w(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=ee(n.get("barWidth"),s),p=ee(n.get("barMaxWidth"),s),m=ee(n.get("barMinWidth")||(yd(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:y,axisKey:Js(i),stackId:Qs(n)})}),RS(e)}function RS(r){var t={};w(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Be(i).length;s=Math.max(35-l*4,15)+"%"}var u=ee(s,o),c=ee(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),w(i,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),g.width=S,f-=S+c*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(g.width=S,f-=S+c*S,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;w(i,function(g,y){g.width||(g.width=v),p=g,d+=g.width*(1+c)}),p&&(d-=p.width*c);var m=-d/2;w(i,function(g,y){e[a][y]=e[a][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+c)})}),e}function kS(r,t,e){if(r&&t){var n=r[Js(t)];return n!=null&&e!=null?n[Qs(e)]:n}}function pd(r,t){var e=hd(r,t),n=dd(e);w(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Qs(a),u=n[Js(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function gd(r){return{seriesType:r,plan:Hn(),reset:function(t){if(md(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=Rr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=ES(a,i),d=yd(t),p=t.get("barMinHeight")||0,m=c&&e.getDimensionIndex(c),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&nt(b*3),C=d&&l&&nt(b*3),T=d&&nt(b),A=n.master.getRect(),M=h?A.width:A.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(f?m:o,D),R=I.get(s,D),V=v,Y=void 0;f&&(Y=+P-I.get(o,D));var k=void 0,B=void 0,F=void 0,U=void 0;if(h){var K=n.dataToPoint([P,R]);if(f){var q=n.dataToPoint([Y,R]);V=q[0]}k=V,B=K[1]+y,F=K[0]-V,U=g,Math.abs(F)>>1;r[a][1]a&&(this._approxInterval=a);var s=oa.length,l=Math.min(OS(oa,this._approxInterval,0,s),s-1);this._interval=oa[l][1],this._minLevelUnit=oa[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return se(e)?e:+yt(e)},t.prototype.contain=function(e){return fi(this.parse(e),this._extent)},t.prototype.normalize=function(e){return vi(this.parse(e),this._extent)},t.prototype.scale=function(e){return hi(e,this._extent)},t.type="time",t}(Un),oa=[["second",Rs],["minute",ks],["hour",pn],["quarter-day",pn*6],["half-day",pn*12],["day",We*1.2],["half-week",We*3.5],["week",We*7],["month",We*31],["quarter",We*95],["half-year",Kl/2],["year",Kl]];function NS(r,t,e,n){var a=yt(t),i=yt(e),o=function(d){return jl(a,d,n)===jl(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function BS(r,t){return r/=We,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function VS(r){var t=30*We;return r/=t,r>6?6:r>3?3:r>2?2:1}function zS(r){return r/=pn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Qu(r,t){return r/=t?ks:Rs,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function GS(r){return nv(r,!0)}function FS(r,t,e){var n=new Date(r);switch(br(t)){case"year":case"month":n[zv(e)](0);case"day":n[Gv(e)](1);case"hour":n[Fv(e)](0);case"minute":n[Wv(e)](0);case"second":n[Hv(e)](0),n[Uv(e)](0)}return n.getTime()}function WS(r,t,e,n){var a=1e4,i=Bv,o=0;function s(M,D,I,L,P,R,V){for(var Y=new Date(D),k=D,B=Y[L]();k1&&R===0&&I.unshift({value:I[0].value-k})}}for(var R=0;R=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&h>_/1.5||(u.push(m),f>_||r===i[v]))break}c=[]}}}for(var S=xe(z(u,function(M){return xe(M,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1,v=0;v0;)i*=10;var s=[ye($S(n[0]/i)*i),ye(YS(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){_n.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ke(e)/Ke(this.base),fi(e,this._extent)},t.prototype.normalize=function(e){return e=Ke(e)/Ke(this.base),vi(e,this._extent)},t.prototype.scale=function(e){return e=hi(e,this._extent),sa(this.base,e)},t.type="log",t}(bt),Sd=el.prototype;Sd.getMinorTicks=_n.getMinorTicks;Sd.getLabel=_n.getLabel;function la(r,t){return US(r,dt(t))}bt.registerClass(el);const XS=el;var ZS=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[qS[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=KS[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),KS={min:"_determinedMin",max:"_determinedMax"},qS={min:"_dataMin",max:"_dataMax"};function xd(r,t,e){var n=r.rawExtentInfo;return n||(n=new ZS(r,t,e),r.rawExtentInfo=n,n)}function ua(r,t){return t==null?null:xo(t)?NaN:r.parse(t)}function bd(r,t){var e=r.type,n=xd(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=hd("bar",o),l=!1;if(w(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=dd(s),c=jS(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function jS(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=kS(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,h=c/f-c;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function ec(r,t){var e=t,n=bd(r,e),a=n.extent,i=e.get("splitNumber");r instanceof XS&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function QS(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new cd({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new HS({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(bt.getClass(t)||Un)}}function JS(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Yn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):G(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):$(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(tl(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function tl(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function ex(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof cd?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Yn(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cr[1]&&(r[1]=a[1])})}var nx=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),tc=[],ax={registerPreprocessor:jh,registerProcessor:Qh,registerPostInit:X_,registerPostUpdate:Z_,registerUpdateLifecycle:qs,registerAction:ct,registerCoordinateSystem:K_,registerLayout:q_,registerVisual:lr,registerTransform:Q_,registerLoading:Jh,registerMap:j_,registerImpl:M_,PRIORITY:F_,ComponentModel:ie,ComponentView:Ye,SeriesModel:lt,ChartView:Oe,registerComponentModel:function(r){ie.registerClass(r)},registerComponentView:function(r){Ye.registerClass(r)},registerSeriesModel:function(r){lt.registerClass(r)},registerChartView:function(r){Oe.registerClass(r)},registerSubTypeDefaulter:function(r,t){ie.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){gg(r,t)}};function _t(r){if(E(r)){w(r,function(t){_t(t)});return}oe(tc,r)>=0||(tc.push(r),$(r)&&(r={install:r}),r.install(ax))}var Rn=le();function ix(r){return r.type==="category"?sx(r):ux(r)}function ox(r,t){return r.type==="category"?lx(r,t):{ticks:z(r.scale.getTicks(),function(e){return e.value})}}function sx(r){var t=r.getLabelModel(),e=Td(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Td(r,t){var e=Dd(r,"labels"),n=rl(t),a=Ad(e,n);if(a)return a;var i,o;return $(n)?i=Ld(r,n):(o=n==="auto"?cx(r):n,i=Id(r,o)),Md(e,n,{labels:i,labelCategoryInterval:o})}function lx(r,t){var e=Dd(r,"ticks"),n=rl(t),a=Ad(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),$(n))i=Ld(r,n,!0);else if(n==="auto"){var s=Td(r,r.getLabelModel());o=s.labelCategoryInterval,i=z(s.labels,function(l){return l.tickValue})}else o=n,i=Id(r,o,!0);return Md(e,n,{ticks:i,tickCategoryInterval:o})}function ux(r){var t=r.scale.getTicks(),e=Yn(r);return{labels:z(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function Dd(r,t){return Rn(r)[t]||(Rn(r)[t]=[])}function Ad(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,m=ps(e({value:l}),t.font,"center","top");d=m.width*1.3,p=m.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var g=h/c,y=v/f;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(g,y))),S=Rn(r.model),b=r.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function vx(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Id(r,t,e){var n=Yn(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=wd(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(m){var g={value:m};s.push(e?m:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:m})}return s}function Ld(r,t,e){var n=r.scale,a=Yn(r),i=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var rc=[0,1],hx=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return tv(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),nc(n,a.count())),Ot(t,rc,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),nc(n,a.count()));var i=Ot(t,n,rc,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=ox(this,e),a=n.ticks,i=z(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return dx(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=z(n,function(i){return z(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return ix(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return fx(this)},r}();function nc(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function dx(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=ye(v),d=ye(d),f?v>d:va&&(a+=tn);var v=Math.atan2(s,o);if(v<0&&(v+=tn),v>=n&&v<=a||v+tn>=n&&v+tn<=a)return l[0]=c,l[1]=f,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,m=e*Math.cos(a)+r,g=e*Math.sin(a)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(m-o)*(m-o)+(g-s)*(g-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(_))}function za(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,c=e-r,f=n-t,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*c,m=o[1]=t+d*f;return Math.sqrt((p-a)*(p-a)+(m-i)*(m-i))}function Pd(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var je=[];function _x(r,t,e){var n=Pd(t.x,t.y,t.width,t.height,r.x,r.y,je);return e.set(je[0],je[1]),n}function Sx(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,Je.fromArray(r[0]),ne.fromArray(r[1]),fe.fromArray(r[2]),be.sub(at,Je,ne),be.sub(tt,fe,ne);var e=at.len(),n=tt.len();if(!(e<.001||n<.001)){at.scale(1/e),tt.scale(1/n);var a=at.dot(tt),i=Math.cos(t);if(i1&&be.copy(Pe,fe),Pe.toArray(r[1])}}}}function xx(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Je.fromArray(r[0]),ne.fromArray(r[1]),fe.fromArray(r[2]),be.sub(at,ne,Je),be.sub(tt,fe,ne);var n=at.len(),a=tt.len();if(!(n<.001||a<.001)){at.scale(1/n),tt.scale(1/a);var i=at.dot(t),o=Math.cos(e);if(i=l)be.copy(Pe,fe);else{Pe.scaleAndAdd(tt,s/Math.tan(Math.PI/2-c));var f=fe.x!==ne.x?(Pe.x-ne.x)/(fe.x-ne.x):(Pe.y-ne.y)/(fe.y-ne.y);if(isNaN(f))return;f<0?be.copy(Pe,ne):f>1&&be.copy(Pe,fe)}Pe.toArray(r[1])}}}}function ic(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function bx(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=bl(n[0],n[1]),i=bl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=_i([],n[1],n[0],o/a),l=_i([],n[1],n[2],o/i),u=_i([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&i&&b(-c/o,0,o);var p=r[0],m=r[o-1],g,y;_(),g<0&&x(-g,.8),y<0&&x(y,.8),_(),S(g,y,1),S(y,g,-1),_(),g<0&&C(-g),y<0&&C(y);function _(){g=p.rect[t]-n,y=a-m.rect[t]-m.rect[e]}function S(T,A,M){if(T<0){var D=Math.min(A,-T);if(D>0){b(D*M,0,o);var I=D+T;I<0&&x(-I*M,1)}else x(-T*M,1)}}function b(T,A,M){T!==0&&(u=!0);for(var D=A;D0)for(var I=0;I0;I--){var V=M[I-1]*R;b(-V,I,o)}}}function C(T){var A=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D0?b(M,0,D+1):b(-M,o-D-1,o),T-=M,T<=0)return}return u}function wx(r,t,e,n){return Nd(r,"x","width",t,e,n)}function Bd(r,t,e,n){return Nd(r,"y","height",t,e,n)}function Vd(r){var t=[];r.sort(function(p,m){return m.priority-p.priority});var e=new Ne(0,0,0,0);function n(p){if(!p.ignore){var m=p.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}p.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),oe(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),ge(n,u,e,l)}else if(n.attr(u),!Vr(n).valueAnimation){var f=ue(n.style.opacity,1);n.style.opacity=0,De(n,{style:{opacity:f}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};ca(v,u,fa),ca(v,n.states.select,fa)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};ca(d,u,fa),ca(d,n.states.emphasis,fa)}jm(n,l,c,e,e)}if(a&&!a.ignore&&!a.invisible){var i=Dx(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),ge(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,De(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const Mx=Ax;var Yi=le();function cD(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Yi(e).labelManager;a||(a=Yi(e).labelManager=new Mx),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Yi(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var Ix=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ie);const Lx=Ix;var Xo=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Re).models[0]},t.type="cartesian2dAxis",t}(ie);St(Xo,nx);var zd={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Px=Z({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},zd),nl=Z({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},zd),Rx=Z({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},nl),kx=te({logBase:10},nl);const Ex={category:Px,value:nl,time:Rx,log:kx};var Ox={value:1,category:1,time:1,log:1};function sc(r,t,e,n){w(Ox,function(a,i){var o=Z(Z({},Ex[i],!0),n,!0),s=function(l){N(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=An(this),v=h?ii(c):{},d=f.getTheme();Z(c,d.get(i+"Axis")),Z(c,this.getDefaultOption()),c.type=lc(c),h&&Lr(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Yo.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",lc)}function lc(r){return r.type||(r.data?"category":"value")}var Nx=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),xe(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const Bx=Nx;var Zo=["x","y"];function uc(r){return r.type==="interval"||r.type==="time"}var Vx=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Zo,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!uc(e)||!uc(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-a[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=vs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Ne(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return er(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return er(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(e[0],e[1]),i=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-a,s=Math.max(n[0],n[1])-i;return new Ne(a,i,o,s)},t}(Bx),zx=function(r){N(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(px);const Gx=zx;function Ko(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Dr(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-g:g,i.z2=1,i}function cc(r){return r.get("coordinateSystem")==="cartesian2d"}function fc(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Re).models[0];t[n]=i}),t}var $i=Math.log;function Fx(r,t,e){var n=Un.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=bd(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=$i(r.base);u=[$i(u[0])/h,$i(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],m=u[1];if(c&&f)d=(m-p)/o;else if(c)for(m=u[0]+d*o;mu[0]&&isFinite(p)&&isFinite(u[0]);)d=Hi(d),p=u[1]-d*o;else{var g=r.getTicks().length-1;g>o&&(d=Hi(d));var y=d*o;m=Math.ceil(u[1]/d)*d,p=ye(m-y),p<0&&u[0]>=0?(p=0,m=ye(y)):m>0&&u[1]<=0&&(m=0,p=-ye(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,m+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,m-d)}var Wx=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zo,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Be(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;$o(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(ec(p,d),$o(p)&&(s=v))}c.length&&(s||(s=c.pop(),ec(s.scale,s.model)),w(c,function(m){Fx(m.scale,m.model,s.scale)}))}}a(n.x),a(n.y);var i={};w(n.x,function(o){vc(n,"y",o,i)}),w(n.y,function(o){vc(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Gt(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=ex(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),Hx(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}H(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Ia(a-Nt)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),dc={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(er(s,s,o),er(l,l,o));var c=O({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new tr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Cn(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);G(h)&&(h=[h,h]),(G(v)||se(v))&&(v=[v,v]);var d=$s(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],m=v[1];w([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(h[y]!=="none"&&h[y]!=null){var _=Ft(h[y],-p/2,-m/2,p,m,c.stroke,!0),S=g.r+g.offset,b=u?l:s;_.attr({rotation:g.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=Xx(e,n,t,r),i=Kx(e,n,t,r);if($x(t,i,a),Zx(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Od(z(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Vd(o)}},axisName:function(r,t,e,n){var a=Dr(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,gc(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Nt/180);var d;gc(i)?h=Qt.innerTextLayout(r.rotation,v??r.rotation,o):(h=Yx(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),m=t.get("nameTruncate",!0)||{},g=m.ellipsis,y=Dr(r.nameTruncateMaxWidth,m.maxWidth,d),_=new we({x:f[0],y:f[1],rotation:h.rotation,silent:Qt.isLabelSilent(t),style:zt(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(ja({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=Qt.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,J(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function Yx(r,t,e,n){var a=rv(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ia(a-Nt/2)?(o=l?"bottom":"top",i="center"):Ia(a-Nt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aNt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function $x(r,t,e){if(!wd(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],f=e[e.length-1],h=e[e.length-2];n===!1?(ze(i),ze(u)):pc(i,o)&&(n?(ze(o),ze(c)):(ze(i),ze(u))),a===!1?(ze(s),ze(f)):pc(l,s)&&(a?(ze(l),ze(h)):(ze(s),ze(f)))}}function ze(r){r&&(r.ignore=!0)}function pc(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Uf([]);return Qf(a,a,-r.rotation),e.applyTransform(yo([],a,r.getLocalTransform())),n.applyTransform(yo([],a,t.getLocalTransform())),e.intersect(n)}}function gc(r){return r==="middle"||r==="center"}function Gd(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function tb(r){var t=al(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=qo(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=al(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=qt(t).pointerEl=new Ms[i.type](_c(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=qt(t).labelEl=new we(_c(e.label));t.add(i),xc(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=qt(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=qt(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),xc(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=qa(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){_g(u.event)},onmousedown:Ki(this._onHandleDragMove,this,0,0),drift:Ki(this._onHandleDragMove,this),ondragend:Ki(this._onHandleDragEnd,this)}),n.add(a)),bc(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");E(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ah(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Sc(this._axisPointerModel,!e&&this._moveAnimation,this._handle,qi(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(qi(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(qi(a)),qt(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Bo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function Sc(r,t,e,n){$d(qt(e).lastProp,n)||(qt(e).lastProp=n,t?ge(e,n,r):(e.stopAnimation(),e.attr(n)))}function $d(r,t){if(H(r)&&H(t)){var e=!0;return w(t,function(n,a){e=e&&$d(r[a],n)}),!!e}else return r===t}function xc(r,t){r[t.get(["label","show"])?"show":"hide"]()}function qi(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function bc(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}const vb=fb;function hb(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function db(r,t,e,n,a){var i=e.get("value"),o=Xd(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ai(s.get("padding")||0),u=s.getFont(),c=ps(o,u),f=a.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=a.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),pb(f,h,v,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function pb(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Xd(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:tl(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),G(o)?i=o.replace("{value}",i):$(o)&&(i=o(s))}return i}function Zd(r,t,e){var n=xg();return Qf(n,n,e.rotation),Sg(n,n,e.position),As([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function gb(r,t,e,n,a,i){var o=Fd.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),db(t,n,a,i,{position:Zd(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function mb(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function yb(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var _b=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=wc(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=hb(i),v=Sb[u](s,f,c);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Ko(l.model,a);gb(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Ko(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Zd(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=wc(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[c]}},t}(vb);function wc(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Sb={line:function(r,t,e){var n=mb([t,e[0]],[t,e[1]],Cc(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:yb([t-n/2,e[0]],[n,a],Cc(r))}}};function Cc(r){return r.dim==="x"?0:1}const xb=_b;var bb=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ie);const wb=bb;var pt=le(),Cb=w;function Kd(r,t,e){if(!ce.node){var n=t.getZr();pt(n).records||(pt(n).records={}),Tb(n,t);var a=pt(n).records[r]||(pt(n).records[r]={});a.handler=e}}function Tb(r,t){if(pt(r).initialized)return;pt(r).initialized=!0,e("click",Q(Tc,"click")),e("mousemove",Q(Tc,"mousemove")),e("globalout",Ab);function e(n,a){r.on(n,function(i){var o=Mb(t);Cb(pt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Db(o.pendings,t)})}}function Db(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function Ab(r,t,e){r.handler("leave",null,e)}function Tc(r,t,e,n){t.handler(r,e,n)}function Mb(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Qo(r,t){if(!ce.node){var e=t.getZr(),n=(pt(e).records||{})[r];n&&(pt(e).records[r]=null)}}var Ib=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Kd("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){Qo("axisPointer",n)},t.prototype.dispose=function(e,n){Qo("axisPointer",n)},t.type="axisPointer",t}(Ye);const Lb=Ib;function qd(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=rr(i,r);if(o==null||o<0||E(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(z(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),e=[m.x+m.width/2,m.y+m.height/2]}return{point:e,el:s}}var Dc=le();function Pb(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||ae(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ta(a)&&(a=qd({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ta(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||Ta(a),h={},v={},d={list:[],map:{}},p={showPointer:Q(kb,v),showTooltip:Q(Eb,d)};w(s.coordSysMap,function(g,y){var _=l||g.containPoint(a);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,C=Vb(u,S);if(!f&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&Ac(S,T,p,!1,h)}})});var m={};return w(c,function(g,y){var _=g.linkGroup;_&&!v[y]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var C=x.value;_.mapper&&(C=g.axis.scale.parse(_.mapper(C,Mc(S),Mc(g)))),m[g.key]=C}})}),w(m,function(g,y){Ac(c[y],g,p,!0,h)}),Ob(v,c,h),Nb(d,a,r,o),Bb(c,o,e),h}}function Ac(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=Rb(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&O(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function Rb(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,e);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=f,i.length=0),w(h,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function kb(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function Eb(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=kn(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Ob(r,t,e){var n=e.axesInfo=[];w(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Nb(r,t,e,n){if(Ta(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Bb(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=Dc(n)[a]||{},o=Dc(n)[a]={};w(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&w(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,c){!o[c]&&l.push(u)}),w(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Vb(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Mc(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Ta(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function jd(r){Wd.registerAxisPointerClass("CartesianAxisPointer",xb),r.registerComponentModel(wb),r.registerComponentView(Lb),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!E(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=qx(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Pb)}function fD(r){_t(Yd),_t(jd)}var Ic="\0_ec_interaction_mutex";function zb(r,t,e){var n=Qd(r);n[t]=e}function Gb(r,t,e){var n=Qd(r),a=n[t];a===e&&(n[t]=null)}function Qd(r){return r[Ic]||(r[Ic]={})}ct({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},mt);var Fb={axisPointer:1,tooltip:1,brush:1};function Wb(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!Fb.hasOwnProperty(n.mainType)&&a&&a.model!==e}function Jd(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=gr(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=gr(s,[0,o]),a=i=gr(s,[a,i]),n=0}t[0]=gr(t[0],e),t[1]=gr(t[1],e);var l=ji(t,n);t[n]+=r;var u=a||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=gr(t[n],c);var f;return f=ji(t,n),a!=null&&(f.sign!==l.sign||f.spani&&(t[1-n]=t[n]+f.sign*i),t}function ji(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function gr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ar=!0,En=Math.min,kr=Math.max,Hb=Math.pow,Ub=1e4,Yb=6,$b=6,Lc="globalPan",Xb={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Zb={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Pc={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Kb=0,qb=function(r){N(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new pe,n._uid="brushController_"+Kb++,w(nw,function(a,i){this._handlers[i]=ae(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||zb(n,Lc,this._uid),w(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=Z(X(Pc),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Gb(e,Lc,this._uid),w(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(a){n[a.panelId]=X(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=z(e,function(h){return Z(X(Pc),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Pn(a,e,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):tp(o,ep(o,d));il(o,p)}}function f(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Jo(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Vn);function ep(r,t){var e=di[t.brushType].createCover(r,t);return e.__brushOption=t,np(e,t),r.group.add(e),e}function tp(r,t){var e=ol(t);return e.endCreating&&(e.endCreating(r,t),np(t,t.__brushOption)),t}function rp(r,t){var e=t.__brushOption;ol(t).updateCoverShape(r,t,e.range,e)}function np(r,t){var e=t.z;e==null&&(e=Ub),r.traverse(function(n){n.z=e,n.z2=e})}function il(r,t){ol(t).updateCommon(r,t),rp(r,t)}function ol(r){return di[r.__brushOption.brushType]}function sl(r,t,e){var n=r._panels;if(!n)return ar;var a,i=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function ap(r,t){var e=r._panels;if(!e)return ar;var n=t.__brushOption.panelId;return n!=null?e[n]:ar}function Jo(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function ir(r,t){var e=z(r._covers,function(n){var a=n.__brushOption,i=X(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function jb(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=Hb(a*a+i*i,.5);return o>Yb}function ip(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function op(r,t,e,n){var a=new pe;return a.add(new ve({name:"main",style:ll(e),silent:!0,draggable:!0,cursor:"move",drift:Q(Rc,r,t,a,["n","s","w","e"]),ondragend:Q(ir,t,{isEnd:!0})})),w(n,function(i){a.add(new ve({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Q(Rc,r,t,a,i),ondragend:Q(ir,t,{isEnd:!0})}))}),a}function sp(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=kr(a,$b),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,c=e[0][1],f=e[1][1],h=c-i+a/2,v=f-i+a/2,d=c-o,p=f-s,m=d+a,g=p+a;ht(r,t,"main",o,s,d,p),n.transformable&&(ht(r,t,"w",l,u,i,g),ht(r,t,"e",h,u,i,g),ht(r,t,"n",l,u,m,i),ht(r,t,"s",l,v,m,i),ht(r,t,"nw",l,u,i,i),ht(r,t,"ne",h,u,i,i),ht(r,t,"sw",l,v,i,i),ht(r,t,"se",h,v,i,i))}function es(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(ll(e)),a.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?ts(r,i[0]):Jb(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Zb[s]+"-resize":null})})}function ht(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(tw(ul(r,t,[[n,a],[n+i,a+o]])))}function ll(r){return te({strokeNoScale:!0},r.brushStyle)}function lp(r,t,e,n){var a=[En(r,e),En(t,n)],i=[kr(r,e),kr(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Qb(r){return Ds(r.group)}function ts(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Mv(e[t],Qb(r));return n[a]}function Jb(r,t){var e=[ts(r,t[0]),ts(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Rc(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=up(t,a,i);w(n,function(u){var c=Xb[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(lp(s[0][0],s[1][0],s[0][1],s[1][1])),il(t,e),ir(t,{isEnd:!1})}function ew(r,t,e,n){var a=t.__brushOption.range,i=up(r,e,n);w(a,function(o){o[0]+=i[0],o[1]+=i[1]}),il(r,t),ir(r,{isEnd:!1})}function up(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function ul(r,t,e){var n=ap(r,t);return n&&n!==ar?n.clipPath(e,r._transform):X(e)}function tw(r){var t=En(r[0][0],r[1][0]),e=En(r[0][1],r[1][1]),n=kr(r[0][0],r[1][0]),a=kr(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function rw(r,t,e){if(!(!r._brushType||aw(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=sl(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var di={lineX:Oc(0),lineY:Oc(1),rect:{createCover:function(r,t){function e(n){return n}return op({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=ip(r);return lp(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){sp(r,t,e,n)},updateCommon:es,contain:ns},polygon:{createCover:function(r,t){var e=new pe;return e.add(new Nn({name:"main",style:ll(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new hs({name:"main",draggable:!0,drift:Q(ew,r,t),ondragend:Q(ir,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:ul(r,t,e)})},updateCommon:es,contain:ns}};function Oc(r){return{createCover:function(t,e){return op({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=ip(t),n=En(e[0][r],e[1][r]),a=kr(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=ap(t,e);if(o!==ar&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),sp(t,e,l,a)},updateCommon:es,contain:ns}}const iw=qb;function ow(r){return r=cl(r),function(t){return Lv(t,r)}}function sw(r,t){return r=cl(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function lw(r,t,e){var n=cl(r);return function(a,i){return n.contain(i[0],i[1])&&!Wb(a,t,e)}}function cl(r){return Ne.create(r)}var Nc=["x","y","radius","angle","single"],uw=["cartesian2d","polar","singleAxis"];function cw(r){var t=r.get("coordinateSystem");return oe(uw,t)>=0}function Sr(r){return r+"Axis"}function fw(r,t){var e=W(),n=[],a=W();r.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(e.get(f)||e.set(f,[]))[h]=!0})}return n}var Qi=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),vw=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=Bc(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Bc(e);Z(this.option,e,!0),Z(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=W(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(Nc,function(a){var i=this.getReferringComponents(Sr(a),tm);if(i.specified){n=!0;var o=new Qi;w(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new Qi;if(h.add(f.componentIndex),e.set(c,h),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Re).models[0];v&&w(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Re).models[0]&&h.add(d.componentIndex)})}}}i&&w(Nc,function(u){if(i){var c=a.findComponents({mainType:Sr(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new Qi;f.add(c[0].componentIndex),e.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Sr(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){w(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Sr(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(m=!0),S&&(d=!0),b&&(p=!0)}return m&&d&&p})}else _r(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});_r(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;_r(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ot(n[0]+o,n,[0,100],!0):i!=null&&(o=Ot(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=tv(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function xw(r,t,e){var n=[1/0,-1/0];_r(e,function(o){rx(n,o.getData(),t)});var a=r.getAxisModel(),i=xd(a.axis.scale,a,n).calculate();return[i.min,i.max]}const bw=Sw;var ww={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Sr(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new bw(a,i,s,r),e.push(o.__dzAxisProxy))});var n=W();return w(e,function(a){w(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const Cw=ww;function Tw(r){r.registerAction("dataZoom",function(t,e){var n=fw(e,t);w(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var zc=!1;function Dw(r){zc||(zc=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Cw),Tw(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Aw(r){r.registerComponentModel(pw),r.registerComponentView(_w),Dw(r)}var Qe=function(){function r(){}return r}(),fp={};function rn(r,t){fp[r]=t}function vp(r){return fp[r]}var Mw=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(n,a){var i=vp(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Z(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ie);const Iw=Mw;function Lw(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Gt(n,i,a);Cr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),_y(r,n,i,a)}function hp(r,t){var e=ai(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new ve({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Pw=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),f=[];w(u,function(d,p){f.push(p)}),new Pn(this._featureNames||[],f).add(h).update(h).remove(Q(h,null)).execute(),this._featureNames=f;function h(d,p){var m=f[d],g=f[p],y=u[m],_=new Te(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(y.title=i.newTitle),m&&!g){if(Rw(m))S={onclick:_.option.onclick,featureName:m};else{var b=vp(m);if(!b)return;S=new b}c[m]=S}else if(S=c[g],!S)return;S.uid=Wn("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Qe;if(!m&&g){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,m),_.setIconStatus=function(C,T){var A=this.option,M=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[C]=T,M[C]&&(T==="emphasis"?Ar:Mr)(M[C])},S instanceof Qe&&S.render&&S.render(_,n,a,i)}function v(d,p,m){var g=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Qe&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;G(_)?(b={},b[m]=_):b=_,G(S)?(x={},x[m]=S):x=S;var C=d.iconPaths={};w(b,function(T,A){var M=qa(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(g.getItemStyle());var D=M.ensureState("emphasis");D.style=y.getItemStyle();var I=new we({style:{text:x[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});M.setTextContent(I),ja({el:M,componentModel:e,itemName:A,formatterParamsExtra:{title:x[A]}}),M.__title=x[A],M.on("mouseover",function(){var L=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),M.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?Ar:Mr)(M),o.add(M),M.on("click",ae(p.onclick,p,n,a,A)),C[A]=M})}Lw(o,e,a),o.add(hp(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,m=d.ensureState("emphasis"),g=m.textConfig||(m.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!$(_)&&p){var S=_.style||(_.style={}),b=ps(p,we.makeFont(S)),x=d.x+o.x,C=d.y+o.y+s,T=!1;C+b.height>a.getHeight()&&(g.position="top",T=!0);var A=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(g.position=["100%",A],S.align="right"):x-b.width/2<0&&(g.position=[0,A],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){w(this._features,function(o){o instanceof Qe&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){w(this._features,function(a){a instanceof Qe&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(a){a instanceof Qe&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(Ye);function Rw(r){return r.indexOf("my")===0}const kw=Pw;var Ew=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ce.browser;if($(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=d.length,g=new Uint8Array(m);m--;)g[m]=d.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),C='',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Qe);const Ow=Ew;var Gc="__ec_magicType_stack__",Nw=[["line","bar"],["stack"]],Bw=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return w(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Fc[a]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=Fc[a](h,v,f,i);d&&(te(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=p.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",_=f.getReferringComponents(y,Re).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};w(Nw,function(f){oe(f,a)>=0&&w(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Z({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Qe),Fc={line:function(r,t,e,n){if(r==="bar")return Z({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Z({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===Gc;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Z({id:t,stack:a?"":Gc},n.get(["option","stack"])||{},!0)}};ct({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const Vw=Bw;var pi=new Array(60).join("-"),Er=" ";function zw(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Gw(r){var t=[];return w(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(z(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Er)],c=0;c1||e>0&&!r.noHeader;return w(r.blocks,function(a){var i=wh(a);i>=t&&(t=i+ +(n&&(!i||Eo(a)&&!a.noHeader)))}),t}return 0}function M0(r,t,e,n){var a=t.noHeader,i=L0(wh(t)),o=[],s=t.blocks||[];st(!s||E(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(gt(u,l)){var c=new ph(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var m=t.valueFormatter,g=bh(d)(m?O(O({},r),{valueFormatter:m}):r,d,p>0?i.html:0,n);g!=null&&o.push(g)});var f=r.renderMode==="richText"?o.join(i.richText):Oo(o.join(""),a?e:i.html);if(a)return f;var h=Lo(t.header,"ordinal",r.useUTC),v=xh(n,r.renderMode).nameStyle;return r.renderMode==="richText"?Ch(r,h,v)+i.richText+f:Oo('
'+Fe(h)+"
"+f,e)}function I0(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(S){return S=E(S)?S:[S],z(S,function(b,x){return Lo(b,E(v)?v[x]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Lo(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value),p=!s||!i,m=!s&&i,g=xh(n,a),y=g.nameStyle,_=g.valueStyle;return a==="richText"?(s?"":f)+(i?"":Ch(r,h,y))+(o?"":k0(r,d,p,m,_)):Oo((s?"":f)+(i?"":P0(h,!s,y))+(o?"":R0(d,p,m,_)),e)}}function Cu(r,t,e,n,a,i){if(r){var o=bh(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function L0(r){return{html:D0[r],richText:A0[r]}}function Oo(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function P0(r,t,e){var n=t?"margin-left:2px":"";return''+Fe(r)+""}function R0(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=E(r)?r:[r],''+z(r,function(o){return Fe(o)}).join("  ")+""}function Ch(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function k0(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(E(t)?t.join(" "):t,i)}function E0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return nr(n)}function Th(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Pi=function(){function r(){this.richTextStyles={},this._nextStyleNameId=iv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=my({color:e,type:t,renderMode:n,markerId:a});return G(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};E(e)?w(e,function(i){return O(n,i)}):O(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function O0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=E(s),u=E0(t,e),c,f,h,v;if(o>1||l&&!o){var d=N0(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=c=Pr(a,e,i[0]),f=p.type}else v=c=l?s[0]:s;var m=ms(t),g=m&&t.name||"",y=a.getName(e),_=n?g:y;return In("section",{header:g,noHeader:n||!m,sortParam:v,blocks:[In("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Bn(_),value:c,valueType:f})].concat(h||[])})}function N0(r,t,e,n,a){var i=t.getData(),o=Da(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(f){c(Pr(i,e,f),f)}):w(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(In("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var At=le();function Jn(r,t){return r.getName(t)||r.getId(t)}var wa="__universalTransitionEnabled",li=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=gn({count:V0,reset:z0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=At(this).sourceManager=new _h(this);i.prepareSource();var o=this.getInitialData(e,a);Du(o,this),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,Tu(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=An(this),i=a?ii(e):{},o=this.subType;ie.hasClass(o)&&(o+="Series"),Z(e,n.getTheme().get(this.subType)),Z(e,this.getDefaultOption()),bo(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Lr(e,i,a)},t.prototype.mergeOption=function(e,n){e=Z(this.option,e,!0),this.fillDataTextStyle(e.data);var a=An(this);a&&Lr(this.option,e,a);var i=At(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);Du(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,Tu(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!He(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Bs.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Jn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[wa])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ie.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ie);St(li,s0);St(li,Bs);hv(li,ie);function Tu(r){var t=r.name;ms(r)||(r.name=B0(r)||t)}function B0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function V0(r){return r.model.getRawData().count()}function z0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),G0}function G0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Du(r,t){w(vg(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Q(F0,t))})}function F0(r,t){var e=No(r);return e&&e.setOutputEnd((t||this).count()),t}function No(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const lt=li;var Hs=function(){function r(){this.group=new pe,this.uid=Wn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();_s(Hs);Ua(Hs);const Ye=Hs;function Hn(){var r=le();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Dh=le(),W0=Hn(),Us=function(){function r(){this.group=new pe,this.uid=Wn("viewChart"),this.renderTask=gn({plan:H0,reset:U0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Mu(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Mu(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){Fn(this.group,t)},r.markUpdateMethod=function(t,e){Dh(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Au(r,t,e){r&&Do(r)&&(t==="emphasis"?Ar:Mr)(r,e)}function Mu(r,t,e){var n=rr(r,t),a=t&&t.highlightKey!=null?Em(t.highlightKey):null;n!=null?w(he(n),function(i){Au(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Au(i,e,a)})}_s(Us);Ua(Us);function H0(r){return W0(r.model)}function U0(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&Dh(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),Y0[l]}var Y0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Oe=Us;var Oa="\0__throttleOriginMethod",Iu="\0__throttleRate",Lu="\0__throttleType";function Ys(r,t,e){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function Ah(r,t,e,n){var a=r[t];if(a){var i=a[Oa]||a,o=a[Lu],s=a[Iu];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=Ys(i,e,n==="debounce"),a[Oa]=i,a[Lu]=n,a[Iu]=e}return a}}function Bo(r,t){var e=r[t];e&&e[Oa]&&(e.clear&&e.clear(),r[t]=e[Oa])}var Pu=le(),Ru={itemStyle:xn(Ev,!0),lineStyle:xn(kv,!0)},$0={lineStyle:"stroke",itemStyle:"fill"};function Mh(r,t){var e=r.visualStyleMapper||Ru[t];return e||(console.warn("Unknown style type '"+t+"'."),Ru.itemStyle)}function Ih(r,t){var e=r.visualDrawType||$0[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var X0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=Mh(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Ih(r,n),u=o[l],c=$(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||$(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),m=O({},o);m[l]=c(p),v.setItemVisual(d,"style",m)}}}},Zr=new Te,Z0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=Mh(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Zr.option=l[n];var u=a(Zr),c=o.ensureUniqueItemVisual(s,"style");O(c,u),Zr.option.decal&&(o.setItemVisual(s,"decal",Zr.option.decal),Zr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},K0={performRawSeries:!0,overallReset:function(r){var t=W();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Pu(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Pu(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Ih(e,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},ea=Math.PI;function q0(r,t){t=t||{},te(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new pe,n=new ve({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new we({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new ve({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new ds({shape:{startAngle:-ea/2,endAngle:-ea/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ea*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ea*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var j0=function(){function r(t,e,n,a){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=W();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";st(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(m){s(a,m)&&(m.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(m){m.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=W(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||gn({plan:r_,reset:n_,count:i_}));v.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||gn({reset:Q0});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=W(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,v="";st(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,a).each(d):(f=!1,w(n.getSeries(),d));function d(p){var m=p.uid,g=l.set(m,s&&s.get(m)||(h=!0,gn({reset:J0,onDirty:t_})));g.context={model:p,overallProgress:f},g.agent=o,g.__block=f,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return $(t)&&(t={overallReset:t,seriesType:o_(t)}),t.uid=Wn("stageHandler"),e&&(t.visualType=e),t},r}();function Q0(r){r.overallReset(r.ecModel,r.api,r.payload)}function J0(r){return r.overallProgress&&e_}function e_(){this.agent.dirty(),this.getDownstream().dirty()}function t_(){this.agent&&this.agent.dirty()}function r_(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function n_(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=he(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,n){return Lh(n)}):a_}var a_=Lh(0);function Lh(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Vo=["symbol","symbolSize","symbolRotate","symbolOffset"],Nu=Vo.concat(["symbolKeepAspect"]),c_={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[Ae]){if(this._disposed){this.id;return}var i,o,s;if(H(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ae]=!0,!this._model||n){var l=new Uy(this._api),u=this._theme,c=this._model=new nh;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Wo);var f={seriesTransition:s,optionChanged:!0};if(a)this[Ee]={silent:i,updateParams:f},this[Ae]=!1,this.getZr().wakeUp();else{try{dr(this),Mt.update.call(this,null,f)}catch(h){throw this[Ee]=null,this[Ae]=!1,h}this._ssr||this._zr.flush(),this[Ee]=null,this[Ae]=!1,Kr.call(this,i),qr.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ce.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(ce.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;w(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if($u[a]){var l=s,u=s,c=-s,f=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(yn,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(X(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,m=qf.createCanvas(),g=xl(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:p}),n){var y="";return w(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new ve({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new Or({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Ni(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Ni(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=vn(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=vn(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?v_(s,l,n):h_(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(Y_,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&un(s,function(d){var p=J(d);if(p&&p.dataIndex!=null){var m=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=O({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),w(mn,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),p_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&cv(this.getDom(),Ks,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete yn[n.id]},t.prototype.resize=function(e){if(!this[Ae]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Ee]&&(i==null&&(i=this[Ee].silent),a=!0,this[Ee]=null),this[Ae]=!0;try{a&&dr(this),Mt.update.call(this,{type:"resize",animation:O({duration:0},e&&e.animation)})}catch(o){throw this[Ae]=!1,o}this[Ae]=!1,Kr.call(this,i),qr.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(H(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Ho[e]){var a=Ho[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=O({},e);return n.type=mn[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(H(n)||(n={silent:!!n}),!!Ba[e.type]&&this._model){if(this[Ae]){this._pendingActions.push(e);return}var a=n.silent;Vi.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&ce.browser.weChat&&this._throttledZrFlush(),Kr.call(this,a),qr.call(this,a)}},t.prototype.updateLabelLayout=function(){qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){dr=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),Oi(f,!0),Oi(f,!1),h.plan()},Oi=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,m=h?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,_=0;_h.get("hoverLayerThreshold")&&!ce.node&&!ce.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=f._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,d){var p=f.getTextContent(),m=f.getTextGuideLine(),g=f.isGroup;if(g)for(var y=f.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xr(g))return;if(g instanceof _e&&Om(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}g.__dirty&&a(g)}})}Uu=function(f){return new(function(h){N(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ar(d,p),Ve(f)},v.prototype.leaveEmphasis=function(d,p){Mr(d,p),Ve(f)},v.prototype.enterBlur=function(d){Tm(d),Ve(f)},v.prototype.leaveBlur=function(d){yv(d),Ve(f)},v.prototype.enterSelect=function(d){_v(d),Ve(f)},v.prototype.leaveSelect=function(d){Sv(d),Ve(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(ah))(f)},Xh=function(f){function h(v,d){for(var p=0;p=0)){Xu.push(e);var i=kh.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function Jh(r,t){Ho[r]=t}function Q_(r,t,e){var n=L_("registerMap");n&&n(r,t,e)}var J_=_0;lr(Xs,X0);lr(ui,Z0);lr(ui,K0);lr(Xs,c_);lr(ui,f_);lr(Fh,A_);jh(oh);Qh(k_,Qy);Jh("default",q0);ct({type:jt,event:jt,update:jt},mt);ct({type:ma,event:ma,update:ma},mt);ct({type:hn,event:hn,update:hn},mt);ct({type:ya,event:ya,update:ya},mt);ct({type:dn,event:dn,update:dn},mt);qh("light",s_);qh("dark",l_);function jr(r){return r==null?0:r.length||1}function Zu(r){return r}var eS=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Zu,this._newKeyGetter=a||Zu,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var Qr=H,It=z,sS=typeof Int32Array>"u"?Array:Int32Array,lS="e\0\0",Ku=-1,uS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],cS=["_approximateExtent"],qu,aa,Jr,en,Fi,ia,Wi,fS=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;td(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===$e;if(l&&!a.pure)for(var u=[],c=t;c0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),E(i)?i=i.slice():Qr(i)&&(i=O({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Qr(e)?O(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Qr(t)?O(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?O(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;pm(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:It(this.dimensions,this._getDimInfo,this),this.hostModel)),Fi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];$(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(pg(arguments)))})},r.internalField=function(){qu=function(t){var e=t._invertedIndicesMap;w(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new sS(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[e]=l}}}(),r}();const id=fS;function od(r,t){zs(r)||(r=Gs(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=W(),i=[],o=hS(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ad(o),l=n===r.dimensionsDefine,u=l?nd(r):rd(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=W(c),h=new mh(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function hS(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(i){var o;H(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function dS(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var pS=function(){function r(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return r}();function gS(r){var t=r.get("coordinateSystem"),e=new pS(t),n=mS[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var mS={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Re).models[0],i=r.getReferringComponents("yAxis",Re).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),pr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),pr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Re).models[0];t.coordSysDims=["single"],e.set("single",a),pr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Re).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),pr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),pr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];e.set(c,u),pr(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function pr(r){return r.get("type")==="category"}function yS(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;_S(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(w(i,function(y,_){G(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;w(i,function(y){y.coordDim===v&&p++});var m={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(i.push(m),i.push(g))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function _S(r){return!td(r.schema)}function Rr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function SS(r,t){return Rr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function xS(r,t){var e=r.get("coordinateSystem"),n=Vs.get(e),a;return t&&t.coordSysDims&&(a=z(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Uo(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function bS(r,t,e){var n,a;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ci(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=Gs(r)):(a=n.getSource(),i=a.sourceFormat===$e);var o=gS(t),s=xS(t,o),l=e.useEncodeDefaulter,u=$(l)?l:l?Q(Qv,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=od(a,c),h=bS(f.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(f),d=yS(t,{schema:f,store:v}),p=new id(f,t);p.setCalculationInfo(d);var m=h!=null&&wS(a)?function(g,y,_,S){return S===h?_:this.defaultDimValueGetter(g,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,m),p}function wS(r){if(r.sourceFormat===$e){var t=CS(r.data||[]);return!E(zn(t))}}function CS(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Ua(sd);const bt=sd;var TS=0,DS=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++TS}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&z(n,AS);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!G(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r}();function AS(r){return H(r)&&r.value!=null?r.value:r+""}const Yo=DS;function $o(r){return r.type==="interval"||r.type==="log"}function MS(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=nv(i/t,!0);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=ld(o),l=a.niceTickExtent=[ye(Math.ceil(r[0]/o)*o,s),ye(Math.floor(r[1]/o)*o,s)];return IS(l,r),a}function Hi(r){var t=Math.pow(10,gs(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ye(e*t)}function ld(r){return dt(r)+2}function ju(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function IS(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),ju(r,0,t),ju(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function fi(r,t){return r>=t[0]&&r<=t[1]}function vi(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function hi(r,t){return r*(t[1]-t[0])+t[0]}var ud=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Yo({})),E(a)&&(a=new Yo({categories:z(a,function(i){return H(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),fi(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),vi(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(hi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(bt);bt.registerClass(ud);const cd=ud;var Xt=ye,fd=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return fi(e,this._extent)},t.prototype.normalize=function(e){return vi(e,this._extent)},t.prototype.scale=function(e){return hi(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=ld(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(e?s.push({value:Xt(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function dd(r){var t=RS(r),e=[];return w(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=ee(n.get("barWidth"),s),p=ee(n.get("barMaxWidth"),s),m=ee(n.get("barMinWidth")||(yd(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:y,axisKey:Js(i),stackId:Qs(n)})}),kS(e)}function kS(r){var t={};w(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Be(i).length;s=Math.max(35-l*4,15)+"%"}var u=ee(s,o),c=ee(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),w(i,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),g.width=S,f-=S+c*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(g.width=S,f-=S+c*S,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;w(i,function(g,y){g.width||(g.width=v),p=g,d+=g.width*(1+c)}),p&&(d-=p.width*c);var m=-d/2;w(i,function(g,y){e[a][y]=e[a][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+c)})}),e}function ES(r,t,e){if(r&&t){var n=r[Js(t)];return n!=null&&e!=null?n[Qs(e)]:n}}function pd(r,t){var e=hd(r,t),n=dd(e);w(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Qs(a),u=n[Js(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function gd(r){return{seriesType:r,plan:Hn(),reset:function(t){if(md(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=Rr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=OS(a,i),d=yd(t),p=t.get("barMinHeight")||0,m=c&&e.getDimensionIndex(c),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&nt(b*3),C=d&&l&&nt(b*3),T=d&&nt(b),A=n.master.getRect(),M=h?A.width:A.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(f?m:o,D),R=I.get(s,D),V=v,Y=void 0;f&&(Y=+P-I.get(o,D));var k=void 0,B=void 0,F=void 0,U=void 0;if(h){var K=n.dataToPoint([P,R]);if(f){var q=n.dataToPoint([Y,R]);V=q[0]}k=V,B=K[1]+y,F=K[0]-V,U=g,Math.abs(F)>>1;r[a][1]a&&(this._approxInterval=a);var s=oa.length,l=Math.min(NS(oa,this._approxInterval,0,s),s-1);this._interval=oa[l][1],this._minLevelUnit=oa[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return se(e)?e:+yt(e)},t.prototype.contain=function(e){return fi(this.parse(e),this._extent)},t.prototype.normalize=function(e){return vi(this.parse(e),this._extent)},t.prototype.scale=function(e){return hi(e,this._extent)},t.type="time",t}(Un),oa=[["second",Rs],["minute",ks],["hour",pn],["quarter-day",pn*6],["half-day",pn*12],["day",We*1.2],["half-week",We*3.5],["week",We*7],["month",We*31],["quarter",We*95],["half-year",Kl/2],["year",Kl]];function BS(r,t,e,n){var a=yt(t),i=yt(e),o=function(d){return jl(a,d,n)===jl(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function VS(r,t){return r/=We,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function zS(r){var t=30*We;return r/=t,r>6?6:r>3?3:r>2?2:1}function GS(r){return r/=pn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Qu(r,t){return r/=t?ks:Rs,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function FS(r){return nv(r,!0)}function WS(r,t,e){var n=new Date(r);switch(br(t)){case"year":case"month":n[zv(e)](0);case"day":n[Gv(e)](1);case"hour":n[Fv(e)](0);case"minute":n[Wv(e)](0);case"second":n[Hv(e)](0),n[Uv(e)](0)}return n.getTime()}function HS(r,t,e,n){var a=1e4,i=Bv,o=0;function s(M,D,I,L,P,R,V){for(var Y=new Date(D),k=D,B=Y[L]();k1&&R===0&&I.unshift({value:I[0].value-k})}}for(var R=0;R=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&h>_/1.5||(u.push(m),f>_||r===i[v]))break}c=[]}}}for(var S=xe(z(u,function(M){return xe(M,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1,v=0;v0;)i*=10;var s=[ye(XS(n[0]/i)*i),ye($S(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){_n.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ke(e)/Ke(this.base),fi(e,this._extent)},t.prototype.normalize=function(e){return e=Ke(e)/Ke(this.base),vi(e,this._extent)},t.prototype.scale=function(e){return e=hi(e,this._extent),sa(this.base,e)},t.type="log",t}(bt),Sd=el.prototype;Sd.getMinorTicks=_n.getMinorTicks;Sd.getLabel=_n.getLabel;function la(r,t){return YS(r,dt(t))}bt.registerClass(el);const ZS=el;var KS=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[jS[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=qS[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),qS={min:"_determinedMin",max:"_determinedMax"},jS={min:"_dataMin",max:"_dataMax"};function xd(r,t,e){var n=r.rawExtentInfo;return n||(n=new KS(r,t,e),r.rawExtentInfo=n,n)}function ua(r,t){return t==null?null:xo(t)?NaN:r.parse(t)}function bd(r,t){var e=r.type,n=xd(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=hd("bar",o),l=!1;if(w(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=dd(s),c=QS(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function QS(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=ES(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,h=c/f-c;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function ec(r,t){var e=t,n=bd(r,e),a=n.extent,i=e.get("splitNumber");r instanceof ZS&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function JS(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new cd({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new US({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(bt.getClass(t)||Un)}}function ex(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Yn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):G(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):$(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(tl(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function tl(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function tx(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof cd?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Yn(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cr[1]&&(r[1]=a[1])})}var ax=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),tc=[],ix={registerPreprocessor:jh,registerProcessor:Qh,registerPostInit:Z_,registerPostUpdate:K_,registerUpdateLifecycle:qs,registerAction:ct,registerCoordinateSystem:q_,registerLayout:j_,registerVisual:lr,registerTransform:J_,registerLoading:Jh,registerMap:Q_,registerImpl:I_,PRIORITY:W_,ComponentModel:ie,ComponentView:Ye,SeriesModel:lt,ChartView:Oe,registerComponentModel:function(r){ie.registerClass(r)},registerComponentView:function(r){Ye.registerClass(r)},registerSeriesModel:function(r){lt.registerClass(r)},registerChartView:function(r){Oe.registerClass(r)},registerSubTypeDefaulter:function(r,t){ie.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){gg(r,t)}};function _t(r){if(E(r)){w(r,function(t){_t(t)});return}oe(tc,r)>=0||(tc.push(r),$(r)&&(r={install:r}),r.install(ix))}var Rn=le();function ox(r){return r.type==="category"?lx(r):cx(r)}function sx(r,t){return r.type==="category"?ux(r,t):{ticks:z(r.scale.getTicks(),function(e){return e.value})}}function lx(r){var t=r.getLabelModel(),e=Td(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Td(r,t){var e=Dd(r,"labels"),n=rl(t),a=Ad(e,n);if(a)return a;var i,o;return $(n)?i=Ld(r,n):(o=n==="auto"?fx(r):n,i=Id(r,o)),Md(e,n,{labels:i,labelCategoryInterval:o})}function ux(r,t){var e=Dd(r,"ticks"),n=rl(t),a=Ad(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),$(n))i=Ld(r,n,!0);else if(n==="auto"){var s=Td(r,r.getLabelModel());o=s.labelCategoryInterval,i=z(s.labels,function(l){return l.tickValue})}else o=n,i=Id(r,o,!0);return Md(e,n,{ticks:i,tickCategoryInterval:o})}function cx(r){var t=r.scale.getTicks(),e=Yn(r);return{labels:z(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function Dd(r,t){return Rn(r)[t]||(Rn(r)[t]=[])}function Ad(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,m=ps(e({value:l}),t.font,"center","top");d=m.width*1.3,p=m.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var g=h/c,y=v/f;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(g,y))),S=Rn(r.model),b=r.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function hx(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Id(r,t,e){var n=Yn(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=wd(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(m){var g={value:m};s.push(e?m:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:m})}return s}function Ld(r,t,e){var n=r.scale,a=Yn(r),i=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var rc=[0,1],dx=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return tv(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),nc(n,a.count())),Ot(t,rc,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),nc(n,a.count()));var i=Ot(t,n,rc,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=sx(this,e),a=n.ticks,i=z(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return px(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=z(n,function(i){return z(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return ox(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return vx(this)},r}();function nc(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function px(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=ye(v),d=ye(d),f?v>d:va&&(a+=tn);var v=Math.atan2(s,o);if(v<0&&(v+=tn),v>=n&&v<=a||v+tn>=n&&v+tn<=a)return l[0]=c,l[1]=f,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,m=e*Math.cos(a)+r,g=e*Math.sin(a)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(m-o)*(m-o)+(g-s)*(g-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(_))}function za(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,c=e-r,f=n-t,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*c,m=o[1]=t+d*f;return Math.sqrt((p-a)*(p-a)+(m-i)*(m-i))}function Pd(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var je=[];function Sx(r,t,e){var n=Pd(t.x,t.y,t.width,t.height,r.x,r.y,je);return e.set(je[0],je[1]),n}function xx(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,Je.fromArray(r[0]),ne.fromArray(r[1]),fe.fromArray(r[2]),be.sub(at,Je,ne),be.sub(tt,fe,ne);var e=at.len(),n=tt.len();if(!(e<.001||n<.001)){at.scale(1/e),tt.scale(1/n);var a=at.dot(tt),i=Math.cos(t);if(i1&&be.copy(Pe,fe),Pe.toArray(r[1])}}}}function bx(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Je.fromArray(r[0]),ne.fromArray(r[1]),fe.fromArray(r[2]),be.sub(at,ne,Je),be.sub(tt,fe,ne);var n=at.len(),a=tt.len();if(!(n<.001||a<.001)){at.scale(1/n),tt.scale(1/a);var i=at.dot(t),o=Math.cos(e);if(i=l)be.copy(Pe,fe);else{Pe.scaleAndAdd(tt,s/Math.tan(Math.PI/2-c));var f=fe.x!==ne.x?(Pe.x-ne.x)/(fe.x-ne.x):(Pe.y-ne.y)/(fe.y-ne.y);if(isNaN(f))return;f<0?be.copy(Pe,ne):f>1&&be.copy(Pe,fe)}Pe.toArray(r[1])}}}}function ic(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function wx(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=bl(n[0],n[1]),i=bl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=_i([],n[1],n[0],o/a),l=_i([],n[1],n[2],o/i),u=_i([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&i&&b(-c/o,0,o);var p=r[0],m=r[o-1],g,y;_(),g<0&&x(-g,.8),y<0&&x(y,.8),_(),S(g,y,1),S(y,g,-1),_(),g<0&&C(-g),y<0&&C(y);function _(){g=p.rect[t]-n,y=a-m.rect[t]-m.rect[e]}function S(T,A,M){if(T<0){var D=Math.min(A,-T);if(D>0){b(D*M,0,o);var I=D+T;I<0&&x(-I*M,1)}else x(-T*M,1)}}function b(T,A,M){T!==0&&(u=!0);for(var D=A;D0)for(var I=0;I0;I--){var V=M[I-1]*R;b(-V,I,o)}}}function C(T){var A=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D0?b(M,0,D+1):b(-M,o-D-1,o),T-=M,T<=0)return}return u}function Cx(r,t,e,n){return Nd(r,"x","width",t,e,n)}function Bd(r,t,e,n){return Nd(r,"y","height",t,e,n)}function Vd(r){var t=[];r.sort(function(p,m){return m.priority-p.priority});var e=new Ne(0,0,0,0);function n(p){if(!p.ignore){var m=p.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}p.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),oe(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),ge(n,u,e,l)}else if(n.attr(u),!Vr(n).valueAnimation){var f=ue(n.style.opacity,1);n.style.opacity=0,De(n,{style:{opacity:f}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};ca(v,u,fa),ca(v,n.states.select,fa)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};ca(d,u,fa),ca(d,n.states.emphasis,fa)}jm(n,l,c,e,e)}if(a&&!a.ignore&&!a.invisible){var i=Ax(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),ge(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,De(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const Ix=Mx;var Yi=le();function fD(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Yi(e).labelManager;a||(a=Yi(e).labelManager=new Ix),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Yi(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var Lx=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ie);const Px=Lx;var Xo=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Re).models[0]},t.type="cartesian2dAxis",t}(ie);St(Xo,ax);var zd={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Rx=Z({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},zd),nl=Z({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},zd),kx=Z({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},nl),Ex=te({logBase:10},nl);const Ox={category:Rx,value:nl,time:kx,log:Ex};var Nx={value:1,category:1,time:1,log:1};function sc(r,t,e,n){w(Nx,function(a,i){var o=Z(Z({},Ox[i],!0),n,!0),s=function(l){N(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=An(this),v=h?ii(c):{},d=f.getTheme();Z(c,d.get(i+"Axis")),Z(c,this.getDefaultOption()),c.type=lc(c),h&&Lr(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Yo.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",lc)}function lc(r){return r.type||(r.data?"category":"value")}var Bx=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),xe(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const Vx=Bx;var Zo=["x","y"];function uc(r){return r.type==="interval"||r.type==="time"}var zx=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Zo,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!uc(e)||!uc(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-a[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=vs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Ne(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return er(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return er(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(e[0],e[1]),i=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-a,s=Math.max(n[0],n[1])-i;return new Ne(a,i,o,s)},t}(Vx),Gx=function(r){N(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(gx);const Fx=Gx;function Ko(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Dr(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-g:g,i.z2=1,i}function cc(r){return r.get("coordinateSystem")==="cartesian2d"}function fc(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Re).models[0];t[n]=i}),t}var $i=Math.log;function Wx(r,t,e){var n=Un.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=bd(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=$i(r.base);u=[$i(u[0])/h,$i(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],m=u[1];if(c&&f)d=(m-p)/o;else if(c)for(m=u[0]+d*o;mu[0]&&isFinite(p)&&isFinite(u[0]);)d=Hi(d),p=u[1]-d*o;else{var g=r.getTicks().length-1;g>o&&(d=Hi(d));var y=d*o;m=Math.ceil(u[1]/d)*d,p=ye(m-y),p<0&&u[0]>=0?(p=0,m=ye(y)):m>0&&u[1]<=0&&(m=0,p=-ye(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,m+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,m-d)}var Hx=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zo,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Be(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;$o(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(ec(p,d),$o(p)&&(s=v))}c.length&&(s||(s=c.pop(),ec(s.scale,s.model)),w(c,function(m){Wx(m.scale,m.model,s.scale)}))}}a(n.x),a(n.y);var i={};w(n.x,function(o){vc(n,"y",o,i)}),w(n.y,function(o){vc(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Gt(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=tx(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),Ux(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}H(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Ia(a-Nt)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),dc={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(er(s,s,o),er(l,l,o));var c=O({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new tr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Cn(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);G(h)&&(h=[h,h]),(G(v)||se(v))&&(v=[v,v]);var d=$s(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],m=v[1];w([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(h[y]!=="none"&&h[y]!=null){var _=Ft(h[y],-p/2,-m/2,p,m,c.stroke,!0),S=g.r+g.offset,b=u?l:s;_.attr({rotation:g.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=Zx(e,n,t,r),i=qx(e,n,t,r);if(Xx(t,i,a),Kx(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Od(z(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Vd(o)}},axisName:function(r,t,e,n){var a=Dr(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,gc(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Nt/180);var d;gc(i)?h=Qt.innerTextLayout(r.rotation,v??r.rotation,o):(h=$x(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),m=t.get("nameTruncate",!0)||{},g=m.ellipsis,y=Dr(r.nameTruncateMaxWidth,m.maxWidth,d),_=new we({x:f[0],y:f[1],rotation:h.rotation,silent:Qt.isLabelSilent(t),style:zt(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(ja({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=Qt.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,J(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function $x(r,t,e,n){var a=rv(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ia(a-Nt/2)?(o=l?"bottom":"top",i="center"):Ia(a-Nt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aNt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Xx(r,t,e){if(!wd(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],f=e[e.length-1],h=e[e.length-2];n===!1?(ze(i),ze(u)):pc(i,o)&&(n?(ze(o),ze(c)):(ze(i),ze(u))),a===!1?(ze(s),ze(f)):pc(l,s)&&(a?(ze(l),ze(h)):(ze(s),ze(f)))}}function ze(r){r&&(r.ignore=!0)}function pc(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Uf([]);return Qf(a,a,-r.rotation),e.applyTransform(yo([],a,r.getLocalTransform())),n.applyTransform(yo([],a,t.getLocalTransform())),e.intersect(n)}}function gc(r){return r==="middle"||r==="center"}function Gd(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function rb(r){var t=al(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=qo(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=al(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=qt(t).pointerEl=new Ms[i.type](_c(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=qt(t).labelEl=new we(_c(e.label));t.add(i),xc(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=qt(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=qt(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),xc(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=qa(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){_g(u.event)},onmousedown:Ki(this._onHandleDragMove,this,0,0),drift:Ki(this._onHandleDragMove,this),ondragend:Ki(this._onHandleDragEnd,this)}),n.add(a)),bc(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");E(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ah(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Sc(this._axisPointerModel,!e&&this._moveAnimation,this._handle,qi(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(qi(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(qi(a)),qt(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Bo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function Sc(r,t,e,n){$d(qt(e).lastProp,n)||(qt(e).lastProp=n,t?ge(e,n,r):(e.stopAnimation(),e.attr(n)))}function $d(r,t){if(H(r)&&H(t)){var e=!0;return w(t,function(n,a){e=e&&$d(r[a],n)}),!!e}else return r===t}function xc(r,t){r[t.get(["label","show"])?"show":"hide"]()}function qi(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function bc(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}const hb=vb;function db(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function pb(r,t,e,n,a){var i=e.get("value"),o=Xd(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ai(s.get("padding")||0),u=s.getFont(),c=ps(o,u),f=a.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=a.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),gb(f,h,v,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function gb(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Xd(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:tl(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),G(o)?i=o.replace("{value}",i):$(o)&&(i=o(s))}return i}function Zd(r,t,e){var n=xg();return Qf(n,n,e.rotation),Sg(n,n,e.position),As([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function mb(r,t,e,n,a,i){var o=Fd.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),pb(t,n,a,i,{position:Zd(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function yb(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function _b(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var Sb=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=wc(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=db(i),v=xb[u](s,f,c);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Ko(l.model,a);mb(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Ko(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Zd(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=wc(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[c]}},t}(hb);function wc(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var xb={line:function(r,t,e){var n=yb([t,e[0]],[t,e[1]],Cc(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:_b([t-n/2,e[0]],[n,a],Cc(r))}}};function Cc(r){return r.dim==="x"?0:1}const bb=Sb;var wb=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ie);const Cb=wb;var pt=le(),Tb=w;function Kd(r,t,e){if(!ce.node){var n=t.getZr();pt(n).records||(pt(n).records={}),Db(n,t);var a=pt(n).records[r]||(pt(n).records[r]={});a.handler=e}}function Db(r,t){if(pt(r).initialized)return;pt(r).initialized=!0,e("click",Q(Tc,"click")),e("mousemove",Q(Tc,"mousemove")),e("globalout",Mb);function e(n,a){r.on(n,function(i){var o=Ib(t);Tb(pt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Ab(o.pendings,t)})}}function Ab(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function Mb(r,t,e){r.handler("leave",null,e)}function Tc(r,t,e,n){t.handler(r,e,n)}function Ib(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Qo(r,t){if(!ce.node){var e=t.getZr(),n=(pt(e).records||{})[r];n&&(pt(e).records[r]=null)}}var Lb=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Kd("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){Qo("axisPointer",n)},t.prototype.dispose=function(e,n){Qo("axisPointer",n)},t.type="axisPointer",t}(Ye);const Pb=Lb;function qd(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=rr(i,r);if(o==null||o<0||E(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(z(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),e=[m.x+m.width/2,m.y+m.height/2]}return{point:e,el:s}}var Dc=le();function Rb(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||ae(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ta(a)&&(a=qd({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ta(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||Ta(a),h={},v={},d={list:[],map:{}},p={showPointer:Q(Eb,v),showTooltip:Q(Ob,d)};w(s.coordSysMap,function(g,y){var _=l||g.containPoint(a);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,C=zb(u,S);if(!f&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&Ac(S,T,p,!1,h)}})});var m={};return w(c,function(g,y){var _=g.linkGroup;_&&!v[y]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var C=x.value;_.mapper&&(C=g.axis.scale.parse(_.mapper(C,Mc(S),Mc(g)))),m[g.key]=C}})}),w(m,function(g,y){Ac(c[y],g,p,!0,h)}),Nb(v,c,h),Bb(d,a,r,o),Vb(c,o,e),h}}function Ac(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=kb(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&O(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function kb(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,e);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=f,i.length=0),w(h,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Eb(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function Ob(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=kn(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Nb(r,t,e){var n=e.axesInfo=[];w(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Bb(r,t,e,n){if(Ta(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Vb(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=Dc(n)[a]||{},o=Dc(n)[a]={};w(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&w(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,c){!o[c]&&l.push(u)}),w(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function zb(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Mc(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Ta(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function jd(r){Wd.registerAxisPointerClass("CartesianAxisPointer",bb),r.registerComponentModel(Cb),r.registerComponentView(Pb),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!E(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=jx(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Rb)}function vD(r){_t(Yd),_t(jd)}var Ic="\0_ec_interaction_mutex";function Gb(r,t,e){var n=Qd(r);n[t]=e}function Fb(r,t,e){var n=Qd(r),a=n[t];a===e&&(n[t]=null)}function Qd(r){return r[Ic]||(r[Ic]={})}ct({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},mt);var Wb={axisPointer:1,tooltip:1,brush:1};function Hb(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!Wb.hasOwnProperty(n.mainType)&&a&&a.model!==e}function Jd(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=gr(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=gr(s,[0,o]),a=i=gr(s,[a,i]),n=0}t[0]=gr(t[0],e),t[1]=gr(t[1],e);var l=ji(t,n);t[n]+=r;var u=a||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=gr(t[n],c);var f;return f=ji(t,n),a!=null&&(f.sign!==l.sign||f.spani&&(t[1-n]=t[n]+f.sign*i),t}function ji(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function gr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ar=!0,En=Math.min,kr=Math.max,Ub=Math.pow,Yb=1e4,$b=6,Xb=6,Lc="globalPan",Zb={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Kb={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Pc={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},qb=0,jb=function(r){N(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new pe,n._uid="brushController_"+qb++,w(aw,function(a,i){this._handlers[i]=ae(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||Gb(n,Lc,this._uid),w(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=Z(X(Pc),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Fb(e,Lc,this._uid),w(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(a){n[a.panelId]=X(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=z(e,function(h){return Z(X(Pc),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Pn(a,e,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):tp(o,ep(o,d));il(o,p)}}function f(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Jo(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Vn);function ep(r,t){var e=di[t.brushType].createCover(r,t);return e.__brushOption=t,np(e,t),r.group.add(e),e}function tp(r,t){var e=ol(t);return e.endCreating&&(e.endCreating(r,t),np(t,t.__brushOption)),t}function rp(r,t){var e=t.__brushOption;ol(t).updateCoverShape(r,t,e.range,e)}function np(r,t){var e=t.z;e==null&&(e=Yb),r.traverse(function(n){n.z=e,n.z2=e})}function il(r,t){ol(t).updateCommon(r,t),rp(r,t)}function ol(r){return di[r.__brushOption.brushType]}function sl(r,t,e){var n=r._panels;if(!n)return ar;var a,i=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function ap(r,t){var e=r._panels;if(!e)return ar;var n=t.__brushOption.panelId;return n!=null?e[n]:ar}function Jo(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function ir(r,t){var e=z(r._covers,function(n){var a=n.__brushOption,i=X(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Qb(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=Ub(a*a+i*i,.5);return o>$b}function ip(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function op(r,t,e,n){var a=new pe;return a.add(new ve({name:"main",style:ll(e),silent:!0,draggable:!0,cursor:"move",drift:Q(Rc,r,t,a,["n","s","w","e"]),ondragend:Q(ir,t,{isEnd:!0})})),w(n,function(i){a.add(new ve({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Q(Rc,r,t,a,i),ondragend:Q(ir,t,{isEnd:!0})}))}),a}function sp(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=kr(a,Xb),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,c=e[0][1],f=e[1][1],h=c-i+a/2,v=f-i+a/2,d=c-o,p=f-s,m=d+a,g=p+a;ht(r,t,"main",o,s,d,p),n.transformable&&(ht(r,t,"w",l,u,i,g),ht(r,t,"e",h,u,i,g),ht(r,t,"n",l,u,m,i),ht(r,t,"s",l,v,m,i),ht(r,t,"nw",l,u,i,i),ht(r,t,"ne",h,u,i,i),ht(r,t,"sw",l,v,i,i),ht(r,t,"se",h,v,i,i))}function es(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(ll(e)),a.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?ts(r,i[0]):ew(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Kb[s]+"-resize":null})})}function ht(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(rw(ul(r,t,[[n,a],[n+i,a+o]])))}function ll(r){return te({strokeNoScale:!0},r.brushStyle)}function lp(r,t,e,n){var a=[En(r,e),En(t,n)],i=[kr(r,e),kr(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Jb(r){return Ds(r.group)}function ts(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Mv(e[t],Jb(r));return n[a]}function ew(r,t){var e=[ts(r,t[0]),ts(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Rc(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=up(t,a,i);w(n,function(u){var c=Zb[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(lp(s[0][0],s[1][0],s[0][1],s[1][1])),il(t,e),ir(t,{isEnd:!1})}function tw(r,t,e,n){var a=t.__brushOption.range,i=up(r,e,n);w(a,function(o){o[0]+=i[0],o[1]+=i[1]}),il(r,t),ir(r,{isEnd:!1})}function up(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function ul(r,t,e){var n=ap(r,t);return n&&n!==ar?n.clipPath(e,r._transform):X(e)}function rw(r){var t=En(r[0][0],r[1][0]),e=En(r[0][1],r[1][1]),n=kr(r[0][0],r[1][0]),a=kr(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function nw(r,t,e){if(!(!r._brushType||iw(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=sl(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var di={lineX:Oc(0),lineY:Oc(1),rect:{createCover:function(r,t){function e(n){return n}return op({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=ip(r);return lp(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){sp(r,t,e,n)},updateCommon:es,contain:ns},polygon:{createCover:function(r,t){var e=new pe;return e.add(new Nn({name:"main",style:ll(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new hs({name:"main",draggable:!0,drift:Q(tw,r,t),ondragend:Q(ir,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:ul(r,t,e)})},updateCommon:es,contain:ns}};function Oc(r){return{createCover:function(t,e){return op({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=ip(t),n=En(e[0][r],e[1][r]),a=kr(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=ap(t,e);if(o!==ar&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),sp(t,e,l,a)},updateCommon:es,contain:ns}}const ow=jb;function sw(r){return r=cl(r),function(t){return Lv(t,r)}}function lw(r,t){return r=cl(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function uw(r,t,e){var n=cl(r);return function(a,i){return n.contain(i[0],i[1])&&!Hb(a,t,e)}}function cl(r){return Ne.create(r)}var Nc=["x","y","radius","angle","single"],cw=["cartesian2d","polar","singleAxis"];function fw(r){var t=r.get("coordinateSystem");return oe(cw,t)>=0}function Sr(r){return r+"Axis"}function vw(r,t){var e=W(),n=[],a=W();r.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(e.get(f)||e.set(f,[]))[h]=!0})}return n}var Qi=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),hw=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=Bc(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Bc(e);Z(this.option,e,!0),Z(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=W(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(Nc,function(a){var i=this.getReferringComponents(Sr(a),tm);if(i.specified){n=!0;var o=new Qi;w(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new Qi;if(h.add(f.componentIndex),e.set(c,h),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Re).models[0];v&&w(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Re).models[0]&&h.add(d.componentIndex)})}}}i&&w(Nc,function(u){if(i){var c=a.findComponents({mainType:Sr(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new Qi;f.add(c[0].componentIndex),e.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Sr(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){w(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Sr(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(m=!0),S&&(d=!0),b&&(p=!0)}return m&&d&&p})}else _r(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});_r(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;_r(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ot(n[0]+o,n,[0,100],!0):i!=null&&(o=Ot(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=tv(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function bw(r,t,e){var n=[1/0,-1/0];_r(e,function(o){nx(n,o.getData(),t)});var a=r.getAxisModel(),i=xd(a.axis.scale,a,n).calculate();return[i.min,i.max]}const ww=xw;var Cw={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Sr(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new ww(a,i,s,r),e.push(o.__dzAxisProxy))});var n=W();return w(e,function(a){w(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const Tw=Cw;function Dw(r){r.registerAction("dataZoom",function(t,e){var n=vw(e,t);w(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var zc=!1;function Aw(r){zc||(zc=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Tw),Dw(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Mw(r){r.registerComponentModel(gw),r.registerComponentView(Sw),Aw(r)}var Qe=function(){function r(){}return r}(),fp={};function rn(r,t){fp[r]=t}function vp(r){return fp[r]}var Iw=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(n,a){var i=vp(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Z(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ie);const Lw=Iw;function Pw(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Gt(n,i,a);Cr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),_y(r,n,i,a)}function hp(r,t){var e=ai(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new ve({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Rw=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),f=[];w(u,function(d,p){f.push(p)}),new Pn(this._featureNames||[],f).add(h).update(h).remove(Q(h,null)).execute(),this._featureNames=f;function h(d,p){var m=f[d],g=f[p],y=u[m],_=new Te(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(y.title=i.newTitle),m&&!g){if(kw(m))S={onclick:_.option.onclick,featureName:m};else{var b=vp(m);if(!b)return;S=new b}c[m]=S}else if(S=c[g],!S)return;S.uid=Wn("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Qe;if(!m&&g){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,m),_.setIconStatus=function(C,T){var A=this.option,M=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[C]=T,M[C]&&(T==="emphasis"?Ar:Mr)(M[C])},S instanceof Qe&&S.render&&S.render(_,n,a,i)}function v(d,p,m){var g=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Qe&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;G(_)?(b={},b[m]=_):b=_,G(S)?(x={},x[m]=S):x=S;var C=d.iconPaths={};w(b,function(T,A){var M=qa(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(g.getItemStyle());var D=M.ensureState("emphasis");D.style=y.getItemStyle();var I=new we({style:{text:x[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});M.setTextContent(I),ja({el:M,componentModel:e,itemName:A,formatterParamsExtra:{title:x[A]}}),M.__title=x[A],M.on("mouseover",function(){var L=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),M.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?Ar:Mr)(M),o.add(M),M.on("click",ae(p.onclick,p,n,a,A)),C[A]=M})}Pw(o,e,a),o.add(hp(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,m=d.ensureState("emphasis"),g=m.textConfig||(m.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!$(_)&&p){var S=_.style||(_.style={}),b=ps(p,we.makeFont(S)),x=d.x+o.x,C=d.y+o.y+s,T=!1;C+b.height>a.getHeight()&&(g.position="top",T=!0);var A=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(g.position=["100%",A],S.align="right"):x-b.width/2<0&&(g.position=[0,A],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){w(this._features,function(o){o instanceof Qe&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){w(this._features,function(a){a instanceof Qe&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(a){a instanceof Qe&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(Ye);function kw(r){return r.indexOf("my")===0}const Ew=Rw;var Ow=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ce.browser;if($(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=d.length,g=new Uint8Array(m);m--;)g[m]=d.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),C='',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Qe);const Nw=Ow;var Gc="__ec_magicType_stack__",Bw=[["line","bar"],["stack"]],Vw=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return w(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Fc[a]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=Fc[a](h,v,f,i);d&&(te(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=p.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",_=f.getReferringComponents(y,Re).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};w(Bw,function(f){oe(f,a)>=0&&w(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Z({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Qe),Fc={line:function(r,t,e,n){if(r==="bar")return Z({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Z({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===Gc;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Z({id:t,stack:a?"":Gc},n.get(["option","stack"])||{},!0)}};ct({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const zw=Vw;var pi=new Array(60).join("-"),Er=" ";function Gw(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Fw(r){var t=[];return w(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(z(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Er)],c=0;c=0)return!0}var as=new RegExp("["+Er+"]+","g");function Uw(r){for(var t=r.split(/\n+/g),e=Fa(t.shift()).split(as),n=[],a=z(e,function(l){return{name:l,data:[]}}),i=0;i=0)return!0}var as=new RegExp("["+Er+"]+","g");function Yw(r){for(var t=r.split(/\n+/g),e=Fa(t.shift()).split(as),n=[],a=z(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function jw(r){var t=fl(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return dp(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function Qw(r){pp(r).snapshots=null}function Jw(r){return fl(r).length}function fl(r){var t=pp(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var e1=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Qw(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Qe);ct({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const t1=e1;var r1=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],n1=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=Wc(e,t);w(a1,function(o,s){(!n||!n.include||oe(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Ji[n.brushType](0,i,a);n.__rangeOffset={offset:$c[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=Ji[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Ji[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?$c[n.brushType](i.values,o.offset,i1(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return z(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:ow(a),isTargetByCursor:lw(a,t,n.coordSysModel),getLinearBrushOtherExtent:sw(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&oe(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=Wc(e,t),i=0;ir[1]&&r.reverse(),r}function Wc(r,t){return vn(r,t,{includeMainTypes:r1})}var a1={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=W(),o={},s={};!e&&!n&&!a||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];w(u.getCartesians(),function(f,h){(oe(e,f.getAxis("x").model)>=0||oe(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:Uc.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Uc.geo})})}},Hc=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Uc={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ds(r)),t}},Ji={lineX:Q(Yc,0),lineY:Q(Yc,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[is([a[0],i[0]]),is([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=z(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Yc(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=is(z([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var $c={lineX:Q(Xc,0),lineY:Q(Xc,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return z(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function Xc(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function i1(r,t){var e=Zc(r),n=Zc(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function Zc(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const gp=n1;var os=w,o1=jg("toolbox-dataZoom_"),s1=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new iw(a.getZr()),this._brushController.on("brush",ae(this._onBrush,this)).mount()),c1(e,n,this,i,a),u1(e,n)},t.prototype.onclick=function(e,n,a){l1[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new gp(vl(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),qw(i,a),this._dispatchZoomAction(a);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=Jd(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];os(e,function(a,i){n.push(X(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Qe),l1={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(jw(this.ecModel))}};function vl(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function u1(r,t){r.setIconStatus("back",Jw(t)>1?"emphasis":"normal")}function c1(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new gp(vl(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}Ay("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=vl(n),o=vn(r,i);os(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),os(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:o1+u+f};h[c]=f,a.push(h)}return a});const f1=s1;function vD(r){r.registerComponentModel(Iw),r.registerComponentView(kw),rn("saveAsImage",Ow),rn("magicType",Vw),rn("dataView",Kw),rn("dataZoom",f1),rn("restore",t1),_t(Aw)}var v1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ie);const h1=v1;function mp(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function yp(r){if(ce.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function S1(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=ce.transformSupported?","+hl+n:",left"+n+",top"+n),g1+":"+a}function Kc(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ce.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ce.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+hl+":"+o+";":[["top",0],["left",0],[_p,o]]}function x1(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function b1(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=Th(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(S1(a,e)),i&&n.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=$v(d),m=r.get(p);m!=null&&n.push(d+":"+m+(v==="color"?"":"px"))}),n.push(x1(c)),f!=null&&n.push("padding:"+ai(f).join("px ")+"px"),n.join(";")+";"}function qc(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&wg(r,o,document.body,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var w1=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ce.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;qc(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();bg(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=p1(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=m1+b1(t,!this._firstShow,this._longHide)+Kc(i[0],i[1],!0)+("border-color:"+nr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(G(i)&&n.get("trigger")==="item"&&!mp(n)&&(s=_1(n,a,i)),G(t))o.innerHTML=t+s;else if(t){o.innerHTML="",E(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||ce.node||!a.getDom())){var o=Jc(i,a);this._ticket="";var s=i.dataByCoordSys,l=R1(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=A1;c.x=i.x,c.y=i.y,c.update(),J(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=qd(i,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Jc(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=nn([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){this._lastDataByCoordSys=null;var s,l;un(a,function(u){if(J(u).dataIndex!=null)return s=u,!0;if(J(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=ae(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=nn([n.tooltipOption],i),l=this._renderMode,u=[],c=In("section",{blocks:[],noHeader:!0}),f=[],h=new Pi;w(e,function(y){w(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Xd(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=In("section",{header:x,noHeader:!Bn(x),sortBlocks:!0,blocks:[]});c.blocks.push(C),w(_.seriesDataIndices,function(T){var A=a.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=A.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=tl(S.axis,{value:b}),D.axisValueLabel=x,D.marker=h.makeTooltipMarker("item",nr(D.color),l);var I=yu(A.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=nn([A],i).get("valueFormatter");C.blocks.push(P?O({valueFormatter:P},L):L)}I.text&&f.push(I.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),p=Cu(c,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var m=l==="richText"?` +*`,"g")),n={series:[]};return w(e,function(a,i){if(Uw(a)){var o=Yw(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=$w(a);n.series.push(o)}}),n}var Zw=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),h=i.get("contentToOption"),v=Hw(e);if($(f)){var d=f(n.getOption());G(d)?u.innerHTML=d:Jf(d)&&u.appendChild(d)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=v.value,u.appendChild(c)}var m=v.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var b=this;function x(){a.removeChild(o),b._dom=null}wl(_,"click",x),wl(S,"click",function(){if(h==null&&f!=null||h!=null&&f==null){x();return}var C;try{$(h)?C=h(u,n.getOption()):C=Xw(c.value,m)}catch(T){throw x(),new Error("Data view format error "+T)}C&&n.dispatchAction({type:"changeDataView",newOption:C}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=y,!i.get("readOnly")&&g.appendChild(S),g.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(g),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(Qe);function Kw(r,t){return z(r,function(e,n){var a=t&&t[n];if(H(a)&&!E(a)){var i=H(e)&&!E(e);i||(e={value:e});var o=a.name!=null&&e.name==null;return e=te(e,a),o&&delete e.name,e}else return e})}ct({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];w(r.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)e.push(O({type:"scatter"},n));else{var i=a.get("data");e.push({name:n.name,data:Kw(n.data,i)})}}),t.mergeOption(te({series:e},r.newOption))});const qw=Zw;var dp=w,pp=le();function jw(r,t){var e=fl(r);dp(t,function(n,a){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function Qw(r){var t=fl(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return dp(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function Jw(r){pp(r).snapshots=null}function e1(r){return fl(r).length}function fl(r){var t=pp(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var t1=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Jw(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Qe);ct({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const r1=t1;var n1=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],a1=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=Wc(e,t);w(i1,function(o,s){(!n||!n.include||oe(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Ji[n.brushType](0,i,a);n.__rangeOffset={offset:$c[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=Ji[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Ji[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?$c[n.brushType](i.values,o.offset,o1(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return z(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:sw(a),isTargetByCursor:uw(a,t,n.coordSysModel),getLinearBrushOtherExtent:lw(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&oe(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=Wc(e,t),i=0;ir[1]&&r.reverse(),r}function Wc(r,t){return vn(r,t,{includeMainTypes:n1})}var i1={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=W(),o={},s={};!e&&!n&&!a||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];w(u.getCartesians(),function(f,h){(oe(e,f.getAxis("x").model)>=0||oe(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:Uc.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Uc.geo})})}},Hc=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Uc={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ds(r)),t}},Ji={lineX:Q(Yc,0),lineY:Q(Yc,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[is([a[0],i[0]]),is([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=z(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Yc(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=is(z([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var $c={lineX:Q(Xc,0),lineY:Q(Xc,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return z(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function Xc(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function o1(r,t){var e=Zc(r),n=Zc(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function Zc(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const gp=a1;var os=w,s1=jg("toolbox-dataZoom_"),l1=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new ow(a.getZr()),this._brushController.on("brush",ae(this._onBrush,this)).mount()),f1(e,n,this,i,a),c1(e,n)},t.prototype.onclick=function(e,n,a){u1[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new gp(vl(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),jw(i,a),this._dispatchZoomAction(a);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=Jd(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];os(e,function(a,i){n.push(X(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Qe),u1={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Qw(this.ecModel))}};function vl(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function c1(r,t){r.setIconStatus("back",e1(t)>1?"emphasis":"normal")}function f1(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new gp(vl(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}Ay("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=vl(n),o=vn(r,i);os(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),os(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:s1+u+f};h[c]=f,a.push(h)}return a});const v1=l1;function hD(r){r.registerComponentModel(Lw),r.registerComponentView(Ew),rn("saveAsImage",Nw),rn("magicType",zw),rn("dataView",qw),rn("dataZoom",v1),rn("restore",r1),_t(Mw)}var h1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ie);const d1=h1;function mp(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function yp(r){if(ce.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function x1(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=ce.transformSupported?","+hl+n:",left"+n+",top"+n),m1+":"+a}function Kc(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ce.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ce.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+hl+":"+o+";":[["top",0],["left",0],[_p,o]]}function b1(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function w1(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=Th(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(x1(a,e)),i&&n.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=$v(d),m=r.get(p);m!=null&&n.push(d+":"+m+(v==="color"?"":"px"))}),n.push(b1(c)),f!=null&&n.push("padding:"+ai(f).join("px ")+"px"),n.join(";")+";"}function qc(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&wg(r,o,document.body,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var C1=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ce.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;qc(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();bg(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=g1(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=y1+w1(t,!this._firstShow,this._longHide)+Kc(i[0],i[1],!0)+("border-color:"+nr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(G(i)&&n.get("trigger")==="item"&&!mp(n)&&(s=S1(n,a,i)),G(t))o.innerHTML=t+s;else if(t){o.innerHTML="",E(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||ce.node||!a.getDom())){var o=Jc(i,a);this._ticket="";var s=i.dataByCoordSys,l=k1(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=M1;c.x=i.x,c.y=i.y,c.update(),J(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=qd(i,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Jc(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=nn([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){this._lastDataByCoordSys=null;var s,l;un(a,function(u){if(J(u).dataIndex!=null)return s=u,!0;if(J(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=ae(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=nn([n.tooltipOption],i),l=this._renderMode,u=[],c=In("section",{blocks:[],noHeader:!0}),f=[],h=new Pi;w(e,function(y){w(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Xd(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=In("section",{header:x,noHeader:!Bn(x),sortBlocks:!0,blocks:[]});c.blocks.push(C),w(_.seriesDataIndices,function(T){var A=a.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=A.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=tl(S.axis,{value:b}),D.axisValueLabel=x,D.marker=h.makeTooltipMarker("item",nr(D.color),l);var I=yu(A.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=nn([A],i).get("valueFormatter");C.blocks.push(P?O({valueFormatter:P},L):L)}I.text&&f.push(I.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),p=Cu(c,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var m=l==="richText"?` -`:"
",g=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=J(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=e.positionDefault,p=nn([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(c,f),y=new Pi;g.marker=y.makeTooltipMarker("item",nr(g.color),v);var _=yu(u.formatTooltip(c,!1,f)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?Cu(b?O({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,C,g,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=J(n),o=i.tooltipConfig,s=o.option||{};if(G(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=e.positionDefault,h=nn(u,this._tooltipModel,f?{position:f}:null),v=h.get("content"),d=Math.random()+"",p=new Pi;this._showOrMove(h,function(){var m=X(h.get("formatterParams")||{});this._showTooltipContent(h,v,m,d,e.offsetX,e.offsetY,e.position,n,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(G(h)){var m=e.ecModel.get("useUTC"),g=E(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,y&&(v=Ja(g.axisValue,v,m)),v=Xv(v,a,!0)}else if($(h)){var _=ae(function(S,b){S===this._ticket&&(f.setContent(b,c,e,p,l),this._updatePosition(e,l,o,s,f,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;f.setContent(v,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||E(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!E(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||e.get("position");var f=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),$(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),E(n))a=ee(n[0],u),i=ee(n[1],c);else if(H(n)){var p=n;p.width=f[0],p.height=f[1];var m=Gt(p,{width:u,height:c});a=m.x,i=m.y,h=null,v=null}else if(G(n)&&l){var g=P1(n,d,f,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=I1(a,i,o,u,c,h?null:20,v?null:20);a=g[0],i=g[1]}if(h&&(a-=ef(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=ef(v)?f[1]/2:v==="bottom"?f[1]:0),mp(e)){var g=L1(a,i,o,u,c);a=g[0],i=g[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&w(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===m.length,o&&w(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){ce.node||!n.getDom()||(Bo(this,"_updatePosition"),this._tooltipContent.dispose(),Qo("itemTooltip",n))},t.type="tooltip",t}(Ye);function nn(r,t,e){var n=t.ecModel,a;e?(a=new Te(e,n,n),a=new Te(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Te&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(a=new Te(o,a,n)))}return a}function Jc(r,t){return r.dispatchAction||ae(t.dispatchAction,t)}function I1(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function L1(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function P1(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function ef(r){return r==="center"||r==="middle"}function R1(r,t,e){var n=ys(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Gn(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=J(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const k1=M1;function hD(r){_t(jd),r.registerComponentModel(h1),r.registerComponentView(k1),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt)}var E1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ie),O1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ue(e.get("textBaseline"),e.get("textVerticalAlign")),c=new we({style:zt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=e.get("subtext"),v=new we({style:zt(s,{text:h,fill:s.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),m=e.get("triggerEvent",!0);c.silent=!d&&!m,v.silent=!p&&!m,d&&c.on("click",function(){Jl(d,"_"+e.get("target"))}),p&&v.on("click",function(){Jl(p,"_"+e.get("subtarget"))}),J(c).eventData=J(v).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),h&&i.add(v);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Gt(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),v.setStyle(S),g=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var C=new ve({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(Ye);function dD(r){r.registerComponentModel(E1),r.registerComponentView(O1)}function gi(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Pr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var N1=function(r){N(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=Ft(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=B1,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ar(this.childAt(0))},t.prototype.downplay=function(){Mr(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):ge(h,v,s,n),Ka(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,De(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,h,v,d,p,m,g;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,m=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Br(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=$s(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=e.getItemVisual(n,"style"),C=x.fill;if(s instanceof Or){var T=s.style;s.useStyle(O({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(O({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(n,"liftZ"),M=this._z2;A!=null?M==null&&(this._z2=s.z2,s.z2+=A):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Nr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:C,defaultOpacity:x.opacity});function I(R){return D?e.getName(R):gi(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Ir(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=J(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&wn(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();wn(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return w_(e.getItemVisual(n,"symbolSize"))},t}(pe);function B1(r,t){this.parent.drift(r,t)}const dl=N1;function eo(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function tf(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function rf(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Br(t),cursorStyle:t.get("cursor")}}var V1=function(){function r(t){this.group=new pe,this._SymbolCtor=t||dl}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=tf(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=rf(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var h=c(f);if(eo(t,h,f,e)){var v=new o(t,f,l,u);v.setPosition(h),t.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!eo(t,d,f,e)){n.remove(v);return}var p=t.getItemVisual(f,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==p)n.remove(v),v=new o(t,f,l,u),v.setPosition(d);else{v.updateData(t,f,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):ge(v,g,a)}n.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=rf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=tf(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ie);const ss=G1;var mr=Q,ls=w,va=pe,F1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new va),this.group.add(this._selectorGroup=new va),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var c=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=Gt(c,f,h),d=this.layoutInner(e,o,v,i,l,u),p=Gt(te({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hp(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),c=W(),f=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ls(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` -`)){var m=new va;m.newline=!0,u.add(m);return}var g=a.getSeriesByName(p)[0];if(!c.get(p))if(g){var y=g.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(g,p,d,v,n,e,_,b,S,f,i);x.on("click",mr(nf,p,null,i,h)).on("mouseover",mr(us,g.name,null,i,h)).on("mouseout",mr(cs,g.name,null,i,h)),c.set(p,!0)}else a.eachRawSeries(function(C){if(!c.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var A=T.indexOfName(p),M=T.getItemVisual(A,"style"),D=T.getItemVisual(A,"legendIcon"),I=Cg(M.fill);I&&I[3]===0&&(I[3]=.2,M=O(O({},M),{fill:Tg(I,"rgba")}));var L=this._createItem(C,p,d,v,n,e,{},M,D,f,i);L.on("click",mr(nf,null,p,i,h)).on("mouseover",mr(us,null,p,i,h)).on("mouseout",mr(cs,null,p,i,h)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();ls(e,function(u){var c=u.type,f=new we({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Nr(f,{normal:h,emphasis:v},{defaultText:u.title}),To(f)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,c,f,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=W1(c,i,l,u,v,m,h),b=new va,x=i.getModel("textStyle");if($(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;b.add(H1({itemWidth:d,itemHeight:p,icon:c,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,A=s,M=o.get("formatter"),D=n;G(M)&&M?D=M.replace("{name}",n??""):$(M)&&(D=M(n));var I=m?x.getTextColor():i.get("inactiveColor");b.add(new we({style:zt(x,{text:D,x:T,y:p/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new ve({shape:b.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&ja({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!f,this.getContentGroup().add(b),To(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cr(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Cr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,m=p===0?"width":"height",g=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[m]+d:f[p]+=h[m]+d,v[1-p]+=c[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[m]=c[m]+d+h[m],_[g]=Math.max(c[g],h[g]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ye);function W1(r,t,e,n,a,i,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),ls(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Go(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function H1(r){var t=r.icon||"roundRect",e=Ft(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function nf(r,t,e,n){cs(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),us(r,t,e,n)}function wp(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],m=[-v.x,-v.y];n||(m[i]=c[u]);var g=[0,0],y=[-d.x,-d.y],_=ue(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:g[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(m),f.setPosition(g),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],f.setClipPath(new ve({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&ge(c,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",G(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=to[o],l=ro[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=S(f);d.contentPosition[o]=-p.s;for(var m=u+1,g=p,y=p,_=null;m<=h;++m)_=S(c[m]),(!_&&y.e>g.s+i||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=p,y=p,_=null;m>=-1;--m)_=S(c[m]),(!_||!b(y,_.s))&&g.i=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(Cp);const K1=Z1;function q1(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function j1(r){_t(Tp),r.registerComponentModel(X1),r.registerComponentView(K1),q1(r)}function pD(r){_t(Tp),_t(j1)}var Q1={label:{enabled:!0},decal:{show:!1}},sf=le(),J1={};function eC(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=X(Q1);Z(n.label,r.getLocaleModel().get("aria"),!1),Z(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),c=u.get("show");if(c){var f=W();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),sf(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if($(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=tu(h.ecModel,h.name,J1,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},m=sf(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var g=d.count();d.each(function(b){var x=p[b],C=d.getName(b)||b+"",T=tu(h.ecModel,C,m,g),A=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(A,T))})}function S(b,x){var C=b?O(O({},x),b):x;return C.dirty=!0,C}})}}function i(){var u=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=te(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),m;if(!(h<1)){var g=s();if(g){var y=c.get(["general","withTitle"]);m=o(y,{title:g})}else m=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:h}),r.eachSeries(function(T,A){if(A1?c.get(["series","multiple",I]):c.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);M+=o(P,{displayCnt:v})}else M+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),V=c.get(["data","separator","end"]),Y=[],k=0;k":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},rC=function(){function r(t){var e=this._condVal=G(t)?new RegExp(t):Dg(t)?t:null;if(e==null){var n="";j(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return G(e)?this._condVal.test(t):se(e)?this._condVal.test(t+""):!1},r}(),nC=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),aC=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(lt);const mC=gC;function Ap(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=yC(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=z(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Rr(t,f[0])&&(h=!0,f[0]=v),Rr(t,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function yC(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:se(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function Mp(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function _C(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function SC(r,t,e,n,a,i,o,s){for(var l=_C(r,t),u=[],c=[],f=[],h=[],v=[],d=[],p=[],m=Ap(a,t,o),g=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(Jt(g,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](g,y),f=g,h=y;else{var _=g-u,S=y-c;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===g&&C===y&&m=n||Jt(x,C))v=g,d=y;else{M=x-u,D=C-c;var P=g-u,R=x-g,V=y-c,Y=C-y,k=void 0,B=void 0;if(s==="x"){k=Math.abs(P),B=Math.abs(R);var F=M>0?1:-1;v=g-F*k*o,d=y,I=g+F*B*o,L=y}else if(s==="y"){k=Math.abs(V),B=Math.abs(Y);var U=D>0?1:-1;v=g,d=y-U*k*o,I=g,L=y+U*B*o}else k=Math.sqrt(P*P+V*V),B=Math.sqrt(R*R+Y*Y),A=B/(B+k),v=g-M*o*(1-A),d=y-D*o*(1-A),I=g+M*o*A,L=y+D*o*A,I=Lt(I,Pt(x,g)),L=Lt(L,Pt(C,y)),I=Pt(I,Lt(x,g)),L=Pt(L,Lt(C,y)),M=I-g,D=L-y,v=g-M*k/B,d=y-D*k/B,v=Lt(v,Pt(u,g)),d=Lt(d,Pt(c,y)),v=Pt(v,Lt(u,g)),d=Pt(d,Lt(c,y)),M=g-v,D=y-d,I=g+M*B/k,L=y+D*B/k}r.bezierCurveTo(f,h,v,d,g,y),f=I,h=L}else r.lineTo(g,y)}u=g,c=y,p+=i}return m}var Ip=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),xC=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ip},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Jt(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],m=i[f++],g=i[f++],y=i[f++];var b=u?Cl(s,v,p,g,e,c):Cl(l,d,m,y,e,c);if(b>0)for(var x=0;x=0){var S=u?Tl(l,d,m,y,C):Tl(s,v,p,g,C);return u?[e,S]:[S,e]}}s=g,l=y;break}}},t}(_e),bC=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ip),wC=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new bC},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Jt(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function DC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=z(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=TC(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,m=h[v-1].coord+d,g=m-p;if(g<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new Kf(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=m,y}}}function AC(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&MC(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function MC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function IC(r,t){return isNaN(r)||isNaN(t)}function LC(r){for(var t=r.length/2;t>0&&IC(r[t*2-2],r[t*2-1]);t--);return t-1}function df(r,t){return[r[t*2],r[t*2+1]]}function PC(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function kp(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var F=p.getState("emphasis").style;F.lineWidth=+p.style.lineWidth+1}J(p).seriesIndex=e.seriesIndex,Ir(p,Y,k,B);var U=hf(e.get("smooth")),K=e.get("smoothMonotone");if(p.setShape({smooth:U,smoothMonotone:K,connectNulls:T}),m){var q=l.getCalculationInfo("stackedOnSeries"),re=0;m.useStyle(te(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),q&&(re=hf(q.get("smooth"))),m.setShape({smooth:U,stackedOnSmooth:re,smoothMonotone:K,connectNulls:T}),bn(m,e,"areaStyle"),J(m).seriesIndex=e.seriesIndex,Ir(m,Y,k,B)}var Se=function(me){i._changePolyState(me)};l.eachItemGraphicEl(function(me){me&&(me.onHoverStateChange=Se)}),this._polyline.onHoverStateChange=Se,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=D,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),m&&this.packEventData(e,m))},t.prototype.packEventData=function(e,n){J(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new dl(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Oe.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Oe.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Ol(this._polyline,e),n&&Ol(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new xC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new wC({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");$(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=$(f)?f(null):f;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var m=[v.x,v.y],g=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(m);i?(g=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,y=S.r,_=b[0])}else{var x=a;i?(g=x.x,y=x.x+x.width,_=v.x):(g=x.y+x.height,y=x.y,_=v.y)}var C=y===g?0:(_-g)/(y-g);l&&(C=1-C);var T=$(f)?f(d):c*C+h,A=p.getSymbolPath(),M=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(kp(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new we({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=LC(l);c>=0&&(Nr(s,Br(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?xp(o,v):gi(o,f)},enableTextSetter:!0},RC(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=n.shape,S=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),C=g?"x":"y",T=PC(f,S,C),A=T.range,M=A[1]-A[0],D=void 0;if(M>=1){if(M>1&&!v){var I=df(f,A[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(D=h.getRawValue(A[0]))}else{var I=c.getPointOn(S,C);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(A[0]),P=h.getRawValue(A[1]);o&&(D=fv(a,d,L,P,T.t))}i.lastFrameIndex=A[0]}else{var R=e===1||i.lastFrameIndex>0?A[0]:0,I=df(f,R);o&&(D=h.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var V=Vr(u);typeof V.setLabelText=="function"&&V.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,h=SC(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,m=h.stackedOnNext;if(o&&(v=Rt(h.current,a,o,l),d=Rt(h.stackedOnCurrent,a,o,l),p=Rt(h.next,a,o,l),m=Rt(h.stackedOnNext,a,o,l)),vf(v,p)>3e3||c&&vf(d,m)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),ge(u,g,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),ge(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;G(i)?d=OC[i]:$(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,NC))}}}}}function _D(r){r.registerChartView(EC),r.registerSeriesModel(mC),r.registerLayout(ml("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Ep("line"))}var Op=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ci(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)w(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&(p+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var g=void 0,y=void 0,_=1,S=0;Sp){y=(b+g)/2;break}S===1&&(_=x-d[0].tickValue)}y==null&&(g?g&&(y=d[d.length-1].coord):y=d[0].coord),s[v]=h.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(lt);lt.registerClass(Op);const Wa=Op;var BC=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ci(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Is(Wa.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Wa);const VC=BC;var zC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),GC=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new zC},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Pa(i,e,J(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Oe),gf={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=ao(t.x,r.x),s=io(t.x+t.width,a),l=ao(t.y,r.y),u=io(t.y+t.height,i),c=sa?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=io(t.r,r.r),i=ao(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},mf={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new ve({shape:O({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?pf:or,c=new u({shape:n,z2:1});c.name="item";var f=Np(a);if(c.calculateTextPosition=FC(f,{isRoundCap:u===pf}),i){var h=c.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?ge:De)(c,{shape:d},i)}return c}};function YC(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function yf(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?ge:De)(e,{shape:l},t,a,null);var c=t?r.baseAxis.model:null;(o?ge:De)(e,{shape:u},c,a)}function _f(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function ZC(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Np(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function xf(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=cn(n.getModel("itemStyle"),c,!0);O(c,f),r.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=Br(n);Nr(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:gi(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var m=n.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,WC(r,m==="outside"?v:m,Np(o),n.get(["label","rotate"]))}qm(p,d,i.getRawValue(e),function(y){return xp(t,y)});var g=n.getModel(["emphasis"]);Ir(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),bn(r,n),ZC(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function KC(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var qC=function(){function r(){}return r}(),bf=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new qC},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?e:null},30,!1);function jC(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function Bp(r,t,e){if(pl(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function QC(r,t,e){var n=r.type==="polar"?or:ve;return new n({shape:Bp(t,e,r),silent:!0,z2:0})}const JC=UC;function SD(r){r.registerChartView(JC),r.registerSeriesModel(VC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Q(pd,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gd("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Ep("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var ga=Math.PI*2,Tf=Math.PI/180;function Vp(r,t){return Gt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function zp(r,t){var e=Vp(r,t),n=r.get("center"),a=r.get("radius");E(a)||(a=[0,a]);var i=ee(e.width,t.getWidth()),o=ee(e.height,t.getHeight()),s=Math.min(i,o),l=ee(a[0],s/2),u=ee(a[1],s/2),c,f,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);c=v[0]||0,f=v[1]||0}else E(n)||(n=[n,n]),c=ee(n[0],i)+e.x,f=ee(n[1],o)+e.y;return{cx:c,cy:f,r0:l,r:u}}function eT(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Vp(n,e),s=zp(n,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*Tf,v=n.get("minAngle")*Tf,d=0;a.each(i,function(M){!isNaN(M)&&d++});var p=a.getSum(i),m=Math.PI/(p||d)*2,g=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var b=ga,x=0,C=h,T=g?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(M,D){var I;if(isNaN(M)){a.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?I=p===0&&_?m:M*m:I=ga/d,Ie?g:m,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,C=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var m=(n.style.margin||0)+2.1;i.height=p.height+m,i.y-=(i.height-f)/2}}}function oo(r){return r.position==="center"}function aT(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*rT,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,A=C.getTextContent(),M=C.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),V=ee(I.get("edgeDistance"),u),Y=I.get("bleedMargin"),k=D.getModel("labelLine"),B=k.get("length");B=ee(B,u);var F=k.get("length2");if(F=ee(F,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":K>0?"left":"right"}var Tt=Math.PI,ft=0,Hr=I.get("rotate");if(se(Hr))ft=Hr*(Tt/180);else if(L==="center")ft=0;else if(Hr==="radial"||Hr===!0){var Qp=K<0?-U+Tt:-U;ft=Qp}else if(Hr==="tangential"&&L!=="outside"&&L!=="outer"){var ur=Math.atan2(K,q);ur<0&&(ur=Tt*2+ur);var Jp=q>0;Jp&&(ur=Tt+ur),ft=ur-Tt}if(i=!!ft,A.x=re,A.y=Se,A.rotation=ft,A.setStyle({verticalAlign:"middle"}),Ct){A.setStyle({align:wt});var mi=A.states.select;mi&&(mi.x+=A.x,mi.y+=A.y)}else{var Ur=A.getBoundingRect().clone();Ur.applyTransform(A.getComputedTransform());var _l=(A.style.margin||0)+2.1;Ur.y-=_l/2,Ur.height+=_l,e.push({label:A,labelLine:M,position:L,len:B,len2:F,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new be(K,q),linePoints:me,textAlign:wt,labelDistance:P,labelAlignTo:R,edgeDistance:V,bleedMargin:Y,rect:Ur,unconstrainedWidth:Ur.width,labelStyleWidth:A.style.width})}C.setTextConfig({inside:Ct})}}),!i&&r.get("avoidLabelOverlap")&&nT(e,n,a,l,u,h,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t}(Oe);const sT=oT;function Fp(r,t,e){t=E(t)&&{coordDimensions:t}||O({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=od(n,t).dimensions,i=new id(a,r);return i.initData(n,e),i}var lT=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const uT=lT;var cT=le(),fT=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new uT(ae(this.getData,this),ae(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Fp(this,{coordDimensions:["value"],encodeDefaulter:Q(Ty,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=cT(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=zg(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){bo(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(lt);const vT=fT;function hT(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(se(o)&&!isNaN(o)&&o<0)})}}}function xD(r){r.registerChartView(sT),r.registerSeriesModel(vT),h_("pie",r.registerAction),r.registerLayout(Q(eT,"pie")),r.registerProcessor(tT("pie")),r.registerProcessor(hT("pie"))}var dT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return ci(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(lt);const pT=dT;var Wp=4,gT=function(){function r(){}return r}(),mT=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new gT},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,h=i[c+1]-l/2;if(e>=f&&n>=h&&e<=f+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const _T=yT;var ST=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=ml("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,a=n&&n.getArea&&n.getArea();return e.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new _T:new bp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Oe);const xT=ST;function bD(r){_t(Yd),r.registerSeriesModel(pT),r.registerChartView(xT),r.registerLayout(ml("scatter"))}var bT=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[a,i],d=v[c].get("type"),p=v[1-c].get("type"),m=t.data;if(m&&l){var g=[];w(m,function(S,b){var x;E(S)?(x=S.slice(),S.unshift(b)):E(S.value)?(x=O({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,g.push(x)}),t.data=g}var y=this.defaultValueDimensions,_=[{name:f,type:Uo(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Uo(p),dimsDef:y.slice()}];return Fp(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:Q(Qv,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),wT=["color","borderColor"],CT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){Fn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&Af(u,f))return;var h=so(f,c,!0);De(h,{shape:{points:f.ends}},e,c),lo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(h);return}var v=n.getItemLayout(c);if(s&&Af(u,v)){i.remove(h);return}h?(ge(h,{shape:{points:v.ends}},e,c),Ka(h)):h=so(v),lo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Mf(e,this.group);var n=e.get("clip",!0)?Rp(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=so(s);lo(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){Mf(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Oe),TT=function(){function r(){}return r}(),DT=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new TT},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(_e);function so(r,t,e){var n=r.ends;return new DT({shape:{points:e?AT(n,r):n},z2:100})}function Af(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(wT);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const IT=CT;var Hp=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(lt);St(Hp,bT,!0);const LT=Hp;function PT(r){!r||!E(r.series)||w(r.series,function(t){H(t)&&t.type==="k"&&(t.type="candlestick")})}var RT=["itemStyle","borderColor"],kT=["itemStyle","borderColor0"],ET=["itemStyle","borderColorDoji"],OT=["itemStyle","color"],NT=["itemStyle","color0"],BT={seriesType:"candlestick",plan:Hn(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?OT:NT)}function n(i,o){return o.get(i===0?ET:i>0?RT:kT)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=e(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");O(f,c)}}}}}};const VT=BT;var zT={seriesType:"candlestick",plan:Hn(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=GT(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=z(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],c=l[1],f=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,m){for(var g,y=m.getStore();(g=p.next())!=null;){var _=y.get(s,g),S=y.get(u,g),b=y.get(c,g),x=y.get(f,g),C=y.get(h,g),T=Math.min(S,b),A=Math.max(S,b),M=Y(T,_),D=Y(A,_),I=Y(x,_),L=Y(C,_),P=[];k(P,D,0),k(P,M,1),P.push(F(L),F(D),F(I),F(M));var R=m.getItemModel(g),V=!!R.get(["itemStyle","borderColorDoji"]);m.setItemLayout(g,{sign:If(y,g,S,b,c,V),initBaseline:S>b?D[i]:M[i],ends:P,brushRect:B(x,C,_)})}function Y(U,K){var q=[];return q[a]=K,q[i]=U,isNaN(K)||isNaN(U)?[NaN,NaN]:t.dataToPoint(q)}function k(U,K,q){var re=K.slice(),Se=K.slice();re[a]=_a(re[a]+n/2,1,!1),Se[a]=_a(Se[a]-n/2,1,!0),q?U.push(re,Se):U.push(Se,re)}function B(U,K,q){var re=Y(U,q),Se=Y(K,q);return re[a]-=n/2,Se[a]-=n/2,{x:re[0],y:re[1],width:n,height:Se[1]-re[1]}}function F(U){return U[a]=_a(U[a],1),U}}function d(p,m){for(var g=nt(p.count*4),y=0,_,S=[],b=[],x,C=m.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var A=C.get(s,x),M=C.get(u,x),D=C.get(c,x),I=C.get(f,x),L=C.get(h,x);if(isNaN(A)||isNaN(I)||isNaN(L)){g[y++]=NaN,y+=3;continue}g[y++]=If(C,x,M,D,c,T),S[a]=A,S[i]=I,_=t.dataToPoint(S,null,b),g[y++]=_?_[0]:NaN,g[y++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),g[y++]=_?_[1]:NaN}m.setLayout("largePoints",g)}}};function If(r,t,e,n,a,i){var o;return e>n?o=-1:e0?r.get(a,t-1)<=n?1:-1:1,o}function GT(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=ee(ue(r.get("barMaxWidth"),a),a),o=ee(ue(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?ee(s,a):Math.max(Math.min(a/2,i),o)}const FT=zT;function wD(r){r.registerChartView(IT),r.registerSeriesModel(LT),r.registerPreprocessor(PT),r.registerVisual(VT),r.registerLayout(FT)}var WT=["itemStyle","borderWidth"],Lf=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],fo=new Ha,HT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:Lf[+c],categoryDim:Lf[1-+c]};return o.diff(s).add(function(v){if(o.hasValue(v)){var d=Rf(o,v),p=Pf(o,v,d,h),m=kf(o,h,p);o.setItemGraphicEl(v,m),i.add(m),Of(m,h,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){i.remove(p);return}var m=Rf(o,v),g=Pf(o,v,m,h),y=Kp(o,g);p&&y!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(v,null),p=null),p?qT(p,h,g):p=kf(o,h,g,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=g,i.add(p),Of(p,h,g)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&Ef(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){Ef(i,J(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(Oe);function Pf(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};UT(e,i,a,n,h),YT(r,t,a,i,o,h.boundingLength,h.pxSign,c,n,h),$T(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=$s(e.get("symbolOffset"),v);return XT(e,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function UT(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(E(o)){var f=[vo(s,o[0])-l,vo(s,o[1])-l];f[1]0?1:-1}function vo(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function YT(r,t,e,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(e[f.wh]),v=r.getItemVisual(t,"symbolSize"),d;E(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=ee(d[f.index],h),d[c.index]=ee(d[c.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function $T(r,t,e,n,a){var i=r.get(WT)||0;i&&(fo.attr({scaleX:t[0],scaleY:t[1],rotation:e}),fo.updateTransform(),i/=fo.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function XT(r,t,e,n,a,i,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(t[v.index]+s,0),m=p;if(n){var g=Math.abs(l),y=Dr(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=ee(y,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,C=av(n),T=C?n:Nf((g+x)/b),A=g-T*p;S=A/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!C&&n!=="fixed"&&(T=u?Nf((Math.abs(u)+x)/b):0),m=T*b-x,f.repeatTimes=T,f.symbolMargin=S}var M=d*(m/2),D=f.pathPosition=[];D[h.index]=e[h.wh]/2,D[v.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var I=f.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=f.barRectShape=O({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(D[v.index]+M)),L[h.wh]=e[h.wh];var P=f.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=c.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Up(r){var t=r.symbolPatternSize,e=Ft(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Yp(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+e.symbolMargin*2;for(yl(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:g<0)&&(y=u-1-p),m[l.index]=f*(y-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function $p(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Tr(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=Up(e),a.add(i),Tr(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function Xp(r,t,e){var n=O({},t.barRectShape),a=r.__pictorialBarRect;a?Tr(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new ve({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function Zp(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=O({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)ge(a,{shape:i},s,l);else{i[o.wh]=0,a=new ve({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],Ms[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Rf(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=ZT,e.isAnimationEnabled=KT,e}function ZT(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function KT(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function kf(r,t,e,n){var a=new pe,i=new pe;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Yp(a,t,e):$p(a,t,e),Xp(a,e,n),Zp(a,t,e,n),a.__pictorialShapeStr=Kp(r,e),a.__pictorialSymbolMeta=e,a}function qT(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;ge(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?Yp(r,t,e,!0):$p(r,t,e,!0),Xp(r,e,!0),Zp(r,t,e,!0)}function Ef(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];yl(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),w(i,function(o){wn(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function Kp(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function yl(r,t,e){w(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Tr(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&Ms[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function Of(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),h=i.get("scale");yl(r,function(p){if(p instanceof Or){var m=p.style;p.useStyle(O({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},e.style))}else p.useStyle(e.style);var g=p.ensureState("emphasis");g.style=o,h&&(g.scaleX=p.scaleX*1.1,g.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;Nr(d,Br(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:gi(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Ir(r,c,f,i.get("disabled"))}function Nf(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const jT=HT;var QT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Is(Wa.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Wa);const JT=QT;function CD(r){r.registerChartView(jT),r.registerSeriesModel(JT),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Q(pd,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gd("pictorialBar"))}function Bf(r){return E(r[0])}function Vf(r,t){for(var e=[],n=r.length,a=0;a=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var eD={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;Bf(r)&&(u=r,c=t),Bf(t)&&(u=t,c=r);function f(g,y,_,S,b){var x=g.many,C=g.one;if(x.length===1&&!b){var T=y?x[0]:C,A=y?C:x[0];if(Ig(T))f({many:[T],one:A},!0,_,S,!0);else{var M=s?te({delay:s(_,S)},l):l;Lg(T,A,M),i(T,A,T,A,M)}}else for(var D=te({dividePath:eD[e],individualDelay:s&&function(Y,k,B,F){return s(Y+_,S)}},l),I=y?Pg(x,C,D):Rg(C,x,D),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,V=0;Vt.length,v=u?Vf(c,u):Vf(h?t:r,[h?r:t]),d=0,p=0;pqp))for(var a=n.getIndices(),i=rD(n),o=0;o0&&S.group.traverse(function(x){x instanceof _e&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function Gf(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Ff(r){return E(r)?r.sort().join(","):r}function Et(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function iD(r,t){var e=W(),n=W(),a=W();return w(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Gf(i),c=Ff(u);n.set(c,{dataGroupId:s,data:l}),E(u)&&w(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Gf(i),u=Ff(l),c=n.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Et(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Et(s),data:s}]});else if(E(l)){var f=[];w(l,function(d){var p=n.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Et(p.data),data:p.data})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Et(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Et(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Et(s)})}}}}),e}function Wf(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Et(t.oldData[s]),dim:o.dimension})}),w(he(r.to),function(o){var s=Wf(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Et(l),dim:o.dimension})}}),a.length>0&&i.length>0&&jp(a,i,n)}function TD(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){w(he(n.seriesTransition),function(a){w(he(a.to),function(i){for(var o=n.updatedSeries,s=0;s",g=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=J(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=e.positionDefault,p=nn([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(c,f),y=new Pi;g.marker=y.makeTooltipMarker("item",nr(g.color),v);var _=yu(u.formatTooltip(c,!1,f)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?Cu(b?O({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,C,g,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=J(n),o=i.tooltipConfig,s=o.option||{};if(G(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=e.positionDefault,h=nn(u,this._tooltipModel,f?{position:f}:null),v=h.get("content"),d=Math.random()+"",p=new Pi;this._showOrMove(h,function(){var m=X(h.get("formatterParams")||{});this._showTooltipContent(h,v,m,d,e.offsetX,e.offsetY,e.position,n,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(G(h)){var m=e.ecModel.get("useUTC"),g=E(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,y&&(v=Ja(g.axisValue,v,m)),v=Xv(v,a,!0)}else if($(h)){var _=ae(function(S,b){S===this._ticket&&(f.setContent(b,c,e,p,l),this._updatePosition(e,l,o,s,f,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;f.setContent(v,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||E(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!E(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||e.get("position");var f=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),$(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),E(n))a=ee(n[0],u),i=ee(n[1],c);else if(H(n)){var p=n;p.width=f[0],p.height=f[1];var m=Gt(p,{width:u,height:c});a=m.x,i=m.y,h=null,v=null}else if(G(n)&&l){var g=R1(n,d,f,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=L1(a,i,o,u,c,h?null:20,v?null:20);a=g[0],i=g[1]}if(h&&(a-=ef(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=ef(v)?f[1]/2:v==="bottom"?f[1]:0),mp(e)){var g=P1(a,i,o,u,c);a=g[0],i=g[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&w(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===m.length,o&&w(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){ce.node||!n.getDom()||(Bo(this,"_updatePosition"),this._tooltipContent.dispose(),Qo("itemTooltip",n))},t.type="tooltip",t}(Ye);function nn(r,t,e){var n=t.ecModel,a;e?(a=new Te(e,n,n),a=new Te(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Te&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(a=new Te(o,a,n)))}return a}function Jc(r,t){return r.dispatchAction||ae(t.dispatchAction,t)}function L1(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function P1(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function R1(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function ef(r){return r==="center"||r==="middle"}function k1(r,t,e){var n=ys(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Gn(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=J(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const E1=I1;function dD(r){_t(jd),r.registerComponentModel(d1),r.registerComponentView(E1),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt)}var O1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ie),N1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ue(e.get("textBaseline"),e.get("textVerticalAlign")),c=new we({style:zt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=e.get("subtext"),v=new we({style:zt(s,{text:h,fill:s.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),m=e.get("triggerEvent",!0);c.silent=!d&&!m,v.silent=!p&&!m,d&&c.on("click",function(){Jl(d,"_"+e.get("target"))}),p&&v.on("click",function(){Jl(p,"_"+e.get("subtarget"))}),J(c).eventData=J(v).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),h&&i.add(v);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Gt(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),v.setStyle(S),g=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var C=new ve({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(Ye);function pD(r){r.registerComponentModel(O1),r.registerComponentView(N1)}function gi(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Pr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var B1=function(r){N(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=Ft(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=V1,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ar(this.childAt(0))},t.prototype.downplay=function(){Mr(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):ge(h,v,s,n),Ka(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,De(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,h,v,d,p,m,g;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,m=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Br(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=$s(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=e.getItemVisual(n,"style"),C=x.fill;if(s instanceof Or){var T=s.style;s.useStyle(O({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(O({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(n,"liftZ"),M=this._z2;A!=null?M==null&&(this._z2=s.z2,s.z2+=A):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Nr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:C,defaultOpacity:x.opacity});function I(R){return D?e.getName(R):gi(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Ir(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=J(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&wn(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();wn(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return C_(e.getItemVisual(n,"symbolSize"))},t}(pe);function V1(r,t){this.parent.drift(r,t)}const dl=B1;function eo(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function tf(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function rf(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Br(t),cursorStyle:t.get("cursor")}}var z1=function(){function r(t){this.group=new pe,this._SymbolCtor=t||dl}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=tf(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=rf(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var h=c(f);if(eo(t,h,f,e)){var v=new o(t,f,l,u);v.setPosition(h),t.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!eo(t,d,f,e)){n.remove(v);return}var p=t.getItemVisual(f,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==p)n.remove(v),v=new o(t,f,l,u),v.setPosition(d);else{v.updateData(t,f,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):ge(v,g,a)}n.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=rf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=tf(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ie);const ss=F1;var mr=Q,ls=w,va=pe,W1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new va),this.group.add(this._selectorGroup=new va),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var c=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=Gt(c,f,h),d=this.layoutInner(e,o,v,i,l,u),p=Gt(te({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hp(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),c=W(),f=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ls(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` +`)){var m=new va;m.newline=!0,u.add(m);return}var g=a.getSeriesByName(p)[0];if(!c.get(p))if(g){var y=g.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(g,p,d,v,n,e,_,b,S,f,i);x.on("click",mr(nf,p,null,i,h)).on("mouseover",mr(us,g.name,null,i,h)).on("mouseout",mr(cs,g.name,null,i,h)),c.set(p,!0)}else a.eachRawSeries(function(C){if(!c.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var A=T.indexOfName(p),M=T.getItemVisual(A,"style"),D=T.getItemVisual(A,"legendIcon"),I=Cg(M.fill);I&&I[3]===0&&(I[3]=.2,M=O(O({},M),{fill:Tg(I,"rgba")}));var L=this._createItem(C,p,d,v,n,e,{},M,D,f,i);L.on("click",mr(nf,null,p,i,h)).on("mouseover",mr(us,null,p,i,h)).on("mouseout",mr(cs,null,p,i,h)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();ls(e,function(u){var c=u.type,f=new we({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Nr(f,{normal:h,emphasis:v},{defaultText:u.title}),To(f)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,c,f,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=H1(c,i,l,u,v,m,h),b=new va,x=i.getModel("textStyle");if($(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;b.add(U1({itemWidth:d,itemHeight:p,icon:c,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,A=s,M=o.get("formatter"),D=n;G(M)&&M?D=M.replace("{name}",n??""):$(M)&&(D=M(n));var I=m?x.getTextColor():i.get("inactiveColor");b.add(new we({style:zt(x,{text:D,x:T,y:p/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new ve({shape:b.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&ja({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!f,this.getContentGroup().add(b),To(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cr(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Cr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,m=p===0?"width":"height",g=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[m]+d:f[p]+=h[m]+d,v[1-p]+=c[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[m]=c[m]+d+h[m],_[g]=Math.max(c[g],h[g]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ye);function H1(r,t,e,n,a,i,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),ls(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Go(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function U1(r){var t=r.icon||"roundRect",e=Ft(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function nf(r,t,e,n){cs(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),us(r,t,e,n)}function wp(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],m=[-v.x,-v.y];n||(m[i]=c[u]);var g=[0,0],y=[-d.x,-d.y],_=ue(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:g[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(m),f.setPosition(g),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],f.setClipPath(new ve({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&ge(c,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",G(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=to[o],l=ro[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=S(f);d.contentPosition[o]=-p.s;for(var m=u+1,g=p,y=p,_=null;m<=h;++m)_=S(c[m]),(!_&&y.e>g.s+i||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=p,y=p,_=null;m>=-1;--m)_=S(c[m]),(!_||!b(y,_.s))&&g.i=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(Cp);const q1=K1;function j1(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Q1(r){_t(Tp),r.registerComponentModel(Z1),r.registerComponentView(q1),j1(r)}function gD(r){_t(Tp),_t(Q1)}var J1={label:{enabled:!0},decal:{show:!1}},sf=le(),eC={};function tC(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=X(J1);Z(n.label,r.getLocaleModel().get("aria"),!1),Z(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),c=u.get("show");if(c){var f=W();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),sf(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if($(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=tu(h.ecModel,h.name,eC,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},m=sf(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var g=d.count();d.each(function(b){var x=p[b],C=d.getName(b)||b+"",T=tu(h.ecModel,C,m,g),A=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(A,T))})}function S(b,x){var C=b?O(O({},x),b):x;return C.dirty=!0,C}})}}function i(){var u=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=te(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),m;if(!(h<1)){var g=s();if(g){var y=c.get(["general","withTitle"]);m=o(y,{title:g})}else m=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:h}),r.eachSeries(function(T,A){if(A1?c.get(["series","multiple",I]):c.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);M+=o(P,{displayCnt:v})}else M+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),V=c.get(["data","separator","end"]),Y=[],k=0;k":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},nC=function(){function r(t){var e=this._condVal=G(t)?new RegExp(t):Dg(t)?t:null;if(e==null){var n="";j(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return G(e)?this._condVal.test(t):se(e)?this._condVal.test(t+""):!1},r}(),aC=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),iC=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(lt);const yC=mC;function Ap(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=_C(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=z(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Rr(t,f[0])&&(h=!0,f[0]=v),Rr(t,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function _C(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:se(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function Mp(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function SC(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function xC(r,t,e,n,a,i,o,s){for(var l=SC(r,t),u=[],c=[],f=[],h=[],v=[],d=[],p=[],m=Ap(a,t,o),g=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(Jt(g,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](g,y),f=g,h=y;else{var _=g-u,S=y-c;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===g&&C===y&&m=n||Jt(x,C))v=g,d=y;else{M=x-u,D=C-c;var P=g-u,R=x-g,V=y-c,Y=C-y,k=void 0,B=void 0;if(s==="x"){k=Math.abs(P),B=Math.abs(R);var F=M>0?1:-1;v=g-F*k*o,d=y,I=g+F*B*o,L=y}else if(s==="y"){k=Math.abs(V),B=Math.abs(Y);var U=D>0?1:-1;v=g,d=y-U*k*o,I=g,L=y+U*B*o}else k=Math.sqrt(P*P+V*V),B=Math.sqrt(R*R+Y*Y),A=B/(B+k),v=g-M*o*(1-A),d=y-D*o*(1-A),I=g+M*o*A,L=y+D*o*A,I=Lt(I,Pt(x,g)),L=Lt(L,Pt(C,y)),I=Pt(I,Lt(x,g)),L=Pt(L,Lt(C,y)),M=I-g,D=L-y,v=g-M*k/B,d=y-D*k/B,v=Lt(v,Pt(u,g)),d=Lt(d,Pt(c,y)),v=Pt(v,Lt(u,g)),d=Pt(d,Lt(c,y)),M=g-v,D=y-d,I=g+M*B/k,L=y+D*B/k}r.bezierCurveTo(f,h,v,d,g,y),f=I,h=L}else r.lineTo(g,y)}u=g,c=y,p+=i}return m}var Ip=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),bC=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ip},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Jt(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],m=i[f++],g=i[f++],y=i[f++];var b=u?Cl(s,v,p,g,e,c):Cl(l,d,m,y,e,c);if(b>0)for(var x=0;x=0){var S=u?Tl(l,d,m,y,C):Tl(s,v,p,g,C);return u?[e,S]:[S,e]}}s=g,l=y;break}}},t}(_e),wC=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ip),CC=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new wC},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Jt(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function AC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=z(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=DC(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,m=h[v-1].coord+d,g=m-p;if(g<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new Kf(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=m,y}}}function MC(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&IC(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function IC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function LC(r,t){return isNaN(r)||isNaN(t)}function PC(r){for(var t=r.length/2;t>0&&LC(r[t*2-2],r[t*2-1]);t--);return t-1}function df(r,t){return[r[t*2],r[t*2+1]]}function RC(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function kp(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var F=p.getState("emphasis").style;F.lineWidth=+p.style.lineWidth+1}J(p).seriesIndex=e.seriesIndex,Ir(p,Y,k,B);var U=hf(e.get("smooth")),K=e.get("smoothMonotone");if(p.setShape({smooth:U,smoothMonotone:K,connectNulls:T}),m){var q=l.getCalculationInfo("stackedOnSeries"),re=0;m.useStyle(te(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),q&&(re=hf(q.get("smooth"))),m.setShape({smooth:U,stackedOnSmooth:re,smoothMonotone:K,connectNulls:T}),bn(m,e,"areaStyle"),J(m).seriesIndex=e.seriesIndex,Ir(m,Y,k,B)}var Se=function(me){i._changePolyState(me)};l.eachItemGraphicEl(function(me){me&&(me.onHoverStateChange=Se)}),this._polyline.onHoverStateChange=Se,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=D,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),m&&this.packEventData(e,m))},t.prototype.packEventData=function(e,n){J(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new dl(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Oe.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Oe.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Ol(this._polyline,e),n&&Ol(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new bC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new CC({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");$(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=$(f)?f(null):f;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var m=[v.x,v.y],g=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(m);i?(g=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,y=S.r,_=b[0])}else{var x=a;i?(g=x.x,y=x.x+x.width,_=v.x):(g=x.y+x.height,y=x.y,_=v.y)}var C=y===g?0:(_-g)/(y-g);l&&(C=1-C);var T=$(f)?f(d):c*C+h,A=p.getSymbolPath(),M=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(kp(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new we({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=PC(l);c>=0&&(Nr(s,Br(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?xp(o,v):gi(o,f)},enableTextSetter:!0},kC(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=n.shape,S=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),C=g?"x":"y",T=RC(f,S,C),A=T.range,M=A[1]-A[0],D=void 0;if(M>=1){if(M>1&&!v){var I=df(f,A[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(D=h.getRawValue(A[0]))}else{var I=c.getPointOn(S,C);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(A[0]),P=h.getRawValue(A[1]);o&&(D=fv(a,d,L,P,T.t))}i.lastFrameIndex=A[0]}else{var R=e===1||i.lastFrameIndex>0?A[0]:0,I=df(f,R);o&&(D=h.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var V=Vr(u);typeof V.setLabelText=="function"&&V.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,h=xC(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,m=h.stackedOnNext;if(o&&(v=Rt(h.current,a,o,l),d=Rt(h.stackedOnCurrent,a,o,l),p=Rt(h.next,a,o,l),m=Rt(h.stackedOnNext,a,o,l)),vf(v,p)>3e3||c&&vf(d,m)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),ge(u,g,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),ge(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;G(i)?d=NC[i]:$(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,BC))}}}}}function SD(r){r.registerChartView(OC),r.registerSeriesModel(yC),r.registerLayout(ml("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Ep("line"))}var Op=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ci(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)w(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&(p+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var g=void 0,y=void 0,_=1,S=0;Sp){y=(b+g)/2;break}S===1&&(_=x-d[0].tickValue)}y==null&&(g?g&&(y=d[d.length-1].coord):y=d[0].coord),s[v]=h.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(lt);lt.registerClass(Op);const Wa=Op;var VC=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ci(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Is(Wa.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Wa);const zC=VC;var GC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),FC=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new GC},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Pa(i,e,J(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Oe),gf={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=ao(t.x,r.x),s=io(t.x+t.width,a),l=ao(t.y,r.y),u=io(t.y+t.height,i),c=sa?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=io(t.r,r.r),i=ao(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},mf={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new ve({shape:O({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?pf:or,c=new u({shape:n,z2:1});c.name="item";var f=Np(a);if(c.calculateTextPosition=WC(f,{isRoundCap:u===pf}),i){var h=c.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?ge:De)(c,{shape:d},i)}return c}};function $C(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function yf(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?ge:De)(e,{shape:l},t,a,null);var c=t?r.baseAxis.model:null;(o?ge:De)(e,{shape:u},c,a)}function _f(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function KC(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Np(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function xf(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=cn(n.getModel("itemStyle"),c,!0);O(c,f),r.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=Br(n);Nr(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:gi(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var m=n.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,HC(r,m==="outside"?v:m,Np(o),n.get(["label","rotate"]))}qm(p,d,i.getRawValue(e),function(y){return xp(t,y)});var g=n.getModel(["emphasis"]);Ir(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),bn(r,n),KC(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function qC(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var jC=function(){function r(){}return r}(),bf=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new jC},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?e:null},30,!1);function QC(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function Bp(r,t,e){if(pl(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function JC(r,t,e){var n=r.type==="polar"?or:ve;return new n({shape:Bp(t,e,r),silent:!0,z2:0})}const eT=YC;function xD(r){r.registerChartView(eT),r.registerSeriesModel(zC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Q(pd,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gd("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Ep("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var ga=Math.PI*2,Tf=Math.PI/180;function Vp(r,t){return Gt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function zp(r,t){var e=Vp(r,t),n=r.get("center"),a=r.get("radius");E(a)||(a=[0,a]);var i=ee(e.width,t.getWidth()),o=ee(e.height,t.getHeight()),s=Math.min(i,o),l=ee(a[0],s/2),u=ee(a[1],s/2),c,f,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);c=v[0]||0,f=v[1]||0}else E(n)||(n=[n,n]),c=ee(n[0],i)+e.x,f=ee(n[1],o)+e.y;return{cx:c,cy:f,r0:l,r:u}}function tT(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Vp(n,e),s=zp(n,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*Tf,v=n.get("minAngle")*Tf,d=0;a.each(i,function(M){!isNaN(M)&&d++});var p=a.getSum(i),m=Math.PI/(p||d)*2,g=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var b=ga,x=0,C=h,T=g?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(M,D){var I;if(isNaN(M)){a.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?I=p===0&&_?m:M*m:I=ga/d,Ie?g:m,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,C=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var m=(n.style.margin||0)+2.1;i.height=p.height+m,i.y-=(i.height-f)/2}}}function oo(r){return r.position==="center"}function iT(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*nT,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,A=C.getTextContent(),M=C.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),V=ee(I.get("edgeDistance"),u),Y=I.get("bleedMargin"),k=D.getModel("labelLine"),B=k.get("length");B=ee(B,u);var F=k.get("length2");if(F=ee(F,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":K>0?"left":"right"}var Tt=Math.PI,ft=0,Hr=I.get("rotate");if(se(Hr))ft=Hr*(Tt/180);else if(L==="center")ft=0;else if(Hr==="radial"||Hr===!0){var Qp=K<0?-U+Tt:-U;ft=Qp}else if(Hr==="tangential"&&L!=="outside"&&L!=="outer"){var ur=Math.atan2(K,q);ur<0&&(ur=Tt*2+ur);var Jp=q>0;Jp&&(ur=Tt+ur),ft=ur-Tt}if(i=!!ft,A.x=re,A.y=Se,A.rotation=ft,A.setStyle({verticalAlign:"middle"}),Ct){A.setStyle({align:wt});var mi=A.states.select;mi&&(mi.x+=A.x,mi.y+=A.y)}else{var Ur=A.getBoundingRect().clone();Ur.applyTransform(A.getComputedTransform());var _l=(A.style.margin||0)+2.1;Ur.y-=_l/2,Ur.height+=_l,e.push({label:A,labelLine:M,position:L,len:B,len2:F,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new be(K,q),linePoints:me,textAlign:wt,labelDistance:P,labelAlignTo:R,edgeDistance:V,bleedMargin:Y,rect:Ur,unconstrainedWidth:Ur.width,labelStyleWidth:A.style.width})}C.setTextConfig({inside:Ct})}}),!i&&r.get("avoidLabelOverlap")&&aT(e,n,a,l,u,h,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t}(Oe);const lT=sT;function Fp(r,t,e){t=E(t)&&{coordDimensions:t}||O({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=od(n,t).dimensions,i=new id(a,r);return i.initData(n,e),i}var uT=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const cT=uT;var fT=le(),vT=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new cT(ae(this.getData,this),ae(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Fp(this,{coordDimensions:["value"],encodeDefaulter:Q(Ty,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=fT(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=zg(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){bo(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(lt);const hT=vT;function dT(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(se(o)&&!isNaN(o)&&o<0)})}}}function bD(r){r.registerChartView(lT),r.registerSeriesModel(hT),d_("pie",r.registerAction),r.registerLayout(Q(tT,"pie")),r.registerProcessor(rT("pie")),r.registerProcessor(dT("pie"))}var pT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return ci(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(lt);const gT=pT;var Wp=4,mT=function(){function r(){}return r}(),yT=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new mT},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,h=i[c+1]-l/2;if(e>=f&&n>=h&&e<=f+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const ST=_T;var xT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=ml("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,a=n&&n.getArea&&n.getArea();return e.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new ST:new bp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Oe);const bT=xT;function wD(r){_t(Yd),r.registerSeriesModel(gT),r.registerChartView(bT),r.registerLayout(ml("scatter"))}var wT=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[a,i],d=v[c].get("type"),p=v[1-c].get("type"),m=t.data;if(m&&l){var g=[];w(m,function(S,b){var x;E(S)?(x=S.slice(),S.unshift(b)):E(S.value)?(x=O({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,g.push(x)}),t.data=g}var y=this.defaultValueDimensions,_=[{name:f,type:Uo(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Uo(p),dimsDef:y.slice()}];return Fp(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:Q(Qv,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),CT=["color","borderColor"],TT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){Fn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&Af(u,f))return;var h=so(f,c,!0);De(h,{shape:{points:f.ends}},e,c),lo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(h);return}var v=n.getItemLayout(c);if(s&&Af(u,v)){i.remove(h);return}h?(ge(h,{shape:{points:v.ends}},e,c),Ka(h)):h=so(v),lo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Mf(e,this.group);var n=e.get("clip",!0)?Rp(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=so(s);lo(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){Mf(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Oe),DT=function(){function r(){}return r}(),AT=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new DT},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(_e);function so(r,t,e){var n=r.ends;return new AT({shape:{points:e?MT(n,r):n},z2:100})}function Af(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(CT);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const LT=TT;var Hp=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(lt);St(Hp,wT,!0);const PT=Hp;function RT(r){!r||!E(r.series)||w(r.series,function(t){H(t)&&t.type==="k"&&(t.type="candlestick")})}var kT=["itemStyle","borderColor"],ET=["itemStyle","borderColor0"],OT=["itemStyle","borderColorDoji"],NT=["itemStyle","color"],BT=["itemStyle","color0"],VT={seriesType:"candlestick",plan:Hn(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?NT:BT)}function n(i,o){return o.get(i===0?OT:i>0?kT:ET)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=e(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");O(f,c)}}}}}};const zT=VT;var GT={seriesType:"candlestick",plan:Hn(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=FT(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=z(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],c=l[1],f=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,m){for(var g,y=m.getStore();(g=p.next())!=null;){var _=y.get(s,g),S=y.get(u,g),b=y.get(c,g),x=y.get(f,g),C=y.get(h,g),T=Math.min(S,b),A=Math.max(S,b),M=Y(T,_),D=Y(A,_),I=Y(x,_),L=Y(C,_),P=[];k(P,D,0),k(P,M,1),P.push(F(L),F(D),F(I),F(M));var R=m.getItemModel(g),V=!!R.get(["itemStyle","borderColorDoji"]);m.setItemLayout(g,{sign:If(y,g,S,b,c,V),initBaseline:S>b?D[i]:M[i],ends:P,brushRect:B(x,C,_)})}function Y(U,K){var q=[];return q[a]=K,q[i]=U,isNaN(K)||isNaN(U)?[NaN,NaN]:t.dataToPoint(q)}function k(U,K,q){var re=K.slice(),Se=K.slice();re[a]=_a(re[a]+n/2,1,!1),Se[a]=_a(Se[a]-n/2,1,!0),q?U.push(re,Se):U.push(Se,re)}function B(U,K,q){var re=Y(U,q),Se=Y(K,q);return re[a]-=n/2,Se[a]-=n/2,{x:re[0],y:re[1],width:n,height:Se[1]-re[1]}}function F(U){return U[a]=_a(U[a],1),U}}function d(p,m){for(var g=nt(p.count*4),y=0,_,S=[],b=[],x,C=m.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var A=C.get(s,x),M=C.get(u,x),D=C.get(c,x),I=C.get(f,x),L=C.get(h,x);if(isNaN(A)||isNaN(I)||isNaN(L)){g[y++]=NaN,y+=3;continue}g[y++]=If(C,x,M,D,c,T),S[a]=A,S[i]=I,_=t.dataToPoint(S,null,b),g[y++]=_?_[0]:NaN,g[y++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),g[y++]=_?_[1]:NaN}m.setLayout("largePoints",g)}}};function If(r,t,e,n,a,i){var o;return e>n?o=-1:e0?r.get(a,t-1)<=n?1:-1:1,o}function FT(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=ee(ue(r.get("barMaxWidth"),a),a),o=ee(ue(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?ee(s,a):Math.max(Math.min(a/2,i),o)}const WT=GT;function CD(r){r.registerChartView(LT),r.registerSeriesModel(PT),r.registerPreprocessor(RT),r.registerVisual(zT),r.registerLayout(WT)}var HT=["itemStyle","borderWidth"],Lf=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],fo=new Ha,UT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:Lf[+c],categoryDim:Lf[1-+c]};return o.diff(s).add(function(v){if(o.hasValue(v)){var d=Rf(o,v),p=Pf(o,v,d,h),m=kf(o,h,p);o.setItemGraphicEl(v,m),i.add(m),Of(m,h,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){i.remove(p);return}var m=Rf(o,v),g=Pf(o,v,m,h),y=Kp(o,g);p&&y!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(v,null),p=null),p?jT(p,h,g):p=kf(o,h,g,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=g,i.add(p),Of(p,h,g)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&Ef(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){Ef(i,J(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(Oe);function Pf(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};YT(e,i,a,n,h),$T(r,t,a,i,o,h.boundingLength,h.pxSign,c,n,h),XT(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=$s(e.get("symbolOffset"),v);return ZT(e,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function YT(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(E(o)){var f=[vo(s,o[0])-l,vo(s,o[1])-l];f[1]0?1:-1}function vo(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function $T(r,t,e,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(e[f.wh]),v=r.getItemVisual(t,"symbolSize"),d;E(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=ee(d[f.index],h),d[c.index]=ee(d[c.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function XT(r,t,e,n,a){var i=r.get(HT)||0;i&&(fo.attr({scaleX:t[0],scaleY:t[1],rotation:e}),fo.updateTransform(),i/=fo.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function ZT(r,t,e,n,a,i,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(t[v.index]+s,0),m=p;if(n){var g=Math.abs(l),y=Dr(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=ee(y,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,C=av(n),T=C?n:Nf((g+x)/b),A=g-T*p;S=A/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!C&&n!=="fixed"&&(T=u?Nf((Math.abs(u)+x)/b):0),m=T*b-x,f.repeatTimes=T,f.symbolMargin=S}var M=d*(m/2),D=f.pathPosition=[];D[h.index]=e[h.wh]/2,D[v.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var I=f.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=f.barRectShape=O({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(D[v.index]+M)),L[h.wh]=e[h.wh];var P=f.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=c.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Up(r){var t=r.symbolPatternSize,e=Ft(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Yp(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+e.symbolMargin*2;for(yl(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:g<0)&&(y=u-1-p),m[l.index]=f*(y-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function $p(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Tr(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=Up(e),a.add(i),Tr(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function Xp(r,t,e){var n=O({},t.barRectShape),a=r.__pictorialBarRect;a?Tr(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new ve({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function Zp(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=O({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)ge(a,{shape:i},s,l);else{i[o.wh]=0,a=new ve({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],Ms[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Rf(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=KT,e.isAnimationEnabled=qT,e}function KT(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function qT(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function kf(r,t,e,n){var a=new pe,i=new pe;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Yp(a,t,e):$p(a,t,e),Xp(a,e,n),Zp(a,t,e,n),a.__pictorialShapeStr=Kp(r,e),a.__pictorialSymbolMeta=e,a}function jT(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;ge(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?Yp(r,t,e,!0):$p(r,t,e,!0),Xp(r,e,!0),Zp(r,t,e,!0)}function Ef(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];yl(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),w(i,function(o){wn(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function Kp(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function yl(r,t,e){w(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Tr(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&Ms[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function Of(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),h=i.get("scale");yl(r,function(p){if(p instanceof Or){var m=p.style;p.useStyle(O({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},e.style))}else p.useStyle(e.style);var g=p.ensureState("emphasis");g.style=o,h&&(g.scaleX=p.scaleX*1.1,g.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;Nr(d,Br(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:gi(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Ir(r,c,f,i.get("disabled"))}function Nf(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const QT=UT;var JT=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Is(Wa.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Wa);const eD=JT;function TD(r){r.registerChartView(QT),r.registerSeriesModel(eD),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Q(pd,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gd("pictorialBar"))}function Bf(r){return E(r[0])}function Vf(r,t){for(var e=[],n=r.length,a=0;a=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var tD={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;Bf(r)&&(u=r,c=t),Bf(t)&&(u=t,c=r);function f(g,y,_,S,b){var x=g.many,C=g.one;if(x.length===1&&!b){var T=y?x[0]:C,A=y?C:x[0];if(Ig(T))f({many:[T],one:A},!0,_,S,!0);else{var M=s?te({delay:s(_,S)},l):l;Lg(T,A,M),i(T,A,T,A,M)}}else for(var D=te({dividePath:tD[e],individualDelay:s&&function(Y,k,B,F){return s(Y+_,S)}},l),I=y?Pg(x,C,D):Rg(C,x,D),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,V=0;Vt.length,v=u?Vf(c,u):Vf(h?t:r,[h?r:t]),d=0,p=0;pqp))for(var a=n.getIndices(),i=nD(n),o=0;o0&&S.group.traverse(function(x){x instanceof _e&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function Gf(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Ff(r){return E(r)?r.sort().join(","):r}function Et(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function oD(r,t){var e=W(),n=W(),a=W();return w(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Gf(i),c=Ff(u);n.set(c,{dataGroupId:s,data:l}),E(u)&&w(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Gf(i),u=Ff(l),c=n.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Et(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Et(s),data:s}]});else if(E(l)){var f=[];w(l,function(d){var p=n.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Et(p.data),data:p.data})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Et(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Et(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Et(s)})}}}}),e}function Wf(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Et(t.oldData[s]),dim:o.dimension})}),w(he(r.to),function(o){var s=Wf(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Et(l),dim:o.dimension})}}),a.length>0&&i.length>0&&jp(a,i,n)}function DD(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){w(he(n.seriesTransition),function(a){w(he(a.to),function(i){for(var o=n.updatedSeries,s=0;st in e?Po(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var je=(e,t,o)=>(Lo(e,typeof t!="symbol"?t+"":t,o),o);import{o as Mo,u as ae,a as Do,b as Me,c as Ve,d as zo}from"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import{u as Qe}from"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import{d as F}from"./dayjs@1.11.10-A-QuG2Ol.js";import{p as Io}from"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import{g as le,i as q,s as De,c as jo,a as D,r as ne,b as P,d as Eo,u as fe,e as $o,p as Bo,f as ge,h as Ee,j as Fo,k as Ae,q as Pe,l as Wo,m as Ko,n as Uo,o as qo,w as Go,t as Ho,v as W}from"./utils-3DRba3jA.js";import{l as Yo}from"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import{i as $e}from"./interactjs@1.10.26-I0IiZoEj.js";import{s as Xo}from"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import{t as Ze,c as Qo,i as Zo,d as Jo,s as Se}from"./lodash-es@4.17.21-xgd1l9mE.js";import{d as te}from"./dom-to-image@2.6.0-eHYYUq-2.js";import{r as en,u as oe,i as tn,a as on,b as nn,c as rn,d as an,e as ln,f as sn,g as cn,h as un,j as dn,k as pn,l as mn,m as hn,n as fn,o as gn,p as yn,q as bn,s as vn}from"./echarts@5.4.3-94QNkbi2.js";import{o as Je,c as et,a as tt}from"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import{e as Vn}from"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";const Sn="modulepreload",_n=function(e){return"/ray-template/"+e},Be={},O=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){const l=document.getElementsByTagName("link");r=Promise.all(o.map(i=>{if(i=_n(i),i in Be)return;Be[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let p=l.length-1;p>=0;p--){const f=l[p];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":Sn,a||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),a)return new Promise((p,f)=>{c.addEventListener("load",p),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>t()).catch(l=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=l,window.dispatchEvent(i),!i.defaultPrevented)throw l})},wn=(e,t)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},ot={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},H={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},Nl="",M={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Cn=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],j={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},nt=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Nn="zh-CN",Tn="zh-CN",kn={"zh-CN":"zh-cn","en-US":"en"},On="zh-cn",Tl={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},kl={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},J=Vue.ref(null),xn={setupRouterLoadingBar:!0,setupRouterGuard:!0},Rn=["RLogin","ErrorPage","RayTemplateDoc"],de=["admin"],Ol=(e,t)=>{const o=Vue.ref(0),n=Vue.ref(0),r=Vue.ref(!1),{clickOutside:l}=t??{},i=p=>{r.value=p},a=p=>{p.preventDefault(),i(!1),Vue.nextTick().then(()=>{const{clientX:f,clientY:b}=p;o.value=f,n.value=b,i(!0)})};l&&Mo(e,p=>{l(p)});const s=ae(e,"contextmenu",a,t),u=ae(e,"click",()=>{i(!1)});return{stop:()=>{s(),u()},x:Vue.readonly(o),y:Vue.readonly(n),show:Vue.readonly(r),updateShow:i}},rt=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function K(e,t,o){rt[e]=t,o==null||o()}function Y(e){return Vue.readonly(Vue.toRef(rt,e))}let at;const An=async()=>{const e=No(),t=await al(nt);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Tn})},xl=async e=>{const t=await An();e.use(t),at=t},Pn=(e,t)=>!e||t[0]===e?t:`${e}.${t}`,ee=e=>{const{t,locale:o,...n}=at.global;return{...n,t:(i,...a)=>i?!i.includes(".")&&!e?i:t(Pn(e,i),...a):"",locale:i=>{const a=o;a.value=i}}},x=e=>e,Ln={path:"/dashboard",name:"RDashboard",component:()=>O(()=>import("./index-t2_z-FtU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])),meta:{i18nKey:x("menu.Dashboard"),icon:"dashboard",order:0}},Mn=Object.freeze(Object.defineProperty({__proto__:null,default:Ln},Symbol.toStringTag,{value:"Module"})),Dn={path:"/axios",name:"RAxios",component:()=>O(()=>import("./index-ESRgrIKF.js"),__vite__mapDeps([34,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,35,22,18,16,17,23,20,21,24,25,26,27,28,29,30,31,32,36])),meta:{i18nKey:x("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},zn=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),In={path:"/cache-demo",name:"CacheDemo",component:()=>O(()=>import("./index-HlEoc4oA.js"),__vite__mapDeps([37,22,18,16,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,17,23,20,21,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.CacheDemo"),icon:"other",order:3,extra:{label:"new"}}},jn=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),En={path:"/context-menu",name:"ContextMenuDemo",component:()=>O(()=>import("./index-fSj7NDsx.js"),__vite__mapDeps([38,18,16,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,17,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.ContextMenu"),icon:"other",order:2}},$n=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Bn={path:"/directive",name:"RDirective",component:()=>O(()=>import("./index-qt5v82ci.js"),__vite__mapDeps([])),meta:{i18nKey:x("menu.Directive"),icon:"other",order:2}},Fn=Object.freeze(Object.defineProperty({__proto__:null,default:Bn},Symbol.toStringTag,{value:"Module"})),U=()=>O(()=>Promise.resolve().then(()=>ya),void 0),Wn={path:"/doc",name:"RDocLayout",component:U,meta:{i18nKey:x("menu.Doc"),icon:"doc",order:5},children:[{path:"doc-inside",name:"RDocInside",component:()=>O(()=>import("./index-gvn0WixR.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.DocLocalInside")}},{path:"doc-outside",name:"RDoc",component:U,meta:{i18nKey:x("menu.Doc"),windowOpen:"https://xiaodaigua-ray.github.io/ray-template-doc/"}},{path:"doc-outside-local",name:"RDocLocal",component:U,meta:{i18nKey:x("menu.DocLocal"),windowOpen:"https://ray-template.yunkuangao.com/ray-template-doc/"}}]},Kn=Object.freeze(Object.defineProperty({__proto__:null,default:Wn},Symbol.toStringTag,{value:"Module"})),Un={path:"/echart",name:"REchart",component:()=>O(()=>import("./index-9pBqvQlJ.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,41])),meta:{i18nKey:x("menu.Echart"),icon:"echart",order:1}},qn=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),Gn={path:"/iframe",name:"IframeDemo",component:()=>O(()=>import("./index-xcH4U4Ty.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Yn={path:"/mock-demo",name:"MockDemo",component:()=>O(()=>import("./index-5lw8fAJn.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,22,23,20,21,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.Mock"),icon:"other",order:3,keepAlive:!1}},Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Qn={path:"/modal-demo",name:"ModalDemo",component:()=>O(()=>import("./index-URw8EbN2.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.Modal"),icon:"other",order:3}},Zn=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),Jn={path:"/multi",name:"MultiMenu",component:U,meta:{i18nKey:x("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>O(()=>import("./index-OlZM-6Aq.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:U,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>O(()=>import("./index-7HAQIe0w.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:U,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>O(()=>import("./index-vRnYP7XJ.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},er=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),tr={path:"/precision",name:"CalculatePrecision",component:()=>O(()=>import("./index-ZatM64SM.js"),__vite__mapDeps([45,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,16,17,22,18,23,20,21,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.CalculatePrecision"),icon:"other",order:2}},or=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),nr={path:"/qrcode",name:"RQRCode",component:()=>O(()=>import("./index-iapTKWGV.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,47,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.QRCode"),icon:"other",order:3}},rr=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),ar={path:"/rely",name:"Rely",component:U,meta:{i18nKey:x("menu.Rely"),icon:"rely",order:999},children:[{path:"rely-about",name:"RelyAbout",component:()=>O(()=>import("./index-7jSmHArV.js"),__vite__mapDeps([48,49])),meta:{i18nKey:x("menu.RelyAbout")}}]},lr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),ir={path:"/router-demo",name:"RouterDemoRoot",component:U,meta:{i18nKey:x("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",name:"RouterDemoHome",component:()=>O(()=>import("./index-Jz_0N3dr.js"),__vite__mapDeps([50,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",name:"RouterDemoDetail",component:()=>O(()=>import("./index-tZy8npu9.js"),__vite__mapDeps([])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},sr=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),cr={path:"/scroll-reveal",name:"ScrollReveal",component:()=>O(()=>import("./index-v5xFQW7A.js"),__vite__mapDeps([51,52])),meta:{i18nKey:x("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},ur=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),dr={path:"/svg-icons",name:"PreviewSVGIcons",component:()=>O(()=>import("./index-l2OdooJx.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,54])),meta:{i18nKey:x("menu.SvgIcon"),icon:"other",order:3}},pr=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),mr={path:"/table",name:"TableView",component:()=>O(()=>import("./index-1fl0IMML.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.Table"),icon:"other",order:2}},hr=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),fr={path:"/template-hooks",name:"TemplateHooks",component:()=>O(()=>import("./index-Fu86yYlL.js"),__vite__mapDeps([56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.TemplateHooks"),icon:"other",order:1,extra:{label:"new"}}},gr=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),yr={path:"/:catchAll(.*)",name:"ErrorPage",component:()=>O(()=>import("./index-6Jsj4zGJ.js"),__vite__mapDeps([57,20,21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32,58])),meta:{i18nKey:x("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}},br=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),vr=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Mn,"/src/router/modules/demo/axios.ts":zn,"/src/router/modules/demo/cache-demo.ts":jn,"/src/router/modules/demo/context-menu.ts":$n,"/src/router/modules/demo/directive.ts":Fn,"/src/router/modules/demo/doc.ts":Kn,"/src/router/modules/demo/echart.ts":qn,"/src/router/modules/demo/iframe.ts":Hn,"/src/router/modules/demo/mock.ts":Xn,"/src/router/modules/demo/modal.ts":Zn,"/src/router/modules/demo/multi-menu.ts":er,"/src/router/modules/demo/precision.ts":or,"/src/router/modules/demo/qrcode.ts":rr,"/src/router/modules/demo/rely.ts":lr,"/src/router/modules/demo/router-demo.ts":sr,"/src/router/modules/demo/scroll-reveal.ts":ur,"/src/router/modules/demo/svg-icons.ts":pr,"/src/router/modules/demo/table.ts":hr,"/src/router/modules/demo/template-hooks.ts":gr,"/src/router/modules/error404.ts":br});return Object.keys(e).reduce((o,n)=>{const r=e[n].default;if(r)o.push(r);else throw new Error("router helper combine: an exception occurred while parsing the routing file!");return o},[])},Vr=e=>e.sort((t,o)=>{var l,i;const n=((l=t.meta)==null?void 0:l.order)??1,r=((i=o.meta)==null?void 0:i.order)??0;if(typeof n!="number"||typeof r!="number")throw new TypeError("orderRoutes error: order must be a number!");return n===r?t.name?o.name?t.name.localeCompare(o.name):-1:1:n-r}),Sr=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=J.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},_r=e=>{const{beforeEach:t}=e,{getRootPath:o}=Q(),n=(r,l)=>r.path==="/"||l.path==="/login";t((r,l,i)=>{const a=le(M.token),s=le(M.appMenuKey,"sessionStorage",{defaultValue:o.value}),{meta:u,name:c}=r;a!==null?n(r,l)?we(!0):!q(c,"Symbol")&&c&&Rn.includes(c)?i():So(u)?n(r,l)?s?i(s):we(!0):i():we(!0):n(r,l)?i():i("/")})};var wr={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.19","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.1.3","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.4-beta1.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const lt=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=wr,{locale:t}=ee(),{locale:o}=Ja(),n=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:No(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"}}),r=a=>{t(a),o(a),n.localeLanguage=a,De(M.localeLanguage,a,"localStorage")},l=(a,s=.3)=>{const u=jo(a,s),c={primaryColor:a,primaryColorHover:a,primaryColorPressed:a};n.primaryColorOverride.common=c;const p=document.body;p.style.setProperty("--ray-theme-primary-color",a),p.style.setProperty("--ray-theme-primary-fade-color",u)},i=(a,s,u)=>{Reflect.has(n,a)&&(n[a]=s),u==null||u()};return Vn(()=>n.appTheme,a=>{a?Object.assign({},n.primaryColorOverride,j.appNaiveUIThemeOverrides.dark,j.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.primaryColorOverride,j.appNaiveUIThemeOverrides.light,j.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(n),updateLocale:r,changePrimaryColor:l,updateSettingState:i}},{persist:{key:M.appPiniaSettingStore}}),it=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],st="transparent",ct={},ut={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},dt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},pt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},mt={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},ht={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ft={itemStyle:{borderWidth:0,borderColor:"#ccc"}},gt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},yt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},bt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},vt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Vt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},St={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},_t={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},wt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Ct={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Nt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Tt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},kt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ot={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},xt={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},Rt={textStyle:{color:"#999999"}},At={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Pt={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Lt={color:["#fc97af","#87f7cf"]},Mt={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},Dt={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Cr={color:it,backgroundColor:st,textStyle:ct,title:ut,line:dt,radar:pt,bar:mt,pie:ht,scatter:ft,boxplot:gt,parallel:yt,sankey:bt,funnel:vt,gauge:Vt,candlestick:St,graph:_t,map:wt,geo:Ct,categoryAxis:Nt,valueAxis:Tt,logAxis:kt,timeAxis:Ot,toolbox:xt,legend:Rt,tooltip:At,timeline:Pt,visualMap:Lt,dataZoom:Mt,markPoint:Dt},Nr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:st,bar:mt,boxplot:gt,candlestick:St,categoryAxis:Nt,color:it,dataZoom:Mt,default:Cr,funnel:vt,gauge:Vt,geo:Ct,graph:_t,legend:Rt,line:dt,logAxis:kt,map:wt,markPoint:Dt,parallel:yt,pie:ht,radar:pt,sankey:bt,scatter:ft,textStyle:ct,timeAxis:Ot,timeline:Pt,title:ut,toolbox:xt,tooltip:At,valueAxis:Tt,visualMap:Lt},Symbol.toStringTag,{value:"Module"})),zt=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],It="transparent",jt={},Et={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},$t={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},Bt={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},Ft={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Wt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Kt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ut={itemStyle:{borderWidth:0,borderColor:"#ccc"}},qt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Gt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ht={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Yt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Xt={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},Qt={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},Zt={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},Jt={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},eo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},to={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},oo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},no={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ro={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},ao={textStyle:{color:"#333333"}},lo={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},io={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},so={color:["#5ab1ef","#e0ffff"]},co={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},uo={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Tr={color:zt,backgroundColor:It,textStyle:jt,title:Et,line:$t,radar:Bt,bar:Ft,pie:Wt,scatter:Kt,boxplot:Ut,parallel:qt,sankey:Gt,funnel:Ht,gauge:Yt,candlestick:Xt,graph:Qt,map:Zt,geo:Jt,categoryAxis:eo,valueAxis:to,logAxis:oo,timeAxis:no,toolbox:ro,legend:ao,tooltip:lo,timeline:io,visualMap:so,dataZoom:co,markPoint:uo},kr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:It,bar:Ft,boxplot:Ut,candlestick:Xt,categoryAxis:eo,color:zt,dataZoom:co,default:Tr,funnel:Ht,gauge:Yt,geo:Jt,graph:Qt,legend:ao,line:$t,logAxis:oo,map:Zt,markPoint:uo,parallel:qt,pie:Wt,radar:Bt,sankey:Gt,scatter:Kt,textStyle:jt,timeAxis:no,timeline:io,title:Et,toolbox:ro,tooltip:lo,valueAxis:to,visualMap:so},Symbol.toStringTag,{value:"Module"})),Or=()=>{const e=Object.assign({"/src/echart-themes/macarons/macarons-dark.json":Nr,"/src/echart-themes/macarons/macarons.json":kr}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((n,r)=>{var i;const l=(i=r.match(t))==null?void 0:i[1];if(l)return n.push({name:l,theme:e[r].default}),n;throw new Error(`[RChart Theme Error]: name ${r} is invalid!`)},[])},xr=e=>Object.assign({},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.9)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e),Rr={bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:{type:[Boolean,Object],default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>xr()},observer:{type:Object,default:null},throttleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>({})}},Ar={notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]},Pr=Or();Pr.forEach(e=>{en(e.name,e.theme)});const Rl=Vue.defineComponent({name:"RChart",props:Rr,setup(e,{expose:t}){const{getAppTheme:o}=I(),n=Vue.ref(),r=Vue.ref(),l=Vue.ref();let i,a;const{echartTheme:s}=j;let u,c;const p=Vue.computed(()=>[{label:"下载图片",key:"__DOWN_LOAD_CHART__",disabled:!(l.value&&l.value.getDom())}]),f=Vue.computed(()=>({"--ray-chart-width":D(e.width),"--ray-chart-height":D(e.height)})),b=async()=>{var V;oe([on,nn,rn,an,ln,sn,cn,un]),oe([dn,pn,mn,hn,fn,gn]),oe([yn,bn]),oe([vn]);try{oe((V=e.use)==null?void 0:V.filter(Boolean))}catch(k){console.error("[RChart register error]: ",k)}},v=()=>{if(e.theme==="default"){e.autoChangeTheme?y("dark"):y("");return}if(e.theme)y(e.theme);else{const V=e.autoChangeTheme&&o.value?`${s}-dark`:s;y(V)}},m=V=>{let k=Vue.unref(V);const R=A=>Object.assign({},k,A);return e.showAria&&(k=R({aria:{enabled:!0,decal:{show:!0}}})),k},y=(V=s)=>{const k=n.value,R=m(e.options),{height:A,width:$}=k.getBoundingClientRect(),{onSuccess:B,onError:ce}=e;try{c=tn(k,V,{width:$===0?200:void 0,height:A===0?200:void 0}),l.value=c,e.nextTick?(c.setOption({}),Vue.nextTick(()=>{R&&(c==null||c.setOption(R))})):R&&(c==null||c.setOption(R)),B&&P(B,c)}catch(ve){ce&&P(ce),console.error("RChart render error: ",ve)}},d=()=>!!(c&&c.getDom()),h=()=>{d()&&(c.clear(),c.dispose(),l.value=void 0)},_=()=>{c&&c.resize()},T=(V,k)=>{if(V==="__DOWN_LOAD_CHART__"&&d()){const{filename:A,...$}=e.downloadOptions;Eo(c.getDataURL($),A??`${new Date().getTime()}`)}const{onDropdownSelect:R}=e;R&&P(R,V,k)},g=()=>{if(c!=null&&c.getDom()){console.warn("[RChart mount]: There is a chart instance already initialized on the dom. Execution was interrupted.");return}v(),e.autoResize&&(i=Ze(_,e.throttleWait),a=Do(e.observer||r,i))},S=()=>{var V;h(),i==null||i.cancel(),(V=a==null?void 0:a.stop)==null||V.call(a)};return Vue.watch(()=>o.value,()=>{e.autoChangeTheme&&(h(),v())}),Vue.watch(()=>e.showAria,()=>{h(),v()}),Vue.watchEffect(()=>{e.watchOptions?u=Vue.watch(()=>e.options,V=>{const k=m(V),R=Object.assign(e.setChartOptions,Ar);c==null||c.setOption(k,R)},{deep:!0}):u==null||u(),e.loading?c==null||c.showLoading(e.loadingOptions):c==null||c.hideLoading()}),t({echart:l,dispose:S,render:g,isDispose:d}),Vue.onBeforeMount(async()=>{await b()}),Vue.onMounted(()=>{g()}),Vue.onBeforeUnmount(()=>{S(),u==null||u()}),{rayChartRef:n,cssVarsRef:f,rayChartWrapperRef:r,moreDropDownOptions:p,dropdownSelect:T}},render(){const{title:e,contentStyle:t,preset:o,moreDropDownOptions:n,dropdownSelect:r,bordered:l,dropdownOptions:i}=this,{cardExtra:a}=this.$slots;return o==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:l},{default:ne(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ne(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":ne(a,{defaultElement:Vue.createVNode(po,{iconSize:18,cursor:"pointer",options:i??n,trigger:"click",onSelect:r.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Lr={open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},Al=Vue.defineComponent({name:"RCollapseGrid",props:Lr,setup(e){const t=Vue.ref(!e.open),o=()=>{t.value=!t.value;const{onUpdateValue:r,"onUpdate:value":l}=e;r&&P(r,t.value),l&&P(l,t.value)};return{modelCollapsed:t,collapseClick:o,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:o.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(N,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)])}},render(){return Vue.createVNode(naive.NCard,{bordered:this.bordered},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},this.$props,{collapsed:this.modelCollapsed,xGap:this.xGap||12,yGap:this.yGap||18,collapsedRows:this.collapsedRows}),{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>{var o,n;return[(n=(o=this.$slots).action)==null?void 0:n.call(o),this.CollapseIcon()]}})]})]}})})}}),Mr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},N=Vue.defineComponent({name:"RIcon",props:Mr,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),o=Vue.computed(()=>({"--ray-icon-width":e.width?D(e.width):D(e.size),"--ray-icon-height":e.height?D(e.height):D(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor}));return{symbolId:t,cssVars:o,iconClick:r=>{const{onClick:l}=e;l&&P(l,r)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Dr={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:Boolean,default:!0},wrapperClass:{type:String,default:null}},Pl=Vue.defineComponent({name:"RIframe",props:Dr,setup(e,{expose:t}){const o=Vue.computed(()=>({"--ray-iframe-frameborder":D(e.frameborder),"--ray-iframe-width":D(e.width),"--ray-iframe-height":D(e.height)})),n=Vue.ref(),r=Vue.ref(!0),l=a=>{r.value=!1;const{onSuccess:s}=e;s&&P(s,n.value,a)},i=a=>{r.value=!1;const{onError:s}=e;s&&P(s,a)};return ae(n,"load",l),ae(n,"error",i),t({iframeInst:n}),{cssVars:o,iframeRef:n,spinShow:r}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",Vue.mergeProps({class:["ray-iframe__container",this.wrapperClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title},{loading:this.lazy?"lazy":null}),null)})])}}),zr={...naive.modalProps,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},Ir=(e,t,o)=>{const{scheduler:n}=o??{};return new Promise(r=>{setTimeout(()=>{const l=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const i=$e(e).draggable({inertia:!0,autoScroll:!0,allowFrom:l,modifiers:[$e.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:a=>{n==null||n(a)}}}).resizable(!1);r(i)}},30)})},Ll=Vue.defineComponent({name:"RModal",props:zr,setup(e){const{height:t}=Me(),o=Vue.computed(()=>({"--r-modal-width":D(e.width??600),"--r-modal-card-width":D(e.cardWidth??600),"--r-modal-dialog-width":D(e.dialogWidth??446)})),n=fe();let r;const l={x:0,y:0},i=()=>e.preset==="card"&&e.fullscreen,a=()=>{const s=document.getElementById(n);s&&Ir(s,e.preset,{scheduler:u=>{const c=u.target;l.x+=u.dx,l.y+=u.dy,c.style.transform=`translate(${l.x}px, ${l.y}px)`}}).then(u=>{r=u})};return Vue.watch(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{a();const u=document.getElementById(n);e.memo&&u&&(u.style.transform=`translate(${l.x}px, ${l.y}px)`)}):(r==null||r.unset(),r=null)},{immediate:!0}),{cssVars:o,height:t,isFullscreenCardType:i,uuidEl:n}},render(){const{isFullscreenCardType:e}=this,{$props:t,$slots:o,$attrs:n}=this,{preset:r,...l}=t,{cssVars:i,height:a,uuidEl:s}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:["r-modal",e()?"r-modal__preset-card--fullscreen":""],style:[i,e()?`height: ${a}px`:""],preset:r},{id:s},l,n),{...o})}}),jr={...naive.dropdownProps,iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function Er(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const po=Vue.defineComponent({name:"RMoreDropdown",props:jr,render(){let e;const{iconSize:t,cursor:o}=this,{default:n}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),Er(e=ne(n,{defaultElement:Vue.createVNode(N,{name:"more",size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),$r={loadingDescription:{type:String},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:e=>[0,1,2,3].includes(e)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}},Br=e=>new Promise((t,o)=>{const n=new XMLHttpRequest;n.responseType="blob",n.onload=()=>{const r=new FileReader;r.onloadend=()=>{t(r.result)},r.onerror=l=>{o(l)},r.onabort=l=>{o(l)},r.readAsArrayBuffer(n.response)},n.open("GET",e),n.send()}),Ml=Vue.defineComponent({name:"RayQRcode",props:$r,setup(e,t){const{expose:o}=t,n=Vue.ref();let r,l;const i=async()=>{const{gifBackgroundURL:c}=e;if(c)try{r=await Br(c)}catch(p){console.error(p)}},a=()=>{const{gifBackground:c,...p}=e;new Yo.AwesomeQR({...p,gifBackground:r??void 0}).draw().then(f=>{const{onSuccess:b}=e;b&&P(b,f),n.value=f}).catch(f=>{const{onError:b}=e;b&&P(b,f)})},s=()=>{if(t.slots.errorAction)return;const{onReload:c}=e;c&&P(c)},u=c=>n.value&&q(n.value,"String")?$o(n.value,c||new Date().getTime()+".png"):Promise.reject();return Vue.watchEffect(()=>{e.watchText?l=Vue.watch(()=>e.text,()=>a()):l==null||l()}),o({downloadQRCode:u}),Vue.onMounted(async()=>{await i(),a()}),Vue.onBeforeUnmount(()=>{l==null||l()}),{qrcodeURL:n,errorActionClick:s}},render(){const{qrcodeURL:e,status:t,loadingDescription:o,errorDescription:n,$slots:r,errorActionDescription:l}=this,{errorActionClick:i}=this;return Vue.createVNode("div",{class:["ray-qrcode",`ray-qrcode--${t}`]},[Vue.createVNode(naive.NSpin,{show:t==="loading",description:o},{default:()=>[Vue.createVNode("img",{src:e},null)]}),t==="error"?Vue.createVNode("div",{class:"ray-qrcode__error"},[Vue.createVNode("div",{class:"ray-qrcode__error-content"},[q(n,"String")?n:()=>n]),Vue.createVNode("div",{class:"ray-qrcode__error-btn",onClick:i.bind(this)},[r.errorAction?r.errorAction():Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{text:!0,type:"primary",color:"#ffffff"},{default:()=>l,icon:()=>Vue.createVNode(N,{name:"reload",size:"16",color:"#ffffff"},null)})])])]):null])}}),ie={...naive.dataTableProps,downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!1},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null}},E={tableIconSize:"18",tableKey:Symbol("r-table")},Fr=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ie},setup(e){return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:r=>{const{onChangeSize:l}=e;l&&P(l,r)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"adjustment",size:E.tableIconSize,cursor:"pointer"},null)]})}}),Wr=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(E.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:n}]=Qe(e);return{toggleFullscreen:o,isEnabled:n}},render(){const{toggleFullscreen:e,isEnabled:t,$t:o}=this;return Vue.createVNode(N,{name:"fullscreen",size:E.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(o("globalMessage.isEnabledFullscreen")),e()}},null)}}),Kr=()=>Vue.createVNode(N,{name:"draggable",size:14,cursor:"all-scroll"},null),Fe=({icon:e,title:t,onClick:o,customClassName:n})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:e,size:E.tableIconSize,cursor:"pointer",customClassName:n,onClick:o==null?void 0:o.bind(null)},null),default:()=>t}),Le=(e,t)=>{if(!t)return[null,null];for(let o=0;oe.columns.map((i,a)=>{const{key:s,title:u,children:c,fixed:p,isResizable:f,...b}=i,v=p==="left",m=p==="right",y={...b,title:u,key:s,fixed:p,isLeftFixedActivated:v,isRightFixedActivated:m,isResizable:f};return{...y,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(Fe,{icon:"row_head",title:"固定在列首",customClassName:v?_e:"",onClick:r.bind(this,"left",y,a)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"resize_h",size:E.tableIconSize,cursor:"pointer",customClassName:f?_e:"",onClick:n.bind(this,y,a)},null),default:()=>"修改列宽"}),Vue.createVNode(Fe,{icon:"row_end",title:"固定在列尾",customClassName:m?_e:"",onClick:r.bind(this,"right",y,a)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:a}=e;a&&P(a,i)},n=(i,a)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[a]=i,o(t.value)},r=(i,a,s)=>{const u=`${i}FixedActivated`,c=`${i==="left"?"right":"left"}FixedActivated`;a[c]=!1,a[u]=!a[u],a[u]?a.fixed=i:a.fixed=void 0,t.value[s]=a,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:a,dropPosition:s})=>{const[u,c]=Le(a,t.value);if(u===null||c===null)return;u.splice(c,1);const[p,f]=Le(i,t.value);p===null||f===null||(s==="before"?p.splice(f,0,a):p.splice(f+1,0,a),o(p))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"setting",size:E.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:Kr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),qr=Vue.defineComponent({name:"TablePrint",props:ie,setup(e){const{wrapperRef:t}=Vue.inject(E.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:n={},domToImageOptions:r}={},title:l}=e;(n.documentTitle===""||n.documentTitle===void 0||n.documentTitle===null)&&(n.documentTitle=typeof l=="string"?l:""),Bo(t,{printOptions:n,domToImageOptions:r})}}},render(){return Vue.createVNode(N,{name:"print",size:E.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),Gr=Vue.defineComponent({name:"TablePropsSelect",props:{...ie,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=Vue.ref(!1),o=Vue.ref([]),n=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],r=i=>{const{onPopselectChange:a}=e;a&&P(a,i)};return(()=>{const{striped:i,bordered:a,onInitialed:s}=e;i&&o.value.push("striped"),a&&o.value.push("bordered"),s&&P(s,o.value)})(),{propsPopselectValue:o,propsOptions:n,popoverShow:t,updatePopselectValue:r}},render(){return Vue.createVNode(naive.NPopselect,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:this.propsOptions,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"expanded",size:E.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function Hr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Dl=Vue.defineComponent({name:"RTable",props:ie,setup(e,t){const{expose:o}=t,n=Vue.ref(),r=Vue.ref(),l=fe(16),i=fe(16),a=Vue.reactive({x:0,y:0,showContextMenu:!1}),s=Vue.reactive({size:e.size}),u=Vue.ref({striped:!1,bordered:!1}),c=(d,h)=>{const{onContextMenuClick:_}=e;_&&P(_,d,h),a.showContextMenu=!1},p=(d,h)=>{var T;return{...(T=e.rowProps)==null?void 0:T.call(e,d,h),onContextmenu:e.disabledContextMenu?void 0:g=>{g.preventDefault(),a.showContextMenu=!1,Vue.nextTick().then(()=>{a.showContextMenu=!0,a.x=g.clientX,a.y=g.clientY})}}},f=d=>{s.size=d},b=d=>{const{onUpdateColumns:h,"onUpdate:columns":_}=e;h&&P(h,d),_&&P(_,d)},v=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(()=>Boolean).map(h=>typeof h=="function"?h():h)},m=d=>{Object.keys(u.value).forEach(_=>{u.value[_]=d.includes(_)})},y=d=>{const h=()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(qr,d,null),Vue.createVNode(Fr,Vue.mergeProps(d,{onChangeSize:f.bind(this)}),null),Vue.createVNode(Wr,null,null),Vue.createVNode(Ur,Vue.mergeProps(d,{onUpdateColumn:b.bind(this)}),null),Vue.createVNode(Gr,Vue.mergeProps(d,{onPopselectChange:m.bind(this),onInitialed:m.bind(this)}),null)]);return e.toolOptions?e.coverTool?v:()=>Vue.createVNode(Vue.Fragment,null,[h(),v()]):h};return Vue.provide(E.tableKey,{uuidTable:i,uuidWrapper:l,wrapperRef:r}),o({rTableInst:n,uuidTable:i,uuidWrapper:l}),{uuidWrapper:l,uuidTable:i,contextMenuReactive:a,rTableInst:n,combineRowProps:p,contextMenuSelect:c,privateReactive:s,tool:y,wrapperRef:r,propsPopselectValue:u}},render(){const{$props:e,$attrs:t,wrapperBordered:o,uuidWrapper:n,privateReactive:r,disabledContextMenu:l,contextMenuReactive:i,contextMenuOptions:a,uuidTable:s,title:u,$slots:c,propsPopselectValue:p}=this,{tool:f,combineRowProps:b,contextMenuSelect:v}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps({ref:"wrapperRef",bordered:o},{id:n}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({ref:"rTableInst"},{id:s},t,e,p,{rowProps:b.bind(this),size:r.size}),{...c}),l?null:Vue.createVNode(naive.NDropdown,{show:i.showContextMenu,placement:"bottom-start",trigger:"manual",x:i.x,y:i.y,options:a,onClickoutside:()=>i.showContextMenu=!1,onSelect:v.bind(this)},null)]),header:ne(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":()=>{let m;return Vue.createVNode(naive.NFlex,{align:"center"},Hr(m=f(e))?m:{default:()=>[m]})},footer:()=>{var m;return(m=c.tableFooter)==null?void 0:m.call(c)},action:()=>{var m;return(m=c.tableAction)==null?void 0:m.call(c)}})}}),Yr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Xr=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Yr),setup(e){const{getKeepAliveInclude:t}=ia(),{setupKeepAlive:o,maxKeepAliveLength:n,keepAliveExclude:r}=ot;return(l,i)=>{const a=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createBlock(a,null,{default:Vue.withCtx(({Component:s,route:u})=>[s?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:l.transitionPropName,mode:l.transitionMode,appear:l.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(n),include:Vue.unref(t),exclude:Vue.unref(r)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:u.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})}}});var Qr={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.19","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.1.3","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.4-beta1.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Zr=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,mo=(e,t,o)=>{const n=[];if(Zr(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const r of e.children){const l=mo(r,t,o);l.length>0&&n.push(e,...l)}return n},Jr=(e,t,o)=>{const n=[];for(const r of e){const l=mo(r,t,o);l.length>0&&n.push(...l)}return n},ea=e=>{const{breadcrumbLabel:t}=e,{layout:{sideBarLogo:o}}=Qr,n=o?o.title:"";document.title=t+" - "+n},ta=e=>{const{meta:{icon:t}}=e;if(!t)return;if(q(t,"Object"))return()=>t;const o=Vue.h(N,{name:t,size:H.menuCollapsedIconSize,cursor:"pointer"},{});return()=>o},ho=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:o}=t;if(o===!1)return;const{t:n}=ee(),{label:r,icon:l,type:i,i18nLabel:a}=t,s={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>a?n(a):r||null,c=()=>l&&(a||r)||!l&&(a||r)?null:{"padding-right":"0"};if(q(t,"Object"))return()=>Vue.h(naive.NTag,{...s,type:i||"primary",style:c()},{default:()=>u(),icon:()=>l})},We=()=>{const{getRootPath:e}=Q();return le(M.appMenuKey,"sessionStorage",{defaultValue:e.value})},oa=e=>e[0]==="/",fo=(e,t=[],o="")=>{var n;if(!Array.isArray(e))return[];for(const r of e){const l=o+(oa(r.path)?r.path:"/"+r.path);if((n=r.children)!=null&&n.length){fo(r.children,t,l);continue}else t.push({...r,path:l})}return t},na=e=>Array.isArray(e)?fo(Qo(e)):[],go=()=>Vr(vr()),ra=()=>na(go());let pe;const yo=(e,t)=>{var o;if(pe&&Ee(pe.fullPath,t))return pe;for(const n of e){if(Ee(n.fullPath,t))return pe=n,n;if((o=n.children)!=null&&o.length){yo(n.children,t);continue}}},bo=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),o=VueRouter.useRoute(),{t:n}=ee(),{setKeepAliveInclude:r}=sa(),l=Vue.reactive({menuKey:We(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),i=Vue.ref(!0),a=d=>{const{meta:h}=d,{i18nKey:_,noLocalTitle:T}=h,g=Vue.computed(()=>_?n(`${_}`):T),S={...d,key:d.fullPath,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>g.value}),breadcrumbLabel:g.value},V=Object.assign({},S,{icon:ta(d),extra:ho(d)});return d.fullPath===We()&&(l.currentMenuOption=V),V.show=_o(V),V},s=d=>{l.breadcrumbOptions=Jr(l.options,"fullPath",d)},u=(d,h=!0)=>{const T=Array.isArray(d)?[...d]:[d];h?l.menuTagOptions.push(...T):l.menuTagOptions=T},c=(d,h)=>{l.menuTagOptions.find(T=>T.fullPath===d)||l.menuTagOptions.push(h)},p=(d,h,_)=>{const{meta:T}=h;if(T.windowOpen)window.open(T.windowOpen);else{e({path:String(d),query:_});const{sameLevel:g}=T;if(r(h),ea(h),!g)c(d,h),s(d),l.menuKey=d,l.currentMenuOption=h,De(M.appMenuKey,d);else{const S=ge(a(h),["breadcrumbLabel","children","key","meta","name","path","show"]);l.breadcrumbOptions.find(k=>k.key===S.key)||l.breadcrumbOptions.push({...S,fullPath:String(S.key)})}}},f=async(d,h)=>{const[_]=d.split("?"),T=t().find(g=>g.path===_);if(T){const g=ge(T,["children","meta","path","name","redirect"]);p(_,a({...g,fullPath:g.path}),h)}},b=()=>new Promise(d=>{const h=(_,T)=>{var S;const g=[];for(const V of _){let k=`${T.endsWith("/")?T:T+"/"}${V.path}`;if(k=k.replace(/\/+/g,"/"),(S=V.children)!=null&&S.length)V.children=h(V.children,k);else if(!So(V.meta))continue;g.push(a({...V,fullPath:k}))}return g};if(l.options=h(go(),""),l.currentMenuOption){const{currentMenuOption:_}=l;s(_.key),c(_.fullPath,_)}d()}),v=d=>l.collapsed=d,m=(d,h=1)=>l.menuTagOptions.splice(d,h),y=async()=>{i.value&&(await b(),i.value=!1)};return Vue.watch(()=>o.fullPath,async(d,h)=>{await y(),d!==h&&await f(d,o.query)},{immediate:!0}),{...Vue.toRefs(l),changeMenuModelValue:p,collapsedMenu:v,spliceMenTagOptions:m,setMenuTagOptions:u,resolveOption:a}},{persist:{key:M.appPiniaMenuStore,storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions"]}}),vo=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=n=>new Promise((r,l)=>{Zo(n)?l({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:n.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},r({code:0,message:"登陆成功",data:e.signingCallback}))}),o=()=>{window.$message.info("账号退出中..."),Fo("__all_sessionStorage__","sessionStorage"),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:M.appPiniaSigningStore,paths:["signingCallback"],storage:sessionStorage}}),Vo=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=ot,t=Vue.reactive({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,n=l=>{const i=o(),{name:a,meta:{keepAlive:s}}=l;if(s){if(i=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(a))}},r=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:n,getKeepAliveInclude:r}},{persist:{key:M.appPiniaKeepAliveStore,storage:window.sessionStorage,paths:["keepAliveInclude"]}}),X=()=>{const e=bo(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),n=Vue.computed(()=>e.menuKey),r=Vue.computed(()=>{const{getRootPath:a}=Q();return e.menuTagOptions.map((s,u,c)=>(s.key===n.value&&s.key!==a.value?s.closeable=!0:s.closeable=!1,s.key===a.value&&(s.closeable=!1),c.length<=1&&(s.closeable=!1),s))}),l=Vue.computed(()=>e.currentMenuOption),i=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:o,getMenuKey:n,getMenuTagOptions:r,getCurrentMenuOption:l,getCollapsed:i}},se=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r}=bo();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r}},I=()=>{const e=lt(),t=Vue.computed(()=>e.drawerPlacement),o=Vue.computed(()=>e.primaryColorOverride),n=Vue.computed(()=>e.appTheme),r=Vue.computed(()=>e.menuTagSwitch),l=Vue.computed(()=>e.breadcrumbSwitch),i=Vue.computed(()=>e.localeLanguage),a=Vue.computed(()=>e.lockScreenSwitch),s=Vue.computed(()=>e.copyrightSwitch),u=Vue.computed(()=>e.contentTransition),c=Vue.computed(()=>e.watermarkSwitch),p=Vue.computed(()=>e.watermarkConfig),f=Vue.computed(()=>e.appRootRoute);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:n,getMenuTagSwitch:r,getBreadcrumbSwitch:l,getLocaleLanguage:i,getLockScreenSwitch:a,getCopyrightSwitch:s,getContentTransition:u,getWatermarkSwitch:c,getWatermarkConfig:p,getAppRootRoute:f}},z=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=lt();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},aa=()=>{const e=vo();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},la=()=>{const{signing:e,logout:t}=vo();return{signing:e,logout:t}},ia=()=>{const e=Vo();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},sa=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=Vo();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},zl=async e=>{const t=Pinia.createPinia();e.use(t),t.use(Xo)},So=e=>{const{getSigningCallback:t}=aa(),{role:o}=e;return de!=null&&de.length&&de.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},_o=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n,env:r}=t,{MODE:l}=Ae();return!(n||o||r&&typeof r=="string"&&r!==l||r&&Array.isArray(r)&&!r.includes(l))},ca=e=>{e.beforeEach(()=>{window==null||window.$loadingBar.start()}),e.afterEach(()=>{window==null||window.$loadingBar.finish()}),e.onError(()=>{window==null||window.$loadingBar.error()})},ua=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=xn;t&&ca(e),o&&_r(e)},we=(e=!0)=>{const{router:t}=ye(),{push:o,replace:n}=t,{getRootPath:r}=Q();De(M.appMenuKey,r.value),e?n(r.value):o(r.value)};var da={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.19","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.1.3","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.4-beta1.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const pa=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{layout:{sideBarLogo:t}}=da;return{sideBarLogo:t,handleSideBarLogoClick:()=>{t&&t.url&&(t.jumpType==="station"?e.push(t.url):window.open(t.url))},TemplateLogo:({cursor:r})=>Vue.createVNode(N,{name:t.icon,size:"30",cursor:r},null)}},render(){var e,t,o,n;return(e=this.sideBarLogo)!=null&&e.icon&&((t=this.sideBarLogo)!=null&&t.title)?Vue.createVNode("div",{class:["ray-menu__logo",(o=this.sideBarLogo)!=null&&o.url?"ray-menu__logo-url":null],onClick:this.handleSideBarLogoClick.bind(this)},[(n=this.sideBarLogo)!=null&&n.icon?this.collapsed?Vue.createVNode(naive.NPopover,{placement:"right"},{trigger:()=>Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null),default:()=>{var r;return(r=this.sideBarLogo)==null?void 0:r.title}}):Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null):null,Vue.createVNode("h1",{class:[this.collapsed?null:"ray-menu__logo-title--open","ray-menu__logo-title"]},[Vue.createVNode(naive.NEllipsis,null,{default:()=>{var r;return[(r=this.sideBarLogo)==null?void 0:r.title]}})])]):null}}),ma=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o}=se(),{getMenuOptions:n,getCollapsed:r,getMenuKey:l}=X(),i=Vue.computed({get:()=>(Vue.nextTick().then(()=>{u()}),l.value),set:()=>{a.value&&K("globalDrawerValue",!1)}}),{isTabletOrSmaller:a}=be(),s=Vue.computed({get:()=>Y("globalDrawerValue").value,set:p=>{K("globalDrawerValue",p)}}),u=()=>{const p=i.value;Vue.nextTick().then(()=>{var f,b;(b=(f=e.value)==null?void 0:f.showOption)==null||b.call(f,p)})};return{isTabletOrSmaller:a,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{class:"app-menu__sider",showTrigger:!a.value,collapseMode:H.menuCollapsedMode,collapsedWidth:H.menuCollapsedWidth,onUpdateCollapsed:o.bind(this),nativeScrollbar:!1},{default:()=>[Vue.createVNode(pa,{collapsed:r.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:i.value,"onUpdate:value":p=>i.value=p,options:n.value,indent:H.menuCollapsedIndent,collapsed:r.value,collapsedIconSize:H.menuCollapsedIconSize,collapsedWidth:H.menuCollapsedWidth,onUpdateValue:(p,f)=>{t(p,f)},accordion:H.menuAccordion},null)]}),modelGlobalDrawerValue:s}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":o=>this.modelGlobalDrawerValue=o,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class ha{constructor(){je(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var o;return((o=t.cancelConfig)==null?void 0:o.cancel)??!0}generateRequestKey(t){const{method:o,url:n}=t;return[n||"",o||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var o;if(this.isAppending(t)){const n=this.generateRequestKey(t);if(this.pendingRequest.has(n))t.signal=(o=this.pendingRequest.get(n))==null?void 0:o.signal;else{const r=new AbortController;t.signal=r.signal,this.pendingRequest.set(n,r)}}}removePendingRequest(t){const o=this.generateRequestKey(t);this.pendingRequest.has(o)&&(this.pendingRequest.get(o).abort(),this.pendingRequest.delete(o))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const Ce={requestInstance:null,responseInstance:null},Ne={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},me={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},fa=new ha,Il=()=>{const e=(a,s)=>{s==="requestInstance"?Ce.requestInstance=a:Ce.responseInstance=a},t=a=>Ce[a],o=(a,s,u)=>{u==="ok"?Ne[a]=s:me[a]=s},n=(a,s)=>s==="ok"?Ne[a]:me[a],r=(a,...s)=>{Array.isArray(a)&&(a==null||a.forEach(u=>{typeof u=="function"&&u(...s)}))};return{createAxiosInstance:e,setImplement:o,getImplement:n,getAxiosInstance:t,beforeFetch:(a,s,u)=>{const c=u==="ok"?Ne[s]:me[s],p=t(a),{MODE:f}=Ae();p&&r(c,p,f)},fetchError:(a,s,u)=>{const c=me[u],{MODE:p}=Ae();r(c,s,p)}}},ga=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{fa.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),wo=Vue.defineComponent({name:"LayoutContentWrapper",setup(){const e=VueRouter.useRouter(),{maximize:t}=Co(),{getContentTransition:o}=I(),n=Vue.ref(!1),r={opacitySpinning:"0"},l=Y("globalMainLayoutLoad"),i=Y("layoutContentMaximize"),a=Y("layoutContentSpinning");return(()=>{e.beforeEach(()=>{n.value=!0}),e.afterEach(()=>{n.value=!1})})(),{globalMainLayoutLoad:l,spinning:n,themeOverridesSpin:r,getContentTransition:o,layoutContentMaximize:i,maximize:t,layoutContentSpinning:a}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:o}=this,{maximize:n}=this;return Vue.createVNode(naive.NSpin,{show:this.spinning||!e||o,description:"loading...",size:"large",themeOverrides:this.themeOverridesSpin,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{n(!1)}},[Vue.createVNode(N,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(ga,null,null),e?Vue.createVNode(Xr,{class:"content-wrapper",transitionPropName:this.getContentTransition+"-transform"},null):null]})}}),ya=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"}));var ba={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.19","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.1.3","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.4-beta1.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const va=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=ba;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Ke=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const o=r=>{t("click",r)};return{iconClick:o,Icon:()=>Vue.createVNode(N,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:o.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),Va=Vue.defineComponent({name:"ThemeSwitch",setup(){const{changeDarkTheme:e,changeLightTheme:t}=ol(),{getAppTheme:o}=I(),n=Vue.ref(o.value);return{changeDarkTheme:e,changeLightTheme:t,getAppTheme:o,railStyle:({checked:l})=>l?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:n}},render(){const{$t:e,changeDarkTheme:t,changeLightTheme:o,railStyle:n}=this;return Vue.createVNode(naive.NFlex,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":r=>this.modelAppThemeRef=r,railStyle:n.bind(this),onUpdateValue:r=>r?t():o()},{"checked-icon":()=>Vue.createVNode(N,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(N,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function he(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Sa=Vue.defineComponent({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:o,updateSettingState:n}=z(),{getAppTheme:r,getPrimaryColorOverride:l,getMenuTagSwitch:i,getBreadcrumbSwitch:a,getCopyrightSwitch:s,getContentTransition:u,getWatermarkSwitch:c}=I(),p=Vue.computed({get:()=>e.show,set:b=>{t("update:show",b)}}),f=Vue.computed({get:()=>({getMenuTagSwitch:i.value,getBreadcrumbSwitch:a.value,getCopyrightSwitch:s.value,getContentTransition:u.value,getWatermarkSwitch:c.value}),set:b=>{}});return{modelShow:p,changePrimaryColor:o,getAppTheme:r,getPrimaryColorOverride:l,updateSettingState:n,modelSwitchReactive:f}},render(){let e,t,o,n;const{$t:r,changePrimaryColor:l,updateSettingState:i}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:r("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NFlex,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(e=r("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(Va,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(t=r("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:j.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":a=>this.getPrimaryColorOverride.common.primaryColor=a,onUpdateValue:l.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(o=r("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":a=>this.modelSwitchReactive.getContentTransition=a,options:Cn,onUpdateValue:a=>{i("contentTransition",a)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(n=r("headerSettingOptions.InterfaceDisplay"))?n:{default:()=>[n]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getMenuTagSwitch=a,onUpdateValue:a=>i("menuTagSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getBreadcrumbSwitch=a,onUpdateValue:a=>i("breadcrumbSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getWatermarkSwitch=a,onUpdateValue:a=>i("watermarkSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getCopyrightSwitch=a,onUpdateValue:a=>i("copyrightSwitch",a)},null)]})]})]})]})]})}});function _a(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const wa=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=se(),{getBreadcrumbOptions:t}=X(),{isTabletOrSmaller:o}=be();return{getBreadcrumbOptions:t,dropdownSelect:(l,i)=>{e(l,i)},breadcrumbItemClick:l=>{var i;if(!((i=l.children)!=null&&i.length)){const{meta:a={}}=l;a.sameLevel||e(l.fullPath,l)}},isTabletOrSmaller:o}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:o}=this,{dropdownSelect:n,breadcrumbItemClick:r}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},_a(e=o.map(l=>Vue.createVNode(naive.NBreadcrumbItem,{key:l.fullPath,onClick:r.bind(this,l)},{default:()=>{var i;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",keyField:"fullPath",options:l.children&&((i=l.children)==null?void 0:i.length)>1?l.children:[],onSelect:n.bind(this)},{default:()=>Vue.createVNode("span",null,[l.label&&typeof l.label=="function"?l.label():l.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Te(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ca=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o,resolveOption:n}=se(),{getRoutes:r}=VueRouter.useRouter(),l=Vue.computed({get:()=>e.show,set:g=>{t("update:show",g),g||f()}}),i=Vue.reactive({searchValue:null,searchOptions:[]}),a=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let s=0,u=s;const{isTabletOrSmaller:c}=be(),p=Vue.ref(!1),f=()=>{i.searchOptions=[],i.searchValue=null,s=0,u=s},b=g=>{l.value||(g.ctrlKey||g.metaKey)&&g.key==="k"&&(g.preventDefault(),g.stopPropagation(),f(),l.value=!0)},v=g=>{if(g)p.value=!0;else{p.value=!1,i.searchOptions=[];return}const S=r().reduce((V,k)=>{var B;const R=ge(k,["children","meta","path","name"]),A=n({...R,fullPath:k.path}),{breadcrumbLabel:$}=A;return(B=$==null?void 0:$.toLocaleLowerCase())!=null&&B.includes(g.toLocaleLowerCase())&&_o(A)&&V.push(A),V},[]);setTimeout(()=>{i.searchOptions=S,Vue.nextTick().then(()=>{y()}),p.value=!1},500)},m=g=>{if(g){const{meta:S}=g;S.windowOpen?window.open(S.windowOpen):(l.value=!1,o(g.fullPath,g))}},y=()=>{const g=i.searchOptions[s],S=i.searchOptions[u],V="content-item--active";g&&Vue.nextTick().then(()=>{const k=Pe(`attr:data_path="${g.path}"`),R=S?Pe(`attr:data_path="${S==null?void 0:S.path}"`):null;if(R!=null&&R.length){const[A]=R;Wo(A,V)}if(k!=null&&k.length){const[A]=k;Ko(A,V)}})},d=g=>{const{icon:S}=g;return typeof S=="string"?Vue.createVNode(N,{name:S,size:"24"},null):typeof S=="function"?()=>S:Vue.createVNode(N,{name:"search",size:"24"},null)},h=g=>{g==="up"?s=s-1<0?0:s-1:g==="down"&&(s=s+1>=i.searchOptions.length?i.searchOptions.length-1:s+1)},_=g=>{const S=g.key;switch((S==="ArrowUp"||S==="ArrowDown"||S==="Enter")&&(g.preventDefault(),g.stopPropagation()),u=s<=0?0:s,S){case"ArrowUp":h("up");break;case"ArrowDown":h("down");break;case"Enter":const V=i.searchOptions[s];V&&m(V);break}y()},T=({menuOption:g})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:m.bind(this,g),data_path:g.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[d(g.meta)]),Vue.createVNode("div",{class:"content-item-label"},[g.breadcrumbLabel])]});return Vue.watchEffect(()=>{c.value&&(l.value=!1)}),ae(window,"keydown",g=>{b(g),_(g)},!0),{...Vue.toRefs(i),modelShow:l,helperTipOptions:a,fuzzySearchMenuOptions:Jo(v,300),searchItemClick:m,RenderPreIcon:d,isTabletOrSmaller:c,SearchItem:T,loading:p}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:o}=this,{SearchItem:n,fuzzySearchMenuOptions:r,$t:l}=this;return e?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":i=>this.modelShow=i,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode(naive.NCard,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":i=>this.searchValue=i,clearable:!0,onInput:r.bind(this)},{prefix:()=>Vue.createVNode(N,{name:"search",size:"24"},null)}),default:()=>{let i;return Vue.createVNode(naive.NScrollbar,null,{default:()=>[Vue.createVNode(naive.NSpin,{show:o},{default:()=>[t.length?Vue.createVNode(naive.NFlex,{vertical:!0,size:[0,6],class:"global-search__card-content"},Te(i=t.map(a=>Vue.createVNode(n,{menuOption:a,key:a.fullPath},null)))?i:{default:()=>[i]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NFlex,{justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createTextVNode("没有搜索结果")]})})]})]})},action:()=>{let i;return Vue.createVNode(naive.NFlex,{justify:"flex-start",align:"center",size:[16,0]},Te(i=this.helperTipOptions.map(a=>Vue.createVNode(naive.NFlex,{key:a.label,size:[4,0]},{default:()=>[a.icon.map(s=>Vue.createVNode(naive.NFlex,{class:"item-icon",align:"center",justify:"center"},Te(s)?s:{default:()=>[s]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[a.label]})]})))?i:{default:()=>[i]})}})])])]})}});function Na(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ta=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const n=Uo();return n==="MacOS"?"⌘ + K":"CTRL + K"},click:n=>{const{onClick:r}=e;r&&P(r,n)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:o}=this;return Vue.createVNode(naive.NButton,{bordered:!1,onClick:t.bind(this)},{icon:()=>Vue.createVNode(N,{name:"search",size:"16"},null),default:()=>{let n;return Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[o("headerTooltip.Search"),Vue.createVNode(naive.NButton,{size:"tiny"},Na(n=e())?n:{default:()=>[n]})]})}})}}),ka=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,...naive.flexProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number],default:"medium"},avatarSize:{type:[String,Number],default:"medium"}},setup(e){const t=le(M.signing),o=Vue.computed(()=>({"--app-avatar-cursor":e.cursor}));return{signing:t,cssVars:o}},render(){const{signing:e,cssVars:t,spaceSize:o,avatarSize:n,$props:r}=this;return Vue.createVNode(naive.NFlex,Vue.mergeProps({class:"app-avatar"},this.$props,{style:t,size:o}),{default:()=>[Vue.createVNode(naive.NAvatar,Vue.mergeProps(r,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),null),Vue.createVNode("div",{class:"app-avatar__name"},[e==null?void 0:e.name])]})}}),Oa=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],xa={logout:()=>{const{logout:e}=la();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=z();e("lockScreenSwitch",!0)}},Ra=e=>{const t=xa[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},Aa=e=>{const{isTabletOrSmaller:t}=e,o=[],n=[{name:"menu",size:18,eventKey:"menu"}];return t.value?n:o},Pa=e=>{const{isFullscreen:t,isTabletOrSmaller:o}=e,{t:n}=ee(),r=[{name:"fullscreen",size:18,tooltip:t.value?n("headerTooltip.CancelFullScreen"):n("headerTooltip.FullScreen"),eventKey:"screen"},{name:"github",size:18,tooltip:n("headerTooltip.Github"),eventKey:"github"},{name:"setting",size:18,tooltip:n("headerTooltip.Setting"),eventKey:"setting"}],l=[...r],i=[...r];return o.value?i:l},La=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=z(),{t:o}=ee(),[n,{toggleFullscreen:r,isEnabled:l}]=Qe(document.getElementsByTagName("html")[0]),{getDrawerPlacement:i,getBreadcrumbSwitch:a}=I(),s=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:c}=be(),p=Y("globalDrawerValue"),f=Vue.computed(()=>Aa({isFullscreen:n,isTabletOrSmaller:c})),b=Vue.computed(()=>Pa({isFullscreen:n,isTabletOrSmaller:c})),v={search:()=>{u.value=!0},setting:()=>{s.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{l||window.$message.warning(o("globalMessage.isEnabledFullscreen")),r()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{K("globalDrawerValue",!p.value)}};return{leftIconOptions:f,rightTooltipIconOptions:b,toolIconClick:d=>{var h;(h=v[d])==null||h.call(v)},showSettings:s,updateLocale:e,getDrawerPlacement:i,getBreadcrumbSwitch:a,globalSearchShown:u,isRenderVNode:d=>c.value?null:d}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:o,getBreadcrumbSwitch:n}=this,{toolIconClick:r,updateLocale:l,isRenderVNode:i}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(Ca,{show:this.globalSearchShown,"onUpdate:show":a=>this.globalSearchShown=a},null),Vue.createVNode(naive.NFlex,{class:"layout-header__method",align:"center",justify:"space-between"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[t.map(a=>Vue.createVNode(Ke,{key:a.name,iconName:a.name,tooltipText:Vue.isRef(a.tooltip)?a.tooltip.value:a.tooltip,customClassName:a.iconClass,onClick:r.bind(this,a.name)},null)),n?Vue.createVNode(wa,null,null):null]}),Vue.createVNode(naive.NFlex,{align:"center",size:[16,0]},{default:()=>[i(Vue.createVNode(Ta,{onClick:a=>{a.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(a=>Vue.createVNode(Ke,{key:a.name,iconName:a.name,tooltipText:Vue.isRef(a.tooltip)?a.tooltip.value:a.tooltip,customClassName:a.iconClass,onClick:r.bind(this,a.name)},null)),Vue.createVNode(naive.NDropdown,{options:nt,onSelect:a=>l(String(a)),trigger:"click"},{default:()=>[Vue.createVNode(N,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]}),Vue.createVNode(naive.NDropdown,{options:Oa(),onSelect:Ra.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(ka,{avatarSize:"small",align:"center",cursor:"pointer"},null)]})]})]}),Vue.createVNode(Sa,{show:this.showSettings,"onUpdate:show":a=>this.showSettings=a,placement:o},null)]})}}),Ma=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(La,null,null)]})}}),Da={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},za=tt('',1),Ia=[za];function ja(e,t){return Je(),et("svg",Da,[...Ia])}const Ea={render:ja},$a={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},Ba=tt('',1),Fa=[Ba];function Wa(e,t){return Je(),et("svg",$a,[...Fa])}const Ka={render:Wa};function Ua(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const qa=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:n,getMenuTagOptions:r}=X(),{changeMenuModelValue:l}=se(),{getRootPath:i}=Q(),{maximize:a}=Co(),{reload:s}=tl(),{close:u,closeAll:c,closeRight:p,closeLeft:f,closeOther:b,checkCloseLeft:v,checkCloseRight:m}=nl(),y=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let d=-1;const h={size:16},_=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(N,{name:"reload",size:h.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(N,{name:"close",size:h.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(Ka,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(Ea,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(N,{name:"other",size:h.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(N,{name:"resize_h",size:h.size},null),disabled:!1}]),T=fe(16),g={closeCurrentPage:()=>{n.value!==i.value&&u(d)},reloadCurrentPage:()=>{s()},closeAll:()=>{c()},closeRight:()=>{p(d)},closeLeft:()=>{f(d)},closeOther:()=>{b(d)}},S=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),V="menu_tag_data",k=Y("globalMainLayoutLoad"),R=w=>{u(w)},A=(w,C)=>{_.value.forEach(L=>{if(L.key===w){L.disabled=C;return}})},$=w=>{S.actionDropdownShow=!1,l(w.fullPath,w)},B=()=>{const w=document.getElementById(T);if(w)return Array.from(w.childNodes).find(ue=>qo(ue,"n-scrollbar-container").value)},ce=w=>{var L;const C=B();if(C){const ue=C.scrollLeft||0,Ie=w==="left"?Math.max(0,ue-200):ue+200;(L=o.value)==null||L.scrollTo({left:Ie,behavior:"smooth"})}},ve=w=>{var C;S.actionDropdownShow=!1,(C=g[w])==null||C.call(g)},To=(w,C)=>{C.preventDefault(),S.actionDropdownShow=!1,d=w,Vue.nextTick(()=>{S.actionDropdownShow=!0,S.x=C.clientX,S.y=C.clientY})},ze=()=>{const{closeable:w}=r.value[d]??{};A("closeCurrentPage",!w),m(d)?A("closeRight",!1):A("closeRight",!0),v(d)?A("closeLeft",!1):A("closeLeft",!0)},ko=()=>{d=r.value.findIndex(C=>C.fullPath===n.value),ze()},Oo=w=>{r.value.length>1&&w.fullPath!==i.value&&(w.closeable=!0)},xo=w=>{w.fullPath!==n.value&&(w.closeable=!1)},Ro=()=>{B()&&Vue.nextTick().then(()=>{var C;(C=o.value)==null||C.scrollTo({left:99999,behavior:"smooth"})})},Ao=()=>{Vue.nextTick().then(()=>{const w=Pe(`attr:${V}="${n.value}"`);if(w!=null&&w.length){const[C]=w;Vue.nextTick().then(()=>{var L;(L=o.value)==null||L.scrollTo({left:C.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>r.value,(w,C)=>{_.value.forEach(L=>{y.includes(L.key)&&(w.length>1?L.disabled=!1:L.disabled=!0)}),C!=null&&C.length&&(w.length>(C==null?void 0:C.length)?Ro():w.length===(C==null?void 0:C.length)&&Ao())},{immediate:!0}),Vue.watch(()=>S.actionDropdownShow,w=>{var C;w&&((C=Ze(ze,100))==null||C())}),t({}),{getMenuTagOptions:r,closeCurrentMenuTag:R,getMenuKey:n,menuTagClick:$,moreOptions:_,scrollX:ce,scrollRef:o,uuidScrollBar:T,actionDropdownSelect:ve,actionState:S,menuTagContextMenu:To,setCurrentContextmenuIndex:ko,menuTagMouseenter:Oo,menuTagMouseleave:xo,MENU_TAG_DATA:V,iconConfig:{width:22,height:22},maximize:a,getRootPath:i,reload:s,globalMainLayoutLoad:k}},render(){let e;const{iconConfig:t,getRootPath:o,uuidScrollBar:n,getMenuTagOptions:r,MENU_TAG_DATA:l,globalMainLayoutLoad:i}=this,{maximize:a,closeCurrentMenuTag:s,scrollX:u,$t:c,menuTagClick:p,menuTagContextMenu:f,menuTagMouseenter:b,menuTagMouseleave:v,actionDropdownSelect:m,reload:y}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:m.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NFlex,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:n}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},Ua(e=r.map((d,h)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:d.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:d.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,d),onContextmenu:f.bind(this,h),onMouseenter:b.bind(this,d),onMouseleave:v.bind(this,d),[l]:d.path}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:_,meta:{i18nKey:T}}=d;return T?c(T):_}}),(d.closeable||r.length===1)&&d.fullPath!==o?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:s.bind(this,h)}),{default:()=>[Vue.createVNode(N,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[d.fullPath!==o?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NFlex,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:u.bind(this,"right")},null),Vue.createVNode(N,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{a(!0)}},null),Vue.createVNode(N,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${i?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{y()}},null),Vue.createVNode(po,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(N,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),Ga=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(qa,null,null)}}),Ha=e=>{const t=Ve(e[0]),o=Ve(e[1]),n=Ve(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px - ${n.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`,"--layout-footer-height":`${n.height.value}px`}))},Ue=zo(M.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),Ya=()=>({setLockAppScreen:o=>{Ue.value=o},getLockAppScreen:()=>Ue.value}),Xa=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:n,getCopyrightSwitch:r}=I(),{getLockAppScreen:l}=Ya(),i=Ha([e,t,o]);return{getMenuTagSwitch:n,cssVarsRef:i,getLockAppScreen:l,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:o,getCopyrightSwitch:r}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:o}=this,{getLockAppScreen:n}=this;return n()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0},{default:()=>[Vue.createVNode(ma,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(Ma,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(Ga,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:J,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(wo,null,null)]}),o?Vue.createVNode(va,{ref:"layoutFooterRef"},null):null]})]})}}),Qa=async()=>{const{getRootPath:e}=Q();return[{path:"/",name:"RLogin",component:()=>O(()=>import("./index-y5nxB1Kz.js"),__vite__mapDeps([59,22,18,16,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,17,23,47,20,21,19,24,25,26,27,28,29,30,31,32,60]))},{path:"/",name:"RLayout",redirect:e.value,component:Xa,children:ra()}]};let re;const Za=async()=>VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:await Qa(),scrollBehavior:e=>{Sr(e)}}),jl=async e=>{re=await Za(),e.use(re),ye(),ua(re)},ye=()=>{try{if(re)return{router:re};throw new Error}catch(e){throw new Error(`[useVueRouter]: An error occurred during registration of vue-router. ${e}`)}},qe="YYYY-MM-DD HH:mm:ss",Ja=()=>({locale:i=>{const a=kn[i];a?F.locale(a):F.locale(On)},getStartAndEndOfDay:i=>{const{format:a=qe}=i??{},s=F(),u=s.startOf("day"),c=s.endOf("day"),p=s.format(a),f=u.format(a);return{today:s,startOfDay:u,endOfDay:c,formatToday:p,formatStartOfDay:f}},format:(i,a)=>{const{format:s=qe}=a??{};return F(i).format(s)},isDayjs:i=>F.isDayjs(i),daysDiff:(i,a)=>{const s=F(i);return F(a).diff(s,"days")},isDateInRange:(i,a)=>{const{start:s,end:u}=a,c=F(i);return c.isAfter(s)&&c.isBefore(u)}});function be(e){const{width:t,height:o}=Me(e),n=Vue.ref(!1);return Go(()=>{n.value=t.value<=768}),{width:t,height:o,isTabletOrSmaller:Vue.readonly(n)}}let Ge=999,ke=!1;const G="ELEMENT-FULLSCREEN-RAY",{height:He}=Me(),Ye=document.createElement("style"),el=(e,t)=>{const{beforeEnter:o,beforeExit:n,enter:r,exit:l,backgroundColor:i,zIndex:a}=t??{},s={};let u=!1;const c=()=>{const m=W(e);if(!m)return;const{left:y,top:d}=m.getBoundingClientRect(),h=` + [${G}] { + position: fixed; + width: 100% !important; + height: ${He.value}px !important; + transform: translate(-${y}px, -${d}px) !important; + transition: all 0.3s var(--r-bezier); + z-index: ${q(a,"Null")||q(a,"Undefined")?Ge:a} !important; + background-color: ${i??null}; + } + `;Ye.innerHTML=h,ke||document.head.appendChild(Ye)},p=()=>{const m=W(e);o==null||o(),m&&(m.getAttribute(G)||m.setAttribute(G,G),u||(u=!0,Ge+=1),ke||(c(),ke=!0),s.transition=m.style.transition,m.style.transition="all 0.3s var(--r-bezier)",r==null||r())},f=()=>{n==null||n();const m=W(e);m&&m.removeAttribute(G),l==null||l()},b=()=>{const m=W(e);m&&(m.getAttribute(G)?f():p())},v=Vue.watch(()=>He.value,c);return Ho(()=>{const m=W(e);m&&(m.style.transition=s.transition??"",m.removeAttribute(G)),v()}),{enter:p,exit:f,toggleFullscreen:b}},Oe={svg:te.toSvg,png:te.toPng,jpeg:te.toJpeg,blob:te.toBlob,pixelData:te.toPixelData},El=(e,t)=>{const{beforeCreate:o,created:n,createdError:r,finally:l,imageType:i}=t??{};return{create:s=>new Promise((u,c)=>{var f;const p=W(e);if(o==null||o(p),!p)return r==null||r(),c("useDomToImage: element is undefined.");(f=Oe[s??i??"jpeg"])==null||f.call(Oe,p,t).then(b=>(n==null||n(b,p),u(b))).catch(b=>(r==null||r(b),c(b))).finally(()=>{l==null||l()})})}},$l=(e,t)=>({print:()=>{const n=W(e)||e;Io({...t,printable:n})}}),Co=()=>({isLayoutContentMaximized:Vue.computed(()=>Y("layoutContentMaximize").value),maximize:(o,n)=>{var a;const{scrollToOptions:r}=n??{},l=W(J),{toggleFullscreen:i}=el(l,n);K("layoutContentMaximize",o),i(),r&&o&&((a=J==null?void 0:J.value)==null||a.scrollTo(r))}}),tl=()=>({reload:(n=800)=>{K("globalMainLayoutLoad",!1),setTimeout(()=>K("globalMainLayoutLoad",!0),n)},openSpin:()=>{K("layoutContentSpinning",!0)},closeSpin:()=>{K("layoutContentSpinning",!1)}}),Bl=()=>({setWatermarkContent:r=>{const{getWatermarkConfig:l}=I(),i=Object.assign(l.value,{content:r}),{updateSettingState:a}=z();a("watermarkConfig",i)},showWatermark:()=>{const{updateSettingState:r}=z();r("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:r}=z();r("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:r}=I(),{updateSettingState:l}=z();l("watermarkSwitch",!r.value)}}),xe=e=>{const{getPrimaryColorOverride:t}=I(),{updateSettingState:o}=z();o("primaryColorOverride",e?Object.assign({},t.value,j.appNaiveUIThemeOverrides.dark,j.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,j.appNaiveUIThemeOverrides.light,j.appNaiveUIThemeOverridesCommon.light))},ol=()=>{const e=()=>{const{getAppTheme:r}=I(),{t:l}=ee();return{theme:r.value,themeLabel:r.value?l("headerSettingOptions.ThemeOptions.Dark"):l("headerSettingOptions.ThemeOptions.Light")}};return{changeDarkTheme:()=>{const{updateSettingState:r}=z();r("appTheme",!0),xe(!0)},changeLightTheme:()=>{const{updateSettingState:r}=z();r("appTheme",!1),xe(!1)},toggleTheme:()=>{const{theme:r}=e(),{updateSettingState:l}=z();l("appTheme",!r),xe(!r)},getAppTheme:e}},Z=(e,t)=>{const{getMenuTagOptions:o}=X();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>o.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:o.value[e],index:e}}else if(typeof e=="string"){const n=o.value.findIndex(r=>r.fullPath===e);return n>-1?{option:o.value[n],index:n}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:n}=e,r=o.value.findIndex(l=>l.fullPath===n);if(r===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:r}}};function nl(){const{getMenuTagOptions:e,getMenuKey:t}=X(),{changeMenuModelValue:o,spliceMenTagOptions:n,setMenuTagOptions:r,resolveOption:l}=se(),i=()=>e.value.findIndex(v=>v.fullPath===t.value);return{close:v=>{const m=Z(v,"close");if(e.value.length!==1&&m){const{index:y,option:d}=m;if(n(y),d.fullPath===t.value){const h=e.value[y-1];h&&o(h.fullPath,h)}}},closeAll:()=>{n(0,e.value.length);const{getRootPath:v}=Q(),{router:{getRoutes:m}}=ye(),y=m().find(d=>d.path===v.value);if(y){const d=ge(y,["children","meta","path","name","redirect"]),h=l(d);o(h.path,l({...h,fullPath:h.path}))}},closeRight:v=>{const m=Z(v,"closeRight");if(m){const{option:y,index:d}=m,h=e.value.length-d,_=i();n(d+1,h),d<=_&&t.value!==y.fullPath&&o(y.fullPath,y)}},closeLeft:v=>{const m=Z(v,"closeLeft");if(m){const{option:y,index:d}=m,h=i();n(0,d),h<=d&&t.value!==y.fullPath&&o(y.fullPath,y)}},closeOther:v=>{const m=Z(v,"closeOther");if(m){const{option:y}=m;t.value!==y.fullPath?(n(0,e.value.length),o(y.fullPath,y)):r(y,!1)}},getCurrentTagIndex:i,checkCloseRight:v=>{const m=Z(v,"checkCloseRight");if(m){const{index:y}=m,d=e.value.length-1;return!(y>=d)}return!1},checkCloseLeft:v=>{const m=Z(v,"checkCloseRight");if(m){const{index:y}=m,d=e.value.length-1;return y===0?!1:y>0&&d>0}return!1}}}function Fl(){return{navigationTo:(t,o)=>{const{router:{getRoutes:n,push:r,replace:l}}=ye(),{isPush:i=!0,query:a}=o||{},s=u=>i?r({path:u,query:a}):l({path:u,query:a});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=X();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const c=u.value[t],p=f=>{if(f.children&&f.children.length>0){const{children:[b]}=f;p(b);return}s(f.fullPath)};p(c)}else if(typeof t=="string"){const u=n().find(c=>c.path===t);u?s(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else s(t.fullPath)}}}function Q(){const{getAppRootRoute:e}=I(),{updateSettingState:t}=z(),o=e,n=Vue.computed(()=>e.value.path),r=Vue.computed(()=>e.value.name);return{getRootRoute:o,getRootPath:n,getRootName:r,setRootRoute:i=>{t("appRootRoute",Object.assign({},e.value,i))}}}const rl=(e,t)=>{const{show:o,...n}=t;e.meta.extra=Object.assign({},e.meta.extra,{...n,show:o}),e.extra=ho(e)},Xe=(e,t,o)=>{const n=yo(e,t);n&&rl(n,o)},Re=(e,t,o)=>{const{getMenuOptions:n}=X();if(typeof e=="string")Xe(n.value,e,o);else if(q(e,"Object")){const{fullPath:r}=e;Xe(n.value,r,o)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function Wl(){return{hidden:n=>{Re(n,"hidden",{show:!1})},show:n=>{Re(n,"show",{show:!0})},update:(n,r)=>{Re(n,"update",r)}}}const Kl=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const o={};return Object.keys(e).forEach(n=>{const r=e[n].default;let l=n.replace(`./${t}/`,"").replace(/^\.\//,"");const i=l.lastIndexOf(".");l=l.substring(0,i);const a=l.split("/"),s=a.shift(),u=a.join(".");s&&(u?(Se(o,s,o[s]||{}),Se(o[s],u,r)):Se(o,s,r||{}))}),o},al=async e=>{var o;const t={};for(const n of e){const r=await wn(Object.assign({"./lang/en-US.ts":()=>O(()=>import("./en-US-n6ubnME7.js"),__vite__mapDeps([61,20,21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32])),"./lang/zh-CN.ts":()=>O(()=>import("./zh-CN-fJdWaJad.js"),__vite__mapDeps([62,20,21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32]))}),`./lang/${n.key}.ts`),l=n.key;l&&(t[l]=((o=r==null?void 0:r.default)==null?void 0:o.message)??{})}return t},Ul=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},No=()=>le(M.localeLanguage,"localStorage",{defaultValue:Nn});export{Nl as A,Rl as B,Al as C,On as D,Dl as E,fa as F,Il as G,kl as H,po as I,Co as J,Fl as K,nt as L,tl as M,Bl as N,ol as O,Wl as P,we as Q,Ll as R,Nn as S,Va as T,O as _,El as a,Tl as b,I as c,M as d,z as e,ka as f,Ya as g,la as h,be as i,Y as j,ye as k,Tn as l,kn as m,Ul as n,zl as o,jl as p,ee as q,Q as r,xl as s,K as t,$l as u,Ml as v,N as w,Kl as x,Ol as y,Pl as z}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/index-t2_z-FtU.js","assets/vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js","assets/lodash@4.17.21-yUHHMES2.js","assets/awesome-qr@2.1.5-rc.0-UnPo3EFD.js","assets/canvas@2.11.2-dZp4QMlu.js","assets/js-binary-schema-parser@2.0.3-CCV6nRej.js","assets/js-cookie@3.0.5-bc0KQLgp.js","assets/screenfull@5.2.0-q9gEF-YC.js","assets/qs@6.11.2-wwOruwhc.js","assets/side-channel@1.0.4-hl21th03.js","assets/get-intrinsic@1.2.1-NE0DZZ3B.js","assets/has-symbols@1.0.3-fNtejGuA.js","assets/has-proto@1.0.1-dzJH2Y5C.js","assets/function-bind@1.1.1-Y6-kkB5s.js","assets/has@1.0.3-rcPLRdvS.js","assets/call-bind@1.0.2-8lNE5ocE.js","assets/dayjs@1.11.10-A-QuG2Ol.js","assets/print-js@1.6.0-gYKv6oGQ.js","assets/currency.js@2.0.4--or6eeOG.js","assets/index-0vVhegrX.js","assets/@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js","assets/@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js","assets/utils-3DRba3jA.js","assets/lodash-es@4.17.21-xgd1l9mE.js","assets/interactjs@1.10.26-I0IiZoEj.js","assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js","assets/dom-to-image@2.6.0-eHYYUq-2.js","assets/echarts@5.4.3-94QNkbi2.js","assets/zrender@5.4.4-dbLxLQQO.js","assets/tslib@2.3.0-21A5UWR7.js","assets/@vue_runtime-core@3.4.19-9EfOi5Ir.js","assets/@vue_reactivity@3.4.19-celhyCRK.js","assets/@vue_shared@3.4.19-Zz6ACxVX.js","assets/index-3nkF0W6U.css","assets/index-ESRgrIKF.js","assets/instance-I7ExDMVm.js","assets/index-kznjMqp-.css","assets/index-HlEoc4oA.js","assets/index-fSj7NDsx.js","assets/index-gvn0WixR.js","assets/index-9pBqvQlJ.js","assets/index-ajyCn2oj.css","assets/index-xcH4U4Ty.js","assets/index-5lw8fAJn.js","assets/index-URw8EbN2.js","assets/index-ZatM64SM.js","assets/index-iapTKWGV.js","assets/ray-9TfU2AhD.js","assets/index-7jSmHArV.js","assets/index-HDKPr_0g.css","assets/index-Jz_0N3dr.js","assets/index-v5xFQW7A.js","assets/index-4oPeexgb.css","assets/index-l2OdooJx.js","assets/index-iKuv6ZNn.css","assets/index-1fl0IMML.js","assets/index-Fu86yYlL.js","assets/index-6Jsj4zGJ.js","assets/index-Btqqg3j9.css","assets/index-y5nxB1Kz.js","assets/index-YZ6BMxRm.css","assets/en-US-n6ubnME7.js","assets/zh-CN-fJdWaJad.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/hooks-lxIXz5_l.js.gz b/assets/hooks-lxIXz5_l.js.gz new file mode 100644 index 00000000..d4db72e4 Binary files /dev/null and b/assets/hooks-lxIXz5_l.js.gz differ diff --git a/assets/hooks-v5yhfgkQ.js b/assets/hooks-v5yhfgkQ.js deleted file mode 100644 index 2097655b..00000000 --- a/assets/hooks-v5yhfgkQ.js +++ /dev/null @@ -1,17 +0,0 @@ -var Ro=Object.defineProperty;var Ao=(e,t,o)=>t in e?Ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Ie=(e,t,o)=>(Ao(e,typeof t!="symbol"?t+"":t,o),o);import{o as Po,u as le,a as Lo,b as Me,c as Ve,d as Mo}from"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import{u as Xe}from"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import{d as B}from"./dayjs@1.11.10-A-QuG2Ol.js";import{p as Do}from"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import{g as ie,i as U,s as De,c as zo,a as D,r as re,b as A,d as Io,u as ge,e as jo,p as Eo,f as ye,h as je,j as $o,k as Ae,q as Pe,l as Bo,m as Fo,n as Wo,o as Ko,w as Uo,t as qo,v as F}from"./utils-bL-oQI6P.js";import{l as Go}from"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import{i as Ee}from"./interactjs@1.10.26-I0IiZoEj.js";import{s as Ho}from"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import{t as Ze,c as Yo,i as Xo,d as Zo,s as Se}from"./lodash-es@4.17.21-xgd1l9mE.js";import{d as oe}from"./dom-to-image@2.6.0-eHYYUq-2.js";import{u as ne,r as Qo,i as Jo,a as en,b as tn,c as on,d as nn,e as rn,f as an,g as ln,h as sn,j as cn,k as un,l as dn,m as pn,n as mn,o as hn,p as fn,q as gn,s as yn}from"./echarts@5.4.3-Vt5ZmFiA.js";import{o as Qe,c as Je,a as et}from"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import{e as bn}from"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";const vn="modulepreload",Vn=function(e){return"/ray-template/"+e},$e={},O=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){const l=document.getElementsByTagName("link");r=Promise.all(o.map(i=>{if(i=Vn(i),i in $e)return;$e[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let p=l.length-1;p>=0;p--){const f=l[p];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":vn,a||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),a)return new Promise((p,f)=>{c.addEventListener("load",p),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>t()).catch(l=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=l,window.dispatchEvent(i),!i.defaultPrevented)throw l})},Sn=(e,t)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},tt={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Y={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},wl="",M={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},_n=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],j={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},ot=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],wn="zh-CN",Cn="zh-CN",Nn={"zh-CN":"zh-cn","en-US":"en"},kn="zh-cn",Cl={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},Nl={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},ee=Vue.ref(null),Tn={setupRouterLoadingBar:!0,setupRouterGuard:!0},On=["RLogin","ErrorPage","RayTemplateDoc"],pe=["admin"],kl=(e,t)=>{const o=Vue.ref(0),n=Vue.ref(0),r=Vue.ref(!1),{clickOutside:l}=t??{},i=p=>{r.value=p},a=p=>{p.preventDefault(),i(!1),Vue.nextTick().then(()=>{const{clientX:f,clientY:b}=p;o.value=f,n.value=b,i(!0)})};l&&Po(e,p=>{l(p)});const s=le(e,"contextmenu",a,t),u=le(e,"click",()=>{i(!1)});return{stop:()=>{s(),u()},x:Vue.readonly(o),y:Vue.readonly(n),show:Vue.readonly(r),updateShow:i}},nt=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function W(e,t,o){nt[e]=t,o==null||o()}function X(e){return Vue.readonly(Vue.toRef(nt,e))}let rt;const xn=async()=>{const e=Co(),t=await nl(ot);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Cn})},Tl=async e=>{const t=await xn();rt=t,e.use(t)},Rn=(e,t)=>!e||t[0]===e?t:`${e}.${t}`,te=e=>{const{t,locale:o,...n}=rt.global;return{...n,t:(i,...a)=>i?!i.includes(".")&&!e?i:t(Rn(e,i),...a):"",locale:i=>{const a=o;a.value=i}}},x=e=>e,An={path:"/dashboard",name:"RDashboard",component:()=>O(()=>import("./index-hrbHJX4t.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])),meta:{i18nKey:x("menu.Dashboard"),icon:"dashboard",order:0}},Pn=Object.freeze(Object.defineProperty({__proto__:null,default:An},Symbol.toStringTag,{value:"Module"})),Ln={path:"/axios",name:"RAxios",component:()=>O(()=>import("./index-6iZ4j1xO.js"),__vite__mapDeps([34,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,35,22,18,16,17,23,20,21,24,25,26,27,28,29,30,31,32,36])),meta:{i18nKey:x("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Mn=Object.freeze(Object.defineProperty({__proto__:null,default:Ln},Symbol.toStringTag,{value:"Module"})),Dn={path:"/cache-demo",name:"CacheDemo",component:()=>O(()=>import("./index-oh2YcAK7.js"),__vite__mapDeps([37,22,18,16,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,17,23,20,21,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.CacheDemo"),icon:"other",order:3,extra:{label:"new"}}},zn=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),In={path:"/context-menu",name:"ContextMenuDemo",component:()=>O(()=>import("./index-2gahowqI.js"),__vite__mapDeps([38,18,16,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,17,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.ContextMenu"),icon:"other",order:2}},jn=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),En={path:"/directive",name:"RDirective",component:()=>O(()=>import("./index-qt5v82ci.js"),__vite__mapDeps([])),meta:{i18nKey:x("menu.Directive"),icon:"other",order:2}},$n=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),K=()=>O(()=>Promise.resolve().then(()=>fa),void 0),Bn={path:"/doc",name:"RDocLayout",component:K,meta:{i18nKey:x("menu.Doc"),icon:"doc",order:5},children:[{path:"doc-inside",name:"RDocInside",component:()=>O(()=>import("./index-Eis-OABC.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.DocLocalInside")}},{path:"doc-outside",name:"RDoc",component:K,meta:{i18nKey:x("menu.Doc"),windowOpen:"https://xiaodaigua-ray.github.io/ray-template-doc/"}},{path:"doc-outside-local",name:"RDocLocal",component:K,meta:{i18nKey:x("menu.DocLocal"),windowOpen:"https://ray-template.yunkuangao.com/ray-template-doc/"}}]},Fn=Object.freeze(Object.defineProperty({__proto__:null,default:Bn},Symbol.toStringTag,{value:"Module"})),Wn={path:"/echart",name:"REchart",component:()=>O(()=>import("./index-9jx3SCbn.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,41])),meta:{i18nKey:x("menu.Echart"),icon:"echart",order:1}},Kn=Object.freeze(Object.defineProperty({__proto__:null,default:Wn},Symbol.toStringTag,{value:"Module"})),Un={path:"/iframe",name:"IframeDemo",component:()=>O(()=>import("./index-SvzBi3Tl.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},qn=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),Gn={path:"/mock-demo",name:"MockDemo",component:()=>O(()=>import("./index-Trm8dVce.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,22,23,20,21,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.Mock"),icon:"other",order:3,keepAlive:!1}},Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Yn={path:"/modal-demo",name:"ModalDemo",component:()=>O(()=>import("./index-d3p0BHDb.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.Modal"),icon:"other",order:3}},Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Zn={path:"/multi",name:"MultiMenu",component:K,meta:{i18nKey:x("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>O(()=>import("./index-OlZM-6Aq.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:K,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>O(()=>import("./index-7HAQIe0w.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:K,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>O(()=>import("./index-vRnYP7XJ.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),Jn={path:"/precision",name:"CalculatePrecision",component:()=>O(()=>import("./index-A-lx2o6E.js"),__vite__mapDeps([45,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,16,17,22,18,23,20,21,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.CalculatePrecision"),icon:"other",order:2}},er=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),tr={path:"/qrcode",name:"RQRCode",component:()=>O(()=>import("./index-xZvHBL1o.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,47,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.QRCode"),icon:"other",order:3}},or=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),nr={path:"/rely",name:"Rely",component:K,meta:{i18nKey:x("menu.Rely"),icon:"rely",order:999},children:[{path:"rely-about",name:"RelyAbout",component:()=>O(()=>import("./index--PxfyjRI.js"),__vite__mapDeps([48,49])),meta:{i18nKey:x("menu.RelyAbout")}}]},rr=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),ar={path:"/router-demo",name:"RouterDemoRoot",component:K,meta:{i18nKey:x("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",name:"RouterDemoHome",component:()=>O(()=>import("./index-2PELqkCs.js"),__vite__mapDeps([50,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",name:"RouterDemoDetail",component:()=>O(()=>import("./index-tZy8npu9.js"),__vite__mapDeps([])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},lr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),ir={path:"/scroll-reveal",name:"ScrollReveal",component:()=>O(()=>import("./index-v5xFQW7A.js"),__vite__mapDeps([51,52])),meta:{i18nKey:x("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},sr=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),cr={path:"/svg-icons",name:"PreviewSVGIcons",component:()=>O(()=>import("./index-6zHQf_S9.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,54])),meta:{i18nKey:x("menu.SvgIcon"),icon:"other",order:3}},ur=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),dr={path:"/table",name:"TableView",component:()=>O(()=>import("./index-8A7sSbsl.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.Table"),icon:"other",order:2}},pr=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),mr={path:"/template-hooks",name:"TemplateHooks",component:()=>O(()=>import("./index-gFHrcW37.js"),__vite__mapDeps([56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.TemplateHooks"),icon:"other",order:1,extra:{label:"new"}}},hr=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),fr={path:"/:catchAll(.*)",name:"ErrorPage",component:()=>O(()=>import("./index-wNfQSZJ3.js"),__vite__mapDeps([57,20,21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32,58])),meta:{i18nKey:x("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}},gr=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),yr=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Pn,"/src/router/modules/demo/axios.ts":Mn,"/src/router/modules/demo/cache-demo.ts":zn,"/src/router/modules/demo/context-menu.ts":jn,"/src/router/modules/demo/directive.ts":$n,"/src/router/modules/demo/doc.ts":Fn,"/src/router/modules/demo/echart.ts":Kn,"/src/router/modules/demo/iframe.ts":qn,"/src/router/modules/demo/mock.ts":Hn,"/src/router/modules/demo/modal.ts":Xn,"/src/router/modules/demo/multi-menu.ts":Qn,"/src/router/modules/demo/precision.ts":er,"/src/router/modules/demo/qrcode.ts":or,"/src/router/modules/demo/rely.ts":rr,"/src/router/modules/demo/router-demo.ts":lr,"/src/router/modules/demo/scroll-reveal.ts":sr,"/src/router/modules/demo/svg-icons.ts":ur,"/src/router/modules/demo/table.ts":pr,"/src/router/modules/demo/template-hooks.ts":hr,"/src/router/modules/error404.ts":gr});return Object.keys(e).reduce((o,n)=>{const r=e[n].default;if(r)o.push(r);else throw new Error("router helper combine: an exception occurred while parsing the routing file!");return o},[])},br=e=>e.sort((t,o)=>{var l,i;const n=((l=t.meta)==null?void 0:l.order)??1,r=((i=o.meta)==null?void 0:i.order)??0;if(typeof n!="number"||typeof r!="number")throw new TypeError("orderRoutes error: order must be a number!");return n===r?t.name?o.name?t.name.localeCompare(o.name):-1:1:n-r}),vr=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=ee.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},Vr=e=>{const{beforeEach:t}=e,{getRootPath:o}=Q(),n=(r,l)=>r.path==="/"||l.path==="/login";t((r,l,i)=>{const a=ie(M.token),s=ie(M.appMenuKey,"sessionStorage",{defaultValue:o.value}),{meta:u,name:c}=r;a!==null?n(r,l)?we(!0):!U(c,"Symbol")&&c&&On.includes(c)?i():Vo(u)?n(r,l)?s?i(s):we(!0):i():we(!0):n(r,l)?i():i("/")})};var Sr={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.15","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.11","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const at=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Sr,{locale:t}=te(),{locale:o}=Za(),n=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Co(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"}}),r=a=>{t(a),o(a),n.localeLanguage=a,De(M.localeLanguage,a,"localStorage")},l=(a,s=.3)=>{const u=zo(a,s),c={primaryColor:a,primaryColorHover:a};n.primaryColorOverride.common=c;const p=document.body;p.style.setProperty("--ray-theme-primary-color",a),p.style.setProperty("--ray-theme-primary-fade-color",u)},i=(a,s,u)=>{Object.hasOwn(n,a)&&(n[a]=s),u==null||u()};return bn(()=>n.appTheme,a=>{a?Object.assign({},n.primaryColorOverride,j.appNaiveUIThemeOverrides.dark,j.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.primaryColorOverride,j.appNaiveUIThemeOverrides.light,j.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(n),updateLocale:r,changePrimaryColor:l,updateSettingState:i}},{persist:{key:M.appPiniaSettingStore}}),lt=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],it="transparent",st={},ct={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},ut={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},dt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},pt={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},mt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ht={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ft={itemStyle:{borderWidth:0,borderColor:"#ccc"}},gt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},yt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},bt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},vt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Vt={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},St={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},_t={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},wt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Ct={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Nt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},kt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Tt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ot={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},xt={textStyle:{color:"#999999"}},Rt={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},At={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Pt={color:["#fc97af","#87f7cf"]},Lt={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},Mt={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},_r={color:lt,backgroundColor:it,textStyle:st,title:ct,line:ut,radar:dt,bar:pt,pie:mt,scatter:ht,boxplot:ft,parallel:gt,sankey:yt,funnel:bt,gauge:vt,candlestick:Vt,graph:St,map:_t,geo:wt,categoryAxis:Ct,valueAxis:Nt,logAxis:kt,timeAxis:Tt,toolbox:Ot,legend:xt,tooltip:Rt,timeline:At,visualMap:Pt,dataZoom:Lt,markPoint:Mt},wr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:it,bar:pt,boxplot:ft,candlestick:Vt,categoryAxis:Ct,color:lt,dataZoom:Lt,default:_r,funnel:bt,gauge:vt,geo:wt,graph:St,legend:xt,line:ut,logAxis:kt,map:_t,markPoint:Mt,parallel:gt,pie:mt,radar:dt,sankey:yt,scatter:ht,textStyle:st,timeAxis:Tt,timeline:At,title:ct,toolbox:Ot,tooltip:Rt,valueAxis:Nt,visualMap:Pt},Symbol.toStringTag,{value:"Module"})),Dt=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],zt="transparent",It={},jt={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},Et={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},$t={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},Bt={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Ft={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Wt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Kt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ut={itemStyle:{borderWidth:0,borderColor:"#ccc"}},qt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Gt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ht={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Yt={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},Xt={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},Zt={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},Qt={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},Jt={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},eo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},to={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},oo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},no={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},ro={textStyle:{color:"#333333"}},ao={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},lo={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},io={color:["#5ab1ef","#e0ffff"]},so={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},co={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Cr={color:Dt,backgroundColor:zt,textStyle:It,title:jt,line:Et,radar:$t,bar:Bt,pie:Ft,scatter:Wt,boxplot:Kt,parallel:Ut,sankey:qt,funnel:Gt,gauge:Ht,candlestick:Yt,graph:Xt,map:Zt,geo:Qt,categoryAxis:Jt,valueAxis:eo,logAxis:to,timeAxis:oo,toolbox:no,legend:ro,tooltip:ao,timeline:lo,visualMap:io,dataZoom:so,markPoint:co},Nr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:zt,bar:Bt,boxplot:Kt,candlestick:Yt,categoryAxis:Jt,color:Dt,dataZoom:so,default:Cr,funnel:Gt,gauge:Ht,geo:Qt,graph:Xt,legend:ro,line:Et,logAxis:to,map:Zt,markPoint:co,parallel:Ut,pie:Ft,radar:$t,sankey:qt,scatter:Wt,textStyle:It,timeAxis:oo,timeline:lo,title:jt,toolbox:no,tooltip:ao,valueAxis:eo,visualMap:io},Symbol.toStringTag,{value:"Module"})),kr=()=>{const e=Object.assign({"/src/echart-themes/macarons/macarons-dark.json":wr,"/src/echart-themes/macarons/macarons.json":Nr}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((n,r)=>{var i;const l=(i=r.match(t))==null?void 0:i[1];if(l)return n.push({name:l,theme:e[r].default}),n;throw new Error("theme name is not found")},[])},Tr=e=>Object.assign({},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.9)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e),Or={bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:{type:[Boolean,Object],default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>Tr()},observer:{type:Object,default:null},throttleWait:{type:Number,default:500},animation:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>({})}},xr={notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]},Rr=kr(),Ol=Vue.defineComponent({name:"RChart",props:Or,setup(e,{expose:t}){const{getAppTheme:o}=I(),n=Vue.ref(),r=Vue.ref(),l=Vue.ref();let i,a;const{echartTheme:s}=j;let u,c;const p=Vue.computed(()=>[{label:"下载图片",key:"downloadChart",disabled:!(l.value&&l.value.getDom())}]),f=Vue.computed(()=>({"--ray-chart-width":D(e.width),"--ray-chart-height":D(e.height)})),b=async()=>{var V;ne([en,tn,on,nn,rn,an,ln,sn]),ne([cn,un,dn,pn,mn,hn]),ne([fn,gn]),ne([yn]);try{ne((V=e.use)==null?void 0:V.filter(Boolean))}catch(k){console.error("RChart register error: ",k)}},v=()=>{if(e.theme==="default"){e.autoChangeTheme?y("dark"):y("");return}if(e.theme)y(e.theme);else{const V=e.autoChangeTheme&&o.value?`${s}-dark`:s;y(V)}},m=V=>{let k=Vue.unref(V);const R=P=>Object.assign({animation:!0},k,P);return e.showAria&&(k=R({aria:{enabled:!0,decal:{show:!0}}})),k},y=(V=s)=>{const k=n.value,R=m(e.options),{height:P,width:$}=k.getBoundingClientRect(),{onSuccess:q,onError:ue}=e;try{Rr.forEach(G=>{Qo(G.name,G.theme)}),c=Jo(k,V,{width:$===0?200:void 0,height:P===0?200:void 0}),l.value=c,e.animation?(c.setOption({}),setTimeout(()=>{R&&(c==null||c.setOption(R))})):R&&(c==null||c.setOption(R)),q&&A(q,c)}catch(G){ue&&A(ue),console.error("RChart render error: ",G)}},d=()=>!!(c&&c.getDom()),h=()=>{d()&&(c.clear(),c.dispose(),l.value=void 0)},S=()=>{c&&c.resize()},w=(V,k)=>{if(V==="downloadChart"&&d()){const{filename:P,...$}=e.downloadOptions;Io(c.getDataURL($),P??`${new Date().getTime()}`)}const{onDropdownSelect:R}=e;R&&A(R,V,k)},g=()=>{if(c!=null&&c.getDom()){console.warn("[RChart mount]: There is a chart instance already initialized on the dom. Execution was interrupted.");return}v(),e.autoResize&&(i=Ze(S,e.throttleWait),a=Lo(e.observer||r,i))},N=()=>{var V;h(),i==null||i.cancel(),(V=a==null?void 0:a.stop)==null||V.call(a)};return Vue.watch(()=>o.value,()=>{e.autoChangeTheme&&(h(),v())}),Vue.watch(()=>e.showAria,()=>{h(),v()}),Vue.watchEffect(()=>{e.watchOptions?u=Vue.watch(()=>e.options,V=>{const k=m(V),R=Object.assign(e.setChartOptions,xr);c==null||c.setOption(k,R)},{deep:!0}):u==null||u(),e.loading?c==null||c.showLoading(e.loadingOptions):c==null||c.hideLoading()}),t({echart:l,dispose:N,render:g,isDispose:d}),Vue.onBeforeMount(async()=>{await b()}),Vue.onMounted(()=>{g()}),Vue.onBeforeUnmount(()=>{N(),u==null||u()}),{rayChartRef:n,cssVarsRef:f,rayChartWrapperRef:r,moreDropDownOptions:p,dropdownSelect:w}},render(){const{title:e,contentStyle:t,preset:o,moreDropDownOptions:n,dropdownSelect:r,bordered:l,dropdownOptions:i}=this,{cardExtra:a}=this.$slots;return o==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:l},{default:re(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:re(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":re(a,{defaultElement:Vue.createVNode(uo,{iconSize:18,cursor:"pointer",options:i??n,trigger:"click",onSelect:r.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Ar={open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},xl=Vue.defineComponent({name:"RCollapseGrid",props:Ar,setup(e){const t=Vue.ref(!e.open),o=()=>{t.value=!t.value;const{onUpdateValue:r,"onUpdate:value":l}=e;r&&A(r,t.value),l&&A(l,t.value)};return{modelCollapsed:t,collapseClick:o,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:o.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(T,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)])}},render(){return Vue.createVNode(naive.NCard,{bordered:this.bordered},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},this.$props,{collapsed:this.modelCollapsed,xGap:this.xGap||12,yGap:this.yGap||18,collapsedRows:this.collapsedRows}),{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>{var o,n;return[(n=(o=this.$slots).action)==null?void 0:n.call(o),this.CollapseIcon()]}})]})]}})})}}),Pr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},T=Vue.defineComponent({name:"RIcon",props:Pr,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),o=Vue.computed(()=>({"--ray-icon-width":e.width?D(e.width):D(e.size),"--ray-icon-height":e.height?D(e.height):D(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor}));return{symbolId:t,cssVars:o,iconClick:r=>{const{onClick:l}=e;l&&A(l,r)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Lr={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:Boolean,default:!0},wrapperClass:{type:String,default:null}},Rl=Vue.defineComponent({name:"RIframe",props:Lr,setup(e,{expose:t}){const o=Vue.computed(()=>({"--ray-iframe-frameborder":D(e.frameborder),"--ray-iframe-width":D(e.width),"--ray-iframe-height":D(e.height)})),n=Vue.ref(),r=Vue.ref(!0),l=a=>{r.value=!1;const{onSuccess:s}=e;s&&A(s,n.value,a)},i=a=>{r.value=!1;const{onError:s}=e;s&&A(s,a)};return le(n,"load",l),le(n,"error",i),t({iframeInst:n}),{cssVars:o,iframeRef:n,spinShow:r}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",Vue.mergeProps({class:["ray-iframe__container",this.wrapperClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title},{loading:this.lazy?"lazy":null}),null)})])}}),Mr={...naive.modalProps,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},Dr=(e,t,o)=>{const{scheduler:n}=o??{};return new Promise(r=>{setTimeout(()=>{const l=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const i=Ee(e).draggable({inertia:!0,autoScroll:!0,allowFrom:l,modifiers:[Ee.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:a=>{n==null||n(a)}}}).resizable(!1);r(i)}},30)})},Al=Vue.defineComponent({name:"RModal",props:Mr,setup(e){const{height:t}=Me(),o=Vue.computed(()=>({"--r-modal-width":D(e.width??600),"--r-modal-card-width":D(e.cardWidth??600),"--r-modal-dialog-width":D(e.dialogWidth??446)})),n=ge();let r;const l={x:0,y:0},i=()=>e.preset==="card"&&e.fullscreen,a=()=>{const s=document.getElementById(n);s&&Dr(s,e.preset,{scheduler:u=>{const c=u.target;l.x+=u.dx,l.y+=u.dy,c.style.transform=`translate(${l.x}px, ${l.y}px)`}}).then(u=>{r=u})};return Vue.watch(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{a();const u=document.getElementById(n);e.memo&&u&&(u.style.transform=`translate(${l.x}px, ${l.y}px)`)}):(r==null||r.unset(),r=null)},{immediate:!0}),{cssVars:o,height:t,isFullscreenCardType:i,uuidEl:n}},render(){const{isFullscreenCardType:e}=this,{$props:t,$slots:o,$attrs:n}=this,{preset:r,...l}=t,{cssVars:i,height:a,uuidEl:s}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:["r-modal",e()?"r-modal__preset-card--fullscreen":""],style:[i,e()?`height: ${a}px`:""],preset:r},{id:s},l,n),{...o})}}),zr={...naive.dropdownProps,iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function Ir(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const uo=Vue.defineComponent({name:"RMoreDropdown",props:zr,render(){let e;const{iconSize:t,cursor:o}=this,{default:n}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),Ir(e=re(n,{defaultElement:Vue.createVNode(T,{name:"more",size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),jr={loadingDescription:{type:String},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:e=>[0,1,2,3].includes(e)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}},Er=e=>new Promise((t,o)=>{const n=new XMLHttpRequest;n.responseType="blob",n.onload=()=>{const r=new FileReader;r.onloadend=()=>{t(r.result)},r.onerror=l=>{o(l)},r.onabort=l=>{o(l)},r.readAsArrayBuffer(n.response)},n.open("GET",e),n.send()}),Pl=Vue.defineComponent({name:"RayQRcode",props:jr,setup(e,t){const{expose:o}=t,n=Vue.ref();let r,l;const i=async()=>{const{gifBackgroundURL:c}=e;if(c)try{r=await Er(c)}catch(p){console.error(p)}},a=()=>{const{gifBackground:c,...p}=e;new Go.AwesomeQR({...p,gifBackground:r??void 0}).draw().then(f=>{const{onSuccess:b}=e;b&&A(b,f),n.value=f}).catch(f=>{const{onError:b}=e;b&&A(b,f)})},s=()=>{if(t.slots.errorAction)return;const{onReload:c}=e;c&&A(c)},u=c=>n.value&&U(n.value,"String")?jo(n.value,c||new Date().getTime()+".png"):Promise.reject();return Vue.watchEffect(()=>{e.watchText?l=Vue.watch(()=>e.text,()=>a()):l==null||l()}),o({downloadQRCode:u}),Vue.onMounted(async()=>{await i(),a()}),Vue.onBeforeUnmount(()=>{l==null||l()}),{qrcodeURL:n,errorActionClick:s}},render(){const{qrcodeURL:e,status:t,loadingDescription:o,errorDescription:n,$slots:r,errorActionDescription:l}=this,{errorActionClick:i}=this;return Vue.createVNode("div",{class:["ray-qrcode",`ray-qrcode--${t}`]},[Vue.createVNode(naive.NSpin,{show:t==="loading",description:o},{default:()=>[Vue.createVNode("img",{src:e},null)]}),t==="error"?Vue.createVNode("div",{class:"ray-qrcode__error"},[Vue.createVNode("div",{class:"ray-qrcode__error-content"},[U(n,"String")?n:()=>n]),Vue.createVNode("div",{class:"ray-qrcode__error-btn",onClick:i.bind(this)},[r.errorAction?r.errorAction():Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{text:!0,type:"primary",color:"#ffffff"},{default:()=>l,icon:()=>Vue.createVNode(T,{name:"reload",size:"16",color:"#ffffff"},null)})])])]):null])}}),se={...naive.dataTableProps,downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!1},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null}},E={tableIconSize:"18",tableKey:Symbol("r-table")},$r=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...se},setup(e){return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:r=>{const{onChangeSize:l}=e;l&&A(l,r)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(T,{name:"adjustment",size:E.tableIconSize,cursor:"pointer"},null)]})}}),Br=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(E.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:n}]=Xe(e);return{toggleFullscreen:o,isEnabled:n}},render(){const{toggleFullscreen:e,isEnabled:t,$t:o}=this;return Vue.createVNode(T,{name:"fullscreen",size:E.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(o("globalMessage.isEnabledFullscreen")),e()}},null)}}),Fr=()=>Vue.createVNode(T,{name:"draggable",size:14,cursor:"all-scroll"},null),Be=({icon:e,title:t,onClick:o,customClassName:n})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(T,{name:e,size:E.tableIconSize,cursor:"pointer",customClassName:n,onClick:o==null?void 0:o.bind(null)},null),default:()=>t}),Le=(e,t)=>{if(!t)return[null,null];for(let o=0;oe.columns.map((i,a)=>{const{key:s,title:u,children:c,fixed:p,isResizable:f,...b}=i,v=p==="left",m=p==="right",y={...b,title:u,key:s,fixed:p,isLeftFixedActivated:v,isRightFixedActivated:m,isResizable:f};return{...y,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(Be,{icon:"row_head",title:"固定在列首",customClassName:v?_e:"",onClick:r.bind(this,"left",y,a)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(T,{name:"resize_h",size:E.tableIconSize,cursor:"pointer",customClassName:f?_e:"",onClick:n.bind(this,y,a)},null),default:()=>"修改列宽"}),Vue.createVNode(Be,{icon:"row_end",title:"固定在列尾",customClassName:m?_e:"",onClick:r.bind(this,"right",y,a)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:a}=e;a&&A(a,i)},n=(i,a)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[a]=i,o(t.value)},r=(i,a,s)=>{const u=`${i}FixedActivated`,c=`${i==="left"?"right":"left"}FixedActivated`;a[c]=!1,a[u]=!a[u],a[u]?a.fixed=i:a.fixed=void 0,t.value[s]=a,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:a,dropPosition:s})=>{const[u,c]=Le(a,t.value);if(u===null||c===null)return;u.splice(c,1);const[p,f]=Le(i,t.value);p===null||f===null||(s==="before"?p.splice(f,0,a):p.splice(f+1,0,a),o(p))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(T,{name:"setting",size:E.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:Fr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),Kr=Vue.defineComponent({name:"TablePrint",props:se,setup(e){const{wrapperRef:t}=Vue.inject(E.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:n={},domToImageOptions:r}={},title:l}=e;(n.documentTitle===""||n.documentTitle===void 0||n.documentTitle===null)&&(n.documentTitle=typeof l=="string"?l:""),Eo(t,{printOptions:n,domToImageOptions:r})}}},render(){return Vue.createVNode(T,{name:"print",size:E.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),Ur=Vue.defineComponent({name:"TablePropsSelect",props:{...se,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=Vue.ref(!1),o=Vue.ref([]),n=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],r=i=>{const{onPopselectChange:a}=e;a&&A(a,i)};return(()=>{const{striped:i,bordered:a,onInitialed:s}=e;i&&o.value.push("striped"),a&&o.value.push("bordered"),s&&A(s,o.value)})(),{propsPopselectValue:o,propsOptions:n,popoverShow:t,updatePopselectValue:r}},render(){return Vue.createVNode(naive.NPopselect,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:this.propsOptions,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(T,{name:"expanded",size:E.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function qr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ll=Vue.defineComponent({name:"RTable",props:se,setup(e,t){const{expose:o}=t,n=Vue.ref(),r=Vue.ref(),l=ge(16),i=ge(16),a=Vue.reactive({x:0,y:0,showContextMenu:!1}),s=Vue.reactive({size:e.size}),u=Vue.ref({striped:!1,bordered:!1}),c=(d,h)=>{const{onContextMenuClick:S}=e;S&&A(S,d,h),a.showContextMenu=!1},p=(d,h)=>{var w;return{...(w=e.rowProps)==null?void 0:w.call(e,d,h),onContextmenu:e.disabledContextMenu?void 0:g=>{g.preventDefault(),a.showContextMenu=!1,Vue.nextTick().then(()=>{a.showContextMenu=!0,a.x=g.clientX,a.y=g.clientY})}}},f=d=>{s.size=d},b=d=>{const{onUpdateColumns:h,"onUpdate:columns":S}=e;h&&A(h,d),S&&A(S,d)},v=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(()=>Boolean).map(h=>typeof h=="function"?h():h)},m=d=>{Object.keys(u.value).forEach(S=>{u.value[S]=d.includes(S)})},y=d=>{const h=()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(Kr,d,null),Vue.createVNode($r,Vue.mergeProps(d,{onChangeSize:f.bind(this)}),null),Vue.createVNode(Br,null,null),Vue.createVNode(Wr,Vue.mergeProps(d,{onUpdateColumn:b.bind(this)}),null),Vue.createVNode(Ur,Vue.mergeProps(d,{onPopselectChange:m.bind(this),onInitialed:m.bind(this)}),null)]);return e.toolOptions?e.coverTool?v:()=>Vue.createVNode(Vue.Fragment,null,[h(),v()]):h};return Vue.provide(E.tableKey,{uuidTable:i,uuidWrapper:l,wrapperRef:r}),o({rTableInst:n,uuidTable:i,uuidWrapper:l}),{uuidWrapper:l,uuidTable:i,contextMenuReactive:a,rTableInst:n,combineRowProps:p,contextMenuSelect:c,privateReactive:s,tool:y,wrapperRef:r,propsPopselectValue:u}},render(){const{$props:e,$attrs:t,wrapperBordered:o,uuidWrapper:n,privateReactive:r,disabledContextMenu:l,contextMenuReactive:i,contextMenuOptions:a,uuidTable:s,title:u,$slots:c,propsPopselectValue:p}=this,{tool:f,combineRowProps:b,contextMenuSelect:v}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps({ref:"wrapperRef",bordered:o},{id:n}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({ref:"rTableInst"},{id:s},t,e,p,{rowProps:b.bind(this),size:r.size}),{...c}),l?null:Vue.createVNode(naive.NDropdown,{show:i.showContextMenu,placement:"bottom-start",trigger:"manual",x:i.x,y:i.y,options:a,onClickoutside:()=>i.showContextMenu=!1,onSelect:v.bind(this)},null)]),header:re(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":()=>{let m;return Vue.createVNode(naive.NFlex,{align:"center"},qr(m=f(e))?m:{default:()=>[m]})},footer:()=>{var m;return(m=c.tableFooter)==null?void 0:m.call(c)},action:()=>{var m;return(m=c.tableAction)==null?void 0:m.call(c)}})}}),Gr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Hr=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Gr),setup(e){const{getKeepAliveInclude:t}=aa(),{setupKeepAlive:o,maxKeepAliveLength:n,keepAliveExclude:r}=tt;return(l,i)=>{const a=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createBlock(a,null,{default:Vue.withCtx(({Component:s,route:u})=>[s?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:l.transitionPropName,mode:l.transitionMode,appear:l.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(n),include:Vue.unref(t),exclude:Vue.unref(r)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:u.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})}}});var Yr={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.15","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.11","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Xr=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,po=(e,t,o)=>{const n=[];if(Xr(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const r of e.children){const l=po(r,t,o);l.length>0&&n.push(e,...l)}return n},Zr=(e,t,o)=>{const n=[];for(const r of e){const l=po(r,t,o);l.length>0&&n.push(...l)}return n},Qr=e=>{const{breadcrumbLabel:t}=e,{layout:{sideBarLogo:o}}=Yr,n=o?o.title:"";document.title=t+" - "+n},Jr=e=>{const{meta:{icon:t}}=e;if(!t)return;if(U(t,"Object"))return()=>t;const o=Vue.h(T,{name:t,size:Y.menuCollapsedIconSize,cursor:"pointer"},{});return()=>o},mo=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:o}=t;if(o===!1)return;const{t:n}=te(),{label:r,icon:l,type:i,i18nLabel:a}=t,s={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>a?n(a):r||null,c=()=>l&&(a||r)||!l&&(a||r)?null:{"padding-right":"0"};if(U(t,"Object"))return()=>Vue.h(naive.NTag,{...s,type:i||"primary",style:c()},{default:()=>u(),icon:()=>l})},Fe=()=>{const{getRootPath:e}=Q();return ie(M.appMenuKey,"sessionStorage",{defaultValue:e.value})},ea=e=>e[0]==="/",ho=(e,t=[],o="")=>{var n;if(!Array.isArray(e))return[];for(const r of e){const l=o+(ea(r.path)?r.path:"/"+r.path);if((n=r.children)!=null&&n.length){ho(r.children,t,l);continue}else t.push({...r,path:l})}return t},ta=e=>Array.isArray(e)?ho(Yo(e)):[],fo=()=>br(yr()),oa=()=>ta(fo());let me;const go=(e,t)=>{var o;if(me&&je(me.fullPath,t))return me;for(const n of e){if(je(n.fullPath,t))return me=n,n;if((o=n.children)!=null&&o.length){go(n.children,t);continue}}},yo=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),o=VueRouter.useRoute(),{t:n}=te(),{setKeepAliveInclude:r}=la(),l=Vue.reactive({menuKey:Fe(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),i=Vue.ref(!0),a=d=>{const{meta:h}=d,{i18nKey:S,noLocalTitle:w}=h,g=Vue.computed(()=>S?n(`${S}`):w),N={...d,key:d.fullPath,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>g.value}),breadcrumbLabel:g.value},V=Object.assign({},N,{icon:Jr(d),extra:mo(d)});return d.fullPath===Fe()&&(l.currentMenuOption=V),V.show=So(V),V},s=d=>{l.breadcrumbOptions=Zr(l.options,"fullPath",d)},u=(d,h=!0)=>{const w=Array.isArray(d)?[...d]:[d];h?l.menuTagOptions.push(...w):l.menuTagOptions=w},c=(d,h)=>{l.menuTagOptions.find(w=>w.fullPath===d)||l.menuTagOptions.push(h)},p=(d,h,S)=>{const{meta:w}=h;if(w.windowOpen)window.open(w.windowOpen);else{e({path:String(d),query:S});const{sameLevel:g}=w;if(r(h),Qr(h),!g)c(d,h),s(d),l.menuKey=d,l.currentMenuOption=h,De(M.appMenuKey,d);else{const N=ye(a(h),["breadcrumbLabel","children","key","meta","name","path","show"]);l.breadcrumbOptions.find(k=>k.key===N.key)||l.breadcrumbOptions.push({...N,fullPath:String(N.key)})}}},f=async(d,h)=>{const[S]=d.split("?"),w=t().find(g=>g.path===S);if(w){const g=ye(w,["children","meta","path","name","redirect"]);p(S,a({...g,fullPath:g.path}),h)}},b=()=>new Promise(d=>{const h=(S,w)=>{var N;const g=[];for(const V of S){let k=`${w.endsWith("/")?w:w+"/"}${V.path}`;if(k=k.replace(/\/+/g,"/"),(N=V.children)!=null&&N.length)V.children=h(V.children,k);else if(!Vo(V.meta))continue;g.push(a({...V,fullPath:k}))}return g};if(l.options=h(fo(),""),l.currentMenuOption){const{currentMenuOption:S}=l;s(S.key),c(S.fullPath,S)}d()}),v=d=>l.collapsed=d,m=(d,h=1)=>l.menuTagOptions.splice(d,h),y=async()=>{i.value&&(await b(),i.value=!1)};return Vue.watch(()=>o.fullPath,async(d,h)=>{await y(),d!==h&&await f(d,o.query)},{immediate:!0}),{...Vue.toRefs(l),changeMenuModelValue:p,collapsedMenu:v,spliceMenTagOptions:m,setMenuTagOptions:u,resolveOption:a}},{persist:{key:M.appPiniaMenuStore,storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions"]}}),bo=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=n=>new Promise((r,l)=>{Xo(n)?l({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:n.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},r({code:0,message:"登陆成功",data:e.signingCallback}))}),o=()=>{window.$message.info("账号退出中..."),$o("__all_sessionStorage__","sessionStorage"),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:M.appPiniaSigningStore,paths:["signingCallback"],storage:sessionStorage}}),vo=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=tt,t=Vue.reactive({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,n=l=>{const i=o(),{name:a,meta:{keepAlive:s}}=l;if(s){if(i=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(a))}},r=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:n,getKeepAliveInclude:r}},{persist:{key:M.appPiniaKeepAliveStore,storage:window.sessionStorage,paths:["keepAliveInclude"]}}),Z=()=>{const e=yo(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),n=Vue.computed(()=>e.menuKey),r=Vue.computed(()=>{const{getRootPath:a}=Q();return e.menuTagOptions.map((s,u,c)=>(s.key===n.value&&s.key!==a.value?s.closeable=!0:s.closeable=!1,s.key===a.value&&(s.closeable=!1),c.length<=1&&(s.closeable=!1),s))}),l=Vue.computed(()=>e.currentMenuOption),i=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:o,getMenuKey:n,getMenuTagOptions:r,getCurrentMenuOption:l,getCollapsed:i}},ce=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r}=yo();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r}},I=()=>{const e=at(),t=Vue.computed(()=>e.drawerPlacement),o=Vue.computed(()=>e.primaryColorOverride),n=Vue.computed(()=>e.appTheme),r=Vue.computed(()=>e.menuTagSwitch),l=Vue.computed(()=>e.breadcrumbSwitch),i=Vue.computed(()=>e.localeLanguage),a=Vue.computed(()=>e.lockScreenSwitch),s=Vue.computed(()=>e.copyrightSwitch),u=Vue.computed(()=>e.contentTransition),c=Vue.computed(()=>e.watermarkSwitch),p=Vue.computed(()=>e.watermarkConfig),f=Vue.computed(()=>e.appRootRoute);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:n,getMenuTagSwitch:r,getBreadcrumbSwitch:l,getLocaleLanguage:i,getLockScreenSwitch:a,getCopyrightSwitch:s,getContentTransition:u,getWatermarkSwitch:c,getWatermarkConfig:p,getAppRootRoute:f}},z=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=at();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},na=()=>{const e=bo();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},ra=()=>{const{signing:e,logout:t}=bo();return{signing:e,logout:t}},aa=()=>{const e=vo();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},la=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=vo();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},Ml=async e=>{const t=Pinia.createPinia();e.use(t),t.use(Ho)},Vo=e=>{const{getSigningCallback:t}=na(),{role:o}=e;return pe!=null&&pe.length&&pe.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},So=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n,env:r}=t,{MODE:l}=Ae();return!(n||o||r&&typeof r=="string"&&r!==l||r&&Array.isArray(r)&&!r.includes(l))},ia=e=>{e.beforeEach(()=>{window==null||window.$loadingBar.start()}),e.afterEach(()=>{window==null||window.$loadingBar.finish()}),e.onError(()=>{window==null||window.$loadingBar.error()})},sa=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=Tn;t&&ia(e),o&&Vr(e)},we=(e=!0)=>{const{router:t}=be(),{push:o,replace:n}=t,{getRootPath:r}=Q();De(M.appMenuKey,r.value),e?n(r.value):o(r.value)};var ca={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.15","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.11","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const ua=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{layout:{sideBarLogo:t}}=ca;return{sideBarLogo:t,handleSideBarLogoClick:()=>{t&&t.url&&(t.jumpType==="station"?e.push(t.url):window.open(t.url))},TemplateLogo:({cursor:r})=>Vue.createVNode(T,{name:t.icon,size:"30",cursor:r},null)}},render(){var e,t,o,n;return(e=this.sideBarLogo)!=null&&e.icon&&((t=this.sideBarLogo)!=null&&t.title)?Vue.createVNode("div",{class:["ray-menu__logo",(o=this.sideBarLogo)!=null&&o.url?"ray-menu__logo-url":null],onClick:this.handleSideBarLogoClick.bind(this)},[(n=this.sideBarLogo)!=null&&n.icon?this.collapsed?Vue.createVNode(naive.NPopover,{placement:"right"},{trigger:()=>Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null),default:()=>{var r;return(r=this.sideBarLogo)==null?void 0:r.title}}):Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null):null,Vue.createVNode("h1",{class:[this.collapsed?null:"ray-menu__logo-title--open","ray-menu__logo-title"]},[Vue.createVNode(naive.NEllipsis,null,{default:()=>{var r;return[(r=this.sideBarLogo)==null?void 0:r.title]}})])]):null}}),da=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o}=ce(),{getMenuOptions:n,getCollapsed:r,getMenuKey:l}=Z(),i=Vue.computed({get:()=>(Vue.nextTick().then(()=>{u()}),l.value),set:()=>{a.value&&W("globalDrawerValue",!1)}}),{isTabletOrSmaller:a}=ve(),s=Vue.computed({get:()=>X("globalDrawerValue").value,set:p=>{W("globalDrawerValue",p)}}),u=()=>{const p=i.value;Vue.nextTick().then(()=>{var f,b;(b=(f=e.value)==null?void 0:f.showOption)==null||b.call(f,p)})};return{isTabletOrSmaller:a,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{class:"app-menu__sider",showTrigger:!a.value,collapseMode:Y.menuCollapsedMode,collapsedWidth:Y.menuCollapsedWidth,onUpdateCollapsed:o.bind(this),nativeScrollbar:!1},{default:()=>[Vue.createVNode(ua,{collapsed:r.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:i.value,"onUpdate:value":p=>i.value=p,options:n.value,indent:Y.menuCollapsedIndent,collapsed:r.value,collapsedIconSize:Y.menuCollapsedIconSize,collapsedWidth:Y.menuCollapsedWidth,onUpdateValue:(p,f)=>{t(p,f)},accordion:Y.menuAccordion},null)]}),modelGlobalDrawerValue:s}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":o=>this.modelGlobalDrawerValue=o,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class pa{constructor(){Ie(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var o;return((o=t.cancelConfig)==null?void 0:o.cancel)??!0}generateRequestKey(t){const{method:o,url:n}=t;return[n||"",o||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var o;if(this.isAppending(t)){const n=this.generateRequestKey(t);if(this.pendingRequest.has(n))t.signal=(o=this.pendingRequest.get(n))==null?void 0:o.signal;else{const r=new AbortController;t.signal=r.signal,this.pendingRequest.set(n,r)}}}removePendingRequest(t){const o=this.generateRequestKey(t);this.pendingRequest.has(o)&&(this.pendingRequest.get(o).abort(),this.pendingRequest.delete(o))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const Ce={requestInstance:null,responseInstance:null},Ne={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},he={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},ma=new pa,Dl=()=>{const e=(a,s)=>{s==="requestInstance"?Ce.requestInstance=a:Ce.responseInstance=a},t=a=>Ce[a],o=(a,s,u)=>{u==="ok"?Ne[a]=s:he[a]=s},n=(a,s)=>s==="ok"?Ne[a]:he[a],r=(a,...s)=>{Array.isArray(a)&&(a==null||a.forEach(u=>{typeof u=="function"&&u(...s)}))};return{createAxiosInstance:e,setImplement:o,getImplement:n,getAxiosInstance:t,beforeFetch:(a,s,u)=>{const c=u==="ok"?Ne[s]:he[s],p=t(a),{MODE:f}=Ae();p&&r(c,p,f)},fetchError:(a,s,u)=>{const c=he[u],{MODE:p}=Ae();r(c,s,p)}}},ha=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{ma.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),_o=Vue.defineComponent({name:"LayoutContentWrapper",setup(){const e=VueRouter.useRouter(),{maximize:t}=wo(),{getContentTransition:o}=I(),n=Vue.ref(!1),r={opacitySpinning:"0"},l=X("globalMainLayoutLoad"),i=X("layoutContentMaximize"),a=X("layoutContentSpinning");return(()=>{e.beforeEach(()=>{n.value=!0}),e.afterEach(()=>{n.value=!1})})(),{globalMainLayoutLoad:l,spinning:n,themeOverridesSpin:r,getContentTransition:o,layoutContentMaximize:i,maximize:t,layoutContentSpinning:a}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:o}=this,{maximize:n}=this;return Vue.createVNode(naive.NSpin,{show:this.spinning||!e||o,description:"loading...",size:"large",themeOverrides:this.themeOverridesSpin,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{n(!1)}},[Vue.createVNode(T,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(ha,null,null),e?Vue.createVNode(Hr,{class:"content-wrapper",transitionPropName:this.getContentTransition+"-transform"},null):null]})}}),fa=Object.freeze(Object.defineProperty({__proto__:null,default:_o},Symbol.toStringTag,{value:"Module"}));var ga={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.15","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.11","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const ya=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=ga;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),We=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const o=r=>{t("click",r)};return{iconClick:o,Icon:()=>Vue.createVNode(T,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:o.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),ba=Vue.defineComponent({name:"ThemeSwitch",setup(){const{changeDarkTheme:e,changeLightTheme:t}=el(),{getAppTheme:o}=I(),n=Vue.ref(o.value);return{changeDarkTheme:e,changeLightTheme:t,getAppTheme:o,railStyle:({checked:l})=>l?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:n}},render(){const{$t:e,changeDarkTheme:t,changeLightTheme:o,railStyle:n}=this;return Vue.createVNode(naive.NFlex,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":r=>this.modelAppThemeRef=r,railStyle:n.bind(this),onUpdateValue:r=>r?t():o()},{"checked-icon":()=>Vue.createVNode(T,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(T,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function fe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const va=Vue.defineComponent({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:o,updateSettingState:n}=z(),{getAppTheme:r,getPrimaryColorOverride:l,getMenuTagSwitch:i,getBreadcrumbSwitch:a,getCopyrightSwitch:s,getContentTransition:u,getWatermarkSwitch:c}=I(),p=Vue.computed({get:()=>e.show,set:b=>{t("update:show",b)}}),f=Vue.computed({get:()=>({getMenuTagSwitch:i.value,getBreadcrumbSwitch:a.value,getCopyrightSwitch:s.value,getContentTransition:u.value,getWatermarkSwitch:c.value}),set:b=>{}});return{modelShow:p,changePrimaryColor:o,getAppTheme:r,getPrimaryColorOverride:l,updateSettingState:n,modelSwitchReactive:f}},render(){let e,t,o,n;const{$t:r,changePrimaryColor:l,updateSettingState:i}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:r("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NFlex,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},fe(e=r("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(ba,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},fe(t=r("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:j.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":a=>this.getPrimaryColorOverride.common.primaryColor=a,onUpdateValue:l.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},fe(o=r("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":a=>this.modelSwitchReactive.getContentTransition=a,options:_n,onUpdateValue:a=>{i("contentTransition",a)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},fe(n=r("headerSettingOptions.InterfaceDisplay"))?n:{default:()=>[n]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getMenuTagSwitch=a,onUpdateValue:a=>i("menuTagSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getBreadcrumbSwitch=a,onUpdateValue:a=>i("breadcrumbSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getWatermarkSwitch=a,onUpdateValue:a=>i("watermarkSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getCopyrightSwitch=a,onUpdateValue:a=>i("copyrightSwitch",a)},null)]})]})]})]})]})}});function Va(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Sa=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ce(),{getBreadcrumbOptions:t}=Z(),{isTabletOrSmaller:o}=ve();return{getBreadcrumbOptions:t,dropdownSelect:(l,i)=>{e(l,i)},breadcrumbItemClick:l=>{var i;if(!((i=l.children)!=null&&i.length)){const{meta:a={}}=l;a.sameLevel||e(l.fullPath,l)}},isTabletOrSmaller:o}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:o}=this,{dropdownSelect:n,breadcrumbItemClick:r}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},Va(e=o.map(l=>Vue.createVNode(naive.NBreadcrumbItem,{key:l.fullPath,onClick:r.bind(this,l)},{default:()=>{var i;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",keyField:"fullPath",options:l.children&&((i=l.children)==null?void 0:i.length)>1?l.children:[],onSelect:n.bind(this)},{default:()=>Vue.createVNode("span",null,[l.label&&typeof l.label=="function"?l.label():l.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function ke(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const _a=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o,resolveOption:n}=ce(),{getRoutes:r}=VueRouter.useRouter(),l=Vue.computed({get:()=>e.show,set:g=>{t("update:show",g),g||f()}}),i=Vue.reactive({searchValue:null,searchOptions:[]}),a=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let s=0,u=s;const{isTabletOrSmaller:c}=ve(),p=Vue.ref(!1),f=()=>{i.searchOptions=[],i.searchValue=null,s=0,u=s},b=g=>{l.value||(g.ctrlKey||g.metaKey)&&g.key==="k"&&(g.preventDefault(),g.stopPropagation(),f(),l.value=!0)},v=g=>{if(g)p.value=!0;else{p.value=!1,i.searchOptions=[];return}const N=r().reduce((V,k)=>{var q;const R=ye(k,["children","meta","path","name"]),P=n({...R,fullPath:k.path}),{breadcrumbLabel:$}=P;return(q=$==null?void 0:$.toLocaleLowerCase())!=null&&q.includes(g.toLocaleLowerCase())&&So(P)&&V.push(P),V},[]);setTimeout(()=>{i.searchOptions=N,Vue.nextTick().then(()=>{y()}),p.value=!1},500)},m=g=>{if(g){const{meta:N}=g;N.windowOpen?window.open(N.windowOpen):(l.value=!1,o(g.fullPath,g))}},y=()=>{const g=i.searchOptions[s],N=i.searchOptions[u],V="content-item--active";g&&Vue.nextTick().then(()=>{const k=Pe(`attr:data_path="${g.path}"`),R=N?Pe(`attr:data_path="${N==null?void 0:N.path}"`):null;if(R!=null&&R.length){const[P]=R;Bo(P,V)}if(k!=null&&k.length){const[P]=k;Fo(P,V)}})},d=g=>{const{icon:N}=g;return typeof N=="string"?Vue.createVNode(T,{name:N,size:"24"},null):typeof N=="function"?()=>N:Vue.createVNode(T,{name:"search",size:"24"},null)},h=g=>{g==="up"?s=s-1<0?0:s-1:g==="down"&&(s=s+1>=i.searchOptions.length?i.searchOptions.length-1:s+1)},S=g=>{const N=g.key;switch((N==="ArrowUp"||N==="ArrowDown"||N==="Enter")&&(g.preventDefault(),g.stopPropagation()),u=s<=0?0:s,N){case"ArrowUp":h("up");break;case"ArrowDown":h("down");break;case"Enter":const V=i.searchOptions[s];V&&m(V);break}y()},w=({menuOption:g})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:m.bind(this,g),data_path:g.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[d(g.meta)]),Vue.createVNode("div",{class:"content-item-label"},[g.breadcrumbLabel])]});return Vue.watchEffect(()=>{c.value&&(l.value=!1)}),le(window,"keydown",g=>{b(g),S(g)},!0),{...Vue.toRefs(i),modelShow:l,helperTipOptions:a,fuzzySearchMenuOptions:Zo(v,300),searchItemClick:m,RenderPreIcon:d,isTabletOrSmaller:c,SearchItem:w,loading:p}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:o}=this,{SearchItem:n,fuzzySearchMenuOptions:r,$t:l}=this;return e?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":i=>this.modelShow=i,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode(naive.NCard,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":i=>this.searchValue=i,clearable:!0,onInput:r.bind(this)},{prefix:()=>Vue.createVNode(T,{name:"search",size:"24"},null)}),default:()=>{let i;return Vue.createVNode(naive.NScrollbar,null,{default:()=>[Vue.createVNode(naive.NSpin,{show:o},{default:()=>[t.length?Vue.createVNode(naive.NFlex,{vertical:!0,size:[0,6],class:"global-search__card-content"},ke(i=t.map(a=>Vue.createVNode(n,{menuOption:a,key:a.fullPath},null)))?i:{default:()=>[i]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NFlex,{justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createTextVNode("没有搜索结果")]})})]})]})},action:()=>{let i;return Vue.createVNode(naive.NFlex,{justify:"flex-start",align:"center",size:[16,0]},ke(i=this.helperTipOptions.map(a=>Vue.createVNode(naive.NFlex,{key:a.label,size:[4,0]},{default:()=>[a.icon.map(s=>Vue.createVNode(naive.NFlex,{class:"item-icon",align:"center",justify:"center"},ke(s)?s:{default:()=>[s]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[a.label]})]})))?i:{default:()=>[i]})}})])])]})}});function wa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ca=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const n=Wo();return n==="MacOS"?"⌘ + K":"CTRL + K"},click:n=>{const{onClick:r}=e;r&&A(r,n)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:o}=this;return Vue.createVNode(naive.NButton,{bordered:!1,onClick:t.bind(this)},{icon:()=>Vue.createVNode(T,{name:"search",size:"16"},null),default:()=>{let n;return Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[o("headerTooltip.Search"),Vue.createVNode(naive.NButton,{size:"tiny"},wa(n=e())?n:{default:()=>[n]})]})}})}}),Na=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,...naive.flexProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number],default:"medium"},avatarSize:{type:[String,Number],default:"medium"}},setup(e){const t=ie(M.signing),o=Vue.computed(()=>({"--app-avatar-cursor":e.cursor}));return{signing:t,cssVars:o}},render(){const{signing:e,cssVars:t,spaceSize:o,avatarSize:n,$props:r}=this;return Vue.createVNode(naive.NFlex,Vue.mergeProps({class:"app-avatar"},this.$props,{style:t,size:o}),{default:()=>[Vue.createVNode(naive.NAvatar,Vue.mergeProps(r,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),null),Vue.createVNode("div",{class:"app-avatar__name"},[e==null?void 0:e.name])]})}}),ka=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Ta={logout:()=>{const{logout:e}=ra();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=z();e("lockScreenSwitch",!0)}},Oa=e=>{const t=Ta[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},xa=e=>{const{isTabletOrSmaller:t}=e,o=[],n=[{name:"menu",size:18,eventKey:"menu"}];return t.value?n:o},Ra=e=>{const{isFullscreen:t,isTabletOrSmaller:o}=e,{t:n}=te(),r=[{name:"fullscreen",size:18,tooltip:t.value?n("headerTooltip.CancelFullScreen"):n("headerTooltip.FullScreen"),eventKey:"screen"},{name:"github",size:18,tooltip:n("headerTooltip.Github"),eventKey:"github"},{name:"setting",size:18,tooltip:n("headerTooltip.Setting"),eventKey:"setting"}],l=[...r],i=[...r];return o.value?i:l},Aa=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=z(),{t:o}=te(),[n,{toggleFullscreen:r,isEnabled:l}]=Xe(document.getElementsByTagName("html")[0]),{getDrawerPlacement:i,getBreadcrumbSwitch:a}=I(),s=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:c}=ve(),p=X("globalDrawerValue"),f=Vue.computed(()=>xa({isFullscreen:n,isTabletOrSmaller:c})),b=Vue.computed(()=>Ra({isFullscreen:n,isTabletOrSmaller:c})),v={search:()=>{u.value=!0},setting:()=>{s.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{l||window.$message.warning(o("globalMessage.isEnabledFullscreen")),r()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{W("globalDrawerValue",!p.value)}};return{leftIconOptions:f,rightTooltipIconOptions:b,toolIconClick:d=>{var h;(h=v[d])==null||h.call(v)},showSettings:s,updateLocale:e,getDrawerPlacement:i,getBreadcrumbSwitch:a,globalSearchShown:u,isRenderVNode:d=>c.value?null:d}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:o,getBreadcrumbSwitch:n}=this,{toolIconClick:r,updateLocale:l,isRenderVNode:i}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(_a,{show:this.globalSearchShown,"onUpdate:show":a=>this.globalSearchShown=a},null),Vue.createVNode(naive.NFlex,{class:"layout-header__method",align:"center",justify:"space-between"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[t.map(a=>Vue.createVNode(We,{key:a.name,iconName:a.name,tooltipText:Vue.isRef(a.tooltip)?a.tooltip.value:a.tooltip,customClassName:a.iconClass,onClick:r.bind(this,a.name)},null)),n?Vue.createVNode(Sa,null,null):null]}),Vue.createVNode(naive.NFlex,{align:"center",size:[16,0]},{default:()=>[i(Vue.createVNode(Ca,{onClick:a=>{a.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(a=>Vue.createVNode(We,{key:a.name,iconName:a.name,tooltipText:Vue.isRef(a.tooltip)?a.tooltip.value:a.tooltip,customClassName:a.iconClass,onClick:r.bind(this,a.name)},null)),Vue.createVNode(naive.NDropdown,{options:ot,onSelect:a=>l(String(a)),trigger:"click"},{default:()=>[Vue.createVNode(T,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]}),Vue.createVNode(naive.NDropdown,{options:ka(),onSelect:Oa.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(Na,{avatarSize:"small",align:"center",cursor:"pointer"},null)]})]})]}),Vue.createVNode(va,{show:this.showSettings,"onUpdate:show":a=>this.showSettings=a,placement:o},null)]})}}),Pa=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(Aa,null,null)]})}}),La={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},Ma=et('',1),Da=[Ma];function za(e,t){return Qe(),Je("svg",La,[...Da])}const Ia={render:za},ja={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},Ea=et('',1),$a=[Ea];function Ba(e,t){return Qe(),Je("svg",ja,[...$a])}const Fa={render:Ba};function Wa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ka=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:n,getMenuTagOptions:r}=Z(),{changeMenuModelValue:l}=ce(),{getRootPath:i}=Q(),{maximize:a}=wo(),{reload:s}=Ja(),{close:u,closeAll:c,closeRight:p,closeLeft:f,closeOther:b}=tl(),v=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let m=-1;const y={size:16},d=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(T,{name:"reload",size:y.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(T,{name:"close",size:y.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(Fa,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(Ia,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(T,{name:"other",size:y.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(T,{name:"resize_h",size:y.size},null),disabled:!1}]),h=ge(16),S={closeCurrentPage:()=>{n.value!==i.value&&u(m)},reloadCurrentPage:()=>{s()},closeAll:()=>{c()},closeRight:()=>{p(m)},closeLeft:()=>{f(m)},closeOther:()=>{b(m)}},w=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),g="menu_tag_data",N=X("globalMainLayoutLoad"),V=_=>{u(_)},k=(_,C)=>{d.value.forEach(L=>{if(L.key===_){L.disabled=C;return}})},R=_=>{w.actionDropdownShow=!1,l(_.fullPath,_)},P=()=>{const _=document.getElementById(h);if(_)return Array.from(_.childNodes).find(de=>Ko(de,"n-scrollbar-container").value)},$=_=>{var L;const C=P();if(C){const de=C.scrollLeft||0,ze=_==="left"?Math.max(0,de-200):de+200;(L=o.value)==null||L.scrollTo({left:ze,behavior:"smooth"})}},q=_=>{var C;w.actionDropdownShow=!1,(C=S[_])==null||C.call(S)},ue=(_,C)=>{C.preventDefault(),w.actionDropdownShow=!1,m=_,Vue.nextTick(()=>{w.actionDropdownShow=!0,w.x=C.clientX,w.y=C.clientY})},G=()=>{const _=r.value.length-1,{closeable:C}=r.value[m]??{};k("closeCurrentPage",!C),m===_?k("closeRight",!0):m<_&&k("closeRight",!1),m===0?k("closeLeft",!0):m>0&&k("closeLeft",!1)},No=()=>{m=r.value.findIndex(C=>C.fullPath===n.value),G()},ko=_=>{r.value.length>1&&_.fullPath!==i.value&&(_.closeable=!0)},To=_=>{_.fullPath!==n.value&&(_.closeable=!1)},Oo=()=>{P()&&Vue.nextTick().then(()=>{var C;(C=o.value)==null||C.scrollTo({left:99999,behavior:"smooth"})})},xo=()=>{Vue.nextTick().then(()=>{const _=Pe(`attr:${g}="${n.value}"`);if(_!=null&&_.length){const[C]=_;Vue.nextTick().then(()=>{var L;(L=o.value)==null||L.scrollTo({left:C.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>r.value,(_,C)=>{d.value.forEach(L=>{v.includes(L.key)&&(_.length>1?L.disabled=!1:L.disabled=!0)}),C!=null&&C.length&&(_.length>(C==null?void 0:C.length)?Oo():_.length===(C==null?void 0:C.length)&&xo())},{immediate:!0}),Vue.watch(()=>w.actionDropdownShow,_=>{var C;_&&((C=Ze(G,100))==null||C())}),t({}),{getMenuTagOptions:r,closeCurrentMenuTag:V,getMenuKey:n,menuTagClick:R,moreOptions:d,scrollX:$,scrollRef:o,uuidScrollBar:h,actionDropdownSelect:q,actionState:w,menuTagContextMenu:ue,setCurrentContextmenuIndex:No,menuTagMouseenter:ko,menuTagMouseleave:To,MENU_TAG_DATA:g,iconConfig:{width:22,height:22},maximize:a,getRootPath:i,reload:s,globalMainLayoutLoad:N}},render(){let e;const{iconConfig:t,getRootPath:o,uuidScrollBar:n,getMenuTagOptions:r,MENU_TAG_DATA:l,globalMainLayoutLoad:i}=this,{maximize:a,closeCurrentMenuTag:s,scrollX:u,$t:c,menuTagClick:p,menuTagContextMenu:f,menuTagMouseenter:b,menuTagMouseleave:v,actionDropdownSelect:m,reload:y}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:m.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NFlex,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[Vue.createVNode(T,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:n}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},Wa(e=r.map((d,h)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:d.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:d.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,d),onContextmenu:f.bind(this,h),onMouseenter:b.bind(this,d),onMouseleave:v.bind(this,d),[l]:d.path}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:S,meta:{i18nKey:w}}=d;return w?c(w):S}}),(d.closeable||r.length===1)&&d.fullPath!==o?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:s.bind(this,h)}),{default:()=>[Vue.createVNode(T,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[d.fullPath!==o?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NFlex,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[Vue.createVNode(T,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:u.bind(this,"right")},null),Vue.createVNode(T,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{a(!0)}},null),Vue.createVNode(T,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${i?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{y()}},null),Vue.createVNode(uo,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(T,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),Ua=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(Ka,null,null)}}),qa=e=>{const t=Ve(e[0]),o=Ve(e[1]),n=Ve(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px - ${n.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`,"--layout-footer-height":`${n.height.value}px`}))},Ke=Mo(M.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),Ga=()=>({setLockAppScreen:o=>{Ke.value=o},getLockAppScreen:()=>Ke.value}),Ha=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:n,getCopyrightSwitch:r}=I(),{getLockAppScreen:l}=Ga(),i=qa([e,t,o]);return{getMenuTagSwitch:n,cssVarsRef:i,getLockAppScreen:l,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:o,getCopyrightSwitch:r}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:o}=this,{getLockAppScreen:n}=this;return n()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0},{default:()=>[Vue.createVNode(da,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(Pa,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(Ua,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:ee,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(_o,null,null)]}),o?Vue.createVNode(ya,{ref:"layoutFooterRef"},null):null]})]})}}),Ya=async()=>{const{getRootPath:e}=Q();return[{path:"/",name:"RLogin",component:()=>O(()=>import("./index-p964EGy5.js"),__vite__mapDeps([59,22,18,16,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,17,23,47,20,21,19,24,25,26,27,28,29,30,31,32,60]))},{path:"/",name:"RLayout",redirect:e.value,component:Ha,children:oa()}]};let ae;const Xa=async()=>VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:await Ya(),scrollBehavior:e=>{vr(e)}}),zl=async e=>{ae=await Xa(),e.use(ae),be(),sa(ae)},be=()=>{try{if(ae)return{router:ae};throw new Error}catch(e){throw new Error(`[useVueRouter]: An error occurred during registration of vue-router. ${e}`)}},Ue="YYYY-MM-DD HH:mm:ss",Za=()=>({locale:i=>{const a=Nn[i];a?B.locale(a):B.locale(kn)},getStartAndEndOfDay:i=>{const{format:a=Ue}=i??{},s=B(),u=s.startOf("day"),c=s.endOf("day"),p=s.format(a),f=u.format(a);return{today:s,startOfDay:u,endOfDay:c,formatToday:p,formatStartOfDay:f}},format:(i,a)=>{const{format:s=Ue}=a??{};return B(i).format(s)},isDayjs:i=>B.isDayjs(i),daysDiff:(i,a)=>{const s=B(i);return B(a).diff(s,"days")},isDateInRange:(i,a)=>{const{start:s,end:u}=a,c=B(i);return c.isAfter(s)&&c.isBefore(u)}});function ve(e){const{width:t,height:o}=Me(e),n=Vue.ref(!1);return Uo(()=>{n.value=t.value<=768}),{width:t,height:o,isTabletOrSmaller:n}}let qe=999,Te=!1;const H="ELEMENT-FULLSCREEN-RAY",{height:Ge}=Me(),He=document.createElement("style"),Qa=(e,t)=>{const{beforeEnter:o,beforeExit:n,enter:r,exit:l,backgroundColor:i,zIndex:a}=t??{},s={};let u=!1;const c=()=>{const m=F(e);if(!m)return;const{left:y,top:d}=m.getBoundingClientRect(),h=` - [${H}] { - position: fixed; - width: 100% !important; - height: ${Ge.value}px !important; - transform: translate(-${y}px, -${d}px) !important; - transition: all 0.3s var(--r-bezier); - z-index: ${U(a,"Null")||U(a,"Undefined")?qe:a} !important; - background-color: ${i??null}; - } - `;He.innerHTML=h,Te||document.head.appendChild(He)},p=()=>{const m=F(e);o==null||o(),m&&(m.getAttribute(H)||m.setAttribute(H,H),u||(u=!0,qe+=1),Te||(c(),Te=!0),s.transition=m.style.transition,m.style.transition="all 0.3s var(--r-bezier)",r==null||r())},f=()=>{n==null||n();const m=F(e);m&&m.removeAttribute(H),l==null||l()},b=()=>{const m=F(e);m&&(m.getAttribute(H)?f():p())},v=Vue.watch(()=>Ge.value,c);return qo(()=>{const m=F(e);m&&(m.style.transition=s.transition??"",m.removeAttribute(H)),v()}),{enter:p,exit:f,toggleFullscreen:b}},Oe={svg:oe.toSvg,png:oe.toPng,jpeg:oe.toJpeg,blob:oe.toBlob,pixelData:oe.toPixelData},Il=(e,t)=>{const{beforeCreate:o,created:n,createdError:r,finally:l,imageType:i}=t??{};return{create:s=>new Promise((u,c)=>{var f;const p=F(e);if(o==null||o(p),!p)return r==null||r(),c("useDomToImage: element is undefined.");(f=Oe[s??i??"jpeg"])==null||f.call(Oe,p,t).then(b=>(n==null||n(b,p),u(b))).catch(b=>(r==null||r(b),c(b))).finally(()=>{l==null||l()})})}},jl=(e,t)=>({print:()=>{const n=F(e)||e;Do({...t,printable:n})}}),wo=()=>({isLayoutContentMaximized:Vue.computed(()=>X("layoutContentMaximize").value),maximize:(o,n)=>{var a;const{scrollToOptions:r}=n??{},l=F(ee),{toggleFullscreen:i}=Qa(l,n);W("layoutContentMaximize",o),i(),r&&o&&((a=ee==null?void 0:ee.value)==null||a.scrollTo(r))}}),Ja=()=>({reload:(n=800)=>{W("globalMainLayoutLoad",!1),setTimeout(()=>W("globalMainLayoutLoad",!0),n)},openSpin:()=>{W("layoutContentSpinning",!0)},closeSpin:()=>{W("layoutContentSpinning",!1)}}),El=()=>({setWatermarkContent:r=>{const{getWatermarkConfig:l}=I(),i=Object.assign(l.value,{content:r}),{updateSettingState:a}=z();a("watermarkConfig",i)},showWatermark:()=>{const{updateSettingState:r}=z();r("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:r}=z();r("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:r}=I(),{updateSettingState:l}=z();l("watermarkSwitch",!r.value)}}),xe=e=>{const{getPrimaryColorOverride:t}=I(),{updateSettingState:o}=z();o("primaryColorOverride",e?Object.assign({},t.value,j.appNaiveUIThemeOverrides.dark,j.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,j.appNaiveUIThemeOverrides.light,j.appNaiveUIThemeOverridesCommon.light))},el=()=>{const e=()=>{const{getAppTheme:r}=I(),{t:l}=te();return{theme:r.value,themeLabel:r.value?l("headerSettingOptions.ThemeOptions.Dark"):l("headerSettingOptions.ThemeOptions.Light")}};return{changeDarkTheme:()=>{const{updateSettingState:r}=z();r("appTheme",!0),xe(!0)},changeLightTheme:()=>{const{updateSettingState:r}=z();r("appTheme",!1),xe(!1)},toggleTheme:()=>{const{theme:r}=e(),{updateSettingState:l}=z();l("appTheme",!r),xe(!r)},getAppTheme:e}},J=(e,t)=>{const{getMenuTagOptions:o}=Z();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>o.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:o.value[e],index:e}}else if(typeof e=="string"){const n=o.value.findIndex(r=>r.fullPath===e);return n>-1?{option:o.value[n],index:n}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:n}=e,r=o.value.findIndex(l=>l.fullPath===n);if(r===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:r}}};function tl(){const{getMenuTagOptions:e,getMenuKey:t}=Z(),{changeMenuModelValue:o,spliceMenTagOptions:n,setMenuTagOptions:r,resolveOption:l}=ce(),i=()=>e.value.findIndex(v=>v.fullPath===t.value);return{close:v=>{const m=J(v,"close");if(e.value.length!==1&&m){const{index:y,option:d}=m;if(n(y),d.fullPath===t.value){const h=e.value[y-1];h&&o(h.fullPath,h)}}},closeAll:()=>{n(0,e.value.length);const{getRootPath:v}=Q(),{router:{getRoutes:m}}=be(),y=m().find(d=>d.path===v.value);if(y){const d=ye(y,["children","meta","path","name","redirect"]),h=l(d);o(h.path,l({...h,fullPath:h.path}))}},closeRight:v=>{const m=J(v,"closeRight");if(m){const{option:y,index:d}=m,h=e.value.length-d,S=i();n(d+1,h),d<=S&&t.value!==y.fullPath&&o(y.fullPath,y)}},closeLeft:v=>{const m=J(v,"closeLeft");if(m){const{option:y,index:d}=m,h=i();n(0,d),h<=d&&t.value!==y.fullPath&&o(y.fullPath,y)}},closeOther:v=>{const m=J(v,"closeOther");if(m){const{option:y}=m;t.value!==y.fullPath?(n(0,e.value.length),o(y.fullPath,y)):r(y,!1)}},getCurrentTagIndex:i,checkCloseRight:v=>{const m=J(v,"checkCloseRight");if(m){const{index:y}=m,d=e.value.length-1;return!(y>=d)}return!1},checkCloseLeft:v=>{const m=J(v,"checkCloseRight");if(m){const{index:y}=m,d=e.value.length-1;return y===0?!1:y>0&&d>0}return!1}}}function $l(){return{navigationTo:(t,o)=>{const{router:{getRoutes:n,push:r,replace:l}}=be(),{isPush:i=!0,query:a}=o||{},s=u=>i?r({path:u,query:a}):l({path:u,query:a});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=Z();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const c=u.value[t],p=f=>{if(f.children&&f.children.length>0){const{children:[b]}=f;p(b);return}s(f.fullPath)};p(c)}else if(typeof t=="string"){const u=n().find(c=>c.path===t);u?s(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else s(t.fullPath)}}}function Q(){const{getAppRootRoute:e}=I(),{updateSettingState:t}=z(),o=e,n=Vue.computed(()=>e.value.path),r=Vue.computed(()=>e.value.name);return{getRootRoute:o,getRootPath:n,getRootName:r,setRootRoute:i=>{t("appRootRoute",Object.assign({},e.value,i))}}}const ol=(e,t)=>{const{show:o,...n}=t;e.meta.extra=Object.assign({},e.meta.extra,{...n,show:o}),e.extra=mo(e)},Ye=(e,t,o)=>{const n=go(e,t);n&&ol(n,o)},Re=(e,t,o)=>{const{getMenuOptions:n}=Z();if(typeof e=="string")Ye(n.value,e,o);else if(U(e,"Object")){const{fullPath:r}=e;Ye(n.value,r,o)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function Bl(){return{hidden:n=>{Re(n,"hidden",{show:!1})},show:n=>{Re(n,"show",{show:!0})},update:(n,r)=>{Re(n,"update",r)}}}const Fl=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const o={};return Object.keys(e).forEach(n=>{const r=e[n].default;let l=n.replace(`./${t}/`,"").replace(/^\.\//,"");const i=l.lastIndexOf(".");l=l.substring(0,i);const a=l.split("/"),s=a.shift(),u=a.join(".");s&&(u?(Se(o,s,o[s]||{}),Se(o[s],u,r)):Se(o,s,r||{}))}),o},nl=async e=>{var o;const t={};for(const n of e){const r=await Sn(Object.assign({"./lang/en-US.ts":()=>O(()=>import("./en-US-AoU-alhi.js"),__vite__mapDeps([61,20,21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32])),"./lang/zh-CN.ts":()=>O(()=>import("./zh-CN-viwDyPm2.js"),__vite__mapDeps([62,20,21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32]))}),`./lang/${n.key}.ts`),l=n.key;l&&(t[l]=((o=r==null?void 0:r.default)==null?void 0:o.message)??{})}return t},Wl=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},Co=()=>ie(M.localeLanguage,"localStorage",{defaultValue:wn});export{wl as A,ma as B,Dl as C,kn as D,Nl as E,uo as F,wo as G,$l as H,Ja as I,El as J,el as K,ot as L,Bl as M,we as N,Al as R,ba as T,O as _,Il as a,Cl as b,I as c,M as d,z as e,Na as f,Ga as g,ra as h,ve as i,X as j,Ml as k,zl as l,te as m,Wl as n,Q as o,W as p,Pl as q,T as r,Tl as s,Fl as t,jl as u,kl as v,Rl as w,Ol as x,xl as y,Ll as z}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-hrbHJX4t.js","assets/vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js","assets/lodash@4.17.21-yUHHMES2.js","assets/awesome-qr@2.1.5-rc.0-UnPo3EFD.js","assets/canvas@2.11.2-dZp4QMlu.js","assets/js-binary-schema-parser@2.0.3-CCV6nRej.js","assets/js-cookie@3.0.5-bc0KQLgp.js","assets/screenfull@5.2.0-q9gEF-YC.js","assets/qs@6.11.2-wwOruwhc.js","assets/side-channel@1.0.4-hl21th03.js","assets/get-intrinsic@1.2.1-NE0DZZ3B.js","assets/has-symbols@1.0.3-fNtejGuA.js","assets/has-proto@1.0.1-dzJH2Y5C.js","assets/function-bind@1.1.1-Y6-kkB5s.js","assets/has@1.0.3-rcPLRdvS.js","assets/call-bind@1.0.2-8lNE5ocE.js","assets/dayjs@1.11.10-A-QuG2Ol.js","assets/print-js@1.6.0-gYKv6oGQ.js","assets/currency.js@2.0.4--or6eeOG.js","assets/index-0vVhegrX.js","assets/@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js","assets/@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js","assets/utils-bL-oQI6P.js","assets/lodash-es@4.17.21-xgd1l9mE.js","assets/interactjs@1.10.26-I0IiZoEj.js","assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js","assets/dom-to-image@2.6.0-eHYYUq-2.js","assets/echarts@5.4.3-Vt5ZmFiA.js","assets/zrender@5.4.4-fafgp4mQ.js","assets/tslib@2.3.0-21A5UWR7.js","assets/@vue_runtime-core@3.4.15-xG7oRWIU.js","assets/@vue_reactivity@3.4.15-2zCDAkOA.js","assets/@vue_shared@3.4.15-JOA8BF6u.js","assets/index-3nkF0W6U.css","assets/index-6iZ4j1xO.js","assets/instance-0MR4YS8M.js","assets/index-kznjMqp-.css","assets/index-oh2YcAK7.js","assets/index-2gahowqI.js","assets/index-Eis-OABC.js","assets/index-9jx3SCbn.js","assets/index-ajyCn2oj.css","assets/index-SvzBi3Tl.js","assets/index-Trm8dVce.js","assets/index-d3p0BHDb.js","assets/index-A-lx2o6E.js","assets/index-xZvHBL1o.js","assets/ray-9TfU2AhD.js","assets/index--PxfyjRI.js","assets/index-HDKPr_0g.css","assets/index-2PELqkCs.js","assets/index-v5xFQW7A.js","assets/index-4oPeexgb.css","assets/index-6zHQf_S9.js","assets/index-iKuv6ZNn.css","assets/index-8A7sSbsl.js","assets/index-gFHrcW37.js","assets/index-wNfQSZJ3.js","assets/index-Btqqg3j9.css","assets/index-p964EGy5.js","assets/index-YZ6BMxRm.css","assets/en-US-AoU-alhi.js","assets/zh-CN-viwDyPm2.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/assets/hooks-v5yhfgkQ.js.gz b/assets/hooks-v5yhfgkQ.js.gz deleted file mode 100644 index ebafb8ec..00000000 Binary files a/assets/hooks-v5yhfgkQ.js.gz and /dev/null differ diff --git a/assets/index--PxfyjRI.js b/assets/index--PxfyjRI.js deleted file mode 100644 index 04c1a00a..00000000 --- a/assets/index--PxfyjRI.js +++ /dev/null @@ -1 +0,0 @@ -var g={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.15","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.11","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const V=Vue.defineComponent({name:"RelyAbout",setup(){const{pkg:t}=g,{dependencies:i,devDependencies:n,name:e,version:d}=t,c=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],l=Vue.ref([]),o=Vue.ref([]),v=[{name:"项目名称",label:e},{name:"版本信息",label:d},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],m=()=>{const s=r=>Object.keys(r).reduce((p,u)=>(p.push({name:u,relyVersion:r[u],relyAddress:""}),p),[]);l.value=s(i),o.value=s(n)},y=s=>{s.url&&window.open(s.url)};return Vue.onBeforeMount(()=>{m()}),{columns:c,dependenciesOptions:l,devDependenciesOptions:o,templateOptions:v,handleTagClick:y}},render(){let t,i,n;return Vue.createVNode("div",{class:"rely-about"},[Vue.createVNode(naive.NCard,{title:"关于项目"},{default:()=>[Vue.createTextVNode("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),Vue.createVNode(naive.NCard,{title:"项目信息"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(t=this.templateOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[Vue.createVNode(naive.NTag,Vue.mergeProps({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NCard,{title:"生产依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(i=this.dependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?i:{default:()=>[i]})]}),Vue.createVNode(naive.NCard,{title:"开发依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(n=this.devDependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{V as default}; diff --git a/assets/index--PxfyjRI.js.gz b/assets/index--PxfyjRI.js.gz deleted file mode 100644 index 98f7ae1d..00000000 Binary files a/assets/index--PxfyjRI.js.gz and /dev/null differ diff --git a/assets/index-8A7sSbsl.js b/assets/index-1fl0IMML.js similarity index 88% rename from assets/index-8A7sSbsl.js rename to assets/index-1fl0IMML.js index bb3ed520..bdcbee4c 100644 --- a/assets/index-8A7sSbsl.js +++ b/assets/index-1fl0IMML.js @@ -1 +1 @@ -import{y as d,z as s,r as c,F as V}from"./hooks-v5yhfgkQ.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";function p(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Y=Vue.defineComponent({name:"TableView",setup(){const e=[{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(a=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},p(a)?a:{default:()=>[a]}))},{title:"Remark",key:"remark",width:300},{title:"Action",key:"actions",render:t=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{size:"tiny"},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(V,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:o=>{window.$message.info(`当前选择: ${o}`)}},null)]})}],r=Vue.ref([...e].map(t=>({...t,width:400}))),u=Vue.ref([{key:0,name:"John Brown",age:32,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"},{key:1,name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["wow"],remark:"我是一条很长很长的备注"},{key:2,name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park",tags:["cool","teacher"],remark:"我是一条很长很长的备注"}]),n=[{label:"编辑",key:"edit"},{label:()=>Vue.createVNode("span",{style:"color: red;"},[Vue.createTextVNode("删除")]),key:"delete"}],l=Vue.reactive({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),i=t=>{window.$message.info(`${t}`)};return{...Vue.toRefs(l),tableData:u,actionColumns:r,baseColumns:e,tableMenuOptions:n,handleMenuSelect:i}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"RTable"},{default:()=>[Vue.createTextVNode("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),Vue.createVNode(d,{bordered:!1,collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:e=>window.$message.info(`我是 RCollapseGrid 组件${e?"收起":"展开"}的回调函数`)},{action:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{type:"primary"},{default:()=>[Vue.createTextVNode("搜索")]}),Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("重置")]})]),default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NSelect,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",clearable:!0},null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})])}),Vue.createVNode(s,{scrollX:2e3,title:Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode("span",null,[Vue.createTextVNode("标题插槽:")]),Vue.createVNode(naive.NSwitch,{onUpdateValue:e=>this.tableLoading=e},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":e=>this.actionColumns=e,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.handleMenuSelect.bind(this),toolOptions:[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(c,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})]},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{Y as default}; +import{C as d,E as s,w as c,I as V}from"./hooks-lxIXz5_l.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";function p(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Y=Vue.defineComponent({name:"TableView",setup(){const e=[{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(a=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},p(a)?a:{default:()=>[a]}))},{title:"Remark",key:"remark",width:300},{title:"Action",key:"actions",render:t=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{size:"tiny"},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(V,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:o=>{window.$message.info(`当前选择: ${o}`)}},null)]})}],r=Vue.ref([...e].map(t=>({...t,width:400}))),u=Vue.ref([{key:0,name:"John Brown",age:32,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"},{key:1,name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["wow"],remark:"我是一条很长很长的备注"},{key:2,name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park",tags:["cool","teacher"],remark:"我是一条很长很长的备注"}]),n=[{label:"编辑",key:"edit"},{label:()=>Vue.createVNode("span",{style:"color: red;"},[Vue.createTextVNode("删除")]),key:"delete"}],l=Vue.reactive({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),i=t=>{window.$message.info(`${t}`)};return{...Vue.toRefs(l),tableData:u,actionColumns:r,baseColumns:e,tableMenuOptions:n,handleMenuSelect:i}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"RTable"},{default:()=>[Vue.createTextVNode("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),Vue.createVNode(d,{bordered:!1,collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:e=>window.$message.info(`我是 RCollapseGrid 组件${e?"收起":"展开"}的回调函数`)},{action:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{type:"primary"},{default:()=>[Vue.createTextVNode("搜索")]}),Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("重置")]})]),default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NSelect,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",clearable:!0},null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})])}),Vue.createVNode(s,{scrollX:2e3,title:Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode("span",null,[Vue.createTextVNode("标题插槽:")]),Vue.createVNode(naive.NSwitch,{onUpdateValue:e=>this.tableLoading=e},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":e=>this.actionColumns=e,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.handleMenuSelect.bind(this),toolOptions:[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(c,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})]},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{Y as default}; diff --git a/assets/index-1fl0IMML.js.gz b/assets/index-1fl0IMML.js.gz new file mode 100644 index 00000000..37a98e15 Binary files /dev/null and b/assets/index-1fl0IMML.js.gz differ diff --git a/assets/index-2PELqkCs.js.gz b/assets/index-2PELqkCs.js.gz deleted file mode 100644 index 475eb388..00000000 Binary files a/assets/index-2PELqkCs.js.gz and /dev/null differ diff --git a/assets/index-2gahowqI.js.gz b/assets/index-2gahowqI.js.gz deleted file mode 100644 index efe60f3e..00000000 Binary files a/assets/index-2gahowqI.js.gz and /dev/null differ diff --git a/assets/index-Trm8dVce.js b/assets/index-5lw8fAJn.js similarity index 84% rename from assets/index-Trm8dVce.js rename to assets/index-5lw8fAJn.js index 0a45c913..df671c93 100644 --- a/assets/index-Trm8dVce.js +++ b/assets/index-5lw8fAJn.js @@ -1 +1 @@ -import{y as p,z as d}from"./hooks-v5yhfgkQ.js";import{a as c}from"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./lodash@4.17.21-yUHHMES2.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import{s}from"./instance-0MR4YS8M.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const V=o=>s({url:"/api/list",method:"get",params:o}),Q=Vue.defineComponent({name:"MockDemo",setup(){const o=[{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:u=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[Vue.createTextVNode("编辑")]}),Vue.createVNode(naive.NButton,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[Vue.createTextVNode("删除")]})]})}],t=Vue.reactive({email:null}),e=Vue.reactive({page:1,pageSize:10,itemCount:0,pageSizes:[10,20,30,40,50],showSizePicker:!0,onUpdatePage:u=>{e.page=u,a()},onUpdatePageSize:u=>{e.pageSize=u,e.page=1,a()}}),{data:i,loading:n,run:l}=c(V,{defaultParams:[{page:e.page,pageSize:e.pageSize,email:t.email}],onSuccess:u=>{const{total:r}=u;e.itemCount=r}}),a=()=>{const{pageSize:u,page:r}=e,{email:m}=t;l({page:r,pageSize:u,email:m})};return{personData:i,personLoading:n,paginationRef:e,columns:o,...Vue.toRefs(t),getPerson:a}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var o;return[Vue.createVNode(naive.NCard,{title:"Mock 数据"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),Vue.createVNode(naive.NCard,{title:"提示"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),Vue.createVNode(naive.NForm,{labelPlacement:"left"},{default:()=>[Vue.createVNode(p,{bordered:!1,cols:3},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"邮箱"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.email,"onUpdate:value":t=>this.email=t,clearable:!0},null)]})]),action:()=>Vue.createVNode(naive.NButton,{type:"primary",onClick:this.getPerson.bind(this)},{default:()=>[Vue.createTextVNode("搜索")]})})]}),Vue.createVNode(d,{title:"Mock数据表格",data:(o=this.personData)==null?void 0:o.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":t=>this.columns=t,pagination:this.paginationRef,remote:!0},null)]}})}});export{Q as default}; +import{C as p,E as d}from"./hooks-lxIXz5_l.js";import{a as c}from"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./lodash@4.17.21-yUHHMES2.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import{s}from"./instance-I7ExDMVm.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const V=o=>s({url:"/api/list",method:"get",params:o}),Q=Vue.defineComponent({name:"MockDemo",setup(){const o=[{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:u=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[Vue.createTextVNode("编辑")]}),Vue.createVNode(naive.NButton,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[Vue.createTextVNode("删除")]})]})}],t=Vue.reactive({email:null}),e=Vue.reactive({page:1,pageSize:10,itemCount:0,pageSizes:[10,20,30,40,50],showSizePicker:!0,onUpdatePage:u=>{e.page=u,a()},onUpdatePageSize:u=>{e.pageSize=u,e.page=1,a()}}),{data:i,loading:n,run:l}=c(V,{defaultParams:[{page:e.page,pageSize:e.pageSize,email:t.email}],onSuccess:u=>{const{total:r}=u;e.itemCount=r}}),a=()=>{const{pageSize:u,page:r}=e,{email:m}=t;l({page:r,pageSize:u,email:m})};return{personData:i,personLoading:n,paginationRef:e,columns:o,...Vue.toRefs(t),getPerson:a}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var o;return[Vue.createVNode(naive.NCard,{title:"Mock 数据"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),Vue.createVNode(naive.NCard,{title:"提示"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),Vue.createVNode(naive.NForm,{labelPlacement:"left"},{default:()=>[Vue.createVNode(p,{bordered:!1,cols:3},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"邮箱"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.email,"onUpdate:value":t=>this.email=t,clearable:!0},null)]})]),action:()=>Vue.createVNode(naive.NButton,{type:"primary",onClick:this.getPerson.bind(this)},{default:()=>[Vue.createTextVNode("搜索")]})})]}),Vue.createVNode(d,{title:"Mock数据表格",data:(o=this.personData)==null?void 0:o.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":t=>this.columns=t,pagination:this.paginationRef,remote:!0},null)]}})}});export{Q as default}; diff --git a/assets/index-5lw8fAJn.js.gz b/assets/index-5lw8fAJn.js.gz new file mode 100644 index 00000000..ca8cc664 Binary files /dev/null and b/assets/index-5lw8fAJn.js.gz differ diff --git a/assets/index-wNfQSZJ3.js b/assets/index-6Jsj4zGJ.js similarity index 69% rename from assets/index-wNfQSZJ3.js rename to assets/index-6Jsj4zGJ.js index 21c5a083..12112e9e 100644 --- a/assets/index-wNfQSZJ3.js +++ b/assets/index-6Jsj4zGJ.js @@ -1 +1 @@ -import{N as r}from"./hooks-v5yhfgkQ.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";const t=Vue.defineComponent({name:"PageResult",props:{...naive.resultProps},render(){return Vue.createVNode("div",{class:"error-page"},[Vue.createVNode(naive.NResult,Vue.mergeProps(this.$props,{status:"500",title:"小调皮你走错地方了"}),{...this.$slots,footer:()=>Vue.createVNode(naive.NButton,{onClick:r.bind(this,!0)},{default:()=>[Vue.createTextVNode("返回首页")]})})])}}),q=Vue.defineComponent({name:"ErrorPage404",setup(){return{}},render(){return Vue.createVNode(t,{status:"404"},null)}});export{q as default}; +import{Q as r}from"./hooks-lxIXz5_l.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";const t=Vue.defineComponent({name:"PageResult",props:{...naive.resultProps},render(){return Vue.createVNode("div",{class:"error-page"},[Vue.createVNode(naive.NResult,Vue.mergeProps(this.$props,{status:"500",title:"小调皮你走错地方了"}),{...this.$slots,footer:()=>Vue.createVNode(naive.NButton,{onClick:r.bind(this,!0)},{default:()=>[Vue.createTextVNode("返回首页")]})})])}}),j=Vue.defineComponent({name:"ErrorPage404",setup(){return{}},render(){return Vue.createVNode(t,{status:"404"},null)}});export{j as default}; diff --git a/assets/index-6Jsj4zGJ.js.gz b/assets/index-6Jsj4zGJ.js.gz new file mode 100644 index 00000000..833a08da Binary files /dev/null and b/assets/index-6Jsj4zGJ.js.gz differ diff --git a/assets/index-6iZ4j1xO.js.gz b/assets/index-6iZ4j1xO.js.gz deleted file mode 100644 index 1ea7c896..00000000 Binary files a/assets/index-6iZ4j1xO.js.gz and /dev/null differ diff --git a/assets/index-6zHQf_S9.js.gz b/assets/index-6zHQf_S9.js.gz deleted file mode 100644 index 8f3d8a52..00000000 Binary files a/assets/index-6zHQf_S9.js.gz and /dev/null differ diff --git a/assets/index-7jSmHArV.js b/assets/index-7jSmHArV.js new file mode 100644 index 00000000..8a7dccac --- /dev/null +++ b/assets/index-7jSmHArV.js @@ -0,0 +1 @@ +var g={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.19","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.1.3","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.4-beta1.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const V=Vue.defineComponent({name:"RelyAbout",setup(){const{pkg:t}=g,{dependencies:i,devDependencies:n,name:e,version:d}=t,c=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],l=Vue.ref([]),o=Vue.ref([]),v=[{name:"项目名称",label:e},{name:"版本信息",label:d},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],m=()=>{const s=r=>Object.keys(r).reduce((p,u)=>(p.push({name:u,relyVersion:r[u],relyAddress:""}),p),[]);l.value=s(i),o.value=s(n)},y=s=>{s.url&&window.open(s.url)};return Vue.onBeforeMount(()=>{m()}),{columns:c,dependenciesOptions:l,devDependenciesOptions:o,templateOptions:v,handleTagClick:y}},render(){let t,i,n;return Vue.createVNode("div",{class:"rely-about"},[Vue.createVNode(naive.NCard,{title:"关于项目"},{default:()=>[Vue.createTextVNode("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),Vue.createVNode(naive.NCard,{title:"项目信息"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(t=this.templateOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[Vue.createVNode(naive.NTag,Vue.mergeProps({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NCard,{title:"生产依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(i=this.dependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?i:{default:()=>[i]})]}),Vue.createVNode(naive.NCard,{title:"开发依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(n=this.devDependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{V as default}; diff --git a/assets/index-7jSmHArV.js.gz b/assets/index-7jSmHArV.js.gz new file mode 100644 index 00000000..fc1aa68b Binary files /dev/null and b/assets/index-7jSmHArV.js.gz differ diff --git a/assets/index-8A7sSbsl.js.gz b/assets/index-8A7sSbsl.js.gz deleted file mode 100644 index d99ab45d..00000000 Binary files a/assets/index-8A7sSbsl.js.gz and /dev/null differ diff --git a/assets/index-9jx3SCbn.js.gz b/assets/index-9jx3SCbn.js.gz deleted file mode 100644 index f61ee200..00000000 Binary files a/assets/index-9jx3SCbn.js.gz and /dev/null differ diff --git a/assets/index-9jx3SCbn.js b/assets/index-9pBqvQlJ.js similarity index 52% rename from assets/index-9jx3SCbn.js rename to assets/index-9pBqvQlJ.js index 841eb823..4acd4ec7 100644 --- a/assets/index-9jx3SCbn.js +++ b/assets/index-9pBqvQlJ.js @@ -1 +1 @@ -import{x as u}from"./hooks-v5yhfgkQ.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const z=Vue.defineComponent({name:"REchart",setup(){const t=Vue.ref(),r=Vue.ref(!1),o=Vue.ref(!1),i=Vue.reactive({loading:!1}),n={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},s={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},a=Vue.ref({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),l=e=>{i.loading=e},d=e=>{o.value=e},c=()=>{var e;(e=t.value)==null||e.render()},h=()=>{var e;(e=t.value)==null||e.dispose()},V=()=>{const e=()=>Math.floor((Math.random()+1)*100);a.value.series[0].data=new Array(7).fill(0).map(()=>e()),a.value.series[1].data=new Array(7).fill(0).map(()=>e())};return{baseOptions:n,baseChartRef:t,chartLoading:r,handleLoadingShow:l,chartAria:o,handleAriaShow:d,basePieOptions:s,baseLineOptions:a,...Vue.toRefs(i),mountChart:c,unmountChart:h,handleUpdateTitle:V}},render(){return Vue.createVNode("div",{class:"echart"},[Vue.createVNode(naive.NCard,{title:"chart 组件"},{default:()=>[Vue.createVNode("ul",null,[Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("1. 当未获取到宽高时,组件会默认以 200*200 尺寸填充。")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("2. 默认启用 autoChangeTheme,自动监听模板主题变化,如果设置为 false 则为 APP_THEME.echartTheme 配置项为渲染结果(RayTemplate 独有)")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("3. 默认启用 watchOptions,自动监听配置项变化")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("4. 默认启用 animation,强制启用渲染过渡动画")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("5. 配置 setChartOptions 属性,可以定制化合并模式")])])])]}),Vue.createVNode(naive.NH2,null,{default:()=>[Vue.createTextVNode("强制渲染过渡动画(animation),预设 card 风格图表")]}),Vue.createVNode(naive.NFlex,{style:["padding: 18px 0"]},{default:()=>[Vue.createVNode(naive.NButton,{onClick:this.mountChart.bind(this)},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:this.unmountChart.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]}),Vue.createVNode(naive.NButton,{onClick:this.handleUpdateTitle.bind(this)},{default:()=>[Vue.createTextVNode("更新配置项")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{title:"周销售量",ref:"baseChartRef",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card"},null)]),Vue.createVNode(naive.NH2,null,{default:()=>[Vue.createTextVNode("不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色")]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)]),Vue.createVNode(naive.NH2,null,{default:()=>[Vue.createTextVNode("加载动画")]}),Vue.createVNode(naive.NSwitch,{value:this.chartLoading,"onUpdate:value":t=>this.chartLoading=t,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{loading:this.loading,options:this.baseOptions},null)]),Vue.createVNode(naive.NH2,null,{default:()=>[Vue.createTextVNode("贴画可视化图")]}),Vue.createVNode(naive.NSwitch,{value:this.chartAria,"onUpdate:value":t=>this.chartAria=t,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{options:this.baseOptions,showAria:this.chartAria},null)])])}});export{z as default}; +import{B as a}from"./hooks-lxIXz5_l.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const z=Vue.defineComponent({name:"REchart",setup(){const t=Vue.ref(),r=Vue.ref(!1),o=Vue.ref(!1),i=Vue.reactive({loading:!1}),n={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},s={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},u=Vue.ref({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),l=e=>{i.loading=e},d=e=>{o.value=e},c=()=>{var e;(e=t.value)==null||e.render()},h=()=>{var e;(e=t.value)==null||e.dispose()},p=()=>{const e=()=>Math.floor((Math.random()+1)*100);u.value.series[0].data=new Array(7).fill(0).map(()=>e()),u.value.series[1].data=new Array(7).fill(0).map(()=>e())};return{baseOptions:n,baseChartRef:t,chartLoading:r,handleLoadingShow:l,chartAria:o,handleAriaShow:d,basePieOptions:s,baseLineOptions:u,...Vue.toRefs(i),mountChart:c,unmountChart:h,handleUpdateTitle:p}},render(){return Vue.createVNode("div",{class:"echart"},[Vue.createVNode(naive.NCard,{title:"chart 组件"},{default:()=>[Vue.createVNode("ul",null,[Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("1. 当未获取到宽高时,组件会默认以 200*200 尺寸填充。")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("2. 默认启用 autoChangeTheme,自动监听模板主题变化,如果设置为 false 则为 APP_THEME.echartTheme 配置项为渲染结果(RayTemplate 独有)")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("3. 默认启用 watchOptions,自动监听配置项变化")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("4. 默认启用 nextTick,强制在下一队列渲染图标内容")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("5. 配置 setChartOptions 属性,可以定制化合并模式")])])])]}),Vue.createVNode(naive.NCard,{title:"预设 card 风格图表"},{default:()=>[Vue.createVNode(naive.NFlex,{style:["padding: 18px 0"]},{default:()=>[Vue.createVNode(naive.NButton,{onClick:this.mountChart.bind(this)},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:this.unmountChart.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]}),Vue.createVNode(naive.NButton,{onClick:this.handleUpdateTitle.bind(this)},{default:()=>[Vue.createTextVNode("更新配置项")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{title:"周销售量",ref:"baseChartRef",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card"},null)])]}),Vue.createVNode(naive.NCard,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"加载动画"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartLoading,"onUpdate:value":t=>this.chartLoading=t,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{loading:this.loading,options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"贴画可视化图"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartAria,"onUpdate:value":t=>this.chartAria=t,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{z as default}; diff --git a/assets/index-9pBqvQlJ.js.gz b/assets/index-9pBqvQlJ.js.gz new file mode 100644 index 00000000..934ca61e Binary files /dev/null and b/assets/index-9pBqvQlJ.js.gz differ diff --git a/assets/index-A-lx2o6E.js.gz b/assets/index-A-lx2o6E.js.gz deleted file mode 100644 index acd105d6..00000000 Binary files a/assets/index-A-lx2o6E.js.gz and /dev/null differ diff --git a/assets/index-6iZ4j1xO.js b/assets/index-ESRgrIKF.js similarity index 87% rename from assets/index-6iZ4j1xO.js rename to assets/index-ESRgrIKF.js index a509485e..21e5eb42 100644 --- a/assets/index-6iZ4j1xO.js +++ b/assets/index-ESRgrIKF.js @@ -1 +1 @@ -import{a as u}from"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import{s as o}from"./instance-0MR4YS8M.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./qs@6.11.2-wwOruwhc.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./hooks-v5yhfgkQ.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";function N(e,t){return u(()=>o(e),Object.assign({},t))}const D=e=>o({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),n=()=>o({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),X=Vue.defineComponent({name:"RAxios",setup(){const e=Vue.reactive({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:a,run:r}=u(n,{throttleWait:1e3,manual:!0}),{data:l,loading:d,run:V}=u(n,{debounceWait:1e3,manual:!0}),{data:i,loading:c,run:m}=u(D,{throttleWait:1e3,manual:!0}),{data:p,loading:s,run:F}=N({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0});return{...Vue.toRefs(e),throttleDemoValue:t,throttleDemoLoading:a,throttleDemoRun:r,debounceDemoValue:l,debounceDemoLoading:d,debounceDemoRun:V,weatherDemoValue:i,weatherDemoLoading:c,weatherDemoRun:m,demoData:p,demoLoading:s,demoRun:F}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h1",null,[Vue.createTextVNode("请求")]),Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("useRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持配置化请求数据")]),Vue.createVNode("h2",null,[Vue.createTextVNode("useHookPlusRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useRequest 获取")]),Vue.createVNode(naive.NCard,{title:"请求函数"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),Vue.createVNode("h3",null,[Vue.createTextVNode("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),Vue.createVNode("h3",null,[Vue.createTextVNode("3.详情请查看文档")])]}),Vue.createVNode(naive.NCard,{title:"useRequest示例(手动触发)"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var e;return[Vue.createVNode(naive.NButton,{onClick:this.demoRun.bind(this)},{default:()=>[Vue.createTextVNode("获取数据")]}),Vue.createVNode("h3",null,[Vue.createTextVNode("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useHookPlusRequest 获取")]),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("不论触发多少次,一秒钟之内仅会触发一次")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("一秒后才会执行,如果中途重新请求,则会重新计时")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"获取气候"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("该示例演示了如何根据动态值获取数据")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{X as default}; +import{a as u}from"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import{s as o}from"./instance-I7ExDMVm.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./qs@6.11.2-wwOruwhc.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./hooks-lxIXz5_l.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";function N(e,t){return u(()=>o(e),Object.assign({},t))}const D=e=>o({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),n=()=>o({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),X=Vue.defineComponent({name:"RAxios",setup(){const e=Vue.reactive({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:a,run:r}=u(n,{throttleWait:1e3,manual:!0}),{data:l,loading:d,run:V}=u(n,{debounceWait:1e3,manual:!0}),{data:i,loading:c,run:m}=u(D,{throttleWait:1e3,manual:!0}),{data:p,loading:s,run:F}=N({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0});return{...Vue.toRefs(e),throttleDemoValue:t,throttleDemoLoading:a,throttleDemoRun:r,debounceDemoValue:l,debounceDemoLoading:d,debounceDemoRun:V,weatherDemoValue:i,weatherDemoLoading:c,weatherDemoRun:m,demoData:p,demoLoading:s,demoRun:F}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h1",null,[Vue.createTextVNode("请求")]),Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("useRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持配置化请求数据")]),Vue.createVNode("h2",null,[Vue.createTextVNode("useHookPlusRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useRequest 获取")]),Vue.createVNode(naive.NCard,{title:"请求函数"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),Vue.createVNode("h3",null,[Vue.createTextVNode("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),Vue.createVNode("h3",null,[Vue.createTextVNode("3.详情请查看文档")])]}),Vue.createVNode(naive.NCard,{title:"useRequest示例(手动触发)"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var e;return[Vue.createVNode(naive.NButton,{onClick:this.demoRun.bind(this)},{default:()=>[Vue.createTextVNode("获取数据")]}),Vue.createVNode("h3",null,[Vue.createTextVNode("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useHookPlusRequest 获取")]),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("不论触发多少次,一秒钟之内仅会触发一次")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("一秒后才会执行,如果中途重新请求,则会重新计时")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"获取气候"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("该示例演示了如何根据动态值获取数据")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{X as default}; diff --git a/assets/index-ESRgrIKF.js.gz b/assets/index-ESRgrIKF.js.gz new file mode 100644 index 00000000..a2fe0482 Binary files /dev/null and b/assets/index-ESRgrIKF.js.gz differ diff --git a/assets/index-Eis-OABC.js.gz b/assets/index-Eis-OABC.js.gz deleted file mode 100644 index 0cf16ce3..00000000 Binary files a/assets/index-Eis-OABC.js.gz and /dev/null differ diff --git a/assets/index-gFHrcW37.js b/assets/index-Fu86yYlL.js similarity index 90% rename from assets/index-gFHrcW37.js rename to assets/index-Fu86yYlL.js index b9cd14c3..986b77e6 100644 --- a/assets/index-gFHrcW37.js +++ b/assets/index-Fu86yYlL.js @@ -1 +1 @@ -import{j as h,c as A,G as E,r as g,H as f,I as x,J as k,K as T,M as b}from"./hooks-v5yhfgkQ.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const le=Vue.defineComponent({name:"TemplateHooks",setup(){const t=Vue.ref(""),a=h("layoutContentMaximize"),o=Vue.ref(A().getWatermarkConfig.value.content),i=Vue.ref("new"),{navigationTo:n}=f(),{maximize:r,isLayoutContentMaximized:l}=E(),{reload:d,openSpin:V,closeSpin:c}=x(),{showWatermark:F,hiddenWatermark:N,setWatermarkContent:m,toggleWatermark:C}=k(),{changeDarkTheme:B,changeLightTheme:p,toggleTheme:u,getAppTheme:e}=T(),{hidden:s,show:D,update:v}=b();return{navigationTo:n,reload:d,currentMenuOption:t,maximize:r,maximizeRef:a,openSpin:V,closeSpin:c,showWatermark:F,hiddenWatermark:N,setWatermarkContent:m,watermark:o,toggleWatermark:C,changeDarkTheme:B,changeLightTheme:p,toggleTheme:u,getAppTheme:e,isLayoutContentMaximized:l,badgeHidden:s,badgeShow:D,badgeUpdateLabel:v,badgeValue:i}},render(){const{navigationTo:t,reload:a,maximize:o,openSpin:i,closeSpin:n,showWatermark:r,hiddenWatermark:l,setWatermarkContent:d,toggleWatermark:V,changeDarkTheme:c,changeLightTheme:F,toggleTheme:N,getAppTheme:m,isLayoutContentMaximized:C,badgeHidden:B,badgeShow:p,badgeUpdateLabel:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"接口说明"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),Vue.createVNode(naive.NCard,{title:"useBadge 菜单标记"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.badgeValue,"onUpdate:value":e=>this.badgeValue=e},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>B("/template-hooks")},{default:()=>[Vue.createTextVNode("隐藏当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>p("/template-hooks")},{default:()=>[Vue.createTextVNode("显示当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>u("/template-hooks",{label:this.badgeValue})},{default:()=>[Vue.createTextVNode("更新当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:Vue.createVNode(g,{name:"error",size:"18"},null)})}},{default:()=>[Vue.createTextVNode("添加标记图标")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[Vue.createTextVNode("隐藏标记图标")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTheme 主题"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("getAppTheme 获取当前主题色: "),m().themeLabel]),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>c()},{default:()=>[Vue.createTextVNode("切换暗黑主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>F()},{default:()=>[Vue.createTextVNode("切换明亮主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>N()},{default:()=>[Vue.createTextVNode("切换主题")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useWatermark 水印"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.watermark,"onUpdate:value":e=>this.watermark=e,onInput:e=>{d(e)}},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>r()},{default:()=>[Vue.createTextVNode("显示水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>l()},{default:()=>[Vue.createTextVNode("隐藏水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>V()},{default:()=>[Vue.createTextVNode("切换水印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useSpinning"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{a()}},{default:()=>[Vue.createTextVNode("刷新(强制刷新)")]}),Vue.createVNode(naive.NButton,{onClick:()=>{i(),setTimeout(()=>{n()},800)}},{default:()=>[Vue.createTextVNode("触发加载动画(不强制刷新)")]})]})]}),Vue.createVNode(naive.NCard,{title:"useMaximize 内容区域最大化"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("isLayoutContentMaximized 检测当前内容区域是否最大化:"),C?"最大化":"正常尺寸"]),Vue.createVNode(naive.NButton,{onClick:()=>{o(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[Vue.createTextVNode("最大化内容区域,并且滚动至顶部")]})]}),Vue.createVNode(naive.NCard,{title:"useAppNavigation 导航方法"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NButton,{onClick:()=>t("/multi/multi-menu-one")},{default:()=>[Vue.createTextVNode("跳转至多级菜单")]})]})]})}});export{le as default}; +import{j as h,c as A,J as E,w as g,K as f,M as x,N as k,O as T,P as b}from"./hooks-lxIXz5_l.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const le=Vue.defineComponent({name:"TemplateHooks",setup(){const t=Vue.ref(""),a=h("layoutContentMaximize"),o=Vue.ref(A().getWatermarkConfig.value.content),i=Vue.ref("new"),{navigationTo:n}=f(),{maximize:r,isLayoutContentMaximized:l}=E(),{reload:d,openSpin:V,closeSpin:c}=x(),{showWatermark:F,hiddenWatermark:N,setWatermarkContent:m,toggleWatermark:C}=k(),{changeDarkTheme:B,changeLightTheme:p,toggleTheme:u,getAppTheme:e}=T(),{hidden:s,show:D,update:v}=b();return{navigationTo:n,reload:d,currentMenuOption:t,maximize:r,maximizeRef:a,openSpin:V,closeSpin:c,showWatermark:F,hiddenWatermark:N,setWatermarkContent:m,watermark:o,toggleWatermark:C,changeDarkTheme:B,changeLightTheme:p,toggleTheme:u,getAppTheme:e,isLayoutContentMaximized:l,badgeHidden:s,badgeShow:D,badgeUpdateLabel:v,badgeValue:i}},render(){const{navigationTo:t,reload:a,maximize:o,openSpin:i,closeSpin:n,showWatermark:r,hiddenWatermark:l,setWatermarkContent:d,toggleWatermark:V,changeDarkTheme:c,changeLightTheme:F,toggleTheme:N,getAppTheme:m,isLayoutContentMaximized:C,badgeHidden:B,badgeShow:p,badgeUpdateLabel:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"接口说明"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),Vue.createVNode(naive.NCard,{title:"useBadge 菜单标记"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.badgeValue,"onUpdate:value":e=>this.badgeValue=e},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>B("/template-hooks")},{default:()=>[Vue.createTextVNode("隐藏当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>p("/template-hooks")},{default:()=>[Vue.createTextVNode("显示当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>u("/template-hooks",{label:this.badgeValue})},{default:()=>[Vue.createTextVNode("更新当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:Vue.createVNode(g,{name:"error",size:"18"},null)})}},{default:()=>[Vue.createTextVNode("添加标记图标")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[Vue.createTextVNode("隐藏标记图标")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTheme 主题"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("getAppTheme 获取当前主题色: "),m().themeLabel]),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>c()},{default:()=>[Vue.createTextVNode("切换暗黑主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>F()},{default:()=>[Vue.createTextVNode("切换明亮主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>N()},{default:()=>[Vue.createTextVNode("切换主题")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useWatermark 水印"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.watermark,"onUpdate:value":e=>this.watermark=e,onInput:e=>{d(e)}},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>r()},{default:()=>[Vue.createTextVNode("显示水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>l()},{default:()=>[Vue.createTextVNode("隐藏水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>V()},{default:()=>[Vue.createTextVNode("切换水印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useSpinning"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{a()}},{default:()=>[Vue.createTextVNode("刷新(强制刷新)")]}),Vue.createVNode(naive.NButton,{onClick:()=>{i(),setTimeout(()=>{n()},800)}},{default:()=>[Vue.createTextVNode("触发加载动画(不强制刷新)")]})]})]}),Vue.createVNode(naive.NCard,{title:"useMaximize 内容区域最大化"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("isLayoutContentMaximized 检测当前内容区域是否最大化:"),C?"最大化":"正常尺寸"]),Vue.createVNode(naive.NButton,{onClick:()=>{o(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[Vue.createTextVNode("最大化内容区域,并且滚动至顶部")]})]}),Vue.createVNode(naive.NCard,{title:"useAppNavigation 导航方法"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NButton,{onClick:()=>t("/multi/multi-menu-one")},{default:()=>[Vue.createTextVNode("跳转至多级菜单")]})]})]})}});export{le as default}; diff --git a/assets/index-Fu86yYlL.js.gz b/assets/index-Fu86yYlL.js.gz new file mode 100644 index 00000000..34e816a0 Binary files /dev/null and b/assets/index-Fu86yYlL.js.gz differ diff --git a/assets/index-HlEoc4oA.js b/assets/index-HlEoc4oA.js new file mode 100644 index 00000000..ae6a771a --- /dev/null +++ b/assets/index-HlEoc4oA.js @@ -0,0 +1 @@ +import{s as r,g as u,j as o,y as a}from"./utils-3DRba3jA.js";import"./hooks-lxIXz5_l.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";const L=Vue.defineComponent({name:"CacheDemo",setup(){const e=Vue.ref("Ray"),t=Vue.ref("ray:");return{nameValue:e,currentPrefix:t}},render(){return Vue.createVNode(naive.NCard,{title:"cache 工具包示例"},{default:()=>Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("点击 setStorage 按钮,设置缓存示例")]),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置缓存内容")]}),Vue.createVNode(naive.NInput,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:"请输入姓名"},null)]}),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置前缀")]}),Vue.createVNode(naive.NInput,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:"请输入前缀"},null)]})]}),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{r("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[Vue.createTextVNode("setStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=u("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[Vue.createTextVNode("getStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{o("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[Vue.createTextVNode("removeStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=a("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[Vue.createTextVNode("hasStorage")]})]})})}});export{L as default}; diff --git a/assets/index-HlEoc4oA.js.gz b/assets/index-HlEoc4oA.js.gz new file mode 100644 index 00000000..f356e0d6 Binary files /dev/null and b/assets/index-HlEoc4oA.js.gz differ diff --git a/assets/index-JiwzY-yv.js b/assets/index-JiwzY-yv.js new file mode 100644 index 00000000..0cf85771 --- /dev/null +++ b/assets/index-JiwzY-yv.js @@ -0,0 +1 @@ +import{c as u,n as E,d as h,e as M,f as Z,g as b,h as L,i as R,j as $,R as I,D as m,k as U,S as _,l as w,L as Y,m as S,s as q,o as K,p as W}from"./hooks-lxIXz5_l.js";import"./currency.js@2.0.4--or6eeOG.js";import{d as p}from"./dayjs@1.11.10-A-QuG2Ol.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./print-js@1.6.0-gYKv6oGQ.js";import{g as J,d as G,t as Q,f as X}from"./lodash-es@4.17.21-xgd1l9mE.js";import{g as A,c as e1,x as l1,l as g,m as H,s as z}from"./utils-3DRba3jA.js";import{C as t1}from"./clipboard@2.0.11-1jqEMlOW.js";import{u as N}from"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&c(i)}).observe(document,{childList:!0,subtree:!0});function t(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function c(o){if(o.ep)return;o.ep=!0;const a=t(o);fetch(o.href,a)}})();const o1=Vue.defineComponent({name:"GlobalProvider",setup(e,{expose:l}){const{getPrimaryColorOverride:t,getAppTheme:c,getLocaleLanguage:o}=u(),a=Vue.computed(()=>{const n=o.value;return E(n)}),i=()=>{const{message:n,notification:s,dialog:d,loadingBar:r}=naive.createDiscreteApi(["message","dialog","notification","loadingBar"],{configProviderProps:Vue.computed(()=>({theme:c.value?naive.darkTheme:null}))});window.$dialog=d,window.$message=n,window.$loadingBar=r,window.$notification=s};return l(),{getPrimaryColorOverride:t,localePackage:a,getAppTheme:c,discreteApi:i}},render(){const{$slots:{default:e},discreteApi:l}=this,{getPrimaryColorOverride:t,getAppTheme:c,localePackage:o}=this;return Vue.createVNode(naive.NConfigProvider,{themeOverrides:t,theme:c?naive.darkTheme:null,locale:o.locale,dateLocale:o.dateLocal},{default:()=>[Vue.createVNode(naive.NLoadingBarProvider,null,{default:()=>[Vue.createVNode(naive.NMessageProvider,null,{default:()=>[Vue.createVNode(naive.NDialogProvider,null,{default:()=>[Vue.createVNode(naive.NNotificationProvider,null,{default:()=>[Vue.createVNode(naive.NGlobalStyle,null,null),e==null?void 0:e(),l()]})]})]})]})]})}});var c1={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.19","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.1.3","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.4-beta1.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const i1=Vue.defineComponent({name:"AppStyleProvider",setup(e,{expose:l}){const{getAppTheme:t}=u(),c=()=>{const{appPrimaryColor:{primaryColor:i,primaryFadeColor:n}}=c1,s=document.body,d=A(h.appPiniaSettingStore,"localStorage");if(d){const r=J(d,"primaryColorOverride.common.primaryColor",i),v=e1(r,.38);s.style.setProperty("--ray-theme-primary-color",r),s.style.setProperty("--ray-theme-primary-fade-color",v||n)}},o=()=>{const i=document.getElementById("pre-loading-animation");i&&l1(i,{display:"none"})},a=i=>{const n=document.body,s="ray-template--dark",d="ray-template--light";i?g(n,d):g(n,s),H(n,i?s:d)};c(),o(),Vue.watch(()=>t.value,i=>{a(i)},{immediate:!0}),l()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),P={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},f=()=>({lockPassword:null}),a1=Vue.defineComponent({name:"LockScreen",setup(){const e=Vue.ref(null),l=Vue.ref(null),{setLockAppScreen:t}=b(),{updateSettingState:c}=M(),o=Vue.reactive({lockCondition:f()}),a=()=>{var i;(i=e.value)==null||i.validate(n=>{n||(t(!0),c("lockScreenSwitch",!0),o.lockCondition=f())})};return Vue.onMounted(()=>{Vue.nextTick(()=>{var i;(i=l.value)==null||i.focus()})}),{...Vue.toRefs(o),lockScreen:a,formInstRef:e,inputInstRef:l}},render(){return Vue.createVNode("div",{class:"app-lock-screen__input"},[Vue.createVNode(Z,{vertical:!0,align:"center",avatarSize:52},null),Vue.createVNode(naive.NForm,{ref:"formInstRef",model:this.lockCondition,rules:P,labelPlacement:"left"},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[Vue.createTextVNode("锁屏")]})]})])}}),n1=Vue.defineComponent({name:"UnlockScreen",setup(){const e=Vue.ref(null),l=Vue.ref(null),{logout:t}=L(),{updateSettingState:c}=M(),{setLockAppScreen:o}=b(),{isTabletOrSmaller:a}=R(),i="HH:mm",n="A",s="YY年MM月DD日",d="ddd",r=Vue.reactive({lockCondition:f(),HH_MM:p().format(i),AM_PM:p().locale("en").format(n),YY_MM_DD:p().format(s),DDD:p().format(d)}),v=setInterval(()=>{r.HH_MM=p().format(i),r.AM_PM=p().format(n)},6e3),j=setInterval(()=>{r.YY_MM_DD=p().format(s),r.DDD=p().format(d)},864e5),D=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{t(),setTimeout(()=>{c("lockScreenSwitch",!1)})}})},T=()=>{var V;(V=e.value)==null||V.validate(F=>{F||(o(!1),c("lockScreenSwitch",!1),r.lockCondition=f())})};return Vue.onBeforeUnmount(()=>{clearInterval(v),clearInterval(j)}),{...Vue.toRefs(r),backToSigning:D,unlockScreen:T,formRef:e,inputInstRef:l,isTabletOrSmaller:a}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:l,AM_PM:t,YY_MM_DD:c,DDD:o}=this,a=l.split(":"),{unlockScreen:i,backToSigning:n}=this;return Vue.createVNode("div",{class:"app-lock-screen__unlock"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content"},[Vue.createVNode("div",{class:["app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[Vue.createVNode("div",{class:"left"},[a[0]]),Vue.createVNode("div",{class:"right"},[a[1]])]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-avatar"},[Vue.createVNode(Z,{vertical:!0,align:"center",avatarSize:52},null)]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-input"},[Vue.createVNode(naive.NForm,{ref:"formRef",model:this.lockCondition,rules:P},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":s=>this.lockCondition.lockPassword=s,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:s=>{s.code==="Enter"&&i()}},null)]}),Vue.createVNode(naive.NFlex,{justify:"space-between"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:n.bind(this)},{default:()=>[Vue.createTextVNode("返回登陆")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[Vue.createTextVNode("进入系统")]})]})]})]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-date"},[Vue.createVNode("div",{class:"current-date"},[l,Vue.createTextVNode(" "),Vue.createVNode("span",null,[t])]),Vue.createVNode("div",{class:"current-year"},[c,Vue.createTextVNode(" "),Vue.createVNode("span",null,[o])])])])])}}),s1=Vue.defineComponent({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=b(),{updateSettingState:l}=M(),{getLockScreenSwitch:t}=u();return{lockScreenSwitchRef:Vue.computed({get:()=>t.value,set:o=>{l("lockScreenSwitch",o)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return Vue.createVNode(naive.NModal,{show:this.lockScreenSwitchRef,"onUpdate:show":l=>this.lockScreenSwitchRef=l,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[Vue.createVNode("div",{class:"app-lock-screen__content"},[e()?Vue.createVNode(n1,null,null):Vue.createVNode(a1,null,null)])]})}}),r1=Vue.defineComponent({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:l}=u();return{getWatermarkSwitch:e,getWatermarkConfig:l}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:l}=this;return l?Vue.createVNode(naive.NWatermark,Vue.mergeProps({cross:!0,fullscreen:!0},e),null):null}}),d1=Vue.defineComponent({name:"GlobalSpin",props:{...naive.spinProps},setup(){const e={opacitySpinning:"0.3"};return{spinValue:$("globalSpinning"),overrides:e}},render(){return Vue.createVNode(naive.NSpin,Vue.mergeProps(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var p1={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.19","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.1.3","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.4-beta1.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const u1=Vue.defineComponent({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=p1,l=A(h.appVersionProvider,"localStorage"),t=Vue.ref(!1),{logout:c}=L();return l!==null?e!==l&&(t.value=!0,z(h.appVersionProvider,e,"localStorage")):z(h.appVersionProvider,e,"localStorage"),{modalShow:t,logout:c}},render(){const{logout:e}=this;return Vue.createVNode("div",{class:"app-style-provider"},[Vue.createVNode(I,{show:this.modalShow,"onUpdate:show":l=>this.modalShow=l,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),x=Vue.defineComponent({name:"App",render(){return Vue.createVNode(o1,null,{default:()=>[Vue.createVNode(u1,null,null),Vue.createVNode(s1,null,null),Vue.createVNode(i1,null,null),Vue.createVNode(r1,null,null),Vue.createVNode(d1,null,{default:()=>Vue.createVNode(VueRouter.RouterView,null,null),description:()=>"loading..."})]})}});if(typeof window<"u"){let e=function(){var l=document.body,t=document.getElementById("__svg__icons__dom__");t||(t=document.createElementNS("http://www.w3.org/2000/svg","svg"),t.style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='',l.insertBefore(t,l.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const h1=()=>{p.locale(m)},C=(e,l)=>{const t=new t1(e,{text:()=>l});e.$$clipboard=t,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},f1=()=>({mounted:(e,{value:l})=>{C(e,l)},updated:(e,{value:l,oldValue:t})=>{var c;l!==t&&((c=e.$$clipboard)==null||c.destroy(),C(e,l))},beforeUnmount:e=>{var l;e.$$clipboard&&((l=e.$$clipboard)==null||l.destroy(),e.$$clipboard=null)}}),v1=Object.freeze(Object.defineProperty({__proto__:null,default:f1},Symbol.toStringTag,{value:"Module"})),m1=()=>{let e,l;return{beforeMount:(t,{value:c})=>{const{func:o,trigger:a="click",wait:i=500,options:n}=c;if(typeof o!="function")throw new TypeError("debounce directive value must be a function");e=G(o,i,Object.assign({},n)),l=N(t,a,e)},beforeUnmount:(t,{value:c})=>{e&&(e.cancel(),l==null||l()),e=null}}},g1=Object.freeze(Object.defineProperty({__proto__:null,default:m1},Symbol.toStringTag,{value:"Module"})),k=(e,l)=>{if(e){const t="ray-template__directive--disabled";l?(e.setAttribute("disabled","disabled"),H(e,t)):(e.removeAttribute("disabled"),g(e,t)),e==null||e.setAttribute("disabled",l?"disabled":"")}},M1=()=>({mounted:(e,{value:l})=>{k(e,l)},updated:(e,{value:l,oldValue:t})=>{l!==t&&k(e,l)}}),b1=Object.freeze(Object.defineProperty({__proto__:null,default:M1},Symbol.toStringTag,{value:"Module"})),y1=()=>{let e;return{beforeMount:(l,{value:t})=>{const{func:c,trigger:o="click",wait:a=500,options:i}=t;if(typeof c!="function")throw new TypeError("throttle directive value must be a function");e=Q(c,a,Object.assign({},i)),N(l,o,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},V1=Object.freeze(Object.defineProperty({__proto__:null,default:y1},Symbol.toStringTag,{value:"Module"})),_1=e=>Object.keys(e).reduce((t,c)=>{var a;const o=(a=e[c])==null?void 0:a.default;if(typeof o=="function")return t[c]=o,t;throw new TypeError(`directiveModules: ${c} is not function`)},{}),w1=e=>{const t=_1(Object.assign({"/src/directives/modules/copy/index.ts":v1,"/src/directives/modules/debounce/index.ts":g1,"/src/directives/modules/disabled/index.ts":b1,"/src/directives/modules/throttle/index.ts":V1})),c=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),o=/^([^-]+-)*[^-]+$/;X(t,(a,i)=>{var s;const n=(s=i.match(c))==null?void 0:s[0];typeof n=="string"&&o.test(n)?e.directive(n,a()):console.error(`[setupDirectives] ${n} is not a valid directive name`)})},z1=async()=>{const{getAppRootRoute:e}=u(),{router:{getRoutes:l}}=U();if(!l().find(c=>c.path===e.value.path))throw new Error(`[validAppRootPath]: 'store setting appRootRoute path: ' '${e.value.path}' not found in router, please check the 'appRootRoute' setting in the store setting module.`)},y=()=>Y.map(e=>e.key),C1=()=>{const e=y();if(!e.includes(_))throw new Error(`[validLocal validSystemDefaultLocal:] SYSTEM_DEFAULT_LOCAL: '${_}' is not in LOCAL_OPTIONS: [${e.join(", ")}]`)},k1=()=>{const e=y();if(!e.includes(w))throw new Error(`[validLocal validSystemFallbackLocale:] SYSTEM_FALLBACK_LOCALE: '${w}' is not in LOCAL_OPTIONS: [${e.join(", ")}]`)},Z1=()=>{const e=y();Object.keys(S).forEach(t=>{if(!e.includes(t))throw new Error(`[validLocal validDayjsLocalMap:] DAYJS_LOCAL_MAP: '${t}' is not in LOCAL_OPTIONS: [${e.join(", ")}]`)})},L1=()=>{const e=Object.values(S);if(!e.includes(m))throw new Error(`[validLocal validDefaultDayjsLocal:] DEFAULT_DAYJS_LOCAL: '${m}' is not in DAYJS_LOCAL_MAP: [${e.join(", ")}]`)},S1=async()=>{C1(),k1(),Z1(),L1()},B=async()=>{await z1(),await S1()},O=async e=>{await q(e),await K(e),await W(e),h1(),w1(e)},A1=async()=>{const e=Vue.createApp(x);await O(e),e.mount("#app"),await B()},H1=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=Vue.createApp(x),await O(e),e.mount("#app"),await B()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?H1():A1(); diff --git a/assets/index-JiwzY-yv.js.gz b/assets/index-JiwzY-yv.js.gz new file mode 100644 index 00000000..bd236752 Binary files /dev/null and b/assets/index-JiwzY-yv.js.gz differ diff --git a/assets/index-2PELqkCs.js b/assets/index-Jz_0N3dr.js similarity index 73% rename from assets/index-2PELqkCs.js rename to assets/index-Jz_0N3dr.js index ef284fcb..1a1a0343 100644 --- a/assets/index-2PELqkCs.js +++ b/assets/index-Jz_0N3dr.js @@ -1 +1 @@ -import{z as i}from"./hooks-v5yhfgkQ.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const P=Vue.defineComponent({name:"RouterDemoHome",setup(){const t=VueRouter.useRouter(),r=Vue.ref([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",text:!0,size:"tiny",onClick:()=>{t.push({path:"/router-demo/router-demo-detail",query:{name:e.name}})}},{default:()=>[Vue.createTextVNode("详情")]})]})}]),o=[];for(let e=0;e<10;e++)o.push({name:"张三"+e,address:"New York No. 1 Lake Park",phone:"010-121212",key:e});return{dataSource:o,columns:r}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(i,{columns:this.columns,"onUpdate:columns":t=>this.columns=t,data:this.dataSource},null)]})}});export{P as default}; +import{E as i}from"./hooks-lxIXz5_l.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const P=Vue.defineComponent({name:"RouterDemoHome",setup(){const t=VueRouter.useRouter(),r=Vue.ref([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",text:!0,size:"tiny",onClick:()=>{t.push({path:"/router-demo/router-demo-detail",query:{name:e.name}})}},{default:()=>[Vue.createTextVNode("详情")]})]})}]),o=[];for(let e=0;e<10;e++)o.push({name:"张三"+e,address:"New York No. 1 Lake Park",phone:"010-121212",key:e});return{dataSource:o,columns:r}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(i,{columns:this.columns,"onUpdate:columns":t=>this.columns=t,data:this.dataSource},null)]})}});export{P as default}; diff --git a/assets/index-Jz_0N3dr.js.gz b/assets/index-Jz_0N3dr.js.gz new file mode 100644 index 00000000..84a2d3ff Binary files /dev/null and b/assets/index-Jz_0N3dr.js.gz differ diff --git a/assets/index-SvzBi3Tl.js.gz b/assets/index-SvzBi3Tl.js.gz deleted file mode 100644 index 3700cf58..00000000 Binary files a/assets/index-SvzBi3Tl.js.gz and /dev/null differ diff --git a/assets/index-T-0lkp1t.js b/assets/index-T-0lkp1t.js deleted file mode 100644 index 6432d441..00000000 --- a/assets/index-T-0lkp1t.js +++ /dev/null @@ -1 +0,0 @@ -import{c as f,n as B,d as u,e as g,f as z,g as b,h as k,i as j,j as T,R as D,D as F,s as O,k as R,l as E}from"./hooks-v5yhfgkQ.js";import"./currency.js@2.0.4--or6eeOG.js";import{d as p}from"./dayjs@1.11.10-A-QuG2Ol.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./print-js@1.6.0-gYKv6oGQ.js";import{g as $,d as I,t as U,f as q}from"./lodash-es@4.17.21-xgd1l9mE.js";import{g as w,c as W,x as Y,l as v,m as Z,s as y}from"./utils-bL-oQI6P.js";import{C as G}from"./clipboard@2.0.11-1jqEMlOW.js";import{u as C}from"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const a of c)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function t(c){const a={};return c.integrity&&(a.integrity=c.integrity),c.referrerPolicy&&(a.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?a.credentials="include":c.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(c){if(c.ep)return;c.ep=!0;const a=t(c);fetch(c.href,a)}})();const J=Vue.defineComponent({name:"GlobalProvider",setup(e,{expose:l}){const{getPrimaryColorOverride:t,getAppTheme:o,getLocaleLanguage:c}=f(),a=Vue.computed(()=>{const r=c.value;return B(r)}),i=()=>{const{message:r,notification:n,dialog:d,loadingBar:s}=naive.createDiscreteApi(["message","dialog","notification","loadingBar"],{configProviderProps:Vue.computed(()=>({theme:o.value?naive.darkTheme:null}))});window.$dialog=d,window.$message=r,window.$loadingBar=s,window.$notification=n};return l(),{getPrimaryColorOverride:t,localePackage:a,getAppTheme:o,discreteApi:i}},render(){const{$slots:{default:e},discreteApi:l}=this,{getPrimaryColorOverride:t,getAppTheme:o,localePackage:c}=this;return Vue.createVNode(naive.NConfigProvider,{themeOverrides:t,theme:o?naive.darkTheme:null,locale:c.locale,dateLocale:c.dateLocal},{default:()=>[Vue.createVNode(naive.NLoadingBarProvider,null,{default:()=>[Vue.createVNode(naive.NMessageProvider,null,{default:()=>[Vue.createVNode(naive.NDialogProvider,null,{default:()=>[Vue.createVNode(naive.NNotificationProvider,null,{default:()=>[Vue.createVNode(naive.NGlobalStyle,null,null),e==null?void 0:e(),l()]})]})]})]})]})}});var K={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.15","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.11","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Q=Vue.defineComponent({name:"AppStyleProvider",setup(e,{expose:l}){const{getAppTheme:t}=f(),o=()=>{const{appPrimaryColor:{primaryColor:i,primaryFadeColor:r}}=K,n=document.body,d=w(u.appPiniaSettingStore,"localStorage");if(d){const s=$(d,"primaryColorOverride.common.primaryColor",i),m=W(s,.38);n.style.setProperty("--ray-theme-primary-color",s),n.style.setProperty("--ray-theme-primary-fade-color",m||r)}},c=()=>{const i=document.getElementById("pre-loading-animation");i&&Y(i,{display:"none"})},a=i=>{const r=document.body,n="ray-template--dark",d="ray-template--light";i?v(r,d):v(r,n),Z(r,i?n:d)};o(),c(),Vue.watch(()=>t.value,i=>{a(i)},{immediate:!0}),l()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),H={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},h=()=>({lockPassword:null}),X=Vue.defineComponent({name:"LockScreen",setup(){const e=Vue.ref(null),l=Vue.ref(null),{setLockAppScreen:t}=b(),{updateSettingState:o}=g(),c=Vue.reactive({lockCondition:h()}),a=()=>{var i;(i=e.value)==null||i.validate(r=>{r||(t(!0),o("lockScreenSwitch",!0),c.lockCondition=h())})};return Vue.onMounted(()=>{Vue.nextTick(()=>{var i;(i=l.value)==null||i.focus()})}),{...Vue.toRefs(c),lockScreen:a,formInstRef:e,inputInstRef:l}},render(){return Vue.createVNode("div",{class:"app-lock-screen__input"},[Vue.createVNode(z,{vertical:!0,align:"center",avatarSize:52},null),Vue.createVNode(naive.NForm,{ref:"formInstRef",model:this.lockCondition,rules:H,labelPlacement:"left"},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[Vue.createTextVNode("锁屏")]})]})])}}),e1=Vue.defineComponent({name:"UnlockScreen",setup(){const e=Vue.ref(null),l=Vue.ref(null),{logout:t}=k(),{updateSettingState:o}=g(),{setLockAppScreen:c}=b(),{isTabletOrSmaller:a}=j(),i="HH:mm",r="A",n="YY年MM月DD日",d="ddd",s=Vue.reactive({lockCondition:h(),HH_MM:p().format(i),AM_PM:p().locale("en").format(r),YY_MM_DD:p().format(n),DDD:p().format(d)}),m=setInterval(()=>{s.HH_MM=p().format(i),s.AM_PM=p().format(r)},6e3),N=setInterval(()=>{s.YY_MM_DD=p().format(n),s.DDD=p().format(d)},864e5),A=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{t(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},P=()=>{var M;(M=e.value)==null||M.validate(L=>{L||(c(!1),o("lockScreenSwitch",!1),s.lockCondition=h())})};return Vue.onBeforeUnmount(()=>{clearInterval(m),clearInterval(N)}),{...Vue.toRefs(s),backToSigning:A,unlockScreen:P,formRef:e,inputInstRef:l,isTabletOrSmaller:a}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:l,AM_PM:t,YY_MM_DD:o,DDD:c}=this,a=l.split(":"),{unlockScreen:i,backToSigning:r}=this;return Vue.createVNode("div",{class:"app-lock-screen__unlock"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content"},[Vue.createVNode("div",{class:["app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[Vue.createVNode("div",{class:"left"},[a[0]]),Vue.createVNode("div",{class:"right"},[a[1]])]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-avatar"},[Vue.createVNode(z,{vertical:!0,align:"center",avatarSize:52},null)]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-input"},[Vue.createVNode(naive.NForm,{ref:"formRef",model:this.lockCondition,rules:H},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":n=>this.lockCondition.lockPassword=n,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:n=>{n.code==="Enter"&&i()}},null)]}),Vue.createVNode(naive.NFlex,{justify:"space-between"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:r.bind(this)},{default:()=>[Vue.createTextVNode("返回登陆")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[Vue.createTextVNode("进入系统")]})]})]})]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-date"},[Vue.createVNode("div",{class:"current-date"},[l,Vue.createTextVNode(" "),Vue.createVNode("span",null,[t])]),Vue.createVNode("div",{class:"current-year"},[o,Vue.createTextVNode(" "),Vue.createVNode("span",null,[c])])])])])}}),l1=Vue.defineComponent({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=b(),{updateSettingState:l}=g(),{getLockScreenSwitch:t}=f();return{lockScreenSwitchRef:Vue.computed({get:()=>t.value,set:c=>{l("lockScreenSwitch",c)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return Vue.createVNode(naive.NModal,{show:this.lockScreenSwitchRef,"onUpdate:show":l=>this.lockScreenSwitchRef=l,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[Vue.createVNode("div",{class:"app-lock-screen__content"},[e()?Vue.createVNode(e1,null,null):Vue.createVNode(X,null,null)])]})}}),t1=Vue.defineComponent({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:l}=f();return{getWatermarkSwitch:e,getWatermarkConfig:l}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:l}=this;return l?Vue.createVNode(naive.NWatermark,Vue.mergeProps({cross:!0,fullscreen:!0},e),null):null}}),c1=Vue.defineComponent({name:"GlobalSpin",props:{...naive.spinProps},setup(){const e={opacitySpinning:"0.3"};return{spinValue:T("globalSpinning"),overrides:e}},render(){return Vue.createVNode(naive.NSpin,Vue.mergeProps(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var o1={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.15","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.11","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const i1=Vue.defineComponent({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=o1,l=w(u.appVersionProvider,"localStorage"),t=Vue.ref(!1),{logout:o}=k();return l!==null?e!==l&&(t.value=!0,y(u.appVersionProvider,e,"localStorage")):y(u.appVersionProvider,e,"localStorage"),{modalShow:t,logout:o}},render(){const{logout:e}=this;return Vue.createVNode("div",{class:"app-style-provider"},[Vue.createVNode(D,{show:this.modalShow,"onUpdate:show":l=>this.modalShow=l,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),S=Vue.defineComponent({name:"App",render(){return Vue.createVNode(J,null,{default:()=>[Vue.createVNode(i1,null,null),Vue.createVNode(l1,null,null),Vue.createVNode(Q,null,null),Vue.createVNode(t1,null,null),Vue.createVNode(c1,null,{default:()=>Vue.createVNode(VueRouter.RouterView,null,null),description:()=>"loading..."})]})}});if(typeof window<"u"){let e=function(){var l=document.body,t=document.getElementById("__svg__icons__dom__");t||(t=document.createElementNS("http://www.w3.org/2000/svg","svg"),t.style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='',l.insertBefore(t,l.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const a1=()=>{p.locale(F)},V=(e,l)=>{const t=new G(e,{text:()=>l});e.$$clipboard=t,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},r1=()=>({mounted:(e,{value:l})=>{V(e,l)},updated:(e,{value:l,oldValue:t})=>{var o;l!==t&&((o=e.$$clipboard)==null||o.destroy(),V(e,l))},beforeUnmount:e=>{var l;e.$$clipboard&&((l=e.$$clipboard)==null||l.destroy(),e.$$clipboard=null)}}),n1=Object.freeze(Object.defineProperty({__proto__:null,default:r1},Symbol.toStringTag,{value:"Module"})),s1=()=>{let e,l;return{beforeMount:(t,{value:o})=>{const{func:c,trigger:a="click",wait:i=500,options:r}=o;if(typeof c!="function")throw new TypeError("debounce directive value must be a function");e=I(c,i,Object.assign({},r)),l=C(t,a,e)},beforeUnmount:(t,{value:o})=>{e&&(e.cancel(),l==null||l()),e=null}}},d1=Object.freeze(Object.defineProperty({__proto__:null,default:s1},Symbol.toStringTag,{value:"Module"})),_=(e,l)=>{if(e){const t="ray-template__directive--disabled";l?(e.setAttribute("disabled","disabled"),Z(e,t)):(e.removeAttribute("disabled"),v(e,t)),e==null||e.setAttribute("disabled",l?"disabled":"")}},p1=()=>({mounted:(e,{value:l})=>{_(e,l)},updated:(e,{value:l,oldValue:t})=>{l!==t&&_(e,l)}}),u1=Object.freeze(Object.defineProperty({__proto__:null,default:p1},Symbol.toStringTag,{value:"Module"})),h1=()=>{let e;return{beforeMount:(l,{value:t})=>{const{func:o,trigger:c="click",wait:a=500,options:i}=t;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=U(o,a,Object.assign({},i)),C(l,c,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},f1=Object.freeze(Object.defineProperty({__proto__:null,default:h1},Symbol.toStringTag,{value:"Module"})),m1=e=>Object.keys(e).reduce((t,o)=>{var a;const c=(a=e[o])==null?void 0:a.default;if(typeof c=="function")return t[o]=c,t;throw new TypeError(`directiveModules: ${o} is not function`)},{}),v1=e=>{const t=m1(Object.assign({"/src/directives/modules/copy/index.ts":n1,"/src/directives/modules/debounce/index.ts":d1,"/src/directives/modules/disabled/index.ts":u1,"/src/directives/modules/throttle/index.ts":f1})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),c=/^([^-]+-)*[^-]+$/;q(t,(a,i)=>{var n;const r=(n=i.match(o))==null?void 0:n[0];typeof r=="string"&&c.test(r)?e.directive(r,a()):console.error(`[setupDirectives] ${r} is not a valid directive name`)})},x=async e=>{await O(e),await R(e),await E(e),a1(),v1(e)},g1=async()=>{const e=Vue.createApp(S);await x(e),e.mount("#app")},b1=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=Vue.createApp(S),await x(e),e.mount("#app")},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?b1():g1(); diff --git a/assets/index-T-0lkp1t.js.gz b/assets/index-T-0lkp1t.js.gz deleted file mode 100644 index f7a92926..00000000 Binary files a/assets/index-T-0lkp1t.js.gz and /dev/null differ diff --git a/assets/index-Trm8dVce.js.gz b/assets/index-Trm8dVce.js.gz deleted file mode 100644 index 66262405..00000000 Binary files a/assets/index-Trm8dVce.js.gz and /dev/null differ diff --git a/assets/index-d3p0BHDb.js b/assets/index-URw8EbN2.js similarity index 85% rename from assets/index-d3p0BHDb.js rename to assets/index-URw8EbN2.js index 77cc025e..c9718cc7 100644 --- a/assets/index-d3p0BHDb.js +++ b/assets/index-URw8EbN2.js @@ -1 +1 @@ -import{R as e}from"./hooks-v5yhfgkQ.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const b=Vue.defineComponent({name:"ModalDemo",setup(){const u=Vue.reactive({modal1:!1,modal2:!1,modal3:!1});return{...Vue.toRefs(u)}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"props"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("fullscreen: 全屏模态框。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),Vue.createVNode(e,{show:this.modal1,"onUpdate:show":u=>this.modal1=u,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[Vue.createTextVNode("我是全屏模态框,并且会自动启用滚动条。")]}),Vue.createVNode(e,{show:this.modal2,"onUpdate:show":u=>this.modal2=u,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(e,{show:this.modal3,"onUpdate:show":u=>this.modal3=u,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(naive.NCard,{title:"可拖拽模态框"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>this.modal2=!0},{default:()=>[Vue.createTextVNode("卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:()=>this.modal3=!0},{default:()=>[Vue.createTextVNode("对话框模态框")]})]}),Vue.createVNode(naive.NCard,{title:"全屏模态框"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),Vue.createVNode(naive.NButton,{onClick:()=>this.modal1=!0},{default:()=>[Vue.createTextVNode("打开")]})]})]}),Vue.createVNode(naive.NCard,{title:"手动设置宽度"},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]})]})}});export{b as default}; +import{R as e}from"./hooks-lxIXz5_l.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const b=Vue.defineComponent({name:"ModalDemo",setup(){const u=Vue.reactive({modal1:!1,modal2:!1,modal3:!1});return{...Vue.toRefs(u)}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"props"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("fullscreen: 全屏模态框。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),Vue.createVNode(e,{show:this.modal1,"onUpdate:show":u=>this.modal1=u,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[Vue.createTextVNode("我是全屏模态框,并且会自动启用滚动条。")]}),Vue.createVNode(e,{show:this.modal2,"onUpdate:show":u=>this.modal2=u,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(e,{show:this.modal3,"onUpdate:show":u=>this.modal3=u,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(naive.NCard,{title:"可拖拽模态框"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>this.modal2=!0},{default:()=>[Vue.createTextVNode("卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:()=>this.modal3=!0},{default:()=>[Vue.createTextVNode("对话框模态框")]})]}),Vue.createVNode(naive.NCard,{title:"全屏模态框"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),Vue.createVNode(naive.NButton,{onClick:()=>this.modal1=!0},{default:()=>[Vue.createTextVNode("打开")]})]})]}),Vue.createVNode(naive.NCard,{title:"手动设置宽度"},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]})]})}});export{b as default}; diff --git a/assets/index-URw8EbN2.js.gz b/assets/index-URw8EbN2.js.gz new file mode 100644 index 00000000..aa7c2ba1 Binary files /dev/null and b/assets/index-URw8EbN2.js.gz differ diff --git a/assets/index-A-lx2o6E.js b/assets/index-ZatM64SM.js similarity index 87% rename from assets/index-A-lx2o6E.js rename to assets/index-ZatM64SM.js index 0dd2be89..44f4ee2f 100644 --- a/assets/index-A-lx2o6E.js +++ b/assets/index-ZatM64SM.js @@ -1 +1 @@ -import"./hooks-v5yhfgkQ.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import{z as s,A as p,B as d,C as l,D as c,E as V}from"./utils-bL-oQI6P.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./currency.js@2.0.4--or6eeOG.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";const Q=Vue.defineComponent({name:"CalculatePrecision",setup(){const t=Vue.reactive({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),e={addOptions:d,subtractOptions:l,multiplyOptions:c,divideOptions:V},i=(o,a)=>{const r=e[a],n=r(...o);return"结果: "+s(n)},u=()=>{Vue.nextTick().then(()=>{t.distributeOutputValue=p(t.distributeValue,t.distributeLength)})};return u(),{...Vue.toRefs(t),copilotFunc:i,updateDistributeValue:u}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode("h2",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),Vue.createVNode("h3",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"加法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),Vue.createVNode(naive.NCard,{title:"减法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),Vue.createVNode(naive.NCard,{title:"乘法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),Vue.createVNode(naive.NCard,{title:"除法(非取模)"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),Vue.createVNode(naive.NCard,{title:"平分一个值"},{default:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),Vue.createVNode(naive.NInputNumber,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{Q as default}; +import"./hooks-lxIXz5_l.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import{z as s,A as p,B as d,C as l,D as c,E as V}from"./utils-3DRba3jA.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./currency.js@2.0.4--or6eeOG.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";const Q=Vue.defineComponent({name:"CalculatePrecision",setup(){const t=Vue.reactive({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),e={addOptions:d,subtractOptions:l,multiplyOptions:c,divideOptions:V},i=(o,a)=>{const r=e[a],n=r(...o);return"结果: "+s(n)},u=()=>{Vue.nextTick().then(()=>{t.distributeOutputValue=p(t.distributeValue,t.distributeLength)})};return u(),{...Vue.toRefs(t),copilotFunc:i,updateDistributeValue:u}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode("h2",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),Vue.createVNode("h3",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"加法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),Vue.createVNode(naive.NCard,{title:"减法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),Vue.createVNode(naive.NCard,{title:"乘法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),Vue.createVNode(naive.NCard,{title:"除法(非取模)"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),Vue.createVNode(naive.NCard,{title:"平分一个值"},{default:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),Vue.createVNode(naive.NInputNumber,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{Q as default}; diff --git a/assets/index-ZatM64SM.js.gz b/assets/index-ZatM64SM.js.gz new file mode 100644 index 00000000..24ba62e9 Binary files /dev/null and b/assets/index-ZatM64SM.js.gz differ diff --git a/assets/index-d3p0BHDb.js.gz b/assets/index-d3p0BHDb.js.gz deleted file mode 100644 index 4fc8311f..00000000 Binary files a/assets/index-d3p0BHDb.js.gz and /dev/null differ diff --git a/assets/index-2gahowqI.js b/assets/index-fSj7NDsx.js similarity index 77% rename from assets/index-2gahowqI.js rename to assets/index-fSj7NDsx.js index 68134f7b..e6fee71b 100644 --- a/assets/index-2gahowqI.js +++ b/assets/index-fSj7NDsx.js @@ -1 +1 @@ -import{v as p}from"./hooks-v5yhfgkQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";const I=Vue.defineComponent({name:"ContextMenuDemo",setup(){const e=Vue.ref(),o=Vue.ref(!1),r=Vue.ref([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:i,y:u,show:a,updateShow:t}=p(e);return{demoOneRef:e,demoOneShow:o,x:i,y:u,show:a,options:r,clickOutside:n=>{n.preventDefault(),t(!1)},updateShow:t}},render(){const{x:e,y:o,show:r}=this,{clickOutside:i,updateShow:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("默认点击元素外部会关闭菜单。")]),Vue.createVNode("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[Vue.createTextVNode("右击")])]})]}),Vue.createVNode(naive.NDropdown,{show:r,x:e,y:o,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,t)=>{window.$message.info(`选中了 ${t.label}`),u(!1)},onClickoutside:i.bind(this)},null)]})}});export{I as default}; +import{y as p}from"./hooks-lxIXz5_l.js";import"./currency.js@2.0.4--or6eeOG.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";const I=Vue.defineComponent({name:"ContextMenuDemo",setup(){const e=Vue.ref(),o=Vue.ref(!1),r=Vue.ref([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:i,y:u,show:a,updateShow:t}=p(e);return{demoOneRef:e,demoOneShow:o,x:i,y:u,show:a,options:r,clickOutside:n=>{n.preventDefault(),t(!1)},updateShow:t}},render(){const{x:e,y:o,show:r}=this,{clickOutside:i,updateShow:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("默认点击元素外部会关闭菜单。")]),Vue.createVNode("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[Vue.createTextVNode("右击")])]})]}),Vue.createVNode(naive.NDropdown,{show:r,x:e,y:o,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,t)=>{window.$message.info(`选中了 ${t.label}`),u(!1)},onClickoutside:i.bind(this)},null)]})}});export{I as default}; diff --git a/assets/index-fSj7NDsx.js.gz b/assets/index-fSj7NDsx.js.gz new file mode 100644 index 00000000..dd470373 Binary files /dev/null and b/assets/index-fSj7NDsx.js.gz differ diff --git a/assets/index-gFHrcW37.js.gz b/assets/index-gFHrcW37.js.gz deleted file mode 100644 index f0d51439..00000000 Binary files a/assets/index-gFHrcW37.js.gz and /dev/null differ diff --git a/assets/index-Eis-OABC.js b/assets/index-gvn0WixR.js similarity index 62% rename from assets/index-Eis-OABC.js rename to assets/index-gvn0WixR.js index 306199bb..816d63d7 100644 --- a/assets/index-Eis-OABC.js +++ b/assets/index-gvn0WixR.js @@ -1 +1 @@ -import{w as t}from"./hooks-v5yhfgkQ.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const A=Vue.defineComponent({name:"RTemplateDoc",setup(){return{}},render(){return Vue.createVNode(t,{width:"100%",height:"100%",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",lazy:!0},null)}});export{A as default}; +import{z as t}from"./hooks-lxIXz5_l.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const A=Vue.defineComponent({name:"RTemplateDoc",setup(){return{}},render(){return Vue.createVNode(t,{width:"100%",height:"100%",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",lazy:!0},null)}});export{A as default}; diff --git a/assets/index-gvn0WixR.js.gz b/assets/index-gvn0WixR.js.gz new file mode 100644 index 00000000..cbe3bdb6 Binary files /dev/null and b/assets/index-gvn0WixR.js.gz differ diff --git a/assets/index-hrbHJX4t.js.gz b/assets/index-hrbHJX4t.js.gz deleted file mode 100644 index 5380ec99..00000000 Binary files a/assets/index-hrbHJX4t.js.gz and /dev/null differ diff --git a/assets/index-xZvHBL1o.js b/assets/index-iapTKWGV.js similarity index 83% rename from assets/index-xZvHBL1o.js rename to assets/index-iapTKWGV.js index 61980ad6..0b9648b5 100644 --- a/assets/index-xZvHBL1o.js +++ b/assets/index-iapTKWGV.js @@ -1 +1 @@ -import{q as e}from"./hooks-v5yhfgkQ.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import{L as u}from"./ray-9TfU2AhD.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";const b=Vue.defineComponent({name:"RQRCodeDemo",setup(){const t=Vue.ref("ray template yes"),o=Vue.ref(),a=Vue.ref();return{qrcodeText:t,qrcodeStatus:o,rayQRCodeRef:a}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),Vue.createVNode("h2",null,[Vue.createTextVNode("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),Vue.createVNode("h2",null,[Vue.createTextVNode("具体使用请参考 props 配置项")])]}),Vue.createVNode(naive.NCard,{title:"基础二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes"},null),Vue.createVNode(e,{text:"ray template yes",logoImage:u},null),Vue.createVNode(e,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),Vue.createVNode(naive.NCard,{title:"状态二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes",logoImage:u,status:"error",onReload:()=>{window.$message.info("reload event")}},null),Vue.createVNode(e,{text:"ray template yes",logoImage:u,status:"loading"},null)]})]}),Vue.createVNode(naive.NCard,{title:"监听内容变化"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[Vue.createTextVNode("更新二维码内容")]}),Vue.createVNode(naive.NButton,{onClick:()=>{var t;(t=this.rayQRCodeRef)==null||t.downloadQRCode()}},{default:()=>[Vue.createTextVNode("下载二维码")]})]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:u,ref:"rayQRCodeRef"},null),Vue.createTextVNode("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{b as default}; +import{v as e}from"./hooks-lxIXz5_l.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import{L as u}from"./ray-9TfU2AhD.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";const b=Vue.defineComponent({name:"RQRCodeDemo",setup(){const t=Vue.ref("ray template yes"),o=Vue.ref(),a=Vue.ref();return{qrcodeText:t,qrcodeStatus:o,rayQRCodeRef:a}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),Vue.createVNode("h2",null,[Vue.createTextVNode("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),Vue.createVNode("h2",null,[Vue.createTextVNode("具体使用请参考 props 配置项")])]}),Vue.createVNode(naive.NCard,{title:"基础二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes"},null),Vue.createVNode(e,{text:"ray template yes",logoImage:u},null),Vue.createVNode(e,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),Vue.createVNode(naive.NCard,{title:"状态二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes",logoImage:u,status:"error",onReload:()=>{window.$message.info("reload event")}},null),Vue.createVNode(e,{text:"ray template yes",logoImage:u,status:"loading"},null)]})]}),Vue.createVNode(naive.NCard,{title:"监听内容变化"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[Vue.createTextVNode("更新二维码内容")]}),Vue.createVNode(naive.NButton,{onClick:()=>{var t;(t=this.rayQRCodeRef)==null||t.downloadQRCode()}},{default:()=>[Vue.createTextVNode("下载二维码")]})]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:u,ref:"rayQRCodeRef"},null),Vue.createTextVNode("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{b as default}; diff --git a/assets/index-iapTKWGV.js.gz b/assets/index-iapTKWGV.js.gz new file mode 100644 index 00000000..c19baf40 Binary files /dev/null and b/assets/index-iapTKWGV.js.gz differ diff --git a/assets/index-6zHQf_S9.js b/assets/index-l2OdooJx.js similarity index 90% rename from assets/index-6zHQf_S9.js rename to assets/index-l2OdooJx.js index 843a4630..24df1636 100644 --- a/assets/index-6zHQf_S9.js +++ b/assets/index-l2OdooJx.js @@ -1,4 +1,4 @@ -import{r as s,_}from"./hooks-v5yhfgkQ.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";function e(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Vue.isVNode(o)}const F=Vue.defineComponent({name:"PreviewSVGIcons",setup(){const o=Vue.ref([]);return Object.keys(Object.assign({"/src/icons/adjustment.svg":()=>_(()=>import("./adjustment-xKF72UgA.js"),__vite__mapDeps([])),"/src/icons/axios.svg":()=>_(()=>import("./axios-YSlog9Ro.js"),__vite__mapDeps([])),"/src/icons/close.svg":()=>_(()=>import("./close-azVF77Xi.js"),__vite__mapDeps([])),"/src/icons/close_left.svg":()=>_(()=>import("./close_left-wghYE-yL.js"),__vite__mapDeps([])),"/src/icons/close_right.svg":()=>_(()=>import("./close_right-rXgRVuVY.js"),__vite__mapDeps([])),"/src/icons/dark.svg":()=>_(()=>import("./dark-a3Shlz-3.js"),__vite__mapDeps([])),"/src/icons/dashboard.svg":()=>_(()=>import("./dashboard-VSK8Ksb1.js"),__vite__mapDeps([])),"/src/icons/doc.svg":()=>_(()=>import("./doc-p7kRFTKe.js"),__vite__mapDeps([])),"/src/icons/draggable.svg":()=>_(()=>import("./draggable-WSlqett4.js"),__vite__mapDeps([])),"/src/icons/echart.svg":()=>_(()=>import("./echart-uDAjf1Xg.js"),__vite__mapDeps([])),"/src/icons/empty.svg":()=>_(()=>import("./empty-H5pwkZW3.js"),__vite__mapDeps([])),"/src/icons/error.svg":()=>_(()=>import("./error-1RFXBHac.js"),__vite__mapDeps([])),"/src/icons/expanded.svg":()=>_(()=>import("./expanded-hDBHAcSA.js"),__vite__mapDeps([])),"/src/icons/export_excel.svg":()=>_(()=>import("./export_excel-GFRgGiCF.js"),__vite__mapDeps([])),"/src/icons/fullscreen.svg":()=>_(()=>import("./fullscreen-LJg-Litq.js"),__vite__mapDeps([])),"/src/icons/fullscreen_fold.svg":()=>_(()=>import("./fullscreen_fold-0gdJoV38.js"),__vite__mapDeps([])),"/src/icons/github.svg":()=>_(()=>import("./github-cVhKF5HM.js"),__vite__mapDeps([])),"/src/icons/google.svg":()=>_(()=>import("./google-Mjnm1oio.js"),__vite__mapDeps([])),"/src/icons/language.svg":()=>_(()=>import("./language-dqZc_JRl.js"),__vite__mapDeps([])),"/src/icons/left_arrow.svg":()=>_(()=>import("./left_arrow-9Z3nu3IR.js"),__vite__mapDeps([])),"/src/icons/light.svg":()=>_(()=>import("./light-xmnw2Bnt.js"),__vite__mapDeps([])),"/src/icons/lock.svg":()=>_(()=>import("./lock-Dt93hMYt.js"),__vite__mapDeps([])),"/src/icons/login_bg.svg":()=>_(()=>import("./login_bg-BPuoXCrC.js"),__vite__mapDeps([])),"/src/icons/menu.svg":()=>_(()=>import("./menu-KnKYw6gN.js"),__vite__mapDeps([])),"/src/icons/more.svg":()=>_(()=>import("./more-Ej8Oiwns.js"),__vite__mapDeps([])),"/src/icons/mouse.svg":()=>_(()=>import("./mouse-03_U_h0x.js"),__vite__mapDeps([])),"/src/icons/office.svg":()=>_(()=>import("./office-mL13bbyC.js"),__vite__mapDeps([])),"/src/icons/other.svg":()=>_(()=>import("./other-QN44tLIz.js"),__vite__mapDeps([])),"/src/icons/out.svg":()=>_(()=>import("./out-Pi3tiQst.js"),__vite__mapDeps([])),"/src/icons/print.svg":()=>_(()=>import("./print-WnHXqwgf.js"),__vite__mapDeps([])),"/src/icons/qrcode.svg":()=>_(()=>import("./qrcode-Ecs_mS_M.js"),__vite__mapDeps([])),"/src/icons/ray.svg":()=>_(()=>import("./ray-vB7gcmcu.js"),__vite__mapDeps([])),"/src/icons/reload.svg":()=>_(()=>import("./reload-3-4q7kiv.js"),__vite__mapDeps([])),"/src/icons/rely.svg":()=>_(()=>import("./rely-19SjH3Lv.js"),__vite__mapDeps([])),"/src/icons/resize_h.svg":()=>_(()=>import("./resize_h-f_cn8Biv.js"),__vite__mapDeps([])),"/src/icons/right_arrow.svg":()=>_(()=>import("./right_arrow-ZCE0gHo4.js"),__vite__mapDeps([])),"/src/icons/row_end.svg":()=>_(()=>import("./row_end-BkDswo_g.js"),__vite__mapDeps([])),"/src/icons/row_head.svg":()=>_(()=>import("./row_head-yo3TQzYk.js"),__vite__mapDeps([])),"/src/icons/search.svg":()=>_(()=>import("./search-PNJFeCur.js"),__vite__mapDeps([])),"/src/icons/setting.svg":()=>_(()=>import("./setting-oh7cMM8q.js"),__vite__mapDeps([])),"/src/icons/table.svg":()=>_(()=>import("./table-RDC-4476.js"),__vite__mapDeps([])),"/src/icons/twitter.svg":()=>_(()=>import("./twitter-dtkDLQvk.js"),__vite__mapDeps([]))})).forEach(t=>{const i=t.match(/\/(\w+)\.svg/)[1];i&&o.value.push(i)}),{icons:o}},render(){return Vue.createVNode(naive.NCard,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let o;return Vue.createVNode(naive.NFlex,null,e(o=this.icons.map(r=>Vue.withDirectives(Vue.createVNode("div",{class:"pre-view-icons__card",key:r},[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(s,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[Vue.resolveDirective("copy"),``]])))?o:{default:()=>[o]})}})}});export{F as default}; +import{w as s,_}from"./hooks-lxIXz5_l.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";function e(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Vue.isVNode(o)}const F=Vue.defineComponent({name:"PreviewSVGIcons",setup(){const o=Vue.ref([]);return Object.keys(Object.assign({"/src/icons/adjustment.svg":()=>_(()=>import("./adjustment-xKF72UgA.js"),__vite__mapDeps([])),"/src/icons/axios.svg":()=>_(()=>import("./axios-YSlog9Ro.js"),__vite__mapDeps([])),"/src/icons/close.svg":()=>_(()=>import("./close-azVF77Xi.js"),__vite__mapDeps([])),"/src/icons/close_left.svg":()=>_(()=>import("./close_left-wghYE-yL.js"),__vite__mapDeps([])),"/src/icons/close_right.svg":()=>_(()=>import("./close_right-rXgRVuVY.js"),__vite__mapDeps([])),"/src/icons/dark.svg":()=>_(()=>import("./dark-a3Shlz-3.js"),__vite__mapDeps([])),"/src/icons/dashboard.svg":()=>_(()=>import("./dashboard-VSK8Ksb1.js"),__vite__mapDeps([])),"/src/icons/doc.svg":()=>_(()=>import("./doc-p7kRFTKe.js"),__vite__mapDeps([])),"/src/icons/draggable.svg":()=>_(()=>import("./draggable-WSlqett4.js"),__vite__mapDeps([])),"/src/icons/echart.svg":()=>_(()=>import("./echart-uDAjf1Xg.js"),__vite__mapDeps([])),"/src/icons/empty.svg":()=>_(()=>import("./empty-H5pwkZW3.js"),__vite__mapDeps([])),"/src/icons/error.svg":()=>_(()=>import("./error-1RFXBHac.js"),__vite__mapDeps([])),"/src/icons/expanded.svg":()=>_(()=>import("./expanded-hDBHAcSA.js"),__vite__mapDeps([])),"/src/icons/export_excel.svg":()=>_(()=>import("./export_excel-GFRgGiCF.js"),__vite__mapDeps([])),"/src/icons/fullscreen.svg":()=>_(()=>import("./fullscreen-LJg-Litq.js"),__vite__mapDeps([])),"/src/icons/fullscreen_fold.svg":()=>_(()=>import("./fullscreen_fold-0gdJoV38.js"),__vite__mapDeps([])),"/src/icons/github.svg":()=>_(()=>import("./github-cVhKF5HM.js"),__vite__mapDeps([])),"/src/icons/google.svg":()=>_(()=>import("./google-Mjnm1oio.js"),__vite__mapDeps([])),"/src/icons/language.svg":()=>_(()=>import("./language-dqZc_JRl.js"),__vite__mapDeps([])),"/src/icons/left_arrow.svg":()=>_(()=>import("./left_arrow-9Z3nu3IR.js"),__vite__mapDeps([])),"/src/icons/light.svg":()=>_(()=>import("./light-xmnw2Bnt.js"),__vite__mapDeps([])),"/src/icons/lock.svg":()=>_(()=>import("./lock-Dt93hMYt.js"),__vite__mapDeps([])),"/src/icons/login_bg.svg":()=>_(()=>import("./login_bg-BPuoXCrC.js"),__vite__mapDeps([])),"/src/icons/menu.svg":()=>_(()=>import("./menu-KnKYw6gN.js"),__vite__mapDeps([])),"/src/icons/more.svg":()=>_(()=>import("./more-Ej8Oiwns.js"),__vite__mapDeps([])),"/src/icons/mouse.svg":()=>_(()=>import("./mouse-03_U_h0x.js"),__vite__mapDeps([])),"/src/icons/office.svg":()=>_(()=>import("./office-mL13bbyC.js"),__vite__mapDeps([])),"/src/icons/other.svg":()=>_(()=>import("./other-QN44tLIz.js"),__vite__mapDeps([])),"/src/icons/out.svg":()=>_(()=>import("./out-Pi3tiQst.js"),__vite__mapDeps([])),"/src/icons/print.svg":()=>_(()=>import("./print-WnHXqwgf.js"),__vite__mapDeps([])),"/src/icons/qrcode.svg":()=>_(()=>import("./qrcode-Ecs_mS_M.js"),__vite__mapDeps([])),"/src/icons/ray.svg":()=>_(()=>import("./ray-vB7gcmcu.js"),__vite__mapDeps([])),"/src/icons/reload.svg":()=>_(()=>import("./reload-3-4q7kiv.js"),__vite__mapDeps([])),"/src/icons/rely.svg":()=>_(()=>import("./rely-19SjH3Lv.js"),__vite__mapDeps([])),"/src/icons/resize_h.svg":()=>_(()=>import("./resize_h-f_cn8Biv.js"),__vite__mapDeps([])),"/src/icons/right_arrow.svg":()=>_(()=>import("./right_arrow-ZCE0gHo4.js"),__vite__mapDeps([])),"/src/icons/row_end.svg":()=>_(()=>import("./row_end-BkDswo_g.js"),__vite__mapDeps([])),"/src/icons/row_head.svg":()=>_(()=>import("./row_head-yo3TQzYk.js"),__vite__mapDeps([])),"/src/icons/search.svg":()=>_(()=>import("./search-PNJFeCur.js"),__vite__mapDeps([])),"/src/icons/setting.svg":()=>_(()=>import("./setting-oh7cMM8q.js"),__vite__mapDeps([])),"/src/icons/table.svg":()=>_(()=>import("./table-RDC-4476.js"),__vite__mapDeps([])),"/src/icons/twitter.svg":()=>_(()=>import("./twitter-dtkDLQvk.js"),__vite__mapDeps([]))})).forEach(t=>{const i=t.match(/\/(\w+)\.svg/)[1];i&&o.value.push(i)}),{icons:o}},render(){return Vue.createVNode(naive.NCard,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let o;return Vue.createVNode(naive.NFlex,null,e(o=this.icons.map(r=>Vue.withDirectives(Vue.createVNode("div",{class:"pre-view-icons__card",key:r},[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(s,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[Vue.resolveDirective("copy"),``]])))?o:{default:()=>[o]})}})}});export{F as default}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = [] diff --git a/assets/index-l2OdooJx.js.gz b/assets/index-l2OdooJx.js.gz new file mode 100644 index 00000000..138a7ec1 Binary files /dev/null and b/assets/index-l2OdooJx.js.gz differ diff --git a/assets/index-oh2YcAK7.js b/assets/index-oh2YcAK7.js deleted file mode 100644 index 7a184791..00000000 --- a/assets/index-oh2YcAK7.js +++ /dev/null @@ -1 +0,0 @@ -import{s as r,g as o,j as u,y as a}from"./utils-bL-oQI6P.js";import"./hooks-v5yhfgkQ.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";const R=Vue.defineComponent({name:"CacheDemo",setup(){const e=Vue.ref("Ray"),t=Vue.ref("ray:");return{nameValue:e,currentPrefix:t}},render(){return Vue.createVNode(naive.NCard,{title:"cache 工具包示例"},{default:()=>Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("点击 setStorage 按钮,设置缓存示例")]),Vue.createVNode(naive.NInput,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:"请输入姓名"},null),Vue.createVNode(naive.NInput,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:"请输入前缀"},null)]}),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{r("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[Vue.createTextVNode("setStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=o("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[Vue.createTextVNode("getStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[Vue.createTextVNode("removeStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=a("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[Vue.createTextVNode("hasStorage")]})]})})}});export{R as default}; diff --git a/assets/index-oh2YcAK7.js.gz b/assets/index-oh2YcAK7.js.gz deleted file mode 100644 index c05ec828..00000000 Binary files a/assets/index-oh2YcAK7.js.gz and /dev/null differ diff --git a/assets/index-p964EGy5.js b/assets/index-p964EGy5.js deleted file mode 100644 index e2bd3a4a..00000000 --- a/assets/index-p964EGy5.js +++ /dev/null @@ -1 +0,0 @@ -import{s as u}from"./utils-bL-oQI6P.js";import{m as v,h,o as N,j as f,p,d,q as y,r as o,e as w,T as b,L as S}from"./hooks-v5yhfgkQ.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import{L as x}from"./ray-9TfU2AhD.js";import{b as R}from"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import{R as _}from"./index-0vVhegrX.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";function j(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const C=Vue.defineComponent({name:"RSigning",setup(){const e=Vue.ref(),{t}=v(),{signing:i}=h(),{getRootPath:n}=N(),a=f("globalSpinning"),g=()=>({name:"Ray Admin",pwd:"123456"}),c=VueRouter.useRouter(),r=Vue.ref(g()),m={name:{required:!0,message:t("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:r,loginFormRef:e,handleLogin:()=>{var l;(l=e.value)==null||l.validate(V=>{V||(p("globalSpinning",!0),i(r.value).then(s=>{s.code===0&&setTimeout(()=>{p("globalSpinning",!1),window.$message.success(`欢迎${r.value.name}登陆~`),u(d.token,"tokenValue"),u(d.signing,s.data),c.push(n.value)},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:m,globalSpinning:a}},render(){let e;const{$t:t,globalSpinning:i}=this;return Vue.createVNode(naive.NForm,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Name"),path:"name"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.name,"onUpdate:value":n=>this.signingForm.name=n,placeholder:t("views.login.index.NamePlaceholder")},null)]}),Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Password"),path:"pwd"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.pwd,"onUpdate:value":n=>this.signingForm.pwd=n,type:"password",showPasswordOn:"click",placeholder:t("views.login.index.PasswordPlaceholder")},null)]}),Vue.createVNode(naive.NButton,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:i},j(e=t("views.login.index.Login"))?e:{default:()=>[e]})]})}}),k=Vue.defineComponent({name:"RRegister",render(){return Vue.createVNode(naive.NResult,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),F=Vue.defineComponent({name:"QRCodeSigning",setup(){const e=Vue.reactive({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...Vue.toRefs(e)}},render(){return Vue.createVNode("div",{class:"qrcode-signing"},[Vue.createVNode(y,{text:"ray template yes",size:200,logoImage:x},null)])}});function L(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const O=Vue.defineComponent({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:i=>{window.$message.info(`调用${i.tooltipLabel}`)}}},render(){let e;return Vue.createVNode(naive.NFlex,{class:"sso-signing",align:"center"},L(e=this.ssoSigningOptions.map(t=>Vue.createVNode(naive.NPopover,{key:t.key},{trigger:()=>Vue.createVNode(o,{name:t.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,t)},null),default:()=>t.tooltipLabel})))?e:{default:()=>[e]})}});var T={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.15","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.0.11","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.3"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function P(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ve=Vue.defineComponent({name:"RLogin",setup(){const{layout:{copyright:e}}=T,t=Vue.reactive({tabsValue:"signing"}),{height:i,width:n}=R(),{updateLocale:a}=w();return{...Vue.toRefs(t),windowHeight:i,updateLocale:a,copyright:e,windowWidth:n}},render(){let e;const{$t:t}=this;return Vue.createVNode("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[Vue.createVNode("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[Vue.createVNode("div",{class:["login-wrapper__content"]},[Vue.createVNode(naive.NFlex,{align:"center",class:"login-title__wrapper"},{default:()=>[Vue.createVNode(o,{name:"ray",size:"48"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:28},{default:()=>[Vue.createTextVNode("Ray Template")]})]}),Vue.createVNode(naive.NFlex,{align:"center",class:"login-action__wrapper"},{default:()=>[Vue.createVNode(b,null,null),Vue.createVNode(naive.NDropdown,{options:S,onSelect:i=>this.updateLocale(i),trigger:"click"},{default:()=>[Vue.createVNode(o,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NGrid,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[Vue.createVNode(naive.NGridItem,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",vertical:!0},{default:()=>[Vue.createVNode(o,{name:"login_bg",width:"368",height:"368"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:36},P(e=t("views.login.index.RayTemplate"))?e:{default:()=>[e]})]})]}),Vue.createVNode(naive.NGridItem,{span:1,class:"login__right-wrapper"},{default:()=>[Vue.createVNode(naive.NCard,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[Vue.createVNode(naive.NTabs,{value:this.tabsValue,"onUpdate:value":i=>this.tabsValue=i,type:"line",animated:!0,size:"large"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Signing"),name:"signing"},{default:()=>[Vue.createVNode(C,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Register"),name:"register"},{default:()=>[Vue.createVNode(k,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[Vue.createVNode(F,null,null)]})])}),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("其他登陆方式")]}),Vue.createVNode(O,null,null),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("友情链接")]}),Vue.createVNode(_,null,null)]})]})]}),Vue.createVNode(naive.NFlex,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ve as default}; diff --git a/assets/index-p964EGy5.js.gz b/assets/index-p964EGy5.js.gz deleted file mode 100644 index 40b50d3f..00000000 Binary files a/assets/index-p964EGy5.js.gz and /dev/null differ diff --git a/assets/index-hrbHJX4t.js b/assets/index-t2_z-FtU.js similarity index 85% rename from assets/index-hrbHJX4t.js rename to assets/index-t2_z-FtU.js index 10e625fb..0788c098 100644 --- a/assets/index-hrbHJX4t.js +++ b/assets/index-t2_z-FtU.js @@ -1 +1 @@ -import{r as l}from"./hooks-v5yhfgkQ.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import{R as r}from"./index-0vVhegrX.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";function o(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const X=Vue.defineComponent({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("Vue3.x")]}),Vue.createVNode(naive.NTag,{type:"info"},{default:()=>[Vue.createTextVNode("React")]})]})},{label:"从事搬砖时长",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(l,{name:"ray",size:"22"},null),Vue.createTextVNode("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createTextVNode("如果有希望补充的功能可以在"),Vue.createVNode("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[Vue.createTextVNode("GitHub")]),Vue.createTextVNode("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let u,t;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,null,{header:()=>Vue.createVNode(l,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),Vue.createVNode(naive.NCard,{title:"个人介绍"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left",column:2},o(u=this.coverLetterOptions.map(e=>{let a;return Vue.createVNode(naive.NDescriptionsItem,{key:e.label,label:e.label,span:e==null?void 0:e.span},o(a=e.des())?a:{default:()=>[a]})}))?u:{default:()=>[u]})]}),Vue.createVNode(naive.NCard,{title:"项目介绍"},{default:()=>[Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("技术栈")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createVNode(naive.NFlex,null,o(t=this.technologyTagOptions.map(e=>Vue.createVNode(naive.NTag,{key:e.value,type:"info"},{default:()=>[e.label]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("项目介绍")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createTextVNode("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),Vue.createVNode(naive.NCard,{title:"友情链接"},{default:()=>[Vue.createVNode(r,null,null)]})]})}});export{X as default}; +import{w as l}from"./hooks-lxIXz5_l.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import{R as i}from"./index-0vVhegrX.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";function o(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const X=Vue.defineComponent({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("Vue3.x")]}),Vue.createVNode(naive.NTag,{type:"info"},{default:()=>[Vue.createTextVNode("React")]})]})},{label:"从事搬砖时长",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(l,{name:"ray",size:"22"},null),Vue.createTextVNode("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createTextVNode("如果有希望补充的功能可以在"),Vue.createVNode("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[Vue.createTextVNode("GitHub")]),Vue.createTextVNode("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let u,t;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,null,{header:()=>Vue.createVNode(l,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),Vue.createVNode(naive.NCard,{title:"个人介绍"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left",column:2},o(u=this.coverLetterOptions.map(e=>{let a;return Vue.createVNode(naive.NDescriptionsItem,{key:e.label,label:e.label,span:e==null?void 0:e.span},o(a=e.des())?a:{default:()=>[a]})}))?u:{default:()=>[u]})]}),Vue.createVNode(naive.NCard,{title:"项目介绍"},{default:()=>[Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("技术栈")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createVNode(naive.NFlex,null,o(t=this.technologyTagOptions.map(e=>Vue.createVNode(naive.NTag,{key:e.value,type:"info"},{default:()=>[e.label]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("项目介绍")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createTextVNode("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),Vue.createVNode(naive.NCard,{title:"友情链接"},{default:()=>[Vue.createVNode(i,null,null)]})]})}});export{X as default}; diff --git a/assets/index-t2_z-FtU.js.gz b/assets/index-t2_z-FtU.js.gz new file mode 100644 index 00000000..852db469 Binary files /dev/null and b/assets/index-t2_z-FtU.js.gz differ diff --git a/assets/index-wNfQSZJ3.js.gz b/assets/index-wNfQSZJ3.js.gz deleted file mode 100644 index c44a37de..00000000 Binary files a/assets/index-wNfQSZJ3.js.gz and /dev/null differ diff --git a/assets/index-xZvHBL1o.js.gz b/assets/index-xZvHBL1o.js.gz deleted file mode 100644 index 71a4b003..00000000 Binary files a/assets/index-xZvHBL1o.js.gz and /dev/null differ diff --git a/assets/index-SvzBi3Tl.js b/assets/index-xcH4U4Ty.js similarity index 69% rename from assets/index-SvzBi3Tl.js rename to assets/index-xcH4U4Ty.js index 18324afc..1c284026 100644 --- a/assets/index-SvzBi3Tl.js +++ b/assets/index-xcH4U4Ty.js @@ -1 +1 @@ -import{w as t}from"./hooks-v5yhfgkQ.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const R=Vue.defineComponent({name:"IframeDemo",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0,size:[20,20]},{default:()=>[Vue.createVNode(naive.NCard,{title:"naive ui(延迟加载)"},{default:()=>[Vue.createVNode(t,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),Vue.createVNode(naive.NCard,{title:"vue-hooks-plus(立即加载)"},{default:()=>[Vue.createVNode(t,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{R as default}; +import{z as t}from"./hooks-lxIXz5_l.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const R=Vue.defineComponent({name:"IframeDemo",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0,size:[20,20]},{default:()=>[Vue.createVNode(naive.NCard,{title:"naive ui(延迟加载)"},{default:()=>[Vue.createVNode(t,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),Vue.createVNode(naive.NCard,{title:"vue-hooks-plus(立即加载)"},{default:()=>[Vue.createVNode(t,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{R as default}; diff --git a/assets/index-xcH4U4Ty.js.gz b/assets/index-xcH4U4Ty.js.gz new file mode 100644 index 00000000..9471d537 Binary files /dev/null and b/assets/index-xcH4U4Ty.js.gz differ diff --git a/assets/index-y5nxB1Kz.js b/assets/index-y5nxB1Kz.js new file mode 100644 index 00000000..fc15f66b --- /dev/null +++ b/assets/index-y5nxB1Kz.js @@ -0,0 +1 @@ +import{s as u}from"./utils-3DRba3jA.js";import{q as v,h,r as N,j as f,t as p,d,v as w,w as o,e as y,T as b,L as S}from"./hooks-lxIXz5_l.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import{L as x}from"./ray-9TfU2AhD.js";import{b as R}from"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import{R as _}from"./index-0vVhegrX.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";function j(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const C=Vue.defineComponent({name:"RSigning",setup(){const e=Vue.ref(),{t}=v(),{signing:i}=h(),{getRootPath:n}=N(),a=f("globalSpinning"),g=()=>({name:"Ray Admin",pwd:"123456"}),c=VueRouter.useRouter(),r=Vue.ref(g()),m={name:{required:!0,message:t("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:r,loginFormRef:e,handleLogin:()=>{var l;(l=e.value)==null||l.validate(V=>{V||(p("globalSpinning",!0),i(r.value).then(s=>{s.code===0&&setTimeout(()=>{p("globalSpinning",!1),window.$message.success(`欢迎${r.value.name}登陆~`),u(d.token,"tokenValue"),u(d.signing,s.data),c.push(n.value)},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:m,globalSpinning:a}},render(){let e;const{$t:t,globalSpinning:i}=this;return Vue.createVNode(naive.NForm,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Name"),path:"name"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.name,"onUpdate:value":n=>this.signingForm.name=n,placeholder:t("views.login.index.NamePlaceholder")},null)]}),Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Password"),path:"pwd"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.pwd,"onUpdate:value":n=>this.signingForm.pwd=n,type:"password",showPasswordOn:"click",placeholder:t("views.login.index.PasswordPlaceholder")},null)]}),Vue.createVNode(naive.NButton,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:i},j(e=t("views.login.index.Login"))?e:{default:()=>[e]})]})}}),k=Vue.defineComponent({name:"RRegister",render(){return Vue.createVNode(naive.NResult,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),F=Vue.defineComponent({name:"QRCodeSigning",setup(){const e=Vue.reactive({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...Vue.toRefs(e)}},render(){return Vue.createVNode("div",{class:"qrcode-signing"},[Vue.createVNode(w,{text:"ray template yes",size:200,logoImage:x},null)])}});function L(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const O=Vue.defineComponent({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:i=>{window.$message.info(`调用${i.tooltipLabel}`)}}},render(){let e;return Vue.createVNode(naive.NFlex,{class:"sso-signing",align:"center"},L(e=this.ssoSigningOptions.map(t=>Vue.createVNode(naive.NPopover,{key:t.key},{trigger:()=>Vue.createVNode(o,{name:t.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,t)},null),default:()=>t.tooltipLabel})))?e:{default:()=>[e]})}});var T={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.4.3",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.37.3",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.19","vue-hooks-plus":"1.8.5","vue-i18n":"^9.9.0","vue-router":"^4.2.5",xlsx:"^0.18.5"},devDependencies:{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.11","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^1.5.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.52.0","eslint-config-prettier":"^9.0.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.2.0","eslint-plugin-prettier":"^5.0.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.2",prettier:"^3.0.3","rollup-plugin-visualizer":"^5.9.2",sass:"1.69.5","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.16.6","unplugin-vue-components":"^0.25.2",vite:"^5.1.3","vite-plugin-cdn2":"0.15.2","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.7.38","vite-plugin-mock-dev-server":"1.3.4","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.8"},name:"ray-template",version:"4.6.4-beta1.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function P(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ve=Vue.defineComponent({name:"RLogin",setup(){const{layout:{copyright:e}}=T,t=Vue.reactive({tabsValue:"signing"}),{height:i,width:n}=R(),{updateLocale:a}=y();return{...Vue.toRefs(t),windowHeight:i,updateLocale:a,copyright:e,windowWidth:n}},render(){let e;const{$t:t}=this;return Vue.createVNode("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[Vue.createVNode("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[Vue.createVNode("div",{class:["login-wrapper__content"]},[Vue.createVNode(naive.NFlex,{align:"center",class:"login-title__wrapper"},{default:()=>[Vue.createVNode(o,{name:"ray",size:"48"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:28},{default:()=>[Vue.createTextVNode("Ray Template")]})]}),Vue.createVNode(naive.NFlex,{align:"center",class:"login-action__wrapper"},{default:()=>[Vue.createVNode(b,null,null),Vue.createVNode(naive.NDropdown,{options:S,onSelect:i=>this.updateLocale(i),trigger:"click"},{default:()=>[Vue.createVNode(o,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NGrid,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[Vue.createVNode(naive.NGridItem,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",vertical:!0},{default:()=>[Vue.createVNode(o,{name:"login_bg",width:"368",height:"368"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:36},P(e=t("views.login.index.RayTemplate"))?e:{default:()=>[e]})]})]}),Vue.createVNode(naive.NGridItem,{span:1,class:"login__right-wrapper"},{default:()=>[Vue.createVNode(naive.NCard,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[Vue.createVNode(naive.NTabs,{value:this.tabsValue,"onUpdate:value":i=>this.tabsValue=i,type:"line",animated:!0,size:"large"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Signing"),name:"signing"},{default:()=>[Vue.createVNode(C,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Register"),name:"register"},{default:()=>[Vue.createVNode(k,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[Vue.createVNode(F,null,null)]})])}),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("其他登陆方式")]}),Vue.createVNode(O,null,null),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("友情链接")]}),Vue.createVNode(_,null,null)]})]})]}),Vue.createVNode(naive.NFlex,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ve as default}; diff --git a/assets/index-y5nxB1Kz.js.gz b/assets/index-y5nxB1Kz.js.gz new file mode 100644 index 00000000..42b5c053 Binary files /dev/null and b/assets/index-y5nxB1Kz.js.gz differ diff --git a/assets/instance-0MR4YS8M.js.gz b/assets/instance-0MR4YS8M.js.gz deleted file mode 100644 index a348d2a8..00000000 Binary files a/assets/instance-0MR4YS8M.js.gz and /dev/null differ diff --git a/assets/instance-0MR4YS8M.js b/assets/instance-I7ExDMVm.js similarity index 90% rename from assets/instance-0MR4YS8M.js rename to assets/instance-I7ExDMVm.js index c814de37..1bb8dfec 100644 --- a/assets/instance-0MR4YS8M.js +++ b/assets/instance-I7ExDMVm.js @@ -1 +1 @@ -import{B as t,C as n,d as R,E as q}from"./hooks-v5yhfgkQ.js";import{g as d}from"./utils-bL-oQI6P.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";const A=(e,r)=>{t.removePendingRequest(e.config)},y=(e,r)=>{t.removePendingRequest(e.config)},p={implementResponseInterceptorArray:[A],implementResponseInterceptorErrorArray:[y]},{setImplement:m}=n(),E=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},g=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},k=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},P=(e,r)=>{const o=d(R.token);return e.url,{key:"X-TOKEN",value:o}},f=(e,r)=>{k(e,[P(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},v=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},C=(e,r)=>{t.removePendingRequest(e)},c={implementRequestInterceptorArray:[f,v],implementRequestInterceptorErrorArray:[C]},{setImplement:a}=n(),H=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},j=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=axios.create(q),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),H(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(j(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),E(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(g(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; +import{F as t,G as n,d as R,H as q}from"./hooks-lxIXz5_l.js";import{g as d}from"./utils-3DRba3jA.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";const A=(e,r)=>{t.removePendingRequest(e.config)},y=(e,r)=>{t.removePendingRequest(e.config)},p={implementResponseInterceptorArray:[A],implementResponseInterceptorErrorArray:[y]},{setImplement:m}=n(),E=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},g=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},k=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},P=(e,r)=>{const o=d(R.token);return e.url,{key:"X-TOKEN",value:o}},f=(e,r)=>{k(e,[P(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},v=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},C=(e,r)=>{t.removePendingRequest(e)},c={implementRequestInterceptorArray:[f,v],implementRequestInterceptorErrorArray:[C]},{setImplement:a}=n(),H=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},j=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=axios.create(q),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),H(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(j(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),E(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(g(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/assets/instance-I7ExDMVm.js.gz b/assets/instance-I7ExDMVm.js.gz new file mode 100644 index 00000000..e45f5eb8 Binary files /dev/null and b/assets/instance-I7ExDMVm.js.gz differ diff --git a/assets/utils-bL-oQI6P.js b/assets/utils-3DRba3jA.js similarity index 98% rename from assets/utils-bL-oQI6P.js rename to assets/utils-3DRba3jA.js index 07c70dcd..4937e1c2 100644 --- a/assets/utils-bL-oQI6P.js +++ b/assets/utils-3DRba3jA.js @@ -1 +1 @@ -import{A as y,u as A,a as x,b as v}from"./hooks-v5yhfgkQ.js";import{c as l}from"./currency.js@2.0.4--or6eeOG.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./print-js@1.6.0-gYKv6oGQ.js";import{c as _}from"./lodash-es@4.17.21-xgd1l9mE.js";var m=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(m||{}),I={VITE_APP_URL:"/",VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",BASE_URL:"/ray-template/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const K=()=>I,P=(e,t)=>{const r=document.createElement("a");r.href=e,r.download=t,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)},h=(e,t)=>Object.prototype.toString.call(e).includes(t),M=(e=16,t=62)=>{const r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],s=window.crypto||window.msCrypto;let n=0;for(n=0;nnew Promise((r,o)=>{let s;try{if(typeof e=="string")return P(e,t),r();if(e instanceof ArrayBuffer)s=new Blob([new Uint8Array(e)],{type:"application/octet-stream"});else if(e instanceof File||e instanceof Blob)s=e;else return o(new Error("downloadAnyFile: Unsupported data type."));const n=URL.createObjectURL(s),i=document.createElement("a");i.href=n,i.download=t,i.style.display="none";const a=()=>{URL.revokeObjectURL(n),document.body.removeChild(i)};i.addEventListener("load",()=>(a(),r())),i.addEventListener("error",c=>(a(),o(c))),document.body.appendChild(i),i.click()}catch(n){return o(n)}});function k(e,t){if(!e)return console.warn(`[omit]: The targetObject is expected to be an object, but got ${e}.`),{};const r=Array.isArray(t)?t:[t];return r.length&&r.forEach(o=>{delete e[o]}),e}function J(e,t){if(!e)return console.warn(`[pick]: The targetObject is expected to be an object, but got ${e}.`),{};const r=Array.isArray(t)?t:[t];return r.length?r.reduce((s,n)=>(Reflect.has(e,n)&&(s[n]=e[n]),s),{}):e}const Y=()=>{const e=navigator.userAgent;return/windows/i.test(e)?m.Windows:/macintosh|mac os x/i.test(e)?m.MacOS:/linux/i.test(e)?m.Linux:/android/i.test(e)?m.Android:/iphone|ipad|ipod/i.test(e)?m.IOS:m.Unknown},G=(e,t)=>{const r=e.endsWith("/"),o=t.endsWith("/");return r&&o?e.slice(0,-1)===t.slice(0,-1):!r&&!o?e===t:e===t||e.slice(0,-1)===t||e===t.slice(0,-1)};function H(e,t="sessionStorage",r){const{prefix:o,prefixKey:s}=r??{},n=o?s||y:"",i=t==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(i).find(a=>a===n+e)}function Q(e,t,r="sessionStorage",o){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:s,prefixKey:n}=o??{},i=s?n||y:"";try{const a=JSON.stringify(t);r==="localStorage"?window.localStorage.setItem(i+e,a):window.sessionStorage.setItem(i+e,a)}catch(a){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,a)}}function Z(e,t="sessionStorage",r){const{prefix:o,prefixKey:s,defaultValue:n}=r??{},i=o?s||y:"";try{const a=t==="localStorage"?window.localStorage.getItem(i+e):window.sessionStorage.getItem(i+e);return a===null?n??null:JSON.parse(a)}catch(a){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,a),n??null}}const z=(e,t,r)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:o,prefixKey:s}=r??{},n=o?s||y:"",i=Object.keys(window.localStorage),a=Object.keys(window.sessionStorage),c=(g,p)=>{(g?[...a,...i]:p==="localStorage"?i:a).forEach(d=>{e==="__all__"?(window.sessionStorage.removeItem(n+d),window.localStorage.removeItem(n+d)):p==="localStorage"?window.localStorage.removeItem(n+d):window.sessionStorage.removeItem(n+d)})};switch(e){case"__all__":c(!0);break;case"__all_sessionStorage__":c(!1,"sessionStorage");break;case"__all_localStorage__":c(!1,"localStorage");break;default:t==="localStorage"?window.localStorage.removeItem(n+e):window.sessionStorage.removeItem(n+e);break}},N=(e,t)=>{var n;const{domToImageOptions:r,printOptions:o}=t??{},{create:s}=x(e,r);window==null||window.$loadingBar.start(),(n=s("jpeg"))==null||n.then(i=>{const{print:a}=A(i,{type:"image",base64:!0,targetStyles:["*"],...k(o,["type","base64"])});a()}).catch(()=>{window==null||window.$loadingBar.error()}).finally(()=>{window==null||window.$loadingBar.finish()})},ee=(e,t)=>{const r=()=>{const s=f(e);s&&(typeof t=="string"?t.trim().split(" "):t).forEach(i=>{i&&s.classList.add(i)})},o=Vue.watch(()=>f(e),r,{immediate:!0});w(o)},te=(e,t)=>{const r=()=>{const s=f(e);if(s)if(t==="removeAllClass"){const n=s.classList;n.forEach(i=>n.remove(i))}else(typeof t=="string"?t.trim().split(" "):t).forEach(i=>{i&&s.classList.remove(i)})},o=Vue.watch(()=>f(e),r,{immediate:!0});w(o)},re=(e,t)=>{const r=Vue.ref(!1),o=()=>{const n=f(e);if(!n)r.value=!1;else{const i=n.className,a=typeof t=="string"?t.trim().split(" ").filter(c=>c!==""):t;r.value=a.some(c=>i.includes(c))}},s=Vue.watch(()=>f(e),o,{immediate:!0});return w(s),r},C=e=>{const t=["webkit","moz","ms","o"],r={};return t.forEach(o=>{r[`${o}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),r},ne=(e,t)=>{const r=(n,i)=>{n.split(";").forEach(a=>{const[c,g]=a.split(":");if(c&&g){const p=c.trim(),b=g.trim();if(c.startsWith("--"))i.style.setProperty(p,b);else{const d=C(p);Object.keys(d).forEach(E=>{i.style[E]=d[E]}),i.style[p]=b}}})},o=()=>{const n=f(e);n&&(h(t,"String")?r(t,n):h(t,"Array")?t.forEach(i=>{r(i,n)}):Object.keys(t).forEach(a=>{r(`${a}: ${t[a]}`,n)}))},s=Vue.watch(()=>f(e),o,{immediate:!0});w(s)},oe=(e,t=1)=>{const r=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i,o=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/i,s=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/i;let n;if(r.test(e)){const i=e.substring(1);n="rgb("+[parseInt(i.substring(0,2),16),parseInt(i.substring(2,4),16),parseInt(i.substring(4,6),16)].join(", ")+")"}else return o.test(e)||s.test(e),e;return n&&!n.startsWith("rgba")&&(n=n.replace("rgb","rgba").replace(")",`, ${t})`)),n},se=(e,t)=>{const{defaultElement:r}=t||{};if(!e)return r?[r]:null;const o=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{return Array.from(document.querySelectorAll(o))}catch(s){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,s),r?[r]:null}},ie=(e,t="px")=>typeof e=="number"?e.toString()+t:h(e,"String")&&v.cssUnit.test(e)?e:e+t,u={precision:8,decimal:"."},S=(e,t,r)=>e!=null&&e.length?e.length===1?l(e[0],u):e.reduce((s,n,i,a)=>(s=r==null?void 0:r(s,n,i,a),s),t):0,R=(e,t,r="number")=>{const o=Object.assign({},u,t),s=l(e,o);return r==="number"?s.value:s.toString()},ae=(...e)=>e.length===1?l(e[0],u).add(0):S(e,0,(t,r)=>l(t,u).add(r)),ce=(...e)=>{if(e.length===1)return l(e[0],u).subtract(0);if(e.length===2){const[o,s]=e;return l(o,u).subtract(s)}const t=_(e),r=t.shift();return t.length?S(t,r,(o,s)=>l(o,u).subtract(s)):r},le=(...e)=>e.length===1?l(e[0],u).multiply(1):S(e,1,(t,r)=>l(t,u).multiply(r)),ue=(...e)=>{if(e.length===1)return l(e[0],u).divide(1);if(e.length===2){const[o,s]=e;return l(o,u).divide(s)}const t=_(e),r=t.shift();return S(t,r,(o,s)=>l(o,u).divide(s))},fe=(e,t)=>t<=1?[e||0]:e?l(e,u).distribute(t).map(o=>R(o)):new Array(t).fill(0);function $(e,...t){if(Array.isArray(e))e.forEach(r=>$(r,...t));else return e(...t)}function f(e,t){var o;if(!e)return t;let r;return typeof e=="function"?r=e():Vue.isRef(e)?r=((o=e.value)==null?void 0:o.$el)??e.value:r=e,r}function de(e,t){if(!e){const{defaultElement:r=null}=t??{};return typeof r=="function"?r:()=>r}if(typeof e=="string"||h(e,"Object"))return()=>e;if(typeof e=="function")return e}function w(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function me(e,t){const r=Vue.watchEffect(e,t);w(r)}export{fe as A,ae as B,ce as C,le as D,ue as E,ie as a,$ as b,oe as c,P as d,X as e,J as f,Z as g,G as h,h as i,z as j,K as k,te as l,ee as m,Y as n,re as o,N as p,se as q,de as r,Q as s,w as t,M as u,f as v,me as w,ne as x,H as y,R as z}; +import{A as y,u as A,a as x,b as v}from"./hooks-lxIXz5_l.js";import{c as l}from"./currency.js@2.0.4--or6eeOG.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./print-js@1.6.0-gYKv6oGQ.js";import{c as _}from"./lodash-es@4.17.21-xgd1l9mE.js";var m=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(m||{}),I={VITE_APP_URL:"/",VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",BASE_URL:"/ray-template/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const K=()=>I,P=(e,t)=>{const r=document.createElement("a");r.href=e,r.download=t,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)},h=(e,t)=>Object.prototype.toString.call(e).includes(t),M=(e=16,t=62)=>{const r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],s=window.crypto||window.msCrypto;let n=0;for(n=0;nnew Promise((r,o)=>{let s;try{if(typeof e=="string")return P(e,t),r();if(e instanceof ArrayBuffer)s=new Blob([new Uint8Array(e)],{type:"application/octet-stream"});else if(e instanceof File||e instanceof Blob)s=e;else return o(new Error("downloadAnyFile: Unsupported data type."));const n=URL.createObjectURL(s),i=document.createElement("a");i.href=n,i.download=t,i.style.display="none";const a=()=>{URL.revokeObjectURL(n),document.body.removeChild(i)};i.addEventListener("load",()=>(a(),r())),i.addEventListener("error",c=>(a(),o(c))),document.body.appendChild(i),i.click()}catch(n){return o(n)}});function k(e,t){if(!e)return console.warn(`[omit]: The targetObject is expected to be an object, but got ${e}.`),{};const r=Array.isArray(t)?t:[t];return r.length&&r.forEach(o=>{delete e[o]}),e}function J(e,t){if(!e)return console.warn(`[pick]: The targetObject is expected to be an object, but got ${e}.`),{};const r=Array.isArray(t)?t:[t];return r.length?r.reduce((s,n)=>(Reflect.has(e,n)&&(s[n]=e[n]),s),{}):e}const Y=()=>{const e=navigator.userAgent;return/windows/i.test(e)?m.Windows:/macintosh|mac os x/i.test(e)?m.MacOS:/linux/i.test(e)?m.Linux:/android/i.test(e)?m.Android:/iphone|ipad|ipod/i.test(e)?m.IOS:m.Unknown},G=(e,t)=>{const r=e.endsWith("/"),o=t.endsWith("/");return r&&o?e.slice(0,-1)===t.slice(0,-1):!r&&!o?e===t:e===t||e.slice(0,-1)===t||e===t.slice(0,-1)};function H(e,t="sessionStorage",r){const{prefix:o,prefixKey:s}=r??{},n=o?s||y:"",i=t==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(i).find(a=>a===n+e)}function Q(e,t,r="sessionStorage",o){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:s,prefixKey:n}=o??{},i=s?n||y:"";try{const a=JSON.stringify(t);r==="localStorage"?window.localStorage.setItem(i+e,a):window.sessionStorage.setItem(i+e,a)}catch(a){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,a)}}function Z(e,t="sessionStorage",r){const{prefix:o,prefixKey:s,defaultValue:n}=r??{},i=o?s||y:"";try{const a=t==="localStorage"?window.localStorage.getItem(i+e):window.sessionStorage.getItem(i+e);return a===null?n??null:JSON.parse(a)}catch(a){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,a),n??null}}const z=(e,t,r)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:o,prefixKey:s}=r??{},n=o?s||y:"",i=Object.keys(window.localStorage),a=Object.keys(window.sessionStorage),c=(g,p)=>{(g?[...a,...i]:p==="localStorage"?i:a).forEach(d=>{e==="__all__"?(window.sessionStorage.removeItem(n+d),window.localStorage.removeItem(n+d)):p==="localStorage"?window.localStorage.removeItem(n+d):window.sessionStorage.removeItem(n+d)})};switch(e){case"__all__":c(!0);break;case"__all_sessionStorage__":c(!1,"sessionStorage");break;case"__all_localStorage__":c(!1,"localStorage");break;default:t==="localStorage"?window.localStorage.removeItem(n+e):window.sessionStorage.removeItem(n+e);break}},N=(e,t)=>{var n;const{domToImageOptions:r,printOptions:o}=t??{},{create:s}=x(e,r);window==null||window.$loadingBar.start(),(n=s("jpeg"))==null||n.then(i=>{const{print:a}=A(i,{type:"image",base64:!0,targetStyles:["*"],...k(o,["type","base64"])});a()}).catch(()=>{window==null||window.$loadingBar.error()}).finally(()=>{window==null||window.$loadingBar.finish()})},ee=(e,t)=>{const r=()=>{const s=f(e);s&&(typeof t=="string"?t.trim().split(" "):t).forEach(i=>{i&&s.classList.add(i)})},o=Vue.watch(()=>f(e),r,{immediate:!0});w(o)},te=(e,t)=>{const r=()=>{const s=f(e);if(s)if(t==="removeAllClass"){const n=s.classList;n.forEach(i=>n.remove(i))}else(typeof t=="string"?t.trim().split(" "):t).forEach(i=>{i&&s.classList.remove(i)})},o=Vue.watch(()=>f(e),r,{immediate:!0});w(o)},re=(e,t)=>{const r=Vue.ref(!1),o=()=>{const n=f(e);if(!n)r.value=!1;else{const i=n.className,a=typeof t=="string"?t.trim().split(" ").filter(c=>c!==""):t;r.value=a.some(c=>i.includes(c))}},s=Vue.watch(()=>f(e),o,{immediate:!0});return w(s),r},C=e=>{const t=["webkit","moz","ms","o"],r={};return t.forEach(o=>{r[`${o}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),r},ne=(e,t)=>{const r=(n,i)=>{n.split(";").forEach(a=>{const[c,g]=a.split(":");if(c&&g){const p=c.trim(),b=g.trim();if(c.startsWith("--"))i.style.setProperty(p,b);else{const d=C(p);Object.keys(d).forEach(E=>{i.style[E]=d[E]}),i.style[p]=b}}})},o=()=>{const n=f(e);n&&(h(t,"String")?r(t,n):h(t,"Array")?t.forEach(i=>{r(i,n)}):Object.keys(t).forEach(a=>{r(`${a}: ${t[a]}`,n)}))},s=Vue.watch(()=>f(e),o,{immediate:!0});w(s)},oe=(e,t=1)=>{const r=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i,o=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/i,s=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/i;let n;if(r.test(e)){const i=e.substring(1);n="rgb("+[parseInt(i.substring(0,2),16),parseInt(i.substring(2,4),16),parseInt(i.substring(4,6),16)].join(", ")+")"}else return o.test(e)||s.test(e),e;return n&&!n.startsWith("rgba")&&(n=n.replace("rgb","rgba").replace(")",`, ${t})`)),n},se=(e,t)=>{const{defaultElement:r}=t||{};if(!e)return r?[r]:null;const o=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{return Array.from(document.querySelectorAll(o))}catch(s){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,s),r?[r]:null}},ie=(e,t="px")=>typeof e=="number"?e.toString()+t:h(e,"String")&&v.cssUnit.test(e)?e:e+t,u={precision:8,decimal:"."},S=(e,t,r)=>e!=null&&e.length?e.length===1?l(e[0],u):e.reduce((s,n,i,a)=>(s=r==null?void 0:r(s,n,i,a),s),t):0,R=(e,t,r="number")=>{const o=Object.assign({},u,t),s=l(e,o);return r==="number"?s.value:s.toString()},ae=(...e)=>e.length===1?l(e[0],u).add(0):S(e,0,(t,r)=>l(t,u).add(r)),ce=(...e)=>{if(e.length===1)return l(e[0],u).subtract(0);if(e.length===2){const[o,s]=e;return l(o,u).subtract(s)}const t=_(e),r=t.shift();return t.length?S(t,r,(o,s)=>l(o,u).subtract(s)):r},le=(...e)=>e.length===1?l(e[0],u).multiply(1):S(e,1,(t,r)=>l(t,u).multiply(r)),ue=(...e)=>{if(e.length===1)return l(e[0],u).divide(1);if(e.length===2){const[o,s]=e;return l(o,u).divide(s)}const t=_(e),r=t.shift();return S(t,r,(o,s)=>l(o,u).divide(s))},fe=(e,t)=>t<=1?[e||0]:e?l(e,u).distribute(t).map(o=>R(o)):new Array(t).fill(0);function $(e,...t){if(Array.isArray(e))e.forEach(r=>$(r,...t));else return e(...t)}function f(e,t){var o;if(!e)return t;let r;return typeof e=="function"?r=e():Vue.isRef(e)?r=((o=e.value)==null?void 0:o.$el)??e.value:r=e,r}function de(e,t){if(!e){const{defaultElement:r=null}=t??{};return typeof r=="function"?r:()=>r}if(typeof e=="string"||h(e,"Object"))return()=>e;if(typeof e=="function")return e}function w(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function me(e,t){const r=Vue.watchEffect(e,t);w(r)}export{fe as A,ae as B,ce as C,le as D,ue as E,ie as a,$ as b,oe as c,P as d,X as e,J as f,Z as g,G as h,h as i,z as j,K as k,te as l,ee as m,Y as n,re as o,N as p,se as q,de as r,Q as s,w as t,M as u,f as v,me as w,ne as x,H as y,R as z}; diff --git a/assets/utils-3DRba3jA.js.gz b/assets/utils-3DRba3jA.js.gz new file mode 100644 index 00000000..f10a8184 Binary files /dev/null and b/assets/utils-3DRba3jA.js.gz differ diff --git a/assets/utils-bL-oQI6P.js.gz b/assets/utils-bL-oQI6P.js.gz deleted file mode 100644 index 7c5c43b3..00000000 Binary files a/assets/utils-bL-oQI6P.js.gz and /dev/null differ diff --git a/assets/vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js b/assets/vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js similarity index 100% rename from assets/vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js rename to assets/vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js diff --git a/assets/vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js.gz b/assets/vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js.gz similarity index 100% rename from assets/vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js.gz rename to assets/vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js.gz diff --git a/assets/vue@3.4.15_typescript@5.2.2-w40geAFS.js b/assets/vue@3.4.19_typescript@5.2.2-w40geAFS.js similarity index 100% rename from assets/vue@3.4.15_typescript@5.2.2-w40geAFS.js rename to assets/vue@3.4.19_typescript@5.2.2-w40geAFS.js diff --git a/assets/zh-CN-viwDyPm2.js b/assets/zh-CN-fJdWaJad.js similarity index 89% rename from assets/zh-CN-viwDyPm2.js rename to assets/zh-CN-fJdWaJad.js index a8a01083..1a745b39 100644 --- a/assets/zh-CN-viwDyPm2.js +++ b/assets/zh-CN-fJdWaJad.js @@ -1 +1 @@ -import{t as U}from"./hooks-v5yhfgkQ.js";import"./@vueuse_core@10.7.1_vue@3.4.15-9UoKs_p_.js";import"./@vueuse_shared@10.7.1_vue@3.4.15--52Mx__5.js";import"./vue-hooks-plus@1.8.5_vue@3.4.15-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./utils-bL-oQI6P.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-Vt5ZmFiA.js";import"./zrender@5.4.4-fafgp4mQ.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.15-xG7oRWIU.js";import"./@vue_reactivity@3.4.15-2zCDAkOA.js";import"./@vue_shared@3.4.15-JOA8BF6u.js";const e="当前环境不支持全屏",W={isEnabledFullscreen:e},X=Object.freeze(Object.defineProperty({__proto__:null,default:W,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",c="动画效果",Y={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},Z=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:Y},Symbol.toStringTag,{value:"Module"})),i="刷新当前页面",s="锁屏",r="设置",l="Github",a="全屏",p="退出全屏",m="搜索",ee={Reload:i,Lock:s,Setting:r,Github:l,FullScreen:a,CancelFullScreen:p,Search:m},oe=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:p,FullScreen:a,Github:l,Lock:s,Reload:i,Search:m,Setting:r,default:ee},Symbol.toStringTag,{value:"Module"})),_="首页",u="依赖项",d="关于",g="可视化",f="滚动动画",b="请求",h="表格",S="多级菜单(缓存)",O="文档",T="文档 (加速地址)",C="文档(内嵌)",y="办公",D="文档",M="演示",P="表格",j="数字精度",v="指令",R="页面详情模式",z="Mock 数据",N="二维码",I="SVG 图标",L="模板内置 Api",k="模态框",x="右键菜单",F="缓存工具函数",te={Dashboard:_,Rely:u,RelyAbout:d,Error:"错误页",Echart:g,scrollReveal:f,Axios:b,Table:h,MultiMenu:S,Doc:O,DocLocal:T,DocLocalInside:C,Office:y,Office_Document:D,Office_Presentation:M,Office_Spreadsheet:P,CalculatePrecision:j,Directive:v,RouterDemo:R,Mock:z,QRCode:N,SvgIcon:I,TemplateHooks:L,Modal:k,ContextMenu:x,CacheDemo:F},ne=Object.freeze(Object.defineProperty({__proto__:null,Axios:b,CacheDemo:F,CalculatePrecision:j,ContextMenu:x,Dashboard:_,Directive:v,Doc:O,DocLocal:T,DocLocalInside:C,Echart:g,Mock:z,Modal:k,MultiMenu:S,Office:y,Office_Document:D,Office_Presentation:M,Office_Spreadsheet:P,QRCode:N,Rely:u,RelyAbout:d,RouterDemo:R,SvgIcon:I,Table:h,TemplateHooks:L,default:te,scrollReveal:f},Symbol.toStringTag,{value:"Module"})),w="项目配置",A={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},E="界面显示",ce={Title:w,ThemeOptions:A,InterfaceDisplay:E},ie=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:E,ThemeOptions:A,Title:w,default:ce},Symbol.toStringTag,{value:"Module"})),G="注册",Q="登录",$="扫码登陆",H="请输入用户名",V="请输入密码",q="登 陆",B="用户名",J="密码",K="开箱即用的中后台管理系统",se={Register:G,Signing:Q,QRCodeSigning:$,NamePlaceholder:H,PasswordPlaceholder:V,Login:q,Name:B,Password:J,RayTemplate:K},re=Object.freeze(Object.defineProperty({__proto__:null,Login:q,Name:B,NamePlaceholder:H,Password:J,PasswordPlaceholder:V,QRCodeSigning:$,RayTemplate:K,Register:G,Signing:Q,default:se},Symbol.toStringTag,{value:"Module"})),le=Object.assign({"./zh-CN/globalMessage.json":X,"./zh-CN/headerSettingOptions.json":Z,"./zh-CN/headerTooltip.json":oe,"./zh-CN/menu.json":ne,"./zh-CN/setting.json":ie,"./zh-CN/views/login/index.json":re}),Qe={message:{...U(le,"zh-CN")}};export{Qe as default}; +import{x as U}from"./hooks-lxIXz5_l.js";import"./@vueuse_core@10.7.1_vue@3.4.19-erC6c3KZ.js";import"./@vueuse_shared@10.7.1_vue@3.4.19--52Mx__5.js";import"./vue-hooks-plus@1.8.5_vue@3.4.19-UGgZVZ2w.js";import"./lodash@4.17.21-yUHHMES2.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-wwOruwhc.js";import"./side-channel@1.0.4-hl21th03.js";import"./get-intrinsic@1.2.1-NE0DZZ3B.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.1-Y6-kkB5s.js";import"./has@1.0.3-rcPLRdvS.js";import"./call-bind@1.0.2-8lNE5ocE.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./utils-3DRba3jA.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.4.3-94QNkbi2.js";import"./zrender@5.4.4-dbLxLQQO.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.19-9EfOi5Ir.js";import"./@vue_reactivity@3.4.19-celhyCRK.js";import"./@vue_shared@3.4.19-Zz6ACxVX.js";const e="当前环境不支持全屏",W={isEnabledFullscreen:e},X=Object.freeze(Object.defineProperty({__proto__:null,default:W,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",c="动画效果",Y={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},Z=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:Y},Symbol.toStringTag,{value:"Module"})),i="刷新当前页面",s="锁屏",r="设置",l="Github",a="全屏",p="退出全屏",m="搜索",ee={Reload:i,Lock:s,Setting:r,Github:l,FullScreen:a,CancelFullScreen:p,Search:m},oe=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:p,FullScreen:a,Github:l,Lock:s,Reload:i,Search:m,Setting:r,default:ee},Symbol.toStringTag,{value:"Module"})),_="首页",u="依赖项",d="关于",g="可视化",f="滚动动画",b="请求",h="表格",S="多级菜单(缓存)",O="文档",T="文档 (加速地址)",C="文档(内嵌)",y="办公",D="文档",M="演示",P="表格",j="数字精度",v="指令",R="页面详情模式",z="Mock 数据",N="二维码",I="SVG 图标",L="模板内置 Api",k="模态框",x="右键菜单",F="缓存工具函数",te={Dashboard:_,Rely:u,RelyAbout:d,Error:"错误页",Echart:g,scrollReveal:f,Axios:b,Table:h,MultiMenu:S,Doc:O,DocLocal:T,DocLocalInside:C,Office:y,Office_Document:D,Office_Presentation:M,Office_Spreadsheet:P,CalculatePrecision:j,Directive:v,RouterDemo:R,Mock:z,QRCode:N,SvgIcon:I,TemplateHooks:L,Modal:k,ContextMenu:x,CacheDemo:F},ne=Object.freeze(Object.defineProperty({__proto__:null,Axios:b,CacheDemo:F,CalculatePrecision:j,ContextMenu:x,Dashboard:_,Directive:v,Doc:O,DocLocal:T,DocLocalInside:C,Echart:g,Mock:z,Modal:k,MultiMenu:S,Office:y,Office_Document:D,Office_Presentation:M,Office_Spreadsheet:P,QRCode:N,Rely:u,RelyAbout:d,RouterDemo:R,SvgIcon:I,Table:h,TemplateHooks:L,default:te,scrollReveal:f},Symbol.toStringTag,{value:"Module"})),w="项目配置",A={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},E="界面显示",ce={Title:w,ThemeOptions:A,InterfaceDisplay:E},ie=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:E,ThemeOptions:A,Title:w,default:ce},Symbol.toStringTag,{value:"Module"})),G="注册",Q="登录",$="扫码登陆",H="请输入用户名",V="请输入密码",q="登 陆",B="用户名",J="密码",K="开箱即用的中后台管理系统",se={Register:G,Signing:Q,QRCodeSigning:$,NamePlaceholder:H,PasswordPlaceholder:V,Login:q,Name:B,Password:J,RayTemplate:K},re=Object.freeze(Object.defineProperty({__proto__:null,Login:q,Name:B,NamePlaceholder:H,Password:J,PasswordPlaceholder:V,QRCodeSigning:$,RayTemplate:K,Register:G,Signing:Q,default:se},Symbol.toStringTag,{value:"Module"})),le=Object.assign({"./zh-CN/globalMessage.json":X,"./zh-CN/headerSettingOptions.json":Z,"./zh-CN/headerTooltip.json":oe,"./zh-CN/menu.json":ne,"./zh-CN/setting.json":ie,"./zh-CN/views/login/index.json":re}),Qe={message:{...U(le,"zh-CN")}};export{Qe as default}; diff --git a/assets/zh-CN-fJdWaJad.js.gz b/assets/zh-CN-fJdWaJad.js.gz new file mode 100644 index 00000000..69dd4186 Binary files /dev/null and b/assets/zh-CN-fJdWaJad.js.gz differ diff --git a/assets/zh-CN-viwDyPm2.js.gz b/assets/zh-CN-viwDyPm2.js.gz deleted file mode 100644 index ffa1617c..00000000 Binary files a/assets/zh-CN-viwDyPm2.js.gz and /dev/null differ diff --git a/assets/zrender@5.4.4-fafgp4mQ.js b/assets/zrender@5.4.4-dbLxLQQO.js similarity index 88% rename from assets/zrender@5.4.4-fafgp4mQ.js rename to assets/zrender@5.4.4-dbLxLQQO.js index 5ef3a4c3..7fb63a13 100644 --- a/assets/zrender@5.4.4-fafgp4mQ.js +++ b/assets/zrender@5.4.4-dbLxLQQO.js @@ -1,5 +1,5 @@ -import{_ as H}from"./tslib@2.3.0-21A5UWR7.js";var ts=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),rs=function(){function e(){this.browser=new ts,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),or=new rs;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(or.wxa=!0,or.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?or.worker=!0:typeof navigator>"u"?(or.node=!0,or.svgSupported=!0):es(navigator.userAgent,or);function es(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const K=or;var vn=12,is="sans-serif",ur=vn+"px "+is,ns=20,as=100,os="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ss(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var f=0;f>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",n[h]+":0",i[1-f]+":auto",n[1-h]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Os(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,h=0;h<4;h++){var u=e[h].getBoundingClientRect(),v=2*h,l=u.left,c=u.top;o.push(l,c),f=f&&a&&l===a[v]&&c===a[v+1],s.push(e[h].offsetLeft,e[h].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=r?Rn(s,o):Rn(o,s))}function Za(e){return e.nodeName.toUpperCase()==="CANVAS"}var Bs=/([&<>"'])/g,Hs={"&":"&","<":"<",">":">",'"':""","'":"'"};function gv(e){return e==null?"":(e+"").replace(Bs,function(t,r){return Hs[r]})}var zs=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ri=[],ks=K.browser.firefox&&+K.browser.version.split(".")[0]<39;function Ni(e,t,r,i){return r=r||{},i?Dn(e,t,r):ks&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Dn(e,t,r),r}function Dn(e,t,r){if(K.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Za(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if($i(ri,e,i,n)){r.zrX=ri[0],r.zrY=ri[1];return}}r.zrX=r.zrY=0}function _n(e){return e||window.event}function pt(e,t,r){if(t=_n(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Ni(e,o,t,r)}else{Ni(e,t,t,r);var a=$s(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&zs.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function $s(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Ns(e,t,r,i){e.addEventListener(t,r,i)}function Ws(e,t,r,i){e.removeEventListener(t,r,i)}var Ys=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Gs=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=xn(i)/xn(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Xs(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Be(){return[1,0,0,1,0,0]}function qs(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Zs(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ii(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],f=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=f,e}function An(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Us(e,t,r){var i=t[0],n=t[2],a=t[4],o=t[1],s=t[3],f=t[5],h=Math.sin(r),u=Math.cos(r);return e[0]=i*u+o*h,e[1]=-i*h+o*u,e[2]=n*u+s*h,e[3]=-n*h+u*s,e[4]=u*a+h*f,e[5]=u*f-h*a,e}function Vs(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Qs(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],f=r*o-a*i;return f?(f=1/f,e[0]=o*f,e[1]=-a*f,e[2]=-i*f,e[3]=r*f,e[4]=(i*s-o*n)*f,e[5]=(a*n-r*s)*f,e):null}var Ks=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}();const F=Ks;var se=Math.min,fe=Math.max,Yt=new F,Gt=new F,Xt=new F,qt=new F,Br=new F,Hr=new F,Js=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=se(t.x,this.x),i=se(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fe(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=fe(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Be();return An(a,a,[-r.x,-r.y]),Vs(a,a,[i,n]),An(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,f=t.x,h=t.x+t.width,u=t.y,v=t.y+t.height,l=!(a_&&(_=m,g_&&(_=T,p=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Yt.x=Xt.x=r.x,Yt.y=qt.y=r.y,Gt.x=qt.x=r.x+r.width,Gt.y=Xt.y=r.y+r.height,Yt.transform(i),qt.transform(i),Gt.transform(i),Xt.transform(i),t.x=se(Yt.x,Gt.x,Xt.x,qt.x),t.y=se(Yt.y,Gt.y,Xt.y,qt.y);var f=fe(Yt.x,Gt.x,Xt.x,qt.x),h=fe(Yt.y,Gt.y,Xt.y,qt.y);t.width=f-t.x,t.height=h-t.y},e}();const N=Js;var Ua="silent";function js(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:tf}}function tf(){Ys(this.event)}var rf=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Fr),zr=function(){function e(t,r){this.x=t,this.y=r}return e}(),ef=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ni=new N(0,0,0,0),Va=function(e){H(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new zr(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new rf,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new As(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(ft(ef,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Qa(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var f=this._hovered=a?new zr(i,n):this.findHover(i,n),h=f.target,u=this.proxy;u.setCursor&&u.setCursor(h?h.cursor:"default"),s&&h!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(f,"mousemove",r),h&&h!==s&&this.dispatchToElement(f,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new zr(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=js(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,s),f.trigger&&f.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new zr(r,i);if(En(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],f=this._pointerSize,h=f/2,u=new N(r-h,i-h,f,f),v=a.length-1;v>=0;v--){var l=a[v];l!==n&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)&&(ni.copy(l.getBoundingRect()),l.transform&&ni.applyTransform(l.transform),ni.intersect(u)&&s.push(l))}if(s.length)for(var c=4,_=Math.PI/12,g=Math.PI*2,d=0;d4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function nf(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1;i.silent&&(n=!0)}var s=i.__hostTarget;i=s||i.parent}return n?Ua:!0}return!1}function En(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=nf(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Ua)){t.target=o;break}}}function Qa(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}const af=Va;var Ka=32,kr=7;function of(e){for(var t=0;e>=Ka;)t|=e&1,e>>=1;return e+t}function In(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n=0;)n++;return n-t}function sf(e,t,r){for(r--;t>>1,n(a,e[f])<0?s=f:o=f+1;var h=i-o;switch(h){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;h>0;)e[o+h]=e[o+h-1],h--}e[o]=a}}function ai(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])>0){for(s=i-n;f0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}for(o++;o>>1);a(e,t[r+u])>0?o=u+1:f=u}return f}function oi(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])<0){for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}else{for(s=i-n;f=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o>>1);a(e,t[r+u])<0?f=u:o=u+1}return f}function ff(e,t){var r=kr,i,n,a=0;e.length;var o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function f(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;u(c)}}function h(){for(;a>1;){var c=a-2;c>0&&n[c-1]=kr||M>=kr);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),_===1){for(p=0;p=0;p--)e[w+p]=e[b+p];e[T]=o[m];return}for(var M=r;;){var C=0,L=0,P=!1;do if(t(o[m],e[y])<0){if(e[T--]=e[y--],C++,L=0,--_===0){P=!0;break}}else if(e[T--]=o[m--],L++,C=0,--d===1){P=!0;break}while((C|L)=0;p--)e[w+p]=e[b+p];if(_===0){P=!0;break}}if(e[T--]=o[m--],--d===1){P=!0;break}if(L=d-ai(e[y],o,0,d,d-1,t),L!==0){for(T-=L,m-=L,d-=L,w=T+1,b=m+1,p=0;p=kr||L>=kr);if(P)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),d===1){for(T-=_,y-=_,w=T+1,b=y+1,p=_-1;p>=0;p--)e[w+p]=e[b+p];e[T]=o[m]}else{if(d===0)throw new Error;for(b=T-(d-1),p=0;ps&&(f=s),Fn(e,r,r+f,r+a,t),a=f}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var ot=1,qr=2,wr=4,On=!1;function si(){On||(On=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Bn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var uf=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Bn}return e.prototype.traverse=function(t,r){for(var i=0;i0&&(u.__clipPaths=[]),isNaN(u.z)&&(si(),u.z=0),isNaN(u.z2)&&(si(),u.z2=0),isNaN(u.zlevel)&&(si(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var v=t.getDecalElement&&t.getDecalElement();v&&this._updateAndAddDisplayable(v,r,i);var l=t.getTextGuideLine();l&&this._updateAndAddDisplayable(l,r,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const vf=uf;var Ja;Ja=K.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Wi=Ja;var xe={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-xe.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?xe.bounceIn(e*2)*.5:xe.bounceOut(e*2-1)*.5+.5}};const ja=xe;var he=Math.pow,Bt=Math.sqrt,He=1e-8,to=1e-4,Hn=Bt(3),ue=1/3,Lt=Ir(),ct=Ir(),xr=Ir();function Ot(e){return e>-He&&eHe||e<-He}function U(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function zn(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function eo(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),f=3*(t-e),h=e-n,u=s*s-3*o*f,v=s*f-9*o*h,l=f*f-3*s*h,c=0;if(Ot(u)&&Ot(v))if(Ot(s))a[0]=0;else{var _=-f/s;_>=0&&_<=1&&(a[c++]=_)}else{var g=v*v-4*u*l;if(Ot(g)){var d=v/u,_=-s/o+d,p=-d/2;_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p)}else if(g>0){var y=Bt(g),m=u*s+1.5*o*(-v+y),T=u*s+1.5*o*(-v-y);m<0?m=-he(-m,ue):m=he(m,ue),T<0?T=-he(-T,ue):T=he(T,ue);var _=(-s-(m+T))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var b=(2*u*s-3*o*v)/(2*Bt(u*u*u)),w=Math.acos(b)/3,M=Bt(u),C=Math.cos(w),_=(-s-2*M*C)/(3*o),p=(-s+M*(C+Hn*Math.sin(w)))/(3*o),L=(-s+M*(C-Hn*Math.sin(w)))/(3*o);_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p),L>=0&&L<=1&&(a[c++]=L)}}return c}function io(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,f=0;if(Ot(o)){if(ro(a)){var h=-s/a;h>=0&&h<=1&&(n[f++]=h)}}else{var u=a*a-4*o*s;if(Ot(u))n[0]=-a/(2*o);else if(u>0){var v=Bt(u),h=(-a+v)/(2*o),l=(-a-v)/(2*o);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function kt(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,f=(i-r)*n+r,h=(s-o)*n+o,u=(f-s)*n+s,v=(u-h)*n+h;a[0]=e,a[1]=o,a[2]=h,a[3]=v,a[4]=v,a[5]=u,a[6]=f,a[7]=i}function lf(e,t,r,i,n,a,o,s,f,h,u){var v,l=.005,c=1/0,_,g,d,p;Lt[0]=f,Lt[1]=h;for(var y=0;y<1;y+=.05)ct[0]=U(e,r,n,o,y),ct[1]=U(t,i,a,s,y),d=Dr(Lt,ct),d=0&&d=0&&h<=1&&(n[f++]=h)}}else{var u=o*o-4*a*s;if(Ot(u)){var h=-o/(2*a);h>=0&&h<=1&&(n[f++]=h)}else if(u>0){var v=Bt(u),h=(-o+v)/(2*a),l=(-o-v)/(2*a);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function no(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function ze(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function pf(e,t,r,i,n,a,o,s,f){var h,u=.005,v=1/0;Lt[0]=o,Lt[1]=s;for(var l=0;l<1;l+=.05){ct[0]=Q(e,r,n,l),ct[1]=Q(t,i,a,l);var c=Dr(Lt,ct);c=0&&c=1?1:eo(0,i,a,1,f,s)&&U(0,n,o,1,s[0])}}}var yf=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Sr,this.ondestroy=t.ondestroy||Sr,this.onrestart=t.onrestart||Sr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ve(t)?t:ja[t]||ao(t)},e}();const mf=yf;var oo=function(){function e(t){this.value=t}return e}(),wf=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new oo(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Tf=function(){function e(t){this._list=new wf,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=r:s=new oo(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const gn=Tf;var $n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ht(e){return e=Math.round(e),e<0?0:e>255?255:e}function Yi(e){return e<0?0:e>1?1:e}function fi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ht(parseFloat(t)/100*255):Ht(parseInt(t,10))}function Jr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Yi(parseFloat(t)/100):Yi(parseFloat(t))}function hi(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ve(e,t,r){return e+(t-e)*r}function vt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Gi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var so=new gn(20),le=null;function cr(e,t){le&&Gi(le,t),le=so.put(e,le||t.slice())}function zt(e,t){if(e){t=t||[];var r=so.get(e);if(r)return Gi(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in $n)return Gi(t,$n[i]),cr(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){vt(t,0,0,0,1);return}return vt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),cr(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){vt(t,0,0,0,1);return}return vt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),cr(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?vt(t,+h[0],+h[1],+h[2],1):vt(t,0,0,0,1);u=Jr(h.pop());case"rgb":if(h.length>=3)return vt(t,fi(h[0]),fi(h[1]),fi(h[2]),h.length===3?u:Jr(h[3])),cr(e,t),t;vt(t,0,0,0,1);return;case"hsla":if(h.length!==4){vt(t,0,0,0,1);return}return h[3]=Jr(h[3]),Nn(h,t),cr(e,t),t;case"hsl":if(h.length!==3){vt(t,0,0,0,1);return}return Nn(h,t),cr(e,t),t;default:return}}vt(t,0,0,0,1)}}function Nn(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Jr(e[1]),n=Jr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],vt(t,Ht(hi(o,a,r+1/3)*255),Ht(hi(o,a,r)*255),Ht(hi(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function yv(e,t){var r=zt(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return yn(r,r.length===4?"rgba":"rgb")}}function mv(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=zt(t[n]),s=zt(t[a]),f=i-n,h=yn([Ht(ve(o[0],s[0],f)),Ht(ve(o[1],s[1],f)),Ht(ve(o[2],s[2],f)),Yi(ve(o[3],s[3],f))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}}function yn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function ke(e,t){var r=zt(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function bf(e){return e.type==="linear"}function Cf(e){return e.type==="radial"}(function(){return K.hasGlobalWindow&&Ve(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Xi=Array.prototype.slice;function Dt(e,t,r){return(t-e)*r+e}function ui(e,t,r,i){for(var n=t.length,a=0;ai?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var f=a;f=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Yn,f=r;if(Pt(r)){var h=Rf(r);s=h,(h===1&&!Se(r[0])||h===2&&!Se(r[0][0]))&&(o=!0)}else if(Se(r)&&!_s(r))s=de;else if(Bi(r))if(!isNaN(+r))s=de;else{var u=zt(r);u&&(f=u,s=Zr)}else if(pn(r)){var v=$({},f);v.colorStops=xt(r.colorStops,function(c){return{offset:c.offset,color:zt(c.color)}}),bf(r)?s=qi:Cf(r)&&(s=Zi),f=v}a===0?this.valType=s:(s!==this.valType||s===Yn)&&(o=!0),this.discrete=this.discrete||o;var l={time:t,value:f,rawValue:r,percent:0};return i&&(l.easing=i,l.easingFunc=Ve(i)?i:ja[i]||ao(i)),n.push(l),l},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=pe(n),h=Gn(n),u=0;u=0&&!(o[u].percent<=r);u--);u=l(u,s-2)}else{for(u=v;ur);u++);u=l(u-1,s-2)}_=o[u+1],c=o[u]}if(c&&_){this._lastFr=u,this._lastFrP=r;var d=_.percent-c.percent,p=d===0?1:l((r-c.percent)/d,1);_.easingFunc&&(p=_.easingFunc(p));var y=i?this._additiveValue:h?$r:t[f];if((pe(a)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[f]=p<1?c.rawValue:_.rawValue;else if(pe(a))a===Ie?ui(y,c[n],_[n],p):Mf(y,c[n],_[n],p);else if(Gn(a)){var m=c[n],T=_[n],b=a===qi;t[f]={type:b?"linear":"radial",x:Dt(m.x,T.x,p),y:Dt(m.y,T.y,p),colorStops:xt(m.colorStops,function(M,C){var L=T.colorStops[C];return{offset:Dt(M.offset,L.offset,p),color:Ee(ui([],M.color,L.color,p))}}),global:T.global},b?(t[f].x2=Dt(m.x2,T.x2,p),t[f].y2=Dt(m.y2,T.y2,p)):t[f].r=Dt(m.r,T.r,p)}else if(h)ui(y,c[n],_[n],p),i||(t[f]=Ee(y));else{var w=Dt(c[n],_[n],p);i?this._additiveValue=w:t[f]=w}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===de?t[i]=t[i]+n:r===Zr?(zt(t[i],$r),ce($r,$r,n,1),t[i]=Ee($r)):r===Ie?ce(t[i],t[i],n,1):r===fo&&Wn(t[i],t[i],n,1)},e}(),Df=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){dn("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,ht(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o0&&f.addKeyframe(0,Ae(h),n),this._trackKeys.push(s)}f.addKeyframe(t,Ae(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const mn=Df;function Mr(){return new Date().getTime()}var xf=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Mr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Wi(i),!r._paused&&r.update())}Wi(i)},t.prototype.start=function(){this._running||(this._time=Mr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Mr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Mr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new mn(r,i.loop);return this.addAnimator(n),n},t}(Fr);const Af=xf;var Ef=300,vi=K.domSupported,li=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=xt(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),Xn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},qn=!1;function Ui(e){var t=e.pointerType;return t==="pen"||t==="touch"}function If(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ci(e){e&&(e.zrByTouch=!0)}function Ff(e,t){return pt(e.dom,new Of(e,t),!0)}function ho(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var Of=function(){function e(t,r){this.stopPropagation=Sr,this.stopImmediatePropagation=Sr,this.preventDefault=Sr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),_t={mousedown:function(e){e=pt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=pt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=pt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=pt(this.dom,e);var t=e.toElement||e.relatedTarget;ho(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){qn=!0,e=pt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){qn||(e=pt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=pt(this.dom,e),ci(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),_t.mousemove.call(this,e),_t.mousedown.call(this,e)},touchmove:function(e){e=pt(this.dom,e),ci(e),this.handler.processGesture(e,"change"),_t.mousemove.call(this,e)},touchend:function(e){e=pt(this.dom,e),ci(e),this.handler.processGesture(e,"end"),_t.mouseup.call(this,e),+new Date-+this.__lastTouchMomentVn||e<-Vn}var Ut=[],dr=[],pi=Be(),_i=Math.abs,Nf=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Zt(this.rotation)||Zt(this.x)||Zt(this.y)||Zt(this.scaleX-1)||Zt(this.scaleY-1)||Zt(this.skewX)||Zt(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Un(i),this.invTransform=null);return}i=i||Be(),r?this.getLocalTransform(i):Un(i),t&&(r?ii(i,t,i):Zs(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ut);var i=Ut[0]<0?-1:1,n=Ut[1]<0?-1:1,a=((Ut[0]-i)*r+i)/Ut[0]||0,o=((Ut[1]-n)*r+n)/Ut[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Be(),Qs(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(ii(dr,t.invTransform,r),r=dr);var i=this.originX,n=this.originY;(i||n)&&(pi[4]=i,pi[5]=n,ii(dr,r,pi),dr[4]-=i,dr[5]-=n,r=dr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&Kr(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&Kr(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&_i(t[0]-1)>1e-10&&_i(t[3]-1)>1e-10?Math.sqrt(_i(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Wf(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,v=t.y,l=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var _=i+s,g=n+f;r[4]=-_*a-l*g*o,r[5]=-g*o-c*_*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=l*o,h&&Us(r,r,h),r[4]+=i+u,r[5]+=n+v,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ee=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Wf(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Gf(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,f=r.x,h=r.y,u="left",v="top";if(i instanceof Array)f+=ie(i[0],r.width),h+=ie(i[1],r.height),u=null,v=null;else switch(i){case"left":f-=n,h+=s,u="right",v="middle";break;case"right":f+=n+o,h+=s,v="middle";break;case"top":f+=o/2,h-=n,u="center",v="bottom";break;case"bottom":f+=o/2,h+=a+n,u="center";break;case"inside":f+=o/2,h+=s,u="center",v="middle";break;case"insideLeft":f+=n,h+=s,v="middle";break;case"insideRight":f+=o-n,h+=s,u="right",v="middle";break;case"insideTop":f+=o/2,h+=n,u="center";break;case"insideBottom":f+=o/2,h+=a-n,u="center",v="bottom";break;case"insideTopLeft":f+=n,h+=n;break;case"insideTopRight":f+=o-n,h+=n,u="right";break;case"insideBottomLeft":f+=n,h+=a-n,v="bottom";break;case"insideBottomRight":f+=o-n,h+=a-n,u="right",v="bottom";break}return e=e||{},e.x=f,e.y=h,e.align=u,e.verticalAlign=v,e}var gi="__zr_normal__",yi=ee.concat(["ignore"]),Xf=Ue(ee,function(e,t){return e[t]=!0,e},{ignore:!1}),pr={},qf=new N(0,0,0,0),bn=function(){function e(t){this.id=Na(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,f=!1;a.parent=n?this:null;var h=!1;if(a.copyTransform(r),i.position!=null){var u=qf;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(pr,i,u):Gf(pr,i,u),a.x=pr.x,a.y=pr.y,o=pr.align,s=pr.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var l=void 0,c=void 0;v==="center"?(l=u.width*.5,c=u.height*.5):(l=ie(v[0],u.width),c=ie(v[1],u.height)),h=!0,a.originX=-a.x+l+(n?0:u.x),a.originY=-a.y+c+(n?0:u.y)}}i.rotation!=null&&(a.rotation=i.rotation);var _=i.offset;_&&(a.x+=_[0],a.y+=_[1],h||(a.originX=-_[0],a.originY=-_[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),p=void 0,y=void 0,m=void 0;g&&this.canBeInsideText()?(p=i.insideFill,y=i.insideStroke,(p==null||p==="auto")&&(p=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(p),m=!0)):(p=i.outsideFill,y=i.outsideStroke,(p==null||p==="auto")&&(p=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(p),m=!0)),p=p||"#000",(p!==d.fill||y!==d.stroke||m!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(f=!0,d.fill=p,d.stroke=y,d.autoStroke=m,d.align=o,d.verticalAlign=s,r.setDefaultTextStyle(d)),r.__dirty|=ot,f&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ji:Ki},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&zt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,yn(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},$(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ft(t))for(var i=t,n=ht(i),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(gi,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===gi,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,f=this.stateTransition;if(!(Mt(s,t)>=0&&(r||s.length===1))){var h;if(this.stateProxy&&!a&&(h=this.stateProxy(t)),h||(h=this.states&&this.states[t]),!h&&!a){dn("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(h);var u=!!(h&&h.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,h,this._normalState,r,!i&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,l=this._textGuide;return v&&v.useState(t,r,i,u),l&&l.useState(t,r,i,u),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot),h}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var f=0;f0,_);var g=this._textContent,d=this._textGuide;g&&g.useStates(t,r,l),d&&d.useStates(t,r,l),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=Mt(n,t),o=Mt(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o0&&r.during&&a[0].during(function(_,g){r.during(g)});for(var l=0;l0||n.force&&!o.length){var C=void 0,L=void 0,P=void 0;if(s){L={},l&&(C={});for(var T=0;T=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=Mt(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=Mt(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n"u"&&typeof self<"u"?or.worker=!0:typeof navigator>"u"?(or.node=!0,or.svgSupported=!0):es(navigator.userAgent,or);function es(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const K=or;var vn=12,is="sans-serif",ur=vn+"px "+is,ns=20,as=100,os="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ss(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var f=0;f>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",n[h]+":0",i[1-f]+":auto",n[1-h]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Os(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,h=0;h<4;h++){var u=e[h].getBoundingClientRect(),v=2*h,l=u.left,c=u.top;o.push(l,c),f=f&&a&&l===a[v]&&c===a[v+1],s.push(e[h].offsetLeft,e[h].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=r?Rn(s,o):Rn(o,s))}function Za(e){return e.nodeName.toUpperCase()==="CANVAS"}var Bs=/([&<>"'])/g,Hs={"&":"&","<":"<",">":">",'"':""","'":"'"};function _v(e){return e==null?"":(e+"").replace(Bs,function(t,r){return Hs[r]})}var zs=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ri=[],ks=K.browser.firefox&&+K.browser.version.split(".")[0]<39;function $i(e,t,r,i){return r=r||{},i?Dn(e,t,r):ks&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Dn(e,t,r),r}function Dn(e,t,r){if(K.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Za(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Ni(ri,e,i,n)){r.zrX=ri[0],r.zrY=ri[1];return}}r.zrX=r.zrY=0}function _n(e){return e||window.event}function pt(e,t,r){if(t=_n(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&$i(e,o,t,r)}else{$i(e,t,t,r);var a=Ns(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&zs.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Ns(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function $s(e,t,r,i){e.addEventListener(t,r,i)}function Ws(e,t,r,i){e.removeEventListener(t,r,i)}var Ys=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Gs=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=xn(i)/xn(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Xs(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Be(){return[1,0,0,1,0,0]}function qs(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Zs(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ii(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],f=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=f,e}function An(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Us(e,t,r){var i=t[0],n=t[2],a=t[4],o=t[1],s=t[3],f=t[5],h=Math.sin(r),u=Math.cos(r);return e[0]=i*u+o*h,e[1]=-i*h+o*u,e[2]=n*u+s*h,e[3]=-n*h+u*s,e[4]=u*a+h*f,e[5]=u*f-h*a,e}function Vs(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Qs(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],f=r*o-a*i;return f?(f=1/f,e[0]=o*f,e[1]=-a*f,e[2]=-i*f,e[3]=r*f,e[4]=(i*s-o*n)*f,e[5]=(a*n-r*s)*f,e):null}var Ks=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}();const F=Ks;var se=Math.min,fe=Math.max,Yt=new F,Gt=new F,Xt=new F,qt=new F,Br=new F,Hr=new F,Js=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=se(t.x,this.x),i=se(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fe(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=fe(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Be();return An(a,a,[-r.x,-r.y]),Vs(a,a,[i,n]),An(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,f=t.x,h=t.x+t.width,u=t.y,v=t.y+t.height,l=!(a_&&(_=m,g_&&(_=T,p=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Yt.x=Xt.x=r.x,Yt.y=qt.y=r.y,Gt.x=qt.x=r.x+r.width,Gt.y=Xt.y=r.y+r.height,Yt.transform(i),qt.transform(i),Gt.transform(i),Xt.transform(i),t.x=se(Yt.x,Gt.x,Xt.x,qt.x),t.y=se(Yt.y,Gt.y,Xt.y,qt.y);var f=fe(Yt.x,Gt.x,Xt.x,qt.x),h=fe(Yt.y,Gt.y,Xt.y,qt.y);t.width=f-t.x,t.height=h-t.y},e}();const $=Js;var Ua="silent";function js(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:tf}}function tf(){Ys(this.event)}var rf=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Fr),zr=function(){function e(t,r){this.x=t,this.y=r}return e}(),ef=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ni=new $(0,0,0,0),Va=function(e){H(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new zr(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new rf,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new As(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(ft(ef,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Qa(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var f=this._hovered=a?new zr(i,n):this.findHover(i,n),h=f.target,u=this.proxy;u.setCursor&&u.setCursor(h?h.cursor:"default"),s&&h!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(f,"mousemove",r),h&&h!==s&&this.dispatchToElement(f,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new zr(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=js(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,s),f.trigger&&f.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new zr(r,i);if(En(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],f=this._pointerSize,h=f/2,u=new $(r-h,i-h,f,f),v=a.length-1;v>=0;v--){var l=a[v];l!==n&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)&&(ni.copy(l.getBoundingRect()),l.transform&&ni.applyTransform(l.transform),ni.intersect(u)&&s.push(l))}if(s.length)for(var c=4,_=Math.PI/12,g=Math.PI*2,d=0;d4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function nf(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1;i.silent&&(n=!0)}var s=i.__hostTarget;i=s||i.parent}return n?Ua:!0}return!1}function En(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=nf(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Ua)){t.target=o;break}}}function Qa(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}const af=Va;var Ka=32,kr=7;function of(e){for(var t=0;e>=Ka;)t|=e&1,e>>=1;return e+t}function In(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n=0;)n++;return n-t}function sf(e,t,r){for(r--;t>>1,n(a,e[f])<0?s=f:o=f+1;var h=i-o;switch(h){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;h>0;)e[o+h]=e[o+h-1],h--}e[o]=a}}function ai(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])>0){for(s=i-n;f0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}for(o++;o>>1);a(e,t[r+u])>0?o=u+1:f=u}return f}function oi(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])<0){for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}else{for(s=i-n;f=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o>>1);a(e,t[r+u])<0?f=u:o=u+1}return f}function ff(e,t){var r=kr,i,n,a=0;e.length;var o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function f(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;u(c)}}function h(){for(;a>1;){var c=a-2;c>0&&n[c-1]=kr||M>=kr);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),_===1){for(p=0;p=0;p--)e[w+p]=e[b+p];e[T]=o[m];return}for(var M=r;;){var C=0,L=0,P=!1;do if(t(o[m],e[y])<0){if(e[T--]=e[y--],C++,L=0,--_===0){P=!0;break}}else if(e[T--]=o[m--],L++,C=0,--d===1){P=!0;break}while((C|L)=0;p--)e[w+p]=e[b+p];if(_===0){P=!0;break}}if(e[T--]=o[m--],--d===1){P=!0;break}if(L=d-ai(e[y],o,0,d,d-1,t),L!==0){for(T-=L,m-=L,d-=L,w=T+1,b=m+1,p=0;p=kr||L>=kr);if(P)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),d===1){for(T-=_,y-=_,w=T+1,b=y+1,p=_-1;p>=0;p--)e[w+p]=e[b+p];e[T]=o[m]}else{if(d===0)throw new Error;for(b=T-(d-1),p=0;ps&&(f=s),Fn(e,r,r+f,r+a,t),a=f}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var ot=1,qr=2,wr=4,On=!1;function si(){On||(On=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Bn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var uf=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Bn}return e.prototype.traverse=function(t,r){for(var i=0;i0&&(u.__clipPaths=[]),isNaN(u.z)&&(si(),u.z=0),isNaN(u.z2)&&(si(),u.z2=0),isNaN(u.zlevel)&&(si(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var v=t.getDecalElement&&t.getDecalElement();v&&this._updateAndAddDisplayable(v,r,i);var l=t.getTextGuideLine();l&&this._updateAndAddDisplayable(l,r,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const vf=uf;var Ja;Ja=K.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Wi=Ja;var xe={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-xe.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?xe.bounceIn(e*2)*.5:xe.bounceOut(e*2-1)*.5+.5}};const ja=xe;var he=Math.pow,Bt=Math.sqrt,He=1e-8,to=1e-4,Hn=Bt(3),ue=1/3,Lt=Ir(),ct=Ir(),xr=Ir();function Ot(e){return e>-He&&eHe||e<-He}function U(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function zn(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function eo(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),f=3*(t-e),h=e-n,u=s*s-3*o*f,v=s*f-9*o*h,l=f*f-3*s*h,c=0;if(Ot(u)&&Ot(v))if(Ot(s))a[0]=0;else{var _=-f/s;_>=0&&_<=1&&(a[c++]=_)}else{var g=v*v-4*u*l;if(Ot(g)){var d=v/u,_=-s/o+d,p=-d/2;_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p)}else if(g>0){var y=Bt(g),m=u*s+1.5*o*(-v+y),T=u*s+1.5*o*(-v-y);m<0?m=-he(-m,ue):m=he(m,ue),T<0?T=-he(-T,ue):T=he(T,ue);var _=(-s-(m+T))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var b=(2*u*s-3*o*v)/(2*Bt(u*u*u)),w=Math.acos(b)/3,M=Bt(u),C=Math.cos(w),_=(-s-2*M*C)/(3*o),p=(-s+M*(C+Hn*Math.sin(w)))/(3*o),L=(-s+M*(C-Hn*Math.sin(w)))/(3*o);_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p),L>=0&&L<=1&&(a[c++]=L)}}return c}function io(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,f=0;if(Ot(o)){if(ro(a)){var h=-s/a;h>=0&&h<=1&&(n[f++]=h)}}else{var u=a*a-4*o*s;if(Ot(u))n[0]=-a/(2*o);else if(u>0){var v=Bt(u),h=(-a+v)/(2*o),l=(-a-v)/(2*o);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function kt(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,f=(i-r)*n+r,h=(s-o)*n+o,u=(f-s)*n+s,v=(u-h)*n+h;a[0]=e,a[1]=o,a[2]=h,a[3]=v,a[4]=v,a[5]=u,a[6]=f,a[7]=i}function lf(e,t,r,i,n,a,o,s,f,h,u){var v,l=.005,c=1/0,_,g,d,p;Lt[0]=f,Lt[1]=h;for(var y=0;y<1;y+=.05)ct[0]=U(e,r,n,o,y),ct[1]=U(t,i,a,s,y),d=Dr(Lt,ct),d=0&&d=0&&h<=1&&(n[f++]=h)}}else{var u=o*o-4*a*s;if(Ot(u)){var h=-o/(2*a);h>=0&&h<=1&&(n[f++]=h)}else if(u>0){var v=Bt(u),h=(-o+v)/(2*a),l=(-o-v)/(2*a);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function no(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function ze(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function pf(e,t,r,i,n,a,o,s,f){var h,u=.005,v=1/0;Lt[0]=o,Lt[1]=s;for(var l=0;l<1;l+=.05){ct[0]=Q(e,r,n,l),ct[1]=Q(t,i,a,l);var c=Dr(Lt,ct);c=0&&c=1?1:eo(0,i,a,1,f,s)&&U(0,n,o,1,s[0])}}}var yf=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Sr,this.ondestroy=t.ondestroy||Sr,this.onrestart=t.onrestart||Sr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ve(t)?t:ja[t]||ao(t)},e}();const mf=yf;var oo=function(){function e(t){this.value=t}return e}(),wf=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new oo(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Tf=function(){function e(t){this._list=new wf,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=r:s=new oo(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const gn=Tf;var Nn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ht(e){return e=Math.round(e),e<0?0:e>255?255:e}function Yi(e){return e<0?0:e>1?1:e}function fi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ht(parseFloat(t)/100*255):Ht(parseInt(t,10))}function Jr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Yi(parseFloat(t)/100):Yi(parseFloat(t))}function hi(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ve(e,t,r){return e+(t-e)*r}function vt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Gi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var so=new gn(20),le=null;function cr(e,t){le&&Gi(le,t),le=so.put(e,le||t.slice())}function zt(e,t){if(e){t=t||[];var r=so.get(e);if(r)return Gi(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in Nn)return Gi(t,Nn[i]),cr(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){vt(t,0,0,0,1);return}return vt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),cr(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){vt(t,0,0,0,1);return}return vt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),cr(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?vt(t,+h[0],+h[1],+h[2],1):vt(t,0,0,0,1);u=Jr(h.pop());case"rgb":if(h.length>=3)return vt(t,fi(h[0]),fi(h[1]),fi(h[2]),h.length===3?u:Jr(h[3])),cr(e,t),t;vt(t,0,0,0,1);return;case"hsla":if(h.length!==4){vt(t,0,0,0,1);return}return h[3]=Jr(h[3]),$n(h,t),cr(e,t),t;case"hsl":if(h.length!==3){vt(t,0,0,0,1);return}return $n(h,t),cr(e,t),t;default:return}}vt(t,0,0,0,1)}}function $n(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Jr(e[1]),n=Jr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],vt(t,Ht(hi(o,a,r+1/3)*255),Ht(hi(o,a,r)*255),Ht(hi(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function gv(e,t){var r=zt(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return yn(r,r.length===4?"rgba":"rgb")}}function yv(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=zt(t[n]),s=zt(t[a]),f=i-n,h=yn([Ht(ve(o[0],s[0],f)),Ht(ve(o[1],s[1],f)),Ht(ve(o[2],s[2],f)),Yi(ve(o[3],s[3],f))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}}function yn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function ke(e,t){var r=zt(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function bf(e){return e.type==="linear"}function Cf(e){return e.type==="radial"}(function(){return K.hasGlobalWindow&&Ve(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Xi=Array.prototype.slice;function Dt(e,t,r){return(t-e)*r+e}function ui(e,t,r,i){for(var n=t.length,a=0;ai?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var f=a;f=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Yn,f=r;if(Pt(r)){var h=Rf(r);s=h,(h===1&&!Se(r[0])||h===2&&!Se(r[0][0]))&&(o=!0)}else if(Se(r)&&!_s(r))s=de;else if(Bi(r))if(!isNaN(+r))s=de;else{var u=zt(r);u&&(f=u,s=Zr)}else if(pn(r)){var v=N({},f);v.colorStops=xt(r.colorStops,function(c){return{offset:c.offset,color:zt(c.color)}}),bf(r)?s=qi:Cf(r)&&(s=Zi),f=v}a===0?this.valType=s:(s!==this.valType||s===Yn)&&(o=!0),this.discrete=this.discrete||o;var l={time:t,value:f,rawValue:r,percent:0};return i&&(l.easing=i,l.easingFunc=Ve(i)?i:ja[i]||ao(i)),n.push(l),l},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=pe(n),h=Gn(n),u=0;u=0&&!(o[u].percent<=r);u--);u=l(u,s-2)}else{for(u=v;ur);u++);u=l(u-1,s-2)}_=o[u+1],c=o[u]}if(c&&_){this._lastFr=u,this._lastFrP=r;var d=_.percent-c.percent,p=d===0?1:l((r-c.percent)/d,1);_.easingFunc&&(p=_.easingFunc(p));var y=i?this._additiveValue:h?Nr:t[f];if((pe(a)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[f]=p<1?c.rawValue:_.rawValue;else if(pe(a))a===Ie?ui(y,c[n],_[n],p):Mf(y,c[n],_[n],p);else if(Gn(a)){var m=c[n],T=_[n],b=a===qi;t[f]={type:b?"linear":"radial",x:Dt(m.x,T.x,p),y:Dt(m.y,T.y,p),colorStops:xt(m.colorStops,function(M,C){var L=T.colorStops[C];return{offset:Dt(M.offset,L.offset,p),color:Ee(ui([],M.color,L.color,p))}}),global:T.global},b?(t[f].x2=Dt(m.x2,T.x2,p),t[f].y2=Dt(m.y2,T.y2,p)):t[f].r=Dt(m.r,T.r,p)}else if(h)ui(y,c[n],_[n],p),i||(t[f]=Ee(y));else{var w=Dt(c[n],_[n],p);i?this._additiveValue=w:t[f]=w}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===de?t[i]=t[i]+n:r===Zr?(zt(t[i],Nr),ce(Nr,Nr,n,1),t[i]=Ee(Nr)):r===Ie?ce(t[i],t[i],n,1):r===fo&&Wn(t[i],t[i],n,1)},e}(),Df=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){dn("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,ht(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o0&&f.addKeyframe(0,Ae(h),n),this._trackKeys.push(s)}f.addKeyframe(t,Ae(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const mn=Df;function Mr(){return new Date().getTime()}var xf=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Mr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Wi(i),!r._paused&&r.update())}Wi(i)},t.prototype.start=function(){this._running||(this._time=Mr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Mr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Mr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new mn(r,i.loop);return this.addAnimator(n),n},t}(Fr);const Af=xf;var Ef=300,vi=K.domSupported,li=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=xt(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),Xn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},qn=!1;function Ui(e){var t=e.pointerType;return t==="pen"||t==="touch"}function If(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ci(e){e&&(e.zrByTouch=!0)}function Ff(e,t){return pt(e.dom,new Of(e,t),!0)}function ho(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var Of=function(){function e(t,r){this.stopPropagation=Sr,this.stopImmediatePropagation=Sr,this.preventDefault=Sr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),_t={mousedown:function(e){e=pt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=pt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=pt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=pt(this.dom,e);var t=e.toElement||e.relatedTarget;ho(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){qn=!0,e=pt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){qn||(e=pt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=pt(this.dom,e),ci(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),_t.mousemove.call(this,e),_t.mousedown.call(this,e)},touchmove:function(e){e=pt(this.dom,e),ci(e),this.handler.processGesture(e,"change"),_t.mousemove.call(this,e)},touchend:function(e){e=pt(this.dom,e),ci(e),this.handler.processGesture(e,"end"),_t.mouseup.call(this,e),+new Date-+this.__lastTouchMomentVn||e<-Vn}var Ut=[],dr=[],pi=Be(),_i=Math.abs,wn=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Zt(this.rotation)||Zt(this.x)||Zt(this.y)||Zt(this.scaleX-1)||Zt(this.scaleY-1)||Zt(this.skewX)||Zt(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Un(i),this.invTransform=null);return}i=i||Be(),r?this.getLocalTransform(i):Un(i),t&&(r?ii(i,t,i):Zs(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ut);var i=Ut[0]<0?-1:1,n=Ut[1]<0?-1:1,a=((Ut[0]-i)*r+i)/Ut[0]||0,o=((Ut[1]-n)*r+n)/Ut[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Be(),Qs(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(ii(dr,t.invTransform,r),r=dr);var i=this.originX,n=this.originY;(i||n)&&(pi[4]=i,pi[5]=n,ii(dr,r,pi),dr[4]-=i,dr[5]-=n,r=dr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&Kr(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&Kr(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&_i(t[0]-1)>1e-10&&_i(t[3]-1)>1e-10?Math.sqrt(_i(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){$f(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,v=t.y,l=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var _=i+s,g=n+f;r[4]=-_*a-l*g*o,r[5]=-g*o-c*_*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=l*o,h&&Us(r,r,h),r[4]+=i+u,r[5]+=n+v,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ee=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function $f(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Yf(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,f=r.x,h=r.y,u="left",v="top";if(i instanceof Array)f+=ie(i[0],r.width),h+=ie(i[1],r.height),u=null,v=null;else switch(i){case"left":f-=n,h+=s,u="right",v="middle";break;case"right":f+=n+o,h+=s,v="middle";break;case"top":f+=o/2,h-=n,u="center",v="bottom";break;case"bottom":f+=o/2,h+=a+n,u="center";break;case"inside":f+=o/2,h+=s,u="center",v="middle";break;case"insideLeft":f+=n,h+=s,v="middle";break;case"insideRight":f+=o-n,h+=s,u="right",v="middle";break;case"insideTop":f+=o/2,h+=n,u="center";break;case"insideBottom":f+=o/2,h+=a-n,u="center",v="bottom";break;case"insideTopLeft":f+=n,h+=n;break;case"insideTopRight":f+=o-n,h+=n,u="right";break;case"insideBottomLeft":f+=n,h+=a-n,v="bottom";break;case"insideBottomRight":f+=o-n,h+=a-n,u="right",v="bottom";break}return e=e||{},e.x=f,e.y=h,e.align=u,e.verticalAlign=v,e}var gi="__zr_normal__",yi=ee.concat(["ignore"]),Gf=Ue(ee,function(e,t){return e[t]=!0,e},{ignore:!1}),pr={},Xf=new $(0,0,0,0),bn=function(){function e(t){this.id=$a(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,f=!1;a.parent=n?this:null;var h=!1;if(a.copyTransform(r),i.position!=null){var u=Xf;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(pr,i,u):Yf(pr,i,u),a.x=pr.x,a.y=pr.y,o=pr.align,s=pr.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var l=void 0,c=void 0;v==="center"?(l=u.width*.5,c=u.height*.5):(l=ie(v[0],u.width),c=ie(v[1],u.height)),h=!0,a.originX=-a.x+l+(n?0:u.x),a.originY=-a.y+c+(n?0:u.y)}}i.rotation!=null&&(a.rotation=i.rotation);var _=i.offset;_&&(a.x+=_[0],a.y+=_[1],h||(a.originX=-_[0],a.originY=-_[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),p=void 0,y=void 0,m=void 0;g&&this.canBeInsideText()?(p=i.insideFill,y=i.insideStroke,(p==null||p==="auto")&&(p=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(p),m=!0)):(p=i.outsideFill,y=i.outsideStroke,(p==null||p==="auto")&&(p=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(p),m=!0)),p=p||"#000",(p!==d.fill||y!==d.stroke||m!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(f=!0,d.fill=p,d.stroke=y,d.autoStroke=m,d.align=o,d.verticalAlign=s,r.setDefaultTextStyle(d)),r.__dirty|=ot,f&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ji:Ki},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&zt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,yn(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},N(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ft(t))for(var i=t,n=ht(i),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(gi,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===gi,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,f=this.stateTransition;if(!(Mt(s,t)>=0&&(r||s.length===1))){var h;if(this.stateProxy&&!a&&(h=this.stateProxy(t)),h||(h=this.states&&this.states[t]),!h&&!a){dn("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(h);var u=!!(h&&h.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,h,this._normalState,r,!i&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,l=this._textGuide;return v&&v.useState(t,r,i,u),l&&l.useState(t,r,i,u),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot),h}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var f=0;f0,_);var g=this._textContent,d=this._textGuide;g&&g.useStates(t,r,l),d&&d.useStates(t,r,l),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=Mt(n,t),o=Mt(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o0&&r.during&&a[0].during(function(_,g){r.during(g)});for(var l=0;l0||n.force&&!o.length){var C=void 0,L=void 0,P=void 0;if(s){L={},l&&(C={});for(var T=0;T=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=Mt(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=Mt(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r=o;f++)s-=o;var h=ut(r,t);return h>s&&(r="",h=0),s=e-h,n.ellipsis=r,n.ellipsisWidth=h,n.contentWidth=s,n.containerWidth=e,n}function yo(e,t){var r=t.containerWidth,i=t.font,n=t.contentWidth;if(!r)return"";var a=ut(e,i);if(a<=r)return e;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?ih(e,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*n/a):0;e=e.substr(0,s),a=ut(e,i)}return e===""&&(e=t.placeholder),e}function ih(e,t,r,i){for(var n=0,a=0,o=e.length;ac&&h){var _=Math.floor(c/s);v=v.slice(0,_)}if(e&&a&&u!=null)for(var g=go(u,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),d=0;ds&&bi(r,e.substring(s,h),t,o),bi(r,f[2],t,o,f[1]),s=Ti.lastIndex}sn){b>0?(y.tokens=y.tokens.slice(0,b),d(y,T,m),r.lines=r.lines.slice(0,p+1)):r.lines=r.lines.slice(0,p);break t}var S=M.width,A=S==null||S==="auto";if(typeof S=="string"&&S.charAt(S.length-1)==="%")w.percentWidth=S,u.push(w),w.contentWidth=ut(w.text,P);else{if(A){var x=M.backgroundColor,E=x&&x.image;E&&(E=rh(E),Ke(E)&&(w.width=Math.max(w.width,E.width*R/E.height)))}var D=_&&i!=null?i-T:null;D!=null&&D0&&_+i.accumWidth>i.width&&(u=t.split(` +`)}function go(e,t,r,i){i=i||{};var n=N({},i);n.font=t,r=st(r,"..."),n.maxIterations=st(i.maxIterations,2);var a=n.minChar=st(i.minChar,0);n.cnCharWidth=ut("国",t);var o=n.ascCharWidth=ut("a",t);n.placeholder=st(i.placeholder,"");for(var s=e=Math.max(0,e-1),f=0;f=o;f++)s-=o;var h=ut(r,t);return h>s&&(r="",h=0),s=e-h,n.ellipsis=r,n.ellipsisWidth=h,n.contentWidth=s,n.containerWidth=e,n}function yo(e,t){var r=t.containerWidth,i=t.font,n=t.contentWidth;if(!r)return"";var a=ut(e,i);if(a<=r)return e;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?eh(e,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*n/a):0;e=e.substr(0,s),a=ut(e,i)}return e===""&&(e=t.placeholder),e}function eh(e,t,r,i){for(var n=0,a=0,o=e.length;ac&&h){var _=Math.floor(c/s);v=v.slice(0,_)}if(e&&a&&u!=null)for(var g=go(u,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),d=0;ds&&bi(r,e.substring(s,h),t,o),bi(r,f[2],t,o,f[1]),s=Ti.lastIndex}sn){b>0?(y.tokens=y.tokens.slice(0,b),d(y,T,m),r.lines=r.lines.slice(0,p+1)):r.lines=r.lines.slice(0,p);break t}var S=M.width,A=S==null||S==="auto";if(typeof S=="string"&&S.charAt(S.length-1)==="%")w.percentWidth=S,u.push(w),w.contentWidth=ut(w.text,P);else{if(A){var x=M.backgroundColor,E=x&&x.image;E&&(E=th(E),Ke(E)&&(w.width=Math.max(w.width,E.width*R/E.height)))}var D=_&&i!=null?i-T:null;D!=null&&D0&&_+i.accumWidth>i.width&&(u=t.split(` `),h=!0),i.accumWidth=_}else{var g=mo(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,v=g.linesWidths,u=g.lines}}else u=t.split(` -`);for(var d=0;d=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var hh=Ue(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function uh(e){return fh(e)?!!hh[e]:!0}function mo(e,t,r,i,n){for(var a=[],o=[],s="",f="",h=0,u=0,v=0;vr:n+u+c>r){u?(s||f)&&(_?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=l,h+=c,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=l,u=c)):_?(a.push(f),o.push(h),f=l,h=c):(a.push(l),o.push(c));continue}u+=c,_?(f+=l,h+=c):(f&&(s+=f,f="",h=0),s+=l)}return!a.length&&!s&&(s=e,f="",h=0),f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}var tn="__zr_style_"+Math.round(Math.random()*10),hr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Je={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};hr[tn]=!0;var ta=["z","z2","invisible"],vh=["invisible"],lh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=ht(r),n=0;n1e-4){s[0]=e-r,s[1]=t-i,f[0]=e+r,f[1]=t+i;return}if(_e[0]=Pi(n)*r+e,_e[1]=Li(n)*i+t,ge[0]=Pi(a)*r+e,ge[1]=Li(a)*i+t,h(s,_e,ge),u(f,_e,ge),n=n%Vt,n<0&&(n=n+Vt),a=a%Vt,a<0&&(a=a+Vt),n>a&&!o?a+=Vt:nn&&(ye[0]=Pi(c)*r+e,ye[1]=Li(c)*i+t,h(s,ye,s),u(f,ye,f))}var B={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qt=[],Kt=[],mt=[],At=[],wt=[],Tt=[],Ri=Math.min,Si=Math.max,Jt=Math.cos,jt=Math.sin,St=Math.abs,rn=Math.PI,It=rn*2,Di=typeof Float32Array<"u",Nr=[];function xi(e){var t=Math.round(e/rn*1e8)/1e8;return t%2*rn}function gh(e,t){var r=xi(e[0]);r<0&&(r+=It);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=It?n=r+It:t&&r-n>=It?n=r-It:!t&&r>n?n=r+(It-xi(r-n)):t&&r0&&(this._ux=St(i/$e/t)||0,this._uy=St(i/$e/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(B.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=St(t-this._xi),n=St(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(B.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(B.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(B.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),Nr[0]=n,Nr[1]=a,gh(Nr,o),n=Nr[0],a=Nr[1];var s=a-n;return this.addData(B.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Jt(a)*i+t,this._yi=jt(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(B.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(B.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Di&&(this.data=new Float32Array(r));for(var i=0;iu.length&&(this._expandData(),u=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){mt[0]=mt[1]=wt[0]=wt[1]=Number.MAX_VALUE,At[0]=At[1]=Tt[0]=Tt[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;oi||St(m)>n||l===r-1)&&(g=Math.sqrt(y*y+m*m),a=d,o=p);break}case B.C:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++],w=t[l++],M=t[l++];g=cf(a,o,T,b,d,p,w,M,10),a=w,o=M;break}case B.Q:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++];g=_f(a,o,T,b,d,p,10),a=d,o=p;break}case B.A:var C=t[l++],L=t[l++],P=t[l++],R=t[l++],S=t[l++],A=t[l++],x=A+S;l+=1,t[l++],_&&(s=Jt(S)*P+C,f=jt(S)*R+L),g=Si(P,R)*Ri(It,Math.abs(A)),a=Jt(x)*P+C,o=jt(x)*R+L;break;case B.R:{s=a=t[l++],f=o=t[l++];var E=t[l++],D=t[l++];g=E*2+D*2;break}case B.Z:{var y=s-a,m=f-o;g=Math.sqrt(y*y+m*m),a=s,o=f;break}}g>=0&&(h[v++]=g,u+=g)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,h,u,v,l,c=r<1,_,g,d=0,p=0,y,m=0,T,b;if(!(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=r*g,!y)))t:for(var w=0;w0&&(t.lineTo(T,b),m=0),M){case B.M:s=h=i[w++],f=u=i[w++],t.moveTo(h,u);break;case B.L:{v=i[w++],l=i[w++];var L=St(v-h),P=St(l-u);if(L>n||P>a){if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;t.lineTo(h*(1-S)+v*S,u*(1-S)+l*S);break t}d+=R}t.lineTo(v,l),h=v,u=l,m=0}else{var A=L*L+P*P;A>m&&(T=v,b=l,m=A)}break}case B.C:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++],k=i[w++],W=i[w++];if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;kt(h,x,D,k,S,Qt),kt(u,E,z,W,S,Kt),t.bezierCurveTo(Qt[1],Kt[1],Qt[2],Kt[2],Qt[3],Kt[3]);break t}d+=R}t.bezierCurveTo(x,E,D,z,k,W),h=k,u=W;break}case B.Q:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++];if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;ze(h,x,D,S,Qt),ze(u,E,z,S,Kt),t.quadraticCurveTo(Qt[1],Kt[1],Qt[2],Kt[2]);break t}d+=R}t.quadraticCurveTo(x,E,D,z),h=D,u=z;break}case B.A:var X=i[w++],Z=i[w++],Y=i[w++],nt=i[w++],at=i[w++],Rt=i[w++],$t=i[w++],Nt=!i[w++],Wt=Y>nt?Y:nt,j=St(Y-nt)>.001,q=at+Rt,I=!1;if(c){var R=_[p++];d+R>y&&(q=at+Rt*(y-d)/R,I=!0),d+=R}if(j&&t.ellipse?t.ellipse(X,Z,Y,nt,$t,at,q,Nt):t.arc(X,Z,Wt,at,q,Nt),I)break t;C&&(s=Jt(at)*Y+X,f=jt(at)*nt+Z),h=Jt(q)*Y+X,u=jt(q)*nt+Z;break;case B.R:s=h=i[w],f=u=i[w+1],v=i[w++],l=i[w++];var O=i[w++],Or=i[w++];if(c){var R=_[p++];if(d+R>y){var yt=y-d;t.moveTo(v,l),t.lineTo(v+Ri(yt,O),l),yt-=O,yt>0&&t.lineTo(v+O,l+Ri(yt,Or)),yt-=Or,yt>0&&t.lineTo(v+Si(O-yt,0),l+Or),yt-=O,yt>0&&t.lineTo(v,l+Si(Or-yt,0));break t}d+=R}t.rect(v,l,O,Or);break;case B.Z:if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;t.lineTo(h*(1-S)+s*S,u*(1-S)+f*S);break t}d+=R}t.closePath(),h=s,u=f}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=B,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const vr=yh;function _r(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,f=0,h=e;if(o>t+s&&o>i+s||oe+s&&a>r+s||at+v&&u>i+v&&u>a+v&&u>s+v||ue+v&&h>r+v&&h>n+v&&h>o+v||ht+h&&f>i+h&&f>a+h||fe+h&&s>r+h&&s>n+h||sr||u+hn&&(n+=Wr);var l=Math.atan2(f,s);return l<0&&(l+=Wr),l>=i&&l<=n||l+Wr>=i&&l+Wr<=n}function tr(e,t,r,i,n,a){if(a>t&&a>i||an?s:0}var Et=vr.CMD,rr=Math.PI*2,bh=1e-4;function Ch(e,t){return Math.abs(e-t)t&&h>i&&h>a&&h>s||h1&&Mh(),c=U(t,i,a,s,lt[0]),l>1&&(_=U(t,i,a,s,lt[1]))),l===2?dt&&s>i&&s>a||s=0&&h<=1){for(var u=0,v=Q(t,i,a,h),l=0;lr||s<-r)return 0;var f=Math.sqrt(r*r-s*s);J[0]=-f,J[1]=f;var h=Math.abs(i-n);if(h<1e-4)return 0;if(h>=rr-1e-4){i=0,n=rr;var u=a?1:-1;return o>=J[0]+e&&o<=J[1]+e?u:0}if(i>n){var v=i;i=n,n=v}i<0&&(i+=rr,n+=rr);for(var l=0,c=0;c<2;c++){var _=J[c];if(_+e>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=rr+g),(g>=i&&g<=n||g+rr>=i&&g+rr<=n)&&(g>Math.PI/2&&g1&&(r||(s+=tr(f,h,u,v,i,n))),d&&(f=a[_],h=a[_+1],u=f,v=h),g){case Et.M:u=a[_++],v=a[_++],f=u,h=v;break;case Et.L:if(r){if(_r(f,h,a[_],a[_+1],t,i,n))return!0}else s+=tr(f,h,a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.C:if(r){if(mh(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Lh(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.Q:if(r){if(wh(f,h,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Ph(f,h,a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.A:var p=a[_++],y=a[_++],m=a[_++],T=a[_++],b=a[_++],w=a[_++];_+=1;var M=!!(1-a[_++]);l=Math.cos(b)*m+p,c=Math.sin(b)*T+y,d?(u=l,v=c):s+=tr(f,h,l,c,i,n);var C=(i-p)*T/m+p;if(r){if(Th(p,y,T,b,b+w,M,t,C,n))return!0}else s+=Rh(p,y,T,b,b+w,M,C,n);f=Math.cos(b+w)*m+p,h=Math.sin(b+w)*T+y;break;case Et.R:u=f=a[_++],v=h=a[_++];var L=a[_++],P=a[_++];if(l=u+L,c=v+P,r){if(_r(u,v,l,v,t,i,n)||_r(l,v,l,c,t,i,n)||_r(l,c,u,c,t,i,n)||_r(u,c,u,v,t,i,n))return!0}else s+=tr(l,v,l,c,i,n),s+=tr(u,c,u,v,i,n);break;case Et.Z:if(r){if(_r(f,h,u,v,t,i,n))return!0}else s+=tr(f,h,u,v,i,n);f=u,h=v;break}}return!r&&!Ch(h,v)&&(s+=tr(f,h,u,v,i,n)||0),s!==0}function Sh(e,t,r){return To(e,0,!1,t,r)}function Dh(e,t,r,i){return To(e,t,!0,r,i)}var bo=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hr),xh={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Je.style)},Ai=ee.concat(["invisible","culling","z","z2","zlevel","parent"]),Ah=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){r.buildPath(f,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Ki:i>.2?$f:Ji}else if(r)return Ji}return Ki},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(Bi(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=ke(r,0)0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&wr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u??4)}f>1e-10&&(s.width+=h/f,s.height+=h/f,s.x-=h/f/2,s.y-=h/f/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),Dh(s,f/h,r,i)))return!0}if(this.hasFill())return Sh(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=wr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:$(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&wr)},t.prototype.createStyle=function(r){return Qe(bo,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=$({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.shape?o?a?h=i.shape:(h=$({},n.shape),$(h,i.shape)):(h=$({},a?this.shape:n.shape),$(h,i.shape)):f&&(h=n.shape),h)if(o){this.shape=$({},this.shape);for(var u={},v=ht(h),l=0;l0},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return Qe(Eh,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var i=r.text;i!=null?i+="":i="";var n=Yf(i,r.font,r.textAlign,r.textBaseline);if(n.x+=r.x||0,n.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ae);Co.prototype.type="tspan";const en=Co;var Ih=gt({x:0,y:0},hr),Fh={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Je.style)};function Oh(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Mo=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Qe(Ih,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=Oh(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Fh},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new N(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ae);Mo.prototype.type="image";const Lo=Mo;function Bh(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,f,h,u;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=f=h=u=o:o instanceof Array?o.length===1?s=f=h=u=o[0]:o.length===2?(s=h=o[0],f=u=o[1]):o.length===3?(s=o[0],f=u=o[1],h=o[2]):(s=o[0],f=o[1],h=o[2],u=o[3]):s=f=h=u=0;var v;s+f>n&&(v=s+f,s*=n/v,f*=n/v),h+u>n&&(v=h+u,h*=n/v,u*=n/v),f+h>a&&(v=f+h,f*=a/v,h*=a/v),s+u>a&&(v=s+u,s*=a/v,u*=a/v),e.moveTo(r+s,i),e.lineTo(r+n-f,i),f!==0&&e.arc(r+n-f,i+f,f,-Math.PI/2,0),e.lineTo(r+n,i+a-h),h!==0&&e.arc(r+n-h,i+a-h,h,0,Math.PI/2),e.lineTo(r+u,i+a),u!==0&&e.arc(r+u,i+a-u,u,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var Lr=Math.round;function Hh(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Lr(i*2)===Lr(n*2)&&(e.x1=e.x2=Pr(i,s,!0)),Lr(a*2)===Lr(o*2)&&(e.y1=e.y2=Pr(a,s,!0))),e}}function zh(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Pr(i,s,!0),e.y=Pr(n,s,!0),e.width=Math.max(Pr(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Pr(n+o,s,!1)-e.y,o===0?0:1)),e}}function Pr(e,t,r){if(!t)return e;var i=Lr(e*2);return(i+Lr(t))%2===0?i/2:(i+(r?1:-1))/2}var kh=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),$h={},Po=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new kh},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var f=zh($h,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Bh(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(G);Po.prototype.type="rect";const Ro=Po;var aa={fill:"#000"},oa=2,Nh={style:gt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Je.style)},So=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=aa,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,S=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=o.calculatedLineHeight,x=0;x=0&&(x=w[A],x.align==="right");)this._placeToken(x,r,C,p,S,"right",m),L-=x.width,S-=x.width,A--;for(R+=(a-(R-d)-(y-S)-L)/2;P<=A;)x=w[P],this._placeToken(x,r,C,p,R+x.width/2,"center",m),R+=x.width,P++;p+=C}},t.prototype._placeToken=function(r,i,n,a,o,s,f){var h=i.rich[r.styleName]||{};h.text=r.text;var u=r.verticalAlign,v=a+n/2;u==="top"?v=a+r.height/2:u==="bottom"&&(v=a+n-r.height/2);var l=!r.isLineHolder&&Ei(h);l&&this._renderBackground(h,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,v-r.height/2,r.width,r.height);var c=!!h.backgroundColor,_=r.textPadding;_&&(o=la(o,s,_),v-=r.height/2-_[0]-r.innerHeight/2);var g=this._getOrCreateChild(en),d=g.createStyle();g.useStyle(d);var p=this._defaultStyle,y=!1,m=0,T=va("fill"in h?h.fill:"fill"in i?i.fill:(y=!0,p.fill)),b=ua("stroke"in h?h.stroke:"stroke"in i?i.stroke:!c&&!f&&(!p.autoStroke||y)?(m=oa,p.stroke):null),w=h.textShadowBlur>0||i.textShadowBlur>0;d.text=r.text,d.x=o,d.y=v,w&&(d.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,d.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=r.font||ur,d.opacity=De(h.opacity,i.opacity,1),fa(d,h),b&&(d.lineWidth=De(h.lineWidth,i.lineWidth,m),d.lineDash=st(h.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=b),T&&(d.fill=T);var M=r.contentWidth,C=r.contentHeight;g.setBoundingRect(new N(Ur(d.x,M,d.textAlign),Tr(d.y,C,d.textBaseline),M,C))},t.prototype._renderBackground=function(r,i,n,a,o,s){var f=r.backgroundColor,h=r.borderWidth,u=r.borderColor,v=f&&f.image,l=f&&!v,c=r.borderRadius,_=this,g,d;if(l||r.lineHeight||h&&u){g=this._getOrCreateChild(Ro),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=c,g.dirtyShape()}if(l){var y=g.style;y.fill=f||null,y.fillOpacity=st(r.fillOpacity,1)}else if(v){d=this._getOrCreateChild(Lo),d.onload=function(){_.dirtyStyle()};var m=d.style;m.image=f.image,m.x=n,m.y=a,m.width=o,m.height=s}if(h&&u){var y=g.style;y.lineWidth=h,y.stroke=u,y.strokeOpacity=st(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var T=(g||d).style;T.shadowBlur=r.shadowBlur||0,T.shadowColor=r.shadowColor||"transparent",T.shadowOffsetX=r.shadowOffsetX||0,T.shadowOffsetY=r.shadowOffsetY||0,T.opacity=De(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return Xh(r)&&(i=[r.fontStyle,r.fontWeight,Gh(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Xr(i)||r.textFont||r.font},t}(ae),Wh={left:!0,right:1,center:1},Yh={top:1,bottom:1,middle:1},sa=["fontStyle","fontWeight","fontSize","fontFamily"];function Gh(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?vn+"px":e+"px"}function fa(e,t){for(var r=0;r1&&(o*=Ii(_),s*=Ii(_));var g=(n===a?-1:1)*Ii((o*o*(s*s)-o*o*(c*c)-s*s*(l*l))/(o*o*(c*c)+s*s*(l*l)))||0,d=g*o*c/s,p=g*-s*l/o,y=(e+r)/2+Te(v)*d-we(v)*p,m=(t+i)/2+we(v)*d+Te(v)*p,T=_a([1,0],[(l-d)/o,(c-p)/s]),b=[(l-d)/o,(c-p)/s],w=[(-1*l-d)/o,(-1*c-p)/s],M=_a(b,w);if(nn(b,w)<=-1&&(M=Yr),nn(b,w)>=1&&(M=0),M<0){var C=Math.round(M/Yr*1e6)/1e6;M=Yr*2+C%2*Yr}u.addData(h,y,m,o,s,T,M,v,a)}var Vh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Qh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Kh(e){var t=new vr;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=vr.CMD,f=e.match(Vh);if(!f)return t;for(var h=0;hx*x+E*E&&(C=P,L=R),{cx:C,cy:L,x0:-u,y0:-v,x1:C*(n/b-1),y1:L*(n/b-1)}}function eu(e){var t;if(re(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function iu(e,t){var r,i=Vr(t.r,0),n=Vr(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var f=t.startAngle,h=t.endAngle;if(!(isNaN(f)||isNaN(h))){var u=t.cx,v=t.cy,l=!!t.clockwise,c=ya(h-f),_=c>Fi&&c%Fi;if(_>dt&&(c=_),!(i>dt))e.moveTo(u,v);else if(c>Fi-dt)e.moveTo(u+i*yr(f),v+i*er(f)),e.arc(u,v,i,f,h,!l),n>dt&&(e.moveTo(u+n*yr(h),v+n*er(h)),e.arc(u,v,n,h,f,l));else{var g=void 0,d=void 0,p=void 0,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0,M=void 0,C=void 0,L=void 0,P=void 0,R=void 0,S=void 0,A=void 0,x=void 0,E=i*yr(f),D=i*er(f),z=n*yr(h),k=n*er(h),W=c>dt;if(W){var X=t.cornerRadius;X&&(r=eu(X),g=r[0],d=r[1],p=r[2],y=r[3]);var Z=ya(i-n)/2;if(m=bt(Z,p),T=bt(Z,y),b=bt(Z,g),w=bt(Z,d),L=M=Vr(m,T),P=C=Vr(b,w),(M>dt||C>dt)&&(R=i*yr(h),S=i*er(h),A=n*yr(f),x=n*er(f),cdt){var j=bt(p,L),q=bt(y,L),I=be(A,x,E,D,i,j,l),O=be(R,S,z,k,i,q,l);e.moveTo(u+I.cx+I.x0,v+I.cy+I.y0),L0&&e.arc(u+I.cx,v+I.cy,j,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,i,V(I.cy+I.y1,I.cx+I.x1),V(O.cy+O.y1,O.cx+O.x1),!l),q>0&&e.arc(u+O.cx,v+O.cy,q,V(O.y1,O.x1),V(O.y0,O.x0),!l))}else e.moveTo(u+E,v+D),e.arc(u,v,i,f,h,!l);if(!(n>dt)||!W)e.lineTo(u+z,v+k);else if(P>dt){var j=bt(g,P),q=bt(d,P),I=be(z,k,R,S,n,-q,l),O=be(E,D,A,x,n,-j,l);e.lineTo(u+I.cx+I.x0,v+I.cy+I.y0),P0&&e.arc(u+I.cx,v+I.cy,q,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,n,V(I.cy+I.y1,I.cx+I.x1),V(O.cy+O.y1,O.cx+O.x1),l),j>0&&e.arc(u+O.cx,v+O.cy,j,V(O.y1,O.x1),V(O.y0,O.x0),!l))}else e.lineTo(u+z,v+k),e.arc(u,v,n,h,f,l)}e.closePath()}}}var nu=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Ho=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new nu},t.prototype.buildPath=function(r,i){iu(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(G);Ho.prototype.type="sector";const ma=Ho;var au=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),zo=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new au},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t}(G);zo.prototype.type="ring";const Sv=zo;function ou(e,t,r,i){var n=[],a=[],o=[],s=[],f,h,u,v;if(i){u=[1/0,1/0],v=[-1/0,-1/0];for(var l=0,c=e.length;l=2){if(i){var a=ou(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var f=a[s*2],h=a[s*2+1],u=n[(s+1)%o];e.bezierCurveTo(f[0],f[1],h[0],h[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;snr[1]){if(s=!1,a)return s;var u=Math.abs(nr[0]-ir[1]),v=Math.abs(ir[0]-nr[1]);Math.min(u,v)>n.len()&&(u=0&&sr(f)?f:.5;var h=e.createRadialGradient(o,s,0,o,s,f);return h}function an(e,t,r){for(var i=t.type==="radial"?Lu(e,t,r):Mu(e,t,r),n=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Se(e)?[e]:re(e)?e:null}function qo(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Ru(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=xt(r,function(a){return a/n}),i/=n)}return[r,i]}var Su=new vr(!0);function Ne(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Ta(e){return typeof e=="string"&&e!=="none"}function We(e){var t=e.fill;return t!=null&&t!=="none"}function ba(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Ca(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function on(e,t,r){var i=_o(t.image,t.__image,r);if(Ke(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ts),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function Du(e,t,r,i){var n,a=Ne(r),o=We(r),s=r.strokePercent,f=s<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||Su,v=t.__dirty;if(!i){var l=r.fill,c=r.stroke,_=o&&!!l.colorStops,g=a&&!!c.colorStops,d=o&&!!l.image,p=a&&!!c.image,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0;(_||g)&&(w=t.getBoundingRect()),_&&(y=v?an(e,l,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=v?an(e,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),d&&(T=v||!t.__canvasFillPattern?on(e,l,t):t.__canvasFillPattern,t.__canvasFillPattern=T),p&&(b=v||!t.__canvasStrokePattern?on(e,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=T),_?e.fillStyle=y:d&&(T?e.fillStyle=T:o=!1),g?e.strokeStyle=m:p&&(b?e.strokeStyle=b:a=!1)}var M=t.getGlobalScale();u.setScale(M[0],M[1],t.segmentIgnoreThreshold);var C,L;e.setLineDash&&r.lineDash&&(n=qo(t),C=n[0],L=n[1]);var P=!0;(h||v&wr)&&(u.setDPR(e.dpr),f?u.setContext(null):(u.setContext(e),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(e,f?s:1),C&&(e.setLineDash(C),e.lineDashOffset=L),i||(r.strokeFirst?(a&&Ca(e,r),o&&ba(e,r)):(o&&ba(e,r),a&&Ca(e,r))),C&&e.setLineDash([])}function xu(e,t,r){var i=t.__image=_o(r.image,t.__image,t,t.onload);if(!(!i||!Ke(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var h=r.sx||0,u=r.sy||0;e.drawImage(i,h,u,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var h=r.sx,u=r.sy,v=o-h,l=s-u;e.drawImage(i,h,u,v,l,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function Au(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||ur,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=qo(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Ne(r)&&e.strokeText(n,r.x,r.y),We(r)&&e.fillText(n,r.x,r.y)):(We(r)&&e.fillText(n,r.x,r.y),Ne(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var Ma=["shadowBlur","shadowOffsetX","shadowOffsetY"],La=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Zo(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){it(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?hr.opacity:o}(i||t.blend!==r.blend)&&(a||(it(e,n),a=!0),e.globalCompositeOperation=t.blend||hr.blend);for(var s=0;s2&&i.push(n),n=[A,x]}function u(A,x,E,D){Rr(A,E)&&Rr(x,D)||n.push(A,x,E,D,E,D)}function v(A,x,E,D,z,k){var W=Math.abs(x-A),X=Math.tan(W/4)*4/3,Z=xC:R2&&i.push(n),i}function fn(e,t,r,i,n,a,o,s,f,h){if(Rr(e,r)&&Rr(t,i)&&Rr(n,o)&&Rr(a,s)){f.push(o,s);return}var u=2/h,v=u*u,l=o-e,c=s-t,_=Math.sqrt(l*l+c*c);l/=_,c/=_;var g=r-e,d=i-t,p=n-o,y=a-s,m=g*g+d*d,T=p*p+y*y;if(m=0&&C=0){f.push(o,s);return}var L=[],P=[];kt(e,r,n,o,.5,L),kt(t,i,a,s,.5,P),fn(L[0],P[0],L[1],P[1],L[2],P[2],L[3],P[3],f,h),fn(L[4],P[4],L[5],P[5],L[6],P[6],L[7],P[7],f,h)}function zu(e,t){var r=sn(e),i=[];t=t||1;for(var n=0;n0)for(var h=0;hMath.abs(h),v=Vo([f,h],u?0:1,t),l=(u?s:h)/v.length,c=0;cn,o=Vo([i,n],a?0:1,t),s=a?"width":"height",f=a?"height":"width",h=a?"x":"y",u=a?"y":"x",v=e[s]/o.length,l=0;l1?null:new F(g*f+e,g*h+t)}function Nu(e,t,r){var i=new F;F.sub(i,r,t),i.normalize();var n=new F;F.sub(n,e,t);var a=n.dot(i);return a}function mr(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function Wu(e,t,r){for(var i=e.length,n=[],a=0;ao?(h.x=u.x=s+a/2,h.y=f,u.y=f+o):(h.y=u.y=f+o/2,h.x=s,u.x=s+a),Wu(t,h,u)}function Ye(e,t,r,i){if(r===1)i.push(t);else{var n=Math.floor(r/2),a=e(t);Ye(e,a[0],n,i),Ye(e,a[1],r-n,i)}return i}function Yu(e,t){for(var r=[],i=0;i0)for(var b=i/r,w=-i/2;w<=i/2;w+=b){for(var M=Math.sin(w),C=Math.cos(w),L=0,m=0;m0;h/=2){var u=0,v=0;(e&h)>0&&(u=1),(t&h)>0&&(v=1),s+=h*h*(3*u^v),v===0&&(u===1&&(e=h-1-e,t=h-1-t),f=e,e=t,t=f)}return s}function Xe(e){var t=1/0,r=1/0,i=-1/0,n=-1/0,a=xt(e,function(s){var f=s.getBoundingRect(),h=s.getComputedTransform(),u=f.x+f.width/2+(h?h[4]:0),v=f.y+f.height/2+(h?h[5]:0);return t=Math.min(u,t),r=Math.min(v,r),i=Math.max(u,i),n=Math.max(v,n),[u,v]}),o=xt(a,function(s,f){return{cp:s,z:Ju(s[0],s[1],t,r,i,n),path:e[f]}});return o.sort(function(s,f){return s.z-f.z}).map(function(s){return s.path})}function jo(e){return qu(e.path,e.count)}function un(){return{fromIndividuals:[],toIndividuals:[],count:0}}function kv(e,t,r){var i=[];function n(b){for(var w=0;w=s)}}for(var v=this.__startIndex;v15)break}}x.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=d.__endIndex;else for(var P=c.dpr,R=0;R0&&t>n[0]){for(f=0;ft);f++);s=i[n[f]]}if(n.splice(f+1,0,t),i[t]=r,!r.virtual)if(s){var h=s.dom;h.nextSibling?o.insertBefore(r.dom,h.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n0?Re:0),this._needsManuallyCompositing),u.__builtin__||dn("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,r(f),a=u),n.__dirty&ot&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}r(f),this.eachBuiltinLayer(function(v,l){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,ft(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?Gr(i[t],r,!0):i[t]=r;for(var n=0;n=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var fh=Ue(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function hh(e){return sh(e)?!!fh[e]:!0}function mo(e,t,r,i,n){for(var a=[],o=[],s="",f="",h=0,u=0,v=0;vr:n+u+c>r){u?(s||f)&&(_?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=l,h+=c,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=l,u=c)):_?(a.push(f),o.push(h),f=l,h=c):(a.push(l),o.push(c));continue}u+=c,_?(f+=l,h+=c):(f&&(s+=f,f="",h=0),s+=l)}return!a.length&&!s&&(s=e,f="",h=0),f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}var tn="__zr_style_"+Math.round(Math.random()*10),hr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Je={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};hr[tn]=!0;var ta=["z","z2","invisible"],uh=["invisible"],vh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=ht(r),n=0;n1e-4){s[0]=e-r,s[1]=t-i,f[0]=e+r,f[1]=t+i;return}if(_e[0]=Pi(n)*r+e,_e[1]=Li(n)*i+t,ge[0]=Pi(a)*r+e,ge[1]=Li(a)*i+t,h(s,_e,ge),u(f,_e,ge),n=n%Vt,n<0&&(n=n+Vt),a=a%Vt,a<0&&(a=a+Vt),n>a&&!o?a+=Vt:nn&&(ye[0]=Pi(c)*r+e,ye[1]=Li(c)*i+t,h(s,ye,s),u(f,ye,f))}var B={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qt=[],Kt=[],mt=[],At=[],wt=[],Tt=[],Ri=Math.min,Si=Math.max,Jt=Math.cos,jt=Math.sin,St=Math.abs,rn=Math.PI,It=rn*2,Di=typeof Float32Array<"u",$r=[];function xi(e){var t=Math.round(e/rn*1e8)/1e8;return t%2*rn}function _h(e,t){var r=xi(e[0]);r<0&&(r+=It);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=It?n=r+It:t&&r-n>=It?n=r-It:!t&&r>n?n=r+(It-xi(r-n)):t&&r0&&(this._ux=St(i/Ne/t)||0,this._uy=St(i/Ne/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(B.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=St(t-this._xi),n=St(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(B.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(B.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(B.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),$r[0]=n,$r[1]=a,_h($r,o),n=$r[0],a=$r[1];var s=a-n;return this.addData(B.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Jt(a)*i+t,this._yi=jt(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(B.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(B.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Di&&(this.data=new Float32Array(r));for(var i=0;iu.length&&(this._expandData(),u=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){mt[0]=mt[1]=wt[0]=wt[1]=Number.MAX_VALUE,At[0]=At[1]=Tt[0]=Tt[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;oi||St(m)>n||l===r-1)&&(g=Math.sqrt(y*y+m*m),a=d,o=p);break}case B.C:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++],w=t[l++],M=t[l++];g=cf(a,o,T,b,d,p,w,M,10),a=w,o=M;break}case B.Q:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++];g=_f(a,o,T,b,d,p,10),a=d,o=p;break}case B.A:var C=t[l++],L=t[l++],P=t[l++],R=t[l++],S=t[l++],A=t[l++],x=A+S;l+=1,t[l++],_&&(s=Jt(S)*P+C,f=jt(S)*R+L),g=Si(P,R)*Ri(It,Math.abs(A)),a=Jt(x)*P+C,o=jt(x)*R+L;break;case B.R:{s=a=t[l++],f=o=t[l++];var E=t[l++],D=t[l++];g=E*2+D*2;break}case B.Z:{var y=s-a,m=f-o;g=Math.sqrt(y*y+m*m),a=s,o=f;break}}g>=0&&(h[v++]=g,u+=g)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,h,u,v,l,c=r<1,_,g,d=0,p=0,y,m=0,T,b;if(!(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=r*g,!y)))t:for(var w=0;w0&&(t.lineTo(T,b),m=0),M){case B.M:s=h=i[w++],f=u=i[w++],t.moveTo(h,u);break;case B.L:{v=i[w++],l=i[w++];var L=St(v-h),P=St(l-u);if(L>n||P>a){if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;t.lineTo(h*(1-S)+v*S,u*(1-S)+l*S);break t}d+=R}t.lineTo(v,l),h=v,u=l,m=0}else{var A=L*L+P*P;A>m&&(T=v,b=l,m=A)}break}case B.C:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++],k=i[w++],W=i[w++];if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;kt(h,x,D,k,S,Qt),kt(u,E,z,W,S,Kt),t.bezierCurveTo(Qt[1],Kt[1],Qt[2],Kt[2],Qt[3],Kt[3]);break t}d+=R}t.bezierCurveTo(x,E,D,z,k,W),h=k,u=W;break}case B.Q:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++];if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;ze(h,x,D,S,Qt),ze(u,E,z,S,Kt),t.quadraticCurveTo(Qt[1],Kt[1],Qt[2],Kt[2]);break t}d+=R}t.quadraticCurveTo(x,E,D,z),h=D,u=z;break}case B.A:var X=i[w++],Z=i[w++],Y=i[w++],nt=i[w++],at=i[w++],Rt=i[w++],Nt=i[w++],$t=!i[w++],Wt=Y>nt?Y:nt,j=St(Y-nt)>.001,q=at+Rt,I=!1;if(c){var R=_[p++];d+R>y&&(q=at+Rt*(y-d)/R,I=!0),d+=R}if(j&&t.ellipse?t.ellipse(X,Z,Y,nt,Nt,at,q,$t):t.arc(X,Z,Wt,at,q,$t),I)break t;C&&(s=Jt(at)*Y+X,f=jt(at)*nt+Z),h=Jt(q)*Y+X,u=jt(q)*nt+Z;break;case B.R:s=h=i[w],f=u=i[w+1],v=i[w++],l=i[w++];var O=i[w++],Or=i[w++];if(c){var R=_[p++];if(d+R>y){var yt=y-d;t.moveTo(v,l),t.lineTo(v+Ri(yt,O),l),yt-=O,yt>0&&t.lineTo(v+O,l+Ri(yt,Or)),yt-=Or,yt>0&&t.lineTo(v+Si(O-yt,0),l+Or),yt-=O,yt>0&&t.lineTo(v,l+Si(Or-yt,0));break t}d+=R}t.rect(v,l,O,Or);break;case B.Z:if(c){var R=_[p++];if(d+R>y){var S=(y-d)/R;t.lineTo(h*(1-S)+s*S,u*(1-S)+f*S);break t}d+=R}t.closePath(),h=s,u=f}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=B,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const vr=gh;function _r(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,f=0,h=e;if(o>t+s&&o>i+s||oe+s&&a>r+s||at+v&&u>i+v&&u>a+v&&u>s+v||ue+v&&h>r+v&&h>n+v&&h>o+v||ht+h&&f>i+h&&f>a+h||fe+h&&s>r+h&&s>n+h||sr||u+hn&&(n+=Wr);var l=Math.atan2(f,s);return l<0&&(l+=Wr),l>=i&&l<=n||l+Wr>=i&&l+Wr<=n}function tr(e,t,r,i,n,a){if(a>t&&a>i||an?s:0}var Et=vr.CMD,rr=Math.PI*2,Th=1e-4;function bh(e,t){return Math.abs(e-t)t&&h>i&&h>a&&h>s||h1&&Ch(),c=U(t,i,a,s,lt[0]),l>1&&(_=U(t,i,a,s,lt[1]))),l===2?dt&&s>i&&s>a||s=0&&h<=1){for(var u=0,v=Q(t,i,a,h),l=0;lr||s<-r)return 0;var f=Math.sqrt(r*r-s*s);J[0]=-f,J[1]=f;var h=Math.abs(i-n);if(h<1e-4)return 0;if(h>=rr-1e-4){i=0,n=rr;var u=a?1:-1;return o>=J[0]+e&&o<=J[1]+e?u:0}if(i>n){var v=i;i=n,n=v}i<0&&(i+=rr,n+=rr);for(var l=0,c=0;c<2;c++){var _=J[c];if(_+e>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=rr+g),(g>=i&&g<=n||g+rr>=i&&g+rr<=n)&&(g>Math.PI/2&&g1&&(r||(s+=tr(f,h,u,v,i,n))),d&&(f=a[_],h=a[_+1],u=f,v=h),g){case Et.M:u=a[_++],v=a[_++],f=u,h=v;break;case Et.L:if(r){if(_r(f,h,a[_],a[_+1],t,i,n))return!0}else s+=tr(f,h,a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.C:if(r){if(yh(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Mh(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.Q:if(r){if(mh(f,h,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Lh(f,h,a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.A:var p=a[_++],y=a[_++],m=a[_++],T=a[_++],b=a[_++],w=a[_++];_+=1;var M=!!(1-a[_++]);l=Math.cos(b)*m+p,c=Math.sin(b)*T+y,d?(u=l,v=c):s+=tr(f,h,l,c,i,n);var C=(i-p)*T/m+p;if(r){if(wh(p,y,T,b,b+w,M,t,C,n))return!0}else s+=Ph(p,y,T,b,b+w,M,C,n);f=Math.cos(b+w)*m+p,h=Math.sin(b+w)*T+y;break;case Et.R:u=f=a[_++],v=h=a[_++];var L=a[_++],P=a[_++];if(l=u+L,c=v+P,r){if(_r(u,v,l,v,t,i,n)||_r(l,v,l,c,t,i,n)||_r(l,c,u,c,t,i,n)||_r(u,c,u,v,t,i,n))return!0}else s+=tr(l,v,l,c,i,n),s+=tr(u,c,u,v,i,n);break;case Et.Z:if(r){if(_r(f,h,u,v,t,i,n))return!0}else s+=tr(f,h,u,v,i,n);f=u,h=v;break}}return!r&&!bh(h,v)&&(s+=tr(f,h,u,v,i,n)||0),s!==0}function Rh(e,t,r){return To(e,0,!1,t,r)}function Sh(e,t,r,i){return To(e,t,!0,r,i)}var bo=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hr),Dh={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Je.style)},Ai=ee.concat(["invisible","culling","z","z2","zlevel","parent"]),xh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){r.buildPath(f,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Ki:i>.2?Nf:Ji}else if(r)return Ji}return Ki},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(Bi(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=ke(r,0)0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&wr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u??4)}f>1e-10&&(s.width+=h/f,s.height+=h/f,s.x-=h/f/2,s.y-=h/f/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),Sh(s,f/h,r,i)))return!0}if(this.hasFill())return Rh(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=wr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:N(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&wr)},t.prototype.createStyle=function(r){return Qe(bo,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=N({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.shape?o?a?h=i.shape:(h=N({},n.shape),N(h,i.shape)):(h=N({},a?this.shape:n.shape),N(h,i.shape)):f&&(h=n.shape),h)if(o){this.shape=N({},this.shape);for(var u={},v=ht(h),l=0;l0},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return Qe(Ah,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var i=r.text;i!=null?i+="":i="";var n=Wf(i,r.font,r.textAlign,r.textBaseline);if(n.x+=r.x||0,n.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ae);Co.prototype.type="tspan";const en=Co;var Eh=gt({x:0,y:0},hr),Ih={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Je.style)};function Fh(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Mo=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Qe(Eh,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=Fh(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Ih},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new $(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ae);Mo.prototype.type="image";const Lo=Mo;function Oh(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,f,h,u;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=f=h=u=o:o instanceof Array?o.length===1?s=f=h=u=o[0]:o.length===2?(s=h=o[0],f=u=o[1]):o.length===3?(s=o[0],f=u=o[1],h=o[2]):(s=o[0],f=o[1],h=o[2],u=o[3]):s=f=h=u=0;var v;s+f>n&&(v=s+f,s*=n/v,f*=n/v),h+u>n&&(v=h+u,h*=n/v,u*=n/v),f+h>a&&(v=f+h,f*=a/v,h*=a/v),s+u>a&&(v=s+u,s*=a/v,u*=a/v),e.moveTo(r+s,i),e.lineTo(r+n-f,i),f!==0&&e.arc(r+n-f,i+f,f,-Math.PI/2,0),e.lineTo(r+n,i+a-h),h!==0&&e.arc(r+n-h,i+a-h,h,0,Math.PI/2),e.lineTo(r+u,i+a),u!==0&&e.arc(r+u,i+a-u,u,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var Lr=Math.round;function Bh(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Lr(i*2)===Lr(n*2)&&(e.x1=e.x2=Pr(i,s,!0)),Lr(a*2)===Lr(o*2)&&(e.y1=e.y2=Pr(a,s,!0))),e}}function Hh(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Pr(i,s,!0),e.y=Pr(n,s,!0),e.width=Math.max(Pr(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Pr(n+o,s,!1)-e.y,o===0?0:1)),e}}function Pr(e,t,r){if(!t)return e;var i=Lr(e*2);return(i+Lr(t))%2===0?i/2:(i+(r?1:-1))/2}var zh=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),kh={},Po=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new zh},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var f=Hh(kh,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Oh(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(G);Po.prototype.type="rect";const Ro=Po;var aa={fill:"#000"},oa=2,Nh={style:gt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Je.style)},So=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=aa,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,S=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=o.calculatedLineHeight,x=0;x=0&&(x=w[A],x.align==="right");)this._placeToken(x,r,C,p,S,"right",m),L-=x.width,S-=x.width,A--;for(R+=(a-(R-d)-(y-S)-L)/2;P<=A;)x=w[P],this._placeToken(x,r,C,p,R+x.width/2,"center",m),R+=x.width,P++;p+=C}},t.prototype._placeToken=function(r,i,n,a,o,s,f){var h=i.rich[r.styleName]||{};h.text=r.text;var u=r.verticalAlign,v=a+n/2;u==="top"?v=a+r.height/2:u==="bottom"&&(v=a+n-r.height/2);var l=!r.isLineHolder&&Ei(h);l&&this._renderBackground(h,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,v-r.height/2,r.width,r.height);var c=!!h.backgroundColor,_=r.textPadding;_&&(o=la(o,s,_),v-=r.height/2-_[0]-r.innerHeight/2);var g=this._getOrCreateChild(en),d=g.createStyle();g.useStyle(d);var p=this._defaultStyle,y=!1,m=0,T=va("fill"in h?h.fill:"fill"in i?i.fill:(y=!0,p.fill)),b=ua("stroke"in h?h.stroke:"stroke"in i?i.stroke:!c&&!f&&(!p.autoStroke||y)?(m=oa,p.stroke):null),w=h.textShadowBlur>0||i.textShadowBlur>0;d.text=r.text,d.x=o,d.y=v,w&&(d.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,d.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=r.font||ur,d.opacity=De(h.opacity,i.opacity,1),fa(d,h),b&&(d.lineWidth=De(h.lineWidth,i.lineWidth,m),d.lineDash=st(h.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=b),T&&(d.fill=T);var M=r.contentWidth,C=r.contentHeight;g.setBoundingRect(new $(Ur(d.x,M,d.textAlign),Tr(d.y,C,d.textBaseline),M,C))},t.prototype._renderBackground=function(r,i,n,a,o,s){var f=r.backgroundColor,h=r.borderWidth,u=r.borderColor,v=f&&f.image,l=f&&!v,c=r.borderRadius,_=this,g,d;if(l||r.lineHeight||h&&u){g=this._getOrCreateChild(Ro),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=c,g.dirtyShape()}if(l){var y=g.style;y.fill=f||null,y.fillOpacity=st(r.fillOpacity,1)}else if(v){d=this._getOrCreateChild(Lo),d.onload=function(){_.dirtyStyle()};var m=d.style;m.image=f.image,m.x=n,m.y=a,m.width=o,m.height=s}if(h&&u){var y=g.style;y.lineWidth=h,y.stroke=u,y.strokeOpacity=st(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var T=(g||d).style;T.shadowBlur=r.shadowBlur||0,T.shadowColor=r.shadowColor||"transparent",T.shadowOffsetX=r.shadowOffsetX||0,T.shadowOffsetY=r.shadowOffsetY||0,T.opacity=De(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return Gh(r)&&(i=[r.fontStyle,r.fontWeight,Yh(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Xr(i)||r.textFont||r.font},t}(ae),$h={left:!0,right:1,center:1},Wh={top:1,bottom:1,middle:1},sa=["fontStyle","fontWeight","fontSize","fontFamily"];function Yh(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?vn+"px":e+"px"}function fa(e,t){for(var r=0;r1&&(o*=Ii(_),s*=Ii(_));var g=(n===a?-1:1)*Ii((o*o*(s*s)-o*o*(c*c)-s*s*(l*l))/(o*o*(c*c)+s*s*(l*l)))||0,d=g*o*c/s,p=g*-s*l/o,y=(e+r)/2+Te(v)*d-we(v)*p,m=(t+i)/2+we(v)*d+Te(v)*p,T=_a([1,0],[(l-d)/o,(c-p)/s]),b=[(l-d)/o,(c-p)/s],w=[(-1*l-d)/o,(-1*c-p)/s],M=_a(b,w);if(nn(b,w)<=-1&&(M=Yr),nn(b,w)>=1&&(M=0),M<0){var C=Math.round(M/Yr*1e6)/1e6;M=Yr*2+C%2*Yr}u.addData(h,y,m,o,s,T,M,v,a)}var Uh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Vh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Qh(e){var t=new vr;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=vr.CMD,f=e.match(Uh);if(!f)return t;for(var h=0;hx*x+E*E&&(C=P,L=R),{cx:C,cy:L,x0:-u,y0:-v,x1:C*(n/b-1),y1:L*(n/b-1)}}function ru(e){var t;if(re(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function eu(e,t){var r,i=Vr(t.r,0),n=Vr(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var f=t.startAngle,h=t.endAngle;if(!(isNaN(f)||isNaN(h))){var u=t.cx,v=t.cy,l=!!t.clockwise,c=ya(h-f),_=c>Fi&&c%Fi;if(_>dt&&(c=_),!(i>dt))e.moveTo(u,v);else if(c>Fi-dt)e.moveTo(u+i*yr(f),v+i*er(f)),e.arc(u,v,i,f,h,!l),n>dt&&(e.moveTo(u+n*yr(h),v+n*er(h)),e.arc(u,v,n,h,f,l));else{var g=void 0,d=void 0,p=void 0,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0,M=void 0,C=void 0,L=void 0,P=void 0,R=void 0,S=void 0,A=void 0,x=void 0,E=i*yr(f),D=i*er(f),z=n*yr(h),k=n*er(h),W=c>dt;if(W){var X=t.cornerRadius;X&&(r=ru(X),g=r[0],d=r[1],p=r[2],y=r[3]);var Z=ya(i-n)/2;if(m=bt(Z,p),T=bt(Z,y),b=bt(Z,g),w=bt(Z,d),L=M=Vr(m,T),P=C=Vr(b,w),(M>dt||C>dt)&&(R=i*yr(h),S=i*er(h),A=n*yr(f),x=n*er(f),cdt){var j=bt(p,L),q=bt(y,L),I=be(A,x,E,D,i,j,l),O=be(R,S,z,k,i,q,l);e.moveTo(u+I.cx+I.x0,v+I.cy+I.y0),L0&&e.arc(u+I.cx,v+I.cy,j,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,i,V(I.cy+I.y1,I.cx+I.x1),V(O.cy+O.y1,O.cx+O.x1),!l),q>0&&e.arc(u+O.cx,v+O.cy,q,V(O.y1,O.x1),V(O.y0,O.x0),!l))}else e.moveTo(u+E,v+D),e.arc(u,v,i,f,h,!l);if(!(n>dt)||!W)e.lineTo(u+z,v+k);else if(P>dt){var j=bt(g,P),q=bt(d,P),I=be(z,k,R,S,n,-q,l),O=be(E,D,A,x,n,-j,l);e.lineTo(u+I.cx+I.x0,v+I.cy+I.y0),P0&&e.arc(u+I.cx,v+I.cy,q,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,n,V(I.cy+I.y1,I.cx+I.x1),V(O.cy+O.y1,O.cx+O.x1),l),j>0&&e.arc(u+O.cx,v+O.cy,j,V(O.y1,O.x1),V(O.y0,O.x0),!l))}else e.lineTo(u+z,v+k),e.arc(u,v,n,h,f,l)}e.closePath()}}}var iu=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Ho=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new iu},t.prototype.buildPath=function(r,i){eu(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(G);Ho.prototype.type="sector";const ma=Ho;var nu=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),zo=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new nu},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t}(G);zo.prototype.type="ring";const Rv=zo;function au(e,t,r,i){var n=[],a=[],o=[],s=[],f,h,u,v;if(i){u=[1/0,1/0],v=[-1/0,-1/0];for(var l=0,c=e.length;l=2){if(i){var a=au(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var f=a[s*2],h=a[s*2+1],u=n[(s+1)%o];e.bezierCurveTo(f[0],f[1],h[0],h[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;snr[1]){if(s=!1,a)return s;var u=Math.abs(nr[0]-ir[1]),v=Math.abs(ir[0]-nr[1]);Math.min(u,v)>n.len()&&(u=0&&sr(f)?f:.5;var h=e.createRadialGradient(o,s,0,o,s,f);return h}function an(e,t,r){for(var i=t.type==="radial"?Mu(e,t,r):Cu(e,t,r),n=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Se(e)?[e]:re(e)?e:null}function qo(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Pu(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=xt(r,function(a){return a/n}),i/=n)}return[r,i]}var Ru=new vr(!0);function $e(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Ta(e){return typeof e=="string"&&e!=="none"}function We(e){var t=e.fill;return t!=null&&t!=="none"}function ba(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Ca(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function on(e,t,r){var i=_o(t.image,t.__image,r);if(Ke(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ts),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function Su(e,t,r,i){var n,a=$e(r),o=We(r),s=r.strokePercent,f=s<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||Ru,v=t.__dirty;if(!i){var l=r.fill,c=r.stroke,_=o&&!!l.colorStops,g=a&&!!c.colorStops,d=o&&!!l.image,p=a&&!!c.image,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0;(_||g)&&(w=t.getBoundingRect()),_&&(y=v?an(e,l,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=v?an(e,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),d&&(T=v||!t.__canvasFillPattern?on(e,l,t):t.__canvasFillPattern,t.__canvasFillPattern=T),p&&(b=v||!t.__canvasStrokePattern?on(e,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=T),_?e.fillStyle=y:d&&(T?e.fillStyle=T:o=!1),g?e.strokeStyle=m:p&&(b?e.strokeStyle=b:a=!1)}var M=t.getGlobalScale();u.setScale(M[0],M[1],t.segmentIgnoreThreshold);var C,L;e.setLineDash&&r.lineDash&&(n=qo(t),C=n[0],L=n[1]);var P=!0;(h||v&wr)&&(u.setDPR(e.dpr),f?u.setContext(null):(u.setContext(e),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(e,f?s:1),C&&(e.setLineDash(C),e.lineDashOffset=L),i||(r.strokeFirst?(a&&Ca(e,r),o&&ba(e,r)):(o&&ba(e,r),a&&Ca(e,r))),C&&e.setLineDash([])}function Du(e,t,r){var i=t.__image=_o(r.image,t.__image,t,t.onload);if(!(!i||!Ke(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var h=r.sx||0,u=r.sy||0;e.drawImage(i,h,u,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var h=r.sx,u=r.sy,v=o-h,l=s-u;e.drawImage(i,h,u,v,l,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function xu(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||ur,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=qo(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?($e(r)&&e.strokeText(n,r.x,r.y),We(r)&&e.fillText(n,r.x,r.y)):(We(r)&&e.fillText(n,r.x,r.y),$e(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var Ma=["shadowBlur","shadowOffsetX","shadowOffsetY"],La=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Zo(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){it(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?hr.opacity:o}(i||t.blend!==r.blend)&&(a||(it(e,n),a=!0),e.globalCompositeOperation=t.blend||hr.blend);for(var s=0;s2&&i.push(n),n=[A,x]}function u(A,x,E,D){Rr(A,E)&&Rr(x,D)||n.push(A,x,E,D,E,D)}function v(A,x,E,D,z,k){var W=Math.abs(x-A),X=Math.tan(W/4)*4/3,Z=xC:R2&&i.push(n),i}function fn(e,t,r,i,n,a,o,s,f,h){if(Rr(e,r)&&Rr(t,i)&&Rr(n,o)&&Rr(a,s)){f.push(o,s);return}var u=2/h,v=u*u,l=o-e,c=s-t,_=Math.sqrt(l*l+c*c);l/=_,c/=_;var g=r-e,d=i-t,p=n-o,y=a-s,m=g*g+d*d,T=p*p+y*y;if(m=0&&C=0){f.push(o,s);return}var L=[],P=[];kt(e,r,n,o,.5,L),kt(t,i,a,s,.5,P),fn(L[0],P[0],L[1],P[1],L[2],P[2],L[3],P[3],f,h),fn(L[4],P[4],L[5],P[5],L[6],P[6],L[7],P[7],f,h)}function Hu(e,t){var r=sn(e),i=[];t=t||1;for(var n=0;n0)for(var h=0;hMath.abs(h),v=Vo([f,h],u?0:1,t),l=(u?s:h)/v.length,c=0;cn,o=Vo([i,n],a?0:1,t),s=a?"width":"height",f=a?"height":"width",h=a?"x":"y",u=a?"y":"x",v=e[s]/o.length,l=0;l1?null:new F(g*f+e,g*h+t)}function Nu(e,t,r){var i=new F;F.sub(i,r,t),i.normalize();var n=new F;F.sub(n,e,t);var a=n.dot(i);return a}function mr(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function $u(e,t,r){for(var i=e.length,n=[],a=0;ao?(h.x=u.x=s+a/2,h.y=f,u.y=f+o):(h.y=u.y=f+o/2,h.x=s,u.x=s+a),$u(t,h,u)}function Ye(e,t,r,i){if(r===1)i.push(t);else{var n=Math.floor(r/2),a=e(t);Ye(e,a[0],n,i),Ye(e,a[1],r-n,i)}return i}function Wu(e,t){for(var r=[],i=0;i0)for(var b=i/r,w=-i/2;w<=i/2;w+=b){for(var M=Math.sin(w),C=Math.cos(w),L=0,m=0;m0;h/=2){var u=0,v=0;(e&h)>0&&(u=1),(t&h)>0&&(v=1),s+=h*h*(3*u^v),v===0&&(u===1&&(e=h-1-e,t=h-1-t),f=e,e=t,t=f)}return s}function Xe(e){var t=1/0,r=1/0,i=-1/0,n=-1/0,a=xt(e,function(s){var f=s.getBoundingRect(),h=s.getComputedTransform(),u=f.x+f.width/2+(h?h[4]:0),v=f.y+f.height/2+(h?h[5]:0);return t=Math.min(u,t),r=Math.min(v,r),i=Math.max(u,i),n=Math.max(v,n),[u,v]}),o=xt(a,function(s,f){return{cp:s,z:Ku(s[0],s[1],t,r,i,n),path:e[f]}});return o.sort(function(s,f){return s.z-f.z}).map(function(s){return s.path})}function jo(e){return Xu(e.path,e.count)}function un(){return{fromIndividuals:[],toIndividuals:[],count:0}}function zv(e,t,r){var i=[];function n(b){for(var w=0;w=s)}}for(var v=this.__startIndex;v15)break}}x.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=d.__endIndex;else for(var P=c.dpr,R=0;R0&&t>n[0]){for(f=0;ft);f++);s=i[n[f]]}if(n.splice(f+1,0,t),i[t]=r,!r.virtual)if(s){var h=s.dom;h.nextSibling?o.insertBefore(r.dom,h.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n0?Re:0),this._needsManuallyCompositing),u.__builtin__||dn("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,r(f),a=u),n.__dirty&ot&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}r(f),this.eachBuiltinLayer(function(v,l){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,ft(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?Gr(i[t],r,!0):i[t]=r;for(var n=0;n Ray Template - - - + + + @@ -35,22 +35,22 @@ - + - + - - - - - - + + + + + + diff --git a/index.html.gz b/index.html.gz index b876ef89..f9348c5d 100644 Binary files a/index.html.gz and b/index.html.gz differ diff --git a/mockServer/mock-data.js b/mockServer/mock-data.js index 5416a2ab..13b5268b 100644 --- a/mockServer/mock-data.js +++ b/mockServer/mock-data.js @@ -4,7 +4,7 @@ var __export = (target, all) => { __defProp(target, name, { get: all[name], enumerable: true }); }; -// mock-data-1707458781691.js +// mock-data-1708501194449.js import { transformMockData } from "vite-plugin-mock-dev-server"; // mock/demo/person.mock.ts @@ -85,7 +85,7 @@ var getPersonList = defineMock({ } }); -// mock-data-1707458781691.js +// mock-data-1708501194449.js var exporters = [person_mock_exports]; var mockList = exporters.map((raw) => { let mockConfig; @@ -99,7 +99,7 @@ var mockList = exporters.map((raw) => { } return mockConfig; }); -var mock_data_1707458781691_default = transformMockData(mockList); +var mock_data_1708501194449_default = transformMockData(mockList); export { - mock_data_1707458781691_default as default + mock_data_1708501194449_default as default }; diff --git a/mockServer/mock-data.js.gz b/mockServer/mock-data.js.gz index d5a86d61..9cf40fb6 100644 Binary files a/mockServer/mock-data.js.gz and b/mockServer/mock-data.js.gz differ