2023-02-21 17:39:56 +01:00
|
|
|
var ML=Object.defineProperty;var AL=(e,t,r)=>t in e?ML(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var EL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ft=(e,t,r)=>(AL(e,typeof t!="symbol"?t+"":t,r),r);var Ree=EL((Or,kr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function mm(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}function At(e){if(ye(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=Ue(n)?IL(n):At(n);if(i)for(const a in i)t[a]=i[a]}return t}else{if(Ue(e))return e;if(Ke(e))return e}}const PL=/;(?![^(]*\))/g,LL=/:([^]+)/,DL=/\/\*.*?\*\//gs;function IL(e){const t={};return e.replace(DL,"").split(PL).forEach(r=>{if(r){const n=r.split(LL);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function de(e){let t="";if(Ue(e))t=e;else if(ye(e))for(let r=0;r<e.length;r++){const n=de(e[r]);n&&(t+=n+" ")}else if(Ke(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const RL="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",OL=mm(RL);function YS(e){return!!e||e===""}function kL(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=md(e[n],t[n]);return r}function md(e,t){if(e===t)return!0;let r=N0(e),n=N0(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=Zl(e),n=Zl(t),r||n)return e===t;if(r=ye(e),n=ye(t),r||n)return r&&n?kL(e,t):!1;if(r=Ke(e),n=Ke(t),r||n){if(!r||!n)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!md(e[o],t[o]))return!1}}return String(e)===String(t)}function qS(e,t){return e.findIndex(r=>md(r,t))}const Ae=e=>Ue(e)?e:e==null?"":ye(e)||Ke(e)&&(e.toString===XS||!Le(e.toString))?JSON.stringify(e,jS,2):String(e),jS=(e,t)=>t&&t.__v_isRef?jS(e,t.value):Qo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:_d(t)?{[`Set(${t.size})`]:[...t.values()]}:Ke(t)&&!ye(t)&&!ZS(t)?String(t):t,mt={},Zo=[],sr=()=>{},NL=()=>!1,BL=/^on[^a-z]/,yd=e=>BL.test(e),ym=e=>e.startsWith("onUpdate:"),Kt=Object.assign,_m=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},FL=Object.prototype.hasOwnProperty,ze=(e,t)=>FL.call(e,t),ye=Array.isArray,Qo=e=>Du(e)==="[object Map]",_d=e=>Du(e)==="[object Set]",N0=e=>Du(e)==="[object Date]",Le=e=>typeof e=="function",Ue=e=>typeof e=="string",Zl=e=>typeof e=="symbol",Ke=e=>e!==null&&typeof e=="object",KS=e=>Ke(e)&&Le(e.then)&&Le(e.catch),XS=Object.prototype.toString,Du=e=>XS.call(e),$L=e=>Du(e).slice(8,-1),ZS=e=>Du(e)==="[object Object]",bm=e=>Ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ic=mm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bd=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},HL=/-(\w)/g,Sn=bd(e=>e.replace(HL,(t,r)=>r?r.toUpperCase():"")),zL=/\B([A-Z])/g,Ps=bd(e=>e.replace(zL,"-$1").toLowerCase()),wd=bd(e=>e.charAt(0).toUpperCase()+e.slice(1)),ac=bd(e=>e?`on${wd(e)}`:""),Ql=(e,t)=>!Object.is(e,t),oc=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Rc=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},wm=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let B0;const WL=()=>B0||(B0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});le
|
2023-02-15 19:45:48 +01:00
|
|
|
* Checks if an event is supported in the current execution environment.
|
|
|
|
*
|
|
|
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
|
|
* `reset`, `load`, `error`, and `select`.
|
|
|
|
*
|
|
|
|
* Borrows from Modernizr.
|
|
|
|
*
|
|
|
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
|
|
* @param {?boolean} capture Check if the capture phase is supported.
|
|
|
|
* @return {boolean} True if the event is supported.
|
|
|
|
* @internal
|
|
|
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
2023-02-21 17:39:56 +01:00
|
|
|
*/const FH=function(e,t){if(e&&e.addEventListener){const r=function(n){const i=BH(n);t&&Reflect.apply(t,this,[n,i])};e.addEventListener("wheel",r,{passive:!0})}},$H={beforeMount(e,t){FH(e,t.value)}},_M={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Gd,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},bM={[Wd]:e=>Ue(e)||_r(e)||gi(e),change:e=>Ue(e)||_r(e)||gi(e)},HH=({model:e,isChecked:t})=>{const r=Re(Os,void 0),n=$(()=>{var a,o;const s=(a=r==null?void 0:r.max)==null?void 0:a.value,l=(o=r==null?void 0:r.min)==null?void 0:o.value;return!Vc(s)&&e.value.length>=s&&!t.value||!Vc(l)&&e.value.length<=l&&t.value});return{isDisabled:oy($(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},zH=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:i,isLabeledByFormItem:a})=>{const o=Re(Os,void 0),{formItem:s}=Ud(),{emit:l}=dt();function u(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function f(v,p){l("change",u(v),p)}function c(v){if(r.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){r.value||!n.value&&!i.value&&a.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await zt(),f(t.value,v)))}const h=$(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Ee(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:c,onClickRoot:d}},WH=e=>{const t=H(!1),{emit:r}=dt(),n=Re(Os,void 0),i=$(()=>Vc(n)===!1),a=H(!1);return{model:$({get(){var s,l;return i.value?(s=n==null?void 0:n.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;i.value&&ye(s)?(a.value=((l=n==null?void 0:n.max)==null?void 0:l.value)!==void 0&&s.length>(n==null?void 0:n.max.value),a.value===!1&&((u=n==null?void 0:n.changeEvent)==null||u.call(n,s))):(r(Wd,s),t.value=s)}}),isGroup:i,isLimitExceeded:a}},VH=(e,t,{model:r})=>{const n=Re(Os,void 0),i=H(!1),a=$(()=>{const u=r.value;return gi(u)?u:ye(u)?Ke(e.label)?u.map(Qe).some(f=>WF(f,e.label)):u.map(Qe).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=fo($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=fo($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=$(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:a,isFocused:i,checkboxSize:s,hasOwnLabel:l}},GH=(e,{model:t})=>{function r(){ye(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},wM=(e,t)=>{const{formItem:r}=Ud(),{model:n,isGroup:i,isLimitExceeded:a}=WH(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f}=VH(e,t,{model:n}),{isDisabled:c}=HH({model:n,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=$T(e,{formItemContext:r,disableIdGeneration:f,disableIdManagement:i}),{handleChange:v,onClickRoot:p}=zH(e,{model:n,isLimitExceeded:a,hasOwnLabel:f,isDisabled:c,isLabeledByFormItem:h});return GH(e,{model:n}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:c,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f,model:n,handleChange:v,onClickRoot:p}},UH=["tabindex","role","aria-checked"],YH=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],qH=["id","aria-hidden","disabled","value","name","tabindex"],jH=ue({name:"ElCheckbox"}),KH=ue({...jH,props:_M,emits:bM,setup(e){const t=e,r=Rd(),{inputId:n,isLabeledByFormItem:i,isChecked:a,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:f,handleChange:c,onClickRoot:d}=wM(t,r),h=Ne("checkbox"),v=$(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",a.value)]),p=$(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",a.value),h.is("indeterminate",t.i
|
2023-02-15 19:45:48 +01:00
|
|
|
(?:
|
|
|
|
(?:`+n+":){7}(?:"+n+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
|
|
(?:`+n+":){6}(?:"+r+"|:"+n+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
|
|
(?:`+n+":){5}(?::"+r+"|(?::"+n+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
|
|
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
|
|
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
|
|
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
|
|
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
|
|
(?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
|
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
2023-02-21 17:39:56 +01:00
|
|
|
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+r+"$)|(?:^"+i+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+i+"$"),l=function(b){return b&&b.exact?a:new RegExp("(?:"+t(b)+r+t(b)+")|(?:"+t(b)+i+t(b)+")","g")};l.v4=function(_){return _&&_.exact?o:new RegExp(""+t(_)+r+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+i+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",c=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+f+"(?:localhost|"+c+"|"+d+"|"+h+v+p+")"+g+m;return vf=new RegExp("(?:^"+y+"$)","i"),vf},Vb={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},gl={integer:function(t){return gl.number(t)&&parseInt(t,10)===t},float:function(t){return gl.number(t)&&!gl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!gl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Vb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Yz())},hex:function(t){return typeof t=="string"&&!!t.match(Vb.hex)}},qz=function(t,r,n,i,a){if(t.required&&r===void 0){TM(t,r,n,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?gl[s](r)||i.push(Rr(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Rr(a.messages.types[s],t.fullField,t.type))},jz=function(t,r,n,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=r,c=null,d=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(d?c="number":h?c="string":v&&(c="array"),!c)return!1;v&&(f=r.length),h&&(f=r.replace(u,"_").length),o?f!==t.len&&i.push(Rr(a.messages[c].len,t.fullField,t.len)):s&&!l&&f<t.min?i.push(Rr(a.messages[c].min,t.fullField,t.min)):l&&!s&&f>t.max?i.push(Rr(a.messages[c].max,t.fullField,t.max)):s&&l&&(f<t.min||f>t.max)&&i.push(Rr(a.messages[c].range,t.fullField,t.min,t.max))},To="enum",Kz=function(t,r,n,i,a){t[To]=Array.isArray(t[To])?t[To]:[],t[To].indexOf(r)===-1&&i.push(Rr(a.messages[To],t.fullField,t[To].join(", ")))},Xz=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},qe={required:TM,whitespace:Uz,type:qz,range:jz,enum:Kz,pattern:Xz},Zz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r,"string")&&!t.required)return n();qe.required(t,r,i,o,a,"string"),Bt(r,"string")||(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a),qe.pattern(t,r,i,o,a),t.whitespace===!0&&qe.whitespace(t,r,i,o,a))}n(o)},Qz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&qe.type(t,r,i,o,a)}n(o)},Jz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a))}n(o)},e6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.requir
|
2023-02-15 19:45:48 +01:00
|
|
|
* escape-html
|
|
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
|
|
* MIT Licensed
|
2023-02-21 17:39:56 +01:00
|
|
|
*/var r8=/["'&<>]/,n8=i8;function i8(e){var t=""+e,r=r8.exec(t);if(!r)return t;var n,i="",a=0,o=0;for(a=r.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=n}return o!==a?i+t.substring(o,a):i}const Vh=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},a8=function(e,t,r,n,i){if(!t&&!n&&(!i||Array.isArray(i)&&!i.length))return e;typeof r=="string"?r=r==="descending"?-1:1:r=r&&r<0?-1:1;const a=n?null:function(s,l){return i?(Array.isArray(i)||(i=[i]),i.map(u=>typeof u=="string"?lu(s,u):u(s,l,e))):(t!=="$key"&&Ke(s)&&"$value"in s&&(s=s.$value),[Ke(s)?lu(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,f=s.key.length;u<f;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:a?a(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+r}).map(s=>s.value)},OM=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},o8=function(e,t){let r=null;for(let n=0;n<e.columns.length;n++){const i=e.columns[n];if(i.columnKey===t){r=i;break}}return r||lo("ElTable",`No column matching with column-key: ${t}`),r},Yb=function(e,t,r){const n=(t.className||"").match(new RegExp(`${r}-table_[^\\s]+`,"gm"));return n?OM(e,n[0]):null},Ut=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const r=t.split(".");let n=e;for(const i of r)n=n[i];return`${n}`}else if(typeof t=="function")return t.call(null,e)},Ka=function(e,t){const r={};return(e||[]).forEach((n,i)=>{r[Ut(n,t)]={row:n,index:i}}),r};function s8(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(ze(t,n)){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function xy(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function kM(e){return e===""||e!==void 0&&(e=xy(e),Number.isNaN(e)&&(e=80)),e}function l8(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function u8(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Rl(e,t,r){let n=!1;const i=e.indexOf(t),a=i!==-1,o=s=>{s==="add"?e.push(t):e.splice(i,1),n=!0,ye(t.children)&&t.children.forEach(l=>{Rl(e,l,r??!a)})};return gi(r)?r&&!a?o("add"):!r&&a&&o("remove"):o(a?"remove":"add"),n}function f8(e,t,r="children",n="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function a(o,s,l){t(o,s,l),s.forEach(u=>{if(u[n]){t(u,null,l+1);return}const f=u[r];i(f)||a(u,f,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];i(s)||a(o,s,0)})}let ai;function c8(e,t,r,n){n=xT({enterable:!0,showArrow:!0},n);const{nextZIndex:i}=yy(),a=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function s(){const g=n.effect==="light",m=document.createElement("div");return m.className=[`${a}-popper`,g?"is-light":"is-dark",n.popperClass||""].join(" "),r=n8(r),m.innerHTML=r,m.style.zIndex=String(i()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${a}-popper__arrow`,g}function u(){f&&f.update()}ai==null||ai(),ai=()=>{try{f&&f.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",c),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",ai),ai=void 0}catch{}};let f=null,c=u,d=ai;n.enterable&&({onOpen:c,onClose:d}=eM({showAfter:n.showAfter,hideAfter:n.hideAfter,open:u,close:ai}));const h=s();h.onmouseenter=c,h.onmouseleave=d;const v=[];if(n.offset&&v.push({name:"offset",options:{offset:[0,n.offset]}}),n.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=n.popperOptions||{};return f=QT(t,h,{placement:n.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",c),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scr
|
2023-02-15 19:45:48 +01:00
|
|
|
* vue-router v4.1.6
|
|
|
|
* (c) 2022 Eduardo San Martin Morote
|
|
|
|
* @license MIT
|
2023-02-21 17:39:56 +01:00
|
|
|
*/const Wo=typeof window<"u";function PW(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const st=Object.assign;function Gh(e,t){const r={};for(const n in t){const i=t[n];r[n]=Tn(i)?i.map(e):e(i)}return r}const kl=()=>{},Tn=Array.isArray,LW=/\/$/,DW=e=>e.replace(LW,"");function Uh(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=kW(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function IW(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Xb(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function RW(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Ss(t.matched[n],r.matched[i])&&qM(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Ss(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qM(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!OW(e[r],t[r]))return!1;return!0}function OW(e,t){return Tn(e)?Zb(e,t):Tn(t)?Zb(t,e):e===t}function Zb(e,t){return Tn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function kW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let i=r.length-1,a,o;for(a=0;a<n.length;a++)if(o=n[a],o!==".")if(o==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var vu;(function(e){e.pop="pop",e.push="push"})(vu||(vu={}));var Nl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Nl||(Nl={}));function NW(e){if(!e)if(Wo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),DW(e)}const BW=/^[^#]+#/;function FW(e,t){return e.replace(BW,"#")+t}function $W(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const jd=()=>({left:window.pageXOffset,top:window.pageYOffset});function HW(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=$W(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Qb(e,t){return(history.state?history.state.position-t:-1)+e}const og=new Map;function zW(e,t){og.set(e,t)}function WW(e){const t=og.get(e);return og.delete(e),t}let VW=()=>location.protocol+"//"+location.host;function jM(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),Xb(l,"")}return Xb(r,e)+n+i}function GW(e,t,r,n){let i=[],a=[],o=null;const s=({state:d})=>{const h=jM(e,location),v=r.value,p=t.value;let g=0;if(d){if(r.value=h,t.value=d,o&&o===v){o=null;return}g=p?d.position-p.position:0}else n(h);i.forEach(m=>{m(r.value,v,{delta:g,type:vu.pop,direction:g?g>0?Nl.forward:Nl.back:Nl.unknown})})};function l(){o=r.value}function u(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return a.push(h),h}function f(){const{history:d}=window;d.state&&d.replaceState(st({},d.state,{scroll:jd()}),"")}function c(){for(const d of a)d();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:u,destroy:c}}function Jb(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?jd():null}}function UW(e){const{history:t,location:r}=window,n={value:jM(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=e.indexOf("#"
|
|
|
|
`:arguments[1];return c.replace(/\<br\s*\/?\>/g,d)},capitalize:function(c){var d=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return""+c.charAt(0).toUpperCase()+(d?c.slice(1).toLowerCase():c.slice(1))},capitalizeAll:function(c){return c.replace(/(?:^|\s)\S/g,function(d){return d.toUpperCase()})},titleCase:function(c){var d=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,h=/\S+[A-Z]+\S*/,v=/\s+/,p=/-/,g=void 0;return g=function(y){for(var _=arguments.length<=1||arguments[1]===void 0?!1:arguments[1],b=arguments.length<=2||arguments[2]===void 0?!0:arguments[2],x=[],w=y.split(_?p:v),S=0;S<w.length;++S){var C=w[S];if(C.indexOf("-")!==-1){x.push(g(C,!0,S===0||S===w.length-1));continue}if(b&&(S===0||S===w.length-1)){x.push(h.test(C)?C:u.capitalize(C));continue}h.test(C)?x.push(C):d.test(C)?x.push(C.toLowerCase()):x.push(u.capitalize(C))}return x.join(_?"-":" ")},g(c)},titlecase:function(){return u.titleCase.apply(u,arguments)}};return u})})(RV,ea);/*! *****************************************************************************
|
2023-02-15 19:45:48 +01:00
|
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
purpose with or without fee is hereby granted.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
PERFORMANCE OF THIS SOFTWARE.
|
2023-02-21 17:39:56 +01:00
|
|
|
***************************************************************************** */var ug=function(e,t){return ug=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ug(e,t)};function pe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ug(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var OV=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),kV=function(){function e(){this.browser=new OV,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}(),$a=new kV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?($a.wxa=!0,$a.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?$a.worker=!0:typeof navigator>"u"?($a.node=!0,$a.svgSupported=!0):NV(navigator.userAgent,$a);function NV(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[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 Ve=$a;var Ey=12,BV="sans-serif",co=Ey+"px "+BV,FV=20,$V=100,HV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function zV(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-FV)/$V;t[n]=i}return t}var WV=zV(HV),bo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=bo.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||co),e.measureText(r);r=r||"",n=n||co;var a=/(\d+)px/.exec(n),o=a&&+a[1]||Ey,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=WV[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},iA=ta(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),aA=ta(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Wu=Object.prototype.toString,Kd=Array.prototype,VV=Kd.forEach,GV=Kd.filter,Py=Kd.slice,UV=Kd.map,d1=function(){}.constructor,pf=d1?d1.prototype:null,Ly="__proto__",YV=2311;function oA(){return YV++}function Dy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Ze(e){if(e==null||typeof e!="object")return e;var t=e,r=Wu.call(e);if(r==="[object Array]"){if(!Fl(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Ze(e[n])}}else if(aA[r]){if(!Fl(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!iA[r]&&!Fl(e)&&!qc(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Ly&&(t[o]=Ze(e[o]))}return t}function at(e,t,r){if(!De(t)||!De(e))return r?Ze(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Ly){var i=e[n],a=t[n];De(a)&&De(i)&&!ge(a)&&!ge(i)&&!qc(a)&&!qc(i)&&!h1(a)&&!h1(i)&&!Fl(a)&&!Fl(i)?at(i,a,r):(r||!(n in e))&&(e[n]=Ze(t[n
|
|
|
|
`),a=i.length;if(a===1)return H1(i[0],t,r,n);for(var o=new tt(0,0,0,0),s=0;s<i.length;s++){var l=H1(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function _l(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Go(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function $y(e){return Nr("国",e)}function ra(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function ed(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=ra(n[0],r.width),u+=ra(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var cv="__zr_normal__",dv=mu.concat(["ignore"]),hU=ta(mu,function(e,t){return e[t]=!0,e},{ignore:!1}),Lo={},vU=new tt(0,0,0,0),Hy=function(){function e(t){this.id=oA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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 n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=vU;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lo,n,f):ed(Lo,n,f),a.x=Lo.x,a.y=Lo.y,o=Lo.align,s=Lo.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,h=void 0;c==="center"?(d=f.width*.5,h=f.height*.5):(d=ra(c[0],f.width),h=ra(c[1],f.height)),u=!0,a.originX=-a.x+d+(i?0:f.x),a.originY=-a.y+h+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ir,l&&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()?Ag:Mg},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ro(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ny(n,"rgba")},e.prototype.traverse=func
|
2023-02-15 19:45:48 +01:00
|
|
|
* ZRender, a high performance 2d drawing library.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2013, Baidu Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* LICENSE
|
|
|
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
2023-02-21 17:39:56 +01:00
|
|
|
*/var Tc={},kA={};function _U(e){delete kA[e]}function bU(e){if(!e)return!1;if(typeof e=="string")return Qc(e,1)<Tg;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Qc(t[i].color,1);return r/=n,r<Tg}return!1}var wU=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new BG,o=n.renderer||"canvas";Tc[o]||(o=xt(Tc)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Tc[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Ve.node&&!Ve.worker&&!l?new uU(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?Ve.touchEventsSupported:!!f,d=44,h;c&&(h=je(n.pointerSize,d)),this.handler=new IG(a,s,u,s.root,h),this.animation=new tU({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=bU(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=Ko();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Ko();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(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,n){return this.handler.on(t,r,n),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<t.length;r++)t[r]instanceof sn&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,_U(this.id)},e}();function z1(e,t){var r=new wU(oA(),e,t);return kA[r.id]=r,r}function xU(e,t){Tc[e]=t}var W1=1e-4,NA=20;function SU(e){return e.replace(/^\s+|\s+$/g,"")}function Eg(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function pt(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"
|
|
|
|
`);i=qA(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=jA(a[o],i);return a.join(`
|
|
|
|
`)}function qA(e,t,r,n){n=n||{};var i=oe({},n);i.font=t,r=je(r,"..."),i.maxIterations=je(n.maxIterations,2);var a=i.minChar=je(n.minChar,0);i.cnCharWidth=Nr("国",t);var o=i.ascCharWidth=Nr("a",t);i.placeholder=je(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=Nr(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function jA(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Nr(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?a9(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Nr(e,n)}return e===""&&(e=t.placeholder),e}function a9(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function o9(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=$y(i),s=je(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,c;f!=null&&(r==="break"||r==="breakAll")?c=e?KA(e,t.font,f,r==="breakAll",0).lines:[]:c=e?e.split(`
|
|
|
|
`):[];var d=c.length*s,h=je(t.height,d);if(d>h&&u){var v=Math.floor(h/s);c=c.slice(0,v)}if(e&&a&&f!=null)for(var p=qA(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<c.length;g++)c[g]=jA(c[g],p);for(var m=h,y=0,g=0;g<c.length;g++)y=Math.max(Nr(c[g],i),y);f==null&&(f=y);var _=y;return n&&(m+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:c,height:h,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:d,width:f}}var s9=function(){function e(){}return e}(),q1=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),l9=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function u9(e,t){var r=new l9;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=gv.lastIndex=0,l;(l=gv.exec(e))!=null;){var u=l.index;u>s&&mv(r,e.substring(s,u),t,o),mv(r,l[2],t,o,l[1]),s=gv.lastIndex}s<e.length&&mv(r,e.substring(s,e.length),t,o);var f=[],c=0,d=0,h=t.padding,v=a==="truncate",p=t.lineOverflow==="truncate";function g(B,N,U){B.width=N,B.lineHeight=U,c+=U,d=Math.max(d,N)}e:for(var m=0;m<r.lines.length;m++){for(var y=r.lines[m],_=0,b=0,x=0;x<y.tokens.length;x++){var w=y.tokens[x],S=w.styleName&&t.rich[w.styleName]||{},C=w.textPadding=S.padding,T=C?C[1]+C[3]:0,E=w.font=S.font||t.font;w.contentHeight=$y(E);var A=je(S.height,w.contentHeight);if(w.innerHeight=A,C&&(A+=C[0]+C[2]),w.height=A,w.lineHeight=Bl(S.lineHeight,t.lineHeight,A),w.align=S&&S.align||t.align,w.verticalAlign=S&&S.verticalAlign||"middle",p&&i!=null&&c+w.lineHeight>i){x>0?(y.tokens=y.tokens.slice(0,x),g(y,b,_),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var M=S.width,D=M==null||M==="auto";if(typeof M=="string"&&M.charAt(M.length-1)==="%")w.percentWidth=M,f.push(w),w.contentWidth=Nr(w.text,E);else{if(D){var O=S.backgroundColor,k=O&&O.image;k&&(k=n9(k),th(k)&&(w.width=Math.max(w.width,k.width*A/k.height)))}var F=v&&n!=null?n-b:null;F!=null&&F<w.width?!D||F<T?(w.text="",w.width=w.contentWidth=0):(w.text=i9(w.text,F-T,E,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=Nr(w.text,E)):w.contentWidth=Nr(w.text,E)}w.width+=T,b+=w.width,S&&(_=Math.max(_,w.lineHeight))}g(y,b,_)}r.outerWidth=r.width=je(n,d),r.outerHeight=r.height=je(i,c),r.contentHeight=c,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var m=0;m<f.length;m++){var w=f[m],j=w.percentWidth;w.width=parseInt(j,10)/100*r.width}return r}function mv(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=ra(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(f=t.split(`
|
|
|
|
`),u=!0),n.accumWidth=v}else{var p=KA(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}else f=t.split(`
|
|
|
|
`);for(var g=0;g<f.length;g++){var m=f[g],y=new s9;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=c?c[g]:Nr(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new q1)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=y:(m||!b||a)&&_.push(y)}else s.push(new q1([y]))}}function f9(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var c9=ta(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function d9(e){return f9(e)?!!c9[e]:!0}function KA(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<e.length;c++){var d=e.charAt(c);if(d===`
|
|
|
|
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var h=Nr(d,t),v=n?!1:!d9(d);if(a.length?f+h>r:i+f+h>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=d,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=d,f=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}f+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Dg="__zr_style_"+Math.round(Math.random()*10),no={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},rh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};no[Dg]=!0;var j1=["z","z2","invisible"],h9=["invisible"],v9=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=xt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&p9(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new tt(0,0,0,0)),n?tt.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new tt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:oe(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ml,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ml)},t.prototype.styleUpdated=function(){this.__dirty&=~ml},t.prototype.createStyle=function(r){return Zd(no,r)},t.prototype.useStyle=function(r){r[Dg]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Dg]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,j1)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;
|
2023-02-15 19:45:48 +01:00
|
|
|
`,`
|
|
|
|
|
|
|
|
`,`
|
|
|
|
|
|
|
|
|
2023-02-21 17:39:56 +01:00
|
|
|
`];function Mu(e,t){return t.type=e,t}function qg(e){return e.type==="section"}function PE(e){return qg(e)?Gq:Uq}function LE(e){if(qg(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return R(e.blocks,function(i){var a=LE(i);a>=t&&(t=a+ +(n&&(!a||qg(i)&&!i.noHeader)))}),t}return 0}function Gq(e,t,r,n){var i=t.noHeader,a=Yq(LE(t)),o=[],s=t.blocks||[];yi(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ts(u,l)){var f=new Eq(u[l],null);s.sort(function(v,p){return f.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(v,p){var g=t.valueFormatter,m=PE(v)(g?oe(oe({},e),{valueFormatter:g}):e,v,p>0?a.html:0,n);m!=null&&o.push(m)});var c=e.renderMode==="richText"?o.join(a.richText):jg(o.join(""),i?r:a.html);if(i)return c;var d=Gg(t.header,"ordinal",e.useUTC),h=EE(n,e.renderMode).nameStyle;return e.renderMode==="richText"?DE(e,d,h)+a.richText+c:jg('<div style="'+h+";"+AE+';">'+Kr(d)+"</div>"+c,r)}function Uq(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(b){return b=ge(b)?b:[b],Oe(b,function(x,w){return Gg(x,ge(h)?h[w]:h,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":Gg(l,"ordinal",u),h=t.valueType,v=o?[]:f(t.value),p=!s||!a,g=!s&&a,m=EE(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":DE(e,d,y))+(o?"":Kq(e,v,p,g,_)):jg((s?"":c)+(a?"":qq(d,!s,y))+(o?"":jq(v,p,g,_)),r)}}function ax(e,t,r,n,i,a){if(e){var o=PE(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Yq(e){return{html:Wq[e],richText:Vq[e]}}function jg(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+AE+';">'+e+r+"</div>"}function qq(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Kr(e)+"</span>"}function jq(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ge(e)?e:[e],'<span style="'+a+";"+n+'">'+Oe(e,function(o){return Kr(o)}).join(" ")+"</span>"}function DE(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Kq(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ge(t)?t.join(" "):t,a)}function Xq(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Su(n)}function IE(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var zv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=$A()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=N7({color:r,type:t,renderMode:n,markerId:i});return Te(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ge(r)?R(r,function(a){return oe(n,a)}):oe(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function Zq(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=ge(s),u=Xq(t,r),f,c,d,h;if(o>1||l&&!o){var v=Qq(s,t,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=Es(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=Wy(t),m=g&&t.name||"",y=i.getName(r),_=n?m:y;return Mu("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Mu("nameValue",{markerType:"item",markerColor:u,name:_,noName:!zn(_),value:f,valueType:c})].concat(d||[])})}function Qq(e,t,r,n,i){var a=t.getData(),o=ta(e,function(c,d,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(c){f(Es(a,r,c),c)}):R(e,f);function f(c,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Mu("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,v
|
2023-02-15 19:45:48 +01:00
|
|
|
|
2023-02-21 17:39:56 +01:00
|
|
|
`:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,d=u.getData(c),h=this._renderMode,v=r.positionDefault,p=hl([d.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new zv;m.marker=y.makeTooltipMarker("item",Su(m.color),h);var _=ex(u.formatTooltip(f,!1,c)),b=p.get("order"),x=p.get("valueFormatter"),w=_.frag,S=w?ax(x?oe({valueFormatter:x},w):w,y,h,b,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,S,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:d.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ut(n),o=a.tooltipConfig,s=o.option||{};if(Te(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=r.positionDefault,d=hl(u,this._tooltipModel,c?{position:c}:null),h=d.get("content"),v=Math.random()+"",p=new zv;this._showOrMove(d,function(){var g=Ze(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(d)if(Te(d)){var g=r.ecModel.get("useUTC"),m=ge(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=sh(m.axisValue,h,g)),h=oE(h,i,!0)}else if(We(d)){var _=_t(function(b,x){b===this._ticket&&(c.setContent(x,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=d(i,a,_)}else h=d;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ge(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ge(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),We(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),ge(n))i=pt(n[0],u),a=pt(n[1],f);else if(De(n)){var p=n;p.width=c[0],p.height=c[1];var g=Ms(p,{width:u,height:f});i=g.x,a=g.y,d=null,h=null}else if(Te(n)&&l){var m=VJ(n,v,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=zJ(i,a,o,u,f,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=zS(d)?c[0]/2:d==="right"?c[0]:0),h&&(a-=zS(h)?c[1]/2:h==="bottom"?c[1]:0),vL(r)){var m=WJ(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&R(u,function(d,h){var v=c[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&R(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&R(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Ve.node||!n.getDom()||(Xg(this,"_updatePosition"),
|
|
|
|
`)){var g=new nc;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),x=y.getVisual("style"),w=this._createItem(m,p,v,h,n,r,_,x,b,c,a);w.on("click",Ho(WS,p,null,a,d)).on("mouseover",Ho(pm,m.name,null,a,d)).on("mouseout",Ho(gm,m.name,null,a,d)),f.set(p,!0)}else i.eachRawSeries(function(S){if(!f.get(p)&&S.legendVisualProvider){var C=S.legendVisualProvider;if(!C.containName(p))return;var T=C.indexOfName(p),E=C.getItemVisual(T,"style"),A=C.getItemVisual(T,"legendIcon"),M=ro(E.fill);M&&M[3]===0&&(M[3]=.2,E=oe(oe({},E),{fill:Ny(M,"rgba")}));var D=this._createItem(S,p,v,h,n,r,{},E,A,c,a);D.on("click",Ho(WS,null,p,a,d)).on("mouseover",Ho(pm,null,p,a,d)).on("mouseout",Ho(gm,null,p,a,d)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();vm(r,function(u){var f=u.type,c=new fr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);i0(c,{normal:d,emphasis:h},{defaultText:u.title}),Fg(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,d){var h=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=JJ(f,a,l,u,h,g,d),x=new nc,w=a.getModel("textStyle");if(We(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var S=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;x.add(eee({itemWidth:v,itemHeight:p,icon:f,iconRotate:S,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,T=s,E=o.get("formatter"),A=n;Te(E)&&E?A=E.replace("{name}",n??""):We(E)&&(A=E(n));var M=a.get("inactiveColor");x.add(new fr({style:na(w,{text:A,x:C,y:p/2,fill:g?w.getTextColor():M,align:T,verticalAlign:"middle"})}));var D=new Nt({shape:x.getBoundingRect(),invisible:!0}),O=a.getModel("tooltip");return O.get("show")&&r0({el:D,componentModel:o,itemName:n,itemTooltipOption:O.option}),x.add(D),x.eachChild(function(k){k.silent=!0}),D.silent=!c,this.getContentGroup().add(x),Fg(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Yl(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Yl("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=f[g]+v:c[p]+=d[g]+v,h[1-p]+=f[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+v+d[g],_[m]=Math.max(f[m],d[m]),_[y]=Math.min(0,d[y]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(bi);function JJ(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),vm(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:tm(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.
|
|
|
|
`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function ree(e){e.registerAction("legendToggleSelect","legendselectchanged",Dt(vl,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Dt(vl,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Dt(vl,"inverseSelect")),e.registerAction("legendSelect","legendselected",Dt(vl,"select")),e.registerAction("legendUnSelect","legendunselected",Dt(vl,"unSelect"))}function bL(e){e.registerComponentModel(hm),e.registerComponentView(_L),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,tee),e.registerSubTypeDefaulter("legend",function(){return"plain"}),ree(e)}var nee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=hh(r);e.prototype.init.call(this,r,n,i),VS(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),VS(this,this.option,r)},t.type="legend.scroll",t.defaultOption=q2(hm.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(hm);function VS(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,As(t,r,{type:"box",ignoreSize:!!i})}const iee=nee;var GS=sn,dp=["width","height"],hp=["x","y"],aee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new GS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new GS)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),d=ge(c)?c:[c,c];v("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new fr({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",y=t0(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:_t(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=p,f.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=dp[u],c=hp[u],d=dp[1-u],h=hp[1-u];o&&Yl("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Ze(i);o&&(m[f]=i[f]-p[f]-v);var y=this._layoutContentAndController(r,a,m,u,f,d,h,c);if(o){if(s==="end")g[u]+=y[f]+v;else{var _=p[f]+v;g[u]-=_,y[c]-=_}y[f]+=p[f]+v,g[1-u]+=y[h]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;Yl(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Yl("horizontal",d,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var m=[0,0],y=[-v.x,-v.y],_=je(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[o]=p?i[o]:h[o],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0
|