6006 lines
2.6 MiB
6006 lines
2.6 MiB
var Zse=Object.defineProperty;var l5=Object.getOwnPropertySymbols;var Jse=Object.prototype.hasOwnProperty,ele=Object.prototype.propertyIsEnumerable;var Nn=Math.pow,u5=(e,t,r)=>t in e?Zse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tB=(e,t)=>{for(var r in t||(t={}))Jse.call(t,r)&&u5(e,r,t[r]);if(l5)for(var r of l5(t))ele.call(t,r)&&u5(e,r,t[r]);return e};var rB=(e,t,r)=>new Promise((n,a)=>{var i=l=>{try{s(r.next(l))}catch(u){a(u)}},o=l=>{try{s(r.throw(l))}catch(u){a(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,o);s((r=r.apply(e,t)).next())});const tle=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerpolicy&&(i.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?i.credentials="include":a.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}};tle();function MC(e,t){const r=Object.create(null),n=e.split(",");for(let a=0;a<n.length;a++)r[n[a]]=!0;return t?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const rle="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",nle=MC(rle),ale="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ile=MC(ale);function r9(e){return!!e||e===""}function rs(e){if(Pt(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],a=yn(n)?lle(n):rs(n);if(a)for(const i in a)t[i]=a[i]}return t}else{if(yn(e))return e;if(Rn(e))return e}}const ole=/;(?![^(]*\))/g,sle=/:(.+)/;function lle(e){const t={};return e.split(ole).forEach(r=>{if(r){const n=r.split(sle);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function eA(e){let t="";if(yn(e))t=e;else if(Pt(e))for(let r=0;r<e.length;r++){const n=eA(e[r]);n&&(t+=n+" ")}else if(Rn(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function ule(e){if(!e)return null;let{class:t,style:r}=e;return t&&!yn(t)&&(e.class=eA(t)),r&&(e.style=rs(r)),e}function cle(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=wc(e[n],t[n]);return r}function wc(e,t){if(e===t)return!0;let r=c5(e),n=c5(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=I0(e),n=I0(t),r||n)return e===t;if(r=Pt(e),n=Pt(t),r||n)return r&&n?cle(e,t):!1;if(r=Rn(e),n=Rn(t),r||n){if(!r||!n)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!wc(e[o],t[o]))return!1}}return String(e)===String(t)}function kC(e,t){return e.findIndex(r=>wc(r,t))}const yM=e=>yn(e)?e:e==null?"":Pt(e)||Rn(e)&&(e.toString===a9||!er(e.toString))?JSON.stringify(e,n9,2):String(e),n9=(e,t)=>t&&t.__v_isRef?n9(e,t.value):Hh(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,a])=>(r[`${n} =>`]=a,r),{})}:tA(t)?{[`Set(${t.size})`]:[...t.values()]}:Rn(t)&&!Pt(t)&&!i9(t)?String(t):t,Vr={},Uh=[],Zo=()=>{},dle=()=>!1,fle=/^on[^a-z]/,Pm=e=>fle.test(e),bM=e=>e.startsWith("onUpdate:"),In=Object.assign,xM=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Ale=Object.prototype.hasOwnProperty,Ir=(e,t)=>Ale.call(e,t),Pt=Array.isArray,Hh=e=>Lm(e)==="[object Map]",tA=e=>Lm(e)==="[object Set]",c5=e=>Lm(e)==="[object Date]",er=e=>typeof e=="function",yn=e=>typeof e=="string",I0=e=>typeof e=="symbol",Rn=e=>e!==null&&typeof e=="object",wM=e=>Rn(e)&&er(e.then)&&er(e.catch),a9=Object.prototype.toString,Lm=e=>a9.call(e),hle=e=>Lm(e).slice(8,-1),i9=e=>Lm(e)==="[object Object]",CM=e=>yn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zg=MC(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),PC=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},vle=/-(\w)/g,Qi=PC(e=>e.replace(vle,(t,r)=>r?r.toUpperCase():"")),ple=/\B([A-Z])/g,Hs=PC(e=>e.replace(ple,"-$1").toLowerCase()),Om=PC(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ng=PC(e=>e?`on${Om(e)}`:""),rv=(e,t)=>!Object.is(e,t),zh=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Lx=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Cc=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let d5;const gle=()=>d5||(d5=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Ii;class SM{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Ii&&(this.parent=Ii,this.index=(Ii.scopes||(Ii.scopes=[])).push(this)-1)}run(t){if(this.active){const r=Ii;try{return Ii=this,t()}finally{Ii=r}}}on(){Ii=this}off(){Ii=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.active=!1}}}function _M(e){return new SM(e)}function o9(e,t=Ii){t&&t.active&&t.effects.push(e)}function mle(){return Ii}function yle(e){Ii&&Ii.cleanups.push(e)}const BM=e=>{const t=new Set(e);return t.w=0,t.n=0,t},s9=e=>(e.w&Sc)>0,l9=e=>(e.n&Sc)>0,ble=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Sc},xle=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const a=t[n];s9(a)&&!l9(a)?a.delete(e):t[r++]=a,a.w&=~Sc,a.n&=~Sc}t.length=r}},eI=new WeakMap;let Ag=0,Sc=1;const tI=30;let jo;const xf=Symbol(""),rI=Symbol("");class $m{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,o9(this,n)}run(){if(!this.active)return this.fn();let t=jo,r=sc;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=jo,jo=this,sc=!0,Sc=1<<++Ag,Ag<=tI?ble(this):f5(this),this.fn()}finally{Ag<=tI&&xle(this),Sc=1<<--Ag,jo=this.parent,sc=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){jo===this?this.deferStop=!0:this.active&&(f5(this),this.onStop&&this.onStop(),this.active=!1)}}function f5(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}function wle(e,t){e.effect&&(e=e.effect.fn);const r=new $m(e);t&&(In(r,t),t.scope&&o9(r,t.scope)),(!t||!t.lazy)&&r.run();const n=r.run.bind(r);return n.effect=r,n}function Cle(e){e.effect.stop()}let sc=!0;const u9=[];function rA(){u9.push(sc),sc=!1}function nA(){const e=u9.pop();sc=e===void 0?!0:e}function Vi(e,t,r){if(sc&&jo){let n=eI.get(e);n||eI.set(e,n=new Map);let a=n.get(r);a||n.set(r,a=BM()),c9(a)}}function c9(e,t){let r=!1;Ag<=tI?l9(e)||(e.n|=Sc,r=!s9(e)):r=!e.has(jo),r&&(e.add(jo),jo.deps.push(e))}function Wl(e,t,r,n,a,i){const o=eI.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&Pt(e))o.forEach((l,u)=>{(u==="length"||u>=n)&&s.push(l)});else switch(r!==void 0&&s.push(o.get(r)),t){case"add":Pt(e)?CM(r)&&s.push(o.get("length")):(s.push(o.get(xf)),Hh(e)&&s.push(o.get(rI)));break;case"delete":Pt(e)||(s.push(o.get(xf)),Hh(e)&&s.push(o.get(rI)));break;case"set":Hh(e)&&s.push(o.get(xf));break}if(s.length===1)s[0]&&nI(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);nI(BM(l))}}function nI(e,t){const r=Pt(e)?e:[...e];for(const n of r)n.computed&&A5(n);for(const n of r)n.computed||A5(n)}function A5(e,t){(e!==jo||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Sle=MC("__proto__,__v_isRef,__isVue"),d9=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(I0)),_le=LC(),Ble=LC(!1,!0),Tle=LC(!0),Ele=LC(!0,!0),h5=Ile();function Ile(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=_r(this);for(let i=0,o=this.length;i<o;i++)Vi(n,"get",i+"");const a=n[t](...r);return a===-1||a===!1?n[t](...r.map(_r)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){rA();const n=_r(this)[t].apply(this,r);return nA(),n}}),e}function LC(e=!1,t=!1){return function(n,a,i){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&i===(e?t?m9:g9:t?p9:v9).get(n))return n;const o=Pt(n);if(!e&&o&&Ir(h5,a))return Reflect.get(h5,a,i);const s=Reflect.get(n,a,i);return(I0(a)?d9.has(a):Sle(a))||(e||Vi(n,"get",a),t)?s:mn(s)?o&&CM(a)?s:s.value:Rn(s)?e?ns(s):Bo(s):s}}const Rle=f9(),Dle=f9(!0);function f9(e=!1){return function(r,n,a,i){let o=r[n];if(nv(o)&&mn(o)&&!mn(a))return!1;if(!e&&!nv(a)&&(Ox(a)||(a=_r(a),o=_r(o)),!Pt(r)&&mn(o)&&!mn(a)))return o.value=a,!0;const s=Pt(r)&&CM(n)?Number(n)<r.length:Ir(r,n),l=Reflect.set(r,n,a,i);return r===_r(i)&&(s?rv(a,o)&&Wl(r,"set",n,a):Wl(r,"add",n,a)),l}}function Fle(e,t){const r=Ir(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&r&&Wl(e,"delete",t,void 0),n}function Mle(e,t){const r=Reflect.has(e,t);return(!I0(t)||!d9.has(t))&&Vi(e,"has",t),r}function kle(e){return Vi(e,"iterate",Pt(e)?"length":xf),Reflect.ownKeys(e)}const A9={get:_le,set:Rle,deleteProperty:Fle,has:Mle,ownKeys:kle},h9={get:Tle,set(e,t){return!0},deleteProperty(e,t){return!0}},Ple=In({},A9,{get:Ble,set:Dle}),Lle=In({},h9,{get:Ele}),TM=e=>e,OC=e=>Reflect.getPrototypeOf(e);function Py(e,t,r=!1,n=!1){e=e.__v_raw;const a=_r(e),i=_r(t);r||(t!==i&&Vi(a,"get",t),Vi(a,"get",i));const{has:o}=OC(a),s=n?TM:r?IM:R0;if(o.call(a,t))return s(e.get(t));if(o.call(a,i))return s(e.get(i));e!==a&&e.get(t)}function Ly(e,t=!1){const r=this.__v_raw,n=_r(r),a=_r(e);return t||(e!==a&&Vi(n,"has",e),Vi(n,"has",a)),e===a?r.has(e):r.has(e)||r.has(a)}function Oy(e,t=!1){return e=e.__v_raw,!t&&Vi(_r(e),"iterate",xf),Reflect.get(e,"size",e)}function v5(e){e=_r(e);const t=_r(this);return OC(t).has.call(t,e)||(t.add(e),Wl(t,"add",e,e)),this}function p5(e,t){t=_r(t);const r=_r(this),{has:n,get:a}=OC(r);let i=n.call(r,e);i||(e=_r(e),i=n.call(r,e));const o=a.call(r,e);return r.set(e,t),i?rv(t,o)&&Wl(r,"set",e,t):Wl(r,"add",e,t),this}function g5(e){const t=_r(this),{has:r,get:n}=OC(t);let a=r.call(t,e);a||(e=_r(e),a=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return a&&Wl(t,"delete",e,void 0),i}function m5(){const e=_r(this),t=e.size!==0,r=e.clear();return t&&Wl(e,"clear",void 0,void 0),r}function $y(e,t){return function(n,a){const i=this,o=i.__v_raw,s=_r(o),l=t?TM:e?IM:R0;return!e&&Vi(s,"iterate",xf),o.forEach((u,c)=>n.call(a,l(u),l(c),i))}}function Uy(e,t,r){return function(...n){const a=this.__v_raw,i=_r(a),o=Hh(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...n),c=r?TM:t?IM:R0;return!t&&Vi(i,"iterate",l?rI:xf),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:s?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function gu(e){return function(...t){return e==="delete"?!1:this}}function Ole(){const e={get(i){return Py(this,i)},get size(){return Oy(this)},has:Ly,add:v5,set:p5,delete:g5,clear:m5,forEach:$y(!1,!1)},t={get(i){return Py(this,i,!1,!0)},get size(){return Oy(this)},has:Ly,add:v5,set:p5,delete:g5,clear:m5,forEach:$y(!1,!0)},r={get(i){return Py(this,i,!0)},get size(){return Oy(this,!0)},has(i){return Ly.call(this,i,!0)},add:gu("add"),set:gu("set"),delete:gu("delete"),clear:gu("clear"),forEach:$y(!0,!1)},n={get(i){return Py(this,i,!0,!0)},get size(){return Oy(this,!0)},has(i){return Ly.call(this,i,!0)},add:gu("add"),set:gu("set"),delete:gu("delete"),clear:gu("clear"),forEach:$y(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Uy(i,!1,!1),r[i]=Uy(i,!0,!1),t[i]=Uy(i,!1,!0),n[i]=Uy(i,!0,!0)}),[e,r,t,n]}const[$le,Ule,Hle,zle]=Ole();function $C(e,t){const r=t?e?zle:Hle:e?Ule:$le;return(n,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?n:Reflect.get(Ir(r,a)&&a in n?r:n,a,i)}const Nle={get:$C(!1,!1)},Qle={get:$C(!1,!0)},Vle={get:$C(!0,!1)},Wle={get:$C(!0,!0)},v9=new WeakMap,p9=new WeakMap,g9=new WeakMap,m9=new WeakMap;function Gle(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kle(e){return e.__v_skip||!Object.isExtensible(e)?0:Gle(hle(e))}function Bo(e){return nv(e)?e:UC(e,!1,A9,Nle,v9)}function y9(e){return UC(e,!1,Ple,Qle,p9)}function ns(e){return UC(e,!0,h9,Vle,g9)}function jle(e){return UC(e,!0,Lle,Wle,m9)}function UC(e,t,r,n,a){if(!Rn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=Kle(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return a.set(e,s),s}function Ol(e){return nv(e)?Ol(e.__v_raw):!!(e&&e.__v_isReactive)}function nv(e){return!!(e&&e.__v_isReadonly)}function Ox(e){return!!(e&&e.__v_isShallow)}function EM(e){return Ol(e)||nv(e)}function _r(e){const t=e&&e.__v_raw;return t?_r(t):e}function Gl(e){return Lx(e,"__v_skip",!0),e}const R0=e=>Rn(e)?Bo(e):e,IM=e=>Rn(e)?ns(e):e;function RM(e){sc&&jo&&(e=_r(e),c9(e.dep||(e.dep=BM())))}function HC(e,t){e=_r(e),e.dep&&nI(e.dep)}function mn(e){return!!(e&&e.__v_isRef===!0)}function X(e){return x9(e,!1)}function b9(e){return x9(e,!0)}function x9(e,t){return mn(e)?e:new Yle(e,t)}class Yle{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:_r(t),this._value=r?t:R0(t)}get value(){return RM(this),this._value}set value(t){t=this.__v_isShallow?t:_r(t),rv(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:R0(t),HC(this))}}function Xle(e){HC(e)}function $n(e){return mn(e)?e.value:e}const qle={get:(e,t,r)=>$n(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const a=e[t];return mn(a)&&!mn(r)?(a.value=r,!0):Reflect.set(e,t,r,n)}};function DM(e){return Ol(e)?e:new Proxy(e,qle)}class Zle{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:n}=t(()=>RM(this),()=>HC(this));this._get=r,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function Jle(e){return new Zle(e)}function FM(e){const t=Pt(e)?new Array(e.length):{};for(const r in e)t[r]=Ie(e,r);return t}class eue{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Ie(e,t,r){const n=e[t];return mn(n)?n:new eue(e,t,r)}class tue{constructor(t,r,n,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new $m(t,()=>{this._dirty||(this._dirty=!0,HC(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const t=_r(this);return RM(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function rue(e,t,r=!1){let n,a;const i=er(e);return i?(n=e,a=Zo):(n=e.get,a=e.set),new tue(n,a,i||!a,r)}const Qg=[];function w9(e,...t){rA();const r=Qg.length?Qg[Qg.length-1].component:null,n=r&&r.appContext.config.warnHandler,a=nue();if(n)zs(n,r,11,[e+t.join(""),r&&r.proxy,a.map(({vnode:i})=>`at <${dW(r,i.type)}>`).join(`
|
|
`),a]);else{const i=[`[Vue warn]: ${e}`,...t];a.length&&i.push(`
|
|
`,...aue(a)),console.warn(...i)}nA()}function nue(){let e=Qg[Qg.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function aue(e){const t=[];return e.forEach((r,n)=>{t.push(...n===0?[]:[`
|
|
`],...iue(r))}),t}function iue({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,a=` at <${dW(e.component,e.type,n)}`,i=">"+r;return e.props?[a,...oue(e.props),i]:[a+i]}function oue(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...C9(n,e[n]))}),r.length>3&&t.push(" ..."),t}function C9(e,t,r){return yn(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:mn(t)?(t=C9(e,_r(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):er(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=_r(t),r?t:[`${e}=`,t])}function zs(e,t,r,n){let a;try{a=n?e(...n):e()}catch(i){aA(i,t,r)}return a}function Hi(e,t,r,n){if(er(e)){const i=zs(e,t,r,n);return i&&wM(i)&&i.catch(o=>{aA(o,t,r)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(Hi(e[i],t,r,n));return a}function aA(e,t,r,n=!0){const a=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,s=r;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,o,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){zs(l,null,10,[e,o,s]);return}}sue(e,r,a,n)}function sue(e,t,r,n=!0){console.error(e)}let $x=!1,aI=!1;const Di=[];let Il=0;const Vg=[];let hg=null,ph=0;const Wg=[];let Mu=null,gh=0;const S9=Promise.resolve();let MM=null,iI=null;function ar(e){const t=MM||S9;return e?t.then(this?e.bind(this):e):t}function lue(e){let t=Il+1,r=Di.length;for(;t<r;){const n=t+r>>>1;D0(Di[n])<e?t=n+1:r=n}return t}function kM(e){(!Di.length||!Di.includes(e,$x&&e.allowRecurse?Il+1:Il))&&e!==iI&&(e.id==null?Di.push(e):Di.splice(lue(e.id),0,e),_9())}function _9(){!$x&&!aI&&(aI=!0,MM=S9.then(T9))}function uue(e){const t=Di.indexOf(e);t>Il&&Di.splice(t,1)}function B9(e,t,r,n){Pt(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&r.push(e),_9()}function cue(e){B9(e,hg,Vg,ph)}function PM(e){B9(e,Mu,Wg,gh)}function zC(e,t=null){if(Vg.length){for(iI=t,hg=[...new Set(Vg)],Vg.length=0,ph=0;ph<hg.length;ph++)hg[ph]();hg=null,ph=0,iI=null,zC(e,t)}}function Ux(e){if(zC(),Wg.length){const t=[...new Set(Wg)];if(Wg.length=0,Mu){Mu.push(...t);return}for(Mu=t,Mu.sort((r,n)=>D0(r)-D0(n)),gh=0;gh<Mu.length;gh++)Mu[gh]();Mu=null,gh=0}}const D0=e=>e.id==null?1/0:e.id;function T9(e){aI=!1,$x=!0,zC(e),Di.sort((r,n)=>D0(r)-D0(n));const t=Zo;try{for(Il=0;Il<Di.length;Il++){const r=Di[Il];r&&r.active!==!1&&zs(r,null,14)}}finally{Il=0,Di.length=0,Ux(),$x=!1,MM=null,(Di.length||Vg.length||Wg.length)&&T9(e)}}let mh,Hy=[];function E9(e,t){var r,n;mh=e,mh?(mh.enabled=!0,Hy.forEach(({event:a,args:i})=>mh.emit(a,...i)),Hy=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((n=(r=window.navigator)===null||r===void 0?void 0:r.userAgent)===null||n===void 0)&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{E9(i,t)}),setTimeout(()=>{mh||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Hy=[])},3e3)):Hy=[]}function due(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Vr;let a=r;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in n){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:d,trim:f}=n[c]||Vr;f&&(a=r.map(A=>A.trim())),d&&(a=r.map(Cc))}let s,l=n[s=Ng(t)]||n[s=Ng(Qi(t))];!l&&i&&(l=n[s=Ng(Hs(t))]),l&&Hi(l,e,6,a);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Hi(u,e,6,a)}}function I9(e,t,r=!1){const n=t.emitsCache,a=n.get(e);if(a!==void 0)return a;const i=e.emits;let o={},s=!1;if(!er(e)){const l=u=>{const c=I9(u,t,!0);c&&(s=!0,In(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(n.set(e,null),null):(Pt(i)?i.forEach(l=>o[l]=null):In(o,i),n.set(e,o),o)}function NC(e,t){return!e||!Pm(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ir(e,t[0].toLowerCase()+t.slice(1))||Ir(e,Hs(t))||Ir(e,t))}let La=null,QC=null;function F0(e){const t=La;return La=e,QC=e&&e.type.__scopeId||null,t}function R9(e){QC=e}function D9(){QC=null}const fue=e=>Dl;function Dl(e,t=La,r){if(!t||e._n)return e;const n=(...a)=>{n._d&&fI(-1);const i=F0(t),o=e(...a);return F0(i),n._d&&fI(1),o};return n._n=!0,n._c=!0,n._d=!0,n}function q1(e){const{type:t,vnode:r,proxy:n,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:d,data:f,setupState:A,ctx:h,inheritAttrs:v}=e;let p,g;const m=F0(e);try{if(r.shapeFlag&4){const b=a||n;p=Ri(c.call(b,b,d,i,A,f,h)),g=l}else{const b=t;p=Ri(b.length>1?b(i,{attrs:l,slots:s,emit:u}):b(i,null)),g=t.props?l:hue(l)}}catch(b){Kg.length=0,aA(b,e,1),p=nr(ra)}let y=p;if(g&&v!==!1){const b=Object.keys(g),{shapeFlag:w}=y;b.length&&w&7&&(o&&b.some(bM)&&(g=vue(g,o)),y=wa(y,g))}return r.dirs&&(y=wa(y),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&(y.transition=r.transition),p=y,F0(m),p}function Aue(e){let t;for(let r=0;r<e.length;r++){const n=e[r];if(Kl(n)){if(n.type!==ra||n.children==="v-if"){if(t)return;t=n}}else return}return t}const hue=e=>{let t;for(const r in e)(r==="class"||r==="style"||Pm(r))&&((t||(t={}))[r]=e[r]);return t},vue=(e,t)=>{const r={};for(const n in e)(!bM(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function pue(e,t,r){const{props:n,children:a,component:i}=e,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?y5(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(o[f]!==n[f]&&!NC(u,f))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?y5(n,o,u):!0:!!o;return!1}function y5(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let a=0;a<n.length;a++){const i=n[a];if(t[i]!==e[i]&&!NC(r,i))return!0}return!1}function LM({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const F9=e=>e.__isSuspense,gue={name:"Suspense",__isSuspense:!0,process(e,t,r,n,a,i,o,s,l,u){e==null?yue(t,r,n,a,i,o,s,l,u):bue(e,t,r,n,a,o,s,l,u)},hydrate:xue,create:OM,normalize:wue},mue=gue;function M0(e,t){const r=e.props&&e.props[t];er(r)&&r()}function yue(e,t,r,n,a,i,o,s,l){const{p:u,o:{createElement:c}}=l,d=c("div"),f=e.suspense=OM(e,a,n,t,d,r,i,o,s,l);u(null,f.pendingBranch=e.ssContent,d,null,n,f,i,o),f.deps>0?(M0(e,"onPending"),M0(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,i,o),Nh(f,e.ssFallback)):f.resolve()}function bue(e,t,r,n,a,i,o,s,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,A=t.ssFallback,{activeBranch:h,pendingBranch:v,isInFallback:p,isHydrating:g}=d;if(v)d.pendingBranch=f,Ds(f,v)?(l(v,f,d.hiddenContainer,null,a,d,i,o,s),d.deps<=0?d.resolve():p&&(l(h,A,r,n,a,null,i,o,s),Nh(d,A))):(d.pendingId++,g?(d.isHydrating=!1,d.activeBranch=v):u(v,a,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),p?(l(null,f,d.hiddenContainer,null,a,d,i,o,s),d.deps<=0?d.resolve():(l(h,A,r,n,a,null,i,o,s),Nh(d,A))):h&&Ds(f,h)?(l(h,f,r,n,a,d,i,o,s),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,a,d,i,o,s),d.deps<=0&&d.resolve()));else if(h&&Ds(f,h))l(h,f,r,n,a,d,i,o,s),Nh(d,f);else if(M0(t,"onPending"),d.pendingBranch=f,d.pendingId++,l(null,f,d.hiddenContainer,null,a,d,i,o,s),d.deps<=0)d.resolve();else{const{timeout:m,pendingId:y}=d;m>0?setTimeout(()=>{d.pendingId===y&&d.fallback(A)},m):m===0&&d.fallback(A)}}function OM(e,t,r,n,a,i,o,s,l,u,c=!1){const{p:d,m:f,um:A,n:h,o:{parentNode:v,remove:p}}=u,g=Cc(e.props&&e.props.timeout),m={vnode:e,parent:t,parentComponent:r,isSVG:o,container:n,hiddenContainer:a,anchor:i,deps:0,pendingId:0,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:c,isUnmounted:!1,effects:[],resolve(y=!1){const{vnode:b,activeBranch:w,pendingBranch:x,pendingId:S,effects:_,parentComponent:B,container:T}=m;if(m.isHydrating)m.isHydrating=!1;else if(!y){const R=w&&x.transition&&x.transition.mode==="out-in";R&&(w.transition.afterLeave=()=>{S===m.pendingId&&f(x,T,D,0)});let{anchor:D}=m;w&&(D=h(w),A(w,B,m,!0)),R||f(x,T,D,0)}Nh(m,x),m.pendingBranch=null,m.isInFallback=!1;let E=m.parent,I=!1;for(;E;){if(E.pendingBranch){E.effects.push(..._),I=!0;break}E=E.parent}I||PM(_),m.effects=[],M0(b,"onResolve")},fallback(y){if(!m.pendingBranch)return;const{vnode:b,activeBranch:w,parentComponent:x,container:S,isSVG:_}=m;M0(b,"onFallback");const B=h(w),T=()=>{!m.isInFallback||(d(null,y,S,B,x,null,_,s,l),Nh(m,y))},E=y.transition&&y.transition.mode==="out-in";E&&(w.transition.afterLeave=T),m.isInFallback=!0,A(w,x,null,!0),E||T()},move(y,b,w){m.activeBranch&&f(m.activeBranch,y,b,w),m.container=y},next(){return m.activeBranch&&h(m.activeBranch)},registerDep(y,b){const w=!!m.pendingBranch;w&&m.deps++;const x=y.vnode.el;y.asyncDep.catch(S=>{aA(S,y,0)}).then(S=>{if(y.isUnmounted||m.isUnmounted||m.pendingId!==y.suspenseId)return;y.asyncResolved=!0;const{vnode:_}=y;AI(y,S,!1),x&&(_.el=x);const B=!x&&y.subTree.el;b(y,_,v(x||y.subTree.el),x?null:h(y.subTree),m,o,l),B&&p(B),LM(y,_.el),w&&--m.deps===0&&m.resolve()})},unmount(y,b){m.isUnmounted=!0,m.activeBranch&&A(m.activeBranch,r,y,b),m.pendingBranch&&A(m.pendingBranch,r,y,b)}};return m}function xue(e,t,r,n,a,i,o,s,l){const u=t.suspense=OM(t,n,r,e.parentNode,document.createElement("div"),null,a,i,o,s,!0),c=l(e,u.pendingBranch=t.ssContent,r,u,i,o);return u.deps===0&&u.resolve(),c}function wue(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=b5(n?r.default:r),e.ssFallback=n?b5(r.fallback):nr(ra)}function b5(e){let t;if(er(e)){const r=zf&&e._c;r&&(e._d=!1,$a()),e=e(),r&&(e._d=!0,t=vi,rW())}return Pt(e)&&(e=Aue(e)),e=Ri(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function M9(e,t){t&&t.pendingBranch?Pt(e)?t.effects.push(...e):t.effects.push(e):PM(e)}function Nh(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e,a=r.el=t.el;n&&n.subTree===r&&(n.vnode.el=a,LM(n,a))}function Ct(e,t){if(Zn){let r=Zn.provides;const n=Zn.parent&&Zn.parent.provides;n===r&&(r=Zn.provides=Object.create(n)),r[e]=t}}function We(e,t,r=!1){const n=Zn||La;if(n){const a=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&er(t)?t.call(n.proxy):t}}function yr(e,t){return Um(e,null,t)}function k9(e,t){return Um(e,null,{flush:"post"})}function Cue(e,t){return Um(e,null,{flush:"sync"})}const x5={};function mt(e,t,r){return Um(e,t,r)}function Um(e,t,{immediate:r,deep:n,flush:a,onTrack:i,onTrigger:o}=Vr){const s=Zn;let l,u=!1,c=!1;if(mn(e)?(l=()=>e.value,u=Ox(e)):Ol(e)?(l=()=>e,n=!0):Pt(e)?(c=!0,u=e.some(g=>Ol(g)||Ox(g)),l=()=>e.map(g=>{if(mn(g))return g.value;if(Ol(g))return uf(g);if(er(g))return zs(g,s,2)})):er(e)?t?l=()=>zs(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return d&&d(),Hi(e,s,3,[f])}:l=Zo,t&&n){const g=l;l=()=>uf(g())}let d,f=g=>{d=p.onStop=()=>{zs(g,s,4)}};if(ov)return f=Zo,t?r&&Hi(t,s,3,[l(),c?[]:void 0,f]):l(),Zo;let A=c?[]:x5;const h=()=>{if(!!p.active)if(t){const g=p.run();(n||u||(c?g.some((m,y)=>rv(m,A[y])):rv(g,A)))&&(d&&d(),Hi(t,s,3,[g,A===x5?void 0:A,f]),A=g)}else p.run()};h.allowRecurse=!!t;let v;a==="sync"?v=h:a==="post"?v=()=>pa(h,s&&s.suspense):v=()=>cue(h);const p=new $m(l,v);return t?r?h():A=p.run():a==="post"?pa(p.run.bind(p),s&&s.suspense):p.run(),()=>{p.stop(),s&&s.scope&&xM(s.scope.effects,p)}}function Sue(e,t,r){const n=this.proxy,a=yn(e)?e.includes(".")?P9(n,e):()=>n[e]:e.bind(n,n);let i;er(t)?i=t:(i=t.handler,r=t);const o=Zn;_c(this);const s=Um(a,i.bind(n),r);return o?_c(o):lc(),s}function P9(e,t){const r=t.split(".");return()=>{let n=e;for(let a=0;a<r.length&&n;a++)n=n[r[a]];return n}}function uf(e,t){if(!Rn(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),mn(e))uf(e.value,t);else if(Pt(e))for(let r=0;r<e.length;r++)uf(e[r],t);else if(tA(e)||Hh(e))e.forEach(r=>{uf(r,t)});else if(i9(e))for(const r in e)uf(e[r],t);return e}function $M(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ar(()=>{e.isMounted=!0}),kr(()=>{e.isUnmounting=!0}),e}const Yi=[Function,Array],_ue={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Yi,onEnter:Yi,onAfterEnter:Yi,onEnterCancelled:Yi,onBeforeLeave:Yi,onLeave:Yi,onAfterLeave:Yi,onLeaveCancelled:Yi,onBeforeAppear:Yi,onAppear:Yi,onAfterAppear:Yi,onAppearCancelled:Yi},setup(e,{slots:t}){const r=Ba(),n=$M();let a;return()=>{const i=t.default&&VC(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const v of i)if(v.type!==ra){o=v;break}}const s=_r(e),{mode:l}=s;if(n.isLeaving)return nB(o);const u=w5(o);if(!u)return nB(o);const c=av(u,s,n,r);Uf(u,c);const d=r.subTree,f=d&&w5(d);let A=!1;const{getTransitionKey:h}=u.type;if(h){const v=h();a===void 0?a=v:v!==a&&(a=v,A=!0)}if(f&&f.type!==ra&&(!Ds(u,f)||A)){const v=av(f,s,n,r);if(Uf(f,v),l==="out-in")return n.isLeaving=!0,v.afterLeave=()=>{n.isLeaving=!1,r.update()},nB(o);l==="in-out"&&u.type!==ra&&(v.delayLeave=(p,g,m)=>{const y=L9(n,f);y[String(f.key)]=f,p._leaveCb=()=>{g(),p._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=m})}return o}}},UM=_ue;function L9(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function av(e,t,r,n){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:A,onLeaveCancelled:h,onBeforeAppear:v,onAppear:p,onAfterAppear:g,onAppearCancelled:m}=t,y=String(e.key),b=L9(r,e),w=(_,B)=>{_&&Hi(_,n,9,B)},x=(_,B)=>{const T=B[1];w(_,B),Pt(_)?_.every(E=>E.length<=1)&&T():_.length<=1&&T()},S={mode:i,persisted:o,beforeEnter(_){let B=s;if(!r.isMounted)if(a)B=v||s;else return;_._leaveCb&&_._leaveCb(!0);const T=b[y];T&&Ds(e,T)&&T.el._leaveCb&&T.el._leaveCb(),w(B,[_])},enter(_){let B=l,T=u,E=c;if(!r.isMounted)if(a)B=p||l,T=g||u,E=m||c;else return;let I=!1;const R=_._enterCb=D=>{I||(I=!0,D?w(E,[_]):w(T,[_]),S.delayedLeave&&S.delayedLeave(),_._enterCb=void 0)};B?x(B,[_,R]):R()},leave(_,B){const T=String(e.key);if(_._enterCb&&_._enterCb(!0),r.isUnmounting)return B();w(d,[_]);let E=!1;const I=_._leaveCb=R=>{E||(E=!0,B(),R?w(h,[_]):w(A,[_]),_._leaveCb=void 0,b[T]===e&&delete b[T])};b[T]=e,f?x(f,[_,I]):I()},clone(_){return av(_,t,r,n)}};return S}function nB(e){if(Hm(e))return e=wa(e),e.children=null,e}function w5(e){return Hm(e)?e.children?e.children[0]:void 0:e}function Uf(e,t){e.shapeFlag&6&&e.component?Uf(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function VC(e,t=!1,r){let n=[],a=0;for(let i=0;i<e.length;i++){let o=e[i];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:i);o.type===rr?(o.patchFlag&128&&a++,n=n.concat(VC(o.children,t,s))):(t||o.type!==ra)&&n.push(s!=null?wa(o,{key:s}):o)}if(a>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function ge(e){return er(e)?{setup:e,name:e.name}:e}const wf=e=>!!e.type.__asyncLoader;function Bue(e){er(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:a=200,timeout:i,suspensible:o=!0,onError:s}=e;let l=null,u,c=0;const d=()=>(c++,l=null,f()),f=()=>{let A;return l||(A=l=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),s)return new Promise((v,p)=>{s(h,()=>v(d()),()=>p(h),c+1)});throw h}).then(h=>A!==l&&l?l:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),u=h,h)))};return ge({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const A=Zn;if(u)return()=>aB(u,A);const h=m=>{l=null,aA(m,A,13,!n)};if(o&&A.suspense||ov)return f().then(m=>()=>aB(m,A)).catch(m=>(h(m),()=>n?nr(n,{error:m}):null));const v=X(!1),p=X(),g=X(!!a);return a&&setTimeout(()=>{g.value=!1},a),i!=null&&setTimeout(()=>{if(!v.value&&!p.value){const m=new Error(`Async component timed out after ${i}ms.`);h(m),p.value=m}},i),f().then(()=>{v.value=!0,A.parent&&Hm(A.parent.vnode)&&kM(A.parent.update)}).catch(m=>{h(m),p.value=m}),()=>{if(v.value&&u)return aB(u,A);if(p.value&&n)return nr(n,{error:p.value});if(r&&!g.value)return nr(r)}}})}function aB(e,{vnode:{ref:t,props:r,children:n,shapeFlag:a},parent:i}){const o=nr(e,r,n);return o.ref=t,o}const Hm=e=>e.type.__isKeepAlive,Tue={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=Ba(),n=r.ctx;if(!n.renderer)return()=>{const m=t.default&&t.default();return m&&m.length===1?m[0]:m};const a=new Map,i=new Set;let o=null;const s=r.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=n,f=d("div");n.activate=(m,y,b,w,x)=>{const S=m.component;u(m,y,b,0,s),l(S.vnode,m,y,b,S,s,w,m.slotScopeIds,x),pa(()=>{S.isDeactivated=!1,S.a&&zh(S.a);const _=m.props&&m.props.onVnodeMounted;_&&ai(_,S.parent,m)},s)},n.deactivate=m=>{const y=m.component;u(m,f,null,1,s),pa(()=>{y.da&&zh(y.da);const b=m.props&&m.props.onVnodeUnmounted;b&&ai(b,y.parent,m),y.isDeactivated=!0},s)};function A(m){iB(m),c(m,r,s,!0)}function h(m){a.forEach((y,b)=>{const w=Vx(y.type);w&&(!m||!m(w))&&v(b)})}function v(m){const y=a.get(m);!o||y.type!==o.type?A(y):o&&iB(o),a.delete(m),i.delete(m)}mt(()=>[e.include,e.exclude],([m,y])=>{m&&h(b=>vg(m,b)),y&&h(b=>!vg(y,b))},{flush:"post",deep:!0});let p=null;const g=()=>{p!=null&&a.set(p,oB(r.subTree))};return Ar(g),Nm(g),kr(()=>{a.forEach(m=>{const{subTree:y,suspense:b}=r,w=oB(y);if(m.type===w.type){iB(w);const x=w.component.da;x&&pa(x,b);return}A(m)})}),()=>{if(p=null,!t.default)return null;const m=t.default(),y=m[0];if(m.length>1)return o=null,m;if(!Kl(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let b=oB(y);const w=b.type,x=Vx(wf(b)?b.type.__asyncResolved||{}:w),{include:S,exclude:_,max:B}=e;if(S&&(!x||!vg(S,x))||_&&x&&vg(_,x))return o=b,y;const T=b.key==null?w:b.key,E=a.get(T);return b.el&&(b=wa(b),y.shapeFlag&128&&(y.ssContent=b)),p=T,E?(b.el=E.el,b.component=E.component,b.transition&&Uf(b,b.transition),b.shapeFlag|=512,i.delete(T),i.add(T)):(i.add(T),B&&i.size>parseInt(B,10)&&v(i.values().next().value)),b.shapeFlag|=256,o=b,F9(y.type)?y:b}}},Eue=Tue;function vg(e,t){return Pt(e)?e.some(r=>vg(r,t)):yn(e)?e.split(",").includes(t):e.test?e.test(t):!1}function WC(e,t){O9(e,"a",t)}function zm(e,t){O9(e,"da",t)}function O9(e,t,r=Zn){const n=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(GC(t,n,r),r){let a=r.parent;for(;a&&a.parent;)Hm(a.parent.vnode)&&Iue(n,t,r,a),a=a.parent}}function Iue(e,t,r,n){const a=GC(t,e,n,!0);iA(()=>{xM(n[t],a)},r)}function iB(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function oB(e){return e.shapeFlag&128?e.ssContent:e}function GC(e,t,r=Zn,n=!1){if(r){const a=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;rA(),_c(r);const s=Hi(t,r,e,o);return lc(),nA(),s});return n?a.unshift(i):a.push(i),i}}const iu=e=>(t,r=Zn)=>(!ov||e==="sp")&&GC(e,t,r),ou=iu("bm"),Ar=iu("m"),KC=iu("bu"),Nm=iu("u"),kr=iu("bum"),iA=iu("um"),$9=iu("sp"),U9=iu("rtg"),H9=iu("rtc");function z9(e,t=Zn){GC("ec",e,t)}function jr(e,t){const r=La;if(r===null)return e;const n=YC(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,l,u=Vr]=t[i];er(o)&&(o={mounted:o,updated:o}),o.deep&&uf(s),a.push({dir:o,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u})}return e}function Is(e,t,r,n){const a=e.dirs,i=t&&t.dirs;for(let o=0;o<a.length;o++){const s=a[o];i&&(s.oldValue=i[o].value);let l=s.dir[n];l&&(rA(),Hi(l,r,8,[e.el,s,e,t]),nA())}}const HM="components",Rue="directives";function Hf(e,t){return zM(HM,e,!0,t)||e}const N9=Symbol();function Due(e){return yn(e)?zM(HM,e,!1)||e:e||N9}function Fue(e){return zM(Rue,e)}function zM(e,t,r=!0,n=!1){const a=La||Zn;if(a){const i=a.type;if(e===HM){const s=Vx(i,!1);if(s&&(s===t||s===Qi(t)||s===Om(Qi(t))))return i}const o=C5(a[e]||i[e],t)||C5(a.appContext[e],t);return!o&&n?i:o}}function C5(e,t){return e&&(e[t]||e[Qi(t)]||e[Om(Qi(t))])}function Q9(e,t,r,n){let a;const i=r&&r[n];if(Pt(e)||yn(e)){a=new Array(e.length);for(let o=0,s=e.length;o<s;o++)a[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){a=new Array(e);for(let o=0;o<e;o++)a[o]=t(o+1,o,void 0,i&&i[o])}else if(Rn(e))if(e[Symbol.iterator])a=Array.from(e,(o,s)=>t(o,s,void 0,i&&i[s]));else{const o=Object.keys(e);a=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];a[s]=t(e[u],u,s,i&&i[s])}}else a=[];return r&&(r[n]=a),a}function Mue(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(Pt(n))for(let a=0;a<n.length;a++)e[n[a].name]=n[a].fn;else n&&(e[n.name]=n.fn)}return e}function Qm(e,t,r={},n,a){if(La.isCE||La.parent&&wf(La.parent)&&La.parent.isCE)return nr("slot",t==="default"?null:{name:t},n&&n());let i=e[t];i&&i._c&&(i._d=!1),$a();const o=i&&V9(i(r)),s=Pv(rr,{key:r.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function V9(e){return e.some(t=>Kl(t)?!(t.type===ra||t.type===rr&&!V9(t.children)):!0)?e:null}function kue(e){const t={};for(const r in e)t[Ng(r)]=e[r];return t}const oI=e=>e?sW(e)?YC(e)||e.proxy:oI(e.parent):null,Hx=In(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>oI(e.parent),$root:e=>oI(e.root),$emit:e=>e.emit,$options:e=>G9(e),$forceUpdate:e=>e.f||(e.f=()=>kM(e.update)),$nextTick:e=>e.n||(e.n=ar.bind(e.proxy)),$watch:e=>Sue.bind(e)}),sI={get({_:e},t){const{ctx:r,setupState:n,data:a,props:i,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const A=o[t];if(A!==void 0)switch(A){case 1:return n[t];case 2:return a[t];case 4:return r[t];case 3:return i[t]}else{if(n!==Vr&&Ir(n,t))return o[t]=1,n[t];if(a!==Vr&&Ir(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&Ir(u,t))return o[t]=3,i[t];if(r!==Vr&&Ir(r,t))return o[t]=4,r[t];lI&&(o[t]=0)}}const c=Hx[t];let d,f;if(c)return t==="$attrs"&&Vi(e,"get",t),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(r!==Vr&&Ir(r,t))return o[t]=4,r[t];if(f=l.config.globalProperties,Ir(f,t))return f[t]},set({_:e},t,r){const{data:n,setupState:a,ctx:i}=e;return a!==Vr&&Ir(a,t)?(a[t]=r,!0):n!==Vr&&Ir(n,t)?(n[t]=r,!0):Ir(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:a,propsOptions:i}},o){let s;return!!r[o]||e!==Vr&&Ir(e,o)||t!==Vr&&Ir(t,o)||(s=i[0])&&Ir(s,o)||Ir(n,o)||Ir(Hx,o)||Ir(a.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ir(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},Pue=In({},sI,{get(e,t){if(t!==Symbol.unscopables)return sI.get(e,t,e)},has(e,t){return t[0]!=="_"&&!nle(t)}});let lI=!0;function Lue(e){const t=G9(e),r=e.proxy,n=e.ctx;lI=!1,t.beforeCreate&&S5(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:A,updated:h,activated:v,deactivated:p,beforeDestroy:g,beforeUnmount:m,destroyed:y,unmounted:b,render:w,renderTracked:x,renderTriggered:S,errorCaptured:_,serverPrefetch:B,expose:T,inheritAttrs:E,components:I,directives:R,filters:D}=t;if(u&&Oue(u,n,null,e.appContext.config.unwrapInjectedRef),o)for(const P in o){const O=o[P];er(O)&&(n[P]=O.bind(r))}if(a){const P=a.call(r,r);Rn(P)&&(e.data=Bo(P))}if(lI=!0,i)for(const P in i){const O=i[P],H=er(O)?O.bind(r,r):er(O.get)?O.get.bind(r,r):Zo,V=!er(O)&&er(O.set)?O.set.bind(r):Zo,W=L({get:H,set:V});Object.defineProperty(n,P,{enumerable:!0,configurable:!0,get:()=>W.value,set:Z=>W.value=Z})}if(s)for(const P in s)W9(s[P],n,r,P);if(l){const P=er(l)?l.call(r):l;Reflect.ownKeys(P).forEach(O=>{Ct(O,P[O])})}c&&S5(c,e,"c");function F(P,O){Pt(O)?O.forEach(H=>P(H.bind(r))):O&&P(O.bind(r))}if(F(ou,d),F(Ar,f),F(KC,A),F(Nm,h),F(WC,v),F(zm,p),F(z9,_),F(H9,x),F(U9,S),F(kr,m),F(iA,b),F($9,B),Pt(T))if(T.length){const P=e.exposed||(e.exposed={});T.forEach(O=>{Object.defineProperty(P,O,{get:()=>r[O],set:H=>r[O]=H})})}else e.exposed||(e.exposed={});w&&e.render===Zo&&(e.render=w),E!=null&&(e.inheritAttrs=E),I&&(e.components=I),R&&(e.directives=R)}function Oue(e,t,r=Zo,n=!1){Pt(e)&&(e=uI(e));for(const a in e){const i=e[a];let o;Rn(i)?"default"in i?o=We(i.from||a,i.default,!0):o=We(i.from||a):o=We(i),mn(o)&&n?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[a]=o}}function S5(e,t,r){Hi(Pt(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function W9(e,t,r,n){const a=n.includes(".")?P9(r,n):()=>r[n];if(yn(e)){const i=t[e];er(i)&&mt(a,i)}else if(er(e))mt(a,e.bind(r));else if(Rn(e))if(Pt(e))e.forEach(i=>W9(i,t,r,n));else{const i=er(e.handler)?e.handler.bind(r):t[e.handler];er(i)&&mt(a,i,e)}}function G9(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!r&&!n?l=t:(l={},a.length&&a.forEach(u=>zx(l,u,o,!0)),zx(l,t,o)),i.set(t,l),l}function zx(e,t,r,n=!1){const{mixins:a,extends:i}=t;i&&zx(e,i,r,!0),a&&a.forEach(o=>zx(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=$ue[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const $ue={data:_5,props:Wd,emits:Wd,methods:Wd,computed:Wd,beforeCreate:Qa,created:Qa,beforeMount:Qa,mounted:Qa,beforeUpdate:Qa,updated:Qa,beforeDestroy:Qa,beforeUnmount:Qa,destroyed:Qa,unmounted:Qa,activated:Qa,deactivated:Qa,errorCaptured:Qa,serverPrefetch:Qa,components:Wd,directives:Wd,watch:Hue,provide:_5,inject:Uue};function _5(e,t){return t?e?function(){return In(er(e)?e.call(this,this):e,er(t)?t.call(this,this):t)}:t:e}function Uue(e,t){return Wd(uI(e),uI(t))}function uI(e){if(Pt(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Qa(e,t){return e?[...new Set([].concat(e,t))]:t}function Wd(e,t){return e?In(In(Object.create(null),e),t):t}function Hue(e,t){if(!e)return t;if(!t)return e;const r=In(Object.create(null),e);for(const n in t)r[n]=Qa(e[n],t[n]);return r}function zue(e,t,r,n=!1){const a={},i={};Lx(i,jC,1),e.propsDefaults=Object.create(null),K9(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);r?e.props=n?a:y9(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function Nue(e,t,r,n){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=_r(a),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(NC(e.emitsOptions,f))continue;const A=t[f];if(l)if(Ir(i,f))A!==i[f]&&(i[f]=A,u=!0);else{const h=Qi(f);a[h]=cI(l,s,h,A,e,!1)}else A!==i[f]&&(i[f]=A,u=!0)}}}else{K9(e,t,a,i)&&(u=!0);let c;for(const d in s)(!t||!Ir(t,d)&&((c=Hs(d))===d||!Ir(t,c)))&&(l?r&&(r[d]!==void 0||r[c]!==void 0)&&(a[d]=cI(l,s,d,void 0,e,!0)):delete a[d]);if(i!==s)for(const d in i)(!t||!Ir(t,d)&&!0)&&(delete i[d],u=!0)}u&&Wl(e,"set","$attrs")}function K9(e,t,r,n){const[a,i]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(zg(l))continue;const u=t[l];let c;a&&Ir(a,c=Qi(l))?!i||!i.includes(c)?r[c]=u:(s||(s={}))[c]=u:NC(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(i){const l=_r(r),u=s||Vr;for(let c=0;c<i.length;c++){const d=i[c];r[d]=cI(a,l,d,u[d],e,!Ir(u,d))}}return o}function cI(e,t,r,n,a,i){const o=e[r];if(o!=null){const s=Ir(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&er(l)){const{propsDefaults:u}=a;r in u?n=u[r]:(_c(a),n=u[r]=l.call(null,t),lc())}else n=l}o[0]&&(i&&!s?n=!1:o[1]&&(n===""||n===Hs(r))&&(n=!0))}return n}function j9(e,t,r=!1){const n=t.propsCache,a=n.get(e);if(a)return a;const i=e.props,o={},s=[];let l=!1;if(!er(e)){const c=d=>{l=!0;const[f,A]=j9(d,t,!0);In(o,f),A&&s.push(...A)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return n.set(e,Uh),Uh;if(Pt(i))for(let c=0;c<i.length;c++){const d=Qi(i[c]);B5(d)&&(o[d]=Vr)}else if(i)for(const c in i){const d=Qi(c);if(B5(d)){const f=i[c],A=o[d]=Pt(f)||er(f)?{type:f}:f;if(A){const h=I5(Boolean,A.type),v=I5(String,A.type);A[0]=h>-1,A[1]=v<0||h<v,(h>-1||Ir(A,"default"))&&s.push(d)}}}const u=[o,s];return n.set(e,u),u}function B5(e){return e[0]!=="$"}function T5(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function E5(e,t){return T5(e)===T5(t)}function I5(e,t){return Pt(t)?t.findIndex(r=>E5(r,e)):er(t)&&E5(t,e)?0:-1}const Y9=e=>e[0]==="_"||e==="$stable",NM=e=>Pt(e)?e.map(Ri):[Ri(e)],Que=(e,t,r)=>{if(t._n)return t;const n=Dl((...a)=>NM(t(...a)),r);return n._c=!1,n},X9=(e,t,r)=>{const n=e._ctx;for(const a in e){if(Y9(a))continue;const i=e[a];if(er(i))t[a]=Que(a,i,n);else if(i!=null){const o=NM(i);t[a]=()=>o}}},q9=(e,t)=>{const r=NM(t);e.slots.default=()=>r},Vue=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=_r(t),Lx(t,"_",r)):X9(t,e.slots={})}else e.slots={},t&&q9(e,t);Lx(e.slots,jC,1)},Wue=(e,t,r)=>{const{vnode:n,slots:a}=e;let i=!0,o=Vr;if(n.shapeFlag&32){const s=t._;s?r&&s===1?i=!1:(In(a,t),!r&&s===1&&delete a._):(i=!t.$stable,X9(t,a)),o=t}else t&&(q9(e,t),o={default:1});if(i)for(const s in a)!Y9(s)&&!(s in o)&&delete a[s]};function Z9(){return{app:null,config:{isNativeTag:dle,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Gue=0;function Kue(e,t){return function(n,a=null){er(n)||(n=Object.assign({},n)),a!=null&&!Rn(a)&&(a=null);const i=Z9(),o=new Set;let s=!1;const l=i.app={_uid:Gue++,_component:n,_props:a,_container:null,_context:i,_instance:null,version:vW,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&er(u.install)?(o.add(u),u.install(l,...c)):er(u)&&(o.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,d){if(!s){const f=nr(n,a);return f.appContext=i,c&&t?t(f,u):e(f,u,d),s=!0,l._container=u,u.__vue_app__=l,YC(f.component)||f.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l}};return l}}function Nx(e,t,r,n,a=!1){if(Pt(e)){e.forEach((f,A)=>Nx(f,t&&(Pt(t)?t[A]:t),r,n,a));return}if(wf(n)&&!a)return;const i=n.shapeFlag&4?YC(n.component)||n.component.proxy:n.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Vr?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(yn(u)?(c[u]=null,Ir(d,u)&&(d[u]=null)):mn(u)&&(u.value=null)),er(l))zs(l,s,12,[o,c]);else{const f=yn(l),A=mn(l);if(f||A){const h=()=>{if(e.f){const v=f?c[l]:l.value;a?Pt(v)&&xM(v,i):Pt(v)?v.includes(i)||v.push(i):f?(c[l]=[i],Ir(d,l)&&(d[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else f?(c[l]=o,Ir(d,l)&&(d[l]=o)):A&&(l.value=o,e.k&&(c[e.k]=o))};o?(h.id=-1,pa(h,r)):h()}}}let mu=!1;const zy=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Ny=e=>e.nodeType===8;function jue(e){const{mt:t,p:r,o:{patchProp:n,createText:a,nextSibling:i,parentNode:o,remove:s,insert:l,createComment:u}}=e,c=(g,m)=>{if(!m.hasChildNodes()){r(null,g,m),Ux(),m._vnode=g;return}mu=!1,d(m.firstChild,g,null,null,null),Ux(),m._vnode=g,mu&&console.error("Hydration completed but contains mismatches.")},d=(g,m,y,b,w,x=!1)=>{const S=Ny(g)&&g.data==="[",_=()=>v(g,m,y,b,w,S),{type:B,ref:T,shapeFlag:E,patchFlag:I}=m,R=g.nodeType;m.el=g,I===-2&&(x=!1,m.dynamicChildren=null);let D=null;switch(B){case iv:R!==3?m.children===""?(l(m.el=a(""),o(g),g),D=g):D=_():(g.data!==m.children&&(mu=!0,g.data=m.children),D=i(g));break;case ra:R!==8||S?D=_():D=i(g);break;case Cf:if(R!==1&&R!==3)D=_();else{D=g;const k=!m.children.length;for(let F=0;F<m.staticCount;F++)k&&(m.children+=D.nodeType===1?D.outerHTML:D.data),F===m.staticCount-1&&(m.anchor=D),D=i(D);return D}break;case rr:S?D=h(g,m,y,b,w,x):D=_();break;default:if(E&1)R!==1||m.type.toLowerCase()!==g.tagName.toLowerCase()?D=_():D=f(g,m,y,b,w,x);else if(E&6){m.slotScopeIds=w;const k=o(g);if(t(m,k,null,y,b,zy(k),x),D=S?p(g):i(g),D&&Ny(D)&&D.data==="teleport end"&&(D=i(D)),wf(m)){let F;S?(F=nr(rr),F.anchor=D?D.previousSibling:k.lastChild):F=g.nodeType===3?jl(""):nr("div"),F.el=g,m.component.subTree=F}}else E&64?R!==8?D=_():D=m.type.hydrate(g,m,y,b,w,x,e,A):E&128&&(D=m.type.hydrate(g,m,y,b,zy(o(g)),w,x,e,d))}return T!=null&&Nx(T,null,b,m),D},f=(g,m,y,b,w,x)=>{x=x||!!m.dynamicChildren;const{type:S,props:_,patchFlag:B,shapeFlag:T,dirs:E}=m,I=S==="input"&&E||S==="option";if(I||B!==-1){if(E&&Is(m,null,y,"created"),_)if(I||!x||B&48)for(const D in _)(I&&D.endsWith("value")||Pm(D)&&!zg(D))&&n(g,D,null,_[D],!1,void 0,y);else _.onClick&&n(g,"onClick",null,_.onClick,!1,void 0,y);let R;if((R=_&&_.onVnodeBeforeMount)&&ai(R,y,m),E&&Is(m,null,y,"beforeMount"),((R=_&&_.onVnodeMounted)||E)&&M9(()=>{R&&ai(R,y,m),E&&Is(m,null,y,"mounted")},b),T&16&&!(_&&(_.innerHTML||_.textContent))){let D=A(g.firstChild,m,g,y,b,w,x);for(;D;){mu=!0;const k=D;D=D.nextSibling,s(k)}}else T&8&&g.textContent!==m.children&&(mu=!0,g.textContent=m.children)}return g.nextSibling},A=(g,m,y,b,w,x,S)=>{S=S||!!m.dynamicChildren;const _=m.children,B=_.length;for(let T=0;T<B;T++){const E=S?_[T]:_[T]=Ri(_[T]);if(g)g=d(g,E,b,w,x,S);else{if(E.type===iv&&!E.children)continue;mu=!0,r(null,E,y,null,b,w,zy(y),x)}}return g},h=(g,m,y,b,w,x)=>{const{slotScopeIds:S}=m;S&&(w=w?w.concat(S):S);const _=o(g),B=A(i(g),m,_,y,b,w,x);return B&&Ny(B)&&B.data==="]"?i(m.anchor=B):(mu=!0,l(m.anchor=u("]"),_,B),B)},v=(g,m,y,b,w,x)=>{if(mu=!0,m.el=null,x){const B=p(g);for(;;){const T=i(g);if(T&&T!==B)s(T);else break}}const S=i(g),_=o(g);return s(g),r(null,m,_,S,y,b,zy(_),w),S},p=g=>{let m=0;for(;g;)if(g=i(g),g&&Ny(g)&&(g.data==="["&&m++,g.data==="]")){if(m===0)return i(g);m--}return g};return[c,d]}const pa=M9;function J9(e){return tW(e)}function eW(e){return tW(e,jue)}function tW(e,t){const r=gle();r.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:A=Zo,cloneNode:h,insertStaticContent:v}=e,p=(U,K,q,ie=null,$=null,re=null,ve=!1,he=null,oe=!!K.dynamicChildren)=>{if(U===K)return;U&&!Ds(U,K)&&(ie=ce(U),ee(U,$,re,!0),U=null),K.patchFlag===-2&&(oe=!1,K.dynamicChildren=null);const{type:Y,ref:te,shapeFlag:pe}=K;switch(Y){case iv:g(U,K,q,ie);break;case ra:m(U,K,q,ie);break;case Cf:U==null&&y(K,q,ie,ve);break;case rr:R(U,K,q,ie,$,re,ve,he,oe);break;default:pe&1?x(U,K,q,ie,$,re,ve,he,oe):pe&6?D(U,K,q,ie,$,re,ve,he,oe):(pe&64||pe&128)&&Y.process(U,K,q,ie,$,re,ve,he,oe,fe)}te!=null&&$&&Nx(te,U&&U.ref,re,K||U,!K)},g=(U,K,q,ie)=>{if(U==null)n(K.el=s(K.children),q,ie);else{const $=K.el=U.el;K.children!==U.children&&u($,K.children)}},m=(U,K,q,ie)=>{U==null?n(K.el=l(K.children||""),q,ie):K.el=U.el},y=(U,K,q,ie)=>{[U.el,U.anchor]=v(U.children,K,q,ie,U.el,U.anchor)},b=({el:U,anchor:K},q,ie)=>{let $;for(;U&&U!==K;)$=f(U),n(U,q,ie),U=$;n(K,q,ie)},w=({el:U,anchor:K})=>{let q;for(;U&&U!==K;)q=f(U),a(U),U=q;a(K)},x=(U,K,q,ie,$,re,ve,he,oe)=>{ve=ve||K.type==="svg",U==null?S(K,q,ie,$,re,ve,he,oe):T(U,K,$,re,ve,he,oe)},S=(U,K,q,ie,$,re,ve,he)=>{let oe,Y;const{type:te,props:pe,shapeFlag:de,transition:we,patchFlag:De,dirs:ze}=U;if(U.el&&h!==void 0&&De===-1)oe=U.el=h(U.el);else{if(oe=U.el=o(U.type,re,pe&&pe.is,pe),de&8?c(oe,U.children):de&16&&B(U.children,oe,null,ie,$,re&&te!=="foreignObject",ve,he),ze&&Is(U,null,ie,"created"),pe){for(const ke in pe)ke!=="value"&&!zg(ke)&&i(oe,ke,null,pe[ke],re,U.children,ie,$,se);"value"in pe&&i(oe,"value",null,pe.value),(Y=pe.onVnodeBeforeMount)&&ai(Y,ie,U)}_(oe,U,U.scopeId,ve,ie)}ze&&Is(U,null,ie,"beforeMount");const Xe=(!$||$&&!$.pendingBranch)&&we&&!we.persisted;Xe&&we.beforeEnter(oe),n(oe,K,q),((Y=pe&&pe.onVnodeMounted)||Xe||ze)&&pa(()=>{Y&&ai(Y,ie,U),Xe&&we.enter(oe),ze&&Is(U,null,ie,"mounted")},$)},_=(U,K,q,ie,$)=>{if(q&&A(U,q),ie)for(let re=0;re<ie.length;re++)A(U,ie[re]);if($){let re=$.subTree;if(K===re){const ve=$.vnode;_(U,ve,ve.scopeId,ve.slotScopeIds,$.parent)}}},B=(U,K,q,ie,$,re,ve,he,oe=0)=>{for(let Y=oe;Y<U.length;Y++){const te=U[Y]=he?zu(U[Y]):Ri(U[Y]);p(null,te,K,q,ie,$,re,ve,he)}},T=(U,K,q,ie,$,re,ve)=>{const he=K.el=U.el;let{patchFlag:oe,dynamicChildren:Y,dirs:te}=K;oe|=U.patchFlag&16;const pe=U.props||Vr,de=K.props||Vr;let we;q&&dd(q,!1),(we=de.onVnodeBeforeUpdate)&&ai(we,q,K,U),te&&Is(K,U,q,"beforeUpdate"),q&&dd(q,!0);const De=$&&K.type!=="foreignObject";if(Y?E(U.dynamicChildren,Y,he,q,ie,De,re):ve||H(U,K,he,null,q,ie,De,re,!1),oe>0){if(oe&16)I(he,K,pe,de,q,ie,$);else if(oe&2&&pe.class!==de.class&&i(he,"class",null,de.class,$),oe&4&&i(he,"style",pe.style,de.style,$),oe&8){const ze=K.dynamicProps;for(let Xe=0;Xe<ze.length;Xe++){const ke=ze[Xe],Ge=pe[ke],it=de[ke];(it!==Ge||ke==="value")&&i(he,ke,Ge,it,$,U.children,q,ie,se)}}oe&1&&U.children!==K.children&&c(he,K.children)}else!ve&&Y==null&&I(he,K,pe,de,q,ie,$);((we=de.onVnodeUpdated)||te)&&pa(()=>{we&&ai(we,q,K,U),te&&Is(K,U,q,"updated")},ie)},E=(U,K,q,ie,$,re,ve)=>{for(let he=0;he<K.length;he++){const oe=U[he],Y=K[he],te=oe.el&&(oe.type===rr||!Ds(oe,Y)||oe.shapeFlag&70)?d(oe.el):q;p(oe,Y,te,null,ie,$,re,ve,!0)}},I=(U,K,q,ie,$,re,ve)=>{if(q!==ie){for(const he in ie){if(zg(he))continue;const oe=ie[he],Y=q[he];oe!==Y&&he!=="value"&&i(U,he,Y,oe,ve,K.children,$,re,se)}if(q!==Vr)for(const he in q)!zg(he)&&!(he in ie)&&i(U,he,q[he],null,ve,K.children,$,re,se);"value"in ie&&i(U,"value",q.value,ie.value)}},R=(U,K,q,ie,$,re,ve,he,oe)=>{const Y=K.el=U?U.el:s(""),te=K.anchor=U?U.anchor:s("");let{patchFlag:pe,dynamicChildren:de,slotScopeIds:we}=K;we&&(he=he?he.concat(we):we),U==null?(n(Y,q,ie),n(te,q,ie),B(K.children,q,te,$,re,ve,he,oe)):pe>0&&pe&64&&de&&U.dynamicChildren?(E(U.dynamicChildren,de,q,$,re,ve,he),(K.key!=null||$&&K===$.subTree)&&QM(U,K,!0)):H(U,K,q,te,$,re,ve,he,oe)},D=(U,K,q,ie,$,re,ve,he,oe)=>{K.slotScopeIds=he,U==null?K.shapeFlag&512?$.ctx.activate(K,q,ie,ve,oe):k(K,q,ie,$,re,ve,oe):F(U,K,oe)},k=(U,K,q,ie,$,re,ve)=>{const he=U.component=oW(U,ie,$);if(Hm(U)&&(he.ctx.renderer=fe),lW(he),he.asyncDep){if($&&$.registerDep(he,P),!U.el){const oe=he.subTree=nr(ra);m(null,oe,K,q)}return}P(he,U,K,q,$,re,ve)},F=(U,K,q)=>{const ie=K.component=U.component;if(pue(U,K,q))if(ie.asyncDep&&!ie.asyncResolved){O(ie,K,q);return}else ie.next=K,uue(ie.update),ie.update();else K.el=U.el,ie.vnode=K},P=(U,K,q,ie,$,re,ve)=>{const he=()=>{if(U.isMounted){let{next:te,bu:pe,u:de,parent:we,vnode:De}=U,ze=te,Xe;dd(U,!1),te?(te.el=De.el,O(U,te,ve)):te=De,pe&&zh(pe),(Xe=te.props&&te.props.onVnodeBeforeUpdate)&&ai(Xe,we,te,De),dd(U,!0);const ke=q1(U),Ge=U.subTree;U.subTree=ke,p(Ge,ke,d(Ge.el),ce(Ge),U,$,re),te.el=ke.el,ze===null&&LM(U,ke.el),de&&pa(de,$),(Xe=te.props&&te.props.onVnodeUpdated)&&pa(()=>ai(Xe,we,te,De),$)}else{let te;const{el:pe,props:de}=K,{bm:we,m:De,parent:ze}=U,Xe=wf(K);if(dd(U,!1),we&&zh(we),!Xe&&(te=de&&de.onVnodeBeforeMount)&&ai(te,ze,K),dd(U,!0),pe&&J){const ke=()=>{U.subTree=q1(U),J(pe,U.subTree,U,$,null)};Xe?K.type.__asyncLoader().then(()=>!U.isUnmounted&&ke()):ke()}else{const ke=U.subTree=q1(U);p(null,ke,q,ie,U,$,re),K.el=ke.el}if(De&&pa(De,$),!Xe&&(te=de&&de.onVnodeMounted)){const ke=K;pa(()=>ai(te,ze,ke),$)}(K.shapeFlag&256||ze&&wf(ze.vnode)&&ze.vnode.shapeFlag&256)&&U.a&&pa(U.a,$),U.isMounted=!0,K=q=ie=null}},oe=U.effect=new $m(he,()=>kM(Y),U.scope),Y=U.update=()=>oe.run();Y.id=U.uid,dd(U,!0),Y()},O=(U,K,q)=>{K.component=U;const ie=U.vnode.props;U.vnode=K,U.next=null,Nue(U,K.props,ie,q),Wue(U,K.children,q),rA(),zC(void 0,U.update),nA()},H=(U,K,q,ie,$,re,ve,he,oe=!1)=>{const Y=U&&U.children,te=U?U.shapeFlag:0,pe=K.children,{patchFlag:de,shapeFlag:we}=K;if(de>0){if(de&128){W(Y,pe,q,ie,$,re,ve,he,oe);return}else if(de&256){V(Y,pe,q,ie,$,re,ve,he,oe);return}}we&8?(te&16&&se(Y,$,re),pe!==Y&&c(q,pe)):te&16?we&16?W(Y,pe,q,ie,$,re,ve,he,oe):se(Y,$,re,!0):(te&8&&c(q,""),we&16&&B(pe,q,ie,$,re,ve,he,oe))},V=(U,K,q,ie,$,re,ve,he,oe)=>{U=U||Uh,K=K||Uh;const Y=U.length,te=K.length,pe=Math.min(Y,te);let de;for(de=0;de<pe;de++){const we=K[de]=oe?zu(K[de]):Ri(K[de]);p(U[de],we,q,null,$,re,ve,he,oe)}Y>te?se(U,$,re,!0,!1,pe):B(K,q,ie,$,re,ve,he,oe,pe)},W=(U,K,q,ie,$,re,ve,he,oe)=>{let Y=0;const te=K.length;let pe=U.length-1,de=te-1;for(;Y<=pe&&Y<=de;){const we=U[Y],De=K[Y]=oe?zu(K[Y]):Ri(K[Y]);if(Ds(we,De))p(we,De,q,null,$,re,ve,he,oe);else break;Y++}for(;Y<=pe&&Y<=de;){const we=U[pe],De=K[de]=oe?zu(K[de]):Ri(K[de]);if(Ds(we,De))p(we,De,q,null,$,re,ve,he,oe);else break;pe--,de--}if(Y>pe){if(Y<=de){const we=de+1,De=we<te?K[we].el:ie;for(;Y<=de;)p(null,K[Y]=oe?zu(K[Y]):Ri(K[Y]),q,De,$,re,ve,he,oe),Y++}}else if(Y>de)for(;Y<=pe;)ee(U[Y],$,re,!0),Y++;else{const we=Y,De=Y,ze=new Map;for(Y=De;Y<=de;Y++){const ue=K[Y]=oe?zu(K[Y]):Ri(K[Y]);ue.key!=null&&ze.set(ue.key,Y)}let Xe,ke=0;const Ge=de-De+1;let it=!1,ut=0;const Ke=new Array(Ge);for(Y=0;Y<Ge;Y++)Ke[Y]=0;for(Y=we;Y<=pe;Y++){const ue=U[Y];if(ke>=Ge){ee(ue,$,re,!0);continue}let Te;if(ue.key!=null)Te=ze.get(ue.key);else for(Xe=De;Xe<=de;Xe++)if(Ke[Xe-De]===0&&Ds(ue,K[Xe])){Te=Xe;break}Te===void 0?ee(ue,$,re,!0):(Ke[Te-De]=Y+1,Te>=ut?ut=Te:it=!0,p(ue,K[Te],q,null,$,re,ve,he,oe),ke++)}const xt=it?Yue(Ke):Uh;for(Xe=xt.length-1,Y=Ge-1;Y>=0;Y--){const ue=De+Y,Te=K[ue],He=ue+1<te?K[ue+1].el:ie;Ke[Y]===0?p(null,Te,q,He,$,re,ve,he,oe):it&&(Xe<0||Y!==xt[Xe]?Z(Te,q,He,2):Xe--)}}},Z=(U,K,q,ie,$=null)=>{const{el:re,type:ve,transition:he,children:oe,shapeFlag:Y}=U;if(Y&6){Z(U.component.subTree,K,q,ie);return}if(Y&128){U.suspense.move(K,q,ie);return}if(Y&64){ve.move(U,K,q,fe);return}if(ve===rr){n(re,K,q);for(let pe=0;pe<oe.length;pe++)Z(oe[pe],K,q,ie);n(U.anchor,K,q);return}if(ve===Cf){b(U,K,q);return}if(ie!==2&&Y&1&&he)if(ie===0)he.beforeEnter(re),n(re,K,q),pa(()=>he.enter(re),$);else{const{leave:pe,delayLeave:de,afterLeave:we}=he,De=()=>n(re,K,q),ze=()=>{pe(re,()=>{De(),we&&we()})};de?de(re,De,ze):ze()}else n(re,K,q)},ee=(U,K,q,ie=!1,$=!1)=>{const{type:re,props:ve,ref:he,children:oe,dynamicChildren:Y,shapeFlag:te,patchFlag:pe,dirs:de}=U;if(he!=null&&Nx(he,null,q,U,!0),te&256){K.ctx.deactivate(U);return}const we=te&1&&de,De=!wf(U);let ze;if(De&&(ze=ve&&ve.onVnodeBeforeUnmount)&&ai(ze,K,U),te&6)le(U.component,q,ie);else{if(te&128){U.suspense.unmount(q,ie);return}we&&Is(U,null,K,"beforeUnmount"),te&64?U.type.remove(U,K,q,$,fe,ie):Y&&(re!==rr||pe>0&&pe&64)?se(Y,K,q,!1,!0):(re===rr&&pe&384||!$&&te&16)&&se(oe,K,q),ie&&ae(U)}(De&&(ze=ve&&ve.onVnodeUnmounted)||we)&&pa(()=>{ze&&ai(ze,K,U),we&&Is(U,null,K,"unmounted")},q)},ae=U=>{const{type:K,el:q,anchor:ie,transition:$}=U;if(K===rr){ne(q,ie);return}if(K===Cf){w(U);return}const re=()=>{a(q),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(U.shapeFlag&1&&$&&!$.persisted){const{leave:ve,delayLeave:he}=$,oe=()=>ve(q,re);he?he(U.el,re,oe):oe()}else re()},ne=(U,K)=>{let q;for(;U!==K;)q=f(U),a(U),U=q;a(K)},le=(U,K,q)=>{const{bum:ie,scope:$,update:re,subTree:ve,um:he}=U;ie&&zh(ie),$.stop(),re&&(re.active=!1,ee(ve,U,K,q)),he&&pa(he,K),pa(()=>{U.isUnmounted=!0},K),K&&K.pendingBranch&&!K.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===K.pendingId&&(K.deps--,K.deps===0&&K.resolve())},se=(U,K,q,ie=!1,$=!1,re=0)=>{for(let ve=re;ve<U.length;ve++)ee(U[ve],K,q,ie,$)},ce=U=>U.shapeFlag&6?ce(U.component.subTree):U.shapeFlag&128?U.suspense.next():f(U.anchor||U.el),ye=(U,K,q)=>{U==null?K._vnode&&ee(K._vnode,null,null,!0):p(K._vnode||null,U,K,null,null,null,q),Ux(),K._vnode=U},fe={p,um:ee,m:Z,r:ae,mt:k,mc:B,pc:H,pbc:E,n:ce,o:e};let Q,J;return t&&([Q,J]=t(fe)),{render:ye,hydrate:Q,createApp:Kue(ye,Q)}}function dd({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function QM(e,t,r=!1){const n=e.children,a=t.children;if(Pt(n)&&Pt(a))for(let i=0;i<n.length;i++){const o=n[i];let s=a[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[i]=zu(a[i]),s.el=o.el),r||QM(o,s))}}function Yue(e){const t=e.slice(),r=[0];let n,a,i,o,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(a=r[r.length-1],e[a]<u){t[n]=a,r.push(n);continue}for(i=0,o=r.length-1;i<o;)s=i+o>>1,e[r[s]]<u?i=s+1:o=s;u<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,o=r[i-1];i-- >0;)r[i]=o,o=t[o];return r}const Xue=e=>e.__isTeleport,Gg=e=>e&&(e.disabled||e.disabled===""),R5=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,dI=(e,t)=>{const r=e&&e.to;return yn(r)?t?t(r):null:r},que={__isTeleport:!0,process(e,t,r,n,a,i,o,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:A,querySelector:h,createText:v,createComment:p}}=u,g=Gg(t.props);let{shapeFlag:m,children:y,dynamicChildren:b}=t;if(e==null){const w=t.el=v(""),x=t.anchor=v("");A(w,r,n),A(x,r,n);const S=t.target=dI(t.props,h),_=t.targetAnchor=v("");S&&(A(_,S),o=o||R5(S));const B=(T,E)=>{m&16&&c(y,T,E,a,i,o,s,l)};g?B(r,x):S&&B(S,_)}else{t.el=e.el;const w=t.anchor=e.anchor,x=t.target=e.target,S=t.targetAnchor=e.targetAnchor,_=Gg(e.props),B=_?r:x,T=_?w:S;if(o=o||R5(x),b?(f(e.dynamicChildren,b,B,a,i,o,s),QM(e,t,!0)):l||d(e,t,B,T,a,i,o,s,!1),g)_||Qy(t,r,w,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=dI(t.props,h);E&&Qy(t,E,null,u,0)}else _&&Qy(t,x,S,u,1)}},remove(e,t,r,n,{um:a,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:f}=e;if(d&&i(c),(o||!Gg(f))&&(i(u),s&16))for(let A=0;A<l.length;A++){const h=l[A];a(h,t,r,!0,!!h.dynamicChildren)}},move:Qy,hydrate:Zue};function Qy(e,t,r,{o:{insert:n},m:a},i=2){i===0&&n(e.targetAnchor,t,r);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,d=i===2;if(d&&n(o,t,r),(!d||Gg(c))&&l&16)for(let f=0;f<u.length;f++)a(u[f],t,r,2);d&&n(s,t,r)}function Zue(e,t,r,n,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=dI(t.props,l);if(c){const d=c._lpa||c.firstChild;if(t.shapeFlag&16)if(Gg(t.props))t.anchor=u(o(e),t,s(e),r,n,a,i),t.targetAnchor=d;else{t.anchor=o(e);let f=d;for(;f;)if(f=o(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,c._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(d,t,c,r,n,a,i)}}return t.anchor&&o(t.anchor)}const kv=que,rr=Symbol(void 0),iv=Symbol(void 0),ra=Symbol(void 0),Cf=Symbol(void 0),Kg=[];let vi=null;function $a(e=!1){Kg.push(vi=e?null:[])}function rW(){Kg.pop(),vi=Kg[Kg.length-1]||null}let zf=1;function fI(e){zf+=e}function nW(e){return e.dynamicChildren=zf>0?vi||Uh:null,rW(),zf>0&&vi&&vi.push(e),e}function Xs(e,t,r,n,a,i){return nW(pi(e,t,r,n,a,i,!0))}function Pv(e,t,r,n,a){return nW(nr(e,t,r,n,a,!0))}function Kl(e){return e?e.__v_isVNode===!0:!1}function Ds(e,t){return e.type===t.type&&e.key===t.key}function Jue(e){}const jC="__vInternal",aW=({key:e})=>e!=null?e:null,Z1=({ref:e,ref_key:t,ref_for:r})=>e!=null?yn(e)||mn(e)||er(e)?{i:La,r:e,k:t,f:!!r}:e:null;function pi(e,t=null,r=null,n=0,a=null,i=e===rr?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&aW(t),ref:t&&Z1(t),scopeId:QC,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null};return s?(VM(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=yn(r)?8:16),zf>0&&!o&&vi&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&vi.push(l),l}const nr=ece;function ece(e,t=null,r=null,n=0,a=null,i=!1){if((!e||e===N9)&&(e=ra),Kl(e)){const s=wa(e,t,!0);return r&&VM(s,r),zf>0&&!i&&vi&&(s.shapeFlag&6?vi[vi.indexOf(e)]=s:vi.push(s)),s.patchFlag|=-2,s}if(dce(e)&&(e=e.__vccOpts),t){t=iW(t);let{class:s,style:l}=t;s&&!yn(s)&&(t.class=eA(s)),Rn(l)&&(EM(l)&&!Pt(l)&&(l=In({},l)),t.style=rs(l))}const o=yn(e)?1:F9(e)?128:Xue(e)?64:Rn(e)?4:er(e)?2:0;return pi(e,t,r,n,a,o,i,!0)}function iW(e){return e?EM(e)||jC in e?In({},e):e:null}function wa(e,t,r=!1){const{props:n,ref:a,patchFlag:i,children:o}=e,s=t?An(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&aW(s),ref:t&&t.ref?r&&a?Pt(a)?a.concat(Z1(t)):[a,Z1(t)]:Z1(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==rr?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&wa(e.ssContent),ssFallback:e.ssFallback&&wa(e.ssFallback),el:e.el,anchor:e.anchor}}function jl(e=" ",t=0){return nr(iv,null,e,t)}function tce(e,t){const r=nr(Cf,null,e);return r.staticCount=t,r}function rce(e="",t=!1){return t?($a(),Pv(ra,null,e)):nr(ra,null,e)}function Ri(e){return e==null||typeof e=="boolean"?nr(ra):Pt(e)?nr(rr,null,e.slice()):typeof e=="object"?zu(e):nr(iv,null,String(e))}function zu(e){return e.el===null||e.memo?e:wa(e)}function VM(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Pt(t))r=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),VM(e,a()),a._c&&(a._d=!0));return}else{r=32;const a=t._;!a&&!(jC in t)?t._ctx=La:a===3&&La&&(La.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else er(t)?(t={default:t,_ctx:La},r=32):(t=String(t),n&64?(r=16,t=[jl(t)]):r=8);e.children=t,e.shapeFlag|=r}function An(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const a in n)if(a==="class")t.class!==n.class&&(t.class=eA([t.class,n.class]));else if(a==="style")t.style=rs([t.style,n.style]);else if(Pm(a)){const i=t[a],o=n[a];o&&i!==o&&!(Pt(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=n[a])}return t}function ai(e,t,r,n=null){Hi(e,t,7,[r,n])}const nce=Z9();let ace=0;function oW(e,t,r){const n=e.type,a=(t?t.appContext:e.appContext)||nce,i={uid:ace++,vnode:e,type:n,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new SM(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:j9(n,a),emitsOptions:I9(n,a),emit:null,emitted:null,propsDefaults:Vr,inheritAttrs:n.inheritAttrs,ctx:Vr,data:Vr,props:Vr,attrs:Vr,slots:Vr,refs:Vr,setupState:Vr,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=due.bind(null,i),e.ce&&e.ce(i),i}let Zn=null;const Ba=()=>Zn||La,_c=e=>{Zn=e,e.scope.on()},lc=()=>{Zn&&Zn.scope.off(),Zn=null};function sW(e){return e.vnode.shapeFlag&4}let ov=!1;function lW(e,t=!1){ov=t;const{props:r,children:n}=e.vnode,a=sW(e);zue(e,r,a,t),Vue(e,n);const i=a?ice(e,t):void 0;return ov=!1,i}function ice(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Gl(new Proxy(e.ctx,sI));const{setup:n}=r;if(n){const a=e.setupContext=n.length>1?cW(e):null;_c(e),rA();const i=zs(n,e,0,[e.props,a]);if(nA(),lc(),wM(i)){if(i.then(lc,lc),t)return i.then(o=>{AI(e,o,t)}).catch(o=>{aA(o,e,0)});e.asyncDep=i}else AI(e,i,t)}else uW(e,t)}function AI(e,t,r){er(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Rn(t)&&(e.setupState=DM(t)),uW(e,r)}let Qx,hI;function oce(e){Qx=e,hI=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Pue))}}const sce=()=>!Qx;function uW(e,t,r){const n=e.type;if(!e.render){if(!t&&Qx&&!n.render){const a=n.template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=In(In({isCustomElement:i,delimiters:s},o),l);n.render=Qx(a,u)}}e.render=n.render||Zo,hI&&hI(e)}_c(e),rA(),Lue(e),nA(),lc()}function lce(e){return new Proxy(e.attrs,{get(t,r){return Vi(e,"get","$attrs"),t[r]}})}function cW(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=lce(e))},slots:e.slots,emit:e.emit,expose:t}}function YC(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(DM(Gl(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Hx)return Hx[r](e)}}))}const uce=/(?:^|[-_])(\w)/g,cce=e=>e.replace(uce,t=>t.toUpperCase()).replace(/[-_]/g,"");function Vx(e,t=!0){return er(e)?e.displayName||e.name:e.name||t&&e.__name}function dW(e,t,r=!1){let n=Vx(t);if(!n&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(n=a[1])}if(!n&&e&&e.parent){const a=i=>{for(const o in i)if(i[o]===t)return o};n=a(e.components||e.parent.type.components)||a(e.appContext.components)}return n?cce(n):r?"App":"Anonymous"}function dce(e){return er(e)&&"__vccOpts"in e}const L=(e,t)=>rue(e,t,ov);function fce(){return null}function Ace(){return null}function hce(e){}function vce(e,t){return null}function pce(){return fW().slots}function gce(){return fW().attrs}function fW(){const e=Ba();return e.setupContext||(e.setupContext=cW(e))}function mce(e,t){const r=Pt(e)?e.reduce((n,a)=>(n[a]={},n),{}):e;for(const n in t){const a=r[n];a?Pt(a)||er(a)?r[n]={type:a,default:t[n]}:a.default=t[n]:a===null&&(r[n]={default:t[n]})}return r}function yce(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function bce(e){const t=Ba();let r=e();return lc(),wM(r)&&(r=r.catch(n=>{throw _c(t),n})),[r,()=>_c(t)]}function C(e,t,r){const n=arguments.length;return n===2?Rn(t)&&!Pt(t)?Kl(t)?nr(e,null,[t]):nr(e,t):nr(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Kl(r)&&(r=[r]),nr(e,t,r))}const AW=Symbol(""),xce=()=>{{const e=We(AW);return e||w9("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function wce(){}function Cce(e,t,r,n){const a=r[n];if(a&&hW(a,e))return a;const i=t();return i.memo=e.slice(),r[n]=i}function hW(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(rv(r[n],t[n]))return!1;return zf>0&&vi&&vi.push(e),!0}const vW="3.2.37",Sce={createComponentInstance:oW,setupComponent:lW,renderComponentRoot:q1,setCurrentRenderingInstance:F0,isVNode:Kl,normalizeVNode:Ri},_ce=Sce,Bce=null,Tce=null,Ece="http://www.w3.org/2000/svg",rf=typeof document!="undefined"?document:null,D5=rf&&rf.createElement("template"),Ice={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const a=t?rf.createElementNS(Ece,e):rf.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:e=>rf.createTextNode(e),createComment:e=>rf.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rf.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,n,a,i){const o=r?r.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===i||!(a=a.nextSibling)););else{D5.innerHTML=n?`<svg>${e}</svg>`:e;const s=D5.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function Rce(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function Dce(e,t,r){const n=e.style,a=yn(r);if(r&&!a){for(const i in r)vI(n,i,r[i]);if(t&&!yn(t))for(const i in t)r[i]==null&&vI(n,i,"")}else{const i=n.display;a?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=i)}}const F5=/\s*!important$/;function vI(e,t,r){if(Pt(r))r.forEach(n=>vI(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Fce(e,t);F5.test(r)?e.setProperty(Hs(n),r.replace(F5,""),"important"):e[n]=r}}const M5=["Webkit","Moz","ms"],sB={};function Fce(e,t){const r=sB[t];if(r)return r;let n=Qi(t);if(n!=="filter"&&n in e)return sB[t]=n;n=Om(n);for(let a=0;a<M5.length;a++){const i=M5[a]+n;if(i in e)return sB[t]=i}return t}const k5="http://www.w3.org/1999/xlink";function Mce(e,t,r,n,a){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(k5,t.slice(6,t.length)):e.setAttributeNS(k5,t,r);else{const i=ile(t);r==null||i&&!r9(r)?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}function kce(e,t,r,n,a,i,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,a,i),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;const l=r==null?"":r;(e.value!==l||e.tagName==="OPTION")&&(e.value=l),r==null&&e.removeAttribute(t);return}let s=!1;if(r===""||r==null){const l=typeof e[t];l==="boolean"?r=r9(r):r==null&&l==="string"?(r="",s=!0):l==="number"&&(r=0,s=!0)}try{e[t]=r}catch(l){}s&&e.removeAttribute(t)}const[pW,Pce]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const r=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(r&&Number(r[1])<=53)}return[e,t]})();let pI=0;const Lce=Promise.resolve(),Oce=()=>{pI=0},$ce=()=>pI||(Lce.then(Oce),pI=pW());function Rl(e,t,r,n){e.addEventListener(t,r,n)}function Uce(e,t,r,n){e.removeEventListener(t,r,n)}function Hce(e,t,r,n,a=null){const i=e._vei||(e._vei={}),o=i[t];if(n&&o)o.value=n;else{const[s,l]=zce(t);if(n){const u=i[t]=Nce(n,a);Rl(e,s,u,l)}else o&&(Uce(e,s,o,l),i[t]=void 0)}}const P5=/(?:Once|Passive|Capture)$/;function zce(e){let t;if(P5.test(e)){t={};let r;for(;r=e.match(P5);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Hs(e.slice(2)),t]}function Nce(e,t){const r=n=>{const a=n.timeStamp||pW();(Pce||a>=r.attached-1)&&Hi(Qce(n,r.value),t,5,[n])};return r.value=e,r.attached=$ce(),r}function Qce(e,t){if(Pt(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const L5=/^on[a-z]/,Vce=(e,t,r,n,a=!1,i,o,s,l)=>{t==="class"?Rce(e,n,a):t==="style"?Dce(e,r,n):Pm(t)?bM(t)||Hce(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wce(e,t,n,a))?kce(e,t,n,i,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mce(e,t,n,a))};function Wce(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&L5.test(t)&&er(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||L5.test(t)&&yn(r)?!1:t in e}function gW(e,t){const r=ge(e);class n extends XC{constructor(i){super(r,i,t)}}return n.def=r,n}const Gce=e=>gW(e,DW),Kce=typeof HTMLElement!="undefined"?HTMLElement:class{};class XC extends Kce{constructor(t,r={},n){super(),this._def=t,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,ar(()=>{this._connected||(mI(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);new MutationObserver(n=>{for(const a of n)this._setAttr(a.attributeName)}).observe(this,{attributes:!0});const t=n=>{const{props:a,styles:i}=n,o=!Pt(a),s=a?o?Object.keys(a):a:[];let l;if(o)for(const u in this._props){const c=a[u];(c===Number||c&&c.type===Number)&&(this._props[u]=Cc(this._props[u]),(l||(l=Object.create(null)))[u]=!0)}this._numberProps=l;for(const u of Object.keys(this))u[0]!=="_"&&this._setProp(u,this[u],!0,!1);for(const u of s.map(Qi))Object.defineProperty(this,u,{get(){return this._getProp(u)},set(c){this._setProp(u,c)}});this._applyStyles(i),this._update()},r=this._def.__asyncLoader;r?r().then(t):t(this._def)}_setAttr(t){let r=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(r=Cc(r)),this._setProp(Qi(t),r,!1)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,a=!0){r!==this._props[t]&&(this._props[t]=r,a&&this._instance&&this._update(),n&&(r===!0?this.setAttribute(Hs(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Hs(t),r+""):r||this.removeAttribute(Hs(t))))}_update(){mI(this._createVNode(),this.shadowRoot)}_createVNode(){const t=nr(this._def,In({},this._props));return this._instance||(t.ce=r=>{this._instance=r,r.isCE=!0,r.emit=(a,...i)=>{this.dispatchEvent(new CustomEvent(a,{detail:i}))};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof XC){r.parent=n._instance;break}}),t}_applyStyles(t){t&&t.forEach(r=>{const n=document.createElement("style");n.textContent=r,this.shadowRoot.appendChild(n)})}}function jce(e="$style"){{const t=Ba();if(!t)return Vr;const r=t.type.__cssModules;if(!r)return Vr;const n=r[e];return n||Vr}}function Yce(e){const t=Ba();if(!t)return;const r=()=>gI(t.subTree,e(t.proxy));k9(r),Ar(()=>{const n=new MutationObserver(r);n.observe(t.subTree.el.parentNode,{childList:!0}),iA(()=>n.disconnect())})}function gI(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{gI(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)O5(e.el,t);else if(e.type===rr)e.children.forEach(r=>gI(r,t));else if(e.type===Cf){let{el:r,anchor:n}=e;for(;r&&(O5(r,t),r!==n);)r=r.nextSibling}}function O5(e,t){if(e.nodeType===1){const r=e.style;for(const n in t)r.setProperty(`--${n}`,t[n])}}const yu="transition",wp="animation",zr=(e,{slots:t})=>C(UM,yW(e),t);zr.displayName="Transition";const mW={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Xce=zr.props=In({},UM.props,mW),fd=(e,t=[])=>{Pt(e)?e.forEach(r=>r(...t)):e&&e(...t)},$5=e=>e?Pt(e)?e.some(t=>t.length>1):e.length>1:!1;function yW(e){const t={};for(const I in e)I in mW||(t[I]=e[I]);if(e.css===!1)return t;const{name:r="v",type:n,duration:a,enterFromClass:i=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:A=`${r}-leave-to`}=e,h=qce(a),v=h&&h[0],p=h&&h[1],{onBeforeEnter:g,onEnter:m,onEnterCancelled:y,onLeave:b,onLeaveCancelled:w,onBeforeAppear:x=g,onAppear:S=m,onAppearCancelled:_=y}=t,B=(I,R,D)=>{ku(I,R?c:s),ku(I,R?u:o),D&&D()},T=(I,R)=>{I._isLeaving=!1,ku(I,d),ku(I,A),ku(I,f),R&&R()},E=I=>(R,D)=>{const k=I?S:m,F=()=>B(R,I,D);fd(k,[R,F]),U5(()=>{ku(R,I?l:i),Cl(R,I?c:s),$5(k)||H5(R,n,v,F)})};return In(t,{onBeforeEnter(I){fd(g,[I]),Cl(I,i),Cl(I,o)},onBeforeAppear(I){fd(x,[I]),Cl(I,l),Cl(I,u)},onEnter:E(!1),onAppear:E(!0),onLeave(I,R){I._isLeaving=!0;const D=()=>T(I,R);Cl(I,d),xW(),Cl(I,f),U5(()=>{!I._isLeaving||(ku(I,d),Cl(I,A),$5(b)||H5(I,n,p,D))}),fd(b,[I,D])},onEnterCancelled(I){B(I,!1),fd(y,[I])},onAppearCancelled(I){B(I,!0),fd(_,[I])},onLeaveCancelled(I){T(I),fd(w,[I])}})}function qce(e){if(e==null)return null;if(Rn(e))return[lB(e.enter),lB(e.leave)];{const t=lB(e);return[t,t]}}function lB(e){return Cc(e)}function Cl(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function ku(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function U5(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Zce=0;function H5(e,t,r,n){const a=e._endId=++Zce,i=()=>{a===e._endId&&n()};if(r)return setTimeout(i,r);const{type:o,timeout:s,propCount:l}=bW(e,t);if(!o)return n();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,f),i()},f=A=>{A.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,f)}function bW(e,t){const r=window.getComputedStyle(e),n=h=>(r[h]||"").split(", "),a=n(yu+"Delay"),i=n(yu+"Duration"),o=z5(a,i),s=n(wp+"Delay"),l=n(wp+"Duration"),u=z5(s,l);let c=null,d=0,f=0;t===yu?o>0&&(c=yu,d=o,f=i.length):t===wp?u>0&&(c=wp,d=u,f=l.length):(d=Math.max(o,u),c=d>0?o>u?yu:wp:null,f=c?c===yu?i.length:l.length:0);const A=c===yu&&/\b(transform|all)(,|$)/.test(r[yu+"Property"]);return{type:c,timeout:d,propCount:f,hasTransform:A}}function z5(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>N5(r)+N5(e[n])))}function N5(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function xW(){return document.body.offsetHeight}const wW=new WeakMap,CW=new WeakMap,Jce={name:"TransitionGroup",props:In({},Xce,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Ba(),n=$M();let a,i;return Nm(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!nde(a[0].el,r.vnode.el,o))return;a.forEach(ede),a.forEach(tde);const s=a.filter(rde);xW(),s.forEach(l=>{const u=l.el,c=u.style;Cl(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u._moveCb=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u._moveCb=null,ku(u,o))};u.addEventListener("transitionend",d)})}),()=>{const o=_r(e),s=yW(o);let l=o.tag||rr;a=i,i=t.default?VC(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Uf(c,av(c,s,n,r))}if(a)for(let u=0;u<a.length;u++){const c=a[u];Uf(c,av(c,s,n,r)),wW.set(c,c.el.getBoundingClientRect())}return nr(l,null,i)}}},qC=Jce;function ede(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function tde(e){CW.set(e,e.el.getBoundingClientRect())}function rde(e){const t=wW.get(e),r=CW.get(e),n=t.left-r.left,a=t.top-r.top;if(n||a){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${a}px)`,i.transitionDuration="0s",e}}function nde(e,t,r){const n=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),r.split(/\s+/).forEach(o=>o&&n.classList.add(o)),n.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(n);const{hasTransform:i}=bW(n);return a.removeChild(n),i}const Bc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Pt(t)?r=>zh(t,r):t};function ade(e){e.target.composing=!0}function Q5(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Wx={created(e,{modifiers:{lazy:t,trim:r,number:n}},a){e._assign=Bc(a);const i=n||a.props&&a.props.type==="number";Rl(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),i&&(s=Cc(s)),e._assign(s)}),r&&Rl(e,"change",()=>{e.value=e.value.trim()}),t||(Rl(e,"compositionstart",ade),Rl(e,"compositionend",Q5),Rl(e,"change",Q5))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:a}},i){if(e._assign=Bc(i),e.composing||document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===t||(a||e.type==="number")&&Cc(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},WM={deep:!0,created(e,t,r){e._assign=Bc(r),Rl(e,"change",()=>{const n=e._modelValue,a=sv(e),i=e.checked,o=e._assign;if(Pt(n)){const s=kC(n,a),l=s!==-1;if(i&&!l)o(n.concat(a));else if(!i&&l){const u=[...n];u.splice(s,1),o(u)}}else if(tA(n)){const s=new Set(n);i?s.add(a):s.delete(a),o(s)}else o(_W(e,i))})},mounted:V5,beforeUpdate(e,t,r){e._assign=Bc(r),V5(e,t,r)}};function V5(e,{value:t,oldValue:r},n){e._modelValue=t,Pt(t)?e.checked=kC(t,n.props.value)>-1:tA(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=wc(t,_W(e,!0)))}const GM={created(e,{value:t},r){e.checked=wc(t,r.props.value),e._assign=Bc(r),Rl(e,"change",()=>{e._assign(sv(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e._assign=Bc(n),t!==r&&(e.checked=wc(t,n.props.value))}},SW={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const a=tA(t);Rl(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?Cc(sv(o)):sv(o));e._assign(e.multiple?a?new Set(i):i:i[0])}),e._assign=Bc(n)},mounted(e,{value:t}){W5(e,t)},beforeUpdate(e,t,r){e._assign=Bc(r)},updated(e,{value:t}){W5(e,t)}};function W5(e,t){const r=e.multiple;if(!(r&&!Pt(t)&&!tA(t))){for(let n=0,a=e.options.length;n<a;n++){const i=e.options[n],o=sv(i);if(r)Pt(t)?i.selected=kC(t,o)>-1:i.selected=t.has(o);else if(wc(sv(i),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function sv(e){return"_value"in e?e._value:e.value}function _W(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const BW={created(e,t,r){Vy(e,t,r,null,"created")},mounted(e,t,r){Vy(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){Vy(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){Vy(e,t,r,n,"updated")}};function TW(e,t){switch(e){case"SELECT":return SW;case"TEXTAREA":return Wx;default:switch(t){case"checkbox":return WM;case"radio":return GM;default:return Wx}}}function Vy(e,t,r,n,a){const o=TW(e.tagName,r.props&&r.props.type)[a];o&&o(e,t,r,n)}function ide(){Wx.getSSRProps=({value:e})=>({value:e}),GM.getSSRProps=({value:e},t)=>{if(t.props&&wc(t.props.value,e))return{checked:!0}},WM.getSSRProps=({value:e},t)=>{if(Pt(e)){if(t.props&&kC(e,t.props.value)>-1)return{checked:!0}}else if(tA(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},BW.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=TW(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const ode=["ctrl","shift","alt","meta"],sde={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ode.some(r=>e[`${r}Key`]&&!t.includes(r))},lde=(e,t)=>(r,...n)=>{for(let a=0;a<t.length;a++){const i=sde[t[a]];if(i&&i(r,t))return}return e(r,...n)},ude={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},cde=(e,t)=>r=>{if(!("key"in r))return;const n=Hs(r.key);if(t.some(a=>a===n||ude[a]===n))return e(r)},Bn={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Cp(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Cp(e,!0),n.enter(e)):n.leave(e,()=>{Cp(e,!1)}):Cp(e,t))},beforeUnmount(e,{value:t}){Cp(e,t)}};function Cp(e,t){e.style.display=t?e._vod:"none"}function dde(){Bn.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const EW=In({patchProp:Vce},Ice);let jg,G5=!1;function IW(){return jg||(jg=J9(EW))}function RW(){return jg=G5?jg:eW(EW),G5=!0,jg}const mI=(...e)=>{IW().render(...e)},DW=(...e)=>{RW().hydrate(...e)},yI=(...e)=>{const t=IW().createApp(...e),{mount:r}=t;return t.mount=n=>{const a=FW(n);if(!a)return;const i=t._component;!er(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t},fde=(...e)=>{const t=RW().createApp(...e),{mount:r}=t;return t.mount=n=>{const a=FW(n);if(a)return r(a,!0,a instanceof SVGElement)},t};function FW(e){return yn(e)?document.querySelector(e):e}let K5=!1;const Ade=()=>{K5||(K5=!0,ide(),dde())},hde=()=>{};var vde=Object.freeze(Object.defineProperty({__proto__:null,compile:hde,EffectScope:SM,ReactiveEffect:$m,customRef:Jle,effect:wle,effectScope:_M,getCurrentScope:mle,isProxy:EM,isReactive:Ol,isReadonly:nv,isRef:mn,isShallow:Ox,markRaw:Gl,onScopeDispose:yle,proxyRefs:DM,reactive:Bo,readonly:ns,ref:X,shallowReactive:y9,shallowReadonly:jle,shallowRef:b9,stop:Cle,toRaw:_r,toRef:Ie,toRefs:FM,triggerRef:Xle,unref:$n,camelize:Qi,capitalize:Om,normalizeClass:eA,normalizeProps:ule,normalizeStyle:rs,toDisplayString:yM,toHandlerKey:Ng,BaseTransition:UM,Comment:ra,Fragment:rr,KeepAlive:Eue,Static:Cf,Suspense:mue,Teleport:kv,Text:iv,callWithAsyncErrorHandling:Hi,callWithErrorHandling:zs,cloneVNode:wa,compatUtils:Tce,computed:L,createBlock:Pv,createCommentVNode:rce,createElementBlock:Xs,createElementVNode:pi,createHydrationRenderer:eW,createPropsRestProxy:yce,createRenderer:J9,createSlots:Mue,createStaticVNode:tce,createTextVNode:jl,createVNode:nr,defineAsyncComponent:Bue,defineComponent:ge,defineEmits:Ace,defineExpose:hce,defineProps:fce,get devtools(){return mh},getCurrentInstance:Ba,getTransitionRawChildren:VC,guardReactiveProps:iW,h:C,handleError:aA,initCustomFormatter:wce,inject:We,isMemoSame:hW,isRuntimeOnly:sce,isVNode:Kl,mergeDefaults:mce,mergeProps:An,nextTick:ar,onActivated:WC,onBeforeMount:ou,onBeforeUnmount:kr,onBeforeUpdate:KC,onDeactivated:zm,onErrorCaptured:z9,onMounted:Ar,onRenderTracked:H9,onRenderTriggered:U9,onServerPrefetch:$9,onUnmounted:iA,onUpdated:Nm,openBlock:$a,popScopeId:D9,provide:Ct,pushScopeId:R9,queuePostFlushCb:PM,registerRuntimeCompiler:oce,renderList:Q9,renderSlot:Qm,resolveComponent:Hf,resolveDirective:Fue,resolveDynamicComponent:Due,resolveFilter:Bce,resolveTransitionHooks:av,setBlockTracking:fI,setDevtoolsHook:E9,setTransitionHooks:Uf,ssrContextKey:AW,ssrUtils:_ce,toHandlers:kue,transformVNodeArgs:Jue,useAttrs:gce,useSSRContext:xce,useSlots:pce,useTransitionState:$M,version:vW,warn:w9,watch:mt,watchEffect:yr,watchPostEffect:k9,watchSyncEffect:Cue,withAsyncContext:bce,withCtx:Dl,withDefaults:vce,withDirectives:jr,withMemo:Cce,withScopeId:fue,Transition:zr,TransitionGroup:qC,VueElement:XC,createApp:yI,createSSRApp:fde,defineCustomElement:gW,defineSSRCustomElement:Gce,hydrate:DW,initDirectivesForSSR:Ade,render:mI,useCssModule:jce,useCssVars:Yce,vModelCheckbox:WM,vModelDynamic:BW,vModelRadio:GM,vModelSelect:SW,vModelText:Wx,vShow:Bn,withKeys:cde,withModifiers:lde},Symbol.toStringTag,{value:"Module"}));let Gx=[];const MW=new WeakMap;function pde(){Gx.forEach(e=>e(...MW.get(e))),Gx=[]}function lv(e,...t){MW.set(e,t),!Gx.includes(e)&&Gx.push(e)===1&&requestAnimationFrame(pde)}function gde(e){return e.nodeType===9?null:e.parentNode}function kW(e){if(e===null)return null;const t=gde(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:a}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+a+n))return t}return kW(t)}function mde(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function Wi(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function as(e){return e.composedPath()[0]||null}function yde(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(r=>{if(r==="")return;const[n,a]=r.split(":");a===void 0?t[""]=n:t[n]=a}),t}function Sp(e,t){var r;if(e==null)return;const n=yde(e);if(t===void 0)return n[""];if(typeof t=="string")return(r=n[t])!==null&&r!==void 0?r:n[""];if(Array.isArray(t)){for(let a=t.length-1;a>=0;--a){const i=t[a];if(i in n)return n[i]}return n[""]}else{let a,i=-1;return Object.keys(n).forEach(o=>{const s=Number(o);!Number.isNaN(s)&&t>=s&&s>=i&&(i=s,a=n[o])}),a}}function ma(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Tn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function uc(e,t){const r=e.trim().split(/\s+/g),n={top:r[0]};switch(r.length){case 1:n.right=r[0],n.bottom=r[0],n.left=r[0];break;case 2:n.right=r[1],n.left=r[1],n.bottom=r[0];break;case 3:n.right=r[1],n.bottom=r[2],n.left=r[1];break;case 4:n.right=r[1],n.bottom=r[2],n.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}function bde(e,t){const[r,n]=e.split(" ");return t?t==="row"?r:n:{row:r,col:n||r}}var j5={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function PW(e,t,r){t/=100,r/=100;const n=t*Math.min(r,1-r)+r;return[e,n?(2-2*r/n)*100:0,n*100]}function J1(e,t,r){t/=100,r/=100;const n=r-r*t/2,a=Math.min(n,1-n);return[e,a?(r-n)/a*100:0,n*100]}function Ku(e,t,r){t/=100,r/=100;let n=(a,i=(a+e/60)%6)=>r-r*t*Math.max(Math.min(i,4-i,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function bI(e,t,r){e/=255,t/=255,r/=255;let n=Math.max(e,t,r),a=n-Math.min(e,t,r),i=a&&(n==e?(t-r)/a:n==t?2+(r-e)/a:4+(e-t)/a);return[60*(i<0?i+6:i),n&&a/n*100,n*100]}function xI(e,t,r){e/=255,t/=255,r/=255;let n=Math.max(e,t,r),a=n-Math.min(e,t,r),i=1-Math.abs(n+n-a-1),o=a&&(n==e?(t-r)/a:n==t?2+(r-e)/a:4+(e-t)/a);return[60*(o<0?o+6:o),i?a/i*100:0,(n+n-a)*50]}function wI(e,t,r){t/=100,r/=100;let n=t*Math.min(r,1-r),a=(i,o=(i+e/30)%12)=>r-n*Math.max(Math.min(o-3,9-o,1),-1);return[a(0)*255,a(8)*255,a(4)*255]}const al="^\\s*",il="\\s*$",Tc="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Pi="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",cf="([0-9A-Fa-f])",df="([0-9A-Fa-f]{2})",xde=new RegExp(`${al}hsl\\s*\\(${Pi},${Tc},${Tc}\\)${il}`),wde=new RegExp(`${al}hsv\\s*\\(${Pi},${Tc},${Tc}\\)${il}`),Cde=new RegExp(`${al}hsla\\s*\\(${Pi},${Tc},${Tc},${Pi}\\)${il}`),Sde=new RegExp(`${al}hsva\\s*\\(${Pi},${Tc},${Tc},${Pi}\\)${il}`),_de=new RegExp(`${al}rgb\\s*\\(${Pi},${Pi},${Pi}\\)${il}`),Bde=new RegExp(`${al}rgba\\s*\\(${Pi},${Pi},${Pi},${Pi}\\)${il}`),KM=new RegExp(`${al}#${cf}${cf}${cf}${il}`),jM=new RegExp(`${al}#${df}${df}${df}${il}`),YM=new RegExp(`${al}#${cf}${cf}${cf}${cf}${il}`),XM=new RegExp(`${al}#${df}${df}${df}${df}${il}`);function ti(e){return parseInt(e,16)}function Qh(e){try{let t;if(t=Cde.exec(e))return[qs(t[1]),Gn(t[5]),Gn(t[9]),$l(t[13])];if(t=xde.exec(e))return[qs(t[1]),Gn(t[5]),Gn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function Sf(e){try{let t;if(t=Sde.exec(e))return[qs(t[1]),Gn(t[5]),Gn(t[9]),$l(t[13])];if(t=wde.exec(e))return[qs(t[1]),Gn(t[5]),Gn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Qn(e){try{let t;if(t=jM.exec(e))return[ti(t[1]),ti(t[2]),ti(t[3]),1];if(t=_de.exec(e))return[_n(t[1]),_n(t[5]),_n(t[9]),1];if(t=Bde.exec(e))return[_n(t[1]),_n(t[5]),_n(t[9]),$l(t[13])];if(t=KM.exec(e))return[ti(t[1]+t[1]),ti(t[2]+t[2]),ti(t[3]+t[3]),1];if(t=XM.exec(e))return[ti(t[1]),ti(t[2]),ti(t[3]),$l(ti(t[4])/255)];if(t=YM.exec(e))return[ti(t[1]+t[1]),ti(t[2]+t[2]),ti(t[3]+t[3]),$l(ti(t[4]+t[4])/255)];if(e in j5)return Qn(j5[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Tde(e){return e>1?1:e<0?0:e}function Ede(e,t,r){return`rgb(${_n(e)}, ${_n(t)}, ${_n(r)})`}function CI(e,t,r,n){return`rgba(${_n(e)}, ${_n(t)}, ${_n(r)}, ${Tde(n)})`}function uB(e,t,r,n,a){return _n((e*t*(1-n)+r*n)/a)}function Et(e,t){Array.isArray(e)||(e=Qn(e)),Array.isArray(t)||(t=Qn(t));const r=e[3],n=t[3],a=$l(r+n-r*n);return CI(uB(e[0],r,t[0],n,a),uB(e[1],r,t[1],n,a),uB(e[2],r,t[2],n,a),a)}function Ve(e,t){const[r,n,a,i=1]=Array.isArray(e)?e:Qn(e);return t.alpha?CI(r,n,a,t.alpha):CI(r,n,a,i)}function kn(e,t){const[r,n,a,i=1]=Array.isArray(e)?e:Qn(e),{lightness:o=1,alpha:s=1}=t;return Ns([r*o,n*o,a*o,i*s])}function $l(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function qs(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function _n(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Gn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function SI(e){const[t,r,n]=Array.isArray(e)?e:Qn(e);return Ede(t,r,n)}function Ns(e){const[t,r,n]=e;return 3 in e?`rgba(${_n(t)}, ${_n(r)}, ${_n(n)}, ${$l(e[3])})`:`rgba(${_n(t)}, ${_n(r)}, ${_n(n)}, 1)`}function _I(e){return`hsv(${qs(e[0])}, ${Gn(e[1])}%, ${Gn(e[2])}%)`}function _f(e){const[t,r,n]=e;return 3 in e?`hsva(${qs(t)}, ${Gn(r)}%, ${Gn(n)}%, ${$l(e[3])})`:`hsva(${qs(t)}, ${Gn(r)}%, ${Gn(n)}%, 1)`}function BI(e){return`hsl(${qs(e[0])}, ${Gn(e[1])}%, ${Gn(e[2])}%)`}function cc(e){const[t,r,n]=e;return 3 in e?`hsla(${qs(t)}, ${Gn(r)}%, ${Gn(n)}%, ${$l(e[3])})`:`hsla(${qs(t)}, ${Gn(r)}%, ${Gn(n)}%, 1)`}function dc(e){if(typeof e=="string"){let n;if(n=jM.exec(e))return`${n[0]}FF`;if(n=XM.exec(e))return n[0];if(n=KM.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}FF`;if(n=YM.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}${n[4]}${n[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(n=>_n(n).toString(16).toUpperCase().padStart(2,"0")).join("")}`,r=e.length===3?"FF":_n(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+r}function Yg(e){if(typeof e=="string"){let t;if(t=jM.exec(e))return t[0];if(t=XM.exec(e))return t[0].slice(0,7);if(t=KM.exec(e)||YM.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>_n(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function yo(e=8){return Math.random().toString(16).slice(2,2+e)}function LW(e,t){const r=[];for(let n=0;n<e;++n)r.push(t);return r}function Ide(e,t){const r=[];if(!t){for(let n=0;n<e;++n)r.push(n);return r}for(let n=0;n<e;++n)r.push(t(n));return r}function Vm(e,t="default",r=[]){const a=e.$slots[t];return a===void 0?r:a()}function Y5(e,t="default",r=[]){const{children:n}=e;if(n!==null&&typeof n=="object"&&!Array.isArray(n)){const a=n[t];if(typeof a=="function")return a()}return r}function zi(e,t=[],r){const n={};return t.forEach(a=>{n[a]=e[a]}),Object.assign(n,r)}function Lv(e,t=[],r){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,r)}function go(e,t=!0,r=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&r.push(jl(String(n)));return}if(Array.isArray(n)){go(n,t,r);return}if(n.type===rr){if(n.children===null)return;Array.isArray(n.children)&&go(n.children,t,r)}else n.type!==ra&&r.push(n)}}),r}function Ee(e,...t){if(Array.isArray(e))e.forEach(r=>Ee(r,...t));else return e(...t)}function Zs(e){return Object.keys(e)}const Mr=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?jl(e):typeof e=="number"?jl(String(e)):null,X5=new Set;function Rde(e,t){const r=`[naive/${e}]: ${t}`;X5.has(r)||(X5.add(r),console.error(r))}function is(e,t){console.error(`[naive/${e}]: ${t}`)}function Ta(e,t){throw new Error(`[naive/${e}]: ${t}`)}function q5(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function OW(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function TI(e,t="default",r=void 0){const n=e[t];if(!n)return is("getFirstSlotVNode",`slot[${t}] is empty`),null;const a=go(n(r));return a.length===1?a[0]:(is("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function $W(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function UW(e){return t=>{t?e.value=t.$el:e.value=null}}function Ov(e){return e.some(t=>Kl(t)?!(t.type===ra||t.type===rr&&!Ov(t.children)):!0)?e:null}function Wt(e,t){return e&&Ov(e())||t()}function k0(e,t,r){return e&&Ov(e(t))||r(t)}function or(e,t){const r=e&&Ov(e());return t(r||null)}function Dde(e,t,r){const n=e&&Ov(e(t));return r(n||null)}function Bf(e){return!(e&&Ov(e()))}function Xg(e){const t=e.filter(r=>r!==void 0);if(t.length!==0)return t.length===1?t[0]:r=>{e.forEach(n=>{n&&n(r)})}}function Fde(e){var t;const r=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:n})=>n===Bn);return!!(r&&r.value===!1)}const EI=ge({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Mde=/^(\d|\.)+$/,Z5=/(\d|\.)+/;function pr(e,{c:t=1,offset:r=0,attachPx:n=!0}={}){if(typeof e=="number"){const a=(e+r)*t;return a===0?"0":`${a}px`}else if(typeof e=="string")if(Mde.test(e)){const a=(Number(e)+r)*t;return n?a===0?"0":`${a}px`:`${a}`}else{const a=Z5.exec(e);return a?e.replace(Z5,String((Number(a[0])+r)*t)):e}return e}function uv(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function kde(e){let t=0;for(let r=0;r<e.length;++r)e[r]==="&"&&++t;return t}const HW=/\s*,(?![^(]*\))\s*/g,Pde=/\s+/g;function Lde(e,t){const r=[];return t.split(HW).forEach(n=>{let a=kde(n);if(a){if(a===1){e.forEach(o=>{r.push(n.replace("&",o))});return}}else{e.forEach(o=>{r.push((o&&o+" ")+n)});return}let i=[n];for(;a--;){const o=[];i.forEach(s=>{e.forEach(l=>{o.push(s.replace("&",l))})}),i=o}i.forEach(o=>r.push(o))}),r}function Ode(e,t){const r=[];return t.split(HW).forEach(n=>{e.forEach(a=>{r.push((a&&a+" ")+n)})}),r}function $de(e){let t=[""];return e.forEach(r=>{r=r&&r.trim(),r&&(r.includes("&")?t=Lde(t,r):t=Ode(t,r))}),t.join(", ").replace(Pde," ")}function J5(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function ZC(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Ude(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Wy(e){return e?/^\s*@(s|m)/.test(e):!1}const Hde=/[A-Z]/g;function zW(e){return e.replace(Hde,t=>"-"+t.toLowerCase())}function zde(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
`+Object.entries(e).map(r=>t+` ${zW(r[0])}: ${r[1]};`).join(`
|
|
`)+`
|
|
`+t+"}":`: ${e};`}function Nde(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function eO(e,t,r,n){if(!t)return"";const a=Nde(t,r,n);if(!a)return"";if(typeof a=="string")return`${e} {
|
|
${a}
|
|
}`;const i=Object.keys(a);if(i.length===0)return r.config.keepEmptyBlock?e+` {
|
|
}`:"";const o=e?[e+" {"]:[];return i.forEach(s=>{const l=a[s];if(s==="raw"){o.push(`
|
|
`+l+`
|
|
`);return}s=zW(s),l!=null&&o.push(` ${s}${zde(l)}`)}),e&&o.push("}"),o.join(`
|
|
`)}function II(e,t,r){!e||e.forEach(n=>{if(Array.isArray(n))II(n,t,r);else if(typeof n=="function"){const a=n(t);Array.isArray(a)?II(a,t,r):a&&r(a)}else n&&r(n)})}function NW(e,t,r,n,a,i){const o=e.$;let s="";if(!o||typeof o=="string")Wy(o)?s=o:t.push(o);else if(typeof o=="function"){const c=o({context:n.context,props:a});Wy(c)?s=c:t.push(c)}else if(o.before&&o.before(n.context),!o.$||typeof o.$=="string")Wy(o.$)?s=o.$:t.push(o.$);else if(o.$){const c=o.$({context:n.context,props:a});Wy(c)?s=c:t.push(c)}const l=$de(t),u=eO(l,e.props,n,a);s?(r.push(`${s} {`),i&&u&&i.insertRule(`${s} {
|
|
${u}
|
|
}
|
|
`)):(i&&u&&i.insertRule(u),!i&&u.length&&r.push(u)),e.children&&II(e.children,{context:n.context,props:a},c=>{if(typeof c=="string"){const d=eO(l,{raw:c},n,a);i?i.insertRule(d):r.push(d)}else NW(c,t,r,n,a,i)}),t.pop(),s&&r.push("}"),o&&o.after&&o.after(n.context)}function QW(e,t,r,n=!1){const a=[];return NW(e,[],a,t,r,n?e.instance.__styleSheet:void 0),n?"":a.join(`
|
|
|
|
`)}function P0(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window!="undefined"&&(window.__cssrContext={});function Qde(e,t,r){const{els:n}=t;if(r===void 0)n.forEach(J5),t.els=[];else{const a=ZC(r);a&&n.includes(a)&&(J5(a),t.els=n.filter(i=>i!==a))}}function tO(e,t){e.push(t)}function Vde(e,t,r,n,a,i,o,s,l){if(i&&!l){if(r===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const f=window.__cssrContext;f[r]||(f[r]=!0,QW(t,e,n,i));return}let u;if(r===void 0&&(u=t.render(n),r=P0(u)),l){l.adapter(r,u!=null?u:t.render(n));return}const c=ZC(r);if(c!==null&&!o)return c;const d=c!=null?c:Ude(r);if(u===void 0&&(u=t.render(n)),d.textContent=u,c!==null)return c;if(s){const f=document.head.querySelector(`meta[name="${s}"]`);if(f)return document.head.insertBefore(d,f),tO(t.els,d),d}return a?document.head.insertBefore(d,document.head.querySelector("style, link")):document.head.appendChild(d),tO(t.els,d),d}function Wde(e){return QW(this,this.instance,e)}function Gde(e={}){const{id:t,ssr:r,props:n,head:a=!1,silent:i=!1,force:o=!1,anchorMetaName:s}=e;return Vde(this.instance,this,t,n,a,i,o,s,r)}function Kde(e={}){const{id:t}=e;Qde(this.instance,this,t)}const Gy=function(e,t,r,n){return{instance:e,$:t,props:r,children:n,els:[],render:Wde,mount:Gde,unmount:Kde}},jde=function(e,t,r,n){return Array.isArray(t)?Gy(e,{$:null},null,t):Array.isArray(r)?Gy(e,t,null,r):Array.isArray(n)?Gy(e,t,r,n):Gy(e,t,r,null)};function VW(e={}){let t=null;const r={c:(...n)=>jde(r,...n),use:(n,...a)=>n.install(r,...a),find:ZC,context:{},config:e,get __styleSheet(){if(!t){const n=document.createElement("style");return document.head.appendChild(n),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}function Yde(e,t){if(e===void 0)return!1;if(t){const{context:{ids:r}}=t;return r.has(e)}return ZC(e)!==null}function Xde(e){let t=".",r="__",n="--",a;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(r=h),h=e.modifierPrefix,h&&(n=h)}const i={install(h){a=h.c;const v=h.context;v.bem={},v.bem.b=null,v.bem.els=null}};function o(h){let v,p;return{before(g){v=g.bem.b,p=g.bem.els,g.bem.els=null},after(g){g.bem.b=v,g.bem.els=p},$({context:g,props:m}){return h=typeof h=="string"?h:h({context:g,props:m}),g.bem.b=h,`${(m==null?void 0:m.bPrefix)||t}${g.bem.b}`}}}function s(h){let v;return{before(p){v=p.bem.els},after(p){p.bem.els=v},$({context:p,props:g}){return h=typeof h=="string"?h:h({context:p,props:g}),p.bem.els=h.split(",").map(m=>m.trim()),p.bem.els.map(m=>`${(g==null?void 0:g.bPrefix)||t}${p.bem.b}${r}${m}`).join(", ")}}}function l(h){return{$({context:v,props:p}){h=typeof h=="string"?h:h({context:v,props:p});const g=h.split(",").map(b=>b.trim());function m(b){return g.map(w=>`&${(p==null?void 0:p.bPrefix)||t}${v.bem.b}${b!==void 0?`${r}${b}`:""}${n}${w}`).join(", ")}const y=v.bem.els;return y!==null?m(y[0]):m()}}}function u(h){return{$({context:v,props:p}){h=typeof h=="string"?h:h({context:v,props:p});const g=v.bem.els;return`&:not(${(p==null?void 0:p.bPrefix)||t}${v.bem.b}${g!==null&&g.length>0?`${r}${g[0]}`:""}${n}${h})`}}}return Object.assign(i,{cB:(...h)=>a(o(h[0]),h[1],h[2]),cE:(...h)=>a(s(h[0]),h[1],h[2]),cM:(...h)=>a(l(h[0]),h[1],h[2]),cNotM:(...h)=>a(u(h[0]),h[1],h[2])}),i}function Se(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,r=>r.toUpperCase()))}Se("abc","def");const qde="n",L0=`.${qde}-`,Zde="__",Jde="--",WW=VW(),GW=Xde({blockPrefix:L0,elementPrefix:Zde,modifierPrefix:Jde});WW.use(GW);const{c:N,find:q1t}=WW,{cB:M,cE:G,cM:j,cNotM:Nt}=GW;function su(e){return N(({props:{bPrefix:t}})=>`${t||L0}modal, ${t||L0}drawer`,[e])}function Kc(e){return N(({props:{bPrefix:t}})=>`${t||L0}popover`,[e])}function KW(e){return N(({props:{bPrefix:t}})=>`&${t||L0}modal`,e)}const efe=(...e)=>N(">",[M(...e)]);let cB;function tfe(){return cB===void 0&&(cB=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),cB}const To=typeof document!="undefined"&&typeof window!="undefined",jW=new WeakSet;function O0(e){jW.add(e)}function YW(e){return!jW.has(e)}function rfe(e,t,r){var n;const a=We(e,null);if(a===null)return;const i=(n=Ba())===null||n===void 0?void 0:n.proxy;mt(r,o),o(r.value),kr(()=>{o(void 0,r.value)});function o(u,c){const d=a[t];c!==void 0&&s(d,c),u!==void 0&&l(d,u)}function s(u,c){u[c]||(u[c]=[]),u[c].splice(u[c].findIndex(d=>d===i),1)}function l(u,c){u[c]||(u[c]=[]),~u[c].findIndex(d=>d===i)||u[c].push(i)}}function nfe(e,t,r){if(!t)return e;const n=X(e.value);let a=null;return mt(e,i=>{a!==null&&window.clearTimeout(a),i===!0?r&&!r.value?n.value=!0:a=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}function XW(e){const t=X(!!e.value);if(t.value)return ns(t);const r=mt(e,n=>{n&&(t.value=!0,r())});return ns(t)}function Rt(e){const t=L(e),r=X(t.value);return mt(t,n=>{r.value=n}),typeof e=="function"?r:{__v_isRef:!0,get value(){return r.value},set value(n){e.set(n)}}}function qM(){return Ba()!==null}const JC=typeof window!="undefined";let Vh,qg;const afe=()=>{var e,t;Vh=JC?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,qg=!1,Vh!==void 0?Vh.then(()=>{qg=!0}):qg=!0};afe();function ZM(e){if(qg)return;let t=!1;Ar(()=>{qg||Vh==null||Vh.then(()=>{t||e()})}),kr(()=>{t=!0})}function ex(e){return e.composedPath()[0]}const ife={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function ofe(e,t,r){if(e==="mousemoveoutside"){const n=a=>{t.contains(ex(a))||r(a)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const a=o=>{n=!t.contains(ex(o))},i=o=>{!n||t.contains(ex(o))||r(o)};return{mousedown:a,mouseup:i,touchstart:a,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function qW(e,t,r){const n=ife[e];let a=n.get(t);a===void 0&&n.set(t,a=new WeakMap);let i=a.get(r);return i===void 0&&a.set(r,i=ofe(e,t,r)),i}function sfe(e,t,r,n){if(e==="mousemoveoutside"||e==="clickoutside"){const a=qW(e,t,r);return Object.keys(a).forEach(i=>{Zt(i,document,a[i],n)}),!0}return!1}function lfe(e,t,r,n){if(e==="mousemoveoutside"||e==="clickoutside"){const a=qW(e,t,r);return Object.keys(a).forEach(i=>{jt(i,document,a[i],n)}),!0}return!1}function ufe(){if(typeof window=="undefined")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function r(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function a(S,_,B){const T=S[_];return S[_]=function(){return B.apply(S,arguments),T.apply(S,arguments)},S}function i(S,_){S[_]=Event.prototype[_]}const o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var S;return(S=o.get(this))!==null&&S!==void 0?S:null}function u(S,_){s!==void 0&&Object.defineProperty(S,"currentTarget",{configurable:!0,enumerable:!0,get:_!=null?_:s.get})}const c={bubble:{},capture:{}},d={};function f(){const S=function(_){const{type:B,eventPhase:T,bubbles:E}=_,I=ex(_);if(T===2)return;const R=T===1?"capture":"bubble";let D=I;const k=[];for(;D===null&&(D=window),k.push(D),D!==window;)D=D.parentNode||null;const F=c.capture[B],P=c.bubble[B];if(a(_,"stopPropagation",r),a(_,"stopImmediatePropagation",n),u(_,l),R==="capture"){if(F===void 0)return;for(let O=k.length-1;O>=0&&!e.has(_);--O){const H=k[O],V=F.get(H);if(V!==void 0){o.set(_,H);for(const W of V){if(t.has(_))break;W(_)}}if(O===0&&!E&&P!==void 0){const W=P.get(H);if(W!==void 0)for(const Z of W){if(t.has(_))break;Z(_)}}}}else if(R==="bubble"){if(P===void 0)return;for(let O=0;O<k.length&&!e.has(_);++O){const H=k[O],V=P.get(H);if(V!==void 0){o.set(_,H);for(const W of V){if(t.has(_))break;W(_)}}}}i(_,"stopPropagation"),i(_,"stopImmediatePropagation"),u(_)};return S.displayName="evtdUnifiedHandler",S}function A(){const S=function(_){const{type:B,eventPhase:T}=_;if(T!==2)return;const E=d[B];E!==void 0&&E.forEach(I=>I(_))};return S.displayName="evtdUnifiedWindowEventHandler",S}const h=f(),v=A();function p(S,_){const B=c[S];return B[_]===void 0&&(B[_]=new Map,window.addEventListener(_,h,S==="capture")),B[_]}function g(S){return d[S]===void 0&&(d[S]=new Set,window.addEventListener(S,v)),d[S]}function m(S,_){let B=S.get(_);return B===void 0&&S.set(_,B=new Set),B}function y(S,_,B,T){const E=c[_][B];if(E!==void 0){const I=E.get(S);if(I!==void 0&&I.has(T))return!0}return!1}function b(S,_){const B=d[S];return!!(B!==void 0&&B.has(_))}function w(S,_,B,T){let E;if(typeof T=="object"&&T.once===!0?E=F=>{x(S,_,E,T),B(F)}:E=B,sfe(S,_,E,T))return;const R=T===!0||typeof T=="object"&&T.capture===!0?"capture":"bubble",D=p(R,S),k=m(D,_);if(k.has(E)||k.add(E),_===window){const F=g(S);F.has(E)||F.add(E)}}function x(S,_,B,T){if(lfe(S,_,B,T))return;const I=T===!0||typeof T=="object"&&T.capture===!0,R=I?"capture":"bubble",D=p(R,S),k=m(D,_);if(_===window&&!y(_,I?"bubble":"capture",S,B)&&b(S,B)){const P=d[S];P.delete(B),P.size===0&&(window.removeEventListener(S,v),d[S]=void 0)}k.has(B)&&k.delete(B),k.size===0&&D.delete(_),D.size===0&&(window.removeEventListener(S,h,R==="capture"),c[R][S]=void 0)}return{on:w,off:x}}const{on:Zt,off:jt}=ufe(),pg=X(null);function rO(e){if(e.clientX>0||e.clientY>0)pg.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:r,top:n,width:a,height:i}=t.getBoundingClientRect();r>0||n>0?pg.value={x:r+a/2,y:n+i/2}:pg.value={x:0,y:0}}else pg.value=null}}let Ky=0,nO=!0;function ZW(){if(!JC)return ns(X(null));Ky===0&&Zt("click",document,rO,!0);const e=()=>{Ky+=1};return nO&&(nO=qM())?(ou(e),kr(()=>{Ky-=1,Ky===0&&jt("click",document,rO,!0)})):e(),ns(pg)}const cfe=X(void 0);let jy=0;function aO(){cfe.value=Date.now()}let iO=!0;function JW(e){if(!JC)return ns(X(!1));const t=X(!1);let r=null;function n(){r!==null&&window.clearTimeout(r)}function a(){n(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}jy===0&&Zt("click",window,aO,!0);const i=()=>{jy+=1,Zt("click",window,a,!0)};return iO&&(iO=qM())?(ou(i),kr(()=>{jy-=1,jy===0&&jt("click",window,aO,!0),jt("click",window,a,!0),n()})):i(),ns(t)}function Sr(e,t){return mt(e,r=>{r!==void 0&&(t.value=r)}),L(()=>e.value===void 0?t.value:e.value)}function ji(){const e=X(!1);return Ar(()=>{e.value=!0}),ns(e)}function Ec(e,t){return L(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}const dfe=(typeof window=="undefined"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function ffe(){return dfe}const Afe={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function hfe(e){return`(min-width: ${e}px)`}const _p={};function vfe(e=Afe){if(!JC)return L(()=>[]);if(typeof window.matchMedia!="function")return L(()=>[]);const t=X({}),r=Object.keys(e),n=(a,i)=>{a.matches?t.value[i]=!0:t.value[i]=!1};return r.forEach(a=>{const i=e[a];let o,s;_p[i]===void 0?(o=window.matchMedia(hfe(i)),o.addEventListener?o.addEventListener("change",l=>{s.forEach(u=>{u(l,a)})}):o.addListener&&o.addListener(l=>{s.forEach(u=>{u(l,a)})}),s=new Set,_p[i]={mql:o,cbs:s}):(o=_p[i].mql,s=_p[i].cbs),s.add(n),o.matches&&s.forEach(l=>{l(o,a)})}),kr(()=>{r.forEach(a=>{const{cbs:i}=_p[e[a]];i.has(n)&&i.delete(n)})}),L(()=>{const{value:a}=t;return r.filter(i=>a[i])})}function JM(e={},t){const r=Bo({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:a}=e,i=l=>{switch(l.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}n!==void 0&&Object.keys(n).forEach(u=>{if(u!==l.key)return;const c=n[u];if(typeof c=="function")c(l);else{const{stop:d=!1,prevent:f=!1}=c;d&&l.stopPropagation(),f&&l.preventDefault(),c.handler(l)}})},o=l=>{switch(l.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}a!==void 0&&Object.keys(a).forEach(u=>{if(u!==l.key)return;const c=a[u];if(typeof c=="function")c(l);else{const{stop:d=!1,prevent:f=!1}=c;d&&l.stopPropagation(),f&&l.preventDefault(),c.handler(l)}})},s=()=>{(t===void 0||t.value)&&(Zt("keydown",document,i),Zt("keyup",document,o)),t!==void 0&&mt(t,l=>{l?(Zt("keydown",document,i),Zt("keyup",document,o)):(jt("keydown",document,i),jt("keyup",document,o))})};return qM()?(ou(s),kr(()=>{(t===void 0||t.value)&&(jt("keydown",document,i),jt("keyup",document,o))})):s(),ns(r)}const ek="n-internal-select-menu",eG="n-internal-select-menu-body",Wm="n-modal-body",tG="n-modal",Gm="n-drawer-body",tk="n-drawer",$v="n-popover-body",rG="__disabled__";function Dn(e){const t=We(Wm,null),r=We(Gm,null),n=We($v,null),a=We(eG,null),i=X();if(typeof document!="undefined"){i.value=document.fullscreenElement;const o=()=>{i.value=document.fullscreenElement};Ar(()=>{Zt("fullscreenchange",document,o)}),kr(()=>{jt("fullscreenchange",document,o)})}return Rt(()=>{var o;const{to:s}=e;return s!==void 0?s===!1?rG:s===!0?i.value||"body":s:t!=null&&t.value?(o=t.value.$el)!==null&&o!==void 0?o:t.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:a!=null&&a.value?a.value:s!=null?s:i.value||"body"})}Dn.tdkey=rG;Dn.propTo={type:[String,Object,Boolean],default:void 0};let oO=!1;function rk(){if(!!To&&!!window.CSS&&!oO&&(oO=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch(e){}}function RI(e,t,r="default"){const n=t[r];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);return n()}function DI(e,t=!0,r=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&r.push(jl(String(n)));return}if(Array.isArray(n)){DI(n,t,r);return}if(n.type===rr){if(n.children===null)return;Array.isArray(n.children)&&DI(n.children,t,r)}else n.type!==ra&&r.push(n)}}),r}function sO(e,t,r="default"){const n=t[r];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);const a=DI(n());if(a.length===1)return a[0];throw new Error(`[vueuc/${e}]: slot[${r}] should have exactly one child.`)}let bu=null;function nG(){if(bu===null&&(bu=document.getElementById("v-binder-view-measurer"),bu===null)){bu=document.createElement("div"),bu.id="v-binder-view-measurer";const{style:e}=bu;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(bu)}return bu.getBoundingClientRect()}function pfe(e,t){const r=nG();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function dB(e){const t=e.getBoundingClientRect(),r=nG();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function gfe(e){return e.nodeType===9?null:e.parentNode}function aG(e){if(e===null)return null;const t=gfe(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:a}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+a+n))return t}return aG(t)}const mfe=ge({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Ct("VBinder",(t=Ba())===null||t===void 0?void 0:t.proxy);const r=We("VBinder",null),n=X(null),a=g=>{n.value=g,r&&e.syncTargetWithParent&&r.setTargetRef(g)};let i=[];const o=()=>{let g=n.value;for(;g=aG(g),g!==null;)i.push(g);for(const m of i)Zt("scroll",m,d,!0)},s=()=>{for(const g of i)jt("scroll",g,d,!0);i=[]},l=new Set,u=g=>{l.size===0&&o(),l.has(g)||l.add(g)},c=g=>{l.has(g)&&l.delete(g),l.size===0&&s()},d=()=>{lv(f)},f=()=>{l.forEach(g=>g())},A=new Set,h=g=>{A.size===0&&Zt("resize",window,p),A.has(g)||A.add(g)},v=g=>{A.has(g)&&A.delete(g),A.size===0&&jt("resize",window,p)},p=()=>{A.forEach(g=>g())};return kr(()=>{jt("resize",window,p),s()}),{targetRef:n,setTargetRef:a,addScrollListener:u,removeScrollListener:c,addResizeListener:h,removeResizeListener:v}},render(){return RI("binder",this.$slots)}});var jc=mfe,Yc=ge({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=We("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?jr(sO("follower",this.$slots),[[t]]):sO("follower",this.$slots)}});const BA="@@mmoContext",yfe={mounted(e,{value:t}){e[BA]={handler:void 0},typeof t=="function"&&(e[BA].handler=t,Zt("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[BA];typeof t=="function"?r.handler?r.handler!==t&&(jt("mousemoveoutside",e,r.handler),r.handler=t,Zt("mousemoveoutside",e,t)):(e[BA].handler=t,Zt("mousemoveoutside",e,t)):r.handler&&(jt("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[BA];t&&jt("mousemoveoutside",e,t),e[BA].handler=void 0}};var bfe=yfe;const TA="@@coContext",xfe={mounted(e,{value:t,modifiers:r}){e[TA]={handler:void 0},typeof t=="function"&&(e[TA].handler=t,Zt("clickoutside",e,t,{capture:r.capture}))},updated(e,{value:t,modifiers:r}){const n=e[TA];typeof t=="function"?n.handler?n.handler!==t&&(jt("clickoutside",e,n.handler,{capture:r.capture}),n.handler=t,Zt("clickoutside",e,t,{capture:r.capture})):(e[TA].handler=t,Zt("clickoutside",e,t,{capture:r.capture})):n.handler&&(jt("clickoutside",e,n.handler,{capture:r.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:r}=e[TA];r&&jt("clickoutside",e,r,{capture:t.capture}),e[TA].handler=void 0}};var Js=xfe;function wfe(e,t){console.error(`[vdirs/${e}]: ${t}`)}class Cfe{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,r){const{elementZIndex:n}=this;if(r!==void 0){t.style.zIndex=`${r}`,n.delete(t);return}const{nextZIndex:a}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${a}`,n.set(t,a),this.nextZIndex=a+1,this.squashState())}unregister(t,r){const{elementZIndex:n}=this;n.has(t)?n.delete(t):r===void 0&&wfe("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((r,n)=>r[1]-n[1]),this.nextZIndex=2e3,t.forEach(r=>{const n=r[0],a=this.nextZIndex++;`${a}`!==n.style.zIndex&&(n.style.zIndex=`${a}`)})}}var fB=new Cfe;const EA="@@ziContext",Sfe={mounted(e,t){const{value:r={}}=t,{zIndex:n,enabled:a}=r;e[EA]={enabled:!!a,initialized:!1},a&&(fB.ensureZIndex(e,n),e[EA].initialized=!0)},updated(e,t){const{value:r={}}=t,{zIndex:n,enabled:a}=r,i=e[EA].enabled;a&&!i&&(fB.ensureZIndex(e,n),e[EA].initialized=!0),e[EA].enabled=!!a},unmounted(e,t){if(!e[EA].initialized)return;const{value:r={}}=t,{zIndex:n}=r;fB.unregister(e,n)}};var Km=Sfe;const iG=Symbol("@css-render/vue3-ssr");function _fe(e,t){return`<style cssr-id="${e}">
|
|
${t}
|
|
</style>`}function Bfe(e,t){const r=We(iG,null);if(r===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:n,ids:a}=r;a.has(e)||n!==null&&(a.add(e),n.push(_fe(e,t)))}const Tfe=typeof document!="undefined";function Xc(){if(Tfe)return;const e=We(iG,null);if(e!==null)return{adapter:Bfe,context:e}}function lO(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Ls}=VW(),eS="vueuc-style";function uO(e){return e&-e}class Efe{constructor(t,r){this.l=t,this.min=r;const n=new Array(t+1);for(let a=0;a<t+1;++a)n[a]=0;this.ft=n}add(t,r){if(r===0)return;const{l:n,ft:a}=this;for(t+=1;t<=n;)a[t]+=r,t+=uO(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:r,min:n,l:a}=this;if(t>a)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*n;for(;t>0;)i+=r[t],t-=uO(t);return i}getBound(t){let r=0,n=this.l;for(;n>r;){const a=Math.floor((r+n)/2),i=this.sum(a);if(i>t){n=a;continue}else if(i<t){if(r===a)return this.sum(r+1)<=t?r+1:a;r=a}else return a}return r}}function cO(e){return typeof e=="string"?document.querySelector(e):e()}var jm=ge({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:XW(Ie(e,"show")),mergedTo:L(()=>{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?RI("lazy-teleport",this.$slots):C(kv,{disabled:this.disabled,to:this.mergedTo},RI("lazy-teleport",this.$slots)):null}});const Yy={top:"bottom",bottom:"top",left:"right",right:"left"},dO={start:"end",center:"center",end:"start"},AB={top:"height",bottom:"height",left:"width",right:"width"},Ife={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Rfe={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Dfe={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},fO={top:!0,bottom:!1,left:!0,right:!1},AO={top:"end",bottom:"start",left:"end",right:"start"};function Ffe(e,t,r,n,a,i){if(!a||i)return{placement:e,top:0,left:0};const[o,s]=e.split("-");let l=s!=null?s:"center",u={top:0,left:0};const c=(A,h,v)=>{let p=0,g=0;const m=r[A]-t[h]-t[A];return m>0&&n&&(v?g=fO[h]?m:-m:p=fO[h]?m:-m),{left:p,top:g}},d=o==="left"||o==="right";if(l!=="center"){const A=Dfe[e],h=Yy[A],v=AB[A];if(r[v]>t[v]){if(t[A]+t[v]<r[v]){const p=(r[v]-t[v])/2;t[A]<p||t[h]<p?t[A]<t[h]?(l=dO[s],u=c(v,h,d)):u=c(v,A,d):l="center"}}else r[v]<t[v]&&t[h]<0&&t[A]>t[h]&&(l=dO[s])}else{const A=o==="bottom"||o==="top"?"left":"top",h=Yy[A],v=AB[A],p=(r[v]-t[v])/2;(t[A]<p||t[h]<p)&&(t[A]>t[h]?(l=AO[A],u=c(v,A,d)):(l=AO[h],u=c(v,h,d)))}let f=o;return t[o]<r[AB[o]]&&t[o]<t[Yy[o]]&&(f=Yy[o]),{placement:l!=="center"?`${f}-${l}`:f,left:u.left,top:u.top}}function Mfe(e,t){return t?Rfe[e]:Ife[e]}function kfe(e,t,r,n,a,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+a)}px`,transform:""};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width+a)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+a)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width+a)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width+a)}px`,transform:""};case"right-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width+a)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+a)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+a)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width/2+a)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2+n)}px`,left:`${Math.round(r.left-t.left+r.width+a)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2+n)}px`,left:`${Math.round(r.left-t.left+a)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width/2+a)}px`,transform:"translateX(-50%)"}}}const Pfe=Ls([Ls(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Ls(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Ls("> *",{pointerEvents:"all"})])]);var qc=ge({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=We("VBinder"),r=Rt(()=>e.enabled!==void 0?e.enabled:e.show),n=X(null),a=X(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(l),f.includes("resize")&&t.addResizeListener(l)},o=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};Ar(()=>{r.value&&(l(),i())});const s=Xc();Pfe.mount({id:"vueuc/binder",head:!0,anchorMetaName:eS,ssr:s}),kr(()=>{o()}),ZM(()=>{r.value&&l()});const l=()=>{if(!r.value)return;const f=n.value;if(f===null)return;const A=t.targetRef,{x:h,y:v,overlap:p}=e,g=h!==void 0&&v!==void 0?pfe(h,v):dB(A);f.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:m,minWidth:y,placement:b,internalShift:w,flip:x}=e;f.setAttribute("v-placement",b),p?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:S}=f;m==="target"?S.width=`${g.width}px`:m!==void 0?S.width=m:S.width="",y==="target"?S.minWidth=`${g.width}px`:y!==void 0?S.minWidth=y:S.minWidth="";const _=dB(f),B=dB(a.value),{left:T,top:E,placement:I}=Ffe(b,g,_,w,x,p),R=Mfe(I,p),{left:D,top:k,transform:F}=kfe(I,B,g,E,T,p);f.setAttribute("v-placement",I),f.style.setProperty("--v-offset-left",`${Math.round(T)}px`),f.style.setProperty("--v-offset-top",`${Math.round(E)}px`),f.style.transform=`translateX(${D}) translateY(${k}) ${F}`,f.style.setProperty("--v-transform-origin",R),f.style.transformOrigin=R};mt(r,f=>{f?(i(),u()):o()});const u=()=>{ar().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{mt(Ie(e,f),l)}),["teleportDisabled"].forEach(f=>{mt(Ie(e,f),u)}),mt(Ie(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const c=ji(),d=Rt(()=>{const{to:f}=e;if(f!==void 0)return f;c.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:a,followerRef:n,mergedTo:d,syncPosition:l}},render(){return C(jm,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=C("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[C("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?jr(r,[[Km,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}}),Tf=[],Lfe=function(){return Tf.some(function(e){return e.activeTargets.length>0})},Ofe=function(){return Tf.some(function(e){return e.skippedTargets.length>0})},hO="ResizeObserver loop completed with undelivered notifications.",$fe=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:hO}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=hO),window.dispatchEvent(e)},$0;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})($0||($0={}));var Ef=function(e){return Object.freeze(e)},Ufe=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Ef(this)}return e}(),oG=function(){function e(t,r,n,a){return this.x=t,this.y=r,this.width=n,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ef(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,a=t.top,i=t.right,o=t.bottom,s=t.left,l=t.width,u=t.height;return{x:r,y:n,top:a,right:i,bottom:o,left:s,width:l,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),nk=function(e){return e instanceof SVGElement&&"getBBox"in e},sG=function(e){if(nk(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var a=e,i=a.offsetWidth,o=a.offsetHeight;return!(i||o||e.getClientRects().length)},vO=function(e){var t,r;if(e instanceof Element)return!0;var n=(r=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||r===void 0?void 0:r.defaultView;return!!(n&&e instanceof n.Element)},Hfe=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Zg=typeof window!="undefined"?window:{},Xy=new WeakMap,pO=/auto|scroll/,zfe=/^tb|vertical/,Nfe=/msie|trident/i.test(Zg.navigator&&Zg.navigator.userAgent),ps=function(e){return parseFloat(e||"0")},Wh=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new Ufe((r?t:e)||0,(r?e:t)||0)},gO=Ef({devicePixelContentBoxSize:Wh(),borderBoxSize:Wh(),contentBoxSize:Wh(),contentRect:new oG(0,0,0,0)}),lG=function(e,t){if(t===void 0&&(t=!1),Xy.has(e)&&!t)return Xy.get(e);if(sG(e))return Xy.set(e,gO),gO;var r=getComputedStyle(e),n=nk(e)&&e.ownerSVGElement&&e.getBBox(),a=!Nfe&&r.boxSizing==="border-box",i=zfe.test(r.writingMode||""),o=!n&&pO.test(r.overflowY||""),s=!n&&pO.test(r.overflowX||""),l=n?0:ps(r.paddingTop),u=n?0:ps(r.paddingRight),c=n?0:ps(r.paddingBottom),d=n?0:ps(r.paddingLeft),f=n?0:ps(r.borderTopWidth),A=n?0:ps(r.borderRightWidth),h=n?0:ps(r.borderBottomWidth),v=n?0:ps(r.borderLeftWidth),p=d+u,g=l+c,m=v+A,y=f+h,b=s?e.offsetHeight-y-e.clientHeight:0,w=o?e.offsetWidth-m-e.clientWidth:0,x=a?p+m:0,S=a?g+y:0,_=n?n.width:ps(r.width)-x-w,B=n?n.height:ps(r.height)-S-b,T=_+p+w+m,E=B+g+b+y,I=Ef({devicePixelContentBoxSize:Wh(Math.round(_*devicePixelRatio),Math.round(B*devicePixelRatio),i),borderBoxSize:Wh(T,E,i),contentBoxSize:Wh(_,B,i),contentRect:new oG(d,l,_,B)});return Xy.set(e,I),I},uG=function(e,t,r){var n=lG(e,r),a=n.borderBoxSize,i=n.contentBoxSize,o=n.devicePixelContentBoxSize;switch(t){case $0.DEVICE_PIXEL_CONTENT_BOX:return o;case $0.BORDER_BOX:return a;default:return i}},Qfe=function(){function e(t){var r=lG(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Ef([r.borderBoxSize]),this.contentBoxSize=Ef([r.contentBoxSize]),this.devicePixelContentBoxSize=Ef([r.devicePixelContentBoxSize])}return e}(),cG=function(e){if(sG(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},Vfe=function(){var e=1/0,t=[];Tf.forEach(function(o){if(o.activeTargets.length!==0){var s=[];o.activeTargets.forEach(function(u){var c=new Qfe(u.target),d=cG(u.target);s.push(c),u.lastReportedSize=uG(u.target,u.observedBox),d<e&&(e=d)}),t.push(function(){o.callback.call(o.observer,s,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var a=n[r];a()}return e},mO=function(e){Tf.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(a){a.isActive()&&(cG(a.target)>e?r.activeTargets.push(a):r.skippedTargets.push(a))})})},Wfe=function(){var e=0;for(mO(e);Lfe();)e=Vfe(),mO(e);return Ofe()&&$fe(),e>0},hB,dG=[],Gfe=function(){return dG.splice(0).forEach(function(e){return e()})},Kfe=function(e){if(!hB){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Gfe()}).observe(r,n),hB=function(){r.textContent=""+(t?t--:t++)}}dG.push(e),hB()},jfe=function(e){Kfe(function(){requestAnimationFrame(e)})},tx=0,Yfe=function(){return!!tx},Xfe=250,qfe={attributes:!0,characterData:!0,childList:!0,subtree:!0},yO=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],bO=function(e){return e===void 0&&(e=0),Date.now()+e},vB=!1,Zfe=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=Xfe),!vB){vB=!0;var n=bO(t);jfe(function(){var a=!1;try{a=Wfe()}finally{if(vB=!1,t=n-bO(),!Yfe())return;a?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,qfe)};document.body?r():Zg.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),yO.forEach(function(r){return Zg.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),yO.forEach(function(r){return Zg.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),FI=new Zfe,xO=function(e){!tx&&e>0&&FI.start(),tx+=e,!tx&&FI.stop()},Jfe=function(e){return!nk(e)&&!Hfe(e)&&getComputedStyle(e).display==="inline"},eAe=function(){function e(t,r){this.target=t,this.observedBox=r||$0.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=uG(this.target,this.observedBox,!0);return Jfe(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),tAe=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),qy=new WeakMap,wO=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},Zy=function(){function e(){}return e.connect=function(t,r){var n=new tAe(t,r);qy.set(t,n)},e.observe=function(t,r,n){var a=qy.get(t),i=a.observationTargets.length===0;wO(a.observationTargets,r)<0&&(i&&Tf.push(a),a.observationTargets.push(new eAe(r,n&&n.box)),xO(1),FI.schedule())},e.unobserve=function(t,r){var n=qy.get(t),a=wO(n.observationTargets,r),i=n.observationTargets.length===1;a>=0&&(i&&Tf.splice(Tf.indexOf(n),1),n.observationTargets.splice(a,1),xO(-1))},e.disconnect=function(t){var r=this,n=qy.get(t);n.observationTargets.slice().forEach(function(a){return r.unobserve(t,a.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),rAe=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Zy.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vO(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Zy.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!vO(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Zy.unobserve(this,t)},e.prototype.disconnect=function(){Zy.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class nAe{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new rAe(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const r of t){const n=this.elHandlersMap.get(r.target);n!==void 0&&n(r)}}registerHandler(t,r){this.elHandlersMap.set(t,r),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}var Kx=new nAe,bo=ge({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const r=Ba().proxy;function n(a){const{onResize:i}=e;i!==void 0&&i(a)}Ar(()=>{const a=r.$el;if(a===void 0){lO("resize-observer","$el does not exist.");return}if(a.nextElementSibling!==a.nextSibling&&a.nodeType===3&&a.nodeValue!==""){lO("resize-observer","$el can not be observed (it may be a text node).");return}a.nextElementSibling!==null&&(Kx.registerHandler(a.nextElementSibling,n),t=!0)}),kr(()=>{t&&Kx.unregisterHandler(r.$el.nextElementSibling)})},render(){return Qm(this.$slots,"default")}});let Jy;function aAe(){return Jy===void 0&&("matchMedia"in window?Jy=window.matchMedia("(pointer:coarse)").matches:Jy=!1),Jy}let pB;function CO(){return pB===void 0&&(pB="chrome"in window?window.devicePixelRatio:1),pB}const iAe=Ls(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Ls("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Ls("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]);var cv=ge({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Xc();iAe.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:eS,ssr:t}),Ar(()=>{const{defaultScrollIndex:E,defaultScrollKey:I}=e;E!=null?h({index:E}):I!=null&&h({key:I})});let r=!1,n=!1;WC(()=>{if(r=!1,!n){n=!0;return}h({top:d.value,left:c})}),zm(()=>{r=!0,n||(n=!0)});const a=L(()=>{const E=new Map,{keyField:I}=e;return e.items.forEach((R,D)=>{E.set(R[I],D)}),E}),i=X(null),o=X(void 0),s=new Map,l=L(()=>{const{items:E,itemSize:I,keyField:R}=e,D=new Efe(E.length,I);return E.forEach((k,F)=>{const P=k[R],O=s.get(P);O!==void 0&&D.add(F,O)}),D}),u=X(0);let c=0;const d=X(0),f=Rt(()=>Math.max(l.value.getBound(d.value-ma(e.paddingTop))-1,0)),A=L(()=>{const{value:E}=o;if(E===void 0)return[];const{items:I,itemSize:R}=e,D=f.value,k=Math.min(D+Math.ceil(E/R+1),I.length-1),F=[];for(let P=D;P<=k;++P)F.push(I[P]);return F}),h=(E,I)=>{if(typeof E=="number"){m(E,I,"auto");return}const{left:R,top:D,index:k,key:F,position:P,behavior:O,debounce:H=!0}=E;if(R!==void 0||D!==void 0)m(R,D,O);else if(k!==void 0)g(k,O,H);else if(F!==void 0){const V=a.value.get(F);V!==void 0&&g(V,O,H)}else P==="bottom"?m(0,Number.MAX_SAFE_INTEGER,O):P==="top"&&m(0,0,O)};let v,p=null;function g(E,I,R){const{value:D}=l,k=D.sum(E)+ma(e.paddingTop);if(!R)i.value.scrollTo({left:0,top:k,behavior:I});else{v=E,p!==null&&window.clearTimeout(p),p=window.setTimeout(()=>{v=void 0,p=null},16);const{scrollTop:F,offsetHeight:P}=i.value;if(k>F){const O=D.get(E);k+O<=F+P||i.value.scrollTo({left:0,top:k+O-P,behavior:I})}else i.value.scrollTo({left:0,top:k,behavior:I})}}function m(E,I,R){i.value.scrollTo({left:E,top:I,behavior:R})}function y(E,I){var R,D,k;if(r||e.ignoreItemResize||T(I.target))return;const{value:F}=l,P=a.value.get(E),O=F.get(P),H=(k=(D=(R=I.borderBoxSize)===null||R===void 0?void 0:R[0])===null||D===void 0?void 0:D.blockSize)!==null&&k!==void 0?k:I.contentRect.height;if(H===O)return;H-e.itemSize===0?s.delete(E):s.set(E,H-e.itemSize);const W=H-O;if(W===0)return;F.add(P,W);const Z=i.value;if(Z!=null){if(v===void 0){const ee=F.sum(P);Z.scrollTop>ee&&Z.scrollBy(0,W)}else if(P<v)Z.scrollBy(0,W);else if(P===v){const ee=F.sum(P);H+ee>Z.scrollTop+Z.offsetHeight&&Z.scrollBy(0,W)}B()}u.value++}const b=!aAe();let w=!1;function x(E){var I;(I=e.onScroll)===null||I===void 0||I.call(e,E),(!b||!w)&&B()}function S(E){var I;if((I=e.onWheel)===null||I===void 0||I.call(e,E),b){const R=i.value;if(R!=null){if(E.deltaX===0&&(R.scrollTop===0&&E.deltaY<=0||R.scrollTop+R.offsetHeight>=R.scrollHeight&&E.deltaY>=0))return;E.preventDefault(),R.scrollTop+=E.deltaY/CO(),R.scrollLeft+=E.deltaX/CO(),B(),w=!0,lv(()=>{w=!1})}}}function _(E){if(r||T(E.target)||E.contentRect.height===o.value)return;o.value=E.contentRect.height;const{onResize:I}=e;I!==void 0&&I(E)}function B(){const{value:E}=i;E!=null&&(d.value=E.scrollTop,c=E.scrollLeft)}function T(E){let I=E;for(;I!==null;){if(I.style.display==="none")return!0;I=I.parentElement}return!1}return{listHeight:o,listStyle:{overflow:"auto"},keyToIndex:a,itemsStyle:L(()=>{const{itemResizable:E}=e,I=Tn(l.value.sum());return u.value,[e.itemsStyle,{boxSizing:"content-box",height:E?"":I,minHeight:E?I:"",paddingTop:Tn(e.paddingTop),paddingBottom:Tn(e.paddingBottom)}]}),visibleItemsStyle:L(()=>(u.value,{transform:`translateY(${Tn(l.value.sum(f.value))})`})),viewportItems:A,listElRef:i,itemsElRef:X(null),scrollTo:h,handleListResize:_,handleListScroll:x,handleListWheel:S,handleItemResize:y}},render(){const{itemResizable:e,keyField:t,keyToIndex:r,visibleItemsTag:n}=this;return C(bo,{onResize:this.handleListResize},{default:()=>{var a,i;return C("div",An(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?C("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[C(n,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(o=>{const s=o[t],l=r.get(s),u=this.$slots.default({item:o,index:l})[0];return e?C(bo,{key:s,onResize:c=>this.handleItemResize(s,c)},{default:()=>u}):(u.key=s,u)})})]):(i=(a=this.$slots).empty)===null||i===void 0?void 0:i.call(a)])}})}});const oAe=Ls(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Ls("&::-webkit-scrollbar",{width:0,height:0})]);var sAe=ge({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=X(null);function t(a){!(a.currentTarget.offsetWidth<a.currentTarget.scrollWidth)||a.deltaY===0||(a.currentTarget.scrollLeft+=a.deltaY+a.deltaX,a.preventDefault())}const r=Xc();return oAe.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:eS,ssr:r}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...a){var i;(i=e.value)===null||i===void 0||i.scrollTo(...a)}})},render(){return C("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}});const Ad="v-hidden",lAe=Ls("[v-hidden]",{display:"none!important"});var SO=ge({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const r=X(null),n=X(null);function a(){const{value:o}=r,{getCounter:s,getTail:l}=e;let u;if(s!==void 0?u=s():u=n.value,!o||!u)return;u.hasAttribute(Ad)&&u.removeAttribute(Ad);const{children:c}=o,d=o.offsetWidth,f=[],A=t.tail?l==null?void 0:l():null;let h=A?A.offsetWidth:0,v=!1;const p=o.children.length-(t.tail?1:0);for(let m=0;m<p-1;++m){if(m<0)continue;const y=c[m];if(v){y.hasAttribute(Ad)||y.setAttribute(Ad,"");continue}else y.hasAttribute(Ad)&&y.removeAttribute(Ad);const b=y.offsetWidth;if(h+=b,f[m]=b,h>d){const{updateCounter:w}=e;for(let x=m;x>=0;--x){const S=p-1-x;w!==void 0?w(S):u.textContent=`${S}`;const _=u.offsetWidth;if(h-=f[x],h+_<=d||x===0){v=!0,m=x-1,A&&(m===-1?(A.style.maxWidth=`${d-_}px`,A.style.boxSizing="border-box"):A.style.maxWidth="");break}}}}const{onUpdateOverflow:g}=e;v?g!==void 0&&g(!0):(g!==void 0&&g(!1),u.setAttribute(Ad,""))}const i=Xc();return lAe.mount({id:"vueuc/overflow",head:!0,anchorMetaName:eS,ssr:i}),Ar(a),{selfRef:r,counterRef:n,sync:a}},render(){const{$slots:e}=this;return ar(this.sync),C("div",{class:"v-overflow",ref:"selfRef"},[Qm(e,"default"),e.counter?e.counter():C("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function fG(e){return e instanceof HTMLElement}function AG(e){for(let t=0;t<e.childNodes.length;t++){const r=e.childNodes[t];if(fG(r)&&(vG(r)||AG(r)))return!0}return!1}function hG(e){for(let t=e.childNodes.length-1;t>=0;t--){const r=e.childNodes[t];if(fG(r)&&(vG(r)||hG(r)))return!0}return!1}function vG(e){if(!uAe(e))return!1;try{e.focus({preventScroll:!0})}catch(t){}return document.activeElement===e}function uAe(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Bp=[];const ak=ge({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=yo(),r=X(null),n=X(null);let a=!1,i=!1;const o=typeof document=="undefined"?null:document.activeElement;function s(){return Bp[Bp.length-1]===t}function l(p){var g;p.code==="Escape"&&s()&&((g=e.onEsc)===null||g===void 0||g.call(e,p))}Ar(()=>{mt(()=>e.active,p=>{p?(d(),Zt("keydown",document,l)):(jt("keydown",document,l),a&&f())},{immediate:!0})}),kr(()=>{jt("keydown",document,l),a&&f()});function u(p){if(!i&&s()){const g=c();if(g===null||g.contains(as(p)))return;A("first")}}function c(){const p=r.value;if(p===null)return null;let g=p;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function d(){var p;if(!e.disabled){if(Bp.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?A("first"):(p=cO(g))===null||p===void 0||p.focus({preventScroll:!0})}a=!0,document.addEventListener("focus",u,!0)}}function f(){var p;if(e.disabled||(document.removeEventListener("focus",u,!0),Bp=Bp.filter(m=>m!==t),s()))return;const{finalFocusTo:g}=e;g!==void 0?(p=cO(g))===null||p===void 0||p.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&o instanceof HTMLElement&&(i=!0,o.focus({preventScroll:!0}),i=!1)}function A(p){if(!!s()&&e.active){const g=r.value,m=n.value;if(g!==null&&m!==null){const y=c();if(y==null||y===m){i=!0,g.focus({preventScroll:!0}),i=!1;return}i=!0;const b=p==="first"?AG(y):hG(y);i=!1,b||(i=!0,g.focus({preventScroll:!0}),i=!1)}}}function h(p){if(i)return;const g=c();g!==null&&(p.relatedTarget!==null&&g.contains(p.relatedTarget)?A("last"):A("first"))}function v(p){i||(p.relatedTarget!==null&&p.relatedTarget===r.value?A("last"):A("first"))}return{focusableStartRef:r,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:h,handleEndFocus:v}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:r}=this;return C(rr,null,[C("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:r,onFocus:this.handleStartFocus}),e(),C("div",{"aria-hidden":"true",style:r,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function pG(e,t){t&&(Ar(()=>{const{value:r}=e;r&&Kx.registerHandler(r,t)}),kr(()=>{const{value:r}=e;r&&Kx.unregisterHandler(r)}))}let IA=0,_O="",BO="",TO="",EO="";const MI=X("0px");function gG(e){if(typeof document=="undefined")return;const t=document.documentElement;let r,n=!1;const a=()=>{t.style.marginRight=_O,t.style.overflow=BO,t.style.overflowX=TO,t.style.overflowY=EO,MI.value="0px"};Ar(()=>{r=mt(e,i=>{if(i){if(!IA){const o=window.innerWidth-t.offsetWidth;o>0&&(_O=t.style.marginRight,t.style.marginRight=`${o}px`,MI.value=`${o}px`),BO=t.style.overflow,TO=t.style.overflowX,EO=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,IA++}else IA--,IA||a(),n=!1},{immediate:!0})}),kr(()=>{r==null||r(),n&&(IA--,IA||a(),n=!1)})}const ik=X(!1),IO=()=>{ik.value=!0},RO=()=>{ik.value=!1};let Tp=0;const mG=()=>(To&&(ou(()=>{Tp||(window.addEventListener("compositionstart",IO),window.addEventListener("compositionend",RO)),Tp++}),kr(()=>{Tp<=1?(window.removeEventListener("compositionstart",IO),window.removeEventListener("compositionend",RO),Tp=0):Tp--})),ik);function ok(e){const t={isDeactivated:!1};let r=!1;return WC(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),zm(()=>{t.isDeactivated=!0,r||(r=!0)}),t}function DO(e){return e.nodeName==="#document"}const kI="n-form-item";function bi(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:n}={}){const a=We(kI,null);Ct(kI,null);const i=L(r?()=>r(a):()=>{const{size:l}=e;if(l)return l;if(a){const{mergedSize:u}=a;if(u.value!==void 0)return u.value}return t}),o=L(n?()=>n(a):()=>{const{disabled:l}=e;return l!==void 0?l:a?a.disabled.value:!1}),s=L(()=>{const{status:l}=e;return l||(a==null?void 0:a.mergedValidationStatus.value)});return kr(()=>{a&&a.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:o,mergedStatusRef:s,nTriggerFormBlur(){a&&a.handleContentBlur()},nTriggerFormChange(){a&&a.handleContentChange()},nTriggerFormFocus(){a&&a.handleContentFocus()},nTriggerFormInput(){a&&a.handleContentInput()}}}var cAe=typeof global=="object"&&global&&global.Object===Object&&global,yG=cAe,dAe=typeof self=="object"&&self&&self.Object===Object&&self,fAe=yG||dAe||Function("return this")(),Eo=fAe,AAe=Eo.Symbol,Ic=AAe,bG=Object.prototype,hAe=bG.hasOwnProperty,vAe=bG.toString,Ep=Ic?Ic.toStringTag:void 0;function pAe(e){var t=hAe.call(e,Ep),r=e[Ep];try{e[Ep]=void 0;var n=!0}catch(i){}var a=vAe.call(e);return n&&(t?e[Ep]=r:delete e[Ep]),a}var gAe=Object.prototype,mAe=gAe.toString;function yAe(e){return mAe.call(e)}var bAe="[object Null]",xAe="[object Undefined]",FO=Ic?Ic.toStringTag:void 0;function oA(e){return e==null?e===void 0?xAe:bAe:FO&&FO in Object(e)?pAe(e):yAe(e)}function Rc(e){return e!=null&&typeof e=="object"}var wAe="[object Symbol]";function tS(e){return typeof e=="symbol"||Rc(e)&&oA(e)==wAe}function xG(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var CAe=Array.isArray,xo=CAe,SAe=1/0,MO=Ic?Ic.prototype:void 0,kO=MO?MO.toString:void 0;function wG(e){if(typeof e=="string")return e;if(xo(e))return xG(e,wG)+"";if(tS(e))return kO?kO.call(e):"";var t=e+"";return t=="0"&&1/e==-SAe?"-0":t}var _Ae=/\s/;function BAe(e){for(var t=e.length;t--&&_Ae.test(e.charAt(t)););return t}var TAe=/^\s+/;function EAe(e){return e&&e.slice(0,BAe(e)+1).replace(TAe,"")}function wo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var PO=0/0,IAe=/^[-+]0x[0-9a-f]+$/i,RAe=/^0b[01]+$/i,DAe=/^0o[0-7]+$/i,FAe=parseInt;function jx(e){if(typeof e=="number")return e;if(tS(e))return PO;if(wo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=wo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=EAe(e);var r=RAe.test(e);return r||DAe.test(e)?FAe(e.slice(2),r?2:8):IAe.test(e)?PO:+e}var LO=1/0,MAe=17976931348623157e292;function kAe(e){if(!e)return e===0?e:0;if(e=jx(e),e===LO||e===-LO){var t=e<0?-1:1;return t*MAe}return e===e?e:0}function PAe(e){var t=kAe(e),r=t%1;return t===t?r?t-r:t:0}function sk(e){return e}var LAe="[object AsyncFunction]",OAe="[object Function]",$Ae="[object GeneratorFunction]",UAe="[object Proxy]";function lk(e){if(!wo(e))return!1;var t=oA(e);return t==OAe||t==$Ae||t==LAe||t==UAe}var HAe=Eo["__core-js_shared__"],gB=HAe,OO=function(){var e=/[^.]+$/.exec(gB&&gB.keys&&gB.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function zAe(e){return!!OO&&OO in e}var NAe=Function.prototype,QAe=NAe.toString;function sA(e){if(e!=null){try{return QAe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var VAe=/[\\^$.*+?()[\]{}|]/g,WAe=/^\[object .+?Constructor\]$/,GAe=Function.prototype,KAe=Object.prototype,jAe=GAe.toString,YAe=KAe.hasOwnProperty,XAe=RegExp("^"+jAe.call(YAe).replace(VAe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qAe(e){if(!wo(e)||zAe(e))return!1;var t=lk(e)?XAe:WAe;return t.test(sA(e))}function ZAe(e,t){return e==null?void 0:e[t]}function lA(e,t){var r=ZAe(e,t);return qAe(r)?r:void 0}var JAe=lA(Eo,"WeakMap"),PI=JAe,$O=Object.create,ehe=function(){function e(){}return function(t){if(!wo(t))return{};if($O)return $O(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),the=ehe;function rhe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function nhe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ahe=800,ihe=16,ohe=Date.now;function she(e){var t=0,r=0;return function(){var n=ohe(),a=ihe-(n-r);if(r=n,a>0){if(++t>=ahe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function lhe(e){return function(){return e}}var uhe=function(){try{var e=lA(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Yx=uhe,che=Yx?function(e,t){return Yx(e,"toString",{configurable:!0,enumerable:!1,value:lhe(t),writable:!0})}:sk,dhe=che,fhe=she(dhe),Ahe=fhe,hhe=9007199254740991,vhe=/^(?:0|[1-9]\d*)$/;function uk(e,t){var r=typeof e;return t=t==null?hhe:t,!!t&&(r=="number"||r!="symbol"&&vhe.test(e))&&e>-1&&e%1==0&&e<t}function ck(e,t,r){t=="__proto__"&&Yx?Yx(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ym(e,t){return e===t||e!==e&&t!==t}var phe=Object.prototype,ghe=phe.hasOwnProperty;function mhe(e,t,r){var n=e[t];(!(ghe.call(e,t)&&Ym(n,r))||r===void 0&&!(t in e))&&ck(e,t,r)}function yhe(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),a?ck(r,s,l):mhe(r,s,l)}return r}var UO=Math.max;function bhe(e,t,r){return t=UO(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=UO(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),rhe(e,this,s)}}function xhe(e,t){return Ahe(bhe(e,t,sk),e+"")}var whe=9007199254740991;function dk(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=whe}function Uv(e){return e!=null&&dk(e.length)&&!lk(e)}function Che(e,t,r){if(!wo(r))return!1;var n=typeof t;return(n=="number"?Uv(r)&&uk(t,r.length):n=="string"&&t in r)?Ym(r[t],e):!1}function She(e){return xhe(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&Che(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var s=r[n];s&&e(t,s,n,i)}return t})}var _he=Object.prototype;function fk(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_he;return e===r}function Bhe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var The="[object Arguments]";function HO(e){return Rc(e)&&oA(e)==The}var CG=Object.prototype,Ehe=CG.hasOwnProperty,Ihe=CG.propertyIsEnumerable,Rhe=HO(function(){return arguments}())?HO:function(e){return Rc(e)&&Ehe.call(e,"callee")&&!Ihe.call(e,"callee")},Xx=Rhe;function Dhe(){return!1}var SG=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zO=SG&&typeof module=="object"&&module&&!module.nodeType&&module,Fhe=zO&&zO.exports===SG,NO=Fhe?Eo.Buffer:void 0,Mhe=NO?NO.isBuffer:void 0,khe=Mhe||Dhe,qx=khe,Phe="[object Arguments]",Lhe="[object Array]",Ohe="[object Boolean]",$he="[object Date]",Uhe="[object Error]",Hhe="[object Function]",zhe="[object Map]",Nhe="[object Number]",Qhe="[object Object]",Vhe="[object RegExp]",Whe="[object Set]",Ghe="[object String]",Khe="[object WeakMap]",jhe="[object ArrayBuffer]",Yhe="[object DataView]",Xhe="[object Float32Array]",qhe="[object Float64Array]",Zhe="[object Int8Array]",Jhe="[object Int16Array]",eve="[object Int32Array]",tve="[object Uint8Array]",rve="[object Uint8ClampedArray]",nve="[object Uint16Array]",ave="[object Uint32Array]",ln={};ln[Xhe]=ln[qhe]=ln[Zhe]=ln[Jhe]=ln[eve]=ln[tve]=ln[rve]=ln[nve]=ln[ave]=!0;ln[Phe]=ln[Lhe]=ln[jhe]=ln[Ohe]=ln[Yhe]=ln[$he]=ln[Uhe]=ln[Hhe]=ln[zhe]=ln[Nhe]=ln[Qhe]=ln[Vhe]=ln[Whe]=ln[Ghe]=ln[Khe]=!1;function ive(e){return Rc(e)&&dk(e.length)&&!!ln[oA(e)]}function ove(e){return function(t){return e(t)}}var _G=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jg=_G&&typeof module=="object"&&module&&!module.nodeType&&module,sve=Jg&&Jg.exports===_G,mB=sve&&yG.process,lve=function(){try{var e=Jg&&Jg.require&&Jg.require("util").types;return e||mB&&mB.binding&&mB.binding("util")}catch(t){}}(),QO=lve,VO=QO&&QO.isTypedArray,uve=VO?ove(VO):ive,Ak=uve,cve=Object.prototype,dve=cve.hasOwnProperty;function BG(e,t){var r=xo(e),n=!r&&Xx(e),a=!r&&!n&&qx(e),i=!r&&!n&&!a&&Ak(e),o=r||n||a||i,s=o?Bhe(e.length,String):[],l=s.length;for(var u in e)(t||dve.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||uk(u,l)))&&s.push(u);return s}function TG(e,t){return function(r){return e(t(r))}}var fve=TG(Object.keys,Object),Ave=fve,hve=Object.prototype,vve=hve.hasOwnProperty;function pve(e){if(!fk(e))return Ave(e);var t=[];for(var r in Object(e))vve.call(e,r)&&r!="constructor"&&t.push(r);return t}function hk(e){return Uv(e)?BG(e):pve(e)}function gve(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var mve=Object.prototype,yve=mve.hasOwnProperty;function bve(e){if(!wo(e))return gve(e);var t=fk(e),r=[];for(var n in e)n=="constructor"&&(t||!yve.call(e,n))||r.push(n);return r}function EG(e){return Uv(e)?BG(e,!0):bve(e)}var xve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wve=/^\w*$/;function vk(e,t){if(xo(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||tS(e)?!0:wve.test(e)||!xve.test(e)||t!=null&&e in Object(t)}var Cve=lA(Object,"create"),U0=Cve;function Sve(){this.__data__=U0?U0(null):{},this.size=0}function _ve(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Bve="__lodash_hash_undefined__",Tve=Object.prototype,Eve=Tve.hasOwnProperty;function Ive(e){var t=this.__data__;if(U0){var r=t[e];return r===Bve?void 0:r}return Eve.call(t,e)?t[e]:void 0}var Rve=Object.prototype,Dve=Rve.hasOwnProperty;function Fve(e){var t=this.__data__;return U0?t[e]!==void 0:Dve.call(t,e)}var Mve="__lodash_hash_undefined__";function kve(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=U0&&t===void 0?Mve:t,this}function Nf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Nf.prototype.clear=Sve;Nf.prototype.delete=_ve;Nf.prototype.get=Ive;Nf.prototype.has=Fve;Nf.prototype.set=kve;function Pve(){this.__data__=[],this.size=0}function rS(e,t){for(var r=e.length;r--;)if(Ym(e[r][0],t))return r;return-1}var Lve=Array.prototype,Ove=Lve.splice;function $ve(e){var t=this.__data__,r=rS(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ove.call(t,r,1),--this.size,!0}function Uve(e){var t=this.__data__,r=rS(t,e);return r<0?void 0:t[r][1]}function Hve(e){return rS(this.__data__,e)>-1}function zve(e,t){var r=this.__data__,n=rS(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function lu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}lu.prototype.clear=Pve;lu.prototype.delete=$ve;lu.prototype.get=Uve;lu.prototype.has=Hve;lu.prototype.set=zve;var Nve=lA(Eo,"Map"),H0=Nve;function Qve(){this.size=0,this.__data__={hash:new Nf,map:new(H0||lu),string:new Nf}}function Vve(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function nS(e,t){var r=e.__data__;return Vve(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Wve(e){var t=nS(this,e).delete(e);return this.size-=t?1:0,t}function Gve(e){return nS(this,e).get(e)}function Kve(e){return nS(this,e).has(e)}function jve(e,t){var r=nS(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function uu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uu.prototype.clear=Qve;uu.prototype.delete=Wve;uu.prototype.get=Gve;uu.prototype.has=Kve;uu.prototype.set=jve;var Yve="Expected a function";function pk(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Yve);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(pk.Cache||uu),r}pk.Cache=uu;var Xve=500;function qve(e){var t=pk(e,function(n){return r.size===Xve&&r.clear(),n}),r=t.cache;return t}var Zve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jve=/\\(\\)?/g,epe=qve(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Zve,function(r,n,a,i){t.push(a?i.replace(Jve,"$1"):n||r)}),t}),tpe=epe;function Qf(e){return e==null?"":wG(e)}function IG(e,t){return xo(e)?e:vk(e,t)?[e]:tpe(Qf(e))}var rpe=1/0;function aS(e){if(typeof e=="string"||tS(e))return e;var t=e+"";return t=="0"&&1/e==-rpe?"-0":t}function RG(e,t){t=IG(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[aS(t[r++])];return r&&r==n?e:void 0}function z0(e,t,r){var n=e==null?void 0:RG(e,t);return n===void 0?r:n}function npe(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var ape=TG(Object.getPrototypeOf,Object),DG=ape,ipe="[object Object]",ope=Function.prototype,spe=Object.prototype,FG=ope.toString,lpe=spe.hasOwnProperty,upe=FG.call(Object);function cpe(e){if(!Rc(e)||oA(e)!=ipe)return!1;var t=DG(e);if(t===null)return!0;var r=lpe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&FG.call(r)==upe}function dpe(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}function fpe(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:dpe(e,t,r)}var Ape="\\ud800-\\udfff",hpe="\\u0300-\\u036f",vpe="\\ufe20-\\ufe2f",ppe="\\u20d0-\\u20ff",gpe=hpe+vpe+ppe,mpe="\\ufe0e\\ufe0f",ype="\\u200d",bpe=RegExp("["+ype+Ape+gpe+mpe+"]");function MG(e){return bpe.test(e)}function xpe(e){return e.split("")}var kG="\\ud800-\\udfff",wpe="\\u0300-\\u036f",Cpe="\\ufe20-\\ufe2f",Spe="\\u20d0-\\u20ff",_pe=wpe+Cpe+Spe,Bpe="\\ufe0e\\ufe0f",Tpe="["+kG+"]",LI="["+_pe+"]",OI="\\ud83c[\\udffb-\\udfff]",Epe="(?:"+LI+"|"+OI+")",PG="[^"+kG+"]",LG="(?:\\ud83c[\\udde6-\\uddff]){2}",OG="[\\ud800-\\udbff][\\udc00-\\udfff]",Ipe="\\u200d",$G=Epe+"?",UG="["+Bpe+"]?",Rpe="(?:"+Ipe+"(?:"+[PG,LG,OG].join("|")+")"+UG+$G+")*",Dpe=UG+$G+Rpe,Fpe="(?:"+[PG+LI+"?",LI,LG,OG,Tpe].join("|")+")",Mpe=RegExp(OI+"(?="+OI+")|"+Fpe+Dpe,"g");function kpe(e){return e.match(Mpe)||[]}function Ppe(e){return MG(e)?kpe(e):xpe(e)}function Lpe(e){return function(t){t=Qf(t);var r=MG(t)?Ppe(t):void 0,n=r?r[0]:t.charAt(0),a=r?fpe(r,1).join(""):t.slice(1);return n[e]()+a}}var Ope=Lpe("toUpperCase"),HG=Ope;function $pe(e){return HG(Qf(e).toLowerCase())}function Upe(e,t,r,n){var a=-1,i=e==null?0:e.length;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r}function Hpe(e){return function(t){return e==null?void 0:e[t]}}var zpe={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Npe=Hpe(zpe),Qpe=Npe,Vpe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wpe="\\u0300-\\u036f",Gpe="\\ufe20-\\ufe2f",Kpe="\\u20d0-\\u20ff",jpe=Wpe+Gpe+Kpe,Ype="["+jpe+"]",Xpe=RegExp(Ype,"g");function qpe(e){return e=Qf(e),e&&e.replace(Vpe,Qpe).replace(Xpe,"")}var Zpe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Jpe(e){return e.match(Zpe)||[]}var ege=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function tge(e){return ege.test(e)}var zG="\\ud800-\\udfff",rge="\\u0300-\\u036f",nge="\\ufe20-\\ufe2f",age="\\u20d0-\\u20ff",ige=rge+nge+age,NG="\\u2700-\\u27bf",QG="a-z\\xdf-\\xf6\\xf8-\\xff",oge="\\xac\\xb1\\xd7\\xf7",sge="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lge="\\u2000-\\u206f",uge=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",VG="A-Z\\xc0-\\xd6\\xd8-\\xde",cge="\\ufe0e\\ufe0f",WG=oge+sge+lge+uge,GG="['\u2019]",WO="["+WG+"]",dge="["+ige+"]",KG="\\d+",fge="["+NG+"]",jG="["+QG+"]",YG="[^"+zG+WG+KG+NG+QG+VG+"]",Age="\\ud83c[\\udffb-\\udfff]",hge="(?:"+dge+"|"+Age+")",vge="[^"+zG+"]",XG="(?:\\ud83c[\\udde6-\\uddff]){2}",qG="[\\ud800-\\udbff][\\udc00-\\udfff]",yh="["+VG+"]",pge="\\u200d",GO="(?:"+jG+"|"+YG+")",gge="(?:"+yh+"|"+YG+")",KO="(?:"+GG+"(?:d|ll|m|re|s|t|ve))?",jO="(?:"+GG+"(?:D|LL|M|RE|S|T|VE))?",ZG=hge+"?",JG="["+cge+"]?",mge="(?:"+pge+"(?:"+[vge,XG,qG].join("|")+")"+JG+ZG+")*",yge="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bge="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xge=JG+ZG+mge,wge="(?:"+[fge,XG,qG].join("|")+")"+xge,Cge=RegExp([yh+"?"+jG+"+"+KO+"(?="+[WO,yh,"$"].join("|")+")",gge+"+"+jO+"(?="+[WO,yh+GO,"$"].join("|")+")",yh+"?"+GO+"+"+KO,yh+"+"+jO,bge,yge,KG,wge].join("|"),"g");function Sge(e){return e.match(Cge)||[]}function _ge(e,t,r){return e=Qf(e),t=r?void 0:t,t===void 0?tge(e)?Sge(e):Jpe(e):e.match(t)||[]}var Bge="['\u2019]",Tge=RegExp(Bge,"g");function eK(e){return function(t){return Upe(_ge(qpe(t).replace(Tge,"")),e,"")}}var Ege=eK(function(e,t,r){return t=t.toLowerCase(),e+(r?$pe(t):t)}),YO=Ege,Ige=Eo.isFinite,Rge=Math.min;function Dge(e){var t=Math[e];return function(r,n){if(r=jx(r),n=n==null?0:Rge(PAe(n),292),n&&Ige(r)){var a=(Qf(r)+"e").split("e"),i=t(a[0]+"e"+(+a[1]+n));return a=(Qf(i)+"e").split("e"),+(a[0]+"e"+(+a[1]-n))}return t(r)}}function Fge(){this.__data__=new lu,this.size=0}function Mge(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function kge(e){return this.__data__.get(e)}function Pge(e){return this.__data__.has(e)}var Lge=200;function Oge(e,t){var r=this.__data__;if(r instanceof lu){var n=r.__data__;if(!H0||n.length<Lge-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new uu(n)}return r.set(e,t),this.size=r.size,this}function Qs(e){var t=this.__data__=new lu(e);this.size=t.size}Qs.prototype.clear=Fge;Qs.prototype.delete=Mge;Qs.prototype.get=kge;Qs.prototype.has=Pge;Qs.prototype.set=Oge;var tK=typeof exports=="object"&&exports&&!exports.nodeType&&exports,XO=tK&&typeof module=="object"&&module&&!module.nodeType&&module,$ge=XO&&XO.exports===tK,qO=$ge?Eo.Buffer:void 0,ZO=qO?qO.allocUnsafe:void 0;function Uge(e,t){if(t)return e.slice();var r=e.length,n=ZO?ZO(r):new e.constructor(r);return e.copy(n),n}function Hge(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function zge(){return[]}var Nge=Object.prototype,Qge=Nge.propertyIsEnumerable,JO=Object.getOwnPropertySymbols,Vge=JO?function(e){return e==null?[]:(e=Object(e),Hge(JO(e),function(t){return Qge.call(e,t)}))}:zge,Wge=Vge;function Gge(e,t,r){var n=t(e);return xo(e)?n:npe(n,r(e))}function e3(e){return Gge(e,hk,Wge)}var Kge=lA(Eo,"DataView"),$I=Kge,jge=lA(Eo,"Promise"),UI=jge,Yge=lA(Eo,"Set"),HI=Yge,t3="[object Map]",Xge="[object Object]",r3="[object Promise]",n3="[object Set]",a3="[object WeakMap]",i3="[object DataView]",qge=sA($I),Zge=sA(H0),Jge=sA(UI),e0e=sA(HI),t0e=sA(PI),Gd=oA;($I&&Gd(new $I(new ArrayBuffer(1)))!=i3||H0&&Gd(new H0)!=t3||UI&&Gd(UI.resolve())!=r3||HI&&Gd(new HI)!=n3||PI&&Gd(new PI)!=a3)&&(Gd=function(e){var t=oA(e),r=t==Xge?e.constructor:void 0,n=r?sA(r):"";if(n)switch(n){case qge:return i3;case Zge:return t3;case Jge:return r3;case e0e:return n3;case t0e:return a3}return t});var o3=Gd,r0e=Eo.Uint8Array,Zx=r0e;function n0e(e){var t=new e.constructor(e.byteLength);return new Zx(t).set(new Zx(e)),t}function a0e(e,t){var r=t?n0e(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function i0e(e){return typeof e.constructor=="function"&&!fk(e)?the(DG(e)):{}}var o0e="__lodash_hash_undefined__";function s0e(e){return this.__data__.set(e,o0e),this}function l0e(e){return this.__data__.has(e)}function Jx(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new uu;++t<r;)this.add(e[t])}Jx.prototype.add=Jx.prototype.push=s0e;Jx.prototype.has=l0e;function u0e(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function c0e(e,t){return e.has(t)}var d0e=1,f0e=2;function rK(e,t,r,n,a,i){var o=r&d0e,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,A=r&f0e?new Jx:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],v=t[d];if(n)var p=o?n(v,h,d,t,e,i):n(h,v,d,e,t,i);if(p!==void 0){if(p)continue;f=!1;break}if(A){if(!u0e(t,function(g,m){if(!c0e(A,m)&&(h===g||a(h,g,r,n,i)))return A.push(m)})){f=!1;break}}else if(!(h===v||a(h,v,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function A0e(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function h0e(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var v0e=1,p0e=2,g0e="[object Boolean]",m0e="[object Date]",y0e="[object Error]",b0e="[object Map]",x0e="[object Number]",w0e="[object RegExp]",C0e="[object Set]",S0e="[object String]",_0e="[object Symbol]",B0e="[object ArrayBuffer]",T0e="[object DataView]",s3=Ic?Ic.prototype:void 0,yB=s3?s3.valueOf:void 0;function E0e(e,t,r,n,a,i,o){switch(r){case T0e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B0e:return!(e.byteLength!=t.byteLength||!i(new Zx(e),new Zx(t)));case g0e:case m0e:case x0e:return Ym(+e,+t);case y0e:return e.name==t.name&&e.message==t.message;case w0e:case S0e:return e==t+"";case b0e:var s=A0e;case C0e:var l=n&v0e;if(s||(s=h0e),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=p0e,o.set(e,t);var c=rK(s(e),s(t),n,a,i,o);return o.delete(e),c;case _0e:if(yB)return yB.call(e)==yB.call(t)}return!1}var I0e=1,R0e=Object.prototype,D0e=R0e.hasOwnProperty;function F0e(e,t,r,n,a,i){var o=r&I0e,s=e3(e),l=s.length,u=e3(t),c=u.length;if(l!=c&&!o)return!1;for(var d=l;d--;){var f=s[d];if(!(o?f in t:D0e.call(t,f)))return!1}var A=i.get(e),h=i.get(t);if(A&&h)return A==t&&h==e;var v=!0;i.set(e,t),i.set(t,e);for(var p=o;++d<l;){f=s[d];var g=e[f],m=t[f];if(n)var y=o?n(m,g,f,t,e,i):n(g,m,f,e,t,i);if(!(y===void 0?g===m||a(g,m,r,n,i):y)){v=!1;break}p||(p=f=="constructor")}if(v&&!p){var b=e.constructor,w=t.constructor;b!=w&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof w=="function"&&w instanceof w)&&(v=!1)}return i.delete(e),i.delete(t),v}var M0e=1,l3="[object Arguments]",u3="[object Array]",eb="[object Object]",k0e=Object.prototype,c3=k0e.hasOwnProperty;function P0e(e,t,r,n,a,i){var o=xo(e),s=xo(t),l=o?u3:o3(e),u=s?u3:o3(t);l=l==l3?eb:l,u=u==l3?eb:u;var c=l==eb,d=u==eb,f=l==u;if(f&&qx(e)){if(!qx(t))return!1;o=!0,c=!1}if(f&&!c)return i||(i=new Qs),o||Ak(e)?rK(e,t,r,n,a,i):E0e(e,t,l,r,n,a,i);if(!(r&M0e)){var A=c&&c3.call(e,"__wrapped__"),h=d&&c3.call(t,"__wrapped__");if(A||h){var v=A?e.value():e,p=h?t.value():t;return i||(i=new Qs),a(v,p,r,n,i)}}return f?(i||(i=new Qs),F0e(e,t,r,n,a,i)):!1}function gk(e,t,r,n,a){return e===t?!0:e==null||t==null||!Rc(e)&&!Rc(t)?e!==e&&t!==t:P0e(e,t,r,n,gk,a)}var L0e=1,O0e=2;function $0e(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var l=s[0],u=e[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var d=new Qs;if(n)var f=n(u,c,l,e,t,d);if(!(f===void 0?gk(c,u,L0e|O0e,n,d):f))return!1}}return!0}function nK(e){return e===e&&!wo(e)}function U0e(e){for(var t=hk(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,nK(a)]}return t}function aK(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function H0e(e){var t=U0e(e);return t.length==1&&t[0][2]?aK(t[0][0],t[0][1]):function(r){return r===e||$0e(r,e,t)}}function z0e(e,t){return e!=null&&t in Object(e)}function N0e(e,t,r){t=IG(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=aS(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&dk(a)&&uk(o,a)&&(xo(e)||Xx(e)))}function Q0e(e,t){return e!=null&&N0e(e,t,z0e)}var V0e=1,W0e=2;function G0e(e,t){return vk(e)&&nK(t)?aK(aS(e),t):function(r){var n=z0(r,e);return n===void 0&&n===t?Q0e(r,e):gk(t,n,V0e|W0e)}}function K0e(e){return function(t){return t==null?void 0:t[e]}}function j0e(e){return function(t){return RG(t,e)}}function Y0e(e){return vk(e)?K0e(aS(e)):j0e(e)}function X0e(e){return typeof e=="function"?e:e==null?sk:typeof e=="object"?xo(e)?G0e(e[0],e[1]):H0e(e):Y0e(e)}function q0e(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(r(i[l],l,i)===!1)break}return t}}var Z0e=q0e(),iK=Z0e;function J0e(e,t){return e&&iK(e,t,hk)}function eme(e,t){return function(r,n){if(r==null)return r;if(!Uv(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var tme=eme(J0e),rme=tme,nme=function(){return Eo.Date.now()},bB=nme,ame="Expected a function",ime=Math.max,ome=Math.min;function sme(e,t,r){var n,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(ame);t=jx(t)||0,wo(r)&&(c=!!r.leading,d="maxWait"in r,i=d?ime(jx(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function A(x){var S=n,_=a;return n=a=void 0,u=x,o=e.apply(_,S),o}function h(x){return u=x,s=setTimeout(g,t),c?A(x):o}function v(x){var S=x-l,_=x-u,B=t-S;return d?ome(B,i-_):B}function p(x){var S=x-l,_=x-u;return l===void 0||S>=t||S<0||d&&_>=i}function g(){var x=bB();if(p(x))return m(x);s=setTimeout(g,v(x))}function m(x){return s=void 0,f&&n?A(x):(n=a=void 0,o)}function y(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function b(){return s===void 0?o:m(bB())}function w(){var x=bB(),S=p(x);if(n=arguments,a=this,l=x,S){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(g,t),A(l)}return s===void 0&&(s=setTimeout(g,t)),o}return w.cancel=y,w.flush=b,w}function zI(e,t,r){(r!==void 0&&!Ym(e[t],r)||r===void 0&&!(t in e))&&ck(e,t,r)}function lme(e){return Rc(e)&&Uv(e)}function NI(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ume(e){return yhe(e,EG(e))}function cme(e,t,r,n,a,i,o){var s=NI(e,r),l=NI(t,r),u=o.get(l);if(u){zI(e,r,u);return}var c=i?i(s,l,r+"",e,t,o):void 0,d=c===void 0;if(d){var f=xo(l),A=!f&&qx(l),h=!f&&!A&&Ak(l);c=l,f||A||h?xo(s)?c=s:lme(s)?c=nhe(s):A?(d=!1,c=Uge(l,!0)):h?(d=!1,c=a0e(l,!0)):c=[]:cpe(l)||Xx(l)?(c=s,Xx(s)?c=ume(s):(!wo(s)||lk(s))&&(c=i0e(l))):d=!1}d&&(o.set(l,c),a(c,l,n,i,o),o.delete(l)),zI(e,r,c)}function oK(e,t,r,n,a){e!==t&&iK(t,function(i,o){if(a||(a=new Qs),wo(i))cme(e,t,o,r,oK,n,a);else{var s=n?n(NI(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),zI(e,o,s)}},EG)}function dme(e,t){var r=-1,n=Uv(e)?Array(e.length):[];return rme(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function fme(e,t){var r=xo(e)?xG:dme;return r(e,X0e(t))}var Ame=eK(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),hme=Ame,vme=She(function(e,t,r){oK(e,t,r)}),gg=vme,pme=Dge("round"),gme=pme,mme="Expected a function";function xB(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(mme);return wo(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),sme(e,t,{leading:n,maxWait:t,trailing:a})}var xi={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"};const{fontSize:yme,fontFamily:bme,lineHeight:xme}=xi;var sK=N("body",`
|
|
margin: 0;
|
|
font-size: ${yme};
|
|
font-family: ${bme};
|
|
line-height: ${xme};
|
|
-webkit-text-size-adjust: 100%;
|
|
-webkit-tap-highlight-color: transparent;
|
|
`,[N("input",`
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
`)]);const el="n-config-provider",dv="naive-ui-style";function Fe(e,t,r,n,a,i){const o=Xc(),s=We(el,null);if(r){const u=()=>{const c=i==null?void 0:i.value;r.mount({id:c===void 0?t:c+t,head:!0,props:{bPrefix:c?`.${c}-`:void 0},anchorMetaName:dv,ssr:o}),s!=null&&s.preflightStyleDisabled||sK.mount({id:"n-global",head:!0,anchorMetaName:dv,ssr:o})};o?u():ou(u)}return L(()=>{var u;const{theme:{common:c,self:d,peers:f={}}={},themeOverrides:A={},builtinThemeOverrides:h={}}=a,{common:v,peers:p}=A,{common:g=void 0,[e]:{common:m=void 0,self:y=void 0,peers:b={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:w=void 0,[e]:x={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:S,peers:_={}}=x,B=gg({},c||m||g||n.common,w,S,v),T=gg((u=d||y||n.self)===null||u===void 0?void 0:u(B),h,x,A);return{common:B,self:T,peers:gg({},n.peers,b,f),peerOverrides:gg({},h.peers,_,p)}})}Fe.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const lK="n";function et(e={},t={defaultBordered:!0}){const r=We(el,null);return{inlineThemeDisabled:r==null?void 0:r.inlineThemeDisabled,mergedRtlRef:r==null?void 0:r.mergedRtlRef,mergedComponentPropsRef:r==null?void 0:r.mergedComponentPropsRef,mergedBreakpointsRef:r==null?void 0:r.mergedBreakpointsRef,mergedBorderedRef:L(()=>{var n,a;const{bordered:i}=e;return i!==void 0?i:(a=(n=r==null?void 0:r.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&a!==void 0?a:!0}),mergedClsPrefixRef:L(()=>(r==null?void 0:r.mergedClsPrefixRef.value)||lK),namespaceRef:L(()=>r==null?void 0:r.mergedNamespaceRef.value)}}const wme={name:"zh-CN",global:{undo:"\u64A4\u9500",redo:"\u91CD\u505A",confirm:"\u786E\u8BA4"},Popconfirm:{positiveText:"\u786E\u8BA4",negativeText:"\u53D6\u6D88"},Cascader:{placeholder:"\u8BF7\u9009\u62E9",loading:"\u52A0\u8F7D\u4E2D",loadingRequiredMessage:e=>`\u52A0\u8F7D\u5168\u90E8 ${e} \u7684\u5B50\u8282\u70B9\u540E\u624D\u53EF\u9009\u4E2D`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy\u5E74",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"\u6E05\u9664",now:"\u6B64\u523B",confirm:"\u786E\u8BA4",selectTime:"\u9009\u62E9\u65F6\u95F4",selectDate:"\u9009\u62E9\u65E5\u671F",datePlaceholder:"\u9009\u62E9\u65E5\u671F",datetimePlaceholder:"\u9009\u62E9\u65E5\u671F\u65F6\u95F4",monthPlaceholder:"\u9009\u62E9\u6708\u4EFD",yearPlaceholder:"\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u9009\u62E9\u5B63\u5EA6",startDatePlaceholder:"\u5F00\u59CB\u65E5\u671F",endDatePlaceholder:"\u7ED3\u675F\u65E5\u671F",startDatetimePlaceholder:"\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",endDatetimePlaceholder:"\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",startMonthPlaceholder:"\u5F00\u59CB\u6708\u4EFD",endMonthPlaceholder:"\u7ED3\u675F\u6708\u4EFD",monthBeforeYear:!1,firstDayOfWeek:0,today:"\u4ECA\u5929"},DataTable:{checkTableAll:"\u9009\u62E9\u5168\u90E8\u8868\u683C\u6570\u636E",uncheckTableAll:"\u53D6\u6D88\u9009\u62E9\u5168\u90E8\u8868\u683C\u6570\u636E",confirm:"\u786E\u8BA4",clear:"\u91CD\u7F6E"},LegacyTransfer:{sourceTitle:"\u6E90\u9879",targetTitle:"\u76EE\u6807\u9879"},Transfer:{selectAll:"\u5168\u9009",clearAll:"\u6E05\u9664",unselectAll:"\u53D6\u6D88\u5168\u9009",total:e=>`\u5171 ${e} \u9879`,selected:e=>`\u5DF2\u9009 ${e} \u9879`},Empty:{description:"\u65E0\u6570\u636E"},Select:{placeholder:"\u8BF7\u9009\u62E9"},TimePicker:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",positiveText:"\u786E\u8BA4",negativeText:"\u53D6\u6D88",now:"\u6B64\u523B"},Pagination:{goto:"\u8DF3\u81F3",selectionSuffix:"\u9875"},DynamicTags:{add:"\u6DFB\u52A0"},Log:{loading:"\u52A0\u8F7D\u4E2D"},Input:{placeholder:"\u8BF7\u8F93\u5165"},InputNumber:{placeholder:"\u8BF7\u8F93\u5165"},DynamicInput:{create:"\u6DFB\u52A0"},ThemeEditor:{title:"\u4E3B\u9898\u7F16\u8F91\u5668",clearAllVars:"\u6E05\u9664\u5168\u90E8\u53D8\u91CF",clearSearch:"\u6E05\u9664\u641C\u7D22",filterCompName:"\u8FC7\u6EE4\u7EC4\u4EF6\u540D",filterVarName:"\u8FC7\u6EE4\u53D8\u91CF\u540D",import:"\u5BFC\u5165",export:"\u5BFC\u51FA",restore:"\u6062\u590D\u9ED8\u8BA4"},Image:{tipPrevious:"\u4E0A\u4E00\u5F20\uFF08\u2190\uFF09",tipNext:"\u4E0B\u4E00\u5F20\uFF08\u2192\uFF09",tipCounterclockwise:"\u5411\u5DE6\u65CB\u8F6C",tipClockwise:"\u5411\u53F3\u65CB\u8F6C",tipZoomOut:"\u7F29\u5C0F",tipZoomIn:"\u653E\u5927",tipClose:"\u5173\u95ED\uFF08Esc\uFF09",tipOriginalSize:"\u7F29\u653E\u5230\u539F\u59CB\u5C3A\u5BF8"}};var Cme=wme;const Sme={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};var uK=Sme,tb={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}};function _me(e,t,r){r=r||{};var n;return typeof tb[e]=="string"?n=tb[e]:t===1?n=tb[e].one:n=tb[e].other.replace("{{count}}",t),r.addSuffix?r.comparison>0?n+"\u5185":n+"\u524D":n}function Gh(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var Bme={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Tme={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Eme={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Ime={date:Gh({formats:Bme,defaultWidth:"full"}),time:Gh({formats:Tme,defaultWidth:"full"}),dateTime:Gh({formats:Eme,defaultWidth:"full"})},Rme=Ime;function Ot(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Vt(e){Ot(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function gr(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ul(e,t){Ot(1,arguments);var r=t||{},n=r.locale,a=n&&n.options&&n.options.weekStartsOn,i=a==null?0:gr(a),o=r.weekStartsOn==null?i:gr(r.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Vt(e),l=s.getUTCDay(),u=(l<o?7:0)+l-o;return s.setUTCDate(s.getUTCDate()-u),s.setUTCHours(0,0,0,0),s}function Dme(e,t,r){Ot(2,arguments);var n=Ul(e,r),a=Ul(t,r);return n.getTime()===a.getTime()}function d3(e,t,r,n){return Dme(e,t,r)?n:e.getTime()>t.getTime()?"'\u4E0B\u4E2A'"+n:"'\u4E0A\u4E2A'"+n}var Fme={lastWeek:d3,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:d3,other:"PP p"};function Mme(e,t,r,n){var a=Fme[e];return typeof a=="function"?a(t,r,n,"eeee p"):a}function Fs(e){return function(t,r){var n=r||{},a=n.context?String(n.context):"standalone",i;if(a==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var l=e.defaultWidth,u=n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[l]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var kme={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},Pme={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},Lme={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},Ome={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},$me={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},Ume={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}};function Hme(e,t){var r=Number(e),n=t||{},a=String(n.unit);switch(a){case"date":return r.toString()+"\u65E5";case"hour":return r.toString()+"\u65F6";case"minute":return r.toString()+"\u5206";case"second":return r.toString()+"\u79D2";default:return"\u7B2C "+r.toString()}}var zme={ordinalNumber:Hme,era:Fs({values:kme,defaultWidth:"wide"}),quarter:Fs({values:Pme,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:Fs({values:Lme,defaultWidth:"wide"}),day:Fs({values:Ome,defaultWidth:"wide"}),dayPeriod:Fs({values:$me,defaultWidth:"wide",formattingValues:Ume,defaultFormattingWidth:"wide"})},Nme=zme;function cK(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}function Ms(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Vme(s,function(d){return d.test(o)}):Qme(s,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function Qme(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Vme(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}var Wme=/^(第\s*)?\d+(日|时|分|秒)?/i,Gme=/\d+/i,Kme={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},jme={any:[/^(前)/i,/^(公元)/i]},Yme={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Xme={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},qme={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Zme={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Jme={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},eye={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},tye={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},rye={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},nye={ordinalNumber:cK({matchPattern:Wme,parsePattern:Gme,valueCallback:function(e){return parseInt(e,10)}}),era:Ms({matchPatterns:Kme,defaultMatchWidth:"wide",parsePatterns:jme,defaultParseWidth:"any"}),quarter:Ms({matchPatterns:Yme,defaultMatchWidth:"wide",parsePatterns:Xme,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ms({matchPatterns:qme,defaultMatchWidth:"wide",parsePatterns:Zme,defaultParseWidth:"any"}),day:Ms({matchPatterns:Jme,defaultMatchWidth:"wide",parsePatterns:eye,defaultParseWidth:"any"}),dayPeriod:Ms({matchPatterns:tye,defaultMatchWidth:"any",parsePatterns:rye,defaultParseWidth:"any"})},aye=nye,iye={code:"zh-CN",formatDistance:_me,formatLong:Rme,formatRelative:Mme,localize:Nme,match:aye,options:{weekStartsOn:1,firstWeekContainsDate:4}},oye=iye;const sye={name:"zh-CN",locale:oye};var lye=sye,uye={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cye=function(e,t,r){var n,a=uye[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},dye=cye,fye={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Aye={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hye={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vye={date:Gh({formats:fye,defaultWidth:"full"}),time:Gh({formats:Aye,defaultWidth:"full"}),dateTime:Gh({formats:hye,defaultWidth:"full"})},pye=vye,gye={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mye=function(e,t,r,n){return gye[e]},yye=mye,bye={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xye={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wye={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Cye={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Sye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_ye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Bye=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Tye={ordinalNumber:Bye,era:Fs({values:bye,defaultWidth:"wide"}),quarter:Fs({values:xye,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Fs({values:wye,defaultWidth:"wide"}),day:Fs({values:Cye,defaultWidth:"wide"}),dayPeriod:Fs({values:Sye,defaultWidth:"wide",formattingValues:_ye,defaultFormattingWidth:"wide"})},Eye=Tye,Iye=/^(\d+)(th|st|nd|rd)?/i,Rye=/\d+/i,Dye={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Fye={any:[/^b/i,/^(a|c)/i]},Mye={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},kye={any:[/1/i,/2/i,/3/i,/4/i]},Pye={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Lye={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Oye={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$ye={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Uye={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Hye={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},zye={ordinalNumber:cK({matchPattern:Iye,parsePattern:Rye,valueCallback:function(e){return parseInt(e,10)}}),era:Ms({matchPatterns:Dye,defaultMatchWidth:"wide",parsePatterns:Fye,defaultParseWidth:"any"}),quarter:Ms({matchPatterns:Mye,defaultMatchWidth:"wide",parsePatterns:kye,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ms({matchPatterns:Pye,defaultMatchWidth:"wide",parsePatterns:Lye,defaultParseWidth:"any"}),day:Ms({matchPatterns:Oye,defaultMatchWidth:"wide",parsePatterns:$ye,defaultParseWidth:"any"}),dayPeriod:Ms({matchPatterns:Uye,defaultMatchWidth:"any",parsePatterns:Hye,defaultParseWidth:"any"})},Nye=zye,Qye={code:"en-US",formatDistance:dye,formatLong:pye,formatRelative:yye,localize:Eye,match:Nye,options:{weekStartsOn:0,firstWeekContainsDate:1}},iS=Qye;const Vye={name:"en-US",locale:iS};var dK=Vye;function Io(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=We(el,null)||{},n=L(()=>{var i,o;return(o=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&o!==void 0?o:uK[e]});return{dateLocaleRef:L(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:dK}),localeRef:n}}function ol(e,t,r){if(!t)return;const n=Xc(),a=We(el,null),i=()=>{const o=r==null?void 0:r.value;t.mount({id:o===void 0?e:o+e,head:!0,anchorMetaName:dv,props:{bPrefix:o?`.${o}-`:void 0},ssr:n}),a!=null&&a.preflightStyleDisabled||sK.mount({id:"n-global",head:!0,anchorMetaName:dv,ssr:n})};n?i():ou(i)}function Wye(e,t){const r=We(el,null);return L(()=>e.hljs||(r==null?void 0:r.mergedHljsRef.value))}function _t(e,t,r,n){var a;r||Ta("useThemeClass","cssVarsRef is not passed");const i=(a=We(el,null))===null||a===void 0?void 0:a.mergedThemeHashRef,o=X(""),s=Xc();let l;const u=`__${e}`,c=()=>{let d=u;const f=t?t.value:void 0,A=i==null?void 0:i.value;A&&(d+="-"+A),f&&(d+="-"+f);const{themeOverrides:h,builtinThemeOverrides:v}=n;h&&(d+="-"+P0(JSON.stringify(h))),v&&(d+="-"+P0(JSON.stringify(v))),o.value=d,l=()=>{const p=r.value;let g="";for(const m in p)g+=`${m}: ${p[m]};`;N(`.${d}`,g).mount({id:d,ssr:s}),l=void 0}};return yr(()=>{c()}),{themeClass:o,onRender:()=>{l==null||l()}}}function tn(e,t,r){if(!t)return;const n=Xc(),a=L(()=>{const{value:o}=t;if(!o)return;const s=o[e];if(!!s)return s}),i=()=>{yr(()=>{const{value:o}=r,s=`${o}${e}Rtl`;if(Yde(s,n))return;const{value:l}=a;!l||l.style.mount({id:s,head:!0,anchorMetaName:dv,props:{bPrefix:o?`.${o}-`:void 0},ssr:n})})};return n?i():ou(i),a}var mk=ge({name:"Add",render(){return C("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),Gye=ge({name:"ArrowDown",render(){return C("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},C("g",{"fill-rule":"nonzero"},C("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function da(e,t){return ge({name:HG(e),setup(){var r;const n=(r=We(el,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var a;const i=(a=n==null?void 0:n.value)===null||a===void 0?void 0:a[e];return i?i():t}}})}var Kye=da("attach",C("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},C("g",{fill:"currentColor","fill-rule":"nonzero"},C("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),Dc=ge({name:"Backward",render(){return C("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),f3=da("date",C("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},C("g",{"fill-rule":"nonzero"},C("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),fK=ge({name:"Checkmark",render(){return C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},C("g",{fill:"none"},C("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),jye=ge({name:"ChevronLeft",render(){return C("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),oS=ge({name:"ChevronRight",render(){return C("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),AK=da("close",C("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},C("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},C("g",{fill:"currentColor","fill-rule":"nonzero"},C("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),hK=ge({name:"Eye",render(){return C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},C("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),C("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),Yye=ge({name:"EyeOff",render(){return C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},C("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),C("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),C("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),C("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),C("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),Xye=da("trash",C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},C("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),C("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),C("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),C("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),qye=da("download",C("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},C("g",{fill:"currentColor","fill-rule":"nonzero"},C("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),Zye=ge({name:"Empty",render(){return C("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),C("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),uA=da("error",C("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},C("g",{"fill-rule":"nonzero"},C("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Fc=ge({name:"FastBackward",render(){return C("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},C("g",{fill:"currentColor","fill-rule":"nonzero"},C("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Mc=ge({name:"FastForward",render(){return C("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},C("g",{fill:"currentColor","fill-rule":"nonzero"},C("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),Jye=ge({name:"Filter",render(){return C("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},C("g",{"fill-rule":"nonzero"},C("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),kc=ge({name:"Forward",render(){return C("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Pc=da("info",C("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},C("g",{"fill-rule":"nonzero"},C("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),A3=ge({name:"More",render(){return C("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},C("g",{fill:"currentColor","fill-rule":"nonzero"},C("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),ebe=ge({name:"Remove",render(){return C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},C("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 32px;
|
|
`}))}}),cA=da("success",C("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},C("g",{"fill-rule":"nonzero"},C("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),tbe=ge({name:"Switcher",render(){return C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},C("path",{d:"M12 8l10 8l-10 8z"}))}}),rbe=da("time",C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},C("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:`
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-miterlimit: 10;
|
|
stroke-width: 32px;
|
|
`}),C("polyline",{points:"256 128 256 272 352 272",style:`
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 32px;
|
|
`}))),dA=da("warning",C("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},C("g",{"fill-rule":"nonzero"},C("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),nbe=da("cancel",C("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},C("g",{fill:"currentColor","fill-rule":"nonzero"},C("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),vK=ge({name:"ChevronDown",render(){return C("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),abe=da("clear",C("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},C("g",{fill:"currentColor","fill-rule":"nonzero"},C("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),ibe=ge({name:"ChevronDownFilled",render(){return C("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),obe=da("to",C("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},C("g",{fill:"currentColor","fill-rule":"nonzero"},C("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),sbe=da("retry",C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},C("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),C("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),lbe=da("rotateClockwise",C("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),C("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),ube=da("rotateClockwise",C("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),C("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),cbe=da("zoomIn",C("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),C("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),dbe=da("zoomOut",C("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),C("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),fbe=ge({name:"ResizeSmall",render(){return C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},C("g",{fill:"none"},C("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),sl=ge({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=ji();return()=>C(zr,{name:"icon-switch-transition",appear:r.value},t)}}),ll=ge({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function r(s){e.width?s.style.maxWidth=`${s.offsetWidth}px`:s.style.maxHeight=`${s.offsetHeight}px`,s.offsetWidth}function n(s){e.width?s.style.maxWidth="0":s.style.maxHeight="0",s.offsetWidth;const{onLeave:l}=e;l&&l()}function a(s){e.width?s.style.maxWidth="":s.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function i(s){if(s.style.transition="none",e.width){const l=s.offsetWidth;s.style.maxWidth="0",s.offsetWidth,s.style.transition="",s.style.maxWidth=`${l}px`}else if(e.reverse)s.style.maxHeight=`${s.offsetHeight}px`,s.offsetHeight,s.style.transition="",s.style.maxHeight="0";else{const l=s.offsetHeight;s.style.maxHeight="0",s.offsetWidth,s.style.transition="",s.style.maxHeight=`${l}px`}s.offsetWidth}function o(s){var l;e.width?s.style.maxWidth="":e.reverse||(s.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const s=e.group?qC:zr;return C(s,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:o,onBeforeLeave:r,onLeave:n,onAfterLeave:a},t)}}}),Abe=M("base-icon",`
|
|
height: 1em;
|
|
width: 1em;
|
|
line-height: 1em;
|
|
text-align: center;
|
|
display: inline-block;
|
|
position: relative;
|
|
fill: currentColor;
|
|
transform: translateZ(0);
|
|
`,[N("svg",`
|
|
height: 1em;
|
|
width: 1em;
|
|
`)]),$t=ge({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){ol("-base-icon",Abe,Ie(e,"clsPrefix"))},render(){return C("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),hbe=M("base-close",`
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
background-color: transparent;
|
|
color: var(--n-close-icon-color);
|
|
border-radius: var(--n-close-border-radius);
|
|
height: var(--n-close-size);
|
|
width: var(--n-close-size);
|
|
font-size: var(--n-close-icon-size);
|
|
outline: none;
|
|
border: none;
|
|
position: relative;
|
|
padding: 0;
|
|
`,[j("absolute",`
|
|
height: var(--n-close-icon-size);
|
|
width: var(--n-close-icon-size);
|
|
`),N("&::before",`
|
|
content: "";
|
|
position: absolute;
|
|
width: var(--n-close-size);
|
|
height: var(--n-close-size);
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateY(-50%) translateX(-50%);
|
|
transition: inherit;
|
|
border-radius: inherit;
|
|
`),Nt("disabled",[N("&:hover",`
|
|
color: var(--n-close-icon-color-hover);
|
|
`),N("&:hover::before",`
|
|
background-color: var(--n-close-color-hover);
|
|
`),N("&:focus::before",`
|
|
background-color: var(--n-close-color-hover);
|
|
`),N("&:active",`
|
|
color: var(--n-close-icon-color-pressed);
|
|
`),N("&:active::before",`
|
|
background-color: var(--n-close-color-pressed);
|
|
`)]),j("disabled",`
|
|
cursor: not-allowed;
|
|
color: var(--n-close-icon-color-disabled);
|
|
background-color: transparent;
|
|
`),j("round",[N("&::before",`
|
|
border-radius: 50%;
|
|
`)])]),Zc=ge({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return ol("-base-close",hbe,Ie(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:r,absolute:n,round:a,isButtonTag:i}=e;return C(i?"button":"div",{type:i?"button":void 0,tabindex:r||!e.focusable?-1:0,"aria-disabled":r,"aria-label":"close",role:i?void 0:"button",disabled:r,class:[`${t}-base-close`,n&&`${t}-base-close--absolute`,r&&`${t}-base-close--disabled`,a&&`${t}-base-close--round`],onMousedown:s=>{e.focusable||s.preventDefault()},onClick:e.onClick},C($t,{clsPrefix:t},{default:()=>C(AK,null)}))}}}),Jc=ge({props:{onFocus:Function,onBlur:Function},setup(e){return()=>C("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}});const{cubicBezierEaseInOut:vbe}=xi;function Wn({originalTransform:e="",left:t=0,top:r=0,transition:n=`all .3s ${vbe} !important`}={}){return[N("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),N("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),N("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:n})]}var pbe=N([N("@keyframes loading-container-rotate",`
|
|
to {
|
|
-webkit-transform: rotate(360deg);
|
|
transform: rotate(360deg);
|
|
}
|
|
`),N("@keyframes loading-layer-rotate",`
|
|
12.5% {
|
|
-webkit-transform: rotate(135deg);
|
|
transform: rotate(135deg);
|
|
}
|
|
25% {
|
|
-webkit-transform: rotate(270deg);
|
|
transform: rotate(270deg);
|
|
}
|
|
37.5% {
|
|
-webkit-transform: rotate(405deg);
|
|
transform: rotate(405deg);
|
|
}
|
|
50% {
|
|
-webkit-transform: rotate(540deg);
|
|
transform: rotate(540deg);
|
|
}
|
|
62.5% {
|
|
-webkit-transform: rotate(675deg);
|
|
transform: rotate(675deg);
|
|
}
|
|
75% {
|
|
-webkit-transform: rotate(810deg);
|
|
transform: rotate(810deg);
|
|
}
|
|
87.5% {
|
|
-webkit-transform: rotate(945deg);
|
|
transform: rotate(945deg);
|
|
}
|
|
100% {
|
|
-webkit-transform: rotate(1080deg);
|
|
transform: rotate(1080deg);
|
|
}
|
|
`),N("@keyframes loading-left-spin",`
|
|
from {
|
|
-webkit-transform: rotate(265deg);
|
|
transform: rotate(265deg);
|
|
}
|
|
50% {
|
|
-webkit-transform: rotate(130deg);
|
|
transform: rotate(130deg);
|
|
}
|
|
to {
|
|
-webkit-transform: rotate(265deg);
|
|
transform: rotate(265deg);
|
|
}
|
|
`),N("@keyframes loading-right-spin",`
|
|
from {
|
|
-webkit-transform: rotate(-265deg);
|
|
transform: rotate(-265deg);
|
|
}
|
|
50% {
|
|
-webkit-transform: rotate(-130deg);
|
|
transform: rotate(-130deg);
|
|
}
|
|
to {
|
|
-webkit-transform: rotate(-265deg);
|
|
transform: rotate(-265deg);
|
|
}
|
|
`),M("base-loading",`
|
|
position: relative;
|
|
line-height: 0;
|
|
width: 1em;
|
|
height: 1em;
|
|
`,[G("transition-wrapper",`
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
`,[Wn()]),G("container",`
|
|
display: inline-flex;
|
|
position: relative;
|
|
direction: ltr;
|
|
line-height: 0;
|
|
animation: loading-container-rotate 1568.2352941176ms linear infinite;
|
|
font-size: 0;
|
|
letter-spacing: 0;
|
|
white-space: nowrap;
|
|
opacity: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
`,[G("svg",`
|
|
stroke: var(--n-text-color);
|
|
fill: transparent;
|
|
position: absolute;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`),G("container-layer",`
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|
`,[G("container-layer-left",`
|
|
display: inline-flex;
|
|
position: relative;
|
|
width: 50%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`,[G("svg",`
|
|
animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|
width: 200%;
|
|
`)]),G("container-layer-patch",`
|
|
position: absolute;
|
|
top: 0;
|
|
left: 47.5%;
|
|
box-sizing: border-box;
|
|
width: 5%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`,[G("svg",`
|
|
left: -900%;
|
|
width: 2000%;
|
|
transform: rotate(180deg);
|
|
`)]),G("container-layer-right",`
|
|
display: inline-flex;
|
|
position: relative;
|
|
width: 50%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`,[G("svg",`
|
|
animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|
left: -100%;
|
|
width: 200%;
|
|
`)])])]),G("placeholder",`
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
`,[Wn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),cu=ge({name:"BaseLoading",props:{clsPrefix:{type:String,required:!0},scale:{type:Number,default:1},radius:{type:Number,default:100},strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},show:{type:Boolean,default:!0}},setup(e){ol("-base-loading",pbe,Ie(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:n,scale:a}=this,i=t/a;return C("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},C(sl,null,{default:()=>this.show?C("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},C("div",{class:`${e}-base-loading__container`},C("div",{class:`${e}-base-loading__container-layer`},C("div",{class:`${e}-base-loading__container-layer-left`},C("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},C("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),C("div",{class:`${e}-base-loading__container-layer-patch`},C("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},C("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),C("div",{class:`${e}-base-loading__container-layer-right`},C("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},C("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):C("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function h3(e){return Array.isArray(e)?e:[e]}const QI={STOP:"STOP"};function pK(e,t){const r=t(e);e.children!==void 0&&r!==QI.STOP&&e.children.forEach(n=>pK(n,t))}function gbe(e,t={}){const{preserveGroup:r=!1}=t,n=[],a=r?o=>{o.isLeaf||(n.push(o.key),i(o.children))}:o=>{o.isLeaf||(o.isGroup||n.push(o.key),i(o.children))};function i(o){o.forEach(a)}return i(e),n}function mbe(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function ybe(e){return e.children}function bbe(e){return e.key}function xbe(){return!1}function wbe(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function Cbe(e){return e.disabled===!0}function Sbe(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function wB(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function CB(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function _be(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)||r.add(n)}),Array.from(r)}function Bbe(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)&&r.delete(n)}),Array.from(r)}function Tbe(e){return(e==null?void 0:e.type)==="group"}function gK(e){const t=new Map;return e.forEach((r,n)=>{t.set(r.key,n)}),r=>{var n;return(n=t.get(r))!==null&&n!==void 0?n:null}}class Ebe extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Ibe(e,t,r,n){return ew(t.concat(e),r,n,!1)}function Rbe(e,t){const r=new Set;return e.forEach(n=>{const a=t.treeNodeMap.get(n);if(a!==void 0){let i=a.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function Dbe(e,t,r,n){const a=ew(t,r,n,!1),i=ew(e,r,n,!0),o=Rbe(e,r),s=[];return a.forEach(l=>{(i.has(l)||o.has(l))&&s.push(l)}),s.forEach(l=>a.delete(l)),a}function SB(e,t){const{checkedKeys:r,keysToCheck:n,keysToUncheck:a,indeterminateKeys:i,cascade:o,leafOnly:s,checkStrategy:l,allowNotLoaded:u}=e;if(!o)return n!==void 0?{checkedKeys:_be(r,n),indeterminateKeys:Array.from(i)}:a!==void 0?{checkedKeys:Bbe(r,a),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:c}=t;let d;a!==void 0?d=Dbe(a,r,t,u):n!==void 0?d=Ibe(n,r,t,u):d=ew(r,t,u,!1);const f=l==="parent",A=l==="child"||s,h=d,v=new Set,p=Math.max.apply(null,Array.from(c.keys()));for(let g=p;g>=0;g-=1){const m=g===0,y=c.get(g);for(const b of y){if(b.isLeaf)continue;const{key:w,shallowLoaded:x}=b;if(A&&x&&b.children.forEach(T=>{!T.disabled&&!T.isLeaf&&T.shallowLoaded&&h.has(T.key)&&h.delete(T.key)}),b.disabled||!x)continue;let S=!0,_=!1,B=!0;for(const T of b.children){const E=T.key;if(!T.disabled){if(B&&(B=!1),h.has(E))_=!0;else if(v.has(E)){_=!0,S=!1;break}else if(S=!1,_)break}}S&&!B?(f&&b.children.forEach(T=>{!T.disabled&&h.has(T.key)&&h.delete(T.key)}),h.add(w)):_&&v.add(w),m&&A&&h.has(w)&&h.delete(w)}}return{checkedKeys:Array.from(h),indeterminateKeys:Array.from(v)}}function ew(e,t,r,n){const{treeNodeMap:a,getChildren:i}=t,o=new Set,s=new Set(e);return e.forEach(l=>{const u=a.get(l);u!==void 0&&pK(u,c=>{if(c.disabled)return QI.STOP;const{key:d}=c;if(!o.has(d)&&(o.add(d),s.add(d),Sbe(c.rawNode,i))){if(n)return QI.STOP;if(!r)throw new Ebe}})}),s}function Fbe(e,{includeGroup:t=!1,includeSelf:r=!0},n){var a;const i=n.treeNodeMap;let o=e==null?null:(a=i.get(e))!==null&&a!==void 0?a:null;const s={keyPath:[],treeNodePath:[],treeNode:o};if(o!=null&&o.ignored)return s.treeNode=null,s;for(;o;)!o.ignored&&(t||!o.isGroup)&&s.treeNodePath.push(o),o=o.parent;return s.treeNodePath.reverse(),r||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(l=>l.key),s}function Mbe(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function kbe(e,t){const r=e.siblings,n=r.length,{index:a}=e;return t?r[(a+1)%n]:a===r.length-1?null:r[a+1]}function v3(e,t,{loop:r=!1,includeDisabled:n=!1}={}){const a=t==="prev"?Pbe:kbe,i={reverse:t==="prev"};let o=!1,s=null;function l(u){if(u!==null){if(u===e){if(!o)o=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!u.disabled||n)&&!u.ignored&&!u.isGroup){s=u;return}if(u.isGroup){const c=yk(u,i);c!==null?s=c:l(a(u,r))}else{const c=a(u,!1);if(c!==null)l(c);else{const d=Lbe(u);d!=null&&d.isGroup?l(a(d,r)):r&&l(a(u,!0))}}}}return l(e),s}function Pbe(e,t){const r=e.siblings,n=r.length,{index:a}=e;return t?r[(a-1+n)%n]:a===0?null:r[a-1]}function Lbe(e){return e.parent}function yk(e,t={}){const{reverse:r=!1}=t,{children:n}=e;if(n){const{length:a}=n,i=r?a-1:0,o=r?-1:a,s=r?-1:1;for(let l=i;l!==o;l+=s){const u=n[l];if(!u.disabled&&!u.ignored)if(u.isGroup){const c=yk(u,t);if(c!==null)return c}else return u}}return null}const Obe={getChild(){return this.ignored?null:yk(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return v3(this,"next",e)},getPrev(e={}){return v3(this,"prev",e)}};function VI(e,t){const r=t?new Set(t):void 0,n=[];function a(i){i.forEach(o=>{n.push(o),!(o.isLeaf||!o.children||o.ignored)&&(o.isGroup||r===void 0||r.has(o.key))&&a(o.children)})}return a(e),n}function $be(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function mK(e,t,r,n,a,i=null,o=0){const s=[];return e.forEach((l,u)=>{var c;const d=Object.create(n);if(d.rawNode=l,d.siblings=s,d.level=o,d.index=u,d.isFirstChild=u===0,d.isLastChild=u+1===e.length,d.parent=i,!d.ignored){const f=a(l);Array.isArray(f)&&(d.children=mK(f,t,r,n,a,d,o+1))}s.push(d),t.set(d.key,d),r.has(o)||r.set(o,[]),(c=r.get(o))===null||c===void 0||c.push(d)}),s}function Hv(e,t={}){var r;const n=new Map,a=new Map,{getDisabled:i=Cbe,getIgnored:o=xbe,getIsGroup:s=Tbe,getKey:l=bbe}=t,u=(r=t.getChildren)!==null&&r!==void 0?r:ybe,c=t.ignoreEmptyChildren?b=>{const w=u(b);return Array.isArray(w)?w.length?w:null:w}:u,d=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return mbe(this.rawNode,c)},get shallowLoaded(){return wbe(this.rawNode,c)},get ignored(){return o(this.rawNode)},contains(b){return $be(this,b)}},Obe),f=mK(e,n,a,d,c);function A(b){if(b==null)return null;const w=n.get(b);return w&&!w.isGroup&&!w.ignored?w:null}function h(b){if(b==null)return null;const w=n.get(b);return w&&!w.ignored?w:null}function v(b,w){const x=h(b);return x?x.getPrev(w):null}function p(b,w){const x=h(b);return x?x.getNext(w):null}function g(b){const w=h(b);return w?w.getParent():null}function m(b){const w=h(b);return w?w.getChild():null}const y={treeNodes:f,treeNodeMap:n,levelTreeNodeMap:a,maxLevel:Math.max(...a.keys()),getChildren:c,getFlattenedNodes(b){return VI(f,b)},getNode:A,getPrev:v,getNext:p,getParent:g,getChild:m,getFirstAvailableNode(){return Mbe(f)},getPath(b,w={}){return Fbe(b,w,y)},getCheckedKeys(b,w={}){const{cascade:x=!0,leafOnly:S=!1,checkStrategy:_="all",allowNotLoaded:B=!1}=w;return SB({checkedKeys:wB(b),indeterminateKeys:CB(b),cascade:x,leafOnly:S,checkStrategy:_,allowNotLoaded:B},y)},check(b,w,x={}){const{cascade:S=!0,leafOnly:_=!1,checkStrategy:B="all",allowNotLoaded:T=!1}=x;return SB({checkedKeys:wB(w),indeterminateKeys:CB(w),keysToCheck:b==null?[]:h3(b),cascade:S,leafOnly:_,checkStrategy:B,allowNotLoaded:T},y)},uncheck(b,w,x={}){const{cascade:S=!0,leafOnly:_=!1,checkStrategy:B="all",allowNotLoaded:T=!1}=x;return SB({checkedKeys:wB(w),indeterminateKeys:CB(w),keysToUncheck:b==null?[]:h3(b),cascade:S,leafOnly:_,checkStrategy:B,allowNotLoaded:T},y)},getNonLeafKeys(b={}){return gbe(f,b)}};return y}const bt={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},Ube=Qn(bt.neutralBase),yK=Qn(bt.neutralInvertBase),Hbe="rgba("+yK.slice(0,3).join(", ")+", ";function Dr(e){return Hbe+String(e)+")"}function zbe(e){const t=Array.from(yK);return t[3]=Number(e),Et(Ube,t)}const Nbe=Object.assign(Object.assign({name:"common"},xi),{baseColor:bt.neutralBase,primaryColor:bt.primaryDefault,primaryColorHover:bt.primaryHover,primaryColorPressed:bt.primaryActive,primaryColorSuppl:bt.primarySuppl,infoColor:bt.infoDefault,infoColorHover:bt.infoHover,infoColorPressed:bt.infoActive,infoColorSuppl:bt.infoSuppl,successColor:bt.successDefault,successColorHover:bt.successHover,successColorPressed:bt.successActive,successColorSuppl:bt.successSuppl,warningColor:bt.warningDefault,warningColorHover:bt.warningHover,warningColorPressed:bt.warningActive,warningColorSuppl:bt.warningSuppl,errorColor:bt.errorDefault,errorColorHover:bt.errorHover,errorColorPressed:bt.errorActive,errorColorSuppl:bt.errorSuppl,textColorBase:bt.neutralTextBase,textColor1:Dr(bt.alpha1),textColor2:Dr(bt.alpha2),textColor3:Dr(bt.alpha3),textColorDisabled:Dr(bt.alpha4),placeholderColor:Dr(bt.alpha4),placeholderColorDisabled:Dr(bt.alpha5),iconColor:Dr(bt.alpha4),iconColorDisabled:Dr(bt.alpha5),iconColorHover:Dr(Number(bt.alpha4)*1.25),iconColorPressed:Dr(Number(bt.alpha4)*.8),opacity1:bt.alpha1,opacity2:bt.alpha2,opacity3:bt.alpha3,opacity4:bt.alpha4,opacity5:bt.alpha5,dividerColor:Dr(bt.alphaDivider),borderColor:Dr(bt.alphaBorder),closeIconColorHover:Dr(Number(bt.alphaClose)),closeIconColor:Dr(Number(bt.alphaClose)),closeIconColorPressed:Dr(Number(bt.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Dr(bt.alpha4),clearColorHover:kn(Dr(bt.alpha4),{alpha:1.25}),clearColorPressed:kn(Dr(bt.alpha4),{alpha:.8}),scrollbarColor:Dr(bt.alphaScrollbar),scrollbarColorHover:Dr(bt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Dr(bt.alphaProgressRail),railColor:Dr(bt.alphaRail),popoverColor:bt.neutralPopover,tableColor:bt.neutralCard,cardColor:bt.neutralCard,modalColor:bt.neutralModal,bodyColor:bt.neutralBody,tagColor:zbe(bt.alphaTag),avatarColor:Dr(bt.alphaAvatar),invertedColor:bt.neutralBase,inputColor:Dr(bt.alphaInput),codeColor:Dr(bt.alphaCode),tabColor:Dr(bt.alphaTab),actionColor:Dr(bt.alphaAction),tableHeaderColor:Dr(bt.alphaAction),hoverColor:Dr(bt.alphaPending),tableColorHover:Dr(bt.alphaTablePending),tableColorStriped:Dr(bt.alphaTableStriped),pressedColor:Dr(bt.alphaPressed),opacityDisabled:bt.alphaDisabled,inputColorDisabled:Dr(bt.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"});var st=Nbe;const Qt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},Qbe=Qn(Qt.neutralBase),bK=Qn(Qt.neutralInvertBase),Vbe="rgba("+bK.slice(0,3).join(", ")+", ";function p3(e){return Vbe+String(e)+")"}function Ia(e){const t=Array.from(bK);return t[3]=Number(e),Et(Qbe,t)}const Wbe=Object.assign(Object.assign({name:"common"},xi),{baseColor:Qt.neutralBase,primaryColor:Qt.primaryDefault,primaryColorHover:Qt.primaryHover,primaryColorPressed:Qt.primaryActive,primaryColorSuppl:Qt.primarySuppl,infoColor:Qt.infoDefault,infoColorHover:Qt.infoHover,infoColorPressed:Qt.infoActive,infoColorSuppl:Qt.infoSuppl,successColor:Qt.successDefault,successColorHover:Qt.successHover,successColorPressed:Qt.successActive,successColorSuppl:Qt.successSuppl,warningColor:Qt.warningDefault,warningColorHover:Qt.warningHover,warningColorPressed:Qt.warningActive,warningColorSuppl:Qt.warningSuppl,errorColor:Qt.errorDefault,errorColorHover:Qt.errorHover,errorColorPressed:Qt.errorActive,errorColorSuppl:Qt.errorSuppl,textColorBase:Qt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Ia(Qt.alpha4),placeholderColor:Ia(Qt.alpha4),placeholderColorDisabled:Ia(Qt.alpha5),iconColor:Ia(Qt.alpha4),iconColorHover:kn(Ia(Qt.alpha4),{lightness:.75}),iconColorPressed:kn(Ia(Qt.alpha4),{lightness:.9}),iconColorDisabled:Ia(Qt.alpha5),opacity1:Qt.alpha1,opacity2:Qt.alpha2,opacity3:Qt.alpha3,opacity4:Qt.alpha4,opacity5:Qt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Ia(Number(Qt.alphaClose)),closeIconColorHover:Ia(Number(Qt.alphaClose)),closeIconColorPressed:Ia(Number(Qt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Ia(Qt.alpha4),clearColorHover:kn(Ia(Qt.alpha4),{lightness:.75}),clearColorPressed:kn(Ia(Qt.alpha4),{lightness:.9}),scrollbarColor:p3(Qt.alphaScrollbar),scrollbarColorHover:p3(Qt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ia(Qt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:Qt.neutralPopover,tableColor:Qt.neutralCard,cardColor:Qt.neutralCard,modalColor:Qt.neutralModal,bodyColor:Qt.neutralBody,tagColor:"#eee",avatarColor:Ia(Qt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Ia(Qt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Qt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"});var Dt=Wbe,Gbe={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};const xK=e=>{const{textColorDisabled:t,iconColor:r,textColor2:n,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,fontSizeHuge:s}=e;return Object.assign(Object.assign({},Gbe),{fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:n})},Kbe={name:"Empty",common:Dt,self:xK};var Xm=Kbe;const jbe={name:"Empty",common:st,self:xK};var fA=jbe,Ybe=M("empty",`
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
font-size: var(--n-font-size);
|
|
`,[G("icon",`
|
|
width: var(--n-icon-size);
|
|
height: var(--n-icon-size);
|
|
font-size: var(--n-icon-size);
|
|
line-height: var(--n-icon-size);
|
|
color: var(--n-icon-color);
|
|
transition:
|
|
color .3s var(--n-bezier);
|
|
`,[N("+",[G("description",`
|
|
margin-top: 8px;
|
|
`)])]),G("description",`
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
`),G("extra",`
|
|
text-align: center;
|
|
transition: color .3s var(--n-bezier);
|
|
margin-top: 12px;
|
|
color: var(--n-extra-text-color);
|
|
`)]);const Xbe=Object.assign(Object.assign({},Fe.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function});var sS=ge({name:"Empty",props:Xbe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Empty","-empty",Ybe,Xm,e,t),{localeRef:a}=Io("Empty"),i=We(el,null),o=L(()=>{var c,d,f;return(c=e.description)!==null&&c!==void 0?c:(f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.description}),s=L(()=>{var c,d;return((d=(c=i==null?void 0:i.mergedComponentPropsRef.value)===null||c===void 0?void 0:c.Empty)===null||d===void 0?void 0:d.renderIcon)||(()=>C(Zye,null))}),l=L(()=>{const{size:c}=e,{common:{cubicBezierEaseInOut:d},self:{[Se("iconSize",c)]:f,[Se("fontSize",c)]:A,textColor:h,iconColor:v,extraTextColor:p}}=n.value;return{"--n-icon-size":f,"--n-font-size":A,"--n-bezier":d,"--n-text-color":h,"--n-icon-color":v,"--n-extra-text-color":p}}),u=r?_t("empty",L(()=>{let c="";const{size:d}=e;return c+=d[0],c}),l,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:s,localizedDescription:L(()=>o.value||a.value.description),cssVars:r?void 0:l,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:r}=this;return r==null||r(),C("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?C("div",{class:`${t}-empty__icon`},e.icon?e.icon():C($t,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?C("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?C("div",{class:`${t}-empty__extra`},e.extra()):null)}});const wK=e=>{const{scrollbarColor:t,scrollbarColorHover:r}=e;return{color:t,colorHover:r}},qbe={name:"Scrollbar",common:Dt,self:wK};var ul=qbe;const Zbe={name:"Scrollbar",common:st,self:wK};var wi=Zbe;const{cubicBezierEaseInOut:g3}=xi;function Vf({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:r="0.2s",enterCubicBezier:n=g3,leaveCubicBezier:a=g3}={}){return[N(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),N(`&.${e}-transition-leave-active`,{transition:`all ${r} ${a}!important`}),N(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),N(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var Jbe=M("scrollbar",`
|
|
overflow: hidden;
|
|
position: relative;
|
|
z-index: auto;
|
|
height: 100%;
|
|
width: 100%;
|
|
`,[N(">",[M("scrollbar-container",`
|
|
width: 100%;
|
|
overflow: scroll;
|
|
height: 100%;
|
|
max-height: inherit;
|
|
scrollbar-width: none;
|
|
`,[N("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|
width: 0;
|
|
height: 0;
|
|
display: none;
|
|
`),N(">",[M("scrollbar-content",`
|
|
box-sizing: border-box;
|
|
min-width: 100%;
|
|
`)])])]),N(">, +",[M("scrollbar-rail",`
|
|
position: absolute;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`,[j("horizontal",`
|
|
left: 2px;
|
|
right: 2px;
|
|
bottom: 4px;
|
|
height: var(--n-scrollbar-height);
|
|
`,[N(">",[G("scrollbar",`
|
|
height: var(--n-scrollbar-height);
|
|
border-radius: var(--n-scrollbar-border-radius);
|
|
right: 0;
|
|
`)])]),j("vertical",`
|
|
right: 4px;
|
|
top: 2px;
|
|
bottom: 2px;
|
|
width: var(--n-scrollbar-width);
|
|
`,[N(">",[G("scrollbar",`
|
|
width: var(--n-scrollbar-width);
|
|
border-radius: var(--n-scrollbar-border-radius);
|
|
bottom: 0;
|
|
`)])]),j("disabled",[N(">",[G("scrollbar",{pointerEvents:"none"})])]),N(">",[G("scrollbar",`
|
|
position: absolute;
|
|
cursor: pointer;
|
|
pointer-events: all;
|
|
background-color: var(--n-scrollbar-color);
|
|
transition: background-color .2s var(--n-scrollbar-bezier);
|
|
`,[Vf(),N("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]);const e1e=Object.assign(Object.assign({},Fe.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),CK=ge({name:"Scrollbar",props:e1e,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=et(e),a=tn("Scrollbar",n,t),i=X(null),o=X(null),s=X(null),l=X(null),u=X(null),c=X(null),d=X(null),f=X(null),A=X(null),h=X(null),v=X(null),p=X(0),g=X(0),m=X(!1),y=X(!1);let b=!1,w=!1,x,S,_=0,B=0,T=0,E=0;const I=ffe(),R=L(()=>{const{value:ue}=f,{value:Te}=c,{value:He}=h;return ue===null||Te===null||He===null?0:Math.min(ue,He*ue/Te+e.size*1.5)}),D=L(()=>`${R.value}px`),k=L(()=>{const{value:ue}=A,{value:Te}=d,{value:He}=v;return ue===null||Te===null||He===null?0:He*ue/Te+e.size*1.5}),F=L(()=>`${k.value}px`),P=L(()=>{const{value:ue}=f,{value:Te}=p,{value:He}=c,{value:Je}=h;if(ue===null||He===null||Je===null)return 0;{const nt=He-ue;return nt?Te/nt*(Je-R.value):0}}),O=L(()=>`${P.value}px`),H=L(()=>{const{value:ue}=A,{value:Te}=g,{value:He}=d,{value:Je}=v;if(ue===null||He===null||Je===null)return 0;{const nt=He-ue;return nt?Te/nt*(Je-k.value):0}}),V=L(()=>`${H.value}px`),W=L(()=>{const{value:ue}=f,{value:Te}=c;return ue!==null&&Te!==null&&Te>ue}),Z=L(()=>{const{value:ue}=A,{value:Te}=d;return ue!==null&&Te!==null&&Te>ue}),ee=L(()=>{const{trigger:ue}=e;return ue==="none"||m.value}),ae=L(()=>{const{trigger:ue}=e;return ue==="none"||y.value}),ne=L(()=>{const{container:ue}=e;return ue?ue():o.value}),le=L(()=>{const{content:ue}=e;return ue?ue():s.value}),se=ok(()=>{e.container||fe({top:p.value,left:g.value})}),ce=()=>{se.isDeactivated||pe()},ye=ue=>{if(se.isDeactivated)return;const{onResize:Te}=e;Te&&Te(ue),pe()},fe=(ue,Te)=>{if(!e.scrollable)return;if(typeof ue=="number"){J(Te!=null?Te:0,ue,0,!1,"auto");return}const{left:He,top:Je,index:nt,elSize:be,position:Le,behavior:je,el:ft,debounce:Ce=!0}=ue;(He!==void 0||Je!==void 0)&&J(He!=null?He:0,Je!=null?Je:0,0,!1,je),ft!==void 0?J(0,ft.offsetTop,ft.offsetHeight,Ce,je):nt!==void 0&&be!==void 0?J(0,nt*be,be,Ce,je):Le==="bottom"?J(0,Number.MAX_SAFE_INTEGER,0,!1,je):Le==="top"&&J(0,0,0,!1,je)},Q=(ue,Te)=>{if(!e.scrollable)return;const{value:He}=ne;!He||(typeof ue=="object"?He.scrollBy(ue):He.scrollBy(ue,Te||0))};function J(ue,Te,He,Je,nt){const{value:be}=ne;if(!!be){if(Je){const{scrollTop:Le,offsetHeight:je}=be;if(Te>Le){Te+He<=Le+je||be.scrollTo({left:ue,top:Te+He-je,behavior:nt});return}}be.scrollTo({left:ue,top:Te,behavior:nt})}}function U(){re(),ve(),pe()}function K(){q()}function q(){ie(),$()}function ie(){S!==void 0&&window.clearTimeout(S),S=window.setTimeout(()=>{y.value=!1},e.duration)}function $(){x!==void 0&&window.clearTimeout(x),x=window.setTimeout(()=>{m.value=!1},e.duration)}function re(){x!==void 0&&window.clearTimeout(x),m.value=!0}function ve(){S!==void 0&&window.clearTimeout(S),y.value=!0}function he(ue){const{onScroll:Te}=e;Te&&Te(ue),oe()}function oe(){const{value:ue}=ne;ue&&(p.value=ue.scrollTop,g.value=ue.scrollLeft*(a!=null&&a.value?-1:1))}function Y(){const{value:ue}=le;ue&&(c.value=ue.offsetHeight,d.value=ue.offsetWidth);const{value:Te}=ne;Te&&(f.value=Te.offsetHeight,A.value=Te.offsetWidth);const{value:He}=u,{value:Je}=l;He&&(v.value=He.offsetWidth),Je&&(h.value=Je.offsetHeight)}function te(){const{value:ue}=ne;ue&&(p.value=ue.scrollTop,g.value=ue.scrollLeft*(a!=null&&a.value?-1:1),f.value=ue.offsetHeight,A.value=ue.offsetWidth,c.value=ue.scrollHeight,d.value=ue.scrollWidth);const{value:Te}=u,{value:He}=l;Te&&(v.value=Te.offsetWidth),He&&(h.value=He.offsetHeight)}function pe(){!e.scrollable||(e.useUnifiedContainer?te():(Y(),oe()))}function de(ue){var Te;return!(!((Te=i.value)===null||Te===void 0)&&Te.contains(as(ue)))}function we(ue){ue.preventDefault(),ue.stopPropagation(),w=!0,Zt("mousemove",window,De,!0),Zt("mouseup",window,ze,!0),B=g.value,T=a!=null&&a.value?window.innerWidth-ue.clientX:ue.clientX}function De(ue){if(!w)return;x!==void 0&&window.clearTimeout(x),S!==void 0&&window.clearTimeout(S);const{value:Te}=A,{value:He}=d,{value:Je}=k;if(Te===null||He===null)return;const be=(a!=null&&a.value?window.innerWidth-ue.clientX-T:ue.clientX-T)*(He-Te)/(Te-Je),Le=He-Te;let je=B+be;je=Math.min(Le,je),je=Math.max(je,0);const{value:ft}=ne;if(ft){ft.scrollLeft=je*(a!=null&&a.value?-1:1);const{internalOnUpdateScrollLeft:Ce}=e;Ce&&Ce(je)}}function ze(ue){ue.preventDefault(),ue.stopPropagation(),jt("mousemove",window,De,!0),jt("mouseup",window,ze,!0),w=!1,pe(),de(ue)&&q()}function Xe(ue){ue.preventDefault(),ue.stopPropagation(),b=!0,Zt("mousemove",window,ke,!0),Zt("mouseup",window,Ge,!0),_=p.value,E=ue.clientY}function ke(ue){if(!b)return;x!==void 0&&window.clearTimeout(x),S!==void 0&&window.clearTimeout(S);const{value:Te}=f,{value:He}=c,{value:Je}=R;if(Te===null||He===null)return;const be=(ue.clientY-E)*(He-Te)/(Te-Je),Le=He-Te;let je=_+be;je=Math.min(Le,je),je=Math.max(je,0);const{value:ft}=ne;ft&&(ft.scrollTop=je)}function Ge(ue){ue.preventDefault(),ue.stopPropagation(),jt("mousemove",window,ke,!0),jt("mouseup",window,Ge,!0),b=!1,pe(),de(ue)&&q()}yr(()=>{const{value:ue}=Z,{value:Te}=W,{value:He}=t,{value:Je}=u,{value:nt}=l;Je&&(ue?Je.classList.remove(`${He}-scrollbar-rail--disabled`):Je.classList.add(`${He}-scrollbar-rail--disabled`)),nt&&(Te?nt.classList.remove(`${He}-scrollbar-rail--disabled`):nt.classList.add(`${He}-scrollbar-rail--disabled`))}),Ar(()=>{e.container||pe()}),kr(()=>{x!==void 0&&window.clearTimeout(x),S!==void 0&&window.clearTimeout(S),jt("mousemove",window,ke,!0),jt("mouseup",window,Ge,!0)});const it=Fe("Scrollbar","-scrollbar",Jbe,ul,e,t),ut=L(()=>{const{common:{cubicBezierEaseInOut:ue,scrollbarBorderRadius:Te,scrollbarHeight:He,scrollbarWidth:Je},self:{color:nt,colorHover:be}}=it.value;return{"--n-scrollbar-bezier":ue,"--n-scrollbar-color":nt,"--n-scrollbar-color-hover":be,"--n-scrollbar-border-radius":Te,"--n-scrollbar-width":Je,"--n-scrollbar-height":He}}),Ke=r?_t("scrollbar",void 0,ut,e):void 0;return Object.assign(Object.assign({},{scrollTo:fe,scrollBy:Q,sync:pe,syncUnifiedContainer:te,handleMouseEnterWrapper:U,handleMouseLeaveWrapper:K}),{mergedClsPrefix:t,rtlEnabled:a,containerScrollTop:p,wrapperRef:i,containerRef:o,contentRef:s,yRailRef:l,xRailRef:u,needYBar:W,needXBar:Z,yBarSizePx:D,xBarSizePx:F,yBarTopPx:O,xBarLeftPx:V,isShowXBar:ee,isShowYBar:ae,isIos:I,handleScroll:he,handleContentResize:ce,handleContainerResize:ye,handleYScrollMouseDown:Xe,handleXScrollMouseDown:we,cssVars:r?void 0:ut,themeClass:Ke==null?void 0:Ke.themeClass,onRender:Ke==null?void 0:Ke.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:r,triggerDisplayManually:n,rtlEnabled:a,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const o=this.trigger==="none",s=()=>C("div",{ref:"yRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},C(o?EI:zr,o?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?C("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var c,d;return(c=this.onRender)===null||c===void 0||c.call(this),C("div",An(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${r}-scrollbar`,this.themeClass,a&&`${r}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?(d=t.default)===null||d===void 0?void 0:d.call(t):C("div",{role:"none",ref:"containerRef",class:[`${r}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},C(bo,{onResize:this.handleContentResize},{default:()=>C("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${r}-scrollbar-content`,this.contentClass]},t)})),i?null:s(),this.xScrollable&&C("div",{ref:"xRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},C(o?EI:zr,o?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?C("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:a?this.xBarLeftPx:void 0,left:a?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},u=this.container?l():C(bo,{onResize:this.handleContainerResize},{default:l});return i?C(rr,null,u,s()):u}});var Un=CK;const tw=CK;var t1e={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};const SK=e=>{const{borderRadius:t,popoverColor:r,textColor3:n,dividerColor:a,textColor2:i,primaryColorPressed:o,textColorDisabled:s,primaryColor:l,opacityDisabled:u,hoverColor:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:A,fontSizeHuge:h,heightSmall:v,heightMedium:p,heightLarge:g,heightHuge:m}=e;return Object.assign(Object.assign({},t1e),{optionFontSizeSmall:d,optionFontSizeMedium:f,optionFontSizeLarge:A,optionFontSizeHuge:h,optionHeightSmall:v,optionHeightMedium:p,optionHeightLarge:g,optionHeightHuge:m,borderRadius:t,color:r,groupHeaderTextColor:n,actionDividerColor:a,optionTextColor:i,optionTextColorPressed:o,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:u,optionCheckColor:l,optionColorPending:c,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:c,actionTextColor:i,loadingColor:l})},r1e={name:"InternalSelectMenu",common:Dt,peers:{Scrollbar:ul,Empty:Xm},self:SK};var bk=r1e;const n1e={name:"InternalSelectMenu",common:st,peers:{Scrollbar:wi,Empty:fA},self:SK};var qm=n1e;function a1e(e,t){return C(zr,{name:"fade-in-scale-up-transition"},{default:()=>e?C($t,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>C(fK)}):null})}var m3=ge({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:r,multipleRef:n,valueSetRef:a,renderLabelRef:i,renderOptionRef:o,labelFieldRef:s,valueFieldRef:l,showCheckmarkRef:u,nodePropsRef:c,handleOptionClick:d,handleOptionMouseEnter:f}=We(ek),A=Rt(()=>{const{value:g}=r;return g?e.tmNode.key===g.key:!1});function h(g){const{tmNode:m}=e;m.disabled||d(g,m)}function v(g){const{tmNode:m}=e;m.disabled||f(g,m)}function p(g){const{tmNode:m}=e,{value:y}=A;m.disabled||y||f(g,m)}return{multiple:n,isGrouped:Rt(()=>{const{tmNode:g}=e,{parent:m}=g;return m&&m.rawNode.type==="group"}),showCheckmark:u,nodeProps:c,isPending:A,isSelected:Rt(()=>{const{value:g}=t,{value:m}=n;if(g===null)return!1;const y=e.tmNode.rawNode[l.value];if(m){const{value:b}=a;return b.has(y)}else return g===y}),labelField:s,renderLabel:i,renderOption:o,handleMouseMove:p,handleMouseEnter:v,handleClick:h}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:r,isPending:n,isGrouped:a,showCheckmark:i,nodeProps:o,renderOption:s,renderLabel:l,handleClick:u,handleMouseEnter:c,handleMouseMove:d}=this,f=a1e(r,e),A=l?[l(t,r),i&&f]:[Mr(t[this.labelField],t,r),i&&f],h=o==null?void 0:o(t),v=C("div",Object.assign({},h,{class:[`${e}-base-select-option`,t.class,h==null?void 0:h.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:r,[`${e}-base-select-option--grouped`]:a,[`${e}-base-select-option--pending`]:n,[`${e}-base-select-option--show-checkmark`]:i}],style:[(h==null?void 0:h.style)||"",t.style||""],onClick:Xg([u,h==null?void 0:h.onClick]),onMouseenter:Xg([c,h==null?void 0:h.onMouseenter]),onMousemove:Xg([d,h==null?void 0:h.onMousemove])}),C("div",{class:`${e}-base-select-option__content`},A));return t.render?t.render({node:v,option:t,selected:r}):s?s({node:v,option:t,selected:r}):v}}),y3=ge({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:r,nodePropsRef:n}=We(ek);return{labelField:r,nodeProps:n,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:r,nodeProps:n,tmNode:{rawNode:a}}=this,i=n==null?void 0:n(a),o=t?t(a,!1):Mr(a[this.labelField],a,!1),s=C("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),o);return a.render?a.render({node:s,option:a}):r?r({node:s,option:a,selected:!1}):s}});const{cubicBezierEaseIn:b3,cubicBezierEaseOut:x3}=xi;function gi({transformOrigin:e="inherit",duration:t=".2s",enterScale:r=".9",originalTransform:n="",originalTransition:a=""}={}){return[N("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${b3}, transform ${t} ${b3} ${a&&","+a}`}),N("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${x3}, transform ${t} ${x3} ${a&&","+a}`}),N("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${r})`}),N("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}var i1e=M("base-select-menu",`
|
|
line-height: 1.5;
|
|
outline: none;
|
|
z-index: 0;
|
|
position: relative;
|
|
border-radius: var(--n-border-radius);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier);
|
|
background-color: var(--n-color);
|
|
`,[M("scrollbar",`
|
|
max-height: var(--n-height);
|
|
`),M("virtual-list",`
|
|
max-height: var(--n-height);
|
|
`),M("base-select-option",`
|
|
min-height: var(--n-option-height);
|
|
font-size: var(--n-option-font-size);
|
|
display: flex;
|
|
align-items: center;
|
|
`,[G("content",`
|
|
z-index: 1;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
`)]),M("base-select-group-header",`
|
|
min-height: var(--n-option-height);
|
|
font-size: .93em;
|
|
display: flex;
|
|
align-items: center;
|
|
`),M("base-select-menu-option-wrapper",`
|
|
position: relative;
|
|
width: 100%;
|
|
`),G("loading, empty",`
|
|
display: flex;
|
|
padding: 12px 32px;
|
|
flex: 1;
|
|
justify-content: center;
|
|
`),G("loading",`
|
|
color: var(--n-loading-color);
|
|
font-size: var(--n-loading-size);
|
|
`),G("action",`
|
|
padding: 8px var(--n-option-padding-left);
|
|
font-size: var(--n-option-font-size);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
border-top: 1px solid var(--n-action-divider-color);
|
|
color: var(--n-action-text-color);
|
|
`),M("base-select-group-header",`
|
|
position: relative;
|
|
cursor: default;
|
|
padding: var(--n-option-padding);
|
|
color: var(--n-group-header-text-color);
|
|
`),M("base-select-option",`
|
|
cursor: pointer;
|
|
position: relative;
|
|
padding: var(--n-option-padding);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier);
|
|
box-sizing: border-box;
|
|
color: var(--n-option-text-color);
|
|
opacity: 1;
|
|
`,[j("show-checkmark",`
|
|
padding-right: calc(var(--n-option-padding-right) + 20px);
|
|
`),N("&::before",`
|
|
content: "";
|
|
position: absolute;
|
|
left: 4px;
|
|
right: 4px;
|
|
top: 0;
|
|
bottom: 0;
|
|
border-radius: var(--n-border-radius);
|
|
transition: background-color .3s var(--n-bezier);
|
|
`),N("&:active",`
|
|
color: var(--n-option-text-color-pressed);
|
|
`),j("grouped",`
|
|
padding-left: calc(var(--n-option-padding-left) * 1.5);
|
|
`),j("pending",[N("&::before",`
|
|
background-color: var(--n-option-color-pending);
|
|
`)]),j("selected",`
|
|
color: var(--n-option-text-color-active);
|
|
`,[N("&::before",`
|
|
background-color: var(--n-option-color-active);
|
|
`),j("pending",[N("&::before",`
|
|
background-color: var(--n-option-color-active-pending);
|
|
`)])]),j("disabled",`
|
|
cursor: not-allowed;
|
|
`,[Nt("selected",`
|
|
color: var(--n-option-text-color-disabled);
|
|
`),j("selected",`
|
|
opacity: var(--n-option-opacity-disabled);
|
|
`)]),G("check",`
|
|
font-size: 16px;
|
|
position: absolute;
|
|
right: calc(var(--n-option-padding-right) - 4px);
|
|
top: calc(50% - 7px);
|
|
color: var(--n-option-check-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[gi({enterScale:"0.5"})])])]),_K=ge({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Fe.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Fe("InternalSelectMenu","-internal-select-menu",i1e,bk,e,Ie(e,"clsPrefix")),r=X(null),n=X(null),a=X(null),i=L(()=>e.treeMate.getFlattenedNodes()),o=L(()=>gK(i.value)),s=X(null);function l(){const{treeMate:H}=e;let V=null;const{value:W}=e;W===null?V=H.getFirstAvailableNode():(e.multiple?V=H.getNode((W||[])[(W||[]).length-1]):V=H.getNode(W),(!V||V.disabled)&&(V=H.getFirstAvailableNode())),E(V||null)}function u(){const{value:H}=s;H&&!e.treeMate.getNode(H.key)&&(s.value=null)}let c;mt(()=>e.show,H=>{H?c=mt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?l():u(),ar(I)):u()},{immediate:!0}):c==null||c()},{immediate:!0}),kr(()=>{c==null||c()});const d=L(()=>ma(t.value.self[Se("optionHeight",e.size)])),f=L(()=>uc(t.value.self[Se("padding",e.size)])),A=L(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),h=L(()=>{const H=i.value;return H&&H.length===0});function v(H){const{onToggle:V}=e;V&&V(H)}function p(H){const{onScroll:V}=e;V&&V(H)}function g(H){var V;(V=a.value)===null||V===void 0||V.sync(),p(H)}function m(){var H;(H=a.value)===null||H===void 0||H.sync()}function y(){const{value:H}=s;return H||null}function b(H,V){V.disabled||E(V,!1)}function w(H,V){V.disabled||v(V)}function x(H){var V;Wi(H,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,H)}function S(H){var V;Wi(H,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,H)}function _(H){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,H),!e.focusable&&H.preventDefault()}function B(){const{value:H}=s;H&&E(H.getNext({loop:!0}),!0)}function T(){const{value:H}=s;H&&E(H.getPrev({loop:!0}),!0)}function E(H,V=!1){s.value=H,V&&I()}function I(){var H,V;const W=s.value;if(!W)return;const Z=o.value(W.key);Z!==null&&(e.virtualScroll?(H=n.value)===null||H===void 0||H.scrollTo({index:Z}):(V=a.value)===null||V===void 0||V.scrollTo({index:Z,elSize:d.value}))}function R(H){var V,W;!((V=r.value)===null||V===void 0)&&V.contains(H.target)&&((W=e.onFocus)===null||W===void 0||W.call(e,H))}function D(H){var V,W;!((V=r.value)===null||V===void 0)&&V.contains(H.relatedTarget)||(W=e.onBlur)===null||W===void 0||W.call(e,H)}Ct(ek,{handleOptionMouseEnter:b,handleOptionClick:w,valueSetRef:A,pendingTmNodeRef:s,nodePropsRef:Ie(e,"nodeProps"),showCheckmarkRef:Ie(e,"showCheckmark"),multipleRef:Ie(e,"multiple"),valueRef:Ie(e,"value"),renderLabelRef:Ie(e,"renderLabel"),renderOptionRef:Ie(e,"renderOption"),labelFieldRef:Ie(e,"labelField"),valueFieldRef:Ie(e,"valueField")}),Ct(eG,r),Ar(()=>{const{value:H}=a;H&&H.sync()});const k=L(()=>{const{size:H}=e,{common:{cubicBezierEaseInOut:V},self:{height:W,borderRadius:Z,color:ee,groupHeaderTextColor:ae,actionDividerColor:ne,optionTextColorPressed:le,optionTextColor:se,optionTextColorDisabled:ce,optionTextColorActive:ye,optionOpacityDisabled:fe,optionCheckColor:Q,actionTextColor:J,optionColorPending:U,optionColorActive:K,loadingColor:q,loadingSize:ie,optionColorActivePending:$,[Se("optionFontSize",H)]:re,[Se("optionHeight",H)]:ve,[Se("optionPadding",H)]:he}}=t.value;return{"--n-height":W,"--n-action-divider-color":ne,"--n-action-text-color":J,"--n-bezier":V,"--n-border-radius":Z,"--n-color":ee,"--n-option-font-size":re,"--n-group-header-text-color":ae,"--n-option-check-color":Q,"--n-option-color-pending":U,"--n-option-color-active":K,"--n-option-color-active-pending":$,"--n-option-height":ve,"--n-option-opacity-disabled":fe,"--n-option-text-color":se,"--n-option-text-color-active":ye,"--n-option-text-color-disabled":ce,"--n-option-text-color-pressed":le,"--n-option-padding":he,"--n-option-padding-left":uc(he,"left"),"--n-option-padding-right":uc(he,"right"),"--n-loading-color":q,"--n-loading-size":ie}}),{inlineThemeDisabled:F}=e,P=F?_t("internal-select-menu",L(()=>e.size[0]),k,e):void 0,O={selfRef:r,next:B,prev:T,getPendingTmNode:y};return pG(r,e.onResize),Object.assign({mergedTheme:t,virtualListRef:n,scrollbarRef:a,itemSize:d,padding:f,flattenedNodes:i,empty:h,virtualListContainer(){const{value:H}=n;return H==null?void 0:H.listElRef},virtualListContent(){const{value:H}=n;return H==null?void 0:H.itemsElRef},doScroll:p,handleFocusin:R,handleFocusout:D,handleKeyUp:x,handleKeyDown:S,handleMouseDown:_,handleVirtualListResize:m,handleVirtualListScroll:g,cssVars:F?void 0:k,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender},O)},render(){const{$slots:e,virtualScroll:t,clsPrefix:r,mergedTheme:n,themeClass:a,onRender:i}=this;return i==null||i(),C("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${r}-base-select-menu`,a,this.multiple&&`${r}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?C("div",{class:`${r}-base-select-menu__loading`},C(cu,{clsPrefix:r,strokeWidth:20})):this.empty?C("div",{class:`${r}-base-select-menu__empty`,"data-empty":!0},Wt(e.empty,()=>[C(sS,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])):C(Un,{ref:"scrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?C(cv,{ref:"virtualListRef",class:`${r}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:o})=>o.isGroup?C(y3,{key:o.key,clsPrefix:r,tmNode:o}):o.ignored?null:C(m3,{clsPrefix:r,key:o.key,tmNode:o})}):C("div",{class:`${r}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(o=>o.isGroup?C(y3,{key:o.key,clsPrefix:r,tmNode:o}):C(m3,{clsPrefix:r,key:o.key,tmNode:o})))}),or(e.action,o=>o&&[C("div",{class:`${r}-base-select-menu__action`,"data-action":!0,key:"action"},o),C(Jc,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),o1e=M("base-wave",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
border-radius: inherit;
|
|
`),BK=ge({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){ol("-base-wave",o1e,Ie(e,"clsPrefix"));const t=X(null),r=X(!1);let n=null;return kr(()=>{n!==null&&window.clearTimeout(n)}),{active:r,selfRef:t,play(){n!==null&&(window.clearTimeout(n),r.value=!1,n=null),ar(()=>{var a;(a=t.value)===null||a===void 0||a.offsetHeight,r.value=!0,n=window.setTimeout(()=>{r.value=!1,n=null},1e3)})}}},render(){const{clsPrefix:e}=this;return C("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),s1e={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};const TK=e=>{const{boxShadow2:t,popoverColor:r,textColor2:n,borderRadius:a,fontSize:i,dividerColor:o}=e;return Object.assign(Object.assign({},s1e),{fontSize:i,borderRadius:a,color:r,dividerColor:o,textColor:n,boxShadow:t})},l1e={name:"Popover",common:Dt,self:TK};var zv=l1e;const u1e={name:"Popover",common:st,self:TK};var AA=u1e;const _B={top:"bottom",bottom:"top",left:"right",right:"left"},jn="var(--n-arrow-height) * 1.414";var c1e=N([M("popover",`
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
position: relative;
|
|
font-size: var(--n-font-size);
|
|
color: var(--n-text-color);
|
|
box-shadow: var(--n-box-shadow);
|
|
`,[N(">",[M("scrollbar",`
|
|
height: inherit;
|
|
max-height: inherit;
|
|
`)]),Nt("raw",`
|
|
background-color: var(--n-color);
|
|
border-radius: var(--n-border-radius);
|
|
`,[Nt("scrollable",[Nt("show-header-or-footer","padding: var(--n-padding);")])]),G("header",`
|
|
padding: var(--n-padding);
|
|
border-bottom: 1px solid var(--n-divider-color);
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),G("footer",`
|
|
padding: var(--n-padding);
|
|
border-top: 1px solid var(--n-divider-color);
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),j("scrollable, show-header-or-footer",[G("content",`
|
|
padding: var(--n-padding);
|
|
`)])]),M("popover-shared",`
|
|
transform-origin: inherit;
|
|
`,[M("popover-arrow-wrapper",`
|
|
position: absolute;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
`,[M("popover-arrow",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
position: absolute;
|
|
display: block;
|
|
width: calc(${jn});
|
|
height: calc(${jn});
|
|
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
|
|
transform: rotate(45deg);
|
|
background-color: var(--n-color);
|
|
pointer-events: all;
|
|
`)]),N("&.popover-transition-enter-from, &.popover-transition-leave-to",`
|
|
opacity: 0;
|
|
transform: scale(.85);
|
|
`),N("&.popover-transition-enter-to, &.popover-transition-leave-from",`
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
`),N("&.popover-transition-enter-active",`
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
opacity .15s var(--n-bezier-ease-out),
|
|
transform .15s var(--n-bezier-ease-out);
|
|
`),N("&.popover-transition-leave-active",`
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
opacity .15s var(--n-bezier-ease-in),
|
|
transform .15s var(--n-bezier-ease-in);
|
|
`)]),Xi("top-start",`
|
|
top: calc(${jn} / -2);
|
|
left: calc(${vl("top-start")} - var(--v-offset-left));
|
|
`),Xi("top",`
|
|
top: calc(${jn} / -2);
|
|
transform: translateX(calc(${jn} / -2)) rotate(45deg);
|
|
left: 50%;
|
|
`),Xi("top-end",`
|
|
top: calc(${jn} / -2);
|
|
right: calc(${vl("top-end")} + var(--v-offset-left));
|
|
`),Xi("bottom-start",`
|
|
bottom: calc(${jn} / -2);
|
|
left: calc(${vl("bottom-start")} - var(--v-offset-left));
|
|
`),Xi("bottom",`
|
|
bottom: calc(${jn} / -2);
|
|
transform: translateX(calc(${jn} / -2)) rotate(45deg);
|
|
left: 50%;
|
|
`),Xi("bottom-end",`
|
|
bottom: calc(${jn} / -2);
|
|
right: calc(${vl("bottom-end")} + var(--v-offset-left));
|
|
`),Xi("left-start",`
|
|
left: calc(${jn} / -2);
|
|
top: calc(${vl("left-start")} - var(--v-offset-top));
|
|
`),Xi("left",`
|
|
left: calc(${jn} / -2);
|
|
transform: translateY(calc(${jn} / -2)) rotate(45deg);
|
|
top: 50%;
|
|
`),Xi("left-end",`
|
|
left: calc(${jn} / -2);
|
|
bottom: calc(${vl("left-end")} + var(--v-offset-top));
|
|
`),Xi("right-start",`
|
|
right: calc(${jn} / -2);
|
|
top: calc(${vl("right-start")} - var(--v-offset-top));
|
|
`),Xi("right",`
|
|
right: calc(${jn} / -2);
|
|
transform: translateY(calc(${jn} / -2)) rotate(45deg);
|
|
top: 50%;
|
|
`),Xi("right-end",`
|
|
right: calc(${jn} / -2);
|
|
bottom: calc(${vl("right-end")} + var(--v-offset-top));
|
|
`),...fme({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const r=["right","left"].includes(t),n=r?"width":"height";return e.map(a=>{const i=a.split("-")[1]==="end",s=`calc((${`var(--v-target-${n}, 0px)`} - ${jn}) / 2)`,l=vl(a);return N(`[v-placement="${a}"] >`,[M("popover-shared",[j("center-arrow",[M("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function vl(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Xi(e,t){const r=e.split("-")[0],n=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return N(`[v-placement="${e}"] >`,[M("popover-shared",`
|
|
margin-${_B[r]}: var(--n-space);
|
|
`,[j("show-arrow",`
|
|
margin-${_B[r]}: var(--n-space-arrow);
|
|
`),j("overlap",`
|
|
margin: 0;
|
|
`),efe("popover-arrow-wrapper",`
|
|
right: 0;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
${r}: 100%;
|
|
${_B[r]}: auto;
|
|
${n}
|
|
`,[M("popover-arrow",t)])])])}const EK=Object.assign(Object.assign({},Fe.props),{to:Dn.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),IK=({arrowStyle:e,clsPrefix:t})=>C("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},C("div",{class:`${t}-popover-arrow`,style:e}));var d1e=ge({name:"PopoverBody",inheritAttrs:!1,props:EK,setup(e,{slots:t,attrs:r}){const{namespaceRef:n,mergedClsPrefixRef:a,inlineThemeDisabled:i}=et(e),o=Fe("Popover","-popover",c1e,zv,e,a),s=X(null),l=We("NPopover"),u=X(null),c=X(e.show),d=X(!1);yr(()=>{const{show:S}=e;S&&!tfe()&&!e.internalDeactivateImmediately&&(d.value=!0)});const f=L(()=>{const{trigger:S,onClickoutside:_}=e,B=[],{positionManuallyRef:{value:T}}=l;return T||(S==="click"&&!_&&B.push([Js,b,void 0,{capture:!0}]),S==="hover"&&B.push([bfe,y])),_&&B.push([Js,b,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&d.value)&&B.push([Bn,e.show]),B}),A=L(()=>{const S=e.width==="trigger"?void 0:pr(e.width),_=[];S&&_.push({width:S});const{maxWidth:B,minWidth:T}=e;return B&&_.push({maxWidth:pr(B)}),T&&_.push({maxWidth:pr(T)}),i||_.push(h.value),_}),h=L(()=>{const{common:{cubicBezierEaseInOut:S,cubicBezierEaseIn:_,cubicBezierEaseOut:B},self:{space:T,spaceArrow:E,padding:I,fontSize:R,textColor:D,dividerColor:k,color:F,boxShadow:P,borderRadius:O,arrowHeight:H,arrowOffset:V,arrowOffsetVertical:W}}=o.value;return{"--n-box-shadow":P,"--n-bezier":S,"--n-bezier-ease-in":_,"--n-bezier-ease-out":B,"--n-font-size":R,"--n-text-color":D,"--n-color":F,"--n-divider-color":k,"--n-border-radius":O,"--n-arrow-height":H,"--n-arrow-offset":V,"--n-arrow-offset-vertical":W,"--n-padding":I,"--n-space":T,"--n-space-arrow":E}}),v=i?_t("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:p}),kr(()=>{l.setBodyInstance(null)}),mt(Ie(e,"show"),S=>{e.animated||(S?c.value=!0:c.value=!1)});function p(){var S;(S=s.value)===null||S===void 0||S.syncPosition()}function g(S){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(S)}function m(S){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(S)}function y(S){e.trigger==="hover"&&!w().contains(as(S))&&l.handleMouseMoveOutside(S)}function b(S){(e.trigger==="click"&&!w().contains(as(S))||e.onClickoutside)&&l.handleClickOutside(S)}function w(){return l.getTriggerElement()}Ct($v,u),Ct(Gm,null),Ct(Wm,null);function x(){if(v==null||v.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&d.value))return null;let _;const B=l.internalRenderBodyRef.value,{value:T}=a;if(B)_=B([`${T}-popover-shared`,v==null?void 0:v.themeClass.value,e.overlap&&`${T}-popover-shared--overlap`,e.showArrow&&`${T}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${T}-popover-shared--center-arrow`],u,A.value,g,m);else{const{value:E}=l.extraClassRef,{internalTrapFocus:I}=e,R=!Bf(t.header)||!Bf(t.footer),D=()=>{var k;const F=R?C(rr,null,or(t.header,H=>H?C("div",{class:`${T}-popover__header`,style:e.headerStyle},H):null),or(t.default,H=>H?C("div",{class:`${T}-popover__content`,style:e.contentStyle},t):null),or(t.footer,H=>H?C("div",{class:`${T}-popover__footer`,style:e.footerStyle},H):null)):e.scrollable?(k=t.default)===null||k===void 0?void 0:k.call(t):C("div",{class:`${T}-popover__content`,style:e.contentStyle},t),P=e.scrollable?C(tw,{contentClass:R?void 0:`${T}-popover__content`,contentStyle:R?void 0:e.contentStyle},{default:()=>F}):F,O=e.showArrow?IK({arrowStyle:e.arrowStyle,clsPrefix:T}):null;return[P,O]};_=C("div",An({class:[`${T}-popover`,`${T}-popover-shared`,v==null?void 0:v.themeClass.value,E.map(k=>`${T}-${k}`),{[`${T}-popover--scrollable`]:e.scrollable,[`${T}-popover--show-header-or-footer`]:R,[`${T}-popover--raw`]:e.raw,[`${T}-popover-shared--overlap`]:e.overlap,[`${T}-popover-shared--show-arrow`]:e.showArrow,[`${T}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:A.value,onKeydown:l.handleKeydown,onMouseenter:g,onMouseleave:m},r),I?C(ak,{active:e.show,autoFocus:!0},{default:D}):D())}return jr(_,f.value)}return{displayed:d,namespace:n,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:Dn(e),followerEnabled:c,renderContentNode:x}},render(){return C(qc,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Dn.tdkey},{default:()=>this.animated?C(zr,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}});const f1e=Object.keys(EK),A1e={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function h1e(e,t,r){A1e[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const a=e.props[n],i=r[n];a?e.props[n]=(...o)=>{a(...o),i(...o)}:e.props[n]=i})}const v1e=jl("").type,fv={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Dn.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},p1e=Object.assign(Object.assign(Object.assign({},Fe.props),fv),{internalOnAfterLeave:Function,internalRenderBody:Function});var Nv=ge({name:"Popover",inheritAttrs:!1,props:p1e,__popover__:!0,setup(e){const t=ji(),r=X(null),n=L(()=>e.show),a=X(e.defaultShow),i=Sr(n,a),o=Rt(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:D}=e;return!!(D!=null&&D())},l=()=>s()?!1:i.value,u=Ec(e,["arrow","showArrow"]),c=L(()=>e.overlap?!1:u.value);let d=null;const f=X(null),A=X(null),h=Rt(()=>e.x!==void 0&&e.y!==void 0);function v(D){const{"onUpdate:show":k,onUpdateShow:F,onShow:P,onHide:O}=e;a.value=D,k&&Ee(k,D),F&&Ee(F,D),D&&P&&Ee(P,!0),D&&O&&Ee(O,!1)}function p(){d&&d.syncPosition()}function g(){const{value:D}=f;D&&(window.clearTimeout(D),f.value=null)}function m(){const{value:D}=A;D&&(window.clearTimeout(D),A.value=null)}function y(){const D=s();if(e.trigger==="focus"&&!D){if(l())return;v(!0)}}function b(){const D=s();if(e.trigger==="focus"&&!D){if(!l())return;v(!1)}}function w(){const D=s();if(e.trigger==="hover"&&!D){if(m(),f.value!==null||l())return;const k=()=>{v(!0),f.value=null},{delay:F}=e;F===0?k():f.value=window.setTimeout(k,F)}}function x(){const D=s();if(e.trigger==="hover"&&!D){if(g(),A.value!==null||!l())return;const k=()=>{v(!1),A.value=null},{duration:F}=e;F===0?k():A.value=window.setTimeout(k,F)}}function S(){x()}function _(D){var k;!l()||(e.trigger==="click"&&(g(),m(),v(!1)),(k=e.onClickoutside)===null||k===void 0||k.call(e,D))}function B(){if(e.trigger==="click"&&!s()){g(),m();const D=!l();v(D)}}function T(D){!e.internalTrapFocus||D.key==="Escape"&&(g(),m(),v(!1))}function E(D){a.value=D}function I(){var D;return(D=r.value)===null||D===void 0?void 0:D.targetRef}function R(D){d=D}return Ct("NPopover",{getTriggerElement:I,handleKeydown:T,handleMouseEnter:w,handleMouseLeave:x,handleClickOutside:_,handleMouseMoveOutside:S,setBodyInstance:R,positionManuallyRef:h,isMountedRef:t,zIndexRef:Ie(e,"zIndex"),extraClassRef:Ie(e,"internalExtraClass"),internalRenderBodyRef:Ie(e,"internalRenderBody")}),yr(()=>{i.value&&s()&&v(!1)}),{binderInstRef:r,positionManually:h,mergedShowConsideringDisabledProp:o,uncontrolledShow:a,mergedShowArrow:c,getMergedShow:l,setShow:E,handleClick:B,handleMouseEnter:w,handleMouseLeave:x,handleFocus:y,handleBlur:b,syncPosition:p}},render(){var e;const{positionManually:t,$slots:r}=this;let n,a=!1;if(!t&&(r.activator?n=TI(r,"activator"):n=TI(r,"trigger"),n)){n=wa(n),n=n.type===v1e?C("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)a=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:o}=this,s=[i,...o],l={onBlur:u=>{s.forEach(c=>{c.onBlur(u)})},onFocus:u=>{s.forEach(c=>{c.onFocus(u)})},onClick:u=>{s.forEach(c=>{c.onClick(u)})},onMouseenter:u=>{s.forEach(c=>{c.onMouseenter(u)})},onMouseleave:u=>{s.forEach(c=>{c.onMouseleave(u)})}};h1e(n,o?"nested":t?"manual":this.trigger,l)}}return C(jc,{ref:"binderInstRef",syncTarget:!a,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?jr(C("div",{style:{position:"fixed",inset:0}}),[[Km,{enabled:i,zIndex:this.zIndex}]]):null,t?null:C(Yc,null,{default:()=>n}),C(d1e,zi(this.$props,f1e,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var o,s;return(s=(o=this.$slots).default)===null||s===void 0?void 0:s.call(o)},header:()=>{var o,s;return(s=(o=this.$slots).header)===null||s===void 0?void 0:s.call(o)},footer:()=>{var o,s;return(s=(o=this.$slots).footer)===null||s===void 0?void 0:s.call(o)}})]}})}}),RK={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"};const g1e={name:"Tag",common:st,self(e){const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:a,infoColor:i,successColor:o,warningColor:s,errorColor:l,baseColor:u,borderColor:c,tagColor:d,opacityDisabled:f,closeIconColor:A,closeIconColorHover:h,closeIconColorPressed:v,closeColorHover:p,closeColorPressed:g,borderRadiusSmall:m,fontSizeMini:y,fontSizeTiny:b,fontSizeSmall:w,fontSizeMedium:x,heightMini:S,heightTiny:_,heightSmall:B,heightMedium:T,buttonColor2Hover:E,buttonColor2Pressed:I,fontWeightStrong:R}=e;return Object.assign(Object.assign({},RK),{closeBorderRadius:m,heightTiny:S,heightSmall:_,heightMedium:B,heightLarge:T,borderRadius:m,opacityDisabled:f,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:w,fontSizeLarge:x,fontWeightStrong:R,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:E,colorPressedCheckable:I,colorChecked:a,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${c}`,textColor:t,color:d,colorBordered:"#0000",closeIconColor:A,closeIconColorHover:h,closeIconColorPressed:v,closeColorHover:p,closeColorPressed:g,borderPrimary:`1px solid ${Ve(a,{alpha:.3})}`,textColorPrimary:a,colorPrimary:Ve(a,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:kn(a,{lightness:.7}),closeIconColorHoverPrimary:kn(a,{lightness:.7}),closeIconColorPressedPrimary:kn(a,{lightness:.7}),closeColorHoverPrimary:Ve(a,{alpha:.16}),closeColorPressedPrimary:Ve(a,{alpha:.12}),borderInfo:`1px solid ${Ve(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Ve(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:kn(i,{alpha:.7}),closeIconColorHoverInfo:kn(i,{alpha:.7}),closeIconColorPressedInfo:kn(i,{alpha:.7}),closeColorHoverInfo:Ve(i,{alpha:.16}),closeColorPressedInfo:Ve(i,{alpha:.12}),borderSuccess:`1px solid ${Ve(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:Ve(o,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:kn(o,{alpha:.7}),closeIconColorHoverSuccess:kn(o,{alpha:.7}),closeIconColorPressedSuccess:kn(o,{alpha:.7}),closeColorHoverSuccess:Ve(o,{alpha:.16}),closeColorPressedSuccess:Ve(o,{alpha:.12}),borderWarning:`1px solid ${Ve(s,{alpha:.3})}`,textColorWarning:s,colorWarning:Ve(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:kn(s,{alpha:.7}),closeIconColorHoverWarning:kn(s,{alpha:.7}),closeIconColorPressedWarning:kn(s,{alpha:.7}),closeColorHoverWarning:Ve(s,{alpha:.16}),closeColorPressedWarning:Ve(s,{alpha:.11}),borderError:`1px solid ${Ve(l,{alpha:.3})}`,textColorError:l,colorError:Ve(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:kn(l,{alpha:.7}),closeIconColorHoverError:kn(l,{alpha:.7}),closeIconColorPressedError:kn(l,{alpha:.7}),closeColorHoverError:Ve(l,{alpha:.16}),closeColorPressedError:Ve(l,{alpha:.12})})}};var DK=g1e;const m1e=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:a,infoColor:i,successColor:o,warningColor:s,errorColor:l,baseColor:u,borderColor:c,opacityDisabled:d,tagColor:f,closeIconColor:A,closeIconColorHover:h,closeIconColorPressed:v,borderRadiusSmall:p,fontSizeMini:g,fontSizeTiny:m,fontSizeSmall:y,fontSizeMedium:b,heightMini:w,heightTiny:x,heightSmall:S,heightMedium:_,closeColorHover:B,closeColorPressed:T,buttonColor2Hover:E,buttonColor2Pressed:I,fontWeightStrong:R}=e;return Object.assign(Object.assign({},RK),{closeBorderRadius:p,heightTiny:w,heightSmall:x,heightMedium:S,heightLarge:_,borderRadius:p,opacityDisabled:d,fontSizeTiny:g,fontSizeSmall:m,fontSizeMedium:y,fontSizeLarge:b,fontWeightStrong:R,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:E,colorPressedCheckable:I,colorChecked:a,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${c}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:A,closeIconColorHover:h,closeIconColorPressed:v,closeColorHover:B,closeColorPressed:T,borderPrimary:`1px solid ${Ve(a,{alpha:.3})}`,textColorPrimary:a,colorPrimary:Ve(a,{alpha:.12}),colorBorderedPrimary:Ve(a,{alpha:.1}),closeIconColorPrimary:a,closeIconColorHoverPrimary:a,closeIconColorPressedPrimary:a,closeColorHoverPrimary:Ve(a,{alpha:.12}),closeColorPressedPrimary:Ve(a,{alpha:.18}),borderInfo:`1px solid ${Ve(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Ve(i,{alpha:.12}),colorBorderedInfo:Ve(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Ve(i,{alpha:.12}),closeColorPressedInfo:Ve(i,{alpha:.18}),borderSuccess:`1px solid ${Ve(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:Ve(o,{alpha:.12}),colorBorderedSuccess:Ve(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:Ve(o,{alpha:.12}),closeColorPressedSuccess:Ve(o,{alpha:.18}),borderWarning:`1px solid ${Ve(s,{alpha:.35})}`,textColorWarning:s,colorWarning:Ve(s,{alpha:.15}),colorBorderedWarning:Ve(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:Ve(s,{alpha:.12}),closeColorPressedWarning:Ve(s,{alpha:.18}),borderError:`1px solid ${Ve(l,{alpha:.23})}`,textColorError:l,colorError:Ve(l,{alpha:.1}),colorBorderedError:Ve(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:Ve(l,{alpha:.12}),closeColorPressedError:Ve(l,{alpha:.18})})},y1e={name:"Tag",common:Dt,self:m1e};var b1e=y1e,x1e={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},w1e=M("tag",`
|
|
white-space: nowrap;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
cursor: default;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
padding: var(--n-padding);
|
|
border-radius: var(--n-border-radius);
|
|
color: var(--n-text-color);
|
|
background-color: var(--n-color);
|
|
transition:
|
|
border-color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier);
|
|
line-height: 1;
|
|
height: var(--n-height);
|
|
font-size: var(--n-font-size);
|
|
`,[j("strong",`
|
|
font-weight: var(--n-font-weight-strong);
|
|
`),G("border",`
|
|
pointer-events: none;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
border-radius: inherit;
|
|
border: var(--n-border);
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),G("icon",`
|
|
display: flex;
|
|
margin: 0 4px 0 0;
|
|
color: var(--n-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: var(--n-avatar-size-override);
|
|
`),G("avatar",`
|
|
display: flex;
|
|
margin: 0 6px 0 0;
|
|
`),G("close",`
|
|
margin: var(--n-close-margin);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`),j("round",`
|
|
padding: 0 calc(var(--n-height) / 3);
|
|
border-radius: calc(var(--n-height) / 2);
|
|
`,[G("icon",`
|
|
margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
|
|
`),G("avatar",`
|
|
margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
|
|
`),j("closable",`
|
|
padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
|
|
`)]),j("icon, avatar",[j("round",`
|
|
padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
|
|
`)]),j("disabled",`
|
|
cursor: not-allowed !important;
|
|
opacity: var(--n-opacity-disabled);
|
|
`),j("checkable",`
|
|
cursor: pointer;
|
|
box-shadow: none;
|
|
color: var(--n-text-color-checkable);
|
|
background-color: var(--n-color-checkable);
|
|
`,[Nt("disabled",[N("&:hover","background-color: var(--n-color-hover-checkable);",[Nt("checked","color: var(--n-text-color-hover-checkable);")]),N("&:active","background-color: var(--n-color-pressed-checkable);",[Nt("checked","color: var(--n-text-color-pressed-checkable);")])]),j("checked",`
|
|
color: var(--n-text-color-checked);
|
|
background-color: var(--n-color-checked);
|
|
`,[Nt("disabled",[N("&:hover","background-color: var(--n-color-checked-hover);"),N("&:active","background-color: var(--n-color-checked-pressed);")])])])]);const C1e=Object.assign(Object.assign(Object.assign({},Fe.props),x1e),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),FK="n-tag";var rx=ge({name:"Tag",props:C1e,setup(e){const t=X(null),{mergedBorderedRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:a,mergedRtlRef:i}=et(e),o=Fe("Tag","-tag",w1e,b1e,e,n);Ct(FK,{roundRef:Ie(e,"round")});function s(A){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:v,onUpdateChecked:p,"onUpdate:checked":g}=e;p&&p(!h),g&&g(!h),v&&v(!h)}}function l(A){if(e.triggerClickOnClose||A.stopPropagation(),!e.disabled){const{onClose:h}=e;h&&Ee(h,A)}}const u={setTextContent(A){const{value:h}=t;h&&(h.textContent=A)}},c=tn("Tag",i,n),d=L(()=>{const{type:A,size:h,color:{color:v,textColor:p}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:m,closeMargin:y,closeMarginRtl:b,borderRadius:w,opacityDisabled:x,textColorCheckable:S,textColorHoverCheckable:_,textColorPressedCheckable:B,textColorChecked:T,colorCheckable:E,colorHoverCheckable:I,colorPressedCheckable:R,colorChecked:D,colorCheckedHover:k,colorCheckedPressed:F,closeBorderRadius:P,fontWeightStrong:O,[Se("colorBordered",A)]:H,[Se("closeSize",h)]:V,[Se("closeIconSize",h)]:W,[Se("fontSize",h)]:Z,[Se("height",h)]:ee,[Se("color",A)]:ae,[Se("textColor",A)]:ne,[Se("border",A)]:le,[Se("closeIconColor",A)]:se,[Se("closeIconColorHover",A)]:ce,[Se("closeIconColorPressed",A)]:ye,[Se("closeColorHover",A)]:fe,[Se("closeColorPressed",A)]:Q}}=o.value;return{"--n-font-weight-strong":O,"--n-avatar-size-override":`calc(${ee} - 8px)`,"--n-bezier":g,"--n-border-radius":w,"--n-border":le,"--n-close-icon-size":W,"--n-close-color-pressed":Q,"--n-close-color-hover":fe,"--n-close-border-radius":P,"--n-close-icon-color":se,"--n-close-icon-color-hover":ce,"--n-close-icon-color-pressed":ye,"--n-close-icon-color-disabled":se,"--n-close-margin":y,"--n-close-margin-rtl":b,"--n-close-size":V,"--n-color":v||(r.value?H:ae),"--n-color-checkable":E,"--n-color-checked":D,"--n-color-checked-hover":k,"--n-color-checked-pressed":F,"--n-color-hover-checkable":I,"--n-color-pressed-checkable":R,"--n-font-size":Z,"--n-height":ee,"--n-opacity-disabled":x,"--n-padding":m,"--n-text-color":p||ne,"--n-text-color-checkable":S,"--n-text-color-checked":T,"--n-text-color-hover-checkable":_,"--n-text-color-pressed-checkable":B}}),f=a?_t("tag",L(()=>{let A="";const{type:h,size:v,color:{color:p,textColor:g}={}}=e;return A+=h[0],A+=v[0],p&&(A+=`a${uv(p)}`),g&&(A+=`b${uv(g)}`),r.value&&(A+="c"),A}),d,e):void 0;return Object.assign(Object.assign({},u),{rtlEnabled:c,mergedClsPrefix:n,contentRef:t,mergedBordered:r,handleClick:s,handleCloseClick:l,cssVars:a?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:r,rtlEnabled:n,closable:a,color:{borderColor:i}={},round:o,onRender:s,$slots:l}=this;s==null||s();const u=or(l.avatar,d=>d&&C("div",{class:`${r}-tag__avatar`},d)),c=or(l.icon,d=>d&&C("div",{class:`${r}-tag__icon`},d));return C("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:n,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:o,[`${r}-tag--avatar`]:u,[`${r}-tag--icon`]:c,[`${r}-tag--closable`]:a}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},c||u,C("span",{class:`${r}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&a?C(Zc,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:o,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?C("div",{class:`${r}-tag__border`,style:{borderColor:i}}):null)}}),S1e=M("base-clear",`
|
|
flex-shrink: 0;
|
|
height: 1em;
|
|
width: 1em;
|
|
position: relative;
|
|
`,[N(">",[G("clear",`
|
|
font-size: var(--n-clear-size);
|
|
height: 1em;
|
|
width: 1em;
|
|
cursor: pointer;
|
|
color: var(--n-clear-color);
|
|
transition: color .3s var(--n-bezier);
|
|
display: flex;
|
|
`,[N("&:hover",`
|
|
color: var(--n-clear-color-hover)!important;
|
|
`),N("&:active",`
|
|
color: var(--n-clear-color-pressed)!important;
|
|
`)]),G("placeholder",`
|
|
display: flex;
|
|
`),G("clear, placeholder",`
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
`,[Wn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),WI=ge({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return ol("-base-clear",S1e,Ie(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return C("div",{class:`${e}-base-clear`},C(sl,null,{default:()=>{var t,r;return this.show?C("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},Wt(this.$slots.icon,()=>[C($t,{clsPrefix:e},{default:()=>C(abe,null)})])):C("div",{key:"icon",class:`${e}-base-clear__placeholder`},(r=(t=this.$slots).placeholder)===null||r===void 0?void 0:r.call(t))}}))}}),MK=ge({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:r}=e;return C(cu,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?C(WI,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{placeholder:()=>C($t,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>Wt(t.default,()=>[C(vK,null)])})}):null})}}}),kK={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};const _1e=e=>{const{borderRadius:t,textColor2:r,textColorDisabled:n,inputColor:a,inputColorDisabled:i,primaryColor:o,primaryColorHover:s,warningColor:l,warningColorHover:u,errorColor:c,errorColorHover:d,borderColor:f,iconColor:A,iconColorDisabled:h,clearColor:v,clearColorHover:p,clearColorPressed:g,placeholderColor:m,placeholderColorDisabled:y,fontSizeTiny:b,fontSizeSmall:w,fontSizeMedium:x,fontSizeLarge:S,heightTiny:_,heightSmall:B,heightMedium:T,heightLarge:E}=e;return Object.assign(Object.assign({},kK),{fontSizeTiny:b,fontSizeSmall:w,fontSizeMedium:x,fontSizeLarge:S,heightTiny:_,heightSmall:B,heightMedium:T,heightLarge:E,borderRadius:t,textColor:r,textColorDisabled:n,placeholderColor:m,placeholderColorDisabled:y,color:a,colorDisabled:i,colorActive:a,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Ve(o,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Ve(o,{alpha:.2})}`,caretColor:o,arrowColor:A,arrowColorDisabled:h,loadingColor:o,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Ve(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Ve(l,{alpha:.2})}`,colorActiveWarning:a,caretColorWarning:l,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${c}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Ve(c,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Ve(c,{alpha:.2})}`,colorActiveError:a,caretColorError:c,clearColor:v,clearColorHover:p,clearColorPressed:g})},B1e={name:"InternalSelection",common:Dt,peers:{Popover:zv},self:_1e};var PK=B1e;const T1e={name:"InternalSelection",common:st,peers:{Popover:AA},self(e){const{borderRadius:t,textColor2:r,textColorDisabled:n,inputColor:a,inputColorDisabled:i,primaryColor:o,primaryColorHover:s,warningColor:l,warningColorHover:u,errorColor:c,errorColorHover:d,iconColor:f,iconColorDisabled:A,clearColor:h,clearColorHover:v,clearColorPressed:p,placeholderColor:g,placeholderColorDisabled:m,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:w,fontSizeLarge:x,heightTiny:S,heightSmall:_,heightMedium:B,heightLarge:T}=e;return Object.assign(Object.assign({},kK),{fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:w,fontSizeLarge:x,heightTiny:S,heightSmall:_,heightMedium:B,heightLarge:T,borderRadius:t,textColor:r,textColorDisabled:n,placeholderColor:g,placeholderColorDisabled:m,color:a,colorDisabled:i,colorActive:Ve(o,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${s}`,borderActive:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Ve(o,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Ve(o,{alpha:.4})}`,caretColor:o,arrowColor:f,arrowColorDisabled:A,loadingColor:o,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Ve(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Ve(l,{alpha:.4})}`,colorActiveWarning:Ve(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${c}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Ve(c,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Ve(c,{alpha:.4})}`,colorActiveError:Ve(c,{alpha:.1}),caretColorError:c,clearColor:h,clearColorHover:v,clearColorPressed:p})}};var xk=T1e,E1e=N([M("base-selection",`
|
|
position: relative;
|
|
z-index: auto;
|
|
box-shadow: none;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
border-radius: var(--n-border-radius);
|
|
min-height: var(--n-height);
|
|
line-height: 1.5;
|
|
font-size: var(--n-font-size);
|
|
`,[M("base-loading",`
|
|
color: var(--n-loading-color);
|
|
`),M("base-selection-tags","min-height: var(--n-height);"),G("border, state-border",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
pointer-events: none;
|
|
border: var(--n-border);
|
|
border-radius: inherit;
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`),G("state-border",`
|
|
z-index: 1;
|
|
border-color: #0000;
|
|
`),M("base-suffix",`
|
|
cursor: pointer;
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
right: 10px;
|
|
`,[G("arrow",`
|
|
font-size: var(--n-arrow-size);
|
|
color: var(--n-arrow-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`)]),M("base-selection-overlay",`
|
|
display: flex;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
pointer-events: none;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
padding: var(--n-padding-single);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[G("wrapper",`
|
|
flex-basis: 0;
|
|
flex-grow: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
`)]),M("base-selection-placeholder",`
|
|
color: var(--n-placeholder-color);
|
|
`,[G("inner",`
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
`)]),M("base-selection-tags",`
|
|
cursor: pointer;
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
z-index: auto;
|
|
display: flex;
|
|
padding: var(--n-padding-multiple);
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
width: 100%;
|
|
vertical-align: bottom;
|
|
background-color: var(--n-color);
|
|
border-radius: inherit;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
`),M("base-selection-label",`
|
|
height: var(--n-height);
|
|
display: inline-flex;
|
|
width: 100%;
|
|
vertical-align: bottom;
|
|
cursor: pointer;
|
|
outline: none;
|
|
z-index: auto;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
border-radius: inherit;
|
|
background-color: var(--n-color);
|
|
align-items: center;
|
|
`,[M("base-selection-input",`
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
outline: none;
|
|
cursor: pointer;
|
|
box-sizing: border-box;
|
|
border:none;
|
|
width: 100%;
|
|
padding: var(--n-padding-single);
|
|
background-color: #0000;
|
|
color: var(--n-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
caret-color: var(--n-caret-color);
|
|
`,[G("content",`
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
`)]),G("render-label",`
|
|
color: var(--n-text-color);
|
|
`)]),Nt("disabled",[N("&:hover",[G("state-border",`
|
|
box-shadow: var(--n-box-shadow-hover);
|
|
border: var(--n-border-hover);
|
|
`)]),j("focus",[G("state-border",`
|
|
box-shadow: var(--n-box-shadow-focus);
|
|
border: var(--n-border-focus);
|
|
`)]),j("active",[G("state-border",`
|
|
box-shadow: var(--n-box-shadow-active);
|
|
border: var(--n-border-active);
|
|
`),M("base-selection-label","background-color: var(--n-color-active);"),M("base-selection-tags","background-color: var(--n-color-active);")])]),j("disabled","cursor: not-allowed;",[G("arrow",`
|
|
color: var(--n-arrow-color-disabled);
|
|
`),M("base-selection-label",`
|
|
cursor: not-allowed;
|
|
background-color: var(--n-color-disabled);
|
|
`,[M("base-selection-input",`
|
|
cursor: not-allowed;
|
|
color: var(--n-text-color-disabled);
|
|
`),G("render-label",`
|
|
color: var(--n-text-color-disabled);
|
|
`)]),M("base-selection-tags",`
|
|
cursor: not-allowed;
|
|
background-color: var(--n-color-disabled);
|
|
`),M("base-selection-placeholder",`
|
|
cursor: not-allowed;
|
|
color: var(--n-placeholder-color-disabled);
|
|
`)]),M("base-selection-input-tag",`
|
|
height: calc(var(--n-height) - 6px);
|
|
line-height: calc(var(--n-height) - 6px);
|
|
outline: none;
|
|
display: none;
|
|
position: relative;
|
|
margin-bottom: 3px;
|
|
max-width: 100%;
|
|
vertical-align: bottom;
|
|
`,[G("input",`
|
|
font-size: inherit;
|
|
font-family: inherit;
|
|
min-width: 1px;
|
|
padding: 0;
|
|
background-color: #0000;
|
|
outline: none;
|
|
border: none;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
width: 1em;
|
|
line-height: inherit;
|
|
cursor: pointer;
|
|
color: var(--n-text-color);
|
|
caret-color: var(--n-caret-color);
|
|
`),G("mirror",`
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
white-space: pre;
|
|
visibility: hidden;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
opacity: 0;
|
|
`)]),["warning","error"].map(e=>j(`${e}-status`,[G("state-border",`border: var(--n-border-${e});`),Nt("disabled",[N("&:hover",[G("state-border",`
|
|
box-shadow: var(--n-box-shadow-hover-${e});
|
|
border: var(--n-border-hover-${e});
|
|
`)]),j("active",[G("state-border",`
|
|
box-shadow: var(--n-box-shadow-active-${e});
|
|
border: var(--n-border-active-${e});
|
|
`),M("base-selection-label",`background-color: var(--n-color-active-${e});`),M("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),j("focus",[G("state-border",`
|
|
box-shadow: var(--n-box-shadow-focus-${e});
|
|
border: var(--n-border-focus-${e});
|
|
`)])])]))]),M("base-selection-popover",`
|
|
margin-bottom: -3px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-right: -8px;
|
|
`),M("base-selection-tag-wrapper",`
|
|
max-width: 100%;
|
|
display: inline-flex;
|
|
padding: 0 7px 3px 0;
|
|
`,[N("&:last-child","padding-right: 0;"),M("tag",`
|
|
font-size: 14px;
|
|
max-width: 100%;
|
|
`,[G("content",`
|
|
line-height: 1.25;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
`)])])]),I1e=ge({name:"InternalSelection",props:Object.assign(Object.assign({},Fe.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=X(null),r=X(null),n=X(null),a=X(null),i=X(null),o=X(null),s=X(null),l=X(null),u=X(null),c=X(null),d=X(!1),f=X(!1),A=X(!1),h=Fe("InternalSelection","-internal-selection",E1e,PK,e,Ie(e,"clsPrefix")),v=L(()=>e.clearable&&!e.disabled&&(A.value||e.active)),p=L(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Mr(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),g=L(()=>{const oe=e.selectedOption;if(!!oe)return oe[e.labelField]}),m=L(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function y(){var oe;const{value:Y}=t;if(Y){const{value:te}=r;te&&(te.style.width=`${Y.offsetWidth}px`,e.maxTagCount!=="responsive"&&((oe=u.value)===null||oe===void 0||oe.sync()))}}function b(){const{value:oe}=c;oe&&(oe.style.display="none")}function w(){const{value:oe}=c;oe&&(oe.style.display="inline-block")}mt(Ie(e,"active"),oe=>{oe||b()}),mt(Ie(e,"pattern"),()=>{e.multiple&&ar(y)});function x(oe){const{onFocus:Y}=e;Y&&Y(oe)}function S(oe){const{onBlur:Y}=e;Y&&Y(oe)}function _(oe){const{onDeleteOption:Y}=e;Y&&Y(oe)}function B(oe){const{onClear:Y}=e;Y&&Y(oe)}function T(oe){const{onPatternInput:Y}=e;Y&&Y(oe)}function E(oe){var Y;(!oe.relatedTarget||!(!((Y=n.value)===null||Y===void 0)&&Y.contains(oe.relatedTarget)))&&x(oe)}function I(oe){var Y;!((Y=n.value)===null||Y===void 0)&&Y.contains(oe.relatedTarget)||S(oe)}function R(oe){B(oe)}function D(){A.value=!0}function k(){A.value=!1}function F(oe){!e.active||!e.filterable||oe.target!==r.value&&oe.preventDefault()}function P(oe){_(oe)}function O(oe){if(oe.key==="Backspace"&&!H.value&&!e.pattern.length){const{selectedOptions:Y}=e;Y!=null&&Y.length&&P(Y[Y.length-1])}}const H=X(!1);let V=null;function W(oe){const{value:Y}=t;if(Y){const te=oe.target.value;Y.textContent=te,y()}e.ignoreComposition&&H.value?V=oe:T(oe)}function Z(){H.value=!0}function ee(){H.value=!1,e.ignoreComposition&&T(V),V=null}function ae(oe){var Y;f.value=!0,(Y=e.onPatternFocus)===null||Y===void 0||Y.call(e,oe)}function ne(oe){var Y;f.value=!1,(Y=e.onPatternBlur)===null||Y===void 0||Y.call(e,oe)}function le(){var oe,Y;if(e.filterable)f.value=!1,(oe=o.value)===null||oe===void 0||oe.blur(),(Y=r.value)===null||Y===void 0||Y.blur();else if(e.multiple){const{value:te}=a;te==null||te.blur()}else{const{value:te}=i;te==null||te.blur()}}function se(){var oe,Y,te;e.filterable?(f.value=!1,(oe=o.value)===null||oe===void 0||oe.focus()):e.multiple?(Y=a.value)===null||Y===void 0||Y.focus():(te=i.value)===null||te===void 0||te.focus()}function ce(){const{value:oe}=r;oe&&(w(),oe.focus())}function ye(){const{value:oe}=r;oe&&oe.blur()}function fe(oe){const{value:Y}=s;Y&&Y.setTextContent(`+${oe}`)}function Q(){const{value:oe}=l;return oe}function J(){return r.value}let U=null;function K(){U!==null&&window.clearTimeout(U)}function q(){e.disabled||e.active||(K(),U=window.setTimeout(()=>{m.value&&(d.value=!0)},100))}function ie(){K()}function $(oe){oe||(K(),d.value=!1)}mt(m,oe=>{oe||(d.value=!1)}),Ar(()=>{yr(()=>{const oe=o.value;!oe||(oe.tabIndex=e.disabled||f.value?-1:0)})}),pG(n,e.onResize);const{inlineThemeDisabled:re}=e,ve=L(()=>{const{size:oe}=e,{common:{cubicBezierEaseInOut:Y},self:{borderRadius:te,color:pe,placeholderColor:de,textColor:we,paddingSingle:De,paddingMultiple:ze,caretColor:Xe,colorDisabled:ke,textColorDisabled:Ge,placeholderColorDisabled:it,colorActive:ut,boxShadowFocus:Ke,boxShadowActive:xt,boxShadowHover:ue,border:Te,borderFocus:He,borderHover:Je,borderActive:nt,arrowColor:be,arrowColorDisabled:Le,loadingColor:je,colorActiveWarning:ft,boxShadowFocusWarning:Ce,boxShadowActiveWarning:Qe,boxShadowHoverWarning:me,borderWarning:Ne,borderFocusWarning:lt,borderHoverWarning:Tt,borderActiveWarning:dt,colorActiveError:Ae,boxShadowFocusError:Re,boxShadowActiveError:ot,boxShadowHoverError:Ht,borderError:_e,borderFocusError:Oe,borderHoverError:rt,borderActiveError:ht,clearColor:Ft,clearColorHover:Hr,clearColorPressed:Pr,clearSize:Be,arrowSize:qe,[Se("height",oe)]:vt,[Se("fontSize",oe)]:Jt}}=h.value;return{"--n-bezier":Y,"--n-border":Te,"--n-border-active":nt,"--n-border-focus":He,"--n-border-hover":Je,"--n-border-radius":te,"--n-box-shadow-active":xt,"--n-box-shadow-focus":Ke,"--n-box-shadow-hover":ue,"--n-caret-color":Xe,"--n-color":pe,"--n-color-active":ut,"--n-color-disabled":ke,"--n-font-size":Jt,"--n-height":vt,"--n-padding-single":De,"--n-padding-multiple":ze,"--n-placeholder-color":de,"--n-placeholder-color-disabled":it,"--n-text-color":we,"--n-text-color-disabled":Ge,"--n-arrow-color":be,"--n-arrow-color-disabled":Le,"--n-loading-color":je,"--n-color-active-warning":ft,"--n-box-shadow-focus-warning":Ce,"--n-box-shadow-active-warning":Qe,"--n-box-shadow-hover-warning":me,"--n-border-warning":Ne,"--n-border-focus-warning":lt,"--n-border-hover-warning":Tt,"--n-border-active-warning":dt,"--n-color-active-error":Ae,"--n-box-shadow-focus-error":Re,"--n-box-shadow-active-error":ot,"--n-box-shadow-hover-error":Ht,"--n-border-error":_e,"--n-border-focus-error":Oe,"--n-border-hover-error":rt,"--n-border-active-error":ht,"--n-clear-size":Be,"--n-clear-color":Ft,"--n-clear-color-hover":Hr,"--n-clear-color-pressed":Pr,"--n-arrow-size":qe}}),he=re?_t("internal-selection",L(()=>e.size[0]),ve,e):void 0;return{mergedTheme:h,mergedClearable:v,patternInputFocused:f,filterablePlaceholder:p,label:g,selected:m,showTagsPanel:d,isComposing:H,counterRef:s,counterWrapperRef:l,patternInputMirrorRef:t,patternInputRef:r,selfRef:n,multipleElRef:a,singleElRef:i,patternInputWrapperRef:o,overflowRef:u,inputTagElRef:c,handleMouseDown:F,handleFocusin:E,handleClear:R,handleMouseEnter:D,handleMouseLeave:k,handleDeleteOption:P,handlePatternKeyDown:O,handlePatternInputInput:W,handlePatternInputBlur:ne,handlePatternInputFocus:ae,handleMouseEnterCounter:q,handleMouseLeaveCounter:ie,handleFocusout:I,handleCompositionEnd:ee,handleCompositionStart:Z,onPopoverUpdateShow:$,focus:se,focusInput:ce,blur:le,blurInput:ye,updateCounter:fe,getCounter:Q,getTail:J,renderLabel:e.renderLabel,cssVars:re?void 0:ve,themeClass:he==null?void 0:he.themeClass,onRender:he==null?void 0:he.onRender}},render(){const{status:e,multiple:t,size:r,disabled:n,filterable:a,maxTagCount:i,bordered:o,clsPrefix:s,onRender:l,renderTag:u,renderLabel:c}=this;l==null||l();const d=i==="responsive",f=typeof i=="number",A=d||f,h=C(EI,null,{default:()=>C(MK,{clsPrefix:s,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var p,g;return(g=(p=this.$slots).arrow)===null||g===void 0?void 0:g.call(p)}})});let v;if(t){const{labelField:p}=this,g=I=>C("div",{class:`${s}-base-selection-tag-wrapper`,key:I.value},u?u({option:I,handleClose:()=>this.handleDeleteOption(I)}):C(rx,{size:r,closable:!I.disabled,disabled:n,onClose:()=>this.handleDeleteOption(I),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>c?c(I,!0):Mr(I[p],I,!0)})),m=(f?this.selectedOptions.slice(0,i):this.selectedOptions).map(g),y=a?C("div",{class:`${s}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},C("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:n,value:this.pattern,autofocus:this.autofocus,class:`${s}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),C("span",{ref:"patternInputMirrorRef",class:`${s}-base-selection-input-tag__mirror`},this.pattern)):null,b=d?()=>C("div",{class:`${s}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},C(rx,{size:r,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:n})):void 0;let w;if(f){const I=this.selectedOptions.length-i;I>0&&(w=C("div",{class:`${s}-base-selection-tag-wrapper`,key:"__counter__"},C(rx,{size:r,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:n},{default:()=>`+${I}`})))}const x=d?a?C(SO,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:()=>m,counter:b,tail:()=>y}):C(SO,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:()=>m,counter:b}):f?m.concat(w):m,S=A?()=>C("div",{class:`${s}-base-selection-popover`},d?m:this.selectedOptions.map(g)):void 0,_=A?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,T=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?C("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`},C("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)):null,E=a?C("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-tags`},x,d?null:y,h):C("div",{ref:"multipleElRef",class:`${s}-base-selection-tags`,tabindex:n?void 0:0},x,h);v=C(rr,null,A?C(Nv,Object.assign({},_,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>E,default:S}):E,T)}else if(a){const p=this.pattern||this.isComposing,g=this.active?!p:!this.selected,m=this.active?!1:this.selected;v=C("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-label`},C("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${s}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:n,disabled:n,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),m?C("div",{class:`${s}-base-selection-label__render-label ${s}-base-selection-overlay`,key:"input"},C("div",{class:`${s}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Mr(this.label,this.selectedOption,!0))):null,g?C("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},C("div",{class:`${s}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,h)}else v=C("div",{ref:"singleElRef",class:`${s}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?C("div",{class:`${s}-base-selection-input`,title:OW(this.label),key:"input"},C("div",{class:`${s}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Mr(this.label,this.selectedOption,!0))):C("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},C("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)),h);return C("div",{ref:"selfRef",class:[`${s}-base-selection`,this.themeClass,e&&`${s}-base-selection--${e}-status`,{[`${s}-base-selection--active`]:this.active,[`${s}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${s}-base-selection--disabled`]:this.disabled,[`${s}-base-selection--multiple`]:this.multiple,[`${s}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},v,o?C("div",{class:`${s}-base-selection__border`}):null,o?C("div",{class:`${s}-base-selection__state-border`}):null)}}),w3=ge({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=X(null),r=X(e.value),n=X(e.value),a=X("up"),i=X(!1),o=L(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${a.value}-scroll`:null),s=L(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${a.value}-scroll`:null);mt(Ie(e,"value"),(c,d)=>{r.value=d,n.value=c,ar(l)});function l(){const c=e.newOriginalNumber,d=e.oldOriginalNumber;d===void 0||c===void 0||(c>d?u("up"):d>c&&u("down"))}function u(c){a.value=c,i.value=!1,ar(()=>{var d;(d=t.value)===null||d===void 0||d.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:c}=e;return C("span",{ref:t,class:`${c}-base-slot-machine-number`},r.value!==null?C("span",{class:[`${c}-base-slot-machine-old-number ${c}-base-slot-machine-old-number--top`,s.value]},r.value):null,C("span",{class:[`${c}-base-slot-machine-current-number`,o.value]},C("span",{ref:"numberWrapper",class:[`${c}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${c}-base-slot-machine-current-number__inner--not-number`]},n.value)),r.value!==null?C("span",{class:[`${c}-base-slot-machine-old-number ${c}-base-slot-machine-old-number--bottom`,s.value]},r.value):null)}}});const{cubicBezierEaseInOut:xu}=xi;function LK({duration:e=".2s",delay:t=".1s"}={}){return[N("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),N("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
|
|
opacity: 0!important;
|
|
margin-left: 0!important;
|
|
margin-right: 0!important;
|
|
`),N("&.fade-in-width-expand-transition-leave-active",`
|
|
overflow: hidden;
|
|
transition:
|
|
opacity ${e} ${xu},
|
|
max-width ${e} ${xu} ${t},
|
|
margin-left ${e} ${xu} ${t},
|
|
margin-right ${e} ${xu} ${t};
|
|
`),N("&.fade-in-width-expand-transition-enter-active",`
|
|
overflow: hidden;
|
|
transition:
|
|
opacity ${e} ${xu} ${t},
|
|
max-width ${e} ${xu},
|
|
margin-left ${e} ${xu},
|
|
margin-right ${e} ${xu};
|
|
`)]}const{cubicBezierEaseOut:RA}=xi;function R1e({duration:e=".2s"}={}){return[N("&.fade-up-width-expand-transition-leave-active",{transition:`
|
|
opacity ${e} ${RA},
|
|
max-width ${e} ${RA},
|
|
transform ${e} ${RA}
|
|
`}),N("&.fade-up-width-expand-transition-enter-active",{transition:`
|
|
opacity ${e} ${RA},
|
|
max-width ${e} ${RA},
|
|
transform ${e} ${RA}
|
|
`}),N("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),N("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),N("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),N("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}var D1e=N([N("@keyframes n-base-slot-machine-fade-up-in",`
|
|
from {
|
|
transform: translateY(60%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
`),N("@keyframes n-base-slot-machine-fade-down-in",`
|
|
from {
|
|
transform: translateY(-60%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
`),N("@keyframes n-base-slot-machine-fade-up-out",`
|
|
from {
|
|
transform: translateY(0%);
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
transform: translateY(-60%);
|
|
opacity: 0;
|
|
}
|
|
`),N("@keyframes n-base-slot-machine-fade-down-out",`
|
|
from {
|
|
transform: translateY(0%);
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
transform: translateY(60%);
|
|
opacity: 0;
|
|
}
|
|
`),M("base-slot-machine",`
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
height: 18px;
|
|
line-height: 18px;
|
|
`,[M("base-slot-machine-number",`
|
|
display: inline-block;
|
|
position: relative;
|
|
height: 18px;
|
|
width: .6em;
|
|
max-width: .6em;
|
|
`,[R1e({duration:".2s"}),LK({duration:".2s",delay:"0s"}),M("base-slot-machine-old-number",`
|
|
display: inline-block;
|
|
opacity: 0;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
`,[j("top",{transform:"translateY(-100%)"}),j("bottom",{transform:"translateY(100%)"}),j("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),j("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),M("base-slot-machine-current-number",`
|
|
display: inline-block;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
width: .6em;
|
|
`,[j("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),j("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),G("inner",`
|
|
display: inline-block;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
width: .6em;
|
|
`,[j("not-number",`
|
|
right: unset;
|
|
left: 0;
|
|
`)])])])])]),F1e=ge({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){ol("-base-slot-machine",D1e,Ie(e,"clsPrefix"));const t=X(),r=X(),n=L(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const a=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)a.push(i%10),i/=10,i=Math.floor(i);return a.reverse(),a});return mt(Ie(e,"value"),(a,i)=>{typeof a=="string"?(r.value=void 0,t.value=void 0):typeof i=="string"?(r.value=a,t.value=void 0):(r.value=a,t.value=i)}),()=>{const{value:a,clsPrefix:i}=e;return typeof a=="number"?C("span",{class:`${i}-base-slot-machine`},C(qC,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>n.value.map((o,s)=>C(w3,{clsPrefix:i,key:n.value.length-s-1,oldOriginalNumber:t.value,newOriginalNumber:r.value,value:o}))}),C(ll,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max<a?C(w3,{clsPrefix:i,value:"+"}):null})):C("span",{class:`${i}-base-slot-machine`},a)}}}),OK={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"};const M1e={name:"Alert",common:st,self(e){const{lineHeight:t,borderRadius:r,fontWeightStrong:n,dividerColor:a,inputColor:i,textColor1:o,textColor2:s,closeColorHover:l,closeColorPressed:u,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:A,successColorSuppl:h,warningColorSuppl:v,errorColorSuppl:p,fontSize:g}=e;return Object.assign(Object.assign({},OK),{fontSize:g,lineHeight:t,titleFontWeight:n,borderRadius:r,border:`1px solid ${a}`,color:i,titleTextColor:o,iconColor:s,contentTextColor:s,closeBorderRadius:r,closeColorHover:l,closeColorPressed:u,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${Ve(A,{alpha:.35})}`,colorInfo:Ve(A,{alpha:.25}),titleTextColorInfo:o,iconColorInfo:A,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:u,closeIconColorInfo:c,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${Ve(h,{alpha:.35})}`,colorSuccess:Ve(h,{alpha:.25}),titleTextColorSuccess:o,iconColorSuccess:h,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:u,closeIconColorSuccess:c,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${Ve(v,{alpha:.35})}`,colorWarning:Ve(v,{alpha:.25}),titleTextColorWarning:o,iconColorWarning:v,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:u,closeIconColorWarning:c,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${Ve(p,{alpha:.35})}`,colorError:Ve(p,{alpha:.25}),titleTextColorError:o,iconColorError:p,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:u,closeIconColorError:c,closeIconColorHoverError:d,closeIconColorPressedError:f})}};var k1e=M1e;const P1e=e=>{const{lineHeight:t,borderRadius:r,fontWeightStrong:n,baseColor:a,dividerColor:i,actionColor:o,textColor1:s,textColor2:l,closeColorHover:u,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:A,infoColor:h,successColor:v,warningColor:p,errorColor:g,fontSize:m}=e;return Object.assign(Object.assign({},OK),{fontSize:m,lineHeight:t,titleFontWeight:n,borderRadius:r,border:`1px solid ${i}`,color:o,titleTextColor:s,iconColor:l,contentTextColor:l,closeBorderRadius:r,closeColorHover:u,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:A,borderInfo:`1px solid ${Et(a,Ve(h,{alpha:.25}))}`,colorInfo:Et(a,Ve(h,{alpha:.08})),titleTextColorInfo:s,iconColorInfo:h,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:c,closeIconColorInfo:d,closeIconColorHoverInfo:f,closeIconColorPressedInfo:A,borderSuccess:`1px solid ${Et(a,Ve(v,{alpha:.25}))}`,colorSuccess:Et(a,Ve(v,{alpha:.08})),titleTextColorSuccess:s,iconColorSuccess:v,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:c,closeIconColorSuccess:d,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:A,borderWarning:`1px solid ${Et(a,Ve(p,{alpha:.33}))}`,colorWarning:Et(a,Ve(p,{alpha:.08})),titleTextColorWarning:s,iconColorWarning:p,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:c,closeIconColorWarning:d,closeIconColorHoverWarning:f,closeIconColorPressedWarning:A,borderError:`1px solid ${Et(a,Ve(g,{alpha:.25}))}`,colorError:Et(a,Ve(g,{alpha:.08})),titleTextColorError:s,iconColorError:g,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:c,closeIconColorError:d,closeIconColorHoverError:f,closeIconColorPressedError:A})},L1e={name:"Alert",common:Dt,self:P1e};var O1e=L1e;const{cubicBezierEaseInOut:gs,cubicBezierEaseOut:$1e,cubicBezierEaseIn:U1e}=xi;function Yl({overflow:e="hidden",duration:t=".3s",originalTransition:r="",leavingDelay:n="0s",foldPadding:a=!1,enterToProps:i=void 0,leaveToProps:o=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",u=s?"enter":"leave";return[N(`&.fade-in-height-expand-transition-${u}-from,
|
|
&.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),N(`&.fade-in-height-expand-transition-${u}-to,
|
|
&.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},o),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:a?"0 !important":void 0,paddingBottom:a?"0 !important":void 0})),N(`&.fade-in-height-expand-transition-${u}-active`,`
|
|
overflow: ${e};
|
|
transition:
|
|
max-height ${t} ${gs} ${n},
|
|
opacity ${t} ${$1e} ${n},
|
|
margin-top ${t} ${gs} ${n},
|
|
margin-bottom ${t} ${gs} ${n},
|
|
padding-top ${t} ${gs} ${n},
|
|
padding-bottom ${t} ${gs} ${n}
|
|
${r?","+r:""}
|
|
`),N(`&.fade-in-height-expand-transition-${l}-active`,`
|
|
overflow: ${e};
|
|
transition:
|
|
max-height ${t} ${gs},
|
|
opacity ${t} ${U1e},
|
|
margin-top ${t} ${gs},
|
|
margin-bottom ${t} ${gs},
|
|
padding-top ${t} ${gs},
|
|
padding-bottom ${t} ${gs}
|
|
${r?","+r:""}
|
|
`)]}var H1e=M("alert",`
|
|
line-height: var(--n-line-height);
|
|
border-radius: var(--n-border-radius);
|
|
position: relative;
|
|
transition: background-color .3s var(--n-bezier);
|
|
background-color: var(--n-color);
|
|
text-align: start;
|
|
word-break: break-word;
|
|
`,[G("border",`
|
|
border-radius: inherit;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
transition: border-color .3s var(--n-bezier);
|
|
border: var(--n-border);
|
|
pointer-events: none;
|
|
`),j("closable",[M("alert-body",[G("title",`
|
|
padding-right: 24px;
|
|
`)])]),G("icon",{color:"var(--n-icon-color)"}),M("alert-body",{padding:"var(--n-padding)"},[G("title",{color:"var(--n-title-text-color)"}),G("content",{color:"var(--n-content-text-color)"})]),Yl({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),G("icon",`
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
display: flex;
|
|
width: var(--n-icon-size);
|
|
height: var(--n-icon-size);
|
|
font-size: var(--n-icon-size);
|
|
margin: var(--n-icon-margin);
|
|
`),G("close",`
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
margin: var(--n-close-margin);
|
|
`),j("show-icon",[M("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),M("alert-body",`
|
|
border-radius: var(--n-border-radius);
|
|
transition: border-color .3s var(--n-bezier);
|
|
`,[G("title",`
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: 16px;
|
|
line-height: 19px;
|
|
font-weight: var(--n-title-font-weight);
|
|
`,[N("& +",[G("content",{marginTop:"9px"})])]),G("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),G("icon",{transition:"color .3s var(--n-bezier)"})]);const z1e=Object.assign(Object.assign({},Fe.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function});var N1e=ge({name:"Alert",inheritAttrs:!1,props:z1e,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:n,mergedRtlRef:a}=et(e),i=Fe("Alert","-alert",H1e,O1e,e,t),o=tn("Alert",a,t),s=L(()=>{const{common:{cubicBezierEaseInOut:A},self:h}=i.value,{fontSize:v,borderRadius:p,titleFontWeight:g,lineHeight:m,iconSize:y,iconMargin:b,iconMarginRtl:w,closeIconSize:x,closeBorderRadius:S,closeSize:_,closeMargin:B,closeMarginRtl:T,padding:E}=h,{type:I}=e,{left:R,right:D}=uc(b);return{"--n-bezier":A,"--n-color":h[Se("color",I)],"--n-close-icon-size":x,"--n-close-border-radius":S,"--n-close-color-hover":h[Se("closeColorHover",I)],"--n-close-color-pressed":h[Se("closeColorPressed",I)],"--n-close-icon-color":h[Se("closeIconColor",I)],"--n-close-icon-color-hover":h[Se("closeIconColorHover",I)],"--n-close-icon-color-pressed":h[Se("closeIconColorPressed",I)],"--n-icon-color":h[Se("iconColor",I)],"--n-border":h[Se("border",I)],"--n-title-text-color":h[Se("titleTextColor",I)],"--n-content-text-color":h[Se("contentTextColor",I)],"--n-line-height":m,"--n-border-radius":p,"--n-font-size":v,"--n-title-font-weight":g,"--n-icon-size":y,"--n-icon-margin":b,"--n-icon-margin-rtl":w,"--n-close-size":_,"--n-close-margin":B,"--n-close-margin-rtl":T,"--n-padding":E,"--n-icon-margin-left":R,"--n-icon-margin-right":D}}),l=n?_t("alert",L(()=>e.type[0]),s,e):void 0,u=X(!0),c=()=>{const{onAfterLeave:A,onAfterHide:h}=e;A&&A(),h&&h()};return{rtlEnabled:o,mergedClsPrefix:t,mergedBordered:r,visible:u,handleCloseClick:()=>{var A;Promise.resolve((A=e.onClose)===null||A===void 0?void 0:A.call(e)).then(h=>{h!==!1&&(u.value=!1)})},handleAfterLeave:()=>{c()},mergedTheme:i,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),C(ll,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:r}=this,n={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?C("div",Object.assign({},An(this.$attrs,n)),this.closable&&C(Zc,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&C("div",{class:`${t}-alert__border`}),this.showIcon&&C("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},Wt(r.icon,()=>[C($t,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return C(cA,null);case"info":return C(Pc,null);case"warning":return C(dA,null);case"error":return C(uA,null);default:return null}}})])),C("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},or(r.header,a=>{const i=a||this.title;return i?C("div",{class:`${t}-alert-body__title`},i):null}),r.default&&C("div",{class:`${t}-alert-body__content`},r))):null}})}}),Q1e={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};const V1e=e=>{const{borderRadius:t,railColor:r,primaryColor:n,primaryColorHover:a,primaryColorPressed:i,textColor2:o}=e;return Object.assign(Object.assign({},Q1e),{borderRadius:t,railColor:r,railColorActive:n,linkColor:Ve(n,{alpha:.15}),linkTextColor:o,linkTextColorHover:a,linkTextColorPressed:i,linkTextColorActive:n})},W1e={name:"Anchor",common:st,self:V1e};var G1e=W1e;function rw(e){return e.type==="group"}function $K(e){return e.type==="ignored"}function BB(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch(r){return!1}}function UK(e,t){return{getIsGroup:rw,getIgnored:$K,getKey(n){return rw(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function K1e(e,t,r,n){if(!t)return e;function a(i){if(!Array.isArray(i))return[];const o=[];for(const s of i)if(rw(s)){const l=a(s[n]);l.length&&o.push(Object.assign({},s,{[n]:l}))}else{if($K(s))continue;t(r,s)&&o.push(s)}return o}return a(e)}function j1e(e,t,r){const n=new Map;return e.forEach(a=>{rw(a)?a[r].forEach(i=>{n.set(i[t],i)}):n.set(a[t],a)}),n}const Y1e=To&&"chrome"in window;To&&navigator.userAgent.includes("Firefox");const HK=To&&navigator.userAgent.includes("Safari")&&!Y1e;var zK={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};const X1e={name:"Input",common:st,self(e){const{textColor2:t,textColor3:r,textColorDisabled:n,primaryColor:a,primaryColorHover:i,inputColor:o,inputColorDisabled:s,warningColor:l,warningColorHover:u,errorColor:c,errorColorHover:d,borderRadius:f,lineHeight:A,fontSizeTiny:h,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:g,heightTiny:m,heightSmall:y,heightMedium:b,heightLarge:w,clearColor:x,clearColorHover:S,clearColorPressed:_,placeholderColor:B,placeholderColorDisabled:T,iconColor:E,iconColorDisabled:I,iconColorHover:R,iconColorPressed:D}=e;return Object.assign(Object.assign({},zK),{countTextColorDisabled:n,countTextColor:r,heightTiny:m,heightSmall:y,heightMedium:b,heightLarge:w,fontSizeTiny:h,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:g,lineHeight:A,lineHeightTextarea:A,borderRadius:f,iconSize:"16px",groupLabelColor:o,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:a,placeholderColor:B,placeholderColorDisabled:T,color:o,colorDisabled:s,colorFocus:Ve(a,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${Ve(a,{alpha:.3})}`,loadingColor:a,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:Ve(l,{alpha:.1}),borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 8px 0 ${Ve(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:c,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${d}`,colorFocusError:Ve(c,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${Ve(c,{alpha:.3})}`,caretColorError:c,clearColor:x,clearColorHover:S,clearColorPressed:_,iconColor:E,iconColorDisabled:I,iconColorHover:R,iconColorPressed:D,suffixTextColor:t})}};var Ro=X1e;const q1e=e=>{const{textColor2:t,textColor3:r,textColorDisabled:n,primaryColor:a,primaryColorHover:i,inputColor:o,inputColorDisabled:s,borderColor:l,warningColor:u,warningColorHover:c,errorColor:d,errorColorHover:f,borderRadius:A,lineHeight:h,fontSizeTiny:v,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:m,heightTiny:y,heightSmall:b,heightMedium:w,heightLarge:x,actionColor:S,clearColor:_,clearColorHover:B,clearColorPressed:T,placeholderColor:E,placeholderColorDisabled:I,iconColor:R,iconColorDisabled:D,iconColorHover:k,iconColorPressed:F}=e;return Object.assign(Object.assign({},zK),{countTextColorDisabled:n,countTextColor:r,heightTiny:y,heightSmall:b,heightMedium:w,heightLarge:x,fontSizeTiny:v,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:m,lineHeight:h,lineHeightTextarea:h,borderRadius:A,iconSize:"16px",groupLabelColor:S,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:a,placeholderColor:E,placeholderColorDisabled:I,color:o,colorDisabled:s,colorFocus:o,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Ve(a,{alpha:.2})}`,loadingColor:a,loadingColorWarning:u,borderWarning:`1px solid ${u}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:o,borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 0 2px ${Ve(u,{alpha:.2})}`,caretColorWarning:u,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:o,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${Ve(d,{alpha:.2})}`,caretColorError:d,clearColor:_,clearColorHover:B,clearColorPressed:T,iconColor:R,iconColorDisabled:D,iconColorHover:k,iconColorPressed:F,suffixTextColor:t})},Z1e={name:"Input",common:Dt,self:q1e};var hA=Z1e;const NK="n-input";function J1e(e){let t=0;for(const r of e)t++;return t}function rb(e){return e===""||e==null}function exe(e){const t=X(null);function r(){const{value:i}=e;if(!(i!=null&&i.focus)){a();return}const{selectionStart:o,selectionEnd:s,value:l}=i;if(o==null||s==null){a();return}t.value={start:o,end:s,beforeText:l.slice(0,o),afterText:l.slice(s)}}function n(){var i;const{value:o}=t,{value:s}=e;if(!o||!s)return;const{value:l}=s,{start:u,beforeText:c,afterText:d}=o;let f=l.length;if(l.endsWith(d))f=l.length-d.length;else if(l.startsWith(c))f=c.length;else{const A=c[u-1],h=l.indexOf(A,u-1);h!==-1&&(f=h+1)}(i=s.setSelectionRange)===null||i===void 0||i.call(s,f,f)}function a(){t.value=null}return mt(e,a),{recordCursor:r,restoreCursor:n}}var C3=ge({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:r,maxlengthRef:n,mergedClsPrefixRef:a}=We(NK),i=L(()=>{const{value:o}=r;return o===null||Array.isArray(o)?0:J1e(o)});return()=>{const{value:o}=n,{value:s}=r;return C("span",{class:`${a.value}-input-word-count`},k0(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[o===void 0?i.value:`${i.value} / ${o}`]))}}}),txe=M("input",`
|
|
max-width: 100%;
|
|
cursor: text;
|
|
line-height: 1.5;
|
|
z-index: auto;
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
display: inline-flex;
|
|
border-radius: var(--n-border-radius);
|
|
background-color: var(--n-color);
|
|
transition: background-color .3s var(--n-bezier);
|
|
font-size: var(--n-font-size);
|
|
--n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
|
|
`,[G("input, textarea",`
|
|
overflow: hidden;
|
|
flex-grow: 1;
|
|
position: relative;
|
|
`),G("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
|
|
box-sizing: border-box;
|
|
font-size: inherit;
|
|
line-height: 1.5;
|
|
font-family: inherit;
|
|
border: none;
|
|
outline: none;
|
|
background-color: #0000;
|
|
text-align: inherit;
|
|
transition:
|
|
-webkit-text-fill-color .3s var(--n-bezier),
|
|
caret-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
text-decoration-color .3s var(--n-bezier);
|
|
`),G("input-el, textarea-el",`
|
|
-webkit-appearance: none;
|
|
scrollbar-width: none;
|
|
width: 100%;
|
|
min-width: 0;
|
|
text-decoration-color: var(--n-text-decoration-color);
|
|
color: var(--n-text-color);
|
|
caret-color: var(--n-caret-color);
|
|
background-color: transparent;
|
|
`,[N("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|
width: 0;
|
|
height: 0;
|
|
display: none;
|
|
`),N("&::placeholder",`
|
|
color: #0000;
|
|
-webkit-text-fill-color: transparent !important;
|
|
`),N("&:-webkit-autofill ~",[G("placeholder","display: none;")])]),j("round",[Nt("textarea","border-radius: calc(var(--n-height) / 2);")]),G("placeholder",`
|
|
pointer-events: none;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
overflow: hidden;
|
|
color: var(--n-placeholder-color);
|
|
`,[N("span",`
|
|
width: 100%;
|
|
display: inline-block;
|
|
`)]),j("textarea",[G("placeholder","overflow: visible;")]),Nt("autosize","width: 100%;"),j("autosize",[G("textarea-el, input-el",`
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
`)]),M("input-wrapper",`
|
|
overflow: hidden;
|
|
display: inline-flex;
|
|
flex-grow: 1;
|
|
position: relative;
|
|
padding-left: var(--n-padding-left);
|
|
padding-right: var(--n-padding-right);
|
|
`),G("input-mirror",`
|
|
padding: 0;
|
|
height: var(--n-height);
|
|
overflow: hidden;
|
|
visibility: hidden;
|
|
position: static;
|
|
white-space: nowrap;
|
|
pointer-events: none;
|
|
`),G("input-el",`
|
|
padding: 0;
|
|
height: var(--n-height);
|
|
line-height: var(--n-height);
|
|
`,[N("+",[G("placeholder",`
|
|
display: flex;
|
|
align-items: center;
|
|
`)])]),Nt("textarea",[G("placeholder","white-space: nowrap;")]),G("eye",`
|
|
transition: color .3s var(--n-bezier);
|
|
`),j("textarea","width: 100%;",[M("input-word-count",`
|
|
position: absolute;
|
|
right: var(--n-padding-right);
|
|
bottom: var(--n-padding-vertical);
|
|
`),j("resizable",[M("input-wrapper",`
|
|
resize: vertical;
|
|
min-height: var(--n-height);
|
|
`)]),G("textarea-el, textarea-mirror, placeholder",`
|
|
height: 100%;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
padding-top: var(--n-padding-vertical);
|
|
padding-bottom: var(--n-padding-vertical);
|
|
word-break: break-word;
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
box-sizing: border-box;
|
|
line-height: var(--n-line-height-textarea);
|
|
margin: 0;
|
|
resize: none;
|
|
white-space: pre-wrap;
|
|
`),G("textarea-mirror",`
|
|
width: 100%;
|
|
pointer-events: none;
|
|
overflow: hidden;
|
|
visibility: hidden;
|
|
position: static;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: break-word;
|
|
`)]),j("pair",[G("input-el, placeholder","text-align: center;"),G("separator",`
|
|
display: flex;
|
|
align-items: center;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
white-space: nowrap;
|
|
`,[M("icon",`
|
|
color: var(--n-icon-color);
|
|
`),M("base-icon",`
|
|
color: var(--n-icon-color);
|
|
`)])]),j("disabled",`
|
|
cursor: not-allowed;
|
|
background-color: var(--n-color-disabled);
|
|
`,[G("border","border: var(--n-border-disabled);"),G("input-el, textarea-el",`
|
|
cursor: not-allowed;
|
|
color: var(--n-text-color-disabled);
|
|
text-decoration-color: var(--n-text-color-disabled);
|
|
`),G("placeholder","color: var(--n-placeholder-color-disabled);"),G("separator","color: var(--n-text-color-disabled);",[M("icon",`
|
|
color: var(--n-icon-color-disabled);
|
|
`),M("base-icon",`
|
|
color: var(--n-icon-color-disabled);
|
|
`)]),M("input-word-count",`
|
|
color: var(--n-count-text-color-disabled);
|
|
`),G("suffix, prefix","color: var(--n-text-color-disabled);",[M("icon",`
|
|
color: var(--n-icon-color-disabled);
|
|
`),M("internal-icon",`
|
|
color: var(--n-icon-color-disabled);
|
|
`)])]),Nt("disabled",[G("eye",`
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--n-icon-color);
|
|
cursor: pointer;
|
|
`,[N("&:hover",`
|
|
color: var(--n-icon-color-hover);
|
|
`),N("&:active",`
|
|
color: var(--n-icon-color-pressed);
|
|
`)]),N("&:hover",[G("state-border","border: var(--n-border-hover);")]),j("focus","background-color: var(--n-color-focus);",[G("state-border",`
|
|
border: var(--n-border-focus);
|
|
box-shadow: var(--n-box-shadow-focus);
|
|
`)])]),G("border, state-border",`
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
border: var(--n-border);
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`),G("state-border",`
|
|
border-color: #0000;
|
|
z-index: 1;
|
|
`),G("prefix","margin-right: 4px;"),G("suffix",`
|
|
margin-left: 4px;
|
|
`),G("suffix, prefix",`
|
|
transition: color .3s var(--n-bezier);
|
|
flex-wrap: nowrap;
|
|
flex-shrink: 0;
|
|
line-height: var(--n-height);
|
|
white-space: nowrap;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--n-suffix-text-color);
|
|
`,[M("base-loading",`
|
|
font-size: var(--n-icon-size);
|
|
margin: 0 2px;
|
|
color: var(--n-loading-color);
|
|
`),M("base-clear",`
|
|
font-size: var(--n-icon-size);
|
|
`,[G("placeholder",[M("base-icon",`
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-icon-color);
|
|
font-size: var(--n-icon-size);
|
|
`)])]),N(">",[M("icon",`
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-icon-color);
|
|
font-size: var(--n-icon-size);
|
|
`)]),M("base-icon",`
|
|
font-size: var(--n-icon-size);
|
|
`)]),M("input-word-count",`
|
|
pointer-events: none;
|
|
line-height: 1.5;
|
|
font-size: .85em;
|
|
color: var(--n-count-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
margin-left: 4px;
|
|
font-variant: tabular-nums;
|
|
`),["warning","error"].map(e=>j(`${e}-status`,[Nt("disabled",[M("base-loading",`
|
|
color: var(--n-loading-color-${e})
|
|
`),G("input-el, textarea-el",`
|
|
caret-color: var(--n-caret-color-${e});
|
|
`),G("state-border",`
|
|
border: var(--n-border-${e});
|
|
`),N("&:hover",[G("state-border",`
|
|
border: var(--n-border-hover-${e});
|
|
`)]),N("&:focus",`
|
|
background-color: var(--n-color-focus-${e});
|
|
`,[G("state-border",`
|
|
box-shadow: var(--n-box-shadow-focus-${e});
|
|
border: var(--n-border-focus-${e});
|
|
`)]),j("focus",`
|
|
background-color: var(--n-color-focus-${e});
|
|
`,[G("state-border",`
|
|
box-shadow: var(--n-box-shadow-focus-${e});
|
|
border: var(--n-border-focus-${e});
|
|
`)])])]))]);const rxe=M("input",[j("disabled",[G("input-el, textarea-el",`
|
|
-webkit-text-fill-color: var(--n-text-color-disabled);
|
|
`)])]),nxe=Object.assign(Object.assign({},Fe.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean});var os=ge({name:"Input",props:nxe,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:n,mergedRtlRef:a}=et(e),i=Fe("Input","-input",txe,hA,e,t);HK&&ol("-input-safari",rxe,t);const o=X(null),s=X(null),l=X(null),u=X(null),c=X(null),d=X(null),f=X(null),A=exe(f),h=X(null),{localeRef:v}=Io("Input"),p=X(e.defaultValue),g=Ie(e,"value"),m=Sr(g,p),y=bi(e),{mergedSizeRef:b,mergedDisabledRef:w,mergedStatusRef:x}=y,S=X(!1),_=X(!1),B=X(!1),T=X(!1);let E=null;const I=L(()=>{const{placeholder:Ae,pair:Re}=e;return Re?Array.isArray(Ae)?Ae:Ae===void 0?["",""]:[Ae,Ae]:Ae===void 0?[v.value.placeholder]:[Ae]}),R=L(()=>{const{value:Ae}=B,{value:Re}=m,{value:ot}=I;return!Ae&&(rb(Re)||Array.isArray(Re)&&rb(Re[0]))&&ot[0]}),D=L(()=>{const{value:Ae}=B,{value:Re}=m,{value:ot}=I;return!Ae&&ot[1]&&(rb(Re)||Array.isArray(Re)&&rb(Re[1]))}),k=Rt(()=>e.internalForceFocus||S.value),F=Rt(()=>{if(w.value||e.readonly||!e.clearable||!k.value&&!_.value)return!1;const{value:Ae}=m,{value:Re}=k;return e.pair?!!(Array.isArray(Ae)&&(Ae[0]||Ae[1]))&&(_.value||Re):!!Ae&&(_.value||Re)}),P=L(()=>{const{showPasswordOn:Ae}=e;if(Ae)return Ae;if(e.showPasswordToggle)return"click"}),O=X(!1),H=L(()=>{const{textDecoration:Ae}=e;return Ae?Array.isArray(Ae)?Ae.map(Re=>({textDecoration:Re})):[{textDecoration:Ae}]:["",""]}),V=X(void 0),W=()=>{var Ae,Re;if(e.type==="textarea"){const{autosize:ot}=e;if(ot&&(V.value=(Re=(Ae=h.value)===null||Ae===void 0?void 0:Ae.$el)===null||Re===void 0?void 0:Re.offsetWidth),!s.value||typeof ot=="boolean")return;const{paddingTop:Ht,paddingBottom:_e,lineHeight:Oe}=window.getComputedStyle(s.value),rt=Number(Ht.slice(0,-2)),ht=Number(_e.slice(0,-2)),Ft=Number(Oe.slice(0,-2)),{value:Hr}=l;if(!Hr)return;if(ot.minRows){const Pr=Math.max(ot.minRows,1),Be=`${rt+ht+Ft*Pr}px`;Hr.style.minHeight=Be}if(ot.maxRows){const Pr=`${rt+ht+Ft*ot.maxRows}px`;Hr.style.maxHeight=Pr}}},Z=L(()=>{const{maxlength:Ae}=e;return Ae===void 0?void 0:Number(Ae)});Ar(()=>{const{value:Ae}=m;Array.isArray(Ae)||Le(Ae)});const ee=Ba().proxy;function ae(Ae){const{onUpdateValue:Re,"onUpdate:value":ot,onInput:Ht}=e,{nTriggerFormInput:_e}=y;Re&&Ee(Re,Ae),ot&&Ee(ot,Ae),Ht&&Ee(Ht,Ae),p.value=Ae,_e()}function ne(Ae){const{onChange:Re}=e,{nTriggerFormChange:ot}=y;Re&&Ee(Re,Ae),p.value=Ae,ot()}function le(Ae){const{onBlur:Re}=e,{nTriggerFormBlur:ot}=y;Re&&Ee(Re,Ae),ot()}function se(Ae){const{onFocus:Re}=e,{nTriggerFormFocus:ot}=y;Re&&Ee(Re,Ae),ot()}function ce(Ae){const{onClear:Re}=e;Re&&Ee(Re,Ae)}function ye(Ae){const{onInputBlur:Re}=e;Re&&Ee(Re,Ae)}function fe(Ae){const{onInputFocus:Re}=e;Re&&Ee(Re,Ae)}function Q(){const{onDeactivate:Ae}=e;Ae&&Ee(Ae)}function J(){const{onActivate:Ae}=e;Ae&&Ee(Ae)}function U(Ae){const{onClick:Re}=e;Re&&Ee(Re,Ae)}function K(Ae){const{onWrapperFocus:Re}=e;Re&&Ee(Re,Ae)}function q(Ae){const{onWrapperBlur:Re}=e;Re&&Ee(Re,Ae)}function ie(){B.value=!0}function $(Ae){B.value=!1,Ae.target===d.value?re(Ae,1):re(Ae,0)}function re(Ae,Re=0,ot="input"){const Ht=Ae.target.value;if(Le(Ht),Ae instanceof InputEvent&&!Ae.isComposing&&(B.value=!1),e.type==="textarea"){const{value:Oe}=h;Oe&&Oe.syncUnifiedContainer()}if(E=Ht,B.value)return;A.recordCursor();const _e=ve(Ht);if(_e)if(!e.pair)ot==="input"?ae(Ht):ne(Ht);else{let{value:Oe}=m;Array.isArray(Oe)?Oe=[Oe[0],Oe[1]]:Oe=["",""],Oe[Re]=Ht,ot==="input"?ae(Oe):ne(Oe)}ee.$forceUpdate(),_e||ar(A.restoreCursor)}function ve(Ae){const{allowInput:Re}=e;return typeof Re=="function"?Re(Ae):!0}function he(Ae){ye(Ae),Ae.relatedTarget===o.value&&Q(),Ae.relatedTarget!==null&&(Ae.relatedTarget===c.value||Ae.relatedTarget===d.value||Ae.relatedTarget===s.value)||(T.value=!1),pe(Ae,"blur"),f.value=null}function oe(Ae,Re){fe(Ae),S.value=!0,T.value=!0,J(),pe(Ae,"focus"),Re===0?f.value=c.value:Re===1?f.value=d.value:Re===2&&(f.value=s.value)}function Y(Ae){e.passivelyActivated&&(q(Ae),pe(Ae,"blur"))}function te(Ae){e.passivelyActivated&&(S.value=!0,K(Ae),pe(Ae,"focus"))}function pe(Ae,Re){Ae.relatedTarget!==null&&(Ae.relatedTarget===c.value||Ae.relatedTarget===d.value||Ae.relatedTarget===s.value||Ae.relatedTarget===o.value)||(Re==="focus"?(se(Ae),S.value=!0):Re==="blur"&&(le(Ae),S.value=!1))}function de(Ae,Re){re(Ae,Re,"change")}function we(Ae){U(Ae)}function De(Ae){ce(Ae),e.pair?(ae(["",""]),ne(["",""])):(ae(""),ne(""))}function ze(Ae){const{onMousedown:Re}=e;Re&&Re(Ae);const{tagName:ot}=Ae.target;if(ot!=="INPUT"&&ot!=="TEXTAREA"){if(e.resizable){const{value:Ht}=o;if(Ht){const{left:_e,top:Oe,width:rt,height:ht}=Ht.getBoundingClientRect(),Ft=14;if(_e+rt-Ft<Ae.clientX&&Ae.clientX<_e+rt&&Oe+ht-Ft<Ae.clientY&&Ae.clientY<Oe+ht)return}}Ae.preventDefault(),S.value||ue()}}function Xe(){var Ae;_.value=!0,e.type==="textarea"&&((Ae=h.value)===null||Ae===void 0||Ae.handleMouseEnterWrapper())}function ke(){var Ae;_.value=!1,e.type==="textarea"&&((Ae=h.value)===null||Ae===void 0||Ae.handleMouseLeaveWrapper())}function Ge(){w.value||P.value==="click"&&(O.value=!O.value)}function it(Ae){if(w.value)return;Ae.preventDefault();const Re=Ht=>{Ht.preventDefault(),jt("mouseup",document,Re)};if(Zt("mouseup",document,Re),P.value!=="mousedown")return;O.value=!0;const ot=()=>{O.value=!1,jt("mouseup",document,ot)};Zt("mouseup",document,ot)}function ut(Ae){var Re;switch((Re=e.onKeydown)===null||Re===void 0||Re.call(e,Ae),Ae.key){case"Escape":xt();break;case"Enter":Ke(Ae);break}}function Ke(Ae){var Re,ot;if(e.passivelyActivated){const{value:Ht}=T;if(Ht){e.internalDeactivateOnEnter&&xt();return}Ae.preventDefault(),e.type==="textarea"?(Re=s.value)===null||Re===void 0||Re.focus():(ot=c.value)===null||ot===void 0||ot.focus()}}function xt(){e.passivelyActivated&&(T.value=!1,ar(()=>{var Ae;(Ae=o.value)===null||Ae===void 0||Ae.focus()}))}function ue(){var Ae,Re,ot;w.value||(e.passivelyActivated?(Ae=o.value)===null||Ae===void 0||Ae.focus():((Re=s.value)===null||Re===void 0||Re.focus(),(ot=c.value)===null||ot===void 0||ot.focus()))}function Te(){var Ae;!((Ae=o.value)===null||Ae===void 0)&&Ae.contains(document.activeElement)&&document.activeElement.blur()}function He(){var Ae,Re;(Ae=s.value)===null||Ae===void 0||Ae.select(),(Re=c.value)===null||Re===void 0||Re.select()}function Je(){w.value||(s.value?s.value.focus():c.value&&c.value.focus())}function nt(){const{value:Ae}=o;(Ae==null?void 0:Ae.contains(document.activeElement))&&Ae!==document.activeElement&&xt()}function be(Ae){if(e.type==="textarea"){const{value:Re}=s;Re==null||Re.scrollTo(Ae)}else{const{value:Re}=c;Re==null||Re.scrollTo(Ae)}}function Le(Ae){const{type:Re,pair:ot,autosize:Ht}=e;if(!ot&&Ht)if(Re==="textarea"){const{value:_e}=l;_e&&(_e.textContent=(Ae!=null?Ae:"")+`\r
|
|
`)}else{const{value:_e}=u;_e&&(Ae?_e.textContent=Ae:_e.innerHTML=" ")}}function je(){W()}const ft=X({top:"0"});function Ce(Ae){var Re;const{scrollTop:ot}=Ae.target;ft.value.top=`${-ot}px`,(Re=h.value)===null||Re===void 0||Re.syncUnifiedContainer()}let Qe=null;yr(()=>{const{autosize:Ae,type:Re}=e;Ae&&Re==="textarea"?Qe=mt(m,ot=>{!Array.isArray(ot)&&ot!==E&&Le(ot)}):Qe==null||Qe()});let me=null;yr(()=>{e.type==="textarea"?me=mt(m,Ae=>{var Re;!Array.isArray(Ae)&&Ae!==E&&((Re=h.value)===null||Re===void 0||Re.syncUnifiedContainer())}):me==null||me()}),Ct(NK,{mergedValueRef:m,maxlengthRef:Z,mergedClsPrefixRef:t});const Ne={wrapperElRef:o,inputElRef:c,textareaElRef:s,isCompositing:B,focus:ue,blur:Te,select:He,deactivate:nt,activate:Je,scrollTo:be},lt=tn("Input",a,t),Tt=L(()=>{const{value:Ae}=b,{common:{cubicBezierEaseInOut:Re},self:{color:ot,borderRadius:Ht,textColor:_e,caretColor:Oe,caretColorError:rt,caretColorWarning:ht,textDecorationColor:Ft,border:Hr,borderDisabled:Pr,borderHover:Be,borderFocus:qe,placeholderColor:vt,placeholderColorDisabled:Jt,lineHeightTextarea:Lr,colorDisabled:br,colorFocus:Lo,textColorDisabled:Br,boxShadowFocus:dn,iconSize:hl,colorFocusWarning:hu,boxShadowFocusWarning:vu,borderWarning:pu,borderFocusWarning:cd,borderHoverWarning:K_,colorFocusError:j_,boxShadowFocusError:Y_,borderError:X_,borderFocusError:q_,borderHoverError:Z_,clearSize:J_,clearColor:eB,clearColorHover:Pse,clearColorPressed:Lse,iconColor:Ose,iconColorDisabled:$se,suffixTextColor:Use,countTextColor:Hse,countTextColorDisabled:zse,iconColorHover:Nse,iconColorPressed:Qse,loadingColor:Vse,loadingColorError:Wse,loadingColorWarning:Gse,[Se("padding",Ae)]:Kse,[Se("fontSize",Ae)]:jse,[Se("height",Ae)]:Yse}}=i.value,{left:Xse,right:qse}=uc(Kse);return{"--n-bezier":Re,"--n-count-text-color":Hse,"--n-count-text-color-disabled":zse,"--n-color":ot,"--n-font-size":jse,"--n-border-radius":Ht,"--n-height":Yse,"--n-padding-left":Xse,"--n-padding-right":qse,"--n-text-color":_e,"--n-caret-color":Oe,"--n-text-decoration-color":Ft,"--n-border":Hr,"--n-border-disabled":Pr,"--n-border-hover":Be,"--n-border-focus":qe,"--n-placeholder-color":vt,"--n-placeholder-color-disabled":Jt,"--n-icon-size":hl,"--n-line-height-textarea":Lr,"--n-color-disabled":br,"--n-color-focus":Lo,"--n-text-color-disabled":Br,"--n-box-shadow-focus":dn,"--n-loading-color":Vse,"--n-caret-color-warning":ht,"--n-color-focus-warning":hu,"--n-box-shadow-focus-warning":vu,"--n-border-warning":pu,"--n-border-focus-warning":cd,"--n-border-hover-warning":K_,"--n-loading-color-warning":Gse,"--n-caret-color-error":rt,"--n-color-focus-error":j_,"--n-box-shadow-focus-error":Y_,"--n-border-error":X_,"--n-border-focus-error":q_,"--n-border-hover-error":Z_,"--n-loading-color-error":Wse,"--n-clear-color":eB,"--n-clear-size":J_,"--n-clear-color-hover":Pse,"--n-clear-color-pressed":Lse,"--n-icon-color":Ose,"--n-icon-color-hover":Nse,"--n-icon-color-pressed":Qse,"--n-icon-color-disabled":$se,"--n-suffix-text-color":Use}}),dt=n?_t("input",L(()=>{const{value:Ae}=b;return Ae[0]}),Tt,e):void 0;return Object.assign(Object.assign({},Ne),{wrapperElRef:o,inputElRef:c,inputMirrorElRef:u,inputEl2Ref:d,textareaElRef:s,textareaMirrorElRef:l,textareaScrollbarInstRef:h,rtlEnabled:lt,uncontrolledValue:p,mergedValue:m,passwordVisible:O,mergedPlaceholder:I,showPlaceholder1:R,showPlaceholder2:D,mergedFocus:k,isComposing:B,activated:T,showClearButton:F,mergedSize:b,mergedDisabled:w,textDecorationStyle:H,mergedClsPrefix:t,mergedBordered:r,mergedShowPasswordOn:P,placeholderStyle:ft,mergedStatus:x,textAreaScrollContainerWidth:V,handleTextAreaScroll:Ce,handleCompositionStart:ie,handleCompositionEnd:$,handleInput:re,handleInputBlur:he,handleInputFocus:oe,handleWrapperBlur:Y,handleWrapperFocus:te,handleMouseEnter:Xe,handleMouseLeave:ke,handleMouseDown:ze,handleChange:de,handleClick:we,handleClear:De,handlePasswordToggleClick:Ge,handlePasswordToggleMousedown:it,handleWrapperKeydown:ut,handleTextAreaMirrorResize:je,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:n?void 0:Tt,themeClass:dt==null?void 0:dt.themeClass,onRender:dt==null?void 0:dt.onRender})},render(){var e,t;const{mergedClsPrefix:r,mergedStatus:n,themeClass:a,type:i,onRender:o}=this,s=this.$slots;return o==null||o(),C("div",{ref:"wrapperElRef",class:[`${r}-input`,a,n&&`${r}-input--${n}-status`,{[`${r}-input--rtl`]:this.rtlEnabled,[`${r}-input--disabled`]:this.mergedDisabled,[`${r}-input--textarea`]:i==="textarea",[`${r}-input--resizable`]:this.resizable&&!this.autosize,[`${r}-input--autosize`]:this.autosize,[`${r}-input--round`]:this.round&&i!=="textarea",[`${r}-input--pair`]:this.pair,[`${r}-input--focus`]:this.mergedFocus,[`${r}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},C("div",{class:`${r}-input-wrapper`},or(s.prefix,l=>l&&C("div",{class:`${r}-input__prefix`},l)),i==="textarea"?C(Un,{ref:"textareaScrollbarInstRef",class:`${r}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var l,u;const{textAreaScrollContainerWidth:c}=this,d={width:this.autosize&&c&&`${c}px`};return C(rr,null,C("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${r}-input__textarea-el`,(l=this.inputProps)===null||l===void 0?void 0:l.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:this.maxlength,minlength:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(u=this.inputProps)===null||u===void 0?void 0:u.style,d],onBlur:this.handleInputBlur,onFocus:f=>this.handleInputFocus(f,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?C("div",{class:`${r}-input__placeholder`,style:[this.placeholderStyle,d],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?C(bo,{onResize:this.handleTextAreaMirrorResize},{default:()=>C("div",{ref:"textareaMirrorElRef",class:`${r}-input__textarea-mirror`,key:"mirror"})}):null)}}):C("div",{class:`${r}-input__input`},C("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${r}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:this.maxlength,minlength:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:l=>this.handleInputFocus(l,0),onInput:l=>this.handleInput(l,0),onChange:l=>this.handleChange(l,0)})),this.showPlaceholder1?C("div",{class:`${r}-input__placeholder`},C("span",null,this.mergedPlaceholder[0])):null,this.autosize?C("div",{class:`${r}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&or(s.suffix,l=>l||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?C("div",{class:`${r}-input__suffix`},[or(s["clear-icon-placeholder"],u=>(this.clearable||u)&&C(WI,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>u,icon:()=>{var c,d;return(d=(c=this.$slots)["clear-icon"])===null||d===void 0?void 0:d.call(c)}})),this.internalLoadingBeforeSuffix?null:l,this.loading!==void 0?C(MK,{clsPrefix:r,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?l:null,this.showCount&&this.type!=="textarea"?C(C3,null,{default:u=>{var c;return(c=s.count)===null||c===void 0?void 0:c.call(s,u)}}):null,this.mergedShowPasswordOn&&this.type==="password"?C("div",{class:`${r}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Wt(s["password-visible-icon"],()=>[C($t,{clsPrefix:r},{default:()=>C(hK,null)})]):Wt(s["password-invisible-icon"],()=>[C($t,{clsPrefix:r},{default:()=>C(Yye,null)})])):null]):null)),this.pair?C("span",{class:`${r}-input__separator`},Wt(s.separator,()=>[this.separator])):null,this.pair?C("div",{class:`${r}-input-wrapper`},C("div",{class:`${r}-input__input`},C("input",{ref:"inputEl2Ref",type:this.type,class:`${r}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:this.maxlength,minlength:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:l=>this.handleInputFocus(l,1),onInput:l=>this.handleInput(l,1),onChange:l=>this.handleChange(l,1)}),this.showPlaceholder2?C("div",{class:`${r}-input__placeholder`},C("span",null,this.mergedPlaceholder[1])):null),or(s.suffix,l=>(this.clearable||l)&&C("div",{class:`${r}-input__suffix`},[this.clearable&&C(WI,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var u;return(u=s["clear-icon"])===null||u===void 0?void 0:u.call(s)},placeholder:()=>{var u;return(u=s["clear-icon-placeholder"])===null||u===void 0?void 0:u.call(s)}}),l]))):null,this.mergedBordered?C("div",{class:`${r}-input__border`}):null,this.mergedBordered?C("div",{class:`${r}-input__state-border`}):null,this.showCount&&i==="textarea"?C(C3,null,{default:l=>{var u;const{renderCount:c}=this;return c?c(l):(u=s.count)===null||u===void 0?void 0:u.call(s,l)}}):null)}}),axe=M("input-group",`
|
|
display: inline-flex;
|
|
width: 100%;
|
|
flex-wrap: nowrap;
|
|
vertical-align: bottom;
|
|
`,[N(">",[M("input",[N("&:not(:last-child)",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`),N("&:not(:first-child)",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
margin-left: -1px!important;
|
|
`)]),M("button",[N("&:not(:last-child)",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`,[G("state-border, border",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`)]),N("&:not(:first-child)",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`,[G("state-border, border",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`)])]),N("*",[N("&:not(:last-child)",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`,[N(">",[M("input",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`),M("base-selection",[M("base-selection-label",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`),M("base-selection-tags",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`),G("box-shadow, border, state-border",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`)])])]),N("&:not(:first-child)",`
|
|
margin-left: -1px!important;
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`,[N(">",[M("input",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`),M("base-selection",[M("base-selection-label",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`),M("base-selection-tags",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`),G("box-shadow, border, state-border",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`)])])])])])]);const ixe={};var QK=ge({name:"InputGroup",props:ixe,setup(e){const{mergedClsPrefixRef:t}=et(e);return ol("-input-group",axe,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return C("div",{class:`${e}-input-group`},this.$slots)}}),oxe=M("input-group-label",`
|
|
position: relative;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
box-sizing: border-box;
|
|
padding: 0 12px;
|
|
display: inline-block;
|
|
border-radius: var(--n-border-radius);
|
|
background-color: var(--n-group-label-color);
|
|
color: var(--n-group-label-text-color);
|
|
font-size: var(--n-font-size);
|
|
line-height: var(--n-height);
|
|
height: var(--n-height);
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier);
|
|
`,[G("border",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
border-radius: inherit;
|
|
border: var(--n-group-label-border);
|
|
transition: border-color .3s var(--n-bezier);
|
|
`)]);const sxe=Object.assign(Object.assign({},Fe.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}});var lxe=ge({name:"InputGroupLabel",props:sxe,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:n}=et(e),a=Fe("Input","-input-group-label",oxe,hA,e,r),i=L(()=>{const{size:s}=e,{common:{cubicBezierEaseInOut:l},self:{groupLabelColor:u,borderRadius:c,groupLabelTextColor:d,lineHeight:f,groupLabelBorder:A,[Se("fontSize",s)]:h,[Se("height",s)]:v}}=a.value;return{"--n-bezier":l,"--n-group-label-color":u,"--n-group-label-border":A,"--n-border-radius":c,"--n-group-label-text-color":d,"--n-font-size":h,"--n-line-height":f,"--n-height":v}}),o=n?_t("input-group-label",L(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:r,mergedBordered:t,cssVars:n?void 0:i,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){var e,t,r;const{mergedClsPrefix:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),C("div",{class:[`${n}-input-group-label`,this.themeClass],style:this.cssVars},(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t),this.mergedBordered?C("div",{class:`${n}-input-group-label__border`}):null)}});function uxe(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const cxe={name:"AutoComplete",common:st,peers:{InternalSelectMenu:qm,Input:Ro},self:uxe};var dxe=cxe;const e0=!1,fxe=(e={})=>{var t;const{root:r=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof r=="string"?document.querySelector(r):r)||document.documentElement})}},TB=new WeakMap,EB=new WeakMap,IB=new WeakMap,VK=(e,t,r)=>{if(!e)return()=>{};const n=fxe(t),{root:a}=n.options;let i;const o=TB.get(a);o?i=o:(i=new Map,TB.set(a,i));let s,l;i.has(n.hash)?(l=i.get(n.hash),l[1].has(e)||(s=l[0],l[1].add(e),s.observe(e))):(s=new IntersectionObserver(d=>{d.forEach(f=>{if(f.isIntersecting){const A=EB.get(f.target),h=IB.get(f.target);A&&A(),h&&(h.value=!0)}})},n.options),s.observe(e),l=[s,new Set([e])],i.set(n.hash,l));let u=!1;const c=()=>{u||(EB.delete(e),IB.delete(e),u=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&i.delete(n.hash),i.size||TB.delete(a))};return EB.set(e,c),IB.set(e,r),c},WK=e=>{const{borderRadius:t,avatarColor:r,cardColor:n,fontSize:a,heightTiny:i,heightSmall:o,heightMedium:s,heightLarge:l,heightHuge:u,modalColor:c,popoverColor:d}=e;return{borderRadius:t,fontSize:a,border:`2px solid ${n}`,heightTiny:i,heightSmall:o,heightMedium:s,heightLarge:l,heightHuge:u,color:Et(n,r),colorModal:Et(c,r),colorPopover:Et(d,r)}},Axe={name:"Avatar",common:Dt,self:WK};var hxe=Axe;const vxe={name:"Avatar",common:st,self:WK};var GK=vxe;const pxe="n-avatar-group";var gxe=M("avatar",`
|
|
width: var(--n-merged-size);
|
|
height: var(--n-merged-size);
|
|
color: #FFF;
|
|
font-size: var(--n-font-size);
|
|
display: inline-flex;
|
|
position: relative;
|
|
overflow: hidden;
|
|
text-align: center;
|
|
border: var(--n-border);
|
|
border-radius: var(--n-border-radius);
|
|
--n-merged-color: var(--n-color);
|
|
background-color: var(--n-merged-color);
|
|
transition:
|
|
border-color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`,[su(N("&","--n-merged-color: var(--n-color-modal);")),Kc(N("&","--n-merged-color: var(--n-color-popover);")),N("img",`
|
|
width: 100%;
|
|
height: 100%;
|
|
`),G("text",`
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
`),M("icon",`
|
|
vertical-align: bottom;
|
|
font-size: calc(var(--n-merged-size) - 6px);
|
|
`),G("text","line-height: 1.25")]);const mxe=Object.assign(Object.assign({},Fe.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,color:String});var yxe=ge({name:"Avatar",props:mxe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=X(!1);let a=null;const i=X(null),o=X(null),s=()=>{const{value:y}=i;if(y&&(a===null||a!==y.innerHTML)){a=y.innerHTML;const{value:b}=o;if(b){const{offsetWidth:w,offsetHeight:x}=b,{offsetWidth:S,offsetHeight:_}=y,B=.9,T=Math.min(w/S*B,x/_*B,1);y.style.transform=`translateX(-50%) translateY(-50%) scale(${T})`}}},l=We(pxe,null),u=L(()=>{const{size:y}=e;if(y)return y;const{size:b}=l||{};return b||"medium"}),c=Fe("Avatar","-avatar",gxe,hxe,e,t),d=We(FK,null),f=L(()=>{if(l)return!0;const{round:y,circle:b}=e;return y!==void 0||b!==void 0?y||b:d?d.roundRef.value:!1}),A=L(()=>l?!0:e.bordered||!1),h=y=>{if(!g.value)return;n.value=!0;const{onError:b}=e;b&&b(y)};mt(()=>e.src,()=>n.value=!1);const v=L(()=>{const y=u.value,b=f.value,w=A.value,{color:x}=e,{self:{borderRadius:S,fontSize:_,color:B,border:T,colorModal:E,colorPopover:I},common:{cubicBezierEaseInOut:R}}=c.value;let D;return typeof y=="number"?D=`${y}px`:D=c.value.self[Se("height",y)],{"--n-font-size":_,"--n-border":w?T:"none","--n-border-radius":b?"50%":S,"--n-color":x||B,"--n-color-modal":x||E,"--n-color-popover":x||I,"--n-bezier":R,"--n-merged-size":`var(--n-avatar-size-override, ${D})`}}),p=r?_t("avatar",L(()=>{const y=u.value,b=f.value,w=A.value,{color:x}=e;let S="";return y&&(typeof y=="number"?S+=`a${y}`:S+=y[0]),b&&(S+="b"),w&&(S+="c"),x&&(S+=uv(x)),S}),v,e):void 0,g=X(!e.lazy);Ar(()=>{if(e0)return;let y;const b=yr(()=>{y==null||y(),y=void 0,e.lazy&&(y=VK(o.value,e.intersectionObserverOptions,g))});kr(()=>{b(),y==null||y()})});const m=X(!e.lazy);return{textRef:i,selfRef:o,mergedRoundRef:f,mergedClsPrefix:t,fitTextTransform:s,cssVars:r?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender,hasLoadError:n,handleError:h,shouldStartLoading:g,loaded:m,mergedOnLoad:y=>{const{onLoad:b}=e;b==null||b(y),m.value=!0}}},render(){var e,t;const{$slots:r,src:n,mergedClsPrefix:a,lazy:i,onRender:o,mergedOnLoad:s,shouldStartLoading:l,loaded:u,hasLoadError:c}=this;o==null||o();let d;const f=!u&&!c&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?d=this.renderFallback?this.renderFallback():Wt(r.fallback,()=>[C("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):d=or(r.default,A=>{if(A)return C(bo,{onResize:this.fitTextTransform},{default:()=>C("span",{ref:"textRef",class:`${a}-avatar__text`},A)});if(n)return C("img",{loading:e0&&i?"lazy":"eager",src:e0||l||u?n:void 0,onLoad:s,"data-image-src":n,onError:this.handleError,style:[{objectFit:this.objectFit},f?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]})}),C("span",{ref:"selfRef",class:[`${a}-avatar`,this.themeClass],style:this.cssVars},d,i&&f)}});const bxe=()=>({gap:"-12px"}),xxe={name:"AvatarGroup",common:st,peers:{Avatar:GK},self:bxe};var wxe=xxe,KK={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"};const Cxe={name:"BackTop",common:st,self(e){const{popoverColor:t,textColor2:r,primaryColorHover:n,primaryColorPressed:a}=e;return Object.assign(Object.assign({},KK),{color:t,textColor:r,iconColor:r,iconColorHover:n,iconColorPressed:a,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}};var Sxe=Cxe;const _xe=e=>{const{popoverColor:t,textColor2:r,primaryColorHover:n,primaryColorPressed:a}=e;return Object.assign(Object.assign({},KK),{color:t,textColor:r,iconColor:r,iconColorHover:n,iconColorPressed:a,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},Bxe={name:"BackTop",common:Dt,self:_xe};var Txe=Bxe,Exe=C("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},C("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},C("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},C("g",{transform:"translate(120.000000, 4285.000000)"},C("g",{transform:"translate(7.000000, 126.000000)"},C("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},C("g",{transform:"translate(4.000000, 2.000000)"},C("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),C("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),Ixe=M("back-top",`
|
|
position: fixed;
|
|
right: 40px;
|
|
bottom: 40px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--n-text-color);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
border-radius: var(--n-border-radius);
|
|
height: var(--n-height);
|
|
min-width: var(--n-width);
|
|
box-shadow: var(--n-box-shadow);
|
|
background-color: var(--n-color);
|
|
`,[gi(),j("transition-disabled",{transition:"none !important"}),M("base-icon",`
|
|
font-size: var(--n-icon-size);
|
|
color: var(--n-icon-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`),N("svg",{pointerEvents:"none"}),N("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[M("base-icon",{color:"var(--n-icon-color-hover)"})]),N("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[M("base-icon",{color:"var(--n-icon-color-pressed)"})])]);const Rxe=Object.assign(Object.assign({},Fe.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function});var Dxe=ge({name:"BackTop",inheritAttrs:!1,props:Rxe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=X(null),a=X(!1);yr(()=>{const{value:b}=n;if(b===null){a.value=!1;return}a.value=b>=e.visibilityHeight});const i=X(!1);mt(a,b=>{var w;i.value&&((w=e["onUpdate:show"])===null||w===void 0||w.call(e,b))});const o=Ie(e,"show"),s=Sr(o,a),l=X(!0),u=X(null),c=L(()=>({right:`calc(${pr(e.right)} + ${MI.value})`,bottom:pr(e.bottom)}));let d,f;mt(s,b=>{var w,x;i.value&&(b&&((w=e.onShow)===null||w===void 0||w.call(e)),(x=e.onHide)===null||x===void 0||x.call(e))});const A=Fe("BackTop","-back-top",Ixe,Txe,e,t);function h(){var b;if(f)return;f=!0;const w=((b=e.target)===null||b===void 0?void 0:b.call(e))||mde(e.listenTo)||kW(u.value);if(!w)return;d=w===document.documentElement?document:w;const{to:x}=e;typeof x=="string"&&document.querySelector(x),d.addEventListener("scroll",p),p()}function v(){(DO(d)?document.documentElement:d).scrollTo({top:0,behavior:"smooth"})}function p(){n.value=(DO(d)?document.documentElement:d).scrollTop,i.value||ar(()=>{i.value=!0})}function g(){l.value=!1}Ar(()=>{h(),l.value=s.value}),kr(()=>{d&&d.removeEventListener("scroll",p)});const m=L(()=>{const{self:{color:b,boxShadow:w,boxShadowHover:x,boxShadowPressed:S,iconColor:_,iconColorHover:B,iconColorPressed:T,width:E,height:I,iconSize:R,borderRadius:D,textColor:k},common:{cubicBezierEaseInOut:F}}=A.value;return{"--n-bezier":F,"--n-border-radius":D,"--n-height":I,"--n-width":E,"--n-box-shadow":w,"--n-box-shadow-hover":x,"--n-box-shadow-pressed":S,"--n-color":b,"--n-icon-size":R,"--n-icon-color":_,"--n-icon-color-hover":B,"--n-icon-color-pressed":T,"--n-text-color":k}}),y=r?_t("back-top",void 0,m,e):void 0;return{placeholderRef:u,style:c,mergedShow:s,isMounted:ji(),scrollElement:X(null),scrollTop:n,DomInfoReady:i,transitionDisabled:l,mergedClsPrefix:t,handleAfterEnter:g,handleScroll:p,handleClick:v,cssVars:r?void 0:m,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{mergedClsPrefix:e}=this;return C("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},C(jm,{to:this.to,show:this.mergedShow},{default:()=>C(zr,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?C("div",An(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),Wt(this.$slots.default,()=>[C($t,{clsPrefix:e},{default:()=>Exe})])):null}})}))}});const Fxe={name:"Badge",common:st,self(e){const{errorColorSuppl:t,infoColorSuppl:r,successColorSuppl:n,warningColorSuppl:a,fontFamily:i}=e;return{color:t,colorInfo:r,colorSuccess:n,colorError:t,colorWarning:a,fontSize:"12px",fontFamily:i}}};var Mxe=Fxe;const kxe=e=>{const{errorColor:t,infoColor:r,successColor:n,warningColor:a,fontFamily:i}=e;return{color:t,colorInfo:r,colorSuccess:n,colorError:t,colorWarning:a,fontSize:"12px",fontFamily:i}},Pxe={name:"Badge",common:Dt,self:kxe};var Lxe=Pxe,Oxe=N([N("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),M("badge",`
|
|
display: inline-flex;
|
|
position: relative;
|
|
vertical-align: middle;
|
|
color: var(--n-color);
|
|
font-family: var(--n-font-family);
|
|
`,[j("as-is",[M("badge-sup",{position:"static",transform:"translateX(0)"},[gi({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),j("dot",[M("badge-sup",`
|
|
height: 8px;
|
|
width: 8px;
|
|
padding: 0;
|
|
min-width: 8px;
|
|
left: 100%;
|
|
bottom: calc(100% - 4px);
|
|
`,[N("::before","border-radius: 4px;")])]),M("badge-sup",`
|
|
background: var(--n-color);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
color: #FFF;
|
|
position: absolute;
|
|
height: 18px;
|
|
line-height: 18px;
|
|
border-radius: 9px;
|
|
padding: 0 6px;
|
|
text-align: center;
|
|
font-size: var(--n-font-size);
|
|
transform: translateX(-50%);
|
|
left: 100%;
|
|
bottom: calc(100% - 9px);
|
|
font-variant-numeric: tabular-nums;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
`,[gi({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),M("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),N("&::before",`
|
|
opacity: 0;
|
|
transform: scale(1);
|
|
border-radius: 9px;
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)])])]);const $xe=Object.assign(Object.assign({},Fe.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String});var Uxe=ge({name:"Badge",props:$xe,setup(e,{slots:t}){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:a}=et(e),i=Fe("Badge","-badge",Oxe,Lxe,e,r),o=X(!1),s=()=>{o.value=!0},l=()=>{o.value=!1},u=L(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!Bf(t.value)));Ar(()=>{u.value&&(o.value=!0)});const c=tn("Badge",a,r),d=L(()=>{const{type:A,color:h}=e,{common:{cubicBezierEaseInOut:v,cubicBezierEaseOut:p},self:{[Se("color",A)]:g,fontFamily:m,fontSize:y}}=i.value;return{"--n-font-size":y,"--n-font-family":m,"--n-color":h||g,"--n-ripple-color":h||g,"--n-bezier":v,"--n-ripple-bezier":p}}),f=n?_t("badge",L(()=>{let A="";const{type:h,color:v}=e;return h&&(A+=h[0]),v&&(A+=uv(v)),A}),d,e):void 0;return{rtlEnabled:c,mergedClsPrefix:r,appeared:o,showBadge:u,handleAfterEnter:s,handleAfterLeave:l,cssVars:n?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;const{mergedClsPrefix:t,onRender:r,themeClass:n,$slots:a}=this;r==null||r();const i=(e=a.default)===null||e===void 0?void 0:e.call(a);return C("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,n,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,C(zr,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?C("sup",{class:`${t}-badge-sup`,title:OW(this.value)},Wt(a.value,()=>[this.dot?null:C(F1e,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?C(BK,{clsPrefix:t}):null):null}))}}),Hxe={fontWeightActive:"400"};const jK=e=>{const{fontSize:t,textColor3:r,textColor2:n,borderRadius:a,buttonColor2Hover:i,buttonColor2Pressed:o}=e;return Object.assign(Object.assign({},Hxe),{fontSize:t,itemLineHeight:"1.25",itemTextColor:r,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:a,itemColorHover:i,itemColorPressed:o,separatorColor:r})},zxe={name:"Breadcrumb",common:Dt,self:jK};var Nxe=zxe;const Qxe={name:"Breadcrumb",common:st,self:jK};var Vxe=Qxe,Wxe=M("breadcrumb",`
|
|
white-space: nowrap;
|
|
cursor: default;
|
|
line-height: var(--n-item-line-height);
|
|
`,[N("ul",`
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
`),N("a",`
|
|
color: inherit;
|
|
text-decoration: inherit;
|
|
`),M("breadcrumb-item",`
|
|
font-size: var(--n-font-size);
|
|
transition: color .3s var(--n-bezier);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
`,[M("icon",`
|
|
font-size: 18px;
|
|
vertical-align: -.2em;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-item-text-color);
|
|
`),N("&:not(:last-child)",[j("clickable",[G("link",`
|
|
cursor: pointer;
|
|
`,[N("&:hover",`
|
|
background-color: var(--n-item-color-hover);
|
|
`),N("&:active",`
|
|
background-color: var(--n-item-color-pressed);
|
|
`)])])]),G("link",`
|
|
padding: 4px;
|
|
border-radius: var(--n-item-border-radius);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
color: var(--n-item-text-color);
|
|
position: relative;
|
|
`,[N("&:hover",`
|
|
color: var(--n-item-text-color-hover);
|
|
`,[M("icon",`
|
|
color: var(--n-item-text-color-hover);
|
|
`)]),N("&:active",`
|
|
color: var(--n-item-text-color-pressed);
|
|
`,[M("icon",`
|
|
color: var(--n-item-text-color-pressed);
|
|
`)])]),G("separator",`
|
|
margin: 0 8px;
|
|
color: var(--n-separator-color);
|
|
transition: color .3s var(--n-bezier);
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`),N("&:last-child",[G("link",`
|
|
font-weight: var(--n-font-weight-active);
|
|
cursor: unset;
|
|
color: var(--n-item-text-color-active);
|
|
`,[M("icon",`
|
|
color: var(--n-item-text-color-active);
|
|
`)]),G("separator",`
|
|
display: none;
|
|
`)])])]);const YK="n-breadcrumb",Gxe=Object.assign(Object.assign({},Fe.props),{separator:{type:String,default:"/"}});var Kxe=ge({name:"Breadcrumb",props:Gxe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Breadcrumb","-breadcrumb",Wxe,Nxe,e,t);Ct(YK,{separatorRef:Ie(e,"separator"),mergedClsPrefixRef:t});const a=L(()=>{const{common:{cubicBezierEaseInOut:o},self:{separatorColor:s,itemTextColor:l,itemTextColorHover:u,itemTextColorPressed:c,itemTextColorActive:d,fontSize:f,fontWeightActive:A,itemBorderRadius:h,itemColorHover:v,itemColorPressed:p,itemLineHeight:g}}=n.value;return{"--n-font-size":f,"--n-bezier":o,"--n-item-text-color":l,"--n-item-text-color-hover":u,"--n-item-text-color-pressed":c,"--n-item-text-color-active":d,"--n-separator-color":s,"--n-item-color-hover":v,"--n-item-color-pressed":p,"--n-item-border-radius":h,"--n-font-weight-active":A,"--n-item-line-height":g}}),i=r?_t("breadcrumb",void 0,a,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),C("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},C("ul",null,this.$slots))}});const jxe=To?window:null,Yxe=(e=jxe)=>{const t=()=>{const{hash:a,host:i,hostname:o,href:s,origin:l,pathname:u,port:c,protocol:d,search:f}=(e==null?void 0:e.location)||{};return{hash:a,host:i,hostname:o,href:s,origin:l,pathname:u,port:c,protocol:d,search:f}},r=()=>{n.value=t()},n=X(t());return Ar(()=>{e&&(e.addEventListener("popstate",r),e.addEventListener("hashchange",r))}),iA(()=>{e&&(e.removeEventListener("popstate",r),e.removeEventListener("hashchange",r))}),n},Xxe={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function};var qxe=ge({name:"BreadcrumbItem",props:Xxe,setup(e,{slots:t}){const r=We(YK,null);if(!r)return()=>null;const{separatorRef:n,mergedClsPrefixRef:a}=r,i=Yxe(),o=L(()=>e.href?"a":"span"),s=L(()=>i.value.href===e.href?"location":null);return()=>{const{value:l}=a;return C("li",{class:[`${l}-breadcrumb-item`,e.clickable&&`${l}-breadcrumb-item--clickable`]},C(o.value,{class:`${l}-breadcrumb-item__link`,"aria-current":s.value,href:e.href,onClick:e.onClick},t),C("span",{class:`${l}-breadcrumb-item__separator`,"aria-hidden":"true"},Wt(t.separator,()=>{var u;return[(u=e.separator)!==null&&u!==void 0?u:n.value]})))}}});function hd(e){return Et(e,[255,255,255,.16])}function nb(e){return Et(e,[0,0,0,.12])}const XK="n-button-group";var Zxe={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};const qK=e=>{const{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:a,borderRadius:i,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:u,opacityDisabled:c,textColor2:d,textColor3:f,primaryColorHover:A,primaryColorPressed:h,borderColor:v,primaryColor:p,baseColor:g,infoColor:m,infoColorHover:y,infoColorPressed:b,successColor:w,successColorHover:x,successColorPressed:S,warningColor:_,warningColorHover:B,warningColorPressed:T,errorColor:E,errorColorHover:I,errorColorPressed:R,fontWeight:D,buttonColor2:k,buttonColor2Hover:F,buttonColor2Pressed:P,fontWeightStrong:O}=e;return Object.assign(Object.assign({},Zxe),{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:a,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:u,opacityDisabled:c,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:k,colorSecondaryHover:F,colorSecondaryPressed:P,colorTertiary:k,colorTertiaryHover:F,colorTertiaryPressed:P,colorQuaternary:"#0000",colorQuaternaryHover:F,colorQuaternaryPressed:P,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:f,textColorHover:A,textColorPressed:h,textColorFocus:A,textColorDisabled:d,textColorText:d,textColorTextHover:A,textColorTextPressed:h,textColorTextFocus:A,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:A,textColorGhostPressed:h,textColorGhostFocus:A,textColorGhostDisabled:d,border:`1px solid ${v}`,borderHover:`1px solid ${A}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${A}`,borderDisabled:`1px solid ${v}`,rippleColor:p,colorPrimary:p,colorHoverPrimary:A,colorPressedPrimary:h,colorFocusPrimary:A,colorDisabledPrimary:p,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:p,textColorTextHoverPrimary:A,textColorTextPressedPrimary:h,textColorTextFocusPrimary:A,textColorTextDisabledPrimary:d,textColorGhostPrimary:p,textColorGhostHoverPrimary:A,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:A,textColorGhostDisabledPrimary:p,borderPrimary:`1px solid ${p}`,borderHoverPrimary:`1px solid ${A}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${A}`,borderDisabledPrimary:`1px solid ${p}`,rippleColorPrimary:p,colorInfo:m,colorHoverInfo:y,colorPressedInfo:b,colorFocusInfo:y,colorDisabledInfo:m,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:m,textColorTextHoverInfo:y,textColorTextPressedInfo:b,textColorTextFocusInfo:y,textColorTextDisabledInfo:d,textColorGhostInfo:m,textColorGhostHoverInfo:y,textColorGhostPressedInfo:b,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:m,borderInfo:`1px solid ${m}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${b}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${m}`,rippleColorInfo:m,colorSuccess:w,colorHoverSuccess:x,colorPressedSuccess:S,colorFocusSuccess:x,colorDisabledSuccess:w,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:w,textColorTextHoverSuccess:x,textColorTextPressedSuccess:S,textColorTextFocusSuccess:x,textColorTextDisabledSuccess:d,textColorGhostSuccess:w,textColorGhostHoverSuccess:x,textColorGhostPressedSuccess:S,textColorGhostFocusSuccess:x,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${x}`,borderPressedSuccess:`1px solid ${S}`,borderFocusSuccess:`1px solid ${x}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:_,colorHoverWarning:B,colorPressedWarning:T,colorFocusWarning:B,colorDisabledWarning:_,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:_,textColorTextHoverWarning:B,textColorTextPressedWarning:T,textColorTextFocusWarning:B,textColorTextDisabledWarning:d,textColorGhostWarning:_,textColorGhostHoverWarning:B,textColorGhostPressedWarning:T,textColorGhostFocusWarning:B,textColorGhostDisabledWarning:_,borderWarning:`1px solid ${_}`,borderHoverWarning:`1px solid ${B}`,borderPressedWarning:`1px solid ${T}`,borderFocusWarning:`1px solid ${B}`,borderDisabledWarning:`1px solid ${_}`,rippleColorWarning:_,colorError:E,colorHoverError:I,colorPressedError:R,colorFocusError:I,colorDisabledError:E,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:E,textColorTextHoverError:I,textColorTextPressedError:R,textColorTextFocusError:I,textColorTextDisabledError:d,textColorGhostError:E,textColorGhostHoverError:I,textColorGhostPressedError:R,textColorGhostFocusError:I,textColorGhostDisabledError:E,borderError:`1px solid ${E}`,borderHoverError:`1px solid ${I}`,borderPressedError:`1px solid ${R}`,borderFocusError:`1px solid ${I}`,borderDisabledError:`1px solid ${E}`,rippleColorError:E,waveOpacity:"0.6",fontWeight:D,fontWeightStrong:O})},Jxe={name:"Button",common:Dt,self:qK};var ed=Jxe;const ewe={name:"Button",common:st,self(e){const t=qK(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}};var Ci=ewe,twe=N([M("button",`
|
|
margin: 0;
|
|
font-weight: var(--n-font-weight);
|
|
line-height: 1;
|
|
font-family: inherit;
|
|
padding: var(--n-padding);
|
|
height: var(--n-height);
|
|
font-size: var(--n-font-size);
|
|
border-radius: var(--n-border-radius);
|
|
color: var(--n-text-color);
|
|
background-color: var(--n-color);
|
|
width: var(--n-width);
|
|
white-space: nowrap;
|
|
outline: none;
|
|
position: relative;
|
|
z-index: auto;
|
|
border: none;
|
|
display: inline-flex;
|
|
flex-wrap: nowrap;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`,[j("color",[G("border",{borderColor:"var(--n-border-color)"}),j("disabled",[G("border",{borderColor:"var(--n-border-color-disabled)"})]),Nt("disabled",[N("&:focus",[G("state-border",{borderColor:"var(--n-border-color-focus)"})]),N("&:hover",[G("state-border",{borderColor:"var(--n-border-color-hover)"})]),N("&:active",[G("state-border",{borderColor:"var(--n-border-color-pressed)"})]),j("pressed",[G("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),j("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[G("border",{border:"var(--n-border-disabled)"})]),Nt("disabled",[N("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[G("state-border",{border:"var(--n-border-focus)"})]),N("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[G("state-border",{border:"var(--n-border-hover)"})]),N("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[G("state-border",{border:"var(--n-border-pressed)"})]),j("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[G("state-border",{border:"var(--n-border-pressed)"})])]),j("loading","cursor: wait;"),M("base-wave",`
|
|
pointer-events: none;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
animation-iteration-count: 1;
|
|
animation-duration: var(--n-ripple-duration);
|
|
animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
|
|
`,[j("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),To&&"MozBoxSizing"in document.createElement("div").style?N("&::moz-focus-inner",{border:0}):null,G("border, state-border",`
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
border-radius: inherit;
|
|
transition: border-color .3s var(--n-bezier);
|
|
pointer-events: none;
|
|
`),G("border",{border:"var(--n-border)"}),G("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),G("icon",`
|
|
margin: var(--n-icon-margin);
|
|
margin-left: 0;
|
|
height: var(--n-icon-size);
|
|
width: var(--n-icon-size);
|
|
max-width: var(--n-icon-size);
|
|
font-size: var(--n-icon-size);
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
`,[M("icon-slot",`
|
|
height: var(--n-icon-size);
|
|
width: var(--n-icon-size);
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`,[Wn({top:"50%",originalTransform:"translateY(-50%)"})]),LK()]),G("content",`
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
min-width: 0;
|
|
`,[N("~",[G("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),j("block",`
|
|
display: flex;
|
|
width: 100%;
|
|
`),j("dashed",[G("border, state-border",{borderStyle:"dashed !important"})]),j("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),N("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),N("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]);const rwe=Object.assign(Object.assign({},Fe.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!HK}}),ZK=ge({name:"Button",props:rwe,setup(e){const t=X(null),r=X(null),n=X(!1),a=Rt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=We(XK,{}),{mergedSizeRef:o}=bi({},{defaultSize:"medium",mergedSize:b=>{const{size:w}=e;if(w)return w;const{size:x}=i;if(x)return x;const{mergedSize:S}=b||{};return S?S.value:"medium"}}),s=L(()=>e.focusable&&!e.disabled),l=b=>{var w;s.value||b.preventDefault(),!e.nativeFocusBehavior&&(b.preventDefault(),!e.disabled&&s.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},u=b=>{var w;if(!e.disabled&&!e.loading){const{onClick:x}=e;x&&Ee(x,b),e.text||(w=r.value)===null||w===void 0||w.play()}},c=b=>{switch(b.key){case"Enter":if(!e.keyboard)return;n.value=!1}},d=b=>{switch(b.key){case"Enter":if(!e.keyboard||e.loading){b.preventDefault();return}n.value=!0}},f=()=>{n.value=!1},{inlineThemeDisabled:A,mergedClsPrefixRef:h,mergedRtlRef:v}=et(e),p=Fe("Button","-button",twe,ed,e,h),g=tn("Button",v,h),m=L(()=>{const b=p.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:x},self:S}=b,{rippleDuration:_,opacityDisabled:B,fontWeight:T,fontWeightStrong:E}=S,I=o.value,{dashed:R,type:D,ghost:k,text:F,color:P,round:O,circle:H,textColor:V,secondary:W,tertiary:Z,quaternary:ee,strong:ae}=e,ne={"font-weight":ae?E:T};let le={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const se=D==="tertiary",ce=D==="default",ye=se?"default":D;if(F){const he=V||P,oe=he||S[Se("textColorText",ye)];le={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":oe,"--n-text-color-hover":he?hd(he):S[Se("textColorTextHover",ye)],"--n-text-color-pressed":he?nb(he):S[Se("textColorTextPressed",ye)],"--n-text-color-focus":he?hd(he):S[Se("textColorTextHover",ye)],"--n-text-color-disabled":he||S[Se("textColorTextDisabled",ye)]}}else if(k||R){const he=V||P;le={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":P||S[Se("rippleColor",ye)],"--n-text-color":he||S[Se("textColorGhost",ye)],"--n-text-color-hover":he?hd(he):S[Se("textColorGhostHover",ye)],"--n-text-color-pressed":he?nb(he):S[Se("textColorGhostPressed",ye)],"--n-text-color-focus":he?hd(he):S[Se("textColorGhostHover",ye)],"--n-text-color-disabled":he||S[Se("textColorGhostDisabled",ye)]}}else if(W){const he=ce?S.textColor:se?S.textColorTertiary:S[Se("color",ye)],oe=P||he,Y=D!=="default"&&D!=="tertiary";le={"--n-color":Y?Ve(oe,{alpha:Number(S.colorOpacitySecondary)}):S.colorSecondary,"--n-color-hover":Y?Ve(oe,{alpha:Number(S.colorOpacitySecondaryHover)}):S.colorSecondaryHover,"--n-color-pressed":Y?Ve(oe,{alpha:Number(S.colorOpacitySecondaryPressed)}):S.colorSecondaryPressed,"--n-color-focus":Y?Ve(oe,{alpha:Number(S.colorOpacitySecondaryHover)}):S.colorSecondaryHover,"--n-color-disabled":S.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":oe,"--n-text-color-hover":oe,"--n-text-color-pressed":oe,"--n-text-color-focus":oe,"--n-text-color-disabled":oe}}else if(Z||ee){const he=ce?S.textColor:se?S.textColorTertiary:S[Se("color",ye)],oe=P||he;Z?(le["--n-color"]=S.colorTertiary,le["--n-color-hover"]=S.colorTertiaryHover,le["--n-color-pressed"]=S.colorTertiaryPressed,le["--n-color-focus"]=S.colorSecondaryHover,le["--n-color-disabled"]=S.colorTertiary):(le["--n-color"]=S.colorQuaternary,le["--n-color-hover"]=S.colorQuaternaryHover,le["--n-color-pressed"]=S.colorQuaternaryPressed,le["--n-color-focus"]=S.colorQuaternaryHover,le["--n-color-disabled"]=S.colorQuaternary),le["--n-ripple-color"]="#0000",le["--n-text-color"]=oe,le["--n-text-color-hover"]=oe,le["--n-text-color-pressed"]=oe,le["--n-text-color-focus"]=oe,le["--n-text-color-disabled"]=oe}else le={"--n-color":P||S[Se("color",ye)],"--n-color-hover":P?hd(P):S[Se("colorHover",ye)],"--n-color-pressed":P?nb(P):S[Se("colorPressed",ye)],"--n-color-focus":P?hd(P):S[Se("colorFocus",ye)],"--n-color-disabled":P||S[Se("colorDisabled",ye)],"--n-ripple-color":P||S[Se("rippleColor",ye)],"--n-text-color":V||(P?S.textColorPrimary:se?S.textColorTertiary:S[Se("textColor",ye)]),"--n-text-color-hover":V||(P?S.textColorHoverPrimary:S[Se("textColorHover",ye)]),"--n-text-color-pressed":V||(P?S.textColorPressedPrimary:S[Se("textColorPressed",ye)]),"--n-text-color-focus":V||(P?S.textColorFocusPrimary:S[Se("textColorFocus",ye)]),"--n-text-color-disabled":V||(P?S.textColorDisabledPrimary:S[Se("textColorDisabled",ye)])};let fe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};F?fe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:fe={"--n-border":S[Se("border",ye)],"--n-border-hover":S[Se("borderHover",ye)],"--n-border-pressed":S[Se("borderPressed",ye)],"--n-border-focus":S[Se("borderFocus",ye)],"--n-border-disabled":S[Se("borderDisabled",ye)]};const{[Se("height",I)]:Q,[Se("fontSize",I)]:J,[Se("padding",I)]:U,[Se("paddingRound",I)]:K,[Se("iconSize",I)]:q,[Se("borderRadius",I)]:ie,[Se("iconMargin",I)]:$,waveOpacity:re}=S,ve={"--n-width":H&&!F?Q:"initial","--n-height":F?"initial":Q,"--n-font-size":J,"--n-padding":H||F?"initial":O?K:U,"--n-icon-size":q,"--n-icon-margin":$,"--n-border-radius":F?"initial":H||O?Q:ie};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":x,"--n-ripple-duration":_,"--n-opacity-disabled":B,"--n-wave-opacity":re},ne),le),fe),ve)}),y=A?_t("button",L(()=>{let b="";const{dashed:w,type:x,ghost:S,text:_,color:B,round:T,circle:E,textColor:I,secondary:R,tertiary:D,quaternary:k,strong:F}=e;w&&(b+="a"),S&&(b+="b"),_&&(b+="c"),T&&(b+="d"),E&&(b+="e"),R&&(b+="f"),D&&(b+="g"),k&&(b+="h"),F&&(b+="i"),B&&(b+="j"+uv(B)),I&&(b+="k"+uv(I));const{value:P}=o;return b+="l"+P[0],b+="m"+x[0],b}),m,e):void 0;return{selfElRef:t,waveElRef:r,mergedClsPrefix:h,mergedFocusable:s,mergedSize:o,showBorder:a,enterPressed:n,rtlEnabled:g,handleMousedown:l,handleKeydown:d,handleBlur:f,handleKeyup:c,handleClick:u,customColorCssVars:L(()=>{const{color:b}=e;if(!b)return null;const w=hd(b);return{"--n-border-color":b,"--n-border-color-hover":w,"--n-border-color-pressed":nb(b),"--n-border-color-focus":w,"--n-border-color-disabled":b}}),cssVars:A?void 0:m,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:r}=this;r==null||r();const n=or(this.$slots.default,a=>a&&C("span",{class:`${e}-button__content`},a));return C(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&n,C(ll,{width:!0},{default:()=>or(this.$slots.icon,a=>(this.loading||a)&&C("span",{class:`${e}-button__icon`,style:{margin:Bf(this.$slots.default)?"0":""}},C(sl,null,{default:()=>this.loading?C(cu,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):C("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},a)})))}),this.iconPlacement==="left"&&n,this.text?null:C(BK,{ref:"waveElRef",clsPrefix:e}),this.showBorder?C("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?C("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}});var on=ZK;const Vs=ZK,vn="0!important",JK="-1px!important";function DA(e){return j(e+"-type",[N("& +",[M("button",{},[j(e+"-type",[G("border",{borderLeftWidth:vn}),G("state-border",{left:JK})])])])])}function FA(e){return j(e+"-type",[N("& +",[M("button",[j(e+"-type",[G("border",{borderTopWidth:vn}),G("state-border",{top:JK})])])])])}var nwe=M("button-group",`
|
|
flex-wrap: nowrap;
|
|
display: inline-flex;
|
|
position: relative;
|
|
`,[Nt("vertical",{flexDirection:"row"},[Nt("rtl",[M("button",[N("&:first-child:not(:last-child)",`
|
|
margin-right: ${vn};
|
|
border-top-right-radius: ${vn};
|
|
border-bottom-right-radius: ${vn};
|
|
`),N("&:last-child:not(:first-child)",`
|
|
margin-left: ${vn};
|
|
border-top-left-radius: ${vn};
|
|
border-bottom-left-radius: ${vn};
|
|
`),N("&:not(:first-child):not(:last-child)",`
|
|
margin-left: ${vn};
|
|
margin-right: ${vn};
|
|
border-radius: ${vn};
|
|
`),DA("default"),j("ghost",[DA("primary"),DA("info"),DA("success"),DA("warning"),DA("error")])])])]),j("vertical",{flexDirection:"column"},[M("button",[N("&:first-child:not(:last-child)",`
|
|
margin-bottom: ${vn};
|
|
margin-left: ${vn};
|
|
margin-right: ${vn};
|
|
border-bottom-left-radius: ${vn};
|
|
border-bottom-right-radius: ${vn};
|
|
`),N("&:last-child:not(:first-child)",`
|
|
margin-top: ${vn};
|
|
margin-left: ${vn};
|
|
margin-right: ${vn};
|
|
border-top-left-radius: ${vn};
|
|
border-top-right-radius: ${vn};
|
|
`),N("&:not(:first-child):not(:last-child)",`
|
|
margin: ${vn};
|
|
border-radius: ${vn};
|
|
`),FA("default"),j("ghost",[FA("primary"),FA("info"),FA("success"),FA("warning"),FA("error")])])])]);const awe={size:{type:String,default:void 0},vertical:Boolean};var iwe=ge({name:"ButtonGroup",props:awe,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=et(e);return ol("-button-group",nwe,t),Ct(XK,e),{rtlEnabled:tn("ButtonGroup",r,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return C("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}});function ab(e,t){Ot(2,arguments);var r=Vt(e),n=gr(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function ha(e,t){Ot(2,arguments);var r=Vt(e),n=gr(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var o=i.getDate();return a>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}function owe(e,t){Ot(2,arguments);var r=Vt(e).getTime(),n=gr(t);return new Date(r+n)}function nw(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function aw(e){Ot(1,arguments);var t=Vt(e);return t.setHours(0,0,0,0),t}function swe(e,t){Ot(2,arguments);var r=gr(t),n=r*3;return ha(e,n)}function GI(e,t){Ot(2,arguments);var r=gr(t);return ha(e,r*12)}function lwe(e,t){Ot(2,arguments);var r=Vt(e),n=Vt(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}function uwe(e,t){Ot(2,arguments);var r=aw(e),n=aw(t);return r.getTime()===n.getTime()}function cwe(e){return Ot(1,arguments),e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ao(e){if(Ot(1,arguments),!cwe(e)&&typeof e!="number")return!1;var t=Vt(e);return!isNaN(Number(t))}function dwe(e){Ot(1,arguments);var t=Vt(e),r=Math.floor(t.getMonth()/3)+1;return r}function fwe(e){Ot(1,arguments);var t=Vt(e);return t.setSeconds(0,0),t}function N0(e){Ot(1,arguments);var t=Vt(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}function Sl(e){Ot(1,arguments);var t=Vt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function wk(e){Ot(1,arguments);var t=Vt(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function ej(e,t){Ot(2,arguments);var r=gr(t);return owe(e,-r)}var Awe=864e5;function hwe(e){Ot(1,arguments);var t=Vt(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),a=r-n;return Math.floor(a/Awe)+1}function Av(e){Ot(1,arguments);var t=1,r=Vt(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function tj(e){Ot(1,arguments);var t=Vt(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=Av(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=Av(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function vwe(e){Ot(1,arguments);var t=tj(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Av(r);return n}var pwe=6048e5;function rj(e){Ot(1,arguments);var t=Vt(e),r=Av(t).getTime()-vwe(t).getTime();return Math.round(r/pwe)+1}function Ck(e,t){Ot(1,arguments);var r=Vt(e),n=r.getUTCFullYear(),a=t||{},i=a.locale,o=i&&i.options&&i.options.firstWeekContainsDate,s=o==null?1:gr(o),l=a.firstWeekContainsDate==null?s:gr(a.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(n+1,0,l),u.setUTCHours(0,0,0,0);var c=Ul(u,t),d=new Date(0);d.setUTCFullYear(n,0,l),d.setUTCHours(0,0,0,0);var f=Ul(d,t);return r.getTime()>=c.getTime()?n+1:r.getTime()>=f.getTime()?n:n-1}function gwe(e,t){Ot(1,arguments);var r=t||{},n=r.locale,a=n&&n.options&&n.options.firstWeekContainsDate,i=a==null?1:gr(a),o=r.firstWeekContainsDate==null?i:gr(r.firstWeekContainsDate),s=Ck(e,t),l=new Date(0);l.setUTCFullYear(s,0,o),l.setUTCHours(0,0,0,0);var u=Ul(l,t);return u}var mwe=6048e5;function nj(e,t){Ot(1,arguments);var r=Vt(e),n=Ul(r,t).getTime()-gwe(r,t).getTime();return Math.round(n/mwe)+1}function Wr(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var ywe={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return Wr(t==="yy"?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Wr(r+1,2)},d:function(e,t){return Wr(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Wr(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Wr(e.getUTCHours(),t.length)},m:function(e,t){return Wr(e.getUTCMinutes(),t.length)},s:function(e,t){return Wr(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),a=Math.floor(n*Math.pow(10,r-3));return Wr(a,t.length)}},wu=ywe,MA={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bwe={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var n=e.getUTCFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return wu.y(e,t)},Y:function(e,t,r,n){var a=Ck(e,n),i=a>0?a:1-a;if(t==="YY"){var o=i%100;return Wr(o,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):Wr(i,t.length)},R:function(e,t){var r=tj(e);return Wr(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Wr(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Wr(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Wr(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return wu.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return Wr(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var a=nj(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):Wr(a,t.length)},I:function(e,t,r){var n=rj(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Wr(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):wu.d(e,t)},D:function(e,t,r){var n=hwe(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Wr(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var a=e.getUTCDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Wr(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var a=e.getUTCDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Wr(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return Wr(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),a=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n=e.getUTCHours(),a;switch(n===12?a=MA.noon:n===0?a=MA.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n=e.getUTCHours(),a;switch(n>=17?a=MA.evening:n>=12?a=MA.afternoon:n>=4?a=MA.morning:a=MA.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return wu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):wu.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Wr(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Wr(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):wu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):wu.s(e,t)},S:function(e,t){return wu.S(e,t)},X:function(e,t,r,n){var a=n._originalDate||e,i=a.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return _3(i);case"XXXX":case"XX":return Kd(i);case"XXXXX":case"XXX":default:return Kd(i,":")}},x:function(e,t,r,n){var a=n._originalDate||e,i=a.getTimezoneOffset();switch(t){case"x":return _3(i);case"xxxx":case"xx":return Kd(i);case"xxxxx":case"xxx":default:return Kd(i,":")}},O:function(e,t,r,n){var a=n._originalDate||e,i=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S3(i,":");case"OOOO":default:return"GMT"+Kd(i,":")}},z:function(e,t,r,n){var a=n._originalDate||e,i=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S3(i,":");case"zzzz":default:return"GMT"+Kd(i,":")}},t:function(e,t,r,n){var a=n._originalDate||e,i=Math.floor(a.getTime()/1e3);return Wr(i,t.length)},T:function(e,t,r,n){var a=n._originalDate||e,i=a.getTime();return Wr(i,t.length)}};function S3(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(i===0)return r+String(a);var o=t||"";return r+String(a)+o+Wr(i,2)}function _3(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Wr(Math.abs(e)/60,2)}return Kd(e,t)}function Kd(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),i=Wr(Math.floor(a/60),2),o=Wr(a%60,2);return n+i+r+o}var xwe=bwe;function B3(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function aj(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function wwe(e,t){var r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return B3(e,t);var i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",B3(n,t)).replace("{{time}}",aj(a,t))}var Cwe={p:aj,P:wwe},ij=Cwe,Swe=["D","DD"],_we=["YY","YYYY"];function oj(e){return Swe.indexOf(e)!==-1}function sj(e){return _we.indexOf(e)!==-1}function iw(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var Bwe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Twe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ewe=/^'([^]*?)'?$/,Iwe=/''/g,Rwe=/[a-zA-Z]/;function nn(e,t,r){Ot(2,arguments);var n=String(t),a=r||{},i=a.locale||iS,o=i.options&&i.options.firstWeekContainsDate,s=o==null?1:gr(o),l=a.firstWeekContainsDate==null?s:gr(a.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=i.options&&i.options.weekStartsOn,c=u==null?0:gr(u),d=a.weekStartsOn==null?c:gr(a.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var f=Vt(e);if(!Ao(f))throw new RangeError("Invalid time value");var A=nw(f),h=ej(f,A),v={firstWeekContainsDate:l,weekStartsOn:d,locale:i,_originalDate:f},p=n.match(Twe).map(function(g){var m=g[0];if(m==="p"||m==="P"){var y=ij[m];return y(g,i.formatLong,v)}return g}).join("").match(Bwe).map(function(g){if(g==="''")return"'";var m=g[0];if(m==="'")return Dwe(g);var y=xwe[m];if(y)return!a.useAdditionalWeekYearTokens&&sj(g)&&iw(g,t,e),!a.useAdditionalDayOfYearTokens&&oj(g)&&iw(g,t,e),y(h,g,i.localize,v);if(m.match(Rwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return g}).join("");return p}function Dwe(e){return e.match(Ewe)[1].replace(Iwe,"'")}function lj(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");t=t||{};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Fwe(e){return lj({},e)}var T3=1e3*60,ow=60*24,E3=ow*30,I3=ow*365;function Mwe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ot(2,arguments);var n=r.locale||iS;if(!n.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var a=lwe(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var i=Fwe(r);i.addSuffix=Boolean(r.addSuffix),i.comparison=a;var o,s;a>0?(o=Vt(t),s=Vt(e)):(o=Vt(e),s=Vt(t));var l=r.roundingMethod==null?"round":String(r.roundingMethod),u;if(l==="floor")u=Math.floor;else if(l==="ceil")u=Math.ceil;else if(l==="round")u=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var c=s.getTime()-o.getTime(),d=c/T3,f=nw(s)-nw(o),A=(c-f)/T3,h;if(r.unit==null?d<1?h="second":d<60?h="minute":d<ow?h="hour":A<E3?h="day":A<I3?h="month":h="year":h=String(r.unit),h==="second"){var v=u(c/1e3);return n.formatDistance("xSeconds",v,i)}else if(h==="minute"){var p=u(d);return n.formatDistance("xMinutes",p,i)}else if(h==="hour"){var g=u(d/60);return n.formatDistance("xHours",g,i)}else if(h==="day"){var m=u(A/ow);return n.formatDistance("xDays",m,i)}else if(h==="month"){var y=u(A/E3);return y===12&&r.unit!=="month"?n.formatDistance("xYears",1,i):n.formatDistance("xMonths",y,i)}else if(h==="year"){var b=u(A/I3);return n.formatDistance("xYears",b,i)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function R3(e){Ot(1,arguments);var t=gr(e);return Vt(t*1e3)}function Vo(e){Ot(1,arguments);var t=Vt(e),r=t.getDate();return r}function kwe(e){Ot(1,arguments);var t=Vt(e),r=t.getDay();return r}function Pwe(e){Ot(1,arguments);var t=Vt(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function ju(e){Ot(1,arguments);var t=Vt(e),r=t.getHours();return r}function sw(e){Ot(1,arguments);var t=Vt(e),r=t.getMinutes();return r}function sn(e){Ot(1,arguments);var t=Vt(e),r=t.getMonth();return r}function lw(e){Ot(1,arguments);var t=Vt(e),r=t.getSeconds();return r}function ct(e){Ot(1,arguments);var t=Vt(e),r=t.getTime();return r}function pn(e){return Ot(1,arguments),Vt(e).getFullYear()}function RB(e,t,r){Ot(2,arguments);var n=r||{},a=n.locale,i=a&&a.options&&a.options.weekStartsOn,o=i==null?0:gr(i),s=n.weekStartsOn==null?o:gr(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Vt(e),u=gr(t),c=l.getUTCDay(),d=u%7,f=(d+7)%7,A=(f<s?7:0)+u-c;return l.setUTCDate(l.getUTCDate()+A),l}function Lwe(e,t){Ot(2,arguments);var r=gr(t);r%7===0&&(r=r-7);var n=1,a=Vt(e),i=a.getUTCDay(),o=r%7,s=(o+7)%7,l=(s<n?7:0)+r-i;return a.setUTCDate(a.getUTCDate()+l),a}function Owe(e,t){Ot(2,arguments);var r=Vt(e),n=gr(t),a=rj(r)-n;return r.setUTCDate(r.getUTCDate()-a*7),r}function $we(e,t,r){Ot(2,arguments);var n=Vt(e),a=gr(t),i=nj(n,r)-a;return n.setUTCDate(n.getUTCDate()-i*7),n}var Uwe=36e5,Hwe=6e4,zwe=1e3,Ln={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ms={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function gn(e,t,r){var n=t.match(e);if(!n)return null;var a=parseInt(n[0],10);return{value:r?r(a):a,rest:t.slice(n[0].length)}}function ys(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,a=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(a*Uwe+i*Hwe+o*zwe),rest:t.slice(r[0].length)}}function D3(e,t){return gn(Ln.anyDigitsSigned,e,t)}function wn(e,t,r){switch(e){case 1:return gn(Ln.singleDigit,t,r);case 2:return gn(Ln.twoDigits,t,r);case 3:return gn(Ln.threeDigits,t,r);case 4:return gn(Ln.fourDigits,t,r);default:return gn(new RegExp("^\\d{1,"+e+"}"),t,r)}}function ib(e,t,r){switch(e){case 1:return gn(Ln.singleDigitSigned,t,r);case 2:return gn(Ln.twoDigitsSigned,t,r);case 3:return gn(Ln.threeDigitsSigned,t,r);case 4:return gn(Ln.fourDigitsSigned,t,r);default:return gn(new RegExp("^-?\\d{1,"+e+"}"),t,r)}}function DB(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function F3(e,t){var r=t>0,n=r?t:1-t,a;if(n<=50)a=e||100;else{var i=n+50,o=Math.floor(i/100)*100,s=e>=i%100;a=e+o-(s?100:0)}return r?a:1-a}var Nwe=[31,28,31,30,31,30,31,31,30,31,30,31],Qwe=[31,29,31,30,31,30,31,31,30,31,30,31];function M3(e){return e%400===0||e%4===0&&e%100!==0}var Vwe={G:{priority:140,parse:function(e,t,r,n){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}},set:function(e,t,r,n){return t.era=r,e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,r,n){var a=function(i){return{year:i,isTwoDigitYear:t==="yy"}};switch(t){case"y":return wn(4,e,a);case"yo":return r.ordinalNumber(e,{unit:"year",valueCallback:a});default:return wn(t.length,e,a)}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,n){var a=e.getUTCFullYear();if(r.isTwoDigitYear){var i=F3(r.year,a);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o=!("era"in t)||t.era===1?r.year:1-r.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,r,n){var a=function(i){return{year:i,isTwoDigitYear:t==="YY"}};switch(t){case"Y":return wn(4,e,a);case"Yo":return r.ordinalNumber(e,{unit:"year",valueCallback:a});default:return wn(t.length,e,a)}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,n){var a=Ck(e,n);if(r.isTwoDigitYear){var i=F3(r.year,a);return e.setUTCFullYear(i,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Ul(e,n)}var o=!("era"in t)||t.era===1?r.year:1-r.year;return e.setUTCFullYear(o,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Ul(e,n)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,r,n){return ib(t==="R"?4:t.length,e)},set:function(e,t,r,n){var a=new Date(0);return a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0),Av(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,r,n){return ib(t==="u"?4:t.length,e)},set:function(e,t,r,n){return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,r,n){switch(t){case"Q":case"QQ":return wn(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,n){return e.setUTCMonth((r-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,r,n){switch(t){case"q":case"qq":return wn(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,n){return e.setUTCMonth((r-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,r,n){var a=function(i){return i-1};switch(t){case"M":return gn(Ln.month,e,a);case"MM":return wn(2,e,a);case"Mo":return r.ordinalNumber(e,{unit:"month",valueCallback:a});case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,r,n){var a=function(i){return i-1};switch(t){case"L":return gn(Ln.month,e,a);case"LL":return wn(2,e,a);case"Lo":return r.ordinalNumber(e,{unit:"month",valueCallback:a});case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,r,n){switch(t){case"w":return gn(Ln.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return wn(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,n){return Ul($we(e,r,n),n)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,r,n){switch(t){case"I":return gn(Ln.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return wn(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,n){return Av(Owe(e,r,n),n)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,r,n){switch(t){case"d":return gn(Ln.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return wn(t.length,e)}},validate:function(e,t,r){var n=e.getUTCFullYear(),a=M3(n),i=e.getUTCMonth();return a?t>=1&&t<=Qwe[i]:t>=1&&t<=Nwe[i]},set:function(e,t,r,n){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,r,n){switch(t){case"D":case"DD":return gn(Ln.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return wn(t.length,e)}},validate:function(e,t,r){var n=e.getUTCFullYear(),a=M3(n);return a?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,r,n){return e.setUTCMonth(0,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,r,n){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return e=RB(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,r,n){var a=function(i){var o=Math.floor((i-1)/7)*7;return(i+n.weekStartsOn+6)%7+o};switch(t){case"e":case"ee":return wn(t.length,e,a);case"eo":return r.ordinalNumber(e,{unit:"day",valueCallback:a});case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return e=RB(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,r,n){var a=function(i){var o=Math.floor((i-1)/7)*7;return(i+n.weekStartsOn+6)%7+o};switch(t){case"c":case"cc":return wn(t.length,e,a);case"co":return r.ordinalNumber(e,{unit:"day",valueCallback:a});case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return e=RB(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,r,n){var a=function(i){return i===0?7:i};switch(t){case"i":case"ii":return wn(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return r.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(e,{width:"short",context:"formatting",valueCallback:a})||r.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return r.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return r.day(e,{width:"short",context:"formatting",valueCallback:a})||r.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiii":default:return r.day(e,{width:"wide",context:"formatting",valueCallback:a})||r.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(e,{width:"short",context:"formatting",valueCallback:a})||r.day(e,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(e,t,r){return t>=1&&t<=7},set:function(e,t,r,n){return e=Lwe(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,r,n){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,r,n){return e.setUTCHours(DB(r),0,0,0),e},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(e,t,r,n){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,r,n){return e.setUTCHours(DB(r),0,0,0),e},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(e,t,r,n){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,r,n){return e.setUTCHours(DB(r),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,r,n){switch(t){case"h":return gn(Ln.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return wn(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=12},set:function(e,t,r,n){var a=e.getUTCHours()>=12;return a&&r<12?e.setUTCHours(r+12,0,0,0):!a&&r===12?e.setUTCHours(0,0,0,0):e.setUTCHours(r,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,r,n){switch(t){case"H":return gn(Ln.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return wn(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=23},set:function(e,t,r,n){return e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,r,n){switch(t){case"K":return gn(Ln.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return wn(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){var a=e.getUTCHours()>=12;return a&&r<12?e.setUTCHours(r+12,0,0,0):e.setUTCHours(r,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,t,r,n){switch(t){case"k":return gn(Ln.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return wn(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=24},set:function(e,t,r,n){var a=r<=24?r%24:r;return e.setUTCHours(a,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,r,n){switch(t){case"m":return gn(Ln.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return wn(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,n){return e.setUTCMinutes(r,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,r,n){switch(t){case"s":return gn(Ln.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return wn(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,n){return e.setUTCSeconds(r,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,r,n){var a=function(i){return Math.floor(i*Math.pow(10,-t.length+3))};return wn(t.length,e,a)},set:function(e,t,r,n){return e.setUTCMilliseconds(r),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,r,n){switch(t){case"X":return ys(ms.basicOptionalMinutes,e);case"XX":return ys(ms.basic,e);case"XXXX":return ys(ms.basicOptionalSeconds,e);case"XXXXX":return ys(ms.extendedOptionalSeconds,e);case"XXX":default:return ys(ms.extended,e)}},set:function(e,t,r,n){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,r,n){switch(t){case"x":return ys(ms.basicOptionalMinutes,e);case"xx":return ys(ms.basic,e);case"xxxx":return ys(ms.basicOptionalSeconds,e);case"xxxxx":return ys(ms.extendedOptionalSeconds,e);case"xxx":default:return ys(ms.extended,e)}},set:function(e,t,r,n){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,r,n){return D3(e)},set:function(e,t,r,n){return[new Date(r*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,r,n){return D3(e)},set:function(e,t,r,n){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}},Wwe=Vwe,Gwe=10,Kwe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jwe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ywe=/^'([^]*?)'?$/,Xwe=/''/g,qwe=/\S/,Zwe=/[a-zA-Z]/;function Jwe(e,t,r,n){Ot(3,arguments);var a=String(e),i=String(t),o=n||{},s=o.locale||iS;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,u=l==null?1:gr(l),c=o.firstWeekContainsDate==null?u:gr(o.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,f=d==null?0:gr(d),A=o.weekStartsOn==null?f:gr(o.weekStartsOn);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(i==="")return a===""?Vt(r):new Date(NaN);var h={firstWeekContainsDate:c,weekStartsOn:A,locale:s},v=[{priority:Gwe,subPriority:-1,set:eCe,index:0}],p,g=i.match(jwe).map(function(P){var O=P[0];if(O==="p"||O==="P"){var H=ij[O];return H(P,s.formatLong,h)}return P}).join("").match(Kwe),m=[];for(p=0;p<g.length;p++){var y=g[p];!o.useAdditionalWeekYearTokens&&sj(y)&&iw(y,i,e),!o.useAdditionalDayOfYearTokens&&oj(y)&&iw(y,i,e);var b=y[0],w=Wwe[b];if(w){var x=w.incompatibleTokens;if(Array.isArray(x)){for(var S=void 0,_=0;_<m.length;_++){var B=m[_].token;if(x.indexOf(B)!==-1||B===b){S=m[_];break}}if(S)throw new RangeError("The format string mustn't contain `".concat(S.fullToken,"` and `").concat(y,"` at the same time"))}else if(w.incompatibleTokens==="*"&&m.length)throw new RangeError("The format string mustn't contain `".concat(y,"` and any other token at the same time"));m.push({token:b,fullToken:y});var T=w.parse(a,y,s.match,h);if(!T)return new Date(NaN);v.push({priority:w.priority,subPriority:w.subPriority||0,set:w.set,validate:w.validate,value:T.value,index:v.length}),a=T.rest}else{if(b.match(Zwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");if(y==="''"?y="'":b==="'"&&(y=tCe(y)),a.indexOf(y)===0)a=a.slice(y.length);else return new Date(NaN)}}if(a.length>0&&qwe.test(a))return new Date(NaN);var E=v.map(function(P){return P.priority}).sort(function(P,O){return O-P}).filter(function(P,O,H){return H.indexOf(P)===O}).map(function(P){return v.filter(function(O){return O.priority===P}).sort(function(O,H){return H.subPriority-O.subPriority})}).map(function(P){return P[0]}),I=Vt(r);if(isNaN(I))return new Date(NaN);var R=ej(I,nw(I)),D={};for(p=0;p<E.length;p++){var k=E[p];if(k.validate&&!k.validate(R,k.value,h))return new Date(NaN);var F=k.set(R,D,k.value,h);F[0]?(R=F[0],lj(D,F[1])):R=F}return R}function eCe(e,t){if(t.timestampIsSet)return e;var r=new Date(0);return r.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),r.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),r}function tCe(e){return e.match(Ywe)[1].replace(Xwe,"'")}function rCe(e){Ot(1,arguments);var t=Vt(e);return t.setMinutes(0,0,0),t}function lS(e,t){Ot(2,arguments);var r=Vt(e),n=Vt(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function uj(e,t){Ot(2,arguments);var r=N0(e),n=N0(t);return r.getTime()===n.getTime()}function Sk(e){Ot(1,arguments);var t=Vt(e);return t.setMilliseconds(0),t}function cj(e,t){Ot(2,arguments);var r=Vt(e),n=Vt(t);return r.getFullYear()===n.getFullYear()}function _k(e,t){Ot(2,arguments);var r=Vt(e),n=gr(t),a=r.getFullYear(),i=r.getDate(),o=new Date(0);o.setFullYear(a,n,15),o.setHours(0,0,0,0);var s=Pwe(o);return r.setMonth(n,Math.min(i,s)),r}function va(e,t){if(Ot(2,arguments),typeof t!="object"||t===null)throw new RangeError("values parameter must be an object");var r=Vt(e);return isNaN(r.getTime())?new Date(NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=_k(r,t.month)),t.date!=null&&r.setDate(gr(t.date)),t.hours!=null&&r.setHours(gr(t.hours)),t.minutes!=null&&r.setMinutes(gr(t.minutes)),t.seconds!=null&&r.setSeconds(gr(t.seconds)),t.milliseconds!=null&&r.setMilliseconds(gr(t.milliseconds)),r)}function vd(e,t){Ot(2,arguments);var r=Vt(e),n=gr(t);return r.setHours(n),r}function FB(e,t){Ot(2,arguments);var r=Vt(e),n=gr(t);return r.setMinutes(n),r}function nCe(e,t){Ot(2,arguments);var r=Vt(e),n=gr(t),a=Math.floor(r.getMonth()/3)+1,i=n-a;return _k(r,r.getMonth()+i*3)}function MB(e,t){Ot(2,arguments);var r=Vt(e),n=gr(t);return r.setSeconds(n),r}function k3(e,t){Ot(2,arguments);var r=Vt(e),n=gr(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}const uw=1901,Wf=40,aCe={date:uwe,month:lS,year:cj,quarter:uj};function El(e,t,r){const n=aCe[r];return Array.isArray(e)?e.some(a=>n(a,t)):n(e,t)}function kB(e,t,r,n){let a=!1,i=!1,o=!1;Array.isArray(r)&&(r[0]<e&&e<r[1]&&(a=!0),El(r[0],e,"date")&&(i=!0),El(r[1],e,"date")&&(o=!0));const s=r!==null&&(Array.isArray(r)?El(r[0],e,"date")||El(r[1],e,"date"):El(r,e,"date"));return{type:"date",dateObject:{date:Vo(e),month:sn(e),year:pn(e)},inCurrentMonth:lS(e,t),isCurrentDate:El(n,e,"date"),inSpan:a,startOfSpan:i,endOfSpan:o,selected:s,ts:ct(e)}}function iCe(e,t,r){return{type:"month",dateObject:{month:sn(e),year:pn(e)},isCurrent:lS(r,e),selected:t!==null&&El(t,e,"month"),ts:ct(e)}}function oCe(e,t,r){return{type:"year",dateObject:{year:pn(e)},isCurrent:cj(r,e),selected:t!==null&&El(t,e,"year"),ts:ct(e)}}function sCe(e,t,r){return{type:"quarter",dateObject:{quarter:dwe(e),year:pn(e)},isCurrent:uj(r,e),selected:t!==null&&El(t,e,"quarter"),ts:ct(e)}}function KI(e,t,r,n,a=!1){const i=sn(e);let o=ct(Sl(e)),s=ct(ab(o,-1));const l=[];let u=!a;for(;kwe(s)!==n||u;)l.unshift(kB(s,e,t,r)),s=ct(ab(s,-1)),u=!1;for(;sn(o)===i;)l.push(kB(o,e,t,r)),o=ct(ab(o,1));const c=a?l.length<=28?28:l.length<=35?35:42:42;for(;l.length<c;)l.push(kB(o,e,t,r)),o=ct(ab(o,1));return l}function jI(e,t,r){const n=[],a=wk(e);for(let i=0;i<12;i++)n.push(iCe(ct(ha(a,i)),t,r));return n}function YI(e,t,r){const n=[],a=wk(e);for(let i=0;i<4;i++)n.push(sCe(ct(swe(a,i)),t,r));return n}function XI(e,t){const r=[],n=new Date(uw,0,1);for(let a=0;a<200;a++)r.push(oCe(ct(GI(n,a)),e,t));return r}function si(e,t,r,n){const a=Jwe(e,t,r,n);return Ao(a)?nn(a,t,n)===e?a:new Date(NaN):a}function nx(e){if(e===void 0)return;if(typeof e=="number")return e;const[t,r,n]=e.split(":");return{hours:Number(t),minutes:Number(r),seconds:Number(n)}}function kA(e,t){return Array.isArray(e)?e[t==="start"?0:1]:null}var lCe={titleFontSize:"22px"};const uCe=e=>{const{borderRadius:t,fontSize:r,lineHeight:n,textColor2:a,textColor1:i,textColorDisabled:o,dividerColor:s,fontWeightStrong:l,primaryColor:u,baseColor:c,hoverColor:d,cardColor:f,modalColor:A,popoverColor:h}=e;return Object.assign(Object.assign({},lCe),{borderRadius:t,borderColor:Et(f,s),borderColorModal:Et(A,s),borderColorPopover:Et(h,s),textColor:a,titleFontWeight:l,titleTextColor:i,dayTextColor:o,fontSize:r,lineHeight:n,dateColorCurrent:u,dateTextColorCurrent:c,cellColorHover:Et(f,d),cellColorHoverModal:Et(A,d),cellColorHoverPopover:Et(h,d),cellColor:f,cellColorModal:A,cellColorPopover:h,barColor:u})},cCe={name:"Calendar",common:st,peers:{Button:Ci},self:uCe};var dCe=cCe;const dj=e=>{const{fontSize:t,boxShadow2:r,popoverColor:n,textColor2:a,borderRadius:i,borderColor:o,heightSmall:s,heightMedium:l,heightLarge:u,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,dividerColor:A}=e;return{panelFontSize:t,boxShadow:r,color:n,textColor:a,borderRadius:i,border:`1px solid ${o}`,heightSmall:s,heightMedium:l,heightLarge:u,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,dividerColor:A}},fCe={name:"ColorPicker",common:Dt,peers:{Input:hA,Button:ed},self:dj};var ACe=fCe;const hCe={name:"ColorPicker",common:st,peers:{Input:Ro,Button:Ci},self:dj};var vCe=hCe;function pCe(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function Q0(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function gCe(e){return e=Math.round(e),e>=360?359:e<0?0:e}function mCe(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const yCe={rgb:{hex(e){return dc(Qn(e))},hsl(e){const[t,r,n,a]=Qn(e);return cc([...xI(t,r,n),a])},hsv(e){const[t,r,n,a]=Qn(e);return _f([...bI(t,r,n),a])}},hex:{rgb(e){return Ns(Qn(e))},hsl(e){const[t,r,n,a]=Qn(e);return cc([...xI(t,r,n),a])},hsv(e){const[t,r,n,a]=Qn(e);return _f([...bI(t,r,n),a])}},hsl:{hex(e){const[t,r,n,a]=Qh(e);return dc([...wI(t,r,n),a])},rgb(e){const[t,r,n,a]=Qh(e);return Ns([...wI(t,r,n),a])},hsv(e){const[t,r,n,a]=Qh(e);return _f([...PW(t,r,n),a])}},hsv:{hex(e){const[t,r,n,a]=Sf(e);return dc([...Ku(t,r,n),a])},rgb(e){const[t,r,n,a]=Sf(e);return Ns([...Ku(t,r,n),a])},hsl(e){const[t,r,n,a]=Sf(e);return cc([...J1(t,r,n),a])}}};function fj(e,t,r){return r=r||Q0(e),r?r===t?e:yCe[r][t](e):null}const PA="12px",bCe=12,pd="6px",xCe=6,wCe="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)";var CCe=ge({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=X(null);function r(i){!t.value||(Zt("mousemove",document,n),Zt("mouseup",document,a),n(i))}function n(i){const{value:o}=t;if(!o)return;const{width:s,left:l}=o.getBoundingClientRect(),u=gCe((i.clientX-l-xCe)/(s-bCe)*360);e.onUpdateHue(u)}function a(){var i;jt("mousemove",document,n),jt("mouseup",document,a),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:r}},render(){const{clsPrefix:e}=this;return C("div",{class:`${e}-color-picker-slider`,style:{height:PA,borderRadius:pd}},C("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:wCe,height:PA,borderRadius:pd,position:"relative"},onMousedown:this.handleMouseDown},C("div",{style:{position:"absolute",left:pd,right:pd,top:0,bottom:0}},C("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${pd})`,borderRadius:pd,width:PA,height:PA}},C("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:pd,width:PA,height:PA}})))))}});const Ip="12px",SCe=12,gd="6px";var _Ce=ge({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=X(null);function r(i){!t.value||!e.rgba||(Zt("mousemove",document,n),Zt("mouseup",document,a),n(i))}function n(i){const{value:o}=t;if(!o)return;const{width:s,left:l}=o.getBoundingClientRect(),u=(i.clientX-l)/(s-SCe);e.onUpdateAlpha(mCe(u))}function a(){var i;jt("mousemove",document,n),jt("mouseup",document,a),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:L(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:r}},render(){const{clsPrefix:e}=this;return C("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Ip,borderRadius:gd},onMousedown:this.handleMouseDown},C("div",{style:{borderRadius:gd,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},C("div",{class:`${e}-color-picker-checkboard`}),C("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&C("div",{style:{position:"absolute",left:gd,right:gd,top:0,bottom:0}},C("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${gd})`,borderRadius:gd,width:Ip,height:Ip}},C("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:Ns(this.rgba),borderRadius:gd,width:Ip,height:Ip}}))))}});const ob="12px",sb="6px";var BCe=ge({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=X(null);function r(i){!t.value||(Zt("mousemove",document,n),Zt("mouseup",document,a),n(i))}function n(i){const{value:o}=t;if(!o)return;const{width:s,height:l,left:u,bottom:c}=o.getBoundingClientRect(),d=(c-i.clientY)/l,f=(i.clientX-u)/s,A=100*(f>1?1:f<0?0:f),h=100*(d>1?1:d<0?0:d);e.onUpdateSV(A,h)}function a(){var i;jt("mousemove",document,n),jt("mouseup",document,a),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:L(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:r}},render(){const{clsPrefix:e}=this;return C("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},C("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),C("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&C("div",{class:`${e}-color-picker-handle`,style:{width:ob,height:ob,borderRadius:sb,left:`calc(${this.displayedSv[0]}% - ${sb})`,bottom:`calc(${this.displayedSv[1]}% - ${sb})`}},C("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:sb,width:ob,height:ob}})))}});const Bk="n-color-picker";function TCe(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function ECe(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function ICe(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function RCe(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function DCe(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const FCe={paddingSmall:"0 4px"};var P3=ge({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=X(""),{themeRef:r}=We(Bk,null);yr(()=>{t.value=n()});function n(){const{value:o}=e;if(o===null)return"";const{label:s}=e;return s==="HEX"?o:s==="A"?`${Math.floor(o*100)}%`:String(Math.floor(o))}function a(o){t.value=o}function i(o){let s,l;switch(e.label){case"HEX":l=RCe(o),l&&e.onUpdateValue(o),t.value=n();break;case"H":s=ECe(o),s===!1?t.value=n():e.onUpdateValue(s);break;case"S":case"L":case"V":s=ICe(o),s===!1?t.value=n():e.onUpdateValue(s);break;case"A":s=DCe(o),s===!1?t.value=n():e.onUpdateValue(s);break;case"R":case"G":case"B":s=TCe(o),s===!1?t.value=n():e.onUpdateValue(s);break}}return{mergedTheme:r,inputValue:t,handleInputChange:i,handleInputUpdateValue:a}},render(){const{mergedTheme:e}=this;return C(os,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:FCe,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),MCe=ge({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,r){const{showAlpha:n}=e;if(e.mode==="hex"){e.onUpdateValue((n?dc:Yg)(r));return}let a;switch(e.valueArr===null?a=[0,0,0,0]:a=Array.from(e.valueArr),e.mode){case"hsv":a[t]=r,e.onUpdateValue((n?_f:_I)(a));break;case"rgb":a[t]=r,e.onUpdateValue((n?Ns:SI)(a));break;case"hsl":a[t]=r,e.onUpdateValue((n?cc:BI)(a));break}}}},render(){const{clsPrefix:e,modes:t}=this;return C("div",{class:`${e}-color-picker-input`},C("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),C(QK,null,{default:()=>{const{mode:r,valueArr:n,showAlpha:a}=this;if(r==="hex"){let i=null;try{i=n===null?null:(a?dc:Yg)(n)}catch(o){}return C(P3,{label:"HEX",showAlpha:a,value:i,onUpdateValue:o=>{this.handleUnitUpdateValue(0,o)}})}return(r+(a?"a":"")).split("").map((i,o)=>C(P3,{label:i.toUpperCase(),value:n===null?null:n[o],onUpdateValue:s=>{this.handleUnitUpdateValue(o,s)}}))}}))}}),kCe=ge({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:r}=We(Bk,null);return()=>{const{hsla:n,value:a,clsPrefix:i,onClick:o,disabled:s}=e,l=t.label||r.value;return C("div",{class:[`${i}-color-picker-trigger`,s&&`${i}-color-picker-trigger--disabled`],onClick:s?void 0:o},C("div",{class:`${i}-color-picker-trigger__fill`},C("div",{class:`${i}-color-picker-checkboard`}),C("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:n?cc(n):""}}),a&&n?C("div",{class:`${i}-color-picker-trigger__value`,style:{color:n[2]>50||n[3]<.5?"black":"white"}},l?l(a):a):null))}}});function PCe(e,t){if(t==="hsv"){const[r,n,a,i]=Sf(e);return Ns([...Ku(r,n,a),i])}return e}function LCe(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}var OCe=ge({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=L(()=>e.swatches.map(i=>{const o=Q0(i);return{value:i,mode:o,legalValue:PCe(i,o)}}));function r(i){const{mode:o}=e;let{value:s,mode:l}=i;return l||(l="hex",/^[a-zA-Z]+$/.test(s)?s=LCe(s):(is("color-picker",`color ${s} in swatches is invalid.`),s="#000000")),l===o?s:fj(s,o,l)}function n(i){e.onUpdateColor(r(i))}function a(i,o){i.key==="Enter"&&n(o)}return{parsedSwatchesRef:t,handleSwatchSelect:n,handleSwatchKeyDown:a}},render(){const{clsPrefix:e}=this;return C("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>C("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:r=>this.handleSwatchKeyDown(r,t)},C("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),$Ce=ge({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=Q0(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(r){var n;const a=r.target.value;(n=e.onUpdateColor)===null||n===void 0||n.call(e,fj(a.toUpperCase(),e.mode,"hex")),r.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return C("div",{class:`${e}-color-picker-preview__preview`},C("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),C("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),UCe=N([M("color-picker",`
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
height: var(--n-height);
|
|
font-size: var(--n-font-size);
|
|
width: 100%;
|
|
position: relative;
|
|
`),M("color-picker-panel",`
|
|
margin: 4px 0;
|
|
width: 240px;
|
|
font-size: var(--n-panel-font-size);
|
|
color: var(--n-text-color);
|
|
background-color: var(--n-color);
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
border-radius: var(--n-border-radius);
|
|
box-shadow: var(--n-box-shadow);
|
|
`,[gi(),M("input",`
|
|
text-align: center;
|
|
`)]),M("color-picker-checkboard",`
|
|
background: white;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[N("&::after",`
|
|
background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%);
|
|
background-size: 12px 12px;
|
|
background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
|
|
background-repeat: repeat;
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)]),M("color-picker-slider",`
|
|
margin-bottom: 8px;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
`,[G("image",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`),N("&::after",`
|
|
content: "";
|
|
position: absolute;
|
|
border-radius: inherit;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24);
|
|
pointer-events: none;
|
|
`)]),M("color-picker-handle",`
|
|
z-index: 1;
|
|
box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45);
|
|
position: absolute;
|
|
background-color: white;
|
|
overflow: hidden;
|
|
`,[G("fill",`
|
|
box-sizing: border-box;
|
|
border: 2px solid white;
|
|
`)]),M("color-picker-pallete",`
|
|
height: 180px;
|
|
position: relative;
|
|
margin-bottom: 8px;
|
|
cursor: crosshair;
|
|
`,[G("layer",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[j("shadowed",`
|
|
box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24);
|
|
`)])]),M("color-picker-preview",`
|
|
display: flex;
|
|
`,[G("sliders",`
|
|
flex: 1 0 auto;
|
|
`),G("preview",`
|
|
position: relative;
|
|
height: 30px;
|
|
width: 30px;
|
|
margin: 0 0 8px 6px;
|
|
border-radius: 50%;
|
|
box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset;
|
|
overflow: hidden;
|
|
`),G("fill",`
|
|
display: block;
|
|
width: 30px;
|
|
height: 30px;
|
|
`),G("input",`
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
opacity: 0;
|
|
z-index: 1;
|
|
`)]),M("color-picker-input",`
|
|
display: flex;
|
|
align-items: center;
|
|
`,[M("input",`
|
|
flex-grow: 1;
|
|
flex-basis: 0;
|
|
`),G("mode",`
|
|
width: 72px;
|
|
text-align: center;
|
|
`)]),M("color-picker-control",`
|
|
padding: 12px;
|
|
`),M("color-picker-action",`
|
|
display: flex;
|
|
margin-top: -4px;
|
|
border-top: 1px solid var(--n-divider-color);
|
|
padding: 8px 12px;
|
|
justify-content: flex-end;
|
|
`,[M("button","margin-left: 8px;")]),M("color-picker-trigger",`
|
|
border: var(--n-border);
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
border-radius: var(--n-border-radius);
|
|
transition: border-color .3s var(--n-bezier);
|
|
cursor: pointer;
|
|
`,[G("value",`
|
|
white-space: nowrap;
|
|
position: relative;
|
|
`),G("fill",`
|
|
border-radius: var(--n-border-radius);
|
|
position: absolute;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
left: 4px;
|
|
right: 4px;
|
|
top: 4px;
|
|
bottom: 4px;
|
|
`),j("disabled","cursor: not-allowed"),M("color-picker-checkboard",`
|
|
border-radius: var(--n-border-radius);
|
|
`,[N("&::after",`
|
|
--n-block-size: calc((var(--n-height) - 8px) / 3);
|
|
background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2);
|
|
background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px;
|
|
`)])]),M("color-picker-swatches",`
|
|
display: grid;
|
|
grid-gap: 8px;
|
|
flex-wrap: wrap;
|
|
position: relative;
|
|
grid-template-columns: repeat(auto-fill, 18px);
|
|
margin-top: 10px;
|
|
`,[M("color-picker-swatch",`
|
|
width: 18px;
|
|
height: 18px;
|
|
background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%);
|
|
background-size: 8px 8px;
|
|
background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px;
|
|
background-repeat: repeat;
|
|
`,[G("fill",`
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset;
|
|
cursor: pointer;
|
|
`),N("&:focus",`
|
|
outline: none;
|
|
`,[G("fill",[N("&::after",`
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: inherit;
|
|
filter: blur(2px);
|
|
content: "";
|
|
`)])])])])]);const HCe=Object.assign(Object.assign({},Fe.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Dn.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]});var zCe=ge({name:"ColorPicker",props:HCe,setup(e,{slots:t}){const r=X(null);let n=null;const a=bi(e),{mergedSizeRef:i,mergedDisabledRef:o}=a,{localeRef:s}=Io("global"),{mergedClsPrefixRef:l,namespaceRef:u,inlineThemeDisabled:c}=et(e),d=Fe("ColorPicker","-color-picker",UCe,ACe,e,l);Ct(Bk,{themeRef:d,renderLabelRef:Ie(e,"renderLabel"),colorPickerSlots:t});const f=X(e.defaultShow),A=Sr(Ie(e,"show"),f);function h($){const{onUpdateShow:re,"onUpdate:show":ve}=e;re&&Ee(re,$),ve&&Ee(ve,$),f.value=$}const{defaultValue:v}=e,p=X(v===void 0?pCe(e.modes,e.showAlpha):v),g=Sr(Ie(e,"value"),p),m=X([g.value]),y=X(0),b=L(()=>Q0(g.value)),{modes:w}=e,x=X(Q0(g.value)||w[0]||"rgb");function S(){const{modes:$}=e,{value:re}=x,ve=$.findIndex(he=>he===re);~ve?x.value=$[(ve+1)%$.length]:x.value="rgb"}let _,B,T,E,I,R,D,k;const F=L(()=>{const{value:$}=g;if(!$)return null;switch(b.value){case"hsv":return Sf($);case"hsl":return[_,B,T,k]=Qh($),[...PW(_,B,T),k];case"rgb":case"hex":return[I,R,D,k]=Qn($),[...bI(I,R,D),k]}}),P=L(()=>{const{value:$}=g;if(!$)return null;switch(b.value){case"rgb":case"hex":return Qn($);case"hsv":return[_,B,E,k]=Sf($),[...Ku(_,B,E),k];case"hsl":return[_,B,T,k]=Qh($),[...wI(_,B,T),k]}}),O=L(()=>{const{value:$}=g;if(!$)return null;switch(b.value){case"hsl":return Qh($);case"hsv":return[_,B,E,k]=Sf($),[...J1(_,B,E),k];case"rgb":case"hex":return[I,R,D,k]=Qn($),[...xI(I,R,D),k]}}),H=L(()=>{switch(x.value){case"rgb":case"hex":return P.value;case"hsv":return F.value;case"hsl":return O.value}}),V=X(0),W=X(1),Z=X([0,0]);function ee($,re){const{value:ve}=F,he=V.value,oe=ve?ve[3]:1;Z.value=[$,re];const{showAlpha:Y}=e;switch(x.value){case"hsv":le((Y?_f:_I)([he,$,re,oe]),"cursor");break;case"hsl":le((Y?cc:BI)([...J1(he,$,re),oe]),"cursor");break;case"rgb":le((Y?Ns:SI)([...Ku(he,$,re),oe]),"cursor");break;case"hex":le((Y?dc:Yg)([...Ku(he,$,re),oe]),"cursor");break}}function ae($){V.value=$;const{value:re}=F;if(!re)return;const[,ve,he,oe]=re,{showAlpha:Y}=e;switch(x.value){case"hsv":le((Y?_f:_I)([$,ve,he,oe]),"cursor");break;case"rgb":le((Y?Ns:SI)([...Ku($,ve,he),oe]),"cursor");break;case"hex":le((Y?dc:Yg)([...Ku($,ve,he),oe]),"cursor");break;case"hsl":le((Y?cc:BI)([...J1($,ve,he),oe]),"cursor");break}}function ne($){switch(x.value){case"hsv":[_,B,E]=F.value,le(_f([_,B,E,$]),"cursor");break;case"rgb":[I,R,D]=P.value,le(Ns([I,R,D,$]),"cursor");break;case"hex":[I,R,D]=P.value,le(dc([I,R,D,$]),"cursor");break;case"hsl":[_,B,T]=O.value,le(cc([_,B,T,$]),"cursor");break}W.value=$}function le($,re){re==="cursor"?n=$:n=null;const{nTriggerFormChange:ve,nTriggerFormInput:he}=a,{onUpdateValue:oe,"onUpdate:value":Y}=e;oe&&Ee(oe,$),Y&&Ee(Y,$),ve(),he(),p.value=$}function se($){le($,"input"),ar(ce)}function ce($=!0){const{value:re}=g;if(re){const{nTriggerFormChange:ve,nTriggerFormInput:he}=a,{onComplete:oe}=e;oe&&oe(re);const{value:Y}=m,{value:te}=y;$&&(Y.splice(te+1,Y.length,re),y.value=te+1),ve(),he()}}function ye(){const{value:$}=y;$-1<0||(le(m.value[$-1],"input"),ce(!1),y.value=$-1)}function fe(){const{value:$}=y;$<0||$+1>=m.value.length||(le(m.value[$+1],"input"),ce(!1),y.value=$+1)}function Q(){const{value:$}=g,{onConfirm:re}=e;re&&re($),h(!1)}const J=L(()=>y.value>=1),U=L(()=>{const{value:$}=m;return $.length>1&&y.value<$.length-1});mt(A,$=>{$||(m.value=[g.value],y.value=0)}),yr(()=>{if(!(n&&n===g.value)){const{value:$}=F;$&&(V.value=$[0],W.value=$[3],Z.value=[$[1],$[2]])}n=null});const K=L(()=>{const{value:$}=i,{common:{cubicBezierEaseInOut:re},self:{textColor:ve,color:he,panelFontSize:oe,boxShadow:Y,border:te,borderRadius:pe,dividerColor:de,[Se("height",$)]:we,[Se("fontSize",$)]:De}}=d.value;return{"--n-bezier":re,"--n-text-color":ve,"--n-color":he,"--n-panel-font-size":oe,"--n-font-size":De,"--n-box-shadow":Y,"--n-border":te,"--n-border-radius":pe,"--n-height":we,"--n-divider-color":de}}),q=c?_t("color-picker",L(()=>i.value[0]),K,e):void 0;function ie(){var $;const{value:re}=P,{value:ve}=V,{internalActions:he,modes:oe,actions:Y}=e,{value:te}=d,{value:pe}=l;return C("div",{class:[`${pe}-color-picker-panel`,q==null?void 0:q.themeClass.value],onDragstart:de=>{de.preventDefault()},style:c?void 0:K.value},C("div",{class:`${pe}-color-picker-control`},C(BCe,{clsPrefix:pe,rgba:re,displayedHue:ve,displayedSv:Z.value,onUpdateSV:ee,onComplete:ce}),C("div",{class:`${pe}-color-picker-preview`},C("div",{class:`${pe}-color-picker-preview__sliders`},C(CCe,{clsPrefix:pe,hue:ve,onUpdateHue:ae,onComplete:ce}),e.showAlpha?C(_Ce,{clsPrefix:pe,rgba:re,alpha:W.value,onUpdateAlpha:ne,onComplete:ce}):null),e.showPreview?C($Ce,{clsPrefix:pe,mode:x.value,color:P.value&&Yg(P.value),onUpdateColor:de=>le(de,"input")}):null),C(MCe,{clsPrefix:pe,showAlpha:e.showAlpha,mode:x.value,modes:oe,onUpdateMode:S,value:g.value,valueArr:H.value,onUpdateValue:se}),(($=e.swatches)===null||$===void 0?void 0:$.length)&&C(OCe,{clsPrefix:pe,mode:x.value,swatches:e.swatches,onUpdateColor:de=>le(de,"input")})),Y!=null&&Y.length?C("div",{class:`${pe}-color-picker-action`},Y.includes("confirm")&&C(on,{size:"small",onClick:Q,theme:te.peers.Button,themeOverrides:te.peerOverrides.Button},{default:()=>s.value.confirm})):null,t.action?C("div",{class:`${pe}-color-picker-action`},{default:t.action}):he?C("div",{class:`${pe}-color-picker-action`},he.includes("undo")&&C(on,{size:"small",onClick:ye,disabled:!J.value,theme:te.peers.Button,themeOverrides:te.peerOverrides.Button},{default:()=>s.value.undo}),he.includes("redo")&&C(on,{size:"small",onClick:fe,disabled:!U.value,theme:te.peers.Button,themeOverrides:te.peerOverrides.Button},{default:()=>s.value.redo})):null)}return{mergedClsPrefix:l,namespace:u,selfRef:r,hsla:O,rgba:P,mergedShow:A,mergedDisabled:o,isMounted:ji(),adjustedTo:Dn(e),mergedValue:g,handleTriggerClick(){h(!0)},handleClickOutside($){var re;!((re=r.value)===null||re===void 0)&&re.contains(as($))||h(!1)},renderPanel:ie,cssVars:c?void 0:K,themeClass:q==null?void 0:q.themeClass,onRender:q==null?void 0:q.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:r}=this;return r==null||r(),C("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},C(jc,null,{default:()=>[C(Yc,null,{default:()=>C(kCe,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),C(qc,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Dn.tdkey,to:this.adjustedTo},{default:()=>C(zr,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?jr(this.renderPanel(),[[Js,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),NCe={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};const Aj=e=>{const{primaryColor:t,borderRadius:r,lineHeight:n,fontSize:a,cardColor:i,textColor2:o,textColor1:s,dividerColor:l,fontWeightStrong:u,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:A,closeColorPressed:h,modalColor:v,boxShadow1:p,popoverColor:g,actionColor:m}=e;return Object.assign(Object.assign({},NCe),{lineHeight:n,color:i,colorModal:v,colorPopover:g,colorTarget:t,colorEmbedded:m,colorEmbeddedModal:m,colorEmbeddedPopover:m,textColor:o,titleTextColor:s,borderColor:l,actionColor:m,titleFontWeight:u,closeColorHover:A,closeColorPressed:h,closeBorderRadius:r,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:a,fontSizeMedium:a,fontSizeLarge:a,fontSizeHuge:a,boxShadow:p,borderRadius:r})},QCe={name:"Card",common:Dt,self:Aj};var hj=QCe;const VCe={name:"Card",common:st,self(e){const t=Aj(e),{cardColor:r,modalColor:n,popoverColor:a}=e;return t.colorEmbedded=r,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=a,t}};var vj=VCe,WCe=N([M("card",`
|
|
font-size: var(--n-font-size);
|
|
line-height: var(--n-line-height);
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
border-radius: var(--n-border-radius);
|
|
background-color: var(--n-color);
|
|
color: var(--n-text-color);
|
|
word-break: break-word;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`,[KW({background:"var(--n-color-modal)"}),j("hoverable",[N("&:hover","box-shadow: var(--n-box-shadow);")]),j("content-segmented",[N(">",[G("content",{paddingTop:"var(--n-padding-bottom)"})])]),j("content-soft-segmented",[N(">",[G("content",`
|
|
margin: 0 var(--n-padding-left);
|
|
padding: var(--n-padding-bottom) 0;
|
|
`)])]),j("footer-segmented",[N(">",[G("footer",{paddingTop:"var(--n-padding-bottom)"})])]),j("footer-soft-segmented",[N(">",[G("footer",`
|
|
padding: var(--n-padding-bottom) 0;
|
|
margin: 0 var(--n-padding-left);
|
|
`)])]),N(">",[M("card-header",`
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: var(--n-title-font-size);
|
|
padding:
|
|
var(--n-padding-top)
|
|
var(--n-padding-left)
|
|
var(--n-padding-bottom)
|
|
var(--n-padding-left);
|
|
`,[G("main",`
|
|
font-weight: var(--n-title-font-weight);
|
|
transition: color .3s var(--n-bezier);
|
|
flex: 1;
|
|
color: var(--n-title-text-color);
|
|
`),G("extra",`
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: var(--n-font-size);
|
|
font-weight: 400;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
`),G("close",`
|
|
margin: 0 0 0 8px;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`)]),G("action",`
|
|
box-sizing: border-box;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
background-clip: padding-box;
|
|
background-color: var(--n-action-color);
|
|
`),G("content","flex: 1;"),G("content, footer",`
|
|
box-sizing: border-box;
|
|
padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
|
|
font-size: var(--n-font-size);
|
|
`,[N("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),G("action",`
|
|
background-color: var(--n-action-color);
|
|
padding: var(--n-padding-bottom) var(--n-padding-left);
|
|
border-bottom-left-radius: var(--n-border-radius);
|
|
border-bottom-right-radius: var(--n-border-radius);
|
|
`)]),M("card-cover",`
|
|
overflow: hidden;
|
|
width: 100%;
|
|
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
|
`,[N("img",`
|
|
display: block;
|
|
width: 100%;
|
|
`)]),j("bordered",`
|
|
border: 1px solid var(--n-border-color);
|
|
`,[N("&:target","border-color: var(--n-color-target);")]),j("action-segmented",[N(">",[G("action",[N("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),j("content-segmented, content-soft-segmented",[N(">",[G("content",{transition:"border-color 0.3s var(--n-bezier)"},[N("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),j("footer-segmented, footer-soft-segmented",[N(">",[G("footer",{transition:"border-color 0.3s var(--n-bezier)"},[N("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),j("embedded",`
|
|
background-color: var(--n-color-embedded);
|
|
`)]),su(M("card",`
|
|
background: var(--n-color-modal);
|
|
`,[j("embedded",`
|
|
background-color: var(--n-color-embedded-modal);
|
|
`)])),Kc(M("card",`
|
|
background: var(--n-color-popover);
|
|
`,[j("embedded",`
|
|
background-color: var(--n-color-embedded-popover);
|
|
`)]))]);const Tk={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},hoverable:Boolean,role:String,onClose:[Function,Array]},GCe=Zs(Tk),KCe=Object.assign(Object.assign({},Fe.props),Tk);var pj=ge({name:"Card",props:KCe,setup(e){const t=()=>{const{onClose:u}=e;u&&Ee(u)},{inlineThemeDisabled:r,mergedClsPrefixRef:n,mergedRtlRef:a}=et(e),i=Fe("Card","-card",WCe,hj,e,n),o=tn("Card",a,n),s=L(()=>{const{size:u}=e,{self:{color:c,colorModal:d,colorTarget:f,textColor:A,titleTextColor:h,titleFontWeight:v,borderColor:p,actionColor:g,borderRadius:m,lineHeight:y,closeIconColor:b,closeIconColorHover:w,closeIconColorPressed:x,closeColorHover:S,closeColorPressed:_,closeBorderRadius:B,closeIconSize:T,closeSize:E,boxShadow:I,colorPopover:R,colorEmbedded:D,colorEmbeddedModal:k,colorEmbeddedPopover:F,[Se("padding",u)]:P,[Se("fontSize",u)]:O,[Se("titleFontSize",u)]:H},common:{cubicBezierEaseInOut:V}}=i.value,{top:W,left:Z,bottom:ee}=uc(P);return{"--n-bezier":V,"--n-border-radius":m,"--n-color":c,"--n-color-modal":d,"--n-color-popover":R,"--n-color-embedded":D,"--n-color-embedded-modal":k,"--n-color-embedded-popover":F,"--n-color-target":f,"--n-text-color":A,"--n-line-height":y,"--n-action-color":g,"--n-title-text-color":h,"--n-title-font-weight":v,"--n-close-icon-color":b,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":x,"--n-close-color-hover":S,"--n-close-color-pressed":_,"--n-border-color":p,"--n-box-shadow":I,"--n-padding-top":W,"--n-padding-bottom":ee,"--n-padding-left":Z,"--n-font-size":O,"--n-title-font-size":H,"--n-close-size":E,"--n-close-icon-size":T,"--n-close-border-radius":B}}),l=r?_t("card",L(()=>e.size[0]),s,e):void 0;return{rtlEnabled:o,mergedClsPrefix:n,mergedTheme:i,handleCloseClick:t,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:r,mergedClsPrefix:n,rtlEnabled:a,onRender:i,embedded:o,$slots:s}=this;return i==null||i(),C("div",{class:[`${n}-card`,this.themeClass,o&&`${n}-card--embedded`,{[`${n}-card--rtl`]:a,[`${n}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${n}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${n}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${n}-card--bordered`]:t,[`${n}-card--hoverable`]:r}],style:this.cssVars,role:this.role},or(s.cover,l=>l&&C("div",{class:`${n}-card-cover`,role:"none"},l)),or(s.header,l=>l||this.title||this.closable?C("div",{class:`${n}-card-header`,style:this.headerStyle},C("div",{class:`${n}-card-header__main`,role:"heading"},l||this.title),or(s["header-extra"],u=>u&&C("div",{class:`${n}-card-header__extra`,style:this.headerExtraStyle},u)),this.closable?C(Zc,{clsPrefix:n,class:`${n}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),or(s.default,l=>l&&C("div",{class:`${n}-card__content`,style:this.contentStyle,role:"none"},l)),or(s.footer,l=>l&&[C("div",{class:`${n}-card__footer`,style:this.footerStyle,role:"none"},l)]),or(s.action,l=>l&&C("div",{class:`${n}-card__action`,role:"none"},l)))}});const gj=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),jCe={name:"Carousel",common:Dt,self:gj};var YCe=jCe;const XCe={name:"Carousel",common:st,self:gj};var qCe=XCe;function ZCe(e){const{length:t}=e;return t>1&&(e.push(L3(e[0],0,"append")),e.unshift(L3(e[t-1],t-1,"prepend"))),e}function L3(e,t,r){return wa(e,{key:`carousel-item-duplicate-${t}-${r}`})}function O3(e,t,r){return r?e===0?t-3:e===t-1?0:e-1:e}function PB(e,t){return t?e+1:e}function JCe(e,t,r){return e<0?null:e===0?r?t-1:null:e-1}function eSe(e,t,r){return e>t-1?null:e===t-1?r?0:null:e+1}function tSe(e,t){return t&&e>3?e-2:e}function $3(e){return window.TouchEvent&&e instanceof window.TouchEvent}function U3(e,t){let{offsetWidth:r,offsetHeight:n}=e;if(t){const a=getComputedStyle(e);r=r-parseFloat(a.getPropertyValue("padding-left"))-parseFloat(a.getPropertyValue("padding-right")),n=n-parseFloat(a.getPropertyValue("padding-top"))-parseFloat(a.getPropertyValue("padding-bottom"))}return{width:r,height:n}}function lb(e,t,r){return e<t?t:e>r?r:e}function rSe(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,r=e.match(t);if(r){const[,n,,a="ms"]=r;return Number(n)*(a==="ms"?1:1e3)}return 0}const mj="n-carousel-methods",nSe=e=>Ct(mj,e),Ek=(e="unknown",t="component")=>{const r=We(mj);return r||Ta(e,`\`${t}\` must be placed inside \`n-carousel\`.`),r},aSe={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean};var iSe=ge({name:"CarouselDots",props:aSe,setup(e){const{mergedClsPrefixRef:t}=et(e),r=X([]),n=Ek();function a(u,c){switch(u.key){case"Enter":case" ":u.preventDefault(),n.to(c);return}e.keyboard&&s(u)}function i(u){e.trigger==="hover"&&n.to(u)}function o(u){e.trigger==="click"&&n.to(u)}function s(u){var c;if(u.shiftKey||u.altKey||u.ctrlKey||u.metaKey)return;const d=(c=document.activeElement)===null||c===void 0?void 0:c.nodeName.toLowerCase();if(d==="input"||d==="textarea")return;const{code:f}=u,A=f==="PageUp"||f==="ArrowUp",h=f==="PageDown"||f==="ArrowDown",v=f==="PageUp"||f==="ArrowRight",p=f==="PageDown"||f==="ArrowLeft",g=n.isVertical(),m=g?A:v,y=g?h:p;!m&&!y||(u.preventDefault(),m&&!n.isNextDisabled()?(n.next(),l(n.currentIndexRef.value)):y&&!n.isPrevDisabled()&&(n.prev(),l(n.currentIndexRef.value)))}function l(u){var c;(c=r.value[u])===null||c===void 0||c.focus()}return KC(()=>r.value.length=0),{mergedClsPrefix:t,dotEls:r,handleKeydown:a,handleMouseenter:i,handleClick:o}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return C("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},Ide(this.total,r=>{const n=r===this.currentIndex;return C("div",{"aria-selected":n,ref:a=>t.push(a),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,n&&`${e}-carousel__dot--active`],key:r,onClick:()=>this.handleClick(r),onMouseenter:()=>this.handleMouseenter(r),onKeydown:a=>this.handleKeydown(a,r)})}))}});const oSe=C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},C("g",{fill:"none"},C("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),sSe=C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},C("g",{fill:"none"},C("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"})));var lSe=ge({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=et(e),{isVertical:r,isPrevDisabled:n,isNextDisabled:a,prev:i,next:o}=Ek();return{mergedClsPrefix:t,isVertical:r,isPrevDisabled:n,isNextDisabled:a,prev:i,next:o}},render(){const{mergedClsPrefix:e}=this;return C("div",{class:`${e}-carousel__arrow-group`},C("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},oSe),C("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},sSe))}});const ax="CarouselItem",uSe=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===ax};var cSe=ge({name:ax,setup(e){const{mergedClsPrefixRef:t}=et(e),r=Ek(YO(ax),`n-${YO(ax)}`),n=X(),a=L(()=>{const{value:c}=n;return c?r.getSlideIndex(c):-1}),i=L(()=>r.isPrev(a.value)),o=L(()=>r.isNext(a.value)),s=L(()=>r.isActive(a.value)),l=L(()=>r.getSlideStyle(a.value));Ar(()=>r.addSlide(n.value)),kr(()=>{r.removeSlide(n.value)});function u(c){const{value:d}=a;d!==void 0&&(r==null||r.onCarouselItemClick(d,c))}return{mergedClsPrefix:t,selfElRef:n,isPrev:i,isNext:o,isActive:s,index:a,style:l,handleClick:u}},render(){var e;const{$slots:t,mergedClsPrefix:r,isPrev:n,isNext:a,isActive:i,index:o,style:s}=this,l=[`${r}-carousel__slide`,{[`${r}-carousel__slide--current`]:i,[`${r}-carousel__slide--prev`]:n,[`${r}-carousel__slide--next`]:a}];return C("div",{ref:"selfElRef",class:l,role:"option",tabindex:"-1","data-index":o,"aria-hidden":!i,style:s,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:n,isNext:a,isActive:i,index:o}))}}),dSe=M("carousel",`
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
touch-action: pan-y;
|
|
overflow: hidden;
|
|
`,[G("slides",`
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
transition-timing-function: var(--n-bezier);
|
|
transition-property: transform;
|
|
`,[G("slide",`
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
outline: none;
|
|
overflow: hidden;
|
|
`,[N("> img",`
|
|
display: block;
|
|
`)])]),G("dots",`
|
|
position: absolute;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
`,[j("dot",[G("dot",`
|
|
height: var(--n-dot-size);
|
|
width: var(--n-dot-size);
|
|
background-color: var(--n-dot-color);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
outline: none;
|
|
`,[N("&:focus",`
|
|
background-color: var(--n-dot-color-focus);
|
|
`),j("active",`
|
|
background-color: var(--n-dot-color-active);
|
|
`)])]),j("line",[G("dot",`
|
|
border-radius: 9999px;
|
|
width: var(--n-dot-line-width);
|
|
height: 4px;
|
|
background-color: var(--n-dot-color);
|
|
cursor: pointer;
|
|
transition:
|
|
width .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
outline: none;
|
|
`,[N("&:focus",`
|
|
background-color: var(--n-dot-color-focus);
|
|
`),j("active",`
|
|
width: var(--n-dot-line-width-active);
|
|
background-color: var(--n-dot-color-active);
|
|
`)])])]),G("arrow",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
cursor: pointer;
|
|
height: 28px;
|
|
width: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: rgba(255, 255, 255, .2);
|
|
color: var(--n-arrow-color);
|
|
border-radius: 8px;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
font-size: 18px;
|
|
`,[N("svg",`
|
|
height: 1em;
|
|
width: 1em;
|
|
`),N("&:hover",`
|
|
background-color: rgba(255, 255, 255, .3);
|
|
`)]),j("vertical",`
|
|
touch-action: pan-x;
|
|
`,[G("slides",`
|
|
flex-direction: column;
|
|
`),j("fade",[G("slide",`
|
|
top: 50%;
|
|
left: unset;
|
|
transform: translateY(-50%);
|
|
`)]),j("card",[G("slide",`
|
|
top: 50%;
|
|
left: unset;
|
|
transform: translateY(-50%) translateZ(-400px);
|
|
`,[j("current",`
|
|
transform: translateY(-50%) translateZ(0);
|
|
`),j("prev",`
|
|
transform: translateY(-100%) translateZ(-200px);
|
|
`),j("next",`
|
|
transform: translateY(0%) translateZ(-200px);
|
|
`)])])]),j("usercontrol",[G("slides",[N(">",[N("div",`
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 100%;
|
|
height: 100%;
|
|
transform: translate(-50%, -50%);
|
|
`)])])]),j("left",[G("dots",`
|
|
transform: translateY(-50%);
|
|
top: 50%;
|
|
left: 12px;
|
|
flex-direction: column;
|
|
`,[j("line",[G("dot",`
|
|
width: 4px;
|
|
height: var(--n-dot-line-width);
|
|
margin: 4px 0;
|
|
transition:
|
|
height .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
outline: none;
|
|
`,[j("active",`
|
|
height: var(--n-dot-line-width-active);
|
|
`)])])]),G("dot",`
|
|
margin: 4px 0;
|
|
`)]),G("arrow-group",`
|
|
position: absolute;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
`),j("vertical",[G("arrow",`
|
|
transform: rotate(90deg);
|
|
`)]),j("show-arrow",[j("bottom",[G("dots",`
|
|
transform: translateX(0);
|
|
bottom: 18px;
|
|
left: 18px;
|
|
`)]),j("top",[G("dots",`
|
|
transform: translateX(0);
|
|
top: 18px;
|
|
left: 18px;
|
|
`)]),j("left",[G("dots",`
|
|
transform: translateX(0);
|
|
top: 18px;
|
|
left: 18px;
|
|
`)]),j("right",[G("dots",`
|
|
transform: translateX(0);
|
|
top: 18px;
|
|
right: 18px;
|
|
`)])]),j("left",[G("arrow-group",`
|
|
bottom: 12px;
|
|
left: 12px;
|
|
flex-direction: column;
|
|
`,[N("> *:first-child",`
|
|
margin-bottom: 12px;
|
|
`)])]),j("right",[G("dots",`
|
|
transform: translateY(-50%);
|
|
top: 50%;
|
|
right: 12px;
|
|
flex-direction: column;
|
|
`,[j("line",[G("dot",`
|
|
width: 4px;
|
|
height: var(--n-dot-line-width);
|
|
margin: 4px 0;
|
|
transition:
|
|
height .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
outline: none;
|
|
`,[j("active",`
|
|
height: var(--n-dot-line-width-active);
|
|
`)])])]),G("dot",`
|
|
margin: 4px 0;
|
|
`),G("arrow-group",`
|
|
bottom: 12px;
|
|
right: 12px;
|
|
flex-direction: column;
|
|
`,[N("> *:first-child",`
|
|
margin-bottom: 12px;
|
|
`)])]),j("top",[G("dots",`
|
|
transform: translateX(-50%);
|
|
top: 12px;
|
|
left: 50%;
|
|
`,[j("line",[G("dot",`
|
|
margin: 0 4px;
|
|
`)])]),G("dot",`
|
|
margin: 0 4px;
|
|
`),G("arrow-group",`
|
|
top: 12px;
|
|
right: 12px;
|
|
`,[N("> *:first-child",`
|
|
margin-right: 12px;
|
|
`)])]),j("bottom",[G("dots",`
|
|
transform: translateX(-50%);
|
|
bottom: 12px;
|
|
left: 50%;
|
|
`,[j("line",[G("dot",`
|
|
margin: 0 4px;
|
|
`)])]),G("dot",`
|
|
margin: 0 4px;
|
|
`),G("arrow-group",`
|
|
bottom: 12px;
|
|
right: 12px;
|
|
`,[N("> *:first-child",`
|
|
margin-right: 12px;
|
|
`)])]),j("fade",[G("slide",`
|
|
position: absolute;
|
|
opacity: 0;
|
|
transition-property: opacity;
|
|
pointer-events: none;
|
|
`,[j("current",`
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
`)])]),j("card",[G("slides",`
|
|
perspective: 1000px;
|
|
`),G("slide",`
|
|
position: absolute;
|
|
left: 50%;
|
|
opacity: 0;
|
|
transform: translateX(-50%) translateZ(-400px);
|
|
transition-property: opacity, transform;
|
|
`,[j("current",`
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateZ(0);
|
|
z-index: 1;
|
|
`),j("prev",`
|
|
opacity: 0.4;
|
|
transform: translateX(-100%) translateZ(-200px);
|
|
`),j("next",`
|
|
opacity: 0.4;
|
|
transform: translateX(0%) translateZ(-200px);
|
|
`)])])]);const fSe=["transitionDuration","transitionTimingFunction"],ASe=Object.assign(Object.assign({},Fe.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let LB=!1;var hSe=ge({name:"Carousel",props:ASe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=X(null),a=X(null),i=X([]),o={value:[]},s=L(()=>e.direction==="vertical"),l=L(()=>s.value?"height":"width"),u=L(()=>s.value?"bottom":"right"),c=L(()=>e.effect==="slide"),d=L(()=>e.loop&&e.slidesPerView===1&&c.value),f=L(()=>e.effect==="custom"),A=L(()=>!c.value||e.centeredSlides?1:e.slidesPerView),h=L(()=>f.value?1:e.slidesPerView),v=L(()=>A.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),p=X({width:0,height:0}),g=L(()=>{const{value:me}=i;if(!me.length)return[];const{value:Ne}=v;if(Ne)return me.map(ot=>U3(ot));const{value:lt}=h,{value:Tt}=p,{value:dt}=l;let Ae=Tt[dt];if(lt!=="auto"){const{spaceBetween:ot}=e,Ht=Ae-(lt-1)*ot,_e=1/Math.max(1,lt);Ae=Ht*_e}const Re=Object.assign(Object.assign({},Tt),{[dt]:Ae});return me.map(()=>Re)}),m=L(()=>{const{value:me}=g;if(!me.length)return[];const{centeredSlides:Ne,spaceBetween:lt}=e,{value:Tt}=l,{[Tt]:dt}=p.value;let Ae=0;return me.map(({[Tt]:Re})=>{let ot=Ae;return Ne&&(ot+=(Re-dt)/2),Ae+=Re+lt,ot})}),y=X(!1),b=L(()=>{const{transitionStyle:me}=e;return me?zi(me,fSe):{}}),w=L(()=>f.value?0:rSe(b.value.transitionDuration)),x=L(()=>{const{value:me}=i;if(!me.length)return[];const Ne=!(v.value||h.value===1),lt=Re=>{if(Ne){const{value:ot}=l;return{[ot]:`${g.value[Re][ot]}px`}}};if(f.value)return me.map((Re,ot)=>lt(ot));const{effect:Tt,spaceBetween:dt}=e,{value:Ae}=u;return me.reduce((Re,ot,Ht)=>{const _e=Object.assign(Object.assign({},lt(Ht)),{[`margin-${Ae}`]:`${dt}px`});return Re.push(_e),y.value&&(Tt==="fade"||Tt==="card")&&Object.assign(_e,b.value),Re},[])}),S=L(()=>{const{value:me}=A,{length:Ne}=i.value;if(me!=="auto")return Math.max(Ne-me,0)+1;{const{value:lt}=g,{length:Tt}=lt;if(!Tt)return Ne;const{value:dt}=m,{value:Ae}=l,Re=p.value[Ae];let ot=lt[lt.length-1][Ae],Ht=Tt;for(;Ht>1&&ot<Re;)Ht--,ot+=dt[Ht]-dt[Ht-1];return lb(Ht+1,1,Tt)}}),_=L(()=>tSe(S.value,d.value)),B=PB(e.defaultIndex,d.value),T=X(O3(B,S.value,d.value)),E=Sr(Ie(e,"currentIndex"),T),I=L(()=>PB(E.value,d.value));function R(me){var Ne,lt;me=lb(me,0,S.value-1);const Tt=O3(me,S.value,d.value),{value:dt}=E;Tt!==E.value&&(T.value=Tt,(Ne=e["onUpdate:currentIndex"])===null||Ne===void 0||Ne.call(e,Tt,dt),(lt=e.onUpdateCurrentIndex)===null||lt===void 0||lt.call(e,Tt,dt))}function D(me=I.value){return JCe(me,S.value,e.loop)}function k(me=I.value){return eSe(me,S.value,e.loop)}function F(me){const Ne=re(me);return Ne!==null&&D()===Ne}function P(me){const Ne=re(me);return Ne!==null&&k()===Ne}function O(me){return I.value===re(me)}function H(me){return E.value===me}function V(){return D()===null}function W(){return k()===null}function Z(me){const Ne=lb(PB(me,d.value),0,S.value);(me!==E.value||Ne!==I.value)&&R(Ne)}function ee(){const me=D();me!==null&&R(me)}function ae(){const me=k();me!==null&&R(me)}function ne(){(!se||!d.value)&&ee()}function le(){(!se||!d.value)&&ae()}let se=!1,ce=0;const ye=X({});function fe(me,Ne=0){ye.value=Object.assign({},b.value,{transform:s.value?`translateY(${-me}px)`:`translateX(${-me}px)`,transitionDuration:`${Ne}ms`})}function Q(me=0){c.value?J(I.value,me):ce!==0&&(!se&&me>0&&(se=!0),fe(ce=0,me))}function J(me,Ne){const lt=U(me);lt!==ce&&Ne>0&&(se=!0),ce=U(I.value),fe(lt,Ne)}function U(me){let Ne;return me>=S.value-1?Ne=K():Ne=m.value[me]||0,Ne}function K(){if(A.value==="auto"){const{value:me}=l,{[me]:Ne}=p.value,{value:lt}=m,Tt=lt[lt.length-1];let dt;if(Tt===void 0)dt=Ne;else{const{value:Ae}=g;dt=Tt+Ae[Ae.length-1][me]}return dt-Ne}else{const{value:me}=m;return me[S.value-1]||0}}const q={currentIndexRef:E,to:Z,prev:ne,next:le,isVertical:()=>s.value,isHorizontal:()=>!s.value,isPrev:F,isNext:P,isActive:O,isPrevDisabled:V,isNextDisabled:W,getSlideIndex:re,getSlideStyle:ve,addSlide:ie,removeSlide:$,onCarouselItemClick:he};nSe(q);function ie(me){!me||i.value.push(me)}function $(me){if(!me)return;const Ne=re(me);Ne!==-1&&i.value.splice(Ne,1)}function re(me){return typeof me=="number"?me:me?i.value.indexOf(me):-1}function ve(me){const Ne=re(me);if(Ne!==-1){const lt=[x.value[Ne]],Tt=q.isPrev(Ne),dt=q.isNext(Ne);return Tt&<.push(e.prevSlideStyle||""),dt&<.push(e.nextSlideStyle||""),rs(lt)}}function he(me,Ne){let lt=!se&&!ze&&!Xe;e.effect==="card"&<&&!O(me)&&(Z(me),lt=!1),lt||(Ne.preventDefault(),Ne.stopPropagation())}let oe=null;function Y(){oe&&(clearInterval(oe),oe=null)}function te(){Y(),!e.autoplay||_.value<2||(oe=window.setInterval(ae,e.interval))}let pe=0,de=0,we=0,De=0,ze=!1,Xe=!1;function ke(me){var Ne;if(LB||!(!((Ne=a.value)===null||Ne===void 0)&&Ne.contains(as(me))))return;LB=!0,ze=!0,Xe=!1,De=Date.now(),Y(),me.type!=="touchstart"&&!me.target.isContentEditable&&me.preventDefault();const lt=$3(me)?me.touches[0]:me;s.value?de=lt.clientY:pe=lt.clientX,e.touchable&&(Zt("touchmove",document,Ge,{passive:!0}),Zt("touchend",document,it),Zt("touchcancel",document,it)),e.draggable&&(Zt("mousemove",document,Ge),Zt("mouseup",document,it))}function Ge(me){const{value:Ne}=s,{value:lt}=l,Tt=$3(me)?me.touches[0]:me,dt=Ne?Tt.clientY-de:Tt.clientX-pe,Ae=p.value[lt];we=lb(dt,-Ae,Ae),me.cancelable&&me.preventDefault(),c.value&&fe(ce-we,0)}function it(){const{value:me}=I;let Ne=me;if(!se&&we!==0&&c.value){const lt=ce-we,Tt=[...m.value.slice(0,S.value-1),K()];let dt=null;for(let Ae=0;Ae<Tt.length;Ae++){const Re=Math.abs(Tt[Ae]-lt);if(dt!==null&&dt<Re)break;dt=Re,Ne=Ae}}if(Ne===me){const lt=Date.now()-De,{value:Tt}=l,dt=p.value[Tt];we>dt/2||we/lt>.4?Ne=D(me):(we<-dt/2||we/lt<-.4)&&(Ne=k(me))}Ne!==null&&Ne!==me?(Xe=!0,R(Ne),ar(()=>{(!d.value||T.value!==E.value)&&Q(w.value)})):Q(w.value),ut(),te()}function ut(){ze&&(LB=!1),ze=!1,pe=0,de=0,we=0,De=0,jt("touchmove",document,Ge),jt("touchend",document,it),jt("touchcancel",document,it),jt("mousemove",document,Ge),jt("mouseup",document,it)}function Ke(){if(c.value&&se){const{value:me}=I;J(me,0)}else te();c.value&&(ye.value.transitionDuration="0ms"),se=!1}function xt(me){if(me.preventDefault(),se)return;let{deltaX:Ne,deltaY:lt}=me;me.shiftKey&&!Ne&&(Ne=lt);const Tt=-1,dt=1,Ae=(Ne||lt)>0?dt:Tt;let Re=0,ot=0;s.value?ot=Ae:Re=Ae;const Ht=10;(ot*lt>=Ht||Re*Ne>=Ht)&&(Ae===dt&&!W()?ae():Ae===Tt&&!V()&&ee())}function ue(){p.value=U3(n.value,!0),te()}function Te(){var me,Ne;v.value&&((Ne=(me=g.effect).scheduler)===null||Ne===void 0||Ne.call(me),g.effect.run())}function He(){e.autoplay&&Y()}function Je(){e.autoplay&&te()}Ar(()=>{yr(te),requestAnimationFrame(()=>y.value=!0)}),kr(()=>{ut(),Y()}),Nm(()=>{const{value:me}=i,{value:Ne}=o,lt=new Map,Tt=Ae=>lt.has(Ae)?lt.get(Ae):-1;let dt=!1;for(let Ae=0;Ae<me.length;Ae++){const Re=Ne.findIndex(ot=>ot.el===me[Ae]);Re!==Ae&&(dt=!0),lt.set(me[Ae],Re)}dt&&me.sort((Ae,Re)=>Tt(Ae)-Tt(Re))}),mt(I,(me,Ne)=>{if(me!==Ne)if(te(),c.value){if(d.value&&_.value>2){const{value:lt}=S;me===lt-2&&Ne===1?me=0:me===1&&Ne===lt-2&&(me=lt-1)}J(me,w.value)}else Q()},{immediate:!0}),mt([d,A],()=>void ar(()=>R(I.value))),mt(m,()=>c.value&&Q(),{deep:!0}),mt(c,me=>{me?Q():(se=!1,fe(ce=0))});const nt=L(()=>({onTouchstartPassive:e.touchable?ke:void 0,onMousedown:e.draggable?ke:void 0,onWheel:e.mousewheel?xt:void 0})),be=L(()=>Object.assign(Object.assign({},zi(q,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:_.value,currentIndex:E.value})),Le=L(()=>({total:_.value,currentIndex:E.value,to:q.to})),je={getCurrentIndex:()=>E.value,to:Z,prev:ee,next:ae},ft=Fe("Carousel","-carousel",dSe,YCe,e,t),Ce=L(()=>{const{common:{cubicBezierEaseInOut:me},self:{dotSize:Ne,dotColor:lt,dotColorActive:Tt,dotColorFocus:dt,dotLineWidth:Ae,dotLineWidthActive:Re,arrowColor:ot}}=ft.value;return{"--n-bezier":me,"--n-dot-color":lt,"--n-dot-color-focus":dt,"--n-dot-color-active":Tt,"--n-dot-size":Ne,"--n-dot-line-width":Ae,"--n-dot-line-width-active":Re,"--n-arrow-color":ot}}),Qe=r?_t("carousel",void 0,Ce,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:n,slidesElRef:a,slideVNodes:o,duplicatedable:d,userWantsControl:f,autoSlideSize:v,displayIndex:E,realIndex:I,slideStyles:x,translateStyle:ye,slidesControlListeners:nt,handleTransitionEnd:Ke,handleResize:ue,handleSlideResize:Te,handleMouseenter:He,handleMouseleave:Je,isActive:H,arrowSlotProps:be,dotSlotProps:Le},je),{cssVars:r?void 0:Ce,themeClass:Qe==null?void 0:Qe.themeClass,onRender:Qe==null?void 0:Qe.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:r,userWantsControl:n,slideStyles:a,dotType:i,dotPlacement:o,slidesControlListeners:s,transitionProps:l={},arrowSlotProps:u,dotSlotProps:c,$slots:{default:d,dots:f,arrow:A}}=this,h=d&&go(d())||[];let v=vSe(h);return v.length||(v=h.map(p=>C(cSe,null,{default:()=>wa(p)}))),this.duplicatedable&&(v=ZCe(v)),this.slideVNodes.value=v,this.autoSlideSize&&(v=v.map(p=>C(bo,{onResize:this.handleSlideResize},{default:()=>p}))),(e=this.onRender)===null||e===void 0||e.call(this),C("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${o}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,n&&`${t}-carousel--usercontrol`],style:this.cssVars},s,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),C(bo,{onResize:this.handleResize},{default:()=>C("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},n?v.map((p,g)=>C("div",{style:a[g],key:g},jr(C(zr,Object.assign({},l),{default:()=>p}),[[Bn,this.isActive(g)]]))):v)}),this.showDots&&c.total>1&&k0(f,c,()=>[C(iSe,{key:i+o,total:c.total,currentIndex:c.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),r&&k0(A,u,()=>[C(lSe,null)]))}});function vSe(e){return e.reduce((t,r)=>(uSe(r)&&t.push(r),t),[])}var pSe={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px"};const yj=e=>{const{baseColor:t,inputColorDisabled:r,cardColor:n,modalColor:a,popoverColor:i,textColorDisabled:o,borderColor:s,primaryColor:l,textColor2:u,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:A,lineHeight:h}=e;return Object.assign(Object.assign({},pSe),{labelLineHeight:h,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,borderRadius:A,color:t,colorChecked:l,colorDisabled:r,colorDisabledChecked:r,colorTableHeader:n,colorTableHeaderModal:a,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:o,checkMarkColorDisabledChecked:o,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${Ve(l,{alpha:.3})}`,textColor:u,textColorDisabled:o})},gSe={name:"Checkbox",common:Dt,self:yj};var Ik=gSe;const mSe={name:"Checkbox",common:st,self(e){const{cardColor:t}=e,r=yj(e);return r.color="#0000",r.checkMarkColor=t,r}};var Qv=mSe;const ySe=e=>{const{borderRadius:t,boxShadow2:r,popoverColor:n,textColor2:a,textColor3:i,primaryColor:o,textColorDisabled:s,dividerColor:l,hoverColor:u,fontSizeMedium:c,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:r,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:d,optionFontSize:c,optionColorHover:u,optionTextColor:a,optionTextColorActive:o,optionTextColorDisabled:s,optionCheckMarkColor:o,loadingColor:o,columnWidth:"180px"}},bSe={name:"Cascader",common:st,peers:{InternalSelectMenu:qm,InternalSelection:xk,Scrollbar:wi,Checkbox:Qv,Empty:Xm},self:ySe};var xSe=bSe,wSe=C("svg",{viewBox:"0 0 64 64",class:"check-icon"},C("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),CSe=C("svg",{viewBox:"0 0 100 100",class:"line-icon"},C("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"}));const bj="n-checkbox-group",SSe={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]};var xj=ge({name:"CheckboxGroup",props:SSe,setup(e){const{mergedClsPrefixRef:t}=et(e),r=bi(e),{mergedSizeRef:n,mergedDisabledRef:a}=r,i=X(e.defaultValue),o=L(()=>e.value),s=Sr(o,i),l=L(()=>{var d;return((d=s.value)===null||d===void 0?void 0:d.length)||0}),u=L(()=>Array.isArray(s.value)?new Set(s.value):new Set);function c(d,f){const{nTriggerFormInput:A,nTriggerFormChange:h}=r,{onChange:v,"onUpdate:value":p,onUpdateValue:g}=e;if(Array.isArray(s.value)){const m=Array.from(s.value),y=m.findIndex(b=>b===f);d?~y||(m.push(f),g&&Ee(g,m,{actionType:"check",value:f}),p&&Ee(p,m,{actionType:"check",value:f}),A(),h(),i.value=m,v&&Ee(v,m)):~y&&(m.splice(y,1),g&&Ee(g,m,{actionType:"uncheck",value:f}),p&&Ee(p,m,{actionType:"uncheck",value:f}),v&&Ee(v,m),i.value=m,A(),h())}else d?(g&&Ee(g,[f],{actionType:"check",value:f}),p&&Ee(p,[f],{actionType:"check",value:f}),v&&Ee(v,[f]),i.value=[f],A(),h()):(g&&Ee(g,[],{actionType:"uncheck",value:f}),p&&Ee(p,[],{actionType:"uncheck",value:f}),v&&Ee(v,[]),i.value=[],A(),h())}return Ct(bj,{checkedCountRef:l,maxRef:Ie(e,"max"),minRef:Ie(e,"min"),valueSetRef:u,disabledRef:a,mergedSizeRef:n,toggleCheckbox:c}),{mergedClsPrefix:t}},render(){return C("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),_Se=N([M("checkbox",`
|
|
line-height: var(--n-label-line-height);
|
|
font-size: var(--n-font-size);
|
|
outline: none;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
flex-wrap: nowrap;
|
|
align-items: flex-start;
|
|
word-break: break-word;
|
|
--n-merged-color-table: var(--n-color-table);
|
|
`,[N("&:hover",[M("checkbox-box",[G("border",{border:"var(--n-border-checked)"})])]),N("&:focus:not(:active)",[M("checkbox-box",[G("border",`
|
|
border: var(--n-border-focus);
|
|
box-shadow: var(--n-box-shadow-focus);
|
|
`)])]),j("inside-table",[M("checkbox-box",`
|
|
background-color: var(--n-merged-color-table);
|
|
`)]),j("checked",[M("checkbox-box",`
|
|
background-color: var(--n-color-checked);
|
|
`,[M("checkbox-icon",[N(".check-icon",`
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
`)])])]),j("indeterminate",[M("checkbox-box",[M("checkbox-icon",[N(".check-icon",`
|
|
opacity: 0;
|
|
transform: scale(.5);
|
|
`),N(".line-icon",`
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
`)])])]),j("checked, indeterminate",[N("&:focus:not(:active)",[M("checkbox-box",[G("border",`
|
|
border: var(--n-border-checked);
|
|
box-shadow: var(--n-box-shadow-focus);
|
|
`)])]),M("checkbox-box",`
|
|
background-color: var(--n-color-checked);
|
|
border-left: 0;
|
|
border-top: 0;
|
|
`,[G("border",{border:"var(--n-border-checked)"})])]),j("disabled",{cursor:"not-allowed"},[j("checked",[M("checkbox-box",`
|
|
background-color: var(--n-color-disabled-checked);
|
|
`,[G("border",{border:"var(--n-border-disabled-checked)"}),M("checkbox-icon",[N(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),M("checkbox-box",`
|
|
background-color: var(--n-color-disabled);
|
|
`,[G("border",{border:"var(--n-border-disabled)"}),M("checkbox-icon",[N(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),G("label",{color:"var(--n-text-color-disabled)"})]),M("checkbox-box-wrapper",`
|
|
position: relative;
|
|
width: var(--n-size);
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`),M("checkbox-box",`
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
height: var(--n-size);
|
|
width: var(--n-size);
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
border-radius: var(--n-border-radius);
|
|
background-color: var(--n-color);
|
|
transition: background-color 0.3s var(--n-bezier);
|
|
`,[G("border",`
|
|
transition:
|
|
border-color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier);
|
|
border-radius: inherit;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
border: var(--n-border);
|
|
`),M("checkbox-icon",`
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: absolute;
|
|
left: 1px;
|
|
right: 1px;
|
|
top: 1px;
|
|
bottom: 1px;
|
|
`,[N(".check-icon, .line-icon",`
|
|
width: 100%;
|
|
fill: var(--n-check-mark-color);
|
|
opacity: 0;
|
|
transform: scale(0.5);
|
|
transform-origin: center;
|
|
transition:
|
|
fill 0.3s var(--n-bezier),
|
|
transform 0.3s var(--n-bezier),
|
|
opacity 0.3s var(--n-bezier),
|
|
border-color 0.3s var(--n-bezier);
|
|
`),Wn({left:"1px",top:"1px"})])]),G("label",`
|
|
color: var(--n-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
padding: var(--n-label-padding);
|
|
`,[N("&:empty",{display:"none"})])]),su(M("checkbox",`
|
|
--n-merged-color-table: var(--n-color-table-modal);
|
|
`)),Kc(M("checkbox",`
|
|
--n-merged-color-table: var(--n-color-table-popover);
|
|
`))]);const BSe=Object.assign(Object.assign({},Fe.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]});var Zm=ge({name:"Checkbox",props:BSe,setup(e){const t=X(null),{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:a}=et(e),i=bi(e,{mergedSize(x){const{size:S}=e;if(S!==void 0)return S;if(l){const{value:_}=l.mergedSizeRef;if(_!==void 0)return _}if(x){const{mergedSize:_}=x;if(_!==void 0)return _.value}return"medium"},mergedDisabled(x){const{disabled:S}=e;if(S!==void 0)return S;if(l){if(l.disabledRef.value)return!0;const{maxRef:{value:_},checkedCountRef:B}=l;if(_!==void 0&&B.value>=_&&!f.value)return!0;const{minRef:{value:T}}=l;if(T!==void 0&&B.value<=T&&f.value)return!0}return x?x.disabled.value:!1}}),{mergedDisabledRef:o,mergedSizeRef:s}=i,l=We(bj,null),u=X(e.defaultChecked),c=Ie(e,"checked"),d=Sr(c,u),f=Rt(()=>{if(l){const x=l.valueSetRef.value;return x&&e.value!==void 0?x.has(e.value):!1}else return d.value===e.checkedValue}),A=Fe("Checkbox","-checkbox",_Se,Ik,e,r);function h(x){if(l&&e.value!==void 0)l.toggleCheckbox(!f.value,e.value);else{const{onChange:S,"onUpdate:checked":_,onUpdateChecked:B}=e,{nTriggerFormInput:T,nTriggerFormChange:E}=i,I=f.value?e.uncheckedValue:e.checkedValue;_&&Ee(_,I,x),B&&Ee(B,I,x),S&&Ee(S,I,x),T(),E(),u.value=I}}function v(x){o.value||h(x)}function p(x){if(!o.value)switch(x.key){case" ":case"Enter":h(x)}}function g(x){switch(x.key){case" ":x.preventDefault()}}const m={focus:()=>{var x;(x=t.value)===null||x===void 0||x.focus()},blur:()=>{var x;(x=t.value)===null||x===void 0||x.blur()}},y=tn("Checkbox",a,r),b=L(()=>{const{value:x}=s,{common:{cubicBezierEaseInOut:S},self:{borderRadius:_,color:B,colorChecked:T,colorDisabled:E,colorTableHeader:I,colorTableHeaderModal:R,colorTableHeaderPopover:D,checkMarkColor:k,checkMarkColorDisabled:F,border:P,borderFocus:O,borderDisabled:H,borderChecked:V,boxShadowFocus:W,textColor:Z,textColorDisabled:ee,checkMarkColorDisabledChecked:ae,colorDisabledChecked:ne,borderDisabledChecked:le,labelPadding:se,labelLineHeight:ce,[Se("fontSize",x)]:ye,[Se("size",x)]:fe}}=A.value;return{"--n-label-line-height":ce,"--n-size":fe,"--n-bezier":S,"--n-border-radius":_,"--n-border":P,"--n-border-checked":V,"--n-border-focus":O,"--n-border-disabled":H,"--n-border-disabled-checked":le,"--n-box-shadow-focus":W,"--n-color":B,"--n-color-checked":T,"--n-color-table":I,"--n-color-table-modal":R,"--n-color-table-popover":D,"--n-color-disabled":E,"--n-color-disabled-checked":ne,"--n-text-color":Z,"--n-text-color-disabled":ee,"--n-check-mark-color":k,"--n-check-mark-color-disabled":F,"--n-check-mark-color-disabled-checked":ae,"--n-font-size":ye,"--n-label-padding":se}}),w=n?_t("checkbox",L(()=>s.value[0]),b,e):void 0;return Object.assign(i,m,{rtlEnabled:y,selfRef:t,mergedClsPrefix:r,mergedDisabled:o,renderedChecked:f,mergedTheme:A,labelId:yo(),handleClick:v,handleKeyUp:p,handleKeyDown:g,cssVars:n?void 0:b,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:r,mergedDisabled:n,indeterminate:a,privateInsideTable:i,cssVars:o,labelId:s,label:l,mergedClsPrefix:u,focusable:c,handleKeyUp:d,handleKeyDown:f,handleClick:A}=this;return(e=this.onRender)===null||e===void 0||e.call(this),C("div",{ref:"selfRef",class:[`${u}-checkbox`,this.themeClass,this.rtlEnabled&&`${u}-checkbox--rtl`,r&&`${u}-checkbox--checked`,n&&`${u}-checkbox--disabled`,a&&`${u}-checkbox--indeterminate`,i&&`${u}-checkbox--inside-table`],tabindex:n||!c?void 0:0,role:"checkbox","aria-checked":a?"mixed":r,"aria-labelledby":s,style:o,onKeyup:d,onKeydown:f,onClick:A,onMousedown:()=>{Zt("selectstart",window,h=>{h.preventDefault()},{once:!0})}},C("div",{class:`${u}-checkbox-box-wrapper`},"\xA0",C("div",{class:`${u}-checkbox-box`},C(sl,null,{default:()=>this.indeterminate?C("div",{key:"indeterminate",class:`${u}-checkbox-icon`},CSe):C("div",{key:"check",class:`${u}-checkbox-icon`},wSe)}),C("div",{class:`${u}-checkbox-box__border`}))),l!==null||t.default?C("span",{class:`${u}-checkbox__label`,id:s},t.default?t.default():l):null)}});const TSe={name:"Code",common:st,self(e){const{textColor2:t,fontSize:r,fontWeightStrong:n,textColor3:a}=e;return{textColor:t,fontSize:r,fontWeightStrong:n,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:a}}};var wj=TSe;const ESe=e=>{const{textColor2:t,fontSize:r,fontWeightStrong:n,textColor3:a}=e;return{textColor:t,fontSize:r,fontWeightStrong:n,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:a}},ISe={name:"Code",common:Dt,self:ESe};var RSe=ISe,DSe=N([M("code",`
|
|
font-size: var(--n-font-size);
|
|
font-family: var(--n-font-family);
|
|
`,[j("show-line-numbers",`
|
|
display: flex;
|
|
`),G("line-numbers",`
|
|
user-select: none;
|
|
padding-right: 12px;
|
|
text-align: right;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-line-number-text-color);
|
|
`),j("word-wrap",[N("pre",`
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
`)]),N("pre",`
|
|
margin: 0;
|
|
line-height: inherit;
|
|
font-size: inherit;
|
|
font-family: inherit;
|
|
`),N("[class^=hljs]",`
|
|
color: var(--n-text-color);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
`)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment,
|
|
${t} .hljs-quote {
|
|
color: var(--n-mono-3);
|
|
font-style: italic;
|
|
}`,`${t} .hljs-doctag,
|
|
${t} .hljs-keyword,
|
|
${t} .hljs-formula {
|
|
color: var(--n-hue-3);
|
|
}`,`${t} .hljs-section,
|
|
${t} .hljs-name,
|
|
${t} .hljs-selector-tag,
|
|
${t} .hljs-deletion,
|
|
${t} .hljs-subst {
|
|
color: var(--n-hue-5);
|
|
}`,`${t} .hljs-literal {
|
|
color: var(--n-hue-1);
|
|
}`,`${t} .hljs-string,
|
|
${t} .hljs-regexp,
|
|
${t} .hljs-addition,
|
|
${t} .hljs-attribute,
|
|
${t} .hljs-meta-string {
|
|
color: var(--n-hue-4);
|
|
}`,`${t} .hljs-built_in,
|
|
${t} .hljs-class .hljs-title {
|
|
color: var(--n-hue-6-2);
|
|
}`,`${t} .hljs-attr,
|
|
${t} .hljs-variable,
|
|
${t} .hljs-template-variable,
|
|
${t} .hljs-type,
|
|
${t} .hljs-selector-class,
|
|
${t} .hljs-selector-attr,
|
|
${t} .hljs-selector-pseudo,
|
|
${t} .hljs-number {
|
|
color: var(--n-hue-6);
|
|
}`,`${t} .hljs-symbol,
|
|
${t} .hljs-bullet,
|
|
${t} .hljs-link,
|
|
${t} .hljs-meta,
|
|
${t} .hljs-selector-id,
|
|
${t} .hljs-title {
|
|
color: var(--n-hue-2);
|
|
}`,`${t} .hljs-emphasis {
|
|
font-style: italic;
|
|
}`,`${t} .hljs-strong {
|
|
font-weight: var(--n-font-weight-strong);
|
|
}`,`${t} .hljs-link {
|
|
text-decoration: underline;
|
|
}`]}]);const FSe=Object.assign(Object.assign({},Fe.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean});var MSe=ge({name:"Code",props:FSe,setup(e,{slots:t}){const{internalNoHighlight:r}=e,{mergedClsPrefixRef:n,inlineThemeDisabled:a}=et(),i=X(null),o=r?{value:void 0}:Wye(e),s=(A,h,v)=>{const{value:p}=o;return!p||!(A&&p.getLanguage(A))?null:p.highlight(v?h.trim():h,{language:A}).value},l=L(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),u=()=>{if(t.default)return;const{value:A}=i;if(!A)return;const{language:h}=e,v=e.uri?window.decodeURIComponent(e.code):e.code;if(h){const g=s(h,v,e.trim);if(g!==null){if(e.inline)A.innerHTML=g;else{const m=A.querySelector(".__code__");m&&A.removeChild(m);const y=document.createElement("pre");y.className="__code__",y.innerHTML=g,A.appendChild(y)}return}}if(e.inline){A.textContent=v;return}const p=A.querySelector(".__code__");if(p)p.textContent=v;else{const g=document.createElement("pre");g.className="__code__",g.textContent=v,A.innerHTML="",A.appendChild(g)}};Ar(u),mt(Ie(e,"language"),u),mt(Ie(e,"code"),u),r||mt(o,u);const c=Fe("Code","-code",DSe,RSe,e,n),d=L(()=>{const{common:{cubicBezierEaseInOut:A,fontFamilyMono:h},self:{textColor:v,fontSize:p,fontWeightStrong:g,lineNumberTextColor:m,"mono-3":y,"hue-1":b,"hue-2":w,"hue-3":x,"hue-4":S,"hue-5":_,"hue-5-2":B,"hue-6":T,"hue-6-2":E}}=c.value,{internalFontSize:I}=e;return{"--n-font-size":I?`${I}px`:p,"--n-font-family":h,"--n-font-weight-strong":g,"--n-bezier":A,"--n-text-color":v,"--n-mono-3":y,"--n-hue-1":b,"--n-hue-2":w,"--n-hue-3":x,"--n-hue-4":S,"--n-hue-5":_,"--n-hue-5-2":B,"--n-hue-6":T,"--n-hue-6-2":E,"--n-line-number-text-color":m}}),f=a?_t("code",L(()=>`${e.internalFontSize||"a"}`),d,e):void 0;return{mergedClsPrefix:n,codeRef:i,mergedShowLineNumbers:l,lineNumbers:L(()=>{let A=1;const h=[];let v=!1;for(const p of e.code)p===`
|
|
`?(v=!0,h.push(A++)):v=!1;return v||h.push(A++),h.join(`
|
|
`)}),cssVars:a?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e,t;const{mergedClsPrefix:r,wordWrap:n,mergedShowLineNumbers:a,onRender:i}=this;return i==null||i(),C("code",{class:[`${r}-code`,this.themeClass,n&&`${r}-code--word-wrap`,a&&`${r}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},a?C("pre",{class:`${r}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});const Cj=e=>{const{fontWeight:t,textColor1:r,textColor2:n,textColorDisabled:a,dividerColor:i,fontSize:o}=e;return{titleFontSize:o,titleFontWeight:t,dividerColor:i,titleTextColor:r,titleTextColorDisabled:a,fontSize:o,textColor:n,arrowColor:n,arrowColorDisabled:a,itemMargin:"16px 0 0 0"}},kSe={name:"Collapse",common:Dt,self:Cj};var PSe=kSe;const LSe={name:"Collapse",common:st,self:Cj};var OSe=LSe,$Se=M("collapse","width: 100%;",[M("collapse-item",`
|
|
font-size: var(--n-font-size);
|
|
color: var(--n-text-color);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
margin: var(--n-item-margin);
|
|
`,[j("disabled",[G("header","cursor: not-allowed;",[G("header-main",`
|
|
color: var(--n-title-text-color-disabled);
|
|
`),M("collapse-item-arrow",`
|
|
color: var(--n-arrow-color-disabled);
|
|
`)])]),M("collapse-item","margin-left: 32px;"),N("&:first-child","margin-top: 0;"),N("&:first-child >",[G("header","padding-top: 0;")]),j("left-arrow-placement",[G("header",[M("collapse-item-arrow","margin-right: 4px;")])]),j("right-arrow-placement",[G("header",[M("collapse-item-arrow","margin-left: 4px;")])]),G("content-wrapper",[G("content-inner","padding-top: 16px;"),Yl({duration:"0.15s"})]),j("active",[G("header",[j("active",[M("collapse-item-arrow","transform: rotate(90deg);")])])]),N("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),G("header",`
|
|
font-size: var(--n-title-font-size);
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
transition: color .3s var(--n-bezier);
|
|
position: relative;
|
|
padding: 16px 0 0 0;
|
|
color: var(--n-title-text-color);
|
|
cursor: pointer;
|
|
`,[G("header-main",`
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
font-weight: var(--n-title-font-weight);
|
|
transition: color .3s var(--n-bezier);
|
|
flex: 1;
|
|
color: var(--n-title-text-color);
|
|
`),G("header-extra",`
|
|
display: flex;
|
|
align-items: center;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
`),M("collapse-item-arrow",`
|
|
display: flex;
|
|
transition:
|
|
transform .15s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
font-size: 18px;
|
|
color: var(--n-arrow-color);
|
|
`)])])]);const USe=Object.assign(Object.assign({},Fe.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),Sj="n-collapse";var HSe=ge({name:"Collapse",props:USe,setup(e,{slots:t}){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:a}=et(e),i=X(e.defaultExpandedNames),o=L(()=>e.expandedNames),s=Sr(o,i),l=Fe("Collapse","-collapse",$Se,PSe,e,r);function u(v){const{"onUpdate:expandedNames":p,onUpdateExpandedNames:g,onExpandedNamesChange:m}=e;g&&Ee(g,v),p&&Ee(p,v),m&&Ee(m,v),i.value=v}function c(v){const{onItemHeaderClick:p}=e;p&&Ee(p,v)}function d(v,p,g){const{accordion:m}=e,{value:y}=s;if(m)v?(u([p]),c({name:p,expanded:!0,event:g})):(u([]),c({name:p,expanded:!1,event:g}));else if(!Array.isArray(y))u([p]),c({name:p,expanded:!0,event:g});else{const b=y.slice(),w=b.findIndex(x=>p===x);~w?(b.splice(w,1),u(b),c({name:p,expanded:!1,event:g})):(b.push(p),u(b),c({name:p,expanded:!0,event:g}))}}Ct(Sj,{props:e,mergedClsPrefixRef:r,expandedNamesRef:s,slots:t,toggleItem:d});const f=tn("Collapse",a,r),A=L(()=>{const{common:{cubicBezierEaseInOut:v},self:{titleFontWeight:p,dividerColor:g,titleTextColor:m,titleTextColorDisabled:y,textColor:b,arrowColor:w,fontSize:x,titleFontSize:S,arrowColorDisabled:_,itemMargin:B}}=l.value;return{"--n-font-size":x,"--n-bezier":v,"--n-text-color":b,"--n-divider-color":g,"--n-title-font-size":S,"--n-title-text-color":m,"--n-title-text-color-disabled":y,"--n-title-font-weight":p,"--n-arrow-color":w,"--n-arrow-color-disabled":_,"--n-item-margin":B}}),h=n?_t("collapse",void 0,A,e):void 0;return{rtlEnabled:f,mergedTheme:l,mergedClsPrefix:r,cssVars:n?void 0:A,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),C("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),zSe=ge({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:XW(Ie(e,"show"))}},render(){return C(ll,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:r,clsPrefix:n}=this,a=t==="show"&&r,i=C("div",{class:`${n}-collapse-item__content-wrapper`},C("div",{class:`${n}-collapse-item__content-inner`},this.$slots));return a?jr(i,[[Bn,e]]):e?i:null}})}});const NSe={title:String,name:[String,Number],disabled:Boolean,displayDirective:String};var QSe=ge({name:"CollapseItem",props:NSe,setup(e){const{mergedRtlRef:t}=et(e),r=yo(),n=Rt(()=>{var d;return(d=e.name)!==null&&d!==void 0?d:r}),a=We(Sj);a||Ta("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:o,mergedClsPrefixRef:s,slots:l}=a,u=L(()=>{const{value:d}=i;if(Array.isArray(d)){const{value:f}=n;return!~d.findIndex(A=>A===f)}else if(d){const{value:f}=n;return f!==d}return!0});return{rtlEnabled:tn("Collapse",t,s),collapseSlots:l,randomName:r,mergedClsPrefix:s,collapsed:u,mergedDisplayDirective:L(()=>{const{displayDirective:d}=e;return d||o.displayDirective}),arrowPlacement:L(()=>o.arrowPlacement),handleClick(d){a&&!e.disabled&&a.toggleItem(u.value,n.value,d)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:r,collapsed:n,mergedDisplayDirective:a,mergedClsPrefix:i,disabled:o}=this,s=k0(t.header,{collapsed:n},()=>[this.title]),l=t["header-extra"]||e["header-extra"],u=t.arrow||e.arrow;return C("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${r}-arrow-placement`,o&&`${i}-collapse-item--disabled`,!n&&`${i}-collapse-item--active`]},C("div",{class:[`${i}-collapse-item__header`,!n&&`${i}-collapse-item__header--active`]},C("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},r==="right"&&s,C("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},k0(u,{collapsed:n},()=>{var c;return[C($t,{clsPrefix:i},{default:(c=e.expandIcon)!==null&&c!==void 0?c:()=>this.rtlEnabled?C(jye,null):C(oS,null)})]})),r==="left"&&s),Dde(l,{collapsed:n},c=>C("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},c))),C(zSe,{clsPrefix:i,displayDirective:a,show:!n},t))}}),VSe=M("collapse-transition",{width:"100%"},[Yl()]);const _j=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},WSe={name:"CollapseTransition",common:Dt,self:_j};var GSe=WSe;const KSe={name:"CollapseTransition",common:st,self:_j};var jSe=KSe;const YSe=Object.assign(Object.assign({},Fe.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}});var XSe=ge({name:"CollapseTransition",props:YSe,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=et(e),a=Fe("CollapseTransition","-collapse-transition",VSe,GSe,e,t),i=tn("CollapseTransition",n,t),o=L(()=>e.collapsed!==void 0?e.collapsed:e.show),s=L(()=>{const{self:{bezier:u}}=a.value;return{"--n-bezier":u}}),l=r?_t("collapse-transition",void 0,s,e):void 0;return{rtlEnabled:i,mergedShow:o,mergedClsPrefix:t,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){return C(ll,{appear:this.appear},{default:()=>{var e;if(!!this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),C("div",An({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}});const qSe={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(is("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}};var Bj=ge({name:"ConfigProvider",alias:["App"],props:qSe,setup(e){const t=We(el,null),r=L(()=>{const{theme:h}=e;if(h===null)return;const v=t==null?void 0:t.mergedThemeRef.value;return h===void 0?v:v===void 0?h:Object.assign({},v,h)}),n=L(()=>{const{themeOverrides:h}=e;if(h!==null){if(h===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const v=t==null?void 0:t.mergedThemeOverridesRef.value;return v===void 0?h:gg({},v,h)}}}),a=Rt(()=>{const{namespace:h}=e;return h===void 0?t==null?void 0:t.mergedNamespaceRef.value:h}),i=Rt(()=>{const{bordered:h}=e;return h===void 0?t==null?void 0:t.mergedBorderedRef.value:h}),o=L(()=>{const{icons:h}=e;return h===void 0?t==null?void 0:t.mergedIconsRef.value:h}),s=L(()=>{const{componentOptions:h}=e;return h!==void 0?h:t==null?void 0:t.mergedComponentPropsRef.value}),l=L(()=>{const{clsPrefix:h}=e;return h!==void 0?h:t==null?void 0:t.mergedClsPrefixRef.value}),u=L(()=>{var h;const{rtl:v}=e;if(v===void 0)return t==null?void 0:t.mergedRtlRef.value;const p={};for(const g of v)p[g.name]=Gl(g),(h=g.peers)===null||h===void 0||h.forEach(m=>{m.name in p||(p[m.name]=Gl(m))});return p}),c=L(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),d=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),A=L(()=>{const{value:h}=r,{value:v}=n,p=v&&Object.keys(v).length!==0,g=h==null?void 0:h.name;return g?p?`${g}-${P0(JSON.stringify(n.value))}`:g:p?P0(JSON.stringify(n.value)):""});return Ct(el,{mergedThemeHashRef:A,mergedBreakpointsRef:c,mergedRtlRef:u,mergedIconsRef:o,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:a,mergedClsPrefixRef:l,mergedLocaleRef:L(()=>{const{locale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedLocaleRef.value:h}),mergedDateLocaleRef:L(()=>{const{dateLocale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedDateLocaleRef.value:h}),mergedHljsRef:L(()=>{const{hljs:h}=e;return h===void 0?t==null?void 0:t.mergedHljsRef.value:h}),mergedThemeRef:r,mergedThemeOverridesRef:n,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:a,mergedTheme:r,mergedThemeOverrides:n}},render(){var e,t,r,n;return this.abstract?(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r):C(this.as||this.tag,{class:`${this.mergedClsPrefix||lK}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});const ZSe={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function};var JSe=ge({name:"Countdown",props:ZSe,setup(e){let t=null,r=0,n=!1;const a=X(0);yr(()=>{a.value=e.duration});let i=-1;function o(A){return e.duration-r+i-A}function s(A){const h=Math.floor(A/36e5),v=Math.floor(A%36e5/6e4),p=Math.floor(A%6e4/1e3),g=Math.floor(A%1e3);return{hours:h,minutes:v,seconds:p,milliseconds:g}}function l(A){const{hours:h,minutes:v,seconds:p,milliseconds:g}=A,{precision:m}=e;switch(m){case 0:return`${String(h).padStart(2,"0")}:${String(v).padStart(2,"0")}:${String(p).padStart(2,"0")}`;default:return`${String(h).padStart(2,"0")}:${String(v).padStart(2,"0")}:${String(p).padStart(2,"0")}.${String(Math.floor(g/(m===1?100:m===2?10:1))).padStart(m,"0")}`}}const u=()=>{var A;const{precision:h}=e,v=o(performance.now());if(v<=0){a.value=0,c(),n||(n=!0,(A=e.onFinish)===null||A===void 0||A.call(e));return}let p;switch(h){case 3:case 2:p=v%34;break;case 1:p=v%100;break;default:p=v%1e3}a.value=v,t=window.setTimeout(()=>{u()},p)},c=()=>{t!==null&&(window.clearTimeout(t),t=null)};Ar(()=>{yr(()=>{if(e.active)i=performance.now(),u();else{const A=performance.now();i!==-1&&(r+=A-i),c()}})}),kr(()=>{c()});function d(){a.value=e.duration,r=0,i=performance.now(),e.active&&n&&u(),n=!1}return Object.assign({reset:d},{distance:a,getTimeInfo:s,getDisplayValue:l})},render(){const{render:e,precision:t,distance:r,getTimeInfo:n,getDisplayValue:a}=this;let i;switch(t){case 0:i=n(r+999),i.milliseconds=0;break;case 1:i=n(r+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=n(r+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=n(r)}return e?e(i):a(i)}});const e_e=e=>1-Math.pow(1-e,5);function t_e(e){const{from:t,to:r,duration:n,onUpdate:a,onFinish:i}=e,o=()=>{const l=performance.now(),u=Math.min(l-s,n),c=t+(r-t)*e_e(u/n);if(u===n){i();return}a(c),requestAnimationFrame(o)},s=performance.now();o()}const r_e={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function};var n_e=ge({name:"NumberAnimation",props:r_e,setup(e){const{localeRef:t}=Io("name"),{duration:r}=e,n=X(e.from),a=L(()=>{const{locale:f}=e;return f!==void 0?f:t.value});let i=!1;const o=f=>{n.value=f},s=()=>{var f;n.value=e.to,i=!1,(f=e.onFinish)===null||f===void 0||f.call(e)},l=(f=e.from,A=e.to)=>{i=!0,n.value=e.from,f!==A&&t_e({from:f,to:A,duration:r,onUpdate:o,onFinish:s})},u=L(()=>{var f;const h=gme(n.value,e.precision).toFixed(e.precision).split("."),v=new Intl.NumberFormat(a.value),p=(f=v.formatToParts(.5).find(y=>y.type==="decimal"))===null||f===void 0?void 0:f.value,g=e.showSeparator?v.format(Number(h[0])):h[0],m=h[1];return{integer:g,decimal:m,decimalSeparator:p}});function c(){i||l()}return Ar(()=>{yr(()=>{e.active&&l()})}),Object.assign({formattedValue:u},{play:c})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:r}}=this;return[e,t?r:null,t]}});const a_e={name:"Popselect",common:st,peers:{Popover:AA,InternalSelectMenu:qm}};var Tj=a_e;function i_e(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const o_e={name:"Popselect",common:Dt,peers:{Popover:zv,InternalSelectMenu:bk},self:i_e};var Rk=o_e;const Ej="n-popselect";var s_e=M("popselect-menu",`
|
|
box-shadow: var(--n-menu-box-shadow);
|
|
`);const Dk={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},H3=Zs(Dk);var l_e=ge({name:"PopselectPanel",props:Dk,setup(e){const t=We(Ej),{mergedClsPrefixRef:r,inlineThemeDisabled:n}=et(e),a=Fe("Popselect","-pop-select",s_e,Rk,t.props,r),i=L(()=>Hv(e.options,UK("value","children")));function o(f,A){const{onUpdateValue:h,"onUpdate:value":v,onChange:p}=e;h&&Ee(h,f,A),v&&Ee(v,f,A),p&&Ee(p,f,A)}function s(f){u(f.key)}function l(f){Wi(f,"action")||f.preventDefault()}function u(f){const{value:{getNode:A}}=i;if(e.multiple)if(Array.isArray(e.value)){const h=[],v=[];let p=!0;e.value.forEach(g=>{if(g===f){p=!1;return}const m=A(g);m&&(h.push(m.key),v.push(m.rawNode))}),p&&(h.push(f),v.push(A(f).rawNode)),o(h,v)}else{const h=A(f);h&&o([f],[h.rawNode])}else if(e.value===f&&e.cancelable)o(null,null);else{const h=A(f);h&&o(f,h.rawNode);const{"onUpdate:show":v,onUpdateShow:p}=t.props;v&&Ee(v,!1),p&&Ee(p,!1),t.setShow(!1)}ar(()=>{t.syncPosition()})}mt(Ie(e,"options"),()=>{ar(()=>{t.syncPosition()})});const c=L(()=>{const{self:{menuBoxShadow:f}}=a.value;return{"--n-menu-box-shadow":f}}),d=n?_t("select",void 0,c,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:r,treeMate:i,handleToggle:s,handleMenuMousedown:l,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),C(_K,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,r;return((r=(t=this.$slots).action)===null||r===void 0?void 0:r.call(t))||[]},empty:()=>{var t,r;return((r=(t=this.$slots).empty)===null||r===void 0?void 0:r.call(t))||[]}})}});const u_e=Object.assign(Object.assign(Object.assign(Object.assign({},Fe.props),Lv(fv,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},fv.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),Dk);var Ij=ge({name:"Popselect",props:u_e,inheritAttrs:!1,__popover__:!0,setup(e){const t=Fe("Popselect","-popselect",void 0,Rk,e),r=X(null);function n(){var o;(o=r.value)===null||o===void 0||o.syncPosition()}function a(o){var s;(s=r.value)===null||s===void 0||s.setShow(o)}return Ct(Ej,{props:e,mergedThemeRef:t,syncPosition:n,setShow:a}),Object.assign(Object.assign({},{syncPosition:n,setShow:a}),{popoverInstRef:r,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(r,n,a,i,o)=>{const{$attrs:s}=this;return C(l_e,Object.assign({},s,{class:[s.class,r],style:[s.style,a]},zi(this.$props,H3),{ref:UW(n),onMouseenter:Xg([i,s.onMouseenter]),onMouseleave:Xg([o,s.onMouseleave])}),{action:()=>{var l,u;return(u=(l=this.$slots).action)===null||u===void 0?void 0:u.call(l)},empty:()=>{var l,u;return(u=(l=this.$slots).empty)===null||u===void 0?void 0:u.call(l)}})}};return C(Nv,Object.assign({},Lv(this.$props,H3),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var r,n;return(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r)}})}});function Rj(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const c_e={name:"Select",common:Dt,peers:{InternalSelection:PK,InternalSelectMenu:bk},self:Rj};var Dj=c_e;const d_e={name:"Select",common:st,peers:{InternalSelection:xk,InternalSelectMenu:qm},self:Rj};var Fj=d_e,f_e=N([M("select",`
|
|
z-index: auto;
|
|
outline: none;
|
|
width: 100%;
|
|
position: relative;
|
|
`),M("select-menu",`
|
|
margin: 4px 0;
|
|
box-shadow: var(--n-menu-box-shadow);
|
|
`,[gi({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]);const A_e=Object.assign(Object.assign({},Fe.props),{to:Dn.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array});var Mj=ge({name:"Select",props:A_e,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,namespaceRef:n,inlineThemeDisabled:a}=et(e),i=Fe("Select","-select",f_e,Dj,e,t),o=X(e.defaultValue),s=Ie(e,"value"),l=Sr(s,o),u=X(!1),c=X(""),d=L(()=>{const{valueField:ue,childrenField:Te}=e,He=UK(ue,Te);return Hv(I.value,He)}),f=L(()=>j1e(T.value,e.valueField,e.childrenField)),A=X(!1),h=Sr(Ie(e,"show"),A),v=X(null),p=X(null),g=X(null),{localeRef:m}=Io("Select"),y=L(()=>{var ue;return(ue=e.placeholder)!==null&&ue!==void 0?ue:m.value.placeholder}),b=Ec(e,["items","options"]),w=[],x=X([]),S=X([]),_=X(new Map),B=L(()=>{const{fallbackOption:ue}=e;if(ue===void 0){const{labelField:Te,valueField:He}=e;return Je=>({[Te]:String(Je),[He]:Je})}return ue===!1?!1:Te=>Object.assign(ue(Te),{value:Te})}),T=L(()=>S.value.concat(x.value).concat(b.value)),E=L(()=>{const{filter:ue}=e;if(ue)return ue;const{labelField:Te,valueField:He}=e;return(Je,nt)=>{if(!nt)return!1;const be=nt[Te];if(typeof be=="string")return BB(Je,be);const Le=nt[He];return typeof Le=="string"?BB(Je,Le):typeof Le=="number"?BB(Je,String(Le)):!1}}),I=L(()=>{if(e.remote)return b.value;{const{value:ue}=T,{value:Te}=c;return!Te.length||!e.filterable?ue:K1e(ue,E.value,Te,e.childrenField)}});function R(ue){const Te=e.remote,{value:He}=_,{value:Je}=f,{value:nt}=B,be=[];return ue.forEach(Le=>{if(Je.has(Le))be.push(Je.get(Le));else if(Te&&He.has(Le))be.push(He.get(Le));else if(nt){const je=nt(Le);je&&be.push(je)}}),be}const D=L(()=>{if(e.multiple){const{value:ue}=l;return Array.isArray(ue)?R(ue):[]}return null}),k=L(()=>{const{value:ue}=l;return!e.multiple&&!Array.isArray(ue)?ue===null?null:R([ue])[0]||null:null}),F=bi(e),{mergedSizeRef:P,mergedDisabledRef:O,mergedStatusRef:H}=F;function V(ue,Te){const{onChange:He,"onUpdate:value":Je,onUpdateValue:nt}=e,{nTriggerFormChange:be,nTriggerFormInput:Le}=F;He&&Ee(He,ue,Te),nt&&Ee(nt,ue,Te),Je&&Ee(Je,ue,Te),o.value=ue,be(),Le()}function W(ue){const{onBlur:Te}=e,{nTriggerFormBlur:He}=F;Te&&Ee(Te,ue),He()}function Z(){const{onClear:ue}=e;ue&&Ee(ue)}function ee(ue){const{onFocus:Te}=e,{nTriggerFormFocus:He}=F;Te&&Ee(Te,ue),He()}function ae(ue){const{onSearch:Te}=e;Te&&Ee(Te,ue)}function ne(ue){const{onScroll:Te}=e;Te&&Ee(Te,ue)}function le(){var ue;const{remote:Te,multiple:He}=e;if(Te){const{value:Je}=_;if(He){const{valueField:nt}=e;(ue=D.value)===null||ue===void 0||ue.forEach(be=>{Je.set(be[nt],be)})}else{const nt=k.value;nt&&Je.set(nt[e.valueField],nt)}}}function se(ue){const{onUpdateShow:Te,"onUpdate:show":He}=e;Te&&Ee(Te,ue),He&&Ee(He,ue),A.value=ue}function ce(){O.value||(se(!0),A.value=!0,e.filterable&&Ge())}function ye(){se(!1)}function fe(){c.value="",S.value=w}const Q=X(!1);function J(){e.filterable&&(Q.value=!0)}function U(){e.filterable&&(Q.value=!1,h.value||fe())}function K(){O.value||(h.value?e.filterable?Ge():ye():ce())}function q(ue){var Te,He;!((He=(Te=g.value)===null||Te===void 0?void 0:Te.selfRef)===null||He===void 0)&&He.contains(ue.relatedTarget)||(u.value=!1,W(ue),ye())}function ie(ue){ee(ue),u.value=!0}function $(ue){u.value=!0}function re(ue){var Te;!((Te=v.value)===null||Te===void 0)&&Te.$el.contains(ue.relatedTarget)||(u.value=!1,W(ue),ye())}function ve(){var ue;(ue=v.value)===null||ue===void 0||ue.focus(),ye()}function he(ue){var Te;h.value&&(!((Te=v.value)===null||Te===void 0)&&Te.$el.contains(as(ue))||ye())}function oe(ue){if(!Array.isArray(ue))return[];if(B.value)return Array.from(ue);{const{remote:Te}=e,{value:He}=f;if(Te){const{value:Je}=_;return ue.filter(nt=>He.has(nt)||Je.has(nt))}else return ue.filter(Je=>He.has(Je))}}function Y(ue){te(ue.rawNode)}function te(ue){if(O.value)return;const{tag:Te,remote:He,clearFilterAfterSelect:Je,valueField:nt}=e;if(Te&&!He){const{value:be}=S,Le=be[0]||null;if(Le){const je=x.value;je.length?je.push(Le):x.value=[Le],S.value=w}}if(He&&_.value.set(ue[nt],ue),e.multiple){const be=oe(l.value),Le=be.findIndex(je=>je===ue[nt]);if(~Le){if(be.splice(Le,1),Te&&!He){const je=pe(ue[nt]);~je&&(x.value.splice(je,1),Je&&(c.value=""))}}else be.push(ue[nt]),Je&&(c.value="");V(be,R(be))}else{if(Te&&!He){const be=pe(ue[nt]);~be?x.value=[x.value[be]]:x.value=w}ke(),ye(),V(ue[nt],ue)}}function pe(ue){return x.value.findIndex(He=>He[e.valueField]===ue)}function de(ue){h.value||ce();const{value:Te}=ue.target;c.value=Te;const{tag:He,remote:Je}=e;if(ae(Te),He&&!Je){if(!Te){S.value=w;return}const{onCreate:nt}=e,be=nt?nt(Te):{[e.labelField]:Te,[e.valueField]:Te},{valueField:Le}=e;b.value.some(je=>je[Le]===be[Le])||x.value.some(je=>je[Le]===be[Le])?S.value=w:S.value=[be]}}function we(ue){ue.stopPropagation();const{multiple:Te}=e;!Te&&e.filterable&&ye(),Z(),Te?V([],[]):V(null,null)}function De(ue){!Wi(ue,"action")&&!Wi(ue,"empty")&&ue.preventDefault()}function ze(ue){ne(ue)}function Xe(ue){var Te,He,Je,nt,be;switch(ue.key){case" ":if(e.filterable)break;ue.preventDefault();case"Enter":if(!(!((Te=v.value)===null||Te===void 0)&&Te.isComposing)){if(h.value){const Le=(He=g.value)===null||He===void 0?void 0:He.getPendingTmNode();Le?Y(Le):e.filterable||(ye(),ke())}else if(ce(),e.tag&&Q.value){const Le=S.value[0];if(Le){const je=Le[e.valueField],{value:ft}=l;e.multiple&&Array.isArray(ft)&&ft.some(Ce=>Ce===je)||te(Le)}}}ue.preventDefault();break;case"ArrowUp":if(ue.preventDefault(),e.loading)return;h.value&&((Je=g.value)===null||Je===void 0||Je.prev());break;case"ArrowDown":if(ue.preventDefault(),e.loading)return;h.value?(nt=g.value)===null||nt===void 0||nt.next():ce();break;case"Escape":h.value&&(O0(ue),ye()),(be=v.value)===null||be===void 0||be.focus();break}}function ke(){var ue;(ue=v.value)===null||ue===void 0||ue.focus()}function Ge(){var ue;(ue=v.value)===null||ue===void 0||ue.focusInput()}function it(){var ue;!h.value||(ue=p.value)===null||ue===void 0||ue.syncPosition()}le(),mt(Ie(e,"options"),le);const ut={focus:()=>{var ue;(ue=v.value)===null||ue===void 0||ue.focus()},blur:()=>{var ue;(ue=v.value)===null||ue===void 0||ue.blur()}},Ke=L(()=>{const{self:{menuBoxShadow:ue}}=i.value;return{"--n-menu-box-shadow":ue}}),xt=a?_t("select",void 0,Ke,e):void 0;return Object.assign(Object.assign({},ut),{mergedStatus:H,mergedClsPrefix:t,mergedBordered:r,namespace:n,treeMate:d,isMounted:ji(),triggerRef:v,menuRef:g,pattern:c,uncontrolledShow:A,mergedShow:h,adjustedTo:Dn(e),uncontrolledValue:o,mergedValue:l,followerRef:p,localizedPlaceholder:y,selectedOption:k,selectedOptions:D,mergedSize:P,mergedDisabled:O,focused:u,activeWithoutMenuOpen:Q,inlineThemeDisabled:a,onTriggerInputFocus:J,onTriggerInputBlur:U,handleTriggerOrMenuResize:it,handleMenuFocus:$,handleMenuBlur:re,handleMenuTabOut:ve,handleTriggerClick:K,handleToggle:Y,handleDeleteOption:te,handlePatternInput:de,handleClear:we,handleTriggerBlur:q,handleTriggerFocus:ie,handleKeydown:Xe,handleMenuAfterLeave:fe,handleMenuClickOutside:he,handleMenuScroll:ze,handleMenuKeydown:Xe,handleMenuMousedown:De,mergedTheme:i,cssVars:a?void 0:Ke,themeClass:xt==null?void 0:xt.themeClass,onRender:xt==null?void 0:xt.onRender})},render(){return C("div",{class:`${this.mergedClsPrefix}-select`},C(jc,null,{default:()=>[C(Yc,null,{default:()=>C(I1e,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),C(qc,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Dn.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>C(zr,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,r;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),jr(C(_K,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(r=this.menuProps)===null||r===void 0?void 0:r.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var n,a;return[(a=(n=this.$slots).empty)===null||a===void 0?void 0:a.call(n)]},action:()=>{var n,a;return[(a=(n=this.$slots).action)===null||a===void 0?void 0:a.call(n)]}}),this.displayDirective==="show"?[[Bn,this.mergedShow],[Js,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Js,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),h_e={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};const kj=e=>{const{textColor2:t,primaryColor:r,primaryColorHover:n,primaryColorPressed:a,inputColorDisabled:i,textColorDisabled:o,borderColor:s,borderRadius:l,fontSizeTiny:u,fontSizeSmall:c,fontSizeMedium:d,heightTiny:f,heightSmall:A,heightMedium:h}=e;return Object.assign(Object.assign({},h_e),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:n,itemTextColorPressed:a,itemTextColorActive:r,itemTextColorDisabled:o,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${r}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:A,itemSizeLarge:h,itemFontSizeSmall:u,itemFontSizeMedium:c,itemFontSizeLarge:d,jumperFontSizeSmall:u,jumperFontSizeMedium:c,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:o})},v_e={name:"Pagination",common:Dt,peers:{Select:Dj,Input:hA,Popselect:Rk},self:kj};var Pj=v_e;const p_e={name:"Pagination",common:st,peers:{Select:Fj,Input:Ro,Popselect:Tj},self(e){const{primaryColor:t,opacity3:r}=e,n=Ve(t,{alpha:Number(r)}),a=kj(e);return a.itemBorderActive=`1px solid ${n}`,a.itemBorderDisabled="1px solid #0000",a}};var Lj=p_e;function g_e(e,t,r){let n=!1,a=!1,i=1,o=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:o,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:o,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const s=1,l=t;let u=e,c=e;const d=(r-5)/2;c+=Math.ceil(d),c=Math.min(Math.max(c,s+r-3),l-2),u-=Math.floor(d),u=Math.max(Math.min(u,l-r+3),s+2);let f=!1,A=!1;u>s+2&&(f=!0),c<l-2&&(A=!0);const h=[];h.push({type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}),f?(n=!0,i=u-1,h.push({type:"fast-backward",active:!1,label:void 0,options:z3(s+1,u-1)})):l>=s+1&&h.push({type:"page",label:s+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===s+1});for(let v=u;v<=c;++v)h.push({type:"page",label:v,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===v});return A?(a=!0,o=c+1,h.push({type:"fast-forward",active:!1,label:void 0,options:z3(c+1,l-1)})):c===l-2&&h[h.length-1].label!==l-1&&h.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:l-1,active:e===l-1}),h[h.length-1].label!==l&&h.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:l,active:e===l}),{hasFastBackward:n,hasFastForward:a,fastBackwardTo:i,fastForwardTo:o,items:h}}function z3(e,t){const r=[];for(let n=e;n<=t;++n)r.push({label:`${n}`,value:n});return r}const N3=`
|
|
background: var(--n-item-color-hover);
|
|
color: var(--n-item-text-color-hover);
|
|
border: var(--n-item-border-hover);
|
|
`,Q3=[j("button",`
|
|
background: var(--n-button-color-hover);
|
|
border: var(--n-button-border-hover);
|
|
color: var(--n-button-icon-color-hover);
|
|
`)];var m_e=M("pagination",`
|
|
display: flex;
|
|
vertical-align: middle;
|
|
font-size: var(--n-item-font-size);
|
|
flex-wrap: nowrap;
|
|
`,[M("pagination-prefix",`
|
|
display: flex;
|
|
align-items: center;
|
|
margin: var(--n-prefix-margin);
|
|
`),M("pagination-suffix",`
|
|
display: flex;
|
|
align-items: center;
|
|
margin: var(--n-suffix-margin);
|
|
`),N("> *:not(:first-child)",`
|
|
margin: var(--n-item-margin);
|
|
`),M("select",`
|
|
width: var(--n-select-width);
|
|
`),N("&.transition-disabled",[M("pagination-item","transition: none!important;")]),M("pagination-quick-jumper",`
|
|
white-space: nowrap;
|
|
display: flex;
|
|
color: var(--n-jumper-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
align-items: center;
|
|
font-size: var(--n-jumper-font-size);
|
|
`,[M("input",`
|
|
margin: var(--n-input-margin);
|
|
width: var(--n-input-width);
|
|
`)]),M("pagination-item",`
|
|
position: relative;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
min-width: var(--n-item-size);
|
|
height: var(--n-item-size);
|
|
padding: var(--n-item-padding);
|
|
background-color: var(--n-item-color);
|
|
color: var(--n-item-text-color);
|
|
border-radius: var(--n-item-border-radius);
|
|
border: var(--n-item-border);
|
|
fill: var(--n-button-icon-color);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
fill .3s var(--n-bezier);
|
|
`,[j("button",`
|
|
background: var(--n-button-color);
|
|
color: var(--n-button-icon-color);
|
|
border: var(--n-button-border);
|
|
padding: 0;
|
|
`,[M("base-icon",`
|
|
font-size: var(--n-button-icon-size);
|
|
`)]),Nt("disabled",[j("hover",N3,Q3),N("&:hover",N3,Q3),N("&:active",`
|
|
background: var(--n-item-color-pressed);
|
|
color: var(--n-item-text-color-pressed);
|
|
border: var(--n-item-border-pressed);
|
|
`,[j("button",`
|
|
background: var(--n-button-color-pressed);
|
|
border: var(--n-button-border-pressed);
|
|
color: var(--n-button-icon-color-pressed);
|
|
`)]),j("active",`
|
|
background: var(--n-item-color-active);
|
|
color: var(--n-item-text-color-active);
|
|
border: var(--n-item-border-active);
|
|
`,[N("&:hover",`
|
|
background: var(--n-item-color-active-hover);
|
|
`)])]),j("disabled",`
|
|
cursor: not-allowed;
|
|
color: var(--n-item-text-color-disabled);
|
|
`,[j("active, button",`
|
|
background-color: var(--n-item-color-disabled);
|
|
border: var(--n-item-border-disabled);
|
|
`)])]),j("disabled",`
|
|
cursor: not-allowed;
|
|
`,[M("pagination-quick-jumper",`
|
|
color: var(--n-jumper-text-color-disabled);
|
|
`)]),j("simple",`
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
`,[M("pagination-quick-jumper",[M("input",`
|
|
margin: 0;
|
|
`)])])]);const y_e=Object.assign(Object.assign({},Fe.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},prev:Function,next:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Dn.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]});var Oj=ge({name:"Pagination",props:y_e,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:a}=et(e),i=Fe("Pagination","-pagination",m_e,Pj,e,r),{localeRef:o}=Io("Pagination"),s=X(null),l=X(e.defaultPage),c=X((()=>{const{defaultPageSize:fe}=e;if(fe!==void 0)return fe;const Q=e.pageSizes[0];return typeof Q=="number"?Q:Q.value||10})()),d=Sr(Ie(e,"page"),l),f=Sr(Ie(e,"pageSize"),c),A=L(()=>{const{itemCount:fe}=e;if(fe!==void 0)return Math.max(1,Math.ceil(fe/f.value));const{pageCount:Q}=e;return Q!==void 0?Math.max(Q,1):1}),h=X("");yr(()=>{e.simple,h.value=String(d.value)});const v=X(!1),p=X(!1),g=X(!1),m=X(!1),y=()=>{e.disabled||(v.value=!0,F())},b=()=>{e.disabled||(v.value=!1,F())},w=()=>{p.value=!0,F()},x=()=>{p.value=!1,F()},S=fe=>{P(fe)},_=L(()=>g_e(d.value,A.value,e.pageSlot));yr(()=>{_.value.hasFastBackward?_.value.hasFastForward||(v.value=!1,g.value=!1):(p.value=!1,m.value=!1)});const B=L(()=>{const fe=o.value.selectionSuffix;return e.pageSizes.map(Q=>typeof Q=="number"?{label:`${Q} / ${fe}`,value:Q}:Q)}),T=L(()=>{var fe,Q;return((Q=(fe=t==null?void 0:t.value)===null||fe===void 0?void 0:fe.Pagination)===null||Q===void 0?void 0:Q.inputSize)||q5(e.size)}),E=L(()=>{var fe,Q;return((Q=(fe=t==null?void 0:t.value)===null||fe===void 0?void 0:fe.Pagination)===null||Q===void 0?void 0:Q.selectSize)||q5(e.size)}),I=L(()=>(d.value-1)*f.value),R=L(()=>{const fe=d.value*f.value-1,{itemCount:Q}=e;return Q!==void 0&&fe>Q?Q:fe}),D=L(()=>{const{itemCount:fe}=e;return fe!==void 0?fe:(e.pageCount||1)*f.value}),k=tn("Pagination",a,r),F=()=>{ar(()=>{var fe;const{value:Q}=s;!Q||(Q.classList.add("transition-disabled"),(fe=s.value)===null||fe===void 0||fe.offsetWidth,Q.classList.remove("transition-disabled"))})};function P(fe){if(fe===d.value)return;const{"onUpdate:page":Q,onUpdatePage:J,onChange:U,simple:K}=e;Q&&Ee(Q,fe),J&&Ee(J,fe),U&&Ee(U,fe),l.value=fe,K&&(h.value=String(fe))}function O(fe){if(fe===f.value)return;const{"onUpdate:pageSize":Q,onUpdatePageSize:J,onPageSizeChange:U}=e;Q&&Ee(Q,fe),J&&Ee(J,fe),U&&Ee(U,fe),c.value=fe,A.value<d.value&&P(A.value)}function H(){if(e.disabled)return;const fe=Math.min(d.value+1,A.value);P(fe)}function V(){if(e.disabled)return;const fe=Math.max(d.value-1,1);P(fe)}function W(){if(e.disabled)return;const fe=Math.min(_.value.fastForwardTo,A.value);P(fe)}function Z(){if(e.disabled)return;const fe=Math.max(_.value.fastBackwardTo,1);P(fe)}function ee(fe){O(fe)}function ae(){const fe=parseInt(h.value);Number.isNaN(fe)||(P(Math.max(1,Math.min(fe,A.value))),e.simple||(h.value=""))}function ne(){ae()}function le(fe){if(!e.disabled)switch(fe.type){case"page":P(fe.label);break;case"fast-backward":Z();break;case"fast-forward":W();break}}function se(fe){h.value=fe.replace(/\D+/g,"")}yr(()=>{d.value,f.value,F()});const ce=L(()=>{const{size:fe}=e,{self:{buttonBorder:Q,buttonBorderHover:J,buttonBorderPressed:U,buttonIconColor:K,buttonIconColorHover:q,buttonIconColorPressed:ie,itemTextColor:$,itemTextColorHover:re,itemTextColorPressed:ve,itemTextColorActive:he,itemTextColorDisabled:oe,itemColor:Y,itemColorHover:te,itemColorPressed:pe,itemColorActive:de,itemColorActiveHover:we,itemColorDisabled:De,itemBorder:ze,itemBorderHover:Xe,itemBorderPressed:ke,itemBorderActive:Ge,itemBorderDisabled:it,itemBorderRadius:ut,jumperTextColor:Ke,jumperTextColorDisabled:xt,buttonColor:ue,buttonColorHover:Te,buttonColorPressed:He,[Se("itemPadding",fe)]:Je,[Se("itemMargin",fe)]:nt,[Se("inputWidth",fe)]:be,[Se("selectWidth",fe)]:Le,[Se("inputMargin",fe)]:je,[Se("selectMargin",fe)]:ft,[Se("jumperFontSize",fe)]:Ce,[Se("prefixMargin",fe)]:Qe,[Se("suffixMargin",fe)]:me,[Se("itemSize",fe)]:Ne,[Se("buttonIconSize",fe)]:lt,[Se("itemFontSize",fe)]:Tt,[`${Se("itemMargin",fe)}Rtl`]:dt,[`${Se("inputMargin",fe)}Rtl`]:Ae},common:{cubicBezierEaseInOut:Re}}=i.value;return{"--n-prefix-margin":Qe,"--n-suffix-margin":me,"--n-item-font-size":Tt,"--n-select-width":Le,"--n-select-margin":ft,"--n-input-width":be,"--n-input-margin":je,"--n-input-margin-rtl":Ae,"--n-item-size":Ne,"--n-item-text-color":$,"--n-item-text-color-disabled":oe,"--n-item-text-color-hover":re,"--n-item-text-color-active":he,"--n-item-text-color-pressed":ve,"--n-item-color":Y,"--n-item-color-hover":te,"--n-item-color-disabled":De,"--n-item-color-active":de,"--n-item-color-active-hover":we,"--n-item-color-pressed":pe,"--n-item-border":ze,"--n-item-border-hover":Xe,"--n-item-border-disabled":it,"--n-item-border-active":Ge,"--n-item-border-pressed":ke,"--n-item-padding":Je,"--n-item-border-radius":ut,"--n-bezier":Re,"--n-jumper-font-size":Ce,"--n-jumper-text-color":Ke,"--n-jumper-text-color-disabled":xt,"--n-item-margin":nt,"--n-item-margin-rtl":dt,"--n-button-icon-size":lt,"--n-button-icon-color":K,"--n-button-icon-color-hover":q,"--n-button-icon-color-pressed":ie,"--n-button-color-hover":Te,"--n-button-color":ue,"--n-button-color-pressed":He,"--n-button-border":Q,"--n-button-border-hover":J,"--n-button-border-pressed":U}}),ye=n?_t("pagination",L(()=>{let fe="";const{size:Q}=e;return fe+=Q[0],fe}),ce,e):void 0;return{rtlEnabled:k,mergedClsPrefix:r,locale:o,selfRef:s,mergedPage:d,pageItems:L(()=>_.value.items),mergedItemCount:D,jumperValue:h,pageSizeOptions:B,mergedPageSize:f,inputSize:T,selectSize:E,mergedTheme:i,mergedPageCount:A,startIndex:I,endIndex:R,showFastForwardMenu:g,showFastBackwardMenu:m,fastForwardActive:v,fastBackwardActive:p,handleMenuSelect:S,handleFastForwardMouseenter:y,handleFastForwardMouseleave:b,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:x,handleJumperInput:se,handleBackwardClick:V,handleForwardClick:H,handlePageItemClick:le,handleSizePickerChange:ee,handleQuickJumperChange:ne,cssVars:n?void 0:ce,themeClass:ye==null?void 0:ye.themeClass,onRender:ye==null?void 0:ye.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:r,cssVars:n,mergedPage:a,mergedPageCount:i,pageItems:o,showSizePicker:s,showQuickJumper:l,mergedTheme:u,locale:c,inputSize:d,selectSize:f,mergedPageSize:A,pageSizeOptions:h,jumperValue:v,simple:p,prev:g,next:m,prefix:y,suffix:b,label:w,handleJumperInput:x,handleSizePickerChange:S,handleBackwardClick:_,handlePageItemClick:B,handleForwardClick:T,handleQuickJumperChange:E,onRender:I}=this;I==null||I();const R=e.prefix||y,D=e.suffix||b,k=g||e.prev,F=m||e.next,P=w||e.label;return C("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,r&&`${t}-pagination--disabled`,p&&`${t}-pagination--simple`],style:n},R?C("div",{class:`${t}-pagination-prefix`},R({page:a,pageSize:A,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(O=>{switch(O){case"pages":return C(rr,null,C("div",{class:[`${t}-pagination-item`,!k&&`${t}-pagination-item--button`,(a<=1||a>i||r)&&`${t}-pagination-item--disabled`],onClick:_},k?k({page:a,pageSize:A,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):C($t,{clsPrefix:t},{default:()=>this.rtlEnabled?C(kc,null):C(Dc,null)})),p?C(rr,null,C("div",{class:`${t}-pagination-quick-jumper`},C(os,{value:v,onUpdateValue:x,size:d,placeholder:"",disabled:r,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:E})),"\xA0/ ",i):o.map((H,V)=>{let W,Z,ee;const{type:ae}=H;switch(ae){case"page":const le=H.label;P?W=P({type:"page",node:le,active:H.active}):W=le;break;case"fast-forward":const se=this.fastForwardActive?C($t,{clsPrefix:t},{default:()=>this.rtlEnabled?C(Fc,null):C(Mc,null)}):C($t,{clsPrefix:t},{default:()=>C(A3,null)});P?W=P({type:"fast-forward",node:se,active:this.fastForwardActive||this.showFastForwardMenu}):W=se,Z=this.handleFastForwardMouseenter,ee=this.handleFastForwardMouseleave;break;case"fast-backward":const ce=this.fastBackwardActive?C($t,{clsPrefix:t},{default:()=>this.rtlEnabled?C(Mc,null):C(Fc,null)}):C($t,{clsPrefix:t},{default:()=>C(A3,null)});P?W=P({type:"fast-backward",node:ce,active:this.fastBackwardActive||this.showFastBackwardMenu}):W=ce,Z=this.handleFastBackwardMouseenter,ee=this.handleFastBackwardMouseleave;break}const ne=C("div",{key:V,class:[`${t}-pagination-item`,H.active&&`${t}-pagination-item--active`,ae!=="page"&&(ae==="fast-backward"&&this.showFastBackwardMenu||ae==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,r&&`${t}-pagination-item--disabled`,ae==="page"&&`${t}-pagination-item--clickable`],onClick:()=>B(H),onMouseenter:Z,onMouseleave:ee},W);if(ae==="page"&&!H.mayBeFastBackward&&!H.mayBeFastForward)return ne;{const le=H.type==="page"?H.mayBeFastBackward?"fast-backward":"fast-forward":H.type;return C(Ij,{to:this.to,key:le,disabled:r,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:u.peers.Popselect,themeOverrides:u.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:ae==="page"?!1:ae==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:se=>{ae!=="page"&&(se?ae==="fast-backward"?this.showFastBackwardMenu=se:this.showFastForwardMenu=se:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:H.type!=="page"?H.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>ne})}}),C("div",{class:[`${t}-pagination-item`,!F&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:a<1||a>=i||r}],onClick:T},F?F({page:a,pageSize:A,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):C($t,{clsPrefix:t},{default:()=>this.rtlEnabled?C(Dc,null):C(kc,null)})));case"size-picker":return!p&&s?C(Mj,{to:this.to,placeholder:"",showCheckmark:!1,size:f,options:h,value:A,disabled:r,theme:u.peers.Select,themeOverrides:u.peerOverrides.Select,onUpdateValue:S}):null;case"quick-jumper":return!p&&l?C("div",{class:`${t}-pagination-quick-jumper`},Wt(this.$slots.goto,()=>[c.goto]),C(os,{value:v,onUpdateValue:x,size:d,placeholder:"",disabled:r,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:E})):null;default:return null}}),D?C("div",{class:`${t}-pagination-suffix`},D({page:a,pageSize:A,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),$j={padding:"8px 14px"};const b_e={name:"Tooltip",common:st,peers:{Popover:AA},self(e){const{borderRadius:t,boxShadow2:r,popoverColor:n,textColor2:a}=e;return Object.assign(Object.assign({},$j),{borderRadius:t,boxShadow:r,color:n,textColor:a})}};var uS=b_e;const x_e=e=>{const{borderRadius:t,boxShadow2:r,baseColor:n}=e;return Object.assign(Object.assign({},$j),{borderRadius:t,boxShadow:r,color:Et(n,"rgba(0, 0, 0, .85)"),textColor:n})},w_e={name:"Tooltip",common:Dt,peers:{Popover:zv},self:x_e};var cS=w_e;const C_e={name:"Ellipsis",common:st,peers:{Tooltip:uS}};var Uj=C_e;const S_e={name:"Ellipsis",common:Dt,peers:{Tooltip:cS}};var Hj=S_e,zj={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px"};const __e={name:"Radio",common:st,self(e){const{borderColor:t,primaryColor:r,baseColor:n,textColorDisabled:a,inputColorDisabled:i,textColor2:o,opacityDisabled:s,borderRadius:l,fontSizeSmall:u,fontSizeMedium:c,fontSizeLarge:d,heightSmall:f,heightMedium:A,heightLarge:h,lineHeight:v}=e;return Object.assign(Object.assign({},zj),{labelLineHeight:v,buttonHeightSmall:f,buttonHeightMedium:A,buttonHeightLarge:h,fontSizeSmall:u,fontSizeMedium:c,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Ve(r,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:o,textColorDisabled:a,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:r,buttonColor:"#0000",buttonColorActive:r,buttonTextColor:o,buttonTextColorActive:n,buttonTextColorHover:r,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Ve(r,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${r}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}};var Nj=__e;const B_e=e=>{const{borderColor:t,primaryColor:r,baseColor:n,textColorDisabled:a,inputColorDisabled:i,textColor2:o,opacityDisabled:s,borderRadius:l,fontSizeSmall:u,fontSizeMedium:c,fontSizeLarge:d,heightSmall:f,heightMedium:A,heightLarge:h,lineHeight:v}=e;return Object.assign(Object.assign({},zj),{labelLineHeight:v,buttonHeightSmall:f,buttonHeightMedium:A,buttonHeightLarge:h,fontSizeSmall:u,fontSizeMedium:c,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Ve(r,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:n,colorDisabled:i,colorActive:"#0000",textColor:o,textColorDisabled:a,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:t,buttonColor:n,buttonColorActive:n,buttonTextColor:o,buttonTextColorActive:r,buttonTextColorHover:r,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${Ve(r,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})},T_e={name:"Radio",common:Dt,self:B_e};var Fk=T_e,E_e={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};const Qj=e=>{const{primaryColor:t,textColor2:r,dividerColor:n,hoverColor:a,popoverColor:i,invertedColor:o,borderRadius:s,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:c,fontSizeHuge:d,heightSmall:f,heightMedium:A,heightLarge:h,heightHuge:v,textColor3:p,opacityDisabled:g}=e;return Object.assign(Object.assign({},E_e),{optionHeightSmall:f,optionHeightMedium:A,optionHeightLarge:h,optionHeightHuge:v,borderRadius:s,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:c,fontSizeHuge:d,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:r,prefixColor:r,optionColorHover:a,optionColorActive:Ve(t,{alpha:.1}),groupHeaderTextColor:p,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:o,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},I_e={name:"Dropdown",common:Dt,peers:{Popover:zv},self:Qj};var Mk=I_e;const R_e={name:"Dropdown",common:st,peers:{Popover:AA},self(e){const{primaryColorSuppl:t,primaryColor:r,popoverColor:n}=e,a=Qj(e);return a.colorInverted=n,a.optionColorActive=Ve(r,{alpha:.15}),a.optionColorActiveInverted=t,a.optionColorHoverInverted=t,a}};var kk=R_e,D_e={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};const Vj=e=>{const{cardColor:t,modalColor:r,popoverColor:n,textColor2:a,textColor1:i,tableHeaderColor:o,tableColorHover:s,iconColor:l,primaryColor:u,fontWeightStrong:c,borderRadius:d,lineHeight:f,fontSizeSmall:A,fontSizeMedium:h,fontSizeLarge:v,dividerColor:p,heightSmall:g,opacityDisabled:m,tableColorStriped:y}=e;return Object.assign(Object.assign({},D_e),{actionDividerColor:p,lineHeight:f,borderRadius:d,fontSizeSmall:A,fontSizeMedium:h,fontSizeLarge:v,borderColor:Et(t,p),tdColorHover:Et(t,s),tdColorStriped:Et(t,y),thColor:Et(t,o),thColorHover:Et(Et(t,o),s),tdColor:t,tdTextColor:a,thTextColor:i,thFontWeight:c,thButtonColorHover:s,thIconColor:l,thIconColorActive:u,borderColorModal:Et(r,p),tdColorHoverModal:Et(r,s),tdColorStripedModal:Et(r,y),thColorModal:Et(r,o),thColorHoverModal:Et(Et(r,o),s),tdColorModal:r,borderColorPopover:Et(n,p),tdColorHoverPopover:Et(n,s),tdColorStripedPopover:Et(n,y),thColorPopover:Et(n,o),thColorHoverPopover:Et(Et(n,o),s),tdColorPopover:n,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:u,loadingSize:g,opacityLoading:m})},F_e={name:"DataTable",common:Dt,peers:{Button:ed,Checkbox:Ik,Radio:Fk,Pagination:Pj,Scrollbar:ul,Empty:Xm,Popover:zv,Ellipsis:Hj,Dropdown:Mk},self:Vj};var M_e=F_e;const k_e={name:"DataTable",common:st,peers:{Button:Ci,Checkbox:Qv,Radio:Nj,Pagination:Lj,Scrollbar:wi,Empty:fA,Popover:AA,Ellipsis:Uj,Dropdown:kk},self(e){const t=Vj(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}};var P_e=k_e;const L_e=Object.assign(Object.assign({},fv),Fe.props);var dS=ge({name:"Tooltip",props:L_e,__popover__:!0,setup(e){const t=Fe("Tooltip","-tooltip",void 0,cS,e),r=X(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(a){r.value.setShow(a)}}),{popoverRef:r,mergedTheme:t,popoverThemeOverrides:L(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return C(Nv,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),O_e=M("ellipsis",{overflow:"hidden"},[Nt("line-clamp",`
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
max-width: 100%;
|
|
`),j("line-clamp",`
|
|
display: -webkit-inline-box;
|
|
-webkit-box-orient: vertical;
|
|
`),j("cursor-pointer",`
|
|
cursor: pointer;
|
|
`)]);function V3(e){return`${e}-ellipsis--line-clamp`}function W3(e,t){return`${e}-ellipsis--cursor-${t}`}const $_e=Object.assign(Object.assign({},Fe.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}});var Pk=ge({name:"Ellipsis",inheritAttrs:!1,props:$_e,setup(e,{slots:t,attrs:r}){const{mergedClsPrefixRef:n}=et(e),a=Fe("Ellipsis","-ellipsis",O_e,Hj,e,n),i=X(null),o=X(null),s=X(null),l=X(!1),u=L(()=>{const{lineClamp:p}=e,{value:g}=l;return p!==void 0?{textOverflow:"","-webkit-line-clamp":g?"":p}:{textOverflow:g?"":"ellipsis","-webkit-line-clamp":""}});function c(){let p=!1;const{value:g}=l;if(g)return!0;const{value:m}=i;if(m){const{lineClamp:y}=e;if(A(m),y!==void 0)p=m.scrollHeight<=m.offsetHeight;else{const{value:b}=o;b&&(p=b.getBoundingClientRect().width<=m.getBoundingClientRect().width)}h(m,p)}return p}const d=L(()=>e.expandTrigger==="click"?()=>{var p;const{value:g}=l;g&&((p=s.value)===null||p===void 0||p.setShow(!1)),l.value=!g}:void 0),f=()=>C("span",Object.assign({},An(r,{class:[`${n.value}-ellipsis`,e.lineClamp!==void 0?V3(n.value):void 0,e.expandTrigger==="click"?W3(n.value,"pointer"):void 0],style:u.value}),{ref:"triggerRef",onClick:d.value,onMouseenter:e.expandTrigger==="click"?c:void 0}),e.lineClamp?t:C("span",{ref:"triggerInnerRef"},t));function A(p){if(!p)return;const g=u.value,m=V3(n.value);e.lineClamp!==void 0?v(p,m,"add"):v(p,m,"remove");for(const y in g)p.style[y]!==g[y]&&(p.style[y]=g[y])}function h(p,g){const m=W3(n.value,"pointer");e.expandTrigger==="click"&&!g?v(p,m,"add"):v(p,m,"remove")}function v(p,g,m){m==="add"?p.classList.contains(g)||p.classList.add(g):p.classList.contains(g)&&p.classList.remove(g)}return{mergedTheme:a,triggerRef:i,triggerInnerRef:o,tooltipRef:s,handleClick:d,renderTrigger:f,getTooltipDisabled:c}},render(){var e;const{tooltip:t,renderTrigger:r,$slots:n}=this;if(t){const{mergedTheme:a}=this;return C(dS,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:a.peers.Tooltip,themeOverrides:a.peerOverrides.Tooltip}),{trigger:r,default:(e=n.tooltip)!==null&&e!==void 0?e:n.default})}else return r()}}),U_e=ge({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}});const H_e=Object.assign(Object.assign({},Fe.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},renderCell:Function,renderExpandIcon:Function,onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),fs="n-data-table";var z_e=ge({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=et(),{mergedSortStateRef:r,mergedClsPrefixRef:n}=We(fs),a=L(()=>r.value.find(l=>l.columnKey===e.column.key)),i=L(()=>a.value!==void 0),o=L(()=>{const{value:l}=a;return l&&i.value?l.order:!1}),s=L(()=>{var l,u;return((u=(l=t==null?void 0:t.value)===null||l===void 0?void 0:l.DataTable)===null||u===void 0?void 0:u.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:n,active:i,mergedSortOrder:o,mergedRenderSorter:s}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:r}=this,{renderSorterIcon:n}=this.column;return e?C(U_e,{render:e,order:t}):C("span",{class:[`${r}-data-table-sorter`,t==="ascend"&&`${r}-data-table-sorter--asc`,t==="descend"&&`${r}-data-table-sorter--desc`]},n?n({order:t}):C($t,{clsPrefix:r},{default:()=>C(Gye,null)}))}}),N_e=ge({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:r}=this;return e({active:t,show:r})}});const Q_e={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Wj="n-radio-group";function V_e(e){const t=bi(e,{mergedSize(m){const{size:y}=e;if(y!==void 0)return y;if(o){const{mergedSizeRef:{value:b}}=o;if(b!==void 0)return b}return m?m.mergedSize.value:"medium"},mergedDisabled(m){return!!(e.disabled||o!=null&&o.disabledRef.value||m!=null&&m.disabled.value)}}),{mergedSizeRef:r,mergedDisabledRef:n}=t,a=X(null),i=X(null),o=We(Wj,null),s=X(e.defaultChecked),l=Ie(e,"checked"),u=Sr(l,s),c=Rt(()=>o?o.valueRef.value===e.value:u.value),d=Rt(()=>{const{name:m}=e;if(m!==void 0)return m;if(o)return o.nameRef.value}),f=X(!1);function A(){if(o){const{doUpdateValue:m}=o,{value:y}=e;Ee(m,y)}else{const{onUpdateChecked:m,"onUpdate:checked":y}=e,{nTriggerFormInput:b,nTriggerFormChange:w}=t;m&&Ee(m,!0),y&&Ee(y,!0),b(),w(),s.value=!0}}function h(){n.value||c.value||A()}function v(){h()}function p(){f.value=!1}function g(){f.value=!0}return{mergedClsPrefix:o?o.mergedClsPrefixRef:et(e).mergedClsPrefixRef,inputRef:a,labelRef:i,mergedName:d,mergedDisabled:n,uncontrolledChecked:s,renderSafeChecked:c,focus:f,mergedSize:r,handleRadioInputChange:v,handleRadioInputBlur:p,handleRadioInputFocus:g}}var W_e=M("radio",`
|
|
line-height: var(--n-label-line-height);
|
|
outline: none;
|
|
position: relative;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
display: inline-flex;
|
|
align-items: flex-start;
|
|
flex-wrap: nowrap;
|
|
font-size: var(--n-font-size);
|
|
word-break: break-word;
|
|
`,[j("checked",[G("dot",`
|
|
background-color: var(--n-color-active);
|
|
`)]),G("dot-wrapper",`
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
width: var(--n-radio-size);
|
|
`),M("radio-input",`
|
|
position: absolute;
|
|
border: 0;
|
|
border-radius: inherit;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
opacity: 0;
|
|
z-index: 1;
|
|
cursor: pointer;
|
|
`),G("dot",`
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
transform: translateY(-50%);
|
|
height: var(--n-radio-size);
|
|
width: var(--n-radio-size);
|
|
background: var(--n-color);
|
|
box-shadow: var(--n-box-shadow);
|
|
border-radius: 50%;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier);
|
|
`,[N("&::before",`
|
|
content: "";
|
|
opacity: 0;
|
|
position: absolute;
|
|
left: 4px;
|
|
top: 4px;
|
|
height: calc(100% - 8px);
|
|
width: calc(100% - 8px);
|
|
border-radius: 50%;
|
|
transform: scale(.8);
|
|
background: var(--n-dot-color-active);
|
|
transition:
|
|
opacity .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
transform .3s var(--n-bezier);
|
|
`),j("checked",{boxShadow:"var(--n-box-shadow-active)"},[N("&::before",`
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
`)])]),G("label",`
|
|
color: var(--n-text-color);
|
|
padding: var(--n-label-padding);
|
|
display: inline-block;
|
|
transition: color .3s var(--n-bezier);
|
|
`),Nt("disabled",`
|
|
cursor: pointer;
|
|
`,[N("&:hover",[G("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),j("focus",[N("&:not(:active)",[G("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),j("disabled",`
|
|
cursor: not-allowed;
|
|
`,[G("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[N("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),j("checked",`
|
|
opacity: 1;
|
|
`)]),G("label",{color:"var(--n-text-color-disabled)"}),M("radio-input",`
|
|
cursor: not-allowed;
|
|
`)])]),Lk=ge({name:"Radio",props:Object.assign(Object.assign({},Fe.props),Q_e),setup(e){const t=V_e(e),r=Fe("Radio","-radio",W_e,Fk,e,t.mergedClsPrefix),n=L(()=>{const{mergedSize:{value:u}}=t,{common:{cubicBezierEaseInOut:c},self:{boxShadow:d,boxShadowActive:f,boxShadowDisabled:A,boxShadowFocus:h,boxShadowHover:v,color:p,colorDisabled:g,colorActive:m,textColor:y,textColorDisabled:b,dotColorActive:w,dotColorDisabled:x,labelPadding:S,labelLineHeight:_,[Se("fontSize",u)]:B,[Se("radioSize",u)]:T}}=r.value;return{"--n-bezier":c,"--n-label-line-height":_,"--n-box-shadow":d,"--n-box-shadow-active":f,"--n-box-shadow-disabled":A,"--n-box-shadow-focus":h,"--n-box-shadow-hover":v,"--n-color":p,"--n-color-active":m,"--n-color-disabled":g,"--n-dot-color-active":w,"--n-dot-color-disabled":x,"--n-font-size":B,"--n-radio-size":T,"--n-text-color":y,"--n-text-color-disabled":b,"--n-label-padding":S}}),{inlineThemeDisabled:a,mergedClsPrefixRef:i,mergedRtlRef:o}=et(e),s=tn("Radio",o,i),l=a?_t("radio",L(()=>t.mergedSize.value[0]),n,e):void 0;return Object.assign(t,{rtlEnabled:s,cssVars:a?void 0:n,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:r,label:n}=this;return r==null||r(),C("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},C("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),C("div",{class:`${t}-radio__dot-wrapper`},"\xA0",C("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),or(e.default,a=>!a&&!n?null:C("div",{ref:"labelRef",class:`${t}-radio__label`},a||n)))}}),G_e=M("radio-group",`
|
|
display: inline-block;
|
|
font-size: var(--n-font-size);
|
|
`,[G("splitor",`
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
width: 1px;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier);
|
|
background: var(--n-button-border-color);
|
|
`,[j("checked",{backgroundColor:"var(--n-button-border-color-active)"}),j("disabled",{opacity:"var(--n-opacity-disabled)"})]),j("button-group",`
|
|
white-space: nowrap;
|
|
height: var(--n-height);
|
|
line-height: var(--n-height);
|
|
`,[M("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),G("splitor",{height:"var(--n-height)"})]),M("radio-button",`
|
|
vertical-align: bottom;
|
|
outline: none;
|
|
position: relative;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
padding-left: 14px;
|
|
padding-right: 14px;
|
|
white-space: nowrap;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
color: var(--n-button-text-color);
|
|
border-top: 1px solid var(--n-button-border-color);
|
|
border-bottom: 1px solid var(--n-button-border-color);
|
|
`,[M("radio-input",`
|
|
pointer-events: none;
|
|
position: absolute;
|
|
border: 0;
|
|
border-radius: inherit;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
opacity: 0;
|
|
z-index: 1;
|
|
`),G("state-border",`
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
position: absolute;
|
|
box-shadow: var(--n-button-box-shadow);
|
|
transition: box-shadow .3s var(--n-bezier);
|
|
left: -1px;
|
|
bottom: -1px;
|
|
right: -1px;
|
|
top: -1px;
|
|
`),N("&:first-child",`
|
|
border-top-left-radius: var(--n-button-border-radius);
|
|
border-bottom-left-radius: var(--n-button-border-radius);
|
|
border-left: 1px solid var(--n-button-border-color);
|
|
`,[G("state-border",`
|
|
border-top-left-radius: var(--n-button-border-radius);
|
|
border-bottom-left-radius: var(--n-button-border-radius);
|
|
`)]),N("&:last-child",`
|
|
border-top-right-radius: var(--n-button-border-radius);
|
|
border-bottom-right-radius: var(--n-button-border-radius);
|
|
border-right: 1px solid var(--n-button-border-color);
|
|
`,[G("state-border",`
|
|
border-top-right-radius: var(--n-button-border-radius);
|
|
border-bottom-right-radius: var(--n-button-border-radius);
|
|
`)]),Nt("disabled",`
|
|
cursor: pointer;
|
|
`,[N("&:hover",[G("state-border",`
|
|
transition: box-shadow .3s var(--n-bezier);
|
|
box-shadow: var(--n-button-box-shadow-hover);
|
|
`),Nt("checked",{color:"var(--n-button-text-color-hover)"})]),j("focus",[N("&:not(:active)",[G("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),j("checked",`
|
|
background: var(--n-button-color-active);
|
|
color: var(--n-button-text-color-active);
|
|
border-color: var(--n-button-border-color-active);
|
|
`),j("disabled",`
|
|
cursor: not-allowed;
|
|
opacity: var(--n-opacity-disabled);
|
|
`)])]);function K_e(e,t,r){var n;const a=[];let i=!1;for(let o=0;o<e.length;++o){const s=e[o],l=(n=s.type)===null||n===void 0?void 0:n.name;l==="RadioButton"&&(i=!0);const u=s.props;if(l!=="RadioButton"){a.push(s);continue}if(o===0)a.push(s);else{const c=a[a.length-1].props,d=t===c.value,f=c.disabled,A=t===u.value,h=u.disabled,v=(d?2:0)+(f?0:1),p=(A?2:0)+(h?0:1),g={[`${r}-radio-group__splitor--disabled`]:f,[`${r}-radio-group__splitor--checked`]:d},m={[`${r}-radio-group__splitor--disabled`]:h,[`${r}-radio-group__splitor--checked`]:A},y=v<p?m:g;a.push(C("div",{class:[`${r}-radio-group__splitor`,y]}),s)}}return{children:a,isButtonGroup:i}}const j_e=Object.assign(Object.assign({},Fe.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]});var Gj=ge({name:"RadioGroup",props:j_e,setup(e){const t=X(null),{mergedSizeRef:r,mergedDisabledRef:n,nTriggerFormChange:a,nTriggerFormInput:i,nTriggerFormBlur:o,nTriggerFormFocus:s}=bi(e),{mergedClsPrefixRef:l,inlineThemeDisabled:u,mergedRtlRef:c}=et(e),d=Fe("Radio","-radio-group",G_e,Fk,e,l),f=X(e.defaultValue),A=Ie(e,"value"),h=Sr(A,f);function v(w){const{onUpdateValue:x,"onUpdate:value":S}=e;x&&Ee(x,w),S&&Ee(S,w),f.value=w,a(),i()}function p(w){const{value:x}=t;!x||x.contains(w.relatedTarget)||s()}function g(w){const{value:x}=t;!x||x.contains(w.relatedTarget)||o()}Ct(Wj,{mergedClsPrefixRef:l,nameRef:Ie(e,"name"),valueRef:h,disabledRef:n,mergedSizeRef:r,doUpdateValue:v});const m=tn("Radio",c,l),y=L(()=>{const{value:w}=r,{common:{cubicBezierEaseInOut:x},self:{buttonBorderColor:S,buttonBorderColorActive:_,buttonBorderRadius:B,buttonBoxShadow:T,buttonBoxShadowFocus:E,buttonBoxShadowHover:I,buttonColorActive:R,buttonTextColor:D,buttonTextColorActive:k,buttonTextColorHover:F,opacityDisabled:P,[Se("buttonHeight",w)]:O,[Se("fontSize",w)]:H}}=d.value;return{"--n-font-size":H,"--n-bezier":x,"--n-button-border-color":S,"--n-button-border-color-active":_,"--n-button-border-radius":B,"--n-button-box-shadow":T,"--n-button-box-shadow-focus":E,"--n-button-box-shadow-hover":I,"--n-button-color-active":R,"--n-button-text-color":D,"--n-button-text-color-hover":F,"--n-button-text-color-active":k,"--n-height":O,"--n-opacity-disabled":P}}),b=u?_t("radio-group",L(()=>r.value[0]),y,e):void 0;return{selfElRef:t,rtlEnabled:m,mergedClsPrefix:l,mergedValue:h,handleFocusout:g,handleFocusin:p,cssVars:u?void 0:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:r,handleFocusin:n,handleFocusout:a}=this,{children:i,isButtonGroup:o}=K_e(go(Vm(this)),t,r);return(e=this.onRender)===null||e===void 0||e.call(this),C("div",{onFocusin:n,onFocusout:a,ref:"selfElRef",class:[`${r}-radio-group`,this.rtlEnabled&&`${r}-radio-group--rtl`,this.themeClass,o&&`${r}-radio-group--button-group`],style:this.cssVars},i)}});const Kj=40,jj=40;function G3(e){if(e.type==="selection")return e.width===void 0?Kj:ma(e.width);if(e.type==="expand")return e.width===void 0?jj:ma(e.width);if(!("children"in e))return typeof e.width=="string"?ma(e.width):e.width}function Y_e(e){var t,r;if(e.type==="selection")return pr((t=e.width)!==null&&t!==void 0?t:Kj);if(e.type==="expand")return pr((r=e.width)!==null&&r!==void 0?r:jj);if(!("children"in e))return pr(e.width)}function Wo(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function K3(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function X_e(e){return e==="ascend"?1:e==="descend"?-1:0}function q_e(e,t,r){return r!==void 0&&(e=Math.min(e,typeof r=="number"?r:parseFloat(r))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function Z_e(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const r=Y_e(e),{minWidth:n,maxWidth:a}=e;return{width:r,minWidth:pr(n)||r,maxWidth:pr(a)}}function J_e(e,t,r){return typeof r=="function"?r(e,t):r||""}function OB(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function $B(e){return"children"in e?!1:!!e.sorter}function Yj(e){return"children"in e&&!!e.children.length?!1:!!e.resizable}function j3(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function Y3(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function eBe(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:Y3(!1)}:Object.assign(Object.assign({},t),{order:Y3(t.order)})}function Xj(e,t){return t.find(r=>r.columnKey===e.key&&r.order)!==void 0}var tBe=ge({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r,localeRef:n}=We(fs),a=X(e.value),i=L(()=>{const{value:d}=a;return Array.isArray(d)?d:null}),o=L(()=>{const{value:d}=a;return OB(e.column)?Array.isArray(d)&&d.length&&d[0]||null:Array.isArray(d)?null:d});function s(d){e.onChange(d)}function l(d){e.multiple&&Array.isArray(d)?a.value=d:OB(e.column)&&!Array.isArray(d)?a.value=[d]:a.value=d}function u(){s(a.value),e.onConfirm()}function c(){e.multiple||OB(e.column)?s([]):s(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:r,locale:n,checkboxGroupValue:i,radioGroupValue:o,handleChange:l,handleConfirmClick:u,handleClearClick:c}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:r}=this;return C("div",{class:`${r}-data-table-filter-menu`},C(Un,null,{default:()=>{const{checkboxGroupValue:n,handleChange:a}=this;return this.multiple?C(xj,{value:n,class:`${r}-data-table-filter-menu__group`,onUpdateValue:a},{default:()=>this.options.map(i=>C(Zm,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):C(Gj,{name:this.radioGroupName,class:`${r}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>C(Lk,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),C("div",{class:`${r}-data-table-filter-menu__action`},C(on,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),C(on,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function rBe(e,t,r){const n=Object.assign({},e);return n[t]=r,n}var nBe=ge({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=et(),{mergedThemeRef:r,mergedClsPrefixRef:n,mergedFilterStateRef:a,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:o,doUpdatePage:s,doUpdateFilters:l}=We(fs),u=X(!1),c=a,d=L(()=>e.column.filterMultiple!==!1),f=L(()=>{const m=c.value[e.column.key];if(m===void 0){const{value:y}=d;return y?[]:null}return m}),A=L(()=>{const{value:m}=f;return Array.isArray(m)?m.length>0:m!==null}),h=L(()=>{var m,y;return((y=(m=t==null?void 0:t.value)===null||m===void 0?void 0:m.DataTable)===null||y===void 0?void 0:y.renderFilter)||e.column.renderFilter});function v(m){const y=rBe(c.value,e.column.key,m);l(y,e.column),o.value==="first"&&s(1)}function p(){u.value=!1}function g(){u.value=!1}return{mergedTheme:r,mergedClsPrefix:n,active:A,showPopover:u,mergedRenderFilter:h,filterMultiple:d,mergedFilterValue:f,filterMenuCssVars:i,handleFilterChange:v,handleFilterMenuConfirm:g,handleFilterMenuCancel:p}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:r}=this;return C(Nv,{show:this.showPopover,onUpdateShow:n=>this.showPopover=n,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:n}=this;if(n)return C(N_e,{"data-data-table-filter":!0,render:n,active:this.active,show:this.showPopover});const{renderFilterIcon:a}=this.column;return C("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},a?a({active:this.active,show:this.showPopover}):C($t,{clsPrefix:t},{default:()=>C(Jye,null)}))},default:()=>{const{renderFilterMenu:n}=this.column;return n?n({hide:r}):C(tBe,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),aBe=ge({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=We(fs),r=X(!1);let n=0;function a(l){return l.clientX}function i(l){var u;const c=r.value;n=a(l),r.value=!0,c||(Zt("mousemove",window,o),Zt("mouseup",window,s),(u=e.onResizeStart)===null||u===void 0||u.call(e))}function o(l){var u;(u=e.onResize)===null||u===void 0||u.call(e,a(l)-n)}function s(){var l;r.value=!1,(l=e.onResizeEnd)===null||l===void 0||l.call(e),jt("mousemove",window,o),jt("mouseup",window,s)}return kr(()=>{jt("mousemove",window,o),jt("mouseup",window,s)}),{mergedClsPrefix:t,active:r,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return C("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),qj=ge({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return C("div",{class:`${this.clsPrefix}-dropdown-divider`})}});const Zj=e=>{const{textColorBase:t,opacity1:r,opacity2:n,opacity3:a,opacity4:i,opacity5:o}=e;return{color:t,opacity1Depth:r,opacity2Depth:n,opacity3Depth:a,opacity4Depth:i,opacity5Depth:o}},iBe={name:"Icon",common:Dt,self:Zj};var oBe=iBe;const sBe={name:"Icon",common:st,self:Zj};var lBe=sBe,uBe=M("icon",`
|
|
height: 1em;
|
|
width: 1em;
|
|
line-height: 1em;
|
|
text-align: center;
|
|
display: inline-block;
|
|
position: relative;
|
|
fill: currentColor;
|
|
transform: translateZ(0);
|
|
`,[j("color-transition",{transition:"color .3s var(--n-bezier)"}),j("depth",{color:"var(--n-color)"},[N("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),N("svg",{height:"1em",width:"1em"})]);const cBe=Object.assign(Object.assign({},Fe.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),Ok=ge({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:cBe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Icon","-icon",uBe,oBe,e,t),a=L(()=>{const{depth:o}=e,{common:{cubicBezierEaseInOut:s},self:l}=n.value;if(o!==void 0){const{color:u,[`opacity${o}Depth`]:c}=l;return{"--n-bezier":s,"--n-color":u,"--n-opacity":c}}return{"--n-bezier":s,"--n-color":"","--n-opacity":""}}),i=r?_t("icon",L(()=>`${e.depth||"d"}`),a,e):void 0;return{mergedClsPrefix:t,mergedStyle:L(()=>{const{size:o,color:s}=e;return{fontSize:pr(o),color:s}}),cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:n,component:a,onRender:i,themeClass:o}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&is("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),C("i",An(this.$attrs,{role:"img",class:[`${n}-icon`,o,{[`${n}-icon--depth`]:r,[`${n}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),a?C(a):this.$slots)}}),$k="n-dropdown-menu",fS="n-dropdown",X3="n-dropdown-option";function qI(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function dBe(e){return e.type==="group"}function Jj(e){return e.type==="divider"}function fBe(e){return e.type==="render"}var eY=ge({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=We(fS),{hoverKeyRef:r,keyboardKeyRef:n,lastToggledSubmenuKeyRef:a,pendingKeyPathRef:i,activeKeyPathRef:o,animatedRef:s,mergedShowRef:l,renderLabelRef:u,renderIconRef:c,labelFieldRef:d,childrenFieldRef:f,renderOptionRef:A,nodePropsRef:h,menuPropsRef:v}=t,p=We(X3,null),g=We($k),m=We($v),y=L(()=>e.tmNode.rawNode),b=L(()=>{const{value:P}=f;return qI(e.tmNode.rawNode,P)}),w=L(()=>{const{disabled:P}=e.tmNode;return P}),x=L(()=>{if(!b.value)return!1;const{key:P,disabled:O}=e.tmNode;if(O)return!1;const{value:H}=r,{value:V}=n,{value:W}=a,{value:Z}=i;return H!==null?Z.includes(P):V!==null?Z.includes(P)&&Z[Z.length-1]!==P:W!==null?Z.includes(P):!1}),S=L(()=>n.value===null&&!s.value),_=nfe(x,300,S),B=L(()=>!!(p!=null&&p.enteringSubmenuRef.value)),T=X(!1);Ct(X3,{enteringSubmenuRef:T});function E(){T.value=!0}function I(){T.value=!1}function R(){const{parentKey:P,tmNode:O}=e;O.disabled||!l.value||(a.value=P,n.value=null,r.value=O.key)}function D(){const{tmNode:P}=e;P.disabled||!l.value||r.value!==P.key&&R()}function k(P){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:O}=P;O&&!Wi({target:O},"dropdownOption")&&!Wi({target:O},"scrollbarRail")&&(r.value=null)}function F(){const{value:P}=b,{tmNode:O}=e;!l.value||!P&&!O.disabled&&(t.doSelect(O.key,O.rawNode),t.doUpdateShow(!1))}return{labelField:d,renderLabel:u,renderIcon:c,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:v,popoverBody:m,animated:s,mergedShowSubmenu:L(()=>_.value&&!B.value),rawNode:y,hasSubmenu:b,pending:Rt(()=>{const{value:P}=i,{key:O}=e.tmNode;return P.includes(O)}),childActive:Rt(()=>{const{value:P}=o,{key:O}=e.tmNode,H=P.findIndex(V=>O===V);return H===-1?!1:H<P.length-1}),active:Rt(()=>{const{value:P}=o,{key:O}=e.tmNode,H=P.findIndex(V=>O===V);return H===-1?!1:H===P.length-1}),mergedDisabled:w,renderOption:A,nodeProps:h,handleClick:F,handleMouseMove:D,handleMouseEnter:R,handleMouseLeave:k,handleSubmenuBeforeEnter:E,handleSubmenuAfterEnter:I}},render(){var e,t;const{animated:r,rawNode:n,mergedShowSubmenu:a,clsPrefix:i,siblingHasIcon:o,siblingHasSubmenu:s,renderLabel:l,renderIcon:u,renderOption:c,nodeProps:d,props:f,scrollable:A}=this;let h=null;if(a){const m=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);h=C(tY,Object.assign({},m,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const v={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},p=d==null?void 0:d(n),g=C("div",Object.assign({class:[`${i}-dropdown-option`,p==null?void 0:p.class],"data-dropdown-option":!0},p),C("div",An(v,f),[C("div",{class:[`${i}-dropdown-option-body__prefix`,o&&`${i}-dropdown-option-body__prefix--show-icon`]},[u?u(n):Mr(n.icon)]),C("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},l?l(n):Mr((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),C("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?C(Ok,null,{default:()=>C(oS,null)}):null)]),this.hasSubmenu?C(jc,null,{default:()=>[C(Yc,null,{default:()=>C("div",{class:`${i}-dropdown-offset-container`},C(qc,{show:this.mergedShowSubmenu,placement:this.placement,to:A&&this.popoverBody||void 0,teleportDisabled:!A},{default:()=>C("div",{class:`${i}-dropdown-menu-wrapper`},r?C(zr,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>h}):h)}))})]}):null);return c?c({node:g,option:n}):g}}),ABe=ge({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=We($k),{renderLabelRef:r,labelFieldRef:n,nodePropsRef:a,renderOptionRef:i}=We(fS);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:r,nodeProps:a,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:r,showIcon:n,nodeProps:a,renderLabel:i,renderOption:o}=this,{rawNode:s}=this.tmNode,l=C("div",Object.assign({class:`${t}-dropdown-option`},a==null?void 0:a(s)),C("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},C("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},Mr(s.icon)),C("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):Mr((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),C("div",{class:[`${t}-dropdown-option-body__suffix`,r&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return o?o({node:l,option:s}):l}}),hBe=ge({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:r}=this,{children:n}=e;return C(rr,null,C(ABe,{clsPrefix:r,tmNode:e,key:e.key}),n==null?void 0:n.map(a=>{const{rawNode:i}=a;return i.show===!1?null:Jj(i)?C(qj,{clsPrefix:r,key:a.key}):a.isGroup?(is("dropdown","`group` node is not allowed to be put in `group` node."),null):C(eY,{clsPrefix:r,tmNode:a,parentKey:t,key:a.key})}))}}),vBe=ge({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return C("div",t,[e==null?void 0:e()])}}),tY=ge({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:r}=We(fS);Ct($k,{showIconRef:L(()=>{const a=t.value;return e.tmNodes.some(i=>{var o;if(i.isGroup)return(o=i.children)===null||o===void 0?void 0:o.some(({rawNode:l})=>a?a(l):l.icon);const{rawNode:s}=i;return a?a(s):s.icon})}),hasSubmenuRef:L(()=>{const{value:a}=r;return e.tmNodes.some(i=>{var o;if(i.isGroup)return(o=i.children)===null||o===void 0?void 0:o.some(({rawNode:l})=>qI(l,a));const{rawNode:s}=i;return qI(s,a)})})});const n=X(null);return Ct(Wm,null),Ct(Gm,null),Ct($v,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:r}=this,n=this.tmNodes.map(a=>{const{rawNode:i}=a;return i.show===!1?null:fBe(i)?C(vBe,{tmNode:a,key:a.key}):Jj(i)?C(qj,{clsPrefix:t,key:a.key}):dBe(i)?C(hBe,{clsPrefix:t,tmNode:a,parentKey:e,key:a.key}):C(eY,{clsPrefix:t,tmNode:a,parentKey:e,key:a.key,props:i.props,scrollable:r})});return C("div",{class:[`${t}-dropdown-menu`,r&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},r?C(tw,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?IK({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),pBe=M("dropdown-menu",`
|
|
transform-origin: var(--v-transform-origin);
|
|
background-color: var(--n-color);
|
|
border-radius: var(--n-border-radius);
|
|
box-shadow: var(--n-box-shadow);
|
|
position: relative;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier);
|
|
`,[gi(),M("dropdown-option",`
|
|
position: relative;
|
|
`,[N("a",`
|
|
text-decoration: none;
|
|
color: inherit;
|
|
outline: none;
|
|
`,[N("&::before",`
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)]),M("dropdown-option-body",`
|
|
display: flex;
|
|
cursor: pointer;
|
|
position: relative;
|
|
height: var(--n-option-height);
|
|
line-height: var(--n-option-height);
|
|
font-size: var(--n-font-size);
|
|
color: var(--n-option-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[N("&::before",`
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 4px;
|
|
right: 4px;
|
|
transition: background-color .3s var(--n-bezier);
|
|
border-radius: var(--n-border-radius);
|
|
`),Nt("disabled",[j("pending",`
|
|
color: var(--n-option-text-color-hover);
|
|
`,[G("prefix, suffix",`
|
|
color: var(--n-option-text-color-hover);
|
|
`),N("&::before","background-color: var(--n-option-color-hover);")]),j("active",`
|
|
color: var(--n-option-text-color-active);
|
|
`,[G("prefix, suffix",`
|
|
color: var(--n-option-text-color-active);
|
|
`),N("&::before","background-color: var(--n-option-color-active);")]),j("child-active",`
|
|
color: var(--n-option-text-color-child-active);
|
|
`,[G("prefix, suffix",`
|
|
color: var(--n-option-text-color-child-active);
|
|
`)])]),j("disabled",`
|
|
cursor: not-allowed;
|
|
opacity: var(--n-option-opacity-disabled);
|
|
`),j("group",`
|
|
font-size: calc(var(--n-font-size) - 1px);
|
|
color: var(--n-group-header-text-color);
|
|
`,[G("prefix",`
|
|
width: calc(var(--n-option-prefix-width) / 2);
|
|
`,[j("show-icon",`
|
|
width: calc(var(--n-option-icon-prefix-width) / 2);
|
|
`)])]),G("prefix",`
|
|
width: var(--n-option-prefix-width);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: var(--n-prefix-color);
|
|
transition: color .3s var(--n-bezier);
|
|
z-index: 1;
|
|
`,[j("show-icon",`
|
|
width: var(--n-option-icon-prefix-width);
|
|
`),M("icon",`
|
|
font-size: var(--n-option-icon-size);
|
|
`)]),G("label",`
|
|
white-space: nowrap;
|
|
flex: 1;
|
|
z-index: 1;
|
|
`),G("suffix",`
|
|
box-sizing: border-box;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
min-width: var(--n-option-suffix-width);
|
|
padding: 0 8px;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-suffix-color);
|
|
z-index: 1;
|
|
`,[j("has-submenu",`
|
|
width: var(--n-option-icon-suffix-width);
|
|
`),M("icon",`
|
|
font-size: var(--n-option-icon-size);
|
|
`)]),M("dropdown-menu","pointer-events: all;")]),M("dropdown-offset-container",`
|
|
pointer-events: none;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: -4px;
|
|
bottom: -4px;
|
|
`)]),M("dropdown-divider",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
background-color: var(--n-divider-color);
|
|
height: 1px;
|
|
margin: 4px 0;
|
|
`),M("dropdown-menu-wrapper",`
|
|
transform-origin: var(--v-transform-origin);
|
|
width: fit-content;
|
|
`),N(">",[M("scrollbar",`
|
|
height: inherit;
|
|
max-height: inherit;
|
|
`)]),Nt("scrollable",`
|
|
padding: var(--n-padding);
|
|
`),j("scrollable",[G("content",`
|
|
padding: var(--n-padding);
|
|
`)])]);const gBe={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},mBe=Object.keys(fv),yBe=Object.assign(Object.assign(Object.assign({},fv),gBe),Fe.props);var Uk=ge({name:"Dropdown",inheritAttrs:!1,props:yBe,setup(e){const t=X(!1),r=Sr(Ie(e,"show"),t),n=L(()=>{const{keyField:I,childrenField:R}=e;return Hv(e.options,{getKey(D){return D[I]},getDisabled(D){return D.disabled===!0},getIgnored(D){return D.type==="divider"||D.type==="render"},getChildren(D){return D[R]}})}),a=L(()=>n.value.treeNodes),i=X(null),o=X(null),s=X(null),l=L(()=>{var I,R,D;return(D=(R=(I=i.value)!==null&&I!==void 0?I:o.value)!==null&&R!==void 0?R:s.value)!==null&&D!==void 0?D:null}),u=L(()=>n.value.getPath(l.value).keyPath),c=L(()=>n.value.getPath(e.value).keyPath),d=Rt(()=>e.keyboard&&r.value);JM({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:b},ArrowDown:{prevent:!0,handler:x},ArrowLeft:{prevent:!0,handler:y},Enter:{prevent:!0,handler:S},Escape:m}},d);const{mergedClsPrefixRef:f,inlineThemeDisabled:A}=et(e),h=Fe("Dropdown","-dropdown",pBe,Mk,e,f);Ct(fS,{labelFieldRef:Ie(e,"labelField"),childrenFieldRef:Ie(e,"childrenField"),renderLabelRef:Ie(e,"renderLabel"),renderIconRef:Ie(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:o,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:u,activeKeyPathRef:c,animatedRef:Ie(e,"animated"),mergedShowRef:r,nodePropsRef:Ie(e,"nodeProps"),renderOptionRef:Ie(e,"renderOption"),menuPropsRef:Ie(e,"menuProps"),doSelect:v,doUpdateShow:p}),mt(r,I=>{!e.animated&&!I&&g()});function v(I,R){const{onSelect:D}=e;D&&Ee(D,I,R)}function p(I){const{"onUpdate:show":R,onUpdateShow:D}=e;R&&Ee(R,I),D&&Ee(D,I),t.value=I}function g(){i.value=null,o.value=null,s.value=null}function m(){p(!1)}function y(){B("left")}function b(){B("right")}function w(){B("up")}function x(){B("down")}function S(){const I=_();(I==null?void 0:I.isLeaf)&&r.value&&(v(I.key,I.rawNode),p(!1))}function _(){var I;const{value:R}=n,{value:D}=l;return!R||D===null?null:(I=R.getNode(D))!==null&&I!==void 0?I:null}function B(I){const{value:R}=l,{value:{getFirstAvailableNode:D}}=n;let k=null;if(R===null){const F=D();F!==null&&(k=F.key)}else{const F=_();if(F){let P;switch(I){case"down":P=F.getNext();break;case"up":P=F.getPrev();break;case"right":P=F.getChild();break;case"left":P=F.getParent();break}P&&(k=P.key)}}k!==null&&(i.value=null,o.value=k)}const T=L(()=>{const{size:I,inverted:R}=e,{common:{cubicBezierEaseInOut:D},self:k}=h.value,{padding:F,dividerColor:P,borderRadius:O,optionOpacityDisabled:H,[Se("optionIconSuffixWidth",I)]:V,[Se("optionSuffixWidth",I)]:W,[Se("optionIconPrefixWidth",I)]:Z,[Se("optionPrefixWidth",I)]:ee,[Se("fontSize",I)]:ae,[Se("optionHeight",I)]:ne,[Se("optionIconSize",I)]:le}=k,se={"--n-bezier":D,"--n-font-size":ae,"--n-padding":F,"--n-border-radius":O,"--n-option-height":ne,"--n-option-prefix-width":ee,"--n-option-icon-prefix-width":Z,"--n-option-suffix-width":W,"--n-option-icon-suffix-width":V,"--n-option-icon-size":le,"--n-divider-color":P,"--n-option-opacity-disabled":H};return R?(se["--n-color"]=k.colorInverted,se["--n-option-color-hover"]=k.optionColorHoverInverted,se["--n-option-color-active"]=k.optionColorActiveInverted,se["--n-option-text-color"]=k.optionTextColorInverted,se["--n-option-text-color-hover"]=k.optionTextColorHoverInverted,se["--n-option-text-color-active"]=k.optionTextColorActiveInverted,se["--n-option-text-color-child-active"]=k.optionTextColorChildActiveInverted,se["--n-prefix-color"]=k.prefixColorInverted,se["--n-suffix-color"]=k.suffixColorInverted,se["--n-group-header-text-color"]=k.groupHeaderTextColorInverted):(se["--n-color"]=k.color,se["--n-option-color-hover"]=k.optionColorHover,se["--n-option-color-active"]=k.optionColorActive,se["--n-option-text-color"]=k.optionTextColor,se["--n-option-text-color-hover"]=k.optionTextColorHover,se["--n-option-text-color-active"]=k.optionTextColorActive,se["--n-option-text-color-child-active"]=k.optionTextColorChildActive,se["--n-prefix-color"]=k.prefixColor,se["--n-suffix-color"]=k.suffixColor,se["--n-group-header-text-color"]=k.groupHeaderTextColor),se}),E=A?_t("dropdown",L(()=>`${e.size[0]}${e.inverted?"i":""}`),T,e):void 0;return{mergedClsPrefix:f,mergedTheme:h,tmNodes:a,mergedShow:r,handleAfterLeave:()=>{!e.animated||g()},doUpdateShow:p,cssVars:A?void 0:T,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){const e=(n,a,i,o,s)=>{var l;const{mergedClsPrefix:u,menuProps:c}=this;(l=this.onRender)===null||l===void 0||l.call(this);const d=(c==null?void 0:c(void 0,this.tmNodes.map(A=>A.rawNode)))||{},f={ref:UW(a),class:[n,`${u}-dropdown`,this.themeClass],clsPrefix:u,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:o,onMouseleave:s};return C(tY,An(this.$attrs,f,d))},{mergedTheme:t}=this,r={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return C(Nv,Object.assign({},zi(this.$props,mBe),r),{trigger:()=>{var n,a;return(a=(n=this.$slots).default)===null||a===void 0?void 0:a.call(n)}})}});const rY="_n_all__",nY="_n_none__";function bBe(e,t,r,n){return e?a=>{for(const i of e)switch(a){case rY:r(!0);return;case nY:n(!0);return;default:if(typeof i=="object"&&i.key===a){i.onSelect(t.value);return}}}:()=>{}}function xBe(e,t){return e?e.map(r=>{switch(r){case"all":return{label:t.checkTableAll,key:rY};case"none":return{label:t.uncheckTableAll,key:nY};default:return r}}):[]}var wBe=ge({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:r,checkOptionsRef:n,rawPaginatedDataRef:a,doCheckAll:i,doUncheckAll:o}=We(fs),s=L(()=>bBe(n.value,a,i,o)),l=L(()=>xBe(n.value,r.value));return()=>{var u,c,d,f;const{clsPrefix:A}=e;return C(Uk,{theme:(c=(u=t.theme)===null||u===void 0?void 0:u.peers)===null||c===void 0?void 0:c.Dropdown,themeOverrides:(f=(d=t.themeOverrides)===null||d===void 0?void 0:d.peers)===null||f===void 0?void 0:f.Dropdown,options:l.value,onSelect:s.value},{default:()=>C($t,{clsPrefix:A,class:`${A}-data-table-check-extra`},{default:()=>C(vK,null)})})}}});function UB(e){return typeof e.title=="function"?e.title(e):e.title}var aY=ge({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:r,fixedColumnRightMapRef:n,mergedCurrentPageRef:a,allRowsCheckedRef:i,someRowsCheckedRef:o,rowsRef:s,colsRef:l,mergedThemeRef:u,checkOptionsRef:c,mergedSortStateRef:d,componentId:f,scrollPartRef:A,mergedTableLayoutRef:h,headerCheckboxDisabledRef:v,onUnstableColumnResize:p,doUpdateResizableWidth:g,handleTableHeaderScroll:m,deriveNextSorter:y,doUncheckAll:b,doCheckAll:w}=We(fs),x=X({});function S(k){const F=x.value[k];return F==null?void 0:F.getBoundingClientRect().width}function _(){i.value?b():w()}function B(k,F){if(Wi(k,"dataTableFilter")||Wi(k,"dataTableResizable")||!$B(F))return;const P=d.value.find(H=>H.columnKey===F.key)||null,O=eBe(F,P);y(O)}function T(){A.value="head"}function E(){A.value="body"}const I=new Map;function R(k){I.set(k.key,S(k.key))}function D(k,F){const P=I.get(k.key);if(P===void 0)return;const O=P+F,H=q_e(O,k.minWidth,k.maxWidth);p(O,H,k,S),g(k,H)}return{cellElsRef:x,componentId:f,mergedSortState:d,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:r,fixedColumnRightMap:n,currentPage:a,allRowsChecked:i,someRowsChecked:o,rows:s,cols:l,mergedTheme:u,checkOptions:c,mergedTableLayout:h,headerCheckboxDisabled:v,handleMouseenter:T,handleMouseleave:E,handleCheckboxUpdateChecked:_,handleColHeaderClick:B,handleTableHeaderScroll:m,handleColumnResizeStart:R,handleColumnResize:D}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:r,fixedColumnRightMap:n,currentPage:a,allRowsChecked:i,someRowsChecked:o,rows:s,cols:l,mergedTheme:u,checkOptions:c,componentId:d,discrete:f,mergedTableLayout:A,headerCheckboxDisabled:h,mergedSortState:v,handleColHeaderClick:p,handleCheckboxUpdateChecked:g,handleColumnResizeStart:m,handleColumnResize:y}=this,b=C("thead",{class:`${t}-data-table-thead`,"data-n-id":d},s.map(B=>C("tr",{class:`${t}-data-table-tr`},B.map(({column:T,colSpan:E,rowSpan:I,isLast:R})=>{var D,k;const F=Wo(T),{ellipsis:P}=T,O=()=>T.type==="selection"?T.multiple!==!1?C(rr,null,C(Zm,{key:a,privateInsideTable:!0,checked:i,indeterminate:o,disabled:h,onUpdateChecked:g}),c?C(wBe,{clsPrefix:t}):null):null:C(rr,null,P===!0||P&&!P.tooltip?C("div",{class:`${t}-data-table-th__ellipsis`},UB(T)):P&&typeof P=="object"?C(Pk,Object.assign({},P,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>UB(T)}):UB(T),$B(T)?C(z_e,{column:T}):null,j3(T)?C(nBe,{column:T,options:T.filterOptions}):null,Yj(T)?C(aBe,{onResizeStart:()=>m(T),onResize:W=>y(T,W)}):null),H=F in r,V=F in n;return C("th",{ref:W=>e[F]=W,key:F,style:{textAlign:T.align,left:Tn((D=r[F])===null||D===void 0?void 0:D.start),right:Tn((k=n[F])===null||k===void 0?void 0:k.start)},colspan:E,rowspan:I,"data-col-key":F,class:[`${t}-data-table-th`,(H||V)&&`${t}-data-table-th--fixed-${H?"left":"right"}`,{[`${t}-data-table-th--hover`]:Xj(T,v),[`${t}-data-table-th--filterable`]:j3(T),[`${t}-data-table-th--sortable`]:$B(T),[`${t}-data-table-th--selection`]:T.type==="selection",[`${t}-data-table-th--last`]:R},T.className],onClick:T.type!=="selection"&&T.type!=="expand"&&!("children"in T)?W=>{p(W,T)}:void 0},O())}))));if(!f)return b;const{handleTableHeaderScroll:w,handleMouseenter:x,handleMouseleave:S,scrollX:_}=this;return C("div",{class:`${t}-data-table-base-table-header`,onScroll:w,onMouseenter:x,onMouseleave:S},C("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:pr(_),tableLayout:A}},C("colgroup",null,l.map(B=>C("col",{key:B.key,style:B.style}))),b))}}),CBe=ge({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:r,renderCell:n}=this;let a;const{render:i,key:o,ellipsis:s}=t;if(i&&!e?a=i(r,this.index):e?a=r[o].value:a=n?n(z0(r,o),r,t):z0(r,o),s)if(typeof s=="object"){const{mergedTheme:l}=this;return C(Pk,Object.assign({},s,{theme:l.peers.Ellipsis,themeOverrides:l.peerOverrides.Ellipsis}),{default:()=>a})}else return C("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},a);return a}}),q3=ge({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return C("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},C(sl,null,{default:()=>this.loading?C(cu,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():C($t,{clsPrefix:e,key:"base-icon"},{default:()=>C(oS,null)})}))}}),SBe=ge({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:r}=We(fs);return()=>{const{rowKey:n}=e;return C(Zm,{privateInsideTable:!0,disabled:e.disabled,indeterminate:r.value.has(n),checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),_Be=ge({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:r}=We(fs);return()=>{const{rowKey:n}=e;return C(Lk,{name:r,disabled:e.disabled,checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}});function BBe(e,t){const r=[];function n(a,i){a.forEach(o=>{o.children&&t.has(o.key)?(r.push({tmNode:o,striped:!1,key:o.key,index:i}),n(o.children,i)):r.push({key:o.key,tmNode:o,striped:!1,index:i})})}return e.forEach(a=>{r.push(a);const{children:i}=a.tmNode;i&&t.has(a.key)&&n(i,a.index)}),r}const TBe=ge({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:r,onMouseenter:n,onMouseleave:a}=this;return C("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:n,onMouseleave:a},C("colgroup",null,r.map(i=>C("col",{key:i.key,style:i.style}))),C("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}});var EBe=ge({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:r,mergedExpandedRowKeysRef:n,mergedClsPrefixRef:a,mergedThemeRef:i,scrollXRef:o,colsRef:s,paginatedDataRef:l,rawPaginatedDataRef:u,fixedColumnLeftMapRef:c,fixedColumnRightMapRef:d,mergedCurrentPageRef:f,rowClassNameRef:A,leftActiveFixedColKeyRef:h,leftActiveFixedChildrenColKeysRef:v,rightActiveFixedColKeyRef:p,rightActiveFixedChildrenColKeysRef:g,renderExpandRef:m,hoverKeyRef:y,summaryRef:b,mergedSortStateRef:w,virtualScrollRef:x,componentId:S,scrollPartRef:_,mergedTableLayoutRef:B,childTriggerColIndexRef:T,indentRef:E,rowPropsRef:I,maxHeightRef:R,stripedRef:D,loadingRef:k,onLoadRef:F,loadingKeySetRef:P,expandableRef:O,stickyExpandedRowsRef:H,renderExpandIconRef:V,summaryPlacementRef:W,setHeaderScrollLeft:Z,doUpdateExpandedRowKeys:ee,handleTableBodyScroll:ae,doCheck:ne,doUncheck:le,renderCell:se}=We(fs),ce=X(null),ye=X(null),fe=X(null),Q=Rt(()=>l.value.length===0),J=Rt(()=>e.showHeader||!Q.value),U=Rt(()=>e.showHeader||Q.value);let K="";const q=L(()=>new Set(n.value));function ie(ke){const Ge=l.value.findIndex(it=>it.key===ke);return l.value[Ge].rawNode}function $(ke,Ge,it){const ut=ie(ke.key);if(it){const Ke=l.value.findIndex(xt=>xt.key===K);if(Ke!==-1){const xt=l.value.findIndex(Je=>Je.key===ke.key),ue=Math.min(Ke,xt),Te=Math.max(Ke,xt),He=[];l.value.slice(ue,Te+1).forEach(Je=>{Je.disabled||He.push(Je.key)}),Ge?ne(He,!1,ut):le(He,ut),K=ke.key;return}}Ge?ne(ke.key,!1,ut):le(ke.key,ut),K=ke.key}function re(ke){const Ge=ie(ke.key);ne(ke.key,!0,Ge)}function ve(){if(!J.value){const{value:Ge}=fe;return Ge||null}if(x.value)return te();const{value:ke}=ce;return ke?ke.containerRef:null}function he(ke,Ge){var it;if(P.value.has(ke))return;const{value:ut}=n,Ke=ut.indexOf(ke),xt=Array.from(ut);~Ke?(xt.splice(Ke,1),ee(xt)):Ge&&!Ge.isLeaf&&!Ge.shallowLoaded?(P.value.add(ke),(it=F.value)===null||it===void 0||it.call(F,Ge.rawNode).then(()=>{const{value:ue}=n,Te=Array.from(ue);~Te.indexOf(ke)||Te.push(ke),ee(Te)}).finally(()=>{P.value.delete(ke)})):(xt.push(ke),ee(xt))}function oe(){y.value=null}function Y(){_.value="body"}function te(){const{value:ke}=ye;return ke==null?void 0:ke.listElRef}function pe(){const{value:ke}=ye;return ke==null?void 0:ke.itemsElRef}function de(ke){var Ge;ae(ke),(Ge=ce.value)===null||Ge===void 0||Ge.sync()}function we(ke){var Ge;const{onResize:it}=e;it&&it(ke),(Ge=ce.value)===null||Ge===void 0||Ge.sync()}const De={getScrollContainer:ve,scrollTo(ke,Ge){var it,ut;x.value?(it=ye.value)===null||it===void 0||it.scrollTo(ke,Ge):(ut=ce.value)===null||ut===void 0||ut.scrollTo(ke,Ge)}},ze=N([({props:ke})=>{const Ge=ut=>ut===null?null:N(`[data-n-id="${ke.componentId}"] [data-col-key="${ut}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),it=ut=>ut===null?null:N(`[data-n-id="${ke.componentId}"] [data-col-key="${ut}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return N([Ge(ke.leftActiveFixedColKey),it(ke.rightActiveFixedColKey),ke.leftActiveFixedChildrenColKeys.map(ut=>Ge(ut)),ke.rightActiveFixedChildrenColKeys.map(ut=>it(ut))])}]);let Xe=!1;return yr(()=>{const{value:ke}=h,{value:Ge}=v,{value:it}=p,{value:ut}=g;if(!Xe&&ke===null&&it===null)return;const Ke={leftActiveFixedColKey:ke,leftActiveFixedChildrenColKeys:Ge,rightActiveFixedColKey:it,rightActiveFixedChildrenColKeys:ut,componentId:S};ze.mount({id:`n-${S}`,force:!0,props:Ke,anchorMetaName:dv}),Xe=!0}),iA(()=>{ze.unmount({id:`n-${S}`})}),Object.assign({bodyWidth:r,summaryPlacement:W,dataTableSlots:t,componentId:S,scrollbarInstRef:ce,virtualListRef:ye,emptyElRef:fe,summary:b,mergedClsPrefix:a,mergedTheme:i,scrollX:o,cols:s,loading:k,bodyShowHeaderOnly:U,shouldDisplaySomeTablePart:J,empty:Q,paginatedDataAndInfo:L(()=>{const{value:ke}=D;let Ge=!1;return{data:l.value.map(ke?(ut,Ke)=>(ut.isLeaf||(Ge=!0),{tmNode:ut,key:ut.key,striped:Ke%2===1,index:Ke}):(ut,Ke)=>(ut.isLeaf||(Ge=!0),{tmNode:ut,key:ut.key,striped:!1,index:Ke})),hasChildren:Ge}}),rawPaginatedData:u,fixedColumnLeftMap:c,fixedColumnRightMap:d,currentPage:f,rowClassName:A,renderExpand:m,mergedExpandedRowKeySet:q,hoverKey:y,mergedSortState:w,virtualScroll:x,mergedTableLayout:B,childTriggerColIndex:T,indent:E,rowProps:I,maxHeight:R,loadingKeySet:P,expandable:O,stickyExpandedRows:H,renderExpandIcon:V,setHeaderScrollLeft:Z,handleMouseenterTable:Y,handleVirtualListScroll:de,handleVirtualListResize:we,handleMouseleaveTable:oe,virtualListContainer:te,virtualListContent:pe,handleTableBodyScroll:ae,handleCheckboxUpdateChecked:$,handleRadioUpdateChecked:re,handleUpdateExpanded:he,renderCell:se},De)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:r,virtualScroll:n,maxHeight:a,mergedTableLayout:i,flexHeight:o,loadingKeySet:s,onResize:l,setHeaderScrollLeft:u}=this,c=t!==void 0||a!==void 0||o,d=!c&&i==="auto",f=t!==void 0||d,A={minWidth:pr(t)||"100%"};t&&(A.width="100%");const h=C(Un,{ref:"scrollbarInstRef",scrollable:c||d,class:`${r}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:A,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:f,onScroll:n?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:u,onResize:l},{default:()=>{const v={},p={},{cols:g,paginatedDataAndInfo:m,mergedTheme:y,fixedColumnLeftMap:b,fixedColumnRightMap:w,currentPage:x,rowClassName:S,mergedSortState:_,mergedExpandedRowKeySet:B,stickyExpandedRows:T,componentId:E,childTriggerColIndex:I,expandable:R,rowProps:D,handleMouseenterTable:k,handleMouseleaveTable:F,renderExpand:P,summary:O,handleCheckboxUpdateChecked:H,handleRadioUpdateChecked:V,handleUpdateExpanded:W}=this,{length:Z}=g;let ee;const{data:ae,hasChildren:ne}=m,le=ne?BBe(ae,B):ae;if(O){const K=O(this.rawPaginatedData);if(Array.isArray(K)){const q=K.map((ie,$)=>({isSummaryRow:!0,key:`__n_summary__${$}`,tmNode:{rawNode:ie,disabled:!0},index:-1}));ee=this.summaryPlacement==="top"?[...q,...le]:[...le,...q]}else{const q={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:K,disabled:!0},index:-1};ee=this.summaryPlacement==="top"?[q,...le]:[...le,q]}}else ee=le;const se=ne?{width:Tn(this.indent)}:void 0,ce=[];ee.forEach(K=>{P&&B.has(K.key)&&(!R||R(K.tmNode.rawNode))?ce.push(K,{isExpandedRow:!0,key:`${K.key}-expand`,tmNode:K.tmNode,index:K.index}):ce.push(K)});const{length:ye}=ce,fe={};ae.forEach(({tmNode:K},q)=>{fe[q]=K.key});const Q=T?this.bodyWidth:null,J=Q===null?void 0:`${Q}px`,U=(K,q,ie)=>{const{index:$}=K;if("isExpandedRow"in K){const{tmNode:{key:De,rawNode:ze}}=K;return C("tr",{class:`${r}-data-table-tr`,key:`${De}__expand`},C("td",{class:[`${r}-data-table-td`,`${r}-data-table-td--last-col`,q+1===ye&&`${r}-data-table-td--last-row`],colspan:Z},T?C("div",{class:`${r}-data-table-expand`,style:{width:J}},P(ze,$)):P(ze,$)))}const re="isSummaryRow"in K,ve=!re&&K.striped,{tmNode:he,key:oe}=K,{rawNode:Y}=he,te=B.has(oe),pe=D?D(Y,$):void 0,de=typeof S=="string"?S:J_e(Y,$,S);return C("tr",Object.assign({onMouseenter:()=>{this.hoverKey=oe},key:oe,class:[`${r}-data-table-tr`,re&&`${r}-data-table-tr--summary`,ve&&`${r}-data-table-tr--striped`,de]},pe),g.map((De,ze)=>{var Xe,ke,Ge,it,ut;if(q in v){const Qe=v[q],me=Qe.indexOf(ze);if(~me)return Qe.splice(me,1),null}const{column:Ke}=De,xt=Wo(De),{rowSpan:ue,colSpan:Te}=Ke,He=re?((Xe=K.tmNode.rawNode[xt])===null||Xe===void 0?void 0:Xe.colSpan)||1:Te?Te(Y,$):1,Je=re?((ke=K.tmNode.rawNode[xt])===null||ke===void 0?void 0:ke.rowSpan)||1:ue?ue(Y,$):1,nt=ze+He===Z,be=q+Je===ye,Le=Je>1;if(Le&&(p[q]={[ze]:[]}),He>1||Le)for(let Qe=q;Qe<q+Je;++Qe){Le&&p[q][ze].push(fe[Qe]);for(let me=ze;me<ze+He;++me)Qe===q&&me===ze||(Qe in v?v[Qe].push(me):v[Qe]=[me])}const je=Le?this.hoverKey:null,{cellProps:ft}=Ke,Ce=ft==null?void 0:ft(Y,$);return C("td",Object.assign({},Ce,{key:xt,style:[{textAlign:Ke.align||void 0,left:Tn((Ge=b[xt])===null||Ge===void 0?void 0:Ge.start),right:Tn((it=w[xt])===null||it===void 0?void 0:it.start)},(Ce==null?void 0:Ce.style)||""],colspan:He,rowspan:ie?void 0:Je,"data-col-key":xt,class:[`${r}-data-table-td`,Ke.className,Ce==null?void 0:Ce.class,re&&`${r}-data-table-td--summary`,(je!==null&&p[q][ze].includes(je)||Xj(Ke,_))&&`${r}-data-table-td--hover`,Ke.fixed&&`${r}-data-table-td--fixed-${Ke.fixed}`,Ke.align&&`${r}-data-table-td--${Ke.align}-align`,Ke.type==="selection"&&`${r}-data-table-td--selection`,Ke.type==="expand"&&`${r}-data-table-td--expand`,nt&&`${r}-data-table-td--last-col`,be&&`${r}-data-table-td--last-row`]}),ne&&ze===I?[LW(re?0:K.tmNode.level,C("div",{class:`${r}-data-table-indent`,style:se})),re||K.tmNode.isLeaf?C("div",{class:`${r}-data-table-expand-placeholder`}):C(q3,{class:`${r}-data-table-expand-trigger`,clsPrefix:r,expanded:te,renderExpandIcon:this.renderExpandIcon,loading:s.has(K.key),onClick:()=>{W(oe,K.tmNode)}})]:null,Ke.type==="selection"?re?null:Ke.multiple===!1?C(_Be,{key:x,rowKey:oe,disabled:K.tmNode.disabled,onUpdateChecked:()=>V(K.tmNode)}):C(SBe,{key:x,rowKey:oe,disabled:K.tmNode.disabled,onUpdateChecked:(Qe,me)=>H(K.tmNode,Qe,me.shiftKey)}):Ke.type==="expand"?re?null:!Ke.expandable||((ut=Ke.expandable)===null||ut===void 0?void 0:ut.call(Ke,Y))?C(q3,{clsPrefix:r,expanded:te,renderExpandIcon:this.renderExpandIcon,onClick:()=>W(oe,null)}):null:C(CBe,{clsPrefix:r,index:$,row:Y,column:Ke,isSummary:re,mergedTheme:y,renderCell:this.renderCell}))}))};return n?C(cv,{ref:"virtualListRef",items:ce,itemSize:28,visibleItemsTag:TBe,visibleItemsProps:{clsPrefix:r,id:E,cols:g,onMouseenter:k,onMouseleave:F},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:A,itemResizable:!0},{default:({item:K,index:q})=>U(K,q,!0)}):C("table",{class:`${r}-data-table-table`,onMouseleave:F,onMouseenter:k,style:{tableLayout:this.mergedTableLayout}},C("colgroup",null,g.map(K=>C("col",{key:K.key,style:K.style}))),this.showHeader?C(aY,{discrete:!1}):null,this.empty?null:C("tbody",{"data-n-id":E,class:`${r}-data-table-tbody`},ce.map((K,q)=>U(K,q,!1))))}});if(this.empty){const v=()=>C("div",{class:[`${r}-data-table-empty`,this.loading&&`${r}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},Wt(this.dataTableSlots.empty,()=>[C(sS,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?C(rr,null,h,v()):C(bo,{onResize:this.onResize},{default:v})}return h}}),IBe=ge({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:r,bodyWidthRef:n,maxHeightRef:a,minHeightRef:i,flexHeightRef:o,syncScrollState:s}=We(fs),l=X(null),u=X(null),c=X(null),d=X(!(r.value.length||t.value.length)),f=L(()=>({maxHeight:pr(a.value),minHeight:pr(i.value)}));function A(g){n.value=g.contentRect.width,s(),d.value||(d.value=!0)}function h(){const{value:g}=l;return g?g.$el:null}function v(){const{value:g}=u;return g?g.getScrollContainer():null}const p={getBodyElement:v,getHeaderElement:h,scrollTo(g,m){var y;(y=u.value)===null||y===void 0||y.scrollTo(g,m)}};return yr(()=>{const{value:g}=c;if(!g)return;const m=`${e.value}-data-table-base-table--transition-disabled`;d.value?setTimeout(()=>{g.classList.remove(m)},0):g.classList.add(m)}),Object.assign({maxHeight:a,mergedClsPrefix:e,selfElRef:c,headerInstRef:l,bodyInstRef:u,bodyStyle:f,flexHeight:o,handleBodyResize:A},p)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:r}=this,n=t===void 0&&!r;return C("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},n?null:C(aY,{ref:"headerInstRef"}),C(EBe,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:n,flexHeight:r,onResize:this.handleBodyResize}))}});function RBe(e,t){const{paginatedDataRef:r,treeMateRef:n,selectionColumnRef:a}=t,i=X(e.defaultCheckedRowKeys),o=L(()=>{var w;const{checkedRowKeys:x}=e,S=x===void 0?i.value:x;return((w=a.value)===null||w===void 0?void 0:w.multiple)===!1?{checkedKeys:S.slice(0,1),indeterminateKeys:[]}:n.value.getCheckedKeys(S,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),s=L(()=>o.value.checkedKeys),l=L(()=>o.value.indeterminateKeys),u=L(()=>new Set(s.value)),c=L(()=>new Set(l.value)),d=L(()=>{const{value:w}=u;return r.value.reduce((x,S)=>{const{key:_,disabled:B}=S;return x+(!B&&w.has(_)?1:0)},0)}),f=L(()=>r.value.filter(w=>w.disabled).length),A=L(()=>{const{length:w}=r.value,{value:x}=c;return d.value>0&&d.value<w-f.value||r.value.some(S=>x.has(S.key))}),h=L(()=>{const{length:w}=r.value;return d.value!==0&&d.value===w-f.value}),v=L(()=>r.value.length===0);function p(w,x,S){const{"onUpdate:checkedRowKeys":_,onUpdateCheckedRowKeys:B,onCheckedRowKeysChange:T}=e,E=[],{value:{getNode:I}}=n;w.forEach(R=>{var D;const k=(D=I(R))===null||D===void 0?void 0:D.rawNode;E.push(k)}),_&&Ee(_,w,E,{row:x,action:S}),B&&Ee(B,w,E,{row:x,action:S}),T&&Ee(T,w,E,{row:x,action:S}),i.value=w}function g(w,x=!1,S){if(!e.loading){if(x){p(Array.isArray(w)?w.slice(0,1):[w],S,"check");return}p(n.value.check(w,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,S,"check")}}function m(w,x){e.loading||p(n.value.uncheck(w,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,x,"uncheck")}function y(w=!1){const{value:x}=a;if(!x||e.loading)return;const S=[];(w?n.value.treeNodes:r.value).forEach(_=>{_.disabled||S.push(_.key)}),p(n.value.check(S,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function b(w=!1){const{value:x}=a;if(!x||e.loading)return;const S=[];(w?n.value.treeNodes:r.value).forEach(_=>{_.disabled||S.push(_.key)}),p(n.value.uncheck(S,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:u,mergedCheckedRowKeysRef:s,mergedInderminateRowKeySetRef:c,someRowsCheckedRef:A,allRowsCheckedRef:h,headerCheckboxDisabledRef:v,doUpdateCheckedRowKeys:p,doCheckAll:y,doUncheckAll:b,doCheck:g,doUncheck:m}}function ub(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function DBe(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?FBe(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function FBe(e){return(t,r)=>{const n=t[e],a=r[e];return typeof n=="number"&&typeof a=="number"?n-a:typeof n=="string"&&typeof a=="string"?n.localeCompare(a):0}}function MBe(e,{dataRelatedColsRef:t,filteredDataRef:r}){const n=[];t.value.forEach(A=>{var h;A.sorter!==void 0&&f(n,{columnKey:A.key,sorter:A.sorter,order:(h=A.defaultSortOrder)!==null&&h!==void 0?h:!1})});const a=X(n),i=L(()=>{const A=t.value.filter(p=>p.type!=="selection"&&p.sorter!==void 0&&(p.sortOrder==="ascend"||p.sortOrder==="descend"||p.sortOrder===!1)),h=A.filter(p=>p.sortOrder!==!1);if(h.length)return h.map(p=>({columnKey:p.key,order:p.sortOrder,sorter:p.sorter}));if(A.length)return[];const{value:v}=a;return Array.isArray(v)?v:v?[v]:[]}),o=L(()=>{const A=i.value.slice().sort((h,v)=>{const p=ub(h.sorter)||0;return(ub(v.sorter)||0)-p});return A.length?r.value.slice().sort((v,p)=>{let g=0;return A.some(m=>{const{columnKey:y,sorter:b,order:w}=m,x=DBe(b,y);return x&&w&&(g=x(v.rawNode,p.rawNode),g!==0)?(g=g*X_e(w),!0):!1}),g}):r.value});function s(A){let h=i.value.slice();return A&&ub(A.sorter)!==!1?(h=h.filter(v=>ub(v.sorter)!==!1),f(h,A),h):A||null}function l(A){const h=s(A);u(h)}function u(A){const{"onUpdate:sorter":h,onUpdateSorter:v,onSorterChange:p}=e;h&&Ee(h,A),v&&Ee(v,A),p&&Ee(p,A),a.value=A}function c(A,h="ascend"){if(!A)d();else{const v=t.value.find(g=>g.type!=="selection"&&g.type!=="expand"&&g.key===A);if(!(v!=null&&v.sorter))return;const p=v.sorter;l({columnKey:A,sorter:p,order:h})}}function d(){u(null)}function f(A,h){const v=A.findIndex(p=>(h==null?void 0:h.columnKey)&&p.columnKey===h.columnKey);v!==void 0&&v>=0?A[v]=h:A.push(h)}return{clearSorter:d,sort:c,sortedDataRef:o,mergedSortStateRef:i,deriveNextSorter:l}}function kBe(e,{dataRelatedColsRef:t}){const r=L(()=>{const V=W=>{for(let Z=0;Z<W.length;++Z){const ee=W[Z];if("children"in ee)return V(ee.children);if(ee.type==="selection")return ee}return null};return V(e.columns)}),n=L(()=>{const{childrenKey:V}=e;return Hv(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:W=>W[V],getDisabled:W=>{var Z,ee;return!!(!((ee=(Z=r.value)===null||Z===void 0?void 0:Z.disabled)===null||ee===void 0)&&ee.call(Z,W))}})}),a=Rt(()=>{const{columns:V}=e,{length:W}=V;let Z=null;for(let ee=0;ee<W;++ee){const ae=V[ee];if(!ae.type&&Z===null&&(Z=ee),"tree"in ae&&ae.tree)return ee}return Z||0}),i=X({}),o=X(1),s=X(10),l=L(()=>{const V=t.value.filter(ee=>ee.filterOptionValues!==void 0||ee.filterOptionValue!==void 0),W={};return V.forEach(ee=>{var ae;ee.type==="selection"||ee.type==="expand"||(ee.filterOptionValues===void 0?W[ee.key]=(ae=ee.filterOptionValue)!==null&&ae!==void 0?ae:null:W[ee.key]=ee.filterOptionValues)}),Object.assign(K3(i.value),W)}),u=L(()=>{const V=l.value,{columns:W}=e;function Z(ne){return(le,se)=>!!~String(se[ne]).indexOf(String(le))}const{value:{treeNodes:ee}}=n,ae=[];return W.forEach(ne=>{ne.type==="selection"||ne.type==="expand"||"children"in ne||ae.push([ne.key,ne])}),ee?ee.filter(ne=>{const{rawNode:le}=ne;for(const[se,ce]of ae){let ye=V[se];if(ye==null||(Array.isArray(ye)||(ye=[ye]),!ye.length))continue;const fe=ce.filter==="default"?Z(se):ce.filter;if(ce&&typeof fe=="function")if(ce.filterMode==="and"){if(ye.some(Q=>!fe(Q,le)))return!1}else{if(ye.some(Q=>fe(Q,le)))continue;return!1}}return!0}):[]}),{sortedDataRef:c,deriveNextSorter:d,mergedSortStateRef:f,sort:A,clearSorter:h}=MBe(e,{dataRelatedColsRef:t,filteredDataRef:u});t.value.forEach(V=>{var W;if(V.filter){const Z=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=Z||[]:Z!==void 0?i.value[V.key]=Z===null?[]:Z:i.value[V.key]=(W=V.defaultFilterOptionValue)!==null&&W!==void 0?W:null}});const v=L(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),p=L(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),g=Sr(v,o),m=Sr(p,s),y=Rt(()=>{const V=g.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(u.value.length/m.value),V))}),b=L(()=>{const{pagination:V}=e;if(V){const{pageCount:W}=V;if(W!==void 0)return W}}),w=L(()=>{if(e.remote)return n.value.treeNodes;if(!e.pagination)return c.value;const V=m.value,W=(y.value-1)*V;return c.value.slice(W,W+V)}),x=L(()=>w.value.map(V=>V.rawNode));function S(V){const{pagination:W}=e;if(W){const{onChange:Z,"onUpdate:page":ee,onUpdatePage:ae}=W;Z&&Ee(Z,V),ae&&Ee(ae,V),ee&&Ee(ee,V),E(V)}}function _(V){const{pagination:W}=e;if(W){const{onPageSizeChange:Z,"onUpdate:pageSize":ee,onUpdatePageSize:ae}=W;Z&&Ee(Z,V),ae&&Ee(ae,V),ee&&Ee(ee,V),I(V)}}const B=L(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:W}=V;if(W!==void 0)return W}return}return u.value.length}),T=L(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":S,"onUpdate:pageSize":_,page:y.value,pageSize:m.value,pageCount:B.value===void 0?b.value:void 0,itemCount:B.value}));function E(V){const{"onUpdate:page":W,onPageChange:Z,onUpdatePage:ee}=e;ee&&Ee(ee,V),W&&Ee(W,V),Z&&Ee(Z,V),o.value=V}function I(V){const{"onUpdate:pageSize":W,onPageSizeChange:Z,onUpdatePageSize:ee}=e;Z&&Ee(Z,V),ee&&Ee(ee,V),W&&Ee(W,V),s.value=V}function R(V,W){const{onUpdateFilters:Z,"onUpdate:filters":ee,onFiltersChange:ae}=e;Z&&Ee(Z,V,W),ee&&Ee(ee,V,W),ae&&Ee(ae,V,W),i.value=V}function D(V,W,Z,ee){var ae;(ae=e.onUnstableColumnResize)===null||ae===void 0||ae.call(e,V,W,Z,ee)}function k(V){E(V)}function F(){P()}function P(){O({})}function O(V){H(V)}function H(V){V?V&&(i.value=K3(V)):i.value={}}return{treeMateRef:n,mergedCurrentPageRef:y,mergedPaginationRef:T,paginatedDataRef:w,rawPaginatedDataRef:x,mergedFilterStateRef:l,mergedSortStateRef:f,hoverKeyRef:X(null),selectionColumnRef:r,childTriggerColIndexRef:a,doUpdateFilters:R,deriveNextSorter:d,doUpdatePageSize:I,doUpdatePage:E,onUnstableColumnResize:D,filter:H,filters:O,clearFilter:F,clearFilters:P,clearSorter:h,page:k,sort:A}}function PBe(e,{mainTableInstRef:t,mergedCurrentPageRef:r,bodyWidthRef:n,scrollPartRef:a}){let i=0;const o=X(null),s=X([]),l=X(null),u=X([]),c=L(()=>pr(e.scrollX)),d=L(()=>e.columns.filter(B=>B.fixed==="left")),f=L(()=>e.columns.filter(B=>B.fixed==="right")),A=L(()=>{const B={};let T=0;function E(I){I.forEach(R=>{const D={start:T,end:0};B[Wo(R)]=D,"children"in R?(E(R.children),D.end=T):(T+=G3(R)||0,D.end=T)})}return E(d.value),B}),h=L(()=>{const B={};let T=0;function E(I){for(let R=I.length-1;R>=0;--R){const D=I[R],k={start:T,end:0};B[Wo(D)]=k,"children"in D?(E(D.children),k.end=T):(T+=G3(D)||0,k.end=T)}}return E(f.value),B});function v(){var B,T;const{value:E}=d;let I=0;const{value:R}=A;let D=null;for(let k=0;k<E.length;++k){const F=Wo(E[k]);if(i>(((B=R[F])===null||B===void 0?void 0:B.start)||0)-I)D=F,I=((T=R[F])===null||T===void 0?void 0:T.end)||0;else break}o.value=D}function p(){s.value=[];let B=e.columns.find(T=>Wo(T)===o.value);for(;B&&"children"in B;){const T=B.children.length;if(T===0)break;const E=B.children[T-1];s.value.push(Wo(E)),B=E}}function g(){var B,T;const{value:E}=f,I=Number(e.scrollX),{value:R}=n;if(R===null)return;let D=0,k=null;const{value:F}=h;for(let P=E.length-1;P>=0;--P){const O=Wo(E[P]);if(Math.round(i+(((B=F[O])===null||B===void 0?void 0:B.start)||0)+R-D)<I)k=O,D=((T=F[O])===null||T===void 0?void 0:T.end)||0;else break}l.value=k}function m(){u.value=[];let B=e.columns.find(T=>Wo(T)===l.value);for(;B&&"children"in B&&B.children.length;){const T=B.children[0];u.value.push(Wo(T)),B=T}}function y(){const B=t.value?t.value.getHeaderElement():null,T=t.value?t.value.getBodyElement():null;return{header:B,body:T}}function b(){const{body:B}=y();B&&(B.scrollTop=0)}function w(){a.value==="head"&&lv(S)}function x(B){var T;(T=e.onScroll)===null||T===void 0||T.call(e,B),a.value==="body"&&lv(S)}function S(){const{header:B,body:T}=y();if(!T)return;const{value:E}=n;if(E===null)return;const{value:I}=a;if(e.maxHeight||e.flexHeight){if(!B)return;I==="head"?(i=B.scrollLeft,T.scrollLeft=i):(i=T.scrollLeft,B.scrollLeft=i)}else i=T.scrollLeft;v(),p(),g(),m()}function _(B){const{header:T}=y();!T||(T.scrollLeft=B,S())}return mt(r,()=>{b()}),{styleScrollXRef:c,fixedColumnLeftMapRef:A,fixedColumnRightMapRef:h,leftFixedColumnsRef:d,rightFixedColumnsRef:f,leftActiveFixedColKeyRef:o,leftActiveFixedChildrenColKeysRef:s,rightActiveFixedColKeyRef:l,rightActiveFixedChildrenColKeysRef:u,syncScrollState:S,handleTableBodyScroll:x,handleTableHeaderScroll:w,setHeaderScrollLeft:_}}function LBe(){const e=X({});function t(a){return e.value[a]}function r(a,i){Yj(a)&&"key"in a&&(e.value[a.key]=i)}function n(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:r,clearResizableWidth:n}}function OBe(e,t){const r=[],n=[],a=[],i=new WeakMap;let o=-1,s=0,l=!1;function u(f,A){A>o&&(r[A]=[],o=A);for(const h of f)if("children"in h)u(h.children,A+1);else{const v="key"in h?h.key:void 0;n.push({key:Wo(h),style:Z_e(h,v!==void 0?pr(t(v)):void 0),column:h}),s+=1,l||(l=!!h.ellipsis),a.push(h)}}u(e,0);let c=0;function d(f,A){let h=0;f.forEach((v,p)=>{var g;if("children"in v){const m=c,y={column:v,colSpan:0,rowSpan:1,isLast:!1};d(v.children,A+1),v.children.forEach(b=>{var w,x;y.colSpan+=(x=(w=i.get(b))===null||w===void 0?void 0:w.colSpan)!==null&&x!==void 0?x:0}),m+y.colSpan===s&&(y.isLast=!0),i.set(v,y),r[A].push(y)}else{if(c<h){c+=1;return}let m=1;"titleColSpan"in v&&(m=(g=v.titleColSpan)!==null&&g!==void 0?g:1),m>1&&(h=c+m);const y=c+m===s,b={column:v,colSpan:m,rowSpan:o-A+1,isLast:y};i.set(v,b),r[A].push(b),c+=1}})}return d(e,0),{hasEllipsis:l,rows:r,cols:n,dataRelatedCols:a}}function $Be(e,t){const r=L(()=>OBe(e.columns,t));return{rowsRef:L(()=>r.value.rows),colsRef:L(()=>r.value.cols),hasEllipsisRef:L(()=>r.value.hasEllipsis),dataRelatedColsRef:L(()=>r.value.dataRelatedCols)}}function UBe(e,t){const r=Rt(()=>{for(const u of e.columns)if(u.type==="expand")return u.renderExpand}),n=Rt(()=>{let u;for(const c of e.columns)if(c.type==="expand"){u=c.expandable;break}return u}),a=X(e.defaultExpandAll?r!=null&&r.value?(()=>{const u=[];return t.value.treeNodes.forEach(c=>{var d;!((d=n.value)===null||d===void 0)&&d.call(n,c.rawNode)&&u.push(c.key)}),u})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=Ie(e,"expandedRowKeys"),o=Ie(e,"stickyExpandedRows"),s=Sr(i,a);function l(u){const{onUpdateExpandedRowKeys:c,"onUpdate:expandedRowKeys":d}=e;c&&Ee(c,u),d&&Ee(d,u),a.value=u}return{stickyExpandedRowsRef:o,mergedExpandedRowKeysRef:s,renderExpandRef:r,expandableRef:n,doUpdateExpandedRowKeys:l}}const Z3=zBe();var HBe=N([M("data-table",`
|
|
width: 100%;
|
|
font-size: var(--n-font-size);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
--n-merged-th-color: var(--n-th-color);
|
|
--n-merged-td-color: var(--n-td-color);
|
|
--n-merged-border-color: var(--n-border-color);
|
|
--n-merged-th-color-hover: var(--n-th-color-hover);
|
|
--n-merged-td-color-hover: var(--n-td-color-hover);
|
|
--n-merged-td-color-striped: var(--n-td-color-striped);
|
|
`,[M("data-table-wrapper",`
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
`),j("flex-height",[N(">",[M("data-table-wrapper",[N(">",[M("data-table-base-table",`
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
`,[N(">",[M("data-table-base-table-body","flex-basis: 0;",[N("&:last-child","flex-grow: 1;")])])])])])])]),N(">",[M("base-loading",`
|
|
color: var(--n-loading-color);
|
|
font-size: var(--n-loading-size);
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[gi({originalTransform:"translateX(-50%) translateY(-50%)"})])]),M("data-table-expand-placeholder",`
|
|
margin-right: 8px;
|
|
display: inline-block;
|
|
width: 16px;
|
|
height: 1px;
|
|
`),M("data-table-indent",`
|
|
display: inline-block;
|
|
height: 1px;
|
|
`),M("data-table-expand-trigger",`
|
|
display: inline-flex;
|
|
margin-right: 8px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
vertical-align: -0.2em;
|
|
position: relative;
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--n-td-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[j("expanded",[M("icon","transform: rotate(90deg);",[Wn({originalTransform:"rotate(90deg)"})]),M("base-icon","transform: rotate(90deg);",[Wn({originalTransform:"rotate(90deg)"})])]),M("base-loading",`
|
|
color: var(--n-loading-color);
|
|
transition: color .3s var(--n-bezier);
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[Wn()]),M("icon",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[Wn()]),M("base-icon",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[Wn()])]),M("data-table-thead",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
background-color: var(--n-merged-th-color);
|
|
`),M("data-table-tr",`
|
|
box-sizing: border-box;
|
|
background-clip: padding-box;
|
|
transition: background-color .3s var(--n-bezier);
|
|
`,[M("data-table-expand",`
|
|
position: sticky;
|
|
left: 0;
|
|
overflow: hidden;
|
|
margin: calc(var(--n-th-padding) * -1);
|
|
padding: var(--n-th-padding);
|
|
box-sizing: border-box;
|
|
`),j("striped","background-color: var(--n-merged-td-color-striped);",[M("data-table-td","background-color: var(--n-merged-td-color-striped);")]),Nt("summary",[N("&:hover","background-color: var(--n-merged-td-color-hover);",[M("data-table-td","background-color: var(--n-merged-td-color-hover);")])])]),M("data-table-th",`
|
|
padding: var(--n-th-padding);
|
|
position: relative;
|
|
text-align: start;
|
|
box-sizing: border-box;
|
|
background-color: var(--n-merged-th-color);
|
|
border-color: var(--n-merged-border-color);
|
|
border-bottom: 1px solid var(--n-merged-border-color);
|
|
color: var(--n-th-text-color);
|
|
transition:
|
|
border-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
font-weight: var(--n-th-font-weight);
|
|
`,[j("filterable",{paddingRight:"36px"}),Z3,j("selection",`
|
|
padding: 0;
|
|
text-align: center;
|
|
line-height: 0;
|
|
z-index: 3;
|
|
`),G("ellipsis",`
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
max-width: 100%;
|
|
`),j("hover",{backgroundColor:"var(--n-merged-th-color-hover)"}),j("sortable",{cursor:"pointer"},[G("ellipsis",{maxWidth:"calc(100% - 18px)"}),N("&:hover",{backgroundColor:"var(--n-merged-th-color-hover)"})]),M("data-table-sorter",`
|
|
height: var(--n-sorter-size);
|
|
width: var(--n-sorter-size);
|
|
margin-left: 4px;
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
vertical-align: -0.2em;
|
|
color: var(--n-th-icon-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[M("base-icon","transition: transform .3s var(--n-bezier)"),j("desc",[M("base-icon",{transform:"rotate(0deg)"})]),j("asc",[M("base-icon",{transform:"rotate(-180deg)"})]),j("asc, desc",{color:"var(--n-th-icon-color-active)"})]),M("data-table-resize-button",`
|
|
width: var(--n-resizable-container-size);
|
|
position: absolute;
|
|
top: 0;
|
|
right: calc(var(--n-resizable-container-size) / 2);
|
|
bottom: 0;
|
|
cursor: col-resize;
|
|
user-select: none;
|
|
`,[N("&::after",`
|
|
width: var(--n-resizable-size);
|
|
height: 50%;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: calc(var(--n-resizable-container-size) / 2);
|
|
bottom: 0;
|
|
background-color: var(--n-merged-border-color);
|
|
transform: translateY(-50%);
|
|
transition: background-color .3s var(--n-bezier);
|
|
z-index: 1;
|
|
content: '';
|
|
`),j("active",[N("&::after",`
|
|
background-color: var(--n-th-icon-color-active);
|
|
`)]),N("&:hover::after",`
|
|
background-color: var(--n-th-icon-color-active);
|
|
`)]),M("data-table-filter",`
|
|
position: absolute;
|
|
z-index: auto;
|
|
right: 0;
|
|
width: 36px;
|
|
top: 0;
|
|
bottom: 0;
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
font-size: var(--n-filter-size);
|
|
color: var(--n-th-icon-color);
|
|
`,[N("&:hover",`
|
|
background-color: var(--n-th-button-color-hover);
|
|
`),j("show",`
|
|
background-color: var(--n-th-button-color-hover);
|
|
`),j("active",`
|
|
background-color: var(--n-th-button-color-hover);
|
|
color: var(--n-th-icon-color-active);
|
|
`)])]),M("data-table-td",`
|
|
padding: var(--n-td-padding);
|
|
text-align: start;
|
|
box-sizing: border-box;
|
|
border: none;
|
|
background-color: var(--n-merged-td-color);
|
|
color: var(--n-td-text-color);
|
|
border-bottom: 1px solid var(--n-merged-border-color);
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`,[j("expand",[M("data-table-expand-trigger",`
|
|
margin-right: 0;
|
|
`)]),j("last-row",{borderBottom:"0 solid var(--n-merged-border-color)"},[N("&::after",{bottom:"0 !important"}),N("&::before",{bottom:"0 !important"})]),j("summary",`
|
|
background-color: var(--n-merged-th-color);
|
|
`),j("hover",{backgroundColor:"var(--n-merged-td-color-hover)"}),G("ellipsis",`
|
|
display: inline-block;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
max-width: 100%;
|
|
vertical-align: bottom;
|
|
`),j("selection, expand",`
|
|
text-align: center;
|
|
padding: 0;
|
|
line-height: 0;
|
|
`),Z3]),M("data-table-empty",`
|
|
box-sizing: border-box;
|
|
padding: var(--n-empty-padding);
|
|
flex-grow: 1;
|
|
flex-shrink: 0;
|
|
opacity: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: opacity .3s var(--n-bezier);
|
|
`,[j("hide",{opacity:0})]),G("pagination",`
|
|
margin: var(--n-pagination-margin);
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
`),M("data-table-wrapper",`
|
|
position: relative;
|
|
opacity: 1;
|
|
transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier);
|
|
border-top-left-radius: var(--n-border-radius);
|
|
border-top-right-radius: var(--n-border-radius);
|
|
line-height: var(--n-line-height);
|
|
`),j("loading",[M("data-table-wrapper",`
|
|
opacity: var(--n-opacity-loading);
|
|
pointer-events: none;
|
|
`)]),j("single-column",[M("data-table-td",{borderBottom:"0 solid var(--n-merged-border-color)"},[N("&::after, &::before",{bottom:"0 !important"})])]),Nt("single-line",[M("data-table-th",{borderRight:"1px solid var(--n-merged-border-color)"},[j("last",{borderRight:"0 solid var(--n-merged-border-color)"})]),M("data-table-td",{borderRight:"1px solid var(--n-merged-border-color)"},[j("last-col",{borderRight:"0 solid var(--n-merged-border-color)"})])]),j("bordered",[M("data-table-wrapper",`
|
|
border: 1px solid var(--n-merged-border-color);
|
|
border-bottom-left-radius: var(--n-border-radius);
|
|
border-bottom-right-radius: var(--n-border-radius);
|
|
overflow: hidden;
|
|
`)]),M("data-table-base-table",[j("transition-disabled",[M("data-table-th",[N("&::after, &::before",{transition:"none"})]),M("data-table-td",[N("&::after, &::before",{transition:"none"})])])]),j("bottom-bordered",[M("data-table-td",[j("last-row",{borderBottom:"1px solid var(--n-merged-border-color)"})])]),M("data-table-table",`
|
|
font-variant-numeric: tabular-nums;
|
|
width: 100%;
|
|
word-break: break-word;
|
|
transition: background-color .3s var(--n-bezier);
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
background-color: var(--n-merged-td-color);
|
|
`),M("data-table-base-table-header",`
|
|
border-top-left-radius: calc(var(--n-border-radius) - 1px);
|
|
border-top-right-radius: calc(var(--n-border-radius) - 1px);
|
|
z-index: 3;
|
|
overflow: scroll;
|
|
flex-shrink: 0;
|
|
transition: border-color .3s var(--n-bezier);
|
|
scrollbar-width: none;
|
|
`,[N("&::-webkit-scrollbar",{width:0,height:0})]),M("data-table-check-extra",`
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-th-icon-color);
|
|
position: absolute;
|
|
font-size: 14px;
|
|
right: -4px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
z-index: 1;
|
|
`)]),M("data-table-filter-menu",[M("scrollbar",{maxHeight:"240px"}),G("group",{display:"flex",flexDirection:"column",padding:"12px 12px 0 12px"},[M("checkbox",{marginBottom:"12px",marginRight:0}),M("radio",{marginBottom:"12px",marginRight:0})]),G("action",`
|
|
padding: var(--n-action-padding);
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
justify-content: space-evenly;
|
|
border-top: 1px solid var(--n-action-divider-color);
|
|
`,[M("button",[N("&:not(:last-child)",{margin:"var(--n-action-button-margin)"}),N("&:last-child",{marginRight:0})])]),M("divider",{margin:"0!important"})]),su(M("data-table",`
|
|
--n-merged-th-color: var(--n-th-color-modal);
|
|
--n-merged-td-color: var(--n-td-color-modal);
|
|
--n-merged-border-color: var(--n-border-color-modal);
|
|
--n-merged-th-color-hover: var(--n-th-color-hover-modal);
|
|
--n-merged-td-color-hover: var(--n-td-color-hover-modal);
|
|
--n-merged-td-color-striped: var(--n-td-color-striped-modal);
|
|
`)),Kc(M("data-table",`
|
|
--n-merged-th-color: var(--n-th-color-popover);
|
|
--n-merged-td-color: var(--n-td-color-popover);
|
|
--n-merged-border-color: var(--n-border-color-popover);
|
|
--n-merged-th-color-hover: var(--n-th-color-hover-popover);
|
|
--n-merged-td-color-hover: var(--n-td-color-hover-popover);
|
|
--n-merged-td-color-striped: var(--n-td-color-striped-popover);
|
|
`))]);function zBe(){return[j("fixed-left",`
|
|
left: 0;
|
|
position: sticky;
|
|
z-index: 2;
|
|
`,[N("&::after",`
|
|
pointer-events: none;
|
|
content: "";
|
|
width: 36px;
|
|
display: inline-block;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: -1px;
|
|
transition: box-shadow .2s var(--n-bezier);
|
|
right: -36px;
|
|
`)]),j("fixed-right",{right:0,position:"sticky",zIndex:1},[N("&::before",`
|
|
pointer-events: none;
|
|
content: "";
|
|
width: 36px;
|
|
display: inline-block;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: -1px;
|
|
transition: box-shadow .2s var(--n-bezier);
|
|
left: -36px;
|
|
`)])]}var NBe=ge({name:"DataTable",alias:["AdvancedTable"],props:H_e,setup(e,{slots:t}){const{mergedBorderedRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:a}=et(e),i=L(()=>{const{bottomBordered:Ke}=e;return r.value?!1:Ke!==void 0?Ke:!0}),o=Fe("DataTable","-data-table",HBe,M_e,e,n),s=X(null),l=X("body");zm(()=>{l.value="body"});const u=X(null),{getResizableWidth:c,clearResizableWidth:d,doUpdateResizableWidth:f}=LBe(),{rowsRef:A,colsRef:h,dataRelatedColsRef:v,hasEllipsisRef:p}=$Be(e,c),{treeMateRef:g,mergedCurrentPageRef:m,paginatedDataRef:y,rawPaginatedDataRef:b,selectionColumnRef:w,hoverKeyRef:x,mergedPaginationRef:S,mergedFilterStateRef:_,mergedSortStateRef:B,childTriggerColIndexRef:T,doUpdatePage:E,doUpdateFilters:I,onUnstableColumnResize:R,deriveNextSorter:D,filter:k,filters:F,clearFilter:P,clearFilters:O,clearSorter:H,page:V,sort:W}=kBe(e,{dataRelatedColsRef:v}),{doCheckAll:Z,doUncheckAll:ee,doCheck:ae,doUncheck:ne,headerCheckboxDisabledRef:le,someRowsCheckedRef:se,allRowsCheckedRef:ce,mergedCheckedRowKeySetRef:ye,mergedInderminateRowKeySetRef:fe}=RBe(e,{selectionColumnRef:w,treeMateRef:g,paginatedDataRef:y}),{stickyExpandedRowsRef:Q,mergedExpandedRowKeysRef:J,renderExpandRef:U,expandableRef:K,doUpdateExpandedRowKeys:q}=UBe(e,g),{handleTableBodyScroll:ie,handleTableHeaderScroll:$,syncScrollState:re,setHeaderScrollLeft:ve,leftActiveFixedColKeyRef:he,leftActiveFixedChildrenColKeysRef:oe,rightActiveFixedColKeyRef:Y,rightActiveFixedChildrenColKeysRef:te,leftFixedColumnsRef:pe,rightFixedColumnsRef:de,fixedColumnLeftMapRef:we,fixedColumnRightMapRef:De}=PBe(e,{scrollPartRef:l,bodyWidthRef:s,mainTableInstRef:u,mergedCurrentPageRef:m}),{localeRef:ze}=Io("DataTable"),Xe=L(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||p.value?"fixed":e.tableLayout);Ct(fs,{props:e,renderExpandIconRef:Ie(e,"renderExpandIcon"),loadingKeySetRef:X(new Set),slots:t,indentRef:Ie(e,"indent"),childTriggerColIndexRef:T,bodyWidthRef:s,componentId:yo(),hoverKeyRef:x,mergedClsPrefixRef:n,mergedThemeRef:o,scrollXRef:L(()=>e.scrollX),rowsRef:A,colsRef:h,paginatedDataRef:y,leftActiveFixedColKeyRef:he,leftActiveFixedChildrenColKeysRef:oe,rightActiveFixedColKeyRef:Y,rightActiveFixedChildrenColKeysRef:te,leftFixedColumnsRef:pe,rightFixedColumnsRef:de,fixedColumnLeftMapRef:we,fixedColumnRightMapRef:De,mergedCurrentPageRef:m,someRowsCheckedRef:se,allRowsCheckedRef:ce,mergedSortStateRef:B,mergedFilterStateRef:_,loadingRef:Ie(e,"loading"),rowClassNameRef:Ie(e,"rowClassName"),mergedCheckedRowKeySetRef:ye,mergedExpandedRowKeysRef:J,mergedInderminateRowKeySetRef:fe,localeRef:ze,scrollPartRef:l,expandableRef:K,stickyExpandedRowsRef:Q,rowKeyRef:Ie(e,"rowKey"),renderExpandRef:U,summaryRef:Ie(e,"summary"),virtualScrollRef:Ie(e,"virtualScroll"),rowPropsRef:Ie(e,"rowProps"),stripedRef:Ie(e,"striped"),checkOptionsRef:L(()=>{const{value:Ke}=w;return Ke==null?void 0:Ke.options}),rawPaginatedDataRef:b,filterMenuCssVarsRef:L(()=>{const{self:{actionDividerColor:Ke,actionPadding:xt,actionButtonMargin:ue}}=o.value;return{"--n-action-padding":xt,"--n-action-button-margin":ue,"--n-action-divider-color":Ke}}),onLoadRef:Ie(e,"onLoad"),mergedTableLayoutRef:Xe,maxHeightRef:Ie(e,"maxHeight"),minHeightRef:Ie(e,"minHeight"),flexHeightRef:Ie(e,"flexHeight"),headerCheckboxDisabledRef:le,paginationBehaviorOnFilterRef:Ie(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Ie(e,"summaryPlacement"),syncScrollState:re,doUpdatePage:E,doUpdateFilters:I,getResizableWidth:c,onUnstableColumnResize:R,clearResizableWidth:d,doUpdateResizableWidth:f,deriveNextSorter:D,doCheck:ae,doUncheck:ne,doCheckAll:Z,doUncheckAll:ee,doUpdateExpandedRowKeys:q,handleTableHeaderScroll:$,handleTableBodyScroll:ie,setHeaderScrollLeft:ve,renderCell:Ie(e,"renderCell")});const ke={filter:k,filters:F,clearFilters:O,clearSorter:H,page:V,sort:W,clearFilter:P,scrollTo:(Ke,xt)=>{var ue;(ue=u.value)===null||ue===void 0||ue.scrollTo(Ke,xt)}},Ge=L(()=>{const{size:Ke}=e,{common:{cubicBezierEaseInOut:xt},self:{borderColor:ue,tdColorHover:Te,thColor:He,thColorHover:Je,tdColor:nt,tdTextColor:be,thTextColor:Le,thFontWeight:je,thButtonColorHover:ft,thIconColor:Ce,thIconColorActive:Qe,filterSize:me,borderRadius:Ne,lineHeight:lt,tdColorModal:Tt,thColorModal:dt,borderColorModal:Ae,thColorHoverModal:Re,tdColorHoverModal:ot,borderColorPopover:Ht,thColorPopover:_e,tdColorPopover:Oe,tdColorHoverPopover:rt,thColorHoverPopover:ht,paginationMargin:Ft,emptyPadding:Hr,boxShadowAfter:Pr,boxShadowBefore:Be,sorterSize:qe,resizableContainerSize:vt,resizableSize:Jt,loadingColor:Lr,loadingSize:br,opacityLoading:Lo,tdColorStriped:Br,tdColorStripedModal:dn,tdColorStripedPopover:hl,[Se("fontSize",Ke)]:hu,[Se("thPadding",Ke)]:vu,[Se("tdPadding",Ke)]:pu}}=o.value;return{"--n-font-size":hu,"--n-th-padding":vu,"--n-td-padding":pu,"--n-bezier":xt,"--n-border-radius":Ne,"--n-line-height":lt,"--n-border-color":ue,"--n-border-color-modal":Ae,"--n-border-color-popover":Ht,"--n-th-color":He,"--n-th-color-hover":Je,"--n-th-color-modal":dt,"--n-th-color-hover-modal":Re,"--n-th-color-popover":_e,"--n-th-color-hover-popover":ht,"--n-td-color":nt,"--n-td-color-hover":Te,"--n-td-color-modal":Tt,"--n-td-color-hover-modal":ot,"--n-td-color-popover":Oe,"--n-td-color-hover-popover":rt,"--n-th-text-color":Le,"--n-td-text-color":be,"--n-th-font-weight":je,"--n-th-button-color-hover":ft,"--n-th-icon-color":Ce,"--n-th-icon-color-active":Qe,"--n-filter-size":me,"--n-pagination-margin":Ft,"--n-empty-padding":Hr,"--n-box-shadow-before":Be,"--n-box-shadow-after":Pr,"--n-sorter-size":qe,"--n-resizable-container-size":vt,"--n-resizable-size":Jt,"--n-loading-size":br,"--n-loading-color":Lr,"--n-opacity-loading":Lo,"--n-td-color-striped":Br,"--n-td-color-striped-modal":dn,"--n-td-color-striped-popover":hl}}),it=a?_t("data-table",L(()=>e.size[0]),Ge,e):void 0,ut=L(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const Ke=S.value,{pageCount:xt}=Ke;return xt!==void 0?xt>1:Ke.itemCount&&Ke.pageSize&&Ke.itemCount>Ke.pageSize});return Object.assign({mainTableInstRef:u,mergedClsPrefix:n,mergedTheme:o,paginatedData:y,mergedBordered:r,mergedBottomBordered:i,mergedPagination:S,mergedShowPagination:ut,cssVars:a?void 0:Ge,themeClass:it==null?void 0:it.themeClass,onRender:it==null?void 0:it.onRender},ke)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:r}=this;return r==null||r(),C("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},C("div",{class:`${e}-data-table-wrapper`},C(IBe,{ref:"mainTableInstRef"})),this.mergedShowPagination?C("div",{class:`${e}-data-table__pagination`},C(Oj,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,C(zr,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?C(cu,{clsPrefix:e,strokeWidth:20}):null}))}}),QBe={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};const iY=e=>{const{popoverColor:t,textColor2:r,primaryColor:n,hoverColor:a,dividerColor:i,opacityDisabled:o,boxShadow2:s,borderRadius:l,iconColor:u,iconColorDisabled:c}=e;return Object.assign(Object.assign({},QBe),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:r,itemTextColorActive:n,itemColorHover:a,itemOpacityDisabled:o,itemBorderRadius:l,borderRadius:l,iconColor:u,iconColorDisabled:c})},VBe={name:"TimePicker",common:Dt,peers:{Scrollbar:ul,Button:ed,Input:hA},self:iY};var oY=VBe;const WBe={name:"TimePicker",common:st,peers:{Scrollbar:wi,Button:Ci,Input:Ro},self:iY};var sY=WBe,GBe={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"};const lY=e=>{const{hoverColor:t,fontSize:r,textColor2:n,textColorDisabled:a,popoverColor:i,primaryColor:o,borderRadiusSmall:s,iconColor:l,iconColorDisabled:u,textColor1:c,dividerColor:d,boxShadow2:f,borderRadius:A,fontWeightStrong:h}=e;return Object.assign(Object.assign({},GBe),{itemFontSize:r,calendarDaysFontSize:r,calendarTitleFontSize:r,itemTextColor:n,itemTextColorDisabled:a,itemTextColorActive:i,itemTextColorCurrent:o,itemColorIncluded:Ve(o,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:o,itemBorderRadius:s,panelColor:i,panelTextColor:n,arrowColor:l,calendarTitleTextColor:c,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:A,calendarTitleFontWeight:h,scrollItemBorderRadius:A,iconColor:l,iconColorDisabled:u})},KBe={name:"DatePicker",common:Dt,peers:{Input:hA,Button:ed,TimePicker:oY,Scrollbar:ul},self:lY};var jBe=KBe;const YBe={name:"DatePicker",common:st,peers:{Input:Ro,Button:Ci,TimePicker:sY,Scrollbar:wi},self(e){const{popoverColor:t,hoverColor:r,primaryColor:n}=e,a=lY(e);return a.itemColorDisabled=Et(t,r),a.itemColorIncluded=Ve(n,{alpha:.15}),a.itemColorHover=Et(t,r),a}};var XBe=YBe;function qBe(e,t){const r=L(()=>{const{isTimeDisabled:c}=e,{value:d}=t;if(!(d===null||Array.isArray(d)))return c==null?void 0:c(d)}),n=L(()=>{var c;return(c=r.value)===null||c===void 0?void 0:c.isHourDisabled}),a=L(()=>{var c;return(c=r.value)===null||c===void 0?void 0:c.isMinuteDisabled}),i=L(()=>{var c;return(c=r.value)===null||c===void 0?void 0:c.isSecondDisabled}),o=L(()=>{const{type:c,isDateDisabled:d}=e,{value:f}=t;return f===null||Array.isArray(f)||!["date","datetime"].includes(c)||!d?!1:d(f)}),s=L(()=>{const{type:c}=e,{value:d}=t;if(d===null||c==="datetime"||Array.isArray(d))return!1;const f=new Date(d),A=f.getHours(),h=f.getMinutes(),v=f.getMinutes();return(n.value?n.value(A):!1)||(a.value?a.value(h,A):!1)||(i.value?i.value(v,h,A):!1)}),l=L(()=>o.value||s.value);return{isValueInvalidRef:L(()=>{const{type:c}=e;return c==="date"?o.value:c==="datetime"?l.value:!1}),isDateInvalidRef:o,isTimeInvalidRef:s,isDateTimeInvalidRef:l,isHourDisabledRef:n,isMinuteDisabledRef:a,isSecondDisabledRef:i}}function ZBe(e,t){const r=L(()=>{const{isTimeDisabled:d}=e,{value:f}=t;return!Array.isArray(f)||!d?[void 0,void 0]:[d==null?void 0:d(f[0],"start",f),d==null?void 0:d(f[1],"end",f)]}),n={isStartHourDisabledRef:L(()=>{var d;return(d=r.value[0])===null||d===void 0?void 0:d.isHourDisabled}),isEndHourDisabledRef:L(()=>{var d;return(d=r.value[1])===null||d===void 0?void 0:d.isHourDisabled}),isStartMinuteDisabledRef:L(()=>{var d;return(d=r.value[0])===null||d===void 0?void 0:d.isMinuteDisabled}),isEndMinuteDisabledRef:L(()=>{var d;return(d=r.value[1])===null||d===void 0?void 0:d.isMinuteDisabled}),isStartSecondDisabledRef:L(()=>{var d;return(d=r.value[0])===null||d===void 0?void 0:d.isSecondDisabled}),isEndSecondDisabledRef:L(()=>{var d;return(d=r.value[1])===null||d===void 0?void 0:d.isSecondDisabled})},a=L(()=>{const{type:d,isDateDisabled:f}=e,{value:A}=t;return A===null||!Array.isArray(A)||!["daterange","datetimerange"].includes(d)||!f?!1:f(A[0],"start",A)}),i=L(()=>{const{type:d,isDateDisabled:f}=e,{value:A}=t;return A===null||!Array.isArray(A)||!["daterange","datetimerange"].includes(d)||!f?!1:f(A[1],"end",A)}),o=L(()=>{const{type:d}=e,{value:f}=t;if(f===null||!Array.isArray(f)||d!=="datetimerange")return!1;const A=ju(f[0]),h=sw(f[0]),v=lw(f[0]),{isStartHourDisabledRef:p,isStartMinuteDisabledRef:g,isStartSecondDisabledRef:m}=n;return(p.value?p.value(A):!1)||(g.value?g.value(h,A):!1)||(m.value?m.value(v,h,A):!1)}),s=L(()=>{const{type:d}=e,{value:f}=t;if(f===null||!Array.isArray(f)||d!=="datetimerange")return!1;const A=ju(f[1]),h=sw(f[1]),v=lw(f[1]),{isEndHourDisabledRef:p,isEndMinuteDisabledRef:g,isEndSecondDisabledRef:m}=n;return(p.value?p.value(A):!1)||(g.value?g.value(h,A):!1)||(m.value?m.value(v,h,A):!1)}),l=L(()=>a.value||o.value),u=L(()=>i.value||s.value),c=L(()=>l.value||u.value);return Object.assign(Object.assign({},n),{isStartDateInvalidRef:a,isEndDateInvalidRef:i,isStartTimeInvalidRef:o,isEndTimeInvalidRef:s,isStartValueInvalidRef:l,isEndValueInvalidRef:u,isRangeInvalidRef:c})}const AS="n-date-picker";var sr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function hS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hk(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),t}function JBe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ZI={exports:{}},JI={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,a){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");a=a||{};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i]);return n}e.exports=t.default})(JI,JI.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(JI.exports);function n(i){return i&&i.__esModule?i:{default:i}}function a(i){return(0,r.default)({},i)}e.exports=t.default})(ZI,ZI.exports);var e2e=hS(ZI.exports),eR={exports:{}},tR={exports:{}},rR={exports:{}},Ca={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,a){if(a.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+a.length+" present")}e.exports=t.default})(Ca,Ca.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(Ca.exports);function n(i){return i&&i.__esModule?i:{default:i}}function a(i){return(0,r.default)(1,arguments),i instanceof Date||typeof i=="object"&&Object.prototype.toString.call(i)==="[object Date]"}e.exports=t.default})(rR,rR.exports);var Co={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(Ca.exports);function n(i){return i&&i.__esModule?i:{default:i}}function a(i){(0,r.default)(1,arguments);var o=Object.prototype.toString.call(i);return i instanceof Date||typeof i=="object"&&o==="[object Date]"?new Date(i.getTime()):typeof i=="number"||o==="[object Number]"?new Date(i):((typeof i=="string"||o==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Co,Co.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(rR.exports),n=i(Co.exports),a=i(Ca.exports);function i(s){return s&&s.__esModule?s:{default:s}}function o(s){if((0,a.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,n.default)(s);return!isNaN(Number(l))}e.exports=t.default})(tR,tR.exports);var nR={exports:{}},aR={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n=function(i,o,s){var l,u=r[i];return typeof u=="string"?l=u:o===1?l=u.one:l=u.other.replace("{{count}}",o.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+l:l+" ago":l},a=n;t.default=a,e.exports=t.default})(aR,aR.exports);var iR={exports:{}},oR={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):n.defaultWidth,o=n.formats[i]||n.formats[n.defaultWidth];return o}}e.exports=t.default})(oR,oR.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(oR.exports);function n(u){return u&&u.__esModule?u:{default:u}}var a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;t.default=l,e.exports=t.default})(iR,iR.exports);var sR={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n=function(i,o,s,l){return r[i]},a=n;t.default=a,e.exports=t.default})(sR,sR.exports);var lR={exports:{}},uR={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(a,i){var o=i||{},s=o.context?String(o.context):"standalone",l;if(s==="formatting"&&n.formattingValues){var u=n.defaultFormattingWidth||n.defaultWidth,c=o.width?String(o.width):u;l=n.formattingValues[c]||n.formattingValues[u]}else{var d=n.defaultWidth,f=o.width?String(o.width):n.defaultWidth;l=n.values[f]||n.values[d]}var A=n.argumentCallback?n.argumentCallback(a):a;return l[A]}}e.exports=t.default})(uR,uR.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(uR.exports);function n(A){return A&&A.__esModule?A:{default:A}}var a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(A,h){var v=Number(A),p=v%100;if(p>20||p<10)switch(p%10){case 1:return v+"st";case 2:return v+"nd";case 3:return v+"rd"}return v+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(A){return A-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;t.default=f,e.exports=t.default})(lR,lR.exports);var cR={exports:{}},dR={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],A=Array.isArray(f)?a(f,function(p){return p.test(d)}):n(f,function(p){return p.test(d)}),h;h=i.valueCallback?i.valueCallback(A):A,h=s.valueCallback?s.valueCallback(h):h;var v=o.slice(d.length);return{value:h,rest:v}}}function n(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s<i.length;s++)if(o(i[s]))return s}e.exports=t.default})(dR,dR.exports);var fR={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(n.matchPattern);if(!o)return null;var s=o[0],l=a.match(n.parsePattern);if(!l)return null;var u=n.valueCallback?n.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}e.exports=t.default})(fR,fR.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(dR.exports),n=a(fR.exports);function a(y){return y&&y.__esModule?y:{default:y}}var i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},A={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},h={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},v={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},p={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g={ordinalNumber:(0,n.default)({matchPattern:i,parsePattern:o,valueCallback:function(y){return parseInt(y,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(y){return y+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:A,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:v,defaultMatchWidth:"any",parsePatterns:p,defaultParseWidth:"any"})},m=g;t.default=m,e.exports=t.default})(cR,cR.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(aR.exports),n=s(iR.exports),a=s(sR.exports),i=s(lR.exports),o=s(cR.exports);function s(c){return c&&c.__esModule?c:{default:c}}var l={code:"en-US",formatDistance:r.default,formatLong:n.default,formatRelative:a.default,localize:i.default,match:o.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;t.default=u,e.exports=t.default})(nR,nR.exports);var AR={exports:{}},Xl={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var a=Number(n);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(Xl,Xl.exports);var t2e=hS(Xl.exports),hR={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(Xl.exports),n=i(Co.exports),a=i(Ca.exports);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){(0,a.default)(2,arguments);var u=(0,n.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}e.exports=t.default})(hR,hR.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(Xl.exports),n=i(hR.exports),a=i(Ca.exports);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){(0,a.default)(2,arguments);var u=(0,r.default)(l);return(0,n.default)(s,-u)}e.exports=t.default})(AR,AR.exports);var vR={exports:{}},pR={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=a(Co.exports),n=a(Ca.exports);function a(s){return s&&s.__esModule?s:{default:s}}var i=864e5;function o(s){(0,n.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}e.exports=t.default})(pR,pR.exports);var gR={exports:{}},V0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(Co.exports),n=a(Ca.exports);function a(o){return o&&o.__esModule?o:{default:o}}function i(o){(0,n.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u<s?7:0)+u-s;return l.setUTCDate(l.getUTCDate()-c),l.setUTCHours(0,0,0,0),l}e.exports=t.default})(V0,V0.exports);var mR={exports:{}},cw={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(Co.exports),n=i(Ca.exports),a=i(V0.exports);function i(s){return s&&s.__esModule?s:{default:s}}function o(s){(0,n.default)(1,arguments);var l=(0,r.default)(s),u=l.getUTCFullYear(),c=new Date(0);c.setUTCFullYear(u+1,0,4),c.setUTCHours(0,0,0,0);var d=(0,a.default)(c),f=new Date(0);f.setUTCFullYear(u,0,4),f.setUTCHours(0,0,0,0);var A=(0,a.default)(f);return l.getTime()>=d.getTime()?u+1:l.getTime()>=A.getTime()?u:u-1}e.exports=t.default})(cw,cw.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(cw.exports),n=i(V0.exports),a=i(Ca.exports);function i(s){return s&&s.__esModule?s:{default:s}}function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,n.default)(u);return c}e.exports=t.default})(mR,mR.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=o(Co.exports),n=o(V0.exports),a=o(mR.exports),i=o(Ca.exports);function o(u){return u&&u.__esModule?u:{default:u}}var s=6048e5;function l(u){(0,i.default)(1,arguments);var c=(0,r.default)(u),d=(0,n.default)(c).getTime()-(0,a.default)(c).getTime();return Math.round(d/s)+1}e.exports=t.default})(gR,gR.exports);var yR={exports:{}},W0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(Co.exports),n=i(Ca.exports),a=i(Xl.exports);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l){(0,n.default)(1,arguments);var u=l||{},c=u.locale,d=c&&c.options&&c.options.weekStartsOn,f=d==null?0:(0,a.default)(d),A=u.weekStartsOn==null?f:(0,a.default)(u.weekStartsOn);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=(0,r.default)(s),v=h.getUTCDay(),p=(v<A?7:0)+v-A;return h.setUTCDate(h.getUTCDate()-p),h.setUTCHours(0,0,0,0),h}e.exports=t.default})(W0,W0.exports);var bR={exports:{}},dw={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(Co.exports),n=o(Ca.exports),a=o(W0.exports),i=o(Xl.exports);function o(l){return l&&l.__esModule?l:{default:l}}function s(l,u){(0,n.default)(1,arguments);var c=(0,r.default)(l),d=c.getUTCFullYear(),f=u||{},A=f.locale,h=A&&A.options&&A.options.firstWeekContainsDate,v=h==null?1:(0,i.default)(h),p=f.firstWeekContainsDate==null?v:(0,i.default)(f.firstWeekContainsDate);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(d+1,0,p),g.setUTCHours(0,0,0,0);var m=(0,a.default)(g,u),y=new Date(0);y.setUTCFullYear(d,0,p),y.setUTCHours(0,0,0,0);var b=(0,a.default)(y,u);return c.getTime()>=m.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}e.exports=t.default})(dw,dw.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(dw.exports),n=o(Ca.exports),a=o(W0.exports),i=o(Xl.exports);function o(l){return l&&l.__esModule?l:{default:l}}function s(l,u){(0,n.default)(1,arguments);var c=u||{},d=c.locale,f=d&&d.options&&d.options.firstWeekContainsDate,A=f==null?1:(0,i.default)(f),h=c.firstWeekContainsDate==null?A:(0,i.default)(c.firstWeekContainsDate),v=(0,r.default)(l,u),p=new Date(0);p.setUTCFullYear(v,0,h),p.setUTCHours(0,0,0,0);var g=(0,a.default)(p,u);return g}e.exports=t.default})(bR,bR.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=o(Co.exports),n=o(W0.exports),a=o(bR.exports),i=o(Ca.exports);function o(u){return u&&u.__esModule?u:{default:u}}var s=6048e5;function l(u,c){(0,i.default)(1,arguments);var d=(0,r.default)(u),f=(0,n.default)(d,c).getTime()-(0,a.default)(d,c).getTime();return Math.round(f/s)+1}e.exports=t.default})(yR,yR.exports);var fw={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,a){for(var i=n<0?"-":"",o=Math.abs(n).toString();o.length<a;)o="0"+o;return i+o}e.exports=t.default})(fw,fw.exports);var xR={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(fw.exports);function n(o){return o&&o.__esModule?o:{default:o}}var a={y:function(o,s){var l=o.getUTCFullYear(),u=l>0?l:1-l;return(0,r.default)(s==="yy"?u%100:u,s.length)},M:function(o,s){var l=o.getUTCMonth();return s==="M"?String(l+1):(0,r.default)(l+1,2)},d:function(o,s){return(0,r.default)(o.getUTCDate(),s.length)},a:function(o,s){var l=o.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return l.toUpperCase();case"aaa":return l;case"aaaaa":return l[0];case"aaaa":default:return l==="am"?"a.m.":"p.m."}},h:function(o,s){return(0,r.default)(o.getUTCHours()%12||12,s.length)},H:function(o,s){return(0,r.default)(o.getUTCHours(),s.length)},m:function(o,s){return(0,r.default)(o.getUTCMinutes(),s.length)},s:function(o,s){return(0,r.default)(o.getUTCSeconds(),s.length)},S:function(o,s){var l=s.length,u=o.getUTCMilliseconds(),c=Math.floor(u*Math.pow(10,l-3));return(0,r.default)(c,s.length)}},i=a;t.default=i,e.exports=t.default})(xR,xR.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(pR.exports),n=u(gR.exports),a=u(cw.exports),i=u(yR.exports),o=u(dw.exports),s=u(fw.exports),l=u(xR.exports);function u(p){return p&&p.__esModule?p:{default:p}}var c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(p,g,m){var y=p.getUTCFullYear()>0?1:0;switch(g){case"G":case"GG":case"GGG":return m.era(y,{width:"abbreviated"});case"GGGGG":return m.era(y,{width:"narrow"});case"GGGG":default:return m.era(y,{width:"wide"})}},y:function(p,g,m){if(g==="yo"){var y=p.getUTCFullYear(),b=y>0?y:1-y;return m.ordinalNumber(b,{unit:"year"})}return l.default.y(p,g)},Y:function(p,g,m,y){var b=(0,o.default)(p,y),w=b>0?b:1-b;if(g==="YY"){var x=w%100;return(0,s.default)(x,2)}return g==="Yo"?m.ordinalNumber(w,{unit:"year"}):(0,s.default)(w,g.length)},R:function(p,g){var m=(0,a.default)(p);return(0,s.default)(m,g.length)},u:function(p,g){var m=p.getUTCFullYear();return(0,s.default)(m,g.length)},Q:function(p,g,m){var y=Math.ceil((p.getUTCMonth()+1)/3);switch(g){case"Q":return String(y);case"QQ":return(0,s.default)(y,2);case"Qo":return m.ordinalNumber(y,{unit:"quarter"});case"QQQ":return m.quarter(y,{width:"abbreviated",context:"formatting"});case"QQQQQ":return m.quarter(y,{width:"narrow",context:"formatting"});case"QQQQ":default:return m.quarter(y,{width:"wide",context:"formatting"})}},q:function(p,g,m){var y=Math.ceil((p.getUTCMonth()+1)/3);switch(g){case"q":return String(y);case"qq":return(0,s.default)(y,2);case"qo":return m.ordinalNumber(y,{unit:"quarter"});case"qqq":return m.quarter(y,{width:"abbreviated",context:"standalone"});case"qqqqq":return m.quarter(y,{width:"narrow",context:"standalone"});case"qqqq":default:return m.quarter(y,{width:"wide",context:"standalone"})}},M:function(p,g,m){var y=p.getUTCMonth();switch(g){case"M":case"MM":return l.default.M(p,g);case"Mo":return m.ordinalNumber(y+1,{unit:"month"});case"MMM":return m.month(y,{width:"abbreviated",context:"formatting"});case"MMMMM":return m.month(y,{width:"narrow",context:"formatting"});case"MMMM":default:return m.month(y,{width:"wide",context:"formatting"})}},L:function(p,g,m){var y=p.getUTCMonth();switch(g){case"L":return String(y+1);case"LL":return(0,s.default)(y+1,2);case"Lo":return m.ordinalNumber(y+1,{unit:"month"});case"LLL":return m.month(y,{width:"abbreviated",context:"standalone"});case"LLLLL":return m.month(y,{width:"narrow",context:"standalone"});case"LLLL":default:return m.month(y,{width:"wide",context:"standalone"})}},w:function(p,g,m,y){var b=(0,i.default)(p,y);return g==="wo"?m.ordinalNumber(b,{unit:"week"}):(0,s.default)(b,g.length)},I:function(p,g,m){var y=(0,n.default)(p);return g==="Io"?m.ordinalNumber(y,{unit:"week"}):(0,s.default)(y,g.length)},d:function(p,g,m){return g==="do"?m.ordinalNumber(p.getUTCDate(),{unit:"date"}):l.default.d(p,g)},D:function(p,g,m){var y=(0,r.default)(p);return g==="Do"?m.ordinalNumber(y,{unit:"dayOfYear"}):(0,s.default)(y,g.length)},E:function(p,g,m){var y=p.getUTCDay();switch(g){case"E":case"EE":case"EEE":return m.day(y,{width:"abbreviated",context:"formatting"});case"EEEEE":return m.day(y,{width:"narrow",context:"formatting"});case"EEEEEE":return m.day(y,{width:"short",context:"formatting"});case"EEEE":default:return m.day(y,{width:"wide",context:"formatting"})}},e:function(p,g,m,y){var b=p.getUTCDay(),w=(b-y.weekStartsOn+8)%7||7;switch(g){case"e":return String(w);case"ee":return(0,s.default)(w,2);case"eo":return m.ordinalNumber(w,{unit:"day"});case"eee":return m.day(b,{width:"abbreviated",context:"formatting"});case"eeeee":return m.day(b,{width:"narrow",context:"formatting"});case"eeeeee":return m.day(b,{width:"short",context:"formatting"});case"eeee":default:return m.day(b,{width:"wide",context:"formatting"})}},c:function(p,g,m,y){var b=p.getUTCDay(),w=(b-y.weekStartsOn+8)%7||7;switch(g){case"c":return String(w);case"cc":return(0,s.default)(w,g.length);case"co":return m.ordinalNumber(w,{unit:"day"});case"ccc":return m.day(b,{width:"abbreviated",context:"standalone"});case"ccccc":return m.day(b,{width:"narrow",context:"standalone"});case"cccccc":return m.day(b,{width:"short",context:"standalone"});case"cccc":default:return m.day(b,{width:"wide",context:"standalone"})}},i:function(p,g,m){var y=p.getUTCDay(),b=y===0?7:y;switch(g){case"i":return String(b);case"ii":return(0,s.default)(b,g.length);case"io":return m.ordinalNumber(b,{unit:"day"});case"iii":return m.day(y,{width:"abbreviated",context:"formatting"});case"iiiii":return m.day(y,{width:"narrow",context:"formatting"});case"iiiiii":return m.day(y,{width:"short",context:"formatting"});case"iiii":default:return m.day(y,{width:"wide",context:"formatting"})}},a:function(p,g,m){var y=p.getUTCHours(),b=y/12>=1?"pm":"am";switch(g){case"a":case"aa":return m.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"aaa":return m.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return m.dayPeriod(b,{width:"narrow",context:"formatting"});case"aaaa":default:return m.dayPeriod(b,{width:"wide",context:"formatting"})}},b:function(p,g,m){var y=p.getUTCHours(),b;switch(y===12?b=c.noon:y===0?b=c.midnight:b=y/12>=1?"pm":"am",g){case"b":case"bb":return m.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"bbb":return m.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return m.dayPeriod(b,{width:"narrow",context:"formatting"});case"bbbb":default:return m.dayPeriod(b,{width:"wide",context:"formatting"})}},B:function(p,g,m){var y=p.getUTCHours(),b;switch(y>=17?b=c.evening:y>=12?b=c.afternoon:y>=4?b=c.morning:b=c.night,g){case"B":case"BB":case"BBB":return m.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"BBBBB":return m.dayPeriod(b,{width:"narrow",context:"formatting"});case"BBBB":default:return m.dayPeriod(b,{width:"wide",context:"formatting"})}},h:function(p,g,m){if(g==="ho"){var y=p.getUTCHours()%12;return y===0&&(y=12),m.ordinalNumber(y,{unit:"hour"})}return l.default.h(p,g)},H:function(p,g,m){return g==="Ho"?m.ordinalNumber(p.getUTCHours(),{unit:"hour"}):l.default.H(p,g)},K:function(p,g,m){var y=p.getUTCHours()%12;return g==="Ko"?m.ordinalNumber(y,{unit:"hour"}):(0,s.default)(y,g.length)},k:function(p,g,m){var y=p.getUTCHours();return y===0&&(y=24),g==="ko"?m.ordinalNumber(y,{unit:"hour"}):(0,s.default)(y,g.length)},m:function(p,g,m){return g==="mo"?m.ordinalNumber(p.getUTCMinutes(),{unit:"minute"}):l.default.m(p,g)},s:function(p,g,m){return g==="so"?m.ordinalNumber(p.getUTCSeconds(),{unit:"second"}):l.default.s(p,g)},S:function(p,g){return l.default.S(p,g)},X:function(p,g,m,y){var b=y._originalDate||p,w=b.getTimezoneOffset();if(w===0)return"Z";switch(g){case"X":return A(w);case"XXXX":case"XX":return h(w);case"XXXXX":case"XXX":default:return h(w,":")}},x:function(p,g,m,y){var b=y._originalDate||p,w=b.getTimezoneOffset();switch(g){case"x":return A(w);case"xxxx":case"xx":return h(w);case"xxxxx":case"xxx":default:return h(w,":")}},O:function(p,g,m,y){var b=y._originalDate||p,w=b.getTimezoneOffset();switch(g){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+h(w,":")}},z:function(p,g,m,y){var b=y._originalDate||p,w=b.getTimezoneOffset();switch(g){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+h(w,":")}},t:function(p,g,m,y){var b=y._originalDate||p,w=Math.floor(b.getTime()/1e3);return(0,s.default)(w,g.length)},T:function(p,g,m,y){var b=y._originalDate||p,w=b.getTime();return(0,s.default)(w,g.length)}};function f(p,g){var m=p>0?"-":"+",y=Math.abs(p),b=Math.floor(y/60),w=y%60;if(w===0)return m+String(b);var x=g||"";return m+String(b)+x+(0,s.default)(w,2)}function A(p,g){if(p%60===0){var m=p>0?"-":"+";return m+(0,s.default)(Math.abs(p)/60,2)}return h(p,g)}function h(p,g){var m=g||"",y=p>0?"-":"+",b=Math.abs(p),w=(0,s.default)(Math.floor(b/60),2),x=(0,s.default)(b%60,2);return y+w+m+x}var v=d;t.default=v,e.exports=t.default})(vR,vR.exports);var wR={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function r(s,l){switch(s){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}}function n(s,l){switch(s){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}}function a(s,l){var u=s.match(/(P+)(p+)?/)||[],c=u[1],d=u[2];if(!d)return r(s,l);var f;switch(c){case"P":f=l.dateTime({width:"short"});break;case"PP":f=l.dateTime({width:"medium"});break;case"PPP":f=l.dateTime({width:"long"});break;case"PPPP":default:f=l.dateTime({width:"full"});break}return f.replace("{{date}}",r(c,l)).replace("{{time}}",n(d,l))}var i={p:n,P:a},o=i;t.default=o,e.exports=t.default})(wR,wR.exports);var Aw={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var a=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return a.setUTCFullYear(n.getFullYear()),n.getTime()-a.getTime()}e.exports=t.default})(Aw,Aw.exports);var J3=hS(Aw.exports),Jm={};Object.defineProperty(Jm,"__esModule",{value:!0});Jm.isProtectedDayOfYearToken=a2e;Jm.isProtectedWeekYearToken=i2e;Jm.throwProtectedError=o2e;var r2e=["D","DD"],n2e=["YY","YYYY"];function a2e(e){return r2e.indexOf(e)!==-1}function i2e(e){return n2e.indexOf(e)!==-1}function o2e(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=f(tR.exports),n=f(nR.exports),a=f(AR.exports),i=f(Co.exports),o=f(vR.exports),s=f(wR.exports),l=f(Aw.exports),u=Jm,c=f(Xl.exports),d=f(Ca.exports);function f(b){return b&&b.__esModule?b:{default:b}}var A=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,h=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,p=/''/g,g=/[a-zA-Z]/;function m(b,w,x){(0,d.default)(2,arguments);var S=String(w),_=x||{},B=_.locale||n.default,T=B.options&&B.options.firstWeekContainsDate,E=T==null?1:(0,c.default)(T),I=_.firstWeekContainsDate==null?E:(0,c.default)(_.firstWeekContainsDate);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=B.options&&B.options.weekStartsOn,D=R==null?0:(0,c.default)(R),k=_.weekStartsOn==null?D:(0,c.default)(_.weekStartsOn);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw new RangeError("locale must contain localize property");if(!B.formatLong)throw new RangeError("locale must contain formatLong property");var F=(0,i.default)(b);if(!(0,r.default)(F))throw new RangeError("Invalid time value");var P=(0,l.default)(F),O=(0,a.default)(F,P),H={firstWeekContainsDate:I,weekStartsOn:k,locale:B,_originalDate:F},V=S.match(h).map(function(W){var Z=W[0];if(Z==="p"||Z==="P"){var ee=s.default[Z];return ee(W,B.formatLong,H)}return W}).join("").match(A).map(function(W){if(W==="''")return"'";var Z=W[0];if(Z==="'")return y(W);var ee=o.default[Z];if(ee)return!_.useAdditionalWeekYearTokens&&(0,u.isProtectedWeekYearToken)(W)&&(0,u.throwProtectedError)(W,w,b),!_.useAdditionalDayOfYearTokens&&(0,u.isProtectedDayOfYearToken)(W)&&(0,u.throwProtectedError)(W,w,b),ee(O,W,B.localize,H);if(Z.match(g))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return W}).join("");return V}function y(b){return b.match(v)[1].replace(p,"'")}e.exports=t.default})(eR,eR.exports);var s2e=hS(eR.exports);function e$(e,t,r){var n=c2e(e,r.timeZone,r.locale);return n.formatToParts?l2e(n,t):u2e(n,t)}function l2e(e,t){var r=e.formatToParts(t);return r[r.length-1].value}function u2e(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function c2e(e,t,r){if(r&&!r.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function d2e(e,t){var r=v2e(t);return r.formatToParts?A2e(r,e):h2e(r,e)}var f2e={year:0,month:1,day:2,hour:3,minute:4,second:5};function A2e(e,t){try{for(var r=e.formatToParts(t),n=[],a=0;a<r.length;a++){var i=f2e[r[a].type];i>=0&&(n[i]=parseInt(r[a].value,10))}return n}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function h2e(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var HB={};function v2e(e){if(!HB[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";HB[e]=r?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return HB[e]}function uY(e,t,r,n,a,i,o){var s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,a,i,o),s}var t$=36e5,p2e=6e4,zB={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function zk(e,t,r){var n,a;if(e===""||(n=zB.timezoneZ.exec(e),n))return 0;var i;if(n=zB.timezoneHH.exec(e),n)return i=parseInt(n[1],10),r$(i)?-(i*t$):NaN;if(n=zB.timezoneHHMM.exec(e),n){i=parseInt(n[1],10);var o=parseInt(n[2],10);return r$(i,o)?(a=Math.abs(i)*t$+o*p2e,i>0?-a:a):NaN}if(y2e(e)){t=new Date(t||Date.now());var s=r?t:g2e(t),l=CR(s,e),u=r?l:m2e(t,l,e);return-u}return NaN}function g2e(e){return uY(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function CR(e,t){var r=d2e(e,t),n=uY(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),a=e.getTime(),i=a%1e3;return a-=i>=0?i:1e3+i,n-a}function m2e(e,t,r){var n=e.getTime(),a=n-t,i=CR(new Date(a),r);if(t===i)return t;a-=i-t;var o=CR(new Date(a),r);return i===o?i:Math.max(i,o)}function r$(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var n$={};function y2e(e){if(n$[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),n$[e]=!0,!0}catch(t){return!1}}var b2e=60*1e3,x2e={X:function(e,t,r,n){var a=NB(n.timeZone,n._originalDate||e);if(a===0)return"Z";switch(t){case"X":return a$(a);case"XXXX":case"XX":return bh(a);case"XXXXX":case"XXX":default:return bh(a,":")}},x:function(e,t,r,n){var a=NB(n.timeZone,n._originalDate||e);switch(t){case"x":return a$(a);case"xxxx":case"xx":return bh(a);case"xxxxx":case"xxx":default:return bh(a,":")}},O:function(e,t,r,n){var a=NB(n.timeZone,n._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+w2e(a,":");case"OOOO":default:return"GMT"+bh(a,":")}},z:function(e,t,r,n){var a=n._originalDate||e;switch(t){case"z":case"zz":case"zzz":return e$("short",a,n);case"zzzz":default:return e$("long",a,n)}}};function NB(e,t){var r=e?zk(e,t,!0)/b2e:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function hw(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function bh(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),i=hw(Math.floor(a/60),2),o=hw(Math.floor(a%60),2);return n+i+r+o}function a$(e,t){if(e%60===0){var r=e>0?"-":"+";return r+hw(Math.abs(e)/60,2)}return bh(e,t)}function w2e(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(i===0)return r+String(a);var o=t||"";return r+String(a)+o+hw(i,2)}var C2e=x2e,S2e=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,_2e=S2e,QB=36e5,i$=6e4,B2e=2,Ya={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:_2e};function cY(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var r=t||{},n=r.additionalDigits==null?B2e:t2e(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=T2e(e),i=E2e(a.date,n),o=i.year,s=i.restDateString,l=I2e(s,o);if(isNaN(l))return new Date(NaN);if(l){var u=l.getTime(),c=0,d;if(a.time&&(c=R2e(a.time),isNaN(c)))return new Date(NaN);if(a.timeZone||r.timeZone){if(d=zk(a.timeZone||r.timeZone,new Date(u+c)),isNaN(d))return new Date(NaN)}else d=J3(new Date(u+c)),d=J3(new Date(u+c+d));return new Date(u+c+d)}else return new Date(NaN)}function T2e(e){var t={},r=Ya.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=Ya.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var a=Ya.timeZone.exec(n);a?(t.time=n.replace(a[1],""),t.timeZone=a[1].trim()):t.time=n}return t}function E2e(e,t){var r=Ya.YYY[t],n=Ya.YYYYY[t],a;if(a=Ya.YYYY.exec(e)||n.exec(e),a){var i=a[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(a=Ya.YY.exec(e)||r.exec(e),a){var o=a[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function I2e(e,t){if(t===null)return null;var r,n,a,i;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=Ya.MM.exec(e),r)return n=new Date(0),a=parseInt(r[1],10)-1,s$(t,a)?(n.setUTCFullYear(t,a),n):new Date(NaN);if(r=Ya.DDD.exec(e),r){n=new Date(0);var o=parseInt(r[1],10);return M2e(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(r=Ya.MMDD.exec(e),r){n=new Date(0),a=parseInt(r[1],10)-1;var s=parseInt(r[2],10);return s$(t,a,s)?(n.setUTCFullYear(t,a,s),n):new Date(NaN)}if(r=Ya.Www.exec(e),r)return i=parseInt(r[1],10)-1,l$(t,i)?o$(t,i):new Date(NaN);if(r=Ya.WwwD.exec(e),r){i=parseInt(r[1],10)-1;var l=parseInt(r[2],10)-1;return l$(t,i,l)?o$(t,i,l):new Date(NaN)}return null}function R2e(e){var t,r,n;if(t=Ya.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),VB(r)?r%24*QB:NaN;if(t=Ya.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),VB(r,n)?r%24*QB+n*i$:NaN;if(t=Ya.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return VB(r,n,a)?r%24*QB+n*i$+a*1e3:NaN}return null}function o$(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,i=t*7+r+1-a;return n.setUTCDate(n.getUTCDate()+i),n}var D2e=[31,28,31,30,31,30,31,31,30,31,30,31],F2e=[31,29,31,30,31,30,31,31,30,31,30,31];function dY(e){return e%400===0||e%4===0&&e%100!==0}function s$(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=dY(e);if(n&&r>F2e[t]||!n&&r>D2e[t])return!1}return!0}function M2e(e,t){if(t<1)return!1;var r=dY(e);return!(r&&t>366||!r&&t>365)}function l$(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function VB(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var k2e=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function P2e(e,t,r){var n=String(t),a=r||{},i=n.match(k2e);if(i){var o=cY(e,a);n=i.reduce(function(s,l){if(l[0]==="'")return s;var u=s.indexOf(l),c=s[u-1]==="'",d=s.replace(l,"'"+C2e[l[0]](o,l,null,a)+"'");return c?d.substring(0,u-1)+d.substring(u+1):d},n)}return s2e(e,n,a)}function L2e(e,t,r){var n=cY(e,r),a=zk(t,n,!0),i=new Date(n.getTime()-a);return new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds())}function fY(e,t,r,n){var a=e2e(n);return a.timeZone=t,P2e(L2e(e,t),r,a)}const mg={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function WB(e){return`00${e}`.slice(-2)}function yg(e,t,r){return Array.isArray(t)?(r==="am"?t.filter(n=>n<12):r==="pm"?t.filter(n=>n>=12).map(n=>n===12?12:n-12):t).map(n=>WB(n)):typeof t=="number"?r==="am"?e.filter(n=>{const a=Number(n);return a<12&&a%t===0}):r==="pm"?e.filter(n=>{const a=Number(n);return a>=12&&a%t===0}).map(n=>{const a=Number(n);return WB(a===12?12:a-12)}):e.filter(n=>Number(n)%t===0):r==="am"?e.filter(n=>Number(n)<12):r==="pm"?e.map(n=>Number(n)).filter(n=>Number(n)>=12).map(n=>WB(n===12?12:n-12)):e}function cb(e,t,r){return r?typeof r=="number"?e%r===0:r.includes(e):!0}function O2e(e,t,r){const n=yg(mg[t],r).map(Number);let a,i;for(let o=0;o<n.length;++o){const s=n[o];if(s===e)return s;if(s>e){i=s;break}a=s}return a===void 0?(i||Ta("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-a?a:i}function $2e(e){return ju(e)<12?"am":"pm"}const AY="n-time-picker";var db=ge({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:r}=this;return this.data.map(n=>{const{label:a,disabled:i,value:o}=n,s=e===o;return C("div",{key:a,"data-active":s?"":null,class:[`${r}-time-picker-col__item`,s&&`${r}-time-picker-col__item--active`,i&&`${r}-time-picker-col__item--disabled`],onClick:t&&!i?()=>t(o):void 0},a)})}});const U2e={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean};var H2e=ge({name:"TimePickerPanel",props:U2e,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:r}=We(AY),n=L(()=>{const{isHourDisabled:s,hours:l,use12Hours:u,amPmValue:c}=e;if(u){const d=c!=null?c:$2e(Date.now());return yg(mg.hours,l,d).map(f=>{const A=Number(f),h=d==="pm"&&A!==12?A+12:A;return{label:f,value:h,disabled:s?s(h):!1}})}else return yg(mg.hours,l).map(d=>({label:d,value:Number(d),disabled:s?s(Number(d)):!1}))}),a=L(()=>{const{isMinuteDisabled:s,minutes:l}=e;return yg(mg.minutes,l).map(u=>({label:u,value:Number(u),disabled:s?s(Number(u),e.hourValue):!1}))}),i=L(()=>{const{isSecondDisabled:s,seconds:l}=e;return yg(mg.seconds,l).map(u=>({label:u,value:Number(u),disabled:s?s(Number(u),e.minuteValue,e.hourValue):!1}))}),o=L(()=>{const{isHourDisabled:s}=e;let l=!0,u=!0;for(let c=0;c<12;++c)if(!(s!=null&&s(c))){l=!1;break}for(let c=12;c<24;++c)if(!(s!=null&&s(c))){u=!1;break}return[{label:"AM",value:"am",disabled:l},{label:"PM",value:"pm",disabled:u}]});return{mergedTheme:t,mergedClsPrefix:r,hours:n,minutes:a,seconds:i,amPm:o,hourScrollRef:X(null),minuteScrollRef:X(null),secondScrollRef:X(null),amPmScrollRef:X(null)}},render(){var e,t,r;const{mergedClsPrefix:n,mergedTheme:a}=this;return C("div",{tabindex:0,class:`${n}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},C("div",{class:`${n}-time-picker-cols`},this.showHour?C("div",{class:[`${n}-time-picker-col`,this.isHourInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},C(Un,{ref:"hourScrollRef",theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar},{default:()=>[C(db,{clsPrefix:n,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),C("div",{class:`${n}-time-picker-col__padding`})]})):null,this.showMinute?C("div",{class:[`${n}-time-picker-col`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${n}-time-picker-col--invalid`]},C(Un,{ref:"minuteScrollRef",theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar},{default:()=>[C(db,{clsPrefix:n,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),C("div",{class:`${n}-time-picker-col__padding`})]})):null,this.showSecond?C("div",{class:[`${n}-time-picker-col`,this.isSecondInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},C(Un,{ref:"secondScrollRef",theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar},{default:()=>[C(db,{clsPrefix:n,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),C("div",{class:`${n}-time-picker-col__padding`})]})):null,this.use12Hours?C("div",{class:[`${n}-time-picker-col`,this.isAmPmInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},C(Un,{ref:"amPmScrollRef",theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar},{default:()=>[C(db,{clsPrefix:n,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),C("div",{class:`${n}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?C("div",{class:`${n}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?C(on,{size:"tiny",theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?C(on,{size:"tiny",type:"primary",class:`${n}-time-picker-actions__confirm`,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,C(Jc,{onFocus:this.onFocusDetectorFocus}))}}),z2e=N([M("time-picker",`
|
|
z-index: auto;
|
|
position: relative;
|
|
`,[M("time-picker-icon",`
|
|
color: var(--n-icon-color-override);
|
|
transition: color .3s var(--n-bezier);
|
|
`),j("disabled",[M("time-picker-icon",`
|
|
color: var(--n-icon-color-disabled-override);
|
|
`)])]),M("time-picker-panel",`
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
outline: none;
|
|
font-size: var(--n-item-font-size);
|
|
border-radius: var(--n-border-radius);
|
|
margin: 4px 0;
|
|
min-width: 104px;
|
|
overflow: hidden;
|
|
background-color: var(--n-panel-color);
|
|
box-shadow: var(--n-panel-box-shadow);
|
|
`,[gi(),M("time-picker-actions",`
|
|
padding: var(--n-panel-action-padding);
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
`),M("time-picker-cols",`
|
|
height: calc(var(--n-item-height) * 6);
|
|
display: flex;
|
|
position: relative;
|
|
transition: border-color .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-panel-divider-color);
|
|
`),M("time-picker-col",`
|
|
flex-grow: 1;
|
|
min-width: var(--n-item-width);
|
|
height: calc(var(--n-item-height) * 6);
|
|
flex-direction: column;
|
|
transition: box-shadow .3s var(--n-bezier);
|
|
`,[j("transition-disabled",[G("item","transition: none;",[N("&::before","transition: none;")])]),G("padding",`
|
|
height: calc(var(--n-item-height) * 5);
|
|
`),N("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[G("item",[N("&::before","left: 4px;")])]),G("item",`
|
|
cursor: pointer;
|
|
height: var(--n-item-height);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier),
|
|
text-decoration-color .3s var(--n-bezier);
|
|
background: #0000;
|
|
text-decoration-color: #0000;
|
|
color: var(--n-item-text-color);
|
|
z-index: 0;
|
|
box-sizing: border-box;
|
|
padding-top: 4px;
|
|
position: relative;
|
|
`,[N("&::before",`
|
|
content: "";
|
|
transition: background-color .3s var(--n-bezier);
|
|
z-index: -1;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 4px;
|
|
top: 4px;
|
|
bottom: 0;
|
|
border-radius: var(--n-item-border-radius);
|
|
`),Nt("disabled",[N("&:hover::before",`
|
|
background-color: var(--n-item-color-hover);
|
|
`)]),j("active",`
|
|
color: var(--n-item-text-color-active);
|
|
`,[N("&::before",`
|
|
background-color: var(--n-item-color-hover);
|
|
`)]),j("disabled",`
|
|
opacity: var(--n-item-opacity-disabled);
|
|
cursor: not-allowed;
|
|
`)]),j("invalid",[G("item",[j("active",`
|
|
text-decoration: line-through;
|
|
text-decoration-color: var(--n-item-text-color-active);
|
|
`)])])])])]);function GB(e,t){return e===void 0?!0:Array.isArray(e)?e.every(r=>r>=0&&r<=t):e>=0&&e<=t}const N2e=Object.assign(Object.assign({},Fe.props),{to:Dn.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>GB(e,23)},minutes:{type:[Number,Array],validator:e=>GB(e,59)},seconds:{type:[Number,Array],validator:e=>GB(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]});var vw=ge({name:"TimePicker",props:N2e,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:r,namespaceRef:n,inlineThemeDisabled:a}=et(e),{localeRef:i,dateLocaleRef:o}=Io("TimePicker"),s=bi(e),{mergedSizeRef:l,mergedDisabledRef:u,mergedStatusRef:c}=s,d=Fe("TimePicker","-time-picker",z2e,oY,e,r),f=JM(),A=X(null),h=X(null),v=L(()=>({locale:o.value.locale}));function p(Ce){return Ce===null?null:si(Ce,e.valueFormat||e.format,new Date,v.value).getTime()}const{defaultValue:g,defaultFormattedValue:m}=e,y=X(m!==void 0?p(m):g),b=L(()=>{const{formattedValue:Ce}=e;if(Ce!==void 0)return p(Ce);const{value:Qe}=e;return Qe!==void 0?Qe:y.value}),w=L(()=>{const{timeZone:Ce}=e;return Ce?(Qe,me,Ne)=>fY(Qe,Ce,me,Ne):(Qe,me,Ne)=>nn(Qe,me,Ne)}),x=X("");mt(()=>e.timeZone,()=>{const Ce=b.value;x.value=Ce===null?"":w.value(Ce,e.format,v.value)},{immediate:!0});const S=X(!1),_=Ie(e,"show"),B=Sr(_,S),T=X(b.value),E=X(!1),I=L(()=>i.value.now),R=L(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),D=L(()=>i.value.negativeText),k=L(()=>i.value.positiveText),F=L(()=>/H|h|K|k/.test(e.format)),P=L(()=>e.format.includes("m")),O=L(()=>e.format.includes("s")),H=L(()=>{const{isHourDisabled:Ce}=e;return ne.value===null?!1:cb(ne.value,"hours",e.hours)?Ce?Ce(ne.value):!1:!0}),V=L(()=>{const{value:Ce}=le,{value:Qe}=ne;if(Ce===null||Qe===null)return!1;if(!cb(Ce,"minutes",e.minutes))return!0;const{isMinuteDisabled:me}=e;return me?me(Ce,Qe):!1}),W=L(()=>{const{value:Ce}=le,{value:Qe}=ne,{value:me}=se;if(me===null||Ce===null||Qe===null)return!1;if(!cb(me,"seconds",e.seconds))return!0;const{isSecondDisabled:Ne}=e;return Ne?Ne(me,Ce,Qe):!1}),Z=L(()=>H.value||V.value||W.value),ee=L(()=>e.format.length+4),ae=L(()=>{const{value:Ce}=b;return Ce===null?null:ju(Ce)<12?"am":"pm"}),ne=L(()=>{const{value:Ce}=b;return Ce===null?null:Number(w.value(Ce,"HH",v.value))}),le=L(()=>{const{value:Ce}=b;return Ce===null?null:Number(w.value(Ce,"mm",v.value))}),se=L(()=>{const{value:Ce}=b;return Ce===null?null:Number(w.value(Ce,"ss",v.value))});function ce(Ce,Qe){const{onUpdateFormattedValue:me,"onUpdate:formattedValue":Ne}=e;me&&Ee(me,Ce,Qe),Ne&&Ee(Ne,Ce,Qe)}function ye(Ce){return Ce===null?null:w.value(Ce,e.valueFormat||e.format)}function fe(Ce){const{onUpdateValue:Qe,"onUpdate:value":me,onChange:Ne}=e,{nTriggerFormChange:lt,nTriggerFormInput:Tt}=s,dt=ye(Ce);Qe&&Ee(Qe,Ce,dt),me&&Ee(me,Ce,dt),Ne&&Ee(Ne,Ce,dt),ce(dt,Ce),y.value=Ce,lt(),Tt()}function Q(Ce){const{onFocus:Qe}=e,{nTriggerFormFocus:me}=s;Qe&&Ee(Qe,Ce),me()}function J(Ce){const{onBlur:Qe}=e,{nTriggerFormBlur:me}=s;Qe&&Ee(Qe,Ce),me()}function U(){const{onConfirm:Ce}=e;Ce&&Ee(Ce,b.value,ye(b.value))}function K(Ce){var Qe;Ce.stopPropagation(),fe(null),pe(null),(Qe=e.onClear)===null||Qe===void 0||Qe.call(e)}function q(){Ke({returnFocus:!0})}function ie(Ce){Ce.key==="Escape"&&B.value&&O0(Ce)}function $(Ce){var Qe;switch(Ce.key){case"Escape":B.value&&(O0(Ce),Ke({returnFocus:!0}));break;case"Tab":f.shift&&Ce.target===((Qe=h.value)===null||Qe===void 0?void 0:Qe.$el)&&(Ce.preventDefault(),Ke({returnFocus:!0}));break}}function re(){E.value=!0,ar(()=>{E.value=!1})}function ve(Ce){u.value||Wi(Ce,"clear")||B.value||it()}function he(Ce){typeof Ce!="string"&&(b.value===null?fe(ct(vd(rCe(new Date),Ce))):fe(ct(vd(b.value,Ce))))}function oe(Ce){typeof Ce!="string"&&(b.value===null?fe(ct(FB(fwe(new Date),Ce))):fe(ct(FB(b.value,Ce))))}function Y(Ce){typeof Ce!="string"&&(b.value===null?fe(ct(MB(Sk(new Date),Ce))):fe(ct(MB(b.value,Ce))))}function te(Ce){const{value:Qe}=b;if(Qe===null){const me=new Date,Ne=ju(me);Ce==="pm"&&Ne<12?fe(ct(vd(me,Ne+12))):Ce==="am"&&Ne>=12&&fe(ct(vd(me,Ne-12))),fe(ct(me))}else{const me=ju(Qe);Ce==="pm"&&me<12?fe(ct(vd(Qe,me+12))):Ce==="am"&&me>=12&&fe(ct(vd(Qe,me-12)))}}function pe(Ce){Ce===void 0&&(Ce=b.value),Ce===null?x.value="":x.value=w.value(Ce,e.format,v.value)}function de(Ce){Ge(Ce)||Q(Ce)}function we(Ce){var Qe;if(!Ge(Ce))if(B.value){const me=(Qe=h.value)===null||Qe===void 0?void 0:Qe.$el;me!=null&&me.contains(Ce.relatedTarget)||(pe(),J(Ce),Ke({returnFocus:!1}))}else pe(),J(Ce)}function De(){u.value||B.value||it()}function ze(){u.value||(pe(),Ke({returnFocus:!1}))}function Xe(){if(!h.value)return;const{hourScrollRef:Ce,minuteScrollRef:Qe,secondScrollRef:me,amPmScrollRef:Ne}=h.value;[Ce,Qe,me,Ne].forEach(lt=>{var Tt;if(!lt)return;const dt=(Tt=lt.contentRef)===null||Tt===void 0?void 0:Tt.querySelector("[data-active]");dt&<.scrollTo({top:dt.offsetTop})})}function ke(Ce){S.value=Ce;const{onUpdateShow:Qe,"onUpdate:show":me}=e;Qe&&Ee(Qe,Ce),me&&Ee(me,Ce)}function Ge(Ce){var Qe,me,Ne;return!!(((me=(Qe=A.value)===null||Qe===void 0?void 0:Qe.wrapperElRef)===null||me===void 0?void 0:me.contains(Ce.relatedTarget))||((Ne=h.value)===null||Ne===void 0?void 0:Ne.$el.contains(Ce.relatedTarget)))}function it(){T.value=b.value,ke(!0),ar(Xe)}function ut(Ce){var Qe,me;B.value&&!(!((me=(Qe=A.value)===null||Qe===void 0?void 0:Qe.wrapperElRef)===null||me===void 0)&&me.contains(as(Ce)))&&Ke({returnFocus:!1})}function Ke({returnFocus:Ce}){var Qe;B.value&&(ke(!1),Ce&&((Qe=A.value)===null||Qe===void 0||Qe.focus()))}function xt(Ce){if(Ce===""){fe(null);return}const Qe=si(Ce,e.format,new Date,v.value);if(x.value=Ce,Ao(Qe)){const{value:me}=b;if(me!==null){const Ne=va(me,{hours:ju(Qe),minutes:sw(Qe),seconds:lw(Qe)});fe(ct(Ne))}else fe(ct(Qe))}}function ue(){fe(T.value),ke(!1)}function Te(){const Ce=new Date,Qe={hours:ju,minutes:sw,seconds:lw},[me,Ne,lt]=["hours","minutes","seconds"].map(dt=>!e[dt]||cb(Qe[dt](Ce),dt,e[dt])?Qe[dt](Ce):O2e(Qe[dt](Ce),dt,e[dt])),Tt=MB(FB(vd(b.value?b.value:ct(Ce),me),Ne),lt);fe(ct(Tt))}function He(){pe(),U(),Ke({returnFocus:!0})}function Je(Ce){Ge(Ce)||(pe(),J(Ce),Ke({returnFocus:!1}))}mt(b,Ce=>{pe(Ce),re(),ar(Xe)}),mt(B,()=>{Z.value&&fe(T.value)}),Ct(AY,{mergedThemeRef:d,mergedClsPrefixRef:r});const nt={focus:()=>{var Ce;(Ce=A.value)===null||Ce===void 0||Ce.focus()},blur:()=>{var Ce;(Ce=A.value)===null||Ce===void 0||Ce.blur()}},be=L(()=>{const{common:{cubicBezierEaseInOut:Ce},self:{iconColor:Qe,iconColorDisabled:me}}=d.value;return{"--n-icon-color-override":Qe,"--n-icon-color-disabled-override":me,"--n-bezier":Ce}}),Le=a?_t("time-picker-trigger",void 0,be,e):void 0,je=L(()=>{const{self:{panelColor:Ce,itemTextColor:Qe,itemTextColorActive:me,itemColorHover:Ne,panelDividerColor:lt,panelBoxShadow:Tt,itemOpacityDisabled:dt,borderRadius:Ae,itemFontSize:Re,itemWidth:ot,itemHeight:Ht,panelActionPadding:_e,itemBorderRadius:Oe},common:{cubicBezierEaseInOut:rt}}=d.value;return{"--n-bezier":rt,"--n-border-radius":Ae,"--n-item-color-hover":Ne,"--n-item-font-size":Re,"--n-item-height":Ht,"--n-item-opacity-disabled":dt,"--n-item-text-color":Qe,"--n-item-text-color-active":me,"--n-item-width":ot,"--n-panel-action-padding":_e,"--n-panel-box-shadow":Tt,"--n-panel-color":Ce,"--n-panel-divider-color":lt,"--n-item-border-radius":Oe}}),ft=a?_t("time-picker",void 0,je,e):void 0;return{focus:nt.focus,blur:nt.blur,mergedStatus:c,mergedBordered:t,mergedClsPrefix:r,namespace:n,uncontrolledValue:y,mergedValue:b,isMounted:ji(),inputInstRef:A,panelInstRef:h,adjustedTo:Dn(e),mergedShow:B,localizedNow:I,localizedPlaceholder:R,localizedNegativeText:D,localizedPositiveText:k,hourInFormat:F,minuteInFormat:P,secondInFormat:O,mergedAttrSize:ee,displayTimeString:x,mergedSize:l,mergedDisabled:u,isValueInvalid:Z,isHourInvalid:H,isMinuteInvalid:V,isSecondInvalid:W,transitionDisabled:E,hourValue:ne,minuteValue:le,secondValue:se,amPmValue:ae,handleInputKeydown:ie,handleTimeInputFocus:de,handleTimeInputBlur:we,handleNowClick:Te,handleConfirmClick:He,handleTimeInputUpdateValue:xt,handleMenuFocusOut:Je,handleCancelClick:ue,handleClickOutside:ut,handleTimeInputActivate:De,handleTimeInputDeactivate:ze,handleHourClick:he,handleMinuteClick:oe,handleSecondClick:Y,handleAmPmClick:te,handleTimeInputClear:K,handleFocusDetectorFocus:q,handleMenuKeydown:$,handleTriggerClick:ve,mergedTheme:d,triggerCssVars:a?void 0:be,triggerThemeClass:Le==null?void 0:Le.themeClass,triggerOnRender:Le==null?void 0:Le.onRender,cssVars:a?void 0:je,themeClass:ft==null?void 0:ft.themeClass,onRender:ft==null?void 0:ft.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:r}=this;return r==null||r(),C("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},C(jc,null,{default:()=>[C(Yc,null,{default:()=>C(os,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>C($t,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():C(rbe,null)})}:null)}),C(qc,{teleportDisabled:this.adjustedTo===Dn.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>C(zr,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var n;return this.mergedShow?((n=this.onRender)===null||n===void 0||n.call(this),jr(C(H2e,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[Js,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}});const Q2e="HH:mm:ss",hY={active:Boolean,dateFormat:String,timeFormat:{type:String,value:Q2e},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function vY(e){const{dateLocaleRef:t,timePickerSizeRef:r,timePickerPropsRef:n,localeRef:a,mergedClsPrefixRef:i,mergedThemeRef:o}=We(AS),s=L(()=>({locale:t.value.locale})),l=X(null),u=JM();function c(){const{onClear:I}=e;I&&I()}function d(){const{onConfirm:I,value:R}=e;I&&I(R)}function f(I,R){const{onUpdateValue:D}=e;D(I,R)}function A(I=!1){const{onClose:R}=e;R&&R(I)}function h(){const{onTabOut:I}=e;I&&I()}function v(){f(null,!0),A(!0),c()}function p(){h()}function g(){(e.active||e.panel)&&ar(()=>{const{value:I}=l;if(!I)return;const R=I.querySelectorAll("[data-n-date]");R.forEach(D=>{D.classList.add("transition-disabled")}),I.offsetWidth,R.forEach(D=>{D.classList.remove("transition-disabled")})})}function m(I){I.key==="Tab"&&I.target===l.value&&u.shift&&(I.preventDefault(),h())}function y(I){const{value:R}=l;u.tab&&I.target===R&&(R==null?void 0:R.contains(I.relatedTarget))&&h()}let b=null,w=!1;function x(){b=e.value,w=!0}function S(){w=!1}function _(){w&&(f(b,!1),w=!1)}function B(I){return typeof I=="function"?I():I}const T=X(!1);function E(){T.value=!T.value}return{mergedTheme:o,mergedClsPrefix:i,dateFnsOptions:s,timePickerSize:r,timePickerProps:n,selfRef:l,locale:a,doConfirm:d,doClose:A,doUpdateValue:f,doTabOut:h,handleClearClick:v,handleFocusDetectorFocus:p,disableTransitionOneTick:g,handlePanelKeyDown:m,handlePanelFocus:y,cachePendingValue:x,clearPendingValue:S,restorePendingValue:_,getShortcutValue:B,handleShortcutMouseleave:_,showMonthYearPanel:T,handleOpenQuickSelectMonthPanel:E}}const Nk=Object.assign(Object.assign({},hY),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function Qk(e,t){const r=vY(e),{isValueInvalidRef:n,isDateDisabledRef:a,isDateInvalidRef:i,isTimeInvalidRef:o,isDateTimeInvalidRef:s,isHourDisabledRef:l,isMinuteDisabledRef:u,isSecondDisabledRef:c,localeRef:d,firstDayOfWeekRef:f,datePickerSlots:A}=We(AS),h={isValueInvalid:n,isDateDisabled:a,isDateInvalid:i,isTimeInvalid:o,isDateTimeInvalid:s,isHourDisabled:l,isMinuteDisabled:u,isSecondDisabled:c},v=L(()=>e.dateFormat||d.value.dateFormat),p=X(e.value===null||Array.isArray(e.value)?"":nn(e.value,v.value)),g=X(e.value===null||Array.isArray(e.value)?Date.now():e.value),m=X(null),y=X(null),b=X(null),w=X(Date.now()),x=L(()=>{var $;return KI(g.value,e.value,w.value,($=f.value)!==null&&$!==void 0?$:d.value.firstDayOfWeek)}),S=L(()=>{const{value:$}=e;return jI(g.value,Array.isArray($)?null:$,w.value)}),_=L(()=>{const{value:$}=e;return XI(Array.isArray($)?null:$,w.value)}),B=L(()=>{const{value:$}=e;return YI(g.value,Array.isArray($)?null:$,w.value)}),T=L(()=>x.value.slice(0,7).map($=>{const{ts:re}=$;return nn(re,d.value.dayFormat,r.dateFnsOptions.value)})),E=L(()=>nn(g.value,d.value.monthFormat,r.dateFnsOptions.value)),I=L(()=>nn(g.value,d.value.yearFormat,r.dateFnsOptions.value));mt(g,($,re)=>{(t==="date"||t==="datetime")&&(lS($,re)||r.disableTransitionOneTick())}),mt(L(()=>e.value),$=>{$!==null&&!Array.isArray($)?(p.value=nn($,v.value,r.dateFnsOptions.value),g.value=$):p.value=""});function R($){return ct(t==="datetime"?Sk($):t==="month"?Sl($):t==="year"?wk($):t==="quarter"?N0($):aw($))}function D($){const{isDateDisabled:{value:re}}=h;return re?re($):!1}function k($){const re=si($,v.value,new Date,r.dateFnsOptions.value);if(Ao(re)){if(e.value===null)r.doUpdateValue(ct(R(Date.now())),e.panel);else if(!Array.isArray(e.value)){const ve=va(e.value,{year:pn(re),month:sn(re),date:Vo(re)});r.doUpdateValue(ct(R(ct(ve))),e.panel)}}else p.value=$}function F(){const $=si(p.value,v.value,new Date,r.dateFnsOptions.value);if(Ao($)){if(e.value===null)r.doUpdateValue(ct(R(Date.now())),!1);else if(!Array.isArray(e.value)){const re=va(e.value,{year:pn($),month:sn($),date:Vo($)});r.doUpdateValue(ct(R(ct(re))),!1)}}else Z()}function P(){r.doUpdateValue(null,!0),p.value="",r.doClose(!0),r.handleClearClick()}function O(){r.doUpdateValue(ct(R(Date.now())),!0);const $=Date.now();g.value=$,r.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(r.disableTransitionOneTick(),q($))}function H($){if(D($.ts))return;let re;if(e.value!==null&&!Array.isArray(e.value)?re=e.value:re=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const ve=nx(e.defaultTime);ve&&(re=ct(va(re,ve)))}switch(re=ct($.type==="quarter"&&$.dateObject.quarter?nCe(k3(re,$.dateObject.year),$.dateObject.quarter):va(re,$.dateObject)),r.doUpdateValue(R(re),e.panel||t==="date"||t==="year"),t){case"date":r.doClose();break;case"year":e.panel&&r.disableTransitionOneTick(),r.doClose();break;case"month":r.disableTransitionOneTick(),q(re);break;case"quarter":r.disableTransitionOneTick(),q(re);break}}function V($,re){let ve;e.value!==null&&!Array.isArray(e.value)?ve=e.value:ve=Date.now(),ve=ct($.type==="month"?_k(ve,$.dateObject.month):k3(ve,$.dateObject.year)),re(ve),q(ve)}function W($){g.value=$}function Z($){if(e.value===null||Array.isArray(e.value)){p.value="";return}$===void 0&&($=e.value),p.value=nn($,v.value,r.dateFnsOptions.value)}function ee(){h.isDateInvalid.value||h.isTimeInvalid.value||(r.doConfirm(),ae())}function ae(){e.active&&r.doClose()}function ne(){g.value=ct(GI(g.value,1))}function le(){g.value=ct(GI(g.value,-1))}function se(){g.value=ct(ha(g.value,1))}function ce(){g.value=ct(ha(g.value,-1))}function ye(){const{value:$}=m;return $==null?void 0:$.listElRef}function fe(){const{value:$}=m;return $==null?void 0:$.itemsElRef}function Q($){var re;(re=y.value)===null||re===void 0||re.sync()}function J($){$!==null&&r.doUpdateValue($,e.panel)}function U($){r.cachePendingValue();const re=r.getShortcutValue($);typeof re=="number"&&r.doUpdateValue(re,!1)}function K($){const re=r.getShortcutValue($);typeof re=="number"&&(r.doUpdateValue(re,e.panel),r.clearPendingValue(),ee())}function q($){const{value:re}=e;if(b.value){const ve=sn($===void 0?re===null?Date.now():re:$);b.value.scrollTo({top:ve*Wf})}if(m.value){const ve=pn($===void 0?re===null?Date.now():re:$)-uw;m.value.scrollTo({top:ve*Wf})}}const ie={monthScrollbarRef:b,yearScrollbarRef:y,yearVlRef:m};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:x,monthArray:S,yearArray:_,quarterArray:B,calendarYear:I,calendarMonth:E,weekdays:T,mergedIsDateDisabled:D,nextYear:ne,prevYear:le,nextMonth:se,prevMonth:ce,handleNowClick:O,handleConfirmClick:ee,handleSingleShortcutMouseenter:U,handleSingleShortcutClick:K},h),r),ie),{handleDateClick:H,handleDateInputBlur:F,handleDateInput:k,handleTimePickerChange:J,clearSelectedDateTime:P,virtualListContainer:ye,virtualListContent:fe,handleVirtualListScroll:Q,timePickerSize:r.timePickerSize,dateInputValue:p,datePickerSlots:A,handleQuickMonthClick:V,justifyColumnsScrollState:q,calendarValue:g,onUpdateCalendarValue:W})}var pY=ge({name:"MonthPanel",props:Object.assign(Object.assign({},Nk),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=Qk(e,e.type),r=i=>{switch(i.type){case"year":return i.dateObject.year;case"month":return i.dateObject.month+1;case"quarter":return`Q${i.dateObject.quarter}`}},{useAsQuickJump:n}=e,a=(i,o,s)=>{const{mergedIsDateDisabled:l,handleDateClick:u,handleQuickMonthClick:c}=t;return C("div",{"data-n-date":!0,key:o,class:[`${s}-date-panel-month-calendar__picker-col-item`,{[`${s}-date-panel-month-calendar__picker-col-item--current`]:i.isCurrent,[`${s}-date-panel-month-calendar__picker-col-item--selected`]:i.selected,[`${s}-date-panel-month-calendar__picker-col-item--disabled`]:!n&&l(i.ts)}],onClick:()=>{n?c(i,d=>e.onUpdateValue(d,!1)):u(i)}},r(i))};return Ar(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:a})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:r,actions:n,renderItem:a,type:i,onRender:o}=this;return o==null||o(),C("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},C("div",{class:`${e}-date-panel-month-calendar`},C(Un,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>C(cv,{ref:"yearVlRef",items:this.yearArray,itemSize:Wf,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:s,index:l})=>a(s,l,e)})}),i==="month"||i==="quarter"?C("div",{class:`${e}-date-panel-month-calendar__picker-col`},C(Un,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((s,l)=>a(s,l,e)),C("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?C("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(n==null?void 0:n.length)||r?C("div",{class:`${e}-date-panel-actions`},C("div",{class:`${e}-date-panel-actions__prefix`},r&&Object.keys(r).map(s=>{const l=r[s];return Array.isArray(l)?null:C(Vs,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(l)},onClick:()=>{this.handleSingleShortcutClick(l)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),C("div",{class:`${e}-date-panel-actions__suffix`},n!=null&&n.includes("clear")?C(on,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,n!=null&&n.includes("now")?C(on,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,n!=null&&n.includes("confirm")?C(on,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,C(Jc,{onFocus:this.handleFocusDetectorFocus}))}}),hv=ge({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=X(null),t=X(null),r=X(!1);function n(i){var o;r.value&&!(!((o=e.value)===null||o===void 0)&&o.contains(as(i)))&&(r.value=!1)}function a(){r.value=!r.value}return{show:r,triggerRef:e,monthPanelRef:t,handleHeaderClick:a,handleClickOutside:n}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return C("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},C(jc,null,{default:()=>[C(Yc,null,{default:()=>C("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),C(qc,{show:this.show,teleportDisabled:!0},{default:()=>C(zr,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?jr(C(pY,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[Js,e,void 0,{capture:!0}]]):null})})]}))}}),V2e=ge({name:"DateTimePanel",props:Nk,setup(e){return Qk(e,"datetime")},render(){var e,t,r,n;const{mergedClsPrefix:a,mergedTheme:i,shortcuts:o,timePickerProps:s,onRender:l,$slots:u}=this;return l==null||l(),C("div",{ref:"selfRef",tabindex:0,class:[`${a}-date-panel`,`${a}-date-panel--datetime`,!this.panel&&`${a}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},C("div",{class:`${a}-date-panel-header`},C(os,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${a}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),C(vw,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(s)?void 0:s,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),C("div",{class:`${a}-date-panel-calendar`},C("div",{class:`${a}-date-panel-month`},C("div",{class:`${a}-date-panel-month__fast-prev`,onClick:this.prevYear},Wt(u["prev-year"],()=>[C(Fc,null)])),C("div",{class:`${a}-date-panel-month__prev`,onClick:this.prevMonth},Wt(u["prev-month"],()=>[C(Dc,null)])),C(hv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:a,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),C("div",{class:`${a}-date-panel-month__next`,onClick:this.nextMonth},Wt(u["next-month"],()=>[C(kc,null)])),C("div",{class:`${a}-date-panel-month__fast-next`,onClick:this.nextYear},Wt(u["next-year"],()=>[C(Mc,null)]))),C("div",{class:`${a}-date-panel-weekdays`},this.weekdays.map(c=>C("div",{key:c,class:`${a}-date-panel-weekdays__day`},c))),C("div",{class:`${a}-date-panel-dates`},this.dateArray.map((c,d)=>C("div",{"data-n-date":!0,key:d,class:[`${a}-date-panel-date`,{[`${a}-date-panel-date--current`]:c.isCurrentDate,[`${a}-date-panel-date--selected`]:c.selected,[`${a}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${a}-date-panel-date--disabled`]:this.mergedIsDateDisabled(c.ts)}],onClick:()=>this.handleDateClick(c)},C("div",{class:`${a}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?C("div",{class:`${a}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?C("div",{class:`${a}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||o?C("div",{class:`${a}-date-panel-actions`},C("div",{class:`${a}-date-panel-actions__prefix`},o&&Object.keys(o).map(c=>{const d=o[c];return Array.isArray(d)?null:C(Vs,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(d)},onClick:()=>{this.handleSingleShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c})})),C("div",{class:`${a}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?C(on,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((r=this.actions)===null||r===void 0)&&r.includes("now")?C(on,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?C(on,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,C(Jc,{onFocus:this.handleFocusDetectorFocus}))}});const Vk=Object.assign(Object.assign({},hY),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function Wk(e,t){var r,n;const{isDateDisabledRef:a,isStartHourDisabledRef:i,isEndHourDisabledRef:o,isStartMinuteDisabledRef:s,isEndMinuteDisabledRef:l,isStartSecondDisabledRef:u,isEndSecondDisabledRef:c,isStartDateInvalidRef:d,isEndDateInvalidRef:f,isStartTimeInvalidRef:A,isEndTimeInvalidRef:h,isStartValueInvalidRef:v,isEndValueInvalidRef:p,isRangeInvalidRef:g,localeRef:m,rangesRef:y,closeOnSelectRef:b,updateValueOnCloseRef:w,firstDayOfWeekRef:x,datePickerSlots:S}=We(AS),_={isDateDisabled:a,isStartHourDisabled:i,isEndHourDisabled:o,isStartMinuteDisabled:s,isEndMinuteDisabled:l,isStartSecondDisabled:u,isEndSecondDisabled:c,isStartDateInvalid:d,isEndDateInvalid:f,isStartTimeInvalid:A,isEndTimeInvalid:h,isStartValueInvalid:v,isEndValueInvalid:p,isRangeInvalid:g},B=vY(e),T=X(null),E=X(null),I=X(null),R=X(null),D=X(null),k=X(null),F=X(null),P=X(null),{value:O}=e,H=(r=e.defaultCalendarStartTime)!==null&&r!==void 0?r:Array.isArray(O)&&typeof O[0]=="number"?O[0]:Date.now(),V=X(H),W=X((n=e.defaultCalendarEndTime)!==null&&n!==void 0?n:Array.isArray(O)&&typeof O[1]=="number"?O[1]:ct(ha(H,1)));we(!0);const Z=X(Date.now()),ee=X(!1),ae=X(0),ne=L(()=>e.dateFormat||m.value.dateFormat),le=X(Array.isArray(O)?nn(O[0],ne.value,B.dateFnsOptions.value):""),se=X(Array.isArray(O)?nn(O[1],ne.value,B.dateFnsOptions.value):""),ce=L(()=>ee.value?"end":"start"),ye=L(()=>{var Be;return KI(V.value,e.value,Z.value,(Be=x.value)!==null&&Be!==void 0?Be:m.value.firstDayOfWeek)}),fe=L(()=>{var Be;return KI(W.value,e.value,Z.value,(Be=x.value)!==null&&Be!==void 0?Be:m.value.firstDayOfWeek)}),Q=L(()=>ye.value.slice(0,7).map(Be=>{const{ts:qe}=Be;return nn(qe,m.value.dayFormat,B.dateFnsOptions.value)})),J=L(()=>nn(V.value,m.value.monthFormat,B.dateFnsOptions.value)),U=L(()=>nn(W.value,m.value.monthFormat,B.dateFnsOptions.value)),K=L(()=>nn(V.value,m.value.yearFormat,B.dateFnsOptions.value)),q=L(()=>nn(W.value,m.value.yearFormat,B.dateFnsOptions.value)),ie=L(()=>{const{value:Be}=e;return Array.isArray(Be)?Be[0]:null}),$=L(()=>{const{value:Be}=e;return Array.isArray(Be)?Be[1]:null}),re=L(()=>{const{shortcuts:Be}=e;return Be||y.value}),ve=L(()=>XI(kA(e.value,"start"),Z.value)),he=L(()=>XI(kA(e.value,"end"),Z.value)),oe=L(()=>{const Be=kA(e.value,"start");return YI(Be!=null?Be:Date.now(),Be,Z.value)}),Y=L(()=>{const Be=kA(e.value,"end");return YI(Be!=null?Be:Date.now(),Be,Z.value)}),te=L(()=>{const Be=kA(e.value,"start");return jI(Be!=null?Be:Date.now(),Be,Z.value)}),pe=L(()=>{const Be=kA(e.value,"end");return jI(Be!=null?Be:Date.now(),Be,Z.value)});mt(L(()=>e.value),Be=>{if(Be!==null&&Array.isArray(Be)){const[qe,vt]=Be;le.value=nn(qe,ne.value,B.dateFnsOptions.value),se.value=nn(vt,ne.value,B.dateFnsOptions.value),ee.value||He(Be)}else le.value="",se.value=""});function de(Be,qe){(t==="daterange"||t==="datetimerange")&&(pn(Be)!==pn(qe)||sn(Be)!==sn(qe))&&B.disableTransitionOneTick()}mt(V,de),mt(W,de);function we(Be){const qe=Sl(V.value),vt=Sl(W.value);(e.bindCalendarMonths||qe>=vt)&&(Be?W.value=ct(ha(qe,1)):V.value=ct(ha(vt,-1)))}function De(){V.value=ct(ha(V.value,12)),we(!0)}function ze(){V.value=ct(ha(V.value,-12)),we(!0)}function Xe(){V.value=ct(ha(V.value,1)),we(!0)}function ke(){V.value=ct(ha(V.value,-1)),we(!0)}function Ge(){W.value=ct(ha(W.value,12)),we(!1)}function it(){W.value=ct(ha(W.value,-12)),we(!1)}function ut(){W.value=ct(ha(W.value,1)),we(!1)}function Ke(){W.value=ct(ha(W.value,-1)),we(!1)}function xt(Be){V.value=Be,we(!0)}function ue(Be){W.value=Be,we(!1)}function Te(Be){const qe=a.value;if(!qe)return!1;if(!Array.isArray(e.value)||ce.value==="start")return qe(Be,"start",null);{const{value:vt}=ae;return Be<ae.value?qe(Be,"start",[vt,vt]):qe(Be,"end",[vt,vt])}}function He(Be){if(Be===null)return;const[qe,vt]=Be;V.value=qe,Sl(vt)<=Sl(qe)?W.value=ct(Sl(ha(qe,1))):W.value=ct(Sl(vt))}function Je(Be){if(!ee.value)ee.value=!0,ae.value=Be.ts,Ce(Be.ts,Be.ts,"done");else{ee.value=!1;const{value:qe}=e;e.panel&&Array.isArray(qe)?Ce(qe[0],qe[1],"done"):b.value&&t==="daterange"&&(w.value?Le():be())}}function nt(Be){if(ee.value){if(Te(Be.ts))return;Be.ts>=ae.value?Ce(ae.value,Be.ts,"wipPreview"):Ce(Be.ts,ae.value,"wipPreview")}}function be(){g.value||(B.doConfirm(),Le())}function Le(){ee.value=!1,e.active&&B.doClose()}function je(Be){typeof Be!="number"&&(Be=ct(Be)),e.value===null?B.doUpdateValue([Be,Be],e.panel):Array.isArray(e.value)&&B.doUpdateValue([Be,Math.max(e.value[1],Be)],e.panel)}function ft(Be){typeof Be!="number"&&(Be=ct(Be)),e.value===null?B.doUpdateValue([Be,Be],e.panel):Array.isArray(e.value)&&B.doUpdateValue([Math.min(e.value[0],Be),Be],e.panel)}function Ce(Be,qe,vt){if(typeof Be!="number"&&(Be=ct(Be)),vt!=="shortcutPreview"){let Jt,Lr;if(t==="datetimerange"){const{defaultTime:br}=e;Array.isArray(br)?(Jt=nx(br[0]),Lr=nx(br[1])):(Jt=nx(br),Lr=Jt)}Jt&&(Be=ct(va(Be,Jt))),Lr&&(qe=ct(va(qe,Lr)))}B.doUpdateValue([Be,qe],e.panel&&vt==="done")}function Qe(Be){return ct(t==="datetimerange"?Sk(Be):t==="monthrange"?Sl(Be):aw(Be))}function me(Be){const qe=si(Be,ne.value,new Date,B.dateFnsOptions.value);if(Ao(qe))if(e.value){if(Array.isArray(e.value)){const vt=va(e.value[0],{year:pn(qe),month:sn(qe),date:Vo(qe)});je(Qe(ct(vt)))}}else{const vt=va(new Date,{year:pn(qe),month:sn(qe),date:Vo(qe)});je(Qe(ct(vt)))}else le.value=Be}function Ne(Be){const qe=si(Be,ne.value,new Date,B.dateFnsOptions.value);if(Ao(qe)){if(e.value===null){const vt=va(new Date,{year:pn(qe),month:sn(qe),date:Vo(qe)});ft(Qe(ct(vt)))}else if(Array.isArray(e.value)){const vt=va(e.value[1],{year:pn(qe),month:sn(qe),date:Vo(qe)});ft(Qe(ct(vt)))}}else se.value=Be}function lt(){const Be=si(le.value,ne.value,new Date,B.dateFnsOptions.value),{value:qe}=e;if(Ao(Be)){if(qe===null){const vt=va(new Date,{year:pn(Be),month:sn(Be),date:Vo(Be)});je(Qe(ct(vt)))}else if(Array.isArray(qe)){const vt=va(qe[0],{year:pn(Be),month:sn(Be),date:Vo(Be)});je(Qe(ct(vt)))}}else dt()}function Tt(){const Be=si(se.value,ne.value,new Date,B.dateFnsOptions.value),{value:qe}=e;if(Ao(Be)){if(qe===null){const vt=va(new Date,{year:pn(Be),month:sn(Be),date:Vo(Be)});ft(Qe(ct(vt)))}else if(Array.isArray(qe)){const vt=va(qe[1],{year:pn(Be),month:sn(Be),date:Vo(Be)});ft(Qe(ct(vt)))}}else dt()}function dt(Be){const{value:qe}=e;if(qe===null||!Array.isArray(qe)){le.value="",se.value="";return}Be===void 0&&(Be=qe),le.value=nn(Be[0],ne.value,B.dateFnsOptions.value),se.value=nn(Be[1],ne.value,B.dateFnsOptions.value)}function Ae(Be){Be!==null&&je(Be)}function Re(Be){Be!==null&&ft(Be)}function ot(Be){B.cachePendingValue();const qe=B.getShortcutValue(Be);!Array.isArray(qe)||Ce(qe[0],qe[1],"shortcutPreview")}function Ht(Be){const qe=B.getShortcutValue(Be);!Array.isArray(qe)||(Ce(qe[0],qe[1],"done"),B.clearPendingValue(),be())}function _e(Be,qe){const vt=Be===void 0?e.value:Be;if(Be===void 0||qe==="start"){if(F.value){const Jt=Array.isArray(vt)?sn(vt[0]):sn(Date.now());F.value.scrollTo({debounce:!1,index:Jt,elSize:Wf})}if(D.value){const Jt=(Array.isArray(vt)?pn(vt[0]):pn(Date.now()))-uw;D.value.scrollTo({index:Jt,debounce:!1})}}if(Be===void 0||qe==="end"){if(P.value){const Jt=Array.isArray(vt)?sn(vt[1]):sn(Date.now());P.value.scrollTo({debounce:!1,index:Jt,elSize:Wf})}if(k.value){const Jt=(Array.isArray(vt)?pn(vt[1]):pn(Date.now()))-uw;k.value.scrollTo({index:Jt,debounce:!1})}}}function Oe(Be,qe){const{value:vt}=e,Jt=!Array.isArray(vt),Lr=Be.type==="year"&&t!=="yearrange"?Jt?va(Be.ts,{month:sn(t==="quarterrange"?N0(new Date):new Date)}).valueOf():va(Be.ts,{month:sn(t==="quarterrange"?N0(vt[qe==="start"?0:1]):vt[qe==="start"?0:1])}).valueOf():Be.ts;if(Jt){const Br=Qe(Lr),dn=[Br,Br];B.doUpdateValue(dn,e.panel),_e(dn,"start"),_e(dn,"end"),B.disableTransitionOneTick();return}const br=[vt[0],vt[1]];let Lo=!1;switch(qe==="start"?(br[0]=Qe(Lr),br[0]>br[1]&&(br[1]=br[0],Lo=!0)):(br[1]=Qe(Lr),br[0]>br[1]&&(br[0]=br[1],Lo=!0)),B.doUpdateValue(br,e.panel),t){case"monthrange":case"quarterrange":B.disableTransitionOneTick(),Lo?(_e(br,"start"),_e(br,"end")):_e(br,qe);break;case"yearrange":B.disableTransitionOneTick(),_e(br,"start"),_e(br,"end")}}function rt(){var Be;(Be=I.value)===null||Be===void 0||Be.sync()}function ht(){var Be;(Be=R.value)===null||Be===void 0||Be.sync()}function Ft(Be){var qe,vt;return Be==="start"?(qe=D.value)===null||qe===void 0?void 0:qe.listElRef:(vt=k.value)===null||vt===void 0?void 0:vt.listElRef}function Hr(Be){var qe,vt;return Be==="start"?(qe=D.value)===null||qe===void 0?void 0:qe.itemsElRef:(vt=k.value)===null||vt===void 0?void 0:vt.itemsElRef}const Pr={startYearVlRef:D,endYearVlRef:k,startMonthScrollbarRef:F,endMonthScrollbarRef:P,startYearScrollbarRef:I,endYearScrollbarRef:R};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:T,endDatesElRef:E,handleDateClick:Je,handleColItemClick:Oe,handleDateMouseEnter:nt,handleConfirmClick:be,startCalendarPrevYear:ze,startCalendarPrevMonth:ke,startCalendarNextYear:De,startCalendarNextMonth:Xe,endCalendarPrevYear:it,endCalendarPrevMonth:Ke,endCalendarNextMonth:ut,endCalendarNextYear:Ge,mergedIsDateDisabled:Te,changeStartEndTime:Ce,ranges:y,startCalendarMonth:J,startCalendarYear:K,endCalendarMonth:U,endCalendarYear:q,weekdays:Q,startDateArray:ye,endDateArray:fe,startYearArray:ve,startMonthArray:te,startQuarterArray:oe,endYearArray:he,endMonthArray:pe,endQuarterArray:Y,isSelecting:ee,handleRangeShortcutMouseenter:ot,handleRangeShortcutClick:Ht},B),_),Pr),{startDateDisplayString:le,endDateInput:se,timePickerSize:B.timePickerSize,startTimeValue:ie,endTimeValue:$,datePickerSlots:S,shortcuts:re,startCalendarDateTime:V,endCalendarDateTime:W,justifyColumnsScrollState:_e,handleFocusDetectorFocus:B.handleFocusDetectorFocus,handleStartTimePickerChange:Ae,handleEndTimePickerChange:Re,handleStartDateInput:me,handleStartDateInputBlur:lt,handleEndDateInput:Ne,handleEndDateInputBlur:Tt,handleStartYearVlScroll:rt,handleEndYearVlScroll:ht,virtualListContainer:Ft,virtualListContent:Hr,onUpdateStartCalendarValue:xt,onUpdateEndCalendarValue:ue})}var W2e=ge({name:"DateTimeRangePanel",props:Vk,setup(e){return Wk(e,"datetimerange")},render(){var e,t,r;const{mergedClsPrefix:n,mergedTheme:a,shortcuts:i,timePickerProps:o,onRender:s,$slots:l}=this;return s==null||s(),C("div",{ref:"selfRef",tabindex:0,class:[`${n}-date-panel`,`${n}-date-panel--datetimerange`,!this.panel&&`${n}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},C("div",{class:`${n}-date-panel-header`},C(os,{value:this.startDateDisplayString,theme:a.peers.Input,themeOverrides:a.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${n}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),C(vw,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(o)?o[0]:o,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:a.peers.TimePicker,themeOverrides:a.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),C(os,{value:this.endDateInput,theme:a.peers.Input,themeOverrides:a.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${n}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),C(vw,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(o)?o[1]:o,{disabled:this.isSelecting,showIcon:!1,theme:a.peers.TimePicker,themeOverrides:a.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),C("div",{ref:"startDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--start`},C("div",{class:`${n}-date-panel-month`},C("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},Wt(l["prev-year"],()=>[C(Fc,null)])),C("div",{class:`${n}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},Wt(l["prev-month"],()=>[C(Dc,null)])),C(hv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:n,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),C("div",{class:`${n}-date-panel-month__next`,onClick:this.startCalendarNextMonth},Wt(l["next-month"],()=>[C(kc,null)])),C("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},Wt(l["next-year"],()=>[C(Mc,null)]))),C("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(u=>C("div",{key:u,class:`${n}-date-panel-weekdays__day`},u))),C("div",{class:`${n}-date-panel__divider`}),C("div",{class:`${n}-date-panel-dates`},this.startDateArray.map((u,c)=>{const d=this.mergedIsDateDisabled(u.ts);return C("div",{"data-n-date":!0,key:c,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--excluded`]:!u.inCurrentMonth,[`${n}-date-panel-date--current`]:u.isCurrentDate,[`${n}-date-panel-date--selected`]:u.selected,[`${n}-date-panel-date--covered`]:u.inSpan,[`${n}-date-panel-date--start`]:u.startOfSpan,[`${n}-date-panel-date--end`]:u.endOfSpan,[`${n}-date-panel-date--disabled`]:d}],onClick:d?void 0:()=>this.handleDateClick(u),onMouseenter:d?void 0:()=>this.handleDateMouseEnter(u)},C("div",{class:`${n}-date-panel-date__trigger`}),u.dateObject.date,u.isCurrentDate?C("div",{class:`${n}-date-panel-date__sup`}):null)}))),C("div",{class:`${n}-date-panel__vertical-divider`}),C("div",{ref:"endDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--end`},C("div",{class:`${n}-date-panel-month`},C("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},Wt(l["prev-year"],()=>[C(Fc,null)])),C("div",{class:`${n}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},Wt(l["prev-month"],()=>[C(Dc,null)])),C(hv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:n,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),C("div",{class:`${n}-date-panel-month__next`,onClick:this.endCalendarNextMonth},Wt(l["next-month"],()=>[C(kc,null)])),C("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},Wt(l["next-year"],()=>[C(Mc,null)]))),C("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(u=>C("div",{key:u,class:`${n}-date-panel-weekdays__day`},u))),C("div",{class:`${n}-date-panel__divider`}),C("div",{class:`${n}-date-panel-dates`},this.endDateArray.map((u,c)=>{const d=this.mergedIsDateDisabled(u.ts);return C("div",{"data-n-date":!0,key:c,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--excluded`]:!u.inCurrentMonth,[`${n}-date-panel-date--current`]:u.isCurrentDate,[`${n}-date-panel-date--selected`]:u.selected,[`${n}-date-panel-date--covered`]:u.inSpan,[`${n}-date-panel-date--start`]:u.startOfSpan,[`${n}-date-panel-date--end`]:u.endOfSpan,[`${n}-date-panel-date--disabled`]:d}],onClick:d?void 0:()=>this.handleDateClick(u),onMouseenter:d?void 0:()=>this.handleDateMouseEnter(u)},C("div",{class:`${n}-date-panel-date__trigger`}),u.dateObject.date,u.isCurrentDate?C("div",{class:`${n}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?C("div",{class:`${n}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?C("div",{class:`${n}-date-panel-actions`},C("div",{class:`${n}-date-panel-actions__prefix`},i&&Object.keys(i).map(u=>{const c=i[u];return Array.isArray(c)||typeof c=="function"?C(Vs,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>u}):null})),C("div",{class:`${n}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?C(on,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?C(on,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,C(Jc,{onFocus:this.handleFocusDetectorFocus}))}}),G2e=ge({name:"DatePanel",props:Nk,setup(e){return Qk(e,"date")},render(){var e,t,r;const{mergedClsPrefix:n,mergedTheme:a,shortcuts:i,onRender:o,$slots:s}=this;return o==null||o(),C("div",{ref:"selfRef",tabindex:0,class:[`${n}-date-panel`,`${n}-date-panel--date`,!this.panel&&`${n}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},C("div",{class:`${n}-date-panel-calendar`},C("div",{class:`${n}-date-panel-month`},C("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.prevYear},Wt(s["prev-year"],()=>[C(Fc,null)])),C("div",{class:`${n}-date-panel-month__prev`,onClick:this.prevMonth},Wt(s["prev-month"],()=>[C(Dc,null)])),C(hv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:n,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),C("div",{class:`${n}-date-panel-month__next`,onClick:this.nextMonth},Wt(s["next-month"],()=>[C(kc,null)])),C("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.nextYear},Wt(s["next-year"],()=>[C(Mc,null)]))),C("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(l=>C("div",{key:l,class:`${n}-date-panel-weekdays__day`},l))),C("div",{class:`${n}-date-panel-dates`},this.dateArray.map((l,u)=>C("div",{"data-n-date":!0,key:u,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--current`]:l.isCurrentDate,[`${n}-date-panel-date--selected`]:l.selected,[`${n}-date-panel-date--excluded`]:!l.inCurrentMonth,[`${n}-date-panel-date--disabled`]:this.mergedIsDateDisabled(l.ts)}],onClick:()=>this.handleDateClick(l)},C("div",{class:`${n}-date-panel-date__trigger`}),l.dateObject.date,l.isCurrentDate?C("div",{class:`${n}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?C("div",{class:`${n}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?C("div",{class:`${n}-date-panel-actions`},C("div",{class:`${n}-date-panel-actions__prefix`},i&&Object.keys(i).map(l=>{const u=i[l];return Array.isArray(u)?null:C(Vs,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(u)},onClick:()=>{this.handleSingleShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),C("div",{class:`${n}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?C(on,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((r=this.actions)===null||r===void 0)&&r.includes("now")?C(on,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,C(Jc,{onFocus:this.handleFocusDetectorFocus}))}}),K2e=ge({name:"DateRangePanel",props:Vk,setup(e){return Wk(e,"daterange")},render(){var e,t,r;const{mergedClsPrefix:n,mergedTheme:a,shortcuts:i,onRender:o,$slots:s}=this;return o==null||o(),C("div",{ref:"selfRef",tabindex:0,class:[`${n}-date-panel`,`${n}-date-panel--daterange`,!this.panel&&`${n}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},C("div",{ref:"startDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--start`},C("div",{class:`${n}-date-panel-month`},C("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},Wt(s["prev-year"],()=>[C(Fc,null)])),C("div",{class:`${n}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},Wt(s["prev-month"],()=>[C(Dc,null)])),C(hv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:n,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),C("div",{class:`${n}-date-panel-month__next`,onClick:this.startCalendarNextMonth},Wt(s["next-month"],()=>[C(kc,null)])),C("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},Wt(s["next-year"],()=>[C(Mc,null)]))),C("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(l=>C("div",{key:l,class:`${n}-date-panel-weekdays__day`},l))),C("div",{class:`${n}-date-panel__divider`}),C("div",{class:`${n}-date-panel-dates`},this.startDateArray.map((l,u)=>C("div",{"data-n-date":!0,key:u,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--excluded`]:!l.inCurrentMonth,[`${n}-date-panel-date--current`]:l.isCurrentDate,[`${n}-date-panel-date--selected`]:l.selected,[`${n}-date-panel-date--covered`]:l.inSpan,[`${n}-date-panel-date--start`]:l.startOfSpan,[`${n}-date-panel-date--end`]:l.endOfSpan,[`${n}-date-panel-date--disabled`]:this.mergedIsDateDisabled(l.ts)}],onClick:()=>this.handleDateClick(l),onMouseenter:()=>this.handleDateMouseEnter(l)},C("div",{class:`${n}-date-panel-date__trigger`}),l.dateObject.date,l.isCurrentDate?C("div",{class:`${n}-date-panel-date__sup`}):null)))),C("div",{class:`${n}-date-panel__vertical-divider`}),C("div",{ref:"endDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--end`},C("div",{class:`${n}-date-panel-month`},C("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},Wt(s["prev-year"],()=>[C(Fc,null)])),C("div",{class:`${n}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},Wt(s["prev-month"],()=>[C(Dc,null)])),C(hv,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:n,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),C("div",{class:`${n}-date-panel-month__next`,onClick:this.endCalendarNextMonth},Wt(s["next-month"],()=>[C(kc,null)])),C("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},Wt(s["next-year"],()=>[C(Mc,null)]))),C("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(l=>C("div",{key:l,class:`${n}-date-panel-weekdays__day`},l))),C("div",{class:`${n}-date-panel__divider`}),C("div",{class:`${n}-date-panel-dates`},this.endDateArray.map((l,u)=>C("div",{"data-n-date":!0,key:u,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--excluded`]:!l.inCurrentMonth,[`${n}-date-panel-date--current`]:l.isCurrentDate,[`${n}-date-panel-date--selected`]:l.selected,[`${n}-date-panel-date--covered`]:l.inSpan,[`${n}-date-panel-date--start`]:l.startOfSpan,[`${n}-date-panel-date--end`]:l.endOfSpan,[`${n}-date-panel-date--disabled`]:this.mergedIsDateDisabled(l.ts)}],onClick:()=>this.handleDateClick(l),onMouseenter:()=>this.handleDateMouseEnter(l)},C("div",{class:`${n}-date-panel-date__trigger`}),l.dateObject.date,l.isCurrentDate?C("div",{class:`${n}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?C("div",{class:`${n}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?C("div",{class:`${n}-date-panel-actions`},C("div",{class:`${n}-date-panel-actions__prefix`},i&&Object.keys(i).map(l=>{const u=i[l];return Array.isArray(u)||typeof u=="function"?C(Vs,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l}):null})),C("div",{class:`${n}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?C(on,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?C(on,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,C(Jc,{onFocus:this.handleFocusDetectorFocus}))}}),j2e=ge({name:"MonthRangePanel",props:Object.assign(Object.assign({},Vk),{type:{type:String,required:!0}}),setup(e){const t=Wk(e,e.type),r=(n,a,i,o)=>{const{handleColItemClick:s}=t,l=!1;return C("div",{"data-n-date":!0,key:a,class:[`${i}-date-panel-month-calendar__picker-col-item`,{[`${i}-date-panel-month-calendar__picker-col-item--current`]:n.isCurrent,[`${i}-date-panel-month-calendar__picker-col-item--selected`]:n.selected,[`${i}-date-panel-month-calendar__picker-col-item--disabled`]:l}],onClick:()=>{s(n,o)}},n.type==="month"?n.dateObject.month+1:n.type==="quarter"?`Q${n.dateObject.quarter}`:n.dateObject.year)};return Ar(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:r})},render(){var e,t,r;const{mergedClsPrefix:n,mergedTheme:a,shortcuts:i,type:o,renderItem:s,onRender:l}=this;return l==null||l(),C("div",{ref:"selfRef",tabindex:0,class:[`${n}-date-panel`,`${n}-date-panel--daterange`,!this.panel&&`${n}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},C("div",{ref:"startDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--start`},C("div",{class:`${n}-date-panel-month-calendar`},C(Un,{ref:"startYearScrollbarRef",class:`${n}-date-panel-month-calendar__picker-col`,theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>C(cv,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Wf,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:u,index:c})=>s(u,c,n,"start")})}),o==="monthrange"||o==="quarterrange"?C("div",{class:`${n}-date-panel-month-calendar__picker-col`},C(Un,{ref:"startMonthScrollbarRef",theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar},{default:()=>[(o==="monthrange"?this.startMonthArray:this.startQuarterArray).map((u,c)=>s(u,c,n,"start")),o==="monthrange"&&C("div",{class:`${n}-date-panel-month-calendar__padding`})]})):null)),C("div",{class:`${n}-date-panel__vertical-divider`}),C("div",{ref:"endDatesElRef",class:`${n}-date-panel-calendar ${n}-date-panel-calendar--end`},C("div",{class:`${n}-date-panel-month-calendar`},C(Un,{ref:"endYearScrollbarRef",class:`${n}-date-panel-month-calendar__picker-col`,theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>C(cv,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Wf,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:u,index:c})=>s(u,c,n,"end")})}),o==="monthrange"||o==="quarterrange"?C("div",{class:`${n}-date-panel-month-calendar__picker-col`},C(Un,{ref:"endMonthScrollbarRef",theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar},{default:()=>[(o==="monthrange"?this.endMonthArray:this.endQuarterArray).map((u,c)=>s(u,c,n,"end")),o==="monthrange"&&C("div",{class:`${n}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?C("div",{class:`${n}-date-panel-footer`},Qm(this.datePickerSlots,"footer")):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?C("div",{class:`${n}-date-panel-actions`},C("div",{class:`${n}-date-panel-actions__prefix`},i&&Object.keys(i).map(u=>{const c=i[u];return Array.isArray(c)||typeof c=="function"?C(Vs,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>u}):null})),C("div",{class:`${n}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?C(Vs,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?C(Vs,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,C(Jc,{onFocus:this.handleFocusDetectorFocus}))}}),Y2e=N([M("date-picker",`
|
|
position: relative;
|
|
z-index: auto;
|
|
`,[M("date-picker-icon",`
|
|
color: var(--n-icon-color-override);
|
|
transition: color .3s var(--n-bezier);
|
|
`),M("icon",`
|
|
color: var(--n-icon-color-override);
|
|
transition: color .3s var(--n-bezier);
|
|
`),j("disabled",[M("date-picker-icon",`
|
|
color: var(--n-icon-color-disabled-override);
|
|
`),M("icon",`
|
|
color: var(--n-icon-color-disabled-override);
|
|
`)])]),M("date-panel",`
|
|
width: fit-content;
|
|
outline: none;
|
|
margin: 4px 0;
|
|
display: grid;
|
|
grid-template-columns: 0fr;
|
|
border-radius: var(--n-panel-border-radius);
|
|
background-color: var(--n-panel-color);
|
|
color: var(--n-panel-text-color);
|
|
`,[gi(),j("shadow",`
|
|
box-shadow: var(--n-panel-box-shadow);
|
|
`),M("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[j("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),M("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[G("picker-col",`
|
|
min-width: var(--n-scroll-item-width);
|
|
height: calc(var(--n-scroll-item-height) * 6);
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`,[N("&:first-child",`
|
|
min-width: calc(var(--n-scroll-item-width) + 4px);
|
|
`,[G("picker-col-item",[N("&::before","left: 4px;")])]),G("padding",`
|
|
height: calc(var(--n-scroll-item-height) * 5)
|
|
`)]),G("picker-col-item",`
|
|
z-index: 0;
|
|
cursor: pointer;
|
|
height: var(--n-scroll-item-height);
|
|
box-sizing: border-box;
|
|
padding-top: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
background: #0000;
|
|
color: var(--n-item-text-color);
|
|
`,[N("&::before",`
|
|
z-index: -1;
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 4px;
|
|
top: 4px;
|
|
bottom: 0;
|
|
border-radius: var(--n-scroll-item-border-radius);
|
|
transition:
|
|
background-color .3s var(--n-bezier);
|
|
`),Nt("disabled",[N("&:hover::before",`
|
|
background-color: var(--n-item-color-hover);
|
|
`),j("selected",`
|
|
color: var(--n-item-color-active);
|
|
`,[N("&::before","background-color: var(--n-item-color-hover);")])]),j("disabled",`
|
|
color: var(--n-item-text-color-disabled);
|
|
cursor: not-allowed;
|
|
`,[j("selected",[N("&::before",`
|
|
background-color: var(--n-item-color-disabled);
|
|
`)])])])]),j("date",{gridTemplateAreas:`
|
|
"left-calendar"
|
|
"footer"
|
|
"action"
|
|
`}),j("daterange",{gridTemplateAreas:`
|
|
"left-calendar divider right-calendar"
|
|
"footer footer footer"
|
|
"action action action"
|
|
`}),j("datetime",{gridTemplateAreas:`
|
|
"header"
|
|
"left-calendar"
|
|
"footer"
|
|
"action"
|
|
`}),j("datetimerange",{gridTemplateAreas:`
|
|
"header header header"
|
|
"left-calendar divider right-calendar"
|
|
"footer footer footer"
|
|
"action action action"
|
|
`}),j("month",{gridTemplateAreas:`
|
|
"left-calendar"
|
|
"footer"
|
|
"action"
|
|
`}),M("date-panel-footer",{gridArea:"footer"}),M("date-panel-actions",{gridArea:"action"}),M("date-panel-header",{gridArea:"header"}),M("date-panel-header",`
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
align-items: center;
|
|
padding: var(--n-panel-header-padding);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid var(--n-panel-header-divider-color);
|
|
`,[N(">",[N("*:not(:last-child)",{marginRight:"10px"}),N("*",{flex:1,width:0}),M("time-picker",{zIndex:1})])]),M("date-panel-month",`
|
|
box-sizing: border-box;
|
|
display: grid;
|
|
grid-template-columns: var(--n-calendar-title-grid-template-columns);
|
|
align-items: center;
|
|
justify-items: center;
|
|
padding: var(--n-calendar-title-padding);
|
|
height: var(--n-calendar-title-height);
|
|
`,[G("prev, next, fast-prev, fast-next",`
|
|
line-height: 0;
|
|
cursor: pointer;
|
|
width: var(--n-arrow-size);
|
|
height: var(--n-arrow-size);
|
|
color: var(--n-arrow-color);
|
|
`),G("month-year",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
flex-grow: 1;
|
|
position: relative;
|
|
`,[G("text",`
|
|
font-size: var(--n-calendar-title-font-size);
|
|
line-height: var(--n-calendar-title-font-size);
|
|
font-weight: var(--n-calendar-title-font-weight);
|
|
padding: 6px 8px;
|
|
text-align: center;
|
|
color: var(--n-calendar-title-text-color);
|
|
cursor: pointer;
|
|
transition: background-color .3s var(--n-bezier);
|
|
border-radius: var(--n-panel-border-radius);
|
|
`,[j("active",`
|
|
background-color: var(--n-calendar-title-color-hover);
|
|
`),N("&:hover",`
|
|
background-color: var(--n-calendar-title-color-hover);
|
|
`)])])]),M("date-panel-weekdays",`
|
|
display: grid;
|
|
margin: auto;
|
|
grid-template-columns: repeat(7, var(--n-item-cell-width));
|
|
grid-template-rows: repeat(1, var(--n-item-cell-height));
|
|
align-items: center;
|
|
justify-items: center;
|
|
margin-bottom: 4px;
|
|
border-bottom: 1px solid var(--n-calendar-days-divider-color);
|
|
`,[G("day",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
line-height: 15px;
|
|
width: var(--n-item-size);
|
|
text-align: center;
|
|
font-size: var(--n-calendar-days-font-size);
|
|
color: var(--n-item-text-color);
|
|
`)]),M("date-panel-dates",`
|
|
margin: auto;
|
|
display: grid;
|
|
grid-template-columns: repeat(7, var(--n-item-cell-width));
|
|
grid-template-rows: repeat(6, var(--n-item-cell-height));
|
|
align-items: center;
|
|
justify-items: center;
|
|
flex-wrap: wrap;
|
|
`,[M("date-panel-date",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
position: relative;
|
|
width: var(--n-item-size);
|
|
height: var(--n-item-size);
|
|
line-height: var(--n-item-size);
|
|
text-align: center;
|
|
font-size: var(--n-item-font-size);
|
|
border-radius: var(--n-item-border-radius);
|
|
z-index: 0;
|
|
cursor: pointer;
|
|
transition:
|
|
background-color .2s var(--n-bezier),
|
|
color .2s var(--n-bezier);
|
|
`,[G("trigger",`
|
|
position: absolute;
|
|
left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2);
|
|
top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2);
|
|
width: var(--n-item-cell-width);
|
|
height: var(--n-item-cell-height);
|
|
`),Nt("disabled",[Nt("selected",[N("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),j("current",[G("sup",`
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
content: "";
|
|
height: 4px;
|
|
width: 4px;
|
|
border-radius: 2px;
|
|
background-color: var(--n-item-color-active);
|
|
transition:
|
|
background-color .2s var(--n-bezier);
|
|
`)]),N("&::after",`
|
|
content: "";
|
|
z-index: -1;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
border-radius: inherit;
|
|
transition: background-color .3s var(--n-bezier);
|
|
`),j("covered, start, end",[Nt("excluded",[N("&::before",`
|
|
content: "";
|
|
z-index: -2;
|
|
position: absolute;
|
|
left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
|
|
right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
|
|
top: 0;
|
|
bottom: 0;
|
|
background-color: var(--n-item-color-included);
|
|
`),N("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),N("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),j("selected",{color:"var(--n-item-text-color-active)"},[N("&::after",{backgroundColor:"var(--n-item-color-active)"}),j("start",[N("&::before",{left:"50%"})]),j("end",[N("&::before",{right:"50%"})]),G("sup",{backgroundColor:"var(--n-panel-color)"})]),j("excluded",{color:"var(--n-item-text-color-disabled)"},[j("selected",[N("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),j("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[j("covered",[N("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),j("selected",[N("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),N("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),G("vertical-divider",`
|
|
grid-area: divider;
|
|
height: 100%;
|
|
width: 1px;
|
|
background-color: var(--n-calendar-divider-color);
|
|
`),M("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),M("date-panel-actions",`
|
|
flex: 1;
|
|
padding: var(--n-panel-action-padding);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
border-top: 1px solid var(--n-panel-action-divider-color);
|
|
`,[G("prefix, suffix",`
|
|
display: flex;
|
|
margin-bottom: -8px;
|
|
`),G("suffix",`
|
|
align-self: flex-end;
|
|
`),G("prefix",`
|
|
flex-wrap: wrap;
|
|
`),M("button",`
|
|
margin-bottom: 8px;
|
|
`,[N("&:not(:last-child)",`
|
|
margin-right: 8px;
|
|
`)])])]),N("[data-n-date].transition-disabled",{transition:"none !important"},[N("&::before, &::after",{transition:"none !important"})])]);const X2e=Object.assign(Object.assign({},Fe.props),{to:Dn.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]});var q2e=ge({name:"DatePicker",props:X2e,setup(e,{slots:t}){var r;const{localeRef:n,dateLocaleRef:a}=Io("DatePicker"),i=bi(e),{mergedSizeRef:o,mergedDisabledRef:s,mergedStatusRef:l}=i,{mergedComponentPropsRef:u,mergedClsPrefixRef:c,mergedBorderedRef:d,namespaceRef:f,inlineThemeDisabled:A}=et(e),h=X(null),v=X(null),p=X(null),g=X(!1),m=Ie(e,"show"),y=Sr(m,g),b=L(()=>({locale:a.value.locale})),w=L(()=>{const{format:be}=e;if(be)return be;switch(e.type){case"date":case"daterange":return n.value.dateFormat;case"datetime":case"datetimerange":return n.value.dateTimeFormat;case"year":case"yearrange":return n.value.yearTypeFormat;case"month":case"monthrange":return n.value.monthTypeFormat;case"quarter":case"quarterrange":return n.value.quarterFormat}}),x=L(()=>{var be;return(be=e.valueFormat)!==null&&be!==void 0?be:w.value});function S(be){if(be===null)return null;const{value:Le}=x,{value:je}=b;return Array.isArray(be)?[si(be[0],Le,new Date,je).getTime(),si(be[1],Le,new Date,je).getTime()]:si(be,Le,new Date,je).getTime()}const{defaultFormattedValue:_,defaultValue:B}=e,T=X((r=_!==void 0?S(_):B)!==null&&r!==void 0?r:null),E=L(()=>{const{formattedValue:be}=e;return be!==void 0?S(be):e.value}),I=Sr(E,T),R=X(null);yr(()=>{R.value=I.value});const D=X(""),k=X(""),F=X(""),P=Fe("DatePicker","-date-picker",Y2e,jBe,e,c),O=L(()=>{var be,Le;return((Le=(be=u==null?void 0:u.value)===null||be===void 0?void 0:be.DatePicker)===null||Le===void 0?void 0:Le.timePickerSize)||"small"}),H=L(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=L(()=>{const{placeholder:be}=e;if(be===void 0){const{type:Le}=e;switch(Le){case"date":return n.value.datePlaceholder;case"datetime":return n.value.datetimePlaceholder;case"month":return n.value.monthPlaceholder;case"year":return n.value.yearPlaceholder;case"quarter":return n.value.quarterPlaceholder;default:return""}}else return be}),W=L(()=>e.startPlaceholder===void 0?e.type==="daterange"?n.value.startDatePlaceholder:e.type==="datetimerange"?n.value.startDatetimePlaceholder:e.type==="monthrange"?n.value.startMonthPlaceholder:"":e.startPlaceholder),Z=L(()=>e.endPlaceholder===void 0?e.type==="daterange"?n.value.endDatePlaceholder:e.type==="datetimerange"?n.value.endDatetimePlaceholder:e.type==="monthrange"?n.value.endMonthPlaceholder:"":e.endPlaceholder),ee=L(()=>{const{actions:be,type:Le,clearable:je}=e;if(be===null)return[];if(be!==void 0)return be;const ft=je?["clear"]:[];switch(Le){case"date":return ft.push("now"),ft;case"datetime":return ft.push("now","confirm"),ft;case"daterange":return ft.push("confirm"),ft;case"datetimerange":return ft.push("confirm"),ft;case"month":return ft.push("now","confirm"),ft;case"year":return ft.push("now"),ft;case"quarter":return ft.push("now","confirm"),ft;case"monthrange":case"yearrange":case"quarterrange":return ft.push("confirm"),ft;default:{is("data-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function ae(be){if(be===null)return null;if(Array.isArray(be)){const{value:Le}=x,{value:je}=b;return[nn(be[0],Le,je),nn(be[1],Le,b.value)]}else return nn(be,x.value,b.value)}function ne(be){R.value=be}function le(be,Le){const{"onUpdate:formattedValue":je,onUpdateFormattedValue:ft}=e;je&&Ee(je,be,Le),ft&&Ee(ft,be,Le)}function se(be,Le){const{"onUpdate:value":je,onUpdateValue:ft,onChange:Ce}=e,{nTriggerFormChange:Qe,nTriggerFormInput:me}=i,Ne=ae(be);Le.doConfirm&&ye(be,Ne),ft&&Ee(ft,be,Ne),je&&Ee(je,be,Ne),Ce&&Ee(Ce,be,Ne),T.value=be,le(Ne,be),Qe(),me()}function ce(){const{onClear:be}=e;be==null||be()}function ye(be,Le){const{onConfirm:je}=e;je&&je(be,Le)}function fe(be){const{onFocus:Le}=e,{nTriggerFormFocus:je}=i;Le&&Ee(Le,be),je()}function Q(be){const{onBlur:Le}=e,{nTriggerFormBlur:je}=i;Le&&Ee(Le,be),je()}function J(be){const{"onUpdate:show":Le,onUpdateShow:je}=e;Le&&Ee(Le,be),je&&Ee(je,be),g.value=be}function U(be){be.key==="Escape"&&y.value&&(O0(be),ut({returnFocus:!0}))}function K(be){be.key==="Escape"&&y.value&&O0(be)}function q(){var be;J(!1),(be=p.value)===null||be===void 0||be.deactivate(),ce()}function ie(){var be;(be=p.value)===null||be===void 0||be.deactivate(),ce()}function $(){ut({returnFocus:!0})}function re(be){var Le;y.value&&!(!((Le=v.value)===null||Le===void 0)&&Le.contains(as(be)))&&ut({returnFocus:!1})}function ve(be){ut({returnFocus:!0,disableUpdateOnClose:be})}function he(be,Le){Le?se(be,{doConfirm:!1}):ne(be)}function oe(){const be=R.value;se(Array.isArray(be)?[be[0],be[1]]:be,{doConfirm:!0})}function Y(){const{value:be}=R;H.value?(Array.isArray(be)||be===null)&&pe(be):Array.isArray(be)||te(be)}function te(be){be===null?D.value="":D.value=nn(be,w.value,b.value)}function pe(be){if(be===null)k.value="",F.value="";else{const Le=b.value;k.value=nn(be[0],w.value,Le),F.value=nn(be[1],w.value,Le)}}function de(){y.value||it()}function we(be){var Le;!((Le=h.value)===null||Le===void 0)&&Le.$el.contains(be.relatedTarget)||(Q(be),Y(),ut({returnFocus:!1}))}function De(){s.value||(Y(),ut({returnFocus:!1}))}function ze(be){if(be===""){se(null,{doConfirm:!1});return}const Le=si(be,w.value,new Date,b.value);Ao(Le)?(se(ct(Le),{doConfirm:!1}),Y()):D.value=be}function Xe(be){if(be[0]===""&&be[1]===""){se(null,{doConfirm:!1});return}const[Le,je]=be,ft=si(Le,w.value,new Date,b.value),Ce=si(je,w.value,new Date,b.value);Ao(ft)&&Ao(Ce)?(se([ct(ft),ct(Ce)],{doConfirm:!1}),Y()):[k.value,F.value]=be}function ke(be){s.value||Wi(be,"clear")||y.value||it()}function Ge(be){s.value||fe(be)}function it(){s.value||y.value||J(!0)}function ut({returnFocus:be,disableUpdateOnClose:Le}){var je;y.value&&(J(!1),e.type!=="date"&&e.updateValueOnClose&&!Le&&oe(),be&&((je=p.value)===null||je===void 0||je.focus()))}mt(R,()=>{Y()}),Y(),mt(y,be=>{be||(R.value=I.value)});const Ke=qBe(e,R),xt=ZBe(e,R);Ct(AS,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:c,mergedThemeRef:P,timePickerSizeRef:O,localeRef:n,dateLocaleRef:a,firstDayOfWeekRef:Ie(e,"firstDayOfWeek"),isDateDisabledRef:Ie(e,"isDateDisabled"),rangesRef:Ie(e,"ranges"),timePickerPropsRef:Ie(e,"timePickerProps"),closeOnSelectRef:Ie(e,"closeOnSelect"),updateValueOnCloseRef:Ie(e,"updateValueOnClose")},Ke),xt),{datePickerSlots:t}));const ue={focus:()=>{var be;(be=p.value)===null||be===void 0||be.focus()},blur:()=>{var be;(be=p.value)===null||be===void 0||be.blur()}},Te=L(()=>{const{common:{cubicBezierEaseInOut:be},self:{iconColor:Le,iconColorDisabled:je}}=P.value;return{"--n-bezier":be,"--n-icon-color-override":Le,"--n-icon-color-disabled-override":je}}),He=A?_t("date-picker-trigger",void 0,Te,e):void 0,Je=L(()=>{const{type:be}=e,{common:{cubicBezierEaseInOut:Le},self:{calendarTitleFontSize:je,calendarDaysFontSize:ft,itemFontSize:Ce,itemTextColor:Qe,itemColorDisabled:me,itemColorIncluded:Ne,itemColorHover:lt,itemColorActive:Tt,itemBorderRadius:dt,itemTextColorDisabled:Ae,itemTextColorActive:Re,panelColor:ot,panelTextColor:Ht,arrowColor:_e,calendarTitleTextColor:Oe,panelActionDividerColor:rt,panelHeaderDividerColor:ht,calendarDaysDividerColor:Ft,panelBoxShadow:Hr,panelBorderRadius:Pr,calendarTitleFontWeight:Be,panelExtraFooterPadding:qe,panelActionPadding:vt,itemSize:Jt,itemCellWidth:Lr,itemCellHeight:br,scrollItemWidth:Lo,scrollItemHeight:Br,calendarTitlePadding:dn,calendarTitleHeight:hl,calendarDaysHeight:hu,calendarDaysTextColor:vu,arrowSize:pu,panelHeaderPadding:cd,calendarDividerColor:K_,calendarTitleGridTempateColumns:j_,iconColor:Y_,iconColorDisabled:X_,scrollItemBorderRadius:q_,calendarTitleColorHover:Z_,[Se("calendarLeftPadding",be)]:J_,[Se("calendarRightPadding",be)]:eB}}=P.value;return{"--n-bezier":Le,"--n-panel-border-radius":Pr,"--n-panel-color":ot,"--n-panel-box-shadow":Hr,"--n-panel-text-color":Ht,"--n-panel-header-padding":cd,"--n-panel-header-divider-color":ht,"--n-calendar-left-padding":J_,"--n-calendar-right-padding":eB,"--n-calendar-title-color-hover":Z_,"--n-calendar-title-height":hl,"--n-calendar-title-padding":dn,"--n-calendar-title-font-size":je,"--n-calendar-title-font-weight":Be,"--n-calendar-title-text-color":Oe,"--n-calendar-title-grid-template-columns":j_,"--n-calendar-days-height":hu,"--n-calendar-days-divider-color":Ft,"--n-calendar-days-font-size":ft,"--n-calendar-days-text-color":vu,"--n-calendar-divider-color":K_,"--n-panel-action-padding":vt,"--n-panel-extra-footer-padding":qe,"--n-panel-action-divider-color":rt,"--n-item-font-size":Ce,"--n-item-border-radius":dt,"--n-item-size":Jt,"--n-item-cell-width":Lr,"--n-item-cell-height":br,"--n-item-text-color":Qe,"--n-item-color-included":Ne,"--n-item-color-disabled":me,"--n-item-color-hover":lt,"--n-item-color-active":Tt,"--n-item-text-color-disabled":Ae,"--n-item-text-color-active":Re,"--n-scroll-item-width":Lo,"--n-scroll-item-height":Br,"--n-scroll-item-border-radius":q_,"--n-arrow-size":pu,"--n-arrow-color":_e,"--n-icon-color":Y_,"--n-icon-color-disabled":X_}}),nt=A?_t("date-picker",L(()=>e.type),Je,e):void 0;return Object.assign(Object.assign({},ue),{mergedStatus:l,mergedClsPrefix:c,mergedBordered:d,namespace:f,uncontrolledValue:T,pendingValue:R,panelInstRef:h,triggerElRef:v,inputInstRef:p,isMounted:ji(),displayTime:D,displayStartTime:k,displayEndTime:F,mergedShow:y,adjustedTo:Dn(e),isRange:H,localizedStartPlaceholder:W,localizedEndPlaceholder:Z,mergedSize:o,mergedDisabled:s,localizedPlacehoder:V,isValueInvalid:Ke.isValueInvalidRef,isStartValueInvalid:xt.isStartValueInvalidRef,isEndValueInvalid:xt.isEndValueInvalidRef,handleInputKeydown:K,handleClickOutside:re,handleKeydown:U,handleClear:q,handlePanelClear:ie,handleTriggerClick:ke,handleInputActivate:de,handleInputDeactivate:De,handleInputFocus:Ge,handleInputBlur:we,handlePanelTabOut:$,handlePanelClose:ve,handleRangeUpdateValue:Xe,handleSingleUpdateValue:ze,handlePanelUpdateValue:he,handlePanelConfirm:oe,mergedTheme:P,actions:ee,triggerCssVars:A?void 0:Te,triggerThemeClass:He==null?void 0:He.themeClass,triggerOnRender:He==null?void 0:He.onRender,cssVars:A?void 0:Je,themeClass:nt==null?void 0:nt.themeClass,onRender:nt==null?void 0:nt.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:r,$slots:n}=this,a={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},i=()=>{const{type:s}=this;return s==="datetime"?C(V2e,Object.assign({},a),n):s==="daterange"?C(K2e,Object.assign({},a,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),n):s==="datetimerange"?C(W2e,Object.assign({},a,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),n):s==="month"||s==="year"||s==="quarter"?C(pY,Object.assign({},a,{type:s,key:s})):s==="monthrange"||s==="yearrange"||s==="quarterrange"?C(j2e,Object.assign({},a,{type:s})):C(G2e,Object.assign({},a),n)};if(this.panel)return i();t==null||t();const o={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return C("div",{ref:"triggerElRef",class:[`${r}-date-picker`,this.mergedDisabled&&`${r}-date-picker--disabled`,this.isRange&&`${r}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},C(jc,null,{default:()=>[C(Yc,null,{default:()=>this.isRange?C(os,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},o),{separator:()=>this.separator===void 0?Wt(n.separator,()=>[C($t,{clsPrefix:r,class:`${r}-date-picker-icon`},{default:()=>C(obe,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>Wt(n["date-icon"],()=>[C($t,{clsPrefix:r,class:`${r}-date-picker-icon`},{default:()=>C(f3,null)})])}):C(os,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},o),{[e?"clear-icon-placeholder":"suffix"]:()=>C($t,{clsPrefix:r,class:`${r}-date-picker-icon`},{default:()=>Wt(n["date-icon"],()=>[C(f3,null)])})})}),C(qc,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Dn.tdkey,placement:this.placement},{default:()=>C(zr,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?jr(i(),[[Js,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),Z2e={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};const gY=e=>{const{tableHeaderColor:t,textColor2:r,textColor1:n,cardColor:a,modalColor:i,popoverColor:o,dividerColor:s,borderRadius:l,fontWeightStrong:u,lineHeight:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:A}=e;return Object.assign(Object.assign({},Z2e),{lineHeight:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:A,titleTextColor:n,thColor:Et(a,t),thColorModal:Et(i,t),thColorPopover:Et(o,t),thTextColor:n,thFontWeight:u,tdTextColor:r,tdColor:a,tdColorModal:i,tdColorPopover:o,borderColor:Et(a,s),borderColorModal:Et(i,s),borderColorPopover:Et(o,s),borderRadius:l})},J2e={name:"Descriptions",common:Dt,self:gY};var eTe=J2e;const tTe={name:"Descriptions",common:st,self:gY};var rTe=tTe;const mY="DESCRIPTION_ITEM_FLAG";function nTe(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[mY]:!1}var aTe=N([M("descriptions",{fontSize:"var(--n-font-size)"},[M("descriptions-separator",`
|
|
display: inline-block;
|
|
margin: 0 8px 0 2px;
|
|
`),M("descriptions-table-wrapper",[M("descriptions-table",[M("descriptions-table-row",[M("descriptions-table-header",{padding:"var(--n-th-padding)"}),M("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),Nt("bordered",[M("descriptions-table-wrapper",[M("descriptions-table",[M("descriptions-table-row",[N("&:last-child",[M("descriptions-table-content",{paddingBottom:0})])])])])]),j("left-label-placement",[M("descriptions-table-content",[N("> *",{verticalAlign:"top"})])]),j("left-label-align",[N("th",{textAlign:"left"})]),j("center-label-align",[N("th",{textAlign:"center"})]),j("right-label-align",[N("th",{textAlign:"right"})]),j("bordered",[M("descriptions-table-wrapper",`
|
|
border-radius: var(--n-border-radius);
|
|
overflow: hidden;
|
|
background: var(--n-merged-td-color);
|
|
border: 1px solid var(--n-merged-border-color);
|
|
`,[M("descriptions-table",[M("descriptions-table-row",[N("&:not(:last-child)",[M("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),M("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),M("descriptions-table-header",`
|
|
font-weight: 400;
|
|
background-clip: padding-box;
|
|
background-color: var(--n-merged-th-color);
|
|
`,[N("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),M("descriptions-table-content",[N("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),M("descriptions-header",`
|
|
font-weight: var(--n-th-font-weight);
|
|
font-size: 18px;
|
|
transition: color .3s var(--n-bezier);
|
|
line-height: var(--n-line-height);
|
|
margin-bottom: 16px;
|
|
color: var(--n-title-text-color);
|
|
`),M("descriptions-table-wrapper",`
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`,[M("descriptions-table",`
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
box-sizing: border-box;
|
|
`,[M("descriptions-table-row",`
|
|
box-sizing: border-box;
|
|
transition: border-color .3s var(--n-bezier);
|
|
`,[M("descriptions-table-header",`
|
|
font-weight: var(--n-th-font-weight);
|
|
line-height: var(--n-line-height);
|
|
display: table-cell;
|
|
box-sizing: border-box;
|
|
color: var(--n-th-text-color);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`),M("descriptions-table-content",`
|
|
vertical-align: top;
|
|
line-height: var(--n-line-height);
|
|
display: table-cell;
|
|
box-sizing: border-box;
|
|
color: var(--n-td-text-color);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`,[G("content",`
|
|
transition: color .3s var(--n-bezier);
|
|
display: inline-block;
|
|
color: var(--n-td-text-color);
|
|
`)]),G("label",`
|
|
font-weight: var(--n-th-font-weight);
|
|
transition: color .3s var(--n-bezier);
|
|
display: inline-block;
|
|
margin-right: 14px;
|
|
color: var(--n-th-text-color);
|
|
`)])])])]),M("descriptions-table-wrapper",`
|
|
--n-merged-th-color: var(--n-th-color);
|
|
--n-merged-td-color: var(--n-td-color);
|
|
--n-merged-border-color: var(--n-border-color);
|
|
`),su(M("descriptions-table-wrapper",`
|
|
--n-merged-th-color: var(--n-th-color-modal);
|
|
--n-merged-td-color: var(--n-td-color-modal);
|
|
--n-merged-border-color: var(--n-border-color-modal);
|
|
`)),Kc(M("descriptions-table-wrapper",`
|
|
--n-merged-th-color: var(--n-th-color-popover);
|
|
--n-merged-td-color: var(--n-td-color-popover);
|
|
--n-merged-border-color: var(--n-border-color-popover);
|
|
`))]);const iTe=Object.assign(Object.assign({},Fe.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]});var oTe=ge({name:"Descriptions",props:iTe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Descriptions","-descriptions",aTe,eTe,e,t),a=L(()=>{const{size:o,bordered:s}=e,{common:{cubicBezierEaseInOut:l},self:{titleTextColor:u,thColor:c,thColorModal:d,thColorPopover:f,thTextColor:A,thFontWeight:h,tdTextColor:v,tdColor:p,tdColorModal:g,tdColorPopover:m,borderColor:y,borderColorModal:b,borderColorPopover:w,borderRadius:x,lineHeight:S,[Se("fontSize",o)]:_,[Se(s?"thPaddingBordered":"thPadding",o)]:B,[Se(s?"tdPaddingBordered":"tdPadding",o)]:T}}=n.value;return{"--n-title-text-color":u,"--n-th-padding":B,"--n-td-padding":T,"--n-font-size":_,"--n-bezier":l,"--n-th-font-weight":h,"--n-line-height":S,"--n-th-text-color":A,"--n-td-text-color":v,"--n-th-color":c,"--n-th-color-modal":d,"--n-th-color-popover":f,"--n-td-color":p,"--n-td-color-modal":g,"--n-td-color-popover":m,"--n-border-radius":x,"--n-border-color":y,"--n-border-color-modal":b,"--n-border-color-popover":w}}),i=r?_t("descriptions",L(()=>{let o="";const{size:s,bordered:l}=e;return l&&(o+="a"),o+=s[0],o}),a,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:Ec(e,["columns","column"]),inlineThemeDisabled:r}},render(){const e=this.$slots.default,t=e?go(e()):[];t.length;const{compitableColumn:r,labelPlacement:n,labelAlign:a,size:i,bordered:o,title:s,cssVars:l,mergedClsPrefix:u,separator:c,onRender:d}=this;d==null||d();const f=t.filter(p=>nTe(p)),A={span:0,row:[],secondRow:[],rows:[]},v=f.reduce((p,g,m)=>{const y=g.props||{},b=f.length-1===m,w=["label"in y?y.label:Y5(g,"label")],x=[Y5(g)],S=y.span||1,_=p.span;p.span+=S;const B=y.labelStyle||y["label-style"]||this.labelStyle,T=y.contentStyle||y["content-style"]||this.contentStyle;if(n==="left")o?p.row.push(C("th",{class:`${u}-descriptions-table-header`,colspan:1,style:B},w),C("td",{class:`${u}-descriptions-table-content`,colspan:b?(r-_)*2+1:S*2-1,style:T},x)):p.row.push(C("td",{class:`${u}-descriptions-table-content`,colspan:b?(r-_)*2:S*2},C("span",{class:`${u}-descriptions-table-content__label`,style:B},[...w,c&&C("span",{class:`${u}-descriptions-separator`},c)]),C("span",{class:`${u}-descriptions-table-content__content`,style:T},x)));else{const E=b?(r-_)*2:S*2;p.row.push(C("th",{class:`${u}-descriptions-table-header`,colspan:E,style:B},w)),p.secondRow.push(C("td",{class:`${u}-descriptions-table-content`,colspan:E,style:T},x))}return(p.span>=r||b)&&(p.span=0,p.row.length&&(p.rows.push(p.row),p.row=[]),n!=="left"&&p.secondRow.length&&(p.rows.push(p.secondRow),p.secondRow=[])),p},A).rows.map(p=>C("tr",{class:`${u}-descriptions-table-row`},p));return C("div",{style:l,class:[`${u}-descriptions`,this.themeClass,`${u}-descriptions--${n}-label-placement`,`${u}-descriptions--${a}-label-align`,`${u}-descriptions--${i}-size`,o&&`${u}-descriptions--bordered`]},s||this.$slots.header?C("div",{class:`${u}-descriptions-header`},s||Vm(this,"header")):null,C("div",{class:`${u}-descriptions-table-wrapper`},C("table",{class:`${u}-descriptions-table`},C("tbody",null,v))))}});const sTe={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]};var lTe=ge({name:"DescriptionsItem",[mY]:!0,props:sTe,render(){return null}}),uTe={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};const yY=e=>{const{textColor1:t,textColor2:r,modalColor:n,closeIconColor:a,closeIconColorHover:i,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:l,infoColor:u,successColor:c,warningColor:d,errorColor:f,primaryColor:A,dividerColor:h,borderRadius:v,fontWeightStrong:p,lineHeight:g,fontSize:m}=e;return Object.assign(Object.assign({},uTe),{fontSize:m,lineHeight:g,border:`1px solid ${h}`,titleTextColor:t,textColor:r,color:n,closeColorHover:s,closeColorPressed:l,closeIconColor:a,closeIconColorHover:i,closeIconColorPressed:o,closeBorderRadius:v,iconColor:A,iconColorInfo:u,iconColorSuccess:c,iconColorWarning:d,iconColorError:f,borderRadius:v,titleFontWeight:p})},cTe={name:"Dialog",common:Dt,peers:{Button:ed},self:yY};var bY=cTe;const dTe={name:"Dialog",common:st,peers:{Button:Ci},self:yY};var xY=dTe;const vS={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},wY=Zs(vS);var fTe=N([M("dialog",`
|
|
word-break: break-word;
|
|
line-height: var(--n-line-height);
|
|
position: relative;
|
|
background: var(--n-color);
|
|
color: var(--n-text-color);
|
|
box-sizing: border-box;
|
|
margin: auto;
|
|
border-radius: var(--n-border-radius);
|
|
padding: var(--n-padding);
|
|
transition:
|
|
border-color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`,[G("icon",{color:"var(--n-icon-color)"}),j("bordered",{border:"var(--n-border)"}),j("icon-top",[G("close",{margin:"var(--n-close-margin)"}),G("icon",{margin:"var(--n-icon-margin)"}),G("content",{textAlign:"center"}),G("title",{justifyContent:"center"}),G("action",{justifyContent:"center"})]),j("icon-left",[G("icon",{margin:"var(--n-icon-margin)"}),j("closable",[G("title",`
|
|
padding-right: calc(var(--n-close-size) + 6px);
|
|
`)])]),G("close",`
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
margin: var(--n-close-margin);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
z-index: 1;
|
|
`),G("content",`
|
|
font-size: var(--n-font-size);
|
|
margin: var(--n-content-margin);
|
|
position: relative;
|
|
word-break: break-word;
|
|
`,[j("last","margin-bottom: 0;")]),G("action",`
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
`,[N("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),G("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),G("title",`
|
|
transition: color .3s var(--n-bezier);
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: var(--n-title-font-size);
|
|
font-weight: var(--n-title-font-weight);
|
|
color: var(--n-title-text-color);
|
|
`),M("dialog-icon-container",{display:"flex",justifyContent:"center"})]),su(M("dialog",`
|
|
width: 446px;
|
|
max-width: calc(100vw - 32px);
|
|
`)),M("dialog",[KW(`
|
|
width: 446px;
|
|
max-width: calc(100vw - 32px);
|
|
`)])]);const ATe={default:()=>C(Pc,null),info:()=>C(Pc,null),success:()=>C(cA,null),warning:()=>C(dA,null),error:()=>C(uA,null)},CY=ge({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Fe.props),vS),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:n}=et(e),a=L(()=>{var d,f;const{iconPlacement:A}=e;return A||((f=(d=t==null?void 0:t.value)===null||d===void 0?void 0:d.Dialog)===null||f===void 0?void 0:f.iconPlacement)||"left"});function i(d){const{onPositiveClick:f}=e;f&&f(d)}function o(d){const{onNegativeClick:f}=e;f&&f(d)}function s(){const{onClose:d}=e;d&&d()}const l=Fe("Dialog","-dialog",fTe,bY,e,r),u=L(()=>{const{type:d}=e,f=a.value,{common:{cubicBezierEaseInOut:A},self:{fontSize:h,lineHeight:v,border:p,titleTextColor:g,textColor:m,color:y,closeBorderRadius:b,closeColorHover:w,closeColorPressed:x,closeIconColor:S,closeIconColorHover:_,closeIconColorPressed:B,closeIconSize:T,borderRadius:E,titleFontWeight:I,titleFontSize:R,padding:D,iconSize:k,actionSpace:F,contentMargin:P,closeSize:O,[f==="top"?"iconMarginIconTop":"iconMargin"]:H,[f==="top"?"closeMarginIconTop":"closeMargin"]:V,[Se("iconColor",d)]:W}}=l.value;return{"--n-font-size":h,"--n-icon-color":W,"--n-bezier":A,"--n-close-margin":V,"--n-icon-margin":H,"--n-icon-size":k,"--n-close-size":O,"--n-close-icon-size":T,"--n-close-border-radius":b,"--n-close-color-hover":w,"--n-close-color-pressed":x,"--n-close-icon-color":S,"--n-close-icon-color-hover":_,"--n-close-icon-color-pressed":B,"--n-color":y,"--n-text-color":m,"--n-border-radius":E,"--n-padding":D,"--n-line-height":v,"--n-border":p,"--n-content-margin":P,"--n-title-font-size":R,"--n-title-font-weight":I,"--n-title-text-color":g,"--n-action-space":F}}),c=n?_t("dialog",L(()=>`${e.type[0]}${a.value[0]}`),u,e):void 0;return{mergedClsPrefix:r,mergedIconPlacement:a,mergedTheme:l,handlePositiveClick:i,handleNegativeClick:o,handleCloseClick:s,cssVars:n?void 0:u,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:r,cssVars:n,closable:a,showIcon:i,title:o,content:s,action:l,negativeText:u,positiveText:c,positiveButtonProps:d,negativeButtonProps:f,handlePositiveClick:A,handleNegativeClick:h,mergedTheme:v,loading:p,type:g,mergedClsPrefix:m}=this;(e=this.onRender)===null||e===void 0||e.call(this);const y=i?C($t,{clsPrefix:m,class:`${m}-dialog__icon`},{default:()=>or(this.$slots.icon,w=>w||(this.icon?Mr(this.icon):ATe[this.type]()))}):null,b=or(this.$slots.action,w=>w||c||u||l?C("div",{class:`${m}-dialog__action`},w||(l?[Mr(l)]:[this.negativeText&&C(on,Object.assign({theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,ghost:!0,size:"small",onClick:h},f),{default:()=>Mr(this.negativeText)}),this.positiveText&&C(on,Object.assign({theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:"small",type:g==="default"?"primary":g,disabled:p,loading:p,onClick:A},d),{default:()=>Mr(this.positiveText)})])):null);return C("div",{class:[`${m}-dialog`,this.themeClass,this.closable&&`${m}-dialog--closable`,`${m}-dialog--icon-${r}`,t&&`${m}-dialog--bordered`],style:n,role:"dialog"},a?C(Zc,{clsPrefix:m,class:`${m}-dialog__close`,onClick:this.handleCloseClick}):null,i&&r==="top"?C("div",{class:`${m}-dialog-icon-container`},y):null,C("div",{class:`${m}-dialog__title`},i&&r==="left"?y:null,Wt(this.$slots.header,()=>[Mr(o)])),C("div",{class:[`${m}-dialog__content`,b?"":`${m}-dialog__content--last`]},Wt(this.$slots.default,()=>[Mr(s)])),b)}}),SY="n-dialog-provider",_Y="n-dialog-api",hTe="n-dialog-reactive-list",BY=e=>{const{modalColor:t,textColor2:r,boxShadow3:n}=e;return{color:t,textColor:r,boxShadow:n}},vTe={name:"Modal",common:Dt,peers:{Scrollbar:ul,Dialog:bY,Card:hj},self:BY};var pTe=vTe;const gTe={name:"Modal",common:st,peers:{Scrollbar:wi,Dialog:xY,Card:vj},self:BY};var mTe=gTe;const Gk=Object.assign(Object.assign({},Tk),vS),yTe=Zs(Gk);var bTe=ge({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},Gk),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=X(null),r=X(null),n=X(e.show),a=X(null),i=X(null);mt(Ie(e,"show"),p=>{p&&(n.value=!0)}),gG(L(()=>e.blockScroll&&n.value));const o=We(tG);function s(){if(o.transformOriginRef.value==="center")return"";const{value:p}=a,{value:g}=i;if(p===null||g===null)return"";if(r.value){const m=r.value.containerScrollTop;return`${p}px ${g+m}px`}return""}function l(p){if(o.transformOriginRef.value==="center")return;const g=o.getMousePosition();if(!g||!r.value)return;const m=r.value.containerScrollTop,{offsetLeft:y,offsetTop:b}=p;if(g){const w=g.y,x=g.x;a.value=-(y-x),i.value=-(b-w-m)}p.style.transformOrigin=s()}function u(p){ar(()=>{l(p)})}function c(p){p.style.transformOrigin=s(),e.onBeforeLeave()}function d(){n.value=!1,a.value=null,i.value=null,e.onAfterLeave()}function f(){const{onClose:p}=e;p&&p()}function A(){e.onNegativeClick()}function h(){e.onPositiveClick()}const v=X(null);return mt(v,p=>{p&&ar(()=>{const g=p.el;g&&t.value!==g&&(t.value=g)})}),Ct(Wm,t),Ct(Gm,null),Ct($v,null),{mergedTheme:o.mergedThemeRef,appear:o.appearRef,isMounted:o.isMountedRef,mergedClsPrefix:o.mergedClsPrefixRef,bodyRef:t,scrollbarRef:r,displayed:n,childNodeRef:v,handlePositiveClick:h,handleNegativeClick:A,handleCloseClick:f,handleAfterLeave:d,handleBeforeLeave:c,handleEnter:u}},render(){const{$slots:e,$attrs:t,handleEnter:r,handleAfterLeave:n,handleBeforeLeave:a,preset:i,mergedClsPrefix:o}=this;let s=null;if(!i){if(s=TI(e),!s){is("modal","default slot is empty");return}s=wa(s),s.props=An({class:`${o}-modal`},t,s.props||{})}return this.displayDirective==="show"||this.displayed||this.show?jr(C("div",{role:"none",class:`${o}-modal-body-wrapper`},C(Un,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${o}-modal-scroll-content`},{default:()=>{var l;return[(l=this.renderMask)===null||l===void 0?void 0:l.call(this),C(ak,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var u;return C(zr,{name:"fade-in-scale-up-transition",appear:(u=this.appear)!==null&&u!==void 0?u:this.isMounted,onEnter:r,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:a},{default:()=>{const c=[[Bn,this.show]],{onClickoutside:d}=this;return d&&c.push([Js,this.onClickoutside,void 0,{capture:!0}]),jr(this.preset==="confirm"||this.preset==="dialog"?C(CY,Object.assign({},this.$attrs,{class:[`${o}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},zi(this.$props,wY),{"aria-modal":"true"}),e):this.preset==="card"?C(pj,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${o}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},zi(this.$props,GCe),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=s,c)}})}})]}})),[[Bn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),xTe=N([M("modal-container",`
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
height: 0;
|
|
width: 0;
|
|
display: flex;
|
|
`),M("modal-mask",`
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, .4);
|
|
`,[Vf({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),M("modal-body-wrapper",`
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
overflow: visible;
|
|
`,[M("modal-scroll-content",`
|
|
min-height: 100%;
|
|
display: flex;
|
|
position: relative;
|
|
`)]),M("modal",`
|
|
position: relative;
|
|
align-self: center;
|
|
color: var(--n-text-color);
|
|
margin: auto;
|
|
box-shadow: var(--n-box-shadow);
|
|
`,[gi({duration:".25s",enterScale:".5"})])]);const wTe=Object.assign(Object.assign(Object.assign(Object.assign({},Fe.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),Gk),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function});var TY=ge({name:"Modal",inheritAttrs:!1,props:wTe,setup(e){const t=X(null),{mergedClsPrefixRef:r,namespaceRef:n,inlineThemeDisabled:a}=et(e),i=Fe("Modal","-modal",xTe,pTe,e,r),o=JW(64),s=ZW(),l=ji(),u=e.internalDialog?We(SY,null):null,c=mG();function d(w){const{onUpdateShow:x,"onUpdate:show":S,onHide:_}=e;x&&Ee(x,w),S&&Ee(S,w),_&&!w&&_(w)}function f(){const{onClose:w}=e;w?Promise.resolve(w()).then(x=>{x!==!1&&d(!1)}):d(!1)}function A(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(x=>{x!==!1&&d(!1)}):d(!1)}function h(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(x=>{x!==!1&&d(!1)}):d(!1)}function v(){const{onBeforeLeave:w,onBeforeHide:x}=e;w&&Ee(w),x&&x()}function p(){const{onAfterLeave:w,onAfterHide:x}=e;w&&Ee(w),x&&x()}function g(w){var x;const{onMaskClick:S}=e;S&&S(w),e.maskClosable&&!((x=t.value)===null||x===void 0)&&x.contains(as(w))&&d(!1)}function m(w){var x;(x=e.onEsc)===null||x===void 0||x.call(e),e.show&&e.closeOnEsc&&YW(w)&&!c.value&&d(!1)}Ct(tG,{getMousePosition:()=>{if(u){const{clickedRef:w,clickPositionRef:x}=u;if(w.value&&x.value)return x.value}return o.value?s.value:null},mergedClsPrefixRef:r,mergedThemeRef:i,isMountedRef:l,appearRef:Ie(e,"internalAppear"),transformOriginRef:Ie(e,"transformOrigin")});const y=L(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:x,color:S,textColor:_}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":x,"--n-color":S,"--n-text-color":_}}),b=a?_t("theme-class",void 0,y,e):void 0;return{mergedClsPrefix:r,namespace:n,isMounted:l,containerRef:t,presetProps:L(()=>zi(e,yTe)),handleEsc:m,handleAfterLeave:p,handleClickoutside:g,handleBeforeLeave:v,doUpdateShow:d,handleNegativeClick:h,handlePositiveClick:A,handleCloseClick:f,cssVars:a?void 0:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender}},render(){const{mergedClsPrefix:e}=this;return C(jm,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:r}=this;return jr(C("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},C(bTe,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:r?void 0:this.handleClickoutside,renderMask:r?()=>{var n;return C(zr,{name:"fade-in-transition",key:"mask",appear:(n=this.internalAppear)!==null&&n!==void 0?n:this.isMounted},{default:()=>this.show?C("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Km,{zIndex:this.zIndex,enabled:this.show}]])}})}});const CTe=Object.assign(Object.assign({},vS),{onAfterEnter:Function,onAfterLeave:Function,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),STe=ge({name:"DialogEnvironment",props:Object.assign(Object.assign({},CTe),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=X(!0);function r(){const{onInternalAfterLeave:c,internalKey:d,onAfterLeave:f}=e;c&&c(d),f&&f()}function n(c){const{onPositiveClick:d}=e;d?Promise.resolve(d(c)).then(f=>{f!==!1&&l()}):l()}function a(c){const{onNegativeClick:d}=e;d?Promise.resolve(d(c)).then(f=>{f!==!1&&l()}):l()}function i(){const{onClose:c}=e;c?Promise.resolve(c()).then(d=>{d!==!1&&l()}):l()}function o(c){const{onMaskClick:d,maskClosable:f}=e;d&&(d(c),f&&l())}function s(){const{onEsc:c}=e;c&&c()}function l(){t.value=!1}function u(c){t.value=c}return{show:t,hide:l,handleUpdateShow:u,handleAfterLeave:r,handleCloseClick:i,handleNegativeClick:a,handlePositiveClick:n,handleMaskClick:o,handleEsc:s}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:r,handleCloseClick:n,handleAfterLeave:a,handleMaskClick:i,handleEsc:o,to:s,maskClosable:l,show:u}=this;return C(TY,{show:u,onUpdateShow:t,onMaskClick:i,onEsc:o,to:s,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:a,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,internalAppear:!0,internalDialog:!0},{default:()=>C(CY,Object.assign({},zi(this.$props,wY),{style:this.internalStyle,onClose:n,onNegativeClick:r,onPositiveClick:e}))})}}),_Te={injectionKey:String,to:[String,Object]},EY=ge({name:"DialogProvider",props:_Te,setup(){const e=X([]),t={};function r(s={}){const l=yo(),u=Bo(Object.assign(Object.assign({},s),{key:l,destroy:()=>{t[`n-dialog-${l}`].hide()}}));return e.value.push(u),u}const n=["info","success","warning","error"].map(s=>l=>r(Object.assign(Object.assign({},l),{type:s})));function a(s){const{value:l}=e;l.splice(l.findIndex(u=>u.key===s),1)}function i(){Object.values(t).forEach(s=>s.hide())}const o={create:r,destroyAll:i,info:n[0],success:n[1],warning:n[2],error:n[3]};return Ct(_Y,o),Ct(SY,{clickedRef:JW(64),clickPositionRef:ZW()}),Ct(hTe,e),Object.assign(Object.assign({},o),{dialogList:e,dialogInstRefs:t,handleAfterLeave:a})},render(){var e,t;return C(rr,null,[this.dialogList.map(r=>C(STe,Lv(r,["destroy","style"],{internalStyle:r.style,to:this.to,ref:n=>{n===null?delete this.dialogInstRefs[`n-dialog-${r.key}`]:this.dialogInstRefs[`n-dialog-${r.key}`]=n},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function BTe(){const e=We(_Y,null);return e===null&&Ta("use-dialog","No outer <n-dialog-provider /> founded."),e}const IY=e=>{const{textColor1:t,dividerColor:r,fontWeightStrong:n}=e;return{textColor:t,color:r,fontWeight:n}},TTe={name:"Divider",common:Dt,self:IY};var ETe=TTe;const ITe={name:"Divider",common:st,self:IY};var RTe=ITe,DTe=M("divider",`
|
|
position: relative;
|
|
display: flex;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
font-size: 16px;
|
|
color: var(--n-text-color);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
`,[Nt("vertical",`
|
|
margin-top: 24px;
|
|
margin-bottom: 24px;
|
|
`,[Nt("no-title",`
|
|
display: flex;
|
|
align-items: center;
|
|
`)]),G("title",`
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: 12px;
|
|
margin-right: 12px;
|
|
white-space: nowrap;
|
|
font-weight: var(--n-font-weight);
|
|
`),j("title-position-left",[G("line",[j("left",{width:"28px"})])]),j("title-position-right",[G("line",[j("right",{width:"28px"})])]),j("dashed",[G("line",`
|
|
background-color: #0000;
|
|
height: 0px;
|
|
width: 100%;
|
|
border-style: dashed;
|
|
border-width: 1px 0 0;
|
|
`)]),j("vertical",`
|
|
display: inline-block;
|
|
height: 1em;
|
|
margin: 0 8px;
|
|
vertical-align: middle;
|
|
width: 1px;
|
|
`),G("line",`
|
|
border: none;
|
|
transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
|
|
height: 1px;
|
|
width: 100%;
|
|
margin: 0;
|
|
`),Nt("dashed",[G("line",{backgroundColor:"var(--n-color)"})]),j("dashed",[G("line",{borderColor:"var(--n-color)"})]),j("vertical",{backgroundColor:"var(--n-color)"})]);const FTe=Object.assign(Object.assign({},Fe.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean});var MTe=ge({name:"Divider",props:FTe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Divider","-divider",DTe,ETe,e,t),a=L(()=>{const{common:{cubicBezierEaseInOut:o},self:{color:s,textColor:l,fontWeight:u}}=n.value;return{"--n-bezier":o,"--n-color":s,"--n-text-color":l,"--n-font-weight":u}}),i=r?_t("divider",void 0,a,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:r,vertical:n,dashed:a,cssVars:i,mergedClsPrefix:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),C("div",{role:"separator",class:[`${o}-divider`,this.themeClass,{[`${o}-divider--vertical`]:n,[`${o}-divider--no-title`]:!t.default,[`${o}-divider--dashed`]:a,[`${o}-divider--title-position-${r}`]:t.default&&r}],style:i},n?null:C("div",{class:`${o}-divider__line ${o}-divider__line--left`}),!n&&t.default?C(rr,null,C("div",{class:`${o}-divider__title`},this.$slots),C("div",{class:`${o}-divider__line ${o}-divider__line--right`})):null)}});const RY=e=>{const{modalColor:t,textColor1:r,textColor2:n,boxShadow3:a,lineHeight:i,fontWeightStrong:o,dividerColor:s,closeColorHover:l,closeColorPressed:u,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:A,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:n,titleTextColor:r,titleFontSize:"18px",titleFontWeight:o,boxShadow:a,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:c,closeIconColorHover:d,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:u,closeBorderRadius:A,resizableTriggerColorHover:h}},kTe={name:"Drawer",common:Dt,peers:{Scrollbar:ul},self:RY};var PTe=kTe;const LTe={name:"Drawer",common:st,peers:{Scrollbar:wi},self:RY};var OTe=LTe,$Te=ge({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=X(!!e.show),r=X(null),n=We(tk);let a=0,i="",o=null;const s=X(!1),l=X(!1),u=L(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:c,mergedRtlRef:d}=et(e),f=tn("Drawer",d,c),A=S=>{l.value=!0,a=u.value?S.clientY:S.clientX,i=document.body.style.cursor,document.body.style.cursor=u.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",m),document.body.addEventListener("mouseleave",b),document.body.addEventListener("mouseup",y)},h=()=>{o!==null&&(window.clearTimeout(o),o=null),l.value?s.value=!0:o=window.setTimeout(()=>{s.value=!0},300)},v=()=>{o!==null&&(window.clearTimeout(o),o=null),s.value=!1},{doUpdateHeight:p,doUpdateWidth:g}=n,m=S=>{var _,B;if(l.value)if(u.value){let T=((_=r.value)===null||_===void 0?void 0:_.offsetHeight)||0;const E=a-S.clientY;T+=e.placement==="bottom"?E:-E,p(T),a=S.clientY}else{let T=((B=r.value)===null||B===void 0?void 0:B.offsetWidth)||0;const E=a-S.clientX;T+=e.placement==="right"?E:-E,g(T),a=S.clientX}},y=()=>{l.value&&(a=0,l.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",m),document.body.removeEventListener("mouseup",y),document.body.removeEventListener("mouseleave",b))},b=y;yr(()=>{e.show&&(t.value=!0)}),mt(()=>e.show,S=>{S||y()}),kr(()=>{y()});const w=L(()=>{const{show:S}=e,_=[[Bn,S]];return e.showMask||_.push([Js,e.onClickoutside,void 0,{capture:!0}]),_});function x(){var S;t.value=!1,(S=e.onAfterLeave)===null||S===void 0||S.call(e)}return gG(L(()=>e.blockScroll&&t.value)),Ct(Gm,r),Ct($v,null),Ct(Wm,null),{bodyRef:r,rtlEnabled:f,mergedClsPrefix:n.mergedClsPrefixRef,isMounted:n.isMountedRef,mergedTheme:n.mergedThemeRef,displayed:t,transitionName:L(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:x,bodyDirectives:w,handleMousedownResizeTrigger:A,handleMouseenterResizeTrigger:h,handleMouseleaveResizeTrigger:v,isDragging:l,isHoverOnResizeTrigger:s}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?jr(C("div",{role:"none"},C(ak,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>C(zr,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>jr(C("div",An(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?C("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?C("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):C(Un,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[Bn,this.displayDirective==="if"||this.displayed||this.show]]):null}});const{cubicBezierEaseIn:UTe,cubicBezierEaseOut:HTe}=xi;function zTe({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-right"}={}){return[N(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${UTe}`}),N(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${HTe}`}),N(`&.${r}-transition-enter-to`,{transform:"translateX(0)"}),N(`&.${r}-transition-enter-from`,{transform:"translateX(100%)"}),N(`&.${r}-transition-leave-from`,{transform:"translateX(0)"}),N(`&.${r}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:NTe,cubicBezierEaseOut:QTe}=xi;function VTe({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-left"}={}){return[N(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${NTe}`}),N(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${QTe}`}),N(`&.${r}-transition-enter-to`,{transform:"translateX(0)"}),N(`&.${r}-transition-enter-from`,{transform:"translateX(-100%)"}),N(`&.${r}-transition-leave-from`,{transform:"translateX(0)"}),N(`&.${r}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:WTe,cubicBezierEaseOut:GTe}=xi;function KTe({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-top"}={}){return[N(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${WTe}`}),N(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${GTe}`}),N(`&.${r}-transition-enter-to`,{transform:"translateY(0)"}),N(`&.${r}-transition-enter-from`,{transform:"translateY(-100%)"}),N(`&.${r}-transition-leave-from`,{transform:"translateY(0)"}),N(`&.${r}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:jTe,cubicBezierEaseOut:YTe}=xi;function XTe({duration:e="0.3s",leaveDuration:t="0.2s",name:r="slide-in-from-bottom"}={}){return[N(`&.${r}-transition-leave-active`,{transition:`transform ${t} ${jTe}`}),N(`&.${r}-transition-enter-active`,{transition:`transform ${e} ${YTe}`}),N(`&.${r}-transition-enter-to`,{transform:"translateY(0)"}),N(`&.${r}-transition-enter-from`,{transform:"translateY(100%)"}),N(`&.${r}-transition-leave-from`,{transform:"translateY(0)"}),N(`&.${r}-transition-leave-to`,{transform:"translateY(100%)"})]}var qTe=N([M("drawer",`
|
|
word-break: break-word;
|
|
line-height: var(--n-line-height);
|
|
position: absolute;
|
|
pointer-events: all;
|
|
box-shadow: var(--n-box-shadow);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
background-color: var(--n-color);
|
|
color: var(--n-text-color);
|
|
box-sizing: border-box;
|
|
`,[zTe(),VTe(),KTe(),XTe(),j("unselectable",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`),j("native-scrollbar",[M("drawer-content-wrapper",`
|
|
overflow: auto;
|
|
height: 100%;
|
|
`)]),G("resize-trigger",`
|
|
position: absolute;
|
|
background-color: #0000;
|
|
transition: background-color .3s var(--n-bezier);
|
|
`,[j("hover",`
|
|
background-color: var(--n-resize-trigger-color-hover);
|
|
`)]),M("drawer-content-wrapper",`
|
|
box-sizing: border-box;
|
|
`),M("drawer-content",`
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
`,[j("native-scrollbar",[M("drawer-body-content-wrapper",`
|
|
height: 100%;
|
|
overflow: auto;
|
|
`)]),M("drawer-body",`
|
|
flex: 1 0 0;
|
|
overflow: hidden;
|
|
`),M("drawer-body-content-wrapper",`
|
|
box-sizing: border-box;
|
|
padding: var(--n-body-padding);
|
|
`),M("drawer-header",`
|
|
font-weight: var(--n-title-font-weight);
|
|
line-height: 1;
|
|
font-size: var(--n-title-font-size);
|
|
color: var(--n-title-text-color);
|
|
padding: var(--n-header-padding);
|
|
transition: border .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-divider-color);
|
|
border-bottom: var(--n-header-border-bottom);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
`,[G("close",`
|
|
margin-left: 6px;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`)]),M("drawer-footer",`
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
border-top: var(--n-footer-border-top);
|
|
transition: border .3s var(--n-bezier);
|
|
padding: var(--n-footer-padding);
|
|
`)]),j("right-placement",`
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
`,[G("resize-trigger",`
|
|
width: 3px;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
transform: translateX(-1.5px);
|
|
cursor: ew-resize;
|
|
`)]),j("left-placement",`
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
`,[G("resize-trigger",`
|
|
width: 3px;
|
|
height: 100%;
|
|
top: 0;
|
|
right: 0;
|
|
transform: translateX(1.5px);
|
|
cursor: ew-resize;
|
|
`)]),j("top-placement",`
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
`,[G("resize-trigger",`
|
|
width: 100%;
|
|
height: 3px;
|
|
bottom: 0;
|
|
left: 0;
|
|
transform: translateY(1.5px);
|
|
cursor: ns-resize;
|
|
`)]),j("bottom-placement",`
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
`,[G("resize-trigger",`
|
|
width: 100%;
|
|
height: 3px;
|
|
top: 0;
|
|
left: 0;
|
|
transform: translateY(-1.5px);
|
|
cursor: ns-resize;
|
|
`)])]),N("body",[N(">",[M("drawer-container",{position:"fixed"})])]),M("drawer-container",`
|
|
position: relative;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
pointer-events: none;
|
|
`,[N("> *",{pointerEvents:"all"})]),M("drawer-mask",`
|
|
background-color: rgba(0, 0, 0, .3);
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[j("invisible",`
|
|
background-color: rgba(0, 0, 0, 0)
|
|
`),Vf({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]);const ZTe=Object.assign(Object.assign({},Fe.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function});var JTe=ge({name:"Drawer",inheritAttrs:!1,props:ZTe,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:n}=et(e),a=ji(),i=Fe("Drawer","-drawer",qTe,PTe,e,t),o=X(e.defaultWidth),s=X(e.defaultHeight),l=Sr(Ie(e,"width"),o),u=Sr(Ie(e,"height"),s),c=L(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":pr(l.value)}),d=L(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":pr(u.value)}),f=w=>{const{onUpdateWidth:x,"onUpdate:width":S}=e;x&&Ee(x,w),S&&Ee(S,w),o.value=w},A=w=>{const{onUpdateHeight:x,"onUpdate:width":S}=e;x&&Ee(x,w),S&&Ee(S,w),s.value=w},h=L(()=>[{width:c.value,height:d.value},e.drawerStyle||""]);function v(w){const{onMaskClick:x,maskClosable:S}=e;S&&m(!1),x&&x(w)}const p=mG();function g(w){var x;(x=e.onEsc)===null||x===void 0||x.call(e),e.show&&e.closeOnEsc&&YW(w)&&!p.value&&m(!1)}function m(w){const{onHide:x,onUpdateShow:S,"onUpdate:show":_}=e;S&&Ee(S,w),_&&Ee(_,w),x&&!w&&Ee(x,w)}Ct(tk,{isMountedRef:a,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:m,doUpdateHeight:A,doUpdateWidth:f});const y=L(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:x,cubicBezierEaseOut:S},self:{color:_,textColor:B,boxShadow:T,lineHeight:E,headerPadding:I,footerPadding:R,bodyPadding:D,titleFontSize:k,titleTextColor:F,titleFontWeight:P,headerBorderBottom:O,footerBorderTop:H,closeIconColor:V,closeIconColorHover:W,closeIconColorPressed:Z,closeColorHover:ee,closeColorPressed:ae,closeIconSize:ne,closeSize:le,closeBorderRadius:se,resizableTriggerColorHover:ce}}=i.value;return{"--n-line-height":E,"--n-color":_,"--n-text-color":B,"--n-box-shadow":T,"--n-bezier":w,"--n-bezier-out":S,"--n-bezier-in":x,"--n-header-padding":I,"--n-body-padding":D,"--n-footer-padding":R,"--n-title-text-color":F,"--n-title-font-size":k,"--n-title-font-weight":P,"--n-header-border-bottom":O,"--n-footer-border-top":H,"--n-close-icon-color":V,"--n-close-icon-color-hover":W,"--n-close-icon-color-pressed":Z,"--n-close-size":le,"--n-close-color-hover":ee,"--n-close-color-pressed":ae,"--n-close-icon-size":ne,"--n-close-border-radius":se,"--n-resize-trigger-color-hover":ce}}),b=n?_t("drawer",void 0,y,e):void 0;return{mergedClsPrefix:t,namespace:r,mergedBodyStyle:h,handleMaskClick:v,handleEsc:g,mergedTheme:i,cssVars:n?void 0:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender,isMounted:a}},render(){const{mergedClsPrefix:e}=this;return C(jm,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),jr(C("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?C(zr,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?C("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,C($Te,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[Km,{zIndex:this.zIndex,enabled:this.show}]])}})}});const eEe={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean};var tEe=ge({name:"DrawerContent",props:eEe,setup(){const e=We(tk,null);e||Ta("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function r(){t(!1)}return{handleCloseClick:r,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:r,mergedTheme:n,bodyStyle:a,bodyContentStyle:i,headerStyle:o,footerStyle:s,scrollbarProps:l,closable:u,$slots:c}=this;return C("div",{role:"none",class:[`${t}-drawer-content`,r&&`${t}-drawer-content--native-scrollbar`]},c.header||e||u?C("div",{class:`${t}-drawer-header`,style:o,role:"none"},C("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},c.header!==void 0?c.header():e),u&&C(Zc,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,r?C("div",{class:`${t}-drawer-body`,style:a,role:"none"},C("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},c)):C(Un,Object.assign({themeOverrides:n.peerOverrides.Scrollbar,theme:n.peers.Scrollbar},l,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),c),c.footer?C("div",{class:`${t}-drawer-footer`,style:s,role:"none"},c.footer()):null)}}),rEe={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const nEe={name:"DynamicInput",common:st,peers:{Input:Ro,Button:Ci},self(){return rEe}};var aEe=nEe,DY={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const iEe={name:"Space",self(){return DY}};var FY=iEe;const oEe=()=>DY,sEe={name:"Space",self:oEe};var lEe=sEe;let KB;const uEe=()=>{if(!To)return!0;if(KB===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),KB=t}return KB},cEe=Object.assign(Object.assign({},Fe.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}});var dEe=ge({name:"Space",props:cEe,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=et(e),n=Fe("Space","-space",void 0,lEe,e,t),a=tn("Space",r,t);return{useGap:uEe(),rtlEnabled:a,mergedClsPrefix:t,margin:L(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[Se("gap",i)]:o}}=n.value,{row:s,col:l}=bde(o);return{horizontal:ma(l),vertical:ma(s)}})}},render(){const{vertical:e,align:t,inline:r,justify:n,itemStyle:a,margin:i,wrap:o,mergedClsPrefix:s,rtlEnabled:l,useGap:u,wrapItem:c,internalUseGap:d}=this,f=go(Vm(this));if(!f.length)return null;const A=`${i.horizontal}px`,h=`${i.horizontal/2}px`,v=`${i.vertical}px`,p=`${i.vertical/2}px`,g=f.length-1,m=n.startsWith("space-");return C("div",{role:"none",class:[`${s}-space`,l&&`${s}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(n)?"flex-"+n:n,flexWrap:!o||e?"nowrap":"wrap",marginTop:u||e?"":`-${p}`,marginBottom:u||e?"":`-${p}`,alignItems:t,gap:u?`${i.vertical}px ${i.horizontal}px`:""}},!c&&(u||d)?f:f.map((y,b)=>C("div",{role:"none",style:[a,{maxWidth:"100%"},u?"":e?{marginBottom:b!==g?v:""}:l?{marginLeft:m?n==="space-between"&&b===g?"":h:b!==g?A:"",marginRight:m?n==="space-between"&&b===0?"":h:"",paddingTop:p,paddingBottom:p}:{marginRight:m?n==="space-between"&&b===g?"":h:b!==g?A:"",marginLeft:m?n==="space-between"&&b===0?"":h:"",paddingTop:p,paddingBottom:p}]},y)))}});const fEe={name:"DynamicTags",common:st,peers:{Input:Ro,Button:Ci,Tag:DK,Space:FY},self(){return{inputWidth:"64px"}}};var AEe=fEe;const hEe={name:"Element",common:st};var vEe=hEe;const pEe={name:"Element",common:Dt};var gEe=pEe;const mEe=Object.assign(Object.assign({},Fe.props),{tag:{type:String,default:"div"}});var yEe=ge({name:"Element",alias:["El"],props:mEe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Element","-element",void 0,gEe,e,t),a=L(()=>{const{common:o}=n.value;return Object.keys(o).reduce((s,l)=>(s[`--${hme(l)}`]=o[l],s),{})}),i=r?_t("element",void 0,a,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:r,cssVars:n,themeClass:a,onRender:i,$slots:o}=this;return i==null||i(),C(t,{role:"none",class:[`${r}-element`,a],style:n},(e=o.default)===null||e===void 0?void 0:e.call(o))}}),bEe={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right"};const MY=e=>{const{heightSmall:t,heightMedium:r,heightLarge:n,textColor1:a,errorColor:i,warningColor:o,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},bEe),{blankHeightSmall:t,blankHeightMedium:r,blankHeightLarge:n,lineHeight:s,labelTextColor:a,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:o,feedbackTextColor:l})},xEe={name:"Form",common:Dt,self:MY};var kY=xEe;const wEe={name:"Form",common:st,self:MY};var CEe=wEe,SEe=M("form",[j("inline",`
|
|
width: 100%;
|
|
display: inline-flex;
|
|
align-items: flex-start;
|
|
align-content: space-around;
|
|
`,[M("form-item",{width:"auto",marginRight:"18px"},[N("&:last-child",{marginRight:0})])])]);const ey="n-form",PY="n-form-item-insts";var _Ee=globalThis&&globalThis.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const BEe=Object.assign(Object.assign({},Fe.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object});var TEe=ge({name:"Form",props:BEe,setup(e){const{mergedClsPrefixRef:t}=et(e);Fe("Form","-form",SEe,kY,e,t);const r={},n=X(void 0),a=l=>{const u=n.value;(u===void 0||l>=u)&&(n.value=l)};function i(l,u=()=>!0){return _Ee(this,void 0,void 0,function*(){return yield new Promise((c,d)=>{const f=[];for(const A of Zs(r)){const h=r[A];for(const v of h)v.path&&f.push(v.internalValidate(null,u))}Promise.all(f).then(A=>{if(A.some(h=>!h.valid)){const h=A.filter(v=>v.errors).map(v=>v.errors);l&&l(h),d(h)}else l&&l(),c()})})})}function o(){for(const l of Zs(r)){const u=r[l];for(const c of u)c.restoreValidation()}}return Ct(ey,{props:e,maxChildLabelWidthRef:n,deriveMaxChildLabelWidth:a}),Ct(PY,{formItems:r}),Object.assign({validate:i,restoreValidation:o},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return C("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function ff(){return ff=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ff.apply(this,arguments)}function EEe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,G0(e,t)}function SR(e){return SR=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},SR(e)}function G0(e,t){return G0=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},G0(e,t)}function IEe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ix(e,t,r){return IEe()?ix=Reflect.construct:ix=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&G0(u,o.prototype),u},ix.apply(null,arguments)}function REe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _R(e){var t=typeof Map=="function"?new Map:void 0;return _R=function(n){if(n===null||!REe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return ix(n,arguments,SR(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),G0(a,n)},_R(e)}var DEe=/%[sdj%]/g,FEe=function(){};typeof process!="undefined"&&process.env;function BR(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Li(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(DEe,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch(l){return"[Circular]"}break;default:return s}});return o}return e}function MEe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function na(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||MEe(t)&&typeof e=="string"&&!e)}function kEe(e,t,r){var n=[],a=0,i=e.length;function o(s){n.push.apply(n,s||[]),a++,a===i&&r(n)}e.forEach(function(s){t(s,o)})}function u$(e,t,r){var n=0,a=e.length;function i(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<a?t(e[s],i):r([])}i([])}function PEe(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var c$=function(e){EEe(t,e);function t(r,n){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=r,a.fields=n,a}return t}(_R(Error));function LEe(e,t,r,n,a){if(t.first){var i=new Promise(function(f,A){var h=function(g){return n(g),g.length?A(new c$(g,BR(g))):f(a)},v=PEe(e);u$(v,r,h)});return i.catch(function(f){return f}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],d=new Promise(function(f,A){var h=function(p){if(c.push.apply(c,p),u++,u===l)return n(c),c.length?A(new c$(c,BR(c))):f(a)};s.length||(n(c),f(a)),s.forEach(function(v){var p=e[v];o.indexOf(v)!==-1?u$(p,r,h):kEe(p,r,h)})});return d.catch(function(f){return f}),d}function OEe(e){return!!(e&&e.message!==void 0)}function $Ee(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function d$(e,t){return function(r){var n;return e.fullFields?n=$Ee(t,e.fullFields):n=t[r.field||e.fullField],OEe(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function f$(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=ff({},e[r],n):e[r]=n}}return e}var LY=function(t,r,n,a,i,o){t.required&&(!n.hasOwnProperty(t.field)||na(r,o||t.type))&&a.push(Li(i.messages.required,t.fullField))},UEe=function(t,r,n,a,i){(/^\s+$/.test(r)||r==="")&&a.push(Li(i.messages.whitespace,t.fullField))},jB={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,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},bg={integer:function(t){return bg.number(t)&&parseInt(t,10)===t},float:function(t){return bg.number(t)&&!bg.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(r){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"&&!bg.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(jB.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(jB.url)},hex:function(t){return typeof t=="string"&&!!t.match(jB.hex)}},HEe=function(t,r,n,a,i){if(t.required&&r===void 0){LY(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?bg[s](r)||a.push(Li(i.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&a.push(Li(i.messages.types[s],t.fullField,t.type))},zEe=function(t,r,n,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,d=null,f=typeof r=="number",A=typeof r=="string",h=Array.isArray(r);if(f?d="number":A?d="string":h&&(d="array"),!d)return!1;h&&(c=r.length),A&&(c=r.replace(u,"_").length),o?c!==t.len&&a.push(Li(i.messages[d].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(Li(i.messages[d].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(Li(i.messages[d].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(Li(i.messages[d].range,t.fullField,t.min,t.max))},LA="enum",NEe=function(t,r,n,a,i){t[LA]=Array.isArray(t[LA])?t[LA]:[],t[LA].indexOf(r)===-1&&a.push(Li(i.messages[LA],t.fullField,t[LA].join(", ")))},QEe=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(Li(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(Li(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Cr={required:LY,whitespace:UEe,type:HEe,range:zEe,enum:NEe,pattern:QEe},VEe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(na(r,"string")&&!t.required)return n();Cr.required(t,r,a,o,i,"string"),na(r,"string")||(Cr.type(t,r,a,o,i),Cr.range(t,r,a,o,i),Cr.pattern(t,r,a,o,i),t.whitespace===!0&&Cr.whitespace(t,r,a,o,i))}n(o)},WEe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(na(r)&&!t.required)return n();Cr.required(t,r,a,o,i),r!==void 0&&Cr.type(t,r,a,o,i)}n(o)},GEe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),na(r)&&!t.required)return n();Cr.required(t,r,a,o,i),r!==void 0&&(Cr.type(t,r,a,o,i),Cr.range(t,r,a,o,i))}n(o)},KEe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(na(r)&&!t.required)return n();Cr.required(t,r,a,o,i),r!==void 0&&Cr.type(t,r,a,o,i)}n(o)},jEe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(na(r)&&!t.required)return n();Cr.required(t,r,a,o,i),na(r)||Cr.type(t,r,a,o,i)}n(o)},YEe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(na(r)&&!t.required)return n();Cr.required(t,r,a,o,i),r!==void 0&&(Cr.type(t,r,a,o,i),Cr.range(t,r,a,o,i))}n(o)},XEe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(na(r)&&!t.required)return n();Cr.required(t,r,a,o,i),r!==void 0&&(Cr.type(t,r,a,o,i),Cr.range(t,r,a,o,i))}n(o)},qEe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Cr.required(t,r,a,o,i,"array"),r!=null&&(Cr.type(t,r,a,o,i),Cr.range(t,r,a,o,i))}n(o)},ZEe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(na(r)&&!t.required)return n();Cr.required(t,r,a,o,i),r!==void 0&&Cr.type(t,r,a,o,i)}n(o)},JEe="enum",eIe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(na(r)&&!t.required)return n();Cr.required(t,r,a,o,i),r!==void 0&&Cr[JEe](t,r,a,o,i)}n(o)},tIe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(na(r,"string")&&!t.required)return n();Cr.required(t,r,a,o,i),na(r,"string")||Cr.pattern(t,r,a,o,i)}n(o)},rIe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(na(r,"date")&&!t.required)return n();if(Cr.required(t,r,a,o,i),!na(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Cr.type(t,l,a,o,i),l&&Cr.range(t,l.getTime(),a,o,i)}}n(o)},nIe=function(t,r,n,a,i){var o=[],s=Array.isArray(r)?"array":typeof r;Cr.required(t,r,a,o,i,s),n(o)},YB=function(t,r,n,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(na(r,o)&&!t.required)return n();Cr.required(t,r,a,s,i,o),na(r,o)||Cr.type(t,r,a,s,i)}n(s)},aIe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(na(r)&&!t.required)return n();Cr.required(t,r,a,o,i)}n(o)},t0={string:VEe,method:WEe,number:GEe,boolean:KEe,regexp:jEe,integer:YEe,float:XEe,array:qEe,object:ZEe,enum:eIe,pattern:tIe,date:rIe,url:YB,hex:YB,email:YB,required:nIe,any:aIe};function TR(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ER=TR(),ty=function(){function e(r){this.rules=null,this._messages=ER,this.define(r)}var t=e.prototype;return t.define=function(n){var a=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=f$(TR(),n)),this._messages},t.validate=function(n,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=n,l=a,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(v){var p=[],g={};function m(b){if(Array.isArray(b)){var w;p=(w=p).concat.apply(w,b)}else p.push(b)}for(var y=0;y<v.length;y++)m(v[y]);p.length?(g=BR(p),u(p,g)):u(null,s)}if(l.messages){var d=this.messages();d===ER&&(d=TR()),f$(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},A=l.keys||Object.keys(this.rules);A.forEach(function(v){var p=o.rules[v],g=s[v];p.forEach(function(m){var y=m;typeof y.transform=="function"&&(s===n&&(s=ff({},s)),g=s[v]=y.transform(g)),typeof y=="function"?y={validator:y}:y=ff({},y),y.validator=o.getValidationMethod(y),y.validator&&(y.field=v,y.fullField=y.fullField||v,y.type=o.getType(y),f[v]=f[v]||[],f[v].push({rule:y,value:g,source:s,field:v}))})});var h={};return LEe(f,l,function(v,p){var g=v.rule,m=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");m=m&&(g.required||!g.required&&v.value),g.field=v.field;function y(x,S){return ff({},S,{fullField:g.fullField+"."+x,fullFields:g.fullFields?[].concat(g.fullFields,[x]):[x]})}function b(x){x===void 0&&(x=[]);var S=Array.isArray(x)?x:[x];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&g.message!==void 0&&(S=[].concat(g.message));var _=S.map(d$(g,s));if(l.first&&_.length)return h[g.field]=1,p(_);if(!m)p(_);else{if(g.required&&!v.value)return g.message!==void 0?_=[].concat(g.message).map(d$(g,s)):l.error&&(_=[l.error(g,Li(l.messages.required,g.field))]),p(_);var B={};g.defaultField&&Object.keys(v.value).map(function(I){B[I]=g.defaultField}),B=ff({},B,v.rule.fields);var T={};Object.keys(B).forEach(function(I){var R=B[I],D=Array.isArray(R)?R:[R];T[I]=D.map(y.bind(null,I))});var E=new e(T);E.messages(l.messages),v.rule.options&&(v.rule.options.messages=l.messages,v.rule.options.error=l.error),E.validate(v.value,v.rule.options||l,function(I){var R=[];_&&_.length&&R.push.apply(R,_),I&&I.length&&R.push.apply(R,I),p(R.length?R:null)})}}var w;if(g.asyncValidator)w=g.asyncValidator(g,v.value,b,v.source,l);else if(g.validator){try{w=g.validator(g,v.value,b,v.source,l)}catch(x){console.error==null||console.error(x),setTimeout(function(){throw x},0),b(x.message)}w===!0?b():w===!1?b(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||(g.fullField||g.field)+" fails"):w instanceof Array?b(w):w instanceof Error&&b(w.message)}w&&w.then&&w.then(function(){return b()},function(x){return b(x)})},function(v){c(v)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!t0.hasOwnProperty(n.type))throw new Error(Li("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var a=Object.keys(n),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?t0.required:t0[this.getType(n)]||void 0},e}();ty.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");t0[t]=r};ty.warning=FEe;ty.messages=ER;ty.validators=t0;function iIe(e){const t=We(ey,null);return{mergedSize:L(()=>e.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function oIe(e){const t=We(ey,null),r=L(()=>{const{labelPlacement:A}=e;return A!==void 0?A:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),n=L(()=>r.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),a=L(()=>{if(r.value==="top")return;const{labelWidth:A}=e;if(A!==void 0&&A!=="auto")return pr(A);if(n.value){const h=t==null?void 0:t.maxChildLabelWidthRef.value;return h!==void 0?pr(h):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return pr(t.props.labelWidth)}),i=L(()=>{const{labelAlign:A}=e;if(A)return A;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),o=L(()=>{var A;return[(A=e.labelProps)===null||A===void 0?void 0:A.style,e.labelStyle,{width:a.value}]}),s=L(()=>{const{showRequireMark:A}=e;return A!==void 0?A:t==null?void 0:t.props.showRequireMark}),l=L(()=>{const{requireMarkPlacement:A}=e;return A!==void 0?A:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),u=X(!1),c=L(()=>{const{validationStatus:A}=e;if(A!==void 0)return A;if(u.value)return"error"}),d=L(()=>{const{showFeedback:A}=e;return A!==void 0?A:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),f=L(()=>{const{showLabel:A}=e;return A!==void 0?A:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:u,mergedLabelStyle:o,mergedLabelPlacement:r,mergedLabelAlign:i,mergedShowRequireMark:s,mergedRequireMarkPlacement:l,mergedValidationStatus:c,mergedShowFeedback:d,mergedShowLabel:f,isAutoLabelWidth:n}}function sIe(e){const t=We(ey,null),r=L(()=>{const{rulePath:o}=e;if(o!==void 0)return o;const{path:s}=e;if(s!==void 0)return s}),n=L(()=>{const o=[],{rule:s}=e;if(s!==void 0&&(Array.isArray(s)?o.push(...s):o.push(s)),t){const{rules:l}=t.props,{value:u}=r;if(l!==void 0&&u!==void 0){const c=z0(l,u);c!==void 0&&(Array.isArray(c)?o.push(...c):o.push(c))}}return o}),a=L(()=>n.value.some(o=>o.required)),i=L(()=>a.value||e.required);return{mergedRules:n,mergedRequired:i}}const{cubicBezierEaseInOut:A$}=xi;function lIe({name:e="fade-down",fromOffset:t="-4px",enterDuration:r=".3s",leaveDuration:n=".3s",enterCubicBezier:a=A$,leaveCubicBezier:i=A$}={}){return[N(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),N(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),N(`&.${e}-transition-leave-active`,{transition:`opacity ${n} ${i}, transform ${n} ${i}`}),N(`&.${e}-transition-enter-active`,{transition:`opacity ${r} ${a}, transform ${r} ${a}`})]}var uIe=M("form-item",`
|
|
display: grid;
|
|
line-height: var(--n-line-height);
|
|
`,[M("form-item-label",`
|
|
grid-area: label;
|
|
align-items: center;
|
|
line-height: 1.25;
|
|
text-align: var(--n-label-text-align);
|
|
font-size: var(--n-label-font-size);
|
|
min-height: var(--n-label-height);
|
|
padding: var(--n-label-padding);
|
|
color: var(--n-label-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
box-sizing: border-box;
|
|
`,[G("asterisk",`
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
color: var(--n-asterisk-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`),G("asterisk-placeholder",`
|
|
grid-area: mark;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
visibility: hidden;
|
|
`)]),M("form-item-blank",`
|
|
grid-area: blank;
|
|
min-height: var(--n-blank-height);
|
|
`),j("auto-label-width",[M("form-item-label","white-space: nowrap;")]),j("left-labelled",`
|
|
grid-template-areas:
|
|
"label blank"
|
|
"label feedback";
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
grid-template-rows: auto 1fr;
|
|
align-items: start;
|
|
`,[M("form-item-label",`
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
min-height: var(--n-blank-height);
|
|
height: auto;
|
|
box-sizing: border-box;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
`,[j("left-mark",`
|
|
grid-template-areas:
|
|
"mark text"
|
|
". text";
|
|
`),j("right-mark",`
|
|
grid-template-areas:
|
|
"text mark"
|
|
"text .";
|
|
`),j("right-hanging-mark",`
|
|
grid-template-areas:
|
|
"text mark"
|
|
"text .";
|
|
`),G("text",`
|
|
grid-area: text;
|
|
`),G("asterisk",`
|
|
grid-area: mark;
|
|
align-self: end;
|
|
`)])]),j("top-labelled",`
|
|
grid-template-areas:
|
|
"label"
|
|
"blank"
|
|
"feedback";
|
|
grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
|
|
grid-template-columns: minmax(0, 100%);
|
|
`,[j("no-label",`
|
|
grid-template-areas:
|
|
"blank"
|
|
"feedback";
|
|
grid-template-rows: 1fr;
|
|
`),M("form-item-label",`
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: var(--n-label-text-align);
|
|
`)]),M("form-item-blank",`
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
`),M("form-item-feedback-wrapper",`
|
|
grid-area: feedback;
|
|
box-sizing: border-box;
|
|
min-height: var(--n-feedback-height);
|
|
font-size: var(--n-feedback-font-size);
|
|
line-height: 1.25;
|
|
transform-origin: top left;
|
|
`,[N("&:not(:empty)",`
|
|
padding: var(--n-feedback-padding);
|
|
`),M("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[j("warning",{color:"var(--n-feedback-text-color-warning)"}),j("error",{color:"var(--n-feedback-text-color-error)"}),lIe({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]),h$=globalThis&&globalThis.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const cIe=Object.assign(Object.assign({},Fe.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object});function v$(e,t){return(...r)=>{try{const n=e(...r);return!t&&(typeof n=="boolean"||n instanceof Error||Array.isArray(n))||(n==null?void 0:n.then)?n:(n===void 0||is("form-item/validate",`You return a ${typeof n} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(n){is("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(n);return}}}var dIe=ge({name:"FormItem",props:cIe,setup(e){rfe(PY,"formItems",Ie(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=We(ey,null),a=iIe(e),i=oIe(e),{validationErrored:o}=i,{mergedRequired:s,mergedRules:l}=sIe(e),{mergedSize:u}=a,{mergedLabelPlacement:c,mergedLabelAlign:d}=i,f=X([]),A=X(yo()),h=n?Ie(n.props,"disabled"):X(!1),v=Fe("Form","-form-item",uIe,kY,e,t);mt(Ie(e,"path"),()=>{e.ignorePathChange||p()});function p(){f.value=[],o.value=!1,e.feedback&&(A.value=yo())}function g(){x("blur")}function m(){x("change")}function y(){x("focus")}function b(){x("input")}function w(E,I){return h$(this,void 0,void 0,function*(){let R,D,k,F;return typeof E=="string"?(R=E,D=I):E!==null&&typeof E=="object"&&(R=E.trigger,D=E.callback,k=E.shouldRuleBeApplied,F=E.options),yield new Promise((P,O)=>{x(R,k,F).then(({valid:H,errors:V})=>{H?(D&&D(),P()):(D&&D(V),O(V))})})})}const x=(E=null,I=()=>!0,R={suppressWarning:!0})=>h$(this,void 0,void 0,function*(){const{path:D}=e;R?R.first||(R.first=e.first):R={};const{value:k}=l,F=n?z0(n.props.model,D||""):void 0,P={},O={},H=(E?k.filter(ee=>Array.isArray(ee.trigger)?ee.trigger.includes(E):ee.trigger===E):k).filter(I).map((ee,ae)=>{const ne=Object.assign({},ee);if(ne.validator&&(ne.validator=v$(ne.validator,!1)),ne.asyncValidator&&(ne.asyncValidator=v$(ne.asyncValidator,!0)),ne.renderMessage){const le=`__renderMessage__${ae}`;O[le]=ne.message,ne.message=le,P[le]=ne.renderMessage}return ne});if(!H.length)return{valid:!0};const V=D!=null?D:"__n_no_path__",W=new ty({[V]:H}),{validateMessages:Z}=(n==null?void 0:n.props)||{};return Z&&W.messages(Z),yield new Promise(ee=>{W.validate({[V]:F},R,ae=>{ae!=null&&ae.length?(f.value=ae.map(ne=>{const le=(ne==null?void 0:ne.message)||"";return{key:le,render:()=>le.startsWith("__renderMessage__")?P[le]():le}}),ae.forEach(ne=>{var le;!((le=ne.message)===null||le===void 0)&&le.startsWith("__renderMessage__")&&(ne.message=O[ne.message])}),o.value=!0,ee({valid:!1,errors:ae})):(p(),ee({valid:!0}))})})});Ct(kI,{path:Ie(e,"path"),disabled:h,mergedSize:a.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:p,handleContentBlur:g,handleContentChange:m,handleContentFocus:y,handleContentInput:b});const S={validate:w,restoreValidation:p,internalValidate:x},_=X(null);Ar(()=>{if(!i.isAutoLabelWidth.value)return;const E=_.value;if(E!==null){const I=E.style.whiteSpace;E.style.whiteSpace="nowrap",E.style.width="",n==null||n.deriveMaxChildLabelWidth(Number(getComputedStyle(E).width.slice(0,-2))),E.style.whiteSpace=I}});const B=L(()=>{var E;const{value:I}=u,{value:R}=c,D=R==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:k},self:{labelTextColor:F,asteriskColor:P,lineHeight:O,feedbackTextColor:H,feedbackTextColorWarning:V,feedbackTextColorError:W,feedbackPadding:Z,[Se("labelHeight",I)]:ee,[Se("blankHeight",I)]:ae,[Se("feedbackFontSize",I)]:ne,[Se("feedbackHeight",I)]:le,[Se("labelPadding",D)]:se,[Se("labelTextAlign",D)]:ce,[Se(Se("labelFontSize",R),I)]:ye}}=v.value;let fe=(E=d.value)!==null&&E!==void 0?E:ce;return R==="top"&&(fe=fe==="right"?"flex-end":"flex-start"),{"--n-bezier":k,"--n-line-height":O,"--n-blank-height":ae,"--n-label-font-size":ye,"--n-label-text-align":fe,"--n-label-height":ee,"--n-label-padding":se,"--n-asterisk-color":P,"--n-label-text-color":F,"--n-feedback-padding":Z,"--n-feedback-font-size":ne,"--n-feedback-height":le,"--n-feedback-text-color":H,"--n-feedback-text-color-warning":V,"--n-feedback-text-color-error":W}}),T=_t("form-item",L(()=>{var E;return`${u.value[0]}${c.value[0]}${((E=d.value)===null||E===void 0?void 0:E[0])||""}`}),B,e);return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:_,mergedClsPrefix:t,mergedRequired:s,feedbackId:A,renderExplains:f},i),a),S),{cssVars:r?void 0:B,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:r,mergedShowRequireMark:n,mergedRequireMarkPlacement:a,onRender:i}=this,o=n!==void 0?n:this.mergedRequired;i==null||i();const s=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const u=C("span",{class:`${t}-form-item-label__text`},l),c=o?C("span",{class:`${t}-form-item-label__asterisk`},a!=="left"?"\xA0*":"*\xA0"):a==="right-hanging"&&C("span",{class:`${t}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:d}=this;return C("label",Object.assign({},d,{class:[d==null?void 0:d.class,`${t}-form-item-label`,`${t}-form-item-label--${a}-mark`],style:this.mergedLabelStyle,ref:"labelElementRef"}),a==="left"?[c,u]:[u,c])};return C("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!r&&`${t}-form-item--no-label`],style:this.cssVars},r&&s(),C("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?C("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},C(zr,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return or(e.feedback,u=>{var c;const{feedback:d}=this,f=u||d?C("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},u||d):this.renderExplains.length?(c=this.renderExplains)===null||c===void 0?void 0:c.map(({key:A,render:h})=>C("div",{key:A,class:`${t}-form-item-feedback__line`},h())):null;return f?l==="warning"?C("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},f):l==="error"?C("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},f):l==="success"?C("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},f):C("div",{key:"controlled-default",class:`${t}-form-item-feedback`},f):null})}})):null)}});const p$=1,OY="n-grid",$Y=1,fIe={span:{type:[Number,String],default:$Y},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}};var AIe=ge({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:fIe,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:r,overflowRef:n,layoutShiftDisabledRef:a}=We(OY),i=Ba();return{overflow:n,itemStyle:r,layoutShiftDisabled:a,mergedXGap:L(()=>Tn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:o=$Y,privateShow:s=!0,privateColStart:l=void 0,privateOffset:u=0}=i.vnode.props,{value:c}=t,d=Tn(c||0);return{display:s?"":"none",gridColumn:`${l!=null?l:`span ${o}`} / span ${o}`,marginLeft:u?`calc((100% - (${o} - 1) * ${d}) / ${o} * ${u} + ${d} * ${u})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:r,offset:n,mergedXGap:a}=this;return C("div",{style:{gridColumn:`span ${r} / span ${r}`,marginLeft:n?`calc((100% - (${r} - 1) * ${a}) / ${r} * ${n} + ${a} * ${n})`:""}},this.$slots)}return C("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}});const hIe=Array.apply(null,{length:24}).map((e,t)=>{const r=t+1,n=`calc(100% / 24 * ${r})`;return[j(`${r}-span`,{width:n}),j(`${r}-offset`,{marginLeft:n}),j(`${r}-push`,{left:n}),j(`${r}-pull`,{right:n})]});var vIe=N([M("row",{width:"100%",display:"flex",flexWrap:"wrap"}),M("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[G("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),hIe])]);const UY="n-row",pIe={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String};var gIe=ge({name:"Row",props:pIe,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=et(e);ol("-legacy-grid",vIe,t);const n=tn("Row",r,t),a=Rt(()=>{const{gutter:o}=e;return Array.isArray(o)&&o[1]||0}),i=Rt(()=>{const{gutter:o}=e;return Array.isArray(o)?o[0]:Number(o)});return Ct(UY,{mergedClsPrefixRef:t,gutterRef:Ie(e,"gutter"),verticalGutterRef:a,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:n,styleMargin:Rt(()=>`-${pr(a.value,{c:.5})} -${pr(i.value,{c:.5})}`),styleWidth:Rt(()=>`calc(100% + ${pr(i.value)})`)}},render(){return C("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}});const mIe={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}};var yIe=ge({name:"Col",props:mIe,setup(e){const t=We(UY,null);return t||Ta("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:L(()=>`${pr(t.verticalGutterRef.value,{c:.5})} ${pr(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:L(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:r,offset:n,stylePadding:a,gutter:i,mergedClsPrefix:o}=this;return C("div",{class:[`${o}-col`,{[`${o}-col--${t}-span`]:!0,[`${o}-col--${r}-push`]:r>0,[`${o}-col--${-r}-pull`]:r<0,[`${o}-col--${n}-offset`]:n}],style:{padding:a}},i?C("div",null,e):e)}});const bIe={name:"GradientText",common:st,self(e){const{primaryColor:t,successColor:r,warningColor:n,errorColor:a,infoColor:i,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:u,infoColorSuppl:c,fontWeightStrong:d}=e;return{fontWeight:d,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:i,colorEndInfo:c,colorStartWarning:n,colorEndWarning:l,colorStartError:a,colorEndError:u,colorStartSuccess:r,colorEndSuccess:s}}};var xIe=bIe;const wIe=e=>{const{primaryColor:t,successColor:r,warningColor:n,errorColor:a,infoColor:i,fontWeightStrong:o}=e;return{fontWeight:o,rotate:"252deg",colorStartPrimary:Ve(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:Ve(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:Ve(n,{alpha:.6}),colorEndWarning:n,colorStartError:Ve(a,{alpha:.6}),colorEndError:a,colorStartSuccess:Ve(r,{alpha:.6}),colorEndSuccess:r}},CIe={name:"GradientText",common:Dt,self:wIe};var SIe=CIe,_Ie=M("gradient-text",`
|
|
display: inline-block;
|
|
font-weight: var(--n-font-weight);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: #0000;
|
|
white-space: nowrap;
|
|
background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
|
|
transition:
|
|
--n-color-start .3s var(--n-bezier),
|
|
--n-color-end .3s var(--n-bezier);
|
|
`);const BIe=Object.assign(Object.assign({},Fe.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]});var TIe=ge({name:"GradientText",props:BIe,setup(e){rk();const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=L(()=>{const{type:u}=e;return u==="danger"?"error":u}),a=L(()=>{let u=e.size||e.fontSize;return u&&(u=pr(u)),u||void 0}),i=L(()=>{const u=e.color||e.gradient;if(typeof u=="string")return u;if(u){const c=u.deg||0,d=u.from,f=u.to;return`linear-gradient(${c}deg, ${d} 0%, ${f} 100%)`}}),o=Fe("GradientText","-gradient-text",_Ie,SIe,e,t),s=L(()=>{const{value:u}=n,{common:{cubicBezierEaseInOut:c},self:{rotate:d,[Se("colorStart",u)]:f,[Se("colorEnd",u)]:A,fontWeight:h}}=o.value;return{"--n-bezier":c,"--n-rotate":d,"--n-color-start":f,"--n-color-end":A,"--n-font-weight":h}}),l=r?_t("gradient-text",L(()=>n.value[0]),s,e):void 0;return{mergedClsPrefix:t,compatibleType:n,styleFontSize:a,styleBgImage:i,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),C("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}});const EIe={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},HY=24,XB="__ssr__",IIe={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:HY},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}};var RIe=ge({name:"Grid",inheritAttrs:!1,props:IIe,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:r}=et(e),n=/^\d+$/,a=X(void 0),i=vfe((r==null?void 0:r.value)||EIe),o=Rt(()=>!!(e.itemResponsive||!n.test(e.cols.toString())||!n.test(e.xGap.toString())||!n.test(e.yGap.toString()))),s=L(()=>{if(!!o.value)return e.responsive==="self"?a.value:i.value}),l=Rt(()=>{var g;return(g=Number(Sp(e.cols.toString(),s.value)))!==null&&g!==void 0?g:HY}),u=Rt(()=>Sp(e.xGap.toString(),s.value)),c=Rt(()=>Sp(e.yGap.toString(),s.value)),d=g=>{a.value=g.contentRect.width},f=g=>{lv(d,g)},A=X(!1),h=L(()=>{if(e.responsive==="self")return f}),v=X(!1),p=X();return Ar(()=>{const{value:g}=p;g&&g.hasAttribute(XB)&&(g.removeAttribute(XB),v.value=!0)}),Ct(OY,{layoutShiftDisabledRef:Ie(e,"layoutShiftDisabled"),isSsrRef:v,itemStyleRef:Ie(e,"itemStyle"),xGapRef:u,overflowRef:A}),{isSsr:!To,contentEl:p,mergedClsPrefix:t,style:L(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:Tn(e.xGap),rowGap:Tn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${l.value}, minmax(0, 1fr))`,columnGap:Tn(u.value),rowGap:Tn(c.value)}),isResponsive:o,responsiveQuery:s,responsiveCols:l,handleResize:h,overflow:A}},render(){if(this.layoutShiftDisabled)return C("div",An({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,r,n,a,i,o,s;this.overflow=!1;const l=go(Vm(this)),u=[],{collapsed:c,collapsedRows:d,responsiveCols:f,responsiveQuery:A}=this;l.forEach(m=>{var y,b,w,x;if(((y=m==null?void 0:m.type)===null||y===void 0?void 0:y.__GRID_ITEM__)!==!0)return;if(Fde(m)){const B=wa(m);B.props?B.props.privateShow=!1:B.props={privateShow:!1},u.push({child:B,rawChildSpan:0});return}m.dirs=((b=m.dirs)===null||b===void 0?void 0:b.filter(({dir:B})=>B!==Bn))||null;const S=wa(m),_=Number((x=Sp((w=S.props)===null||w===void 0?void 0:w.span,A))!==null&&x!==void 0?x:p$);_!==0&&u.push({child:S,rawChildSpan:_})});let h=0;const v=(t=u[u.length-1])===null||t===void 0?void 0:t.child;if(v!=null&&v.props){const m=(r=v.props)===null||r===void 0?void 0:r.suffix;m!==void 0&&m!==!1&&(h=(a=(n=v.props)===null||n===void 0?void 0:n.span)!==null&&a!==void 0?a:p$,v.props.privateSpan=h,v.props.privateColStart=f+1-h,v.props.privateShow=(i=v.props.privateShow)!==null&&i!==void 0?i:!0)}let p=0,g=!1;for(const{child:m,rawChildSpan:y}of u){if(g&&(this.overflow=!0),!g){const b=Number((s=Sp((o=m.props)===null||o===void 0?void 0:o.offset,A))!==null&&s!==void 0?s:0),w=Math.min(y+b,f);if(m.props?(m.props.privateSpan=w,m.props.privateOffset=b):m.props={privateSpan:w,privateOffset:b},c){const x=p%f;w+x>f&&(p+=f-x),w+p+h>d*f?g=!0:p+=w}}g&&(m.props?m.props.privateShow!==!0&&(m.props.privateShow=!1):m.props={privateShow:!1})}return C("div",An({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[XB]:this.isSsr||void 0},this.$attrs),u.map(({child:m})=>m))};return this.isResponsive&&this.responsive==="self"?C(bo,{onResize:this.handleResize},{default:e}):e()}});const DIe=e=>{const{primaryColor:t,baseColor:r}=e;return{color:t,iconColor:r}},FIe={name:"IconWrapper",common:st,self:DIe};var MIe=FIe;const Kk=Object.assign(Object.assign({},Fe.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean});function kIe(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const PIe={name:"Image",common:Dt,peers:{Tooltip:cS},self:kIe};var LIe={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};const zY=e=>{const{textColor2:t,successColor:r,infoColor:n,warningColor:a,errorColor:i,popoverColor:o,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:u,closeColorHover:c,closeColorPressed:d,textColor1:f,textColor3:A,borderRadius:h,fontWeightStrong:v,boxShadow2:p,lineHeight:g,fontSize:m}=e;return Object.assign(Object.assign({},LIe),{borderRadius:h,lineHeight:g,fontSize:m,headerFontWeight:v,iconColor:t,iconColorSuccess:r,iconColorInfo:n,iconColorWarning:a,iconColorError:i,color:o,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:u,closeBorderRadius:h,closeColorHover:c,closeColorPressed:d,headerTextColor:f,descriptionTextColor:A,actionTextColor:t,boxShadow:p})},OIe={name:"Notification",common:Dt,peers:{Scrollbar:ul},self:zY};var $Ie=OIe;const UIe={name:"Notification",common:st,peers:{Scrollbar:wi},self:zY};var HIe=UIe,zIe={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};const NY=e=>{const{textColor2:t,closeIconColor:r,closeIconColorHover:n,closeIconColorPressed:a,infoColor:i,successColor:o,errorColor:s,warningColor:l,popoverColor:u,boxShadow2:c,primaryColor:d,lineHeight:f,borderRadius:A,closeColorHover:h,closeColorPressed:v}=e;return Object.assign(Object.assign({},zIe),{closeBorderRadius:A,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:u,colorInfo:u,colorSuccess:u,colorError:u,colorWarning:u,colorLoading:u,boxShadow:c,boxShadowInfo:c,boxShadowSuccess:c,boxShadowError:c,boxShadowWarning:c,boxShadowLoading:c,iconColor:t,iconColorInfo:i,iconColorSuccess:o,iconColorWarning:l,iconColorError:s,iconColorLoading:d,closeColorHover:h,closeColorPressed:v,closeIconColor:r,closeIconColorHover:n,closeIconColorPressed:a,closeColorHoverInfo:h,closeColorPressedInfo:v,closeIconColorInfo:r,closeIconColorHoverInfo:n,closeIconColorPressedInfo:a,closeColorHoverSuccess:h,closeColorPressedSuccess:v,closeIconColorSuccess:r,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:a,closeColorHoverError:h,closeColorPressedError:v,closeIconColorError:r,closeIconColorHoverError:n,closeIconColorPressedError:a,closeColorHoverWarning:h,closeColorPressedWarning:v,closeIconColorWarning:r,closeIconColorHoverWarning:n,closeIconColorPressedWarning:a,closeColorHoverLoading:h,closeColorPressedLoading:v,closeIconColorLoading:r,closeIconColorHoverLoading:n,closeIconColorPressedLoading:a,loadingColor:d,lineHeight:f,borderRadius:A})},NIe={name:"Message",common:Dt,self:NY};var QIe=NIe;const VIe={name:"Message",common:st,self:NY};var WIe=VIe;const GIe={name:"ButtonGroup",common:st};var KIe=GIe;const jIe={name:"InputNumber",common:st,peers:{Button:Ci,Input:Ro},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};var YIe=jIe;const XIe=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},qIe={name:"InputNumber",common:Dt,peers:{Button:ed,Input:hA},self:XIe};var ZIe=qIe;const JIe={name:"Layout",common:st,peers:{Scrollbar:wi},self(e){const{textColor2:t,bodyColor:r,popoverColor:n,cardColor:a,dividerColor:i,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:r,colorEmbedded:r,headerColor:a,headerColorInverted:a,footerColor:a,footerColorInverted:a,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:a,siderColorInverted:a,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:n,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Et(r,o),siderToggleBarColorHover:Et(r,s),__invertScrollbar:"false"}}};var eRe=JIe;const tRe=e=>{const{baseColor:t,textColor2:r,bodyColor:n,cardColor:a,dividerColor:i,actionColor:o,scrollbarColor:s,scrollbarColorHover:l,invertedColor:u}=e;return{textColor:r,textColorInverted:"#FFF",color:n,colorEmbedded:o,headerColor:a,headerColorInverted:u,footerColor:o,footerColorInverted:u,headerBorderColor:i,headerBorderColorInverted:u,footerBorderColor:i,footerBorderColorInverted:u,siderBorderColor:i,siderBorderColorInverted:u,siderColor:a,siderColorInverted:u,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:r,siderToggleButtonIconColorInverted:r,siderToggleBarColor:Et(n,s),siderToggleBarColorHover:Et(n,l),__invertScrollbar:"true"}},rRe={name:"Layout",common:Dt,peers:{Scrollbar:ul},self:tRe};var pS=rRe;const QY=e=>{const{textColor2:t,cardColor:r,modalColor:n,popoverColor:a,dividerColor:i,borderRadius:o,fontSize:s,hoverColor:l}=e;return{textColor:t,color:r,colorHover:l,colorModal:n,colorHoverModal:Et(n,l),colorPopover:a,colorHoverPopover:Et(a,l),borderColor:i,borderColorModal:Et(n,i),borderColorPopover:Et(a,i),borderRadius:o,fontSize:s}},nRe={name:"List",common:Dt,self:QY};var aRe=nRe;const iRe={name:"List",common:st,self:QY};var oRe=iRe;const sRe={name:"LoadingBar",common:st,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};var lRe=sRe;const uRe=e=>{const{primaryColor:t,errorColor:r}=e;return{colorError:r,colorLoading:t,height:"2px"}},cRe={name:"LoadingBar",common:Dt,self:uRe};var dRe=cRe;const fRe={name:"Log",common:st,peers:{Scrollbar:wi,Code:wj},self(e){const{textColor2:t,inputColor:r,fontSize:n,primaryColor:a}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:r,loaderBorder:"1px solid #0000",loadingColor:a}}};var ARe=fRe;const hRe={name:"Mention",common:st,peers:{InternalSelectMenu:qm,Input:Ro},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};var vRe=hRe;function pRe(e,t,r,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:r,itemTextColorChildActiveInverted:r,itemTextColorChildActiveHoverInverted:r,itemTextColorActiveInverted:r,itemTextColorActiveHoverInverted:r,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:r,itemTextColorChildActiveHorizontalInverted:r,itemTextColorChildActiveHoverHorizontalInverted:r,itemTextColorActiveHorizontalInverted:r,itemTextColorActiveHoverHorizontalInverted:r,itemIconColorInverted:e,itemIconColorHoverInverted:r,itemIconColorActiveInverted:r,itemIconColorActiveHoverInverted:r,itemIconColorChildActiveInverted:r,itemIconColorChildActiveHoverInverted:r,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:r,itemIconColorActiveHorizontalInverted:r,itemIconColorActiveHoverHorizontalInverted:r,itemIconColorChildActiveHorizontalInverted:r,itemIconColorChildActiveHoverHorizontalInverted:r,arrowColorInverted:e,arrowColorHoverInverted:r,arrowColorActiveInverted:r,arrowColorActiveHoverInverted:r,arrowColorChildActiveInverted:r,arrowColorChildActiveHoverInverted:r,groupTextColorInverted:n}}const VY=e=>{const{borderRadius:t,textColor3:r,primaryColor:n,textColor2:a,textColor1:i,fontSize:o,dividerColor:s,hoverColor:l,primaryColorHover:u}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:r,itemColorHover:l,itemColorActive:Ve(n,{alpha:.1}),itemColorActiveHover:Ve(n,{alpha:.1}),itemColorActiveCollapsed:Ve(n,{alpha:.1}),itemTextColor:a,itemTextColorHover:a,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:a,itemTextColorHoverHorizontal:u,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:u,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:a,arrowColorHover:a,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:o,dividerColor:s},pRe("#BBB",n,"#FFF","#AAA"))},gRe={name:"Menu",common:Dt,peers:{Tooltip:cS,Dropdown:Mk},self:VY};var mRe=gRe;const yRe={name:"Menu",common:st,peers:{Tooltip:uS,Dropdown:kk},self(e){const{primaryColor:t,primaryColorSuppl:r}=e,n=VY(e);return n.itemColorActive=Ve(t,{alpha:.15}),n.itemColorActiveHover=Ve(t,{alpha:.15}),n.itemColorActiveCollapsed=Ve(t,{alpha:.15}),n.itemColorActiveInverted=r,n.itemColorActiveHoverInverted=r,n.itemColorActiveCollapsedInverted=r,n}};var bRe=yRe,xRe={titleFontSize:"18px",backSize:"22px"};function wRe(e){const{textColor1:t,textColor2:r,textColor3:n,fontSize:a,fontWeightStrong:i,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},xRe),{titleFontWeight:i,fontSize:a,titleTextColor:t,backColor:r,backColorHover:o,backColorPressed:s,subtitleTextColor:n})}const CRe={name:"PageHeader",common:st,self:wRe};var SRe={iconSize:"22px"};const _Re=e=>{const{fontSize:t,warningColor:r}=e;return Object.assign(Object.assign({},SRe),{fontSize:t,iconColor:r})},BRe={name:"Popconfirm",common:st,peers:{Button:Ci,Popover:AA},self:_Re};var TRe=BRe;const WY=e=>{const{infoColor:t,successColor:r,warningColor:n,errorColor:a,textColor2:i,progressRailColor:o,fontSize:s,fontWeight:l}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:l,railColor:o,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:n,iconColorError:a,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:n,fillColorError:a,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},ERe={name:"Progress",common:Dt,self:WY};var GY=ERe;const IRe={name:"Progress",common:st,self(e){const t=WY(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}};var KY=IRe;const RRe={name:"Rate",common:st,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var DRe=RRe,FRe={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};const jY=e=>{const{textColor2:t,textColor1:r,errorColor:n,successColor:a,infoColor:i,warningColor:o,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},FRe),{lineHeight:s,titleFontWeight:l,titleTextColor:r,textColor:t,iconColorError:n,iconColorSuccess:a,iconColorInfo:i,iconColorWarning:o})},MRe={name:"Result",common:Dt,self:jY};var kRe=MRe;const PRe={name:"Result",common:st,self:jY};var LRe=PRe,YY={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const ORe={name:"Slider",common:st,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,modalColor:n,primaryColorSuppl:a,popoverColor:i,textColor2:o,cardColor:s,borderRadius:l,fontSize:u,opacityDisabled:c}=e;return Object.assign(Object.assign({},YY),{fontSize:u,markFontSize:u,railColor:r,railColorHover:r,fillColor:a,fillColorHover:a,opacityDisabled:c,handleColor:"#FFF",dotColor:s,dotColorModal:n,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:o,indicatorBorderRadius:l,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${a}`,dotBoxShadow:""})}};var $Re=ORe;const URe=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,primaryColor:a,baseColor:i,cardColor:o,modalColor:s,popoverColor:l,borderRadius:u,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},YY),{fontSize:c,markFontSize:c,railColor:n,railColorHover:n,fillColor:a,fillColorHover:a,opacityDisabled:d,handleColor:"#FFF",dotColor:o,dotColorModal:s,dotColorPopover:l,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:r,indicatorTextColor:i,indicatorBorderRadius:u,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${a}`,dotBoxShadow:""})},HRe={name:"Slider",common:Dt,self:URe};var zRe=HRe;const XY=e=>{const{opacityDisabled:t,heightTiny:r,heightSmall:n,heightMedium:a,heightLarge:i,heightHuge:o,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:r,sizeSmall:n,sizeMedium:a,sizeLarge:i,sizeHuge:o,color:s,opacitySpinning:t}},NRe={name:"Spin",common:Dt,self:XY};var QRe=NRe;const VRe={name:"Spin",common:st,self:XY};var WRe=VRe;const qY=e=>{const{textColor2:t,textColor3:r,fontSize:n,fontWeight:a}=e;return{labelFontSize:n,labelFontWeight:a,valueFontWeight:a,valueFontSize:"24px",labelTextColor:r,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},GRe={name:"Statistic",common:Dt,self:qY};var KRe=GRe;const jRe={name:"Statistic",common:st,self:qY};var YRe=jRe,XRe={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};const ZY=e=>{const{fontWeightStrong:t,baseColor:r,textColorDisabled:n,primaryColor:a,errorColor:i,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},XRe),{stepHeaderFontWeight:t,indicatorTextColorProcess:r,indicatorTextColorWait:n,indicatorTextColorFinish:a,indicatorTextColorError:i,indicatorBorderColorProcess:a,indicatorBorderColorWait:n,indicatorBorderColorFinish:a,indicatorBorderColorError:i,indicatorColorProcess:a,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:n,splitorColorWait:n,splitorColorFinish:a,splitorColorError:n,headerTextColorProcess:o,headerTextColorWait:n,headerTextColorFinish:n,headerTextColorError:i,descriptionTextColorProcess:s,descriptionTextColorWait:n,descriptionTextColorFinish:n,descriptionTextColorError:i})},qRe={name:"Steps",common:Dt,self:ZY};var ZRe=qRe;const JRe={name:"Steps",common:st,self:ZY};var eDe=JRe,JY={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const tDe={name:"Switch",common:st,self(e){const{primaryColorSuppl:t,opacityDisabled:r,borderRadius:n,primaryColor:a,textColor2:i,baseColor:o}=e,s="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},JY),{iconColor:o,textColor:i,loadingColor:t,opacityDisabled:r,railColor:s,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 8px 0 ${Ve(a,{alpha:.3})}`})}};var rDe=tDe;const nDe=e=>{const{primaryColor:t,opacityDisabled:r,borderRadius:n,textColor3:a}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},JY),{iconColor:a,textColor:"white",loadingColor:t,opacityDisabled:r,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 0 2px ${Ve(t,{alpha:.2})}`})},aDe={name:"Switch",common:Dt,self:nDe};var iDe=aDe,oDe={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};const eX=e=>{const{dividerColor:t,cardColor:r,modalColor:n,popoverColor:a,tableHeaderColor:i,tableColorStriped:o,textColor1:s,textColor2:l,borderRadius:u,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:A,fontSizeLarge:h}=e;return Object.assign(Object.assign({},oDe),{fontSizeSmall:f,fontSizeMedium:A,fontSizeLarge:h,lineHeight:d,borderRadius:u,borderColor:Et(r,t),borderColorModal:Et(n,t),borderColorPopover:Et(a,t),tdColor:r,tdColorModal:n,tdColorPopover:a,tdColorStriped:Et(r,o),tdColorStripedModal:Et(n,o),tdColorStripedPopover:Et(a,o),thColor:Et(r,i),thColorModal:Et(n,i),thColorPopover:Et(a,i),thTextColor:s,tdTextColor:l,thFontWeight:c})},sDe={name:"Table",common:Dt,self:eX};var lDe=sDe;const uDe={name:"Table",common:st,self:eX};var cDe=uDe,dDe={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};const tX=e=>{const{textColor2:t,primaryColor:r,textColorDisabled:n,closeIconColor:a,closeIconColorHover:i,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:l,tabColor:u,baseColor:c,dividerColor:d,fontWeight:f,textColor1:A,borderRadius:h,fontSize:v,fontWeightStrong:p}=e;return Object.assign(Object.assign({},dDe),{colorSegment:u,tabFontSizeCard:v,tabTextColorLine:A,tabTextColorActiveLine:r,tabTextColorHoverLine:r,tabTextColorDisabledLine:n,tabTextColorSegment:A,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:A,tabTextColorActiveBar:r,tabTextColorHoverBar:r,tabTextColorDisabledBar:n,tabTextColorCard:A,tabTextColorHoverCard:A,tabTextColorActiveCard:r,tabTextColorDisabledCard:n,barColor:r,closeIconColor:a,closeIconColorHover:i,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:l,closeBorderRadius:h,tabColor:u,tabColorSegment:c,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:p})},fDe={name:"Tabs",common:Dt,self:tX};var ADe=fDe;const hDe={name:"Tabs",common:st,self(e){const t=tX(e),{inputColor:r}=e;return t.colorSegment=r,t.tabColorSegment=r,t}};var vDe=hDe;const rX=e=>{const{textColor1:t,textColor2:r,fontWeightStrong:n,fontSize:a}=e;return{fontSize:a,titleTextColor:t,textColor:r,titleFontWeight:n}},pDe={name:"Thing",common:Dt,self:rX};var gDe=pDe;const mDe={name:"Thing",common:st,self:rX};var yDe=mDe,nX={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const bDe={name:"Timeline",common:st,self(e){const{textColor3:t,infoColorSuppl:r,errorColorSuppl:n,successColorSuppl:a,warningColorSuppl:i,textColor1:o,textColor2:s,railColor:l,fontWeightStrong:u,fontSize:c}=e;return Object.assign(Object.assign({},nX),{contentFontSize:c,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${a}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:r,iconColorError:n,iconColorSuccess:a,iconColorWarning:i,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:l})}};var xDe=bDe;const wDe=e=>{const{textColor3:t,infoColor:r,errorColor:n,successColor:a,warningColor:i,textColor1:o,textColor2:s,railColor:l,fontWeightStrong:u,fontSize:c}=e;return Object.assign(Object.assign({},nX),{contentFontSize:c,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${a}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:r,iconColorError:n,iconColorSuccess:a,iconColorWarning:i,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:l})},CDe={name:"Timeline",common:Dt,self:wDe};var SDe=CDe,_De={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const BDe={name:"Transfer",common:st,peers:{Checkbox:Qv,Scrollbar:wi,Input:Ro,Empty:fA,Button:Ci},self(e){const{fontWeight:t,fontSizeLarge:r,fontSizeMedium:n,fontSizeSmall:a,heightLarge:i,heightMedium:o,borderRadius:s,inputColor:l,tableHeaderColor:u,textColor1:c,textColorDisabled:d,textColor2:f,textColor3:A,hoverColor:h,closeColorHover:v,closeColorPressed:p,closeIconColor:g,closeIconColorHover:m,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},_De),{itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:i,fontSizeSmall:a,fontSizeMedium:n,fontSizeLarge:r,borderRadius:s,dividerColor:b,borderColor:"#0000",listColor:l,headerColor:u,titleTextColor:c,titleTextColorDisabled:d,extraTextColor:A,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:h,titleFontWeight:t,closeColorHover:v,closeColorPressed:p,closeIconColor:g,closeIconColorHover:m,closeIconColorPressed:y})}};var TDe=BDe;const aX=e=>{const{borderRadiusSmall:t,hoverColor:r,pressedColor:n,primaryColor:a,textColor3:i,textColor2:o,textColorDisabled:s,fontSize:l}=e;return{fontSize:l,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:Ve(a,{alpha:.1}),arrowColor:i,nodeTextColor:o,nodeTextColorDisabled:s,loadingColor:a,dropMarkColor:a}},EDe={name:"Tree",common:Dt,peers:{Checkbox:Ik,Scrollbar:ul,Empty:Xm},self:aX};var IDe=EDe;const RDe={name:"Tree",common:st,peers:{Checkbox:Qv,Scrollbar:wi,Empty:fA},self(e){const{primaryColor:t}=e,r=aX(e);return r.nodeColorActive=Ve(t,{alpha:.15}),r}};var iX=RDe;const DDe={name:"TreeSelect",common:st,peers:{Tree:iX,Empty:fA,InternalSelection:xk}};var FDe=DDe,MDe={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};const oX=e=>{const{primaryColor:t,textColor2:r,borderColor:n,lineHeight:a,fontSize:i,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:l,textColor1:u,textColor3:c,infoColor:d,warningColor:f,errorColor:A,successColor:h,codeColor:v}=e;return Object.assign(Object.assign({},MDe),{aTextColor:t,blockquoteTextColor:r,blockquotePrefixColor:n,blockquoteLineHeight:a,blockquoteFontSize:i,codeBorderRadius:o,liTextColor:r,liLineHeight:a,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:u,pTextColor:r,pTextColor1Depth:u,pTextColor2Depth:r,pTextColor3Depth:c,pLineHeight:a,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:A,headerBarColorWarning:f,headerBarColorSuccess:h,textColor:r,textColor1Depth:u,textColor2Depth:r,textColor3Depth:c,textColorPrimary:t,textColorInfo:d,textColorSuccess:h,textColorWarning:f,textColorError:A,codeTextColor:r,codeColor:v,codeBorder:"1px solid #0000"})},kDe={name:"Typography",common:Dt,self:oX};var gS=kDe;const PDe={name:"Typography",common:st,self:oX};var LDe=PDe;const sX=e=>{const{iconColor:t,primaryColor:r,errorColor:n,textColor2:a,successColor:i,opacityDisabled:o,actionColor:s,borderColor:l,hoverColor:u,lineHeight:c,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:c,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:u,itemColorHoverError:Ve(n,{alpha:.06}),itemTextColor:a,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${l}`}},ODe={name:"Upload",common:Dt,peers:{Button:ed,Progress:GY},self:sX};var $De=ODe;const UDe={name:"Upload",common:st,peers:{Button:Ci,Progress:KY},self(e){const{errorColor:t}=e,r=sX(e);return r.itemColorHoverError=Ve(t,{alpha:.09}),r}};var HDe=UDe;const zDe={name:"Watermark",common:st,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};var NDe=zDe;const QDe={name:"Watermark",common:Dt,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};var VDe=QDe;const WDe={name:"Row",common:st};var GDe=WDe;const KDe={name:"Image",common:st,peers:{Tooltip:uS},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},jDe=C("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),YDe=C("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),XDe=C("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"}));var qDe=N([N("body >",[M("image-container","position: fixed;")]),M("image-preview-container",`
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
`),M("image-preview-overlay",`
|
|
z-index: -1;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, .3);
|
|
`,[Vf()]),M("image-preview-toolbar",`
|
|
z-index: 1;
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border-radius: var(--n-toolbar-border-radius);
|
|
height: 48px;
|
|
bottom: 40px;
|
|
padding: 0 12px;
|
|
background: var(--n-toolbar-color);
|
|
box-shadow: var(--n-toolbar-box-shadow);
|
|
color: var(--n-toolbar-icon-color);
|
|
transition: color .3s var(--n-bezier);
|
|
display: flex;
|
|
align-items: center;
|
|
`,[M("base-icon",`
|
|
padding: 0 8px;
|
|
font-size: 28px;
|
|
cursor: pointer;
|
|
`),Vf()]),M("image-preview-wrapper",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
pointer-events: none;
|
|
`,[gi()]),M("image-preview",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
pointer-events: all;
|
|
margin: auto;
|
|
max-height: calc(100vh - 32px);
|
|
max-width: calc(100vw - 32px);
|
|
transition: transform .3s var(--n-bezier);
|
|
`),M("image",`
|
|
display: inline-flex;
|
|
max-height: 100%;
|
|
max-width: 100%;
|
|
`,[Nt("preview-disabled",`
|
|
cursor: pointer;
|
|
`),N("img",`
|
|
border-radius: inherit;
|
|
`)])]);const fb=32;var lX=ge({name:"ImagePreview",props:Object.assign(Object.assign({},Kk),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Fe("Image","-image",qDe,PIe,e,Ie(e,"clsPrefix"));let r=null;const n=X(null),a=X(null),i=X(void 0),o=X(!1),s=X(!1),{localeRef:l}=Io("Image");function u(){const{value:Q}=a;if(!r||!Q)return;const{style:J}=Q,U=r.getBoundingClientRect(),K=U.left+U.width/2,q=U.top+U.height/2;J.transformOrigin=`${K}px ${q}px`}function c(Q){var J,U;switch(Q.key){case"ArrowLeft":(J=e.onPrev)===null||J===void 0||J.call(e);break;case"ArrowRight":(U=e.onNext)===null||U===void 0||U.call(e);break;case"Escape":ae();break}}mt(o,Q=>{Q?Zt("keydown",document,c):jt("keydown",document,c)}),kr(()=>{jt("keydown",document,c)});let d=0,f=0,A=0,h=0,v=0,p=0,g=0,m=0,y=!1;function b(Q){const{clientX:J,clientY:U}=Q;A=J-d,h=U-f,lv(ee)}function w(Q){const{mouseUpClientX:J,mouseUpClientY:U,mouseDownClientX:K,mouseDownClientY:q}=Q,ie=K-J,$=q-U,re=`vertical${$>0?"Top":"Bottom"}`,ve=`horizontal${ie>0?"Left":"Right"}`;return{moveVerticalDirection:re,moveHorizontalDirection:ve,deltaHorizontal:ie,deltaVertical:$}}function x(Q){const{value:J}=n;if(!J)return{offsetX:0,offsetY:0};const U=J.getBoundingClientRect(),{moveVerticalDirection:K,moveHorizontalDirection:q,deltaHorizontal:ie,deltaVertical:$}=Q||{};let re=0,ve=0;return U.width<=window.innerWidth?re=0:U.left>0?re=(U.width-window.innerWidth)/2:U.right<window.innerWidth?re=-(U.width-window.innerWidth)/2:q==="horizontalRight"?re=Math.min((U.width-window.innerWidth)/2,v-(ie!=null?ie:0)):re=Math.max(-((U.width-window.innerWidth)/2),v-(ie!=null?ie:0)),U.height<=window.innerHeight?ve=0:U.top>0?ve=(U.height-window.innerHeight)/2:U.bottom<window.innerHeight?ve=-(U.height-window.innerHeight)/2:K==="verticalBottom"?ve=Math.min((U.height-window.innerHeight)/2,p-($!=null?$:0)):ve=Math.max(-((U.height-window.innerHeight)/2),p-($!=null?$:0)),{offsetX:re,offsetY:ve}}function S(Q){jt("mousemove",document,b),jt("mouseup",document,S);const{clientX:J,clientY:U}=Q;y=!1;const K=w({mouseUpClientX:J,mouseUpClientY:U,mouseDownClientX:g,mouseDownClientY:m}),q=x(K);A=q.offsetX,h=q.offsetY,ee()}function _(Q){const{clientX:J,clientY:U}=Q;y=!0,d=J-A,f=U-h,v=A,p=h,g=J,m=U,ee(),Zt("mousemove",document,b),Zt("mouseup",document,S)}function B(){const Q=V();I=I===Q?1:Q,ee()}const T=1.5;let E=0,I=1,R=0;function D(){I=1,E=0}function k(){var Q;D(),R=0,(Q=e.onPrev)===null||Q===void 0||Q.call(e)}function F(){var Q;D(),R=0,(Q=e.onNext)===null||Q===void 0||Q.call(e)}function P(){R-=90,ee()}function O(){R+=90,ee()}function H(){const{value:Q}=n;if(!Q)return 1;const{innerWidth:J,innerHeight:U}=window,K=Math.max(1,Q.naturalHeight/(U-fb)),q=Math.max(1,Q.naturalWidth/(J-fb));return Math.max(3,K*2,q*2)}function V(){const{value:Q}=n;if(!Q)return 1;const{innerWidth:J,innerHeight:U}=window,K=Q.naturalHeight/(U-fb),q=Q.naturalWidth/(J-fb);return K<1&&q<1?1:Math.max(K,q)}function W(){const Q=H();I<Q&&(E+=1,I=Math.min(Q,Math.pow(T,E)),ee())}function Z(){if(I>.5){const Q=I;E-=1,I=Math.max(.5,Math.pow(T,E));const J=Q-I;ee(!1);const U=x();I+=J,ee(!1),I-=J,A=U.offsetX,h=U.offsetY,ee()}}function ee(Q=!0){const{value:J}=n;if(!J)return;const{style:U}=J,K=`transform-origin: center; transform: translateX(${A}px) translateY(${h}px) rotate(${R}deg) scale(${I});`;y?U.cssText="cursor: grabbing; transition: none;"+K:U.cssText="cursor: grab;"+K+(Q?"":"transition: none;"),Q||J.offsetHeight}function ae(){o.value=!o.value,s.value=!0}function ne(){I=V(),E=Math.ceil(Math.log(I)/Math.log(T)),A=0,h=0,ee()}const le={setPreviewSrc:Q=>{i.value=Q},setThumbnailEl:Q=>{r=Q},toggleShow:ae};function se(Q,J){if(e.showToolbarTooltip){const{value:U}=t;return C(dS,{to:!1,theme:U.peers.Tooltip,themeOverrides:U.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>l.value[J],trigger:()=>Q})}else return Q}const ce=L(()=>{const{common:{cubicBezierEaseInOut:Q},self:{toolbarIconColor:J,toolbarBorderRadius:U,toolbarBoxShadow:K,toolbarColor:q}}=t.value;return{"--n-bezier":Q,"--n-toolbar-icon-color":J,"--n-toolbar-color":q,"--n-toolbar-border-radius":U,"--n-toolbar-box-shadow":K}}),{inlineThemeDisabled:ye}=et(),fe=ye?_t("image-preview",void 0,ce,e):void 0;return Object.assign({previewRef:n,previewWrapperRef:a,previewSrc:i,show:o,appear:ji(),displayed:s,handleWheel(Q){Q.preventDefault()},handlePreviewMousedown:_,handlePreviewDblclick:B,syncTransformOrigin:u,handleAfterLeave:()=>{D(),R=0,s.value=!1},handleDragStart:Q=>{Q.preventDefault()},zoomIn:W,zoomOut:Z,rotateCounterclockwise:P,rotateClockwise:O,handleSwitchPrev:k,handleSwitchNext:F,withTooltip:se,resizeToOrignalImageSize:ne,cssVars:ye?void 0:ce,themeClass:fe==null?void 0:fe.themeClass,onRender:fe==null?void 0:fe.onRender},le)},render(){var e,t;const{clsPrefix:r}=this;return C(rr,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),C(jm,{show:this.show},{default:()=>{var n;return this.show||this.displayed?((n=this.onRender)===null||n===void 0||n.call(this),jr(C("div",{class:[`${r}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},C(zr,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?C("div",{class:`${r}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?C(zr,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:a}=this;return C("div",{class:`${r}-image-preview-toolbar`},this.onPrev?C(rr,null,a(C($t,{clsPrefix:r,onClick:this.handleSwitchPrev},{default:()=>jDe}),"tipPrevious"),a(C($t,{clsPrefix:r,onClick:this.handleSwitchNext},{default:()=>YDe}),"tipNext")):null,a(C($t,{clsPrefix:r,onClick:this.rotateCounterclockwise},{default:()=>C(ube,null)}),"tipCounterclockwise"),a(C($t,{clsPrefix:r,onClick:this.rotateClockwise},{default:()=>C(lbe,null)}),"tipClockwise"),a(C($t,{clsPrefix:r,onClick:this.resizeToOrignalImageSize},{default:()=>C(fbe,null)}),"tipOriginalSize"),a(C($t,{clsPrefix:r,onClick:this.zoomOut},{default:()=>C(dbe,null)}),"tipZoomOut"),a(C($t,{clsPrefix:r,onClick:this.zoomIn},{default:()=>C(cbe,null)}),"tipZoomIn"),a(C($t,{clsPrefix:r,onClick:this.toggleShow},{default:()=>XDe}),"tipClose"))}}):null,C(zr,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>jr(C("div",{class:`${r}-image-preview-wrapper`,ref:"previewWrapperRef"},C("img",{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:`${r}-image-preview`,key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart})),[[Bn,this.show]])})),[[Km,{enabled:this.show}]])):null}}))}});const uX="n-image-group",ZDe=Kk;var JDe=ge({name:"ImageGroup",props:ZDe,setup(e){let t;const{mergedClsPrefixRef:r}=et(e),n=`c${yo()}`,a=Ba(),i=l=>{var u;t=l,(u=s.value)===null||u===void 0||u.setPreviewSrc(l)};function o(l){if(!(a!=null&&a.proxy))return;const c=a.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${n}]:not([data-error=true])`);if(!c.length)return;const d=Array.from(c).findIndex(f=>f.dataset.previewSrc===t);~d?i(c[(d+l+c.length)%c.length].dataset.previewSrc):i(c[0].dataset.previewSrc)}Ct(uX,{mergedClsPrefixRef:r,setPreviewSrc:i,setThumbnailEl:l=>{var u;(u=s.value)===null||u===void 0||u.setThumbnailEl(l)},toggleShow:()=>{var l;(l=s.value)===null||l===void 0||l.toggleShow()},groupId:n});const s=X(null);return{mergedClsPrefix:r,previewInstRef:s,next:()=>o(1),prev:()=>o(-1)}},render(){return C(lX,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}});const eFe=Object.assign({alt:String,height:[String,Number],imgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},Kk);var cX=ge({name:"Image",props:eFe,inheritAttrs:!1,setup(e){const t=X(null),r=X(!1),n=Ie(e,"imgProps"),a=X(null),i=We(uX,null),{mergedClsPrefixRef:o}=i||et(e),s={click:()=>{if(e.previewDisabled||r.value)return;const c=e.previewSrc||e.src;if(i){i.setPreviewSrc(c),i.setThumbnailEl(t.value),i.toggleShow();return}const{value:d}=a;!d||(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=X(!e.lazy);Ar(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(i==null?void 0:i.groupId)||"")}),Ar(()=>{if(e0)return;let c;const d=yr(()=>{c==null||c(),c=void 0,e.lazy&&(c=VK(t.value,e.intersectionObserverOptions,l))});kr(()=>{d(),c==null||c()})}),yr(()=>{var c;e.src,(c=e.imgProps)===null||c===void 0||c.src,r.value=!1});const u=X(!1);return Object.assign({mergedClsPrefix:o,groupId:i==null?void 0:i.groupId,previewInstRef:a,imageRef:t,imgProps:n,showError:r,shouldStartLoading:l,loaded:u,mergedOnError:c=>{if(!l.value)return;r.value=!0;const{onError:d,imgProps:{onError:f}={}}=e;d==null||d(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:f}={}}=e;d==null||d(c),f==null||f(c),u.value=!0}},s)},render(){var e,t;const{mergedClsPrefix:r,imgProps:n={},loaded:a,$attrs:i,lazy:o}=this,s=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),l=this.src||n.src||"",u=C("img",Object.assign(Object.assign({},n),{class:n.class,ref:"imageRef",width:this.width||n.width,height:this.height||n.height,src:e0?l:this.showError?this.fallbackSrc:this.shouldStartLoading?l:void 0,alt:this.alt||n.alt,"aria-label":this.alt||n.alt,onClick:this.click,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:o?"lazy":"eager",style:[n.style||"",s&&!a?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return C("div",Object.assign({},i,{role:"none",class:[i.class,`${r}-image`,(this.previewDisabled||this.showError)&&`${r}-image--preview-disabled`]}),this.groupId?u:C(lX,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:r,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>u}),!a&&s)}});function tFe(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function rFe(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function qB(e){return e==null?!0:!Number.isNaN(e)}function g$(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function ZB(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}var nFe=N([M("input-number-suffix",`
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
`),M("input-number-prefix",`
|
|
display: inline-block;
|
|
margin-left: 10px;
|
|
`)]);const m$=800,y$=100,aFe=Object.assign(Object.assign({},Fe.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]});var iFe=ge({name:"InputNumber",props:aFe,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:r,mergedRtlRef:n}=et(e),a=Fe("InputNumber","-input-number",nFe,ZIe,e,r),{localeRef:i}=Io("InputNumber"),o=bi(e),{mergedSizeRef:s,mergedDisabledRef:l,mergedStatusRef:u}=o,c=X(null),d=X(null),f=X(null),A=X(e.defaultValue),h=Ie(e,"value"),v=Sr(h,A),p=X(""),g=$=>{const re=String($).split(".")[1];return re?re.length:0},m=$=>{const re=[e.min,e.max,e.step,$].map(ve=>ve===void 0?0:g(ve));return Math.max(...re)},y=Rt(()=>{const{placeholder:$}=e;return $!==void 0?$:i.value.placeholder}),b=Rt(()=>{const $=ZB(e.step);return $!==null?$===0?1:Math.abs($):1}),w=Rt(()=>{const $=ZB(e.min);return $!==null?$:null}),x=Rt(()=>{const $=ZB(e.max);return $!==null?$:null}),S=$=>{const{value:re}=v;if($===re){B();return}const{"onUpdate:value":ve,onUpdateValue:he,onChange:oe}=e,{nTriggerFormInput:Y,nTriggerFormChange:te}=o;oe&&Ee(oe,$),he&&Ee(he,$),ve&&Ee(ve,$),A.value=$,Y(),te()},_=({offset:$,doUpdateIfValid:re,fixPrecision:ve,isInputing:he})=>{const{value:oe}=p;if(he&&rFe(oe))return!1;const Y=(e.parse||tFe)(oe);if(Y===null)return re&&S(null),null;if(qB(Y)){const te=g(Y),{precision:pe}=e;if(pe!==void 0&&pe<te&&!ve)return!1;let de=parseFloat((Y+$).toFixed(pe!=null?pe:m(Y)));if(qB(de)){const{value:we}=x,{value:De}=w;if(we!==null&&de>we){if(!re||he)return!1;de=we}if(De!==null&&de<De){if(!re||he)return!1;de=De}return e.validator&&!e.validator(de)?!1:(re&&S(de),de)}}return!1},B=()=>{const{value:$}=v;if(qB($)){const{format:re,precision:ve}=e;re?p.value=re($):$===null||ve===void 0||g($)>ve?p.value=g$($,void 0):p.value=g$($,ve)}else p.value=String($)};B();const T=Rt(()=>_({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),E=Rt(()=>{const{value:$}=v;if(e.validator&&$===null)return!1;const{value:re}=b;return _({offset:-re,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),I=Rt(()=>{const{value:$}=v;if(e.validator&&$===null)return!1;const{value:re}=b;return _({offset:+re,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function R($){const{onFocus:re}=e,{nTriggerFormFocus:ve}=o;re&&Ee(re,$),ve()}function D($){var re,ve;if($.target===((re=c.value)===null||re===void 0?void 0:re.wrapperElRef))return;const he=_({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(he!==!1){const te=(ve=c.value)===null||ve===void 0?void 0:ve.inputElRef;te&&(te.value=String(he||"")),v.value===he&&B()}else B();const{onBlur:oe}=e,{nTriggerFormBlur:Y}=o;oe&&Ee(oe,$),Y(),ar(()=>{B()})}function k($){const{onClear:re}=e;re&&Ee(re,$)}function F(){const{value:$}=I;if(!$){se();return}const{value:re}=v;if(re===null)e.validator||S(V());else{const{value:ve}=b;_({offset:ve,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function P(){const{value:$}=E;if(!$){le();return}const{value:re}=v;if(re===null)e.validator||S(V());else{const{value:ve}=b;_({offset:-ve,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const O=R,H=D;function V(){if(e.validator)return null;const{value:$}=w,{value:re}=x;return $!==null?Math.max(0,$):re!==null?Math.min(0,re):0}function W($){k($),S(null)}function Z($){var re,ve,he;!((re=f.value)===null||re===void 0)&&re.$el.contains($.target)&&$.preventDefault(),!((ve=d.value)===null||ve===void 0)&&ve.$el.contains($.target)&&$.preventDefault(),(he=c.value)===null||he===void 0||he.activate()}let ee=null,ae=null,ne=null;function le(){ne&&(window.clearTimeout(ne),ne=null),ee&&(window.clearInterval(ee),ee=null)}function se(){ye&&(window.clearTimeout(ye),ye=null),ae&&(window.clearInterval(ae),ae=null)}function ce(){le(),ne=window.setTimeout(()=>{ee=window.setInterval(()=>{P()},y$)},m$),Zt("mouseup",document,le,{once:!0})}let ye=null;function fe(){se(),ye=window.setTimeout(()=>{ae=window.setInterval(()=>{F()},y$)},m$),Zt("mouseup",document,se,{once:!0})}const Q=()=>{ae||F()},J=()=>{ee||P()};function U($){var re,ve;if($.key==="Enter"){if($.target===((re=c.value)===null||re===void 0?void 0:re.wrapperElRef))return;_({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ve=c.value)===null||ve===void 0||ve.deactivate())}else if($.key==="ArrowUp"){if(!I.value||e.keyboard.ArrowUp===!1)return;$.preventDefault(),_({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&F()}else if($.key==="ArrowDown"){if(!E.value||e.keyboard.ArrowDown===!1)return;$.preventDefault(),_({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&P()}}function K($){p.value=$,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&_({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}mt(v,()=>{B()});const q={focus:()=>{var $;return($=c.value)===null||$===void 0?void 0:$.focus()},blur:()=>{var $;return($=c.value)===null||$===void 0?void 0:$.blur()}},ie=tn("InputNumber",n,r);return Object.assign(Object.assign({},q),{rtlEnabled:ie,inputInstRef:c,minusButtonInstRef:d,addButtonInstRef:f,mergedClsPrefix:r,mergedBordered:t,uncontrolledValue:A,mergedValue:v,mergedPlaceholder:y,displayedValueInvalid:T,mergedSize:s,mergedDisabled:l,displayedValue:p,addable:I,minusable:E,mergedStatus:u,handleFocus:O,handleBlur:H,handleClear:W,handleMouseDown:Z,handleAddClick:Q,handleMinusClick:J,handleAddMousedown:fe,handleMinusMousedown:ce,handleKeyDown:U,handleUpdateDisplayedValue:K,mergedTheme:a,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:L(()=>{const{self:{iconColorDisabled:$}}=a.value,[re,ve,he,oe]=Qn($);return{textColorTextDisabled:`rgb(${re}, ${ve}, ${he})`,opacityDisabled:`${oe}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,r=()=>C(Vs,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>Wt(t["minus-icon"],()=>[C($t,{clsPrefix:e},{default:()=>C(ebe,null)})])}),n=()=>C(Vs,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>Wt(t["add-icon"],()=>[C($t,{clsPrefix:e},{default:()=>C(mk,null)})])});return C("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},C(os,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var a;return this.showButton&&this.buttonPlacement==="both"?[r(),or(t.prefix,i=>i?C("span",{class:`${e}-input-number-prefix`},i):null)]:(a=t.prefix)===null||a===void 0?void 0:a.call(t)},suffix:()=>{var a;return this.showButton?[or(t.suffix,i=>i?C("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?r():null,n()]:(a=t.suffix)===null||a===void 0?void 0:a.call(t)}}))}});const dX="n-layout-sider",mS={type:String,default:"static"};var oFe=M("layout",`
|
|
color: var(--n-text-color);
|
|
background-color: var(--n-color);
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
z-index: auto;
|
|
flex: auto;
|
|
overflow: hidden;
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`,[M("layout-scroll-container",`
|
|
overflow-x: hidden;
|
|
box-sizing: border-box;
|
|
height: 100%;
|
|
`),j("absolute-positioned",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)]);const sFe={embedded:Boolean,position:mS,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},fX="n-layout";function AX(e){return ge({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Fe.props),sFe),setup(t){const r=X(null),n=X(null),{mergedClsPrefixRef:a,inlineThemeDisabled:i}=et(t),o=Fe("Layout","-layout",oFe,pS,t,a);function s(v,p){if(t.nativeScrollbar){const{value:g}=r;g&&(p===void 0?g.scrollTo(v):g.scrollTo(v,p))}else{const{value:g}=n;g&&g.scrollTo(v,p)}}Ct(fX,t);let l=0,u=0;const c=v=>{var p;const g=v.target;l=g.scrollLeft,u=g.scrollTop,(p=t.onScroll)===null||p===void 0||p.call(t,v)};ok(()=>{if(t.nativeScrollbar){const v=r.value;v&&(v.scrollTop=u,v.scrollLeft=l)}});const d={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:s},A=L(()=>{const{common:{cubicBezierEaseInOut:v},self:p}=o.value;return{"--n-bezier":v,"--n-color":t.embedded?p.colorEmbedded:p.color,"--n-text-color":p.textColor}}),h=i?_t("layout",L(()=>t.embedded?"e":""),A,t):void 0;return Object.assign({mergedClsPrefix:a,scrollableElRef:r,scrollbarInstRef:n,hasSiderStyle:d,mergedTheme:o,handleNativeElScroll:c,cssVars:i?void 0:A,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender},f)},render(){var t;const{mergedClsPrefix:r,hasSider:n}=this;(t=this.onRender)===null||t===void 0||t.call(this);const a=n?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${r}-layout-content`,`${r}-layout`,`${r}-layout--${this.position}-positioned`];return C("div",{class:i,style:this.cssVars},this.nativeScrollbar?C("div",{ref:"scrollableElRef",class:`${r}-layout-scroll-container`,style:[this.contentStyle,a],onScroll:this.handleNativeElScroll},this.$slots):C(Un,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,a]}),this.$slots))}})}var lFe=AX(!1),uFe=AX(!0),cFe=M("layout-header",`
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
background-color: var(--n-color);
|
|
color: var(--n-text-color);
|
|
`,[j("absolute-positioned",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
`),j("bordered",`
|
|
border-bottom: solid 1px var(--n-border-color);
|
|
`)]);const dFe={position:mS,inverted:Boolean,bordered:{type:Boolean,default:!1}};var fFe=ge({name:"LayoutHeader",props:Object.assign(Object.assign({},Fe.props),dFe),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Layout","-layout-header",cFe,pS,e,t),a=L(()=>{const{common:{cubicBezierEaseInOut:o},self:s}=n.value,l={"--n-bezier":o};return e.inverted?(l["--n-color"]=s.headerColorInverted,l["--n-text-color"]=s.textColorInverted,l["--n-border-color"]=s.headerBorderColorInverted):(l["--n-color"]=s.headerColor,l["--n-text-color"]=s.textColor,l["--n-border-color"]=s.headerBorderColor),l}),i=r?_t("layout-header",L(()=>e.inverted?"a":"b"),a,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),C("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),AFe=M("layout-footer",`
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
background-color: var(--n-color);
|
|
box-sizing: border-box;
|
|
`,[j("absolute-positioned",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
`),j("bordered",`
|
|
border-top: solid 1px var(--n-border-color);
|
|
`)]);const hFe=Object.assign(Object.assign({},Fe.props),{inverted:Boolean,position:mS,bordered:Boolean});var vFe=ge({name:"LayoutFooter",props:hFe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Layout","-layout-footer",AFe,pS,e,t),a=L(()=>{const{common:{cubicBezierEaseInOut:o},self:s}=n.value,l={"--n-bezier":o};return e.inverted?(l["--n-color"]=s.footerColorInverted,l["--n-text-color"]=s.textColorInverted,l["--n-border-color"]=s.footerBorderColorInverted):(l["--n-color"]=s.footerColor,l["--n-text-color"]=s.textColor,l["--n-border-color"]=s.footerBorderColor),l}),i=r?_t("layout-footer",L(()=>e.inverted?"a":"b"),a,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),C("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),pFe=M("layout-sider",`
|
|
flex-shrink: 0;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
z-index: 1;
|
|
color: var(--n-text-color);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier),
|
|
min-width .3s var(--n-bezier),
|
|
max-width .3s var(--n-bezier),
|
|
transform .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
background-color: var(--n-color);
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
`,[j("bordered",[G("border",`
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 1px;
|
|
background-color: var(--n-border-color);
|
|
transition: background-color .3s var(--n-bezier);
|
|
`)]),G("left-placement",[j("bordered",[G("border",`
|
|
right: 0;
|
|
`)])]),j("right-placement",`
|
|
justify-content: flex-start;
|
|
`,[j("bordered",[G("border",`
|
|
left: 0;
|
|
`)]),j("collapsed",[M("layout-toggle-button",[M("base-icon",`
|
|
transform: rotate(180deg);
|
|
`)]),M("layout-toggle-bar",[N("&:hover",[G("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),G("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),M("layout-toggle-button",`
|
|
left: 0;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
`,[M("base-icon",`
|
|
transform: rotate(0);
|
|
`)]),M("layout-toggle-bar",`
|
|
left: -28px;
|
|
transform: rotate(180deg);
|
|
`,[N("&:hover",[G("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),G("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),j("collapsed",[M("layout-toggle-bar",[N("&:hover",[G("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),G("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),M("layout-toggle-button",[M("base-icon",`
|
|
transform: rotate(0);
|
|
`)])]),M("layout-toggle-button",`
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
right .3s var(--n-bezier),
|
|
left .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
cursor: pointer;
|
|
width: 24px;
|
|
height: 24px;
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
color: var(--n-toggle-button-icon-color);
|
|
border: var(--n-toggle-button-border);
|
|
background-color: var(--n-toggle-button-color);
|
|
box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);
|
|
transform: translateX(50%) translateY(-50%);
|
|
z-index: 1;
|
|
`,[M("base-icon",`
|
|
transition: transform .3s var(--n-bezier);
|
|
transform: rotate(180deg);
|
|
`)]),M("layout-toggle-bar",`
|
|
cursor: pointer;
|
|
height: 72px;
|
|
width: 32px;
|
|
position: absolute;
|
|
top: calc(50% - 36px);
|
|
right: -28px;
|
|
`,[G("top, bottom",`
|
|
position: absolute;
|
|
width: 4px;
|
|
border-radius: 2px;
|
|
height: 38px;
|
|
left: 14px;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
transform .3s var(--n-bezier);
|
|
`),G("bottom",`
|
|
position: absolute;
|
|
top: 34px;
|
|
`),N("&:hover",[G("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),G("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),G("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),N("&:hover",[G("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),G("border",`
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 1px;
|
|
transition: background-color .3s var(--n-bezier);
|
|
`),M("layout-sider-scroll-container",`
|
|
flex-grow: 1;
|
|
flex-shrink: 0;
|
|
box-sizing: border-box;
|
|
height: 100%;
|
|
opacity: 0;
|
|
transition: opacity .3s var(--n-bezier);
|
|
max-width: 100%;
|
|
`),j("show-content",[M("layout-sider-scroll-container",{opacity:1})]),j("absolute-positioned",`
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)]),gFe=ge({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return C("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},C($t,{clsPrefix:e},{default:()=>C(oS,null)}))}}),mFe=ge({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return C("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},C("div",{class:`${e}-layout-toggle-bar__top`}),C("div",{class:`${e}-layout-toggle-bar__bottom`}))}});const yFe={position:mS,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function};var bFe=ge({name:"LayoutSider",props:Object.assign(Object.assign({},Fe.props),yFe),setup(e){const t=We(fX),r=X(null),n=X(null),a=L(()=>pr(l.value?e.collapsedWidth:e.width)),i=L(()=>e.collapseMode!=="transform"?{}:{minWidth:pr(e.width)}),o=L(()=>t?t.siderPlacement:"left"),s=X(e.defaultCollapsed),l=Sr(Ie(e,"collapsed"),s);function u(w,x){if(e.nativeScrollbar){const{value:S}=r;S&&(x===void 0?S.scrollTo(w):S.scrollTo(w,x))}else{const{value:S}=n;S&&S.scrollTo(w,x)}}function c(){const{"onUpdate:collapsed":w,onUpdateCollapsed:x,onExpand:S,onCollapse:_}=e,{value:B}=l;x&&Ee(x,!B),w&&Ee(w,!B),s.value=!B,B?S&&Ee(S):_&&Ee(_)}let d=0,f=0;const A=w=>{var x;const S=w.target;d=S.scrollLeft,f=S.scrollTop,(x=e.onScroll)===null||x===void 0||x.call(e,w)};ok(()=>{if(e.nativeScrollbar){const w=r.value;w&&(w.scrollTop=f,w.scrollLeft=d)}}),Ct(dX,{collapsedRef:l,collapseModeRef:Ie(e,"collapseMode")});const{mergedClsPrefixRef:h,inlineThemeDisabled:v}=et(e),p=Fe("Layout","-layout-sider",pFe,pS,e,h);function g(w){var x,S;w.propertyName==="max-width"&&(l.value?(x=e.onAfterLeave)===null||x===void 0||x.call(e):(S=e.onAfterEnter)===null||S===void 0||S.call(e))}const m={scrollTo:u},y=L(()=>{const{common:{cubicBezierEaseInOut:w},self:x}=p.value,{siderToggleButtonColor:S,siderToggleButtonBorder:_,siderToggleBarColor:B,siderToggleBarColorHover:T}=x,E={"--n-bezier":w,"--n-toggle-button-color":S,"--n-toggle-button-border":_,"--n-toggle-bar-color":B,"--n-toggle-bar-color-hover":T};return e.inverted?(E["--n-color"]=x.siderColorInverted,E["--n-text-color"]=x.textColorInverted,E["--n-border-color"]=x.siderBorderColorInverted,E["--n-toggle-button-icon-color"]=x.siderToggleButtonIconColorInverted,E.__invertScrollbar=x.__invertScrollbar):(E["--n-color"]=x.siderColor,E["--n-text-color"]=x.textColor,E["--n-border-color"]=x.siderBorderColor,E["--n-toggle-button-icon-color"]=x.siderToggleButtonIconColor),E}),b=v?_t("layout-sider",L(()=>e.inverted?"a":"b"),y,e):void 0;return Object.assign({scrollableElRef:r,scrollbarInstRef:n,mergedClsPrefix:h,mergedTheme:p,styleMaxWidth:a,mergedCollapsed:l,scrollContainerStyle:i,siderPlacement:o,handleNativeElScroll:A,handleTransitionend:g,handleTriggerClick:c,inlineThemeDisabled:v,cssVars:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender},m)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:r,showTrigger:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),C("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,r&&`${t}-layout-sider--collapsed`,(!r||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:pr(this.width)}]},this.nativeScrollbar?C("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):C(Un,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),n?n==="bar"?C(mFe,{clsPrefix:t,style:r?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):C(gFe,{clsPrefix:t,style:r?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?C("div",{class:`${t}-layout-sider__border`}):null)}}),xFe={extraFontSize:"12px",width:"440px"};const wFe={name:"Transfer",common:st,peers:{Checkbox:Qv,Scrollbar:wi,Input:Ro,Empty:fA,Button:Ci},self(e){const{iconColorDisabled:t,iconColor:r,fontWeight:n,fontSizeLarge:a,fontSizeMedium:i,fontSizeSmall:o,heightLarge:s,heightMedium:l,heightSmall:u,borderRadius:c,inputColor:d,tableHeaderColor:f,textColor1:A,textColorDisabled:h,textColor2:v,hoverColor:p}=e;return Object.assign(Object.assign({},xFe),{itemHeightSmall:u,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,borderRadius:c,borderColor:"#0000",listColor:d,headerColor:f,titleTextColor:A,titleTextColorDisabled:h,extraTextColor:v,filterDividerColor:"#0000",itemTextColor:v,itemTextColorDisabled:h,itemColorPending:p,titleFontWeight:n,iconColor:r,iconColorDisabled:t})}};var CFe=wFe,SFe=N([M("list",`
|
|
--n-merged-border-color: var(--n-border-color);
|
|
--n-merged-color: var(--n-color);
|
|
--n-merged-color-hover: var(--n-color-hover);
|
|
margin: 0;
|
|
font-size: var(--n-font-size);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
padding: 0;
|
|
list-style-type: none;
|
|
color: var(--n-text-color);
|
|
background-color: var(--n-merged-color);
|
|
`,[j("show-divider",[M("list-item",[N("&:not(:last-child)",[G("divider",`
|
|
background-color: var(--n-merged-border-color);
|
|
`)])])]),j("clickable",[M("list-item",`
|
|
cursor: pointer;
|
|
`)]),j("bordered",`
|
|
border: 1px solid var(--n-merged-border-color);
|
|
border-radius: var(--n-border-radius);
|
|
`),j("hoverable",[M("list-item",`
|
|
border-radius: var(--n-border-radius);
|
|
`,[N("&:hover",`
|
|
background-color: var(--n-merged-color-hover);
|
|
`,[G("divider",`
|
|
background-color: transparent;
|
|
`)])])]),j("bordered, hoverable",[M("list-item",`
|
|
padding: 12px 20px;
|
|
`),G("header, footer",`
|
|
padding: 12px 20px;
|
|
`)]),G("header, footer",`
|
|
padding: 12px 0;
|
|
box-sizing: border-box;
|
|
transition: border-color .3s var(--n-bezier);
|
|
`,[N("&:not(:last-child)",`
|
|
border-bottom: 1px solid var(--n-merged-border-color);
|
|
`)]),M("list-item",`
|
|
position: relative;
|
|
padding: 12px 0;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`,[G("prefix",`
|
|
margin-right: 20px;
|
|
flex: 0;
|
|
`),G("suffix",`
|
|
margin-left: 20px;
|
|
flex: 0;
|
|
`),G("main",`
|
|
flex: 1;
|
|
`),G("divider",`
|
|
height: 1px;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background-color: transparent;
|
|
transition: background-color .3s var(--n-bezier);
|
|
pointer-events: none;
|
|
`)])]),su(M("list",`
|
|
--n-merged-color-hover: var(--n-color-hover-modal);
|
|
--n-merged-color: var(--n-color-modal);
|
|
--n-merged-border-color: var(--n-border-color-modal);
|
|
`)),Kc(M("list",`
|
|
--n-merged-color-hover: var(--n-color-hover-popover);
|
|
--n-merged-color: var(--n-color-popover);
|
|
--n-merged-border-color: var(--n-border-color-popover);
|
|
`))]);const _Fe=Object.assign(Object.assign({},Fe.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),hX="n-list";var BFe=ge({name:"List",props:_Fe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=et(e),a=tn("List",n,t),i=Fe("List","-list",SFe,aRe,e,t);Ct(hX,{showDividerRef:Ie(e,"showDivider"),mergedClsPrefixRef:t});const o=L(()=>{const{common:{cubicBezierEaseInOut:l},self:{fontSize:u,textColor:c,color:d,colorModal:f,colorPopover:A,borderColor:h,borderColorModal:v,borderColorPopover:p,borderRadius:g,colorHover:m,colorHoverModal:y,colorHoverPopover:b}}=i.value;return{"--n-font-size":u,"--n-bezier":l,"--n-text-color":c,"--n-color":d,"--n-border-radius":g,"--n-border-color":h,"--n-border-color-modal":v,"--n-border-color-popover":p,"--n-color-modal":f,"--n-color-popover":A,"--n-color-hover":m,"--n-color-hover-modal":y,"--n-color-hover-popover":b}}),s=r?_t("list",void 0,o,e):void 0;return{mergedClsPrefix:t,rtlEnabled:a,cssVars:r?void 0:o,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:r,onRender:n}=this;return n==null||n(),C("ul",{class:[`${r}-list`,this.rtlEnabled&&`${r}-list--rtl`,this.bordered&&`${r}-list--bordered`,this.showDivider&&`${r}-list--show-divider`,this.hoverable&&`${r}-list--hoverable`,this.clickable&&`${r}-list--clickable`,this.themeClass],style:this.cssVars},t.header?C("div",{class:`${r}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?C("div",{class:`${r}-list__footer`},t.footer()):null)}}),TFe=ge({name:"ListItem",setup(){const e=We(hX,null);return e||Ta("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return C("li",{class:`${t}-list-item`},e.prefix?C("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?C("div",{class:`${t}-list-item__main`},e):null,e.suffix?C("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&C("div",{class:`${t}-list-item__divider`}))}});const vX="n-loading-bar",pX="n-loading-bar-api";var EFe=M("loading-bar-container",`
|
|
z-index: 5999;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
`,[Vf({enterDuration:"0.3s",leaveDuration:"0.8s"}),M("loading-bar",`
|
|
width: 100%;
|
|
transition:
|
|
max-width 4s linear,
|
|
background .2s linear;
|
|
height: var(--n-height);
|
|
`,[j("starting",`
|
|
background: var(--n-color-loading);
|
|
`),j("finishing",`
|
|
background: var(--n-color-loading);
|
|
transition:
|
|
max-width .2s linear,
|
|
background .2s linear;
|
|
`),j("error",`
|
|
background: var(--n-color-error);
|
|
transition:
|
|
max-width .2s linear,
|
|
background .2s linear;
|
|
`)])]),JB=globalThis&&globalThis.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};function Ab(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}var IFe=ge({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=et(),{props:t,mergedClsPrefixRef:r}=We(vX),n=X(null),a=X(!1),i=X(!1),o=X(!1),s=X(!1);let l=!1;const u=X(!1),c=L(()=>{const{loadingBarStyle:w}=t;return w?w[u.value?"error":"loading"]:""});function d(){return JB(this,void 0,void 0,function*(){a.value=!1,o.value=!1,l=!1,u.value=!1,s.value=!0,yield ar(),s.value=!1})}function f(w=0,x=80,S="starting"){return JB(this,void 0,void 0,function*(){yield d(),o.value=!0,i.value=!0,yield ar();const _=n.value;!_||(_.style.maxWidth=`${w}%`,_.style.transition="none",_.offsetWidth,_.className=Ab(S,r.value),_.style.transition="",_.style.maxWidth=`${x}%`)})}function A(){if(l||u.value||!o.value)return;l=!0;const w=n.value;!w||(w.className=Ab("finishing",r.value),w.style.maxWidth="100%",w.offsetWidth,o.value=!1)}function h(){if(!(l||u.value))if(!o.value)f(100,100,"error").then(()=>{u.value=!0;const w=n.value;!w||(w.className=Ab("error",r.value),w.offsetWidth,o.value=!1)});else{u.value=!0;const w=n.value;if(!w)return;w.className=Ab("error",r.value),w.style.maxWidth="100%",w.offsetWidth,o.value=!1}}function v(){a.value=!0}function p(){a.value=!1}function g(){return JB(this,void 0,void 0,function*(){yield d()})}const m=Fe("LoadingBar","-loading-bar",EFe,dRe,t,r),y=L(()=>{const{self:{height:w,colorError:x,colorLoading:S}}=m.value;return{"--n-height":w,"--n-color-loading":S,"--n-color-error":x}}),b=e?_t("loading-bar",void 0,y,t):void 0;return{mergedClsPrefix:r,loadingBarRef:n,started:i,loading:o,entering:a,transitionDisabled:s,start:f,error:h,finish:A,handleEnter:v,handleAfterEnter:p,handleAfterLeave:g,mergedLoadingBarStyle:c,cssVars:e?void 0:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return C(zr,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),jr(C("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},C("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Bn,this.loading||!this.loading&&this.entering]])}})}});const RFe=Object.assign(Object.assign({},Fe.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}});var gX=ge({name:"LoadingBarProvider",props:RFe,setup(e){const t=ji(),r=X(null),n={start(){var i;t.value?(i=r.value)===null||i===void 0||i.start():ar(()=>{var o;(o=r.value)===null||o===void 0||o.start()})},error(){var i;t.value?(i=r.value)===null||i===void 0||i.error():ar(()=>{var o;(o=r.value)===null||o===void 0||o.error()})},finish(){var i;t.value?(i=r.value)===null||i===void 0||i.finish():ar(()=>{var o;(o=r.value)===null||o===void 0||o.finish()})}},{mergedClsPrefixRef:a}=et(e);return Ct(pX,n),Ct(vX,{props:e,mergedClsPrefixRef:a}),Object.assign(n,{loadingBarRef:r})},render(){var e,t;return C(rr,null,C(kv,{disabled:this.to===!1,to:this.to||"body"},C(IFe,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function DFe(){const e=We(pX,null);return e===null&&Ta("use-loading-bar","No outer <n-loading-bar-provider /> founded."),e}const ry="n-menu",jk="n-submenu",Yk="n-menu-item-group",hb=8;function Xk(e){const t=We(ry),{props:r,mergedCollapsedRef:n}=t,a=We(jk,null),i=We(Yk,null),o=L(()=>r.mode==="horizontal"),s=L(()=>o.value?r.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=L(()=>{var f;return Math.max((f=r.collapsedIconSize)!==null&&f!==void 0?f:r.iconSize,r.iconSize)}),u=L(()=>{var f;return!o.value&&e.root&&n.value&&(f=r.collapsedIconSize)!==null&&f!==void 0?f:r.iconSize}),c=L(()=>{if(o.value)return;const{collapsedWidth:f,indent:A,rootIndent:h}=r,{root:v,isGroup:p}=e,g=h===void 0?A:h;if(v)return n.value?f/2-l.value/2:g;if(i)return A/2+i.paddingLeftRef.value;if(a)return(p?A/2:A)+a.paddingLeftRef.value}),d=L(()=>{const{collapsedWidth:f,indent:A,rootIndent:h}=r,{value:v}=l,{root:p}=e;return o.value||!p||!n.value?hb:(h===void 0?A:h)+v+hb-(f+v)/2});return{dropdownPlacement:s,activeIconSize:u,maxIconSize:l,paddingLeft:c,iconMarginRight:d,NMenu:t,NSubmenu:a}}const qk={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},mX=Object.assign(Object.assign({},qk),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),FFe=ge({name:"MenuOptionGroup",props:mX,setup(e){Ct(jk,null);const t=Xk(e);Ct(Yk,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:r,props:n}=We(ry);return function(){const{value:a}=r,i=t.paddingLeft.value,{nodeProps:o}=n,s=o==null?void 0:o(e.tmNode.rawNode);return C("div",{class:`${a}-menu-item-group`,role:"group"},C("div",Object.assign({},s,{class:[`${a}-menu-item-group-title`,s==null?void 0:s.class],style:[(s==null?void 0:s.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),Mr(e.title),e.extra?C(rr,null," ",Mr(e.extra)):null),C("div",null,e.tmNodes.map(l=>Zk(l,n))))}}});var yX=ge({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=We(ry);return{menuProps:t,style:L(()=>{const{paddingLeft:r}=e;return{paddingLeft:r&&`${r}px`}}),iconStyle:L(()=>{const{maxIconSize:r,activeIconSize:n,iconMarginRight:a}=e;return{width:`${r}px`,height:`${r}px`,fontSize:`${n}px`,marginRight:`${a}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:r,renderLabel:n,renderExtra:a,expandIcon:i}}=this,o=r?r(t.rawNode):Mr(this.icon);return C("div",{onClick:s=>{var l;(l=this.onClick)===null||l===void 0||l.call(this,s)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},o&&C("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[o]),C("div",{class:`${e}-menu-item-content-header`,role:"none"},n?n(t.rawNode):Mr(this.title),this.extra||a?C("span",{class:`${e}-menu-item-content-header__extra`}," ",a?a(t.rawNode):Mr(this.extra)):null),this.showArrow?C($t,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):C(ibe,null)}):null)}});const bX=Object.assign(Object.assign({},qk),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),MFe=ge({name:"Submenu",props:bX,setup(e){const t=Xk(e),{NMenu:r,NSubmenu:n}=t,{props:a,mergedCollapsedRef:i,mergedThemeRef:o}=r,s=L(()=>{const{disabled:f}=e;return n!=null&&n.mergedDisabledRef.value||a.disabled?!0:f}),l=X(!1);Ct(jk,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),Ct(Yk,null);function u(){const{onClick:f}=e;f&&f()}function c(){s.value||(i.value||r.toggleExpand(e.internalKey),u())}function d(f){l.value=f}return{menuProps:a,mergedTheme:o,doSelect:r.doSelect,inverted:r.invertedRef,isHorizontal:r.isHorizontalRef,mergedClsPrefix:r.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:r.mergedValueRef,childActive:Rt(()=>r.activePathRef.value.includes(e.internalKey)),collapsed:L(()=>a.mode==="horizontal"?!1:i.value?!0:!r.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:L(()=>!s.value&&(a.mode==="horizontal"||i.value)),handlePopoverShowChange:d,handleClick:c}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:r,renderLabel:n}}=this,a=()=>{const{isHorizontal:o,paddingLeft:s,collapsed:l,mergedDisabled:u,maxIconSize:c,activeIconSize:d,title:f,childActive:A,icon:h,handleClick:v,menuProps:{nodeProps:p},dropdownShow:g,iconMarginRight:m,tmNode:y,mergedClsPrefix:b}=this,w=p==null?void 0:p(y.rawNode);return C("div",Object.assign({},w,{class:[`${b}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),C(yX,{tmNode:y,paddingLeft:s,collapsed:l,disabled:u,iconMarginRight:m,maxIconSize:c,activeIconSize:d,title:f,extra:this.extra,showArrow:!o,childActive:A,clsPrefix:b,icon:h,hover:g,onClick:v}))},i=()=>C(ll,null,{default:()=>{const{tmNodes:o,collapsed:s}=this;return s?null:C("div",{class:`${t}-submenu-children`,role:"menu"},o.map(l=>Zk(l,this.menuProps)))}});return this.root?C(Uk,Object.assign({size:"large"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,trigger:"hover",disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:r,renderLabel:n}),{default:()=>C("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},a(),this.isHorizontal?null:i())}):C("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},a(),i())}}),xX=Object.assign(Object.assign({},qk),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),kFe=ge({name:"MenuOption",props:xX,setup(e){const t=Xk(e),{NSubmenu:r,NMenu:n}=t,{props:a,mergedClsPrefixRef:i,mergedCollapsedRef:o}=n,s=r?r.mergedDisabledRef:{value:!1},l=L(()=>s.value||e.disabled);function u(d){const{onClick:f}=e;f&&f(d)}function c(d){l.value||(n.doSelect(e.internalKey,e.tmNode.rawNode),u(d))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:n.mergedThemeRef,menuProps:a,dropdownEnabled:Rt(()=>e.root&&o.value&&a.mode!=="horizontal"&&!l.value),selected:Rt(()=>n.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:c}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:r,menuProps:{renderLabel:n,nodeProps:a}}=this,i=a==null?void 0:a(r.rawNode);return C("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),C(dS,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>n?n(r.rawNode):Mr(this.title),trigger:()=>C(yX,{tmNode:r,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}});var PFe=ge({name:"MenuDivider",setup(){const e=We(ry),{mergedClsPrefixRef:t,isHorizontalRef:r}=e;return()=>r.value?null:C("div",{class:`${t.value}-menu-divider`})}});const LFe=Zs(mX),OFe=Zs(xX),$Fe=Zs(bX);function wX(e){return e.type==="divider"||e.type==="render"}function UFe(e){return e.type==="divider"}function Zk(e,t){const{rawNode:r}=e,{show:n}=r;if(n===!1)return null;if(wX(r))return UFe(r)?C(PFe,Object.assign({key:e.key},r.props)):null;const{labelField:a}=t,{key:i,level:o,isGroup:s}=e,l=Object.assign(Object.assign({},r),{title:r.title||r[a],extra:r.titleExtra||r.extra,key:i,internalKey:i,level:o,root:o===0,isGroup:s});return e.children?e.isGroup?C(FFe,zi(l,LFe,{tmNode:e,tmNodes:e.children,key:i})):C(MFe,zi(l,$Fe,{key:i,rawNodes:r[t.childrenField],tmNodes:e.children,tmNode:e})):C(kFe,zi(l,OFe,{key:i,tmNode:e}))}const b$=[N("&::before","background-color: var(--n-item-color-hover);"),G("arrow",`
|
|
color: var(--n-arrow-color-hover);
|
|
`),G("icon",`
|
|
color: var(--n-item-icon-color-hover);
|
|
`),M("menu-item-content-header",`
|
|
color: var(--n-item-text-color-hover);
|
|
`,[N("a",`
|
|
color: var(--n-item-text-color-hover);
|
|
`),G("extra",`
|
|
color: var(--n-item-text-color-hover);
|
|
`)])],x$=[G("icon",`
|
|
color: var(--n-item-icon-color-hover-horizontal);
|
|
`),M("menu-item-content-header",`
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|
`,[N("a",`
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|
`),G("extra",`
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|
`)])];var HFe=N([M("menu",`
|
|
background-color: var(--n-color);
|
|
color: var(--n-item-text-color);
|
|
overflow: hidden;
|
|
transition: background-color .3s var(--n-bezier);
|
|
box-sizing: border-box;
|
|
font-size: var(--n-font-size);
|
|
padding-bottom: 6px;
|
|
`,[j("horizontal",`
|
|
display: inline-flex;
|
|
padding-bottom: 0;
|
|
`,[M("submenu","margin: 0;"),M("menu-item","margin: 0;"),M("menu-item-content",`
|
|
padding: 0 20px;
|
|
border-bottom: 2px solid #0000;
|
|
`,[N("&::before","display: none;"),j("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),M("menu-item-content",[j("selected",[G("icon","color: var(--n-item-icon-color-active-horizontal);"),M("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active-horizontal);
|
|
`,[N("a","color: var(--n-item-text-color-active-horizontal);"),G("extra","color: var(--n-item-text-color-active-horizontal);")])]),j("child-active",`
|
|
border-bottom: 2px solid var(--n-border-color-horizontal);
|
|
`,[M("menu-item-content-header",`
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|
`,[N("a",`
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|
`),G("extra",`
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|
`)]),G("icon",`
|
|
color: var(--n-item-icon-color-child-active-horizontal);
|
|
`)]),Nt("disabled",[Nt("selected, child-active",[N("&:focus-within",x$)]),j("selected",[md(null,[G("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),M("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active-hover-horizontal);
|
|
`,[N("a","color: var(--n-item-text-color-active-hover-horizontal);"),G("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),j("child-active",[md(null,[G("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),M("menu-item-content-header",`
|
|
color: var(--n-item-text-color-child-active-hover-horizontal);
|
|
`,[N("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),G("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),md("border-bottom: 2px solid var(--n-border-color-horizontal);",x$)]),M("menu-item-content-header",[N("a","color: var(--n-item-text-color-horizontal);")])])]),j("collapsed",[M("menu-item-content",[j("selected",[N("&::before",`
|
|
background-color: var(--n-item-color-active-collapsed) !important;
|
|
`)]),M("menu-item-content-header","opacity: 0;"),G("arrow","opacity: 0;"),G("icon","color: var(--n-item-icon-color-collapsed);")])]),M("menu-item",`
|
|
height: var(--n-item-height);
|
|
margin-top: 6px;
|
|
position: relative;
|
|
`),M("menu-item-content",`
|
|
box-sizing: border-box;
|
|
line-height: 1.75;
|
|
height: 100%;
|
|
display: grid;
|
|
grid-template-areas: "icon content arrow";
|
|
grid-template-columns: auto 1fr auto;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
position: relative;
|
|
padding-right: 18px;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
padding-left .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`,[N("> *","z-index: 1;"),N("&::before",`
|
|
z-index: auto;
|
|
content: "";
|
|
background-color: #0000;
|
|
position: absolute;
|
|
left: 8px;
|
|
right: 8px;
|
|
top: 0;
|
|
bottom: 0;
|
|
pointer-events: none;
|
|
border-radius: var(--n-border-radius);
|
|
transition: background-color .3s var(--n-bezier);
|
|
`),j("disabled",`
|
|
opacity: .45;
|
|
cursor: not-allowed;
|
|
`),j("collapsed",[G("arrow","transform: rotate(0);")]),j("selected",[N("&::before","background-color: var(--n-item-color-active);"),G("arrow","color: var(--n-arrow-color-active);"),G("icon","color: var(--n-item-icon-color-active);"),M("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active);
|
|
`,[N("a","color: var(--n-item-text-color-active);"),G("extra","color: var(--n-item-text-color-active);")])]),j("child-active",[M("menu-item-content-header",`
|
|
color: var(--n-item-text-color-child-active);
|
|
`,[N("a",`
|
|
color: var(--n-item-text-color-child-active);
|
|
`),G("extra",`
|
|
color: var(--n-item-text-color-child-active);
|
|
`)]),G("arrow",`
|
|
color: var(--n-arrow-color-child-active);
|
|
`),G("icon",`
|
|
color: var(--n-item-icon-color-child-active);
|
|
`)]),Nt("disabled",[Nt("selected, child-active",[N("&:focus-within",b$)]),j("selected",[md(null,[G("arrow","color: var(--n-arrow-color-active-hover);"),G("icon","color: var(--n-item-icon-color-active-hover);"),M("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active-hover);
|
|
`,[N("a","color: var(--n-item-text-color-active-hover);"),G("extra","color: var(--n-item-text-color-active-hover);")])])]),j("child-active",[md(null,[G("arrow","color: var(--n-arrow-color-child-active-hover);"),G("icon","color: var(--n-item-icon-color-child-active-hover);"),M("menu-item-content-header",`
|
|
color: var(--n-item-text-color-child-active-hover);
|
|
`,[N("a","color: var(--n-item-text-color-child-active-hover);"),G("extra","color: var(--n-item-text-color-child-active-hover);")])])]),j("selected",[md(null,[N("&::before","background-color: var(--n-item-color-active-hover);")])]),md(null,b$)]),G("icon",`
|
|
grid-area: icon;
|
|
color: var(--n-item-icon-color);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
font-size .3s var(--n-bezier),
|
|
margin-right .3s var(--n-bezier);
|
|
box-sizing: content-box;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`),G("arrow",`
|
|
grid-area: arrow;
|
|
font-size: 16px;
|
|
color: var(--n-arrow-color);
|
|
transform: rotate(180deg);
|
|
opacity: 1;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
transform 0.2s var(--n-bezier),
|
|
opacity 0.2s var(--n-bezier);
|
|
`),M("menu-item-content-header",`
|
|
grid-area: content;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier);
|
|
opacity: 1;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--n-item-text-color);
|
|
`,[N("a",`
|
|
outline: none;
|
|
text-decoration: none;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-item-text-color);
|
|
`,[N("&::before",`
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)]),G("extra",`
|
|
font-size: .93em;
|
|
color: var(--n-group-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`)])]),M("submenu",`
|
|
cursor: pointer;
|
|
position: relative;
|
|
margin-top: 6px;
|
|
`,[M("menu-item-content",`
|
|
height: var(--n-item-height);
|
|
`),M("submenu-children",`
|
|
overflow: hidden;
|
|
padding: 0;
|
|
`,[Yl({duration:".2s"})])]),M("menu-item-group",[M("menu-item-group-title",`
|
|
margin-top: 6px;
|
|
color: var(--n-group-text-color);
|
|
cursor: default;
|
|
font-size: .93em;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
transition:
|
|
padding-left .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`)])]),M("menu-tooltip",[N("a",`
|
|
color: inherit;
|
|
text-decoration: none;
|
|
`)]),M("menu-divider",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
background-color: var(--n-divider-color);
|
|
height: 1px;
|
|
margin: 6px 18px;
|
|
`)]);function md(e,t){return[j("hover",e,t),N("&:hover",e,t)]}const zFe=Object.assign(Object.assign({},Fe.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}});var NFe=ge({name:"Menu",props:zFe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Menu","-menu",HFe,mRe,e,t),a=We(dX,null),i=L(()=>{var _;const{collapsed:B}=e;if(B!==void 0)return B;if(a){const{collapseModeRef:T,collapsedRef:E}=a;if(T.value==="width")return(_=E.value)!==null&&_!==void 0?_:!1}return!1}),o=L(()=>{const{keyField:_,childrenField:B,disabledField:T}=e;return Hv(e.items||e.options,{getIgnored(E){return wX(E)},getChildren(E){return E[B]},getDisabled(E){return E[T]},getKey(E){var I;return(I=E[_])!==null&&I!==void 0?I:E.name}})}),s=L(()=>new Set(o.value.treeNodes.map(_=>_.key))),{watchProps:l}=e,u=X(null);l!=null&&l.includes("defaultValue")?yr(()=>{u.value=e.defaultValue}):u.value=e.defaultValue;const c=Ie(e,"value"),d=Sr(c,u),f=X([]),A=()=>{f.value=e.defaultExpandAll?o.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||o.value.getPath(d.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?yr(A):A();const h=Ec(e,["expandedNames","expandedKeys"]),v=Sr(h,f),p=L(()=>o.value.treeNodes),g=L(()=>o.value.getPath(d.value).keyPath);Ct(ry,{props:e,mergedCollapsedRef:i,mergedThemeRef:n,mergedValueRef:d,mergedExpandedKeysRef:v,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:L(()=>e.mode==="horizontal"),invertedRef:Ie(e,"inverted"),doSelect:m,toggleExpand:b});function m(_,B){const{"onUpdate:value":T,onUpdateValue:E,onSelect:I}=e;E&&Ee(E,_,B),T&&Ee(T,_,B),I&&Ee(I,_,B),u.value=_}function y(_){const{"onUpdate:expandedKeys":B,onUpdateExpandedKeys:T,onExpandedNamesChange:E,onOpenNamesChange:I}=e;B&&Ee(B,_),T&&Ee(T,_),E&&Ee(E,_),I&&Ee(I,_),f.value=_}function b(_){const B=Array.from(v.value),T=B.findIndex(E=>E===_);if(~T)B.splice(T,1);else{if(e.accordion&&s.value.has(_)){const E=B.findIndex(I=>s.value.has(I));E>-1&&B.splice(E,1)}B.push(_)}y(B)}const w=_=>{const B=o.value.getPath(_!=null?_:d.value,{includeSelf:!1}).keyPath;if(!B.length)return;const T=Array.from(v.value),E=new Set([...T,...B]);e.accordion&&s.value.forEach(I=>{E.has(I)&&!B.includes(I)&&E.delete(I)}),y(Array.from(E))},x=L(()=>{const{inverted:_}=e,{common:{cubicBezierEaseInOut:B},self:T}=n.value,{borderRadius:E,borderColorHorizontal:I,fontSize:R,itemHeight:D,dividerColor:k}=T,F={"--n-divider-color":k,"--n-bezier":B,"--n-font-size":R,"--n-border-color-horizontal":I,"--n-border-radius":E,"--n-item-height":D};return _?(F["--n-group-text-color"]=T.groupTextColorInverted,F["--n-color"]=T.colorInverted,F["--n-item-text-color"]=T.itemTextColorInverted,F["--n-item-text-color-hover"]=T.itemTextColorHoverInverted,F["--n-item-text-color-active"]=T.itemTextColorActiveInverted,F["--n-item-text-color-child-active"]=T.itemTextColorChildActiveInverted,F["--n-item-text-color-child-active-hover"]=T.itemTextColorChildActiveInverted,F["--n-item-text-color-active-hover"]=T.itemTextColorActiveHoverInverted,F["--n-item-icon-color"]=T.itemIconColorInverted,F["--n-item-icon-color-hover"]=T.itemIconColorHoverInverted,F["--n-item-icon-color-active"]=T.itemIconColorActiveInverted,F["--n-item-icon-color-active-hover"]=T.itemIconColorActiveHoverInverted,F["--n-item-icon-color-child-active"]=T.itemIconColorChildActiveInverted,F["--n-item-icon-color-child-active-hover"]=T.itemIconColorChildActiveHoverInverted,F["--n-item-icon-color-collapsed"]=T.itemIconColorCollapsedInverted,F["--n-item-text-color-horizontal"]=T.itemTextColorHorizontalInverted,F["--n-item-text-color-hover-horizontal"]=T.itemTextColorHoverHorizontalInverted,F["--n-item-text-color-active-horizontal"]=T.itemTextColorActiveHorizontalInverted,F["--n-item-text-color-child-active-horizontal"]=T.itemTextColorChildActiveHorizontalInverted,F["--n-item-text-color-child-active-hover-horizontal"]=T.itemTextColorChildActiveHoverHorizontalInverted,F["--n-item-text-color-active-hover-horizontal"]=T.itemTextColorActiveHoverHorizontalInverted,F["--n-item-icon-color-horizontal"]=T.itemIconColorHorizontalInverted,F["--n-item-icon-color-hover-horizontal"]=T.itemIconColorHoverHorizontalInverted,F["--n-item-icon-color-active-horizontal"]=T.itemIconColorActiveHorizontalInverted,F["--n-item-icon-color-active-hover-horizontal"]=T.itemIconColorActiveHoverHorizontalInverted,F["--n-item-icon-color-child-active-horizontal"]=T.itemIconColorChildActiveHorizontalInverted,F["--n-item-icon-color-child-active-hover-horizontal"]=T.itemIconColorChildActiveHoverHorizontalInverted,F["--n-arrow-color"]=T.arrowColorInverted,F["--n-arrow-color-hover"]=T.arrowColorHoverInverted,F["--n-arrow-color-active"]=T.arrowColorActiveInverted,F["--n-arrow-color-active-hover"]=T.arrowColorActiveHoverInverted,F["--n-arrow-color-child-active"]=T.arrowColorChildActiveInverted,F["--n-arrow-color-child-active-hover"]=T.arrowColorChildActiveHoverInverted,F["--n-item-color-hover"]=T.itemColorHoverInverted,F["--n-item-color-active"]=T.itemColorActiveInverted,F["--n-item-color-active-hover"]=T.itemColorActiveHoverInverted,F["--n-item-color-active-collapsed"]=T.itemColorActiveCollapsedInverted):(F["--n-group-text-color"]=T.groupTextColor,F["--n-color"]=T.color,F["--n-item-text-color"]=T.itemTextColor,F["--n-item-text-color-hover"]=T.itemTextColorHover,F["--n-item-text-color-active"]=T.itemTextColorActive,F["--n-item-text-color-child-active"]=T.itemTextColorChildActive,F["--n-item-text-color-child-active-hover"]=T.itemTextColorChildActiveHover,F["--n-item-text-color-active-hover"]=T.itemTextColorActiveHover,F["--n-item-icon-color"]=T.itemIconColor,F["--n-item-icon-color-hover"]=T.itemIconColorHover,F["--n-item-icon-color-active"]=T.itemIconColorActive,F["--n-item-icon-color-active-hover"]=T.itemIconColorActiveHover,F["--n-item-icon-color-child-active"]=T.itemIconColorChildActive,F["--n-item-icon-color-child-active-hover"]=T.itemIconColorChildActiveHover,F["--n-item-icon-color-collapsed"]=T.itemIconColorCollapsed,F["--n-item-text-color-horizontal"]=T.itemTextColorHorizontal,F["--n-item-text-color-hover-horizontal"]=T.itemTextColorHoverHorizontal,F["--n-item-text-color-active-horizontal"]=T.itemTextColorActiveHorizontal,F["--n-item-text-color-child-active-horizontal"]=T.itemTextColorChildActiveHorizontal,F["--n-item-text-color-child-active-hover-horizontal"]=T.itemTextColorChildActiveHoverHorizontal,F["--n-item-text-color-active-hover-horizontal"]=T.itemTextColorActiveHoverHorizontal,F["--n-item-icon-color-horizontal"]=T.itemIconColorHorizontal,F["--n-item-icon-color-hover-horizontal"]=T.itemIconColorHoverHorizontal,F["--n-item-icon-color-active-horizontal"]=T.itemIconColorActiveHorizontal,F["--n-item-icon-color-active-hover-horizontal"]=T.itemIconColorActiveHoverHorizontal,F["--n-item-icon-color-child-active-horizontal"]=T.itemIconColorChildActiveHorizontal,F["--n-item-icon-color-child-active-hover-horizontal"]=T.itemIconColorChildActiveHoverHorizontal,F["--n-arrow-color"]=T.arrowColor,F["--n-arrow-color-hover"]=T.arrowColorHover,F["--n-arrow-color-active"]=T.arrowColorActive,F["--n-arrow-color-active-hover"]=T.arrowColorActiveHover,F["--n-arrow-color-child-active"]=T.arrowColorChildActive,F["--n-arrow-color-child-active-hover"]=T.arrowColorChildActiveHover,F["--n-item-color-hover"]=T.itemColorHover,F["--n-item-color-active"]=T.itemColorActive,F["--n-item-color-active-hover"]=T.itemColorActiveHover,F["--n-item-color-active-collapsed"]=T.itemColorActiveCollapsed),F}),S=r?_t("menu",L(()=>e.inverted?"a":"b"),x,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:h,uncontrolledExpanededKeys:f,mergedExpandedKeys:v,uncontrolledValue:u,mergedValue:d,activePath:g,tmNodes:p,mergedTheme:n,mergedCollapsed:i,cssVars:r?void 0:x,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender,showOption:w}},render(){const{mergedClsPrefix:e,mode:t,themeClass:r,onRender:n}=this;return n==null||n(),C("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,r,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(a=>Zk(a,this.$props)))}});const CX={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},SX="n-message-api",_X="n-message-provider";var QFe=N([M("message-wrapper",`
|
|
margin: var(--n-margin);
|
|
z-index: 0;
|
|
transform-origin: top center;
|
|
display: flex;
|
|
`,[Yl({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),M("message",`
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier),
|
|
transform .3s var(--n-bezier),
|
|
margin-bottom .3s var(--n-bezier);
|
|
padding: var(--n-padding);
|
|
border-radius: var(--n-border-radius);
|
|
flex-wrap: nowrap;
|
|
overflow: hidden;
|
|
max-width: var(--n-max-width);
|
|
color: var(--n-text-color);
|
|
background-color: var(--n-color);
|
|
box-shadow: var(--n-box-shadow);
|
|
`,[G("content",`
|
|
display: inline-block;
|
|
line-height: var(--n-line-height);
|
|
font-size: var(--n-font-size);
|
|
`),G("icon",`
|
|
position: relative;
|
|
margin: var(--n-icon-margin);
|
|
height: var(--n-icon-size);
|
|
width: var(--n-icon-size);
|
|
font-size: var(--n-icon-size);
|
|
flex-shrink: 0;
|
|
`,[["default","info","success","warning","error","loading"].map(e=>j(`${e}-type`,[N("> *",`
|
|
color: var(--n-icon-color-${e});
|
|
transition: color .3s var(--n-bezier);
|
|
`)])),N("> *",`
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
`,[Wn()])]),G("close",`
|
|
margin: var(--n-close-margin);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
flex-shrink: 0;
|
|
`,[N("&:hover",`
|
|
color: var(--n-close-icon-color-hover);
|
|
`),N("&:active",`
|
|
color: var(--n-close-icon-color-pressed);
|
|
`)])]),M("message-container",`
|
|
z-index: 6000;
|
|
position: fixed;
|
|
height: 0;
|
|
overflow: visible;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
`,[j("top",`
|
|
top: 12px;
|
|
left: 0;
|
|
right: 0;
|
|
`),j("top-left",`
|
|
top: 12px;
|
|
left: 12px;
|
|
right: 0;
|
|
align-items: flex-start;
|
|
`),j("top-right",`
|
|
top: 12px;
|
|
left: 0;
|
|
right: 12px;
|
|
align-items: flex-end;
|
|
`),j("bottom",`
|
|
bottom: 4px;
|
|
left: 0;
|
|
right: 0;
|
|
justify-content: flex-end;
|
|
`),j("bottom-left",`
|
|
bottom: 4px;
|
|
left: 12px;
|
|
right: 0;
|
|
justify-content: flex-end;
|
|
align-items: flex-start;
|
|
`),j("bottom-right",`
|
|
bottom: 4px;
|
|
left: 0;
|
|
right: 12px;
|
|
justify-content: flex-end;
|
|
align-items: flex-end;
|
|
`)])]);const VFe={info:()=>C(Pc,null),success:()=>C(cA,null),warning:()=>C(dA,null),error:()=>C(uA,null),default:()=>null};var WFe=ge({name:"Message",props:Object.assign(Object.assign({},CX),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:r}=et(e),{props:n,mergedClsPrefixRef:a}=We(_X),i=tn("Message",r,a),o=Fe("Message","-message",QFe,QIe,n,a),s=L(()=>{const{type:u}=e,{common:{cubicBezierEaseInOut:c},self:{padding:d,margin:f,maxWidth:A,iconMargin:h,closeMargin:v,closeSize:p,iconSize:g,fontSize:m,lineHeight:y,borderRadius:b,iconColorInfo:w,iconColorSuccess:x,iconColorWarning:S,iconColorError:_,iconColorLoading:B,closeIconSize:T,closeBorderRadius:E,[Se("textColor",u)]:I,[Se("boxShadow",u)]:R,[Se("color",u)]:D,[Se("closeColorHover",u)]:k,[Se("closeColorPressed",u)]:F,[Se("closeIconColor",u)]:P,[Se("closeIconColorPressed",u)]:O,[Se("closeIconColorHover",u)]:H}}=o.value;return{"--n-bezier":c,"--n-margin":f,"--n-padding":d,"--n-max-width":A,"--n-font-size":m,"--n-icon-margin":h,"--n-icon-size":g,"--n-close-icon-size":T,"--n-close-border-radius":E,"--n-close-size":p,"--n-close-margin":v,"--n-text-color":I,"--n-color":D,"--n-box-shadow":R,"--n-icon-color-info":w,"--n-icon-color-success":x,"--n-icon-color-warning":S,"--n-icon-color-error":_,"--n-icon-color-loading":B,"--n-close-color-hover":k,"--n-close-color-pressed":F,"--n-close-icon-color":P,"--n-close-icon-color-pressed":O,"--n-close-icon-color-hover":H,"--n-line-height":y,"--n-border-radius":b}}),l=t?_t("message",L(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:a,rtlEnabled:i,messageProviderProps:n,handleClose(){var u;(u=e.onClose)===null||u===void 0||u.call(e)},cssVars:t?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:n.placement}},render(){const{render:e,type:t,closable:r,content:n,mergedClsPrefix:a,cssVars:i,themeClass:o,onRender:s,icon:l,handleClose:u,showIcon:c}=this;s==null||s();let d;return C("div",{class:[`${a}-message-wrapper`,o],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):C("div",{class:[`${a}-message ${a}-message--${t}-type`,this.rtlEnabled&&`${a}-message--rtl`]},(d=GFe(l,t,a))&&c?C("div",{class:`${a}-message__icon ${a}-message__icon--${t}-type`},C(sl,null,{default:()=>d})):null,C("div",{class:`${a}-message__content`},Mr(n)),r?C(Zc,{clsPrefix:a,class:`${a}-message__close`,onClick:u,absolute:!0}):null))}});function GFe(e,t,r){if(typeof e=="function")return e();{const n=t==="loading"?C(cu,{clsPrefix:r,strokeWidth:24,scale:.85}):VFe[t]();return n?C($t,{clsPrefix:r,key:t},{default:()=>n}):null}}var KFe=ge({name:"MessageEnvironment",props:Object.assign(Object.assign({},CX),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const r=X(!0);Ar(()=>{n()});function n(){const{duration:c}=e;c&&(t=window.setTimeout(o,c))}function a(c){c.currentTarget===c.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(c){c.currentTarget===c.target&&n()}function o(){const{onHide:c}=e;r.value=!1,t&&(window.clearTimeout(t),t=null),c&&c()}function s(){const{onClose:c}=e;c&&c(),o()}function l(){const{onAfterLeave:c,onInternalAfterLeave:d,onAfterHide:f,internalKey:A}=e;c&&c(),d&&d(A),f&&f()}function u(){o()}return{show:r,hide:o,handleClose:s,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:a,deactivate:u}},render(){return C(ll,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?C(WFe,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}});const jFe=Object.assign(Object.assign({},Fe.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]});var BX=ge({name:"MessageProvider",props:jFe,setup(e){const{mergedClsPrefixRef:t}=et(e),r=X([]),n=X({}),a={create(l,u){return i(l,Object.assign({type:"default"},u))},info(l,u){return i(l,Object.assign(Object.assign({},u),{type:"info"}))},success(l,u){return i(l,Object.assign(Object.assign({},u),{type:"success"}))},warning(l,u){return i(l,Object.assign(Object.assign({},u),{type:"warning"}))},error(l,u){return i(l,Object.assign(Object.assign({},u),{type:"error"}))},loading(l,u){return i(l,Object.assign(Object.assign({},u),{type:"loading"}))},destroyAll:s};Ct(_X,{props:e,mergedClsPrefixRef:t}),Ct(SX,a);function i(l,u){const c=yo(),d=Bo(Object.assign(Object.assign({},u),{content:l,key:c,destroy:()=>{var A;(A=n.value[c])===null||A===void 0||A.hide()}})),{max:f}=e;return f&&r.value.length>=f&&r.value.shift(),r.value.push(d),d}function o(l){r.value.splice(r.value.findIndex(u=>u.key===l),1),delete n.value[l]}function s(){Object.values(n.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:r,handleAfterLeave:o},a)},render(){var e,t,r;return C(rr,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?C(kv,{to:(r=this.to)!==null&&r!==void 0?r:"body"},C("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(n=>C(KFe,Object.assign({ref:a=>{a&&(this.messageRefs[n.key]=a)},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave},Lv(n,["destroy"],void 0),{duration:n.duration===void 0?this.duration:n.duration,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover,closable:n.closable===void 0?this.closable:n.closable}))))):null)}});function YFe(){const e=We(SX,null);return e===null&&Ta("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const yS="n-notification-provider",XFe=ge({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:r}=We(yS),n=X(null);return yr(()=>{var a,i;r.value>0?(a=n==null?void 0:n.value)===null||a===void 0||a.classList.add("transitioning"):(i=n==null?void 0:n.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:n,mergedTheme:e,mergedClsPrefix:t,transitioning:r}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:r,mergedTheme:n,placement:a}=this;return C("div",{ref:"selfRef",class:[`${r}-notification-container`,t&&`${r}-notification-container--scrollable`,`${r}-notification-container--${a}`]},t?C(Un,{theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),qFe={info:()=>C(Pc,null),success:()=>C(cA,null),warning:()=>C(dA,null),error:()=>C(uA,null),default:()=>null},Jk={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},ZFe=Zs(Jk),JFe=ge({name:"Notification",props:Jk,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r,props:n}=We(yS),{inlineThemeDisabled:a,mergedRtlRef:i}=et(),o=tn("Notification",i,t),s=L(()=>{const{type:u}=e,{self:{color:c,textColor:d,closeIconColor:f,closeIconColorHover:A,closeIconColorPressed:h,headerTextColor:v,descriptionTextColor:p,actionTextColor:g,borderRadius:m,headerFontWeight:y,boxShadow:b,lineHeight:w,fontSize:x,closeMargin:S,closeSize:_,width:B,padding:T,closeIconSize:E,closeBorderRadius:I,closeColorHover:R,closeColorPressed:D,titleFontSize:k,metaFontSize:F,descriptionFontSize:P,[Se("iconColor",u)]:O},common:{cubicBezierEaseOut:H,cubicBezierEaseIn:V,cubicBezierEaseInOut:W}}=r.value,{left:Z,right:ee,top:ae,bottom:ne}=uc(T);return{"--n-color":c,"--n-font-size":x,"--n-text-color":d,"--n-description-text-color":p,"--n-action-text-color":g,"--n-title-text-color":v,"--n-title-font-weight":y,"--n-bezier":W,"--n-bezier-ease-out":H,"--n-bezier-ease-in":V,"--n-border-radius":m,"--n-box-shadow":b,"--n-close-border-radius":I,"--n-close-color-hover":R,"--n-close-color-pressed":D,"--n-close-icon-color":f,"--n-close-icon-color-hover":A,"--n-close-icon-color-pressed":h,"--n-line-height":w,"--n-icon-color":O,"--n-close-margin":S,"--n-close-size":_,"--n-close-icon-size":E,"--n-width":B,"--n-padding-left":Z,"--n-padding-right":ee,"--n-padding-top":ae,"--n-padding-bottom":ne,"--n-title-font-size":k,"--n-meta-font-size":F,"--n-description-font-size":P}}),l=a?_t("notification",L(()=>e.type[0]),s,n):void 0;return{mergedClsPrefix:t,showAvatar:L(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:o,cssVars:a?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),C("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},C("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?C("div",{class:`${t}-notification__avatar`},this.avatar?Mr(this.avatar):this.type!=="default"?C($t,{clsPrefix:t},{default:()=>qFe[this.type]()}):null):null,this.closable?C(Zc,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,C("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?C("div",{class:`${t}-notification-main__header`},Mr(this.title)):null,this.description?C("div",{class:`${t}-notification-main__description`},Mr(this.description)):null,this.content?C("pre",{class:`${t}-notification-main__content`},Mr(this.content)):null,this.meta||this.action?C("div",{class:`${t}-notification-main-footer`},this.meta?C("div",{class:`${t}-notification-main-footer__meta`},Mr(this.meta)):null,this.action?C("div",{class:`${t}-notification-main-footer__action`},Mr(this.action)):null):null)))}}),eMe=Object.assign(Object.assign({},Jk),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),tMe=ge({name:"NotificationEnvironment",props:Object.assign(Object.assign({},eMe),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=We(yS),r=X(!0);let n=null;function a(){r.value=!1,n&&window.clearTimeout(n)}function i(h){t.value++,ar(()=>{h.style.height=`${h.offsetHeight}px`,h.style.maxHeight="0",h.style.transition="none",h.offsetHeight,h.style.transition="",h.style.maxHeight=h.style.height})}function o(h){t.value--,h.style.height="",h.style.maxHeight="";const{onAfterEnter:v,onAfterShow:p}=e;v&&v(),p&&p()}function s(h){t.value++,h.style.maxHeight=`${h.offsetHeight}px`,h.style.height=`${h.offsetHeight}px`,h.offsetHeight}function l(h){const{onHide:v}=e;v&&v(),h.style.maxHeight="0",h.offsetHeight}function u(){t.value--;const{onAfterLeave:h,onInternalAfterLeave:v,onAfterHide:p,internalKey:g}=e;h&&h(),v(g),p&&p()}function c(){const{duration:h}=e;h&&(n=window.setTimeout(a,h))}function d(h){h.currentTarget===h.target&&n!==null&&(window.clearTimeout(n),n=null)}function f(h){h.currentTarget===h.target&&c()}function A(){const{onClose:h}=e;h?Promise.resolve(h()).then(v=>{v!==!1&&a()}):a()}return Ar(()=>{e.duration&&(n=window.setTimeout(a,e.duration))}),{show:r,hide:a,handleClose:A,handleAfterLeave:u,handleLeave:l,handleBeforeLeave:s,handleAfterEnter:o,handleBeforeEnter:i,handleMouseenter:d,handleMouseleave:f}},render(){return C(zr,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?C(JFe,Object.assign({},zi(this.$props,ZFe),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}});var rMe=N([M("notification-container",`
|
|
z-index: 4000;
|
|
position: fixed;
|
|
overflow: visible;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
`,[N(">",[M("scrollbar",`
|
|
width: initial;
|
|
overflow: visible;
|
|
height: -moz-fit-content !important;
|
|
height: fit-content !important;
|
|
max-height: 100vh !important;
|
|
`,[N(">",[M("scrollbar-container",`
|
|
height: -moz-fit-content !important;
|
|
height: fit-content !important;
|
|
max-height: 100vh !important;
|
|
`,[M("scrollbar-content",`
|
|
padding-top: 12px;
|
|
padding-bottom: 33px;
|
|
`)])])])]),j("top, top-right, top-left",`
|
|
top: 12px;
|
|
`,[N("&.transitioning >",[M("scrollbar",[N(">",[M("scrollbar-container",`
|
|
min-height: 100vh !important;
|
|
`)])])])]),j("bottom, bottom-right, bottom-left",`
|
|
bottom: 12px;
|
|
`,[N(">",[M("scrollbar",[N(">",[M("scrollbar-container",[M("scrollbar-content",`
|
|
padding-bottom: 12px;
|
|
`)])])])]),M("notification-wrapper",`
|
|
display: flex;
|
|
align-items: flex-end;
|
|
margin-bottom: 0;
|
|
margin-top: 12px;
|
|
`)]),j("top, bottom",`
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
`,[M("notification-wrapper",[N("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
|
transform: scale(0.85);
|
|
`),N("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
|
transform: scale(1);
|
|
`)])]),j("top",[M("notification-wrapper",`
|
|
transform-origin: top center;
|
|
`)]),j("bottom",[M("notification-wrapper",`
|
|
transform-origin: bottom center;
|
|
`)]),j("top-right, bottom-right",[M("notification",`
|
|
margin-left: 28px;
|
|
margin-right: 16px;
|
|
`)]),j("top-left, bottom-left",[M("notification",`
|
|
margin-left: 16px;
|
|
margin-right: 28px;
|
|
`)]),j("top-right",`
|
|
right: 0;
|
|
`,[vb("top-right")]),j("top-left",`
|
|
left: 0;
|
|
`,[vb("top-left")]),j("bottom-right",`
|
|
right: 0;
|
|
`,[vb("bottom-right")]),j("bottom-left",`
|
|
left: 0;
|
|
`,[vb("bottom-left")]),j("scrollable",[j("top-right",`
|
|
top: 0;
|
|
`),j("top-left",`
|
|
top: 0;
|
|
`),j("bottom-right",`
|
|
bottom: 0;
|
|
`),j("bottom-left",`
|
|
bottom: 0;
|
|
`)]),M("notification-wrapper",`
|
|
margin-bottom: 12px;
|
|
`,[N("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
|
opacity: 0;
|
|
margin-top: 0 !important;
|
|
margin-bottom: 0 !important;
|
|
`),N("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
|
opacity: 1;
|
|
`),N("&.notification-transition-leave-active",`
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier),
|
|
transform .3s var(--n-bezier-ease-in),
|
|
max-height .3s var(--n-bezier),
|
|
margin-top .3s linear,
|
|
margin-bottom .3s linear,
|
|
box-shadow .3s var(--n-bezier);
|
|
`),N("&.notification-transition-enter-active",`
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier),
|
|
transform .3s var(--n-bezier-ease-out),
|
|
max-height .3s var(--n-bezier),
|
|
margin-top .3s linear,
|
|
margin-bottom .3s linear,
|
|
box-shadow .3s var(--n-bezier);
|
|
`)]),M("notification",`
|
|
background-color: var(--n-color);
|
|
color: var(--n-text-color);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier);
|
|
font-family: inherit;
|
|
font-size: var(--n-font-size);
|
|
font-weight: 400;
|
|
position: relative;
|
|
display: flex;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
padding-left: var(--n-padding-left);
|
|
padding-right: var(--n-padding-right);
|
|
width: var(--n-width);
|
|
border-radius: var(--n-border-radius);
|
|
box-shadow: var(--n-box-shadow);
|
|
box-sizing: border-box;
|
|
opacity: 1;
|
|
`,[G("avatar",[M("icon",{color:"var(--n-icon-color)"}),M("base-icon",{color:"var(--n-icon-color)"})]),j("show-avatar",[M("notification-main",`
|
|
margin-left: 40px;
|
|
width: calc(100% - 40px);
|
|
`)]),j("closable",[M("notification-main",[N("> *:first-child",{paddingRight:"20px"})]),G("close",`
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
margin: var(--n-close-margin);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`)]),G("avatar",`
|
|
position: absolute;
|
|
top: var(--n-padding-top);
|
|
left: var(--n-padding-left);
|
|
width: 28px;
|
|
height: 28px;
|
|
font-size: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`,[M("icon","transition: color .3s var(--n-bezier);")]),M("notification-main",`
|
|
padding-top: var(--n-padding-top);
|
|
padding-bottom: var(--n-padding-bottom);
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-left: 8px;
|
|
width: calc(100% - 8px);
|
|
`,[M("notification-main-footer",`
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 12px;
|
|
`,[G("meta",`
|
|
font-size: var(--n-meta-font-size);
|
|
transition: color .3s var(--n-bezier-ease-out);
|
|
color: var(--n-description-text-color);
|
|
`),G("action",`
|
|
cursor: pointer;
|
|
transition: color .3s var(--n-bezier-ease-out);
|
|
color: var(--n-action-text-color);
|
|
`)]),G("header",`
|
|
font-weight: var(--n-title-font-weight);
|
|
font-size: var(--n-title-font-size);
|
|
transition: color .3s var(--n-bezier-ease-out);
|
|
color: var(--n-title-text-color);
|
|
`),G("description",`
|
|
margin-top: 8px;
|
|
font-size: var(--n-description-font-size);
|
|
transition: color .3s var(--n-bezier-ease-out);
|
|
color: var(--n-description-text-color);
|
|
`),G("content",`
|
|
line-height: var(--n-line-height);
|
|
margin: 12px 0 0 0;
|
|
font-family: inherit;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
transition: color .3s var(--n-bezier-ease-out);
|
|
color: var(--n-text-color);
|
|
`,[N("&:first-child",{margin:0})])])])])]);function vb(e){const r=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",n="0";return M("notification-wrapper",[N("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
|
transform: translate(${r}, 0);
|
|
`),N("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
|
transform: translate(${n}, 0);
|
|
`)])}const nMe="n-notification-api",aMe=Object.assign(Object.assign({},Fe.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean});var TX=ge({name:"NotificationProvider",props:aMe,setup(e){const{mergedClsPrefixRef:t}=et(e),r=X([]),n={},a=new Set;function i(A){const h=yo(),v=()=>{a.add(h),n[h]&&n[h].hide()},p=Bo(Object.assign(Object.assign({},A),{key:h,destroy:v,hide:v,deactivate:v})),{max:g}=e;if(g&&r.value.length-a.size>=g){let m=!1,y=0;for(const b of r.value){if(!a.has(b.key)){n[b.key]&&(b.destroy(),m=!0);break}y++}m||r.value.splice(y,1)}return r.value.push(p),p}const o=["info","success","warning","error"].map(A=>h=>i(Object.assign(Object.assign({},h),{type:A})));function s(A){a.delete(A),r.value.splice(r.value.findIndex(h=>h.key===A),1)}const l=Fe("Notification","-notification",rMe,$Ie,e,t),u={create:i,info:o[0],success:o[1],warning:o[2],error:o[3],open:d,destroyAll:f},c=X(0);Ct(nMe,u),Ct(yS,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:c});function d(A){return i(A)}function f(){Object.values(r.value).forEach(A=>{A.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:r,notificationRefs:n,handleAfterLeave:s},u)},render(){var e,t,r;const{placement:n}=this;return C(rr,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?C(kv,{to:(r=this.to)!==null&&r!==void 0?r:"body"},C(XFe,{style:this.containerStyle,scrollable:this.scrollable&&n!=="top"&&n!=="bottom",placement:n},{default:()=>this.notificationList.map(a=>C(tMe,Object.assign({ref:i=>{const o=a.key;i===null?delete this.notificationRefs[o]:this.notificationRefs[o]=i}},Lv(a,["destroy","hide","deactivate"]),{internalKey:a.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:a.keepAliveOnHover===void 0?this.keepAliveOnHover:a.keepAliveOnHover})))})):null)}}),iMe=N([M("progress",{display:"inline-block"},[M("progress-icon",`
|
|
color: var(--n-icon-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`),j("line",`
|
|
width: 100%;
|
|
display: block;
|
|
`,[M("progress-content",`
|
|
display: flex;
|
|
align-items: center;
|
|
`,[M("progress-graph",{flex:1})]),M("progress-custom-content",{marginLeft:"14px"}),M("progress-icon",`
|
|
width: 30px;
|
|
padding-left: 14px;
|
|
height: var(--n-icon-size-line);
|
|
line-height: var(--n-icon-size-line);
|
|
font-size: var(--n-icon-size-line);
|
|
`,[j("as-text",`
|
|
color: var(--n-text-color-line-outer);
|
|
text-align: center;
|
|
width: 40px;
|
|
font-size: var(--n-font-size);
|
|
padding-left: 4px;
|
|
transition: color .3s var(--n-bezier);
|
|
`)])]),j("circle, dashboard",{width:"120px"},[M("progress-custom-content",`
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`),M("progress-text",`
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
color: inherit;
|
|
font-size: var(--n-font-size-circle);
|
|
color: var(--n-text-color-circle);
|
|
font-weight: var(--n-font-weight-circle);
|
|
transition: color .3s var(--n-bezier);
|
|
white-space: nowrap;
|
|
`),M("progress-icon",`
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--n-icon-color);
|
|
font-size: var(--n-icon-size-circle);
|
|
`)]),j("multiple-circle",`
|
|
width: 200px;
|
|
color: inherit;
|
|
`,[M("progress-text",`
|
|
font-weight: var(--n-font-weight-circle);
|
|
color: var(--n-text-color-circle);
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: color .3s var(--n-bezier);
|
|
`)]),M("progress-content",{position:"relative"}),M("progress-graph",{position:"relative"},[M("progress-graph-circle",[N("svg",{verticalAlign:"bottom"}),M("progress-graph-circle-fill",`
|
|
stroke: var(--n-fill-color);
|
|
transition:
|
|
opacity .3s var(--n-bezier),
|
|
stroke .3s var(--n-bezier),
|
|
stroke-dasharray .3s var(--n-bezier);
|
|
`,[j("empty",{opacity:0})]),M("progress-graph-circle-rail",`
|
|
transition: stroke .3s var(--n-bezier);
|
|
overflow: hidden;
|
|
stroke: var(--n-rail-color);
|
|
`)]),M("progress-graph-line",[j("indicator-inside",[M("progress-graph-line-rail",`
|
|
height: 16px;
|
|
line-height: 16px;
|
|
border-radius: 10px;
|
|
`,[M("progress-graph-line-fill",`
|
|
height: inherit;
|
|
border-radius: 10px;
|
|
`),M("progress-graph-line-indicator",`
|
|
background: #0000;
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
margin-left: 14px;
|
|
margin-right: 14px;
|
|
height: inherit;
|
|
font-size: 12px;
|
|
color: var(--n-text-color-line-inner);
|
|
transition: color .3s var(--n-bezier);
|
|
`)])]),j("indicator-inside-label",`
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
`,[M("progress-graph-line-rail",`
|
|
flex: 1;
|
|
transition: background-color .3s var(--n-bezier);
|
|
`),M("progress-graph-line-indicator",`
|
|
background: var(--n-fill-color);
|
|
font-size: 12px;
|
|
transform: translateZ(0);
|
|
display: flex;
|
|
vertical-align: middle;
|
|
height: 16px;
|
|
line-height: 16px;
|
|
padding: 0 10px;
|
|
border-radius: 10px;
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
color: var(--n-text-color-line-inner);
|
|
transition:
|
|
right .2s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
`)]),M("progress-graph-line-rail",`
|
|
position: relative;
|
|
overflow: hidden;
|
|
height: var(--n-rail-height);
|
|
border-radius: 5px;
|
|
background-color: var(--n-rail-color);
|
|
transition: background-color .3s var(--n-bezier);
|
|
`,[M("progress-graph-line-fill",`
|
|
background: var(--n-fill-color);
|
|
position: relative;
|
|
border-radius: 5px;
|
|
height: inherit;
|
|
width: 100%;
|
|
max-width: 0%;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
max-width .2s var(--n-bezier);
|
|
`,[j("processing",[N("&::after",`
|
|
content: "";
|
|
background-image: var(--n-line-bg-processing);
|
|
animation: progress-processing-animation 2s var(--n-bezier) infinite;
|
|
`)])])])])])]),N("@keyframes progress-processing-animation",`
|
|
0% {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 100%;
|
|
opacity: 1;
|
|
}
|
|
66% {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
opacity: 0;
|
|
}
|
|
`)]);const oMe={success:C(cA,null),error:C(uA,null),warning:C(dA,null),info:C(Pc,null)};var sMe=ge({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const r=L(()=>pr(e.height)),n=L(()=>e.railBorderRadius!==void 0?pr(e.railBorderRadius):e.height!==void 0?pr(e.height,{c:.5}):""),a=L(()=>e.fillBorderRadius!==void 0?pr(e.fillBorderRadius):e.railBorderRadius!==void 0?pr(e.railBorderRadius):e.height!==void 0?pr(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:o,railStyle:s,percentage:l,unit:u,indicatorTextColor:c,status:d,showIndicator:f,fillColor:A,processing:h,clsPrefix:v}=e;return C("div",{class:`${v}-progress-content`,role:"none"},C("div",{class:`${v}-progress-graph`,"aria-hidden":!0},C("div",{class:[`${v}-progress-graph-line`,{[`${v}-progress-graph-line--indicator-${i}`]:!0}]},C("div",{class:`${v}-progress-graph-line-rail`,style:[{backgroundColor:o,height:r.value,borderRadius:n.value},s]},C("div",{class:[`${v}-progress-graph-line-fill`,h&&`${v}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:A,height:r.value,lineHeight:r.value,borderRadius:a.value}},i==="inside"?C("div",{class:`${v}-progress-graph-line-indicator`},l,u):null)))),f&&i==="outside"?C("div",null,t.default?C("div",{class:`${v}-progress-custom-content`,style:{color:c},role:"none"},t.default()):d==="default"?C("div",{role:"none",class:`${v}-progress-icon ${v}-progress-icon--as-text`,style:{color:c}},l,u):C("div",{class:`${v}-progress-icon`,"aria-hidden":!0},C($t,{clsPrefix:v},{default:()=>oMe[d]}))):null)}}});const lMe={success:C(cA,null),error:C(uA,null),warning:C(dA,null),info:C(Pc,null)};var uMe=ge({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function r(n,a,i){const{gapDegree:o,viewBoxWidth:s,strokeWidth:l}=e,u=50,c=0,d=u,f=0,A=2*u,h=50+l/2,v=`M ${h},${h} m ${c},${d}
|
|
a ${u},${u} 0 1 1 ${f},${-A}
|
|
a ${u},${u} 0 1 1 ${-f},${A}`,p=Math.PI*2*u,g={stroke:i,strokeDasharray:`${n/100*(p-o)}px ${s*8}px`,strokeDashoffset:`-${o/2}px`,transformOrigin:a?"center":void 0,transform:a?`rotate(${a}deg)`:void 0};return{pathString:v,pathStyle:g}}return()=>{const{fillColor:n,railColor:a,strokeWidth:i,offsetDegree:o,status:s,percentage:l,showIndicator:u,indicatorTextColor:c,unit:d,gapOffsetDegree:f,clsPrefix:A}=e,{pathString:h,pathStyle:v}=r(100,0,a),{pathString:p,pathStyle:g}=r(l,o,n),m=100+i;return C("div",{class:`${A}-progress-content`,role:"none"},C("div",{class:`${A}-progress-graph`,"aria-hidden":!0},C("div",{class:`${A}-progress-graph-circle`,style:{transform:f?`rotate(${f}deg)`:void 0}},C("svg",{viewBox:`0 0 ${m} ${m}`},C("g",null,C("path",{class:`${A}-progress-graph-circle-rail`,d:h,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:v})),C("g",null,C("path",{class:[`${A}-progress-graph-circle-fill`,l===0&&`${A}-progress-graph-circle-fill--empty`],d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:g}))))),u?C("div",null,t.default?C("div",{class:`${A}-progress-custom-content`,role:"none"},t.default()):s!=="default"?C("div",{class:`${A}-progress-icon`,"aria-hidden":!0},C($t,{clsPrefix:A},{default:()=>lMe[s]})):C("div",{class:`${A}-progress-text`,style:{color:c},role:"none"},C("span",{class:`${A}-progress-text__percentage`},l),C("span",{class:`${A}-progress-text__unit`},d))):null)}}});function w$(e,t,r=100){return`m ${r/2} ${r/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}var cMe=ge({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const r=L(()=>e.percentage.map((a,i)=>`${Math.PI*a/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:n,strokeWidth:a,circleGap:i,showIndicator:o,fillColor:s,railColor:l,railStyle:u,percentage:c,clsPrefix:d}=e;return C("div",{class:`${d}-progress-content`,role:"none"},C("div",{class:`${d}-progress-graph`,"aria-hidden":!0},C("div",{class:`${d}-progress-graph-circle`},C("svg",{viewBox:`0 0 ${n} ${n}`},c.map((f,A)=>C("g",{key:A},C("path",{class:`${d}-progress-graph-circle-rail`,d:w$(n/2-a/2*(1+2*A)-i*A,a,n),"stroke-width":a,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:l[A]},u[A]]}),C("path",{class:[`${d}-progress-graph-circle-fill`,f===0&&`${d}-progress-graph-circle-fill--empty`],d:w$(n/2-a/2*(1+2*A)-i*A,a,n),"stroke-width":a,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:r.value[A],strokeDashoffset:0,stroke:s[A]}})))))),o&&t.default?C("div",null,C("div",{class:`${d}-progress-text`},t.default())):null)}}});const dMe=Object.assign(Object.assign({},Fe.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number});var EX=ge({name:"Progress",props:dMe,setup(e){const t=L(()=>e.indicatorPlacement||e.indicatorPosition),r=L(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:n,inlineThemeDisabled:a}=et(e),i=Fe("Progress","-progress",iMe,GY,e,n),o=L(()=>{const{status:l}=e,{common:{cubicBezierEaseInOut:u},self:{fontSize:c,fontSizeCircle:d,railColor:f,railHeight:A,iconSizeCircle:h,iconSizeLine:v,textColorCircle:p,textColorLineInner:g,textColorLineOuter:m,lineBgProcessing:y,fontWeightCircle:b,[Se("iconColor",l)]:w,[Se("fillColor",l)]:x}}=i.value;return{"--n-bezier":u,"--n-fill-color":x,"--n-font-size":c,"--n-font-size-circle":d,"--n-font-weight-circle":b,"--n-icon-color":w,"--n-icon-size-circle":h,"--n-icon-size-line":v,"--n-line-bg-processing":y,"--n-rail-color":f,"--n-rail-height":A,"--n-text-color-circle":p,"--n-text-color-line-inner":g,"--n-text-color-line-outer":m}}),s=a?_t("progress",L(()=>e.status[0]),o,e):void 0;return{mergedClsPrefix:n,mergedIndicatorPlacement:t,gapDeg:r,cssVars:a?void 0:o,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:r,showIndicator:n,status:a,railColor:i,railStyle:o,color:s,percentage:l,viewBoxWidth:u,strokeWidth:c,mergedIndicatorPlacement:d,unit:f,borderRadius:A,fillBorderRadius:h,height:v,processing:p,circleGap:g,mergedClsPrefix:m,gapDeg:y,gapOffsetDegree:b,themeClass:w,$slots:x,onRender:S}=this;return S==null||S(),C("div",{class:[w,`${m}-progress`,`${m}-progress--${e}`,`${m}-progress--${a}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?C(uMe,{clsPrefix:m,status:a,showIndicator:n,indicatorTextColor:r,railColor:i,fillColor:s,railStyle:o,offsetDegree:this.offsetDegree,percentage:l,viewBoxWidth:u,strokeWidth:c,gapDegree:y===void 0?e==="dashboard"?75:0:y,gapOffsetDegree:b,unit:f},x):e==="line"?C(sMe,{clsPrefix:m,status:a,showIndicator:n,indicatorTextColor:r,railColor:i,fillColor:s,railStyle:o,percentage:l,processing:p,indicatorPlacement:d,unit:f,fillBorderRadius:h,railBorderRadius:A,height:v},x):e==="multiple-circle"?C(cMe,{clsPrefix:m,strokeWidth:c,railColor:i,fillColor:s,railStyle:o,viewBoxWidth:u,percentage:l,showIndicator:n,circleGap:g},x):null)}}),fMe=C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},C("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),C("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),C("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),C("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),C("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),C("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),AMe=C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},C("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),C("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),C("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),hMe=C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},C("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),C("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),C("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),C("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),C("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),C("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),vMe=C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},C("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),C("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),pMe=M("result",`
|
|
color: var(--n-text-color);
|
|
line-height: var(--n-line-height);
|
|
font-size: var(--n-font-size);
|
|
transition:
|
|
color .3s var(--n-bezier);
|
|
`,[M("result-icon",`
|
|
display: flex;
|
|
justify-content: center;
|
|
transition: color .3s var(--n-bezier);
|
|
`,[G("status-image",`
|
|
font-size: var(--n-icon-size);
|
|
width: 1em;
|
|
height: 1em;
|
|
`),M("base-icon",`
|
|
color: var(--n-icon-color);
|
|
font-size: var(--n-icon-size);
|
|
`)]),M("result-content",{marginTop:"24px"}),M("result-footer",`
|
|
margin-top: 24px;
|
|
text-align: center;
|
|
`),M("result-header",[G("title",`
|
|
margin-top: 16px;
|
|
font-weight: var(--n-title-font-weight);
|
|
transition: color .3s var(--n-bezier);
|
|
text-align: center;
|
|
color: var(--n-title-text-color);
|
|
font-size: var(--n-title-font-size);
|
|
`),G("description",`
|
|
margin-top: 4px;
|
|
text-align: center;
|
|
font-size: var(--n-font-size);
|
|
`)])]);const gMe={403:vMe,404:fMe,418:hMe,500:AMe,info:C(Pc,null),success:C(cA,null),warning:C(dA,null),error:C(uA,null)},mMe=Object.assign(Object.assign({},Fe.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String});var yMe=ge({name:"Result",props:mMe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Result","-result",pMe,kRe,e,t),a=L(()=>{const{size:o,status:s}=e,{common:{cubicBezierEaseInOut:l},self:{textColor:u,lineHeight:c,titleTextColor:d,titleFontWeight:f,[Se("iconColor",s)]:A,[Se("fontSize",o)]:h,[Se("titleFontSize",o)]:v,[Se("iconSize",o)]:p}}=n.value;return{"--n-bezier":l,"--n-font-size":h,"--n-icon-size":p,"--n-line-height":c,"--n-text-color":u,"--n-title-font-size":v,"--n-title-font-weight":f,"--n-title-text-color":d,"--n-icon-color":A||""}}),i=r?_t("result",L(()=>{const{size:o,status:s}=e;let l="";return o&&(l+=o[0]),s&&(l+=s[0]),l}),a,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:r,mergedClsPrefix:n,onRender:a}=this;return a==null||a(),C("div",{class:[`${n}-result`,this.themeClass],style:this.cssVars},C("div",{class:`${n}-result-icon`},((e=r.icon)===null||e===void 0?void 0:e.call(r))||C($t,{clsPrefix:n},{default:()=>gMe[t]})),C("div",{class:`${n}-result-header`},this.title?C("div",{class:`${n}-result-header__title`},this.title):null,this.description?C("div",{class:`${n}-result-header__description`},this.description):null),r.default&&C("div",{class:`${n}-result-content`},r),r.footer&&C("div",{class:`${n}-result-footer`},r.footer()))}});const bMe=Object.assign(Object.assign({},Fe.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),xMe=ge({name:"Scrollbar",props:bMe,setup(){const e=X(null);return Object.assign(Object.assign({},{scrollTo:(...r)=>{var n;(n=e.value)===null||n===void 0||n.scrollTo(r[0],r[1])},scrollBy:(...r)=>{var n;(n=e.value)===null||n===void 0||n.scrollBy(r[0],r[1])}}),{scrollbarInstRef:e})},render(){return C(Un,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}});var wMe=xMe;const CMe={name:"Skeleton",common:st,self(e){const{heightSmall:t,heightMedium:r,heightLarge:n,borderRadius:a}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:a,heightSmall:t,heightMedium:r,heightLarge:n}}},SMe=e=>{const{heightSmall:t,heightMedium:r,heightLarge:n,borderRadius:a}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:a,heightSmall:t,heightMedium:r,heightLarge:n}},_Me={name:"Skeleton",common:Dt,self:SMe};var BMe=N([M("skeleton",`
|
|
height: 1em;
|
|
width: 100%;
|
|
transition: background-color .3s var(--n-bezier);
|
|
transition:
|
|
--n-color-start .3s var(--n-bezier),
|
|
--n-color-end .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1);
|
|
background-color: var(--n-color-start);
|
|
`),N("@keyframes skeleton-loading",`
|
|
0% {
|
|
background: var(--n-color-start);
|
|
}
|
|
40% {
|
|
background: var(--n-color-end);
|
|
}
|
|
80% {
|
|
background: var(--n-color-start);
|
|
}
|
|
100% {
|
|
background: var(--n-color-start);
|
|
}
|
|
`)]);const TMe=Object.assign(Object.assign({},Fe.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}});var EMe=ge({name:"Skeleton",inheritAttrs:!1,props:TMe,setup(e){rk();const{mergedClsPrefixRef:t}=et(e),r=Fe("Skeleton","-skeleton",BMe,_Me,e,t);return{mergedClsPrefix:t,style:L(()=>{var n,a;const i=r.value,{common:{cubicBezierEaseInOut:o}}=i,s=i.self,{color:l,colorEnd:u,borderRadius:c}=s;let d;const{circle:f,sharp:A,round:h,width:v,height:p,size:g,text:m,animated:y}=e;g!==void 0&&(d=s[Se("height",g)]);const b=f?(n=v!=null?v:p)!==null&&n!==void 0?n:d:v,w=(a=f&&v!=null?v:p)!==null&&a!==void 0?a:d;return{display:m?"inline-block":"",verticalAlign:m?"-0.125em":"",borderRadius:f?"50%":h?"4096px":A?"":c,width:typeof b=="number"?Tn(b):b,height:typeof w=="number"?Tn(w):w,animation:y?"":"none","--n-bezier":o,"--n-color-start":l,"--n-color-end":u}})}},render(){const{repeat:e,style:t,mergedClsPrefix:r,$attrs:n}=this,a=C("div",An({class:`${r}-skeleton`,style:t},n));return e>1?C(rr,null,Array.apply(null,{length:e}).map(i=>[a,`
|
|
`])):a}});function C$(e){return window.TouchEvent&&e instanceof window.TouchEvent}function S$(){const e=X(new Map),t=r=>n=>{e.value.set(r,n)};return KC(()=>e.value.clear()),[e,t]}var IMe=N([M("slider",`
|
|
display: block;
|
|
padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
|
|
position: relative;
|
|
z-index: 0;
|
|
width: 100%;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`,[j("reverse",[M("slider-handles",[M("slider-handle-wrapper",`
|
|
transform: translate(50%, -50%);
|
|
`)]),M("slider-dots",[M("slider-dot",`
|
|
transform: translateX(50%, -50%);
|
|
`)]),j("vertical",[M("slider-handles",[M("slider-handle-wrapper",`
|
|
transform: translate(-50%, -50%);
|
|
`)]),M("slider-marks",[M("slider-mark",`
|
|
transform: translateY(calc(-50% + var(--n-dot-height) / 2));
|
|
`)]),M("slider-dots",[M("slider-dot",`
|
|
transform: translateX(-50%) translateY(0);
|
|
`)])])]),j("vertical",`
|
|
padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
|
|
width: var(--n-rail-width-vertical);
|
|
height: 100%;
|
|
`,[M("slider-handles",`
|
|
top: calc(var(--n-handle-size) / 2);
|
|
right: 0;
|
|
bottom: calc(var(--n-handle-size) / 2);
|
|
left: 0;
|
|
`,[M("slider-handle-wrapper",`
|
|
top: unset;
|
|
left: 50%;
|
|
transform: translate(-50%, 50%);
|
|
`)]),M("slider-rail",`
|
|
height: 100%;
|
|
`,[G("fill",`
|
|
top: unset;
|
|
right: 0;
|
|
bottom: unset;
|
|
left: 0;
|
|
`)]),j("with-mark",`
|
|
width: var(--n-rail-width-vertical);
|
|
margin: 0 32px 0 8px;
|
|
`),M("slider-marks",`
|
|
top: calc(var(--n-handle-size) / 2);
|
|
right: unset;
|
|
bottom: calc(var(--n-handle-size) / 2);
|
|
left: 22px;
|
|
font-size: var(--n-mark-font-size);
|
|
`,[M("slider-mark",`
|
|
transform: translateY(50%);
|
|
white-space: nowrap;
|
|
`)]),M("slider-dots",`
|
|
top: calc(var(--n-handle-size) / 2);
|
|
right: unset;
|
|
bottom: calc(var(--n-handle-size) / 2);
|
|
left: 50%;
|
|
`,[M("slider-dot",`
|
|
transform: translateX(-50%) translateY(50%);
|
|
`)])]),j("disabled",`
|
|
cursor: not-allowed;
|
|
opacity: var(--n-opacity-disabled);
|
|
`,[M("slider-handle",`
|
|
cursor: not-allowed;
|
|
`)]),j("with-mark",`
|
|
width: 100%;
|
|
margin: 8px 0 32px 0;
|
|
`),N("&:hover",[M("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[G("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),M("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),j("active",[M("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[G("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),M("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),M("slider-marks",`
|
|
position: absolute;
|
|
top: 18px;
|
|
left: calc(var(--n-handle-size) / 2);
|
|
right: calc(var(--n-handle-size) / 2);
|
|
`,[M("slider-mark",`
|
|
position: absolute;
|
|
transform: translateX(-50%);
|
|
white-space: nowrap;
|
|
`)]),M("slider-rail",`
|
|
width: 100%;
|
|
position: relative;
|
|
height: var(--n-rail-height);
|
|
background-color: var(--n-rail-color);
|
|
transition: background-color .3s var(--n-bezier);
|
|
border-radius: calc(var(--n-rail-height) / 2);
|
|
`,[G("fill",`
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
border-radius: calc(var(--n-rail-height) / 2);
|
|
transition: background-color .3s var(--n-bezier);
|
|
background-color: var(--n-fill-color);
|
|
`)]),M("slider-handles",`
|
|
position: absolute;
|
|
top: 0;
|
|
right: calc(var(--n-handle-size) / 2);
|
|
bottom: 0;
|
|
left: calc(var(--n-handle-size) / 2);
|
|
`,[M("slider-handle-wrapper",`
|
|
outline: none;
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
cursor: pointer;
|
|
display: flex;
|
|
`,[M("slider-handle",`
|
|
height: var(--n-handle-size);
|
|
width: var(--n-handle-size);
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier);
|
|
background-color: var(--n-handle-color);
|
|
box-shadow: var(--n-handle-box-shadow);
|
|
`,[N("&:hover",`
|
|
box-shadow: var(--n-handle-box-shadow-hover);
|
|
`)]),N("&:focus",[M("slider-handle",`
|
|
box-shadow: var(--n-handle-box-shadow-focus);
|
|
`,[N("&:hover",`
|
|
box-shadow: var(--n-handle-box-shadow-active);
|
|
`)])])])]),M("slider-dots",`
|
|
position: absolute;
|
|
top: 50%;
|
|
left: calc(var(--n-handle-size) / 2);
|
|
right: calc(var(--n-handle-size) / 2);
|
|
`,[j("transition-disabled",[M("slider-dot","transition: none;")]),M("slider-dot",`
|
|
transition:
|
|
border-color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
position: absolute;
|
|
transform: translate(-50%, -50%);
|
|
height: var(--n-dot-height);
|
|
width: var(--n-dot-width);
|
|
border-radius: var(--n-dot-border-radius);
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
border: var(--n-dot-border);
|
|
background-color: var(--n-dot-color);
|
|
`,[j("active","border: var(--n-dot-border-active);")])])]),M("slider-handle-indicator",`
|
|
font-size: var(--n-font-size);
|
|
padding: 6px 10px;
|
|
border-radius: var(--n-indicator-border-radius);
|
|
color: var(--n-indicator-text-color);
|
|
background-color: var(--n-indicator-color);
|
|
box-shadow: var(--n-indicator-box-shadow);
|
|
`,[gi()]),M("slider-handle-indicator",`
|
|
font-size: var(--n-font-size);
|
|
padding: 6px 10px;
|
|
border-radius: var(--n-indicator-border-radius);
|
|
color: var(--n-indicator-text-color);
|
|
background-color: var(--n-indicator-color);
|
|
box-shadow: var(--n-indicator-box-shadow);
|
|
`,[j("top",`
|
|
margin-bottom: 12px;
|
|
`),j("right",`
|
|
margin-left: 12px;
|
|
`),j("bottom",`
|
|
margin-top: 12px;
|
|
`),j("left",`
|
|
margin-right: 12px;
|
|
`),gi()]),su(M("slider",[M("slider-dot","background-color: var(--n-dot-color-modal);")])),Kc(M("slider",[M("slider-dot","background-color: var(--n-dot-color-popover);")]))]);const RMe=0,DMe=Object.assign(Object.assign({},Fe.props),{to:Dn.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]});var FMe=ge({name:"Slider",props:DMe,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:n}=et(e),a=Fe("Slider","-slider",IMe,zRe,e,t),i=X(null),[o,s]=S$(),[l,u]=S$(),c=X(new Set),d=bi(e),{mergedDisabledRef:f}=d,A=L(()=>{const{step:te}=e;if(te<=0||te==="mark")return 0;const pe=te.toString();let de=0;return pe.includes(".")&&(de=pe.length-pe.indexOf(".")-1),de}),h=X(e.defaultValue),v=Ie(e,"value"),p=Sr(v,h),g=L(()=>{const{value:te}=p;return(e.range?te:[te]).map(Z)}),m=L(()=>g.value.length>2),y=L(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),b=L(()=>{const{marks:te}=e;return te?Object.keys(te).map(parseFloat):null}),w=X(-1),x=X(-1),S=X(-1),_=X(!1),B=X(!1),T=L(()=>{const{vertical:te,reverse:pe}=e;return te?pe?"top":"bottom":pe?"right":"left"}),E=L(()=>{if(m.value)return;const te=g.value,pe=ee(e.range?Math.min(...te):e.min),de=ee(e.range?Math.max(...te):te[0]),{value:we}=T;return e.vertical?{[we]:`${pe}%`,height:`${de-pe}%`}:{[we]:`${pe}%`,width:`${de-pe}%`}}),I=L(()=>{const te=[],{marks:pe}=e;if(pe){const de=g.value.slice();de.sort((ke,Ge)=>ke-Ge);const{value:we}=T,{value:De}=m,{range:ze}=e,Xe=De?()=>!1:ke=>ze?ke>=de[0]&&ke<=de[de.length-1]:ke<=de[0];for(const ke of Object.keys(pe)){const Ge=Number(ke);te.push({active:Xe(Ge),label:pe[ke],style:{[we]:`${ee(Ge)}%`}})}}return te});function R(te,pe){const de=ee(te),{value:we}=T;return{[we]:`${de}%`,zIndex:pe===w.value?1:0}}function D(te){return e.showTooltip||S.value===te||w.value===te&&_.value}function k(te){return _.value?!(w.value===te&&x.value===te):!0}function F(te){var pe;~te&&(w.value=te,(pe=o.value.get(te))===null||pe===void 0||pe.focus())}function P(){l.value.forEach((te,pe)=>{D(pe)&&te.syncPosition()})}function O(te){const{"onUpdate:value":pe,onUpdateValue:de}=e,{nTriggerFormInput:we,nTriggerFormChange:De}=d;de&&Ee(de,te),pe&&Ee(pe,te),h.value=te,we(),De()}function H(te){const{range:pe}=e;if(pe){if(Array.isArray(te)){const{value:de}=g;te.join()!==de.join()&&O(te)}}else Array.isArray(te)||g.value[0]!==te&&O(te)}function V(te,pe){if(e.range){const de=g.value.slice();de.splice(pe,1,te),H(de)}else H(te)}function W(te,pe,de){const we=de!==void 0;de||(de=te-pe>0?1:-1);const De=b.value||[],{step:ze}=e;if(ze==="mark"){const Ge=le(te,De.concat(pe),we?de:void 0);return Ge?Ge.value:pe}if(ze<=0)return pe;const{value:Xe}=A;let ke;if(we){const Ge=Number((pe/ze).toFixed(Xe)),it=Math.floor(Ge),ut=Ge>it?it:it-1,Ke=Ge<it?it:it+1;ke=le(pe,[Number((ut*ze).toFixed(Xe)),Number((Ke*ze).toFixed(Xe)),...De],de)}else{const Ge=ne(te);ke=le(te,[...De,Ge])}return ke?Z(ke.value):pe}function Z(te){return Math.min(e.max,Math.max(e.min,te))}function ee(te){const{max:pe,min:de}=e;return(te-de)/(pe-de)*100}function ae(te){const{max:pe,min:de}=e;return de+(pe-de)*te}function ne(te){const{step:pe,min:de}=e;if(pe<=0||pe==="mark")return te;const we=Math.round((te-de)/pe)*pe+de;return Number(we.toFixed(A.value))}function le(te,pe=b.value,de){if(!(pe!=null&&pe.length))return null;let we=null,De=-1;for(;++De<pe.length;){const ze=pe[De]-te,Xe=Math.abs(ze);(de===void 0||ze*de>0)&&(we===null||Xe<we.distance)&&(we={index:De,distance:Xe,value:pe[De]})}return we}function se(te){const pe=i.value;if(!pe)return;const de=C$(te)?te.touches[0]:te,we=pe.getBoundingClientRect();let De;return e.vertical?De=(we.bottom-de.clientY)/we.height:De=(de.clientX-we.left)/we.width,e.reverse&&(De=1-De),ae(De)}function ce(te){if(f.value||!e.keyboard)return;const{vertical:pe,reverse:de}=e;switch(te.key){case"ArrowUp":te.preventDefault(),ye(pe&&de?-1:1);break;case"ArrowRight":te.preventDefault(),ye(!pe&&de?-1:1);break;case"ArrowDown":te.preventDefault(),ye(pe&&de?1:-1);break;case"ArrowLeft":te.preventDefault(),ye(!pe&&de?1:-1);break}}function ye(te){const pe=w.value;if(pe===-1)return;const{step:de}=e,we=g.value[pe],De=de<=0||de==="mark"?we:we+de*te;V(W(De,we,te>0?1:-1),pe)}function fe(te){var pe,de;if(f.value||!C$(te)&&te.button!==RMe)return;const we=se(te);if(we===void 0)return;const De=g.value.slice(),ze=e.range?(de=(pe=le(we,De))===null||pe===void 0?void 0:pe.index)!==null&&de!==void 0?de:-1:0;ze!==-1&&(te.preventDefault(),F(ze),Q(),V(W(we,g.value[ze]),ze))}function Q(){_.value||(_.value=!0,Zt("touchend",document,K),Zt("mouseup",document,K),Zt("touchmove",document,U),Zt("mousemove",document,U))}function J(){_.value&&(_.value=!1,jt("touchend",document,K),jt("mouseup",document,K),jt("touchmove",document,U),jt("mousemove",document,U))}function U(te){const{value:pe}=w;if(!_.value||pe===-1){J();return}const de=se(te);V(W(de,g.value[pe]),pe)}function K(){J()}function q(te){w.value=te,f.value||(S.value=te)}function ie(te){w.value===te&&(w.value=-1,J()),S.value===te&&(S.value=-1)}function $(te){S.value=te}function re(te){S.value===te&&(S.value=-1)}mt(w,(te,pe)=>void ar(()=>x.value=pe)),mt(p,()=>{if(e.marks){if(B.value)return;B.value=!0,ar(()=>{B.value=!1})}ar(P)}),kr(()=>{J()});const ve=L(()=>{const{self:{markFontSize:te,railColor:pe,railColorHover:de,fillColor:we,fillColorHover:De,handleColor:ze,opacityDisabled:Xe,dotColor:ke,dotColorModal:Ge,handleBoxShadow:it,handleBoxShadowHover:ut,handleBoxShadowActive:Ke,handleBoxShadowFocus:xt,dotBorder:ue,dotBoxShadow:Te,railHeight:He,railWidthVertical:Je,handleSize:nt,dotHeight:be,dotWidth:Le,dotBorderRadius:je,fontSize:ft,dotBorderActive:Ce,dotColorPopover:Qe},common:{cubicBezierEaseInOut:me}}=a.value;return{"--n-bezier":me,"--n-dot-border":ue,"--n-dot-border-active":Ce,"--n-dot-border-radius":je,"--n-dot-box-shadow":Te,"--n-dot-color":ke,"--n-dot-color-modal":Ge,"--n-dot-color-popover":Qe,"--n-dot-height":be,"--n-dot-width":Le,"--n-fill-color":we,"--n-fill-color-hover":De,"--n-font-size":ft,"--n-handle-box-shadow":it,"--n-handle-box-shadow-active":Ke,"--n-handle-box-shadow-focus":xt,"--n-handle-box-shadow-hover":ut,"--n-handle-color":ze,"--n-handle-size":nt,"--n-opacity-disabled":Xe,"--n-rail-color":pe,"--n-rail-color-hover":de,"--n-rail-height":He,"--n-rail-width-vertical":Je,"--n-mark-font-size":te}}),he=n?_t("slider",void 0,ve,e):void 0,oe=L(()=>{const{self:{fontSize:te,indicatorColor:pe,indicatorBoxShadow:de,indicatorTextColor:we,indicatorBorderRadius:De}}=a.value;return{"--n-font-size":te,"--n-indicator-border-radius":De,"--n-indicator-box-shadow":de,"--n-indicator-color":pe,"--n-indicator-text-color":we}}),Y=n?_t("slider-indicator",void 0,oe,e):void 0;return{mergedClsPrefix:t,namespace:r,uncontrolledValue:h,mergedValue:p,mergedDisabled:f,mergedPlacement:y,isMounted:ji(),adjustedTo:Dn(e),dotTransitionDisabled:B,markInfos:I,isShowTooltip:D,shouldKeepTooltipTransition:k,handleRailRef:i,setHandleRefs:s,setFollowerRefs:u,fillStyle:E,getHandleStyle:R,activeIndex:w,arrifiedValues:g,followerEnabledIndexSet:c,handleRailMouseDown:fe,handleHandleFocus:q,handleHandleBlur:ie,handleHandleMouseEnter:$,handleHandleMouseLeave:re,handleRailKeyDown:ce,indicatorCssVars:n?void 0:oe,indicatorThemeClass:Y==null?void 0:Y.themeClass,indicatorOnRender:Y==null?void 0:Y.onRender,cssVars:n?void 0:ve,themeClass:he==null?void 0:he.themeClass,onRender:he==null?void 0:he.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:r,formatTooltip:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),C("div",{class:[`${t}-slider`,r,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},C("div",{class:`${t}-slider-rail`},C("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?C("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(a=>C("div",{key:a.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:a.active}],style:a.style}))):null,C("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((a,i)=>{const o=this.isShowTooltip(i);return C(jc,null,{default:()=>[C(Yc,null,{default:()=>C("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(a,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)},Wt(this.$slots.thumb,()=>[C("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&C(qc,{ref:this.setFollowerRefs(i),show:o,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Dn.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>C(zr,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var s;return o?((s=this.indicatorOnRender)===null||s===void 0||s.call(this),C("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof n=="function"?n(a):a)):null}})})]})})),this.marks?C("div",{class:`${t}-slider-marks`},this.markInfos.map(a=>C("div",{key:a.label,class:`${t}-slider-mark`,style:a.style},a.label))):null))}}),MMe=N([N("@keyframes spin-rotate",`
|
|
from {
|
|
transform: rotate(0);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
`),M("spin-container",{position:"relative"},[M("spin-body",`
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
`,[Vf()])]),M("spin-body",`
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
`),M("spin",`
|
|
display: inline-flex;
|
|
height: var(--n-size);
|
|
width: var(--n-size);
|
|
font-size: var(--n-size);
|
|
color: var(--n-color);
|
|
`,[j("rotate",`
|
|
animation: spin-rotate 2s linear infinite;
|
|
`)]),M("spin-description",`
|
|
display: inline-block;
|
|
font-size: var(--n-font-size);
|
|
color: var(--n-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
margin-top: 8px;
|
|
`),M("spin-content",`
|
|
opacity: 1;
|
|
transition: opacity .3s var(--n-bezier);
|
|
pointer-events: all;
|
|
`,[j("spinning",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
pointer-events: none;
|
|
opacity: var(--n-opacity-spinning);
|
|
`)])]);const kMe={small:20,medium:18,large:16},PMe=Object.assign(Object.assign({},Fe.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}});var LMe=ge({name:"Spin",props:PMe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Spin","-spin",MMe,QRe,e,t),a=L(()=>{const{size:o}=e,{common:{cubicBezierEaseInOut:s},self:l}=n.value,{opacitySpinning:u,color:c,textColor:d}=l,f=typeof o=="number"?Tn(o):l[Se("size",o)];return{"--n-bezier":s,"--n-opacity-spinning":u,"--n-size":f,"--n-color":c,"--n-text-color":d}}),i=r?_t("spin",L(()=>{const{size:o}=e;return typeof o=="number"?String(o):o[0]}),a,e):void 0;return{mergedClsPrefix:t,compitableShow:Ec(e,["spinning","show"]),mergedStrokeWidth:L(()=>{const{strokeWidth:o}=e;if(o!==void 0)return o;const{size:s}=e;return kMe[typeof s=="number"?"medium":s]}),cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:r,mergedClsPrefix:n,description:a}=this,i=r.icon&&this.rotate,o=(a||r.description)&&C("div",{class:`${n}-spin-description`},a||((e=r.description)===null||e===void 0?void 0:e.call(r))),s=r.icon?C("div",{class:[`${n}-spin-body`,this.themeClass]},C("div",{class:[`${n}-spin`,i&&`${n}-spin--rotate`],style:r.default?"":this.cssVars},r.icon()),o):C("div",{class:[`${n}-spin-body`,this.themeClass]},C(cu,{clsPrefix:n,style:r.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${n}-spin`}),o);return(t=this.onRender)===null||t===void 0||t.call(this),r.default?C("div",{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},C("div",{class:[`${n}-spin-content`,this.compitableShow&&`${n}-spin-content--spinning`]},r),C(zr,{name:"fade-in-transition"},{default:()=>this.compitableShow?s:null})):s}}),OMe=M("statistic",[G("label",`
|
|
font-weight: var(--n-label-font-weight);
|
|
transition: .3s color var(--n-bezier);
|
|
font-size: var(--n-label-font-size);
|
|
color: var(--n-label-text-color);
|
|
`),M("statistic-value",`
|
|
margin-top: 4px;
|
|
font-weight: var(--n-value-font-weight);
|
|
`,[G("prefix",`
|
|
margin: 0 4px 0 0;
|
|
font-size: var(--n-value-font-size);
|
|
transition: .3s color var(--n-bezier);
|
|
color: var(--n-value-prefix-text-color);
|
|
`,[M("icon",{verticalAlign:"-0.125em"})]),G("content",`
|
|
font-size: var(--n-value-font-size);
|
|
transition: .3s color var(--n-bezier);
|
|
color: var(--n-value-text-color);
|
|
`),G("suffix",`
|
|
margin: 0 0 0 4px;
|
|
font-size: var(--n-value-font-size);
|
|
transition: .3s color var(--n-bezier);
|
|
color: var(--n-value-suffix-text-color);
|
|
`,[M("icon",{verticalAlign:"-0.125em"})])])]);const $Me=Object.assign(Object.assign({},Fe.props),{tabularNums:Boolean,label:String,value:[String,Number]});var UMe=ge({name:"Statistic",props:$Me,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=et(e),a=Fe("Statistic","-statistic",OMe,KRe,e,t),i=tn("Statistic",n,t),o=L(()=>{const{self:{labelFontWeight:l,valueFontSize:u,valueFontWeight:c,valuePrefixTextColor:d,labelTextColor:f,valueSuffixTextColor:A,valueTextColor:h,labelFontSize:v},common:{cubicBezierEaseInOut:p}}=a.value;return{"--n-bezier":p,"--n-label-font-size":v,"--n-label-font-weight":l,"--n-label-text-color":f,"--n-value-font-weight":c,"--n-value-font-size":u,"--n-value-prefix-text-color":d,"--n-value-suffix-text-color":A,"--n-value-text-color":h}}),s=r?_t("statistic",void 0,o,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:r,label:n,prefix:a,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),C("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},or(n,o=>C("div",{class:`${t}-statistic__label`},this.label||o)),C("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},or(a,o=>o&&C("span",{class:`${t}-statistic-value__prefix`},o)),this.value!==void 0?C("span",{class:`${t}-statistic-value__content`},this.value):or(r,o=>o&&C("span",{class:`${t}-statistic-value__content`},o)),or(i,o=>o&&C("span",{class:`${t}-statistic-value__suffix`},o))))}}),HMe=M("steps",`
|
|
width: 100%;
|
|
display: flex;
|
|
`,[M("step",`
|
|
position: relative;
|
|
display: flex;
|
|
flex: 1;
|
|
`,[j("disabled","cursor: not-allowed"),j("clickable",`
|
|
cursor: pointer;
|
|
`),N("&:last-child",[M("step-splitor","display: none;")])]),M("step-splitor",`
|
|
background-color: var(--n-splitor-color);
|
|
margin-top: calc(var(--n-step-header-font-size) / 2);
|
|
height: 1px;
|
|
flex: 1;
|
|
align-self: flex-start;
|
|
margin-left: 12px;
|
|
margin-right: 12px;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
`),M("step-content","flex: 1;",[M("step-content-header",`
|
|
color: var(--n-header-text-color);
|
|
margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2);
|
|
line-height: var(--n-step-header-font-size);
|
|
font-size: var(--n-step-header-font-size);
|
|
position: relative;
|
|
display: flex;
|
|
font-weight: var(--n-step-header-font-weight);
|
|
margin-left: 9px;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
`,[G("title",`
|
|
white-space: nowrap;
|
|
flex: 0;
|
|
`)]),G("description",`
|
|
color: var(--n-description-text-color);
|
|
margin-top: 12px;
|
|
margin-left: 9px;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
`)]),M("step-indicator",`
|
|
background-color: var(--n-indicator-color);
|
|
box-shadow: 0 0 0 1px var(--n-indicator-border-color);
|
|
height: var(--n-indicator-size);
|
|
width: var(--n-indicator-size);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier);
|
|
`,[M("step-indicator-slot",`
|
|
position: relative;
|
|
width: var(--n-indicator-icon-size);
|
|
height: var(--n-indicator-icon-size);
|
|
font-size: var(--n-indicator-icon-size);
|
|
line-height: var(--n-indicator-icon-size);
|
|
`,[G("index",`
|
|
display: inline-block;
|
|
text-align: center;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
font-size: var(--n-indicator-index-font-size);
|
|
width: var(--n-indicator-icon-size);
|
|
height: var(--n-indicator-icon-size);
|
|
line-height: var(--n-indicator-icon-size);
|
|
color: var(--n-indicator-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[Wn()]),M("icon",`
|
|
color: var(--n-indicator-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[Wn()]),M("base-icon",`
|
|
color: var(--n-indicator-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[Wn()])])]),j("vertical","flex-direction: column;",[Nt("show-description",[N(">",[M("step","padding-bottom: 8px;")])]),N(">",[M("step","margin-bottom: 16px;",[N("&:last-child","margin-bottom: 0;"),N(">",[M("step-indicator",[N(">",[M("step-splitor",`
|
|
position: absolute;
|
|
bottom: -8px;
|
|
width: 1px;
|
|
margin: 0 !important;
|
|
left: calc(var(--n-indicator-size) / 2);
|
|
height: calc(100% - var(--n-indicator-size));
|
|
`)])]),M("step-content",[G("description","margin-top: 8px;")])])])])])]);function zMe(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function NMe(e){return e.map((t,r)=>zMe(t,r))}const QMe=Object.assign(Object.assign({},Fe.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),IX="n-steps";var VMe=ge({name:"Steps",props:QMe,setup(e,{slots:t}){const{mergedClsPrefixRef:r,mergedRtlRef:n}=et(e),a=tn("Steps",n,r),i=Fe("Steps","-steps",HMe,ZRe,e,r);return Ct(IX,{props:e,mergedThemeRef:i,mergedClsPrefixRef:r,stepsSlots:t}),{mergedClsPrefix:r,rtlEnabled:a}},render(){const{mergedClsPrefix:e}=this;return C("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},NMe(go(Vm(this))))}});const WMe={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}};var GMe=ge({name:"Step",props:WMe,setup(e){const t=We(IX,null);t||Ta("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:r}=et(),{props:n,mergedThemeRef:a,mergedClsPrefixRef:i,stepsSlots:o}=t,s=L(()=>n.vertical),l=L(()=>{const{status:f}=e;if(f)return f;{const{internalIndex:A}=e,{current:h}=n;if(h===void 0)return"process";if(A<h)return"finish";if(A===h)return n.status||"process";if(A>h)return"wait"}return"process"}),u=L(()=>{const{value:f}=l,{size:A}=n,{common:{cubicBezierEaseInOut:h},self:{stepHeaderFontWeight:v,[Se("stepHeaderFontSize",A)]:p,[Se("indicatorIndexFontSize",A)]:g,[Se("indicatorSize",A)]:m,[Se("indicatorIconSize",A)]:y,[Se("indicatorTextColor",f)]:b,[Se("indicatorBorderColor",f)]:w,[Se("headerTextColor",f)]:x,[Se("splitorColor",f)]:S,[Se("indicatorColor",f)]:_,[Se("descriptionTextColor",f)]:B}}=a.value;return{"--n-bezier":h,"--n-description-text-color":B,"--n-header-text-color":x,"--n-indicator-border-color":w,"--n-indicator-color":_,"--n-indicator-icon-size":y,"--n-indicator-index-font-size":g,"--n-indicator-size":m,"--n-indicator-text-color":b,"--n-splitor-color":S,"--n-step-header-font-size":p,"--n-step-header-font-weight":v}}),c=r?_t("step",L(()=>{const{value:f}=l,{size:A}=n;return`${f[0]}${A[0]}`}),u,n):void 0,d=L(()=>{if(e.disabled)return;const{onUpdateCurrent:f,"onUpdate:current":A}=n;return f||A?()=>{f&&Ee(f,e.internalIndex),A&&Ee(A,e.internalIndex)}:void 0});return{stepsSlots:o,mergedClsPrefix:i,vertical:s,mergedStatus:l,handleStepClick:d,cssVars:r?void 0:u,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:r,disabled:n}=this,a=or(this.$slots.default,i=>{const o=i||this.description;return o?C("div",{class:`${e}-step-content__description`},o):null});return t==null||t(),C("div",{class:[`${e}-step`,n&&`${e}-step--disabled`,!n&&r&&`${e}-step--clickable`,this.themeClass,a&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:r},C("div",{class:`${e}-step-indicator`},C("div",{class:`${e}-step-indicator-slot`},C(sl,null,{default:()=>or(this.$slots.icon,i=>{const{mergedStatus:o,stepsSlots:s}=this;return o==="finish"||o==="error"?o==="finish"?C($t,{clsPrefix:e,key:"finish"},{default:()=>Wt(s["finish-icon"],()=>[C(fK,null)])}):o==="error"?C($t,{clsPrefix:e,key:"error"},{default:()=>Wt(s["error-icon"],()=>[C(AK,null)])}):null:i||C("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?C("div",{class:`${e}-step-splitor`}):null),C("div",{class:`${e}-step-content`},C("div",{class:`${e}-step-content-header`},C("div",{class:`${e}-step-content-header__title`},Wt(this.$slots.title,()=>[this.title])),this.vertical?null:C("div",{class:`${e}-step-splitor`})),a))}}),KMe=M("switch",`
|
|
height: var(--n-height);
|
|
min-width: var(--n-width);
|
|
vertical-align: middle;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
display: inline-flex;
|
|
outline: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
`,[G("children-placeholder",`
|
|
height: var(--n-rail-height);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
visibility: hidden;
|
|
`),G("rail-placeholder",`
|
|
display: flex;
|
|
flex-wrap: none;
|
|
`),G("button-placeholder",`
|
|
width: calc(1.75 * var(--n-rail-height));
|
|
height: var(--n-rail-height);
|
|
`),M("base-loading",`
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
font-size: calc(var(--n-button-width) - 4px);
|
|
color: var(--n-loading-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[Wn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),G("checked, unchecked",`
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
top: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
line-height: 1;
|
|
`),G("checked",`
|
|
right: 0;
|
|
padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
|
|
`),G("unchecked",`
|
|
left: 0;
|
|
justify-content: flex-end;
|
|
padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
|
|
`),N("&:focus",[G("rail",`
|
|
box-shadow: var(--n-box-shadow-focus);
|
|
`)]),j("round",[G("rail","border-radius: calc(var(--n-rail-height) / 2);",[G("button","border-radius: calc(var(--n-button-height) / 2);")])]),Nt("disabled",[Nt("icon",[j("rubber-band",[j("pressed",[G("rail",[G("button","max-width: var(--n-button-width-pressed);")])]),G("rail",[N("&:active",[G("button","max-width: var(--n-button-width-pressed);")])]),j("active",[j("pressed",[G("rail",[G("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),G("rail",[N("&:active",[G("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),j("active",[G("rail",[G("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),G("rail",`
|
|
overflow: hidden;
|
|
height: var(--n-rail-height);
|
|
min-width: var(--n-rail-width);
|
|
border-radius: var(--n-rail-border-radius);
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition:
|
|
opacity .3s var(--n-bezier),
|
|
background .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier);
|
|
background-color: var(--n-rail-color);
|
|
`,[G("button-icon",`
|
|
color: var(--n-icon-color);
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: calc(var(--n-button-height) - 4px);
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
line-height: 1;
|
|
`,[Wn()]),G("button",`
|
|
align-items: center;
|
|
top: var(--n-offset);
|
|
left: var(--n-offset);
|
|
height: var(--n-button-height);
|
|
width: var(--n-button-width-pressed);
|
|
max-width: var(--n-button-width);
|
|
border-radius: var(--n-button-border-radius);
|
|
background-color: var(--n-button-color);
|
|
box-shadow: var(--n-button-box-shadow);
|
|
box-sizing: border-box;
|
|
cursor: inherit;
|
|
content: "";
|
|
position: absolute;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
left .3s var(--n-bezier),
|
|
opacity .3s var(--n-bezier),
|
|
max-width .3s var(--n-bezier),
|
|
box-shadow .3s var(--n-bezier);
|
|
`)]),j("active",[G("rail","background-color: var(--n-rail-color-active);")]),j("loading",[G("rail",`
|
|
cursor: wait;
|
|
`)]),j("disabled",[G("rail",`
|
|
cursor: not-allowed;
|
|
opacity: .5;
|
|
`)])]);const jMe=Object.assign(Object.assign({},Fe.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let Rp;var YMe=ge({name:"Switch",props:jMe,setup(e){Rp===void 0&&(typeof CSS!="undefined"?typeof CSS.supports!="undefined"?Rp=CSS.supports("width","max(1px)"):Rp=!1:Rp=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Switch","-switch",KMe,iDe,e,t),a=bi(e),{mergedSizeRef:i,mergedDisabledRef:o}=a,s=X(e.defaultValue),l=Ie(e,"value"),u=Sr(l,s),c=L(()=>u.value===e.checkedValue),d=X(!1),f=X(!1),A=L(()=>{const{railStyle:_}=e;if(!!_)return _({focused:f.value,checked:c.value})});function h(_){const{"onUpdate:value":B,onChange:T,onUpdateValue:E}=e,{nTriggerFormInput:I,nTriggerFormChange:R}=a;B&&Ee(B,_),E&&Ee(E,_),T&&Ee(T,_),s.value=_,I(),R()}function v(){const{nTriggerFormFocus:_}=a;_()}function p(){const{nTriggerFormBlur:_}=a;_()}function g(){e.loading||o.value||(u.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue))}function m(){f.value=!0,v()}function y(){f.value=!1,p(),d.value=!1}function b(_){e.loading||o.value||_.key===" "&&(u.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue),d.value=!1)}function w(_){e.loading||o.value||_.key===" "&&(_.preventDefault(),d.value=!0)}const x=L(()=>{const{value:_}=i,{self:{opacityDisabled:B,railColor:T,railColorActive:E,buttonBoxShadow:I,buttonColor:R,boxShadowFocus:D,loadingColor:k,textColor:F,iconColor:P,[Se("buttonHeight",_)]:O,[Se("buttonWidth",_)]:H,[Se("buttonWidthPressed",_)]:V,[Se("railHeight",_)]:W,[Se("railWidth",_)]:Z,[Se("railBorderRadius",_)]:ee,[Se("buttonBorderRadius",_)]:ae},common:{cubicBezierEaseInOut:ne}}=n.value;let le,se,ce;return Rp?(le=`calc((${W} - ${O}) / 2)`,se=`max(${W}, ${O})`,ce=`max(${Z}, calc(${Z} + ${O} - ${W}))`):(le=Tn((ma(W)-ma(O))/2),se=Tn(Math.max(ma(W),ma(O))),ce=ma(W)>ma(O)?Z:Tn(ma(Z)+ma(O)-ma(W))),{"--n-bezier":ne,"--n-button-border-radius":ae,"--n-button-box-shadow":I,"--n-button-color":R,"--n-button-width":H,"--n-button-width-pressed":V,"--n-button-height":O,"--n-height":se,"--n-offset":le,"--n-opacity-disabled":B,"--n-rail-border-radius":ee,"--n-rail-color":T,"--n-rail-color-active":E,"--n-rail-height":W,"--n-rail-width":Z,"--n-width":ce,"--n-box-shadow-focus":D,"--n-loading-color":k,"--n-text-color":F,"--n-icon-color":P}}),S=r?_t("switch",L(()=>i.value[0]),x,e):void 0;return{handleClick:g,handleBlur:y,handleFocus:m,handleKeyup:b,handleKeydown:w,mergedRailStyle:A,pressed:d,mergedClsPrefix:t,mergedValue:u,checked:c,mergedDisabled:o,cssVars:r?void 0:x,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:r,mergedRailStyle:n,onRender:a,$slots:i}=this;a==null||a();const{checked:o,unchecked:s,icon:l,"checked-icon":u,"unchecked-icon":c}=i,d=!(Bf(l)&&Bf(u)&&Bf(c));return C("div",{role:"switch","aria-checked":r,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,r&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},C("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:n},or(o,f=>or(s,A=>f||A?C("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},C("div",{class:`${e}-switch__rail-placeholder`},C("div",{class:`${e}-switch__button-placeholder`}),f),C("div",{class:`${e}-switch__rail-placeholder`},C("div",{class:`${e}-switch__button-placeholder`}),A)):null)),C("div",{class:`${e}-switch__button`},or(l,f=>or(u,A=>or(c,h=>C(sl,null,{default:()=>this.loading?C(cu,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(A||f)?C("div",{class:`${e}-switch__button-icon`,key:A?"checked-icon":"icon"},A||f):!this.checked&&(h||f)?C("div",{class:`${e}-switch__button-icon`,key:h?"unchecked-icon":"icon"},h||f):null})))),or(o,f=>f&&C("div",{key:"checked",class:`${e}-switch__checked`},f)),or(s,f=>f&&C("div",{key:"unchecked",class:`${e}-switch__unchecked`},f)))))}}),XMe=N([M("table",`
|
|
font-size: var(--n-font-size);
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: var(--n-line-height);
|
|
width: 100%;
|
|
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
|
text-align: left;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
overflow: hidden;
|
|
background-color: var(--n-td-color);
|
|
border-color: var(--n-merged-border-color);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
--n-merged-border-color: var(--n-border-color);
|
|
`,[N("th",`
|
|
white-space: nowrap;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
text-align: inherit;
|
|
padding: var(--n-th-padding);
|
|
vertical-align: inherit;
|
|
text-transform: none;
|
|
border: 0px solid var(--n-merged-border-color);
|
|
font-weight: var(--n-th-font-weight);
|
|
color: var(--n-th-text-color);
|
|
background-color: var(--n-th-color);
|
|
border-bottom: 1px solid var(--n-merged-border-color);
|
|
border-right: 1px solid var(--n-merged-border-color);
|
|
`,[N("&:last-child",`
|
|
border-right: 0px solid var(--n-merged-border-color);
|
|
`)]),N("td",`
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
padding: var(--n-td-padding);
|
|
color: var(--n-td-text-color);
|
|
background-color: var(--n-td-color);
|
|
border: 0px solid var(--n-merged-border-color);
|
|
border-right: 1px solid var(--n-merged-border-color);
|
|
border-bottom: 1px solid var(--n-merged-border-color);
|
|
`,[N("&:last-child",`
|
|
border-right: 0px solid var(--n-merged-border-color);
|
|
`)]),j("bordered",`
|
|
border: 1px solid var(--n-merged-border-color);
|
|
border-radius: var(--n-border-radius);
|
|
`,[N("tr",[N("&:last-child",[N("td",`
|
|
border-bottom: 0 solid var(--n-merged-border-color);
|
|
`)])])]),j("single-line",[N("th",`
|
|
border-right: 0px solid var(--n-merged-border-color);
|
|
`),N("td",`
|
|
border-right: 0px solid var(--n-merged-border-color);
|
|
`)]),j("single-column",[N("tr",[N("&:not(:last-child)",[N("td",`
|
|
border-bottom: 0px solid var(--n-merged-border-color);
|
|
`)])])]),j("striped",[N("tr:nth-of-type(even)",[N("td","background-color: var(--n-td-color-striped)")])]),Nt("bottom-bordered",[N("tr",[N("&:last-child",[N("td",`
|
|
border-bottom: 0px solid var(--n-merged-border-color);
|
|
`)])])])]),su(M("table",`
|
|
background-color: var(--n-td-color-modal);
|
|
--n-merged-border-color: var(--n-border-color-modal);
|
|
`,[N("th",`
|
|
background-color: var(--n-th-color-modal);
|
|
`),N("td",`
|
|
background-color: var(--n-td-color-modal);
|
|
`)])),Kc(M("table",`
|
|
background-color: var(--n-td-color-popover);
|
|
--n-merged-border-color: var(--n-border-color-popover);
|
|
`,[N("th",`
|
|
background-color: var(--n-th-color-popover);
|
|
`),N("td",`
|
|
background-color: var(--n-td-color-popover);
|
|
`)]))]);const qMe=Object.assign(Object.assign({},Fe.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}});var ZMe=ge({name:"Table",props:qMe,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=et(e),a=Fe("Table","-table",XMe,lDe,e,t),i=tn("Table",n,t),o=L(()=>{const{size:l}=e,{self:{borderColor:u,tdColor:c,tdColorModal:d,tdColorPopover:f,thColor:A,thColorModal:h,thColorPopover:v,thTextColor:p,tdTextColor:g,borderRadius:m,thFontWeight:y,lineHeight:b,borderColorModal:w,borderColorPopover:x,tdColorStriped:S,tdColorStripedModal:_,tdColorStripedPopover:B,[Se("fontSize",l)]:T,[Se("tdPadding",l)]:E,[Se("thPadding",l)]:I},common:{cubicBezierEaseInOut:R}}=a.value;return{"--n-bezier":R,"--n-td-color":c,"--n-td-color-modal":d,"--n-td-color-popover":f,"--n-td-text-color":g,"--n-border-color":u,"--n-border-color-modal":w,"--n-border-color-popover":x,"--n-border-radius":m,"--n-font-size":T,"--n-th-color":A,"--n-th-color-modal":h,"--n-th-color-popover":v,"--n-th-font-weight":y,"--n-th-text-color":p,"--n-line-height":b,"--n-td-padding":E,"--n-th-padding":I,"--n-td-color-striped":S,"--n-td-color-striped-modal":_,"--n-td-color-striped-popover":B}}),s=r?_t("table",L(()=>e.size[0]),o,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),C("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}});const eP="n-tabs",RX={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]};var JMe=ge({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:RX,setup(e){const t=We(eP,null);return t||Ta("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return C("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}});const eke=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Lv(RX,["displayDirective"]));var pw=ge({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:eke,setup(e){const{mergedClsPrefixRef:t,valueRef:r,typeRef:n,closableRef:a,tabStyleRef:i,tabChangeIdRef:o,onBeforeLeaveRef:s,triggerRef:l,handleAdd:u,activateTab:c,handleClose:d}=We(eP);return{trigger:l,mergedClosable:L(()=>{if(e.internalAddable)return!1;const{closable:f}=e;return f===void 0?a.value:f}),style:i,clsPrefix:t,value:r,type:n,handleClose(f){f.stopPropagation(),!e.disabled&&d(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){u();return}const{name:f}=e,A=++o.id;if(f!==r.value){const{value:h}=s;h?Promise.resolve(h(e.name,r.value)).then(v=>{v&&o.id===A&&c(f)}):c(f)}}}},render(){const{internalAddable:e,clsPrefix:t,name:r,disabled:n,label:a,tab:i,value:o,mergedClosable:s,style:l,trigger:u,$slots:{default:c}}=this,d=a!=null?a:i;return C("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?C("div",{class:`${t}-tabs-tab-pad`}):null,C("div",Object.assign({key:r,"data-name":r,"data-disabled":n?!0:void 0},An({class:[`${t}-tabs-tab`,o===r&&`${t}-tabs-tab--active`,n&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:u==="click"?this.activateTab:void 0,onMouseenter:u==="hover"?this.activateTab:void 0,style:e?void 0:l},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),C("span",{class:`${t}-tabs-tab__label`},e?C(rr,null,C("div",{class:`${t}-tabs-tab__height-placeholder`},"\xA0"),C($t,{clsPrefix:t},{default:()=>C(mk,null)})):c?c():typeof d=="object"?d:Mr(d!=null?d:r)),s&&this.type==="card"?C(Zc,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:n}):null))}}),tke=M("tabs",`
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`,[j("segment-type",[M("tabs-rail",[N("&.transition-disabled","color: red;",[M("tabs-tab",`
|
|
transition: none;
|
|
`)])])]),M("tabs-rail",`
|
|
padding: 3px;
|
|
border-radius: var(--n-tab-border-radius);
|
|
width: 100%;
|
|
background-color: var(--n-color-segment);
|
|
transition: background-color .3s var(--n-bezier);
|
|
display: flex;
|
|
align-items: center;
|
|
`,[M("tabs-tab-wrapper",`
|
|
flex-basis: 0;
|
|
flex-grow: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`,[M("tabs-tab",`
|
|
overflow: hidden;
|
|
border-radius: var(--n-tab-border-radius);
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`,[j("active",`
|
|
font-weight: var(--n-font-weight-strong);
|
|
color: var(--n-tab-text-color-active);
|
|
background-color: var(--n-tab-color-segment);
|
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
|
|
`),N("&:hover",`
|
|
color: var(--n-tab-text-color-hover);
|
|
`)])])]),j("flex",[M("tabs-nav",{width:"100%"},[M("tabs-wrapper",{width:"100%"},[M("tabs-tab",{marginRight:0})])])]),M("tabs-nav",`
|
|
box-sizing: border-box;
|
|
line-height: 1.5;
|
|
display: flex;
|
|
transition: border-color .3s var(--n-bezier);
|
|
`,[G("prefix, suffix",`
|
|
display: flex;
|
|
align-items: center;
|
|
`),G("prefix","padding-right: 16px;"),G("suffix","padding-left: 16px;")]),M("tabs-nav-scroll-wrapper",`
|
|
flex: 1;
|
|
position: relative;
|
|
overflow: hidden;
|
|
`,[j("shadow-before",[N("&::before",`
|
|
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
`)]),j("shadow-after",[N("&::after",`
|
|
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
`)]),N("&::before, &::after",`
|
|
transition: box-shadow .3s var(--n-bezier);
|
|
pointer-events: none;
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 20px;
|
|
z-index: 1;
|
|
`),N("&::before",`
|
|
left: 0;
|
|
`),N("&::after",`
|
|
right: 0;
|
|
`)]),M("tabs-nav-scroll-content",`
|
|
display: flex;
|
|
position: relative;
|
|
min-width: 100%;
|
|
width: fit-content;
|
|
`),M("tabs-wrapper",`
|
|
display: inline-flex;
|
|
flex-wrap: nowrap;
|
|
position: relative;
|
|
`),M("tabs-tab-wrapper",`
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
`),M("tabs-tab",`
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
flex-wrap: nowrap;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: var(--n-tab-text-color);
|
|
font-size: var(--n-tab-font-size);
|
|
background-clip: padding-box;
|
|
padding: var(--n-tab-padding);
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`,[j("disabled",{cursor:"not-allowed"}),G("close",`
|
|
margin-left: 6px;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`),G("label",`
|
|
display: flex;
|
|
align-items: center;
|
|
`)]),M("tabs-bar",`
|
|
position: absolute;
|
|
bottom: 0;
|
|
height: 2px;
|
|
border-radius: 1px;
|
|
background-color: var(--n-bar-color);
|
|
transition:
|
|
left .2s var(--n-bezier),
|
|
max-width .2s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
`,[N("&.transition-disabled",`
|
|
transition: none;
|
|
`),j("disabled",`
|
|
background-color: var(--n-tab-text-color-disabled)
|
|
`)]),M("tabs-pane-wrapper",`
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: max-height .2s var(--n-bezier);
|
|
`),M("tab-pane",`
|
|
color: var(--n-pane-text-color);
|
|
width: 100%;
|
|
padding: var(--n-pane-padding);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
opacity .2s var(--n-bezier);
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
`,[N("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
transform .2s var(--n-bezier),
|
|
opacity .2s var(--n-bezier);
|
|
`),N("&.next-transition-leave-active, &.prev-transition-leave-active",`
|
|
position: absolute;
|
|
`),N("&.next-transition-enter-from, &.prev-transition-leave-to",`
|
|
transform: translateX(32px);
|
|
opacity: 0;
|
|
`),N("&.next-transition-leave-to, &.prev-transition-enter-from",`
|
|
transform: translateX(-32px);
|
|
opacity: 0;
|
|
`),N("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
`)]),M("tabs-tab-pad",`
|
|
width: var(--n-tab-gap);
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
`),j("line-type, bar-type",[M("tabs-tab",`
|
|
font-weight: var(--n-tab-font-weight);
|
|
box-sizing: border-box;
|
|
vertical-align: bottom;
|
|
`,[N("&:hover",{color:"var(--n-tab-text-color-hover)"}),j("active",`
|
|
color: var(--n-tab-text-color-active);
|
|
font-weight: var(--n-tab-font-weight-active);
|
|
`),j("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),M("tabs-nav",[j("line-type",[G("prefix, suffix",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),M("tabs-nav-scroll-content",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),M("tabs-bar",`
|
|
border-radius: 0;
|
|
bottom: -1px;
|
|
`)]),j("card-type",[G("prefix, suffix",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),M("tabs-pad",`
|
|
flex-grow: 1;
|
|
transition: border-color .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),M("tabs-tab-pad",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),M("tabs-tab",`
|
|
font-weight: var(--n-tab-font-weight);
|
|
border: 1px solid var(--n-tab-border-color);
|
|
border-top-left-radius: var(--n-tab-border-radius);
|
|
border-top-right-radius: var(--n-tab-border-radius);
|
|
background-color: var(--n-tab-color);
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
vertical-align: bottom;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: var(--n-tab-font-size);
|
|
color: var(--n-tab-text-color);
|
|
`,[j("addable",`
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
font-size: 16px;
|
|
`,[G("height-placeholder",`
|
|
width: 0;
|
|
font-size: var(--n-tab-font-size);
|
|
`),Nt("disabled",[N("&:hover",`
|
|
color: var(--n-tab-text-color-hover);
|
|
`)])]),j("closable","padding-right: 6px;"),j("active",`
|
|
border-bottom: 1px solid #0000;
|
|
background-color: #0000;
|
|
font-weight: var(--n-tab-font-weight-active);
|
|
color: var(--n-tab-text-color-active);
|
|
`),j("disabled","color: var(--n-tab-text-color-disabled);")]),M("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")])])]);const rke=Object.assign(Object.assign({},Fe.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]});var nke=ge({name:"Tabs",props:rke,setup(e,{slots:t}){var r,n,a,i;const{mergedClsPrefixRef:o,inlineThemeDisabled:s}=et(e),l=Fe("Tabs","-tabs",tke,ADe,e,o),u=X(null),c=X(null),d=X(null),f=X(null),A=X(null),h=X(!0),v=X(!0),p=Ec(e,["labelSize","size"]),g=Ec(e,["activeName","value"]),m=X((n=(r=g.value)!==null&&r!==void 0?r:e.defaultValue)!==null&&n!==void 0?n:t.default?(i=(a=go(t.default())[0])===null||a===void 0?void 0:a.props)===null||i===void 0?void 0:i.name:null),y=Sr(g,m),b={id:0},w=L(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});mt(y,()=>{b.id=0,_(),B()});function x(){var q;const{value:ie}=y;return ie===null?null:(q=u.value)===null||q===void 0?void 0:q.querySelector(`[data-name="${ie}"]`)}function S(q){if(e.type==="card")return;const{value:ie}=c;if(!!ie&&q){const $=`${o.value}-tabs-bar--disabled`,{barWidth:re}=e;if(q.dataset.disabled==="true"?ie.classList.add($):ie.classList.remove($),typeof re=="number"&&q.offsetWidth>=re){const ve=Math.floor((q.offsetWidth-re)/2)+q.offsetLeft;ie.style.left=`${ve}px`,ie.style.maxWidth=`${re}px`}else ie.style.left=`${q.offsetLeft}px`,ie.style.maxWidth=`${q.offsetWidth}px`;ie.style.width="8192px",ie.offsetWidth}}function _(){if(e.type==="card")return;const q=x();q&&S(q)}function B(q){var ie;const $=(ie=A.value)===null||ie===void 0?void 0:ie.$el;if(!$)return;const re=x();if(!re)return;const{scrollLeft:ve,offsetWidth:he}=$,{offsetLeft:oe,offsetWidth:Y}=re;ve>oe?$.scrollTo({top:0,left:oe,behavior:"smooth"}):oe+Y>ve+he&&$.scrollTo({top:0,left:oe+Y-he,behavior:"smooth"})}const T=X(null);let E=0,I=null;function R(q){const ie=T.value;if(ie){E=q.getBoundingClientRect().height;const $=`${E}px`,re=()=>{ie.style.height=$,ie.style.maxHeight=$};I?(re(),I(),I=null):I=re}}function D(q){const ie=T.value;if(ie){const $=q.getBoundingClientRect().height,re=()=>{document.body.offsetHeight,ie.style.maxHeight=`${$}px`,ie.style.height=`${Math.max(E,$)}px`};I?(I(),I=null,re()):I=re}}function k(){const q=T.value;q&&(q.style.maxHeight="",q.style.height="")}const F={value:[]},P=X("next");function O(q){const ie=y.value;let $="next";for(const re of F.value){if(re===ie)break;if(re===q){$="prev";break}}P.value=$,H(q)}function H(q){const{onActiveNameChange:ie,onUpdateValue:$,"onUpdate:value":re}=e;ie&&Ee(ie,q),$&&Ee($,q),re&&Ee(re,q),m.value=q}function V(q){const{onClose:ie}=e;ie&&Ee(ie,q)}function W(){const{value:q}=c;if(!q)return;const ie="transition-disabled";q.classList.add(ie),_(),q.classList.remove(ie)}let Z=0;function ee(q){var ie;if(q.contentRect.width===0&&q.contentRect.height===0||Z===q.contentRect.width)return;Z=q.contentRect.width;const{type:$}=e;($==="line"||$==="bar")&&W(),$!=="segment"&&ye((ie=A.value)===null||ie===void 0?void 0:ie.$el)}const ae=xB(ee,64);mt([()=>e.justifyContent,()=>e.size],()=>{ar(()=>{const{type:q}=e;(q==="line"||q==="bar")&&W()})});const ne=X(!1);function le(q){var ie;const{target:$,contentRect:{width:re}}=q,ve=$.parentElement.offsetWidth;if(!ne.value)ve<re&&(ne.value=!0);else{const{value:he}=f;if(!he)return;ve-re>he.$el.offsetWidth&&(ne.value=!1)}ye((ie=A.value)===null||ie===void 0?void 0:ie.$el)}const se=xB(le,64);function ce(){const{onAdd:q}=e;q&&q(),ar(()=>{const ie=x(),{value:$}=A;!ie||!$||$.scrollTo({left:ie.offsetLeft,top:0,behavior:"smooth"})})}function ye(q){if(!q)return;const{scrollLeft:ie,scrollWidth:$,offsetWidth:re}=q;h.value=ie<=0,v.value=ie+re>=$}const fe=xB(q=>{ye(q.target)},64);Ct(eP,{triggerRef:Ie(e,"trigger"),tabStyleRef:Ie(e,"tabStyle"),paneClassRef:Ie(e,"paneClass"),paneStyleRef:Ie(e,"paneStyle"),mergedClsPrefixRef:o,typeRef:Ie(e,"type"),closableRef:Ie(e,"closable"),valueRef:y,tabChangeIdRef:b,onBeforeLeaveRef:Ie(e,"onBeforeLeave"),activateTab:O,handleClose:V,handleAdd:ce}),ZM(()=>{_(),B()}),yr(()=>{const{value:q}=d;if(!q)return;const{value:ie}=o,$=`${ie}-tabs-nav-scroll-wrapper--shadow-before`,re=`${ie}-tabs-nav-scroll-wrapper--shadow-after`;h.value?q.classList.remove($):q.classList.add($),v.value?q.classList.remove(re):q.classList.add(re)});const Q=X(null);mt(y,()=>{if(e.type==="segment"){const q=Q.value;q&&ar(()=>{q.classList.add("transition-disabled"),q.offsetWidth,q.classList.remove("transition-disabled")})}});const J={syncBarPosition:()=>{_()}},U=L(()=>{const{value:q}=p,{type:ie}=e,$={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[ie],re=`${q}${$}`,{self:{barColor:ve,closeIconColor:he,closeIconColorHover:oe,closeIconColorPressed:Y,tabColor:te,tabBorderColor:pe,paneTextColor:de,tabFontWeight:we,tabBorderRadius:De,tabFontWeightActive:ze,colorSegment:Xe,fontWeightStrong:ke,tabColorSegment:Ge,closeSize:it,closeIconSize:ut,closeColorHover:Ke,closeColorPressed:xt,closeBorderRadius:ue,[Se("panePadding",q)]:Te,[Se("tabPadding",re)]:He,[Se("tabGap",re)]:Je,[Se("tabTextColor",ie)]:nt,[Se("tabTextColorActive",ie)]:be,[Se("tabTextColorHover",ie)]:Le,[Se("tabTextColorDisabled",ie)]:je,[Se("tabFontSize",q)]:ft},common:{cubicBezierEaseInOut:Ce}}=l.value;return{"--n-bezier":Ce,"--n-color-segment":Xe,"--n-bar-color":ve,"--n-tab-font-size":ft,"--n-tab-text-color":nt,"--n-tab-text-color-active":be,"--n-tab-text-color-disabled":je,"--n-tab-text-color-hover":Le,"--n-pane-text-color":de,"--n-tab-border-color":pe,"--n-tab-border-radius":De,"--n-close-size":it,"--n-close-icon-size":ut,"--n-close-color-hover":Ke,"--n-close-color-pressed":xt,"--n-close-border-radius":ue,"--n-close-icon-color":he,"--n-close-icon-color-hover":oe,"--n-close-icon-color-pressed":Y,"--n-tab-color":te,"--n-tab-font-weight":we,"--n-tab-font-weight-active":ze,"--n-tab-padding":He,"--n-tab-gap":Je,"--n-pane-padding":Te,"--n-font-weight-strong":ke,"--n-tab-color-segment":Ge}}),K=s?_t("tabs",L(()=>`${p.value[0]}${e.type[0]}`),U,e):void 0;return Object.assign({mergedClsPrefix:o,mergedValue:y,renderedNames:new Set,tabsRailElRef:Q,tabsPaneWrapperRef:T,tabsElRef:u,barElRef:c,addTabInstRef:f,xScrollInstRef:A,scrollWrapperElRef:d,addTabFixed:ne,tabWrapperStyle:w,handleNavResize:ae,mergedSize:p,handleScroll:fe,handleTabsResize:se,cssVars:s?void 0:U,themeClass:K==null?void 0:K.themeClass,animationDirection:P,renderNameListRef:F,onAnimationBeforeLeave:R,onAnimationEnter:D,onAnimationAfterEnter:k,onRender:K==null?void 0:K.onRender},J)},render(){const{mergedClsPrefix:e,type:t,addTabFixed:r,addable:n,mergedSize:a,renderNameListRef:i,onRender:o,$slots:{default:s,prefix:l,suffix:u}}=this;o==null||o();const c=s?go(s()).filter(p=>p.type.__TAB_PANE__===!0):[],d=s?go(s()).filter(p=>p.type.__TAB__===!0):[],f=!d.length,A=t==="card",h=t==="segment",v=!A&&!h&&this.justifyContent;return i.value=[],C("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,v&&`${e}-tabs--flex`],style:this.cssVars},C("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav`]},or(l,p=>p&&C("div",{class:`${e}-tabs-nav__prefix`},p)),h?C("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},f?c.map((p,g)=>(i.value.push(p.props.name),C(pw,Object.assign({},p.props,{internalCreatedByPane:!0,internalLeftPadded:g!==0}),p.children?{default:p.children.tab}:void 0))):d.map((p,g)=>(i.value.push(p.props.name),g===0?p:T$(p)))):C(bo,{onResize:this.handleNavResize},{default:()=>C("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},C(sAe,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:()=>{const p=C("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},v?null:C("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),f?c.map((m,y)=>(i.value.push(m.props.name),e2(C(pw,Object.assign({},m.props,{internalCreatedByPane:!0,internalLeftPadded:y!==0&&(!v||v==="center"||v==="start"||v==="end")}),m.children?{default:m.children.tab}:void 0)))):d.map((m,y)=>(i.value.push(m.props.name),e2(y!==0&&!v?T$(m):m))),!r&&n&&A?B$(n,(f?c.length:d.length)!==0):null,v?null:C("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));let g=p;return A&&n&&(g=C(bo,{onResize:this.handleTabsResize},{default:()=>p})),C("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},g,A?C("div",{class:`${e}-tabs-pad`}):null,A?null:C("div",{ref:"barElRef",class:`${e}-tabs-bar`}))}}))}),r&&n&&A?B$(n,!0):null,or(u,p=>p&&C("div",{class:`${e}-tabs-nav__suffix`},p))),f&&(this.animated?C("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},_$(c,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):_$(c,this.mergedValue,this.renderedNames)))}});function _$(e,t,r,n,a,i,o){const s=[];return e.forEach(l=>{const{name:u,displayDirective:c,"display-directive":d}=l.props,f=h=>c===h||d===h,A=t===u;if(l.key!==void 0&&(l.key=u),A||f("show")||f("show:lazy")&&r.has(u)){r.has(u)||r.add(u);const h=!f("if");s.push(h?jr(l,[[Bn,A]]):l)}}),o?C(qC,{name:`${o}-transition`,onBeforeLeave:n,onEnter:a,onAfterEnter:i},{default:()=>s}):s}function B$(e,t){return C(pw,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function T$(e){const t=wa(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function e2(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}var ake=M("thing",`
|
|
display: flex;
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: var(--n-font-size);
|
|
color: var(--n-text-color);
|
|
`,[M("thing-avatar",`
|
|
margin-right: 12px;
|
|
margin-top: 2px;
|
|
`),M("thing-avatar-header-wrapper",`
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
`,[M("thing-header-wrapper",`
|
|
flex: 1;
|
|
`)]),M("thing-main",`
|
|
flex-grow: 1;
|
|
`,[M("thing-header",`
|
|
display: flex;
|
|
margin-bottom: 4px;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
`,[G("title",`
|
|
font-size: 16px;
|
|
font-weight: var(--n-title-font-weight);
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-title-text-color);
|
|
`)]),G("description",[N("&:not(:last-child)",`
|
|
margin-bottom: 4px;
|
|
`)]),G("content",[N("&:not(:first-child)",`
|
|
margin-top: 12px;
|
|
`)]),G("footer",[N("&:not(:first-child)",`
|
|
margin-top: 12px;
|
|
`)]),G("action",[N("&:not(:first-child)",`
|
|
margin-top: 12px;
|
|
`)])])]);const ike=Object.assign(Object.assign({},Fe.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean});var oke=ge({name:"Thing",props:ike,setup(e,{slots:t}){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:a}=et(e),i=Fe("Thing","-thing",ake,gDe,e,r),o=tn("Thing",a,r),s=L(()=>{const{self:{titleTextColor:u,textColor:c,titleFontWeight:d,fontSize:f},common:{cubicBezierEaseInOut:A}}=i.value;return{"--n-bezier":A,"--n-font-size":f,"--n-text-color":c,"--n-title-font-weight":d,"--n-title-text-color":u}}),l=n?_t("thing",void 0,s,e):void 0;return()=>{var u;const{value:c}=r,d=o?o.value:!1;return(u=l==null?void 0:l.onRender)===null||u===void 0||u.call(l),C("div",{class:[`${c}-thing`,l==null?void 0:l.themeClass,d&&`${c}-thing--rtl`],style:n?void 0:s.value},t.avatar&&e.contentIndented?C("div",{class:`${c}-thing-avatar`},t.avatar()):null,C("div",{class:`${c}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?C("div",{class:`${c}-thing-avatar-header-wrapper`},t.avatar?C("div",{class:`${c}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?C("div",{class:`${c}-thing-header-wrapper`},C("div",{class:`${c}-thing-header`},t.header||e.title?C("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?C("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?C("div",{class:`${c}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):C(rr,null,t.header||e.title||t["header-extra"]||e.titleExtra?C("div",{class:`${c}-thing-header`},t.header||e.title?C("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?C("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?C("div",{class:`${c}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?C("div",{class:`${c}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?C("div",{class:`${c}-thing-main__footer`},t.footer()):null,t.action?C("div",{class:`${c}-thing-main__action`},t.action()):null))}}});const ske={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String};var lke=ge({name:"Time",props:ske,setup(e){const t=Date.now(),{localeRef:r,dateLocaleRef:n}=Io("Time"),a=L(()=>{const{timeZone:u}=e;return u?(c,d,f)=>fY(c,u,d,f):nn}),i=L(()=>({locale:n.value.locale})),o=L(()=>{const{time:u}=e;return e.unix?u===void 0?t:R3(typeof u=="number"?u:u.valueOf()):u!=null?u:t}),s=L(()=>{const{to:u}=e;return e.unix?u===void 0?t:R3(typeof u=="number"?u:u.valueOf()):u!=null?u:t});return{renderedTime:L(()=>e.format?a.value(o.value,e.format,i.value):e.type==="date"?a.value(o.value,r.value.dateFormat,i.value):e.type==="datetime"?a.value(o.value,r.value.dateTimeFormat,i.value):Mwe(o.value,s.value,{addSuffix:!0,locale:n.value.locale}))}},render(){return this.text?jl(this.renderedTime):C("time",[this.renderedTime])}});const E$=1.25;var uke=M("timeline",`
|
|
position: relative;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
line-height: ${E$};
|
|
`,[j("horizontal",`
|
|
flex-direction: row;
|
|
`,[N(">",[M("timeline-item",`
|
|
flex-shrink: 0;
|
|
padding-right: 40px;
|
|
`,[N(">",[M("timeline-item-content",`
|
|
margin-top: calc(var(--n-icon-size) + 12px);
|
|
`,[N(">",[G("meta",`
|
|
margin-top: 6px;
|
|
margin-bottom: unset;
|
|
`)])]),M("timeline-item-timeline",`
|
|
width: 100%;
|
|
height: calc(var(--n-icon-size) + 12px);
|
|
`,[G("line",`
|
|
left: var(--n-icon-size);
|
|
top: calc(var(--n-icon-size) / 2 - 1px);
|
|
right: 0px;
|
|
width: unset;
|
|
height: 2px;
|
|
`)])])])])]),j("right-placement",[M("timeline-item",[M("timeline-item-content",`
|
|
text-align: right;
|
|
margin-right: calc(var(--n-icon-size) + 12px);
|
|
`),M("timeline-item-timeline",`
|
|
width: var(--n-icon-size);
|
|
right: 0;
|
|
`)])]),j("left-placement",[M("timeline-item",[M("timeline-item-content",`
|
|
margin-left: calc(var(--n-icon-size) + 12px);
|
|
`),M("timeline-item-timeline",`
|
|
left: 0;
|
|
`)])]),M("timeline-item",`
|
|
position: relative;
|
|
`,[N("&:last-child",[M("timeline-item-timeline",[G("line",`
|
|
display: none;
|
|
`)]),M("timeline-item-content",[G("meta",`
|
|
margin-bottom: 0;
|
|
`)])]),M("timeline-item-content",[G("title",`
|
|
margin: var(--n-title-margin);
|
|
font-size: var(--n-title-font-size);
|
|
transition: color .3s var(--n-bezier);
|
|
font-weight: var(--n-title-font-weight);
|
|
color: var(--n-title-text-color);
|
|
`),G("content",`
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: var(--n-content-font-size);
|
|
color: var(--n-content-text-color);
|
|
`),G("meta",`
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: 12px;
|
|
margin-top: 6px;
|
|
margin-bottom: 20px;
|
|
color: var(--n-meta-text-color);
|
|
`)]),j("dashed-line-type",[M("timeline-item-timeline",[G("line",`
|
|
--n-color-start: var(--n-line-color);
|
|
transition: --n-color-start .3s var(--n-bezier);
|
|
background-color: transparent;
|
|
background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%);
|
|
background-size: 1px 10px;
|
|
`)])]),M("timeline-item-timeline",`
|
|
width: calc(var(--n-icon-size) + 12px);
|
|
position: absolute;
|
|
top: calc(var(--n-title-font-size) * ${E$} / 2 - var(--n-icon-size) / 2);
|
|
height: 100%;
|
|
`,[G("circle",`
|
|
border: var(--n-circle-border);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
width: var(--n-icon-size);
|
|
height: var(--n-icon-size);
|
|
border-radius: var(--n-icon-size);
|
|
box-sizing: border-box;
|
|
`),G("icon",`
|
|
color: var(--n-icon-color);
|
|
font-size: var(--n-icon-size);
|
|
height: var(--n-icon-size);
|
|
width: var(--n-icon-size);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`),G("line",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
position: absolute;
|
|
top: var(--n-icon-size);
|
|
left: calc(var(--n-icon-size) / 2 - 1px);
|
|
bottom: 0px;
|
|
width: 2px;
|
|
background-color: var(--n-line-color);
|
|
`)])])]);const cke=Object.assign(Object.assign({},Fe.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),DX="n-timeline";var dke=ge({name:"Timeline",props:cke,setup(e,{slots:t}){const{mergedClsPrefixRef:r}=et(e),n=Fe("Timeline","-timeline",uke,SDe,e,r);return Ct(DX,{props:e,mergedThemeRef:n,mergedClsPrefixRef:r}),()=>{const{value:a}=r;return C("div",{class:[`${a}-timeline`,e.horizontal&&`${a}-timeline--horizontal`,`${a}-timeline--${e.size}-size`,!e.horizontal&&`${a}-timeline--${e.itemPlacement}-placement`]},t)}}});const fke={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}};var Ake=ge({name:"TimelineItem",props:fke,setup(e){const t=We(DX);t||Ta("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),rk();const{inlineThemeDisabled:r}=et(),n=L(()=>{const{props:{size:i,iconSize:o},mergedThemeRef:s}=t,{type:l}=e,{self:{titleTextColor:u,contentTextColor:c,metaTextColor:d,lineColor:f,titleFontWeight:A,contentFontSize:h,[Se("iconSize",i)]:v,[Se("titleMargin",i)]:p,[Se("titleFontSize",i)]:g,[Se("circleBorder",l)]:m,[Se("iconColor",l)]:y},common:{cubicBezierEaseInOut:b}}=s.value;return{"--n-bezier":b,"--n-circle-border":m,"--n-icon-color":y,"--n-content-font-size":h,"--n-content-text-color":c,"--n-line-color":f,"--n-meta-text-color":d,"--n-title-font-size":g,"--n-title-font-weight":A,"--n-title-margin":p,"--n-title-text-color":u,"--n-icon-size":pr(o)||v}}),a=r?_t("timeline-item",L(()=>{const{props:{size:i,iconSize:o}}=t,{type:s}=e;return`${i[0]}${o||"a"}${s[0]}`}),n,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:r?void 0:n,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:r,$slots:n}=this;return r==null||r(),C("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},C("div",{class:`${e}-timeline-item-timeline`},C("div",{class:`${e}-timeline-item-timeline__line`}),or(n.icon,a=>a?C("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},a):C("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),C("div",{class:`${e}-timeline-item-content`},or(n.header,a=>a||this.title?C("div",{class:`${e}-timeline-item-content__title`},a||this.title):null),C("div",{class:`${e}-timeline-item-content__content`},Wt(n.default,()=>[this.content])),C("div",{class:`${e}-timeline-item-content__meta`},Wt(n.footer,()=>[this.time]))))}});const FX="n-tree-select",ny="n-tree";var hke=ge({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=We(ny,null);return()=>{const{clsPrefix:r}=e;return C("span",{"data-switcher":!0,class:[`${r}-tree-node-switcher`,{[`${r}-tree-node-switcher--expanded`]:e.expanded,[`${r}-tree-node-switcher--hide`]:e.hide}],onClick:e.onClick},C("div",{class:`${r}-tree-node-switcher__icon`},C(sl,null,{default:()=>{if(e.loading)return C(cu,{clsPrefix:r,key:"loading",radius:85,strokeWidth:20});const{value:n}=t;return n?n():C($t,{clsPrefix:r,key:"switcher"},{default:()=>C(tbe,null)})}})))}}}),vke=ge({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=We(ny);function r(a){const{onCheck:i}=e;if(i)return i(a)}function n(a){e.indeterminate?r(!1):r(a)}return{handleUpdateValue:n,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:r,indeterminate:n,disabled:a,focusable:i,handleUpdateValue:o}=this;return C("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},C(Zm,{focusable:i,disabled:a,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:r,indeterminate:n,onUpdateChecked:o}))}}),pke=ge({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:r,renderSuffixRef:n,labelFieldRef:a}=We(ny),i=X(null);function o(l){const{onClick:u}=e;u&&u(l)}function s(l){o(l)}return{selfRef:i,renderLabel:t,renderPrefix:r,renderSuffix:n,labelField:a,handleClick:s}},render(){const{clsPrefix:e,labelField:t,nodeProps:r,checked:n=!1,selected:a=!1,renderLabel:i,renderPrefix:o,renderSuffix:s,handleClick:l,onDragstart:u,tmNode:{rawNode:c,rawNode:{prefix:d,suffix:f,[t]:A}}}=this;return C("span",Object.assign({},r,{ref:"selfRef",class:[`${e}-tree-node-content`,r==null?void 0:r.class],onClick:l,draggable:u===void 0?void 0:!0,onDragstart:u}),o||d?C("div",{class:`${e}-tree-node-content__prefix`},o?o({option:c,selected:a,checked:n}):Mr(d)):null,C("div",{class:`${e}-tree-node-content__text`},i?i({option:c,selected:a,checked:n}):Mr(A)),s||f?C("div",{class:`${e}-tree-node-content__suffix`},s?s({option:c,selected:a,checked:n}):Mr(f)):null)}});function I$({position:e,offsetLevel:t,indent:r,el:n}){const a={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")a.left=0,a.top=0,a.bottom=0,a.borderRadius="inherit",a.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";a[i]=0,a.left=`${n.offsetLeft+6-t*r}px`,a.height="2px",a.backgroundColor="var(--n-drop-mark-color)",a.transformOrigin=i,a.borderRadius="1px",a.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return C("div",{style:a})}function gke({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function Pu(e,t){return!!e.rawNode[t]}function MX(e,t,r,n){e==null||e.forEach(a=>{r(a),MX(a[t],t,r,n),n(a)})}function mke(e,t,r,n,a){const i=new Set,o=new Set,s=[];return MX(e,n,l=>{if(s.push(l),a(t,l)){o.add(l[r]);for(let u=s.length-2;u>=0;--u)if(!i.has(s[u][r]))i.add(s[u][r]);else return}},()=>{s.pop()}),{expandedKeys:Array.from(i),highlightKeySet:o}}const R$=null;if(To&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function yke(e,t,r,n,a){const i=new Set,o=new Set,s=new Set,l=[],u=[],c=[];function d(A){A.forEach(h=>{if(c.push(h),t(r,h)){i.add(h[n]),s.add(h[n]);for(let p=c.length-2;p>=0;--p){const g=c[p][n];if(!o.has(g))o.add(g),i.has(g)&&i.delete(g);else break}}const v=h[a];v&&d(v),c.pop()})}d(e);function f(A,h){A.forEach(v=>{const p=v[n],g=i.has(p),m=o.has(p);if(!g&&!m)return;const y=v[a];if(y)if(g)h.push(v);else{l.push(p);const b=Object.assign(Object.assign({},v),{[a]:[]});h.push(b),f(y,b[a])}else h.push(v)})}return f(e,u),{filteredTree:u,highlightKeySet:s,expandedKeys:l}}const bke=ge({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=We(ny),{droppingNodeParentRef:r,droppingMouseNodeRef:n,draggingNodeRef:a,droppingPositionRef:i,droppingOffsetLevelRef:o,nodePropsRef:s,indentRef:l,blockLineRef:u,checkboxPlacementRef:c,checkOnClickRef:d,disabledFieldRef:f}=t,A=Rt(()=>!!e.tmNode.rawNode.checkboxDisabled),h=Rt(()=>Pu(e.tmNode,f.value)),v=Rt(()=>t.disabledRef.value||h.value),p=L(()=>{const{value:O}=s;if(!!O)return O({option:e.tmNode.rawNode})}),g=X(null),m={value:null};Ar(()=>{m.value=g.value.$el});function y(){const{tmNode:O}=e;if(!O.isLeaf&&!O.shallowLoaded){if(!t.loadingKeysRef.value.has(O.key))t.loadingKeysRef.value.add(O.key);else return;const{onLoadRef:{value:H}}=t;H&&H(O.rawNode).then(()=>{t.handleSwitcherClick(O)}).finally(()=>{t.loadingKeysRef.value.delete(O.key)})}else t.handleSwitcherClick(O)}const b=Rt(()=>!h.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=Rt(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),x=Rt(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),S=Rt(()=>{const{value:O}=w;if(!O)return!1;const{value:H}=d;return typeof H=="boolean"?H:H(e.tmNode.rawNode)});function _(O){const{value:H}=t.expandOnClickRef,{value:V}=b,{value:W}=S;if(!V&&!H&&!W||Wi(O,"checkbox")||Wi(O,"switcher"))return;const{tmNode:Z}=e;V&&t.handleSelect(Z),H&&!Z.isLeaf&&y(),W&&E(!x.value)}function B(O){var H,V;u.value||(v.value||_(O),(V=(H=p.value)===null||H===void 0?void 0:H.onClick)===null||V===void 0||V.call(H,O))}function T(O){var H,V;!u.value||(v.value||_(O),(V=(H=p.value)===null||H===void 0?void 0:H.onClick)===null||V===void 0||V.call(H,O))}function E(O){t.handleCheck(e.tmNode,O)}function I(O){t.handleDragStart({event:O,node:e.tmNode})}function R(O){O.currentTarget===O.target&&t.handleDragEnter({event:O,node:e.tmNode})}function D(O){O.preventDefault(),t.handleDragOver({event:O,node:e.tmNode})}function k(O){t.handleDragEnd({event:O,node:e.tmNode})}function F(O){O.currentTarget===O.target&&t.handleDragLeave({event:O,node:e.tmNode})}function P(O){O.preventDefault(),i.value!==null&&t.handleDrop({event:O,node:e.tmNode,dropPosition:i.value})}return{showDropMark:Rt(()=>{const{value:O}=a;if(!O)return;const{value:H}=i;if(!H)return;const{value:V}=n;if(!V)return;const{tmNode:W}=e;return W.key===V.key}),showDropMarkAsParent:Rt(()=>{const{value:O}=r;if(!O)return!1;const{tmNode:H}=e,{value:V}=i;return V==="before"||V==="after"?O.key===H.key:!1}),pending:Rt(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:Rt(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:Rt(()=>{var O;return(O=t.highlightKeySetRef.value)===null||O===void 0?void 0:O.has(e.tmNode.key)}),checked:x,indeterminate:Rt(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:Rt(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:Rt(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:v,checkable:w,mergedCheckOnClick:S,checkboxDisabled:A,selectable:b,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:u,nodeProps:p,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:o,indent:l,checkboxPlacement:c,contentInstRef:g,contentElRef:m,handleCheck:E,handleDrop:P,handleDragStart:I,handleDragEnter:R,handleDragOver:D,handleDragEnd:k,handleDragLeave:F,handleLineClick:T,handleContentClick:B,handleSwitcherClick:y}},render(){const{tmNode:e,clsPrefix:t,checkable:r,expandOnClick:n,selectable:a,selected:i,checked:o,highlight:s,draggable:l,blockLine:u,indent:c,disabled:d,pending:f,internalScrollable:A,nodeProps:h,checkboxPlacement:v}=this,p=l&&!d?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,g=A?$W(e.key):void 0,m=v==="right",y=r?C(vke,{right:m,focusable:this.checkboxFocusable,disabled:d||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return C("div",Object.assign({class:`${t}-tree-node-wrapper`},p),C("div",Object.assign({},u?h:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:r,[`${t}-tree-node--highlight`]:s,[`${t}-tree-node--pending`]:f,[`${t}-tree-node--disabled`]:d,[`${t}-tree-node--selectable`]:a,[`${t}-tree-node--clickable`]:a||n||this.mergedCheckOnClick},h==null?void 0:h.class],"data-key":g,draggable:l&&u,onClick:this.handleLineClick,onDragstart:l&&u&&!d?this.handleDragStart:void 0}),LW(e.level,C("div",{class:`${t}-tree-node-indent`},C("div",{style:{width:`${c}px`}}))),C(hke,{clsPrefix:t,expanded:this.expanded,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),m?null:y,C(pke,{ref:"contentInstRef",clsPrefix:t,checked:o,selected:i,onClick:this.handleContentClick,nodeProps:u?void 0:h,onDragstart:l&&!u&&!d?this.handleDragStart:void 0,tmNode:e}),l?this.showDropMark?I$({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:c}):this.showDropMarkAsParent?I$({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:c}):null:null,m?y:null))}});var kX=bke;function xke({props:e,fNodesRef:t,mergedExpandedKeysRef:r,mergedSelectedKeysRef:n,handleSelect:a,handleSwitcherClick:i}){const{value:o}=n,s=We(FX,null),l=s?s.pendingNodeKeyRef:X(o.length?o[o.length-1]:null);function u(c){if(!e.keyboard)return;const{value:d}=l;if(d===null){if((c.key==="ArrowDown"||c.key==="ArrowUp")&&c.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(c.key)&&d===null){const{value:f}=t;let A=0;for(;A<f.length;){if(!f[A].disabled){l.value=f[A].key;break}A+=1}}}else{const{value:f}=t;let A=f.findIndex(h=>h.key===d);if(!~A)return;if(c.key==="Enter")a(f[A]);else if(c.key==="ArrowDown")for(c.preventDefault(),A+=1;A<f.length;){if(!f[A].disabled){l.value=f[A].key;break}A+=1}else if(c.key==="ArrowUp")for(c.preventDefault(),A-=1;A>=0;){if(!f[A].disabled){l.value=f[A].key;break}A-=1}else if(c.key==="ArrowLeft"){const h=f[A];if(h.isLeaf||!r.value.includes(d)){const v=h.getParent();v&&(l.value=v.key)}else i(h)}else if(c.key==="ArrowRight"){const h=f[A];if(h.isLeaf)return;if(!r.value.includes(d))i(h);else for(A+=1;A<f.length;){if(!f[A].disabled){l.value=f[A].key;break}A+=1}}}}return{pendingNodeKeyRef:l,handleKeydown:u}}var wke=ge({name:"TreeMotionWrapper",props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){const{clsPrefix:e}=this;return C(ll,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>C("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:Tn(this.height)}},this.nodes.map(t=>C(kX,{clsPrefix:e,tmNode:t})))})}}),Cke=M("tree",`
|
|
font-size: var(--n-font-size);
|
|
outline: none;
|
|
`,[N("ul, li",`
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
`),N(">",[M("tree-node",[N("&:first-child",{marginTop:0})])]),M("tree-node-indent",`
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
height: 0;
|
|
`),M("tree-motion-wrapper",[j("expand",[Yl({duration:"0.2s"})]),j("collapse",[Yl({duration:"0.2s",reverse:!0})])]),M("tree-node-wrapper",`
|
|
box-sizing: border-box;
|
|
padding: 3px 0;
|
|
`),M("tree-node",`
|
|
position: relative;
|
|
display: flex;
|
|
border-radius: var(--n-node-border-radius);
|
|
transition: background-color .3s var(--n-bezier);
|
|
`,[j("highlight",[M("tree-node-content",[G("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),j("disabled",[M("tree-node-content",`
|
|
color: var(--n-node-text-color-disabled);
|
|
cursor: not-allowed;
|
|
`)]),Nt("disabled",[j("clickable",[M("tree-node-content",`
|
|
cursor: pointer;
|
|
`)])])]),j("block-node",[M("tree-node-content",`
|
|
flex: 1;
|
|
min-width: 0;
|
|
`)]),Nt("block-line",[M("tree-node",[Nt("disabled",[M("tree-node-content",[N("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),j("selectable",[M("tree-node-content",[N("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),j("pending",[M("tree-node-content",`
|
|
background-color: var(--n-node-color-hover);
|
|
`)]),j("selected",[M("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),j("block-line",[M("tree-node",[Nt("disabled",[N("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),j("pending",`
|
|
background-color: var(--n-node-color-hover);
|
|
`),j("selectable",[Nt("selected",[N("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),j("selected",{backgroundColor:"var(--n-node-color-active)"})]),j("disabled",`
|
|
cursor: not-allowed;
|
|
`)])]),M("tree-node-switcher",`
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
flex-shrink: 0;
|
|
height: 24px;
|
|
width: 24px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: transform .15s var(--n-bezier);
|
|
vertical-align: bottom;
|
|
`,[G("icon",`
|
|
position: relative;
|
|
height: 14px;
|
|
width: 14px;
|
|
display: flex;
|
|
color: var(--n-arrow-color);
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: 14px;
|
|
`,[M("icon",[Wn()]),M("base-loading",`
|
|
color: var(--n-loading-color);
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
`,[Wn()]),M("base-icon",[Wn()])]),j("hide",{visibility:"hidden"}),j("expanded",{transform:"rotate(90deg)"})]),M("tree-node-checkbox",`
|
|
display: inline-flex;
|
|
height: 24px;
|
|
width: 16px;
|
|
vertical-align: bottom;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 4px;
|
|
`,[j("right","margin-left: 4px;")]),j("checkable",[M("tree-node-content",`
|
|
padding: 0 6px;
|
|
`)]),M("tree-node-content",`
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 24px;
|
|
box-sizing: border-box;
|
|
line-height: 1.5;
|
|
vertical-align: bottom;
|
|
padding: 0 6px 0 4px;
|
|
cursor: default;
|
|
border-radius: var(--n-node-border-radius);
|
|
text-decoration-color: #0000;
|
|
text-decoration-line: underline;
|
|
color: var(--n-node-text-color);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
text-decoration-color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`,[N("&:last-child",{marginBottom:0}),G("prefix",`
|
|
display: inline-flex;
|
|
margin-right: 8px;
|
|
`),G("text",`
|
|
border-bottom: 1px solid #0000;
|
|
transition: border-color .3s var(--n-bezier);
|
|
flex-grow: 1;
|
|
max-width: 100%;
|
|
`),G("suffix",`
|
|
display: inline-flex;
|
|
`)]),G("empty","margin: auto;")]),Ske=globalThis&&globalThis.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const pb=30;function _ke(e,t,r){return{getIsGroup(){return!1},getKey(n){return n[e]},getChildren(n){return n[t]},getDisabled(n){return!!(n[r]||n.checkboxDisabled)}}}const Bke={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},Tke=Object.assign(Object.assign(Object.assign(Object.assign({},Fe.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:gke},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),Bke),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean});var Eke=ge({name:"Tree",props:Tke,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=et(e),a=tn("Tree",n,t),i=Fe("Tree","-tree",Cke,IDe,e,t),o=X(null),s=X(null),l=X(null);function u(){var _e;return(_e=l.value)===null||_e===void 0?void 0:_e.listElRef}function c(){var _e;return(_e=l.value)===null||_e===void 0?void 0:_e.itemsElRef}const d=L(()=>{const{pattern:_e}=e;return _e?!_e.length||!Q.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:yke(e.data,Q.value,_e,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),f=L(()=>Hv(e.showIrrelevantNodes?e.data:d.value.filteredTree,_ke(e.keyField,e.childrenField,e.disabledField))),A=We(FX,null),h=e.internalTreeSelect?A.dataTreeMate:f,{watchProps:v}=e,p=X([]);v!=null&&v.includes("defaultCheckedKeys")?yr(()=>{p.value=e.defaultCheckedKeys}):p.value=e.defaultCheckedKeys;const g=Ie(e,"checkedKeys"),m=Sr(g,p),y=L(()=>h.value.getCheckedKeys(m.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),b=L(()=>e.leafOnly?"child":e.checkStrategy),w=L(()=>y.value.checkedKeys),x=L(()=>{const{indeterminateKeys:_e}=e;return _e!==void 0?_e:y.value.indeterminateKeys}),S=X([]);v!=null&&v.includes("defaultSelectedKeys")?yr(()=>{S.value=e.defaultSelectedKeys}):S.value=e.defaultSelectedKeys;const _=Ie(e,"selectedKeys"),B=Sr(_,S),T=X([]),E=_e=>{T.value=e.defaultExpandAll?h.value.getNonLeafKeys():_e===void 0?e.defaultExpandedKeys:_e};v!=null&&v.includes("defaultExpandedKeys")?yr(()=>E(void 0)):yr(()=>E(e.defaultExpandedKeys));const I=Ie(e,"expandedKeys"),R=Sr(I,T),D=L(()=>f.value.getFlattenedNodes(R.value)),{pendingNodeKeyRef:k,handleKeydown:F}=xke({props:e,mergedSelectedKeysRef:B,fNodesRef:D,mergedExpandedKeysRef:R,handleSelect:nt,handleSwitcherClick:Je});let P=null,O=null;const H=X(new Set),V=L(()=>e.internalHighlightKeySet||d.value.highlightKeySet),W=Sr(V,H),Z=X(new Set),ee=L(()=>R.value.filter(_e=>!Z.value.has(_e)));let ae=0;const ne=X(null),le=X(null),se=X(null),ce=X(null),ye=X(0),fe=L(()=>{const{value:_e}=le;return _e?_e.parent:null}),Q=L(()=>{const{filter:_e}=e;if(_e)return _e;const{labelField:Oe}=e;return(rt,ht)=>{if(!rt.length)return!0;const Ft=ht[Oe];return typeof Ft=="string"?Ft.toLowerCase().includes(rt.toLowerCase()):!1}});mt(Ie(e,"data"),()=>{Z.value.clear(),k.value=null,ut()},{deep:!1});let J=!1;const U=()=>{J=!0,ar(()=>{J=!1})};let K;mt(Ie(e,"pattern"),(_e,Oe)=>{if(e.showIrrelevantNodes)if(K=void 0,_e){const{expandedKeys:rt,highlightKeySet:ht}=mke(e.data,e.pattern,e.keyField,e.childrenField,Q.value);H.value=ht,U(),te(rt,Y(rt))}else H.value=new Set;else if(!_e.length)K!==void 0&&(U(),te(K,Y(K)));else{Oe.length||(K=R.value);const{expandedKeys:rt}=d.value;rt!==void 0&&(U(),te(rt,Y(rt)))}});function q(_e){return Ske(this,void 0,void 0,function*(){const{onLoad:Oe}=e;if(!Oe)return yield Promise.resolve();const{value:rt}=Z;return yield new Promise(ht=>{rt.has(_e.key)||(rt.add(_e.key),Oe(_e.rawNode).then(()=>{rt.delete(_e.key),ht()}).catch(Ft=>{console.error(Ft),ue()}))})})}yr(()=>{var _e;const{value:Oe}=f;if(!Oe)return;const{getNode:rt}=Oe;(_e=R.value)===null||_e===void 0||_e.forEach(ht=>{const Ft=rt(ht);Ft&&!Ft.shallowLoaded&&q(Ft)})});const ie=X(!1),$=X([]);mt(ee,(_e,Oe)=>{if(!e.animated||J){ar(he);return}const rt=new Set(Oe);let ht=null,Ft=null;for(const Jt of _e)if(!rt.has(Jt)){if(ht!==null)return;ht=Jt}const Hr=new Set(_e);for(const Jt of Oe)if(!Hr.has(Jt)){if(Ft!==null)return;Ft=Jt}if(ht===null&&Ft===null)return;const{virtualScroll:Pr}=e,Be=(Pr?l.value.listElRef:o.value).offsetHeight,qe=Math.ceil(Be/pb)+1;let vt;if(ht!==null&&(vt=Oe),Ft!==null&&(vt===void 0?vt=_e:vt=vt.filter(Jt=>Jt!==Ft)),ie.value=!0,$.value=f.value.getFlattenedNodes(vt),ht!==null){const Jt=$.value.findIndex(Lr=>Lr.key===ht);if(~Jt){const Lr=$.value[Jt].children;if(Lr){const br=VI(Lr,_e);$.value.splice(Jt+1,0,{__motion:!0,mode:"expand",height:Pr?br.length*pb:void 0,nodes:Pr?br.slice(0,qe):br})}}}if(Ft!==null){const Jt=$.value.findIndex(Lr=>Lr.key===Ft);if(~Jt){const Lr=$.value[Jt].children;if(!Lr)return;ie.value=!0;const br=VI(Lr,_e);$.value.splice(Jt+1,0,{__motion:!0,mode:"collapse",height:Pr?br.length*pb:void 0,nodes:Pr?br.slice(0,qe):br})}}});const re=L(()=>gK(D.value)),ve=L(()=>ie.value?$.value:D.value);function he(){const{value:_e}=s;_e&&_e.sync()}function oe(){ie.value=!1,e.virtualScroll&&ar(he)}function Y(_e){const{getNode:Oe}=h.value;return _e.map(rt=>{var ht;return((ht=Oe(rt))===null||ht===void 0?void 0:ht.rawNode)||null})}function te(_e,Oe){const{"onUpdate:expandedKeys":rt,onUpdateExpandedKeys:ht}=e;T.value=_e,rt&&Ee(rt,_e,Oe),ht&&Ee(ht,_e,Oe)}function pe(_e,Oe){const{"onUpdate:checkedKeys":rt,onUpdateCheckedKeys:ht}=e;p.value=_e,ht&&Ee(ht,_e,Oe),rt&&Ee(rt,_e,Oe)}function de(_e,Oe){const{"onUpdate:indeterminateKeys":rt,onUpdateIndeterminateKeys:ht}=e;rt&&Ee(rt,_e,Oe),ht&&Ee(ht,_e,Oe)}function we(_e,Oe){const{"onUpdate:selectedKeys":rt,onUpdateSelectedKeys:ht}=e;S.value=_e,ht&&Ee(ht,_e,Oe),rt&&Ee(rt,_e,Oe)}function De(_e){const{onDragenter:Oe}=e;Oe&&Ee(Oe,_e)}function ze(_e){const{onDragleave:Oe}=e;Oe&&Ee(Oe,_e)}function Xe(_e){const{onDragend:Oe}=e;Oe&&Ee(Oe,_e)}function ke(_e){const{onDragstart:Oe}=e;Oe&&Ee(Oe,_e)}function Ge(_e){const{onDragover:Oe}=e;Oe&&Ee(Oe,_e)}function it(_e){const{onDrop:Oe}=e;Oe&&Ee(Oe,_e)}function ut(){Ke(),xt()}function Ke(){ne.value=null}function xt(){ye.value=0,le.value=null,se.value=null,ce.value=null,ue()}function ue(){P&&(window.clearTimeout(P),P=null),O=null}function Te(_e,Oe){if(e.disabled||Pu(_e,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){nt(_e);return}const{checkedKeys:rt,indeterminateKeys:ht}=h.value[Oe?"check":"uncheck"](_e.key,w.value,{cascade:e.cascade,checkStrategy:b.value,allowNotLoaded:e.allowCheckingNotLoaded});pe(rt,Y(rt)),de(ht,Y(ht))}function He(_e){if(e.disabled)return;const{key:Oe}=_e,{value:rt}=R,ht=rt.findIndex(Ft=>Ft===Oe);if(~ht){const Ft=Array.from(rt);Ft.splice(ht,1),te(Ft,Y(Ft))}else{const Ft=f.value.getNode(Oe);if(!Ft||Ft.isLeaf)return;let Hr;if(e.accordion){const Pr=new Set(_e.siblings.map(({key:Be})=>Be));Hr=rt.filter(Be=>!Pr.has(Be)),Hr.push(Oe)}else Hr=rt.concat(Oe);te(Hr,Y(Hr))}}function Je(_e){e.disabled||ie.value||He(_e)}function nt(_e){if(!(e.disabled||!e.selectable)){if(k.value=_e.key,e.internalUnifySelectCheck){const{value:{checkedKeys:Oe,indeterminateKeys:rt}}=y;e.multiple?Te(_e,!(Oe.includes(_e.key)||rt.includes(_e.key))):pe([_e.key],Y([_e.key]))}if(e.multiple){const Oe=Array.from(B.value),rt=Oe.findIndex(ht=>ht===_e.key);~rt?e.cancelable&&Oe.splice(rt,1):~rt||Oe.push(_e.key),we(Oe,Y(Oe))}else B.value.includes(_e.key)?e.cancelable&&we([],[]):we([_e.key],Y([_e.key]))}}function be(_e){if(P&&(window.clearTimeout(P),P=null),_e.isLeaf)return;O=_e.key;const Oe=()=>{if(O!==_e.key)return;const{value:rt}=se;if(rt&&rt.key===_e.key&&!R.value.includes(_e.key)){const ht=R.value.concat(_e.key);te(ht,Y(ht))}P=null,O=null};_e.shallowLoaded?P=window.setTimeout(()=>{Oe()},1e3):P=window.setTimeout(()=>{q(_e).then(()=>{Oe()})},1e3)}function Le({event:_e,node:Oe}){!e.draggable||e.disabled||Pu(Oe,e.disabledField)||(me({event:_e,node:Oe},!1),De({event:_e,node:Oe.rawNode}))}function je({event:_e,node:Oe}){!e.draggable||e.disabled||Pu(Oe,e.disabledField)||ze({event:_e,node:Oe.rawNode})}function ft(_e){_e.target===_e.currentTarget&&xt()}function Ce({event:_e,node:Oe}){ut(),!(!e.draggable||e.disabled||Pu(Oe,e.disabledField))&&Xe({event:_e,node:Oe.rawNode})}function Qe({event:_e,node:Oe}){var rt;!e.draggable||e.disabled||Pu(Oe,e.disabledField)||(R$&&((rt=_e.dataTransfer)===null||rt===void 0||rt.setDragImage(R$,0,0)),ae=_e.clientX,ne.value=Oe,ke({event:_e,node:Oe.rawNode}))}function me({event:_e,node:Oe},rt=!0){var ht;if(!e.draggable||e.disabled||Pu(Oe,e.disabledField))return;const{value:Ft}=ne;if(!Ft)return;const{allowDrop:Hr,indent:Pr}=e;rt&&Ge({event:_e,node:Oe.rawNode});const Be=_e.currentTarget,{height:qe,top:vt}=Be.getBoundingClientRect(),Jt=_e.clientY-vt;let Lr;Hr({node:Oe.rawNode,dropPosition:"inside",phase:"drag"})?Jt<=8?Lr="before":Jt>=qe-8?Lr="after":Lr="inside":Jt<=qe/2?Lr="before":Lr="after";const{value:Lo}=re;let Br,dn;const hl=Lo(Oe.key);if(hl===null){xt();return}let hu=!1;Lr==="inside"?(Br=Oe,dn="inside"):Lr==="before"?Oe.isFirstChild?(Br=Oe,dn="before"):(Br=D.value[hl-1],dn="after"):(Br=Oe,dn="after"),!Br.isLeaf&&R.value.includes(Br.key)&&(hu=!0,dn==="after"&&(Br=D.value[hl+1],Br?dn="before":(Br=Oe,dn="inside")));const vu=Br;if(se.value=vu,!hu&&Ft.isLastChild&&Ft.key===Br.key&&(dn="after"),dn==="after"){let pu=ae-_e.clientX,cd=0;for(;pu>=Pr/2&&Br.parent!==null&&Br.isLastChild&&cd<1;)pu-=Pr,cd+=1,Br=Br.parent;ye.value=cd}else ye.value=0;if((Ft.contains(Br)||dn==="inside"&&((ht=Ft.parent)===null||ht===void 0?void 0:ht.key)===Br.key)&&!(Ft.key===vu.key&&Ft.key===Br.key)){xt();return}if(!Hr({node:Br.rawNode,dropPosition:dn,phase:"drag"})){xt();return}if(Ft.key===Br.key)ue();else if(O!==Br.key)if(dn==="inside"){if(e.expandOnDragenter){if(be(Br),!Br.shallowLoaded&&O!==Br.key){ut();return}}else if(!Br.shallowLoaded){ut();return}}else ue();else dn!=="inside"&&ue();ce.value=dn,le.value=Br}function Ne({event:_e,node:Oe,dropPosition:rt}){if(!e.draggable||e.disabled||Pu(Oe,e.disabledField))return;const{value:ht}=ne,{value:Ft}=le,{value:Hr}=ce;if(!(!ht||!Ft||!Hr)&&!!e.allowDrop({node:Ft.rawNode,dropPosition:Hr,phase:"drag"})&&ht.key!==Ft.key){if(Hr==="before"){const Pr=ht.getNext({includeDisabled:!0});if(Pr&&Pr.key===Ft.key){xt();return}}if(Hr==="after"){const Pr=ht.getPrev({includeDisabled:!0});if(Pr&&Pr.key===Ft.key){xt();return}}it({event:_e,node:Ft.rawNode,dragNode:ht.rawNode,dropPosition:rt}),ut()}}function lt(){he()}function Tt(){he()}function dt(_e){var Oe;if(e.virtualScroll||e.internalScrollable){const{value:rt}=s;if(!((Oe=rt==null?void 0:rt.containerRef)===null||Oe===void 0)&&Oe.contains(_e.relatedTarget))return;k.value=null}else{const{value:rt}=o;if(rt!=null&&rt.contains(_e.relatedTarget))return;k.value=null}}mt(k,_e=>{var Oe,rt;if(_e!==null){if(e.virtualScroll)(Oe=l.value)===null||Oe===void 0||Oe.scrollTo({key:_e});else if(e.internalScrollable){const{value:ht}=s;if(ht===null)return;const Ft=(rt=ht.contentRef)===null||rt===void 0?void 0:rt.querySelector(`[data-key="${$W(_e)}"]`);if(!Ft)return;ht.scrollTo({el:Ft})}}}),Ct(ny,{loadingKeysRef:Z,highlightKeySetRef:W,displayedCheckedKeysRef:w,displayedIndeterminateKeysRef:x,mergedSelectedKeysRef:B,mergedExpandedKeysRef:R,mergedThemeRef:i,mergedCheckStrategyRef:b,nodePropsRef:Ie(e,"nodeProps"),disabledRef:Ie(e,"disabled"),checkableRef:Ie(e,"checkable"),selectableRef:Ie(e,"selectable"),expandOnClickRef:Ie(e,"expandOnClick"),onLoadRef:Ie(e,"onLoad"),draggableRef:Ie(e,"draggable"),blockLineRef:Ie(e,"blockLine"),indentRef:Ie(e,"indent"),cascadeRef:Ie(e,"cascade"),checkOnClickRef:Ie(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:se,droppingNodeParentRef:fe,draggingNodeRef:ne,droppingPositionRef:ce,droppingOffsetLevelRef:ye,fNodesRef:D,pendingNodeKeyRef:k,disabledFieldRef:Ie(e,"disabledField"),internalScrollableRef:Ie(e,"internalScrollable"),internalCheckboxFocusableRef:Ie(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:Ie(e,"renderLabel"),renderPrefixRef:Ie(e,"renderPrefix"),renderSuffixRef:Ie(e,"renderSuffix"),renderSwitcherIconRef:Ie(e,"renderSwitcherIcon"),labelFieldRef:Ie(e,"labelField"),multipleRef:Ie(e,"multiple"),handleSwitcherClick:Je,handleDragEnd:Ce,handleDragEnter:Le,handleDragLeave:je,handleDragStart:Qe,handleDrop:Ne,handleDragOver:me,handleSelect:nt,handleCheck:Te});function Ae(_e){var Oe;(Oe=l.value)===null||Oe===void 0||Oe.scrollTo(_e)}const Re={handleKeydown:F,scrollTo:Ae},ot=L(()=>{const{common:{cubicBezierEaseInOut:_e},self:{fontSize:Oe,nodeBorderRadius:rt,nodeColorHover:ht,nodeColorPressed:Ft,nodeColorActive:Hr,arrowColor:Pr,loadingColor:Be,nodeTextColor:qe,nodeTextColorDisabled:vt,dropMarkColor:Jt}}=i.value;return{"--n-arrow-color":Pr,"--n-loading-color":Be,"--n-bezier":_e,"--n-font-size":Oe,"--n-node-border-radius":rt,"--n-node-color-active":Hr,"--n-node-color-hover":ht,"--n-node-color-pressed":Ft,"--n-node-text-color":qe,"--n-node-text-color-disabled":vt,"--n-drop-mark-color":Jt}}),Ht=r?_t("tree",void 0,ot,e):void 0;return{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:a,fNodes:ve,aip:ie,selfElRef:o,virtualListInstRef:l,scrollbarInstRef:s,handleFocusout:dt,handleDragLeaveTree:ft,handleScroll:lt,getScrollContainer:u,getScrollContent:c,handleAfterEnter:oe,handleResize:Tt,handleKeydown:Re.handleKeydown,scrollTo:Re.scrollTo,cssVars:r?void 0:ot,themeClass:Ht==null?void 0:Ht.themeClass,onRender:Ht==null?void 0:Ht.onRender}},render(){var e;const{fNodes:t,internalRenderEmpty:r}=this;if(!t.length&&r)return r();const{mergedClsPrefix:n,blockNode:a,blockLine:i,draggable:o,disabled:s,internalFocusable:l,checkable:u,handleKeydown:c,rtlEnabled:d,handleFocusout:f}=this,A=l&&!s,h=A?"0":void 0,v=[`${n}-tree`,d&&`${n}-tree--rtl`,u&&`${n}-tree--checkable`,(i||a)&&`${n}-tree--block-node`,i&&`${n}-tree--block-line`],p=m=>"__motion"in m?C(wke,{height:m.height,nodes:m.nodes,clsPrefix:n,mode:m.mode,onAfterEnter:this.handleAfterEnter}):C(kX,{key:m.key,tmNode:m,clsPrefix:n});if(this.virtualScroll){const{mergedTheme:m,internalScrollablePadding:y}=this,b=uc(y||"0");return C(tw,{ref:"scrollbarInstRef",onDragleave:o?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:v,theme:m.peers.Scrollbar,themeOverrides:m.peerOverrides.Scrollbar,tabindex:h,onKeydown:A?c:void 0,onFocusout:A?f:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),C(cv,{ref:"virtualListInstRef",items:this.fNodes,itemSize:pb,ignoreItemResize:this.aip,paddingTop:b.top,paddingBottom:b.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:b.left,paddingRight:b.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:x})=>p(x)})}})}const{internalScrollable:g}=this;return v.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),g?C(tw,{class:v,tabindex:h,onKeydown:A?c:void 0,onFocusout:A?f:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>C("div",{onDragleave:o?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(p))}):C("div",{class:v,tabindex:h,ref:"selfElRef",style:this.cssVars,onKeydown:A?c:void 0,onFocusout:A?f:void 0,onDragleave:o?this.handleDragLeaveTree:void 0},t.length?t.map(p):Wt(this.$slots.empty,()=>[C(sS,{class:`${n}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),Ike=M("h",`
|
|
font-size: var(--n-font-size);
|
|
font-weight: var(--n-font-weight);
|
|
margin: var(--n-margin);
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
`,[N("&:first-child",{marginTop:0}),j("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[j("align-text",{paddingLeft:0},[N("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),N("&::before",`
|
|
content: "";
|
|
width: var(--n-bar-width);
|
|
border-radius: calc(var(--n-bar-width) / 2);
|
|
transition: background-color .3s var(--n-bezier);
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
position: absolute;
|
|
`),N("&::before",{backgroundColor:"var(--n-bar-color)"})])]);const Rke=Object.assign(Object.assign({},Fe.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean});var Vv=e=>ge({name:`H${e}`,props:Rke,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=et(t),a=Fe("Typography","-h",Ike,gS,t,r),i=L(()=>{const{type:s}=t,{common:{cubicBezierEaseInOut:l},self:{headerFontWeight:u,headerTextColor:c,[Se("headerPrefixWidth",e)]:d,[Se("headerFontSize",e)]:f,[Se("headerMargin",e)]:A,[Se("headerBarWidth",e)]:h,[Se("headerBarColor",s)]:v}}=a.value;return{"--n-bezier":l,"--n-font-size":f,"--n-margin":A,"--n-bar-color":v,"--n-bar-width":h,"--n-font-weight":u,"--n-text-color":c,"--n-prefix-width":d}}),o=n?_t(`h${e}`,L(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:r,cssVars:n?void 0:i,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){var t;const{prefix:r,alignText:n,mergedClsPrefix:a,cssVars:i,$slots:o}=this;return(t=this.onRender)===null||t===void 0||t.call(this),C(`h${e}`,{class:[`${a}-h`,`${a}-h${e}`,this.themeClass,{[`${a}-h--prefix-bar`]:r,[`${a}-h--align-text`]:n}],style:i},o)}});const Dke=Vv("1"),Fke=Vv("2"),Mke=Vv("3"),kke=Vv("4");Vv("5");Vv("6");var Pke=M("a",`
|
|
cursor: pointer;
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
text-decoration-color .3s var(--n-bezier);
|
|
text-decoration-color: var(--n-text-color);
|
|
color: var(--n-text-color);
|
|
`);const Lke=Object.assign({},Fe.props);var Oke=ge({name:"A",props:Lke,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Typography","-a",Pke,gS,e,t),a=L(()=>{const{common:{cubicBezierEaseInOut:o},self:{aTextColor:s}}=n.value;return{"--n-text-color":s,"--n-bezier":o}}),i=r?_t("a",void 0,a,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),C("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),$ke=M("p",`
|
|
box-sizing: border-box;
|
|
transition: color .3s var(--n-bezier);
|
|
margin: var(--n-margin);
|
|
font-size: var(--n-font-size);
|
|
line-height: var(--n-line-height);
|
|
color: var(--n-text-color);
|
|
`,[N("&:first-child","margin-top: 0;"),N("&:last-child","margin-bottom: 0;")]);const Uke=Object.assign(Object.assign({},Fe.props),{depth:[String,Number]});var Hke=ge({name:"P",props:Uke,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Typography","-p",$ke,gS,e,t),a=L(()=>{const{depth:o}=e,s=o||"1",{common:{cubicBezierEaseInOut:l},self:{pFontSize:u,pLineHeight:c,pMargin:d,pTextColor:f,[`pTextColor${s}Depth`]:A}}=n.value;return{"--n-bezier":l,"--n-font-size":u,"--n-line-height":c,"--n-margin":d,"--n-text-color":o===void 0?f:A}}),i=r?_t("p",L(()=>`${e.depth||""}`),a,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),C("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),zke=M("text",`
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
`,[j("strong",`
|
|
font-weight: var(--n-font-weight-strong);
|
|
`),j("italic",{fontStyle:"italic"}),j("underline",{textDecoration:"underline"}),j("code",`
|
|
line-height: 1.4;
|
|
display: inline-block;
|
|
font-family: var(--n-font-famliy-mono);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
box-sizing: border-box;
|
|
padding: .05em .35em 0 .35em;
|
|
border-radius: var(--n-code-border-radius);
|
|
font-size: .9em;
|
|
color: var(--n-code-text-color);
|
|
background-color: var(--n-code-color);
|
|
border: var(--n-code-border);
|
|
`)]);const Nke=Object.assign(Object.assign({},Fe.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}});var Qke=ge({name:"Text",props:Nke,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Typography","-text",zke,gS,e,t),a=L(()=>{const{depth:o,type:s}=e,l=s==="default"?o===void 0?"textColor":`textColor${o}Depth`:Se("textColor",s),{common:{fontWeightStrong:u,fontFamilyMono:c,cubicBezierEaseInOut:d},self:{codeTextColor:f,codeBorderRadius:A,codeColor:h,codeBorder:v,[l]:p}}=n.value;return{"--n-bezier":d,"--n-text-color":p,"--n-font-weight-strong":u,"--n-font-famliy-mono":c,"--n-code-border-radius":A,"--n-code-text-color":f,"--n-code-color":h,"--n-code-border":v}}),i=r?_t("text",L(()=>`${e.type[0]}${e.depth||""}`),a,e):void 0;return{mergedClsPrefix:t,compitableTag:Ec(e,["as","tag"]),cssVars:r?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,r;const{mergedClsPrefix:n}=this;(e=this.onRender)===null||e===void 0||e.call(this);const a=[`${n}-text`,this.themeClass,{[`${n}-text--code`]:this.code,[`${n}-text--delete`]:this.delete,[`${n}-text--strong`]:this.strong,[`${n}-text--italic`]:this.italic,[`${n}-text--underline`]:this.underline}],i=(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t);return this.code?C("code",{class:a,style:this.cssVars},this.delete?C("del",null,i):i):this.delete?C("del",{class:a,style:this.cssVars},i):C(this.compitableTag||"span",{class:a,style:this.cssVars},i)}});const Wv="n-upload",PX="__UPLOAD_DRAGGER__";var LX=ge({name:"UploadDragger",[PX]:!0,setup(e,{slots:t}){const r=We(Wv,null);return r||Ta("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:n},mergedDisabledRef:{value:a},maxReachedRef:{value:i}}=r;return C("div",{class:[`${n}-upload-dragger`,(a||i)&&`${n}-upload-dragger--disabled`]},t)}}}),OX=globalThis&&globalThis.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const $X=e=>e.includes("image/"),Vke=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Wke=e=>{if(e.type)return $X(e.type);const t=e.thumbnailUrl||e.url||"",r=Vke(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(r)?!0:!(/^data:/.test(t)||r)};function Gke(e){return OX(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!$X(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const Kke=To&&window.FileReader&&window.File;function jke(e){return e.isDirectory}function Yke(e){return e.isFile}function Xke(e,t){return OX(this,void 0,void 0,function*(){const r=[];let n,a=0;function i(){a++}function o(){a--,a||n(r)}function s(l){l.forEach(u=>{if(!!u){if(i(),t&&jke(u)){const c=u.createReader();i(),c.readEntries(d=>{s(d),o()},()=>{o()})}else Yke(u)&&(i(),u.file(c=>{r.push({file:c,entry:u,source:"dnd"}),o()},()=>{o()}));o()}})}return yield new Promise(l=>{n=l,s(e)}),r})}function K0(e){const{id:t,name:r,percentage:n,status:a,url:i,file:o,thumbnailUrl:s,type:l,fullPath:u,batchId:c}=e;return{id:t,name:r,percentage:n!=null?n:null,status:a,url:i!=null?i:null,file:o!=null?o:null,thumbnailUrl:s!=null?s:null,type:l!=null?l:null,fullPath:u!=null?u:null,batchId:c!=null?c:null}}function qke(e,t,r){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),r=r.toLocaleLowerCase(),r.split(",").map(a=>a.trim()).filter(Boolean).some(a=>{if(a.startsWith(".")){if(e.endsWith(a))return!0}else if(a.includes("/")){const[i,o]=t.split("/"),[s,l]=a.split("/");if((s==="*"||i&&s&&s===i)&&(l==="*"||o&&l&&l===o))return!0}else return!0;return!1})}const Zke=(e,t)=>{if(!e)return;const r=document.createElement("a");r.href=e,t!==void 0&&(r.download=t),document.body.appendChild(r),r.click(),document.body.removeChild(r)};var tP=ge({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const r=We(Wv,null);r||Ta("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:n,mergedDisabledRef:a,maxReachedRef:i,listTypeRef:o,dragOverRef:s,openOpenFileDialog:l,draggerInsideRef:u,handleFileAddition:c,mergedDirectoryDndRef:d,triggerStyleRef:f}=r,A=L(()=>o.value==="image-card");function h(){a.value||i.value||l()}function v(y){y.preventDefault(),s.value=!0}function p(y){y.preventDefault(),s.value=!0}function g(y){y.preventDefault(),s.value=!1}function m(y){var b;if(y.preventDefault(),!u.value||a.value||i.value){s.value=!1;return}const w=(b=y.dataTransfer)===null||b===void 0?void 0:b.items;w!=null&&w.length?Xke(Array.from(w).map(x=>x.webkitGetAsEntry()),d.value).then(x=>{c(x)}).finally(()=>{s.value=!1}):s.value=!1}return()=>{var y;const{value:b}=n;return e.abstract?(y=t.default)===null||y===void 0?void 0:y.call(t,{handleClick:h,handleDrop:m,handleDragOver:v,handleDragEnter:p,handleDragLeave:g}):C("div",{class:[`${b}-upload-trigger`,(a.value||i.value)&&`${b}-upload-trigger--disabled`,A.value&&`${b}-upload-trigger--image-card`],style:f.value,onClick:h,onDrop:m,onDragover:v,onDragenter:p,onDragleave:g},A.value?C(LX,null,{default:()=>Wt(t.default,()=>[C($t,{clsPrefix:b},{default:()=>C(mk,null)})])}):t)}}}),Jke=ge({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:We(Wv).mergedThemeRef}},render(){return C(ll,null,{default:()=>this.show?C(EX,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}});const ePe=C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},C("g",{fill:"none"},C("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),tPe=C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},C("g",{fill:"none"},C("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var rPe=globalThis&&globalThis.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const gb={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"};var nPe=ge({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=We(Wv),r=X(null),n=X(""),a=L(()=>{const{file:w}=e;return w.status==="finished"?"success":w.status==="error"?"error":"info"}),i=L(()=>{const{file:w}=e;if(w.status==="error")return"error"}),o=L(()=>{const{file:w}=e;return w.status==="uploading"}),s=L(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:w}=e;return["uploading","pending","error"].includes(w.status)}),l=L(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),u=L(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),c=L(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:w}=e;return["error"].includes(w.status)}),d=Rt(()=>n.value||e.file.thumbnailUrl||e.file.url),f=L(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:w},listType:x}=e;return["finished"].includes(w)&&d.value&&x==="image-card"});function A(){t.submit(e.file.id)}function h(w){w.preventDefault();const{file:x}=e;["finished","pending","error"].includes(x.status)?p(x):["uploading"].includes(x.status)?m(x):is("upload","The button clicked type is unknown.")}function v(w){w.preventDefault(),g(e.file)}function p(w){const{xhrMap:x,doChange:S,onRemoveRef:{value:_},mergedFileListRef:{value:B}}=t;Promise.resolve(_?_({file:Object.assign({},w),fileList:B}):!0).then(T=>{if(T===!1)return;const E=Object.assign({},w,{status:"removed"});x.delete(w.id),S(E,void 0,{remove:!0})})}function g(w){const{onDownloadRef:{value:x}}=t;Promise.resolve(x?x(Object.assign({},w)):!0).then(S=>{S!==!1&&Zke(w.url,w.name)})}function m(w){const{xhrMap:x}=t,S=x.get(w.id);S==null||S.abort(),p(Object.assign({},w))}function y(){const{onPreviewRef:{value:w}}=t;if(w)w(e.file);else if(e.listType==="image-card"){const{value:x}=r;if(!x)return;x.click()}}const b=()=>rPe(this,void 0,void 0,function*(){const{listType:w}=e;w!=="image"&&w!=="image-card"||!Kke||!(e.file.file instanceof File)||(n.value=yield t.getFileThumbnailUrl(e.file))});return yr(()=>{b()}),{mergedTheme:t.mergedThemeRef,progressStatus:a,buttonType:i,showProgress:o,disabled:t.mergedDisabledRef,showCancelButton:s,showRemoveButton:l,showDownloadButton:u,showRetryButton:c,showPreviewButton:f,mergedThumbnailUrl:d,imageRef:r,handleRemoveOrCancelClick:h,handleDownloadClick:v,handleRetryClick:A,handlePreviewClick:y}},render(){const{clsPrefix:e,mergedTheme:t,listType:r,file:n}=this;let a;const i=r==="image";i||r==="image-card"?a=Wke(n)?this.mergedThumbnailUrl&&n.status!=="error"?C("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},r==="image-card"?C(cX,{src:this.mergedThumbnailUrl||void 0,previewSrc:n.url||void 0,alt:n.name,ref:"imageRef"}):C("img",{src:this.mergedThumbnailUrl||void 0,alt:n.name})):C("span",{class:`${e}-upload-file-info__thumbnail`},C($t,{clsPrefix:e},{default:()=>ePe})):C("span",{class:`${e}-upload-file-info__thumbnail`},C($t,{clsPrefix:e},{default:()=>tPe})):a=C("span",{class:`${e}-upload-file-info__thumbnail`},C($t,{clsPrefix:e},{default:()=>C(Kye,null)}));const s=C(Jke,{show:this.showProgress,percentage:n.percentage||0,status:this.progressStatus}),l=r==="text"||r==="image";return C("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,n.url&&n.status!=="error"&&r!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${r}-type`]},C("div",{class:`${e}-upload-file-info`},a,C("div",{class:`${e}-upload-file-info__name`},l&&(n.url&&n.status!=="error"?C("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,onClick:this.handlePreviewClick},n.name):C("span",{onClick:this.handlePreviewClick},n.name)),i&&s),C("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${r}-type`]},this.showPreviewButton?C(on,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:gb},{icon:()=>C($t,{clsPrefix:e},{default:()=>C(hK,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&C(on,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:gb,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>C(sl,null,{default:()=>this.showRemoveButton?C($t,{clsPrefix:e,key:"trash"},{default:()=>C(Xye,null)}):C($t,{clsPrefix:e,key:"cancel"},{default:()=>C(nbe,null)})})}),this.showRetryButton&&!this.disabled&&C(on,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:gb},{icon:()=>C($t,{clsPrefix:e},{default:()=>C(sbe,null)})}),this.showDownloadButton?C(on,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:gb},{icon:()=>C($t,{clsPrefix:e},{default:()=>C(qye,null)})}):null)),!i&&s)}}),UX=ge({name:"UploadFileList",setup(e,{slots:t}){const r=We(Wv,null);r||Ta("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:n,mergedClsPrefixRef:a,listTypeRef:i,mergedFileListRef:o,fileListStyleRef:s,cssVarsRef:l,themeClassRef:u,maxReachedRef:c,showTriggerRef:d,imageGroupPropsRef:f}=r,A=L(()=>i.value==="image-card"),h=()=>o.value.map(p=>C(nPe,{clsPrefix:a.value,key:p.id,file:p,listType:i.value})),v=()=>A.value?C(JDe,Object.assign({},f.value),{default:h}):C(ll,{group:!0},{default:h});return()=>{const{value:p}=a,{value:g}=n;return C("div",{class:[`${p}-upload-file-list`,A.value&&`${p}-upload-file-list--grid`,g?u==null?void 0:u.value:void 0],style:[g&&l?l.value:"",s.value]},v(),d.value&&!c.value&&A.value&&C(tP,null,t))}}}),aPe=N([M("upload","width: 100%;",[j("dragger-inside",[M("upload-trigger",`
|
|
display: block;
|
|
`)]),j("drag-over",[M("upload-dragger",`
|
|
border: var(--n-dragger-border-hover);
|
|
`)])]),M("upload-dragger",`
|
|
cursor: pointer;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
text-align: center;
|
|
border-radius: var(--n-border-radius);
|
|
padding: 24px;
|
|
opacity: 1;
|
|
transition:
|
|
opacity .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
background-color: var(--n-dragger-color);
|
|
border: var(--n-dragger-border);
|
|
`,[N("&:hover",`
|
|
border: var(--n-dragger-border-hover);
|
|
`),j("disabled",`
|
|
cursor: not-allowed;
|
|
`)]),M("upload-trigger",`
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
opacity: 1;
|
|
transition: opacity .3s var(--n-bezier);
|
|
`,[N("+",[M("upload-file-list","margin-top: 8px;")]),j("disabled",`
|
|
opacity: var(--n-item-disabled-opacity);
|
|
cursor: not-allowed;
|
|
`),j("image-card",`
|
|
width: 96px;
|
|
height: 96px;
|
|
`,[M("base-icon",`
|
|
font-size: 24px;
|
|
`),M("upload-dragger",`
|
|
padding: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`)])]),M("upload-file-list",`
|
|
line-height: var(--n-line-height);
|
|
opacity: 1;
|
|
transition: opacity .3s var(--n-bezier);
|
|
`,[N("a, img","outline: none;"),j("disabled",`
|
|
opacity: var(--n-item-disabled-opacity);
|
|
cursor: not-allowed;
|
|
`,[M("upload-file","cursor: not-allowed;")]),j("grid",`
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, 96px);
|
|
grid-gap: 8px;
|
|
margin-top: 0;
|
|
`),M("upload-file",`
|
|
display: block;
|
|
box-sizing: border-box;
|
|
cursor: default;
|
|
padding: 0px 12px 0 6px;
|
|
transition: background-color .3s var(--n-bezier);
|
|
border-radius: var(--n-border-radius);
|
|
`,[Yl(),M("progress",[Yl({foldPadding:!0})]),N("&:hover",`
|
|
background-color: var(--n-item-color-hover);
|
|
`,[M("upload-file-info",[G("action",`
|
|
opacity: 1;
|
|
`)])]),j("image-type",`
|
|
border-radius: var(--n-border-radius);
|
|
text-decoration: underline;
|
|
text-decoration-color: #0000;
|
|
`,[M("upload-file-info",`
|
|
padding-top: 0px;
|
|
padding-bottom: 0px;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 6px 0;
|
|
`,[M("progress",`
|
|
padding: 2px 0;
|
|
margin-bottom: 0;
|
|
`),G("name",`
|
|
padding: 0 8px;
|
|
`),G("thumbnail",`
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 28px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
`,[N("img",`
|
|
width: 100%;
|
|
`)])])]),j("text-type",[M("progress",`
|
|
box-sizing: border-box;
|
|
padding-bottom: 6px;
|
|
margin-bottom: 6px;
|
|
`)]),j("image-card-type",`
|
|
position: relative;
|
|
width: 96px;
|
|
height: 96px;
|
|
border: var(--n-item-border-image-card);
|
|
border-radius: var(--n-border-radius);
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier);
|
|
border-radius: var(--n-border-radius);
|
|
overflow: hidden;
|
|
`,[M("progress",`
|
|
position: absolute;
|
|
left: 8px;
|
|
bottom: 8px;
|
|
right: 8px;
|
|
width: unset;
|
|
`),M("upload-file-info",`
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
`,[G("thumbnail",`
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 36px;
|
|
`,[N("img",`
|
|
width: 100%;
|
|
`)])]),N("&::before",`
|
|
position: absolute;
|
|
z-index: 1;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
border-radius: inherit;
|
|
opacity: 0;
|
|
transition: opacity .2s var(--n-bezier);
|
|
content: "";
|
|
`),N("&:hover",[N("&::before","opacity: 1;"),M("upload-file-info",[G("thumbnail","opacity: .12;")])])]),j("error-status",[N("&:hover",`
|
|
background-color: var(--n-item-color-hover-error);
|
|
`),M("upload-file-info",[G("name","color: var(--n-item-text-color-error);"),G("thumbnail","color: var(--n-item-text-color-error);")]),j("image-card-type",`
|
|
border: var(--n-item-border-image-card-error);
|
|
`)]),j("with-url",`
|
|
cursor: pointer;
|
|
`,[M("upload-file-info",[G("name",`
|
|
color: var(--n-item-text-color-success);
|
|
text-decoration-color: var(--n-item-text-color-success);
|
|
`,[N("a",`
|
|
text-decoration: underline;
|
|
`)])])]),M("upload-file-info",`
|
|
position: relative;
|
|
padding-top: 6px;
|
|
padding-bottom: 6px;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
`,[G("thumbnail",`
|
|
font-size: 18px;
|
|
opacity: 1;
|
|
transition: opacity .2s var(--n-bezier);
|
|
color: var(--n-item-icon-color);
|
|
`,[M("base-icon",`
|
|
margin-right: 2px;
|
|
vertical-align: middle;
|
|
transition: color .3s var(--n-bezier);
|
|
`)]),G("action",`
|
|
padding-top: inherit;
|
|
padding-bottom: inherit;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 80px;
|
|
display: flex;
|
|
align-items: center;
|
|
transition: opacity .2s var(--n-bezier);
|
|
justify-content: flex-end;
|
|
opacity: 0;
|
|
`,[M("button",[N("&:not(:last-child)",{marginRight:"4px"}),M("base-icon",[N("svg",[Wn()])])]),j("image-type",`
|
|
position: relative;
|
|
max-width: 80px;
|
|
width: auto;
|
|
`),j("image-card-type",`
|
|
z-index: 2;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
top: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
`)]),G("name",`
|
|
color: var(--n-item-text-color);
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
flex-direction: column;
|
|
text-decoration-color: #0000;
|
|
font-size: var(--n-font-size);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
text-decoration-color .3s var(--n-bezier);
|
|
`,[N("a",`
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
`)])])])]),M("upload-file-input",`
|
|
display: block;
|
|
width: 0;
|
|
height: 0;
|
|
opacity: 0;
|
|
`)]),t2=globalThis&&globalThis.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};function iPe(e,t,r){const{doChange:n,xhrMap:a}=e;let i=0;function o(l){var u;let c=Object.assign({},t,{status:"error",percentage:i});a.delete(t.id),c=K0(((u=e.onError)===null||u===void 0?void 0:u.call(e,{file:c,event:l}))||c),n(c,l)}function s(l){var u;if(e.isErrorState){if(e.isErrorState(r)){o(l);return}}else if(r.status<200||r.status>=300){o(l);return}let c=Object.assign({},t,{status:"finished",percentage:i,file:null});a.delete(t.id),c=K0(((u=e.onFinish)===null||u===void 0?void 0:u.call(e,{file:c,event:l}))||c),n(c,l)}return{handleXHRLoad:s,handleXHRError:o,handleXHRAbort(l){const u=Object.assign({},t,{status:"removed",file:null,percentage:i});a.delete(t.id),n(u,l)},handleXHRProgress(l){const u=Object.assign({},t,{status:"uploading"});if(l.lengthComputable){const c=Math.ceil(l.loaded/l.total*100);u.percentage=c,i=c}n(u,l)}}}function oPe(e){const{inst:t,file:r,data:n,headers:a,withCredentials:i,action:o,customRequest:s}=e,{doChange:l}=e.inst;let u=0;s({file:r,data:n,headers:a,withCredentials:i,action:o,onProgress(c){const d=Object.assign({},r,{status:"uploading"}),f=c.percent;d.percentage=f,u=f,l(d)},onFinish(){var c;let d=Object.assign({},r,{status:"finished",percentage:u,file:null});d=K0(((c=t.onFinish)===null||c===void 0?void 0:c.call(t,{file:d}))||d),l(d)},onError(){var c;let d=Object.assign({},r,{status:"error",percentage:u});d=K0(((c=t.onError)===null||c===void 0?void 0:c.call(t,{file:d}))||d),l(d)}})}function sPe(e,t,r){const n=iPe(e,t,r);r.onabort=n.handleXHRAbort,r.onerror=n.handleXHRError,r.onload=n.handleXHRLoad,r.upload&&(r.upload.onprogress=n.handleXHRProgress)}function HX(e,t){return typeof e=="function"?e({file:t}):e||{}}function lPe(e,t,r){const n=HX(t,r);!n||Object.keys(n).forEach(a=>{e.setRequestHeader(a,n[a])})}function uPe(e,t,r){const n=HX(t,r);!n||Object.keys(n).forEach(a=>{e.append(a,n[a])})}function cPe(e,t,r,{method:n,action:a,withCredentials:i,responseType:o,headers:s,data:l}){const u=new XMLHttpRequest;u.responseType=o,e.xhrMap.set(r.id,u),u.withCredentials=i;const c=new FormData;if(uPe(c,l,r),c.append(t,r.file),sPe(e,r,u),a!==void 0){u.open(n.toUpperCase(),a),lPe(u,s,r),u.send(c);const d=Object.assign({},r,{status:"uploading"});e.doChange(d)}}const dPe=Object.assign(Object.assign({},Fe.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object]});var fPe=ge({name:"Upload",props:dPe,setup(e){e.abstract&&e.listType==="image-card"&&Ta("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=et(e),n=Fe("Upload","-upload",aPe,$De,e,t),a=bi(e),i=L(()=>{const{max:B}=e;return B!==void 0?A.value.length>=B:!1}),o=X(e.defaultFileList),s=Ie(e,"fileList"),l=X(null),u={value:!1},c=X(!1),d=new Map,f=Sr(s,o),A=L(()=>f.value.map(K0));function h(){var B;(B=l.value)===null||B===void 0||B.click()}function v(B){const T=B.target;m(T.files?Array.from(T.files).map(E=>({file:E,entry:null,source:"input"})):null,B),T.value=""}function p(B){const{"onUpdate:fileList":T,onUpdateFileList:E}=e;T&&Ee(T,B),E&&Ee(E,B),o.value=B}const g=L(()=>e.multiple||e.directory);function m(B,T){if(!B||B.length===0)return;const{onBeforeUpload:E}=e;B=g.value?B:[B[0]];const{max:I,accept:R}=e;B=B.filter(({file:k,source:F})=>F==="dnd"&&(R==null?void 0:R.trim())?qke(k.name,k.type,R):!0),I&&(B=B.slice(0,I-A.value.length));const D=yo();Promise.all(B.map(({file:k,entry:F})=>t2(this,void 0,void 0,function*(){var P;const O={id:yo(),batchId:D,name:k.name,status:"pending",percentage:0,file:k,url:null,type:k.type,thumbnailUrl:null,fullPath:(P=F==null?void 0:F.fullPath)!==null&&P!==void 0?P:`/${k.webkitRelativePath||k.name}`};return!E||(yield E({file:O,fileList:A.value}))!==!1?O:null}))).then(k=>t2(this,void 0,void 0,function*(){let F=Promise.resolve();return k.forEach(P=>{F=F.then(ar).then(()=>{P&&b(P,T,{append:!0})})}),yield F})).then(()=>{e.defaultUpload&&y()})}function y(B){const{method:T,action:E,withCredentials:I,headers:R,data:D,name:k}=e,F=B!==void 0?A.value.filter(O=>O.id===B):A.value,P=B!==void 0;F.forEach(O=>{const{status:H}=O;(H==="pending"||H==="error"&&P)&&(e.customRequest?oPe({inst:{doChange:b,xhrMap:d,onFinish:e.onFinish,onError:e.onError},file:O,action:E,withCredentials:I,headers:R,data:D,customRequest:e.customRequest}):cPe({doChange:b,xhrMap:d,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},k,O,{method:T,action:E,withCredentials:I,responseType:e.responseType,headers:R,data:D}))})}const b=(B,T,E={append:!1,remove:!1})=>{const{append:I,remove:R}=E,D=Array.from(A.value),k=D.findIndex(F=>F.id===B.id);if(I||R||~k){I?D.push(B):R?D.splice(k,1):D.splice(k,1,B);const{onChange:F}=e;F&&F({file:B,fileList:D,event:T}),p(D)}};function w(B){return t2(this,void 0,void 0,function*(){const{createThumbnailUrl:T}=e;return T?yield T(B.file):yield Gke(B.file)})}const x=L(()=>{const{common:{cubicBezierEaseInOut:B},self:{draggerColor:T,draggerBorder:E,draggerBorderHover:I,itemColorHover:R,itemColorHoverError:D,itemTextColorError:k,itemTextColorSuccess:F,itemTextColor:P,itemIconColor:O,itemDisabledOpacity:H,lineHeight:V,borderRadius:W,fontSize:Z,itemBorderImageCardError:ee,itemBorderImageCard:ae}}=n.value;return{"--n-bezier":B,"--n-border-radius":W,"--n-dragger-border":E,"--n-dragger-border-hover":I,"--n-dragger-color":T,"--n-font-size":Z,"--n-item-color-hover":R,"--n-item-color-hover-error":D,"--n-item-disabled-opacity":H,"--n-item-icon-color":O,"--n-item-text-color":P,"--n-item-text-color-error":k,"--n-item-text-color-success":F,"--n-line-height":V,"--n-item-border-image-card-error":ee,"--n-item-border-image-card":ae}}),S=r?_t("upload",void 0,x,e):void 0;Ct(Wv,{mergedClsPrefixRef:t,mergedThemeRef:n,showCancelButtonRef:Ie(e,"showCancelButton"),showDownloadButtonRef:Ie(e,"showDownloadButton"),showRemoveButtonRef:Ie(e,"showRemoveButton"),showRetryButtonRef:Ie(e,"showRetryButton"),onRemoveRef:Ie(e,"onRemove"),onDownloadRef:Ie(e,"onDownload"),mergedFileListRef:A,triggerStyleRef:Ie(e,"triggerStyle"),xhrMap:d,submit:y,doChange:b,showPreviewButtonRef:Ie(e,"showPreviewButton"),onPreviewRef:Ie(e,"onPreview"),getFileThumbnailUrl:w,listTypeRef:Ie(e,"listType"),dragOverRef:c,openOpenFileDialog:h,draggerInsideRef:u,handleFileAddition:m,mergedDisabledRef:a.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:Ie(e,"fileListStyle"),abstractRef:Ie(e,"abstract"),acceptRef:Ie(e,"accept"),cssVarsRef:r?void 0:x,themeClassRef:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender,showTriggerRef:Ie(e,"showTrigger"),imageGroupPropsRef:Ie(e,"imageGroupProps"),mergedDirectoryDndRef:L(()=>{var B;return(B=e.directoryDnd)!==null&&B!==void 0?B:e.directory})});const _={clear:()=>{o.value=[]},submit:y,openOpenFileDialog:h};return Object.assign({mergedClsPrefix:t,draggerInsideRef:u,inputElRef:l,mergedTheme:n,dragOver:c,mergedMultiple:g,cssVars:r?void 0:x,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender,handleFileInputChange:v},_)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:n,$slots:a,directory:i,onRender:o}=this;if(a.default&&!this.abstract){const l=a.default()[0];!((e=l==null?void 0:l.type)===null||e===void 0)&&e[PX]&&(r.value=!0)}const s=C("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${n}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?C(rr,null,(t=a.default)===null||t===void 0?void 0:t.call(a),C(kv,{to:"body"},s)):(o==null||o(),C("div",{class:[`${n}-upload`,r.value&&`${n}-upload--dragger-inside`,this.dragOver&&`${n}-upload--drag-over`,this.themeClass],style:this.cssVars},s,this.showTrigger&&this.listType!=="image-card"&&C(tP,null,a),this.showFileList&&C(UX,null,a)))}}),APe=N([M("watermark-container",`
|
|
position: relative;
|
|
`,[Nt("selectable",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`),j("global-rotate",`
|
|
overflow: hidden;
|
|
`),j("fullscreen",`
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
position: fixed;
|
|
`)]),M("watermark",`
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
background-repeat: repeat;
|
|
`,[j("fullscreen",`
|
|
position: fixed;
|
|
`),j("global-rotate",`
|
|
position: absolute;
|
|
height: max(284vh, 284vw);
|
|
width: max(284vh, 284vw);
|
|
`)])]);function hPe(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const vPe=Object.assign(Object.assign({},Fe.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}});var pPe=ge({name:"Watermark",props:vPe,setup(e,{slots:t}){const{mergedClsPrefixRef:r}=et(e),n=Fe("Watermark","-watermark",APe,VDe,e,r),a=X(""),i=To?document.createElement("canvas"):null,o=i?i.getContext("2d"):null,s=X(!1);return ZM(()=>s.value=!0),yr(()=>{if(!i)return;s.value;const l=hPe(o),{xGap:u,yGap:c,width:d,height:f,yOffset:A,xOffset:h,rotate:v,image:p,content:g,fontColor:m,fontStyle:y,fontVariant:b,fontStretch:w,fontWeight:x,fontFamily:S,fontSize:_,lineHeight:B,debug:T}=e,E=(u+d)*l,I=(c+f)*l,R=h*l,D=A*l;if(i.width=E,i.height=I,o){o.translate(0,0);const k=d*l,F=f*l;if(T&&(o.strokeStyle="grey",o.strokeRect(0,0,k,F)),o.rotate(v*(Math.PI/180)),p){const P=new Image;P.crossOrigin="anonymous",P.referrerPolicy="no-referrer",P.src=p,P.onload=()=>{o.globalAlpha=e.imageOpacity;const{imageWidth:O,imageHeight:H}=e;o.drawImage(P,R,D,(e.imageWidth||(H?P.width*H/P.height:P.width))*l,(e.imageHeight||(O?P.height*O/P.width:P.height))*l),a.value=i.toDataURL()}}else g&&(T&&(o.strokeStyle="green",o.strokeRect(0,0,k,F)),o.font=`${y} ${b} ${x} ${w} ${_*l}px/${B*l}px ${S||n.value.self.fontFamily}`,o.fillStyle=m,o.fillText(g,R,D+B*l),a.value=i.toDataURL())}else Rde("watermark","Canvas is not supported in the browser.")}),()=>{var l;const{globalRotate:u,fullscreen:c,zIndex:d}=e,f=r.value,A=u!==0&&c,h="max(142vh, 142vw)",v=C("div",{class:[`${f}-watermark`,u!==0&&`${f}-watermark--global-rotate`,c&&`${f}-watermark--fullscreen`],style:{transform:u?`translateX(-50%) translateY(-50%) rotate(${u}deg)`:void 0,zIndex:A?void 0:d,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:u===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${h} + ${e.width/2}px) calc(${h} + ${e.height/2}px), ${h} ${h}`:h,backgroundImage:e.cross?`url(${a.value}), url(${a.value})`:`url(${a.value})`}});return e.fullscreen&&!u?v:C("div",{class:[`${f}-watermark-container`,u!==0&&`${f}-watermark-container--global-rotate`,c&&`${f}-watermark-container--fullscreen`,e.selectable&&`${f}-watermark-container--selectable`],style:{zIndex:A?d:void 0}},(l=t.default)===null||l===void 0?void 0:l.call(t),v)}}}),gPe="2.33.4";function mPe({componentPrefix:e="N",components:t=[]}={}){const r=[];function n(i,o,s){i.component(e+o)||i.component(e+o,s)}function a(i){r.includes(i)||(r.push(i),t.forEach(o=>{const{name:s,alias:l}=o;n(i,s,o),l&&l.forEach(u=>{n(i,u,o)})}))}return{version:gPe,componentPrefix:e,install:a}}const yPe={name:"dark",common:st,Alert:k1e,Anchor:G1e,AutoComplete:dxe,Avatar:GK,AvatarGroup:wxe,BackTop:Sxe,Badge:Mxe,Breadcrumb:Vxe,Button:Ci,ButtonGroup:KIe,Calendar:dCe,Card:vj,Carousel:qCe,Cascader:xSe,Checkbox:Qv,Code:wj,Collapse:OSe,CollapseTransition:jSe,ColorPicker:vCe,DataTable:P_e,DatePicker:XBe,Descriptions:rTe,Dialog:xY,Divider:RTe,Drawer:OTe,Dropdown:kk,DynamicInput:aEe,DynamicTags:AEe,Element:vEe,Empty:fA,Ellipsis:Uj,Form:CEe,GradientText:xIe,Icon:lBe,IconWrapper:MIe,Image:KDe,Input:Ro,InputNumber:YIe,LegacyTransfer:CFe,Layout:eRe,List:oRe,LoadingBar:lRe,Log:ARe,Menu:bRe,Mention:vRe,Message:WIe,Modal:mTe,Notification:HIe,PageHeader:CRe,Pagination:Lj,Popconfirm:TRe,Popover:AA,Popselect:Tj,Progress:KY,Radio:Nj,Rate:DRe,Result:LRe,Row:GDe,Scrollbar:wi,Select:Fj,Skeleton:CMe,Slider:$Re,Space:FY,Spin:WRe,Statistic:YRe,Steps:eDe,Switch:rDe,Table:cDe,Tabs:vDe,Tag:DK,Thing:yDe,TimePicker:sY,Timeline:xDe,Tooltip:uS,Transfer:TDe,Tree:iX,TreeSelect:FDe,Typography:LDe,Upload:HDe,Watermark:NDe},bPe=ge({__name:"index",setup(e){return window.$message=YFe(),(t,r)=>null}}),xPe=ge({__name:"index",setup(e){return window.$dialog=BTe(),(t,r)=>null}}),wPe=ge({__name:"index",setup(e){return window.$loading=DFe(),window.$loading.finish(),(t,r)=>null}}),zX=ge({__name:"index",setup(e){return(t,r)=>($a(),Pv($n(gX),null,{default:Dl(()=>[nr($n(EY),null,{default:Dl(()=>[nr($n(xPe)),nr($n(wPe)),nr($n(TX),null,{default:Dl(()=>[nr($n(BX),null,{default:Dl(()=>[nr($n(bPe)),Qm(t.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3}))}});var td={};/*!
|
|
* @intlify/shared v9.1.9
|
|
* (c) 2021 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const CPe=typeof window!="undefined";let SPe,_Pe;const BPe=/\{([0-9a-zA-Z]+)\}/g;function NX(e,...t){return t.length===1&&Ws(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(BPe,(r,n)=>t.hasOwnProperty(n)?t[n]:"")}const TPe=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",EPe=e=>TPe?Symbol(e):e,QX=(e,t,r)=>VX({l:e,k:t,s:r}),VX=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),di=e=>typeof e=="number"&&isFinite(e),WX=e=>xS(e)==="[object Date]",IR=e=>xS(e)==="[object RegExp]",bS=e=>cn(e)&&Object.keys(e).length===0;function GX(e,t){typeof console!="undefined"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const rd=Object.assign;let D$;const KX=()=>D$||(D$=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function RR(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const IPe=Object.prototype.hasOwnProperty;function RPe(e,t){return IPe.call(e,t)}const Hl=Array.isArray,fi=e=>typeof e=="function",ur=e=>typeof e=="string",Ai=e=>typeof e=="boolean",DPe=e=>typeof e=="symbol",Ws=e=>e!==null&&typeof e=="object",FPe=e=>Ws(e)&&fi(e.then)&&fi(e.catch),rP=Object.prototype.toString,xS=e=>rP.call(e),cn=e=>xS(e)==="[object Object]",jX=e=>e==null?"":Hl(e)||cn(e)&&e.toString===rP?JSON.stringify(e,null,2):String(e),F$=2;function MPe(e,t=0,r=e.length){const n=e.split(/\r?\n/);let a=0;const i=[];for(let o=0;o<n.length;o++)if(a+=n[o].length+1,a>=t){for(let s=o-F$;s<=o+F$||r>a;s++){if(s<0||s>=n.length)continue;const l=s+1;i.push(`${l}${" ".repeat(3-String(l).length)}| ${n[s]}`);const u=n[s].length;if(s===o){const c=t-(a-u)+1,d=Math.max(1,r>a?u-c:r-t);i.push(" | "+" ".repeat(c)+"^".repeat(d))}else if(s>o){if(r>a){const c=Math.max(Math.min(r-a,u),1);i.push(" | "+"^".repeat(c))}a+=u+1}}break}return i.join(`
|
|
`)}function kPe(){const e=new Map;return{events:e,on(r,n){const a=e.get(r);a&&a.push(n)||e.set(r,[n])},off(r,n){const a=e.get(r);a&&a.splice(a.indexOf(n)>>>0,1)},emit(r,n){(e.get(r)||[]).slice().map(a=>a(n)),(e.get("*")||[]).slice().map(a=>a(r,n))}}}var PPe=Object.freeze(Object.defineProperty({__proto__:null,assign:rd,createEmitter:kPe,escapeHtml:RR,format:NX,friendlyJSONstringify:VX,generateCodeFrame:MPe,generateFormatCacheKey:QX,getGlobalThis:KX,hasOwn:RPe,inBrowser:CPe,isArray:Hl,isBoolean:Ai,isDate:WX,isEmptyObject:bS,isFunction:fi,isNumber:di,isObject:Ws,isPlainObject:cn,isPromise:FPe,isRegExp:IR,isString:ur,isSymbol:DPe,makeSymbol:EPe,mark:SPe,measure:_Pe,objectToString:rP,toDisplayString:jX,toTypeString:xS,warn:GX},Symbol.toStringTag,{value:"Module"})),LPe=Hk(PPe);/*!
|
|
* @intlify/message-resolver v9.1.9
|
|
* (c) 2021 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const OPe=Object.prototype.hasOwnProperty;function $Pe(e,t){return OPe.call(e,t)}const ox=e=>e!==null&&typeof e=="object",nd=[];nd[0]={w:[0],i:[3,0],["["]:[4],o:[7]};nd[1]={w:[1],["."]:[2],["["]:[4],o:[7]};nd[2]={w:[2],i:[3,0],[0]:[3,0]};nd[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};nd[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};nd[5]={["'"]:[4,0],o:8,l:[5,0]};nd[6]={['"']:[4,0],o:8,l:[6,0]};const UPe=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function HPe(e){return UPe.test(e)}function zPe(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function NPe(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function QPe(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:HPe(t)?zPe(t):"*"+t}function YX(e){const t=[];let r=-1,n=0,a=0,i,o,s,l,u,c,d;const f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),a++},f[3]=()=>{if(a>0)a--,n=4,f[0]();else{if(a=0,o===void 0||(o=QPe(o),o===!1))return!1;f[1]()}};function A(){const h=e[r+1];if(n===5&&h==="'"||n===6&&h==='"')return r++,s="\\"+h,f[0](),!0}for(;n!==null;)if(r++,i=e[r],!(i==="\\"&&A())){if(l=NPe(i),d=nd[n],u=d[l]||d.l||8,u===8||(n=u[0],u[1]!==void 0&&(c=f[u[1]],c&&(s=i,c()===!1))))return;if(n===7)return t}}const M$=new Map;function nP(e,t){if(!ox(e))return null;let r=M$.get(t);if(r||(r=YX(t),r&&M$.set(t,r)),!r)return null;const n=r.length;let a=e,i=0;for(;i<n;){const o=a[r[i]];if(o===void 0)return null;a=o,i++}return a}function DR(e){if(!ox(e))return e;for(const t in e)if(!!$Pe(e,t))if(!t.includes("."))ox(e[t])&&DR(e[t]);else{const r=t.split("."),n=r.length-1;let a=e;for(let i=0;i<n;i++)r[i]in a||(a[r[i]]={}),a=a[r[i]];a[r[n]]=e[t],delete e[t],ox(a[r[n]])&&DR(a[r[n]])}return e}/*!
|
|
* @intlify/runtime v9.1.9
|
|
* (c) 2021 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const VPe=e=>e,WPe=e=>"",XX="text",GPe=e=>e.length===0?"":e.join(""),KPe=jX;function k$(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function jPe(e){const t=di(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(di(e.named.count)||di(e.named.n))?di(e.named.count)?e.named.count:di(e.named.n)?e.named.n:t:t}function YPe(e,t){t.count||(t.count=e),t.n||(t.n=e)}function qX(e={}){const t=e.locale,r=jPe(e),n=Ws(e.pluralRules)&&ur(t)&&fi(e.pluralRules[t])?e.pluralRules[t]:k$,a=Ws(e.pluralRules)&&ur(t)&&fi(e.pluralRules[t])?k$:void 0,i=p=>p[n(r,p.length,a)],o=e.list||[],s=p=>o[p],l=e.named||{};di(e.pluralIndex)&&YPe(r,l);const u=p=>l[p];function c(p){const g=fi(e.messages)?e.messages(p):Ws(e.messages)?e.messages[p]:!1;return g||(e.parent?e.parent.message(p):WPe)}const d=p=>e.modifiers?e.modifiers[p]:VPe,f=cn(e.processor)&&fi(e.processor.normalize)?e.processor.normalize:GPe,A=cn(e.processor)&&fi(e.processor.interpolate)?e.processor.interpolate:KPe,h=cn(e.processor)&&ur(e.processor.type)?e.processor.type:XX,v={list:s,named:u,plural:i,linked:(p,g)=>{const m=c(p)(v);return ur(g)?d(g)(m):m},message:c,type:h,interpolate:A,normalize:f};return v}/*!
|
|
* @intlify/message-compiler v9.1.9
|
|
* (c) 2021 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/function wS(e,t,r={}){const{domain:n,messages:a,args:i}=r,o=e,s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=n,s}function XPe(e){throw e}function qPe(e,t,r){return{line:e,column:t,offset:r}}function FR(e,t,r){const n={start:e,end:t};return r!=null&&(n.source=r),n}const pl=" ",ZPe="\r",Wa=`
|
|
`,JPe=String.fromCharCode(8232),eLe=String.fromCharCode(8233);function tLe(e){const t=e;let r=0,n=1,a=1,i=0;const o=S=>t[S]===ZPe&&t[S+1]===Wa,s=S=>t[S]===Wa,l=S=>t[S]===eLe,u=S=>t[S]===JPe,c=S=>o(S)||s(S)||l(S)||u(S),d=()=>r,f=()=>n,A=()=>a,h=()=>i,v=S=>o(S)||l(S)||u(S)?Wa:t[S],p=()=>v(r),g=()=>v(r+i);function m(){return i=0,c(r)&&(n++,a=0),o(r)&&r++,r++,a++,t[r]}function y(){return o(r+i)&&i++,i++,t[r+i]}function b(){r=0,n=1,a=1,i=0}function w(S=0){i=S}function x(){const S=r+i;for(;S!==r;)m();i=0}return{index:d,line:f,column:A,peekOffset:h,charAt:v,currentChar:p,currentPeek:g,next:m,peek:y,reset:b,resetPeek:w,skipToPeek:x}}const Cu=void 0,P$="'",rLe="tokenizer";function nLe(e,t={}){const r=t.location!==!1,n=tLe(e),a=()=>n.index(),i=()=>qPe(n.line(),n.column(),n.index()),o=i(),s=a(),l={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function d(Q,J,U,...K){const q=u();if(J.column+=U,J.offset+=U,c){const ie=FR(q.startLoc,J),$=wS(Q,ie,{domain:rLe,args:K});c($)}}function f(Q,J,U){Q.endLoc=i(),Q.currentType=J;const K={type:J};return r&&(K.loc=FR(Q.startLoc,Q.endLoc)),U!=null&&(K.value=U),K}const A=Q=>f(Q,14);function h(Q,J){return Q.currentChar()===J?(Q.next(),J):(d(0,i(),0,J),"")}function v(Q){let J="";for(;Q.currentPeek()===pl||Q.currentPeek()===Wa;)J+=Q.currentPeek(),Q.peek();return J}function p(Q){const J=v(Q);return Q.skipToPeek(),J}function g(Q){if(Q===Cu)return!1;const J=Q.charCodeAt(0);return J>=97&&J<=122||J>=65&&J<=90||J===95}function m(Q){if(Q===Cu)return!1;const J=Q.charCodeAt(0);return J>=48&&J<=57}function y(Q,J){const{currentType:U}=J;if(U!==2)return!1;v(Q);const K=g(Q.currentPeek());return Q.resetPeek(),K}function b(Q,J){const{currentType:U}=J;if(U!==2)return!1;v(Q);const K=Q.currentPeek()==="-"?Q.peek():Q.currentPeek(),q=m(K);return Q.resetPeek(),q}function w(Q,J){const{currentType:U}=J;if(U!==2)return!1;v(Q);const K=Q.currentPeek()===P$;return Q.resetPeek(),K}function x(Q,J){const{currentType:U}=J;if(U!==8)return!1;v(Q);const K=Q.currentPeek()===".";return Q.resetPeek(),K}function S(Q,J){const{currentType:U}=J;if(U!==9)return!1;v(Q);const K=g(Q.currentPeek());return Q.resetPeek(),K}function _(Q,J){const{currentType:U}=J;if(!(U===8||U===12))return!1;v(Q);const K=Q.currentPeek()===":";return Q.resetPeek(),K}function B(Q,J){const{currentType:U}=J;if(U!==10)return!1;const K=()=>{const ie=Q.currentPeek();return ie==="{"?g(Q.peek()):ie==="@"||ie==="%"||ie==="|"||ie===":"||ie==="."||ie===pl||!ie?!1:ie===Wa?(Q.peek(),K()):g(ie)},q=K();return Q.resetPeek(),q}function T(Q){v(Q);const J=Q.currentPeek()==="|";return Q.resetPeek(),J}function E(Q,J=!0){const U=(q=!1,ie="",$=!1)=>{const re=Q.currentPeek();return re==="{"?ie==="%"?!1:q:re==="@"||!re?ie==="%"?!0:q:re==="%"?(Q.peek(),U(q,"%",!0)):re==="|"?ie==="%"||$?!0:!(ie===pl||ie===Wa):re===pl?(Q.peek(),U(!0,pl,$)):re===Wa?(Q.peek(),U(!0,Wa,$)):!0},K=U();return J&&Q.resetPeek(),K}function I(Q,J){const U=Q.currentChar();return U===Cu?Cu:J(U)?(Q.next(),U):null}function R(Q){return I(Q,U=>{const K=U.charCodeAt(0);return K>=97&&K<=122||K>=65&&K<=90||K>=48&&K<=57||K===95||K===36})}function D(Q){return I(Q,U=>{const K=U.charCodeAt(0);return K>=48&&K<=57})}function k(Q){return I(Q,U=>{const K=U.charCodeAt(0);return K>=48&&K<=57||K>=65&&K<=70||K>=97&&K<=102})}function F(Q){let J="",U="";for(;J=D(Q);)U+=J;return U}function P(Q){let J="";for(;;){const U=Q.currentChar();if(U==="{"||U==="}"||U==="@"||U==="|"||!U)break;if(U==="%")if(E(Q))J+=U,Q.next();else break;else if(U===pl||U===Wa)if(E(Q))J+=U,Q.next();else{if(T(Q))break;J+=U,Q.next()}else J+=U,Q.next()}return J}function O(Q){p(Q);let J="",U="";for(;J=R(Q);)U+=J;return Q.currentChar()===Cu&&d(6,i(),0),U}function H(Q){p(Q);let J="";return Q.currentChar()==="-"?(Q.next(),J+=`-${F(Q)}`):J+=F(Q),Q.currentChar()===Cu&&d(6,i(),0),J}function V(Q){p(Q),h(Q,"'");let J="",U="";const K=ie=>ie!==P$&&ie!==Wa;for(;J=I(Q,K);)J==="\\"?U+=W(Q):U+=J;const q=Q.currentChar();return q===Wa||q===Cu?(d(2,i(),0),q===Wa&&(Q.next(),h(Q,"'")),U):(h(Q,"'"),U)}function W(Q){const J=Q.currentChar();switch(J){case"\\":case"'":return Q.next(),`\\${J}`;case"u":return Z(Q,J,4);case"U":return Z(Q,J,6);default:return d(3,i(),0,J),""}}function Z(Q,J,U){h(Q,J);let K="";for(let q=0;q<U;q++){const ie=k(Q);if(!ie){d(4,i(),0,`\\${J}${K}${Q.currentChar()}`);break}K+=ie}return`\\${J}${K}`}function ee(Q){p(Q);let J="",U="";const K=q=>q!=="{"&&q!=="}"&&q!==pl&&q!==Wa;for(;J=I(Q,K);)U+=J;return U}function ae(Q){let J="",U="";for(;J=R(Q);)U+=J;return U}function ne(Q){const J=(U=!1,K)=>{const q=Q.currentChar();return q==="{"||q==="%"||q==="@"||q==="|"||!q||q===pl?K:q===Wa?(K+=q,Q.next(),J(U,K)):(K+=q,Q.next(),J(!0,K))};return J(!1,"")}function le(Q){p(Q);const J=h(Q,"|");return p(Q),J}function se(Q,J){let U=null;switch(Q.currentChar()){case"{":return J.braceNest>=1&&d(8,i(),0),Q.next(),U=f(J,2,"{"),p(Q),J.braceNest++,U;case"}":return J.braceNest>0&&J.currentType===2&&d(7,i(),0),Q.next(),U=f(J,3,"}"),J.braceNest--,J.braceNest>0&&p(Q),J.inLinked&&J.braceNest===0&&(J.inLinked=!1),U;case"@":return J.braceNest>0&&d(6,i(),0),U=ce(Q,J)||A(J),J.braceNest=0,U;default:let q=!0,ie=!0,$=!0;if(T(Q))return J.braceNest>0&&d(6,i(),0),U=f(J,1,le(Q)),J.braceNest=0,J.inLinked=!1,U;if(J.braceNest>0&&(J.currentType===5||J.currentType===6||J.currentType===7))return d(6,i(),0),J.braceNest=0,ye(Q,J);if(q=y(Q,J))return U=f(J,5,O(Q)),p(Q),U;if(ie=b(Q,J))return U=f(J,6,H(Q)),p(Q),U;if($=w(Q,J))return U=f(J,7,V(Q)),p(Q),U;if(!q&&!ie&&!$)return U=f(J,13,ee(Q)),d(1,i(),0,U.value),p(Q),U;break}return U}function ce(Q,J){const{currentType:U}=J;let K=null;const q=Q.currentChar();switch((U===8||U===9||U===12||U===10)&&(q===Wa||q===pl)&&d(9,i(),0),q){case"@":return Q.next(),K=f(J,8,"@"),J.inLinked=!0,K;case".":return p(Q),Q.next(),f(J,9,".");case":":return p(Q),Q.next(),f(J,10,":");default:return T(Q)?(K=f(J,1,le(Q)),J.braceNest=0,J.inLinked=!1,K):x(Q,J)||_(Q,J)?(p(Q),ce(Q,J)):S(Q,J)?(p(Q),f(J,12,ae(Q))):B(Q,J)?(p(Q),q==="{"?se(Q,J)||K:f(J,11,ne(Q))):(U===8&&d(9,i(),0),J.braceNest=0,J.inLinked=!1,ye(Q,J))}}function ye(Q,J){let U={type:14};if(J.braceNest>0)return se(Q,J)||A(J);if(J.inLinked)return ce(Q,J)||A(J);const K=Q.currentChar();switch(K){case"{":return se(Q,J)||A(J);case"}":return d(5,i(),0),Q.next(),f(J,3,"}");case"@":return ce(Q,J)||A(J);default:if(T(Q))return U=f(J,1,le(Q)),J.braceNest=0,J.inLinked=!1,U;if(E(Q))return f(J,0,P(Q));if(K==="%")return Q.next(),f(J,4,"%");break}return U}function fe(){const{currentType:Q,offset:J,startLoc:U,endLoc:K}=l;return l.lastType=Q,l.lastOffset=J,l.lastStartLoc=U,l.lastEndLoc=K,l.offset=a(),l.startLoc=i(),n.currentChar()===Cu?f(l,14):ye(n,l)}return{nextToken:fe,currentOffset:a,currentPosition:i,context:u}}const aLe="parser",iLe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function oLe(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"\uFFFD"}}}function sLe(e={}){const t=e.location!==!1,{onError:r}=e;function n(g,m,y,b,...w){const x=g.currentPosition();if(x.offset+=b,x.column+=b,r){const S=FR(y,x),_=wS(m,S,{domain:aLe,args:w});r(_)}}function a(g,m,y){const b={type:g,start:m,end:m};return t&&(b.loc={start:y,end:y}),b}function i(g,m,y,b){g.end=m,b&&(g.type=b),t&&g.loc&&(g.loc.end=y)}function o(g,m){const y=g.context(),b=a(3,y.offset,y.startLoc);return b.value=m,i(b,g.currentOffset(),g.currentPosition()),b}function s(g,m){const y=g.context(),{lastOffset:b,lastStartLoc:w}=y,x=a(5,b,w);return x.index=parseInt(m,10),g.nextToken(),i(x,g.currentOffset(),g.currentPosition()),x}function l(g,m){const y=g.context(),{lastOffset:b,lastStartLoc:w}=y,x=a(4,b,w);return x.key=m,g.nextToken(),i(x,g.currentOffset(),g.currentPosition()),x}function u(g,m){const y=g.context(),{lastOffset:b,lastStartLoc:w}=y,x=a(9,b,w);return x.value=m.replace(iLe,oLe),g.nextToken(),i(x,g.currentOffset(),g.currentPosition()),x}function c(g){const m=g.nextToken(),y=g.context(),{lastOffset:b,lastStartLoc:w}=y,x=a(8,b,w);return m.type!==12?(n(g,11,y.lastStartLoc,0),x.value="",i(x,b,w),{nextConsumeToken:m,node:x}):(m.value==null&&n(g,13,y.lastStartLoc,0,bs(m)),x.value=m.value||"",i(x,g.currentOffset(),g.currentPosition()),{node:x})}function d(g,m){const y=g.context(),b=a(7,y.offset,y.startLoc);return b.value=m,i(b,g.currentOffset(),g.currentPosition()),b}function f(g){const m=g.context(),y=a(6,m.offset,m.startLoc);let b=g.nextToken();if(b.type===9){const w=c(g);y.modifier=w.node,b=w.nextConsumeToken||g.nextToken()}switch(b.type!==10&&n(g,13,m.lastStartLoc,0,bs(b)),b=g.nextToken(),b.type===2&&(b=g.nextToken()),b.type){case 11:b.value==null&&n(g,13,m.lastStartLoc,0,bs(b)),y.key=d(g,b.value||"");break;case 5:b.value==null&&n(g,13,m.lastStartLoc,0,bs(b)),y.key=l(g,b.value||"");break;case 6:b.value==null&&n(g,13,m.lastStartLoc,0,bs(b)),y.key=s(g,b.value||"");break;case 7:b.value==null&&n(g,13,m.lastStartLoc,0,bs(b)),y.key=u(g,b.value||"");break;default:n(g,12,m.lastStartLoc,0);const w=g.context(),x=a(7,w.offset,w.startLoc);return x.value="",i(x,w.offset,w.startLoc),y.key=x,i(y,w.offset,w.startLoc),{nextConsumeToken:b,node:y}}return i(y,g.currentOffset(),g.currentPosition()),{node:y}}function A(g){const m=g.context(),y=m.currentType===1?g.currentOffset():m.offset,b=m.currentType===1?m.endLoc:m.startLoc,w=a(2,y,b);w.items=[];let x=null;do{const B=x||g.nextToken();switch(x=null,B.type){case 0:B.value==null&&n(g,13,m.lastStartLoc,0,bs(B)),w.items.push(o(g,B.value||""));break;case 6:B.value==null&&n(g,13,m.lastStartLoc,0,bs(B)),w.items.push(s(g,B.value||""));break;case 5:B.value==null&&n(g,13,m.lastStartLoc,0,bs(B)),w.items.push(l(g,B.value||""));break;case 7:B.value==null&&n(g,13,m.lastStartLoc,0,bs(B)),w.items.push(u(g,B.value||""));break;case 8:const T=f(g);w.items.push(T.node),x=T.nextConsumeToken||null;break}}while(m.currentType!==14&&m.currentType!==1);const S=m.currentType===1?m.lastOffset:g.currentOffset(),_=m.currentType===1?m.lastEndLoc:g.currentPosition();return i(w,S,_),w}function h(g,m,y,b){const w=g.context();let x=b.items.length===0;const S=a(1,m,y);S.cases=[],S.cases.push(b);do{const _=A(g);x||(x=_.items.length===0),S.cases.push(_)}while(w.currentType!==14);return x&&n(g,10,y,0),i(S,g.currentOffset(),g.currentPosition()),S}function v(g){const m=g.context(),{offset:y,startLoc:b}=m,w=A(g);return m.currentType===14?w:h(g,y,b,w)}function p(g){const m=nLe(g,rd({},e)),y=m.context(),b=a(0,y.offset,y.startLoc);return t&&b.loc&&(b.loc.source=g),b.body=v(m),y.currentType!==14&&n(m,13,y.lastStartLoc,0,g[y.offset]||""),i(b,m.currentOffset(),m.currentPosition()),b}return{parse:p}}function bs(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"\u2026":t}function lLe(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:i=>(r.helpers.add(i),i)}}function L$(e,t){for(let r=0;r<e.length;r++)aP(e[r],t)}function aP(e,t){switch(e.type){case 1:L$(e.cases,t),t.helper("plural");break;case 2:L$(e.items,t);break;case 6:aP(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function uLe(e,t={}){const r=lLe(e);r.helper("normalize"),e.body&&aP(e.body,r);const n=r.context();e.helpers=Array.from(n.helpers)}function cLe(e,t){const{sourceMap:r,filename:n,breakLineCode:a,needIndent:i}=t,o={source:e.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:i,indentLevel:0},s=()=>o;function l(v,p){o.code+=v}function u(v,p=!0){const g=p?a:"";l(i?g+" ".repeat(v):g)}function c(v=!0){const p=++o.indentLevel;v&&u(p)}function d(v=!0){const p=--o.indentLevel;v&&u(p)}function f(){u(o.indentLevel)}return{context:s,push:l,indent:c,deindent:d,newline:f,helper:v=>`_${v}`,needIndent:()=>o.needIndent}}function dLe(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),vv(e,t.key),t.modifier&&(e.push(", "),vv(e,t.modifier)),e.push(")")}function fLe(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const a=t.items.length;for(let i=0;i<a&&(vv(e,t.items[i]),i!==a-1);i++)e.push(", ");e.deindent(n()),e.push("])")}function ALe(e,t){const{helper:r,needIndent:n}=e;if(t.cases.length>1){e.push(`${r("plural")}([`),e.indent(n());const a=t.cases.length;for(let i=0;i<a&&(vv(e,t.cases[i]),i!==a-1);i++)e.push(", ");e.deindent(n()),e.push("])")}}function hLe(e,t){t.body?vv(e,t.body):e.push("null")}function vv(e,t){const{helper:r}=e;switch(t.type){case 0:hLe(e,t);break;case 1:ALe(e,t);break;case 2:fLe(e,t);break;case 6:dLe(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${r("interpolate")}(${r("list")}(${t.index}))`,t);break;case 4:e.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const vLe=(e,t={})=>{const r=ur(t.mode)?t.mode:"normal",n=ur(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
|
|
`,o=t.needIndent?t.needIndent:r!=="arrow",s=e.helpers||[],l=cLe(e,{mode:r,filename:n,sourceMap:a,breakLineCode:i,needIndent:o});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${s.map(d=>`${d}: _${d}`).join(", ")} } = ctx`),l.newline()),l.push("return "),vv(l,e),l.deindent(o),l.push("}");const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function pLe(e,t={}){const r=rd({},t),a=sLe(r).parse(e);return uLe(a,r),vLe(a,r)}/*!
|
|
* @intlify/devtools-if v9.1.9
|
|
* (c) 2021 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const ZX={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
|
|
* @intlify/core-base v9.1.9
|
|
* (c) 2021 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/let pv=null;function gLe(e){pv=e}function mLe(){return pv}function JX(e,t,r){pv&&pv.emit(ZX.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:r})}const eq=yLe(ZX.FunctionTranslate);function yLe(e){return t=>pv&&pv.emit(e,t)}const bLe={[0]:"Not found '{key}' key in '{locale}' locale messages.",[1]:"Fall back to translate '{key}' key with '{target}' locale.",[2]:"Cannot format a number value due to not supported Intl.NumberFormat.",[3]:"Fall back to number format '{key}' key with '{target}' locale.",[4]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[5]:"Fall back to datetime format '{key}' key with '{target}' locale."};function xLe(e,...t){return NX(bLe[e],...t)}const tq="9.1.9",CS=-1,wLe="";function CLe(){return{upper:e=>ur(e)?e.toUpperCase():e,lower:e=>ur(e)?e.toLowerCase():e,capitalize:e=>ur(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}}let rq;function SLe(e){rq=e}let nq=null;const _Le=e=>{nq=e},aq=()=>nq;let O$=0;function BLe(e={}){const t=ur(e.version)?e.version:tq,r=ur(e.locale)?e.locale:"en-US",n=Hl(e.fallbackLocale)||cn(e.fallbackLocale)||ur(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=cn(e.messages)?e.messages:{[r]:{}},i=cn(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},o=cn(e.numberFormats)?e.numberFormats:{[r]:{}},s=rd({},e.modifiers||{},CLe()),l=e.pluralRules||{},u=fi(e.missing)?e.missing:null,c=Ai(e.missingWarn)||IR(e.missingWarn)?e.missingWarn:!0,d=Ai(e.fallbackWarn)||IR(e.fallbackWarn)?e.fallbackWarn:!0,f=!!e.fallbackFormat,A=!!e.unresolving,h=fi(e.postTranslation)?e.postTranslation:null,v=cn(e.processor)?e.processor:null,p=Ai(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter,m=fi(e.messageCompiler)?e.messageCompiler:rq,y=fi(e.onWarn)?e.onWarn:GX,b=e,w=Ws(b.__datetimeFormatters)?b.__datetimeFormatters:new Map,x=Ws(b.__numberFormatters)?b.__numberFormatters:new Map,S=Ws(b.__meta)?b.__meta:{};O$++;const _={version:t,cid:O$,locale:r,fallbackLocale:n,messages:a,datetimeFormats:i,numberFormats:o,modifiers:s,pluralRules:l,missing:u,missingWarn:c,fallbackWarn:d,fallbackFormat:f,unresolving:A,postTranslation:h,processor:v,warnHtmlMessage:p,escapeParameter:g,messageCompiler:m,onWarn:y,__datetimeFormatters:w,__numberFormatters:x,__meta:S};return __INTLIFY_PROD_DEVTOOLS__&&JX(_,t,S),_}function TLe(e,t){return e instanceof RegExp?e.test(t):e}function ELe(e,t){return e instanceof RegExp?e.test(t):e}function SS(e,t,r,n,a){const{missing:i,onWarn:o}=e;if(i!==null){const s=i(e,r,t,a);return ur(s)?s:t}else return t}function ay(e,t,r){const n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let a=n.__localeChainCache.get(r);if(!a){a=[];let i=[r];for(;Hl(i);)i=$$(a,i,t);const o=Hl(t)?t:cn(t)?t.default?t.default:null:t;i=ur(o)?[o]:o,Hl(i)&&$$(a,i,!1),n.__localeChainCache.set(r,a)}return a}function $$(e,t,r){let n=!0;for(let a=0;a<t.length&&Ai(n);a++){const i=t[a];ur(i)&&(n=ILe(e,t[a],r))}return n}function ILe(e,t,r){let n;const a=t.split("-");do{const i=a.join("-");n=RLe(e,i,r),a.splice(-1,1)}while(a.length&&n===!0);return n}function RLe(e,t,r){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(Hl(r)||cn(r))&&r[a]&&(n=r[a])}return n}function DLe(e,t,r){const n=e;n.__localeChainCache=new Map,ay(e,r,t)}const FLe=e=>e;let MR=Object.create(null);function MLe(){MR=Object.create(null)}function kLe(e,t={}){{const n=(t.onCacheKey||FLe)(e),a=MR[n];if(a)return a;let i=!1;const o=t.onError||XPe;t.onError=u=>{i=!0,o(u)};const{code:s}=pLe(e,t),l=new Function(`return ${s}`)();return i?l:MR[n]=l}}function Af(e){return wS(e,null,void 0)}const U$=()=>"",Ko=e=>fi(e);function PLe(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:a,fallbackLocale:i,messages:o}=e,[s,l]=oq(...t),u=Ai(l.missingWarn)?l.missingWarn:e.missingWarn,c=Ai(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,d=Ai(l.escapeParameter)?l.escapeParameter:e.escapeParameter,f=!!l.resolvedMessage,A=ur(l.default)||Ai(l.default)?Ai(l.default)?s:l.default:r?s:"",h=r||A!=="",v=ur(l.locale)?l.locale:e.locale;d&&LLe(l);let[p,g,m]=f?[s,v,o[v]||{}]:OLe(e,s,v,i,c,u),y=s;if(!f&&!(ur(p)||Ko(p))&&h&&(p=A,y=p),!f&&(!(ur(p)||Ko(p))||!ur(g)))return a?CS:s;let b=!1;const w=()=>{b=!0},x=Ko(p)?p:iq(e,s,g,p,y,w);if(b)return p;const S=HLe(e,g,m,l),_=qX(S),B=$Le(e,x,_),T=n?n(B):B;if(__INTLIFY_PROD_DEVTOOLS__){const E={timestamp:Date.now(),key:ur(s)?s:Ko(p)?p.key:"",locale:g||(Ko(p)?p.locale:""),format:ur(p)?p:Ko(p)?p.source:"",message:T};E.meta=rd({},e.__meta,aq()||{}),eq(E)}return T}function LLe(e){Hl(e.list)?e.list=e.list.map(t=>ur(t)?RR(t):t):Ws(e.named)&&Object.keys(e.named).forEach(t=>{ur(e.named[t])&&(e.named[t]=RR(e.named[t]))})}function OLe(e,t,r,n,a,i){const{messages:o,onWarn:s}=e,l=ay(e,n,r);let u={},c,d=null;const f="translate";for(let A=0;A<l.length&&(c=l[A],u=o[c]||{},(d=nP(u,t))===null&&(d=u[t]),!(ur(d)||fi(d)));A++){const h=SS(e,t,c,i,f);h!==t&&(d=h)}return[d,c,u]}function iq(e,t,r,n,a,i){const{messageCompiler:o,warnHtmlMessage:s}=e;if(Ko(n)){const u=n;return u.locale=u.locale||r,u.key=u.key||t,u}const l=o(n,ULe(e,r,a,n,s,i));return l.locale=r,l.key=t,l.source=n,l}function $Le(e,t,r){return t(r)}function oq(...e){const[t,r,n]=e,a={};if(!ur(t)&&!di(t)&&!Ko(t))throw Af(14);const i=di(t)?String(t):(Ko(t),t);return di(r)?a.plural=r:ur(r)?a.default=r:cn(r)&&!bS(r)?a.named=r:Hl(r)&&(a.list=r),di(n)?a.plural=n:ur(n)?a.default=n:cn(n)&&rd(a,n),[i,a]}function ULe(e,t,r,n,a,i){return{warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>QX(t,r,o)}}function HLe(e,t,r,n){const{modifiers:a,pluralRules:i}=e,s={locale:t,modifiers:a,pluralRules:i,messages:l=>{const u=nP(r,l);if(ur(u)){let c=!1;const f=iq(e,l,t,u,l,()=>{c=!0});return c?U$:f}else return Ko(u)?u:U$}};return e.processor&&(s.processor=e.processor),n.list&&(s.list=n.list),n.named&&(s.named=n.named),di(n.plural)&&(s.pluralIndex=n.plural),s}function zLe(e,...t){const{datetimeFormats:r,unresolving:n,fallbackLocale:a,onWarn:i}=e,{__datetimeFormatters:o}=e,[s,l,u,c]=sq(...t),d=Ai(u.missingWarn)?u.missingWarn:e.missingWarn;Ai(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,A=ur(u.locale)?u.locale:e.locale,h=ay(e,a,A);if(!ur(s)||s==="")return new Intl.DateTimeFormat(A).format(l);let v={},p,g=null;const m="datetime format";for(let w=0;w<h.length&&(p=h[w],v=r[p]||{},g=v[s],!cn(g));w++)SS(e,s,p,d,m);if(!cn(g)||!ur(p))return n?CS:s;let y=`${p}__${s}`;bS(c)||(y=`${y}__${JSON.stringify(c)}`);let b=o.get(y);return b||(b=new Intl.DateTimeFormat(p,rd({},g,c)),o.set(y,b)),f?b.formatToParts(l):b.format(l)}function sq(...e){const[t,r,n,a]=e;let i={},o={},s;if(ur(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw Af(16);s=new Date(t);try{s.toISOString()}catch(l){throw Af(16)}}else if(WX(t)){if(isNaN(t.getTime()))throw Af(15);s=t}else if(di(t))s=t;else throw Af(14);return ur(r)?i.key=r:cn(r)&&(i=r),ur(n)?i.locale=n:cn(n)&&(o=n),cn(a)&&(o=a),[i.key||"",s,i,o]}function NLe(e,t,r){const n=e;for(const a in r){const i=`${t}__${a}`;!n.__datetimeFormatters.has(i)||n.__datetimeFormatters.delete(i)}}function QLe(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:a,onWarn:i}=e,{__numberFormatters:o}=e,[s,l,u,c]=lq(...t),d=Ai(u.missingWarn)?u.missingWarn:e.missingWarn;Ai(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,A=ur(u.locale)?u.locale:e.locale,h=ay(e,a,A);if(!ur(s)||s==="")return new Intl.NumberFormat(A).format(l);let v={},p,g=null;const m="number format";for(let w=0;w<h.length&&(p=h[w],v=r[p]||{},g=v[s],!cn(g));w++)SS(e,s,p,d,m);if(!cn(g)||!ur(p))return n?CS:s;let y=`${p}__${s}`;bS(c)||(y=`${y}__${JSON.stringify(c)}`);let b=o.get(y);return b||(b=new Intl.NumberFormat(p,rd({},g,c)),o.set(y,b)),f?b.formatToParts(l):b.format(l)}function lq(...e){const[t,r,n,a]=e;let i={},o={};if(!di(t))throw Af(14);const s=t;return ur(r)?i.key=r:cn(r)&&(i=r),ur(n)?i.locale=n:cn(n)&&(o=n),cn(a)&&(o=a),[i.key||"",s,i,o]}function VLe(e,t,r){const n=e;for(const a in r){const i=`${t}__${a}`;!n.__numberFormatters.has(i)||n.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(KX().__INTLIFY_PROD_DEVTOOLS__=!1);var WLe=Object.freeze(Object.defineProperty({__proto__:null,MISSING_RESOLVE_VALUE:wLe,NOT_REOSLVED:CS,VERSION:tq,clearCompileCache:MLe,clearDateTimeFormat:NLe,clearNumberFormat:VLe,compileToFunction:kLe,createCoreContext:BLe,createCoreError:Af,datetime:zLe,getAdditionalMeta:aq,getDevToolsHook:mLe,getLocaleChain:ay,getWarnMessage:xLe,handleMissing:SS,initI18nDevTools:JX,isMessageFunction:Ko,isTranslateFallbackWarn:TLe,isTranslateMissingWarn:ELe,number:QLe,parseDateTimeArgs:sq,parseNumberArgs:lq,parseTranslateArgs:oq,registerMessageCompiler:SLe,setAdditionalMeta:_Le,setDevToolsHook:gLe,translate:PLe,translateDevTools:eq,updateFallbackLocale:DLe,createCompileError:wS,handleFlatJson:DR,parse:YX,resolveValue:nP,DEFAULT_MESSAGE_DATA_TYPE:XX,createMessageContext:qX},Symbol.toStringTag,{value:"Module"})),GLe=Hk(WLe),KLe=Hk(vde);/*!
|
|
* vue-i18n v9.1.9
|
|
* (c) 2021 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/Object.defineProperty(td,"__esModule",{value:!0});var Ue=LPe,mr=GLe,Fr=KLe;const uq="9.1.9",jLe={[6]:"Fall back to {type} '{key}' with root locale.",[7]:"Not supported 'preserve'.",[8]:"Not supported 'formatter'.",[9]:"Not supported 'preserveDirectiveContent'.",[10]:"Not supported 'getChoiceIndex'.",[11]:"Component name legacy compatible: '{name}' -> 'i18n'",[12]:"Not found parent scope. use the global scope."};function Yo(e,...t){return Ue.format(jLe[e],...t)}function Oa(e,...t){return mr.createCompileError(e,null,{messages:YLe,args:t})}const YLe={[14]:"Unexpected return type in composer",[15]:"Invalid argument",[16]:"Must be called at the top of a `setup` function",[17]:"Need to install with `app.use` function",[22]:"Unexpected error",[18]:"Not available in legacy mode",[19]:"Required in value: {0}",[20]:"Invalid value",[21]:"Cannot setup vue-devtools plugin"},r2="__INTLIFY_META__",kR=Ue.makeSymbol("__transrateVNode"),PR=Ue.makeSymbol("__datetimeParts"),LR=Ue.makeSymbol("__numberParts"),OR=Ue.makeSymbol("__enableEmitter"),$R=Ue.makeSymbol("__disableEmitter"),cq=Ue.makeSymbol("__setPluralRules");Ue.makeSymbol("__intlifyMeta");const dq=Ue.makeSymbol("__injectWithOption");let H$=0;function z$(e){return(t,r,n,a)=>e(r,n,Fr.getCurrentInstance()||void 0,a)}function iP(e,t){const{messages:r,__i18n:n}=t,a=Ue.isPlainObject(r)?r:Ue.isArray(n)?{}:{[e]:{}};if(Ue.isArray(n)&&n.forEach(({locale:i,resource:o})=>{i?(a[i]=a[i]||{},gw(o,a[i])):gw(o,a)}),t.flatJson)for(const i in a)Ue.hasOwn(a,i)&&mr.handleFlatJson(a[i]);return a}const mb=e=>!Ue.isObject(e)||Ue.isArray(e);function gw(e,t){if(mb(e)||mb(t))throw Oa(20);for(const r in e)Ue.hasOwn(e,r)&&(mb(e[r])||mb(t[r])?t[r]=e[r]:gw(e[r],t[r]))}const XLe=()=>{const e=Fr.getCurrentInstance();return e&&e.type[r2]?{[r2]:e.type[r2]}:null};function oP(e={}){const{__root:t}=e,r=t===void 0;let n=Ue.isBoolean(e.inheritLocale)?e.inheritLocale:!0;const a=Fr.ref(t&&n?t.locale.value:Ue.isString(e.locale)?e.locale:"en-US"),i=Fr.ref(t&&n?t.fallbackLocale.value:Ue.isString(e.fallbackLocale)||Ue.isArray(e.fallbackLocale)||Ue.isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),o=Fr.ref(iP(a.value,e)),s=Fr.ref(Ue.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),l=Fr.ref(Ue.isPlainObject(e.numberFormats)?e.numberFormats:{[a.value]:{}});let u=t?t.missingWarn:Ue.isBoolean(e.missingWarn)||Ue.isRegExp(e.missingWarn)?e.missingWarn:!0,c=t?t.fallbackWarn:Ue.isBoolean(e.fallbackWarn)||Ue.isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,d=t?t.fallbackRoot:Ue.isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,f=!!e.fallbackFormat,A=Ue.isFunction(e.missing)?e.missing:null,h=Ue.isFunction(e.missing)?z$(e.missing):null,v=Ue.isFunction(e.postTranslation)?e.postTranslation:null,p=Ue.isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const m=t?t.modifiers:Ue.isPlainObject(e.modifiers)?e.modifiers:{};let y=e.pluralRules||t&&t.pluralRules,b;function w(){return mr.createCoreContext({version:uq,locale:a.value,fallbackLocale:i.value,messages:o.value,datetimeFormats:s.value,numberFormats:l.value,modifiers:m,pluralRules:y,missing:h===null?void 0:h,missingWarn:u,fallbackWarn:c,fallbackFormat:f,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:p,escapeParameter:g,__datetimeFormatters:Ue.isPlainObject(b)?b.__datetimeFormatters:void 0,__numberFormatters:Ue.isPlainObject(b)?b.__numberFormatters:void 0,__v_emitter:Ue.isPlainObject(b)?b.__v_emitter:void 0,__meta:{framework:"vue"}})}b=w(),mr.updateFallbackLocale(b,a.value,i.value);function x(){return[a.value,i.value,o.value,s.value,l.value]}const S=Fr.computed({get:()=>a.value,set:Y=>{a.value=Y,b.locale=a.value}}),_=Fr.computed({get:()=>i.value,set:Y=>{i.value=Y,b.fallbackLocale=i.value,mr.updateFallbackLocale(b,a.value,Y)}}),B=Fr.computed(()=>o.value),T=Fr.computed(()=>s.value),E=Fr.computed(()=>l.value);function I(){return Ue.isFunction(v)?v:null}function R(Y){v=Y,b.postTranslation=Y}function D(){return A}function k(Y){Y!==null&&(h=z$(Y)),A=Y,b.missing=h}function F(Y,te){return Y!=="translate"||!te.resolvedMessage}function P(Y,te,pe,de,we,De){x();let ze;try{mr.setAdditionalMeta(XLe()),ze=Y(b)}finally{mr.setAdditionalMeta(null)}if(Ue.isNumber(ze)&&ze===mr.NOT_REOSLVED){const[Xe,ke]=te();if(t&&Ue.isString(Xe)&&F(pe,ke)){d&&(mr.isTranslateFallbackWarn(c,Xe)||mr.isTranslateMissingWarn(u,Xe))&&Ue.warn(Yo(6,{key:Xe,type:pe}));{const{__v_emitter:Ge}=b;Ge&&d&&Ge.emit("fallback",{type:pe,key:Xe,to:"global",groupId:`${pe}:${Xe}`})}}return t&&d?de(t):we(Xe)}else{if(De(ze))return ze;throw Oa(14)}}function O(...Y){return P(te=>mr.translate(te,...Y),()=>mr.parseTranslateArgs(...Y),"translate",te=>te.t(...Y),te=>te,te=>Ue.isString(te))}function H(...Y){const[te,pe,de]=Y;if(de&&!Ue.isObject(de))throw Oa(15);return O(te,pe,Ue.assign({resolvedMessage:!0},de||{}))}function V(...Y){return P(te=>mr.datetime(te,...Y),()=>mr.parseDateTimeArgs(...Y),"datetime format",te=>te.d(...Y),()=>mr.MISSING_RESOLVE_VALUE,te=>Ue.isString(te))}function W(...Y){return P(te=>mr.number(te,...Y),()=>mr.parseNumberArgs(...Y),"number format",te=>te.n(...Y),()=>mr.MISSING_RESOLVE_VALUE,te=>Ue.isString(te))}function Z(Y){return Y.map(te=>Ue.isString(te)?Fr.createVNode(Fr.Text,null,te,0):te)}const ae={normalize:Z,interpolate:Y=>Y,type:"vnode"};function ne(...Y){return P(te=>{let pe;const de=te;try{de.processor=ae,pe=mr.translate(de,...Y)}finally{de.processor=null}return pe},()=>mr.parseTranslateArgs(...Y),"translate",te=>te[kR](...Y),te=>[Fr.createVNode(Fr.Text,null,te,0)],te=>Ue.isArray(te))}function le(...Y){return P(te=>mr.number(te,...Y),()=>mr.parseNumberArgs(...Y),"number format",te=>te[LR](...Y),()=>[],te=>Ue.isString(te)||Ue.isArray(te))}function se(...Y){return P(te=>mr.datetime(te,...Y),()=>mr.parseDateTimeArgs(...Y),"datetime format",te=>te[PR](...Y),()=>[],te=>Ue.isString(te)||Ue.isArray(te))}function ce(Y){y=Y,b.pluralRules=y}function ye(Y,te){const pe=Ue.isString(te)?te:a.value,de=J(pe);return mr.resolveValue(de,Y)!==null}function fe(Y){let te=null;const pe=mr.getLocaleChain(b,i.value,a.value);for(let de=0;de<pe.length;de++){const we=o.value[pe[de]]||{},De=mr.resolveValue(we,Y);if(De!=null){te=De;break}}return te}function Q(Y){const te=fe(Y);return te!=null?te:t?t.tm(Y)||{}:{}}function J(Y){return o.value[Y]||{}}function U(Y,te){o.value[Y]=te,b.messages=o.value}function K(Y,te){o.value[Y]=o.value[Y]||{},gw(te,o.value[Y]),b.messages=o.value}function q(Y){return s.value[Y]||{}}function ie(Y,te){s.value[Y]=te,b.datetimeFormats=s.value,mr.clearDateTimeFormat(b,Y,te)}function $(Y,te){s.value[Y]=Ue.assign(s.value[Y]||{},te),b.datetimeFormats=s.value,mr.clearDateTimeFormat(b,Y,te)}function re(Y){return l.value[Y]||{}}function ve(Y,te){l.value[Y]=te,b.numberFormats=l.value,mr.clearNumberFormat(b,Y,te)}function he(Y,te){l.value[Y]=Ue.assign(l.value[Y]||{},te),b.numberFormats=l.value,mr.clearNumberFormat(b,Y,te)}H$++,t&&(Fr.watch(t.locale,Y=>{n&&(a.value=Y,b.locale=Y,mr.updateFallbackLocale(b,a.value,i.value))}),Fr.watch(t.fallbackLocale,Y=>{n&&(i.value=Y,b.fallbackLocale=Y,mr.updateFallbackLocale(b,a.value,i.value))}));const oe={id:H$,locale:S,fallbackLocale:_,get inheritLocale(){return n},set inheritLocale(Y){n=Y,Y&&t&&(a.value=t.locale.value,i.value=t.fallbackLocale.value,mr.updateFallbackLocale(b,a.value,i.value))},get availableLocales(){return Object.keys(o.value).sort()},messages:B,datetimeFormats:T,numberFormats:E,get modifiers(){return m},get pluralRules(){return y||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn(Y){u=Y,b.missingWarn=u},get fallbackWarn(){return c},set fallbackWarn(Y){c=Y,b.fallbackWarn=c},get fallbackRoot(){return d},set fallbackRoot(Y){d=Y},get fallbackFormat(){return f},set fallbackFormat(Y){f=Y,b.fallbackFormat=f},get warnHtmlMessage(){return p},set warnHtmlMessage(Y){p=Y,b.warnHtmlMessage=Y},get escapeParameter(){return g},set escapeParameter(Y){g=Y,b.escapeParameter=Y},t:O,rt:H,d:V,n:W,te:ye,tm:Q,getLocaleMessage:J,setLocaleMessage:U,mergeLocaleMessage:K,getDateTimeFormat:q,setDateTimeFormat:ie,mergeDateTimeFormat:$,getNumberFormat:re,setNumberFormat:ve,mergeNumberFormat:he,getPostTranslationHandler:I,setPostTranslationHandler:R,getMissingHandler:D,setMissingHandler:k,[kR]:ne,[LR]:le,[PR]:se,[cq]:ce,[dq]:e.__injectWithOption};return oe[OR]=Y=>{b.__v_emitter=Y},oe[$R]=()=>{b.__v_emitter=void 0},oe}function qLe(e){const t=Ue.isString(e.locale)?e.locale:"en-US",r=Ue.isString(e.fallbackLocale)||Ue.isArray(e.fallbackLocale)||Ue.isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=Ue.isFunction(e.missing)?e.missing:void 0,a=Ue.isBoolean(e.silentTranslationWarn)||Ue.isRegExp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=Ue.isBoolean(e.silentFallbackWarn)||Ue.isRegExp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Ue.isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Ue.isPlainObject(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Ue.isFunction(e.postTranslation)?e.postTranslation:void 0,d=Ue.isString(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,A=Ue.isBoolean(e.sync)?e.sync:!0;e.formatter&&Ue.warn(Yo(8)),e.preserveDirectiveContent&&Ue.warn(Yo(9));let h=e.messages;if(Ue.isPlainObject(e.sharedMessages)){const w=e.sharedMessages;h=Object.keys(w).reduce((S,_)=>{const B=S[_]||(S[_]={});return Ue.assign(B,w[_]),S},h||{})}const{__i18n:v,__root:p,__injectWithOption:g}=e,m=e.datetimeFormats,y=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:r,messages:h,flatJson:b,datetimeFormats:m,numberFormats:y,missing:n,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:f,inheritLocale:A,__i18n:v,__root:p,__injectWithOption:g}}function UR(e={}){const t=oP(qLe(e)),r={id:t.id,get locale(){return t.locale.value},set locale(n){t.locale.value=n},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(n){t.fallbackLocale.value=n},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return Ue.warn(Yo(8)),{interpolate(){return[]}}},set formatter(n){Ue.warn(Yo(8))},get missing(){return t.getMissingHandler()},set missing(n){t.setMissingHandler(n)},get silentTranslationWarn(){return Ue.isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(n){t.missingWarn=Ue.isBoolean(n)?!n:n},get silentFallbackWarn(){return Ue.isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(n){t.fallbackWarn=Ue.isBoolean(n)?!n:n},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(n){t.fallbackFormat=n},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(n){t.setPostTranslationHandler(n)},get sync(){return t.inheritLocale},set sync(n){t.inheritLocale=n},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(n){t.warnHtmlMessage=n!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(n){t.escapeParameter=n},get preserveDirectiveContent(){return Ue.warn(Yo(9)),!0},set preserveDirectiveContent(n){Ue.warn(Yo(9))},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...n){const[a,i,o]=n,s={};let l=null,u=null;if(!Ue.isString(a))throw Oa(15);const c=a;return Ue.isString(i)?s.locale=i:Ue.isArray(i)?l=i:Ue.isPlainObject(i)&&(u=i),Ue.isArray(o)?l=o:Ue.isPlainObject(o)&&(u=o),t.t(c,l||u||{},s)},rt(...n){return t.rt(...n)},tc(...n){const[a,i,o]=n,s={plural:1};let l=null,u=null;if(!Ue.isString(a))throw Oa(15);const c=a;return Ue.isString(i)?s.locale=i:Ue.isNumber(i)?s.plural=i:Ue.isArray(i)?l=i:Ue.isPlainObject(i)&&(u=i),Ue.isString(o)?s.locale=o:Ue.isArray(o)?l=o:Ue.isPlainObject(o)&&(u=o),t.t(c,l||u||{},s)},te(n,a){return t.te(n,a)},tm(n){return t.tm(n)},getLocaleMessage(n){return t.getLocaleMessage(n)},setLocaleMessage(n,a){t.setLocaleMessage(n,a)},mergeLocaleMessage(n,a){t.mergeLocaleMessage(n,a)},d(...n){return t.d(...n)},getDateTimeFormat(n){return t.getDateTimeFormat(n)},setDateTimeFormat(n,a){t.setDateTimeFormat(n,a)},mergeDateTimeFormat(n,a){t.mergeDateTimeFormat(n,a)},n(...n){return t.n(...n)},getNumberFormat(n){return t.getNumberFormat(n)},setNumberFormat(n,a){t.setNumberFormat(n,a)},mergeNumberFormat(n,a){t.mergeNumberFormat(n,a)},getChoiceIndex(n,a){return Ue.warn(Yo(10)),-1},__onComponentInstanceCreated(n){const{componentInstanceCreatedListener:a}=e;a&&a(n,r)}};return r.__enableEmitter=n=>{const a=t;a[OR]&&a[OR](n)},r.__disableEmitter=()=>{const n=t;n[$R]&&n[$R]()},r}const sP={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}},sx={name:"i18n-t",props:Ue.assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ue.isNumber(e)||!isNaN(e)}},sP),setup(e,t){const{slots:r,attrs:n}=t,a=e.i18n||_S({useScope:e.scope,__useComponent:!0}),i=Object.keys(r).filter(o=>o!=="_");return()=>{const o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=Ue.isString(e.plural)?+e.plural:e.plural);const s=ZLe(t,i),l=a[kR](e.keypath,s,o),u=Ue.assign({},n);return Ue.isString(e.tag)||Ue.isObject(e.tag)?Fr.h(e.tag,u,l):Fr.h(Fr.Fragment,u,l)}}};function ZLe({slots:e},t){return t.length===1&&t[0]==="default"?e.default?e.default():[]:t.reduce((r,n)=>{const a=e[n];return a&&(r[n]=a()),r},{})}function fq(e,t,r,n){const{slots:a,attrs:i}=t;return()=>{const o={part:!0};let s={};e.locale&&(o.locale=e.locale),Ue.isString(e.format)?o.key=e.format:Ue.isObject(e.format)&&(Ue.isString(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((d,f)=>r.includes(f)?Ue.assign({},d,{[f]:e.format[f]}):d,{}));const l=n(e.value,o,s);let u=[o.key];Ue.isArray(l)?u=l.map((d,f)=>{const A=a[d.type];return A?A({[d.type]:d.value,index:f,parts:l}):[d.value]}):Ue.isString(l)&&(u=[l]);const c=Ue.assign({},i);return Ue.isString(e.tag)||Ue.isObject(e.tag)?Fr.h(e.tag,c,u):Fr.h(Fr.Fragment,c,u)}}const JLe=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],HR={name:"i18n-n",props:Ue.assign({value:{type:Number,required:!0},format:{type:[String,Object]}},sP),setup(e,t){const r=e.i18n||_S({useScope:"parent",__useComponent:!0});return fq(e,t,JLe,(...n)=>r[LR](...n))}},e4e=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],zR={name:"i18n-d",props:Ue.assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},sP),setup(e,t){const r=e.i18n||_S({useScope:"parent",__useComponent:!0});return fq(e,t,e4e,(...n)=>r[PR](...n))}};function t4e(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function Aq(e){const t=(r,{instance:n,value:a,modifiers:i})=>{if(!n||!n.$)throw Oa(22);const o=t4e(e,n.$);i.preserve&&Ue.warn(Yo(7));const s=r4e(a);r.textContent=o.t(...n4e(s))};return{beforeMount:t,beforeUpdate:t}}function r4e(e){if(Ue.isString(e))return{path:e};if(Ue.isPlainObject(e)){if(!("path"in e))throw Oa(19,"path");return e}else throw Oa(20)}function n4e(e){const{path:t,locale:r,args:n,choice:a,plural:i}=e,o={},s=n||{};return Ue.isString(r)&&(o.locale=r),Ue.isNumber(a)&&(o.plural=a),Ue.isNumber(i)&&(o.plural=i),[t,s,o]}function a4e(e,t,...r){const n=Ue.isPlainObject(r[0])?r[0]:{},a=!!n.useI18nComponentName,i=Ue.isBoolean(n.globalInstall)?n.globalInstall:!0;i&&a&&Ue.warn(Yo(11,{name:sx.name})),i&&(e.component(a?"i18n":sx.name,sx),e.component(HR.name,HR),e.component(zR.name,zR)),e.directive("t",Aq(t))}function i4e(e,t,r){return{beforeCreate(){const n=Fr.getCurrentInstance();if(!n)throw Oa(22);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=t,this===this.$root?this.$i18n=N$(e,i):(i.__injectWithOption=!0,this.$i18n=UR(i))}else a.__i18n?this===this.$root?this.$i18n=N$(e,a):this.$i18n=UR({__i18n:a.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),r.__setInstance(n,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i)},mounted(){},beforeUnmount(){const n=Fr.getCurrentInstance();if(!n)throw Oa(22);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__deleteInstance(n),delete this.$i18n}}}function N$(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[cq](t.pluralizationRules||e.pluralizationRules);const r=iP(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(n=>e.mergeLocaleMessage(n,r[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}function o4e(e={}){const t=Ue.isBoolean(e.legacy)?e.legacy:!0,r=!!e.globalInjection,n=new Map,a=t?UR(e):oP(e),i=Ue.makeSymbol("vue-i18n"),o={get mode(){return t?"legacy":"composition"},install(l,...u){return rB(this,null,function*(){l.__VUE_I18N_SYMBOL__=i,l.provide(l.__VUE_I18N_SYMBOL__,o),!t&&r&&d4e(l,o.global),a4e(l,o,...u),t&&l.mixin(i4e(a,a.__composer,o))})},get global(){return a},__instances:n,__getInstance(l){return n.get(l)||null},__setInstance(l,u){n.set(l,u)},__deleteInstance(l){n.delete(l)}};return o}function _S(e={}){const t=Fr.getCurrentInstance();if(t==null)throw Oa(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw Oa(17);const r=Fr.inject(t.appContext.app.__VUE_I18N_SYMBOL__);if(!r)throw Oa(22);const n=r.mode==="composition"?r.global:r.global.__composer,a=Ue.isEmptyObject(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if(a==="global"){let s=Ue.isObject(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(s=iP(n.locale.value,{messages:s,__i18n:t.type.__i18nGlobal}));const l=Object.keys(s);if(l.length&&l.forEach(u=>{n.mergeLocaleMessage(u,s[u])}),Ue.isObject(e.datetimeFormats)){const u=Object.keys(e.datetimeFormats);u.length&&u.forEach(c=>{n.mergeDateTimeFormat(c,e.datetimeFormats[c])})}if(Ue.isObject(e.numberFormats)){const u=Object.keys(e.numberFormats);u.length&&u.forEach(c=>{n.mergeNumberFormat(c,e.numberFormats[c])})}return n}if(a==="parent"){let s=s4e(r,t,e.__useComponent);return s==null&&(Ue.warn(Yo(12)),s=n),s}if(r.mode==="legacy")throw Oa(18);const i=r;let o=i.__getInstance(t);if(o==null){const s=t.type,l=Ue.assign({},e);s.__i18n&&(l.__i18n=s.__i18n),n&&(l.__root=n),o=oP(l),l4e(i,t),i.__setInstance(t,o)}return o}function s4e(e,t,r=!1){let n=null;const a=t.root;let i=t.parent;for(;i!=null;){const o=e;if(e.mode==="composition")n=o.__getInstance(i);else{const s=o.__getInstance(i);s!=null&&(n=s.__composer),r&&n&&!n[dq]&&(n=null)}if(n!=null||a===i)break;i=i.parent}return n}function l4e(e,t,r){Fr.onMounted(()=>{},t),Fr.onUnmounted(()=>{e.__deleteInstance(t)},t)}const u4e=["locale","fallbackLocale","availableLocales"],c4e=["t","rt","d","n","tm"];function d4e(e,t){const r=Object.create(null);u4e.forEach(n=>{const a=Object.getOwnPropertyDescriptor(t,n);if(!a)throw Oa(22);const i=Fr.isRef(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,n,i)}),e.config.globalProperties.$i18n=r,c4e.forEach(n=>{const a=Object.getOwnPropertyDescriptor(t,n);if(!a||!a.value)throw Oa(22);Object.defineProperty(e.config.globalProperties,`$${n}`,a)})}mr.registerMessageCompiler(mr.compileToFunction);{const e=Ue.getGlobalThis();e.__INTLIFY__=!0,mr.setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}td.DatetimeFormat=zR;td.NumberFormat=HR;td.Translation=sx;td.VERSION=uq;var f4e=td.createI18n=o4e,A4e=td.useI18n=_S;td.vTDirective=Aq;const h4e=ge({__name:"index",setup(e){const{t}=A4e();return window.$t=t,(r,n)=>null}});var v4e=!1;/*!
|
|
* pinia v2.0.14
|
|
* (c) 2022 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let hq;const BS=e=>hq=e,vq=Symbol();function NR(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var r0;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(r0||(r0={}));function p4e(){const e=_M(!0),t=e.run(()=>X({}));let r=[],n=[];const a=Gl({install(i){BS(a),a._a=i,i.provide(vq,a),i.config.globalProperties.$pinia=a,n.forEach(o=>r.push(o)),n=[]},use(i){return!this._a&&!v4e?n.push(i):r.push(i),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return a}const pq=()=>{};function Q$(e,t,r,n=pq){e.push(t);const a=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!r&&Ba()&&iA(a),a}function OA(e,...t){e.slice().forEach(r=>{r(...t)})}function QR(e,t){for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],a=e[r];NR(a)&&NR(n)&&e.hasOwnProperty(r)&&!mn(n)&&!Ol(n)?e[r]=QR(a,n):e[r]=n}return e}const g4e=Symbol();function m4e(e){return!NR(e)||!e.hasOwnProperty(g4e)}const{assign:_l}=Object;function y4e(e){return!!(mn(e)&&e.effect)}function b4e(e,t,r,n){const{state:a,actions:i,getters:o}=t,s=r.state.value[e];let l;function u(){s||(r.state.value[e]=a?a():{});const c=FM(r.state.value[e]);return _l(c,i,Object.keys(o||{}).reduce((d,f)=>(d[f]=Gl(L(()=>{BS(r);const A=r._s.get(e);return o[f].call(A,A)})),d),{}))}return l=gq(e,u,t,r,n,!0),l.$reset=function(){const d=a?a():{};this.$patch(f=>{_l(f,d)})},l}function gq(e,t,r={},n,a,i){let o;const s=_l({actions:{}},r),l={deep:!0};let u,c,d=Gl([]),f=Gl([]),A;const h=n.state.value[e];!i&&!h&&(n.state.value[e]={}),X({});let v;function p(S){let _;u=c=!1,typeof S=="function"?(S(n.state.value[e]),_={type:r0.patchFunction,storeId:e,events:A}):(QR(n.state.value[e],S),_={type:r0.patchObject,payload:S,storeId:e,events:A});const B=v=Symbol();ar().then(()=>{v===B&&(u=!0)}),c=!0,OA(d,_,n.state.value[e])}const g=pq;function m(){o.stop(),d=[],f=[],n._s.delete(e)}function y(S,_){return function(){BS(n);const B=Array.from(arguments),T=[],E=[];function I(k){T.push(k)}function R(k){E.push(k)}OA(f,{args:B,name:S,store:w,after:I,onError:R});let D;try{D=_.apply(this&&this.$id===e?this:w,B)}catch(k){throw OA(E,k),k}return D instanceof Promise?D.then(k=>(OA(T,k),k)).catch(k=>(OA(E,k),Promise.reject(k))):(OA(T,D),D)}}const b={_p:n,$id:e,$onAction:Q$.bind(null,f),$patch:p,$reset:g,$subscribe(S,_={}){const B=Q$(d,S,_.detached,()=>T()),T=o.run(()=>mt(()=>n.state.value[e],E=>{(_.flush==="sync"?c:u)&&S({storeId:e,type:r0.direct,events:A},E)},_l({},l,_)));return B},$dispose:m},w=Bo(_l({},b));n._s.set(e,w);const x=n._e.run(()=>(o=_M(),o.run(()=>t())));for(const S in x){const _=x[S];if(mn(_)&&!y4e(_)||Ol(_))i||(h&&m4e(_)&&(mn(_)?_.value=h[S]:QR(_,h[S])),n.state.value[e][S]=_);else if(typeof _=="function"){const B=y(S,_);x[S]=B,s.actions[S]=_}}return _l(w,x),_l(_r(w),x),Object.defineProperty(w,"$state",{get:()=>n.state.value[e],set:S=>{p(_=>{_l(_,S)})}}),n._p.forEach(S=>{_l(w,o.run(()=>S({store:w,app:n._a,pinia:n,options:s})))}),h&&i&&r.hydrate&&r.hydrate(w.$state,h),u=!0,c=!0,w}function lP(e,t,r){let n,a;const i=typeof t=="function";typeof e=="string"?(n=e,a=i?r:t):(a=e,n=e.id);function o(s,l){const u=Ba();return s=s||u&&We(vq),s&&BS(s),s=hq,s._s.has(n)||(i?gq(n,t,a,s):b4e(n,a,s)),s._s.get(n)}return o.$id=n,o}var xg=(e=>(e.DARK="dark",e.LIGHT="light",e))(xg||{}),Lc=(e=>(e.ZH="ZH",e.EN="EN",e))(Lc||{}),mq=(e=>(e.FIT="fit",e.SCROLL_Y="scrollY",e.SCROLL_X="scrollX",e.FULL="full",e))(mq||{}),Kh=(e=>(e[e.DATA_SUCCESS=0]="DATA_SUCCESS",e[e.SUCCESS=200]="SUCCESS",e[e.SERVER_ERROR=500]="SERVER_ERROR",e[e.SERVER_FORBIDDEN=403]="SERVER_FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.TIMEOUT=6e4]="TIMEOUT",e))(Kh||{}),x4e=(e=>(e[e.STATIC=0]="STATIC",e[e.AJAX=1]="AJAX",e))(x4e||{}),w4e=(e=>(e[e.DEFAULT=0]="DEFAULT",e[e.SQL=1]="SQL",e))(w4e||{}),C4e=(e=>(e.GET="get",e.POST="post",e.PATCH="patch",e.PUT="put",e.DELETE="delete",e))(C4e||{}),Dh=(e=>(e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e))(Dh||{});const Z1t={second:"\u79D2",minute:"\u5206",hour:"\u65F6",day:"\u5929"};var S4e=(e=>(e.NONE="none",e.FORM_DATA="form-data",e.X_WWW_FORM_URLENCODED="x-www-form-urlencoded",e.JSON="json",e.XML="xml",e))(S4e||{});const J1t=["none","form-data","x-www-form-urlencoded","json","xml"];var _4e=(e=>(e.PARAMS="Params",e.BODY="Body",e.HEADER="Header",e))(_4e||{}),B4e=(e=>(e.JSON="application/json;charset=UTF-8",e.TEXT="text/plain;charset=UTF-8",e.XML="application/xml;charset=UTF-8",e.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",e.FORM_DATA="multipart/form-data;charset=UTF-8",e))(B4e||{});const VR=Lc.ZH,ext="GoView \u4F4E\u4EE3\u7801\u5E73\u53F0",txt="\u5206\u7EC4",T4e={darkTheme:!0,appTheme:"#51d6a9",appThemeDetail:null},rxt={x:50,y:50,w:500,h:300,offsetX:0,offsetY:0},nxt="20",axt="270",E4e=60,ixt=!1,I4e="6px",oxt=4e3,sxt=5,lxt=mq.FIT,uxt=5e3,cxt=30,dxt=Dh.SECOND,fxt=100,R4e=9999,Axt=R4e+10,V$=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],zl=(()=>{const e=V$[0],t={};for(const r of V$)if((r==null?void 0:r[1])in document){for(const[a,i]of r.entries())t[e[a]]=i;return t}return!1})(),W$={change:zl.fullscreenchange,error:zl.fullscreenerror};let Ei={request(e=document.documentElement,t){return new Promise((r,n)=>{const a=()=>{Ei.off("change",a),r()};Ei.on("change",a);const i=e[zl.requestFullscreen](t);i instanceof Promise&&i.then(a).catch(n)})},exit(){return new Promise((e,t)=>{if(!Ei.isFullscreen){e();return}const r=()=>{Ei.off("change",r),e()};Ei.on("change",r);const n=document[zl.exitFullscreen]();n instanceof Promise&&n.then(r).catch(t)})},toggle(e,t){return Ei.isFullscreen?Ei.exit():Ei.request(e,t)},onchange(e){Ei.on("change",e)},onerror(e){Ei.on("error",e)},on(e,t){const r=W$[e];r&&document.addEventListener(r,t,!1)},off(e,t){const r=W$[e];r&&document.removeEventListener(r,t,!1)},raw:zl};Object.defineProperties(Ei,{isFullscreen:{get:()=>Boolean(document[zl.fullscreenElement])},element:{enumerable:!0,get:()=>{var e;return(e=document[zl.fullscreenElement])!=null?e:void 0}},isEnabled:{enumerable:!0,get:()=>Boolean(document[zl.fullscreenEnabled])}});zl||(Ei={isEnabled:!1});var yb=Ei;function D4e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var du=D4e,F4e=typeof sr=="object"&&sr&&sr.Object===Object&&sr,yq=F4e,M4e=yq,k4e=typeof self=="object"&&self&&self.Object===Object&&self,P4e=M4e||k4e||Function("return this")(),As=P4e,L4e=As,O4e=function(){return L4e.Date.now()},$4e=O4e,U4e=/\s/;function H4e(e){for(var t=e.length;t--&&U4e.test(e.charAt(t)););return t}var z4e=H4e,N4e=z4e,Q4e=/^\s+/;function V4e(e){return e&&e.slice(0,N4e(e)+1).replace(Q4e,"")}var W4e=V4e,G4e=As,K4e=G4e.Symbol,uP=K4e,G$=uP,bq=Object.prototype,j4e=bq.hasOwnProperty,Y4e=bq.toString,Dp=G$?G$.toStringTag:void 0;function X4e(e){var t=j4e.call(e,Dp),r=e[Dp];try{e[Dp]=void 0;var n=!0}catch(i){}var a=Y4e.call(e);return n&&(t?e[Dp]=r:delete e[Dp]),a}var q4e=X4e,Z4e=Object.prototype,J4e=Z4e.toString;function e5e(e){return J4e.call(e)}var t5e=e5e,K$=uP,r5e=q4e,n5e=t5e,a5e="[object Null]",i5e="[object Undefined]",j$=K$?K$.toStringTag:void 0;function o5e(e){return e==null?e===void 0?i5e:a5e:j$&&j$ in Object(e)?r5e(e):n5e(e)}var iy=o5e;function s5e(e){return e!=null&&typeof e=="object"}var Gv=s5e,l5e=iy,u5e=Gv,c5e="[object Symbol]";function d5e(e){return typeof e=="symbol"||u5e(e)&&l5e(e)==c5e}var f5e=d5e,A5e=W4e,Y$=du,h5e=f5e,X$=0/0,v5e=/^[-+]0x[0-9a-f]+$/i,p5e=/^0b[01]+$/i,g5e=/^0o[0-7]+$/i,m5e=parseInt;function y5e(e){if(typeof e=="number")return e;if(h5e(e))return X$;if(Y$(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Y$(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=A5e(e);var r=p5e.test(e);return r||g5e.test(e)?m5e(e.slice(2),r?2:8):v5e.test(e)?X$:+e}var b5e=y5e,x5e=du,n2=$4e,q$=b5e,w5e="Expected a function",C5e=Math.max,S5e=Math.min;function _5e(e,t,r){var n,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(w5e);t=q$(t)||0,x5e(r)&&(c=!!r.leading,d="maxWait"in r,i=d?C5e(q$(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function A(x){var S=n,_=a;return n=a=void 0,u=x,o=e.apply(_,S),o}function h(x){return u=x,s=setTimeout(g,t),c?A(x):o}function v(x){var S=x-l,_=x-u,B=t-S;return d?S5e(B,i-_):B}function p(x){var S=x-l,_=x-u;return l===void 0||S>=t||S<0||d&&_>=i}function g(){var x=n2();if(p(x))return m(x);s=setTimeout(g,v(x))}function m(x){return s=void 0,f&&n?A(x):(n=a=void 0,o)}function y(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function b(){return s===void 0?o:m(n2())}function w(){var x=n2(),S=p(x);if(n=arguments,a=this,l=x,S){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(g,t),A(l)}return s===void 0&&(s=setTimeout(g,t)),o}return w.cancel=y,w.flush=b,w}var B5e=_5e,T5e=B5e,E5e=du,I5e="Expected a function";function R5e(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(I5e);return E5e(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),T5e(e,t,{leading:n,maxWait:t,trailing:a})}var D5e=R5e,F5e="static/png/image-404-3e7d0cac.png";/*!
|
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
* Released under MIT License
|
|
*//*! *****************************************************************************
|
|
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.
|
|
***************************************************************************** */var WR=function(e,t){return WR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},WR(e,t)};function hs(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");WR(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var GR=function(){return GR=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},GR.apply(this,arguments)};function Ga(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})}function Fa(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function bb(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||t)}var ql=function(){function e(t,r,n,a){this.left=t,this.top=r,this.width=n,this.height=a}return e.prototype.add=function(t,r,n,a){return new e(this.left+t,this.top+r,this.width+n,this.height+a)},e.fromClientRect=function(t,r){return new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(t,r){var n=Array.from(r).find(function(a){return a.width!==0});return n?new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),TS=function(e,t){return ql.fromClientRect(e,t.getBoundingClientRect())},M5e=function(e){var t=e.body,r=e.documentElement;if(!t||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),a=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new ql(0,0,n,a)},ES=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var i=e.charCodeAt(r++);(i&64512)===56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),r--)}else t.push(a)}return t},Pn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],a=-1,i="";++a<r;){var o=e[a];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(a+1===r||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},Z$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k5e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var xb=0;xb<Z$.length;xb++)k5e[Z$.charCodeAt(xb)]=xb;var J$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wg=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var wb=0;wb<J$.length;wb++)wg[J$.charCodeAt(wb)]=wb;var P5e=function(e){var t=e.length*.75,r=e.length,n,a=0,i,o,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var u=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(t):new Array(t),c=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<r;n+=4)i=wg[e.charCodeAt(n)],o=wg[e.charCodeAt(n+1)],s=wg[e.charCodeAt(n+2)],l=wg[e.charCodeAt(n+3)],c[a++]=i<<2|o>>4,c[a++]=(o&15)<<4|s>>2,c[a++]=(s&3)<<6|l&63;return u},L5e=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},O5e=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},If=5,cP=6+5,a2=2,$5e=cP-If,xq=65536>>If,U5e=1<<If,i2=U5e-1,H5e=1024>>If,z5e=xq+H5e,N5e=z5e,Q5e=32,V5e=N5e+Q5e,W5e=65536>>cP,G5e=1<<$5e,K5e=G5e-1,eU=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},j5e=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},Y5e=function(e,t){var r=P5e(e),n=Array.isArray(r)?O5e(r):new Uint32Array(r),a=Array.isArray(r)?L5e(r):new Uint16Array(r),i=24,o=eU(a,i/2,n[4]/2),s=n[5]===2?eU(a,(i+n[4])/2):j5e(n,Math.ceil((i+n[4])/4));return new X5e(n[0],n[1],n[2],n[3],o,s)},X5e=function(){function e(t,r,n,a,i,o){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=a,this.index=i,this.data=o}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>If],r=(r<<a2)+(t&i2),this.data[r];if(t<=65535)return r=this.index[xq+(t-55296>>If)],r=(r<<a2)+(t&i2),this.data[r];if(t<this.highStart)return r=V5e-W5e+(t>>cP),r=this.index[r],r+=t>>If&K5e,r=this.index[r],r=(r<<a2)+(t&i2),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),tU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q5e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Cb=0;Cb<tU.length;Cb++)q5e[tU.charCodeAt(Cb)]=Cb;var Z5e="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",rU=50,J5e=1,wq=2,Cq=3,eOe=4,tOe=5,nU=7,Sq=8,aU=9,Yu=10,KR=11,iU=12,jR=13,rOe=14,Cg=15,YR=16,Sb=17,Fp=18,nOe=19,oU=20,XR=21,Mp=22,o2=23,$A=24,Ti=25,Sg=26,_g=27,UA=28,aOe=29,nf=30,iOe=31,_b=32,Bb=33,qR=34,ZR=35,JR=36,j0=37,eD=38,lx=39,ux=40,s2=41,_q=42,oOe=43,sOe=[9001,65288],Bq="!",xr="\xD7",Tb="\xF7",tD=Y5e(Z5e),gl=[nf,JR],rD=[J5e,wq,Cq,tOe],Tq=[Yu,Sq],sU=[_g,Sg],lOe=rD.concat(Tq),lU=[eD,lx,ux,qR,ZR],uOe=[Cg,jR],cOe=function(e,t){t===void 0&&(t="strict");var r=[],n=[],a=[];return e.forEach(function(i,o){var s=tD.get(i);if(s>rU?(a.push(!0),s-=rU):a.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(o),r.push(YR);if(s===eOe||s===KR){if(o===0)return n.push(o),r.push(nf);var l=r[o-1];return lOe.indexOf(l)===-1?(n.push(n[o-1]),r.push(l)):(n.push(o),r.push(nf))}if(n.push(o),s===iOe)return r.push(t==="strict"?XR:j0);if(s===_q||s===aOe)return r.push(nf);if(s===oOe)return i>=131072&&i<=196605||i>=196608&&i<=262141?r.push(j0):r.push(nf);r.push(s)}),[n,r,a]},l2=function(e,t,r,n){var a=n[r];if(Array.isArray(e)?e.indexOf(a)!==-1:e===a)for(var i=r;i<=n.length;){i++;var o=n[i];if(o===t)return!0;if(o!==Yu)break}if(a===Yu)for(var i=r;i>0;){i--;var s=n[i];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var l=r;l<=n.length;){l++;var o=n[l];if(o===t)return!0;if(o!==Yu)break}if(s!==Yu)break}return!1},uU=function(e,t){for(var r=e;r>=0;){var n=t[r];if(n===Yu)r--;else return n}return 0},dOe=function(e,t,r,n,a){if(r[n]===0)return xr;var i=n-1;if(Array.isArray(a)&&a[i]===!0)return xr;var o=i-1,s=i+1,l=t[i],u=o>=0?t[o]:0,c=t[s];if(l===wq&&c===Cq)return xr;if(rD.indexOf(l)!==-1)return Bq;if(rD.indexOf(c)!==-1||Tq.indexOf(c)!==-1)return xr;if(uU(i,t)===Sq)return Tb;if(tD.get(e[i])===KR||(l===_b||l===Bb)&&tD.get(e[s])===KR||l===nU||c===nU||l===aU||[Yu,jR,Cg].indexOf(l)===-1&&c===aU||[Sb,Fp,nOe,$A,UA].indexOf(c)!==-1||uU(i,t)===Mp||l2(o2,Mp,i,t)||l2([Sb,Fp],XR,i,t)||l2(iU,iU,i,t))return xr;if(l===Yu)return Tb;if(l===o2||c===o2)return xr;if(c===YR||l===YR)return Tb;if([jR,Cg,XR].indexOf(c)!==-1||l===rOe||u===JR&&uOe.indexOf(l)!==-1||l===UA&&c===JR||c===oU||gl.indexOf(c)!==-1&&l===Ti||gl.indexOf(l)!==-1&&c===Ti||l===_g&&[j0,_b,Bb].indexOf(c)!==-1||[j0,_b,Bb].indexOf(l)!==-1&&c===Sg||gl.indexOf(l)!==-1&&sU.indexOf(c)!==-1||sU.indexOf(l)!==-1&&gl.indexOf(c)!==-1||[_g,Sg].indexOf(l)!==-1&&(c===Ti||[Mp,Cg].indexOf(c)!==-1&&t[s+1]===Ti)||[Mp,Cg].indexOf(l)!==-1&&c===Ti||l===Ti&&[Ti,UA,$A].indexOf(c)!==-1)return xr;if([Ti,UA,$A,Sb,Fp].indexOf(c)!==-1)for(var d=i;d>=0;){var f=t[d];if(f===Ti)return xr;if([UA,$A].indexOf(f)!==-1)d--;else break}if([_g,Sg].indexOf(c)!==-1)for(var d=[Sb,Fp].indexOf(l)!==-1?o:i;d>=0;){var f=t[d];if(f===Ti)return xr;if([UA,$A].indexOf(f)!==-1)d--;else break}if(eD===l&&[eD,lx,qR,ZR].indexOf(c)!==-1||[lx,qR].indexOf(l)!==-1&&[lx,ux].indexOf(c)!==-1||[ux,ZR].indexOf(l)!==-1&&c===ux||lU.indexOf(l)!==-1&&[oU,Sg].indexOf(c)!==-1||lU.indexOf(c)!==-1&&l===_g||gl.indexOf(l)!==-1&&gl.indexOf(c)!==-1||l===$A&&gl.indexOf(c)!==-1||gl.concat(Ti).indexOf(l)!==-1&&c===Mp&&sOe.indexOf(e[s])===-1||gl.concat(Ti).indexOf(c)!==-1&&l===Fp)return xr;if(l===s2&&c===s2){for(var A=r[i],h=1;A>0&&(A--,t[A]===s2);)h++;if(h%2!==0)return xr}return l===_b&&c===Bb?xr:Tb},fOe=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=cOe(e,t.lineBreak),n=r[0],a=r[1],i=r[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(a=a.map(function(s){return[Ti,nf,_q].indexOf(s)!==-1?j0:s}));var o=t.wordBreak==="keep-all"?i.map(function(s,l){return s&&e[l]>=19968&&e[l]<=40959}):void 0;return[n,a,o]},AOe=function(){function e(t,r,n,a){this.codePoints=t,this.required=r===Bq,this.start=n,this.end=a}return e.prototype.slice=function(){return Pn.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),hOe=function(e,t){var r=ES(e),n=fOe(r,t),a=n[0],i=n[1],o=n[2],s=r.length,l=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var c=xr;u<s&&(c=dOe(r,i,a,++u,o))===xr;);if(c!==xr||u===s){var d=new AOe(r,c,l,u);return l=u,{value:d,done:!1}}return{done:!0,value:null}}}},vOe=1<<0,pOe=1<<1,oy=1<<2,cU=1<<3,mw=10,dU=47,n0=92,gOe=9,mOe=32,Eb=34,kp=61,yOe=35,bOe=36,xOe=37,Ib=39,Rb=40,Pp=41,wOe=95,ii=45,COe=33,SOe=60,_Oe=62,BOe=64,TOe=91,EOe=93,IOe=61,ROe=123,Db=63,DOe=125,fU=124,FOe=126,MOe=128,AU=65533,u2=42,hf=43,kOe=44,POe=58,LOe=59,Y0=46,OOe=0,$Oe=8,UOe=11,HOe=14,zOe=31,NOe=127,xs=-1,Eq=48,Iq=97,Rq=101,QOe=102,VOe=117,WOe=122,Dq=65,Fq=69,Mq=70,GOe=85,KOe=90,Pa=function(e){return e>=Eq&&e<=57},jOe=function(e){return e>=55296&&e<=57343},HA=function(e){return Pa(e)||e>=Dq&&e<=Mq||e>=Iq&&e<=QOe},YOe=function(e){return e>=Iq&&e<=WOe},XOe=function(e){return e>=Dq&&e<=KOe},qOe=function(e){return YOe(e)||XOe(e)},ZOe=function(e){return e>=MOe},Fb=function(e){return e===mw||e===gOe||e===mOe},yw=function(e){return qOe(e)||ZOe(e)||e===wOe},hU=function(e){return yw(e)||Pa(e)||e===ii},JOe=function(e){return e>=OOe&&e<=$Oe||e===UOe||e>=HOe&&e<=zOe||e===NOe},Nu=function(e,t){return e!==n0?!1:t!==mw},Mb=function(e,t,r){return e===ii?yw(t)||Nu(t,r):yw(e)?!0:!!(e===n0&&Nu(e,t))},c2=function(e,t,r){return e===hf||e===ii?Pa(t)?!0:t===Y0&&Pa(r):Pa(e===Y0?t:e)},e3e=function(e){var t=0,r=1;(e[t]===hf||e[t]===ii)&&(e[t]===ii&&(r=-1),t++);for(var n=[];Pa(e[t]);)n.push(e[t++]);var a=n.length?parseInt(Pn.apply(void 0,n),10):0;e[t]===Y0&&t++;for(var i=[];Pa(e[t]);)i.push(e[t++]);var o=i.length,s=o?parseInt(Pn.apply(void 0,i),10):0;(e[t]===Fq||e[t]===Rq)&&t++;var l=1;(e[t]===hf||e[t]===ii)&&(e[t]===ii&&(l=-1),t++);for(var u=[];Pa(e[t]);)u.push(e[t++]);var c=u.length?parseInt(Pn.apply(void 0,u),10):0;return r*(a+s*Math.pow(10,-o))*Math.pow(10,l*c)},t3e={type:2},r3e={type:3},n3e={type:4},a3e={type:13},i3e={type:8},o3e={type:21},s3e={type:9},l3e={type:10},u3e={type:11},c3e={type:12},d3e={type:14},kb={type:23},f3e={type:1},A3e={type:25},h3e={type:24},v3e={type:26},p3e={type:27},g3e={type:28},m3e={type:29},y3e={type:31},nD={type:32},kq=function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(ES(t))},e.prototype.read=function(){for(var t=[],r=this.consumeToken();r!==nD;)t.push(r),r=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Eb:return this.consumeStringToken(Eb);case yOe:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(hU(r)||Nu(n,a)){var i=Mb(r,n,a)?pOe:vOe,o=this.consumeName();return{type:5,value:o,flags:i}}break;case bOe:if(this.peekCodePoint(0)===kp)return this.consumeCodePoint(),a3e;break;case Ib:return this.consumeStringToken(Ib);case Rb:return t3e;case Pp:return r3e;case u2:if(this.peekCodePoint(0)===kp)return this.consumeCodePoint(),d3e;break;case hf:if(c2(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case kOe:return n3e;case ii:var s=t,l=this.peekCodePoint(0),u=this.peekCodePoint(1);if(c2(s,l,u))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Mb(s,l,u))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(l===ii&&u===_Oe)return this.consumeCodePoint(),this.consumeCodePoint(),h3e;break;case Y0:if(c2(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case dU:if(this.peekCodePoint(0)===u2)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===u2&&(c=this.consumeCodePoint(),c===dU))return this.consumeToken();if(c===xs)return this.consumeToken()}break;case POe:return v3e;case LOe:return p3e;case SOe:if(this.peekCodePoint(0)===COe&&this.peekCodePoint(1)===ii&&this.peekCodePoint(2)===ii)return this.consumeCodePoint(),this.consumeCodePoint(),A3e;break;case BOe:var d=this.peekCodePoint(0),f=this.peekCodePoint(1),A=this.peekCodePoint(2);if(Mb(d,f,A)){var o=this.consumeName();return{type:7,value:o}}break;case TOe:return g3e;case n0:if(Nu(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case EOe:return m3e;case IOe:if(this.peekCodePoint(0)===kp)return this.consumeCodePoint(),i3e;break;case ROe:return u3e;case DOe:return c3e;case VOe:case GOe:var h=this.peekCodePoint(0),v=this.peekCodePoint(1);return h===hf&&(HA(v)||v===Db)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case fU:if(this.peekCodePoint(0)===kp)return this.consumeCodePoint(),s3e;if(this.peekCodePoint(0)===fU)return this.consumeCodePoint(),o3e;break;case FOe:if(this.peekCodePoint(0)===kp)return this.consumeCodePoint(),l3e;break;case xs:return nD}return Fb(t)?(this.consumeWhiteSpace(),y3e):Pa(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):yw(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Pn(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t=="undefined"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],r=this.consumeCodePoint();HA(r)&&t.length<6;)t.push(r),r=this.consumeCodePoint();for(var n=!1;r===Db&&t.length<6;)t.push(r),r=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(Pn.apply(void 0,t.map(function(l){return l===Db?Eq:l})),16),i=parseInt(Pn.apply(void 0,t.map(function(l){return l===Db?Mq:l})),16);return{type:30,start:a,end:i}}var o=parseInt(Pn.apply(void 0,t),16);if(this.peekCodePoint(0)===ii&&HA(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var s=[];HA(r)&&s.length<6;)s.push(r),r=this.consumeCodePoint();var i=parseInt(Pn.apply(void 0,s),16);return{type:30,start:o,end:i}}else return{type:30,start:o,end:o}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Rb?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Rb?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===xs)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Ib||r===Eb){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===xs||this.peekCodePoint(0)===Pp)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),kb)}for(;;){var a=this.consumeCodePoint();if(a===xs||a===Pp)return{type:22,value:Pn.apply(void 0,t)};if(Fb(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===xs||this.peekCodePoint(0)===Pp?(this.consumeCodePoint(),{type:22,value:Pn.apply(void 0,t)}):(this.consumeBadUrlRemnants(),kb);if(a===Eb||a===Ib||a===Rb||JOe(a))return this.consumeBadUrlRemnants(),kb;if(a===n0)if(Nu(a,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),kb;else t.push(a)}},e.prototype.consumeWhiteSpace=function(){for(;Fb(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Pp||t===xs)return;Nu(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var r=5e4,n="";t>0;){var a=Math.min(r,t);n+=Pn.apply(void 0,this._value.splice(0,a)),t-=a}return this._value.shift(),n},e.prototype.consumeStringToken=function(t){var r="",n=0;do{var a=this._value[n];if(a===xs||a===void 0||a===t)return r+=this.consumeStringSlice(n),{type:0,value:r};if(a===mw)return this._value.splice(0,n),f3e;if(a===n0){var i=this._value[n+1];i!==xs&&i!==void 0&&(i===mw?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):Nu(a,i)&&(r+=this.consumeStringSlice(n),r+=Pn(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},e.prototype.consumeNumber=function(){var t=[],r=oy,n=this.peekCodePoint(0);for((n===hf||n===ii)&&t.push(this.consumeCodePoint());Pa(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===Y0&&Pa(a))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=cU;Pa(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===Fq||n===Rq)&&((a===hf||a===ii)&&Pa(i)||Pa(a)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=cU;Pa(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[e3e(t),r]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),r=t[0],n=t[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(Mb(a,i,o)){var s=this.consumeName();return{type:15,number:r,flags:n,unit:s}}return a===xOe?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(HA(t)){for(var r=Pn(t);HA(this.peekCodePoint(0))&&r.length<6;)r+=Pn(this.consumeCodePoint());Fb(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||jOe(n)||n>1114111?AU:n}return t===xs?AU:t},e.prototype.consumeName=function(){for(var t="";;){var r=this.consumeCodePoint();if(hU(r))t+=Pn(r);else if(Nu(r,this.peekCodePoint(0)))t+=Pn(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),t}},e}(),Pq=function(){function e(t){this._tokens=t}return e.create=function(t){var r=new kq;return r.write(t),new e(r.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var r=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var r=this.consumeComponentValue();if(r.type===32)return t;t.push(r),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var r={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||x3e(n,t))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var r={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t=="undefined"?nD:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e}(),sy=function(e){return e.type===15},Kv=function(e){return e.type===17},Xr=function(e){return e.type===20},b3e=function(e){return e.type===0},aD=function(e,t){return Xr(e)&&e.value===t},Lq=function(e){return e.type!==31},gv=function(e){return e.type!==31&&e.type!==4},cl=function(e){var t=[],r=[];return e.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&t.push(r),t},x3e=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},Oc=function(e){return e.type===17||e.type===15},Vn=function(e){return e.type===16||Oc(e)},Oq=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},ba={type:17,number:0,flags:oy},dP={type:16,number:50,flags:oy},Xu={type:16,number:100,flags:oy},Bg=function(e,t,r){var n=e[0],a=e[1];return[an(n,t),an(typeof a!="undefined"?a:n,r)]},an=function(e,t){if(e.type===16)return e.number/100*t;if(sy(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},$q="deg",Uq="grad",Hq="rad",zq="turn",IS={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case $q:return Math.PI*t.number/180;case Uq:return Math.PI/200*t.number;case Hq:return t.number;case zq:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},Nq=function(e){return e.type===15&&(e.unit===$q||e.unit===Uq||e.unit===Hq||e.unit===zq)},Qq=function(e){var t=e.filter(Xr).map(function(r){return r.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ba,ba];case"to top":case"bottom":return ho(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ba,Xu];case"to right":case"left":return ho(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Xu,Xu];case"to bottom":case"top":return ho(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Xu,ba];case"to left":case"right":return ho(270)}return 0},ho=function(e){return Math.PI*e/180},fc={name:"color",parse:function(e,t){if(t.type===18){var r=w3e[t.name];if(typeof r=="undefined")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(e,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3);return qu(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3),o=t.value.substring(3,4);return qu(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6);return qu(parseInt(n,16),parseInt(a,16),parseInt(i,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6),o=t.value.substring(6,8);return qu(parseInt(n,16),parseInt(a,16),parseInt(i,16),parseInt(o,16)/255)}}if(t.type===20){var s=Nl[t.value.toUpperCase()];if(typeof s!="undefined")return s}return Nl.TRANSPARENT}},Ac=function(e){return(255&e)===0},ia=function(e){var t=255&e,r=255&e>>8,n=255&e>>16,a=255&e>>24;return t<255?"rgba("+a+","+n+","+r+","+t/255+")":"rgb("+a+","+n+","+r+")"},qu=function(e,t,r,n){return(e<<24|t<<16|r<<8|Math.round(n*255)<<0)>>>0},vU=function(e,t){if(e.type===17)return e.number;if(e.type===16){var r=t===3?1:255;return t===3?e.number/100*r:Math.round(e.number/100*r)}return 0},pU=function(e,t){var r=t.filter(gv);if(r.length===3){var n=r.map(vU),a=n[0],i=n[1],o=n[2];return qu(a,i,o,1)}if(r.length===4){var s=r.map(vU),a=s[0],i=s[1],o=s[2],l=s[3];return qu(a,i,o,l)}return 0};function d2(e,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(t-e)*r*6+e:r<1/2?t:r<2/3?(t-e)*6*(2/3-r)+e:e}var gU=function(e,t){var r=t.filter(gv),n=r[0],a=r[1],i=r[2],o=r[3],s=(n.type===17?ho(n.number):IS.parse(e,n))/(Math.PI*2),l=Vn(a)?a.number/100:0,u=Vn(i)?i.number/100:0,c=typeof o!="undefined"&&Vn(o)?an(o,1):1;if(l===0)return qu(u*255,u*255,u*255,1);var d=u<=.5?u*(l+1):u+l-u*l,f=u*2-d,A=d2(f,d,s+1/3),h=d2(f,d,s),v=d2(f,d,s-1/3);return qu(A*255,h*255,v*255,c)},w3e={hsl:gU,hsla:gU,rgb:pU,rgba:pU},a0=function(e,t){return fc.parse(e,Pq.create(t).parseComponentValue())},Nl={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},C3e={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(Xr(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},S3e={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},RS=function(e,t){var r=fc.parse(e,t[0]),n=t[1];return n&&Vn(n)?{color:r,stop:n}:{color:r,stop:null}},mU=function(e,t){var r=e[0],n=e[e.length-1];r.stop===null&&(r.stop=ba),n.stop===null&&(n.stop=Xu);for(var a=[],i=0,o=0;o<e.length;o++){var s=e[o].stop;if(s!==null){var l=an(s,t);l>i?a.push(l):a.push(i),i=l}else a.push(null)}for(var u=null,o=0;o<a.length;o++){var c=a[o];if(c===null)u===null&&(u=o);else if(u!==null){for(var d=o-u,f=a[u-1],A=(c-f)/(d+1),h=1;h<=d;h++)a[u+h-1]=A*h;u=null}}return e.map(function(v,p){var g=v.color;return{color:g,stop:Math.max(Math.min(1,a[p]/t),0)}})},_3e=function(e,t,r){var n=t/2,a=r/2,i=an(e[0],t)-n,o=a-an(e[1],r);return(Math.atan2(o,i)+Math.PI*2)%(Math.PI*2)},B3e=function(e,t,r){var n=typeof e=="number"?e:_3e(e,t,r),a=Math.abs(t*Math.sin(n))+Math.abs(r*Math.cos(n)),i=t/2,o=r/2,s=a/2,l=Math.sin(n-Math.PI/2)*s,u=Math.cos(n-Math.PI/2)*s;return[a,i-u,i+u,o-l,o+l]},Uo=function(e,t){return Math.sqrt(e*e+t*t)},yU=function(e,t,r,n,a){var i=[[0,0],[0,t],[e,0],[e,t]];return i.reduce(function(o,s){var l=s[0],u=s[1],c=Uo(r-l,n-u);return(a?c<o.optimumDistance:c>o.optimumDistance)?{optimumCorner:s,optimumDistance:c}:o},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},T3e=function(e,t,r,n,a){var i=0,o=0;switch(e.size){case 0:e.shape===0?i=o=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-a)):e.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-n)),o=Math.min(Math.abs(r),Math.abs(r-a)));break;case 2:if(e.shape===0)i=o=Math.min(Uo(t,r),Uo(t,r-a),Uo(t-n,r),Uo(t-n,r-a));else if(e.shape===1){var s=Math.min(Math.abs(r),Math.abs(r-a))/Math.min(Math.abs(t),Math.abs(t-n)),l=yU(n,a,t,r,!0),u=l[0],c=l[1];i=Uo(u-t,(c-r)/s),o=s*i}break;case 1:e.shape===0?i=o=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-a)):e.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-n)),o=Math.max(Math.abs(r),Math.abs(r-a)));break;case 3:if(e.shape===0)i=o=Math.max(Uo(t,r),Uo(t,r-a),Uo(t-n,r),Uo(t-n,r-a));else if(e.shape===1){var s=Math.max(Math.abs(r),Math.abs(r-a))/Math.max(Math.abs(t),Math.abs(t-n)),d=yU(n,a,t,r,!1),u=d[0],c=d[1];i=Uo(u-t,(c-r)/s),o=s*i}break}return Array.isArray(e.size)&&(i=an(e.size[0],n),o=e.size.length===2?an(e.size[1],a):i),[i,o]},E3e=function(e,t){var r=ho(180),n=[];return cl(t).forEach(function(a,i){if(i===0){var o=a[0];if(o.type===20&&o.value==="to"){r=Qq(a);return}else if(Nq(o)){r=IS.parse(e,o);return}}var s=RS(e,a);n.push(s)}),{angle:r,stops:n,type:1}},Pb=function(e,t){var r=ho(180),n=[];return cl(t).forEach(function(a,i){if(i===0){var o=a[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){r=Qq(a);return}else if(Nq(o)){r=(IS.parse(e,o)+ho(270))%ho(360);return}}var s=RS(e,a);n.push(s)}),{angle:r,stops:n,type:1}},I3e=function(e,t){var r=ho(180),n=[],a=1,i=0,o=3,s=[];return cl(t).forEach(function(l,u){var c=l[0];if(u===0){if(Xr(c)&&c.value==="linear"){a=1;return}else if(Xr(c)&&c.value==="radial"){a=2;return}}if(c.type===18){if(c.name==="from"){var d=fc.parse(e,c.values[0]);n.push({stop:ba,color:d})}else if(c.name==="to"){var d=fc.parse(e,c.values[0]);n.push({stop:Xu,color:d})}else if(c.name==="color-stop"){var f=c.values.filter(gv);if(f.length===2){var d=fc.parse(e,f[1]),A=f[0];Kv(A)&&n.push({stop:{type:16,number:A.number*100,flags:A.flags},color:d})}}}}),a===1?{angle:(r+ho(180))%ho(360),stops:n,type:a}:{size:o,shape:i,stops:n,position:s,type:a}},Vq="closest-side",Wq="farthest-side",Gq="closest-corner",Kq="farthest-corner",jq="circle",Yq="ellipse",Xq="cover",qq="contain",R3e=function(e,t){var r=0,n=3,a=[],i=[];return cl(t).forEach(function(o,s){var l=!0;if(s===0){var u=!1;l=o.reduce(function(d,f){if(u)if(Xr(f))switch(f.value){case"center":return i.push(dP),d;case"top":case"left":return i.push(ba),d;case"right":case"bottom":return i.push(Xu),d}else(Vn(f)||Oc(f))&&i.push(f);else if(Xr(f))switch(f.value){case jq:return r=0,!1;case Yq:return r=1,!1;case"at":return u=!0,!1;case Vq:return n=0,!1;case Xq:case Wq:return n=1,!1;case qq:case Gq:return n=2,!1;case Kq:return n=3,!1}else if(Oc(f)||Vn(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return d},l)}if(l){var c=RS(e,o);a.push(c)}}),{size:n,shape:r,stops:a,position:i,type:2}},Lb=function(e,t){var r=0,n=3,a=[],i=[];return cl(t).forEach(function(o,s){var l=!0;if(s===0?l=o.reduce(function(c,d){if(Xr(d))switch(d.value){case"center":return i.push(dP),!1;case"top":case"left":return i.push(ba),!1;case"right":case"bottom":return i.push(Xu),!1}else if(Vn(d)||Oc(d))return i.push(d),!1;return c},l):s===1&&(l=o.reduce(function(c,d){if(Xr(d))switch(d.value){case jq:return r=0,!1;case Yq:return r=1,!1;case qq:case Vq:return n=0,!1;case Wq:return n=1,!1;case Gq:return n=2,!1;case Xq:case Kq:return n=3,!1}else if(Oc(d)||Vn(d))return Array.isArray(n)||(n=[]),n.push(d),!1;return c},l)),l){var u=RS(e,o);a.push(u)}}),{size:n,shape:r,stops:a,position:i,type:2}},D3e=function(e){return e.type===1},F3e=function(e){return e.type===2},fP={name:"image",parse:function(e,t){if(t.type===22){var r={url:t.value,type:0};return e.cache.addImage(t.value),r}if(t.type===18){var n=Zq[t.name];if(typeof n=="undefined")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function M3e(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!Zq[e.name])}var Zq={"linear-gradient":E3e,"-moz-linear-gradient":Pb,"-ms-linear-gradient":Pb,"-o-linear-gradient":Pb,"-webkit-linear-gradient":Pb,"radial-gradient":R3e,"-moz-radial-gradient":Lb,"-ms-radial-gradient":Lb,"-o-radial-gradient":Lb,"-webkit-radial-gradient":Lb,"-webkit-gradient":I3e},k3e={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t.filter(function(n){return gv(n)&&M3e(n)}).map(function(n){return fP.parse(e,n)})}},P3e={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(Xr(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},L3e={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return cl(t).map(function(r){return r.filter(Vn)}).map(Oq)}},O3e={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return cl(t).map(function(r){return r.filter(Xr).map(function(n){return n.value}).join(" ")}).map($3e)}},$3e=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},jh;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(jh||(jh={}));var U3e={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return cl(t).map(function(r){return r.filter(H3e)})}},H3e=function(e){return Xr(e)||Vn(e)},DS=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},z3e=DS("top"),N3e=DS("right"),Q3e=DS("bottom"),V3e=DS("left"),FS=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,r){return Oq(r.filter(Vn))}}},W3e=FS("top-left"),G3e=FS("top-right"),K3e=FS("bottom-right"),j3e=FS("bottom-left"),MS=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Y3e=MS("top"),X3e=MS("right"),q3e=MS("bottom"),Z3e=MS("left"),kS=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return sy(r)?r.number:0}}},J3e=kS("top"),e$e=kS("right"),t$e=kS("bottom"),r$e=kS("left"),n$e={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},a$e={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},i$e={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Xr).reduce(function(r,n){return r|o$e(n.value)},0)}},o$e=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},s$e={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},l$e={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},bw;(function(e){e.NORMAL="normal",e.STRICT="strict"})(bw||(bw={}));var u$e={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return bw.STRICT;case"normal":default:return bw.NORMAL}}},c$e={name:"line-height",initialValue:"normal",prefix:!1,type:4},bU=function(e,t){return Xr(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:Vn(e)?an(e,t):t},d$e={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:fP.parse(e,t)}},f$e={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},iD={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},PS=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},A$e=PS("top"),h$e=PS("right"),v$e=PS("bottom"),p$e=PS("left"),g$e={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Xr).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},m$e={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},LS=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},y$e=LS("top"),b$e=LS("right"),x$e=LS("bottom"),w$e=LS("left"),C$e={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},S$e={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},_$e={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&aD(t[0],"none")?[]:cl(t).map(function(r){for(var n={color:Nl.TRANSPARENT,offsetX:ba,offsetY:ba,blur:ba},a=0,i=0;i<r.length;i++){var o=r[i];Oc(o)?(a===0?n.offsetX=o:a===1?n.offsetY=o:n.blur=o,a++):n.color=fc.parse(e,o)}return n})}},B$e={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},T$e={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var r=R$e[t.name];if(typeof r=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return r(t.values)}return null}},E$e=function(e){var t=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return t.length===6?t:null},I$e=function(e){var t=e.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=t[0],n=t[1];t[2],t[3];var a=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var o=t[12],s=t[13];return t[14],t[15],t.length===16?[r,n,a,i,o,s]:null},R$e={matrix:E$e,matrix3d:I$e},xU={type:16,number:50,flags:oy},D$e=[xU,xU],F$e={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var r=t.filter(Vn);return r.length!==2?D$e:[r[0],r[1]]}},M$e={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},i0;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(i0||(i0={}));var k$e={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return i0.BREAK_ALL;case"keep-all":return i0.KEEP_ALL;case"normal":default:return i0.NORMAL}}},P$e={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(Kv(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Jq={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},L$e={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Kv(t)?t.number:1}},O$e={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$$e={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Xr).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},U$e={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var r=[],n=[];return t.forEach(function(a){switch(a.type){case 20:case 0:r.push(a.value);break;case 17:r.push(a.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},H$e={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},z$e={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Kv(t))return t.number;if(Xr(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},N$e={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Xr).map(function(r){return r.value})}},Q$e={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},qn=function(e,t){return(e&t)!==0},V$e={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t}},W$e={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;for(var n=[],a=t.filter(Lq),i=0;i<a.length;i++){var o=a[i],s=a[i+1];if(o.type===20){var l=s&&Kv(s)?s.number:1;n.push({counter:o.value,increment:l})}}return n}},G$e={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var r=[],n=t.filter(Lq),a=0;a<n.length;a++){var i=n[a],o=n[a+1];if(Xr(i)&&i.value!=="none"){var s=o&&Kv(o)?o.number:0;r.push({counter:i.value,reset:s})}}return r}},K$e={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(sy).map(function(r){return Jq.parse(e,r)})}},j$e={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;var n=[],a=t.filter(b3e);if(a.length%2!==0)return null;for(var i=0;i<a.length;i+=2){var o=a[i].value,s=a[i+1].value;n.push({open:o,close:s})}return n}},wU=function(e,t,r){if(!e)return"";var n=e[Math.min(t,e.length-1)];return n?r?n.open:n.close:""},Y$e={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&aD(t[0],"none")?[]:cl(t).map(function(r){for(var n={color:255,offsetX:ba,offsetY:ba,blur:ba,spread:ba,inset:!1},a=0,i=0;i<r.length;i++){var o=r[i];aD(o,"inset")?n.inset=!0:Oc(o)?(a===0?n.offsetX=o:a===1?n.offsetY=o:a===2?n.blur=o:n.spread=o,a++):n.color=fc.parse(e,o)}return n})}},X$e={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var r=[0,1,2],n=[];return t.filter(Xr).forEach(function(a){switch(a.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),r.forEach(function(a){n.indexOf(a)===-1&&n.push(a)}),n}},q$e={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Z$e={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return sy(t)?t.number:0}},J$e=function(){function e(t,r){var n,a;this.animationDuration=wt(t,K$e,r.animationDuration),this.backgroundClip=wt(t,C3e,r.backgroundClip),this.backgroundColor=wt(t,S3e,r.backgroundColor),this.backgroundImage=wt(t,k3e,r.backgroundImage),this.backgroundOrigin=wt(t,P3e,r.backgroundOrigin),this.backgroundPosition=wt(t,L3e,r.backgroundPosition),this.backgroundRepeat=wt(t,O3e,r.backgroundRepeat),this.backgroundSize=wt(t,U3e,r.backgroundSize),this.borderTopColor=wt(t,z3e,r.borderTopColor),this.borderRightColor=wt(t,N3e,r.borderRightColor),this.borderBottomColor=wt(t,Q3e,r.borderBottomColor),this.borderLeftColor=wt(t,V3e,r.borderLeftColor),this.borderTopLeftRadius=wt(t,W3e,r.borderTopLeftRadius),this.borderTopRightRadius=wt(t,G3e,r.borderTopRightRadius),this.borderBottomRightRadius=wt(t,K3e,r.borderBottomRightRadius),this.borderBottomLeftRadius=wt(t,j3e,r.borderBottomLeftRadius),this.borderTopStyle=wt(t,Y3e,r.borderTopStyle),this.borderRightStyle=wt(t,X3e,r.borderRightStyle),this.borderBottomStyle=wt(t,q3e,r.borderBottomStyle),this.borderLeftStyle=wt(t,Z3e,r.borderLeftStyle),this.borderTopWidth=wt(t,J3e,r.borderTopWidth),this.borderRightWidth=wt(t,e$e,r.borderRightWidth),this.borderBottomWidth=wt(t,t$e,r.borderBottomWidth),this.borderLeftWidth=wt(t,r$e,r.borderLeftWidth),this.boxShadow=wt(t,Y$e,r.boxShadow),this.color=wt(t,n$e,r.color),this.direction=wt(t,a$e,r.direction),this.display=wt(t,i$e,r.display),this.float=wt(t,s$e,r.cssFloat),this.fontFamily=wt(t,U$e,r.fontFamily),this.fontSize=wt(t,H$e,r.fontSize),this.fontStyle=wt(t,Q$e,r.fontStyle),this.fontVariant=wt(t,N$e,r.fontVariant),this.fontWeight=wt(t,z$e,r.fontWeight),this.letterSpacing=wt(t,l$e,r.letterSpacing),this.lineBreak=wt(t,u$e,r.lineBreak),this.lineHeight=wt(t,c$e,r.lineHeight),this.listStyleImage=wt(t,d$e,r.listStyleImage),this.listStylePosition=wt(t,f$e,r.listStylePosition),this.listStyleType=wt(t,iD,r.listStyleType),this.marginTop=wt(t,A$e,r.marginTop),this.marginRight=wt(t,h$e,r.marginRight),this.marginBottom=wt(t,v$e,r.marginBottom),this.marginLeft=wt(t,p$e,r.marginLeft),this.opacity=wt(t,L$e,r.opacity);var i=wt(t,g$e,r.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=wt(t,m$e,r.overflowWrap),this.paddingTop=wt(t,y$e,r.paddingTop),this.paddingRight=wt(t,b$e,r.paddingRight),this.paddingBottom=wt(t,x$e,r.paddingBottom),this.paddingLeft=wt(t,w$e,r.paddingLeft),this.paintOrder=wt(t,X$e,r.paintOrder),this.position=wt(t,S$e,r.position),this.textAlign=wt(t,C$e,r.textAlign),this.textDecorationColor=wt(t,O$e,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=wt(t,$$e,(a=r.textDecorationLine)!==null&&a!==void 0?a:r.textDecoration),this.textShadow=wt(t,_$e,r.textShadow),this.textTransform=wt(t,B$e,r.textTransform),this.transform=wt(t,T$e,r.transform),this.transformOrigin=wt(t,F$e,r.transformOrigin),this.visibility=wt(t,M$e,r.visibility),this.webkitTextStrokeColor=wt(t,q$e,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=wt(t,Z$e,r.webkitTextStrokeWidth),this.wordBreak=wt(t,k$e,r.wordBreak),this.zIndex=wt(t,P$e,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return Ac(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return qn(this.display,4)||qn(this.display,33554432)||qn(this.display,268435456)||qn(this.display,536870912)||qn(this.display,67108864)||qn(this.display,134217728)},e}(),eUe=function(){function e(t,r){this.content=wt(t,V$e,r.content),this.quotes=wt(t,j$e,r.quotes)}return e}(),CU=function(){function e(t,r){this.counterIncrement=wt(t,W$e,r.counterIncrement),this.counterReset=wt(t,G$e,r.counterReset)}return e}(),wt=function(e,t,r){var n=new kq,a=r!==null&&typeof r!="undefined"?r.toString():t.initialValue;n.write(a);var i=new Pq(n.read());switch(t.type){case 2:var o=i.parseComponentValue();return t.parse(e,Xr(o)?o.value:t.initialValue);case 0:return t.parse(e,i.parseComponentValue());case 1:return t.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return IS.parse(e,i.parseComponentValue());case"color":return fc.parse(e,i.parseComponentValue());case"image":return fP.parse(e,i.parseComponentValue());case"length":var s=i.parseComponentValue();return Oc(s)?s:ba;case"length-percentage":var l=i.parseComponentValue();return Vn(l)?l:ba;case"time":return Jq.parse(e,i.parseComponentValue())}break}},tUe="data-html2canvas-debug",rUe=function(e){var t=e.getAttribute(tUe);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},oD=function(e,t){var r=rUe(e);return r===1||t===r},dl=function(){function e(t,r){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,oD(r,3))debugger;this.styles=new J$e(t,window.getComputedStyle(r,null)),uD(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=TS(this.context,r),oD(r,4)&&(this.flags|=16)}return e}(),nUe="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",SU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tg=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Ob=0;Ob<SU.length;Ob++)Tg[SU.charCodeAt(Ob)]=Ob;var aUe=function(e){var t=e.length*.75,r=e.length,n,a=0,i,o,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var u=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(t):new Array(t),c=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<r;n+=4)i=Tg[e.charCodeAt(n)],o=Tg[e.charCodeAt(n+1)],s=Tg[e.charCodeAt(n+2)],l=Tg[e.charCodeAt(n+3)],c[a++]=i<<2|o>>4,c[a++]=(o&15)<<4|s>>2,c[a++]=(s&3)<<6|l&63;return u},iUe=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},oUe=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},Rf=5,AP=6+5,f2=2,sUe=AP-Rf,eZ=65536>>Rf,lUe=1<<Rf,A2=lUe-1,uUe=1024>>Rf,cUe=eZ+uUe,dUe=cUe,fUe=32,AUe=dUe+fUe,hUe=65536>>AP,vUe=1<<sUe,pUe=vUe-1,_U=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},gUe=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},mUe=function(e,t){var r=aUe(e),n=Array.isArray(r)?oUe(r):new Uint32Array(r),a=Array.isArray(r)?iUe(r):new Uint16Array(r),i=24,o=_U(a,i/2,n[4]/2),s=n[5]===2?_U(a,(i+n[4])/2):gUe(n,Math.ceil((i+n[4])/4));return new yUe(n[0],n[1],n[2],n[3],o,s)},yUe=function(){function e(t,r,n,a,i,o){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=a,this.index=i,this.data=o}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Rf],r=(r<<f2)+(t&A2),this.data[r];if(t<=65535)return r=this.index[eZ+(t-55296>>Rf)],r=(r<<f2)+(t&A2),this.data[r];if(t<this.highStart)return r=AUe-hUe+(t>>AP),r=this.index[r],r+=t>>Rf&pUe,r=this.index[r],r=(r<<f2)+(t&A2),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),BU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bUe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var $b=0;$b<BU.length;$b++)bUe[BU.charCodeAt($b)]=$b;var xUe=1,h2=2,v2=3,TU=4,EU=5,wUe=7,IU=8,p2=9,g2=10,RU=11,DU=12,FU=13,MU=14,m2=15,CUe=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var i=e.charCodeAt(r++);(i&64512)===56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),r--)}else t.push(a)}return t},SUe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],a=-1,i="";++a<r;){var o=e[a];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(a+1===r||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},_Ue=mUe(nUe),no="\xD7",y2="\xF7",BUe=function(e){return _Ue.get(e)},TUe=function(e,t,r){var n=r-2,a=t[n],i=t[r-1],o=t[r];if(i===h2&&o===v2)return no;if(i===h2||i===v2||i===TU||o===h2||o===v2||o===TU)return y2;if(i===IU&&[IU,p2,RU,DU].indexOf(o)!==-1||(i===RU||i===p2)&&(o===p2||o===g2)||(i===DU||i===g2)&&o===g2||o===FU||o===EU||o===wUe||i===xUe)return no;if(i===FU&&o===MU){for(;a===EU;)a=t[--n];if(a===MU)return no}if(i===m2&&o===m2){for(var s=0;a===m2;)s++,a=t[--n];if(s%2===0)return no}return y2},EUe=function(e){var t=CUe(e),r=t.length,n=0,a=0,i=t.map(BUe);return{next:function(){if(n>=r)return{done:!0,value:null};for(var o=no;n<r&&(o=TUe(t,i,++n))===no;);if(o!==no||n===r){var s=SUe.apply(null,t.slice(a,n));return a=n,{value:s,done:!1}}return{done:!0,value:null}}}},IUe=function(e){for(var t=EUe(e),r=[],n;!(n=t.next()).done;)n.value&&r.push(n.value.slice());return r},RUe=function(e){var t=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height=t+"px",n.style.display="block",e.body.appendChild(n),r.selectNode(n);var a=r.getBoundingClientRect(),i=Math.round(a.height);if(e.body.removeChild(n),i===t)return!0}}return!1},DUe=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var r=e.createRange();t.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var n=t.firstChild,a=ES(n.data).map(function(l){return Pn(l)}),i=0,o={},s=a.every(function(l,u){r.setStart(n,i),r.setEnd(n,i+l.length);var c=r.getBoundingClientRect();i+=l.length;var d=c.x>o.x||c.y>o.y;return o=c,u===0?!0:d});return e.body.removeChild(t),s},FUe=function(){return typeof new Image().crossOrigin!="undefined"},MUe=function(){return typeof new XMLHttpRequest().responseType=="string"},kUe=function(e){var t=new Image,r=e.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),r.toDataURL()}catch(a){return!1}return!0},kU=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},PUe=function(e){var t=e.createElement("canvas"),r=100;t.width=r,t.height=r;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var a=new Image,i=t.toDataURL();a.src=i;var o=sD(r,r,0,0,a);return n.fillStyle="red",n.fillRect(0,0,r,r),PU(o).then(function(s){n.drawImage(s,0,0);var l=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var u=e.createElement("div");return u.style.backgroundImage="url("+i+")",u.style.height=r+"px",kU(l)?PU(sD(r,r,0,0,u)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),kU(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},sD=function(e,t,r,n,a){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",r.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(a),o},PU=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},ya={get SUPPORT_RANGE_BOUNDS(){var e=RUe(document);return Object.defineProperty(ya,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=ya.SUPPORT_RANGE_BOUNDS&&DUe(document);return Object.defineProperty(ya,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=kUe(document);return Object.defineProperty(ya,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?PUe(document):Promise.resolve(!1);return Object.defineProperty(ya,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=FUe();return Object.defineProperty(ya,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=MUe();return Object.defineProperty(ya,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ya,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(ya,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},o0=function(){function e(t,r){this.text=t,this.bounds=r}return e}(),LUe=function(e,t,r,n){var a=UUe(t,r),i=[],o=0;return a.forEach(function(s){if(r.textDecorationLine.length||s.trim().length>0)if(ya.SUPPORT_RANGE_BOUNDS){var l=LU(n,o,s.length).getClientRects();if(l.length>1){var u=hP(s),c=0;u.forEach(function(f){i.push(new o0(f,ql.fromDOMRectList(e,LU(n,c+o,f.length).getClientRects()))),c+=f.length})}else i.push(new o0(s,ql.fromDOMRectList(e,l)))}else{var d=n.splitText(s.length);i.push(new o0(s,OUe(e,n))),n=d}else ya.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));o+=s.length}),i},OUe=function(e,t){var r=t.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var a=t.parentNode;if(a){a.replaceChild(n,t);var i=TS(e,n);return n.firstChild&&a.replaceChild(n.firstChild,n),i}}return ql.EMPTY},LU=function(e,t,r){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(e,t),a.setEnd(e,t+r),a},hP=function(e){if(ya.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return IUe(e)},$Ue=function(e,t){if(ya.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(n){return n.segment})}return zUe(e,t)},UUe=function(e,t){return t.letterSpacing!==0?hP(e):$Ue(e,t)},HUe=[32,160,4961,65792,65793,4153,4241],zUe=function(e,t){for(var r=hOe(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],a,i=function(){if(a.value){var o=a.value.slice(),s=ES(o),l="";s.forEach(function(u){HUe.indexOf(u)===-1?l+=Pn(u):(l.length&&n.push(l),n.push(Pn(u)),l="")}),l.length&&n.push(l)}};!(a=r.next()).done;)i();return n},NUe=function(){function e(t,r,n){this.text=QUe(r.data,n.textTransform),this.textBounds=LUe(t,this.text,n,r)}return e}(),QUe=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(VUe,WUe);case 2:return e.toUpperCase();default:return e}},VUe=/(^|\s|:|-|\(|\))([a-z])/g,WUe=function(e,t,r){return e.length>0?t+r.toUpperCase():e},tZ=function(e){hs(t,e);function t(r,n){var a=e.call(this,r,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return t}(dl),rZ=function(e){hs(t,e);function t(r,n){var a=e.call(this,r,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return t}(dl),nZ=function(e){hs(t,e);function t(r,n){var a=e.call(this,r,n)||this,i=new XMLSerializer,o=TS(r,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return t}(dl),aZ=function(e){hs(t,e);function t(r,n){var a=e.call(this,r,n)||this;return a.value=n.value,a}return t}(dl),lD=function(e){hs(t,e);function t(r,n){var a=e.call(this,r,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return t}(dl),GUe=[{type:15,flags:0,unit:"px",number:3}],KUe=[{type:16,flags:0,number:50}],jUe=function(e){return e.width>e.height?new ql(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new ql(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},YUe=function(e){var t=e.type===XUe?new Array(e.value.length+1).join("\u2022"):e.value;return t.length===0?e.placeholder||"":t},xw="checkbox",ww="radio",XUe="password",OU=707406591,vP=function(e){hs(t,e);function t(r,n){var a=e.call(this,r,n)||this;switch(a.type=n.type.toLowerCase(),a.checked=n.checked,a.value=YUe(n),(a.type===xw||a.type===ww)&&(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=jUe(a.bounds)),a.type){case xw:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=GUe;break;case ww:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=KUe;break}return a}return t}(dl),iZ=function(e){hs(t,e);function t(r,n){var a=e.call(this,r,n)||this,i=n.options[n.selectedIndex||0];return a.value=i&&i.text||"",a}return t}(dl),oZ=function(e){hs(t,e);function t(r,n){var a=e.call(this,r,n)||this;return a.value=n.value,a}return t}(dl),sZ=function(e){hs(t,e);function t(r,n){var a=e.call(this,r,n)||this;a.src=n.src,a.width=parseInt(n.width,10)||0,a.height=parseInt(n.height,10)||0,a.backgroundColor=a.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){a.tree=uZ(r,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?a0(r,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Nl.TRANSPARENT,o=n.contentWindow.document.body?a0(r,getComputedStyle(n.contentWindow.document.body).backgroundColor):Nl.TRANSPARENT;a.backgroundColor=Ac(i)?Ac(o)?a.styles.backgroundColor:o:i}}catch(s){}return a}return t}(dl),qUe=["OL","UL","MENU"],cx=function(e,t,r,n){for(var a=t.firstChild,i=void 0;a;a=i)if(i=a.nextSibling,cZ(a)&&a.data.trim().length>0)r.textNodes.push(new NUe(e,a,r.styles));else if(Fh(a))if(hZ(a)&&a.assignedNodes)a.assignedNodes().forEach(function(s){return cx(e,s,r,n)});else{var o=lZ(e,a);o.styles.isVisible()&&(ZUe(a,o,n)?o.flags|=4:JUe(o.styles)&&(o.flags|=2),qUe.indexOf(a.tagName)!==-1&&(o.flags|=8),r.elements.push(o),a.slot,a.shadowRoot?cx(e,a.shadowRoot,o,n):!Cw(a)&&!dZ(a)&&!Sw(a)&&cx(e,a,o,n))}},lZ=function(e,t){return cD(t)?new tZ(e,t):fZ(t)?new rZ(e,t):dZ(t)?new nZ(e,t):eHe(t)?new aZ(e,t):tHe(t)?new lD(e,t):rHe(t)?new vP(e,t):Sw(t)?new iZ(e,t):Cw(t)?new oZ(e,t):AZ(t)?new sZ(e,t):new dl(e,t)},uZ=function(e,t){var r=lZ(e,t);return r.flags|=4,cx(e,t,r,r),r},ZUe=function(e,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||pP(e)&&r.styles.isTransparent()},JUe=function(e){return e.isPositioned()||e.isFloating()},cZ=function(e){return e.nodeType===Node.TEXT_NODE},Fh=function(e){return e.nodeType===Node.ELEMENT_NODE},uD=function(e){return Fh(e)&&typeof e.style!="undefined"&&!dx(e)},dx=function(e){return typeof e.className=="object"},eHe=function(e){return e.tagName==="LI"},tHe=function(e){return e.tagName==="OL"},rHe=function(e){return e.tagName==="INPUT"},nHe=function(e){return e.tagName==="HTML"},dZ=function(e){return e.tagName==="svg"},pP=function(e){return e.tagName==="BODY"},fZ=function(e){return e.tagName==="CANVAS"},$U=function(e){return e.tagName==="VIDEO"},cD=function(e){return e.tagName==="IMG"},AZ=function(e){return e.tagName==="IFRAME"},UU=function(e){return e.tagName==="STYLE"},aHe=function(e){return e.tagName==="SCRIPT"},Cw=function(e){return e.tagName==="TEXTAREA"},Sw=function(e){return e.tagName==="SELECT"},hZ=function(e){return e.tagName==="SLOT"},HU=function(e){return e.tagName.indexOf("-")>0},iHe=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var r=this.counters[t];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(t){var r=this.counters[t];return r||[]},e.prototype.pop=function(t){var r=this;t.forEach(function(n){return r.counters[n].pop()})},e.prototype.parse=function(t){var r=this,n=t.counterIncrement,a=t.counterReset,i=!0;n!==null&&n.forEach(function(s){var l=r.counters[s.counter];l&&s.increment!==0&&(i=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=s.increment)});var o=[];return i&&a.forEach(function(s){var l=r.counters[s.counter];o.push(s.counter),l||(l=r.counters[s.counter]=[]),l.push(s.reset)}),o},e}(),zU={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},NU={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},oHe={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},sHe={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},zA=function(e,t,r,n,a,i){return e<t||e>r?X0(e,a,i.length>0):n.integers.reduce(function(o,s,l){for(;e>=s;)e-=s,o+=n.values[l];return o},"")+i},vZ=function(e,t,r,n){var a="";do r||e--,a=n(e)+a,e/=t;while(e*t>=t);return a},Mn=function(e,t,r,n,a){var i=r-t+1;return(e<0?"-":"")+(vZ(Math.abs(e),i,n,function(o){return Pn(Math.floor(o%i)+t)})+a)},yd=function(e,t,r){r===void 0&&(r=". ");var n=t.length;return vZ(Math.abs(e),n,!1,function(a){return t[Math.floor(a%n)]})+r},xh=1<<0,Lu=1<<1,Ou=1<<2,Eg=1<<3,ml=function(e,t,r,n,a,i){if(e<-9999||e>9999)return X0(e,4,a.length>0);var o=Math.abs(e),s=a;if(o===0)return t[0]+s;for(var l=0;o>0&&l<=4;l++){var u=o%10;u===0&&qn(i,xh)&&s!==""?s=t[u]+s:u>1||u===1&&l===0||u===1&&l===1&&qn(i,Lu)||u===1&&l===1&&qn(i,Ou)&&e>100||u===1&&l>1&&qn(i,Eg)?s=t[u]+(l>0?r[l-1]:"")+s:u===1&&l>0&&(s=r[l-1]+s),o=Math.floor(o/10)}return(e<0?n:"")+s},QU="\u5341\u767E\u5343\u842C",VU="\u62FE\u4F70\u4EDF\u842C",WU="\u30DE\u30A4\u30CA\u30B9",b2="\uB9C8\uC774\uB108\uC2A4",X0=function(e,t,r){var n=r?". ":"",a=r?"\u3001":"",i=r?", ":"",o=r?" ":"";switch(t){case 0:return"\u2022"+o;case 1:return"\u25E6"+o;case 2:return"\u25FE"+o;case 5:var s=Mn(e,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return yd(e,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",a);case 6:return zA(e,1,3999,zU,3,n).toLowerCase();case 7:return zA(e,1,3999,zU,3,n);case 8:return Mn(e,945,969,!1,n);case 9:return Mn(e,97,122,!1,n);case 10:return Mn(e,65,90,!1,n);case 11:return Mn(e,1632,1641,!0,n);case 12:case 49:return zA(e,1,9999,NU,3,n);case 35:return zA(e,1,9999,NU,3,n).toLowerCase();case 13:return Mn(e,2534,2543,!0,n);case 14:case 30:return Mn(e,6112,6121,!0,n);case 15:return yd(e,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",a);case 16:return yd(e,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",a);case 17:case 48:return ml(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",QU,"\u8CA0",a,Lu|Ou|Eg);case 47:return ml(e,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",VU,"\u8CA0",a,xh|Lu|Ou|Eg);case 42:return ml(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",QU,"\u8D1F",a,Lu|Ou|Eg);case 41:return ml(e,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",VU,"\u8D1F",a,xh|Lu|Ou|Eg);case 26:return ml(e,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",WU,a,0);case 25:return ml(e,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",WU,a,xh|Lu|Ou);case 31:return ml(e,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",b2,i,xh|Lu|Ou);case 33:return ml(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",b2,i,0);case 32:return ml(e,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",b2,i,xh|Lu|Ou);case 18:return Mn(e,2406,2415,!0,n);case 20:return zA(e,1,19999,sHe,3,n);case 21:return Mn(e,2790,2799,!0,n);case 22:return Mn(e,2662,2671,!0,n);case 22:return zA(e,1,10999,oHe,3,n);case 23:return yd(e,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return yd(e,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Mn(e,3302,3311,!0,n);case 28:return yd(e,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",a);case 29:return yd(e,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",a);case 34:return Mn(e,3792,3801,!0,n);case 37:return Mn(e,6160,6169,!0,n);case 38:return Mn(e,4160,4169,!0,n);case 39:return Mn(e,2918,2927,!0,n);case 40:return Mn(e,1776,1785,!0,n);case 43:return Mn(e,3046,3055,!0,n);case 44:return Mn(e,3174,3183,!0,n);case 45:return Mn(e,3664,3673,!0,n);case 46:return Mn(e,3872,3881,!0,n);case 3:default:return Mn(e,48,57,!0,n)}},pZ="data-html2canvas-ignore",GU=function(){function e(t,r,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new iHe,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,r){var n=this,a=lHe(t,r);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,o=t.defaultView.pageYOffset,s=a.contentWindow,l=s.document,u=dHe(a).then(function(){return Ga(n,void 0,void 0,function(){var c,d;return Fa(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(vHe),s&&(s.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==r.top||s.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-r.left,s.scrollY-r.top,0,0))),c=this.options.onclone,d=this.clonedReferenceElement,typeof d=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,cHe(l)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof c=="function"?[2,Promise.resolve().then(function(){return c(l,d)}).then(function(){return a})]:[2,a]}})})});return l.open(),l.write(AHe(document.doctype)+"<html></html>"),hHe(this.referenceElement.ownerDocument,i,o),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},e.prototype.createElementClone=function(t){if(oD(t,2))debugger;if(fZ(t))return this.createCanvasClone(t);if($U(t))return this.createVideoClone(t);if(UU(t))return this.createStyleClone(t);var r=t.cloneNode(!1);return cD(r)&&(cD(t)&&t.currentSrc&&t.currentSrc!==t.src&&(r.src=t.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),HU(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(t){var r=document.createElement("html2canvascustomelement");return x2(t.style,r),r},e.prototype.createStyleClone=function(t){try{var r=t.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(i,o){return o&&typeof o.cssText=="string"?i+o.cssText:i},""),a=t.cloneNode(!1);return a.textContent=n,a}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var r;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch(u){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var a=t.cloneNode(!1);try{a.width=t.width,a.height=t.height;var i=t.getContext("2d"),o=a.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var s=(r=t.getContext("webgl2"))!==null&&r!==void 0?r:t.getContext("webgl");if(s){var l=s.getContextAttributes();(l==null?void 0:l.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}o.drawImage(t,0,0)}return a}catch(u){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return a},e.prototype.createVideoClone=function(t){var r=t.ownerDocument.createElement("canvas");r.width=t.offsetWidth,r.height=t.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(t,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}catch(i){this.context.logger.info("Unable to clone video as it is tainted",t)}var a=t.ownerDocument.createElement("canvas");return a.width=t.offsetWidth,a.height=t.offsetHeight,a},e.prototype.appendChildNode=function(t,r,n){(!Fh(r)||!aHe(r)&&!r.hasAttribute(pZ)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Fh(r)||!UU(r))&&t.appendChild(this.cloneNode(r,n))},e.prototype.cloneChildNodes=function(t,r,n){for(var a=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(Fh(i)&&hZ(i)&&typeof i.assignedNodes=="function"){var o=i.assignedNodes();o.length&&o.forEach(function(s){return a.appendChildNode(r,s,n)})}else this.appendChildNode(r,i,n)},e.prototype.cloneNode=function(t,r){if(cZ(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&Fh(t)&&(uD(t)||dx(t))){var a=this.createElementClone(t);a.style.transitionProperty="none";var i=n.getComputedStyle(t),o=n.getComputedStyle(t,":before"),s=n.getComputedStyle(t,":after");this.referenceElement===t&&uD(a)&&(this.clonedReferenceElement=a),pP(a)&&mHe(a);var l=this.counters.parse(new CU(this.context,i)),u=this.resolvePseudoContent(t,a,o,s0.BEFORE);HU(t)&&(r=!0),$U(t)||this.cloneChildNodes(t,a,r),u&&a.insertBefore(u,a.firstChild);var c=this.resolvePseudoContent(t,a,s,s0.AFTER);return c&&a.appendChild(c),this.counters.pop(l),(i&&(this.options.copyStyles||dx(t))&&!AZ(t)||r)&&x2(i,a),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([a,t.scrollLeft,t.scrollTop]),(Cw(t)||Sw(t))&&(Cw(a)||Sw(a))&&(a.value=t.value),a}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,r,n,a){var i=this;if(!!n){var o=n.content,s=r.ownerDocument;if(!(!s||!o||o==="none"||o==="-moz-alt-content"||n.display==="none")){this.counters.parse(new CU(this.context,n));var l=new eUe(this.context,n),u=s.createElement("html2canvaspseudoelement");x2(n,u),l.content.forEach(function(d){if(d.type===0)u.appendChild(s.createTextNode(d.value));else if(d.type===22){var f=s.createElement("img");f.src=d.value,f.style.opacity="1",u.appendChild(f)}else if(d.type===18){if(d.name==="attr"){var A=d.values.filter(Xr);A.length&&u.appendChild(s.createTextNode(t.getAttribute(A[0].value)||""))}else if(d.name==="counter"){var h=d.values.filter(gv),v=h[0],p=h[1];if(v&&Xr(v)){var g=i.counters.getCounterValue(v.value),m=p&&Xr(p)?iD.parse(i.context,p.value):3;u.appendChild(s.createTextNode(X0(g,m,!1)))}}else if(d.name==="counters"){var y=d.values.filter(gv),v=y[0],b=y[1],p=y[2];if(v&&Xr(v)){var w=i.counters.getCounterValues(v.value),x=p&&Xr(p)?iD.parse(i.context,p.value):3,S=b&&b.type===0?b.value:"",_=w.map(function(E){return X0(E,x,!1)}).join(S);u.appendChild(s.createTextNode(_))}}}else if(d.type===20)switch(d.value){case"open-quote":u.appendChild(s.createTextNode(wU(l.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(s.createTextNode(wU(l.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(s.createTextNode(d.value))}}),u.className=dD+" "+fD;var c=a===s0.BEFORE?" "+dD:" "+fD;return dx(r)?r.className.baseValue+=c:r.className+=c,u}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e}(),s0;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(s0||(s0={}));var lHe=function(e,t){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(pZ,"true"),e.body.appendChild(r),r},uHe=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},cHe=function(e){return Promise.all([].slice.call(e.images,0).map(uHe))},dHe=function(e){return new Promise(function(t,r){var n=e.contentWindow;if(!n)return r("No window assigned for iframe");var a=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var i=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(i),t(e))},50)}})},fHe=["all","d","content"],x2=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e.item(r);fHe.indexOf(n)===-1&&t.style.setProperty(n,e.getPropertyValue(n))}return t},AHe=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},hHe=function(e,t,r){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,r)},vHe=function(e){var t=e[0],r=e[1],n=e[2];t.scrollLeft=r,t.scrollTop=n},pHe=":before",gHe=":after",dD="___html2canvas___pseudoelement_before",fD="___html2canvas___pseudoelement_after",KU=`{
|
|
content: "" !important;
|
|
display: none !important;
|
|
}`,mHe=function(e){yHe(e,"."+dD+pHe+KU+`
|
|
.`+fD+gHe+KU)},yHe=function(e,t){var r=e.ownerDocument;if(r){var n=r.createElement("style");n.textContent=t,e.appendChild(n)}},gZ=function(){function e(){}return e.getOrigin=function(t){var r=e._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),bHe=function(){function e(t,r){this.context=t,this._options=r,this._cache={}}return e.prototype.addImage=function(t){var r=Promise.resolve();return this.has(t)||(C2(t)||SHe(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),r},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return Ga(this,void 0,void 0,function(){var r,n,a,i,o=this;return Fa(this,function(s){switch(s.label){case 0:return r=gZ.isSameOrigin(t),n=!w2(t)&&this._options.useCORS===!0&&ya.SUPPORT_CORS_IMAGES&&!r,a=!w2(t)&&!r&&!C2(t)&&typeof this._options.proxy=="string"&&ya.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!w2(t)&&!C2(t)&&!a&&!n?[2]:(i=t,a?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,u){var c=new Image;c.onload=function(){return l(c)},c.onerror=u,(_He(i)||n)&&(c.crossOrigin="anonymous"),c.src=i,c.complete===!0&&setTimeout(function(){return l(c)},500),o._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]!="undefined"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(i,o){var s=ya.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(s==="text")i(l.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(f){return o(f)},!1),d.readAsDataURL(l.response)}else o("Failed to proxy resource "+a+" with status code "+l.status)},l.onerror=o;var u=n.indexOf("?")>-1?"&":"?";if(l.open("GET",""+n+u+"url="+encodeURIComponent(t)+"&responseType="+s),s!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=s),r._options.imageTimeout){var c=r._options.imageTimeout;l.timeout=c,l.ontimeout=function(){return o("Timed out ("+c+"ms) proxying "+a)}}l.send()})},e}(),xHe=/^data:image\/svg\+xml/i,wHe=/^data:image\/.*;base64,/i,CHe=/^data:image\/.*/i,SHe=function(e){return ya.SUPPORT_SVG_DRAWING||!BHe(e)},w2=function(e){return CHe.test(e)},_He=function(e){return wHe.test(e)},C2=function(e){return e.substr(0,4)==="blob"},BHe=function(e){return e.substr(-3).toLowerCase()==="svg"||xHe.test(e)},gt=function(){function e(t,r){this.type=0,this.x=t,this.y=r}return e.prototype.add=function(t,r){return new e(this.x+t,this.y+r)},e}(),NA=function(e,t,r){return new gt(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r)},Ub=function(){function e(t,r,n,a){this.type=1,this.start=t,this.startControl=r,this.endControl=n,this.end=a}return e.prototype.subdivide=function(t,r){var n=NA(this.start,this.startControl,t),a=NA(this.startControl,this.endControl,t),i=NA(this.endControl,this.end,t),o=NA(n,a,t),s=NA(a,i,t),l=NA(o,s,t);return r?new e(this.start,n,o,l):new e(l,s,i,this.end)},e.prototype.add=function(t,r){return new e(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),lo=function(e){return e.type===1},THe=function(){function e(t){var r=t.styles,n=t.bounds,a=Bg(r.borderTopLeftRadius,n.width,n.height),i=a[0],o=a[1],s=Bg(r.borderTopRightRadius,n.width,n.height),l=s[0],u=s[1],c=Bg(r.borderBottomRightRadius,n.width,n.height),d=c[0],f=c[1],A=Bg(r.borderBottomLeftRadius,n.width,n.height),h=A[0],v=A[1],p=[];p.push((i+l)/n.width),p.push((h+d)/n.width),p.push((o+v)/n.height),p.push((u+f)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,o/=g,l/=g,u/=g,d/=g,f/=g,h/=g,v/=g);var m=n.width-l,y=n.height-f,b=n.width-d,w=n.height-v,x=r.borderTopWidth,S=r.borderRightWidth,_=r.borderBottomWidth,B=r.borderLeftWidth,T=an(r.paddingTop,t.bounds.width),E=an(r.paddingRight,t.bounds.width),I=an(r.paddingBottom,t.bounds.width),R=an(r.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?fn(n.left+B/3,n.top+x/3,i-B/3,o-x/3,Qr.TOP_LEFT):new gt(n.left+B/3,n.top+x/3),this.topRightBorderDoubleOuterBox=i>0||o>0?fn(n.left+m,n.top+x/3,l-S/3,u-x/3,Qr.TOP_RIGHT):new gt(n.left+n.width-S/3,n.top+x/3),this.bottomRightBorderDoubleOuterBox=d>0||f>0?fn(n.left+b,n.top+y,d-S/3,f-_/3,Qr.BOTTOM_RIGHT):new gt(n.left+n.width-S/3,n.top+n.height-_/3),this.bottomLeftBorderDoubleOuterBox=h>0||v>0?fn(n.left+B/3,n.top+w,h-B/3,v-_/3,Qr.BOTTOM_LEFT):new gt(n.left+B/3,n.top+n.height-_/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?fn(n.left+B*2/3,n.top+x*2/3,i-B*2/3,o-x*2/3,Qr.TOP_LEFT):new gt(n.left+B*2/3,n.top+x*2/3),this.topRightBorderDoubleInnerBox=i>0||o>0?fn(n.left+m,n.top+x*2/3,l-S*2/3,u-x*2/3,Qr.TOP_RIGHT):new gt(n.left+n.width-S*2/3,n.top+x*2/3),this.bottomRightBorderDoubleInnerBox=d>0||f>0?fn(n.left+b,n.top+y,d-S*2/3,f-_*2/3,Qr.BOTTOM_RIGHT):new gt(n.left+n.width-S*2/3,n.top+n.height-_*2/3),this.bottomLeftBorderDoubleInnerBox=h>0||v>0?fn(n.left+B*2/3,n.top+w,h-B*2/3,v-_*2/3,Qr.BOTTOM_LEFT):new gt(n.left+B*2/3,n.top+n.height-_*2/3),this.topLeftBorderStroke=i>0||o>0?fn(n.left+B/2,n.top+x/2,i-B/2,o-x/2,Qr.TOP_LEFT):new gt(n.left+B/2,n.top+x/2),this.topRightBorderStroke=i>0||o>0?fn(n.left+m,n.top+x/2,l-S/2,u-x/2,Qr.TOP_RIGHT):new gt(n.left+n.width-S/2,n.top+x/2),this.bottomRightBorderStroke=d>0||f>0?fn(n.left+b,n.top+y,d-S/2,f-_/2,Qr.BOTTOM_RIGHT):new gt(n.left+n.width-S/2,n.top+n.height-_/2),this.bottomLeftBorderStroke=h>0||v>0?fn(n.left+B/2,n.top+w,h-B/2,v-_/2,Qr.BOTTOM_LEFT):new gt(n.left+B/2,n.top+n.height-_/2),this.topLeftBorderBox=i>0||o>0?fn(n.left,n.top,i,o,Qr.TOP_LEFT):new gt(n.left,n.top),this.topRightBorderBox=l>0||u>0?fn(n.left+m,n.top,l,u,Qr.TOP_RIGHT):new gt(n.left+n.width,n.top),this.bottomRightBorderBox=d>0||f>0?fn(n.left+b,n.top+y,d,f,Qr.BOTTOM_RIGHT):new gt(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=h>0||v>0?fn(n.left,n.top+w,h,v,Qr.BOTTOM_LEFT):new gt(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?fn(n.left+B,n.top+x,Math.max(0,i-B),Math.max(0,o-x),Qr.TOP_LEFT):new gt(n.left+B,n.top+x),this.topRightPaddingBox=l>0||u>0?fn(n.left+Math.min(m,n.width-S),n.top+x,m>n.width+S?0:Math.max(0,l-S),Math.max(0,u-x),Qr.TOP_RIGHT):new gt(n.left+n.width-S,n.top+x),this.bottomRightPaddingBox=d>0||f>0?fn(n.left+Math.min(b,n.width-B),n.top+Math.min(y,n.height-_),Math.max(0,d-S),Math.max(0,f-_),Qr.BOTTOM_RIGHT):new gt(n.left+n.width-S,n.top+n.height-_),this.bottomLeftPaddingBox=h>0||v>0?fn(n.left+B,n.top+Math.min(w,n.height-_),Math.max(0,h-B),Math.max(0,v-_),Qr.BOTTOM_LEFT):new gt(n.left+B,n.top+n.height-_),this.topLeftContentBox=i>0||o>0?fn(n.left+B+R,n.top+x+T,Math.max(0,i-(B+R)),Math.max(0,o-(x+T)),Qr.TOP_LEFT):new gt(n.left+B+R,n.top+x+T),this.topRightContentBox=l>0||u>0?fn(n.left+Math.min(m,n.width+B+R),n.top+x+T,m>n.width+B+R?0:l-B+R,u-(x+T),Qr.TOP_RIGHT):new gt(n.left+n.width-(S+E),n.top+x+T),this.bottomRightContentBox=d>0||f>0?fn(n.left+Math.min(b,n.width-(B+R)),n.top+Math.min(y,n.height+x+T),Math.max(0,d-(S+E)),f-(_+I),Qr.BOTTOM_RIGHT):new gt(n.left+n.width-(S+E),n.top+n.height-(_+I)),this.bottomLeftContentBox=h>0||v>0?fn(n.left+B+R,n.top+w,Math.max(0,h-(B+R)),v-(_+I),Qr.BOTTOM_LEFT):new gt(n.left+B+R,n.top+n.height-(_+I))}return e}(),Qr;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Qr||(Qr={}));var fn=function(e,t,r,n,a){var i=4*((Math.sqrt(2)-1)/3),o=r*i,s=n*i,l=e+r,u=t+n;switch(a){case Qr.TOP_LEFT:return new Ub(new gt(e,u),new gt(e,u-s),new gt(l-o,t),new gt(l,t));case Qr.TOP_RIGHT:return new Ub(new gt(e,t),new gt(e+o,t),new gt(l,u-s),new gt(l,u));case Qr.BOTTOM_RIGHT:return new Ub(new gt(l,t),new gt(l,t+s),new gt(e+o,u),new gt(e,u));case Qr.BOTTOM_LEFT:default:return new Ub(new gt(l,u),new gt(l-o,u),new gt(e,t+s),new gt(e,t))}},_w=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},EHe=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Bw=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},IHe=function(){function e(t,r,n){this.offsetX=t,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return e}(),Hb=function(){function e(t,r){this.path=t,this.target=r,this.type=1}return e}(),RHe=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),DHe=function(e){return e.type===0},mZ=function(e){return e.type===1},FHe=function(e){return e.type===2},jU=function(e,t){return e.length===t.length?e.some(function(r,n){return r===t[n]}):!1},MHe=function(e,t,r,n,a){return e.map(function(i,o){switch(o){case 0:return i.add(t,r);case 1:return i.add(t+n,r);case 2:return i.add(t+n,r+a);case 3:return i.add(t,r+a)}return i})},yZ=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),bZ=function(){function e(t,r){if(this.container=t,this.parent=r,this.effects=[],this.curves=new THe(this.container),this.container.styles.opacity<1&&this.effects.push(new RHe(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new IHe(n,a,i))}if(this.container.styles.overflowX!==0){var o=_w(this.curves),s=Bw(this.curves);jU(o,s)?this.effects.push(new Hb(o,6)):(this.effects.push(new Hb(o,2)),this.effects.push(new Hb(s,4)))}}return e.prototype.getEffects=function(t){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var i=n.effects.filter(function(l){return!mZ(l)});if(r||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,i),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var o=_w(n.curves),s=Bw(n.curves);jU(o,s)||a.unshift(new Hb(s,6))}}else a.unshift.apply(a,i);n=n.parent}return a.filter(function(l){return qn(l.target,t)})},e}(),AD=function(e,t,r,n){e.container.elements.forEach(function(a){var i=qn(a.flags,4),o=qn(a.flags,2),s=new bZ(a,e);qn(a.styles.display,2048)&&n.push(s);var l=qn(a.flags,8)?[]:n;if(i||o){var u=i||a.styles.isPositioned()?r:t,c=new yZ(s);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var d=a.styles.zIndex.order;if(d<0){var f=0;u.negativeZIndex.some(function(h,v){return d>h.element.container.styles.zIndex.order?(f=v,!1):f>0}),u.negativeZIndex.splice(f,0,c)}else if(d>0){var A=0;u.positiveZIndex.some(function(h,v){return d>=h.element.container.styles.zIndex.order?(A=v+1,!1):A>0}),u.positiveZIndex.splice(A,0,c)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else a.styles.isFloating()?u.nonPositionedFloats.push(c):u.nonPositionedInlineLevel.push(c);AD(s,c,i?c:r,l)}else a.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),AD(s,t,r,l);qn(a.flags,8)&&xZ(a,l)})},xZ=function(e,t){for(var r=e instanceof lD?e.start:1,n=e instanceof lD?e.reversed:!1,a=0;a<t.length;a++){var i=t[a];i.container instanceof aZ&&typeof i.container.value=="number"&&i.container.value!==0&&(r=i.container.value),i.listValue=X0(r,i.container.styles.listStyleType,!0),r+=n?-1:1}},kHe=function(e){var t=new bZ(e,null),r=new yZ(t),n=[];return AD(t,r,r,n),xZ(t.container,n),r},YU=function(e,t){switch(t){case 0:return vo(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return vo(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return vo(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return vo(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},PHe=function(e,t){switch(t){case 0:return vo(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return vo(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return vo(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return vo(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},LHe=function(e,t){switch(t){case 0:return vo(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return vo(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return vo(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return vo(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},OHe=function(e,t){switch(t){case 0:return zb(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return zb(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return zb(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return zb(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},zb=function(e,t){var r=[];return lo(e)?r.push(e.subdivide(.5,!1)):r.push(e),lo(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},vo=function(e,t,r,n){var a=[];return lo(e)?a.push(e.subdivide(.5,!1)):a.push(e),lo(r)?a.push(r.subdivide(.5,!0)):a.push(r),lo(n)?a.push(n.subdivide(.5,!0).reverse()):a.push(n),lo(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},wZ=function(e){var t=e.bounds,r=e.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Tw=function(e){var t=e.styles,r=e.bounds,n=an(t.paddingLeft,r.width),a=an(t.paddingRight,r.width),i=an(t.paddingTop,r.width),o=an(t.paddingBottom,r.width);return r.add(n+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+n+a),-(t.borderTopWidth+t.borderBottomWidth+i+o))},$He=function(e,t){return e===0?t.bounds:e===2?Tw(t):wZ(t)},UHe=function(e,t){return e===0?t.bounds:e===2?Tw(t):wZ(t)},S2=function(e,t,r){var n=$He(wh(e.styles.backgroundOrigin,t),e),a=UHe(wh(e.styles.backgroundClip,t),e),i=HHe(wh(e.styles.backgroundSize,t),r,n),o=i[0],s=i[1],l=Bg(wh(e.styles.backgroundPosition,t),n.width-o,n.height-s),u=zHe(wh(e.styles.backgroundRepeat,t),l,i,n,a),c=Math.round(n.left+l[0]),d=Math.round(n.top+l[1]);return[u,c,d,o,s]},QA=function(e){return Xr(e)&&e.value===jh.AUTO},Nb=function(e){return typeof e=="number"},HHe=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=e[0],s=e[1];if(!o)return[0,0];if(Vn(o)&&s&&Vn(s))return[an(o,r.width),an(s,r.height)];var l=Nb(i);if(Xr(o)&&(o.value===jh.CONTAIN||o.value===jh.COVER)){if(Nb(i)){var u=r.width/r.height;return u<i!=(o.value===jh.COVER)?[r.width,r.width/i]:[r.height*i,r.height]}return[r.width,r.height]}var c=Nb(n),d=Nb(a),f=c||d;if(QA(o)&&(!s||QA(s))){if(c&&d)return[n,a];if(!l&&!f)return[r.width,r.height];if(f&&l){var A=c?n:a*i,h=d?a:n/i;return[A,h]}var v=c?n:r.width,p=d?a:r.height;return[v,p]}if(l){var g=0,m=0;return Vn(o)?g=an(o,r.width):Vn(s)&&(m=an(s,r.height)),QA(o)?g=m*i:(!s||QA(s))&&(m=g/i),[g,m]}var y=null,b=null;if(Vn(o)?y=an(o,r.width):s&&Vn(s)&&(b=an(s,r.height)),y!==null&&(!s||QA(s))&&(b=c&&d?y/n*a:r.height),b!==null&&QA(o)&&(y=c&&d?b/a*n:r.width),y!==null&&b!==null)return[y,b];throw new Error("Unable to calculate background-size for element")},wh=function(e,t){var r=e[t];return typeof r=="undefined"?e[0]:r},zHe=function(e,t,r,n,a){var i=t[0],o=t[1],s=r[0],l=r[1];switch(e){case 2:return[new gt(Math.round(n.left),Math.round(n.top+o)),new gt(Math.round(n.left+n.width),Math.round(n.top+o)),new gt(Math.round(n.left+n.width),Math.round(l+n.top+o)),new gt(Math.round(n.left),Math.round(l+n.top+o))];case 3:return[new gt(Math.round(n.left+i),Math.round(n.top)),new gt(Math.round(n.left+i+s),Math.round(n.top)),new gt(Math.round(n.left+i+s),Math.round(n.height+n.top)),new gt(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new gt(Math.round(n.left+i),Math.round(n.top+o)),new gt(Math.round(n.left+i+s),Math.round(n.top+o)),new gt(Math.round(n.left+i+s),Math.round(n.top+o+l)),new gt(Math.round(n.left+i),Math.round(n.top+o+l))];default:return[new gt(Math.round(a.left),Math.round(a.top)),new gt(Math.round(a.left+a.width),Math.round(a.top)),new gt(Math.round(a.left+a.width),Math.round(a.height+a.top)),new gt(Math.round(a.left),Math.round(a.height+a.top))]}},NHe="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",XU="Hidden Text",QHe=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,r){var n=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),a.src=NHe,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=r,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(XU)),n.appendChild(i),n.appendChild(a);var s=a.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(XU)),n.style.lineHeight="normal",a.style.verticalAlign="super";var l=a.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:l}},e.prototype.getMetrics=function(t,r){var n=t+" "+r;return typeof this._data[n]=="undefined"&&(this._data[n]=this.parseMetrics(t,r)),this._data[n]},e}(),CZ=function(){function e(t,r){this.context=t,this.options=r}return e}(),VHe=1e4,WHe=function(e){hs(t,e);function t(r,n){var a=e.call(this,r,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new QHe(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return t.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(a){return n.applyEffect(a)})},t.prototype.applyEffect=function(r){this.ctx.save(),FHe(r)&&(this.ctx.globalAlpha=r.opacity),DHe(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),mZ(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(r){return Ga(this,void 0,void 0,function(){var n;return Fa(this,function(a){switch(a.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(r){return Ga(this,void 0,void 0,function(){return Fa(this,function(n){switch(n.label){case 0:if(qn(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(r,n,a){var i=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+a);else{var o=hP(r.text);o.reduce(function(s,l){return i.ctx.fillText(l,s,r.bounds.top+a),s+i.ctx.measureText(l).width},r.bounds.left)}},t.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),a=XHe(r.fontFamily).join(", "),i=sy(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,i,a].join(" "),a,i]},t.prototype.renderTextNode=function(r,n){return Ga(this,void 0,void 0,function(){var a,i,o,s,l,u,c,d,f=this;return Fa(this,function(A){return a=this.createFontStyle(n),i=a[0],o=a[1],s=a[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(o,s),u=l.baseline,c=l.middle,d=n.paintOrder,r.textBounds.forEach(function(h){d.forEach(function(v){switch(v){case 0:f.ctx.fillStyle=ia(n.color),f.renderTextWithLetterSpacing(h,n.letterSpacing,u);var p=n.textShadow;p.length&&h.text.trim().length&&(p.slice(0).reverse().forEach(function(g){f.ctx.shadowColor=ia(g.color),f.ctx.shadowOffsetX=g.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=g.offsetY.number*f.options.scale,f.ctx.shadowBlur=g.blur.number,f.renderTextWithLetterSpacing(h,n.letterSpacing,u)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),n.textDecorationLine.length&&(f.ctx.fillStyle=ia(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:f.ctx.fillRect(h.bounds.left,Math.round(h.bounds.top+u),h.bounds.width,1);break;case 2:f.ctx.fillRect(h.bounds.left,Math.round(h.bounds.top),h.bounds.width,1);break;case 3:f.ctx.fillRect(h.bounds.left,Math.ceil(h.bounds.top+c),h.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&h.text.trim().length&&(f.ctx.strokeStyle=ia(n.webkitTextStrokeColor),f.ctx.lineWidth=n.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(h.text,h.bounds.left,h.bounds.top+u)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(r,n,a){if(a&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var i=Tw(r),o=Bw(n);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,r.intrinsicWidth,r.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(r){return Ga(this,void 0,void 0,function(){var n,a,i,o,s,l,m,m,u,c,d,f,b,A,h,w,v,p,g,m,y,b,w;return Fa(this,function(x){switch(x.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,a=r.curves,i=n.styles,o=0,s=n.textNodes,x.label=1;case 1:return o<s.length?(l=s[o],[4,this.renderTextNode(l,i)]):[3,4];case 2:x.sent(),x.label=3;case 3:return o++,[3,1];case 4:if(!(n instanceof tZ))return[3,8];x.label=5;case 5:return x.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return m=x.sent(),this.renderReplacedElement(n,a,m),[3,8];case 7:return x.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof rZ&&this.renderReplacedElement(n,a,n.canvas),!(n instanceof nZ))return[3,12];x.label=9;case 9:return x.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return m=x.sent(),this.renderReplacedElement(n,a,m),[3,12];case 11:return x.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof sZ&&n.tree?(u=new t(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:c=x.sent(),n.width&&n.height&&this.ctx.drawImage(c,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),x.label=14;case 14:if(n instanceof vP&&(d=Math.min(n.bounds.width,n.bounds.height),n.type===xw?n.checked&&(this.ctx.save(),this.path([new gt(n.bounds.left+d*.39363,n.bounds.top+d*.79),new gt(n.bounds.left+d*.16,n.bounds.top+d*.5549),new gt(n.bounds.left+d*.27347,n.bounds.top+d*.44071),new gt(n.bounds.left+d*.39694,n.bounds.top+d*.5649),new gt(n.bounds.left+d*.72983,n.bounds.top+d*.23),new gt(n.bounds.left+d*.84,n.bounds.top+d*.34085),new gt(n.bounds.left+d*.39363,n.bounds.top+d*.79)]),this.ctx.fillStyle=ia(OU),this.ctx.fill(),this.ctx.restore()):n.type===ww&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+d/2,n.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=ia(OU),this.ctx.fill(),this.ctx.restore())),GHe(n)&&n.value.length){switch(f=this.createFontStyle(i),b=f[0],A=f[1],h=this.fontMetrics.getMetrics(b,A).baseline,this.ctx.font=b,this.ctx.fillStyle=ia(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=jHe(n.styles.textAlign),w=Tw(n),v=0,n.styles.textAlign){case 1:v+=w.width/2;break;case 2:v+=w.width;break}p=w.add(v,0,0,-w.height/2+1),this.ctx.save(),this.path([new gt(w.left,w.top),new gt(w.left+w.width,w.top),new gt(w.left+w.width,w.top+w.height),new gt(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new o0(n.value,p),i.letterSpacing,h),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!qn(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(g=n.styles.listStyleImage,g.type!==0)return[3,18];m=void 0,y=g.url,x.label=15;case 15:return x.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return m=x.sent(),this.ctx.drawImage(m,n.bounds.left-(m.width+10),n.bounds.top),[3,18];case 17:return x.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:r.listValue&&n.styles.listStyleType!==-1&&(b=this.createFontStyle(i)[0],this.ctx.font=b,this.ctx.fillStyle=ia(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new ql(n.bounds.left,n.bounds.top+an(n.styles.paddingTop,n.bounds.width),n.bounds.width,bU(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new o0(r.listValue,w),i.letterSpacing,bU(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),x.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(r){return Ga(this,void 0,void 0,function(){var n,a,g,i,o,g,s,l,g,u,c,g,d,f,g,A,h,g,v,p,g;return Fa(this,function(m){switch(m.label){case 0:if(qn(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:m.sent(),n=0,a=r.negativeZIndex,m.label=2;case 2:return n<a.length?(g=a[n],[4,this.renderStack(g)]):[3,5];case 3:m.sent(),m.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:m.sent(),i=0,o=r.nonInlineLevel,m.label=7;case 7:return i<o.length?(g=o[i],[4,this.renderNode(g)]):[3,10];case 8:m.sent(),m.label=9;case 9:return i++,[3,7];case 10:s=0,l=r.nonPositionedFloats,m.label=11;case 11:return s<l.length?(g=l[s],[4,this.renderStack(g)]):[3,14];case 12:m.sent(),m.label=13;case 13:return s++,[3,11];case 14:u=0,c=r.nonPositionedInlineLevel,m.label=15;case 15:return u<c.length?(g=c[u],[4,this.renderStack(g)]):[3,18];case 16:m.sent(),m.label=17;case 17:return u++,[3,15];case 18:d=0,f=r.inlineLevel,m.label=19;case 19:return d<f.length?(g=f[d],[4,this.renderNode(g)]):[3,22];case 20:m.sent(),m.label=21;case 21:return d++,[3,19];case 22:A=0,h=r.zeroOrAutoZIndexOrTransformedOrOpacity,m.label=23;case 23:return A<h.length?(g=h[A],[4,this.renderStack(g)]):[3,26];case 24:m.sent(),m.label=25;case 25:return A++,[3,23];case 26:v=0,p=r.positiveZIndex,m.label=27;case 27:return v<p.length?(g=p[v],[4,this.renderStack(g)]):[3,30];case 28:m.sent(),m.label=29;case 29:return v++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},t.prototype.formatPath=function(r){var n=this;r.forEach(function(a,i){var o=lo(a)?a.start:a;i===0?n.ctx.moveTo(o.x,o.y):n.ctx.lineTo(o.x,o.y),lo(a)&&n.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},t.prototype.renderRepeat=function(r,n,a,i){this.path(r),this.ctx.fillStyle=n,this.ctx.translate(a,i),this.ctx.fill(),this.ctx.translate(-a,-i)},t.prototype.resizeImage=function(r,n,a){var i;if(r.width===n&&r.height===a)return r;var o=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,s=o.createElement("canvas");s.width=Math.max(1,n),s.height=Math.max(1,a);var l=s.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,n,a),s},t.prototype.renderBackgroundImage=function(r){return Ga(this,void 0,void 0,function(){var n,a,i,o,s,l;return Fa(this,function(u){switch(u.label){case 0:n=r.styles.backgroundImage.length-1,a=function(c){var d,f,A,T,F,P,R,D,_,h,T,F,P,R,D,v,p,g,m,y,b,w,x,S,_,B,T,E,I,R,D,k,F,P,O,H,V,W,Z,ee,ae,ne;return Fa(this,function(le){switch(le.label){case 0:if(c.type!==0)return[3,5];d=void 0,f=c.url,le.label=1;case 1:return le.trys.push([1,3,,4]),[4,i.context.cache.match(f)];case 2:return d=le.sent(),[3,4];case 3:return le.sent(),i.context.logger.error("Error loading background-image "+f),[3,4];case 4:return d&&(A=S2(r,n,[d.width,d.height,d.width/d.height]),T=A[0],F=A[1],P=A[2],R=A[3],D=A[4],_=i.ctx.createPattern(i.resizeImage(d,R,D),"repeat"),i.renderRepeat(T,_,F,P)),[3,6];case 5:D3e(c)?(h=S2(r,n,[null,null,null]),T=h[0],F=h[1],P=h[2],R=h[3],D=h[4],v=B3e(c.angle,R,D),p=v[0],g=v[1],m=v[2],y=v[3],b=v[4],w=document.createElement("canvas"),w.width=R,w.height=D,x=w.getContext("2d"),S=x.createLinearGradient(g,y,m,b),mU(c.stops,p).forEach(function(se){return S.addColorStop(se.stop,ia(se.color))}),x.fillStyle=S,x.fillRect(0,0,R,D),R>0&&D>0&&(_=i.ctx.createPattern(w,"repeat"),i.renderRepeat(T,_,F,P))):F3e(c)&&(B=S2(r,n,[null,null,null]),T=B[0],E=B[1],I=B[2],R=B[3],D=B[4],k=c.position.length===0?[dP]:c.position,F=an(k[0],R),P=an(k[k.length-1],D),O=T3e(c,F,P,R,D),H=O[0],V=O[1],H>0&&V>0&&(W=i.ctx.createRadialGradient(E+F,I+P,0,E+F,I+P,H),mU(c.stops,H*2).forEach(function(se){return W.addColorStop(se.stop,ia(se.color))}),i.path(T),i.ctx.fillStyle=W,H!==V?(Z=r.bounds.left+.5*r.bounds.width,ee=r.bounds.top+.5*r.bounds.height,ae=V/H,ne=1/ae,i.ctx.save(),i.ctx.translate(Z,ee),i.ctx.transform(1,0,0,ae,0,0),i.ctx.translate(-Z,-ee),i.ctx.fillRect(E,ne*(I-ee)+ee,R,D*ne),i.ctx.restore()):i.ctx.fill())),le.label=6;case 6:return n--,[2]}})},i=this,o=0,s=r.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return o<s.length?(l=s[o],[5,a(l)]):[3,4];case 2:u.sent(),u.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(r,n,a){return Ga(this,void 0,void 0,function(){return Fa(this,function(i){return this.path(YU(a,n)),this.ctx.fillStyle=ia(r),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(r,n,a,i){return Ga(this,void 0,void 0,function(){var o,s;return Fa(this,function(l){switch(l.label){case 0:return n<3?[4,this.renderSolidBorder(r,a,i)]:[3,2];case 1:return l.sent(),[2];case 2:return o=PHe(i,a),this.path(o),this.ctx.fillStyle=ia(r),this.ctx.fill(),s=LHe(i,a),this.path(s),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(r){return Ga(this,void 0,void 0,function(){var n,a,i,o,s,l,u,c,d=this;return Fa(this,function(f){switch(f.label){case 0:return this.applyEffects(r.getEffects(2)),n=r.container.styles,a=!Ac(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],o=KHe(wh(n.backgroundClip,0),r.curves),a||n.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Ac(n.backgroundColor)||(this.ctx.fillStyle=ia(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(A){d.ctx.save();var h=_w(r.curves),v=A.inset?0:VHe,p=MHe(h,-v+(A.inset?1:-1)*A.spread.number,(A.inset?1:-1)*A.spread.number,A.spread.number*(A.inset?-2:2),A.spread.number*(A.inset?-2:2));A.inset?(d.path(h),d.ctx.clip(),d.mask(p)):(d.mask(h),d.ctx.clip(),d.path(p)),d.ctx.shadowOffsetX=A.offsetX.number+v,d.ctx.shadowOffsetY=A.offsetY.number,d.ctx.shadowColor=ia(A.color),d.ctx.shadowBlur=A.blur.number,d.ctx.fillStyle=A.inset?ia(A.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),f.label=2;case 2:s=0,l=0,u=i,f.label=3;case 3:return l<u.length?(c=u[l],c.style!==0&&!Ac(c.color)&&c.width>0?c.style!==2?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,s,r.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return c.style!==3?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,s,r.curves,3)];case 6:return f.sent(),[3,11];case 7:return c.style!==4?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,s,r.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,s,r.curves)];case 10:f.sent(),f.label=11;case 11:s++,f.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(r,n,a,i,o){return Ga(this,void 0,void 0,function(){var s,l,u,c,d,f,A,h,v,p,g,m,y,b,w,x,w,x;return Fa(this,function(S){return this.ctx.save(),s=OHe(i,a),l=YU(i,a),o===2&&(this.path(l),this.ctx.clip()),lo(l[0])?(u=l[0].start.x,c=l[0].start.y):(u=l[0].x,c=l[0].y),lo(l[1])?(d=l[1].end.x,f=l[1].end.y):(d=l[1].x,f=l[1].y),a===0||a===2?A=Math.abs(u-d):A=Math.abs(c-f),this.ctx.beginPath(),o===3?this.formatPath(s):this.formatPath(l.slice(0,2)),h=n<3?n*3:n*2,v=n<3?n*2:n,o===3&&(h=n,v=n),p=!0,A<=h*2?p=!1:A<=h*2+v?(g=A/(2*h+v),h*=g,v*=g):(m=Math.floor((A+v)/(h+v)),y=(A-m*h)/(m-1),b=(A-(m+1)*h)/m,v=b<=0||Math.abs(v-y)<Math.abs(v-b)?y:b),p&&(o===3?this.ctx.setLineDash([0,h+v]):this.ctx.setLineDash([h,v])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=ia(r),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(lo(l[0])&&(w=l[3],x=l[0],this.ctx.beginPath(),this.formatPath([new gt(w.end.x,w.end.y),new gt(x.start.x,x.start.y)]),this.ctx.stroke()),lo(l[1])&&(w=l[1],x=l[2],this.ctx.beginPath(),this.formatPath([new gt(w.end.x,w.end.y),new gt(x.start.x,x.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(r){return Ga(this,void 0,void 0,function(){var n;return Fa(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ia(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=kHe(r),[4,this.renderStack(n)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(CZ),GHe=function(e){return e instanceof oZ||e instanceof iZ?!0:e instanceof vP&&e.type!==ww&&e.type!==xw},KHe=function(e,t){switch(e){case 0:return _w(t);case 2:return EHe(t);case 1:default:return Bw(t)}},jHe=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},YHe=["-apple-system","system-ui"],XHe=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return YHe.indexOf(t)===-1}):e},qHe=function(e){hs(t,e);function t(r,n){var a=e.call(this,r,n)||this;return a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=n,a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),a}return t.prototype.render=function(r){return Ga(this,void 0,void 0,function(){var n,a;return Fa(this,function(i){switch(i.label){case 0:return n=sD(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,ZHe(n)];case 1:return a=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ia(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(CZ),ZHe=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},JHe=function(){function e(t){var r=t.id,n=t.enabled;this.id=r,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,bb([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,bb([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,bb([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,bb([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),eze=function(){function e(t,r){var n;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new JHe({id:this.instanceName,enabled:t.logging}),this.cache=(n=t.cache)!==null&&n!==void 0?n:new bHe(this,t)}return e.instanceCount=1,e}(),tze=function(e,t){return t===void 0&&(t={}),rze(e,t)};typeof window!="undefined"&&gZ.setContext(window);var rze=function(e,t){return Ga(void 0,void 0,void 0,function(){var r,n,a,i,o,s,l,u,c,d,f,A,h,v,p,g,m,y,b,w,S,x,S,_,B,T,E,I,R,D,k,F,P,O,H,V,W,Z,ee,ae;return Fa(this,function(ne){switch(ne.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(n=r.defaultView,!n)throw new Error("Document is not attached to a Window");return a={allowTaint:(_=t.allowTaint)!==null&&_!==void 0?_:!1,imageTimeout:(B=t.imageTimeout)!==null&&B!==void 0?B:15e3,proxy:t.proxy,useCORS:(T=t.useCORS)!==null&&T!==void 0?T:!1},i=GR({logging:(E=t.logging)!==null&&E!==void 0?E:!0,cache:t.cache},a),o={windowWidth:(I=t.windowWidth)!==null&&I!==void 0?I:n.innerWidth,windowHeight:(R=t.windowHeight)!==null&&R!==void 0?R:n.innerHeight,scrollX:(D=t.scrollX)!==null&&D!==void 0?D:n.pageXOffset,scrollY:(k=t.scrollY)!==null&&k!==void 0?k:n.pageYOffset},s=new ql(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),l=new eze(i,s),u=(F=t.foreignObjectRendering)!==null&&F!==void 0?F:!1,c={allowTaint:(P=t.allowTaint)!==null&&P!==void 0?P:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:u,copyStyles:u},l.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),d=new GU(l,e,c),f=d.clonedReferenceElement,f?[4,d.toIFrame(r,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return A=ne.sent(),h=pP(f)||nHe(f)?M5e(f.ownerDocument):TS(l,f),v=h.width,p=h.height,g=h.left,m=h.top,y=nze(l,f,t.backgroundColor),b={canvas:t.canvas,backgroundColor:y,scale:(H=(O=t.scale)!==null&&O!==void 0?O:n.devicePixelRatio)!==null&&H!==void 0?H:1,x:((V=t.x)!==null&&V!==void 0?V:0)+g,y:((W=t.y)!==null&&W!==void 0?W:0)+m,width:(Z=t.width)!==null&&Z!==void 0?Z:Math.ceil(v),height:(ee=t.height)!==null&&ee!==void 0?ee:Math.ceil(p)},u?(l.logger.debug("Document cloned, using foreign object rendering"),S=new qHe(l,b),[4,S.render(f)]):[3,3];case 2:return w=ne.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+g+","+m+" with size "+v+"x"+p+" using computed rendering"),l.logger.debug("Starting DOM parsing"),x=uZ(l,f),y===x.styles.backgroundColor&&(x.styles.backgroundColor=Nl.TRANSPARENT),l.logger.debug("Starting renderer for element at "+b.x+","+b.y+" with size "+b.width+"x"+b.height),S=new WHe(l,b),[4,S.render(x)];case 4:w=ne.sent(),ne.label=5;case 5:return(!((ae=t.removeContainer)!==null&&ae!==void 0)||ae)&&(GU.destroy(A)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,w]}})})},nze=function(e,t,r){var n=t.ownerDocument,a=n.documentElement?a0(e,getComputedStyle(n.documentElement).backgroundColor):Nl.TRANSPARENT,i=n.body?a0(e,getComputedStyle(n.body).backgroundColor):Nl.TRANSPARENT,o=typeof r=="string"?a0(e,r):r===null?Nl.TRANSPARENT:4294967295;return t===n.documentElement?Ac(a)?Ac(i)?o:i:a:o};const hxt=e=>new Promise(t=>{try{const r=new FileReader;r.onload=n=>{n.target&&t(n.target.result)},r.readAsText(e)}catch(r){window.$message.error("\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25\uFF01")}}),SZ=(e,t=new Date().getTime(),r)=>{const n=document.createElement("a");n.download=`${t}.${r}`,n.style.display="none",n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},vxt=(e,t=new Date().getTime(),r)=>{const n=new Blob([e]);SZ(URL.createObjectURL(n),t,r)};function aze(e){return typeof e=="string"}function ize(e){return typeof e=="number"}function pxt(e){return Array.isArray(e)}const gxt=(e,t=2)=>aze(e)?parseFloat(parseFloat(e).toFixed(2)):e,oze=e=>ize(e)?`${e}`:du(e)?JSON.stringify(e):e;function sze(){this.__data__=[],this.size=0}var lze=sze;function uze(e,t){return e===t||e!==e&&t!==t}var _Z=uze,cze=_Z;function dze(e,t){for(var r=e.length;r--;)if(cze(e[r][0],t))return r;return-1}var OS=dze,fze=OS,Aze=Array.prototype,hze=Aze.splice;function vze(e){var t=this.__data__,r=fze(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():hze.call(t,r,1),--this.size,!0}var pze=vze,gze=OS;function mze(e){var t=this.__data__,r=gze(t,e);return r<0?void 0:t[r][1]}var yze=mze,bze=OS;function xze(e){return bze(this.__data__,e)>-1}var wze=xze,Cze=OS;function Sze(e,t){var r=this.__data__,n=Cze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var _ze=Sze,Bze=lze,Tze=pze,Eze=yze,Ize=wze,Rze=_ze;function jv(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}jv.prototype.clear=Bze;jv.prototype.delete=Tze;jv.prototype.get=Eze;jv.prototype.has=Ize;jv.prototype.set=Rze;var $S=jv,Dze=$S;function Fze(){this.__data__=new Dze,this.size=0}var Mze=Fze;function kze(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Pze=kze;function Lze(e){return this.__data__.get(e)}var Oze=Lze;function $ze(e){return this.__data__.has(e)}var Uze=$ze,Hze=iy,zze=du,Nze="[object AsyncFunction]",Qze="[object Function]",Vze="[object GeneratorFunction]",Wze="[object Proxy]";function Gze(e){if(!zze(e))return!1;var t=Hze(e);return t==Qze||t==Vze||t==Nze||t==Wze}var BZ=Gze,Kze=As,jze=Kze["__core-js_shared__"],Yze=jze,_2=Yze,qU=function(){var e=/[^.]+$/.exec(_2&&_2.keys&&_2.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Xze(e){return!!qU&&qU in e}var qze=Xze,Zze=Function.prototype,Jze=Zze.toString;function eNe(e){if(e!=null){try{return Jze.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var TZ=eNe,tNe=BZ,rNe=qze,nNe=du,aNe=TZ,iNe=/[\\^$.*+?()[\]{}|]/g,oNe=/^\[object .+?Constructor\]$/,sNe=Function.prototype,lNe=Object.prototype,uNe=sNe.toString,cNe=lNe.hasOwnProperty,dNe=RegExp("^"+uNe.call(cNe).replace(iNe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fNe(e){if(!nNe(e)||rNe(e))return!1;var t=tNe(e)?dNe:oNe;return t.test(aNe(e))}var ANe=fNe;function hNe(e,t){return e==null?void 0:e[t]}var vNe=hNe,pNe=ANe,gNe=vNe;function mNe(e,t){var r=gNe(e,t);return pNe(r)?r:void 0}var vA=mNe,yNe=vA,bNe=As,xNe=yNe(bNe,"Map"),gP=xNe,wNe=vA,CNe=wNe(Object,"create"),US=CNe,ZU=US;function SNe(){this.__data__=ZU?ZU(null):{},this.size=0}var _Ne=SNe;function BNe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var TNe=BNe,ENe=US,INe="__lodash_hash_undefined__",RNe=Object.prototype,DNe=RNe.hasOwnProperty;function FNe(e){var t=this.__data__;if(ENe){var r=t[e];return r===INe?void 0:r}return DNe.call(t,e)?t[e]:void 0}var MNe=FNe,kNe=US,PNe=Object.prototype,LNe=PNe.hasOwnProperty;function ONe(e){var t=this.__data__;return kNe?t[e]!==void 0:LNe.call(t,e)}var $Ne=ONe,UNe=US,HNe="__lodash_hash_undefined__";function zNe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=UNe&&t===void 0?HNe:t,this}var NNe=zNe,QNe=_Ne,VNe=TNe,WNe=MNe,GNe=$Ne,KNe=NNe;function Yv(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yv.prototype.clear=QNe;Yv.prototype.delete=VNe;Yv.prototype.get=WNe;Yv.prototype.has=GNe;Yv.prototype.set=KNe;var jNe=Yv,JU=jNe,YNe=$S,XNe=gP;function qNe(){this.size=0,this.__data__={hash:new JU,map:new(XNe||YNe),string:new JU}}var ZNe=qNe;function JNe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var e8e=JNe,t8e=e8e;function r8e(e,t){var r=e.__data__;return t8e(t)?r[typeof t=="string"?"string":"hash"]:r.map}var HS=r8e,n8e=HS;function a8e(e){var t=n8e(this,e).delete(e);return this.size-=t?1:0,t}var i8e=a8e,o8e=HS;function s8e(e){return o8e(this,e).get(e)}var l8e=s8e,u8e=HS;function c8e(e){return u8e(this,e).has(e)}var d8e=c8e,f8e=HS;function A8e(e,t){var r=f8e(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var h8e=A8e,v8e=ZNe,p8e=i8e,g8e=l8e,m8e=d8e,y8e=h8e;function Xv(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xv.prototype.clear=v8e;Xv.prototype.delete=p8e;Xv.prototype.get=g8e;Xv.prototype.has=m8e;Xv.prototype.set=y8e;var b8e=Xv,x8e=$S,w8e=gP,C8e=b8e,S8e=200;function _8e(e,t){var r=this.__data__;if(r instanceof x8e){var n=r.__data__;if(!w8e||n.length<S8e-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new C8e(n)}return r.set(e,t),this.size=r.size,this}var B8e=_8e,T8e=$S,E8e=Mze,I8e=Pze,R8e=Oze,D8e=Uze,F8e=B8e;function qv(e){var t=this.__data__=new T8e(e);this.size=t.size}qv.prototype.clear=E8e;qv.prototype.delete=I8e;qv.prototype.get=R8e;qv.prototype.has=D8e;qv.prototype.set=F8e;var M8e=qv;function k8e(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var P8e=k8e,L8e=vA,O8e=function(){try{var e=L8e(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),$8e=O8e,eH=$8e;function U8e(e,t,r){t=="__proto__"&&eH?eH(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var EZ=U8e,H8e=EZ,z8e=_Z,N8e=Object.prototype,Q8e=N8e.hasOwnProperty;function V8e(e,t,r){var n=e[t];(!(Q8e.call(e,t)&&z8e(n,r))||r===void 0&&!(t in e))&&H8e(e,t,r)}var IZ=V8e,W8e=IZ,G8e=EZ;function K8e(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),a?G8e(r,s,l):W8e(r,s,l)}return r}var zS=K8e;function j8e(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Y8e=j8e,X8e=iy,q8e=Gv,Z8e="[object Arguments]";function J8e(e){return q8e(e)&&X8e(e)==Z8e}var e6e=J8e,tH=e6e,t6e=Gv,RZ=Object.prototype,r6e=RZ.hasOwnProperty,n6e=RZ.propertyIsEnumerable,a6e=tH(function(){return arguments}())?tH:function(e){return t6e(e)&&r6e.call(e,"callee")&&!n6e.call(e,"callee")},i6e=a6e,o6e=Array.isArray,mP=o6e,Ew={exports:{}};function s6e(){return!1}var l6e=s6e;(function(e,t){var r=As,n=l6e,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(Ew,Ew.exports);var u6e=9007199254740991,c6e=/^(?:0|[1-9]\d*)$/;function d6e(e,t){var r=typeof e;return t=t==null?u6e:t,!!t&&(r=="number"||r!="symbol"&&c6e.test(e))&&e>-1&&e%1==0&&e<t}var f6e=d6e,A6e=9007199254740991;function h6e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=A6e}var DZ=h6e,v6e=iy,p6e=DZ,g6e=Gv,m6e="[object Arguments]",y6e="[object Array]",b6e="[object Boolean]",x6e="[object Date]",w6e="[object Error]",C6e="[object Function]",S6e="[object Map]",_6e="[object Number]",B6e="[object Object]",T6e="[object RegExp]",E6e="[object Set]",I6e="[object String]",R6e="[object WeakMap]",D6e="[object ArrayBuffer]",F6e="[object DataView]",M6e="[object Float32Array]",k6e="[object Float64Array]",P6e="[object Int8Array]",L6e="[object Int16Array]",O6e="[object Int32Array]",$6e="[object Uint8Array]",U6e="[object Uint8ClampedArray]",H6e="[object Uint16Array]",z6e="[object Uint32Array]",un={};un[M6e]=un[k6e]=un[P6e]=un[L6e]=un[O6e]=un[$6e]=un[U6e]=un[H6e]=un[z6e]=!0;un[m6e]=un[y6e]=un[D6e]=un[b6e]=un[F6e]=un[x6e]=un[w6e]=un[C6e]=un[S6e]=un[_6e]=un[B6e]=un[T6e]=un[E6e]=un[I6e]=un[R6e]=!1;function N6e(e){return g6e(e)&&p6e(e.length)&&!!un[v6e(e)]}var Q6e=N6e;function V6e(e){return function(t){return e(t)}}var yP=V6e,q0={exports:{}};(function(e,t){var r=yq,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch(u){}}();e.exports=s})(q0,q0.exports);var W6e=Q6e,G6e=yP,rH=q0.exports,nH=rH&&rH.isTypedArray,K6e=nH?G6e(nH):W6e,j6e=K6e,Y6e=Y8e,X6e=i6e,q6e=mP,Z6e=Ew.exports,J6e=f6e,eQe=j6e,tQe=Object.prototype,rQe=tQe.hasOwnProperty;function nQe(e,t){var r=q6e(e),n=!r&&X6e(e),a=!r&&!n&&Z6e(e),i=!r&&!n&&!a&&eQe(e),o=r||n||a||i,s=o?Y6e(e.length,String):[],l=s.length;for(var u in e)(t||rQe.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||J6e(u,l)))&&s.push(u);return s}var FZ=nQe,aQe=Object.prototype;function iQe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||aQe;return e===r}var bP=iQe;function oQe(e,t){return function(r){return e(t(r))}}var MZ=oQe,sQe=MZ,lQe=sQe(Object.keys,Object),uQe=lQe,cQe=bP,dQe=uQe,fQe=Object.prototype,AQe=fQe.hasOwnProperty;function hQe(e){if(!cQe(e))return dQe(e);var t=[];for(var r in Object(e))AQe.call(e,r)&&r!="constructor"&&t.push(r);return t}var vQe=hQe,pQe=BZ,gQe=DZ;function mQe(e){return e!=null&&gQe(e.length)&&!pQe(e)}var kZ=mQe,yQe=FZ,bQe=vQe,xQe=kZ;function wQe(e){return xQe(e)?yQe(e):bQe(e)}var xP=wQe,CQe=zS,SQe=xP;function _Qe(e,t){return e&&CQe(t,SQe(t),e)}var BQe=_Qe;function TQe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var EQe=TQe,IQe=du,RQe=bP,DQe=EQe,FQe=Object.prototype,MQe=FQe.hasOwnProperty;function kQe(e){if(!IQe(e))return DQe(e);var t=RQe(e),r=[];for(var n in e)n=="constructor"&&(t||!MQe.call(e,n))||r.push(n);return r}var PQe=kQe,LQe=FZ,OQe=PQe,$Qe=kZ;function UQe(e){return $Qe(e)?LQe(e,!0):OQe(e)}var wP=UQe,HQe=zS,zQe=wP;function NQe(e,t){return e&&HQe(t,zQe(t),e)}var QQe=NQe,hD={exports:{}};(function(e,t){var r=As,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var d=u.length,f=s?s(d):new u.constructor(d);return u.copy(f),f}e.exports=l})(hD,hD.exports);function VQe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var WQe=VQe;function GQe(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var KQe=GQe;function jQe(){return[]}var PZ=jQe,YQe=KQe,XQe=PZ,qQe=Object.prototype,ZQe=qQe.propertyIsEnumerable,aH=Object.getOwnPropertySymbols,JQe=aH?function(e){return e==null?[]:(e=Object(e),YQe(aH(e),function(t){return ZQe.call(e,t)}))}:XQe,CP=JQe,eVe=zS,tVe=CP;function rVe(e,t){return eVe(e,tVe(e),t)}var nVe=rVe;function aVe(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var LZ=aVe,iVe=MZ,oVe=iVe(Object.getPrototypeOf,Object),OZ=oVe,sVe=LZ,lVe=OZ,uVe=CP,cVe=PZ,dVe=Object.getOwnPropertySymbols,fVe=dVe?function(e){for(var t=[];e;)sVe(t,uVe(e)),e=lVe(e);return t}:cVe,$Z=fVe,AVe=zS,hVe=$Z;function vVe(e,t){return AVe(e,hVe(e),t)}var pVe=vVe,gVe=LZ,mVe=mP;function yVe(e,t,r){var n=t(e);return mVe(e)?n:gVe(n,r(e))}var UZ=yVe,bVe=UZ,xVe=CP,wVe=xP;function CVe(e){return bVe(e,wVe,xVe)}var SVe=CVe,_Ve=UZ,BVe=$Z,TVe=wP;function EVe(e){return _Ve(e,TVe,BVe)}var IVe=EVe,RVe=vA,DVe=As,FVe=RVe(DVe,"DataView"),MVe=FVe,kVe=vA,PVe=As,LVe=kVe(PVe,"Promise"),OVe=LVe,$Ve=vA,UVe=As,HVe=$Ve(UVe,"Set"),zVe=HVe,NVe=vA,QVe=As,VVe=NVe(QVe,"WeakMap"),WVe=VVe,vD=MVe,pD=gP,gD=OVe,mD=zVe,yD=WVe,HZ=iy,Zv=TZ,iH="[object Map]",GVe="[object Object]",oH="[object Promise]",sH="[object Set]",lH="[object WeakMap]",uH="[object DataView]",KVe=Zv(vD),jVe=Zv(pD),YVe=Zv(gD),XVe=Zv(mD),qVe=Zv(yD),jd=HZ;(vD&&jd(new vD(new ArrayBuffer(1)))!=uH||pD&&jd(new pD)!=iH||gD&&jd(gD.resolve())!=oH||mD&&jd(new mD)!=sH||yD&&jd(new yD)!=lH)&&(jd=function(e){var t=HZ(e),r=t==GVe?e.constructor:void 0,n=r?Zv(r):"";if(n)switch(n){case KVe:return uH;case jVe:return iH;case YVe:return oH;case XVe:return sH;case qVe:return lH}return t});var SP=jd,ZVe=Object.prototype,JVe=ZVe.hasOwnProperty;function e7e(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&JVe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var t7e=e7e,r7e=As,n7e=r7e.Uint8Array,a7e=n7e,cH=a7e;function i7e(e){var t=new e.constructor(e.byteLength);return new cH(t).set(new cH(e)),t}var _P=i7e,o7e=_P;function s7e(e,t){var r=t?o7e(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var l7e=s7e,u7e=/\w*$/;function c7e(e){var t=new e.constructor(e.source,u7e.exec(e));return t.lastIndex=e.lastIndex,t}var d7e=c7e,dH=uP,fH=dH?dH.prototype:void 0,AH=fH?fH.valueOf:void 0;function f7e(e){return AH?Object(AH.call(e)):{}}var A7e=f7e,h7e=_P;function v7e(e,t){var r=t?h7e(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var p7e=v7e,g7e=_P,m7e=l7e,y7e=d7e,b7e=A7e,x7e=p7e,w7e="[object Boolean]",C7e="[object Date]",S7e="[object Map]",_7e="[object Number]",B7e="[object RegExp]",T7e="[object Set]",E7e="[object String]",I7e="[object Symbol]",R7e="[object ArrayBuffer]",D7e="[object DataView]",F7e="[object Float32Array]",M7e="[object Float64Array]",k7e="[object Int8Array]",P7e="[object Int16Array]",L7e="[object Int32Array]",O7e="[object Uint8Array]",$7e="[object Uint8ClampedArray]",U7e="[object Uint16Array]",H7e="[object Uint32Array]";function z7e(e,t,r){var n=e.constructor;switch(t){case R7e:return g7e(e);case w7e:case C7e:return new n(+e);case D7e:return m7e(e,r);case F7e:case M7e:case k7e:case P7e:case L7e:case O7e:case $7e:case U7e:case H7e:return x7e(e,r);case S7e:return new n;case _7e:case E7e:return new n(e);case B7e:return y7e(e);case T7e:return new n;case I7e:return b7e(e)}}var N7e=z7e,Q7e=du,hH=Object.create,V7e=function(){function e(){}return function(t){if(!Q7e(t))return{};if(hH)return hH(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),W7e=V7e,G7e=W7e,K7e=OZ,j7e=bP;function Y7e(e){return typeof e.constructor=="function"&&!j7e(e)?G7e(K7e(e)):{}}var X7e=Y7e,q7e=SP,Z7e=Gv,J7e="[object Map]";function e9e(e){return Z7e(e)&&q7e(e)==J7e}var t9e=e9e,r9e=t9e,n9e=yP,vH=q0.exports,pH=vH&&vH.isMap,a9e=pH?n9e(pH):r9e,i9e=a9e,o9e=SP,s9e=Gv,l9e="[object Set]";function u9e(e){return s9e(e)&&o9e(e)==l9e}var c9e=u9e,d9e=c9e,f9e=yP,gH=q0.exports,mH=gH&&gH.isSet,A9e=mH?f9e(mH):d9e,h9e=A9e,v9e=M8e,p9e=P8e,g9e=IZ,m9e=BQe,y9e=QQe,b9e=hD.exports,x9e=WQe,w9e=nVe,C9e=pVe,S9e=SVe,_9e=IVe,B9e=SP,T9e=t7e,E9e=N7e,I9e=X7e,R9e=mP,D9e=Ew.exports,F9e=i9e,M9e=du,k9e=h9e,P9e=xP,L9e=wP,O9e=1,$9e=2,U9e=4,zZ="[object Arguments]",H9e="[object Array]",z9e="[object Boolean]",N9e="[object Date]",Q9e="[object Error]",NZ="[object Function]",V9e="[object GeneratorFunction]",W9e="[object Map]",G9e="[object Number]",QZ="[object Object]",K9e="[object RegExp]",j9e="[object Set]",Y9e="[object String]",X9e="[object Symbol]",q9e="[object WeakMap]",Z9e="[object ArrayBuffer]",J9e="[object DataView]",eWe="[object Float32Array]",tWe="[object Float64Array]",rWe="[object Int8Array]",nWe="[object Int16Array]",aWe="[object Int32Array]",iWe="[object Uint8Array]",oWe="[object Uint8ClampedArray]",sWe="[object Uint16Array]",lWe="[object Uint32Array]",rn={};rn[zZ]=rn[H9e]=rn[Z9e]=rn[J9e]=rn[z9e]=rn[N9e]=rn[eWe]=rn[tWe]=rn[rWe]=rn[nWe]=rn[aWe]=rn[W9e]=rn[G9e]=rn[QZ]=rn[K9e]=rn[j9e]=rn[Y9e]=rn[X9e]=rn[iWe]=rn[oWe]=rn[sWe]=rn[lWe]=!0;rn[Q9e]=rn[NZ]=rn[q9e]=!1;function fx(e,t,r,n,a,i){var o,s=t&O9e,l=t&$9e,u=t&U9e;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!M9e(e))return e;var c=R9e(e);if(c){if(o=T9e(e),!s)return x9e(e,o)}else{var d=B9e(e),f=d==NZ||d==V9e;if(D9e(e))return b9e(e,s);if(d==QZ||d==zZ||f&&!a){if(o=l||f?{}:I9e(e),!s)return l?C9e(e,y9e(o,e)):w9e(e,m9e(o,e))}else{if(!rn[d])return a?e:{};o=E9e(e,d,s)}}i||(i=new v9e);var A=i.get(e);if(A)return A;i.set(e,o),k9e(e)?e.forEach(function(p){o.add(fx(p,t,r,p,e,i))}):F9e(e)&&e.forEach(function(p,g){o.set(g,fx(p,t,r,g,e,i))});var h=u?l?_9e:S9e:l?L9e:P9e,v=c?void 0:h(e);return p9e(v||e,function(p,g){v&&(g=p,p=e[g]),g9e(o,g,fx(p,t,r,g,e,i))}),o}var uWe=fx,cWe=uWe,dWe=1,fWe=4;function AWe(e){return cWe(e,dWe|fWe)}var yH=AWe,hWe=(e=>(e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e))(hWe||{}),vWe=(e=>(e.DRAG_KEY="ChartData",e))(vWe||{}),pWe=(e=>(e.CHART="SaveChart",e.JSON="SaveJSON",e))(pWe||{}),gWe=(e=>(e.ARROW_UP="up",e.ARROW_RIGHT="right",e.ARROW_DOWN="down",e.ARROW_LEFT="left",e.DELETE="delete",e.COPY="copy",e.CUT="cut",e.PARSE="parse",e.TOP="top",e.BOTTOM="bottom",e.UP="up",e.DOWN="down",e.CLEAR="clear",e.GROUP="group",e.UN_GROUP="unGroup",e.BACK="back",e.FORWORD="forward",e.SAVE="save",e.LOCK="lock",e.UNLOCK="unLock",e.HIDE="hide",e.SHOW="show",e))(gWe||{}),VZ=(e=>(e.CTRL="ctrl",e.SHIFT="shift",e.ALT=" alt",e.CTRL_SOURCE_KEY="control",e.SHIFT_SOURCE_KEY="shift",e.ALT_SOURCE_KEY="alt",e))(VZ||{}),mWe=(e=>(e.CTRL="\u2318",e.SHIFT="\u21E7",e.ALT="\u2325",e.CTRL_SOURCE_KEY="\u2318",e.SHIFT_SOURCE_KEY="\u21E7",e.ALT_SOURCE_KEY="\u2325",e))(mWe||{});const mxt=()=>!1,yxt=(e=10)=>Number(Math.random().toString().substring(2,e)+Date.now()).toString(36),bxt=(e,t={})=>()=>C(Ok,t,{default:()=>C(e)}),xxt=(e,t={},r="span")=>()=>C(r,t,{default:()=>window.$t(e)}),yWe=()=>F5e,wxt=(e,t)=>{if(e)return yb.isFullscreen;if(t)return yb.isEnabled;if(yb.isEnabled){yb.toggle();return}window.$message.warning("\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u5168\u5C4F\u529F\u80FD\uFF01")},Cxt=(e,t,r)=>{t&&(e.attr.x=t),r&&(e.attr.y=r)},Sxt=e=>(URL||window.URL||window.webkitURL).createObjectURL(e),_xt=(e,t,r,n,a)=>{!e||e.addEventListener(t,D5e(r,n||300,{leading:!0,trailing:!1}),a)},Bxt=(e,t,r)=>{!e||e.removeEventListener(t,r)},Txt=(e,t)=>{if(!e){window.$message.error("\u5BFC\u51FA\u5931\u8D25\uFF01"),t&&t();return}tze(e,{backgroundColor:null,allowTaint:!0,useCORS:!0}).then(r=>{window.$message.success("\u5BFC\u51FA\u6210\u529F\uFF01"),SZ(r.toDataURL(),void 0,"png"),t&&t()})},Ext=(e,t,r,n,a,i)=>{try{if(!r)return e;const s=new Function("data","res",r)(yH(e),yH(t)),l=n?oze(s):s;return i&&i(l),l}catch(o){return a&&a(o),"\u51FD\u6570\u6267\u884C\u9519\u8BEF"}},Ixt=(e,t)=>{switch(t){case Dh.SECOND:return e*1e3;case Dh.MINUTE:return e*1e3*60;case Dh.HOUR:return e*1e3*60*60;case Dh.DAY:return e*1e3*60*60*24;default:return e*1e3}},Rxt=e=>{const t=new Map([[17,VZ.CTRL]]),r=document.getElementById("keyboard-dress-show");if(!!r){if(!e){r.innerText="";return}e&&t.has(e)&&(r.innerText=`\u6309\u4E0B\u4E86\u300C${t.get(e)}\u300D\u952E`)}};var WZ={exports:{}},Er={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(sr,function(){var r=r||function(n,a){var i;if(typeof window!="undefined"&&window.crypto&&(i=window.crypto),typeof self!="undefined"&&self.crypto&&(i=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window!="undefined"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof sr!="undefined"&&sr.crypto&&(i=sr.crypto),!i&&typeof JBe=="function")try{i=require("crypto")}catch(m){}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch(m){}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function m(){}return function(y){var b;return m.prototype=y,b=new m,m.prototype=null,b}}(),l={},u=l.lib={},c=u.Base=function(){return{extend:function(m){var y=s(this);return m&&y.mixIn(m),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var y in m)m.hasOwnProperty(y)&&(this[y]=m[y]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=u.WordArray=c.extend({init:function(m,y){m=this.words=m||[],y!=a?this.sigBytes=y:this.sigBytes=m.length*4},toString:function(m){return(m||A).stringify(this)},concat:function(m){var y=this.words,b=m.words,w=this.sigBytes,x=m.sigBytes;if(this.clamp(),w%4)for(var S=0;S<x;S++){var _=b[S>>>2]>>>24-S%4*8&255;y[w+S>>>2]|=_<<24-(w+S)%4*8}else for(var B=0;B<x;B+=4)y[w+B>>>2]=b[B>>>2];return this.sigBytes+=x,this},clamp:function(){var m=this.words,y=this.sigBytes;m[y>>>2]&=4294967295<<32-y%4*8,m.length=n.ceil(y/4)},clone:function(){var m=c.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var y=[],b=0;b<m;b+=4)y.push(o());return new d.init(y,m)}}),f=l.enc={},A=f.Hex={stringify:function(m){for(var y=m.words,b=m.sigBytes,w=[],x=0;x<b;x++){var S=y[x>>>2]>>>24-x%4*8&255;w.push((S>>>4).toString(16)),w.push((S&15).toString(16))}return w.join("")},parse:function(m){for(var y=m.length,b=[],w=0;w<y;w+=2)b[w>>>3]|=parseInt(m.substr(w,2),16)<<24-w%8*4;return new d.init(b,y/2)}},h=f.Latin1={stringify:function(m){for(var y=m.words,b=m.sigBytes,w=[],x=0;x<b;x++){var S=y[x>>>2]>>>24-x%4*8&255;w.push(String.fromCharCode(S))}return w.join("")},parse:function(m){for(var y=m.length,b=[],w=0;w<y;w++)b[w>>>2]|=(m.charCodeAt(w)&255)<<24-w%4*8;return new d.init(b,y)}},v=f.Utf8={stringify:function(m){try{return decodeURIComponent(escape(h.stringify(m)))}catch(y){throw new Error("Malformed UTF-8 data")}},parse:function(m){return h.parse(unescape(encodeURIComponent(m)))}},p=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=v.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var y,b=this._data,w=b.words,x=b.sigBytes,S=this.blockSize,_=S*4,B=x/_;m?B=n.ceil(B):B=n.max((B|0)-this._minBufferSize,0);var T=B*S,E=n.min(T*4,x);if(T){for(var I=0;I<T;I+=S)this._doProcessBlock(w,I);y=w.splice(0,T),b.sigBytes-=E}return new d.init(y,E)},clone:function(){var m=c.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});u.Hasher=p.extend({cfg:c.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(m){return function(y,b){return new m.init(b).finalize(y)}},_createHmacHelper:function(m){return function(y,b){return new g.HMAC.init(m,b).finalize(y)}}});var g=l.algo={};return l}(Math);return r})})(Er);var ly={exports:{}};(function(e,t){(function(r,n){e.exports=n(Er.exports)})(sr,function(r){return function(n){var a=r,i=a.lib,o=i.Base,s=i.WordArray,l=a.x64={};l.Word=o.extend({init:function(u,c){this.high=u,this.low=c}}),l.WordArray=o.extend({init:function(u,c){u=this.words=u||[],c!=n?this.sigBytes=c:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,c=u.length,d=[],f=0;f<c;f++){var A=u[f];d.push(A.high),d.push(A.low)}return s.create(d,this.sigBytes)},clone:function(){for(var u=o.clone.call(this),c=u.words=this.words.slice(0),d=c.length,f=0;f<d;f++)c[f]=c[f].clone();return u}})}(),r})})(ly);var GZ={exports:{}};(function(e,t){(function(r,n){e.exports=n(Er.exports)})(sr,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,a=n.lib,i=a.WordArray,o=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var u=l.byteLength,c=[],d=0;d<u;d++)c[d>>>2]|=l[d]<<24-d%4*8;o.call(this,c,u)}else o.apply(this,arguments)};s.prototype=i}}(),r.lib.WordArray})})(GZ);var KZ={exports:{}};(function(e,t){(function(r,n){e.exports=n(Er.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var u=l.words,c=l.sigBytes,d=[],f=0;f<c;f+=2){var A=u[f>>>2]>>>16-f%4*8&65535;d.push(String.fromCharCode(A))}return d.join("")},parse:function(l){for(var u=l.length,c=[],d=0;d<u;d++)c[d>>>1]|=l.charCodeAt(d)<<16-d%2*16;return i.create(c,u*2)}},o.Utf16LE={stringify:function(l){for(var u=l.words,c=l.sigBytes,d=[],f=0;f<c;f+=2){var A=s(u[f>>>2]>>>16-f%4*8&65535);d.push(String.fromCharCode(A))}return d.join("")},parse:function(l){for(var u=l.length,c=[],d=0;d<u;d++)c[d>>>1]|=s(l.charCodeAt(d)<<16-d%2*16);return i.create(c,u*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})})(KZ);var pA={exports:{}};(function(e,t){(function(r,n){e.exports=n(Er.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Base64={stringify:function(l){var u=l.words,c=l.sigBytes,d=this._map;l.clamp();for(var f=[],A=0;A<c;A+=3)for(var h=u[A>>>2]>>>24-A%4*8&255,v=u[A+1>>>2]>>>24-(A+1)%4*8&255,p=u[A+2>>>2]>>>24-(A+2)%4*8&255,g=h<<16|v<<8|p,m=0;m<4&&A+m*.75<c;m++)f.push(d.charAt(g>>>6*(3-m)&63));var y=d.charAt(64);if(y)for(;f.length%4;)f.push(y);return f.join("")},parse:function(l){var u=l.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<c.length;f++)d[c.charCodeAt(f)]=f}var A=c.charAt(64);if(A){var h=l.indexOf(A);h!==-1&&(u=h)}return s(l,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,u,c){for(var d=[],f=0,A=0;A<u;A++)if(A%4){var h=c[l.charCodeAt(A-1)]<<A%4*2,v=c[l.charCodeAt(A)]>>>6-A%4*2,p=h|v;d[f>>>2]|=p<<24-f%4*8,f++}return i.create(d,f)}}(),r.enc.Base64})})(pA);var jZ={exports:{}};(function(e,t){(function(r,n){e.exports=n(Er.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Base64url={stringify:function(l,u=!0){var c=l.words,d=l.sigBytes,f=u?this._safe_map:this._map;l.clamp();for(var A=[],h=0;h<d;h+=3)for(var v=c[h>>>2]>>>24-h%4*8&255,p=c[h+1>>>2]>>>24-(h+1)%4*8&255,g=c[h+2>>>2]>>>24-(h+2)%4*8&255,m=v<<16|p<<8|g,y=0;y<4&&h+y*.75<d;y++)A.push(f.charAt(m>>>6*(3-y)&63));var b=f.charAt(64);if(b)for(;A.length%4;)A.push(b);return A.join("")},parse:function(l,u=!0){var c=l.length,d=u?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var A=0;A<d.length;A++)f[d.charCodeAt(A)]=A}var h=d.charAt(64);if(h){var v=l.indexOf(h);v!==-1&&(c=v)}return s(l,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,u,c){for(var d=[],f=0,A=0;A<u;A++)if(A%4){var h=c[l.charCodeAt(A-1)]<<A%4*2,v=c[l.charCodeAt(A)]>>>6-A%4*2,p=h|v;d[f>>>2]|=p<<24-f%4*8,f++}return i.create(d,f)}}(),r.enc.Base64url})})(jZ);var gA={exports:{}};(function(e,t){(function(r,n){e.exports=n(Er.exports)})(sr,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=[];(function(){for(var v=0;v<64;v++)u[v]=n.abs(n.sin(v+1))*4294967296|0})();var c=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,p){for(var g=0;g<16;g++){var m=p+g,y=v[m];v[m]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var b=this._hash.words,w=v[p+0],x=v[p+1],S=v[p+2],_=v[p+3],B=v[p+4],T=v[p+5],E=v[p+6],I=v[p+7],R=v[p+8],D=v[p+9],k=v[p+10],F=v[p+11],P=v[p+12],O=v[p+13],H=v[p+14],V=v[p+15],W=b[0],Z=b[1],ee=b[2],ae=b[3];W=d(W,Z,ee,ae,w,7,u[0]),ae=d(ae,W,Z,ee,x,12,u[1]),ee=d(ee,ae,W,Z,S,17,u[2]),Z=d(Z,ee,ae,W,_,22,u[3]),W=d(W,Z,ee,ae,B,7,u[4]),ae=d(ae,W,Z,ee,T,12,u[5]),ee=d(ee,ae,W,Z,E,17,u[6]),Z=d(Z,ee,ae,W,I,22,u[7]),W=d(W,Z,ee,ae,R,7,u[8]),ae=d(ae,W,Z,ee,D,12,u[9]),ee=d(ee,ae,W,Z,k,17,u[10]),Z=d(Z,ee,ae,W,F,22,u[11]),W=d(W,Z,ee,ae,P,7,u[12]),ae=d(ae,W,Z,ee,O,12,u[13]),ee=d(ee,ae,W,Z,H,17,u[14]),Z=d(Z,ee,ae,W,V,22,u[15]),W=f(W,Z,ee,ae,x,5,u[16]),ae=f(ae,W,Z,ee,E,9,u[17]),ee=f(ee,ae,W,Z,F,14,u[18]),Z=f(Z,ee,ae,W,w,20,u[19]),W=f(W,Z,ee,ae,T,5,u[20]),ae=f(ae,W,Z,ee,k,9,u[21]),ee=f(ee,ae,W,Z,V,14,u[22]),Z=f(Z,ee,ae,W,B,20,u[23]),W=f(W,Z,ee,ae,D,5,u[24]),ae=f(ae,W,Z,ee,H,9,u[25]),ee=f(ee,ae,W,Z,_,14,u[26]),Z=f(Z,ee,ae,W,R,20,u[27]),W=f(W,Z,ee,ae,O,5,u[28]),ae=f(ae,W,Z,ee,S,9,u[29]),ee=f(ee,ae,W,Z,I,14,u[30]),Z=f(Z,ee,ae,W,P,20,u[31]),W=A(W,Z,ee,ae,T,4,u[32]),ae=A(ae,W,Z,ee,R,11,u[33]),ee=A(ee,ae,W,Z,F,16,u[34]),Z=A(Z,ee,ae,W,H,23,u[35]),W=A(W,Z,ee,ae,x,4,u[36]),ae=A(ae,W,Z,ee,B,11,u[37]),ee=A(ee,ae,W,Z,I,16,u[38]),Z=A(Z,ee,ae,W,k,23,u[39]),W=A(W,Z,ee,ae,O,4,u[40]),ae=A(ae,W,Z,ee,w,11,u[41]),ee=A(ee,ae,W,Z,_,16,u[42]),Z=A(Z,ee,ae,W,E,23,u[43]),W=A(W,Z,ee,ae,D,4,u[44]),ae=A(ae,W,Z,ee,P,11,u[45]),ee=A(ee,ae,W,Z,V,16,u[46]),Z=A(Z,ee,ae,W,S,23,u[47]),W=h(W,Z,ee,ae,w,6,u[48]),ae=h(ae,W,Z,ee,I,10,u[49]),ee=h(ee,ae,W,Z,H,15,u[50]),Z=h(Z,ee,ae,W,T,21,u[51]),W=h(W,Z,ee,ae,P,6,u[52]),ae=h(ae,W,Z,ee,_,10,u[53]),ee=h(ee,ae,W,Z,k,15,u[54]),Z=h(Z,ee,ae,W,x,21,u[55]),W=h(W,Z,ee,ae,R,6,u[56]),ae=h(ae,W,Z,ee,V,10,u[57]),ee=h(ee,ae,W,Z,E,15,u[58]),Z=h(Z,ee,ae,W,O,21,u[59]),W=h(W,Z,ee,ae,B,6,u[60]),ae=h(ae,W,Z,ee,F,10,u[61]),ee=h(ee,ae,W,Z,S,15,u[62]),Z=h(Z,ee,ae,W,D,21,u[63]),b[0]=b[0]+W|0,b[1]=b[1]+Z|0,b[2]=b[2]+ee|0,b[3]=b[3]+ae|0},_doFinalize:function(){var v=this._data,p=v.words,g=this._nDataBytes*8,m=v.sigBytes*8;p[m>>>5]|=128<<24-m%32;var y=n.floor(g/4294967296),b=g;p[(m+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,p[(m+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,v.sigBytes=(p.length+1)*4,this._process();for(var w=this._hash,x=w.words,S=0;S<4;S++){var _=x[S];x[S]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return w},clone:function(){var v=s.clone.call(this);return v._hash=this._hash.clone(),v}});function d(v,p,g,m,y,b,w){var x=v+(p&g|~p&m)+y+w;return(x<<b|x>>>32-b)+p}function f(v,p,g,m,y,b,w){var x=v+(p&m|g&~m)+y+w;return(x<<b|x>>>32-b)+p}function A(v,p,g,m,y,b,w){var x=v+(p^g^m)+y+w;return(x<<b|x>>>32-b)+p}function h(v,p,g,m,y,b,w){var x=v+(g^(p|~m))+y+w;return(x<<b|x>>>32-b)+p}a.MD5=s._createHelper(c),a.HmacMD5=s._createHmacHelper(c)}(Math),r.MD5})})(gA);var NS={exports:{}};(function(e,t){(function(r,n){e.exports=n(Er.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=a.Hasher,s=n.algo,l=[],u=s.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,d){for(var f=this._hash.words,A=f[0],h=f[1],v=f[2],p=f[3],g=f[4],m=0;m<80;m++){if(m<16)l[m]=c[d+m]|0;else{var y=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=y<<1|y>>>31}var b=(A<<5|A>>>27)+g+l[m];m<20?b+=(h&v|~h&p)+1518500249:m<40?b+=(h^v^p)+1859775393:m<60?b+=(h&v|h&p|v&p)-1894007588:b+=(h^v^p)-899497514,g=p,p=v,v=h<<30|h>>>2,h=A,A=b}f[0]=f[0]+A|0,f[1]=f[1]+h|0,f[2]=f[2]+v|0,f[3]=f[3]+p|0,f[4]=f[4]+g|0},_doFinalize:function(){var c=this._data,d=c.words,f=this._nDataBytes*8,A=c.sigBytes*8;return d[A>>>5]|=128<<24-A%32,d[(A+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(A+64>>>9<<4)+15]=f,c.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});n.SHA1=o._createHelper(u),n.HmacSHA1=o._createHmacHelper(u)}(),r.SHA1})})(NS);var BP={exports:{}};(function(e,t){(function(r,n){e.exports=n(Er.exports)})(sr,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=[],c=[];(function(){function A(g){for(var m=n.sqrt(g),y=2;y<=m;y++)if(!(g%y))return!1;return!0}function h(g){return(g-(g|0))*4294967296|0}for(var v=2,p=0;p<64;)A(v)&&(p<8&&(u[p]=h(n.pow(v,1/2))),c[p]=h(n.pow(v,1/3)),p++),v++})();var d=[],f=l.SHA256=s.extend({_doReset:function(){this._hash=new o.init(u.slice(0))},_doProcessBlock:function(A,h){for(var v=this._hash.words,p=v[0],g=v[1],m=v[2],y=v[3],b=v[4],w=v[5],x=v[6],S=v[7],_=0;_<64;_++){if(_<16)d[_]=A[h+_]|0;else{var B=d[_-15],T=(B<<25|B>>>7)^(B<<14|B>>>18)^B>>>3,E=d[_-2],I=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10;d[_]=T+d[_-7]+I+d[_-16]}var R=b&w^~b&x,D=p&g^p&m^g&m,k=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),F=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),P=S+F+R+c[_]+d[_],O=k+D;S=x,x=w,w=b,b=y+P|0,y=m,m=g,g=p,p=P+O|0}v[0]=v[0]+p|0,v[1]=v[1]+g|0,v[2]=v[2]+m|0,v[3]=v[3]+y|0,v[4]=v[4]+b|0,v[5]=v[5]+w|0,v[6]=v[6]+x|0,v[7]=v[7]+S|0},_doFinalize:function(){var A=this._data,h=A.words,v=this._nDataBytes*8,p=A.sigBytes*8;return h[p>>>5]|=128<<24-p%32,h[(p+64>>>9<<4)+14]=n.floor(v/4294967296),h[(p+64>>>9<<4)+15]=v,A.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var A=s.clone.call(this);return A._hash=this._hash.clone(),A}});a.SHA256=s._createHelper(f),a.HmacSHA256=s._createHmacHelper(f)}(Math),r.SHA256})})(BP);var YZ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,BP.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.algo,s=o.SHA256,l=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=s._doFinalize.call(this);return u.sigBytes-=4,u}});n.SHA224=s._createHelper(l),n.HmacSHA224=s._createHmacHelper(l)}(),r.SHA224})})(YZ);var TP={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,ly.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.Hasher,o=n.x64,s=o.Word,l=o.WordArray,u=n.algo;function c(){return s.create.apply(s,arguments)}var d=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],f=[];(function(){for(var h=0;h<80;h++)f[h]=c()})();var A=u.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(h,v){for(var p=this._hash.words,g=p[0],m=p[1],y=p[2],b=p[3],w=p[4],x=p[5],S=p[6],_=p[7],B=g.high,T=g.low,E=m.high,I=m.low,R=y.high,D=y.low,k=b.high,F=b.low,P=w.high,O=w.low,H=x.high,V=x.low,W=S.high,Z=S.low,ee=_.high,ae=_.low,ne=B,le=T,se=E,ce=I,ye=R,fe=D,Q=k,J=F,U=P,K=O,q=H,ie=V,$=W,re=Z,ve=ee,he=ae,oe=0;oe<80;oe++){var Y,te,pe=f[oe];if(oe<16)te=pe.high=h[v+oe*2]|0,Y=pe.low=h[v+oe*2+1]|0;else{var de=f[oe-15],we=de.high,De=de.low,ze=(we>>>1|De<<31)^(we>>>8|De<<24)^we>>>7,Xe=(De>>>1|we<<31)^(De>>>8|we<<24)^(De>>>7|we<<25),ke=f[oe-2],Ge=ke.high,it=ke.low,ut=(Ge>>>19|it<<13)^(Ge<<3|it>>>29)^Ge>>>6,Ke=(it>>>19|Ge<<13)^(it<<3|Ge>>>29)^(it>>>6|Ge<<26),xt=f[oe-7],ue=xt.high,Te=xt.low,He=f[oe-16],Je=He.high,nt=He.low;Y=Xe+Te,te=ze+ue+(Y>>>0<Xe>>>0?1:0),Y=Y+Ke,te=te+ut+(Y>>>0<Ke>>>0?1:0),Y=Y+nt,te=te+Je+(Y>>>0<nt>>>0?1:0),pe.high=te,pe.low=Y}var be=U&q^~U&$,Le=K&ie^~K&re,je=ne&se^ne&ye^se&ye,ft=le&ce^le&fe^ce&fe,Ce=(ne>>>28|le<<4)^(ne<<30|le>>>2)^(ne<<25|le>>>7),Qe=(le>>>28|ne<<4)^(le<<30|ne>>>2)^(le<<25|ne>>>7),me=(U>>>14|K<<18)^(U>>>18|K<<14)^(U<<23|K>>>9),Ne=(K>>>14|U<<18)^(K>>>18|U<<14)^(K<<23|U>>>9),lt=d[oe],Tt=lt.high,dt=lt.low,Ae=he+Ne,Re=ve+me+(Ae>>>0<he>>>0?1:0),Ae=Ae+Le,Re=Re+be+(Ae>>>0<Le>>>0?1:0),Ae=Ae+dt,Re=Re+Tt+(Ae>>>0<dt>>>0?1:0),Ae=Ae+Y,Re=Re+te+(Ae>>>0<Y>>>0?1:0),ot=Qe+ft,Ht=Ce+je+(ot>>>0<Qe>>>0?1:0);ve=$,he=re,$=q,re=ie,q=U,ie=K,K=J+Ae|0,U=Q+Re+(K>>>0<J>>>0?1:0)|0,Q=ye,J=fe,ye=se,fe=ce,se=ne,ce=le,le=Ae+ot|0,ne=Re+Ht+(le>>>0<Ae>>>0?1:0)|0}T=g.low=T+le,g.high=B+ne+(T>>>0<le>>>0?1:0),I=m.low=I+ce,m.high=E+se+(I>>>0<ce>>>0?1:0),D=y.low=D+fe,y.high=R+ye+(D>>>0<fe>>>0?1:0),F=b.low=F+J,b.high=k+Q+(F>>>0<J>>>0?1:0),O=w.low=O+K,w.high=P+U+(O>>>0<K>>>0?1:0),V=x.low=V+ie,x.high=H+q+(V>>>0<ie>>>0?1:0),Z=S.low=Z+re,S.high=W+$+(Z>>>0<re>>>0?1:0),ae=_.low=ae+he,_.high=ee+ve+(ae>>>0<he>>>0?1:0)},_doFinalize:function(){var h=this._data,v=h.words,p=this._nDataBytes*8,g=h.sigBytes*8;v[g>>>5]|=128<<24-g%32,v[(g+128>>>10<<5)+30]=Math.floor(p/4294967296),v[(g+128>>>10<<5)+31]=p,h.sigBytes=v.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h},blockSize:1024/32});n.SHA512=i._createHelper(A),n.HmacSHA512=i._createHmacHelper(A)}(),r.SHA512})})(TP);var XZ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,ly.exports,TP.exports)})(sr,function(r){return function(){var n=r,a=n.x64,i=a.Word,o=a.WordArray,s=n.algo,l=s.SHA512,u=s.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=16,c}});n.SHA384=l._createHelper(u),n.HmacSHA384=l._createHmacHelper(u)}(),r.SHA384})})(XZ);var qZ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,ly.exports)})(sr,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.x64,u=l.Word,c=a.algo,d=[],f=[],A=[];(function(){for(var p=1,g=0,m=0;m<24;m++){d[p+5*g]=(m+1)*(m+2)/2%64;var y=g%5,b=(2*p+3*g)%5;p=y,g=b}for(var p=0;p<5;p++)for(var g=0;g<5;g++)f[p+5*g]=g+(2*p+3*g)%5*5;for(var w=1,x=0;x<24;x++){for(var S=0,_=0,B=0;B<7;B++){if(w&1){var T=(1<<B)-1;T<32?_^=1<<T:S^=1<<T-32}w&128?w=w<<1^113:w<<=1}A[x]=u.create(S,_)}})();var h=[];(function(){for(var p=0;p<25;p++)h[p]=u.create()})();var v=c.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],g=0;g<25;g++)p[g]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,g){for(var m=this._state,y=this.blockSize/2,b=0;b<y;b++){var w=p[g+2*b],x=p[g+2*b+1];w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360;var S=m[b];S.high^=x,S.low^=w}for(var _=0;_<24;_++){for(var B=0;B<5;B++){for(var T=0,E=0,I=0;I<5;I++){var S=m[B+5*I];T^=S.high,E^=S.low}var R=h[B];R.high=T,R.low=E}for(var B=0;B<5;B++)for(var D=h[(B+4)%5],k=h[(B+1)%5],F=k.high,P=k.low,T=D.high^(F<<1|P>>>31),E=D.low^(P<<1|F>>>31),I=0;I<5;I++){var S=m[B+5*I];S.high^=T,S.low^=E}for(var O=1;O<25;O++){var T,E,S=m[O],H=S.high,V=S.low,W=d[O];W<32?(T=H<<W|V>>>32-W,E=V<<W|H>>>32-W):(T=V<<W-32|H>>>64-W,E=H<<W-32|V>>>64-W);var Z=h[f[O]];Z.high=T,Z.low=E}var ee=h[0],ae=m[0];ee.high=ae.high,ee.low=ae.low;for(var B=0;B<5;B++)for(var I=0;I<5;I++){var O=B+5*I,S=m[O],ne=h[O],le=h[(B+1)%5+5*I],se=h[(B+2)%5+5*I];S.high=ne.high^~le.high&se.high,S.low=ne.low^~le.low&se.low}var S=m[0],ce=A[_];S.high^=ce.high,S.low^=ce.low}},_doFinalize:function(){var p=this._data,g=p.words;this._nDataBytes*8;var m=p.sigBytes*8,y=this.blockSize*32;g[m>>>5]|=1<<24-m%32,g[(n.ceil((m+1)/y)*y>>>5)-1]|=128,p.sigBytes=g.length*4,this._process();for(var b=this._state,w=this.cfg.outputLength/8,x=w/8,S=[],_=0;_<x;_++){var B=b[_],T=B.high,E=B.low;T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,S.push(E),S.push(T)}return new o.init(S,w)},clone:function(){for(var p=s.clone.call(this),g=p._state=this._state.slice(0),m=0;m<25;m++)g[m]=g[m].clone();return p}});a.SHA3=s._createHelper(v),a.HmacSHA3=s._createHmacHelper(v)}(Math),r.SHA3})})(qZ);var ZZ={exports:{}};(function(e,t){(function(r,n){e.exports=n(Er.exports)})(sr,function(r){/** @preserve
|
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
|
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
|
|
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),A=o.create([0,1518500249,1859775393,2400959708,2840853838]),h=o.create([1352829926,1548603684,1836072691,2053994217,0]),v=l.RIPEMD160=s.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,S){for(var _=0;_<16;_++){var B=S+_,T=x[B];x[B]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var E=this._hash.words,I=A.words,R=h.words,D=u.words,k=c.words,F=d.words,P=f.words,O,H,V,W,Z,ee,ae,ne,le,se;ee=O=E[0],ae=H=E[1],ne=V=E[2],le=W=E[3],se=Z=E[4];for(var ce,_=0;_<80;_+=1)ce=O+x[S+D[_]]|0,_<16?ce+=p(H,V,W)+I[0]:_<32?ce+=g(H,V,W)+I[1]:_<48?ce+=m(H,V,W)+I[2]:_<64?ce+=y(H,V,W)+I[3]:ce+=b(H,V,W)+I[4],ce=ce|0,ce=w(ce,F[_]),ce=ce+Z|0,O=Z,Z=W,W=w(V,10),V=H,H=ce,ce=ee+x[S+k[_]]|0,_<16?ce+=b(ae,ne,le)+R[0]:_<32?ce+=y(ae,ne,le)+R[1]:_<48?ce+=m(ae,ne,le)+R[2]:_<64?ce+=g(ae,ne,le)+R[3]:ce+=p(ae,ne,le)+R[4],ce=ce|0,ce=w(ce,P[_]),ce=ce+se|0,ee=se,se=le,le=w(ne,10),ne=ae,ae=ce;ce=E[1]+V+le|0,E[1]=E[2]+W+se|0,E[2]=E[3]+Z+ee|0,E[3]=E[4]+O+ae|0,E[4]=E[0]+H+ne|0,E[0]=ce},_doFinalize:function(){var x=this._data,S=x.words,_=this._nDataBytes*8,B=x.sigBytes*8;S[B>>>5]|=128<<24-B%32,S[(B+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,x.sigBytes=(S.length+1)*4,this._process();for(var T=this._hash,E=T.words,I=0;I<5;I++){var R=E[I];E[I]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return T},clone:function(){var x=s.clone.call(this);return x._hash=this._hash.clone(),x}});function p(x,S,_){return x^S^_}function g(x,S,_){return x&S|~x&_}function m(x,S,_){return(x|~S)^_}function y(x,S,_){return x&_|S&~_}function b(x,S,_){return x^(S|~_)}function w(x,S){return x<<S|x>>>32-S}a.RIPEMD160=s._createHelper(v),a.HmacRIPEMD160=s._createHmacHelper(v)}(),r.RIPEMD160})})(ZZ);var QS={exports:{}};(function(e,t){(function(r,n){e.exports=n(Er.exports)})(sr,function(r){(function(){var n=r,a=n.lib,i=a.Base,o=n.enc,s=o.Utf8,l=n.algo;l.HMAC=i.extend({init:function(u,c){u=this._hasher=new u.init,typeof c=="string"&&(c=s.parse(c));var d=u.blockSize,f=d*4;c.sigBytes>f&&(c=u.finalize(c)),c.clamp();for(var A=this._oKey=c.clone(),h=this._iKey=c.clone(),v=A.words,p=h.words,g=0;g<d;g++)v[g]^=1549556828,p[g]^=909522486;A.sigBytes=h.sigBytes=f,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var c=this._hasher,d=c.finalize(u);c.reset();var f=c.finalize(this._oKey.clone().concat(d));return f}})})()})})(QS);var JZ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,NS.exports,QS.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.Base,o=a.WordArray,s=n.algo,l=s.SHA1,u=s.HMAC,c=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,f){for(var A=this.cfg,h=u.create(A.hasher,d),v=o.create(),p=o.create([1]),g=v.words,m=p.words,y=A.keySize,b=A.iterations;g.length<y;){var w=h.update(f).finalize(p);h.reset();for(var x=w.words,S=x.length,_=w,B=1;B<b;B++){_=h.finalize(_),h.reset();for(var T=_.words,E=0;E<S;E++)x[E]^=T[E]}v.concat(w),m[0]++}return v.sigBytes=y*4,v}});n.PBKDF2=function(d,f,A){return c.create(A).compute(d,f)}}(),r.PBKDF2})})(JZ);var ad={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,NS.exports,QS.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.Base,o=a.WordArray,s=n.algo,l=s.MD5,u=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,d){for(var f,A=this.cfg,h=A.hasher.create(),v=o.create(),p=v.words,g=A.keySize,m=A.iterations;p.length<g;){f&&h.update(f),f=h.update(c).finalize(d),h.reset();for(var y=1;y<m;y++)f=h.finalize(f),h.reset();v.concat(f)}return v.sigBytes=g*4,v}});n.EvpKDF=function(c,d,f){return u.create(f).compute(c,d)}}(),r.EvpKDF})})(ad);var fa={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,ad.exports)})(sr,function(r){r.lib.Cipher||function(n){var a=r,i=a.lib,o=i.Base,s=i.WordArray,l=i.BufferedBlockAlgorithm,u=a.enc;u.Utf8;var c=u.Base64,d=a.algo,f=d.EvpKDF,A=i.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(T,E){return this.create(this._ENC_XFORM_MODE,T,E)},createDecryptor:function(T,E){return this.create(this._DEC_XFORM_MODE,T,E)},init:function(T,E,I){this.cfg=this.cfg.extend(I),this._xformMode=T,this._key=E,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var E=this._doFinalize();return E},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(E){return typeof E=="string"?B:x}return function(E){return{encrypt:function(I,R,D){return T(R).encrypt(E,I,R,D)},decrypt:function(I,R,D){return T(R).decrypt(E,I,R,D)}}}}()});i.StreamCipher=A.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1});var h=a.mode={},v=i.BlockCipherMode=o.extend({createEncryptor:function(T,E){return this.Encryptor.create(T,E)},createDecryptor:function(T,E){return this.Decryptor.create(T,E)},init:function(T,E){this._cipher=T,this._iv=E}}),p=h.CBC=function(){var T=v.extend();T.Encryptor=T.extend({processBlock:function(I,R){var D=this._cipher,k=D.blockSize;E.call(this,I,R,k),D.encryptBlock(I,R),this._prevBlock=I.slice(R,R+k)}}),T.Decryptor=T.extend({processBlock:function(I,R){var D=this._cipher,k=D.blockSize,F=I.slice(R,R+k);D.decryptBlock(I,R),E.call(this,I,R,k),this._prevBlock=F}});function E(I,R,D){var k,F=this._iv;F?(k=F,this._iv=n):k=this._prevBlock;for(var P=0;P<D;P++)I[R+P]^=k[P]}return T}(),g=a.pad={},m=g.Pkcs7={pad:function(T,E){for(var I=E*4,R=I-T.sigBytes%I,D=R<<24|R<<16|R<<8|R,k=[],F=0;F<R;F+=4)k.push(D);var P=s.create(k,R);T.concat(P)},unpad:function(T){var E=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=E}};i.BlockCipher=A.extend({cfg:A.cfg.extend({mode:p,padding:m}),reset:function(){var T;A.reset.call(this);var E=this.cfg,I=E.iv,R=E.mode;this._xformMode==this._ENC_XFORM_MODE?T=R.createEncryptor:(T=R.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,I&&I.words):(this._mode=T.call(R,this,I&&I.words),this._mode.__creator=T)},_doProcessBlock:function(T,E){this._mode.processBlock(T,E)},_doFinalize:function(){var T,E=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(E.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),E.unpad(T)),T},blockSize:128/32});var y=i.CipherParams=o.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),b=a.format={},w=b.OpenSSL={stringify:function(T){var E,I=T.ciphertext,R=T.salt;return R?E=s.create([1398893684,1701076831]).concat(R).concat(I):E=I,E.toString(c)},parse:function(T){var E,I=c.parse(T),R=I.words;return R[0]==1398893684&&R[1]==1701076831&&(E=s.create(R.slice(2,4)),R.splice(0,4),I.sigBytes-=16),y.create({ciphertext:I,salt:E})}},x=i.SerializableCipher=o.extend({cfg:o.extend({format:w}),encrypt:function(T,E,I,R){R=this.cfg.extend(R);var D=T.createEncryptor(I,R),k=D.finalize(E),F=D.cfg;return y.create({ciphertext:k,key:I,iv:F.iv,algorithm:T,mode:F.mode,padding:F.padding,blockSize:T.blockSize,formatter:R.format})},decrypt:function(T,E,I,R){R=this.cfg.extend(R),E=this._parse(E,R.format);var D=T.createDecryptor(I,R).finalize(E.ciphertext);return D},_parse:function(T,E){return typeof T=="string"?E.parse(T,this):T}}),S=a.kdf={},_=S.OpenSSL={execute:function(T,E,I,R){R||(R=s.random(64/8));var D=f.create({keySize:E+I}).compute(T,R),k=s.create(D.words.slice(E),I*4);return D.sigBytes=E*4,y.create({key:D,iv:k,salt:R})}},B=i.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:_}),encrypt:function(T,E,I,R){R=this.cfg.extend(R);var D=R.kdf.execute(I,T.keySize,T.ivSize);R.iv=D.iv;var k=x.encrypt.call(this,T,E,D.key,R);return k.mixIn(D),k},decrypt:function(T,E,I,R){R=this.cfg.extend(R),E=this._parse(E,R.format);var D=R.kdf.execute(I,T.keySize,T.ivSize,E.salt);R.iv=D.iv;var k=x.decrypt.call(this,T,E,D.key,R);return k}})}()})})(fa);var eJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,fa.exports)})(sr,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize;a.call(this,i,o,l,s),this._prevBlock=i.slice(o,o+l)}}),n.Decryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=i.slice(o,o+l);a.call(this,i,o,l,s),this._prevBlock=u}});function a(i,o,s,l){var u,c=this._iv;c?(u=c.slice(0),this._iv=void 0):u=this._prevBlock,l.encryptBlock(u,0);for(var d=0;d<s;d++)i[o+d]^=u[d]}return n}(),r.mode.CFB})})(eJ);var tJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,fa.exports)})(sr,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=this._iv,c=this._counter;u&&(c=this._counter=u.slice(0),this._iv=void 0);var d=c.slice(0);s.encryptBlock(d,0),c[l-1]=c[l-1]+1|0;for(var f=0;f<l;f++)i[o+f]^=d[f]}});return n.Decryptor=a,n}(),r.mode.CTR})})(tJ);var rJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,fa.exports)})(sr,function(r){/** @preserve
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
* derived from CryptoJS.mode.CTR
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function a(s){if((s>>24&255)===255){var l=s>>16&255,u=s>>8&255,c=s&255;l===255?(l=0,u===255?(u=0,c===255?c=0:++c):++u):++l,s=0,s+=l<<16,s+=u<<8,s+=c}else s+=1<<24;return s}function i(s){return(s[0]=a(s[0]))===0&&(s[1]=a(s[1])),s}var o=n.Encryptor=n.extend({processBlock:function(s,l){var u=this._cipher,c=u.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),i(f);var A=f.slice(0);u.encryptBlock(A,0);for(var h=0;h<c;h++)s[l+h]^=A[h]}});return n.Decryptor=o,n}(),r.mode.CTRGladman})})(rJ);var nJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,fa.exports)})(sr,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=this._iv,c=this._keystream;u&&(c=this._keystream=u.slice(0),this._iv=void 0),s.encryptBlock(c,0);for(var d=0;d<l;d++)i[o+d]^=c[d]}});return n.Decryptor=a,n}(),r.mode.OFB})})(nJ);var aJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,fa.exports)})(sr,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),n.Decryptor=n.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),n}(),r.mode.ECB})})(aJ);var iJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,fa.exports)})(sr,function(r){return r.pad.AnsiX923={pad:function(n,a){var i=n.sigBytes,o=a*4,s=o-i%o,l=i+s-1;n.clamp(),n.words[l>>>2]|=s<<24-l%4*8,n.sigBytes+=s},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Ansix923})})(iJ);var oJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,fa.exports)})(sr,function(r){return r.pad.Iso10126={pad:function(n,a){var i=a*4,o=i-n.sigBytes%i;n.concat(r.lib.WordArray.random(o-1)).concat(r.lib.WordArray.create([o<<24],1))},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Iso10126})})(oJ);var sJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,fa.exports)})(sr,function(r){return r.pad.Iso97971={pad:function(n,a){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,a)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})})(sJ);var lJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,fa.exports)})(sr,function(r){return r.pad.ZeroPadding={pad:function(n,a){var i=a*4;n.clamp(),n.sigBytes+=i-(n.sigBytes%i||i)},unpad:function(n){for(var a=n.words,i=n.sigBytes-1,i=n.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){n.sigBytes=i+1;break}}},r.pad.ZeroPadding})})(lJ);var uJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,fa.exports)})(sr,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})})(uJ);var cJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,fa.exports)})(sr,function(r){return function(n){var a=r,i=a.lib,o=i.CipherParams,s=a.enc,l=s.Hex,u=a.format;u.Hex={stringify:function(c){return c.ciphertext.toString(l)},parse:function(c){var d=l.parse(c);return o.create({ciphertext:d})}}}(),r.format.Hex})})(cJ);var dJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,pA.exports,gA.exports,ad.exports,fa.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.BlockCipher,o=n.algo,s=[],l=[],u=[],c=[],d=[],f=[],A=[],h=[],v=[],p=[];(function(){for(var y=[],b=0;b<256;b++)b<128?y[b]=b<<1:y[b]=b<<1^283;for(var w=0,x=0,b=0;b<256;b++){var S=x^x<<1^x<<2^x<<3^x<<4;S=S>>>8^S&255^99,s[w]=S,l[S]=w;var _=y[w],B=y[_],T=y[B],E=y[S]*257^S*16843008;u[w]=E<<24|E>>>8,c[w]=E<<16|E>>>16,d[w]=E<<8|E>>>24,f[w]=E;var E=T*16843009^B*65537^_*257^w*16843008;A[S]=E<<24|E>>>8,h[S]=E<<16|E>>>16,v[S]=E<<8|E>>>24,p[S]=E,w?(w=_^y[y[y[T^_]]],x^=y[y[x]]):w=x=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=i.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,w=b.words,x=b.sigBytes/4,S=this._nRounds=x+6,_=(S+1)*4,B=this._keySchedule=[],T=0;T<_;T++)T<x?B[T]=w[T]:(y=B[T-1],T%x?x>6&&T%x==4&&(y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255]):(y=y<<8|y>>>24,y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255],y^=g[T/x|0]<<24),B[T]=B[T-x]^y);for(var E=this._invKeySchedule=[],I=0;I<_;I++){var T=_-I;if(I%4)var y=B[T];else var y=B[T-4];I<4||T<=4?E[I]=y:E[I]=A[s[y>>>24]]^h[s[y>>>16&255]]^v[s[y>>>8&255]]^p[s[y&255]]}}},encryptBlock:function(y,b){this._doCryptBlock(y,b,this._keySchedule,u,c,d,f,s)},decryptBlock:function(y,b){var w=y[b+1];y[b+1]=y[b+3],y[b+3]=w,this._doCryptBlock(y,b,this._invKeySchedule,A,h,v,p,l);var w=y[b+1];y[b+1]=y[b+3],y[b+3]=w},_doCryptBlock:function(y,b,w,x,S,_,B,T){for(var E=this._nRounds,I=y[b]^w[0],R=y[b+1]^w[1],D=y[b+2]^w[2],k=y[b+3]^w[3],F=4,P=1;P<E;P++){var O=x[I>>>24]^S[R>>>16&255]^_[D>>>8&255]^B[k&255]^w[F++],H=x[R>>>24]^S[D>>>16&255]^_[k>>>8&255]^B[I&255]^w[F++],V=x[D>>>24]^S[k>>>16&255]^_[I>>>8&255]^B[R&255]^w[F++],W=x[k>>>24]^S[I>>>16&255]^_[R>>>8&255]^B[D&255]^w[F++];I=O,R=H,D=V,k=W}var O=(T[I>>>24]<<24|T[R>>>16&255]<<16|T[D>>>8&255]<<8|T[k&255])^w[F++],H=(T[R>>>24]<<24|T[D>>>16&255]<<16|T[k>>>8&255]<<8|T[I&255])^w[F++],V=(T[D>>>24]<<24|T[k>>>16&255]<<16|T[I>>>8&255]<<8|T[R&255])^w[F++],W=(T[k>>>24]<<24|T[I>>>16&255]<<16|T[R>>>8&255]<<8|T[D&255])^w[F++];y[b]=O,y[b+1]=H,y[b+2]=V,y[b+3]=W},keySize:256/32});n.AES=i._createHelper(m)}(),r.AES})})(dJ);var fJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,pA.exports,gA.exports,ad.exports,fa.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=a.BlockCipher,s=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],A=s.DES=o.extend({_doReset:function(){for(var g=this._key,m=g.words,y=[],b=0;b<56;b++){var w=l[b]-1;y[b]=m[w>>>5]>>>31-w%32&1}for(var x=this._subKeys=[],S=0;S<16;S++){for(var _=x[S]=[],B=c[S],b=0;b<24;b++)_[b/6|0]|=y[(u[b]-1+B)%28]<<31-b%6,_[4+(b/6|0)]|=y[28+(u[b+24]-1+B)%28]<<31-b%6;_[0]=_[0]<<1|_[0]>>>31;for(var b=1;b<7;b++)_[b]=_[b]>>>(b-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var T=this._invSubKeys=[],b=0;b<16;b++)T[b]=x[15-b]},encryptBlock:function(g,m){this._doCryptBlock(g,m,this._subKeys)},decryptBlock:function(g,m){this._doCryptBlock(g,m,this._invSubKeys)},_doCryptBlock:function(g,m,y){this._lBlock=g[m],this._rBlock=g[m+1],h.call(this,4,252645135),h.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),h.call(this,1,1431655765);for(var b=0;b<16;b++){for(var w=y[b],x=this._lBlock,S=this._rBlock,_=0,B=0;B<8;B++)_|=d[B][((S^w[B])&f[B])>>>0];this._lBlock=S,this._rBlock=x^_}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,h.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),g[m]=this._lBlock,g[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(g,m){var y=(this._lBlock>>>g^this._rBlock)&m;this._rBlock^=y,this._lBlock^=y<<g}function v(g,m){var y=(this._rBlock>>>g^this._lBlock)&m;this._lBlock^=y,this._rBlock^=y<<g}n.DES=o._createHelper(A);var p=s.TripleDES=o.extend({_doReset:function(){var g=this._key,m=g.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=m.slice(0,2),b=m.length<4?m.slice(0,2):m.slice(2,4),w=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=A.createEncryptor(i.create(y)),this._des2=A.createEncryptor(i.create(b)),this._des3=A.createEncryptor(i.create(w))},encryptBlock:function(g,m){this._des1.encryptBlock(g,m),this._des2.decryptBlock(g,m),this._des3.encryptBlock(g,m)},decryptBlock:function(g,m){this._des3.decryptBlock(g,m),this._des2.encryptBlock(g,m),this._des1.decryptBlock(g,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=o._createHelper(p)}(),r.TripleDES})})(fJ);var AJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,pA.exports,gA.exports,ad.exports,fa.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=o.RC4=i.extend({_doReset:function(){for(var c=this._key,d=c.words,f=c.sigBytes,A=this._S=[],h=0;h<256;h++)A[h]=h;for(var h=0,v=0;h<256;h++){var p=h%f,g=d[p>>>2]>>>24-p%4*8&255;v=(v+A[h]+g)%256;var m=A[h];A[h]=A[v],A[v]=m}this._i=this._j=0},_doProcessBlock:function(c,d){c[d]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var c=this._S,d=this._i,f=this._j,A=0,h=0;h<4;h++){d=(d+1)%256,f=(f+c[d])%256;var v=c[d];c[d]=c[f],c[f]=v,A|=c[(c[d]+c[f])%256]<<24-h*8}return this._i=d,this._j=f,A}n.RC4=i._createHelper(s);var u=o.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)l.call(this)}});n.RC4Drop=i._createHelper(u)}(),r.RC4})})(AJ);var hJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,pA.exports,gA.exports,ad.exports,fa.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=[],l=[],u=[],c=o.Rabbit=i.extend({_doReset:function(){for(var f=this._key.words,A=this.cfg.iv,h=0;h<4;h++)f[h]=(f[h]<<8|f[h]>>>24)&16711935|(f[h]<<24|f[h]>>>8)&4278255360;var v=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],p=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var h=0;h<4;h++)d.call(this);for(var h=0;h<8;h++)p[h]^=v[h+4&7];if(A){var g=A.words,m=g[0],y=g[1],b=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,w=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,x=b>>>16|w&4294901760,S=w<<16|b&65535;p[0]^=b,p[1]^=x,p[2]^=w,p[3]^=S,p[4]^=b,p[5]^=x,p[6]^=w,p[7]^=S;for(var h=0;h<4;h++)d.call(this)}},_doProcessBlock:function(f,A){var h=this._X;d.call(this),s[0]=h[0]^h[5]>>>16^h[3]<<16,s[1]=h[2]^h[7]>>>16^h[5]<<16,s[2]=h[4]^h[1]>>>16^h[7]<<16,s[3]=h[6]^h[3]>>>16^h[1]<<16;for(var v=0;v<4;v++)s[v]=(s[v]<<8|s[v]>>>24)&16711935|(s[v]<<24|s[v]>>>8)&4278255360,f[A+v]^=s[v]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,A=this._C,h=0;h<8;h++)l[h]=A[h];A[0]=A[0]+1295307597+this._b|0,A[1]=A[1]+3545052371+(A[0]>>>0<l[0]>>>0?1:0)|0,A[2]=A[2]+886263092+(A[1]>>>0<l[1]>>>0?1:0)|0,A[3]=A[3]+1295307597+(A[2]>>>0<l[2]>>>0?1:0)|0,A[4]=A[4]+3545052371+(A[3]>>>0<l[3]>>>0?1:0)|0,A[5]=A[5]+886263092+(A[4]>>>0<l[4]>>>0?1:0)|0,A[6]=A[6]+1295307597+(A[5]>>>0<l[5]>>>0?1:0)|0,A[7]=A[7]+3545052371+(A[6]>>>0<l[6]>>>0?1:0)|0,this._b=A[7]>>>0<l[7]>>>0?1:0;for(var h=0;h<8;h++){var v=f[h]+A[h],p=v&65535,g=v>>>16,m=((p*p>>>17)+p*g>>>15)+g*g,y=((v&4294901760)*v|0)+((v&65535)*v|0);u[h]=m^y}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.Rabbit=i._createHelper(c)}(),r.Rabbit})})(hJ);var vJ={exports:{}};(function(e,t){(function(r,n,a){e.exports=n(Er.exports,pA.exports,gA.exports,ad.exports,fa.exports)})(sr,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=[],l=[],u=[],c=o.RabbitLegacy=i.extend({_doReset:function(){var f=this._key.words,A=this.cfg.iv,h=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var p=0;p<4;p++)d.call(this);for(var p=0;p<8;p++)v[p]^=h[p+4&7];if(A){var g=A.words,m=g[0],y=g[1],b=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,w=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,x=b>>>16|w&4294901760,S=w<<16|b&65535;v[0]^=b,v[1]^=x,v[2]^=w,v[3]^=S,v[4]^=b,v[5]^=x,v[6]^=w,v[7]^=S;for(var p=0;p<4;p++)d.call(this)}},_doProcessBlock:function(f,A){var h=this._X;d.call(this),s[0]=h[0]^h[5]>>>16^h[3]<<16,s[1]=h[2]^h[7]>>>16^h[5]<<16,s[2]=h[4]^h[1]>>>16^h[7]<<16,s[3]=h[6]^h[3]>>>16^h[1]<<16;for(var v=0;v<4;v++)s[v]=(s[v]<<8|s[v]>>>24)&16711935|(s[v]<<24|s[v]>>>8)&4278255360,f[A+v]^=s[v]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,A=this._C,h=0;h<8;h++)l[h]=A[h];A[0]=A[0]+1295307597+this._b|0,A[1]=A[1]+3545052371+(A[0]>>>0<l[0]>>>0?1:0)|0,A[2]=A[2]+886263092+(A[1]>>>0<l[1]>>>0?1:0)|0,A[3]=A[3]+1295307597+(A[2]>>>0<l[2]>>>0?1:0)|0,A[4]=A[4]+3545052371+(A[3]>>>0<l[3]>>>0?1:0)|0,A[5]=A[5]+886263092+(A[4]>>>0<l[4]>>>0?1:0)|0,A[6]=A[6]+1295307597+(A[5]>>>0<l[5]>>>0?1:0)|0,A[7]=A[7]+3545052371+(A[6]>>>0<l[6]>>>0?1:0)|0,this._b=A[7]>>>0<l[7]>>>0?1:0;for(var h=0;h<8;h++){var v=f[h]+A[h],p=v&65535,g=v>>>16,m=((p*p>>>17)+p*g>>>15)+g*g,y=((v&4294901760)*v|0)+((v&65535)*v|0);u[h]=m^y}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.RabbitLegacy=i._createHelper(c)}(),r.RabbitLegacy})})(vJ);(function(e,t){(function(r,n,a){e.exports=n(Er.exports,ly.exports,GZ.exports,KZ.exports,pA.exports,jZ.exports,gA.exports,NS.exports,BP.exports,YZ.exports,TP.exports,XZ.exports,qZ.exports,ZZ.exports,QS.exports,JZ.exports,ad.exports,fa.exports,eJ.exports,tJ.exports,rJ.exports,nJ.exports,aJ.exports,iJ.exports,oJ.exports,sJ.exports,lJ.exports,uJ.exports,cJ.exports,dJ.exports,fJ.exports,AJ.exports,hJ.exports,vJ.exports)})(sr,function(r){return r})})(WZ);var Dxt=WZ.exports;/*!
|
|
* vue-router v4.0.12
|
|
* (c) 2021 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const pJ=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Jv=e=>pJ?Symbol(e):"_vr_"+e,bWe=Jv("rvlm"),bH=Jv("rvd"),VS=Jv("r"),EP=Jv("rl"),bD=Jv("rvl"),Ch=typeof window!="undefined";function xWe(e){return e.__esModule||pJ&&e[Symbol.toStringTag]==="Module"}const qr=Object.assign;function B2(e,t){const r={};for(const n in t){const a=t[n];r[n]=Array.isArray(a)?a.map(e):e(a)}return r}const l0=()=>{},wWe=/\/$/,CWe=e=>e.replace(wWe,"");function T2(e,t,r="/"){let n,a={},i="",o="";const s=t.indexOf("?"),l=t.indexOf("#",s>-1?s:0);return s>-1&&(n=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),a=e(i)),l>-1&&(n=n||t.slice(0,l),o=t.slice(l,t.length)),n=TWe(n!=null?n:t,r),{fullPath:n+(i&&"?")+i+o,path:n,query:a,hash:o}}function SWe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function xH(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _We(e,t,r){const n=t.matched.length-1,a=r.matched.length-1;return n>-1&&n===a&&mv(t.matched[n],r.matched[a])&&gJ(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function mv(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gJ(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!BWe(e[r],t[r]))return!1;return!0}function BWe(e,t){return Array.isArray(e)?wH(e,t):Array.isArray(t)?wH(t,e):e===t}function wH(e,t){return Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function TWe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let a=r.length-1,i,o;for(i=0;i<n.length;i++)if(o=n[i],!(a===1||o==="."))if(o==="..")a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(i-(i===n.length?1:0)).join("/")}var Z0;(function(e){e.pop="pop",e.push="push"})(Z0||(Z0={}));var u0;(function(e){e.back="back",e.forward="forward",e.unknown=""})(u0||(u0={}));function EWe(e){if(!e)if(Ch){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),CWe(e)}const IWe=/^[^#]+#/;function RWe(e,t){return e.replace(IWe,"#")+t}function DWe(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 WS=()=>({left:window.pageXOffset,top:window.pageYOffset});function FWe(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;t=DWe(a,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 CH(e,t){return(history.state?history.state.position-t:-1)+e}const xD=new Map;function MWe(e,t){xD.set(e,t)}function kWe(e){const t=xD.get(e);return xD.delete(e),t}let PWe=()=>location.protocol+"//"+location.host;function mJ(e,t){const{pathname:r,search:n,hash:a}=t,i=e.indexOf("#");if(i>-1){let s=a.includes(e.slice(i))?e.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),xH(l,"")}return xH(r,e)+n+a}function LWe(e,t,r,n){let a=[],i=[],o=null;const s=({state:f})=>{const A=mJ(e,location),h=r.value,v=t.value;let p=0;if(f){if(r.value=A,t.value=f,o&&o===h){o=null;return}p=v?f.position-v.position:0}else n(A);a.forEach(g=>{g(r.value,h,{delta:p,type:Z0.pop,direction:p?p>0?u0.forward:u0.back:u0.unknown})})};function l(){o=r.value}function u(f){a.push(f);const A=()=>{const h=a.indexOf(f);h>-1&&a.splice(h,1)};return i.push(A),A}function c(){const{history:f}=window;!f.state||f.replaceState(qr({},f.state,{scroll:WS()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:d}}function SH(e,t,r,n=!1,a=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:a?WS():null}}function OWe(e){const{history:t,location:r}=window,n={value:mJ(e,r)},a={value:t.state};a.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const d=e.indexOf("#"),f=d>-1?(r.host&&document.querySelector("base")?e:e.slice(d))+l:PWe()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),a.value=u}catch(A){console.error(A),r[c?"replace":"assign"](f)}}function o(l,u){const c=qr({},t.state,SH(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),n.value=l}function s(l,u){const c=qr({},a.value,t.state,{forward:l,scroll:WS()});i(c.current,c,!0);const d=qr({},SH(n.value,l,null),{position:c.position+1},u);i(l,d,!1),n.value=l}return{location:n,state:a,push:s,replace:o}}function $We(e){e=EWe(e);const t=OWe(e),r=LWe(e,t.state,t.location,t.replace);function n(i,o=!0){o||r.pauseListeners(),history.go(i)}const a=qr({location:"",base:e,go:n,createHref:RWe.bind(null,e)},t,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function UWe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),$We(e)}function HWe(e){return typeof e=="string"||e&&typeof e=="object"}function yJ(e){return typeof e=="string"||typeof e=="symbol"}const Su={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},bJ=Jv("nf");var _H;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_H||(_H={}));function yv(e,t){return qr(new Error,{type:e,[bJ]:!0},t)}function bd(e,t){return e instanceof Error&&bJ in e&&(t==null||!!(e.type&t))}const BH="[^/]+?",zWe={sensitive:!1,strict:!1,start:!0,end:!0},NWe=/[.+*?^${}()[\]/\\]/g;function QWe(e,t){const r=qr({},zWe,t),n=[];let a=r.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(a+="/");for(let d=0;d<u.length;d++){const f=u[d];let A=40+(r.sensitive?.25:0);if(f.type===0)d||(a+="/"),a+=f.value.replace(NWe,"\\$&"),A+=40;else if(f.type===1){const{value:h,repeatable:v,optional:p,regexp:g}=f;i.push({name:h,repeatable:v,optional:p});const m=g||BH;if(m!==BH){A+=10;try{new RegExp(`(${m})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${h}" (${m}): `+b.message)}}let y=v?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;d||(y=p&&u.length<2?`(?:/${y})`:"/"+y),p&&(y+="?"),a+=y,A+=20,p&&(A+=-8),v&&(A+=-20),m===".*"&&(A+=-50)}c.push(A)}n.push(c)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const o=new RegExp(a,r.sensitive?"":"i");function s(u){const c=u.match(o),d={};if(!c)return null;for(let f=1;f<c.length;f++){const A=c[f]||"",h=i[f-1];d[h.name]=A&&h.repeatable?A.split("/"):A}return d}function l(u){let c="",d=!1;for(const f of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const A of f)if(A.type===0)c+=A.value;else if(A.type===1){const{value:h,repeatable:v,optional:p}=A,g=h in u?u[h]:"";if(Array.isArray(g)&&!v)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const m=Array.isArray(g)?g.join("/"):g;if(!m)if(p)f.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${h}"`);c+=m}}return c}return{re:o,score:n,keys:i,parse:s,stringify:l}}function VWe(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function WWe(e,t){let r=0;const n=e.score,a=t.score;for(;r<n.length&&r<a.length;){const i=VWe(n[r],a[r]);if(i)return i;r++}return a.length-n.length}const GWe={type:0,value:""},KWe=/[a-zA-Z0-9_]/;function jWe(e){if(!e)return[[]];if(e==="/")return[[GWe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(A){throw new Error(`ERR (${r})/"${u}": ${A}`)}let r=0,n=r;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function d(){!u||(r===0?i.push({type:0,value:u}):r===1||r===2||r===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&d(),o()):l===":"?(d(),r=1):f();break;case 4:f(),r=n;break;case 1:l==="("?r=2:KWe.test(l)?f():(d(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:r=3:c+=l;break;case 3:d(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),o(),a}function YWe(e,t,r){const n=QWe(jWe(e.path),r),a=qr(n,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function XWe(e,t){const r=[],n=new Map;t=EH({strict:!1,end:!0,sensitive:!1},t);function a(c){return n.get(c)}function i(c,d,f){const A=!f,h=ZWe(c);h.aliasOf=f&&f.record;const v=EH(t,c),p=[h];if("alias"in c){const y=typeof c.alias=="string"?[c.alias]:c.alias;for(const b of y)p.push(qr({},h,{components:f?f.record.components:h.components,path:b,aliasOf:f?f.record:h}))}let g,m;for(const y of p){const{path:b}=y;if(d&&b[0]!=="/"){const w=d.record.path,x=w[w.length-1]==="/"?"":"/";y.path=d.record.path+(b&&x+b)}if(g=YWe(y,d,v),f?f.alias.push(g):(m=m||g,m!==g&&m.alias.push(g),A&&c.name&&!TH(g)&&o(c.name)),"children"in h){const w=h.children;for(let x=0;x<w.length;x++)i(w[x],g,f&&f.children[x])}f=f||g,l(g)}return m?()=>{o(m)}:l0}function o(c){if(yJ(c)){const d=n.get(c);d&&(n.delete(c),r.splice(r.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=r.indexOf(c);d>-1&&(r.splice(d,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return r}function l(c){let d=0;for(;d<r.length&&WWe(c,r[d])>=0;)d++;r.splice(d,0,c),c.record.name&&!TH(c)&&n.set(c.record.name,c)}function u(c,d){let f,A={},h,v;if("name"in c&&c.name){if(f=n.get(c.name),!f)throw yv(1,{location:c});v=f.record.name,A=qr(qWe(d.params,f.keys.filter(m=>!m.optional).map(m=>m.name)),c.params),h=f.stringify(A)}else if("path"in c)h=c.path,f=r.find(m=>m.re.test(h)),f&&(A=f.parse(h),v=f.record.name);else{if(f=d.name?n.get(d.name):r.find(m=>m.re.test(d.path)),!f)throw yv(1,{location:c,currentLocation:d});v=f.record.name,A=qr({},d.params,c.params),h=f.stringify(A)}const p=[];let g=f;for(;g;)p.unshift(g.record),g=g.parent;return{name:v,path:h,params:A,matched:p,meta:eGe(p)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function qWe(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function ZWe(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:JWe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function JWe(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function TH(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function eGe(e){return e.reduce((t,r)=>qr(t,r.meta),{})}function EH(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}const xJ=/#/g,tGe=/&/g,rGe=/\//g,nGe=/=/g,aGe=/\?/g,wJ=/\+/g,iGe=/%5B/g,oGe=/%5D/g,CJ=/%5E/g,sGe=/%60/g,SJ=/%7B/g,lGe=/%7C/g,_J=/%7D/g,uGe=/%20/g;function IP(e){return encodeURI(""+e).replace(lGe,"|").replace(iGe,"[").replace(oGe,"]")}function cGe(e){return IP(e).replace(SJ,"{").replace(_J,"}").replace(CJ,"^")}function wD(e){return IP(e).replace(wJ,"%2B").replace(uGe,"+").replace(xJ,"%23").replace(tGe,"%26").replace(sGe,"`").replace(SJ,"{").replace(_J,"}").replace(CJ,"^")}function dGe(e){return wD(e).replace(nGe,"%3D")}function fGe(e){return IP(e).replace(xJ,"%23").replace(aGe,"%3F")}function AGe(e){return e==null?"":fGe(e).replace(rGe,"%2F")}function Iw(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function hGe(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<n.length;++a){const i=n[a].replace(wJ," "),o=i.indexOf("="),s=Iw(o<0?i:i.slice(0,o)),l=o<0?null:Iw(i.slice(o+1));if(s in t){let u=t[s];Array.isArray(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function IH(e){let t="";for(let r in e){const n=e[r];if(r=dGe(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Array.isArray(n)?n.map(i=>i&&wD(i)):[n&&wD(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function vGe(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Array.isArray(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}function Lp(){let e=[];function t(n){return e.push(n),()=>{const a=e.indexOf(n);a>-1&&e.splice(a,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function Qu(e,t,r,n,a){const i=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=d=>{d===!1?s(yv(4,{from:r,to:t})):d instanceof Error?s(d):HWe(d)?s(yv(2,{from:t,to:d})):(i&&n.enterCallbacks[a]===i&&typeof d=="function"&&i.push(d),o())},u=e.call(n&&n.instances[a],t,r,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(d=>s(d))})}function E2(e,t,r,n){const a=[];for(const i of e)for(const o in i.components){let s=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(pGe(s)){const u=(s.__vccOpts||s)[t];u&&a.push(Qu(u,r,n,i,o))}else{let l=s();a.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const c=xWe(u)?u.default:u;i.components[o]=c;const f=(c.__vccOpts||c)[t];return f&&Qu(f,r,n,i,o)()}))}}return a}function pGe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function RH(e){const t=We(VS),r=We(EP),n=L(()=>t.resolve($n(e.to))),a=L(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],d=r.matched;if(!c||!d.length)return-1;const f=d.findIndex(mv.bind(null,c));if(f>-1)return f;const A=DH(l[u-2]);return u>1&&DH(c)===A&&d[d.length-1].path!==A?d.findIndex(mv.bind(null,l[u-2])):f}),i=L(()=>a.value>-1&&bGe(r.params,n.value.params)),o=L(()=>a.value>-1&&a.value===r.matched.length-1&&gJ(r.params,n.value.params));function s(l={}){return yGe(l)?t[$n(e.replace)?"replace":"push"]($n(e.to)).catch(l0):Promise.resolve()}return{route:n,href:L(()=>n.value.href),isActive:i,isExactActive:o,navigate:s}}const gGe=ge({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:RH,setup(e,{slots:t}){const r=Bo(RH(e)),{options:n}=We(VS),a=L(()=>({[FH(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[FH(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:C("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},i)}}}),mGe=gGe;function yGe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function bGe(e,t){for(const r in t){const n=t[r],a=e[r];if(typeof n=="string"){if(n!==a)return!1}else if(!Array.isArray(a)||a.length!==n.length||n.some((i,o)=>i!==a[o]))return!1}return!0}function DH(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const FH=(e,t,r)=>e!=null?e:t!=null?t:r,xGe=ge({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:r}){const n=We(bD),a=L(()=>e.route||n.value),i=We(bH,0),o=L(()=>a.value.matched[i]);Ct(bH,i+1),Ct(bWe,o),Ct(bD,a);const s=X();return mt(()=>[s.value,o.value,e.name],([l,u,c],[d,f,A])=>{u&&(u.instances[c]=l,f&&f!==u&&l&&l===d&&(u.leaveGuards.size||(u.leaveGuards=f.leaveGuards),u.updateGuards.size||(u.updateGuards=f.updateGuards))),l&&u&&(!f||!mv(u,f)||!d)&&(u.enterCallbacks[c]||[]).forEach(h=>h(l))},{flush:"post"}),()=>{const l=a.value,u=o.value,c=u&&u.components[e.name],d=e.name;if(!c)return MH(r.default,{Component:c,route:l});const f=u.props[e.name],A=f?f===!0?l.params:typeof f=="function"?f(l):f:null,v=C(c,qr({},A,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(u.instances[d]=null)},ref:s}));return MH(r.default,{Component:v,route:l})||v}}});function MH(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const wGe=xGe;function CGe(e){const t=XWe(e.routes,e),r=e.parseQuery||hGe,n=e.stringifyQuery||IH,a=e.history,i=Lp(),o=Lp(),s=Lp(),l=b9(Su);let u=Su;Ch&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=B2.bind(null,ne=>""+ne),d=B2.bind(null,AGe),f=B2.bind(null,Iw);function A(ne,le){let se,ce;return yJ(ne)?(se=t.getRecordMatcher(ne),ce=le):ce=ne,t.addRoute(ce,se)}function h(ne){const le=t.getRecordMatcher(ne);le&&t.removeRoute(le)}function v(){return t.getRoutes().map(ne=>ne.record)}function p(ne){return!!t.getRecordMatcher(ne)}function g(ne,le){if(le=qr({},le||l.value),typeof ne=="string"){const J=T2(r,ne,le.path),U=t.resolve({path:J.path},le),K=a.createHref(J.fullPath);return qr(J,U,{params:f(U.params),hash:Iw(J.hash),redirectedFrom:void 0,href:K})}let se;if("path"in ne)se=qr({},ne,{path:T2(r,ne.path,le.path).path});else{const J=qr({},ne.params);for(const U in J)J[U]==null&&delete J[U];se=qr({},ne,{params:d(ne.params)}),le.params=d(le.params)}const ce=t.resolve(se,le),ye=ne.hash||"";ce.params=c(f(ce.params));const fe=SWe(n,qr({},ne,{hash:cGe(ye),path:ce.path})),Q=a.createHref(fe);return qr({fullPath:fe,hash:ye,query:n===IH?vGe(ne.query):ne.query||{}},ce,{redirectedFrom:void 0,href:Q})}function m(ne){return typeof ne=="string"?T2(r,ne,l.value.path):qr({},ne)}function y(ne,le){if(u!==ne)return yv(8,{from:le,to:ne})}function b(ne){return S(ne)}function w(ne){return b(qr(m(ne),{replace:!0}))}function x(ne){const le=ne.matched[ne.matched.length-1];if(le&&le.redirect){const{redirect:se}=le;let ce=typeof se=="function"?se(ne):se;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=m(ce):{path:ce},ce.params={}),qr({query:ne.query,hash:ne.hash,params:ne.params},ce)}}function S(ne,le){const se=u=g(ne),ce=l.value,ye=ne.state,fe=ne.force,Q=ne.replace===!0,J=x(se);if(J)return S(qr(m(J),{state:ye,force:fe,replace:Q}),le||se);const U=se;U.redirectedFrom=le;let K;return!fe&&_We(n,ce,se)&&(K=yv(16,{to:U,from:ce}),V(ce,ce,!0,!1)),(K?Promise.resolve(K):B(U,ce)).catch(q=>bd(q)?q:P(q,U,ce)).then(q=>{if(q){if(bd(q,2))return S(qr(m(q.to),{state:ye,force:fe,replace:Q}),le||U)}else q=E(U,ce,!0,Q,ye);return T(U,ce,q),q})}function _(ne,le){const se=y(ne,le);return se?Promise.reject(se):Promise.resolve()}function B(ne,le){let se;const[ce,ye,fe]=SGe(ne,le);se=E2(ce.reverse(),"beforeRouteLeave",ne,le);for(const J of ce)J.leaveGuards.forEach(U=>{se.push(Qu(U,ne,le))});const Q=_.bind(null,ne,le);return se.push(Q),VA(se).then(()=>{se=[];for(const J of i.list())se.push(Qu(J,ne,le));return se.push(Q),VA(se)}).then(()=>{se=E2(ye,"beforeRouteUpdate",ne,le);for(const J of ye)J.updateGuards.forEach(U=>{se.push(Qu(U,ne,le))});return se.push(Q),VA(se)}).then(()=>{se=[];for(const J of ne.matched)if(J.beforeEnter&&!le.matched.includes(J))if(Array.isArray(J.beforeEnter))for(const U of J.beforeEnter)se.push(Qu(U,ne,le));else se.push(Qu(J.beforeEnter,ne,le));return se.push(Q),VA(se)}).then(()=>(ne.matched.forEach(J=>J.enterCallbacks={}),se=E2(fe,"beforeRouteEnter",ne,le),se.push(Q),VA(se))).then(()=>{se=[];for(const J of o.list())se.push(Qu(J,ne,le));return se.push(Q),VA(se)}).catch(J=>bd(J,8)?J:Promise.reject(J))}function T(ne,le,se){for(const ce of s.list())ce(ne,le,se)}function E(ne,le,se,ce,ye){const fe=y(ne,le);if(fe)return fe;const Q=le===Su,J=Ch?history.state:{};se&&(ce||Q?a.replace(ne.fullPath,qr({scroll:Q&&J&&J.scroll},ye)):a.push(ne.fullPath,ye)),l.value=ne,V(ne,le,se,Q),H()}let I;function R(){I=a.listen((ne,le,se)=>{const ce=g(ne),ye=x(ce);if(ye){S(qr(ye,{replace:!0}),ce).catch(l0);return}u=ce;const fe=l.value;Ch&&MWe(CH(fe.fullPath,se.delta),WS()),B(ce,fe).catch(Q=>bd(Q,12)?Q:bd(Q,2)?(S(Q.to,ce).then(J=>{bd(J,20)&&!se.delta&&se.type===Z0.pop&&a.go(-1,!1)}).catch(l0),Promise.reject()):(se.delta&&a.go(-se.delta,!1),P(Q,ce,fe))).then(Q=>{Q=Q||E(ce,fe,!1),Q&&(se.delta?a.go(-se.delta,!1):se.type===Z0.pop&&bd(Q,20)&&a.go(-1,!1)),T(ce,fe,Q)}).catch(l0)})}let D=Lp(),k=Lp(),F;function P(ne,le,se){H(ne);const ce=k.list();return ce.length?ce.forEach(ye=>ye(ne,le,se)):console.error(ne),Promise.reject(ne)}function O(){return F&&l.value!==Su?Promise.resolve():new Promise((ne,le)=>{D.add([ne,le])})}function H(ne){F||(F=!0,R(),D.list().forEach(([le,se])=>ne?se(ne):le()),D.reset())}function V(ne,le,se,ce){const{scrollBehavior:ye}=e;if(!Ch||!ye)return Promise.resolve();const fe=!se&&kWe(CH(ne.fullPath,0))||(ce||!se)&&history.state&&history.state.scroll||null;return ar().then(()=>ye(ne,le,fe)).then(Q=>Q&&FWe(Q)).catch(Q=>P(Q,ne,le))}const W=ne=>a.go(ne);let Z;const ee=new Set;return{currentRoute:l,addRoute:A,removeRoute:h,hasRoute:p,getRoutes:v,resolve:g,options:e,push:b,replace:w,go:W,back:()=>W(-1),forward:()=>W(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:k.add,isReady:O,install(ne){const le=this;ne.component("RouterLink",mGe),ne.component("RouterView",wGe),ne.config.globalProperties.$router=le,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>$n(l)}),Ch&&!Z&&l.value===Su&&(Z=!0,b(a.location).catch(ye=>{}));const se={};for(const ye in Su)se[ye]=L(()=>l.value[ye]);ne.provide(VS,le),ne.provide(EP,Bo(se)),ne.provide(bD,l);const ce=ne.unmount;ee.add(ne),ne.unmount=function(){ee.delete(ne),ee.size<1&&(u=Su,I&&I(),l.value=Su,Z=!1,F=!1),ce()}}}}function VA(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function SGe(e,t){const r=[],n=[],a=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const s=t.matched[o];s&&(e.matched.find(u=>mv(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>mv(u,l))||a.push(l))}return[r,n,a]}function Fxt(){return We(VS)}function _Ge(){return We(EP)}var CD=(e=>(e.CHART_HOME="/chart/home/:id(.*)*",e.CHART_HOME_NAME="ChartHome",e))(CD||{}),SD=(e=>(e.CHART_PREVIEW="/chart/preview/:id(.*)*",e.CHART_PREVIEW_NAME="ChartPreview",e))(SD||{}),c0=(e=>(e.CHART_EDIT="/chart/edit/:id(.*)*",e.CHART_EDIT_NAME="ChartEdit",e))(c0||{}),Kr=(e=>(e.BASE_LOGIN="/login",e.BASE_LOGIN_NAME="Login",e.REDIRECT="/redirect",e.REDIRECT_NAME="Redirect",e.RELOAD="/reload",e.RELOAD_NAME="Reload",e.BASE_HOME="/project",e.BASE_HOME_NAME="Project",e.BASE_HOME_ITEMS="/project/items",e.BASE_HOME_ITEMS_NAME="Project-Items",e.BASE_HOME_TEMPLATE="/project/my-template",e.BASE_HOME_TEMPLATE_NAME="Project-My-Template",e.BASE_HOME_TEMPLATE_MARKET="/project/template-market",e.BASE_HOME_TEMPLATE_MARKET_NAME="Project-Template-Market",e.ERROR_PAGE_NAME_403="ErrorPage403",e.ERROR_PAGE_NAME_404="ErrorPage404",e.ERROR_PAGE_NAME_500="ErrorPage500",e))(Kr||{});const BJ=new Map([[Kh.NOT_FOUND,"ErrorPage404"],[Kh.SERVER_FORBIDDEN,"ErrorPage403"],[Kh.SERVER_ERROR,"ErrorPage500"]]),BGe="https://www.mtruning.club/",TGe="https://gitee.com/dromara/go-view";var ep=(e=>(e.GO_SYSTEM_SETTING_STORE="GO_SYSTEM_SETTING",e.GO_ACCESS_TOKEN_STORE="GO_ACCESS_TOKEN",e.GO_LOGIN_INFO_STORE="GO_LOGIN_INFO",e.GO_LANG_STORE="GO_LANG",e.GO_DESIGN_STORE="GO_DESIGN",e.GO_CHART_LAYOUT_STORE="GO_CHART_LAYOUT",e.GO_CHART_STORAGE_LIST="GO_CHART_STORAGE_LIST",e))(ep||{});const Rw=(e,t)=>{try{window.localStorage.setItem(e,JSON.stringify(t))}catch(r){return!1}},GS=e=>{const t=window.localStorage.getItem(e);try{return t&&JSON.parse(t)}catch(r){return t}},EGe=e=>{window.localStorage.removeItem(e)},Mxt=(e,t)=>{try{window.sessionStorage.setItem(e,JSON.stringify(t))}catch(r){return!1}},kxt=e=>{const t=window.sessionStorage.getItem(e);try{return t&&JSON.parse(t)}catch(r){return t}},IGe="modulepreload",kH={},RGe="/",Oi=function(t,r){return!r||r.length===0?t():Promise.all(r.map(n=>{if(n=`${RGe}${n}`,n in kH)return;kH[n]=!0;const a=n.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${i}`))return;const o=document.createElement("link");if(o.rel=a?"stylesheet":IGe,a||(o.as="script",o.crossOrigin=""),o.href=n,document.head.appendChild(o),a)return new Promise((s,l)=>{o.addEventListener("load",s),o.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},TJ=()=>Oi(()=>import("./404-f12078bf.js"),["static/js/404-f12078bf.js","static/css/404-02e2f39d.css","static/js/404-23faf7f4.js"]),DGe=()=>Oi(()=>import("./403-27e1af60.js"),["static/js/403-27e1af60.js","static/css/403-0603d656.css","static/js/403-c3a61509.js"]),FGe=()=>Oi(()=>import("./500-e12497b1.js"),["static/js/500-e12497b1.js","static/css/500-40625925.css","static/js/500-da30cad1.js"]),EJ=()=>Oi(()=>import("./index-4a3a4ee7.js"),[]);var KS=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r};const MGe={class:"go-reload"},kGe=ge({__name:"index",setup(e){return Ar(()=>{$c.go(-1)}),(t,r)=>($a(),Xs("div",MGe))}});var PGe=KS(kGe,[["__scopeId","data-v-3ecec4ca"]]);const LGe={path:"/login",name:"Login",component:()=>Oi(()=>import("./index-35aae048.js"),["static/js/index-35aae048.js","static/css/index-25fb3950.css","static/js/noImage-91f53245.js","static/js/border-11dcc4bb.js","static/js/theme-color-0deb5eeb.js","static/js/tables_list-a7382472.js","static/js/_arrayMap-23a2d4b9.js","static/js/index-961888e8.js","static/css/index-8f2c5737.css","static/js/icon-d6196121.js"]),meta:{title:"\u767B\u5F55"}},OGe=[{path:"/error/404",name:Kr.ERROR_PAGE_NAME_404,component:TJ,meta:{title:Kr.ERROR_PAGE_NAME_404}},{path:"/error/403",name:Kr.ERROR_PAGE_NAME_403,component:DGe,meta:{title:Kr.ERROR_PAGE_NAME_403}},{path:"/error/500",name:Kr.ERROR_PAGE_NAME_500,component:FGe,meta:{title:Kr.ERROR_PAGE_NAME_500}}];Kr.ERROR_PAGE_NAME_404;const $Ge={path:Kr.RELOAD,name:Kr.RELOAD_NAME,component:PGe,meta:{title:Kr.RELOAD_NAME}},UGe={path:Kr.REDIRECT,name:Kr.REDIRECT_NAME,component:EJ,meta:{title:Kr.REDIRECT_NAME},children:[{path:"/redirect/:path(.*)",name:Kr.REDIRECT_NAME,component:()=>Oi(()=>import("./index-b2af7fa3.js"),[]),meta:{title:Kr.REDIRECT_NAME,hideBreadcrumb:!0}}]},Qb={"PageEnum.BASE_HOME_NAME":()=>Oi(()=>import("./index-396d8055.js"),["static/js/index-396d8055.js","static/css/index-c444f28a.css","static/js/icon-d6196121.js","static/js/index-147c69c9.js","static/css/index-c9612015.css","static/js/index-961888e8.js","static/css/index-8f2c5737.css","static/js/theme-color-0deb5eeb.js"]),"PageEnum.BASE_HOME_ITEMS_NAME":()=>Oi(()=>import("./index-94ff4b66.js"),["static/js/index-94ff4b66.js","static/css/index-b0a26b0c.css","static/js/noImage-91f53245.js","static/js/403-c3a61509.js","static/js/404-23faf7f4.js","static/js/500-da30cad1.js","static/js/border-11dcc4bb.js","static/js/theme-color-0deb5eeb.js","static/js/tables_list-a7382472.js","static/js/icon-d6196121.js","static/js/index-fd8838d6.js","static/css/index-2ce6d63c.css","static/js/plugin-49832ae5.js"]),"PageEnum.BASE_HOME_TEMPLATE_NAME":()=>Oi(()=>import("./index-dfccce0a.js"),["static/js/index-dfccce0a.js","static/css/index-367bbf0c.css"]),"PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME":()=>Oi(()=>import("./index-58e42ffe.js"),["static/js/index-58e42ffe.js","static/css/index-84dfce21.css"])},HGe={path:Kr.BASE_HOME,name:Kr.BASE_HOME_NAME,component:Qb["PageEnum.BASE_HOME_NAME"],redirect:Kr.BASE_HOME_ITEMS,meta:{title:"\u9879\u76EE",isRoot:!0},children:[{path:Kr.BASE_HOME_ITEMS,name:Kr.BASE_HOME_ITEMS_NAME,component:Qb["PageEnum.BASE_HOME_ITEMS_NAME"],meta:{title:"\u6211\u7684\u9879\u76EE"}},{path:Kr.BASE_HOME_TEMPLATE,name:Kr.BASE_HOME_TEMPLATE_NAME,component:Qb["PageEnum.BASE_HOME_TEMPLATE_NAME"],meta:{title:"\u6211\u7684\u6A21\u677F"}},{path:Kr.BASE_HOME_TEMPLATE_MARKET,name:Kr.BASE_HOME_TEMPLATE_MARKET_NAME,component:Qb["PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME"],meta:{title:"\u6A21\u677F\u5E02\u573A"}}]},zGe={"ChartEnum.CHART_HOME_NAME":()=>Oi(()=>import("./index-6e87b835.js").then(function(e){return e.i}),["static/js/index-6e87b835.js","static/css/index-37606455.css","static/js/index-961888e8.js","static/css/index-8f2c5737.css","static/js/icon-d6196121.js","static/js/theme-color-0deb5eeb.js","static/js/index-147c69c9.js","static/css/index-c9612015.css","static/js/chartEditStore-53dc1709.js","static/js/plugin-49832ae5.js"])},NGe={path:CD.CHART_HOME,name:CD.CHART_HOME_NAME,component:zGe["ChartEnum.CHART_HOME_NAME"],meta:{title:"\u5DE5\u4F5C\u7A7A\u95F4",isRoot:!0,noKeepAlive:!0}},QGe={"PreviewEnum.CHART_PREVIEW_NAME":()=>Oi(()=>import("./wrapper-77684ea4.js"),["static/js/wrapper-77684ea4.js","static/css/wrapper-930688f6.css","static/css/SettingItemBox.vue_vue_type_style_index_0_scoped_true_lang-180d0bf1.css","static/js/storage-8434c3ff.js","static/js/useLifeHandler.hook-96539d1c.js","static/js/chartEditStore-53dc1709.js","static/js/plugin-49832ae5.js","static/js/icon-d6196121.js","static/js/index-cd09e6dc.js","static/css/index-3e66113d.css","static/js/_arrayMap-23a2d4b9.js","static/js/tables_list-a7382472.js","static/js/http-6ded690c.js","static/js/SettingItemBox-35417b6f.js","static/js/CollapseItem-fd18501b.js"])},VGe={path:SD.CHART_PREVIEW,name:SD.CHART_PREVIEW_NAME,component:QGe["PreviewEnum.CHART_PREVIEW_NAME"],meta:{title:"\u9884\u89C8",isRoot:!0}},WGe={[c0.CHART_EDIT_NAME]:()=>Oi(()=>import("./index-869e5315.js"),["static/js/index-869e5315.js","static/css/index-45c50323.css","static/js/EditorWorker-a9d0b3e4.js","static/css/EditorWorker-d140d548.css","static/js/editorWorker-a0599278.js","static/js/storage-8434c3ff.js","static/js/icon-d6196121.js"])},GGe={path:c0.CHART_EDIT,name:c0.CHART_EDIT_NAME,component:WGe[c0.CHART_EDIT_NAME],meta:{title:"\u7F16\u8F91",isRoot:!0}};var Vb={projectRoutes:HGe,chartRoutes:NGe,previewRoutes:VGe,editRoutes:GGe};const KGe=[{path:"/",name:"Root",redirect:Kr.BASE_HOME,component:EJ,meta:{title:"Root"},children:[...OGe,Vb.projectRoutes,Vb.chartRoutes,Vb.previewRoutes,Vb.editRoutes]}],jGe=[LGe,...KGe,UGe,$Ge],$c=CGe({history:UWe(""),routes:jGe,strict:!0});function YGe(e){e.use($c)}const jS=(e,t,r)=>{if(r){const n=XGe(e,"href");YS(n);return}if(t){$c.replace({name:e});return}$c.push({name:e})},XGe=(e,t)=>{try{const r=$c.resolve({name:e});return t?r[t]:r}catch(r){window.$message.warning("\u67E5\u8BE2\u8DEF\u7531\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")}},Pxt=(e,t,r,n)=>{let a="";if(t!=null&&t.length&&(a=`${e}/${t.join("/")}`),n)return YS(a);if(r){$c.replace({path:a});return}$c.push({path:a})},qGe=e=>{if(!e)return!1;const t=BJ.get(e);if(!t)return!1;jS(t)},ZGe=()=>{jS(Kr.RELOAD_NAME)},Lxt=()=>{EGe(ep.GO_LOGIN_INFO_STORE),jS(Kr.BASE_LOGIN_NAME)},YS=e=>window.open(e,"_blank"),Oxt=()=>{YS(BGe)},$xt=()=>{YS(TGe)},Uxt=()=>document.location.hash.includes("preview"),Hxt=()=>{try{return _Ge().params}catch(e){window.$message.warning("\u67E5\u8BE2\u8DEF\u7531\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")}},zxt=()=>{jS(Kr.BASE_HOME_NAME)};var IJ={exports:{}},RJ={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},DJ={exports:{}},JGe=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},eKe=JGe,tKe=Array.prototype.concat,rKe=Array.prototype.slice,PH=DJ.exports=function(t){for(var r=[],n=0,a=t.length;n<a;n++){var i=t[n];eKe(i)?r=tKe.call(r,rKe.call(i)):r.push(i)}return r};PH.wrap=function(e){return function(){return e(PH(arguments))}};var d0=RJ,uy=DJ.exports,FJ=Object.hasOwnProperty,MJ=Object.create(null);for(var I2 in d0)FJ.call(d0,I2)&&(MJ[d0[I2]]=I2);var $i=IJ.exports={to:{},get:{}};$i.get=function(e){var t=e.substring(0,3).toLowerCase(),r,n;switch(t){case"hsl":r=$i.get.hsl(e),n="hsl";break;case"hwb":r=$i.get.hwb(e),n="hwb";break;default:r=$i.get.rgb(e),n="rgb";break}return r?{model:n,value:r}:null};$i.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^(\w+)$/,o=[0,0,0,1],s,l,u;if(s=e.match(r)){for(u=s[2],s=s[1],l=0;l<3;l++){var c=l*2;o[l]=parseInt(s.slice(c,c+2),16)}u&&(o[3]=parseInt(u,16)/255)}else if(s=e.match(t)){for(s=s[1],u=s[3],l=0;l<3;l++)o[l]=parseInt(s[l]+s[l],16);u&&(o[3]=parseInt(u+u,16)/255)}else if(s=e.match(n)){for(l=0;l<3;l++)o[l]=parseInt(s[l+1],0);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else if(s=e.match(a)){for(l=0;l<3;l++)o[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else return(s=e.match(i))?s[1]==="transparent"?[0,0,0,0]:FJ.call(d0,s[1])?(o=d0[s[1]],o[3]=1,o):null:null;for(l=0;l<3;l++)o[l]=hc(o[l],0,255);return o[3]=hc(o[3],0,1),o};$i.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),a=(parseFloat(r[1])%360+360)%360,i=hc(parseFloat(r[2]),0,100),o=hc(parseFloat(r[3]),0,100),s=hc(isNaN(n)?1:n,0,1);return[a,i,o,s]}return null};$i.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),a=(parseFloat(r[1])%360+360)%360,i=hc(parseFloat(r[2]),0,100),o=hc(parseFloat(r[3]),0,100),s=hc(isNaN(n)?1:n,0,1);return[a,i,o,s]}return null};$i.to.hex=function(){var e=uy(arguments);return"#"+Wb(e[0])+Wb(e[1])+Wb(e[2])+(e[3]<1?Wb(Math.round(e[3]*255)):"")};$i.to.rgb=function(){var e=uy(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};$i.to.rgb.percent=function(){var e=uy(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"};$i.to.hsl=function(){var e=uy(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};$i.to.hwb=function(){var e=uy(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};$i.to.keyword=function(e){return MJ[e.slice(0,3)]};function hc(e,t,r){return Math.min(Math.max(t,e),r)}function Wb(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}const J0=RJ,kJ={};for(const e of Object.keys(J0))kJ[J0[e]]=e;const Mt={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var PJ=Mt;for(const e of Object.keys(Mt)){if(!("channels"in Mt[e]))throw new Error("missing channels property: "+e);if(!("labels"in Mt[e]))throw new Error("missing channel labels property: "+e);if(Mt[e].labels.length!==Mt[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=Mt[e];delete Mt[e].channels,delete Mt[e].labels,Object.defineProperty(Mt[e],"channels",{value:t}),Object.defineProperty(Mt[e],"labels",{value:r})}Mt.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a;let s,l;i===a?s=0:t===i?s=(r-n)/o:r===i?s=2+(n-t)/o:n===i&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360);const u=(a+i)/2;return i===a?l=0:u<=.5?l=o/(i+a):l=o/(2-i-a),[s,l*100,u*100]};Mt.rgb.hsv=function(e){let t,r,n,a,i;const o=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(o,s,l),c=u-Math.min(o,s,l),d=function(f){return(u-f)/6/c+1/2};return c===0?(a=0,i=0):(i=c/u,t=d(o),r=d(s),n=d(l),o===u?a=n-r:s===u?a=1/3+t-n:l===u&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[a*360,i*100,u*100]};Mt.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const a=Mt.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,i*100,n*100]};Mt.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,o=(1-r-a)/(1-a)||0,s=(1-n-a)/(1-a)||0;return[i*100,o*100,s*100,a*100]};function nKe(e,t){return Nn(e[0]-t[0],2)+Nn(e[1]-t[1],2)+Nn(e[2]-t[2],2)}Mt.rgb.keyword=function(e){const t=kJ[e];if(t)return t;let r=1/0,n;for(const a of Object.keys(J0)){const i=J0[a],o=nKe(e,i);o<r&&(r=o,n=a)}return n};Mt.keyword.rgb=function(e){return J0[e]};Mt.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Nn((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Nn((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Nn((n+.055)/1.055,2.4):n/12.92;const a=t*.4124+r*.3576+n*.1805,i=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[a*100,i*100,o*100]};Mt.rgb.lab=function(e){const t=Mt.rgb.xyz(e);let r=t[0],n=t[1],a=t[2];r/=95.047,n/=100,a/=108.883,r=r>.008856?Nn(r,1/3):7.787*r+16/116,n=n>.008856?Nn(n,1/3):7.787*n+16/116,a=a>.008856?Nn(a,1/3):7.787*a+16/116;const i=116*n-16,o=500*(r-n),s=200*(n-a);return[i,o,s]};Mt.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let a,i,o;if(r===0)return o=n*255,[o,o,o];n<.5?a=n*(1+r):a=n+r-n*r;const s=2*n-a,l=[0,0,0];for(let u=0;u<3;u++)i=t+1/3*-(u-1),i<0&&i++,i>1&&i--,6*i<1?o=s+(a-s)*6*i:2*i<1?o=a:3*i<2?o=s+(a-s)*(2/3-i)*6:o=s,l[u]=o*255;return l};Mt.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,a=r;const i=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=i<=1?i:2-i;const o=(n+r)/2,s=n===0?2*a/(i+a):2*r/(n+r);return[t,s*100,o*100]};Mt.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const a=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*i),l=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,l,o];case 1:return[s,n,o];case 2:return[o,n,l];case 3:return[o,s,n];case 4:return[l,o,n];case 5:return[n,o,s]}};Mt.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01);let i,o;o=(2-r)*n;const s=(2-r)*a;return i=r*a,i/=s<=1?s:2-s,i=i||0,o/=2,[t,i*100,o*100]};Mt.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const a=r+n;let i;a>1&&(r/=a,n/=a);const o=Math.floor(6*t),s=1-n;i=6*t-o,(o&1)!==0&&(i=1-i);const l=r+i*(s-r);let u,c,d;switch(o){default:case 6:case 0:u=s,c=l,d=r;break;case 1:u=l,c=s,d=r;break;case 2:u=r,c=s,d=l;break;case 3:u=r,c=l,d=s;break;case 4:u=l,c=r,d=s;break;case 5:u=s,c=r,d=l;break}return[u*255,c*255,d*255]};Mt.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100,i=1-Math.min(1,t*(1-a)+a),o=1-Math.min(1,r*(1-a)+a),s=1-Math.min(1,n*(1-a)+a);return[i*255,o*255,s*255]};Mt.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let a,i,o;return a=t*3.2406+r*-1.5372+n*-.4986,i=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,a=a>.0031308?1.055*Nn(a,1/2.4)-.055:a*12.92,i=i>.0031308?1.055*Nn(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Nn(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[a*255,i*255,o*255]};Mt.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?Nn(t,1/3):7.787*t+16/116,r=r>.008856?Nn(r,1/3):7.787*r+16/116,n=n>.008856?Nn(n,1/3):7.787*n+16/116;const a=116*r-16,i=500*(t-r),o=200*(r-n);return[a,i,o]};Mt.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let a,i,o;i=(t+16)/116,a=r/500+i,o=i-n/200;const s=Nn(i,3),l=Nn(a,3),u=Nn(o,3);return i=s>.008856?s:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,a*=95.047,i*=100,o*=108.883,[a,i,o]};Mt.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let a;a=Math.atan2(n,r)*360/2/Math.PI,a<0&&(a+=360);const o=Math.sqrt(r*r+n*n);return[t,o,a]};Mt.lch.lab=function(e){const t=e[0],r=e[1],a=e[2]/360*2*Math.PI,i=r*Math.cos(a),o=r*Math.sin(a);return[t,i,o]};Mt.rgb.ansi16=function(e,t=null){const[r,n,a]=e;let i=t===null?Mt.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let o=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return i===2&&(o+=60),o};Mt.hsv.ansi16=function(e){return Mt.rgb.ansi16(Mt.hsv.rgb(e),e[2])};Mt.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};Mt.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,a=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[n,a,i]};Mt.ansi256.rgb=function(e){if(e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,a=t%6/5*255;return[r,n,a]};Mt.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};Mt.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),a=n>>16&255,i=n>>8&255,o=n&255;return[a,i,o]};Mt.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),o=a-i;let s,l;return o<1?s=i/(1-o):s=0,o<=0?l=0:a===t?l=(r-n)/o%6:a===r?l=2+(n-t)/o:l=4+(t-r)/o,l/=6,l%=1,[l*360,o*100,s*100]};Mt.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],n*100,a*100]};Mt.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],n*100,a*100]};Mt.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const a=[0,0,0],i=t%1*6,o=i%1,s=1-o;let l=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return l=(1-r)*n,[(r*a[0]+l)*255,(r*a[1]+l)*255,(r*a[2]+l)*255]};Mt.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let a=0;return n>0&&(a=t/n),[e[0],a*100,n*100]};Mt.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],a*100,n*100]};Mt.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};Mt.hwb.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=1-r,a=n-t;let i=0;return a<1&&(i=(n-a)/(1-a)),[e[0],a*100,i*100]};Mt.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Mt.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Mt.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Mt.gray.hsl=function(e){return[0,0,e[0]]};Mt.gray.hsv=Mt.gray.hsl;Mt.gray.hwb=function(e){return[0,100,e[0]]};Mt.gray.cmyk=function(e){return[0,0,0,e[0]]};Mt.gray.lab=function(e){return[e[0],0,0]};Mt.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};Mt.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Dw=PJ;function aKe(){const e={},t=Object.keys(Dw);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function iKe(e){const t=aKe(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),a=Object.keys(Dw[n]);for(let i=a.length,o=0;o<i;o++){const s=a[o],l=t[s];l.distance===-1&&(l.distance=t[n].distance+1,l.parent=n,r.unshift(s))}}return t}function oKe(e,t){return function(r){return t(e(r))}}function sKe(e,t){const r=[t[e].parent,e];let n=Dw[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)r.unshift(t[a].parent),n=oKe(Dw[t[a].parent][a],n),a=t[a].parent;return n.conversion=r,n}var lKe=function(e){const t=iKe(e),r={},n=Object.keys(t);for(let a=n.length,i=0;i<a;i++){const o=n[i];t[o].parent!==null&&(r[o]=sKe(o,t))}return r};const _D=PJ,uKe=lKe,Sh={},cKe=Object.keys(_D);function dKe(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function fKe(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const a=e(r);if(typeof a=="object")for(let i=a.length,o=0;o<i;o++)a[o]=Math.round(a[o]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}cKe.forEach(e=>{Sh[e]={},Object.defineProperty(Sh[e],"channels",{value:_D[e].channels}),Object.defineProperty(Sh[e],"labels",{value:_D[e].labels});const t=uKe(e);Object.keys(t).forEach(n=>{const a=t[n];Sh[e][n]=fKe(a),Sh[e][n].raw=dKe(a)})});var AKe=Sh;const _h=IJ.exports,Fi=AKe,LJ=["keyword","gray","hex"],BD={};for(const e of Object.keys(Fi))BD[[...Fi[e].labels].sort().join("")]=e;const Fw={};function sa(e,t){if(!(this instanceof sa))return new sa(e,t);if(t&&t in LJ&&(t=null),t&&!(t in Fi))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof sa)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const a=_h.get(e);if(a===null)throw new Error("Unable to parse color from string: "+e);this.model=a.model,n=Fi[this.model].channels,this.color=a.value.slice(0,n),this.valpha=typeof a.value[n]=="number"?a.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=Fi[this.model].channels;const a=Array.prototype.slice.call(e,0,n);this.color=TD(a,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const a=Object.keys(e);"alpha"in e&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const i=a.sort().join("");if(!(i in BD))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=BD[i];const{labels:o}=Fi[this.model],s=[];for(r=0;r<o.length;r++)s.push(e[o[r]]);this.color=TD(s)}if(Fw[this.model])for(n=Fi[this.model].channels,r=0;r<n;r++){const a=Fw[this.model][r];a&&(this.color[r]=a(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}sa.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in _h.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return _h.to[t.model](r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return _h.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Fi[this.model],{labels:r}=Fi[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new sa([...this.color.map(vKe(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new sa([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Cn("rgb",0,Yn(255)),green:Cn("rgb",1,Yn(255)),blue:Cn("rgb",2,Yn(255)),hue:Cn(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:Cn("hsl",1,Yn(100)),lightness:Cn("hsl",2,Yn(100)),saturationv:Cn("hsv",1,Yn(100)),value:Cn("hsv",2,Yn(100)),chroma:Cn("hcg",1,Yn(100)),gray:Cn("hcg",2,Yn(100)),white:Cn("hwb",1,Yn(100)),wblack:Cn("hwb",2,Yn(100)),cyan:Cn("cmyk",0,Yn(100)),magenta:Cn("cmyk",1,Yn(100)),yellow:Cn("cmyk",2,Yn(100)),black:Cn("cmyk",3,Yn(100)),x:Cn("xyz",0,Yn(95.047)),y:Cn("xyz",1,Yn(100)),z:Cn("xyz",2,Yn(108.833)),l:Cn("lab",0,Yn(100)),a:Cn("lab",1),b:Cn("lab",2),keyword(e){return e!==void 0?new sa(e):Fi[this.model].keyword(this.color)},hex(e){return e!==void 0?new sa(e):_h.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new sa(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),_h.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const a=n/255;t[r]=a<=.04045?a/12.92:Nn((a+.055)/1.055,2.4)}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return sa.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),a=t===void 0?.5:t,i=2*a-1,o=r.alpha()-n.alpha(),s=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,l=1-s;return sa.rgb(s*r.red()+l*n.red(),s*r.green()+l*n.green(),s*r.blue()+l*n.blue(),r.alpha()*a+n.alpha()*(1-a))}};for(const e of Object.keys(Fi)){if(LJ.includes(e))continue;const{channels:t}=Fi[e];sa.prototype[e]=function(...r){return this.model===e?new sa(this):r.length>0?new sa(r,e):new sa([...pKe(Fi[this.model][e].raw(this.color)),this.valpha],e)},sa[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=TD(r,t)),new sa(n,e)}}function hKe(e,t){return Number(e.toFixed(t))}function vKe(e){return function(t){return hKe(t,e)}}function Cn(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(Fw[n]||(Fw[n]=[]))[t]=r;return e=e[0],function(n){let a;return n!==void 0?(r&&(n=r(n)),a=this[e](),a.color[t]=n,a):(a=this[e]().color[t],r&&(a=r(a)),a)}}function Yn(e){return function(t){return Math.max(0,Math.min(e,t))}}function pKe(e){return Array.isArray(e)?e:[e]}function TD(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var gKe=sa,OJ=gKe;const Nxt=e=>e.length?`animate__animated animate__${e[0]}`:"",Qxt=e=>{if(!e||!e.filterShow)return{};const{opacity:t,saturate:r,contrast:n,hueRotate:a,brightness:i}=e;return{opacity:t,filter:`saturate(${r}) contrast(${n}) hue-rotate(${a}deg) brightness(${i})`}},Vxt=e=>{const{rotateZ:t,rotateX:r,rotateY:n,skewX:a,skewY:i}=e;return{transform:`rotateZ(${t||0}deg) rotateX(${r||0}deg) rotateY(${n||0}deg) skewX(${a||0}deg) skewY(${i||0}deg)`}},Wxt=e=>{if(!e||!e.filterShow)return{};const{blendMode:t}=e;return{"mix-blend-mode":t}};function LH(e,t=1){return OJ(e).alpha(t).toString()}function OH(e,t){return OJ(e).lighten(t).toString()}const mKe=e=>{const t=window.document.documentElement;if(e){t.setAttribute("data-theme",e);return}const r=RP();t.setAttribute("data-theme",r.themeName)},yKe=mPe({components:[Oke,Hke,Dke,Fke,Mke,kke,MSe,JSe,Qke,lke,Pk,BX,EY,Bj,TIe,os,on,iwe,TEe,dIe,xj,Zm,Ok,cX,lFe,fFe,uFe,vFe,bFe,NFe,Kxe,qxe,Uk,dEe,dS,yxe,nke,pw,JMe,pj,gIe,yIe,JTe,tEe,MTe,YMe,Uxe,N1e,yEe,rx,TX,n_e,EX,q2e,RIe,AIe,BFe,TFe,oke,NBe,Nv,Oj,FMe,Mj,Gj,Lk,VMe,GMe,QK,lxe,yMe,oTe,lTe,ZMe,iFe,gX,TY,fPe,UX,tP,LX,Eke,LMe,dke,Ake,vw,Dxe,EMe,UMe,hSe,wMe,Ij,HSe,QSe,zCe,pPe,sS,XSe]});function bKe(e){e.use(yKe)}/*!
|
|
* Vue3-Lazyload.js v0.2.5-beta
|
|
* A Vue3.x image lazyload plugin
|
|
* (c) 2021 MuRong <admin@imuboy.cn>
|
|
* Released under the MIT License.
|
|
*/var zo;(function(e){e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"})(zo||(zo={}));var xKe=typeof window!="undefined"&&window!==null,wKe=BKe(),CKe=Object.prototype.propertyIsEnumerable,$H=Object.getOwnPropertySymbols;function f0(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function SKe(e){return typeof e=="object"?e===null:typeof e!="function"}function _Ke(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function BKe(){return xKe&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),!0):!1}function TKe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!f0(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof $H!="function")return e;for(var n=0,a=t;n<a.length;n++)for(var i=a[n],o=$H(i),s=0,l=o;s<l.length;s++){var u=l[s];CKe.call(i,u)&&(e[u]=i[u])}return e}function $J(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=0;for(SKe(e)&&(e=t[n++]),e||(e={});n<t.length;n++)if(f0(t[n])){for(var a=0,i=Object.keys(t[n]);a<i.length;a++){var o=i[a];_Ke(o)&&(f0(e[o])&&f0(t[n][o])?$J(e[o],t[n][o]):e[o]=t[n][o])}TKe(e,t[n])}return e}var EKe={rootMargin:"0px",threshold:0},UH="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",IKe="",RKe=function(){function e(t){this.options={loading:UH,error:IKe,observerOptions:EKe,log:!0,lifecycle:{}},this._images=new WeakMap,this.config(t)}return e.prototype.config=function(t){t===void 0&&(t={}),$J(this.options,t)},e.prototype.mount=function(t,r){var n=this._valueFormatter(r.value),a=n.src,i=n.loading,o=n.error,s=n.lifecycle;this._lifecycle(zo.LOADING,s,t),t.setAttribute("src",i||UH),wKe||(this.loadImages(t,a,o,s),this._log(function(){throw new Error("Not support IntersectionObserver!")})),this._initIntersectionObserver(t,a,o,s)},e.prototype.update=function(t,r){var n;(n=this._realObserver(t))===null||n===void 0||n.unobserve(t);var a=this._valueFormatter(r.value),i=a.src,o=a.error,s=a.lifecycle;this._initIntersectionObserver(t,i,o,s)},e.prototype.unmount=function(t){var r;(r=this._realObserver(t))===null||r===void 0||r.unobserve(t),this._images.delete(t)},e.prototype.loadImages=function(t,r,n,a){this._setImageSrc(t,r,n,a)},e.prototype._setImageSrc=function(t,r,n,a){var i=this;if(t.tagName.toLowerCase()==="img"){if(r){var o=t.getAttribute("src");o!==r&&t.setAttribute("src",r)}this._listenImageStatus(t,function(){i._lifecycle(zo.LOADED,a,t)},function(){var s;t.onload=null,i._lifecycle(zo.ERROR,a,t),(s=i._realObserver(t))===null||s===void 0||s.disconnect(),n&&t.setAttribute("src",n),i._log(function(){throw new Error("Image failed to load!")})})}else t.style.backgroundImage="url('"+r+"')"},e.prototype._initIntersectionObserver=function(t,r,n,a){var i=this,o,s=this.options.observerOptions;this._images.set(t,new IntersectionObserver(function(l){Array.prototype.forEach.call(l,function(u){var c;u.isIntersecting&&((c=i._realObserver(t))===null||c===void 0||c.unobserve(u.target),i._setImageSrc(t,r,n,a))})},s)),(o=this._realObserver(t))===null||o===void 0||o.observe(t)},e.prototype._listenImageStatus=function(t,r,n){t.onload=r,t.onerror=n},e.prototype._valueFormatter=function(t){var r=t,n=this.options.loading,a=this.options.error,i=this.options.lifecycle;return f0(t)&&(r=t.src,n=t.loading||this.options.loading,a=t.error||this.options.error,i=t.lifecycle||this.options.lifecycle),{src:r,loading:n,error:a,lifecycle:i}},e.prototype._log=function(t){this.options.log&&t()},e.prototype._lifecycle=function(t,r,n){switch(t){case zo.LOADING:n==null||n.setAttribute("lazy",zo.LOADING),r!=null&&r.loading&&r.loading(n);break;case zo.LOADED:n==null||n.setAttribute("lazy",zo.LOADED),r!=null&&r.loaded&&r.loaded(n);break;case zo.ERROR:n==null||n.setAttribute("lazy",zo.ERROR),r!=null&&r.error&&r.error(n);break}},e.prototype._realObserver=function(t){return this._images.get(t)},e}(),DKe={install:function(e,t){var r=new RKe(t);e.config.globalProperties.$Lazyload=r,e.provide("Lazyload",r),e.directive("lazy",{mounted:r.mount.bind(r),updated:r.update.bind(r),unmounted:r.unmount.bind(r)})}};function FKe(e){e.use(DKe,{error:yWe()})}const MKe={class:"go-skeleton"},kKe=ge({__name:"index",props:{repeat:{type:Number,default:1},load:{type:Boolean,default:!0}},setup(e){return(t,r)=>{const n=Hf("n-skeleton");return jr(($a(),Xs("div",MKe,[jr(pi("div",null,[nr(n,An({class:"item"},t.$attrs),null,16)],512),[[Bn,e.repeat==1]]),jr(pi("div",null,[nr(n,An({class:"item"},t.$attrs),null,16),nr(n,An({class:"item"},t.$attrs,{style:{width:"60%"}}),null,16)],512),[[Bn,e.repeat==2]]),jr(pi("div",null,[nr(n,An({class:"item"},t.$attrs,{repeat:e.repeat-2}),null,16,["repeat"]),nr(n,An({class:"item"},t.$attrs,{style:{width:"60%"}}),null,16),nr(n,An({class:"item"},t.$attrs,{style:{width:"50%"}}),null,16)],512),[[Bn,e.repeat>2]])],512)),[[Bn,e.load]])}}});var PKe=KS(kKe,[["__scopeId","data-v-1ab16d08"]]),LKe="static/svg/loadingSvg-633775fd.svg";const OKe={},$Ke=e=>(R9("data-v-06585fdc"),e=e(),D9(),e),UKe={class:"go-loading-svg go-flex-center"},HKe=$Ke(()=>pi("img",{src:LKe,alt:""},null,-1)),zKe=[HKe];function NKe(e,t){return $a(),Xs("div",UKe,zKe)}var ED=KS(OKe,[["render",NKe],["__scopeId","data-v-06585fdc"]]);const QKe={};function VKe(e,t){const r=Hf("go-skeleton");return $a(),Xs("div",null,[nr(r,{repeat:3,show:!0})])}var HH=KS(QKe,[["render",VKe]]);ED.install=e=>{e.component("AsyncLoading",ED)};HH.install=e=>{e.component("AsyncSkeletonLoading",HH)};var WKe=Object.defineProperty,zH=Object.getOwnPropertySymbols,GKe=Object.prototype.hasOwnProperty,KKe=Object.prototype.propertyIsEnumerable,NH=(e,t,r)=>t in e?WKe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jKe=(e,t)=>{for(var r in t||(t={}))GKe.call(t,r)&&NH(e,r,t[r]);if(zH)for(var r of zH(t))KKe.call(t,r)&&NH(e,r,t[r]);return e},XS=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r};const YKe=ge({name:"LineRuler",props:{scale:Number,thick:Number,palette:Object,index:Number,start:Number,vertical:Boolean,value:Number,isShowReferLine:Boolean},emits:["onMouseDown","onRelease","onRemove"],setup(e,{emit:t}){const r=X(0),n=X(!0);Ar(()=>{r.value=e.value});const a=c=>{n.value=c>=0},i=L(()=>{const c=(r.value-e.start)*e.scale;a(c);const d=c+"px";return e.vertical?{top:d}:{left:d}}),o=L(()=>{var c;const d=`1px solid ${(c=e.palette)==null?void 0:c.lineColor}`,f=e.vertical?{borderTop:d}:{borderLeft:d},A=e.isShowReferLine?e.vertical?"ns-resize":"ew-resize":"none";return jKe({cursor:A},f)}),s=L(()=>e.vertical?{left:e.thick+"px"}:{top:e.thick+"px"});return{startValue:r,showLine:n,offset:i,borderCursor:o,actionStyle:s,handleDown:c=>{const d=e.vertical?c.clientY:c.clientX,f=r.value;t("onMouseDown");const A=v=>{const p=e.vertical?v.clientY:v.clientX,g=Math.round(f+(p-d)/e.scale);r.value=g},h=()=>{t("onRelease",r.value,e.index),document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",h)};document.addEventListener("mousemove",A),document.addEventListener("mouseup",h)},handleRemove:()=>{t("onRemove",e.index)}}}}),XKe={class:"value"};function qKe(e,t,r,n,a,i){return jr(($a(),Xs("div",{class:"line",style:rs([e.offset,e.borderCursor]),onMousedown:t[1]||(t[1]=(...o)=>e.handleDown&&e.handleDown(...o))},[pi("div",{class:"action",style:rs(e.actionStyle)},[pi("span",{class:"del",onClick:t[0]||(t[0]=(...o)=>e.handleRemove&&e.handleRemove(...o))},"\xD7"),pi("span",XKe,yM(e.startValue),1)],4)],36)),[[Bn,e.showLine]])}var ZKe=XS(YKe,[["render",qKe],["__scopeId","data-v-074b3d94"]]);const JKe=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,QH=.83,eje=(e,t,r,n,a,i)=>{const{scale:o,width:s,height:l,ratio:u,palette:c}=a,{bgColor:d,fontColor:f,shadowColor:A,longfgColor:h,shortfgColor:v}=c;if(e.scale(u,u),e.clearRect(0,0,s,l),e.fillStyle=d,e.fillRect(0,0,s,l),n){const B=(r-t)*o,T=n*o;e.fillStyle=A,i?e.fillRect(B,0,T,l*3/8):e.fillRect(0,B,s*3/8,T)}const p=JKe(o),g=p*o,m=p*10,y=m*o,b=Math.floor(t/p)*p,w=Math.floor(t/m)*m,x=(b-t)/p*g,S=(w-t)/m*y,_=t+Math.ceil((i?s:l)/o);e.beginPath(),e.fillStyle=f,e.strokeStyle=h;for(let B=w,T=0;B<_;B+=m,T++){const E=S+T*y+.5;i?e.moveTo(E,0):e.moveTo(0,E),e.save(),i?e.translate(E,l*.4):e.translate(s*.4,E),i||e.rotate(-Math.PI/2),e.scale(QH/u,QH/u),e.fillText(B.toString(),4*u,7*u),e.restore(),i?e.lineTo(E,l*9/16):e.lineTo(s*9/16,E)}e.stroke(),e.closePath(),e.beginPath(),e.strokeStyle=v;for(let B=b,T=0;B<_;B+=p,T++){const E=x+T*g+.5;i?e.moveTo(E,0):e.moveTo(0,E),B%m!==0&&(i?e.lineTo(E,l*1/4):e.lineTo(s*1/4,E))}e.stroke(),e.closePath(),e.setTransform(1,0,0,1,0,0)},tje=ge({name:"CanvasRuler",props:{showIndicator:Boolean,valueNum:Number,scale:Number,ratio:Number,palette:Object,vertical:Boolean,start:Number,width:Number,height:Number,selectStart:Number,selectLength:Number},emits:["onAddLine","update:showIndicator","update:valueNum"],setup(e,{emit:t}){const r=Bo({canvasContext:null});let n=1;const a=X(null);Ar(()=>{n=e.ratio||window.devicePixelRatio||1,i(),o(n),s(n)});const i=()=>{r.canvasContext=a.value&&a.value.getContext("2d")},o=u=>{if(a.value){a.value.width=e.width*u,a.value.height=e.height*u;const c=r.canvasContext;c&&(c.font=`${12*u}px -apple-system,
|
|
"Helvetica Neue", ".SFNSText-Regular",
|
|
"SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB",
|
|
"Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif`,c.lineWidth=1,c.textBaseline="middle")}},s=u=>{const c={scale:e.scale,width:e.width,height:e.height,palette:e.palette,ratio:u};r.canvasContext&&eje(r.canvasContext,e.start,e.selectStart,e.selectLength,c,!e.vertical)};return mt(()=>e.start,()=>s(n)),mt([()=>e.width,()=>e.height],()=>{o(n),s(n)}),{handle:(u,c)=>{const d=(h,v,p)=>Math.round(v+h/p),f=e.vertical?u.offsetY:u.offsetX,A=d(f,e.start,e.scale);switch(c){case"click":t("onAddLine",A);break;case"enter":t("update:valueNum",A),t("update:showIndicator",!0);break;default:t("update:valueNum",A);break}},canvas:a}}});function rje(e,t,r,n,a,i){return $a(),Xs("canvas",{ref:"canvas",class:"ruler",onClick:t[0]||(t[0]=o=>e.handle(o,"click")),onMouseenter:t[1]||(t[1]=o=>e.handle(o,"enter")),onMousemove:t[2]||(t[2]=o=>e.handle(o,"move")),onMouseleave:t[3]||(t[3]=o=>e.$emit("update:showIndicator",!1))},null,544)}var nje=XS(tje,[["render",rje]]);const aje={scale:Number,ratio:Number,thick:Number,palette:Object,vertical:{type:Boolean,default:!0},width:{type:Number,default:200},height:{type:Number,default:200},start:{type:Number,default:0},lines:{type:Array,default:()=>[]},selectStart:{type:Number},selectLength:{type:Number},isShowReferLine:{type:Boolean}},ije=ge({name:"RulerWrapper",components:{CanvasRuler:nje,RulerLine:ZKe},props:aje,setup(e){const t=X(!1),r=X(0),n=L(()=>e.vertical?"v-container":"h-container"),a=L(()=>{const u={width:`calc(100% - ${e.thick}px)`,height:`${e.thick+1}px`,left:`${e.thick}px`},c={width:`${e.thick&&e.thick+1}px`,height:`calc(100% - ${e.thick}px)`,top:`${e.thick}px`};return e.vertical?c:u}),i=L(()=>{var u;const c=(r.value-e.start)*e.scale;let d="top",f="borderLeft";return d=e.vertical?"top":"left",f=e.vertical?"borderBottom":"borderLeft",{[d]:c+"px",[f]:`1px solid ${(u=e.palette)==null?void 0:u.lineColor}`}}),o=u=>{e.lines.push(u)},s=(u,c)=>{const d=u-e.start,f=(e.vertical?e.height:e.width)/e.scale;d<0||d>f?l(c):e.lines[c]=u},l=u=>{e.lines.splice(u,1)};return{showIndicator:t,valueNum:r,rwClassName:n,rwStyle:a,indicatorStyle:i,handleNewLine:o,handleLineRelease:s,handleLineRemove:l}}}),oje={class:"lines"},sje={class:"value"};function lje(e,t,r,n,a,i){const o=Hf("CanvasRuler"),s=Hf("RulerLine");return $a(),Xs("div",{class:eA(e.rwClassName),style:rs(e.rwStyle)},[nr(o,{vertical:e.vertical,scale:e.scale,width:e.width,height:e.height,start:e.start,ratio:e.ratio,"select-start":e.selectStart,"select-length":e.selectLength,palette:e.palette,valueNum:e.valueNum,"onUpdate:valueNum":t[0]||(t[0]=l=>e.valueNum=l),showIndicator:e.showIndicator,"onUpdate:showIndicator":t[1]||(t[1]=l=>e.showIndicator=l),onOnAddLine:e.handleNewLine},null,8,["vertical","scale","width","height","start","ratio","select-start","select-length","palette","valueNum","showIndicator","onOnAddLine"]),jr(pi("div",oje,[($a(!0),Xs(rr,null,Q9(e.lines,(l,u)=>($a(),Pv(s,{key:l+u,index:u,value:l>>0,scale:e.scale,start:e.start,thick:e.thick,palette:e.palette,vertical:e.vertical,"is-show-refer-line":e.isShowReferLine,onOnRemove:e.handleLineRemove,onOnRelease:e.handleLineRelease},null,8,["index","value","scale","start","thick","palette","vertical","is-show-refer-line","onOnRemove","onOnRelease"]))),128))],512),[[Bn,e.isShowReferLine]]),jr(pi("div",{class:"indicator",style:rs(e.indicatorStyle)},[pi("div",sje,yM(e.valueNum),1)],4),[[Bn,e.showIndicator]])],6)}var uje=XS(ije,[["render",lje],["__scopeId","data-v-5cc064d4"]]);const cje="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj78m0ax0E8cHjzZv5zef3/c33xxA24KENYGJzoEEQbNNaN4Zh2OQ4znwYhr9c1/39vwrXVDo0NNS0tLR0GYB5D64BmAMwzMyvlFKz1es10Hw+f4mZ7wHYBeA9gNdENFepVOaEEM3M3OI4Thczn41gt6WUgQ3+C+r7/h0AWQD3mXnYqPA8L9nQ0HCemduIaFpKOWoAhUJhT6VSuQXgOjP3K6W8GLwKzeVyp4jonR0QBEErM48w8zFLyayUsjX+z+VyHhHdZebTSqkxM78CHRgYOKS1/ghgVErZY214RkQ7ADyRUj72ff8qgCtmXUrZGcf5vv8CwEUhxOF0Ov1pBRpla5dSdseBhUJhpznH6tIsZb1KqacW+BGArUaUXX63UuplHJTNZjuEEONSyhozfd/n6mQ1RkXZL2itz7mu+80EDA4ONi8vL/8AcM2UbikyR2BU9cSmmTU70YqKIAj2hWFo2uenlHK/BRg3Y2aeNO5GyU8S0ZbFxcUuz/NKEXAGQKPjOCcymcyX1dIi8DSAiWQyeaavr68cbSgCuBknYubnQoj+TCYzUywWE6VS6S2ADsdx2gxw1X3L7SNENMbMnwE8qK+vf5NKpRaMaeVyeW8ikfiaSqW+R7BuZr5BRMe11p2u607U9Gk8kc/ntzPzQwCmExYATDLzVBiGE0KIowAOADDf3QA+aK2VDaxRajto3K+rq+tl5nYAzQBamHmeiOYBTGmtR6ph/1Rqg9c73pz7dD1qN0TpHyNQRCUDJXrAAAAAAElFTkSuQmCC",dje="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAjtJREFUOE/NlD9oFEEUxn9v9ghC0hpRUogIAUmniGAT/5Q2FrETPSNRJILg7RwimI0ox85eQFCEBGIUO1PYpFM0jSConQoBEZGgGPsgl+w+2eM2bC57SopAFqYZ3v7m+977ZoQt+GQLmGxPaBiGgYiMWWvXBHZUGoZhH3BERPYC+4F+4Keq/urt7b1RLpf/ZEBVHa9Wq0HWyg3QKIoGVPU8cA7wgK/pUtXPQJ8xZk+pVBpuNBqXUoUiEvi+P56fzTpo6+SbwHNg1lo7WzTITGEKXFlZeeB53tVCpa3CK8AFa+1cBgvD8LKIXAQOJkkyICJDeYVBEJS6u7s/qeoLa+1o+l9TqXNuBLhmjDlbqVQ+5ICjInIfOBPH8W9jzGCR5YmJiRNxHM+papgqzqDvgSlr7VTernPuO3An3c9bBt74vv+yrdaKyLDv+/1Sq9UGPc97nY9EVuycU2AQOA7cAm4Dr4D5TvVxHB9rKo2iaEFVp621Ln96FEUngaOqGmSxabVqsh3a2h+x1h5qQjNrae/yE4+iaCwDJkky73neTuBZe129Xk+H+BS4l7ZqLVIZ2BhzuFKpvMsDVXXWGPMxFdAedOfcKeCRqj7MYrUhpz09PfXl5eXrectFWXXODQHpOq2qd/95o/JXr6ura3J1dXU6SZIfwKKIHAD2tVYMPBGRx77vN10UXtO85fTkmZmZHUtLSzUR2QXsBhaAL6r6DXhbrVYXi1yss59GqOgub/bN3Z7v6X/tb9Zmp/q/kN8s+lJb8oEAAAAASUVORK5CYII=",fje={eyeIcon:{type:String},closeEyeIcon:{type:String},scale:{type:Number,default:1},ratio:{type:Number},thick:{type:Number,default:16},palette:Object,startX:{type:Number},startY:{type:Number,default:0},width:{type:Number,default:200},height:{type:Number,default:200},shadow:{type:Object,default:()=>({x:0,y:0,width:0,height:0})},lines:{type:Object,default:()=>({h:[],v:[]})},cornerActive:{type:Boolean,default:!1},isShowReferLine:{type:Boolean,default:!0}},Aje=ge({name:"SketchRule",components:{RulerWrapper:uje},props:fje,emits:["onCornerClick","handleLine"],setup(e,{emit:t}){let r=X(!0);r.value=e.isShowReferLine;const n=L(()=>{function s(u,c){return Object.keys(u).forEach(d=>{d&&u.hasOwnProperty(d)&&(typeof c.key=="object"?u[d]=s(u[d],c[d]):c.hasOwnProperty(d)&&(u[d]=c[d]))}),u}return s({bgColor:"rgba(225,225,225, 0)",longfgColor:"#BABBBC",shortfgColor:"#C8CDD0",fontColor:"#7D8694",shadowColor:"#E8E8E8",lineColor:"#EB5648",borderColor:"#DADADC",cornerActiveColor:"rgb(235, 86, 72, 0.6)",menu:{bgColor:"#fff",dividerColor:"#DBDBDB",listItem:{textColor:"#415058",hoverTextColor:"#298DF8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#F2F2F2"}}},e.palette||{})}),a=L(()=>e.cornerActive?" active":""),i=L(()=>({backgroundImage:r.value?`url(${e.eyeIcon||cje})`:`url(${e.closeEyeIcon||dje})`,width:e.thick+"px",height:e.thick+"px",borderRight:`1px solid ${n.value.borderColor}`,borderBottom:`1px solid ${n.value.borderColor}`}));return{showReferLine:r,paletteCpu:n,cornerActiveClass:a,cornerStyle:i,onCornerClick:s=>{r.value=!r.value,t("onCornerClick",s)}}}}),hje={id:"mb-ruler",class:"style-ruler mb-ruler"};function vje(e,t,r,n,a,i){const o=Hf("RulerWrapper");return $a(),Xs("div",hje,[nr(o,{vertical:!1,width:e.width,height:e.thick,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startX,lines:e.lines.h,"select-start":e.shadow.x,"select-length":e.shadow.width,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),nr(o,{vertical:!0,width:e.thick,height:e.height,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startY,lines:e.lines.v,"select-start":e.shadow.y,"select-length":e.shadow.height,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),pi("a",{class:eA(["corner",e.cornerActiveClass]),style:rs(e.cornerStyle),onClick:t[0]||(t[0]=(...s)=>e.onCornerClick&&e.onCornerClick(...s))},null,6)])}var pje=XS(Aje,[["render",vje]]);function gje(e){e.component("GoSkeleton",PKe),e.component("GoLoading",ED),e.component("SketchRule",pje)}const{GO_DESIGN_STORE:ID}=ep,{darkTheme:VH,appTheme:mje,appThemeDetail:yje}=T4e,bje=GS(ID),RP=lP({id:"useDesignStore",state:()=>bje||{darkTheme:VH,themeName:VH&&xg.DARK||xg.LIGHT,appTheme:mje,appThemeDetail:yje},getters:{getDarkTheme(e){return this.darkTheme},getAppTheme(){return this.appTheme},getAppThemeDetail(){return this.appThemeDetail}},actions:{changeTheme(){this.darkTheme=!this.darkTheme,this.themeName=this.darkTheme?xg.DARK:xg.LIGHT,Rw(ID,this.$state)},setAppColor(e){this.appTheme=e.hex,this.appThemeDetail=e,Rw(ID,this.$state)}}}),xje=()=>{const e=RP(),{getAppTheme:t}=FM(e);return L(()=>{const n={common:{primaryColor:t.value,primaryColorHover:OH(LH(t.value),.1),primaryColorPressed:OH(LH(t.value),.1),primaryColorSuppl:t.value,borderRadius:I4e}},a={common:tB({},n.common)},i={common:tB({},n.common),LoadingBar:{colorLoading:t.value}};return e.getDarkTheme?i:a})},wje=()=>{const e=RP();return L(()=>e.getDarkTheme?yPe:void 0)};var DP={exports:{}};function FP(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var r=e[t];typeof r=="object"&&!Object.isFrozen(r)&&FP(r)}),e}DP.exports=FP;DP.exports.default=FP;var Cje=DP.exports;class WH{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function UJ(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Zu(e,...t){const r=Object.create(null);for(const n in e)r[n]=e[n];return t.forEach(function(n){for(const a in n)r[a]=n[a]}),r}const Sje="</span>",GH=e=>!!e.kind,_je=(e,{prefix:t})=>{if(e.includes(".")){const r=e.split(".");return[`${t}${r.shift()}`,...r.map((n,a)=>`${n}${"_".repeat(a+1)}`)].join(" ")}return`${t}${e}`};class Bje{constructor(t,r){this.buffer="",this.classPrefix=r.classPrefix,t.walk(this)}addText(t){this.buffer+=UJ(t)}openNode(t){if(!GH(t))return;let r=t.kind;t.sublanguage?r=`language-${r}`:r=_je(r,{prefix:this.classPrefix}),this.span(r)}closeNode(t){!GH(t)||(this.buffer+=Sje)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}class MP{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const r={kind:t,children:[]};this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(n=>this._walk(t,n)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&(!t.children||(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{MP._collapse(r)})))}}class Tje extends MP{constructor(t){super(),this.options=t}addKeyword(t,r){t!==""&&(this.openNode(r),this.addText(t),this.closeNode())}addText(t){t!==""&&this.add(t)}addSublanguage(t,r){const n=t.root;n.kind=r,n.sublanguage=!0,this.add(n)}toHTML(){return new Bje(this,this.options).value()}finalize(){return!0}}function em(e){return e?typeof e=="string"?e:e.source:null}function HJ(e){return mA("(?=",e,")")}function Eje(e){return mA("(?:",e,")*")}function Ije(e){return mA("(?:",e,")?")}function mA(...e){return e.map(r=>em(r)).join("")}function Rje(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function kP(...e){const t=Rje(e);return"("+(t.capture?"":"?:")+e.map(n=>em(n)).join("|")+")"}function zJ(e){return new RegExp(e.toString()+"|").exec("").length-1}function Dje(e,t){const r=e&&e.exec(t);return r&&r.index===0}const Fje=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function PP(e,{joinWith:t}){let r=0;return e.map(n=>{r+=1;const a=r;let i=em(n),o="";for(;i.length>0;){const s=Fje.exec(i);if(!s){o+=i;break}o+=i.substring(0,s.index),i=i.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?o+="\\"+String(Number(s[1])+a):(o+=s[0],s[0]==="("&&r++)}return o}).map(n=>`(${n})`).join(t)}const Mje=/\b\B/,NJ="[a-zA-Z]\\w*",LP="[a-zA-Z_]\\w*",QJ="\\b\\d+(\\.\\d+)?",VJ="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",WJ="\\b(0b[01]+)",kje="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Pje=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=mA(t,/.*\b/,e.binary,/\b.*/)),Zu({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(r,n)=>{r.index!==0&&n.ignoreMatch()}},e)},tm={begin:"\\\\[\\s\\S]",relevance:0},Lje={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[tm]},Oje={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[tm]},$je={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},qS=function(e,t,r={}){const n=Zu({scope:"comment",begin:e,end:t,contains:[]},r);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const a=kP("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:mA(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},Uje=qS("//","$"),Hje=qS("/\\*","\\*/"),zje=qS("#","$"),Nje={scope:"number",begin:QJ,relevance:0},Qje={scope:"number",begin:VJ,relevance:0},Vje={scope:"number",begin:WJ,relevance:0},Wje={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[tm,{begin:/\[/,end:/\]/,relevance:0,contains:[tm]}]}]},Gje={scope:"title",begin:NJ,relevance:0},Kje={scope:"title",begin:LP,relevance:0},jje={begin:"\\.\\s*"+LP,relevance:0},Yje=function(e){return Object.assign(e,{"on:begin":(t,r)=>{r.data._beginMatch=t[1]},"on:end":(t,r)=>{r.data._beginMatch!==t[1]&&r.ignoreMatch()}})};var Gb=Object.freeze({__proto__:null,MATCH_NOTHING_RE:Mje,IDENT_RE:NJ,UNDERSCORE_IDENT_RE:LP,NUMBER_RE:QJ,C_NUMBER_RE:VJ,BINARY_NUMBER_RE:WJ,RE_STARTERS_RE:kje,SHEBANG:Pje,BACKSLASH_ESCAPE:tm,APOS_STRING_MODE:Lje,QUOTE_STRING_MODE:Oje,PHRASAL_WORDS_MODE:$je,COMMENT:qS,C_LINE_COMMENT_MODE:Uje,C_BLOCK_COMMENT_MODE:Hje,HASH_COMMENT_MODE:zje,NUMBER_MODE:Nje,C_NUMBER_MODE:Qje,BINARY_NUMBER_MODE:Vje,REGEXP_MODE:Wje,TITLE_MODE:Gje,UNDERSCORE_TITLE_MODE:Kje,METHOD_GUARD:jje,END_SAME_AS_BEGIN:Yje});function Xje(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function qje(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Zje(e,t){!t||!e.beginKeywords||(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Xje,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Jje(e,t){!Array.isArray(e.illegal)||(e.illegal=kP(...e.illegal))}function eYe(e,t){if(!!e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function tYe(e,t){e.relevance===void 0&&(e.relevance=1)}const rYe=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const r=Object.assign({},e);Object.keys(e).forEach(n=>{delete e[n]}),e.keywords=r.keywords,e.begin=mA(r.beforeMatch,HJ(r.begin)),e.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},e.relevance=0,delete r.beforeMatch},nYe=["of","and","for","in","not","or","if","then","parent","list","value"],aYe="keyword";function GJ(e,t,r=aYe){const n=Object.create(null);return typeof e=="string"?a(r,e.split(" ")):Array.isArray(e)?a(r,e):Object.keys(e).forEach(function(i){Object.assign(n,GJ(e[i],t,i))}),n;function a(i,o){t&&(o=o.map(s=>s.toLowerCase())),o.forEach(function(s){const l=s.split("|");n[l[0]]=[i,iYe(l[0],l[1])]})}}function iYe(e,t){return t?Number(t):oYe(e)?0:1}function oYe(e){return nYe.includes(e.toLowerCase())}const KH={},Df=e=>{console.error(e)},jH=(e,...t)=>{console.log(`WARN: ${e}`,...t)},WA=(e,t)=>{KH[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),KH[`${e}/${t}`]=!0)},Mw=new Error;function KJ(e,t,{key:r}){let n=0;const a=e[r],i={},o={};for(let s=1;s<=t.length;s++)o[s+n]=a[s],i[s+n]=!0,n+=zJ(t[s-1]);e[r]=o,e[r]._emit=i,e[r]._multi=!0}function sYe(e){if(!!Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Df("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Mw;if(typeof e.beginScope!="object"||e.beginScope===null)throw Df("beginScope must be object"),Mw;KJ(e,e.begin,{key:"beginScope"}),e.begin=PP(e.begin,{joinWith:""})}}function lYe(e){if(!!Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Df("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Mw;if(typeof e.endScope!="object"||e.endScope===null)throw Df("endScope must be object"),Mw;KJ(e,e.end,{key:"endScope"}),e.end=PP(e.end,{joinWith:""})}}function uYe(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function cYe(e){uYe(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),sYe(e),lYe(e)}function dYe(e){function t(o,s){return new RegExp(em(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=zJ(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(PP(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const u=l.findIndex((d,f)=>f>0&&d!==void 0),c=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,c)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new r;return this.rules.slice(s).forEach(([u,c])=>l.addRule(u,c)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let u=l.exec(s);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(s)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function a(o){const s=new n;return o.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&s.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&s.addRule(o.illegal,{type:"illegal"}),s}function i(o,s){const l=o;if(o.isCompiled)return l;[qje,eYe,cYe,rYe].forEach(c=>c(o,s)),e.compilerExtensions.forEach(c=>c(o,s)),o.__beforeBegin=null,[Zje,Jje,tYe].forEach(c=>c(o,s)),o.isCompiled=!0;let u=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),u=o.keywords.$pattern,delete o.keywords.$pattern),u=u||/\w+/,o.keywords&&(o.keywords=GJ(o.keywords,e.case_insensitive)),l.keywordPatternRe=t(u,!0),s&&(o.begin||(o.begin=/\B|\b/),l.beginRe=t(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=t(l.end)),l.terminatorEnd=em(l.end)||"",o.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+s.terminatorEnd)),o.illegal&&(l.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(c){return fYe(c==="self"?o:c)})),o.contains.forEach(function(c){i(c,l)}),o.starts&&i(o.starts,s),l.matcher=a(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Zu(e.classNameAliases||{}),i(e)}function jJ(e){return e?e.endsWithParent||jJ(e.starts):!1}function fYe(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Zu(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:jJ(e)?Zu(e,{starts:e.starts?Zu(e.starts):null}):Object.isFrozen(e)?Zu(e):e}var AYe="11.5.1";class hYe extends Error{constructor(t,r){super(t),this.name="HTMLInjectionError",this.html=r}}const R2=UJ,YH=Zu,XH=Symbol("nomatch"),vYe=7,pYe=function(e){const t=Object.create(null),r=Object.create(null),n=[];let a=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Tje};function l(F){return s.noHighlightRe.test(F)}function u(F){let P=F.className+" ";P+=F.parentNode?F.parentNode.className:"";const O=s.languageDetectRe.exec(P);if(O){const H=B(O[1]);return H||(jH(i.replace("{}",O[1])),jH("Falling back to no-highlight mode for this block.",F)),H?O[1]:"no-highlight"}return P.split(/\s+/).find(H=>l(H)||B(H))}function c(F,P,O){let H="",V="";typeof P=="object"?(H=F,O=P.ignoreIllegals,V=P.language):(WA("10.7.0","highlight(lang, code, ...args) has been deprecated."),WA("10.7.0",`Please use highlight(code, options) instead.
|
|
https://github.com/highlightjs/highlight.js/issues/2277`),V=F,H=P),O===void 0&&(O=!0);const W={code:H,language:V};D("before:highlight",W);const Z=W.result?W.result:d(W.language,W.code,O);return Z.code=W.code,D("after:highlight",Z),Z}function d(F,P,O,H){const V=Object.create(null);function W(de,we){return de.keywords[we]}function Z(){if(!$.keywords){ve.addText(he);return}let de=0;$.keywordPatternRe.lastIndex=0;let we=$.keywordPatternRe.exec(he),De="";for(;we;){De+=he.substring(de,we.index);const ze=K.case_insensitive?we[0].toLowerCase():we[0],Xe=W($,ze);if(Xe){const[ke,Ge]=Xe;if(ve.addText(De),De="",V[ze]=(V[ze]||0)+1,V[ze]<=vYe&&(oe+=Ge),ke.startsWith("_"))De+=we[0];else{const it=K.classNameAliases[ke]||ke;ve.addKeyword(we[0],it)}}else De+=we[0];de=$.keywordPatternRe.lastIndex,we=$.keywordPatternRe.exec(he)}De+=he.substr(de),ve.addText(De)}function ee(){if(he==="")return;let de=null;if(typeof $.subLanguage=="string"){if(!t[$.subLanguage]){ve.addText(he);return}de=d($.subLanguage,he,!0,re[$.subLanguage]),re[$.subLanguage]=de._top}else de=A(he,$.subLanguage.length?$.subLanguage:null);$.relevance>0&&(oe+=de.relevance),ve.addSublanguage(de._emitter,de.language)}function ae(){$.subLanguage!=null?ee():Z(),he=""}function ne(de,we){let De=1;const ze=we.length-1;for(;De<=ze;){if(!de._emit[De]){De++;continue}const Xe=K.classNameAliases[de[De]]||de[De],ke=we[De];Xe?ve.addKeyword(ke,Xe):(he=ke,Z(),he=""),De++}}function le(de,we){return de.scope&&typeof de.scope=="string"&&ve.openNode(K.classNameAliases[de.scope]||de.scope),de.beginScope&&(de.beginScope._wrap?(ve.addKeyword(he,K.classNameAliases[de.beginScope._wrap]||de.beginScope._wrap),he=""):de.beginScope._multi&&(ne(de.beginScope,we),he="")),$=Object.create(de,{parent:{value:$}}),$}function se(de,we,De){let ze=Dje(de.endRe,De);if(ze){if(de["on:end"]){const Xe=new WH(de);de["on:end"](we,Xe),Xe.isMatchIgnored&&(ze=!1)}if(ze){for(;de.endsParent&&de.parent;)de=de.parent;return de}}if(de.endsWithParent)return se(de.parent,we,De)}function ce(de){return $.matcher.regexIndex===0?(he+=de[0],1):(pe=!0,0)}function ye(de){const we=de[0],De=de.rule,ze=new WH(De),Xe=[De.__beforeBegin,De["on:begin"]];for(const ke of Xe)if(!!ke&&(ke(de,ze),ze.isMatchIgnored))return ce(we);return De.skip?he+=we:(De.excludeBegin&&(he+=we),ae(),!De.returnBegin&&!De.excludeBegin&&(he=we)),le(De,de),De.returnBegin?0:we.length}function fe(de){const we=de[0],De=P.substr(de.index),ze=se($,de,De);if(!ze)return XH;const Xe=$;$.endScope&&$.endScope._wrap?(ae(),ve.addKeyword(we,$.endScope._wrap)):$.endScope&&$.endScope._multi?(ae(),ne($.endScope,de)):Xe.skip?he+=we:(Xe.returnEnd||Xe.excludeEnd||(he+=we),ae(),Xe.excludeEnd&&(he=we));do $.scope&&ve.closeNode(),!$.skip&&!$.subLanguage&&(oe+=$.relevance),$=$.parent;while($!==ze.parent);return ze.starts&&le(ze.starts,de),Xe.returnEnd?0:we.length}function Q(){const de=[];for(let we=$;we!==K;we=we.parent)we.scope&&de.unshift(we.scope);de.forEach(we=>ve.openNode(we))}let J={};function U(de,we){const De=we&&we[0];if(he+=de,De==null)return ae(),0;if(J.type==="begin"&&we.type==="end"&&J.index===we.index&&De===""){if(he+=P.slice(we.index,we.index+1),!a){const ze=new Error(`0 width match regex (${F})`);throw ze.languageName=F,ze.badRule=J.rule,ze}return 1}if(J=we,we.type==="begin")return ye(we);if(we.type==="illegal"&&!O){const ze=new Error('Illegal lexeme "'+De+'" for mode "'+($.scope||"<unnamed>")+'"');throw ze.mode=$,ze}else if(we.type==="end"){const ze=fe(we);if(ze!==XH)return ze}if(we.type==="illegal"&&De==="")return 1;if(te>1e5&&te>we.index*3)throw new Error("potential infinite loop, way more iterations than matches");return he+=De,De.length}const K=B(F);if(!K)throw Df(i.replace("{}",F)),new Error('Unknown language: "'+F+'"');const q=dYe(K);let ie="",$=H||q;const re={},ve=new s.__emitter(s);Q();let he="",oe=0,Y=0,te=0,pe=!1;try{for($.matcher.considerAll();;){te++,pe?pe=!1:$.matcher.considerAll(),$.matcher.lastIndex=Y;const de=$.matcher.exec(P);if(!de)break;const we=P.substring(Y,de.index),De=U(we,de);Y=de.index+De}return U(P.substr(Y)),ve.closeAllNodes(),ve.finalize(),ie=ve.toHTML(),{language:F,value:ie,relevance:oe,illegal:!1,_emitter:ve,_top:$}}catch(de){if(de.message&&de.message.includes("Illegal"))return{language:F,value:R2(P),illegal:!0,relevance:0,_illegalBy:{message:de.message,index:Y,context:P.slice(Y-100,Y+100),mode:de.mode,resultSoFar:ie},_emitter:ve};if(a)return{language:F,value:R2(P),illegal:!1,relevance:0,errorRaised:de,_emitter:ve,_top:$};throw de}}function f(F){const P={value:R2(F),illegal:!1,relevance:0,_top:o,_emitter:new s.__emitter(s)};return P._emitter.addText(F),P}function A(F,P){P=P||s.languages||Object.keys(t);const O=f(F),H=P.filter(B).filter(E).map(ae=>d(ae,F,!1));H.unshift(O);const V=H.sort((ae,ne)=>{if(ae.relevance!==ne.relevance)return ne.relevance-ae.relevance;if(ae.language&&ne.language){if(B(ae.language).supersetOf===ne.language)return 1;if(B(ne.language).supersetOf===ae.language)return-1}return 0}),[W,Z]=V,ee=W;return ee.secondBest=Z,ee}function h(F,P,O){const H=P&&r[P]||O;F.classList.add("hljs"),F.classList.add(`language-${H}`)}function v(F){let P=null;const O=u(F);if(l(O))return;if(D("before:highlightElement",{el:F,language:O}),F.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(F)),s.throwUnescapedHTML))throw new hYe("One of your code blocks includes unescaped HTML.",F.innerHTML);P=F;const H=P.textContent,V=O?c(H,{language:O,ignoreIllegals:!0}):A(H);F.innerHTML=V.value,h(F,O,V.language),F.result={language:V.language,re:V.relevance,relevance:V.relevance},V.secondBest&&(F.secondBest={language:V.secondBest.language,relevance:V.secondBest.relevance}),D("after:highlightElement",{el:F,result:V,text:H})}function p(F){s=YH(s,F)}const g=()=>{b(),WA("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function m(){b(),WA("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let y=!1;function b(){if(document.readyState==="loading"){y=!0;return}document.querySelectorAll(s.cssSelector).forEach(v)}function w(){y&&b()}typeof window!="undefined"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",w,!1);function x(F,P){let O=null;try{O=P(e)}catch(H){if(Df("Language definition for '{}' could not be registered.".replace("{}",F)),a)Df(H);else throw H;O=o}O.name||(O.name=F),t[F]=O,O.rawDefinition=P.bind(null,e),O.aliases&&T(O.aliases,{languageName:F})}function S(F){delete t[F];for(const P of Object.keys(r))r[P]===F&&delete r[P]}function _(){return Object.keys(t)}function B(F){return F=(F||"").toLowerCase(),t[F]||t[r[F]]}function T(F,{languageName:P}){typeof F=="string"&&(F=[F]),F.forEach(O=>{r[O.toLowerCase()]=P})}function E(F){const P=B(F);return P&&!P.disableAutodetect}function I(F){F["before:highlightBlock"]&&!F["before:highlightElement"]&&(F["before:highlightElement"]=P=>{F["before:highlightBlock"](Object.assign({block:P.el},P))}),F["after:highlightBlock"]&&!F["after:highlightElement"]&&(F["after:highlightElement"]=P=>{F["after:highlightBlock"](Object.assign({block:P.el},P))})}function R(F){I(F),n.push(F)}function D(F,P){const O=F;n.forEach(function(H){H[O]&&H[O](P)})}function k(F){return WA("10.7.0","highlightBlock will be removed entirely in v12.0"),WA("10.7.0","Please use highlightElement now."),v(F)}Object.assign(e,{highlight:c,highlightAuto:A,highlightAll:b,highlightElement:v,highlightBlock:k,configure:p,initHighlighting:g,initHighlightingOnLoad:m,registerLanguage:x,unregisterLanguage:S,listLanguages:_,getLanguage:B,registerAliases:T,autoDetection:E,inherit:YH,addPlugin:R}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString=AYe,e.regex={concat:mA,lookahead:HJ,either:kP,optional:Ije,anyNumberOfTimes:Eje};for(const F in Gb)typeof Gb[F]=="object"&&Cje(Gb[F]);return Object.assign(e,Gb),e};var rm=pYe({}),gYe=rm;rm.HighlightJS=rm;rm.default=rm;var D2=gYe;function mYe(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},n={beginKeywords:["true","false","null"].join(" ")};return{name:"JSON",contains:[t,r,e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}const kw="[A-Za-z$_][0-9A-Za-z$_]*",YJ=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],XJ=["true","false","null","undefined","NaN","Infinity"],qJ=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ZJ=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],JJ=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],eee=["arguments","this","super","console","window","document","localStorage","module","global"],tee=[].concat(JJ,qJ,ZJ);function yYe(e){const t=e.regex,r=(P,{after:O})=>{const H="</"+P[0].slice(1);return P.input.indexOf(H,O)!==-1},n=kw,a={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(P,O)=>{const H=P[0].length+P.index,V=P.input[H];if(V==="<"||V===","){O.ignoreMatch();return}V===">"&&(r(P,{after:H})||O.ignoreMatch());let W;if((W=P.input.substr(H).match(/^\s+extends\s+/))&&W.index===0){O.ignoreMatch();return}}},s={$pattern:kw,keyword:YJ,literal:XJ,built_in:tee,"variable.language":eee},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},A={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},v={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},p=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),g={className:"comment",variants:[p,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},m=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,A,h,v,d];f.contains=m.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(m)});const y=[].concat(g,f.contains),b=y.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(y)}]),w={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},x={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},S={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...qJ,...ZJ]}},_={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function E(P){return t.concat("(?!",P.join("|"),")")}const I={match:t.concat(/\b/,E([...JJ,"super"]),n,t.lookahead(/\(/)),className:"title.function",relevance:0},R={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},k="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",F={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(k)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:S},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),_,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,A,h,v,g,d,S,{className:"attr",begin:n+t.lookahead(":"),relevance:0},F,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:k,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},R,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},I,T,x,D,{match:/\$[(.]/}]}}function bYe(e){const t=yYe(e),r=kw,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},i={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[t.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:kw,keyword:YJ.concat(s),literal:XJ,built_in:tee.concat(n),"variable.language":eee},u={className:"meta",begin:"@"+r},c=(f,A,h)=>{const v=f.contains.findIndex(p=>p.label===A);if(v===-1)throw new Error("can not find mode to replace");f.contains.splice(v,1,h)};Object.assign(t.keywords,l),t.exports.PARAMS_CONTAINS.push(u),t.contains=t.contains.concat([u,a,i]),c(t,"shebang",e.SHEBANG()),c(t,"use_strict",o);const d=t.contains.find(f=>f.label==="func.def");return d.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx"]}),t}const xYe=()=>(D2.registerLanguage("json",mYe),D2.registerLanguage("typescript",bYe),D2);var OP={exports:{}},ree=function(t,r){return function(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];return t.apply(r,a)}},wYe=ree,$P=Object.prototype.toString,UP=function(e){return function(t){var r=$P.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));function yA(e){return e=e.toLowerCase(),function(r){return UP(r)===e}}function HP(e){return Array.isArray(e)}function Pw(e){return typeof e=="undefined"}function CYe(e){return e!==null&&!Pw(e)&&e.constructor!==null&&!Pw(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var nee=yA("ArrayBuffer");function SYe(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&nee(e.buffer),t}function _Ye(e){return typeof e=="string"}function BYe(e){return typeof e=="number"}function aee(e){return e!==null&&typeof e=="object"}function Ax(e){if(UP(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var TYe=yA("Date"),EYe=yA("File"),IYe=yA("Blob"),RYe=yA("FileList");function zP(e){return $P.call(e)==="[object Function]"}function DYe(e){return aee(e)&&zP(e.pipe)}function FYe(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||$P.call(e)===t||zP(e.toString)&&e.toString()===t)}var MYe=yA("URLSearchParams");function kYe(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function PYe(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function NP(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),HP(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function RD(){var e={};function t(a,i){Ax(e[i])&&Ax(a)?e[i]=RD(e[i],a):Ax(a)?e[i]=RD({},a):HP(a)?e[i]=a.slice():e[i]=a}for(var r=0,n=arguments.length;r<n;r++)NP(arguments[r],t);return e}function LYe(e,t,r){return NP(t,function(a,i){r&&typeof a=="function"?e[i]=wYe(a,r):e[i]=a}),e}function OYe(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function $Ye(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)}function UYe(e,t,r){var n,a,i,o={};t=t||{};do{for(n=Object.getOwnPropertyNames(e),a=n.length;a-- >0;)i=n[a],o[i]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t}function HYe(e,t,r){e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r}function zYe(e){if(!e)return null;var t=e.length;if(Pw(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r}var NYe=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array)),Ea={isArray:HP,isArrayBuffer:nee,isBuffer:CYe,isFormData:FYe,isArrayBufferView:SYe,isString:_Ye,isNumber:BYe,isObject:aee,isPlainObject:Ax,isUndefined:Pw,isDate:TYe,isFile:EYe,isBlob:IYe,isFunction:zP,isStream:DYe,isURLSearchParams:MYe,isStandardBrowserEnv:PYe,forEach:NP,merge:RD,extend:LYe,trim:kYe,stripBOM:OYe,inherits:$Ye,toFlatObject:UYe,kindOf:UP,kindOfTest:yA,endsWith:HYe,toArray:zYe,isTypedArray:NYe,isFileList:RYe},GA=Ea;function qH(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var iee=function(t,r,n){if(!r)return t;var a;if(n)a=n(r);else if(GA.isURLSearchParams(r))a=r.toString();else{var i=[];GA.forEach(r,function(l,u){l===null||typeof l=="undefined"||(GA.isArray(l)?u=u+"[]":l=[l],GA.forEach(l,function(d){GA.isDate(d)?d=d.toISOString():GA.isObject(d)&&(d=JSON.stringify(d)),i.push(qH(u)+"="+qH(d))}))}),a=i.join("&")}if(a){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t},QYe=Ea;function ZS(){this.handlers=[]}ZS.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};ZS.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ZS.prototype.forEach=function(t){QYe.forEach(this.handlers,function(n){n!==null&&t(n)})};var VYe=ZS,WYe=Ea,GYe=function(t,r){WYe.forEach(t,function(a,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=a,delete t[i])})},oee=Ea;function bv(e,t,r,n,a){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}oee.inherits(bv,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var see=bv.prototype,lee={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){lee[e]={value:e}});Object.defineProperties(bv,lee);Object.defineProperty(see,"isAxiosError",{value:!0});bv.from=function(e,t,r,n,a,i){var o=Object.create(see);return oee.toFlatObject(e,o,function(l){return l!==Error.prototype}),bv.call(o,e.message,t,r,n,a),o.name=e.name,i&&Object.assign(o,i),o};var tp=bv,uee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oo=Ea;function KYe(e,t){t=t||new FormData;var r=[];function n(i){return i===null?"":Oo.isDate(i)?i.toISOString():Oo.isArrayBuffer(i)||Oo.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Buffer.from(i):i}function a(i,o){if(Oo.isPlainObject(i)||Oo.isArray(i)){if(r.indexOf(i)!==-1)throw Error("Circular reference detected in "+o);r.push(i),Oo.forEach(i,function(l,u){if(!Oo.isUndefined(l)){var c=o?o+"."+u:u,d;if(l&&!o&&typeof l=="object"){if(Oo.endsWith(u,"{}"))l=JSON.stringify(l);else if(Oo.endsWith(u,"[]")&&(d=Oo.toArray(l))){d.forEach(function(f){!Oo.isUndefined(f)&&t.append(c,n(f))});return}}a(l,c)}}),r.pop()}else t.append(o,n(i))}return a(e),t}var cee=KYe,F2=tp,jYe=function(t,r,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?t(n):r(new F2("Request failed with status code "+n.status,[F2.ERR_BAD_REQUEST,F2.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))},Kb=Ea,YYe=Kb.isStandardBrowserEnv()?function(){return{write:function(r,n,a,i,o,s){var l=[];l.push(r+"="+encodeURIComponent(n)),Kb.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),Kb.isString(i)&&l.push("path="+i),Kb.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),XYe=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},qYe=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t},ZYe=XYe,JYe=qYe,dee=function(t,r){return t&&!ZYe(r)?JYe(t,r):r},M2=Ea,eXe=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],tXe=function(t){var r={},n,a,i;return t&&M2.forEach(t.split(`
|
|
`),function(s){if(i=s.indexOf(":"),n=M2.trim(s.substr(0,i)).toLowerCase(),a=M2.trim(s.substr(i+1)),n){if(r[n]&&eXe.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([a]):r[n]=r[n]?r[n]+", "+a:a}}),r},ZH=Ea,rXe=ZH.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function a(i){var o=i;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(o){var s=ZH.isString(o)?a(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),DD=tp,nXe=Ea;function fee(e){DD.call(this,e==null?"canceled":e,DD.ERR_CANCELED),this.name="CanceledError"}nXe.inherits(fee,DD,{__CANCEL__:!0});var JS=fee,aXe=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""},Op=Ea,iXe=jYe,oXe=YYe,sXe=iee,lXe=dee,uXe=tXe,cXe=rXe,dXe=uee,yl=tp,fXe=JS,AXe=aXe,JH=function(t){return new Promise(function(n,a){var i=t.data,o=t.headers,s=t.responseType,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}Op.isFormData(i)&&Op.isStandardBrowserEnv()&&delete o["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(d+":"+f)}var A=lXe(t.baseURL,t.url);c.open(t.method.toUpperCase(),sXe(A,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function h(){if(!!c){var g="getAllResponseHeaders"in c?uXe(c.getAllResponseHeaders()):null,m=!s||s==="text"||s==="json"?c.responseText:c.response,y={data:m,status:c.status,statusText:c.statusText,headers:g,config:t,request:c};iXe(function(w){n(w),u()},function(w){a(w),u()},y),c=null}}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){!c||(a(new yl("Request aborted",yl.ECONNABORTED,t,c)),c=null)},c.onerror=function(){a(new yl("Network Error",yl.ERR_NETWORK,t,c,c)),c=null},c.ontimeout=function(){var m=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",y=t.transitional||dXe;t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),a(new yl(m,y.clarifyTimeoutError?yl.ETIMEDOUT:yl.ECONNABORTED,t,c)),c=null},Op.isStandardBrowserEnv()){var v=(t.withCredentials||cXe(A))&&t.xsrfCookieName?oXe.read(t.xsrfCookieName):void 0;v&&(o[t.xsrfHeaderName]=v)}"setRequestHeader"in c&&Op.forEach(o,function(m,y){typeof i=="undefined"&&y.toLowerCase()==="content-type"?delete o[y]:c.setRequestHeader(y,m)}),Op.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&s!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(l=function(g){!c||(a(!g||g&&g.type?new fXe:g),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l))),i||(i=null);var p=AXe(A);if(p&&["http","https","file"].indexOf(p)===-1){a(new yl("Unsupported protocol "+p+":",yl.ERR_BAD_REQUEST,t));return}c.send(i)})},hXe=null,oa=Ea,ez=GYe,tz=tp,vXe=uee,pXe=cee,gXe={"Content-Type":"application/x-www-form-urlencoded"};function rz(e,t){!oa.isUndefined(e)&&oa.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function mXe(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=JH),e}function yXe(e,t,r){if(oa.isString(e))try{return(t||JSON.parse)(e),oa.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var e_={transitional:vXe,adapter:mXe(),transformRequest:[function(t,r){if(ez(r,"Accept"),ez(r,"Content-Type"),oa.isFormData(t)||oa.isArrayBuffer(t)||oa.isBuffer(t)||oa.isStream(t)||oa.isFile(t)||oa.isBlob(t))return t;if(oa.isArrayBufferView(t))return t.buffer;if(oa.isURLSearchParams(t))return rz(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n=oa.isObject(t),a=r&&r["Content-Type"],i;if((i=oa.isFileList(t))||n&&a==="multipart/form-data"){var o=this.env&&this.env.FormData;return pXe(i?{"files[]":t}:t,o&&new o)}else if(n||a==="application/json")return rz(r,"application/json"),yXe(t);return t}],transformResponse:[function(t){var r=this.transitional||e_.transitional,n=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||a&&oa.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?tz.from(o,tz.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:hXe},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};oa.forEach(["delete","get","head"],function(t){e_.headers[t]={}});oa.forEach(["post","put","patch"],function(t){e_.headers[t]=oa.merge(gXe)});var QP=e_,bXe=Ea,xXe=QP,wXe=function(t,r,n){var a=this||xXe;return bXe.forEach(n,function(o){t=o.call(a,t,r)}),t},Aee=function(t){return!!(t&&t.__CANCEL__)},nz=Ea,k2=wXe,CXe=Aee,SXe=QP,_Xe=JS;function P2(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _Xe}var BXe=function(t){P2(t),t.headers=t.headers||{},t.data=k2.call(t,t.data,t.headers,t.transformRequest),t.headers=nz.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),nz.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]});var r=t.adapter||SXe.adapter;return r(t).then(function(a){return P2(t),a.data=k2.call(t,a.data,a.headers,t.transformResponse),a},function(a){return CXe(a)||(P2(t),a&&a.response&&(a.response.data=k2.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})},Si=Ea,hee=function(t,r){r=r||{};var n={};function a(c,d){return Si.isPlainObject(c)&&Si.isPlainObject(d)?Si.merge(c,d):Si.isPlainObject(d)?Si.merge({},d):Si.isArray(d)?d.slice():d}function i(c){if(Si.isUndefined(r[c])){if(!Si.isUndefined(t[c]))return a(void 0,t[c])}else return a(t[c],r[c])}function o(c){if(!Si.isUndefined(r[c]))return a(void 0,r[c])}function s(c){if(Si.isUndefined(r[c])){if(!Si.isUndefined(t[c]))return a(void 0,t[c])}else return a(void 0,r[c])}function l(c){if(c in r)return a(t[c],r[c]);if(c in t)return a(void 0,t[c])}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return Si.forEach(Object.keys(t).concat(Object.keys(r)),function(d){var f=u[d]||i,A=f(d);Si.isUndefined(A)&&f!==l||(n[d]=A)}),n},vee={version:"0.27.2"},TXe=vee.version,Vu=tp,VP={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){VP[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var az={};VP.transitional=function(t,r,n){function a(i,o){return"[Axios v"+TXe+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return function(i,o,s){if(t===!1)throw new Vu(a(o," has been removed"+(r?" in "+r:"")),Vu.ERR_DEPRECATED);return r&&!az[o]&&(az[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};function EXe(e,t,r){if(typeof e!="object")throw new Vu("options must be an object",Vu.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),a=n.length;a-- >0;){var i=n[a],o=t[i];if(o){var s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new Vu("option "+i+" must be "+l,Vu.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Vu("Unknown option "+i,Vu.ERR_BAD_OPTION)}}var IXe={assertOptions:EXe,validators:VP},pee=Ea,RXe=iee,iz=VYe,oz=BXe,t_=hee,DXe=dee,gee=IXe,KA=gee.validators;function xv(e){this.defaults=e,this.interceptors={request:new iz,response:new iz}}xv.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=t_(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&gee.assertOptions(n,{silentJSONParsing:KA.transitional(KA.boolean),forcedJSONParsing:KA.transitional(KA.boolean),clarifyTimeoutError:KA.transitional(KA.boolean)},!1);var a=[],i=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(r)===!1||(i=i&&A.synchronous,a.unshift(A.fulfilled,A.rejected))});var o=[];this.interceptors.response.forEach(function(A){o.push(A.fulfilled,A.rejected)});var s;if(!i){var l=[oz,void 0];for(Array.prototype.unshift.apply(l,a),l=l.concat(o),s=Promise.resolve(r);l.length;)s=s.then(l.shift(),l.shift());return s}for(var u=r;a.length;){var c=a.shift(),d=a.shift();try{u=c(u)}catch(f){d(f);break}}try{s=oz(u)}catch(f){return Promise.reject(f)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};xv.prototype.getUri=function(t){t=t_(this.defaults,t);var r=DXe(t.baseURL,t.url);return RXe(r,t.params,t.paramsSerializer)};pee.forEach(["delete","get","head","options"],function(t){xv.prototype[t]=function(r,n){return this.request(t_(n||{},{method:t,url:r,data:(n||{}).data}))}});pee.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,s){return this.request(t_(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}xv.prototype[t]=r(),xv.prototype[t+"Form"]=r(!0)});var FXe=xv,MXe=JS;function wv(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(a){t=a});var r=this;this.promise.then(function(n){if(!!r._listeners){var a,i=r._listeners.length;for(a=0;a<i;a++)r._listeners[a](n);r._listeners=null}}),this.promise.then=function(n){var a,i=new Promise(function(o){r.subscribe(o),a=o}).then(n);return i.cancel=function(){r.unsubscribe(a)},i},e(function(a){r.reason||(r.reason=new MXe(a),t(r.reason))})}wv.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};wv.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};wv.prototype.unsubscribe=function(t){if(!!this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}};wv.source=function(){var t,r=new wv(function(a){t=a});return{token:r,cancel:t}};var kXe=wv,PXe=function(t){return function(n){return t.apply(null,n)}},LXe=Ea,OXe=function(t){return LXe.isObject(t)&&t.isAxiosError===!0},sz=Ea,$Xe=ree,hx=FXe,UXe=hee,HXe=QP;function mee(e){var t=new hx(e),r=$Xe(hx.prototype.request,t);return sz.extend(r,hx.prototype,t),sz.extend(r,t),r.create=function(a){return mee(UXe(e,a))},r}var mi=mee(HXe);mi.Axios=hx;mi.CanceledError=JS;mi.CancelToken=kXe;mi.isCancel=Aee;mi.VERSION=vee.version;mi.toFormData=cee;mi.AxiosError=tp;mi.Cancel=mi.CanceledError;mi.all=function(t){return Promise.all(t)};mi.spread=PXe;mi.isAxiosError=OXe;OP.exports=mi;OP.exports.default=mi;var zXe=OP.exports;const yee=zXe.create({baseURL:"/",timeout:Kh.TIMEOUT});yee.interceptors.request.use(e=>e,e=>{Promise.reject(e)});yee.interceptors.response.use(e=>{const{code:t}=e.data;return t===Kh.DATA_SUCCESS||BJ.get(t)&&qGe(t),Promise.resolve(e.data)},e=>{Promise.reject(e)});/*! *****************************************************************************
|
|
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.
|
|
***************************************************************************** */var FD=function(e,t){return FD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},FD(e,t)};function xe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");FD(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var NXe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),QXe=function(){function e(){this.browser=new NXe,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!="undefined"}return e}(),Yd=new QXe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Yd.wxa=!0,Yd.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Yd.worker=!0:typeof navigator=="undefined"?(Yd.node=!0,Yd.svgSupported=!0):VXe(navigator.userAgent,Yd);function VXe(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",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!="undefined";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}var vr=Yd,WP=12,bee="sans-serif",Uc=WP+"px "+bee,WXe=20,GXe=100,KXe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jXe(e){var t={};if(typeof JSON=="undefined")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-WXe)/GXe;t[n]=a}return t}var YXe=jXe(KXe),ss={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=ss.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Uc),e.measureText(r);r=r||"",n=n||Uc;var i=/^([0-9]*?)px$/.exec(n),o=+(i&&i[1])||WP,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=YXe[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}};function xee(e){for(var t in ss)e[t]&&(ss[t]=e[t])}var wee=So(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Cee=So(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),rp=Object.prototype.toString,r_=Array.prototype,XXe=r_.forEach,qXe=r_.filter,GP=r_.slice,ZXe=r_.map,lz=function(){}.constructor,jb=lz?lz.prototype:null,KP="__proto__",JXe=2311;function jP(){return JXe++}function n_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,e)}function Bt(e){if(e==null||typeof e!="object")return e;var t=e,r=rp.call(e);if(r==="[object Array]"){if(!Yh(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=Bt(e[n])}}else if(Cee[r]){if(!Yh(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!wee[r]&&!Yh(e)&&!Cv(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==KP&&(t[o]=Bt(e[o]))}return t}function Ut(e,t,r){if(!St(t)||!St(e))return r?Bt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==KP){var a=e[n],i=t[n];St(i)&&St(a)&&!Pe(i)&&!Pe(a)&&!Cv(i)&&!Cv(a)&&!MD(i)&&!MD(a)&&!Yh(i)&&!Yh(a)?Ut(a,i,r):(r||!(n in e))&&(e[n]=Bt(t[n]))}return e}function a_(e,t){for(var r=e[0],n=1,a=e.length;n<a;n++)r=Ut(r,e[n],t);return r}function Me(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==KP&&(e[r]=t[r]);return e}function yt(e,t,r){for(var n=tr(t),a=0;a<n.length;a++){var i=n[a];(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}return e}var eqe=ss.createCanvas;function Gt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function YP(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function xn(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else yt(e,t,r)}function Sa(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function z(e,t,r){if(!!(e&&t))if(e.forEach&&e.forEach===XXe)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function $e(e,t,r){if(!e)return[];if(!t)return i_(e);if(e.map&&e.map===ZXe)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function So(e,t,r,n){if(!!(e&&t)){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function Rr(e,t,r){if(!e)return[];if(!t)return i_(e);if(e.filter&&e.filter===qXe)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function See(e,t,r){if(!!(e&&t)){for(var n=0,a=e.length;n<a;n++)if(t.call(r,e[n],n,e))return e[n]}}function tr(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function tqe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(GP.call(arguments)))}}var tt=jb&&pt(jb.bind)?jb.call.bind(jb.bind):tqe;function Lt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(GP.call(arguments)))}}function Pe(e){return Array.isArray?Array.isArray(e):rp.call(e)==="[object Array]"}function pt(e){return typeof e=="function"}function Ze(e){return typeof e=="string"}function Lw(e){return rp.call(e)==="[object String]"}function cr(e){return typeof e=="number"}function St(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function MD(e){return!!wee[rp.call(e)]}function yi(e){return!!Cee[rp.call(e)]}function Cv(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function cy(e){return e.colorStops!=null}function _ee(e){return e.image!=null}function Bee(e){return rp.call(e)==="[object RegExp]"}function Sv(e){return e!==e}function ea(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function Yt(e,t){return e!=null?e:t}function Gs(e,t,r){return e!=null?e:t!=null?t:r}function i_(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return GP.apply(e,t)}function o_(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ha(e,t){if(!e)throw new Error(t)}function po(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Tee="__ec_primitive__";function nm(e){e[Tee]=!0}function Yh(e){return e[Tee]}var Eee=function(){function e(t){this.data={};var r=Pe(t);this.data={};var n=this;t instanceof e?t.each(a):t&&z(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},e.prototype.set=function(t,r){return this.data[t]=r},e.prototype.each=function(t,r){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(r,this.data[n],n)},e.prototype.keys=function(){return tr(this.data)},e.prototype.removeKey=function(t){delete this.data[t]},e}();function At(e){return new Eee(e)}function am(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function dy(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&Me(r,t),r}function XP(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function at(e,t){return e.hasOwnProperty(t)}function En(){}var A0=180/Math.PI,rqe=Object.freeze(Object.defineProperty({__proto__:null,guid:jP,logError:n_,clone:Bt,merge:Ut,mergeAll:a_,extend:Me,defaults:yt,createCanvas:eqe,indexOf:Gt,inherits:YP,mixin:xn,isArrayLike:Sa,each:z,map:$e,reduce:So,filter:Rr,find:See,keys:tr,bind:tt,curry:Lt,isArray:Pe,isFunction:pt,isString:Ze,isStringSafe:Lw,isNumber:cr,isObject:St,isBuiltInObject:MD,isTypedArray:yi,isDom:Cv,isGradientObject:cy,isImagePatternObject:_ee,isRegExp:Bee,eqNaN:Sv,retrieve:ea,retrieve2:Yt,retrieve3:Gs,slice:i_,normalizeCssArray:o_,assert:Ha,trim:po,setAsPrimitive:nm,isPrimitive:Yh,HashMap:Eee,createHashMap:At,concatArray:am,createObject:dy,disableUserSelect:XP,hasOwn:at,noop:En,RADIAN_TO_DEGREE:A0},Symbol.toStringTag,{value:"Module"}));function id(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Ma(e,t){return e[0]=t[0],e[1]=t[1],e}function Ks(e){return[e[0],e[1]]}function Iee(e,t,r){return e[0]=t,e[1]=r,e}function kD(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Ow(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function Ju(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function im(e){return Math.sqrt(qP(e))}var nqe=im;function qP(e){return e[0]*e[0]+e[1]*e[1]}var aqe=qP;function iqe(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function oqe(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function sqe(e,t){return e[0]*t[0]+e[1]*t[1]}function vx(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function np(e,t){var r=im(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function $w(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Fl=$w;function Ree(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var vc=Ree;function lqe(e,t){return e[0]=-t[0],e[1]=-t[1],e}function h0(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function ua(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function Ml(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function kl(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var uqe=Object.freeze(Object.defineProperty({__proto__:null,create:id,copy:Ma,clone:Ks,set:Iee,add:kD,scaleAndAdd:Ow,sub:Ju,len:im,length:nqe,lenSquare:qP,lengthSquare:aqe,mul:iqe,div:oqe,dot:sqe,scale:vx,normalize:np,distance:$w,dist:Fl,distanceSquare:Ree,distSquare:vc,negate:lqe,lerp:h0,applyTransform:ua,min:Ml,max:kl},Symbol.toStringTag,{value:"Module"})),jA=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),cqe=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new jA(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new jA(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new jA(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new jA(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new jA(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new jA(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),dqe=cqe,fqe=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}(),Do=fqe,Aqe=Math.log(2);function PD(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/Aqe);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var d=0,f=0,A=0;f<s;f++){var h=1<<f;h&a||(d+=(A%2?-1:1)*e[r][f]*PD(e,t-1,c,u,a|h,i),A++)}return i[o]=d,d}function uz(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},a=PD(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*PD(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,c){var d=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/d,l[1]=(u*i[3]+c*i[4]+i[5])/d}}}var cz="___zrEVENTSAVED",L2=[];function hqe(e,t,r,n,a){return LD(L2,t,n,a,!0)&&LD(e,r,L2[0],L2[1])}function LD(e,t,r,n,a){if(t.getBoundingClientRect&&vr.domSupported&&!Dee(t)){var i=t[cz]||(t[cz]={}),o=vqe(t,i),s=pqe(o,i,a);if(s)return s(e,r,n),!0}return!1}function vqe(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function pqe(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,f=c.left,A=c.top;o.push(f,A),l=l&&i&&f===i[d]&&A===i[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?uz(s,o):uz(o,s))}function Dee(e){return e.nodeName.toUpperCase()==="CANVAS"}var gqe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,O2=[],mqe=vr.browser.firefox&&+vr.browser.version.split(".")[0]<39;function OD(e,t,r,n){return r=r||{},n?dz(e,t,r):mqe&&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):dz(e,t,r),r}function dz(e,t,r){if(vr.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(Dee(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(LD(O2,e,n,a)){r.zrX=O2[0],r.zrY=O2[1];return}}r.zrX=r.zrY=0}function ZP(e){return e||window.event}function ao(e,t,r){if(t=ZP(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&OD(e,o,t,r)}else{OD(e,t,t,r);var i=yqe(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&gqe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function yqe(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function $D(e,t,r,n){e.addEventListener(t,r,n)}function bqe(e,t,r,n){e.removeEventListener(t,r,n)}var Zl=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function fz(e){return e.which===2||e.which===3}var xqe=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(!!a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=OD(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in $2)if($2.hasOwnProperty(r)){var n=$2[r](this._track,t);if(n)return n}},e}();function Az(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function wqe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var $2={pinch:function(e,t){var r=e.length;if(!!r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Az(n)/Az(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=wqe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},Fee="silent";function Cqe(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:Sqe}}function Sqe(){Zl(this.event)}var _qe=function(e){xe(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}(Do),$p=function(){function e(t,r){this.x=t,this.y=r}return e}(),Bqe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Mee=function(e){xe(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o._hovered=new $p(0,0),o.storage=r,o.painter=n,o.painterRoot=i,a=a||new _qe,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr=new dqe(o),o}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(z(Bqe,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=kee(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new $p(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new $p(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=Cqe(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){for(var i=this.storage.getDisplayList(),o=new $p(r,n),s=i.length-1;s>=0;s--){var l=void 0;if(i[s]!==a&&!i[s].ignore&&(l=Tqe(i[s],r,n))&&(!o.topTarget&&(o.topTarget=i[s]),l!==Fee)){o.target=i[s];break}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new xqe);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new $p;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Do);z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Mee.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=kee(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Fl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function Tqe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(a=!0)}var s=n.__hostTarget;n=s||n.parent}return a?Fee:!0}return!1}function kee(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var Eqe=Mee,Pee=32,Up=7;function Iqe(e){for(var t=0;e>=Pee;)t|=e&1,e>>=1;return e+t}function hz(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;Rqe(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function Rqe(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function vz(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){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(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function U2(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])>0?o=c+1:l=c}return l}function H2(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])<0?l=c:o=c+1}return l}function Dqe(e,t){var r=Up,n,a,i=0;e.length;var o=[];n=[],a=[];function s(A,h){n[i]=A,a[i]=h,i+=1}function l(){for(;i>1;){var A=i-2;if(A>=1&&a[A-1]<=a[A]+a[A+1]||A>=2&&a[A-2]<=a[A]+a[A-1])a[A-1]<a[A+1]&&A--;else if(a[A]>a[A+1])break;c(A)}}function u(){for(;i>1;){var A=i-2;A>0&&a[A-1]<a[A+1]&&A--,c(A)}}function c(A){var h=n[A],v=a[A],p=n[A+1],g=a[A+1];a[A]=v+g,A===i-3&&(n[A+1]=n[A+2],a[A+1]=a[A+2]),i--;var m=H2(e[p],e,h,v,0,t);h+=m,v-=m,v!==0&&(g=U2(e[h+v-1],e,p,g,g-1,t),g!==0&&(v<=g?d(h,v,p,g):f(h,v,p,g)))}function d(A,h,v,p){var g=0;for(g=0;g<h;g++)o[g]=e[A+g];var m=0,y=v,b=A;if(e[b++]=e[y++],--p===0){for(g=0;g<h;g++)e[b+g]=o[m+g];return}if(h===1){for(g=0;g<p;g++)e[b+g]=e[y+g];e[b+p]=o[m];return}for(var w=r,x,S,_;;){x=0,S=0,_=!1;do if(t(e[y],o[m])<0){if(e[b++]=e[y++],S++,x=0,--p===0){_=!0;break}}else if(e[b++]=o[m++],x++,S=0,--h===1){_=!0;break}while((x|S)<w);if(_)break;do{if(x=H2(e[y],o,m,h,0,t),x!==0){for(g=0;g<x;g++)e[b+g]=o[m+g];if(b+=x,m+=x,h-=x,h<=1){_=!0;break}}if(e[b++]=e[y++],--p===0){_=!0;break}if(S=U2(o[m],e,y,p,0,t),S!==0){for(g=0;g<S;g++)e[b+g]=e[y+g];if(b+=S,y+=S,p-=S,p===0){_=!0;break}}if(e[b++]=o[m++],--h===1){_=!0;break}w--}while(x>=Up||S>=Up);if(_)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),h===1){for(g=0;g<p;g++)e[b+g]=e[y+g];e[b+p]=o[m]}else{if(h===0)throw new Error;for(g=0;g<h;g++)e[b+g]=o[m+g]}}function f(A,h,v,p){var g=0;for(g=0;g<p;g++)o[g]=e[v+g];var m=A+h-1,y=p-1,b=v+p-1,w=0,x=0;if(e[b--]=e[m--],--h===0){for(w=b-(p-1),g=0;g<p;g++)e[w+g]=o[g];return}if(p===1){for(b-=h,m-=h,x=b+1,w=m+1,g=h-1;g>=0;g--)e[x+g]=e[w+g];e[b]=o[y];return}for(var S=r;;){var _=0,B=0,T=!1;do if(t(o[y],e[m])<0){if(e[b--]=e[m--],_++,B=0,--h===0){T=!0;break}}else if(e[b--]=o[y--],B++,_=0,--p===1){T=!0;break}while((_|B)<S);if(T)break;do{if(_=h-H2(o[y],e,A,h,h-1,t),_!==0){for(b-=_,m-=_,h-=_,x=b+1,w=m+1,g=_-1;g>=0;g--)e[x+g]=e[w+g];if(h===0){T=!0;break}}if(e[b--]=o[y--],--p===1){T=!0;break}if(B=p-U2(e[m],o,0,p,p-1,t),B!==0){for(b-=B,y-=B,p-=B,x=b+1,w=y+1,g=0;g<B;g++)e[x+g]=o[w+g];if(p<=1){T=!0;break}}if(e[b--]=e[m--],--h===0){T=!0;break}S--}while(_>=Up||B>=Up);if(T)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),p===1){for(b-=h,m-=h,x=b+1,w=m+1,g=h-1;g>=0;g--)e[x+g]=e[w+g];e[b]=o[y]}else{if(p===0)throw new Error;for(w=b-(p-1),g=0;g<p;g++)e[w+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function px(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<Pee){i=hz(e,r,n,t),vz(e,r,n,r+i,t);return}var o=Dqe(e,t),s=Iqe(a);do{if(i=hz(e,r,n,t),i<s){var l=a;l>s&&(l=s),vz(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var Mi=1,Ig=2,Bh=4,pz=!1;function z2(){pz||(pz=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gz(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Fqe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gz}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,px(n,gz)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),r.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Mi),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(z2(),c.z=0),isNaN(c.z2)&&(z2(),c.z2=0),isNaN(c.zlevel)&&(z2(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,r,n);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,r,n);var A=t.getTextContent();A&&this._updateAndAddDisplayable(A,r,n)}},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,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=Gt(this._roots,t);a>=0&&this._roots.splice(a,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}(),Mqe=Fqe,Lee;Lee=vr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var UD=Lee,gx={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,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*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)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.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-gx.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?gx.bounceIn(e*2)*.5:gx.bounceOut(e*2-1)*.5+.5}},Oee=gx,Yb=Math.pow,pc=Math.sqrt,Uw=1e-8,$ee=1e-4,mz=pc(3),Xb=1/3,ks=id(),uo=id(),Xh=id();function ec(e){return e>-Uw&&e<Uw}function Uee(e){return e>Uw||e<-Uw}function Xn(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function yz(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function Hw(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,A=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var h=-l/s;h>=0&&h<=1&&(i[A++]=h)}else{var v=d*d-4*c*f;if(ec(v)){var p=d/c,h=-s/o+p,g=-p/2;h>=0&&h<=1&&(i[A++]=h),g>=0&&g<=1&&(i[A++]=g)}else if(v>0){var m=pc(v),y=c*s+1.5*o*(-d+m),b=c*s+1.5*o*(-d-m);y<0?y=-Yb(-y,Xb):y=Yb(y,Xb),b<0?b=-Yb(-b,Xb):b=Yb(b,Xb);var h=(-s-(y+b))/(3*o);h>=0&&h<=1&&(i[A++]=h)}else{var w=(2*c*s-3*o*d)/(2*pc(c*c*c)),x=Math.acos(w)/3,S=pc(c),_=Math.cos(x),h=(-s-2*S*_)/(3*o),g=(-s+S*(_+mz*Math.sin(x)))/(3*o),B=(-s+S*(_-mz*Math.sin(x)))/(3*o);h>=0&&h<=1&&(i[A++]=h),g>=0&&g<=1&&(i[A++]=g),B>=0&&B<=1&&(i[A++]=B)}}return A}function Hee(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(ec(o)){if(Uee(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=pc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Hc(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=n}function zee(e,t,r,n,a,i,o,s,l,u,c){var d,f=.005,A=1/0,h,v,p,g;ks[0]=l,ks[1]=u;for(var m=0;m<1;m+=.05)uo[0]=Xn(e,r,a,o,m),uo[1]=Xn(t,n,i,s,m),p=vc(ks,uo),p<A&&(d=m,A=p);A=1/0;for(var y=0;y<32&&!(f<$ee);y++)h=d-f,v=d+f,uo[0]=Xn(e,r,a,o,h),uo[1]=Xn(t,n,i,s,h),p=vc(uo,ks),h>=0&&p<A?(d=h,A=p):(Xh[0]=Xn(e,r,a,o,v),Xh[1]=Xn(t,n,i,s,v),g=vc(Xh,ks),v<=1&&g<A?(d=v,A=g):f*=.5);return c&&(c[0]=Xn(e,r,a,o,d),c[1]=Xn(t,n,i,s,d)),pc(A)}function kqe(e,t,r,n,a,i,o,s,l){for(var u=e,c=t,d=0,f=1/l,A=1;A<=l;A++){var h=A*f,v=Xn(e,r,a,o,h),p=Xn(t,n,i,s,h),g=v-u,m=p-c;d+=Math.sqrt(g*g+m*m),u=v,c=p}return d}function la(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function HD(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function Pqe(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(ec(i)){if(Uee(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=pc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Nee(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function om(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function Qee(e,t,r,n,a,i,o,s,l){var u,c=.005,d=1/0;ks[0]=o,ks[1]=s;for(var f=0;f<1;f+=.05){uo[0]=la(e,r,a,f),uo[1]=la(t,n,i,f);var A=vc(ks,uo);A<d&&(u=f,d=A)}d=1/0;for(var h=0;h<32&&!(c<$ee);h++){var v=u-c,p=u+c;uo[0]=la(e,r,a,v),uo[1]=la(t,n,i,v);var A=vc(uo,ks);if(v>=0&&A<d)u=v,d=A;else{Xh[0]=la(e,r,a,p),Xh[1]=la(t,n,i,p);var g=vc(Xh,ks);p<=1&&g<d?(u=p,d=g):c*=.5}}return l&&(l[0]=la(e,r,a,u),l[1]=la(t,n,i,u)),pc(d)}function Lqe(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,c=1/o,d=1;d<=o;d++){var f=d*c,A=la(e,r,a,f),h=la(t,n,i,f),v=A-s,p=h-l;u+=Math.sqrt(v*v+p*p),s=A,l=h}return u}var Oqe=/cubic-bezier\(([0-9,\.e ]+)\)/;function JP(e){var t=e&&Oqe.exec(e);if(t){var r=t[1].split(","),n=+po(r[0]),a=+po(r[1]),i=+po(r[2]),o=+po(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Hw(0,n,i,1,l,s)&&Xn(0,a,o,1,s[0])}}}var $qe=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||En,this.ondestroy=t.ondestroy||En,this.onrestart=t.onrestart||En,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 n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,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=pt(t)?t:Oee[t]||JP(t)},e}(),Uqe=$qe,Vee=function(){function e(t){this.value=t}return e}(),Hqe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Vee(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,n=t.next;r?r.next=n:this.head=n,n?n.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}(),zqe=function(){function e(t){this._list=new Hqe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Vee(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),fy=zqe,bz={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 Jo(e){return e=Math.round(e),e<0?0:e>255?255:e}function Nqe(e){return e=Math.round(e),e<0?0:e>360?360:e}function sm(e){return e<0?0:e>1?1:e}function N2(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Jo(parseFloat(t)/100*255):Jo(parseInt(t,10))}function _v(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?sm(parseFloat(t)/100):sm(parseFloat(t))}function Q2(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 tc(e,t,r){return e+(t-e)*r}function ro(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function zD(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Wee=new fy(20),qb=null;function YA(e,t){qb&&zD(qb,t),qb=Wee.put(e,qb||t.slice())}function Xa(e,t){if(!!e){t=t||[];var r=Wee.get(e);if(r)return zD(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in bz)return zD(t,bz[n]),YA(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){ro(t,0,0,0,1);return}return ro(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),YA(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){ro(t,0,0,0,1);return}return ro(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),YA(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ro(t,+u[0],+u[1],+u[2],1):ro(t,0,0,0,1);c=_v(u.pop());case"rgb":if(u.length!==3){ro(t,0,0,0,1);return}return ro(t,N2(u[0]),N2(u[1]),N2(u[2]),c),YA(e,t),t;case"hsla":if(u.length!==4){ro(t,0,0,0,1);return}return u[3]=_v(u[3]),ND(u,t),YA(e,t),t;case"hsl":if(u.length!==3){ro(t,0,0,0,1);return}return ND(u,t),YA(e,t),t;default:return}}ro(t,0,0,0,1)}}function ND(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=_v(e[1]),a=_v(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],ro(t,Jo(Q2(o,i,r+1/3)*255),Jo(Q2(o,i,r)*255),Jo(Q2(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Qqe(e){if(!!e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,d=((i-r)/6+o/2)/o,f=((i-n)/6+o/2)/o;t===i?l=f-d:r===i?l=1/3+c-f:n===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var A=[l*360,u,s];return e[3]!=null&&A.push(e[3]),A}}function zw(e,t){var r=Xa(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return es(r,r.length===4?"rgba":"rgb")}}function Vqe(e){var t=Xa(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function v0(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=Jo(tc(o[0],s[0],l)),r[1]=Jo(tc(o[1],s[1],l)),r[2]=Jo(tc(o[2],s[2],l)),r[3]=sm(tc(o[3],s[3],l)),r}}var Wqe=v0;function eL(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Xa(t[a]),s=Xa(t[i]),l=n-a,u=es([Jo(tc(o[0],s[0],l)),Jo(tc(o[1],s[1],l)),Jo(tc(o[2],s[2],l)),sm(tc(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var Gqe=eL;function qh(e,t,r,n){var a=Xa(e);if(e)return a=Qqe(a),t!=null&&(a[0]=Nqe(t)),r!=null&&(a[1]=_v(r)),n!=null&&(a[2]=_v(n)),es(ND(a),"rgba")}function lm(e,t){var r=Xa(e);if(r&&t!=null)return r[3]=sm(t),es(r,"rgba")}function es(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 um(e,t){var r=Xa(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function Kqe(){return es([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var jqe=Object.freeze(Object.defineProperty({__proto__:null,parse:Xa,lift:zw,toHex:Vqe,fastLerp:v0,fastMapToColor:Wqe,lerp:eL,mapToColor:Gqe,modifyHSL:qh,modifyAlpha:lm,stringify:es,lum:um,random:Kqe},Symbol.toStringTag,{value:"Module"})),Nw=Math.round;function Bv(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Xa(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t==null?1:t}}var xz=1e-4;function rc(e){return e<xz&&e>-xz}function Zb(e){return Nw(e*1e3)/1e3}function QD(e){return Nw(e*1e4)/1e4}function Yqe(e){return"matrix("+Zb(e[0])+","+Zb(e[1])+","+Zb(e[2])+","+Zb(e[3])+","+QD(e[4])+","+QD(e[5])+")"}var Xqe={left:"start",right:"end",center:"middle",middle:"middle"};function qqe(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Zqe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Jqe(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Gee(e){return e&&!!e.image}function eZe(e){return e&&!!e.svgElement}function tZe(e){return Gee(e)||eZe(e)}function Kee(e){return e.type==="linear"}function jee(e){return e.type==="radial"}function rZe(e){return e&&(e.type==="linear"||e.type==="radial")}function s_(e){return"url(#"+e+")"}function Yee(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Xee(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*A0,a=Yt(e.scaleX,1),i=Yt(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Nw(o*A0)+"deg, "+Nw(s*A0)+"deg)"),l.join(" ")}var nZe=function(){return vr.hasGlobalWindow&&pt(window.btoa)?function(e){return window.btoa(unescape(e))}:typeof Buffer!="undefined"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),VD=Array.prototype.slice;function Bl(e,t,r){return(t-e)*r+e}function V2(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=Bl(t[i],r[i],n);return e}function aZe(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=Bl(t[o][s],r[o][s],n)}return e}function Jb(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function wz(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function iZe(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function oZe(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:VD.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function p0(e){if(Sa(e)){var t=e.length;if(Sa(e[0])){for(var r=[],n=0;n<t;n++)r.push(VD.call(e[n]));return r}return VD.call(e)}return e}function mx(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function sZe(e){return Sa(e&&e[0])?2:1}var e1=0,yx=1,qee=2,Rg=3,WD=4,GD=5,Cz=6;function Sz(e){return e===WD||e===GD}function t1(e){return e===yx||e===qee}var Hp=[0,0,0,0],lZe=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=Cz,l=r;if(Sa(r)){var u=sZe(r);s=u,(u===1&&!cr(r[0])||u===2&&!cr(r[0][0]))&&(o=!0)}else if(cr(r)&&!Sv(r))s=e1;else if(Ze(r))if(!isNaN(+r))s=e1;else{var c=Xa(r);c&&(l=c,s=Rg)}else if(cy(r)){var d=Me({},l);d.colorStops=$e(r.colorStops,function(A){return{offset:A.offset,color:Xa(A.color)}}),Kee(r)?s=WD:jee(r)&&(s=GD),l=d}i===0?this.valType=s:(s!==this.valType||s===Cz)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:l,rawValue:r,percent:0};return n&&(f.easing=n,f.easingFunc=pt(n)?n:Oee[n]||JP(n)),a.push(f),f},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,p){return v.time-p.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=t1(a),u=Sz(a),c=0;c<i;c++){var d=n[c],f=d.value,A=o.value;d.percent=d.time/t,s||(l&&c!==i-1?oZe(f,A,a):u&&iZe(f.colorStops,A.colorStops))}if(!s&&a!==GD&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var h=n[0].value,c=0;c<i;c++)a===e1?n[c].additiveValue=n[c].value-h:a===Rg?n[c].additiveValue=Jb([],n[c].value,h,-1):t1(a)&&(n[c].additiveValue=a===yx?Jb([],n[c].value,h,-1):wz([],n[c].value,h,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Rg,c,d=this._lastFr,f=Math.min,A,h;if(s===1)A=h=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var v=f(d+1,s-1);for(c=v;c>=0&&!(o[c].percent<=r);c--);c=f(c,s-2)}else{for(c=d;c<s&&!(o[c].percent>r);c++);c=f(c-1,s-2)}h=o[c+1],A=o[c]}if(!!(A&&h)){this._lastFr=c,this._lastFrP=r;var p=h.percent-A.percent,g=p===0?1:f((r-A.percent)/p,1);h.easingFunc&&(g=h.easingFunc(g));var m=n?this._additiveValue:u?Hp:t[l];if((t1(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=g<1?A.rawValue:h.rawValue;else if(t1(i))i===yx?V2(m,A[a],h[a],g):aZe(m,A[a],h[a],g);else if(Sz(i)){var y=A[a],b=h[a],w=i===WD;t[l]={type:w?"linear":"radial",x:Bl(y.x,b.x,g),y:Bl(y.y,b.y,g),colorStops:$e(y.colorStops,function(S,_){var B=b.colorStops[_];return{offset:Bl(S.offset,B.offset,g),color:mx(V2([],S.color,B.color,g))}}),global:b.global},w?(t[l].x2=Bl(y.x2,b.x2,g),t[l].y2=Bl(y.y2,b.y2,g)):t[l].r=Bl(y.r,b.r,g)}else if(u)V2(m,A[a],h[a],g),n||(t[l]=mx(m));else{var x=Bl(A[a],h[a],g);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===e1?t[n]=t[n]+a:r===Rg?(Xa(t[n],Hp),Jb(Hp,Hp,a,1),t[n]=mx(Hp)):r===yx?Jb(t[n],t[n],a,1):r===qee&&wz(t[n],t[n],a,1)},e}(),uZe=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){n_("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}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,n){return this.whenWithKeys(t,r,tr(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new lZe(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var d=c.keyframes,f=d[d.length-1];u=f&&f.value,c.valType===Rg&&u&&(u=mx(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,p0(u),a),this._trackKeys.push(s)}l.addKeyframe(t,p0(r[s]),a)}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,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=u[c-1];d&&(r._target[s.propName]=d.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var f=new Uqe({life:a,loop:this._loop,delay:this._delay||0,onframe:function(A){r._started=2;var h=r._additiveAnimators;if(h){for(var v=!1,p=0;p<h.length;p++)if(h[p]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,A);var g=r._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](r._target,A)},ondestroy:function(){r._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),t&&f.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(!!this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return $e(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(!!t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=p0(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||tr(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(!!i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),tL=uZe;function Mh(){return new Date().getTime()}var cZe=function(e){xe(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}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 n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(!!r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Mh()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(UD(n),!r._paused&&r.update())}UD(n)},t.prototype.start=function(){this._running||(this._time=Mh(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Mh(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Mh()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new tL(r,n.loop);return this.addAnimator(a),a},t}(Do),dZe=cZe,fZe=300,W2=vr.domSupported,G2=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},n=$e(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),_z={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Bz=!1;function KD(e){var t=e.pointerType;return t==="pen"||t==="touch"}function AZe(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 K2(e){e&&(e.zrByTouch=!0)}function hZe(e,t){return ao(e.dom,new vZe(e,t),!0)}function Zee(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var vZe=function(){function e(t,r){this.stopPropagation=En,this.stopImmediatePropagation=En,this.preventDefault=En,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),No={mousedown:function(e){e=ao(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ao(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=ao(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ao(this.dom,e);var t=e.toElement||e.relatedTarget;Zee(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Bz=!0,e=ao(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Bz||(e=ao(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ao(this.dom,e),K2(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),No.mousemove.call(this,e),No.mousedown.call(this,e)},touchmove:function(e){e=ao(this.dom,e),K2(e),this.handler.processGesture(e,"change"),No.mousemove.call(this,e)},touchend:function(e){e=ao(this.dom,e),K2(e),this.handler.processGesture(e,"end"),No.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<fZe&&No.click.call(this,e)},pointerdown:function(e){No.mousedown.call(this,e)},pointermove:function(e){KD(e)||No.mousemove.call(this,e)},pointerup:function(e){No.mouseup.call(this,e)},pointerout:function(e){KD(e)||No.mouseout.call(this,e)}};z(["click","dblclick","contextmenu"],function(e){No[e]=function(t){t=ao(this.dom,t),this.trigger(e,t)}});var jD={pointermove:function(e){KD(e)||jD.mousemove.call(this,e)},pointerup:function(e){jD.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function pZe(e,t){var r=t.domHandlers;vr.pointerEventsSupported?z(G2.pointer,function(n){bx(t,n,function(a){r[n].call(e,a)})}):(vr.touchEventsSupported&&z(G2.touch,function(n){bx(t,n,function(a){r[n].call(e,a),AZe(t)})}),z(G2.mouse,function(n){bx(t,n,function(a){a=ZP(a),t.touching||r[n].call(e,a)})}))}function gZe(e,t){vr.pointerEventsSupported?z(_z.pointer,r):vr.touchEventsSupported||z(_z.mouse,r);function r(n){function a(i){i=ZP(i),Zee(e,i.target)||(i=hZe(e,i),t.domHandlers[n].call(e,i))}bx(t,n,a,{capture:!0})}}function bx(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,$D(e.domTarget,t,r,n)}function j2(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&bqe(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Tz=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),mZe=function(e){xe(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new Tz(r,No),W2&&(a._globalHandlerScope=new Tz(document,jD)),pZe(a,a._localHandlerScope),a}return t.prototype.dispose=function(){j2(this._localHandlerScope),W2&&j2(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,W2&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?gZe(this,n):j2(n)}},t}(Do),yZe=mZe,Jee=1;vr.hasGlobalWindow&&(Jee=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Qw=Jee,YD=.4,XD="#333",qD="#ccc",bZe="#eee";function Gi(){return[1,0,0,1,0,0]}function Ay(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function l_(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 js(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=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],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function ls(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 od(e,t,r){var n=t[0],a=t[2],i=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=a*c+s*u,e[3]=-a*u+c*s,e[4]=c*i+u*l,e[5]=c*l-u*i,e}function u_(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function bA(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}function ete(e){var t=Gi();return l_(t,e),t}var xZe=Object.freeze(Object.defineProperty({__proto__:null,create:Gi,identity:Ay,copy:l_,mul:js,translate:ls,rotate:od,scale:u_,invert:bA,clone:ete},Symbol.toStringTag,{value:"Module"})),Ez=Ay,Iz=5e-5;function xd(e){return e>Iz||e<-Iz}var wd=[],XA=[],Y2=Gi(),X2=Math.abs,Pl=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 xd(this.rotation)||xd(this.x)||xd(this.y)||xd(this.scaleX-1)||xd(this.scaleY-1)||xd(this.skewX)||xd(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&Ez(n);return}n=n||Gi(),r?this.getLocalTransform(n):Ez(n),t&&(r?js(n,t,n):l_(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(wd);var n=wd[0]<0?-1:1,a=wd[1]<0?-1:1,i=((wd[0]-n)*r+n)/wd[0]||0,o=((wd[1]-a)*r+a)/wd[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Gi(),bA(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],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(js(XA,t.invTransform,r),r=XA);var n=this.originX,a=this.originY;(n||a)&&(Y2[4]=n,Y2[5]=a,js(XA,r,Y2),XA[4]-=n,XA[5]-=a,r=XA),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 n=[t,r],a=this.invTransform;return a&&ua(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&ua(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&X2(t[0]-1)>1e-10&&X2(t[3]-1)>1e-10?Math.sqrt(X2(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){tte(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,d=t.y,f=t.skewX?Math.tan(t.skewX):0,A=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var h=n+s,v=a+l;r[4]=-h*i-f*v*o,r[5]=-v*o-A*h*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=A*i,r[2]=f*o,u&&od(r,r,u),r[4]+=n+c,r[5]+=a+d,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}(),tl=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function tte(e,t){for(var r=0;r<tl.length;r++){var n=tl[r];e[n]=t[n]}}var wZe=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,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},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,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+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,n){t.x=r,t.y=n},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,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}(),zt=wZe,r1=Math.min,n1=Math.max,Cd=new zt,Sd=new zt,_d=new zt,Bd=new zt,zp=new zt,Np=new zt,CZe=function(){function e(t,r,n,a){n<0&&(t=t+n,n=-n),a<0&&(r=r+a,a=-a),this.x=t,this.y=r,this.width=n,this.height=a}return e.prototype.union=function(t){var r=r1(t.x,this.x),n=r1(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=n1(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=n1(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=Gi();return ls(i,i,[-r.x,-r.y]),u_(i,i,[n,a]),ls(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,f=!(i<l||u<a||s<c||d<o);if(r){var A=1/0,h=0,v=Math.abs(i-l),p=Math.abs(u-a),g=Math.abs(s-c),m=Math.abs(d-o),y=Math.min(v,p),b=Math.min(g,m);i<l||u<a?y>h&&(h=y,v<p?zt.set(Np,-v,0):zt.set(Np,p,0)):y<A&&(A=y,v<p?zt.set(zp,v,0):zt.set(zp,-p,0)),s<c||d<o?b>h&&(h=b,g<m?zt.set(Np,0,-g):zt.set(Np,0,m)):y<A&&(A=y,g<m?zt.set(zp,0,g):zt.set(zp,0,-m))}return r&&zt.copy(r,f?zp:Np),f},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.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,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Cd.x=_d.x=r.x,Cd.y=Bd.y=r.y,Sd.x=Bd.x=r.x+r.width,Sd.y=_d.y=r.y+r.height,Cd.transform(n),Bd.transform(n),Sd.transform(n),_d.transform(n),t.x=r1(Cd.x,Sd.x,_d.x,Bd.x),t.y=r1(Cd.y,Sd.y,_d.y,Bd.y);var l=n1(Cd.x,Sd.x,_d.x,Bd.x),u=n1(Cd.y,Sd.y,_d.y,Bd.y);t.width=l-t.x,t.height=u-t.y},e}(),Kt=CZe,Rz={};function Ni(e,t){t=t||Uc;var r=Rz[t];r||(r=Rz[t]=new fy(500));var n=r.get(e);return n==null&&(n=ss.measureText(e,t).width,r.put(e,n)),n}function Dz(e,t,r,n){var a=Ni(e,t),i=c_(t),o=Dg(0,a,r),s=Th(0,i,n),l=new Kt(o,s,a,i);return l}function hy(e,t,r,n){var a=((e||"")+"").split(`
|
|
`),i=a.length;if(i===1)return Dz(a[0],t,r,n);for(var o=new Kt(0,0,0,0),s=0;s<a.length;s++){var l=Dz(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Dg(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Th(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function c_(e){return Ni("\u56FD",e)}function us(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Vw(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,c="left",d="top";if(n instanceof Array)l+=us(n[0],r.width),u+=us(n[1],r.height),c=null,d=null;else switch(n){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var q2="__zr_normal__",Z2=tl.concat(["ignore"]),SZe=So(tl,function(e,t){return e[t]=!0,e},{ignore:!1}),qA={},_Ze=new Kt(0,0,0,0),rL=function(){function e(t){this.id=jP(),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 a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[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,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(r),n.position!=null){var c=_Ze;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(qA,n,c):Vw(qA,n,c),i.x=qA.x,i.y=qA.y,o=qA.align,s=qA.verticalAlign;var d=n.origin;if(d&&n.rotation!=null){var f=void 0,A=void 0;d==="center"?(f=c.width*.5,A=c.height*.5):(f=us(d[0],c.width),A=us(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+A+(a?0:c.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],u||(i.originX=-h[0],i.originY=-h[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,m=void 0,y=void 0;v&&this.canBeInsideText()?(g=n.insideFill,m=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(g),y=!0)):(g=n.outsideFill,m=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(g),y=!0)),g=g||"#000",(g!==p.fill||m!==p.stroke||y!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=g,p.stroke=m,p.autoStroke=y,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=Mi,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()?qD:XD},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Xa(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,es(n,"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||{},Me(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(St(t))for(var n=t,a=tr(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==q2)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Z2)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},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(q2,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===q2,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Gt(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){n_("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(t,r,n,c),f&&f.useState(t,r,n,c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Mi),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var d=a[o-1],f=!!(d&&d.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0);var A=this._mergeStates(a),h=this.stateTransition;this.saveCurrentToNormalState(A),this._applyStateObj(t.join(","),A,this._normalState,!1,!r&&!this.__inHover&&h&&h.duration>0,h);var v=this._textContent,p=this._textGuide;v&&v.useStates(t,r,f),p&&p.useStates(t,r,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Mi)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=Gt(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=Gt(a,t),o=Gt(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];Me(r,i),i.textConfig&&(n=n||{},Me(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=Me({},a?this.textConfig:n.textConfig),Me(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<Z2.length;c++){var d=Z2[c],f=i&&SZe[d];r&&r[d]!=null?f?(u=!0,l[d]=r[d]):this[d]=r[d]:s&&n[d]!=null&&(f?(u=!0,l[d]=n[d]):this[d]=n[d])}if(!i)for(var c=0;c<this.animators.length;c++){var A=this.animators[c],h=A.targetName;A.getLoop()||A.__changeFinalValue(h?(r||n)[h]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Pl,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Me(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Mi;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(!!this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this,i=new tL(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=Gt(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){J2(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){J2(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=J2(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Mi;function r(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();xn(rL,Do);xn(rL,Pl);function J2(e,t,r,n,a){r=r||{};var i=[];rte(e,"",e,t,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},d=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(h,v){r.during(v)});for(var f=0;f<i.length;f++){var A=i[f];c&&A.done(c),d&&A.aborted(d),r.force&&A.duration(r.duration),A.start(r.easing)}return i}function eT(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function BZe(e){return Sa(e[0])}function TZe(e,t,r){if(Sa(t[r]))if(Sa(e[r])||(e[r]=[]),yi(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),eT(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(BZe(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?eT(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else eT(i,a,o);i.length=a.length}else e[r]=t[r]}function EZe(e,t){return e===t||Sa(e)&&Sa(t)&&IZe(e,t)}function IZe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function rte(e,t,r,n,a,i,o,s){for(var l=tr(n),u=a.duration,c=a.delay,d=a.additive,f=a.setToFinal,A=!St(i),h=e.animators,v=[],p=0;p<l.length;p++){var g=l[p],m=n[g];if(m!=null&&r[g]!=null&&(A||i[g]))if(St(m)&&!Sa(m)&&!cy(m)){if(t){s||(r[g]=m,e.updateDuringAnimation(t));continue}rte(e,g,r[g],m,a,i&&i[g],o,s)}else v.push(g);else s||(r[g]=m,e.updateDuringAnimation(t),v.push(g))}var y=v.length;if(!d&&y)for(var b=0;b<h.length;b++){var w=h[b];if(w.targetName===t){var x=w.stopTracks(v);if(x){var S=Gt(h,w);h.splice(S,1)}}}if(a.force||(v=Rr(v,function(E){return!EZe(n[E],r[E])}),y=v.length),y>0||a.force&&!o.length){var _=void 0,B=void 0,T=void 0;if(s){B={},f&&(_={});for(var b=0;b<y;b++){var g=v[b];B[g]=r[g],f?_[g]=n[g]:r[g]=n[g]}}else if(f){T={};for(var b=0;b<y;b++){var g=v[b];T[g]=p0(r[g]),TZe(r,n,g)}}var w=new tL(r,!1,!1,d?Rr(h,function(I){return I.targetName===t}):null);w.targetName=t,a.scope&&(w.scope=a.scope),f&&_&&w.whenWithKeys(0,_,v),T&&w.whenWithKeys(0,T,v),w.whenWithKeys(u==null?500:u,s?B:n,v).delay(c||0),e.addAnimator(w,t),o.push(w)}}var nte=rL,ate=function(e){xe(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=Gt(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=Gt(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new Kt(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(Kt.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(nte);ate.prototype.type="group";var It=ate;/*!
|
|
* 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
|
|
*/var xx={},vf={};function RZe(e){delete vf[e]}function DZe(e){if(!e)return!1;if(typeof e=="string")return um(e,1)<YD;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=um(t[a].color,1);return r/=n,r<YD}return!1}var FZe=function(){function e(t,r,n){var a=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 i=new Mqe,o=n.renderer||"canvas";xx[o]||(o=tr(xx)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new xx[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!vr.node&&!vr.worker&&!l?new yZe(s.getViewportRoot(),s.root):null;this.handler=new Eqe(i,s,u,s.root),this.animation=new dZe({stage:{update:l?null:function(){return a._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=DZe(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=Mh();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Mh();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-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 It&&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,RZe(this.id)},e}();function ZD(e,t){var r=new FZe(jP(),e,t);return vf[r.id]=r,r}function MZe(e){e.dispose()}function kZe(){for(var e in vf)vf.hasOwnProperty(e)&&vf[e].dispose();vf={}}function PZe(e){return vf[e]}function ite(e,t){xx[e]=t}var LZe="5.3.2",OZe=Object.freeze(Object.defineProperty({__proto__:null,init:ZD,dispose:MZe,disposeAll:kZe,getInstance:PZe,registerPainter:ite,version:LZe},Symbol.toStringTag,{value:"Module"})),Fz=1e-4,ote=20;function $Ze(e){return e.replace(/^\s+|\s+$/g,"")}function Tr(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function Ye(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Ze(e)?$Ze(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function hn(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),ote),e=(+e).toFixed(t),r?e:+e}function Ui(e){return e.sort(function(t,r){return t-r}),e}function Xo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return ste(e)}function ste(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function nL(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),i=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function lte(e,t,r){if(!e[t])return 0;var n=So(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(n===0)return 0;for(var a=Math.pow(10,r),i=$e(e,function(h){return(isNaN(h)?0:h)/n*a*100}),o=a*100,s=$e(i,function(h){return Math.floor(h)}),l=So(s,function(h,v){return h+v},0),u=$e(i,function(h,v){return h-s[v]});l<o;){for(var c=Number.NEGATIVE_INFINITY,d=null,f=0,A=u.length;f<A;++f)u[f]>c&&(c=u[f],d=f);++s[d],u[d]=0,++l}return s[t]/a}function UZe(e,t){var r=Math.max(Xo(e),Xo(t)),n=e+t;return r>ote?n:hn(n,r)}var JD=9007199254740991;function aL(e){var t=Math.PI*2;return(e%t+t)%t}function cm(e){return e>-Fz&&e<Fz}var HZe=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ki(e){if(e instanceof Date)return e;if(Ze(e)){var t=HZe.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function ute(e){return Math.pow(10,d_(e))}function d_(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function iL(e,t){var r=d_(e),n=Math.pow(10,r),a=e/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,e=i*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Cx(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a}function eF(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var a=e[n].interval,i=e[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-r),t=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(n,1):n++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function rl(e){var t=parseFloat(e);return t==e&&(t!==0||!Ze(e)||e.indexOf("x")<=0)?t:NaN}function oL(e){return!isNaN(rl(e))}function cte(){return Math.round(Math.random()*9)}function dte(e,t){return t===0?e:dte(t,e%t)}function Mz(e,t){return e==null?t:t==null?e:e*t/dte(e,t)}function wr(e){throw new Error(e)}function kz(e,t,r){return(t-e)*r+e}var fte="series\0",Ate="\0_ec_\0";function $r(e){return e instanceof Array?e:e==null?[]:[e]}function Gf(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var Pz=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function ap(e){return St(e)&&!Pe(e)&&!(e instanceof Date)?e.value:e}function zZe(e){return St(e)&&!(e instanceof Array)}function hte(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=At();z(t,function(l,u){if(!St(l)){t[u]=null;return}});var s=NZe(e,o,r);return(n||a)&&QZe(s,e,o,t),n&&VZe(s,t),n||a?WZe(s,t,a):i&&GZe(s,t),KZe(s),s}function NZe(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||dm(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function QZe(e,t,r,n){z(n,function(a,i){if(!(!a||a.id==null)){var o=g0(a.id),s=r.get(o);if(s!=null){var l=e[s];Ha(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function VZe(e,t){z(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!dm(r)&&!dm(i)&&vte("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function WZe(e,t,r){z(t,function(n){if(!!n){for(var a,i=0;(a=e[i])&&(a.newOption||dm(a.existing)||a.existing&&n.id!=null&&!vte("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function GZe(e,t){z(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function KZe(e){var t=At();z(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),z(e,function(r){var n=r.newOption;Ha(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),z(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(!!St(i)){if(o.name=i.name!=null?g0(i.name):a?a.name:fte+n,a)o.id=g0(a.id);else if(i.id!=null)o.id=g0(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function vte(e,t,r){var n=Kn(t[e],null),a=Kn(r[e],null);return n!=null&&a!=null&&n===a}function g0(e){return Kn(e,"")}function Kn(e,t){return e==null?t:Ze(e)?e:cr(e)||Lw(e)?e+"":t}function sL(e){var t=e.name;return!!(t&&t.indexOf(fte))}function dm(e){return e&&e.id!=null&&g0(e.id).indexOf(Ate)===0}function jZe(e){return Ate+e}function YZe(e,t,r){z(e,function(n){var a=n.newOption;St(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=XZe(t,a,n.existing,r))})}function XZe(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function qZe(e,t){var r={},n={};return a(e||[],r),a(t||[],n,r),[i(r),i(n)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var d=Kn(o[u].seriesId,null);if(d==null)return;for(var f=$r(o[u].dataIndex),A=l&&l[d],h=0,v=f.length;h<v;h++){var p=f[h];A&&A[p]?A[p]=null:(s[d]||(s[d]={}))[p]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Kf(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Pe(t.dataIndex)?$e(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Pe(t.name)?$e(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function hr(){var e="__ec_inner_"+ZZe++;return function(t){return t[e]||(t[e]={})}}var ZZe=cte();function m0(e,t,r){var n=lL(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var d=vy(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=d.models,s[c+"Model"]=d.models[0]}),s}function lL(e,t){var r;if(Ze(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=At(),i={},o=!1;return z(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],d=(u[2]||"").toLowerCase();if(!(!c||!d||t&&t.includeMainTypes&&Gt(t.includeMainTypes,c)<0)){o=o||!!c;var f=a.get(c)||a.set(c,{});f[d]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Hn={useDefault:!0,enableAll:!1,enableNone:!1},JZe={useDefault:!1,enableAll:!0,enableNone:!0};function vy(e,t,r,n){n=n||Hn;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(Ha(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Ha(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function pte(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function eJe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function tJe(e){return e==="auto"?vr.domSupported?"html":"richText":e||"html"}function tF(e,t){var r=At(),n=[];return z(e,function(a){var i=t(a);(r.get(i)||(n.push(i),r.set(i,[]))).push(a)}),{keys:n,buckets:r}}function gte(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(cr(n)){var o=kz(r||0,n,a);return hn(o,i?Math.max(Xo(r||0),Xo(n)):t)}else{if(Ze(n))return a<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),d=0;d<c;++d){var f=e.getDimensionInfo(d);if(f&&f.type==="ordinal")s[d]=(a<1&&l?l:u)[d];else{var A=l&&l[d]?l[d]:0,h=u[d],o=kz(A,h,a);s[d]=hn(o,i?Math.max(Xo(A),Xo(h)):t)}}return s}}var rJe=".",Td="___EC__COMPONENT__CONTAINER___",mte="___EC__EXTENDED_CLASS___";function Os(e){var t={main:"",sub:""};if(e){var r=e.split(rJe);t.main=r[0]||"",t.sub=r[1]||""}return t}function nJe(e){Ha(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function aJe(e){return!!(e&&e[mte])}function uL(e,t){e.$constructor=e,e.extend=function(r){var n=this,a;return iJe(n)?a=function(i){xe(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},YP(a,this)),Me(a.prototype,r),a[mte]=!0,a.extend=this.extend,a.superCall=lJe,a.superApply=uJe,a.superClass=n,a}}function iJe(e){return pt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function yte(e,t){e.extend=t.extend}var oJe=Math.round(Math.random()*10);function sJe(e){var t=["__\0is_clz",oJe++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function lJe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function uJe(e,t,r){return this.superClass.prototype[t].apply(e,r)}function f_(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){nJe(a),n.prototype.type=a;var i=Os(a);if(!i.sub)t[i.main]=n;else if(i.sub!==Td){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[Td]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=Os(n),i=[],o=t[a.main];return o&&o[Td]?z(o,function(s,l){l!==Td&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=Os(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return z(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=Os(n),i=t[a.main];return i&&i[Td]};function r(n){var a=t[n.main];return(!a||!a[Td])&&(a=t[n.main]={},a[Td]=!0),a}}function jf(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&Gt(a,l)>=0||i&&Gt(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var cJe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],dJe=jf(cJe),fJe=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return dJe(this,t,r)},e}(),rF=new fy(50);function AJe(e){if(typeof e=="string"){var t=rF.get(e);return t&&t.image}else return e}function cL(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=rF.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!A_(t)&&i.pending.push(o)):(t=ss.loadImage(e,Lz,Lz),t.__zrImageSrc=e,rF.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Lz(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function A_(e){return e&&e.width&&e.height}var tT=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function bte(e,t,r,n,a){if(!t)return"";var i=(e+"").split(`
|
|
`);a=xte(t,r,n,a);for(var o=0,s=i.length;o<s;o++)i[o]=wte(i[o],a);return i.join(`
|
|
`)}function xte(e,t,r,n){n=n||{};var a=Me({},n);a.font=t,r=Yt(r,"..."),a.maxIterations=Yt(n.maxIterations,2);var i=a.minChar=Yt(n.minChar,0);a.cnCharWidth=Ni("\u56FD",t);var o=a.ascCharWidth=Ni("a",t);a.placeholder=Yt(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=Ni(r,t);return u>s&&(r="",u=0),s=e-u,a.ellipsis=r,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function wte(e,t){var r=t.containerWidth,n=t.font,a=t.contentWidth;if(!r)return"";var i=Ni(e,n);if(i<=r)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?hJe(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=Ni(e,n)}return e===""&&(e=t.placeholder),e}function hJe(e,t,r,n){for(var a=0,i=0,o=e.length;i<o&&a<t;i++){var s=e.charCodeAt(i);a+=0<=s&&s<=127?r:n}return i}function vJe(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,a=t.font,i=r==="truncate",o=c_(a),s=Yt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,d;c!=null&&(r==="break"||r==="breakAll")?d=e?Cte(e,t.font,c,r==="breakAll",0).lines:[]:d=e?e.split(`
|
|
`):[];var f=d.length*s,A=Yt(t.height,f);if(f>A&&u){var h=Math.floor(A/s);d=d.slice(0,h)}if(e&&i&&c!=null)for(var v=xte(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<d.length;p++)d[p]=wte(d[p],v);for(var g=A,m=0,p=0;p<d.length;p++)m=Math.max(Ni(d[p],a),m);c==null&&(c=m);var y=m;return n&&(g+=n[0]+n[2],y+=n[1]+n[3],c+=n[1]+n[3]),l&&(y=c),{lines:d,height:A,outerWidth:y,outerHeight:g,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:f,width:c}}var pJe=function(){function e(){}return e}(),Oz=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),gJe=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 mJe(e,t){var r=new gJe;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=tT.lastIndex=0,l;(l=tT.exec(e))!=null;){var u=l.index;u>s&&rT(r,e.substring(s,u),t,o),rT(r,l[2],t,o,l[1]),s=tT.lastIndex}s<e.length&&rT(r,e.substring(s,e.length),t,o);var c=[],d=0,f=0,A=t.padding,h=i==="truncate",v=t.lineOverflow==="truncate";function p(O,H,V){O.width=H,O.lineHeight=V,d+=V,f=Math.max(f,H)}e:for(var g=0;g<r.lines.length;g++){for(var m=r.lines[g],y=0,b=0,w=0;w<m.tokens.length;w++){var x=m.tokens[w],S=x.styleName&&t.rich[x.styleName]||{},_=x.textPadding=S.padding,B=_?_[1]+_[3]:0,T=x.font=S.font||t.font;x.contentHeight=c_(T);var E=Yt(S.height,x.contentHeight);if(x.innerHeight=E,_&&(E+=_[0]+_[2]),x.height=E,x.lineHeight=Gs(S.lineHeight,t.lineHeight,E),x.align=S&&S.align||t.align,x.verticalAlign=S&&S.verticalAlign||"middle",v&&a!=null&&d+x.lineHeight>a){w>0?(m.tokens=m.tokens.slice(0,w),p(m,b,y),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g);break e}var I=S.width,R=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,c.push(x),x.contentWidth=Ni(x.text,T);else{if(R){var D=S.backgroundColor,k=D&&D.image;k&&(k=AJe(k),A_(k)&&(x.width=Math.max(x.width,k.width*E/k.height)))}var F=h&&n!=null?n-b:null;F!=null&&F<x.width?!R||F<B?(x.text="",x.width=x.contentWidth=0):(x.text=bte(x.text,F-B,T,t.ellipsis,{minChar:t.truncateMinChar}),x.width=x.contentWidth=Ni(x.text,T)):x.contentWidth=Ni(x.text,T)}x.width+=B,b+=x.width,S&&(y=Math.max(y,x.lineHeight))}p(m,b,y)}r.outerWidth=r.width=Yt(n,f),r.outerHeight=r.height=Yt(a,d),r.contentHeight=d,r.contentWidth=f,A&&(r.outerWidth+=A[1]+A[3],r.outerHeight+=A[0]+A[2]);for(var g=0;g<c.length;g++){var x=c[g],P=x.percentWidth;x.width=parseInt(P,10)/100*r.width}return r}function rT(e,t,r,n,a){var i=t==="",o=a&&r.rich[a]||{},s=e.lines,l=o.font||r.font,u=!1,c,d;if(n){var f=o.padding,A=f?f[1]+f[3]:0;if(o.width!=null&&o.width!=="auto"){var h=us(o.width,n.width)+A;s.length>0&&h+n.accumWidth>n.width&&(c=t.split(`
|
|
`),u=!0),n.accumWidth=h}else{var v=Cte(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+A,d=v.linesWidths,c=v.lines}}else c=t.split(`
|
|
`);for(var p=0;p<c.length;p++){var g=c[p],m=new pJe;if(m.styleName=a,m.text=g,m.isLineHolder=!g&&!i,typeof o.width=="number"?m.width=o.width:m.width=d?d[p]:Ni(g,l),!p&&!u){var y=(s[s.length-1]||(s[0]=new Oz)).tokens,b=y.length;b===1&&y[0].isLineHolder?y[0]=m:(g||!b||i)&&y.push(m)}else s.push(new Oz([m]))}}function yJe(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var bJe=So(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function xJe(e){return yJe(e)?!!bJe[e]:!0}function Cte(e,t,r,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var f=e.charAt(d);if(f===`
|
|
`){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var A=Ni(f,t),h=n?!1:!xJe(f);if(i.length?c+A>r:a+c+A>r){c?(s||l)&&(h?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=A,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=A)):h?(i.push(l),o.push(u),l=f,u=A):(i.push(f),o.push(A));continue}c+=A,h?(l+=f,u+=A):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var nF="__zr_style_"+Math.round(Math.random()*10),Ff={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},h_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ff[nF]=!0;var $z=["z","z2","invisible"],wJe=["invisible"],CJe=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=tr(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[i])}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,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&SJe(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&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 a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Kt(0,0,0,0)),n?Kt.applyTransform(r,a,n):r.copy(a),(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 Kt(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:Me(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ig,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Ig)},t.prototype.styleUpdated=function(){this.__dirty&=~Ig},t.prototype.createStyle=function(r){return dy(Ff,r)},t.prototype.useStyle=function(r){r[nF]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[nF]},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,$z)},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var d=tr(c),f=0;f<d.length;f++){var A=d[f];A in u&&(u[A]=u[A],this.style[A]=c[A])}for(var h=tr(u),f=0;f<h.length;f++){var A=h[f];this.style[A]=this.style[A]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=this.__inHover?wJe:$z,f=0;f<v.length;f++){var A=v[f];n&&n[A]!=null?this[A]=n[A]:l&&a[A]!=null&&(this[A]=a[A])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return Me(r,n),r},t.prototype.getAnimationStyleProps=function(){return h_},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Mi|Ig}(),t}(nte),nT=new Kt(0,0,0,0),aT=new Kt(0,0,0,0);function SJe(e,t,r){return nT.copy(e.getBoundingRect()),e.transform&&nT.applyTransform(e.transform),aT.width=t,aT.height=r,!nT.intersect(aT)}var _o=CJe,li=Math.min,ui=Math.max,iT=Math.sin,oT=Math.cos,Ed=Math.PI*2,a1=id(),i1=id(),o1=id();function v_(e,t,r){if(e.length!==0){for(var n=e[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],a=li(a,n[0]),i=ui(i,n[0]),o=li(o,n[1]),s=ui(s,n[1]);t[0]=a,t[1]=o,r[0]=i,r[1]=s}}function Uz(e,t,r,n,a,i){a[0]=li(e,r),a[1]=li(t,n),i[0]=ui(e,r),i[1]=ui(t,n)}var Hz=[],zz=[];function _Je(e,t,r,n,a,i,o,s,l,u){var c=Hee,d=Xn,f=c(e,r,a,o,Hz);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var A=0;A<f;A++){var h=d(e,r,a,o,Hz[A]);l[0]=li(h,l[0]),u[0]=ui(h,u[0])}f=c(t,n,i,s,zz);for(var A=0;A<f;A++){var v=d(t,n,i,s,zz[A]);l[1]=li(v,l[1]),u[1]=ui(v,u[1])}l[0]=li(e,l[0]),u[0]=ui(e,u[0]),l[0]=li(o,l[0]),u[0]=ui(o,u[0]),l[1]=li(t,l[1]),u[1]=ui(t,u[1]),l[1]=li(s,l[1]),u[1]=ui(s,u[1])}function BJe(e,t,r,n,a,i,o,s){var l=Nee,u=la,c=ui(li(l(e,r,a),1),0),d=ui(li(l(t,n,i),1),0),f=u(e,r,a,c),A=u(t,n,i,d);o[0]=li(e,a,f),o[1]=li(t,i,A),s[0]=ui(e,a,f),s[1]=ui(t,i,A)}function TJe(e,t,r,n,a,i,o,s,l){var u=Ml,c=kl,d=Math.abs(a-i);if(d%Ed<1e-4&&d>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(a1[0]=oT(a)*r+e,a1[1]=iT(a)*n+t,i1[0]=oT(i)*r+e,i1[1]=iT(i)*n+t,u(s,a1,i1),c(l,a1,i1),a=a%Ed,a<0&&(a=a+Ed),i=i%Ed,i<0&&(i=i+Ed),a>i&&!o?i+=Ed:a<i&&o&&(a+=Ed),o){var f=i;i=a,a=f}for(var A=0;A<i;A+=Math.PI/2)A>a&&(o1[0]=oT(A)*r+e,o1[1]=iT(A)*n+t,u(s,o1,s),c(l,o1,l))}var Nr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Id=[],Rd=[],ws=[],_u=[],Cs=[],Ss=[],sT=Math.min,lT=Math.max,Dd=Math.cos,Fd=Math.sin,bl=Math.abs,aF=Math.PI,$u=aF*2,uT=typeof Float32Array!="undefined",Qp=[];function cT(e){var t=Math.round(e/aF*1e8)/1e8;return t%2*aF}function Ste(e,t){var r=cT(e[0]);r<0&&(r+=$u);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=$u?a=r+$u:t&&r-a>=$u?a=r-$u:!t&&r>a?a=r+($u-cT(r-a)):t&&r<a&&(a=r-($u-cT(a-r))),e[0]=r,e[1]=a}var EJe=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=bl(n/Qw/t)||0,this._uy=bl(n/Qw/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(Nr.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 n=bl(t-this._xi),a=bl(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Nr.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(Nr.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(Nr.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),Qp[0]=a,Qp[1]=i,Ste(Qp,o),a=Qp[0],i=Qp[1];var s=i-a;return this.addData(Nr.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=Dd(i)*n+t,this._yi=Fd(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(Nr.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Nr.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,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)&&uT&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,i=0;i<r;i++)n+=t[i].len();uT&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<r;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},e.prototype.addData=function(t,r,n,a,i,o,s,l,u){if(!!this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var d=0;d<arguments.length;d++)c[this._len++]=arguments[d]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(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;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,uT&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ws[0]=ws[1]=Cs[0]=Cs[1]=Number.MAX_VALUE,_u[0]=_u[1]=Ss[0]=Ss[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],a=r,i=n),s){case Nr.M:r=a=t[o++],n=i=t[o++],Cs[0]=a,Cs[1]=i,Ss[0]=a,Ss[1]=i;break;case Nr.L:Uz(r,n,t[o],t[o+1],Cs,Ss),r=t[o++],n=t[o++];break;case Nr.C:_Je(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Cs,Ss),r=t[o++],n=t[o++];break;case Nr.Q:BJe(r,n,t[o++],t[o++],t[o],t[o+1],Cs,Ss),r=t[o++],n=t[o++];break;case Nr.A:var u=t[o++],c=t[o++],d=t[o++],f=t[o++],A=t[o++],h=t[o++]+A;o+=1;var v=!t[o++];l&&(a=Dd(A)*d+u,i=Fd(A)*f+c),TJe(u,c,d,f,A,h,v,Cs,Ss),r=Dd(h)*d+u,n=Fd(h)*f+c;break;case Nr.R:a=r=t[o++],i=n=t[o++];var p=t[o++],g=t[o++];Uz(a,i,a+p,i+g,Cs,Ss);break;case Nr.Z:r=a,n=i;break}Ml(ws,ws,Cs),kl(_u,_u,Ss)}return o===0&&(ws[0]=ws[1]=_u[0]=_u[1]=0),new Kt(ws[0],ws[1],_u[0]-ws[0],_u[1]-ws[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,d=0,f=0;f<r;){var A=t[f++],h=f===1;h&&(i=t[f],o=t[f+1],s=i,l=o);var v=-1;switch(A){case Nr.M:i=s=t[f++],o=l=t[f++];break;case Nr.L:{var p=t[f++],g=t[f++],m=p-i,y=g-o;(bl(m)>n||bl(y)>a||f===r-1)&&(v=Math.sqrt(m*m+y*y),i=p,o=g);break}case Nr.C:{var b=t[f++],w=t[f++],p=t[f++],g=t[f++],x=t[f++],S=t[f++];v=kqe(i,o,b,w,p,g,x,S,10),i=x,o=S;break}case Nr.Q:{var b=t[f++],w=t[f++],p=t[f++],g=t[f++];v=Lqe(i,o,b,w,p,g,10),i=p,o=g;break}case Nr.A:var _=t[f++],B=t[f++],T=t[f++],E=t[f++],I=t[f++],R=t[f++],D=R+I;f+=1,t[f++],h&&(s=Dd(I)*T+_,l=Fd(I)*E+B),v=lT(T,E)*sT($u,Math.abs(R)),i=Dd(D)*T+_,o=Fd(D)*E+B;break;case Nr.R:{s=i=t[f++],l=o=t[f++];var k=t[f++],F=t[f++];v=k*2+F*2;break}case Nr.Z:{var m=s-i,y=l-o;v=Math.sqrt(m*m+y*y),i=s,o=l;break}}v>=0&&(u[d++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,A=r<1,h,v,p=0,g=0,m,y=0,b,w;if(A&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,v=this._pathLen,m=r*v,!m))return;e:for(var x=0;x<o;){var S=n[x++],_=x===1;switch(_&&(u=n[x],c=n[x+1],s=u,l=c),S!==Nr.L&&y>0&&(t.lineTo(b,w),y=0),S){case Nr.M:s=u=n[x++],l=c=n[x++],t.moveTo(u,c);break;case Nr.L:{d=n[x++],f=n[x++];var B=bl(d-u),T=bl(f-c);if(B>a||T>i){if(A){var E=h[g++];if(p+E>m){var I=(m-p)/E;t.lineTo(u*(1-I)+d*I,c*(1-I)+f*I);break e}p+=E}t.lineTo(d,f),u=d,c=f,y=0}else{var R=B*B+T*T;R>y&&(b=d,w=f,y=R)}break}case Nr.C:{var D=n[x++],k=n[x++],F=n[x++],P=n[x++],O=n[x++],H=n[x++];if(A){var E=h[g++];if(p+E>m){var I=(m-p)/E;Hc(u,D,F,O,I,Id),Hc(c,k,P,H,I,Rd),t.bezierCurveTo(Id[1],Rd[1],Id[2],Rd[2],Id[3],Rd[3]);break e}p+=E}t.bezierCurveTo(D,k,F,P,O,H),u=O,c=H;break}case Nr.Q:{var D=n[x++],k=n[x++],F=n[x++],P=n[x++];if(A){var E=h[g++];if(p+E>m){var I=(m-p)/E;om(u,D,F,I,Id),om(c,k,P,I,Rd),t.quadraticCurveTo(Id[1],Rd[1],Id[2],Rd[2]);break e}p+=E}t.quadraticCurveTo(D,k,F,P),u=F,c=P;break}case Nr.A:var V=n[x++],W=n[x++],Z=n[x++],ee=n[x++],ae=n[x++],ne=n[x++],le=n[x++],se=!n[x++],ce=Z>ee?Z:ee,ye=bl(Z-ee)>.001,fe=ae+ne,Q=!1;if(A){var E=h[g++];p+E>m&&(fe=ae+ne*(m-p)/E,Q=!0),p+=E}if(ye&&t.ellipse?t.ellipse(V,W,Z,ee,le,ae,fe,se):t.arc(V,W,ce,ae,fe,se),Q)break e;_&&(s=Dd(ae)*Z+V,l=Fd(ae)*ee+W),u=Dd(fe)*Z+V,c=Fd(fe)*ee+W;break;case Nr.R:s=u=n[x],l=c=n[x+1],d=n[x++],f=n[x++];var J=n[x++],U=n[x++];if(A){var E=h[g++];if(p+E>m){var K=m-p;t.moveTo(d,f),t.lineTo(d+sT(K,J),f),K-=J,K>0&&t.lineTo(d+J,f+sT(K,U)),K-=U,K>0&&t.lineTo(d+lT(J-K,0),f+U),K-=J,K>0&&t.lineTo(d,f+lT(U-K,0));break e}p+=E}t.rect(d,f,J,U);break;case Nr.Z:if(A){var E=h[g++];if(p+E>m){var I=(m-p)/E;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}p+=E}t.closePath(),u=s,c=l}}},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=Nr,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),nl=EJe;function Wu(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>e+s&&i>r+s||i<e-s&&i<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(i-e)<=s/2;var c=l*i-o+u,d=c*c/(l*l+1);return d<=s/2*s/2}function IJe(e,t,r,n,a,i,o,s,l,u,c){if(l===0)return!1;var d=l;if(c>t+d&&c>n+d&&c>i+d&&c>s+d||c<t-d&&c<n-d&&c<i-d&&c<s-d||u>e+d&&u>r+d&&u>a+d&&u>o+d||u<e-d&&u<r-d&&u<a-d&&u<o-d)return!1;var f=zee(e,t,r,n,a,i,o,s,u,c,null);return f<=d/2}function _te(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var c=Qee(e,t,r,n,a,i,s,l,null);return c<=u/2}var Nz=Math.PI*2;function nc(e){return e%=Nz,e<0&&(e+=Nz),e}var Vp=Math.PI*2;function RJe(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-a)%Vp<1e-4)return!0;if(i){var d=n;n=nc(a),a=nc(d)}else n=nc(n),a=nc(a);n>a&&(a+=Vp);var f=Math.atan2(l,s);return f<0&&(f+=Vp),f>=n&&f<=a||f+Vp>=n&&f+Vp<=a}function Tl(e,t,r,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===a?1/0:l>a?s:0}var Bu=nl.CMD,Md=Math.PI*2,DJe=1e-4;function FJe(e,t){return Math.abs(e-t)<DJe}var Ka=[-1,-1,-1],oo=[-1,-1];function MJe(){var e=oo[0];oo[0]=oo[1],oo[1]=e}function kJe(e,t,r,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var c=Hw(t,n,i,s,u,Ka);if(c===0)return 0;for(var d=0,f=-1,A=void 0,h=void 0,v=0;v<c;v++){var p=Ka[v],g=p===0||p===1?.5:1,m=Xn(e,r,a,o,p);m<l||(f<0&&(f=Hee(t,n,i,s,oo),oo[1]<oo[0]&&f>1&&MJe(),A=Xn(t,n,i,s,oo[0]),f>1&&(h=Xn(t,n,i,s,oo[1]))),f===2?p<oo[0]?d+=A<t?g:-g:p<oo[1]?d+=h<A?g:-g:d+=s<h?g:-g:p<oo[0]?d+=A<t?g:-g:d+=s<A?g:-g)}return d}function PJe(e,t,r,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=Pqe(t,n,i,s,Ka);if(l===0)return 0;var u=Nee(t,n,i);if(u>=0&&u<=1){for(var c=0,d=la(t,n,i,u),f=0;f<l;f++){var A=Ka[f]===0||Ka[f]===1?.5:1,h=la(e,r,a,Ka[f]);h<o||(Ka[f]<u?c+=d<t?A:-A:c+=i<d?A:-A)}return c}else{var A=Ka[0]===0||Ka[0]===1?.5:1,h=la(e,r,a,Ka[0]);return h<o?0:i<t?A:-A}}function LJe(e,t,r,n,a,i,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Ka[0]=-l,Ka[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Md-1e-4){n=0,a=Md;var c=i?1:-1;return o>=Ka[0]+e&&o<=Ka[1]+e?c:0}if(n>a){var d=n;n=a,a=d}n<0&&(n+=Md,a+=Md);for(var f=0,A=0;A<2;A++){var h=Ka[A];if(h+e>o){var v=Math.atan2(s,h),c=i?1:-1;v<0&&(v=Md+v),(v>=n&&v<=a||v+Md>=n&&v+Md<=a)&&(v>Math.PI/2&&v<Math.PI*1.5&&(c=-c),f+=c)}}return f}function Bte(e,t,r,n,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,c=0,d=0,f,A,h=0;h<o;){var v=i[h++],p=h===1;switch(v===Bu.M&&h>1&&(r||(s+=Tl(l,u,c,d,n,a))),p&&(l=i[h],u=i[h+1],c=l,d=u),v){case Bu.M:c=i[h++],d=i[h++],l=c,u=d;break;case Bu.L:if(r){if(Wu(l,u,i[h],i[h+1],t,n,a))return!0}else s+=Tl(l,u,i[h],i[h+1],n,a)||0;l=i[h++],u=i[h++];break;case Bu.C:if(r){if(IJe(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],t,n,a))return!0}else s+=kJe(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],n,a)||0;l=i[h++],u=i[h++];break;case Bu.Q:if(r){if(_te(l,u,i[h++],i[h++],i[h],i[h+1],t,n,a))return!0}else s+=PJe(l,u,i[h++],i[h++],i[h],i[h+1],n,a)||0;l=i[h++],u=i[h++];break;case Bu.A:var g=i[h++],m=i[h++],y=i[h++],b=i[h++],w=i[h++],x=i[h++];h+=1;var S=!!(1-i[h++]);f=Math.cos(w)*y+g,A=Math.sin(w)*b+m,p?(c=f,d=A):s+=Tl(l,u,f,A,n,a);var _=(n-g)*b/y+g;if(r){if(RJe(g,m,b,w,w+x,S,t,_,a))return!0}else s+=LJe(g,m,b,w,w+x,S,_,a);l=Math.cos(w+x)*y+g,u=Math.sin(w+x)*b+m;break;case Bu.R:c=l=i[h++],d=u=i[h++];var B=i[h++],T=i[h++];if(f=c+B,A=d+T,r){if(Wu(c,d,f,d,t,n,a)||Wu(f,d,f,A,t,n,a)||Wu(f,A,c,A,t,n,a)||Wu(c,A,c,d,t,n,a))return!0}else s+=Tl(f,d,f,A,n,a),s+=Tl(c,A,c,d,n,a);break;case Bu.Z:if(r){if(Wu(l,u,c,d,t,n,a))return!0}else s+=Tl(l,u,c,d,n,a);l=c,u=d;break}}return!r&&!FJe(u,d)&&(s+=Tl(l,u,c,d,n,a)||0),s!==0}function OJe(e,t,r){return Bte(e,0,!1,t,r)}function $Je(e,t,r,n){return Bte(e,t,!0,r,n)}var Ww=yt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ff),UJe={style:yt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},h_.style)},dT=tl.concat(["invisible","culling","z","z2","zlevel","parent"]),HJe=function(e){xe(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 n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<dT.length;++s)a[dT[s]]=this[dT[s]];a.__dirty|=Mi}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=tr(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?Me(this.style,s):this.useStyle(s):o==="shape"?Me(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Ze(r)){var n=um(r,0);return n>.5?XD:n>.2?bZe:qD}else if(r)return qD}return XD},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ze(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=um(r,0)<YD;if(i===o)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Bh},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new nl(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Bh)&&(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||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c==null?4:c)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),$Je(s,l/u,r,n)))return!0}if(this.hasFill())return OJe(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Bh,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,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:Me(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Bh)},t.prototype.createStyle=function(r){return dy(Ww,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Me({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=Me({},a.shape),Me(u,n.shape)):(u=Me({},i?this.shape:a.shape),Me(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=Me({},this.shape);for(var c={},d=tr(u),f=0;f<d.length;f++){var A=d[f];typeof u[A]=="object"?this.shape[A]=u[A]:c[A]=u[A]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return UJe},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){xe(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Bt(r.style)},o.prototype.getDefaultShape=function(){return Bt(r.shape)},o}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Mi|Ig|Bh}(),t}(_o),qt=HJe,zJe=yt({strokeFirst:!0,font:Uc,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ww),Tte=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return dy(zJe,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=hy(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(_o);Tte.prototype.type="tspan";var fm=Tte,NJe=yt({x:0,y:0},Ff),QJe={style:yt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},h_.style)};function VJe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Ete=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return dy(NJe,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=VJe(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return QJe},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Kt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(_o);Ete.prototype.type="image";var Aa=Ete;function WJe(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+i-u),u!==0&&e.arc(r+a-u,n+i-u,u,0,Math.PI/2),e.lineTo(r+c,n+i),c!==0&&e.arc(r+c,n+i-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var kh=Math.round;function Ite(e,t,r){if(!!t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(kh(n*2)===kh(a*2)&&(e.x1=e.x2=pf(n,s,!0)),kh(i*2)===kh(o*2)&&(e.y1=e.y2=pf(i,s,!0))),e}}function Rte(e,t,r){if(!!t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=pf(n,s,!0),e.y=pf(a,s,!0),e.width=Math.max(pf(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(pf(a+o,s,!1)-e.y,o===0?0:1)),e}}function pf(e,t,r){if(!t)return e;var n=kh(e*2);return(n+kh(t))%2===0?n/2:(n+(r?1:-1))/2}var GJe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),KJe={},Dte=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new GJe},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=Rte(KJe,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?WJe(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(qt);Dte.prototype.type="rect";var lr=Dte,Qz={fill:"#000"},Vz=2,jJe={style:yt({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},h_.style)},Fte=function(e){xe(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Qz,n.attr(r),n}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;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,qJe(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Kt(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Qz},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return Me(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=tr(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},Me(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return jJe},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Uc,a=r.padding,i=qz(r),o=vJe(i,r),s=fT(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,d=o.contentWidth,f=o.lines,A=o.lineHeight,h=this._defaultStyle,v=r.x||0,p=r.y||0,g=r.align||h.align||"left",m=r.verticalAlign||h.verticalAlign||"top",y=v,b=Th(p,o.contentHeight,m);if(s||a){var w=Dg(v,c,g),x=Th(p,u,m);s&&this._renderBackground(r,r,w,x,c,u)}b+=A/2,a&&(y=Xz(v,g,a),m==="top"?b+=a[0]:m==="bottom"&&(b-=a[2]));for(var S=0,_=!1,B=Yz("fill"in r?r.fill:(_=!0,h.fill)),T=jz("stroke"in r?r.stroke:!l&&(!h.autoStroke||_)?(S=Vz,h.stroke):null),E=r.textShadowBlur>0,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),R=o.calculatedLineHeight,D=0;D<f.length;D++){var k=this._getOrCreateChild(fm),F=k.createStyle();k.useStyle(F),F.text=f[D],F.x=y,F.y=b,g&&(F.textAlign=g),F.textBaseline="middle",F.opacity=r.opacity,F.strokeFirst=!0,E&&(F.shadowBlur=r.textShadowBlur||0,F.shadowColor=r.textShadowColor||"transparent",F.shadowOffsetX=r.textShadowOffsetX||0,F.shadowOffsetY=r.textShadowOffsetY||0),F.stroke=T,F.fill=B,T&&(F.lineWidth=r.lineWidth||S,F.lineDash=r.lineDash,F.lineDashOffset=r.lineDashOffset||0),F.font=n,Gz(F,r),b+=A,I&&k.setBoundingRect(new Kt(Dg(F.x,r.width,F.textAlign),Th(F.y,R,F.textBaseline),d,R))}},t.prototype._updateRichTexts=function(){var r=this.style,n=qz(r),a=mJe(n,r),i=a.width,o=a.outerWidth,s=a.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,d=this._defaultStyle,f=r.align||d.align,A=r.verticalAlign||d.verticalAlign,h=Dg(u,o,f),v=Th(c,s,A),p=h,g=v;l&&(p+=l[3],g+=l[0]);var m=p+i;fT(r)&&this._renderBackground(r,r,h,v,o,s);for(var y=!!r.backgroundColor,b=0;b<a.lines.length;b++){for(var w=a.lines[b],x=w.tokens,S=x.length,_=w.lineHeight,B=w.width,T=0,E=p,I=m,R=S-1,D=void 0;T<S&&(D=x[T],!D.align||D.align==="left");)this._placeToken(D,r,_,g,E,"left",y),B-=D.width,E+=D.width,T++;for(;R>=0&&(D=x[R],D.align==="right");)this._placeToken(D,r,_,g,I,"right",y),B-=D.width,I-=D.width,R--;for(E+=(i-(E-p)-(m-I)-B)/2;T<=R;)D=x[T],this._placeToken(D,r,_,g,E+D.width/2,"center",y),E+=D.width,T++;g+=_}},t.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,d=i+a/2;c==="top"?d=i+r.height/2:c==="bottom"&&(d=i+a-r.height/2);var f=!r.isLineHolder&&fT(u);f&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,d-r.height/2,r.width,r.height);var A=!!u.backgroundColor,h=r.textPadding;h&&(o=Xz(o,s,h),d-=r.height/2-h[0]-r.innerHeight/2);var v=this._getOrCreateChild(fm),p=v.createStyle();v.useStyle(p);var g=this._defaultStyle,m=!1,y=0,b=Yz("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,g.fill)),w=jz("stroke"in u?u.stroke:"stroke"in n?n.stroke:!A&&!l&&(!g.autoStroke||m)?(y=Vz,g.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=d,x&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Uc,p.opacity=Gs(u.opacity,n.opacity,1),Gz(p,u),w&&(p.lineWidth=Gs(u.lineWidth,n.lineWidth,y),p.lineDash=Yt(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),b&&(p.fill=b);var S=r.contentWidth,_=r.contentHeight;v.setBoundingRect(new Kt(Dg(p.x,S,p.textAlign),Th(p.y,_,p.textBaseline),S,_))},t.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,d=l&&l.image,f=l&&!d,A=r.borderRadius,h=this,v,p;if(f||r.lineHeight||u&&c){v=this._getOrCreateChild(lr),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=a,g.y=i,g.width=o,g.height=s,g.r=A,v.dirtyShape()}if(f){var m=v.style;m.fill=l||null,m.fillOpacity=Yt(r.fillOpacity,1)}else if(d){p=this._getOrCreateChild(Aa),p.onload=function(){h.dirtyStyle()};var y=p.style;y.image=l.image,y.x=a,y.y=i,y.width=o,y.height=s}if(u&&c){var m=v.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=Yt(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var b=(v||p).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Gs(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return kte(r)&&(n=[r.fontStyle,r.fontWeight,Mte(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&po(n)||r.textFont||r.font},t}(_o),YJe={left:!0,right:1,center:1},XJe={top:1,bottom:1,middle:1},Wz=["fontStyle","fontWeight","fontSize","fontFamily"];function Mte(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?WP+"px":e+"px"}function Gz(e,t){for(var r=0;r<Wz.length;r++){var n=Wz[r],a=t[n];a!=null&&(e[n]=a)}}function kte(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function qJe(e){return Kz(e),z(e.rich,Kz),e}function Kz(e){if(e){e.font=Fte.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||YJe[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||XJe[r]?r:"top";var n=e.padding;n&&(e.padding=o_(e.padding))}}function jz(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Yz(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Xz(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function qz(e){var t=e.text;return t!=null&&(t+=""),t}function fT(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var dr=Fte,kt=hr(),iF=function(e,t,r,n){if(n){var a=kt(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,n.type==="group"&&n.traverse(function(i){var o=kt(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},Zz=1,Jz={},Pte=hr(),dL=hr(),fL=0,py=1,p_=2,qa=["emphasis","blur","select"],Am=["normal","emphasis","blur","select"],ip=10,ZJe=9,Mf="highlight",Sx="downplay",y0="select",_x="unselect",b0="toggleSelect";function ZA(e){return e!=null&&e!=="none"}var eN=new fy(100);function tN(e){if(Ze(e)){var t=eN.get(e);return t||(t=zw(e,-.1),eN.put(e,t)),t}else if(cy(e)){var r=Me({},e);return r.colorStops=$e(e.colorStops,function(n){return{offset:n.offset,color:zw(n.color,-.1)}}),r}return e}function g_(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Lte(e){g_(e,"emphasis",p_)}function Ote(e){e.hoverState===p_&&g_(e,"normal",fL)}function AL(e){g_(e,"blur",py)}function $te(e){e.hoverState===py&&g_(e,"normal",fL)}function JJe(e){e.selected=!0}function eet(e){e.selected=!1}function rN(e,t,r){t(e,r)}function fu(e,t,r){rN(e,t,r),e.isGroup&&e.traverse(function(n){rN(n,t,r)})}function Gw(e,t){switch(t){case"emphasis":e.hoverState=p_;break;case"normal":e.hoverState=fL;break;case"blur":e.hoverState=py;break;case"select":e.selected=!0}}function tet(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l==null?n&&n[s]:l}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function ret(e,t,r,n){var a=r&&Gt(r,"select")>=0,i=!1;if(e instanceof qt){var o=Pte(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ZA(s)||ZA(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=Me({},n),u=Me({},u),u.fill=s):!ZA(u.fill)&&ZA(s)?(i=!0,n=Me({},n),u=Me({},u),u.fill=tN(s)):!ZA(u.stroke)&&ZA(l)&&(i||(n=Me({},n),u=Me({},u)),u.stroke=tN(l)),n.style=u}}if(n&&n.z2==null){i||(n=Me({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c!=null?c:ip)}return n}function net(e,t,r){if(r&&r.z2==null){r=Me({},r);var n=e.z2SelectLift;r.z2=e.z2+(n!=null?n:ZJe)}return r}function aet(e,t,r){var n=Gt(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:tet(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Me({},r),o=Me({opacity:n?a:i.opacity*.1},o),r.style=o),r}function AT(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return ret(this,e,t,r);if(e==="blur")return aet(this,e,r);if(e==="select")return net(this,e,r)}return r}function Yf(e){e.stateProxy=AT;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=AT),r&&(r.stateProxy=AT)}function nN(e,t){!Nte(e,t)&&!e.__highByOuter&&fu(e,Lte)}function aN(e,t){!Nte(e,t)&&!e.__highByOuter&&fu(e,Ote)}function Jl(e,t){e.__highByOuter|=1<<(t||0),fu(e,Lte)}function eu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&fu(e,Ote)}function Ute(e){fu(e,AL)}function hL(e){fu(e,$te)}function Hte(e){fu(e,JJe)}function zte(e){fu(e,eet)}function Nte(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Qte(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=dL(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){$te(u)}),s&&r.push(i)),o.isBlured=!1}),z(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function oF(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,c){for(var d=0;d<c.length;d++){var f=u.getItemGraphicEl(c[d]);f&&hL(f)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,d=u.coordinateSystem;d&&d.master&&(d=d.master);var f=d&&s?d===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!f||t==="series"&&c)){var A=n.getViewOfSeriesModel(u);if(A.group.traverse(function(p){AL(p)}),Sa(t))i(u.getData(),t);else if(St(t))for(var h=tr(t),v=0;v<h.length;v++)i(u.getData(h[v]),t[h[v]]);l.push(u),dL(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var d=n.getViewOfComponentModel(c);d&&d.toggleBlurSeries&&d.toggleBlurSeries(l,!0,a)}})}}function sF(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(!!n){dL(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){AL(i)})}}}function iet(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(!!a){var i=Kf(a,t);i=(Pe(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=kt(o);oF(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);c!=null&&oF(n,c,d,r)}}}function vL(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(kt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function oet(e,t,r){var n=kt(e),a=vL(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&sF(n.componentMainType,n.componentIndex,r),z(i,function(s){return nN(s,t)})):(oF(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&sF(n.componentMainType,n.componentIndex,r),nN(e,t))}function set(e,t,r){Qte(r);var n=kt(e),a=vL(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?z(a,function(i){return aN(i,t)}):aN(e,t)}function uet(e,t,r){if(!!uF(t)){var n=t.dataType,a=e.getData(n),i=Kf(a,t);Pe(i)||(i=[i]),e[t.type===b0?"toggleSelect":t.type===y0?"select":"unselect"](i,n)}}function iN(e){var t=e.getAllData();z(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?Hte(i):zte(i)})})}function cet(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();z(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function gc(e,t,r){gf(e,!0),fu(e,Yf),lF(e,t,r)}function det(e){gf(e,!1)}function bn(e,t,r,n){n?det(e):gc(e,t,r)}function lF(e,t,r){var n=kt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var oN=["emphasis","blur","select"],fet={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function _a(e,t,r,n){r=r||"itemStyle";for(var a=0;a<oN.length;a++){var i=oN[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[fet[r]]()}}function gf(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function hm(e){return!!(e&&e.__highDownDispatcher)}function Aet(e,t,r){var n=kt(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function het(e){var t=Jz[e];return t==null&&Zz<=32&&(t=Jz[e]=Zz++),t}function uF(e){var t=e.type;return t===y0||t===_x||t===b0}function sN(e){var t=e.type;return t===Mf||t===Sx}function vet(e){var t=Pte(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var JA=nl.CMD,pet=[[],[],[]],lN=Math.sqrt,get=Math.atan2;function Vte(e,t){if(!!t){var r=e.data,n=e.len(),a,i,o,s,l,u,c=JA.M,d=JA.C,f=JA.L,A=JA.R,h=JA.A,v=JA.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case c:i=1;break;case f:i=1;break;case d:i=3;break;case v:i=2;break;case h:var p=t[4],g=t[5],m=lN(t[0]*t[0]+t[1]*t[1]),y=lN(t[2]*t[2]+t[3]*t[3]),b=get(-t[1]/y,t[0]/m);r[o]*=m,r[o++]+=p,r[o]*=y,r[o++]+=g,r[o++]*=m,r[o++]*=y,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case A:u[0]=r[o++],u[1]=r[o++],ua(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ua(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var w=pet[l];w[0]=r[o++],w[1]=r[o++],ua(w,w,t),r[s++]=w[0],r[s++]=w[1]}}e.increaseVersion()}}var hT=Math.sqrt,s1=Math.sin,l1=Math.cos,Wp=Math.PI;function uN(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function cF(e,t){return(e[0]*t[0]+e[1]*t[1])/(uN(e)*uN(t))}function cN(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(cF(e,t))}function dN(e,t,r,n,a,i,o,s,l,u,c){var d=l*(Wp/180),f=l1(d)*(e-r)/2+s1(d)*(t-n)/2,A=-1*s1(d)*(e-r)/2+l1(d)*(t-n)/2,h=f*f/(o*o)+A*A/(s*s);h>1&&(o*=hT(h),s*=hT(h));var v=(a===i?-1:1)*hT((o*o*(s*s)-o*o*(A*A)-s*s*(f*f))/(o*o*(A*A)+s*s*(f*f)))||0,p=v*o*A/s,g=v*-s*f/o,m=(e+r)/2+l1(d)*p-s1(d)*g,y=(t+n)/2+s1(d)*p+l1(d)*g,b=cN([1,0],[(f-p)/o,(A-g)/s]),w=[(f-p)/o,(A-g)/s],x=[(-1*f-p)/o,(-1*A-g)/s],S=cN(w,x);if(cF(w,x)<=-1&&(S=Wp),cF(w,x)>=1&&(S=0),S<0){var _=Math.round(S/Wp*1e6)/1e6;S=Wp*2+_%2*Wp}c.addData(u,m,y,o,s,b,S,d,i)}var met=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,yet=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bet(e){var t=new nl;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=nl.CMD,l=e.match(met);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),f=void 0,A=c.match(yet)||[],h=A.length,v=0;v<h;v++)A[v]=parseFloat(A[v]);for(var p=0;p<h;){var g=void 0,m=void 0,y=void 0,b=void 0,w=void 0,x=void 0,S=void 0,_=r,B=n,T=void 0,E=void 0;switch(d){case"l":r+=A[p++],n+=A[p++],f=s.L,t.addData(f,r,n);break;case"L":r=A[p++],n=A[p++],f=s.L,t.addData(f,r,n);break;case"m":r+=A[p++],n+=A[p++],f=s.M,t.addData(f,r,n),a=r,i=n,d="l";break;case"M":r=A[p++],n=A[p++],f=s.M,t.addData(f,r,n),a=r,i=n,d="L";break;case"h":r+=A[p++],f=s.L,t.addData(f,r,n);break;case"H":r=A[p++],f=s.L,t.addData(f,r,n);break;case"v":n+=A[p++],f=s.L,t.addData(f,r,n);break;case"V":n=A[p++],f=s.L,t.addData(f,r,n);break;case"C":f=s.C,t.addData(f,A[p++],A[p++],A[p++],A[p++],A[p++],A[p++]),r=A[p-2],n=A[p-1];break;case"c":f=s.C,t.addData(f,A[p++]+r,A[p++]+n,A[p++]+r,A[p++]+n,A[p++]+r,A[p++]+n),r+=A[p-2],n+=A[p-1];break;case"S":g=r,m=n,T=t.len(),E=t.data,o===s.C&&(g+=r-E[T-4],m+=n-E[T-3]),f=s.C,_=A[p++],B=A[p++],r=A[p++],n=A[p++],t.addData(f,g,m,_,B,r,n);break;case"s":g=r,m=n,T=t.len(),E=t.data,o===s.C&&(g+=r-E[T-4],m+=n-E[T-3]),f=s.C,_=r+A[p++],B=n+A[p++],r+=A[p++],n+=A[p++],t.addData(f,g,m,_,B,r,n);break;case"Q":_=A[p++],B=A[p++],r=A[p++],n=A[p++],f=s.Q,t.addData(f,_,B,r,n);break;case"q":_=A[p++]+r,B=A[p++]+n,r+=A[p++],n+=A[p++],f=s.Q,t.addData(f,_,B,r,n);break;case"T":g=r,m=n,T=t.len(),E=t.data,o===s.Q&&(g+=r-E[T-4],m+=n-E[T-3]),r=A[p++],n=A[p++],f=s.Q,t.addData(f,g,m,r,n);break;case"t":g=r,m=n,T=t.len(),E=t.data,o===s.Q&&(g+=r-E[T-4],m+=n-E[T-3]),r+=A[p++],n+=A[p++],f=s.Q,t.addData(f,g,m,r,n);break;case"A":y=A[p++],b=A[p++],w=A[p++],x=A[p++],S=A[p++],_=r,B=n,r=A[p++],n=A[p++],f=s.A,dN(_,B,r,n,x,S,y,b,w,f,t);break;case"a":y=A[p++],b=A[p++],w=A[p++],x=A[p++],S=A[p++],_=r,B=n,r+=A[p++],n+=A[p++],f=s.A,dN(_,B,r,n,x,S,y,b,w,f,t);break}}(d==="z"||d==="Z")&&(f=s.Z,t.addData(f),r=a,n=i),o=f}return t.toStatic(),t}var Wte=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(qt);function Gte(e){return e.setData!=null}function Kte(e,t){var r=bet(e),n=Me({},t);return n.buildPath=function(a){if(Gte(a)){a.setData(r.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;r.rebuildPath(i,1)}},n.applyTransform=function(a){Vte(r,a),this.dirtyShape()},n}function jte(e,t){return new Wte(Kte(e,t))}function xet(e,t){var r=Kte(e,t),n=function(a){xe(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(Wte);return n}function wet(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new qt(t);return o.createPathProxy(),o.buildPath=function(s){if(Gte(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function pL(e,t){t=t||{};var r=new qt;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?Vte(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var Cet=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Yte=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Cet},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(qt);Yte.prototype.type="circle";var cs=Yte,_et=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Xte=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new _et},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),r.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),r.closePath()},t}(qt);Xte.prototype.type="ellipse";var m_=Xte,qte=Math.PI,vT=qte*2,kd=Math.sin,eh=Math.cos,Bet=Math.acos,Ra=Math.atan2,fN=Math.abs,x0=Math.sqrt,Fg=Math.max,_s=Math.min,Ho=1e-4;function Tet(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,d=s-i,f=d*l-c*u;if(!(f*f<Ho))return f=(c*(t-i)-d*(e-a))/f,[e+f*l,t+f*u]}function u1(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/x0(s*s+l*l),c=u*l,d=-u*s,f=e+c,A=t+d,h=r+c,v=n+d,p=(f+h)/2,g=(A+v)/2,m=h-f,y=v-A,b=m*m+y*y,w=a-i,x=f*v-h*A,S=(y<0?-1:1)*x0(Fg(0,w*w*b-x*x)),_=(x*y-m*S)/b,B=(-x*m-y*S)/b,T=(x*y+m*S)/b,E=(-x*m+y*S)/b,I=_-p,R=B-g,D=T-p,k=E-g;return I*I+R*R>D*D+k*k&&(_=T,B=E),{cx:_,cy:B,x0:-c,y0:-d,x1:_*(a/w-1),y1:B*(a/w-1)}}function Eet(e){var t;if(Pe(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 Iet(e,t){var r,n=Fg(t.r,0),a=Fg(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,d=t.cy,f=!!t.clockwise,A=fN(u-l),h=A>vT&&A%vT;if(h>Ho&&(A=h),!(n>Ho))e.moveTo(c,d);else if(A>vT-Ho)e.moveTo(c+n*eh(l),d+n*kd(l)),e.arc(c,d,n,l,u,!f),a>Ho&&(e.moveTo(c+a*eh(u),d+a*kd(u)),e.arc(c,d,a,u,l,f));else{var v=void 0,p=void 0,g=void 0,m=void 0,y=void 0,b=void 0,w=void 0,x=void 0,S=void 0,_=void 0,B=void 0,T=void 0,E=void 0,I=void 0,R=void 0,D=void 0,k=n*eh(l),F=n*kd(l),P=a*eh(u),O=a*kd(u),H=A>Ho;if(H){var V=t.cornerRadius;V&&(r=Eet(V),v=r[0],p=r[1],g=r[2],m=r[3]);var W=fN(n-a)/2;if(y=_s(W,g),b=_s(W,m),w=_s(W,v),x=_s(W,p),B=S=Fg(y,b),T=_=Fg(w,x),(S>Ho||_>Ho)&&(E=n*eh(u),I=n*kd(u),R=a*eh(l),D=a*kd(l),A<qte)){var Z=Tet(k,F,R,D,E,I,P,O);if(Z){var ee=k-Z[0],ae=F-Z[1],ne=E-Z[0],le=I-Z[1],se=1/kd(Bet((ee*ne+ae*le)/(x0(ee*ee+ae*ae)*x0(ne*ne+le*le)))/2),ce=x0(Z[0]*Z[0]+Z[1]*Z[1]);B=_s(S,(n-ce)/(se+1)),T=_s(_,(a-ce)/(se-1))}}}if(!H)e.moveTo(c+k,d+F);else if(B>Ho){var ye=_s(g,B),fe=_s(m,B),Q=u1(R,D,k,F,n,ye,f),J=u1(E,I,P,O,n,fe,f);e.moveTo(c+Q.cx+Q.x0,d+Q.cy+Q.y0),B<S&&ye===fe?e.arc(c+Q.cx,d+Q.cy,B,Ra(Q.y0,Q.x0),Ra(J.y0,J.x0),!f):(ye>0&&e.arc(c+Q.cx,d+Q.cy,ye,Ra(Q.y0,Q.x0),Ra(Q.y1,Q.x1),!f),e.arc(c,d,n,Ra(Q.cy+Q.y1,Q.cx+Q.x1),Ra(J.cy+J.y1,J.cx+J.x1),!f),fe>0&&e.arc(c+J.cx,d+J.cy,fe,Ra(J.y1,J.x1),Ra(J.y0,J.x0),!f))}else e.moveTo(c+k,d+F),e.arc(c,d,n,l,u,!f);if(!(a>Ho)||!H)e.lineTo(c+P,d+O);else if(T>Ho){var ye=_s(v,T),fe=_s(p,T),Q=u1(P,O,E,I,a,-fe,f),J=u1(k,F,R,D,a,-ye,f);e.lineTo(c+Q.cx+Q.x0,d+Q.cy+Q.y0),T<_&&ye===fe?e.arc(c+Q.cx,d+Q.cy,T,Ra(Q.y0,Q.x0),Ra(J.y0,J.x0),!f):(fe>0&&e.arc(c+Q.cx,d+Q.cy,fe,Ra(Q.y0,Q.x0),Ra(Q.y1,Q.x1),!f),e.arc(c,d,a,Ra(Q.cy+Q.y1,Q.cx+Q.x1),Ra(J.cy+J.y1,J.cx+J.x1),f),ye>0&&e.arc(c+J.cx,d+J.cy,ye,Ra(J.y1,J.x1),Ra(J.y0,J.x0),!f))}else e.lineTo(c+P,d+O),e.arc(c,d,a,u,l,f)}e.closePath()}}}var Ret=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}(),Zte=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ret},t.prototype.buildPath=function(r,n){Iet(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(qt);Zte.prototype.type="sector";var Za=Zte,Det=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Jte=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Det},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t}(qt);Jte.prototype.type="ring";var gy=Jte;function Fet(e,t,r,n){var a=[],i=[],o=[],s=[],l,u,c,d;if(n){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,A=e.length;f<A;f++)Ml(c,c,e[f]),kl(d,d,e[f]);Ml(c,c,n[0]),kl(d,d,n[1])}for(var f=0,A=e.length;f<A;f++){var h=e[f];if(r)l=e[f?f-1:A-1],u=e[(f+1)%A];else if(f===0||f===A-1){a.push(Ks(e[f]));continue}else l=e[f-1],u=e[f+1];Ju(i,u,l),vx(i,i,t);var v=$w(h,l),p=$w(h,u),g=v+p;g!==0&&(v/=g,p/=g),vx(o,i,-v),vx(s,i,p);var m=kD([],h,o),y=kD([],h,s);n&&(kl(m,m,c),Ml(m,m,d),kl(y,y,c),Ml(y,y,d)),a.push(m),a.push(y)}return r&&a.push(a.shift()),a}function ere(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=Fet(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;s<d;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var Met=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),tre=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Met},t.prototype.buildPath=function(r,n){ere(r,n,!0)},t}(qt);tre.prototype.type="polygon";var Ja=tre,ket=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),rre=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ket},t.prototype.buildPath=function(r,n){ere(r,n,!1)},t}(qt);rre.prototype.type="polyline";var ei=rre,Pet={},Let=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),nre=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Let},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=Ite(Pet,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(qt);nre.prototype.type="line";var ta=nre,ri=[],Oet=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function AN(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?yz:Xn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?yz:Xn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?HD:la)(e.x1,e.cpx1,e.x2,t),(r?HD:la)(e.y1,e.cpy1,e.y2,t)]}var are=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Oet},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,d=n.cpy2,f=n.percent;f!==0&&(r.moveTo(a,i),c==null||d==null?(f<1&&(om(a,l,o,f,ri),l=ri[1],o=ri[2],om(i,u,s,f,ri),u=ri[1],s=ri[2]),r.quadraticCurveTo(l,u,o,s)):(f<1&&(Hc(a,l,c,o,f,ri),l=ri[1],c=ri[2],o=ri[3],Hc(i,u,d,s,f,ri),u=ri[1],d=ri[2],s=ri[3]),r.bezierCurveTo(l,u,c,d,o,s)))},t.prototype.pointAt=function(r){return AN(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=AN(this.shape,r,!0);return np(n,n)},t}(qt);are.prototype.type="bezier-curve";var my=are,$et=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),ire=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $et},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),d=Math.sin(s);r.moveTo(c*o+a,d*o+i),r.arc(a,i,o,s,l,!u)},t}(qt);ire.prototype.type="arc";var y_=ire,Uet=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),qt.prototype.getBoundingRect.call(this)},t}(qt),b_=Uet,Het=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),ore=Het,zet=function(e){xe(t,e);function t(r,n,a,i,o,s){var l=e.call(this,o)||this;return l.x=r==null?0:r,l.y=n==null?0:n,l.x2=a==null?1:a,l.y2=i==null?0:i,l.type="linear",l.global=s||!1,l}return t}(ore),op=zet,Net=function(e){xe(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r==null?.5:r,s.y=n==null?.5:n,s.r=a==null?.5:a,s.type="radial",s.global=o||!1,s}return t}(ore),gL=Net,Pd=[0,0],Ld=[0,0],c1=new zt,d1=new zt,Qet=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new zt;for(var n=0;n<2;n++)this._axes[n]=new zt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);zt.sub(a[0],n[1],n[0]),zt.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,a=!r;return c1.set(1/0,1/0),d1.set(0,0),!this._intersectCheckOneSide(this,t,c1,d1,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,c1,d1,a,-1)&&(n=!1,a)||a||zt.copy(r,n?c1:d1),n},e.prototype._intersectCheckOneSide=function(t,r,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Pd),this._getProjMinMaxOnAxis(l,r._corners,Ld),Pd[1]<Ld[0]||Pd[0]>Ld[1]){if(s=!1,i)return s;var c=Math.abs(Ld[0]-Pd[1]),d=Math.abs(Pd[0]-Ld[1]);Math.min(c,d)>a.len()&&(c<d?zt.scale(a,u,-c*o):zt.scale(a,u,d*o))}else if(n){var c=Math.abs(Ld[0]-Pd[1]),d=Math.abs(Pd[0]-Ld[1]);Math.min(c,d)<n.len()&&(c<d?zt.scale(n,u,c*o):zt.scale(n,u,-d*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(a)+i[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}(),Kw=Qet,Vet=[],Wet=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Kt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(Vet)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(_o),sre=Wet,lre=hr();function sp(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,d=void 0;n?(u=Yt(n.duration,200),c=Yt(n.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(d=i.delay)),pt(d)&&(d=d(r,a)),pt(u)&&(u=u(r));var f={duration:u||0,delay:d,easing:c};return f}else return null}function mL(e,t,r,n,a,i,o){var s=!1,l;pt(a)?(o=i,i=a,a=null):St(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=sp(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var d=c.duration,f=c.delay,A=c.easing,h={duration:d,delay:f||0,easing:A,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,h):t.animateTo(r,h)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function fr(e,t,r,n,a,i){mL("update",e,t,r,n,a,i)}function Zr(e,t,r,n,a,i){mL("enter",e,t,r,n,a,i)}function Zh(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function zc(e,t,r,n,a,i){Zh(e)||mL("leave",e,t,r,n,a,i)}function hN(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),zc(e,{style:{opacity:0}},t,r,n)}function vm(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||hN(a,t,r,n)}):hN(e,t,r,n)}function ds(e){lre(e).oldStyle=e.style}function Get(e){return lre(e).oldStyle}var jw=Math.max,Yw=Math.min,dF={};function ure(e){return qt.extend(e)}var Ket=xet;function cre(e,t){return Ket(e,t)}function Fo(e,t){dF[e]=t}function x_(e){if(dF.hasOwnProperty(e))return dF[e]}function yy(e,t,r,n){var a=jte(e,t);return r&&(n==="center"&&(r=dre(r,a.getBoundingRect())),bL(a,r)),a}function yL(e,t,r){var n=new Aa({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(dre(t,i))}}});return n}function dre(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var ki=wet;function bL(e,t){if(!!e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function jet(e){return Ite(e.shape,e.shape,e.style),e}function Yet(e){return Rte(e.shape,e.shape,e.style),e}var Bx=pf;function mc(e,t){for(var r=Ay([]);e&&e!==t;)js(r,e.getLocalTransform(),r),e=e.parent;return r}function ts(e,t,r){return t&&!Sa(t)&&(t=Pl.getLocalTransform(t)),r&&(t=bA([],t)),ua([],e,t)}function w_(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=ts(i,t,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function vN(e){return!e.isGroup}function Xet(e){return e.shape!=null}function by(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){vN(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Xet(o)&&(s.shape=Me({},o.shape)),s}var i=n(e);t.traverse(function(o){if(vN(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),fr(o,l,r,kt(o).dataIndex)}}})}function xL(e,t){return $e(e,function(r){var n=r[0];n=jw(n,t.x),n=Yw(n,t.x+t.width);var a=r[1];return a=jw(a,t.y),a=Yw(a,t.y+t.height),[n,a]})}function fre(e,t){var r=jw(e.x,t.x),n=Yw(e.x+e.width,t.x+t.width),a=jw(e.y,t.y),i=Yw(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function lp(e,t,r){var n=Me({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),yt(a,r),new Aa(n)):yy(e.replace("path://",""),n,r,"center")}function Mg(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(Are(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Are(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,d=s-i,f=pT(c,d,l,u);if(qet(f))return!1;var A=e-a,h=t-i,v=pT(A,h,l,u)/f;if(v<0||v>1)return!1;var p=pT(A,h,c,d)/f;return!(p<0||p>1)}function pT(e,t,r,n){return e*n-r*t}function qet(e){return e<=1e-6&&e>=-1e-6}function up(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=Ze(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&z(tr(l),function(c){at(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=kt(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:yt({content:n,formatterParams:s},a)}}function pN(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function sd(e,t){if(e)if(Pe(e))for(var r=0;r<e.length;r++)pN(e[r],t);else pN(e,t)}Fo("circle",cs);Fo("ellipse",m_);Fo("sector",Za);Fo("ring",gy);Fo("polygon",Ja);Fo("polyline",ei);Fo("rect",lr);Fo("line",ta);Fo("bezierCurve",my);Fo("arc",y_);var xy=Object.freeze(Object.defineProperty({__proto__:null,updateProps:fr,initProps:Zr,removeElement:zc,removeElementWithFadeOut:vm,isElementRemoved:Zh,extendShape:ure,extendPath:cre,registerShape:Fo,getShapeClass:x_,makePath:yy,makeImage:yL,mergePath:ki,resizePath:bL,subPixelOptimizeLine:jet,subPixelOptimizeRect:Yet,subPixelOptimize:Bx,getTransform:mc,applyTransform:ts,transformDirection:w_,groupTransition:by,clipPointsByRect:xL,clipRectByRect:fre,createIcon:lp,linePolygonIntersect:Mg,lineLineIntersect:Are,setTooltipConfig:up,traverseElements:sd,Group:It,Image:Aa,Text:dr,Circle:cs,Ellipse:m_,Sector:Za,Ring:gy,Polygon:Ja,Polyline:ei,Rect:lr,Line:ta,BezierCurve:my,Arc:y_,IncrementalDisplayable:sre,CompoundPath:b_,LinearGradient:op,RadialGradient:gL,BoundingRect:Kt,OrientedBoundingRect:Kw,Point:zt,Path:qt},Symbol.toStringTag,{value:"Module"})),C_={};function hre(e,t){for(var r=0;r<qa.length;r++){var n=qa[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function fF(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=pt(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<qa.length;u++){var c=qa[u],d=t[c];l[c]=Yt(n?n.getFormattedLabel(a,c,null,i,d&&d.get("formatter")):null,s)}return l}function Na(e,t,r,n){r=r||C_;for(var a=e instanceof dr,i=!1,o=0;o<Am.length;o++){var s=t[Am[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new dr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=fF(r,t),c=t.normal,d=!!c.getShallow("show"),f=Jr(c,n&&n.normal,r,!1,!a);f.text=u.normal,a||e.setTextConfig(Xw(c,r,!1));for(var o=0;o<qa.length;o++){var A=qa[o],s=t[A];if(s){var h=l.ensureState(A),v=!!Yt(s.getShallow("show"),d);if(v!==d&&(h.ignore=!v),h.style=Jr(s,n&&n[A],r,!0,!a),h.style.text=u[A],!a){var p=e.ensureState(A);p.textConfig=Xw(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(f.x=l.style.x),l.style.y!=null&&(f.y=l.style.y),l.ignore=!d,l.useStyle(f),l.dirty(),r.enableTextSetter&&(cp(l).setLabelText=function(g){var m=fF(r,t,g);hre(l,m)})}else l&&(l.ignore=!0);e.dirty()}function ca(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<qa.length;n++){var a=qa[n];r[a]=e.getModel([a,t])}return r}function Jr(e,t,r,n,a){var i={};return Zet(i,e,r,n,a),t&&Me(i,t),i}function Xw(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=Yt(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function Zet(e,t,r,n,a){r=r||C_;var i=t.ecModel,o=i&&i.option.textStyle,s=Jet(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);bN(l[u]={},c,o,r,n,a,!1,!0)}}l&&(e.rich=l);var d=t.get("overflow");d&&(e.overflow=d);var f=t.get("minMargin");f!=null&&(e.margin=f),bN(e,t,o,r,n,a,!0,!1)}function Jet(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||C_).rich;if(r){t=t||{};for(var n=tr(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var gN=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],mN=["align","lineHeight","width","height","tag","verticalAlign"],yN=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function bN(e,t,r,n,a,i,o,s){r=!a&&r||C_;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=Yt(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var f=Yt(t.getShallow("textBorderWidth"),r.textBorderWidth);f!=null&&(e.lineWidth=f);var A=Yt(t.getShallow("textBorderType"),r.textBorderType);A!=null&&(e.lineDash=A);var h=Yt(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);h!=null&&(e.lineDashOffset=h),!a&&d==null&&!s&&(d=n&&n.defaultOpacity),d!=null&&(e.opacity=d),!a&&!i&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var v=0;v<gN.length;v++){var p=gN[v],g=Yt(t.getShallow(p),r[p]);g!=null&&(e[p]=g)}for(var v=0;v<mN.length;v++){var p=mN[v],g=t.getShallow(p);g!=null&&(e[p]=g)}if(e.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(e.verticalAlign=m)}if(!o||!n.disableBox){for(var v=0;v<yN.length;v++){var p=yN[v],g=t.getShallow(p);g!=null&&(e[p]=g)}var y=t.getShallow("borderType");y!=null&&(e.borderDash=y),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function vre(e,t){var r=t&&t.getModel("textStyle");return po([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var cp=hr();function pre(e,t,r,n){if(!!e){var a=cp(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function gre(e,t,r,n,a){var i=cp(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Yt(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var d=gte(r,i.precision,s,l,c);i.interpolatedValue=c===1?null:d;var f=fF({labelDataIndex:t,labelFetcher:a,defaultText:o?o(d):d+""},i.statesModels,d);hre(e,f)}e.percent=0,(i.prevValue==null?Zr:fr)(e,{percent:1},n,t,null,u)}var ett=["textStyle","color"],gT=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],mT=new dr,ttt=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(ett):null)},e.prototype.getFont=function(){return vre({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<gT.length;n++)r[gT[n]]=this.getShallow(gT[n]);return mT.useStyle(r),mT.update(),mT.getBoundingRect()},e}(),rtt=ttt,mre=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ntt=jf(mre),att=function(){function e(){}return e.prototype.getLineStyle=function(t){return ntt(this,t)},e}(),yre=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],itt=jf(yre),ott=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return itt(this,t,r)},e}(),xA=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){Ut(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Bt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!vr.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(!!t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();uL(xA);sJe(xA);xn(xA,att);xn(xA,ott);xn(xA,fJe);xn(xA,rtt);var Or=xA,stt=Math.round(Math.random()*10);function dp(e){return[e||"",stt++].join("_")}function ltt(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=Os(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=Os(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function utt(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),c=u.graph,d=u.noEntryList,f={};for(z(i,function(m){f[m]=!0});d.length;){var A=d.pop(),h=c[A],v=!!f[A];v&&(s.call(l,A,h.originalDeps.slice()),delete f[A]),z(h.successor,v?g:p)}z(f,function(){var m="";throw new Error(m)});function p(m){c[m].entryCount--,c[m].entryCount===0&&d.push(m)}function g(m){f[m]=!0,p(m)}};function r(i){var o={},s=[];return z(i,function(l){var u=n(o,l),c=u.originalDeps=t(l),d=a(c,i);u.entryCount=d.length,u.entryCount===0&&s.push(l),z(d,function(f){Gt(u.predecessor,f)<0&&u.predecessor.push(f);var A=n(o,f);Gt(A.successor,f)<0&&A.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return z(i,function(l){Gt(o,l)>=0&&s.push(l)}),s}}function ld(e,t){return Ut(Ut({},e,!0),t,!0)}var ctt={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:". "}}}},dtt={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},qw="ZH",wL="EN",pm=wL,Tx={},CL={},bre=vr.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(qw)>-1?qw:pm}():pm;function SL(e,t){e=e.toUpperCase(),CL[e]=new Or(t),Tx[e]=t}function ftt(e){if(Ze(e)){var t=Tx[e.toUpperCase()]||{};return e===qw||e===wL?Bt(t):Ut(Bt(t),Bt(Tx[pm]),!1)}else return Ut(Bt(e),Bt(Tx[pm]),!1)}function AF(e){return CL[e]}function Att(){return CL[pm]}SL(wL,ctt);SL(qw,dtt);var _L=1e3,BL=_L*60,w0=BL*60,fo=w0*24,xN=fo*365,kg={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}"},f1="{yyyy}-{MM}-{dd}",wN={year:"{yyyy}",month:"{yyyy}-{MM}",day:f1,hour:f1+" "+kg.hour,minute:f1+" "+kg.minute,second:f1+" "+kg.second,millisecond:kg.none},yT=["year","month","day","hour","minute","second","millisecond"],xre=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function oi(e,t){return e+="","0000".substr(0,t-e.length)+e}function Jh(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function htt(e){return e===Jh(e)}function vtt(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function wy(e,t,r,n){var a=Ki(e),i=a[TL(r)](),o=a[ev(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[S_(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[gm(r)](),d=(c-1)%12+1,f=a[__(r)](),A=a[B_(r)](),h=a[T_(r)](),v=n instanceof Or?n:AF(n||bre)||Att(),p=v.getModel("time"),g=p.get("month"),m=p.get("monthAbbr"),y=p.get("dayOfWeek"),b=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,oi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,oi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,oi(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,oi(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,oi(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,oi(A,2)).replace(/{s}/g,A+"").replace(/{SSS}/g,oi(h,3)).replace(/{S}/g,h+"")}function ptt(e,t,r,n,a){var i=null;if(Ze(r))i=r;else if(pt(r))i=r(e.value,t,{level:e.level});else{var o=Me({},kg);if(e.level>0)for(var s=0;s<yT.length;++s)o[yT[s]]="{primary|"+o[yT[s]]+"}";var l=r?r.inherit===!1?r:yt(r,o):o,u=wre(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=xre.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(Pe(i)){var d=e.level==null?0:e.level>=0?e.level:i.length+e.level;d=Math.min(d,i.length-1),i=i[d]}}return wy(new Date(e.value),i,a,n)}function wre(e,t){var r=Ki(e),n=r[ev(t)]()+1,a=r[S_(t)](),i=r[gm(t)](),o=r[__(t)](),s=r[B_(t)](),l=r[T_(t)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,A=f&&a===1,h=A&&n===1;return h?"year":A?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function CN(e,t,r){var n=cr(e)?Ki(e):e;switch(t=t||wre(e,r),t){case"year":return n[TL(r)]();case"half-year":return n[ev(r)]()>=6?1:0;case"quarter":return Math.floor((n[ev(r)]()+1)/4);case"month":return n[ev(r)]();case"day":return n[S_(r)]();case"half-day":return n[gm(r)]()/24;case"hour":return n[gm(r)]();case"minute":return n[__(r)]();case"second":return n[B_(r)]();case"millisecond":return n[T_(r)]()}}function TL(e){return e?"getUTCFullYear":"getFullYear"}function ev(e){return e?"getUTCMonth":"getMonth"}function S_(e){return e?"getUTCDate":"getDate"}function gm(e){return e?"getUTCHours":"getHours"}function __(e){return e?"getUTCMinutes":"getMinutes"}function B_(e){return e?"getUTCSeconds":"getSeconds"}function T_(e){return e?"getUTCMilliseconds":"getMilliseconds"}function gtt(e){return e?"setUTCFullYear":"setFullYear"}function Cre(e){return e?"setUTCMonth":"setMonth"}function Sre(e){return e?"setUTCDate":"setDate"}function _re(e){return e?"setUTCHours":"setHours"}function Bre(e){return e?"setUTCMinutes":"setMinutes"}function Tre(e){return e?"setUTCSeconds":"setSeconds"}function Ere(e){return e?"setUTCMilliseconds":"setMilliseconds"}function mtt(e,t,r,n,a,i,o,s){var l=new dr({style:{text:e,font:t,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function EL(e){if(!oL(e))return Ze(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function IL(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var wA=o_,ytt=/([&<>"'])/g,btt={"&":"&","<":"<",">":">",'"':""","'":"'"};function ci(e){return e==null?"":(e+"").replace(ytt,function(t,r){return btt[r]})}function hF(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&po(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ki(e):e;if(isNaN(+l)){if(s)return"-"}else return wy(l,n,r)}if(t==="ordinal")return Lw(e)?a(e):cr(e)&&i(e)?e+"":"-";var u=rl(e);return i(u)?EL(u):Lw(e)?a(e):typeof e=="boolean"?e+"":"-"}var SN=["a","b","c","d","e","f","g"],bT=function(e,t){return"{"+e+(t==null?"":t)+"}"};function RL(e,t,r){Pe(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=SN[i];e=e.replace(bT(o),bT(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(bT(SN[l],s),r?ci(u):u)}return e}function xtt(e,t,r){return z(t,function(n,a){e=e.replace("{"+a+"}",r?ci(n):n)}),e}function Ire(e,t){var r=Ze(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ci(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ci(n)+";"+(t||"")+'"></span>';var o=r.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 wtt(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
|
|
yyyy`);var n=Ki(t),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),c=n[a+"Seconds"](),d=n[a+"Milliseconds"]();return e=e.replace("MM",oi(o,2)).replace("M",o).replace("yyyy",i).replace("yy",oi(i%100+"",2)).replace("dd",oi(s,2)).replace("d",s).replace("hh",oi(l,2)).replace("h",l).replace("mm",oi(u,2)).replace("m",u).replace("ss",oi(c,2)).replace("s",c).replace("SSS",oi(d,3)),e}function Ctt(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Xf(e,t){return t=t||"transparent",Ze(e)?e:St(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Zw(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Ex=z,Rre=["left","right","top","bottom","width","height"],mf=[["width","left","right"],["height","top","bottom"]];function DL(e,t,r,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(),d=t.childAt(u+1),f=d&&d.getBoundingRect(),A,h;if(e==="horizontal"){var v=c.width+(f?-f.x+c.x:0);A=i+v,A>n||l.newline?(i=0,A=v,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var p=c.height+(f?-f.y+c.y:0);h=o+p,h>a||l.newline?(i+=s+r,o=0,h=p,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=A+r:o=h+r)})}var kf=DL;Lt(DL,"vertical");Lt(DL,"horizontal");function Stt(e,t,r){var n=t.width,a=t.height,i=Ye(e.left,n),o=Ye(e.top,a),s=Ye(e.right,n),l=Ye(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),r=wA(r||0),{width:Math.max(s-i-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function zn(e,t,r){r=wA(r||0);var n=t.width,a=t.height,i=Ye(e.left,n),o=Ye(e.top,a),s=Ye(e.right,n),l=Ye(e.bottom,a),u=Ye(e.width,n),c=Ye(e.height,a),d=r[2]+r[0],f=r[1]+r[3],A=e.aspect;switch(isNaN(u)&&(u=n-s-f-i),isNaN(c)&&(c=a-l-d-o),A!=null&&(isNaN(u)&&isNaN(c)&&(A>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=A*c),isNaN(c)&&(c=u/A)),isNaN(i)&&(i=n-s-u-f),isNaN(o)&&(o=a-l-c-d),e.left||e.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-f;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-r[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=n-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var h=new Kt(i+r[3],o+r[0],u,c);return h.margin=r,h}function E_(e,t,r,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||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Kt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=zn(yt({width:u.width,height:u.height},t),r,n),f=o?d.x-u.x:0,A=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=A):(i.x+=f,i.y+=A),i===e&&e.markRedraw(),!0}function _tt(e,t){return e[mf[t][0]]!=null||e[mf[t][1]]!=null&&e[mf[t][2]]!=null}function mm(e){var t=e.layoutMode||e.constructor.layoutMode;return St(t)?t:t?{type:t}:null}function Nc(e,t,r){var n=r&&r.ignoreSize;!Pe(n)&&(n=[n,n]);var a=o(mf[0],0),i=o(mf[1],1);u(mf[0],e,a),u(mf[1],e,i);function o(c,d){var f={},A=0,h={},v=0,p=2;if(Ex(c,function(y){h[y]=e[y]}),Ex(c,function(y){s(t,y)&&(f[y]=h[y]=t[y]),l(f,y)&&A++,l(h,y)&&v++}),n[d])return l(t,c[1])?h[c[2]]=null:l(t,c[2])&&(h[c[1]]=null),h;if(v===p||!A)return h;if(A>=p)return f;for(var g=0;g<c.length;g++){var m=c[g];if(!s(f,m)&&s(e,m)){f[m]=e[m];break}}return f}function s(c,d){return c.hasOwnProperty(d)}function l(c,d){return c[d]!=null&&c[d]!=="auto"}function u(c,d,f){Ex(c,function(A){d[A]=f[A]})}}function fp(e){return Dre({},e)}function Dre(e,t){return t&&e&&Ex(Rre,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Btt=hr(),Ap=function(e){xe(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=dp("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=mm(this),i=a?fp(r):{},o=n.getTheme();Ut(r,o.get(this.mainType)),Ut(r,this.getDefaultOption()),a&&Nc(r,i,a)},t.prototype.mergeOption=function(r,n){Ut(this.option,r,!0);var a=mm(this);a&&Nc(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!aJe(r))return r.defaultOption;var n=Btt(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Ut(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return vy(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Or);yte(Ap,Or);f_(Ap);ltt(Ap);utt(Ap,Ttt);function Ttt(e){var t=[];return z(Ap.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=$e(t,function(r){return Os(r).main}),e!=="dataset"&&Gt(t,"dataset")<=0&&t.unshift("dataset"),t}var ir=Ap,Fre="";typeof navigator!="undefined"&&(Fre=navigator.platform||"");var th="rgba(0, 0, 0, 0.2)",Ett={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:th,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:th,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:th,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:th,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:th,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:th,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Fre.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},Mre=At(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Mo="original",za="arrayRows",ko="objectRows",fl="keyedColumns",yc="typedArray",kre="unknown",Ys="column",hp="row",ga={Must:1,Might:2,Not:3},Pre=hr();function Itt(e){Pre(e).datasetMap=At()}function Lre(e,t,r){var n={},a=ML(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=Pre(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,d;e=e.slice(),z(e,function(v,p){var g=St(v)?v:e[p]={name:v};g.type==="ordinal"&&c==null&&(c=p,d=h(g)),n[g.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});z(e,function(v,p){var g=v.name,m=h(v);if(c==null){var y=f.valueWayDim;A(n[g],y,m),A(o,y,m),f.valueWayDim+=m}else if(c===p)A(n[g],0,m),A(i,0,m);else{var y=f.categoryWayDim;A(n[g],y,m),A(o,y,m),f.categoryWayDim+=m}});function A(v,p,g){for(var m=0;m<g;m++)v.push(p+m)}function h(v){var p=v.dimsDef;return p?p.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function FL(e,t,r){var n={},a=ML(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===ko||i===fl)&&z(o,function(c,d){(St(c)?c.name:c)==="name"&&(s=d)});var l=function(){for(var c={},d={},f=[],A=0,h=Math.min(5,r);A<h;A++){var v=$re(t.data,i,t.seriesLayoutBy,o,t.startIndex,A);f.push(v);var p=v===ga.Not;if(p&&c.v==null&&A!==s&&(c.v=A),(c.n==null||c.n===c.v||!p&&f[c.n]===ga.Not)&&(c.n=A),g(c)&&f[c.n]!==ga.Not)return c;p||(v===ga.Might&&d.v==null&&A!==s&&(d.v=A),(d.n==null||d.n===d.v)&&(d.n=A))}function g(m){return m.v!=null&&m.n!=null}return g(c)?c:g(d)?d:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function ML(e){var t=e.get("data",!0);if(!t)return vy(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Hn).models[0]}function Rtt(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:vy(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Hn).models}function Ore(e,t){return $re(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function $re(e,t,r,n,a,i){var o,s=5;if(yi(e))return ga.Not;var l,u;if(n){var c=n[i];St(c)?(l=c.name,u=c.type):Ze(c)&&(l=c)}if(u!=null)return u==="ordinal"?ga.Must:ga.Not;if(t===za){var d=e;if(r===hp){for(var f=d[i],A=0;A<(f||[]).length&&A<s;A++)if((o=b(f[a+A]))!=null)return o}else for(var A=0;A<d.length&&A<s;A++){var h=d[a+A];if(h&&(o=b(h[i]))!=null)return o}}else if(t===ko){var v=e;if(!l)return ga.Not;for(var A=0;A<v.length&&A<s;A++){var p=v[A];if(p&&(o=b(p[l]))!=null)return o}}else if(t===fl){var g=e;if(!l)return ga.Not;var f=g[l];if(!f||yi(f))return ga.Not;for(var A=0;A<f.length&&A<s;A++)if((o=b(f[A]))!=null)return o}else if(t===Mo)for(var m=e,A=0;A<m.length&&A<s;A++){var p=m[A],y=ap(p);if(!Pe(y))return ga.Not;if((o=b(y[i]))!=null)return o}function b(w){var x=Ze(w);if(w!=null&&isFinite(w)&&w!=="")return x?ga.Might:ga.Not;if(x&&w!=="-")return ga.Must}return ga.Not}var vF=At();function Dtt(e,t){Ha(vF.get(e)==null&&t),vF.set(e,t)}function Ftt(e,t,r){var n=vF.get(t);if(!n)return r;var a=n(e);return a?r.concat(a):r}var _N=hr(),Mtt=hr(),kL=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=$r(this.get("color",!0)),i=this.get("colorLayer",!0);return Ure(this,_N,a,i,t,r,n)},e.prototype.clearColorPalette=function(){Ptt(this,_N)},e}();function pF(e,t,r,n){var a=$r(e.get(["aria","decal","decals"]));return Ure(e,Mtt,a,null,t,r,n)}function ktt(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function Ure(e,t,r,n,a,i,o){i=i||e;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?r:ktt(n,o);if(c=c||r,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function Ptt(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var A1,Gp,BN,TN="\0_ec_inner",Ltt=1,Hre=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Or(i),this._locale=new Or(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){var i=RN(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,RN(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?BN(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&z(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=At(),u=n&&n.replaceMergeMainTypeMap;Itt(this),z(r,function(d,f){d!=null&&(ir.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Bt(d):Ut(a[f],d,!0))}),u&&u.each(function(d,f){ir.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),ir.topologicalTravel(s,ir.getAllClassMainTypes(),c,this);function c(d){var f=Ftt(this,d,$r(r[d])),A=i.get(d),h=A?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",v=hte(A,f,h);YZe(v,d,ir),a[d]=null,i.set(d,null),o.set(d,0);var p=[],g=[],m=0,y;z(v,function(b,w){var x=b.existing,S=b.newOption;if(!S)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var _=d==="series",B=ir.getClass(d,b.keyInfo.subType,!_);if(!B)return;if(d==="tooltip"){if(y)return;y=!0}if(x&&x.constructor===B)x.name=b.keyInfo.name,x.mergeOption(S,this),x.optionUpdated(S,!1);else{var T=Me({componentIndex:w},b.keyInfo);x=new B(S,this,this,T),Me(x,T),b.brandNew&&(x.__requireNewView=!0),x.init(S,this,this),x.optionUpdated(null,!0)}}x?(p.push(x.option),g.push(x),m++):(p.push(void 0),g.push(void 0))},this),a[d]=p,i.set(d,g),o.set(d,m),d==="series"&&A1(this)}this._seriesIndices||A1(this)},t.prototype.getOption=function(){var r=Bt(this.option);return z(r,function(n,a){if(ir.hasClass(a)){for(var i=$r(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!dm(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[TN],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],z($r(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=EN("id",i,s):o!=null?l=EN("name",o,s):l=Rr(s,function(u){return!!u}),IN(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):Rr(this._componentsMap.get(a),function(u){return!!u});return l(IN(o,r));function s(u){var c=a+"Index",d=a+"Id",f=a+"Name";return u&&(u[c]!=null||u[d]!=null||u[f]!=null)?{mainType:a,index:u[c],id:u[d],name:u[f]}:null}function l(u){return r.filter?Rr(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(pt(r)){var o=n,s=r;i.each(function(d,f){for(var A=0;d&&A<d.length;A++){var h=d[A];h&&s.call(o,f,h,h.componentIndex)}})}else for(var l=Ze(r)?i.get(r):St(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Kn(r,null);return Rr(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Rr(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Rr(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Gp(this),z(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){z(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){Gp(this),z(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return z(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return Gp(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Gp(this);var a=[];z(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=At(a)},t.prototype.restoreData=function(r){A1(this);var n=this._componentsMap,a=[];n.each(function(i,o){ir.hasClass(o)&&a.push(o)}),ir.topologicalTravel(a,ir.getAllClassMainTypes(),function(i){z(n.get(i),function(o){o&&(i!=="series"||!Ott(o,r))&&o.restoreData()})})},t.internalField=function(){A1=function(r){var n=r._seriesIndices=[];z(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=At(n)},Gp=function(r){},BN=function(r,n){r.option={},r.option[TN]=Ltt,r._componentsMap=At({series:[]}),r._componentsCount=At();var a=n.aria;St(a)&&a.enabled==null&&(a.enabled=!0),$tt(n,r._theme.option),Ut(n,Ett,!1),r._mergeOption(n,null)}}(),t}(Or);function Ott(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function $tt(e,t){var r=e.color&&!e.colorLayer;z(t,function(n,a){a==="colorLayer"&&r||ir.hasClass(a)||(typeof n=="object"?e[a]=e[a]?Ut(e[a],n,!1):Bt(n):e[a]==null&&(e[a]=n))})}function EN(e,t,r){if(Pe(t)){var n=At();return z(t,function(i){if(i!=null){var o=Kn(i,null);o!=null&&n.set(i,!0)}}),Rr(r,function(i){return i&&n.get(i[e])})}else{var a=Kn(t,null);return Rr(r,function(i){return i&&a!=null&&i[e]===a})}}function IN(e,t){return t.hasOwnProperty("subType")?Rr(e,function(r){return r&&r.subType===t.subType}):e}function RN(e){var t=At();return e&&z($r(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}xn(Hre,kL);var zre=Hre,Utt=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Htt=function(){function e(t){z(Utt,function(r){this[r]=tt(t[r],t)},this)}return e}(),Nre=Htt,xT={},ztt=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];z(xT,function(a,i){var o=a.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){z(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){xT[t]=r},e.get=function(t){return xT[t]},e}(),vp=ztt,Ntt=/^(min|max)?(.+)$/,Qtt=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(z($r(t.series),function(o){o&&o.data&&yi(o.data)&&nm(o.data)}),z($r(t.dataset),function(o){o&&o.source&&yi(o.source)&&nm(o.source)})),t=Bt(t);var a=this._optionBackup,i=Vtt(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Bt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=Bt(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)Wtt(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!Ktt(o,this._currentMediaIndices)&&(s=$e(o,function(c){return Bt(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function Vtt(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((d||c)&&(e.options=e.media=null),i=e),c&&Pe(u)&&z(u,function(A){A&&A.option&&(A.query?n.push(A):a||(a=A))}),f(i),z(l,function(A){return f(A)}),z(n,function(A){return f(A.option)});function f(A){z(t,function(h){h(A,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function Wtt(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return z(e,function(i,o){var s=o.match(Ntt);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Gtt(n[u],i,l)||(a=!1)}}),a}function Gtt(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Ktt(e,t){return e.join(",")===t.join(",")}var jtt=Qtt,$o=z,ym=St,DN=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function wT(e){var t=e&&e.itemStyle;if(!!t)for(var r=0,n=DN.length;r<n;r++){var a=DN[r],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?Ut(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?Ut(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function ka(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,yt(e[t],n)):e[t]=n),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function Pg(e){ka(e,"itemStyle"),ka(e,"lineStyle"),ka(e,"areaStyle"),ka(e,"label"),ka(e,"labelLine"),ka(e,"upperLabel"),ka(e,"edgeLabel")}function On(e,t){var r=ym(e)&&e[t],n=ym(r)&&r.textStyle;if(n)for(var a=0,i=Pz.length;a<i;a++){var o=Pz[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function io(e){e&&(Pg(e),On(e,"label"),e.emphasis&&On(e.emphasis,"label"))}function Ytt(e){if(!!ym(e)){wT(e),Pg(e),On(e,"label"),On(e,"upperLabel"),On(e,"edgeLabel"),e.emphasis&&(On(e.emphasis,"label"),On(e.emphasis,"upperLabel"),On(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(wT(t),io(t));var r=e.markLine;r&&(wT(r),io(r));var n=e.markArea;n&&io(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!yi(i))for(var o=0;o<i.length;o++)io(i[o]);z(e.categories,function(u){Pg(u)})}if(a&&!yi(a))for(var o=0;o<a.length;o++)io(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)io(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Pe(l[o])?(io(l[o][0]),io(l[o][1])):io(l[o]);e.type==="gauge"?(On(e,"axisLabel"),On(e,"title"),On(e,"detail")):e.type==="treemap"?(ka(e.breadcrumb,"itemStyle"),z(e.levels,function(u){Pg(u)})):e.type==="tree"&&Pg(e.leaves)}}function xl(e){return Pe(e)?e:e?[e]:[]}function FN(e){return(Pe(e)?e[0]:e)||{}}function Xtt(e,t){$o(xl(e.series),function(n){ym(n)&&Ytt(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),$o(r,function(n){$o(xl(e[n]),function(a){a&&(On(a,"axisLabel"),On(a.axisPointer,"label"))})}),$o(xl(e.parallel),function(n){var a=n&&n.parallelAxisDefault;On(a,"axisLabel"),On(a&&a.axisPointer,"label")}),$o(xl(e.calendar),function(n){ka(n,"itemStyle"),On(n,"dayLabel"),On(n,"monthLabel"),On(n,"yearLabel")}),$o(xl(e.radar),function(n){On(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),$o(xl(e.geo),function(n){ym(n)&&(io(n),$o(xl(n.regions),function(a){io(a)}))}),$o(xl(e.timeline),function(n){io(n),ka(n,"label"),ka(n,"itemStyle"),ka(n,"controlStyle",!0);var a=n.data;Pe(a)&&z(a,function(i){St(i)&&(ka(i,"label"),ka(i,"itemStyle"))})}),$o(xl(e.toolbox),function(n){ka(n,"iconStyle"),$o(n.feature,function(a){ka(a,"iconStyle")})}),On(FN(e.axisPointer),"label"),On(FN(e.tooltip).axisPointer,"label")}function qtt(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function Ztt(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=r)}function MN(e){e&&z(Jtt,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Jtt=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ert=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],CT=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Kp(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<CT.length;r++){var n=CT[r][1],a=CT[r][0];t[n]!=null&&(t[a]=t[n])}}function kN(e){!e||e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function PN(e){!e||e.downplay&&!e.blur&&(e.blur=e.downplay)}function trt(e){!e||e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function Qre(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&Qre(e[r].children,t)}function Vre(e,t){Xtt(e,t),e.series=$r(e.series),z(e.series,function(r){if(!!St(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),kN(r.label);var a=r.data;if(a&&!yi(a))for(var i=0;i<a.length;i++)kN(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=qtt(r,"pointer.color");o!=null&&Ztt(r,"itemStyle.color",o)}else if(n==="bar"){Kp(r),Kp(r.backgroundStyle),Kp(r.emphasis);var a=r.data;if(a&&!yi(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Kp(a[i]),Kp(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),PN(r),Qre(r.data,PN)}else n==="graph"||n==="sankey"?trt(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&yt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),MN(r)}}),e.dataRange&&(e.visualMap=e.dataRange),z(ert,function(r){var n=e[r];n&&(Pe(n)||(n=[n]),z(n,function(a){MN(a)}))})}function rrt(e){var t=At();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(nrt)}function nrt(e){z(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,d){var f=o.get(t.stackedDimension,d);if(isNaN(f))return a;var A,h;s?h=o.getRawIndex(d):A=o.get(t.stackedByDimension,d);for(var v=NaN,p=r-1;p>=0;p--){var g=e[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,A)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&f>=0&&m>0||l==="samesign"&&f<=0&&m<0){f=UZe(f,m),v=m;break}}}return n[0]=f,n[1]=v,n})})}var I_=function(){function e(t){this.data=t.data||(t.sourceFormat===fl?{}:[]),this.sourceFormat=t.sourceFormat||kre,this.seriesLayoutBy=t.seriesLayoutBy||Ys,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&Ore(this,n)===ga.Must&&(a.type="ordinal")}}return e}();function PL(e){return e instanceof I_}function gF(e,t,r){r=r||Wre(e);var n=t.seriesLayoutBy,a=irt(e,r,n,t.sourceHeader,t.dimensions),i=new I_({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Bt(t)});return i}function LL(e){return new I_({data:e,sourceFormat:yi(e)?yc:Mo})}function art(e){return new I_({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Bt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Wre(e){var t=kre;if(yi(e))t=yc;else if(Pe(e)){e.length===0&&(t=za);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(Pe(a)){t=za;break}else if(St(a)){t=ko;break}}}}else if(St(e)){for(var i in e)if(at(e,i)&&Sa(e[i])){t=fl;break}}return t}function irt(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:LN(a),startIndex:o,dimensionsDetectedCount:i};if(t===za){var s=e;n==="auto"||n==null?ON(function(u){u!=null&&u!=="-"&&(Ze(u)?o==null&&(o=1):o=0)},r,s,10):o=cr(n)?n:n?1:0,!a&&o===1&&(a=[],ON(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===hp?s.length:s[0]?s[0].length:null}else if(t===ko)a||(a=ort(e));else if(t===fl)a||(a=[],z(e,function(u,c){a.push(c)}));else if(t===Mo){var l=ap(e[0]);i=Pe(l)&&l.length||1}return{startIndex:o,dimensionsDefine:LN(a),dimensionsDetectedCount:i}}function ort(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r){var n=[];return z(r,function(a,i){n.push(i)}),n}}function LN(e){if(!!e){var t=At();return $e(e,function(r,n){r=St(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function ON(e,t,r,n){if(t===hp)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function Gre(e){var t=e.sourceFormat;return t===ko||t===fl}var Od,$d,Ud,$N,UN,Kre=function(){function e(t,r){var n=PL(t)?t:LL(t);this._source=n;var a=this._data=n.data;n.sourceFormat===yc&&(this._offset=0,this._dimSize=r,this._data=a),UN(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;UN=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,d=l.startIndex,f=l.dimensionsDefine,A=$N[OL(u,c)];if(Me(o,A),u===yc)o.getItem=r,o.count=a,o.fillStorage=n;else{var h=jre(u,c);o.getItem=tt(h,null,s,d,f);var v=Yre(u,c);o.count=tt(v,null,s,d,f)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,d=0;d<u;d++)s[d]=l[c+d];return s},n=function(o,s,l,u){for(var c=this._data,d=this._dimSize,f=0;f<d;f++){for(var A=u[f],h=A[0]==null?1/0:A[0],v=A[1]==null?-1/0:A[1],p=s-o,g=l[f],m=0;m<p;m++){var y=c[m*d+f];g[o+m]=y,y<h&&(h=y),y>v&&(v=y)}A[0]=h,A[1]=v}},a=function(){return this._data?this._data.length/this._dimSize:0};$N=(t={},t[za+"_"+Ys]={pure:!0,appendData:i},t[za+"_"+hp]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ko]={pure:!0,appendData:i},t[fl]={pure:!0,appendData:function(o){var s=this._data;z(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},t[Mo]={appendData:i},t[yc]={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<o.length;s++)this._data.push(o[s])}}(),e}(),HN=function(e,t,r,n){return e[n]},srt=(Od={},Od[za+"_"+Ys]=function(e,t,r,n){return e[n+t]},Od[za+"_"+hp]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Od[ko]=HN,Od[fl]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];i[o]=l?l[n]:null}return i},Od[Mo]=HN,Od);function jre(e,t){var r=srt[OL(e,t)];return r}var zN=function(e,t,r){return e.length},lrt=($d={},$d[za+"_"+Ys]=function(e,t,r){return Math.max(0,e.length-t)},$d[za+"_"+hp]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},$d[ko]=zN,$d[fl]=function(e,t,r){var n=r[0].name,a=e[n];return a?a.length:0},$d[Mo]=zN,$d);function Yre(e,t){var r=lrt[OL(e,t)];return r}var ST=function(e,t,r){return e[t]},urt=(Ud={},Ud[za]=ST,Ud[ko]=function(e,t,r){return e[r]},Ud[fl]=ST,Ud[Mo]=function(e,t,r){var n=ap(e);return n instanceof Array?n[t]:n},Ud[yc]=ST,Ud);function Xre(e){var t=urt[e];return t}function OL(e,t){return e===za?e+"_"+t:e}function Tv(e,t,r){if(!!e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return Xre(i)(n,o,s)}else{var l=n;return i===Mo&&(l=ap(n)),l}}}}var crt=/\{@(.+?)\}/g,$L=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,d=this.mainType,f=d==="series",A=n.userOutput&&n.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:c,dimensionNames:A?A.fullDimensions:null,encode:A?A.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&Pe(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(pt(i))return l.status=r,l.dimensionIndex=a,i(l);if(Ze(i)){var c=RL(i,l);return c.replace(crt,function(d,f){var A=f.length,h=f;h.charAt(0)==="["&&h.charAt(A-1)==="]"&&(h=+h.slice(1,A-1));var v=Tv(s,t,h);if(o&&Pe(o.interpolatedValue)){var p=s.getDimensionIndex(h);p>=0&&(v=o.interpolatedValue[p])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return Tv(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function NN(e){var t,r;return St(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function C0(e){return new drt(e)}var drt=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.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(m){return!(m>=1)&&(m=1),m}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(n)),this._modBy=l,this._modDataCount=u;var f=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var A=this._dueIndex,h=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(d||A<h)){var v=this._progress;if(Pe(v))for(var p=0;p<v.length;p++)this._doProgress(v[p],A,h,l,u);else this._doProgress(v,A,h,l,u)}this._dueIndex=h;var g=this._settedOutputEnd!=null?this._settedOutputEnd:h;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){QN.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:QN.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Pe(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),QN=function(){var e,t,r,n,a,i={reset:function(l,u,c,d){t=l,e=u,r=c,n=d,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}}();function bc(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!cr(e)&&e!=null&&e!=="-"&&(e=+Ki(e)),e==null||e===""?NaN:+e)}var frt=At({number:function(e){return parseFloat(e)},time:function(e){return+Ki(e)},trim:function(e){return Ze(e)?po(e):e}});function qre(e){return frt.get(e)}var Zre={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Art=function(){function e(t,r){if(!cr(r)){var n="";wr(n)}this._opFn=Zre[t],this._rvalFloat=rl(r)}return e.prototype.evaluate=function(t){return cr(t)?this._opFn(t,this._rvalFloat):this._opFn(rl(t),this._rvalFloat)},e}(),Jre=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=cr(t)?t:rl(t),a=cr(r)?r:rl(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Ze(t),l=Ze(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),hrt=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=rl(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=rl(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function vrt(e,t){return e==="eq"||e==="ne"?new hrt(e==="eq",t):at(Zre,e)?new Art(e,t):null}var prt=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return bc(t,r)},e}();function grt(e,t){var r=new prt,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Ys&&wr(o);var s=[],l={},u=e.dimensionsDefine;if(u)z(u,function(v,p){var g=v.name,m={index:p,name:g,displayName:v.displayName};if(s.push(m),g!=null){var y="";at(l,g)&&wr(y),l[g]=m}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var d=jre(a,Ys);t.__isBuiltIn&&(r.getRawDataItem=function(v){return d(n,i,s,v)},r.getRawData=tt(mrt,null,e)),r.cloneRawData=tt(yrt,null,e);var f=Yre(a,Ys);r.count=tt(f,null,n,i,s);var A=Xre(a);r.retrieveValue=function(v,p){var g=d(n,i,s,v);return h(g,p)};var h=r.retrieveValueFromItem=function(v,p){if(v!=null){var g=s[p];if(g)return A(v,p,g.name)}};return r.getDimensionInfo=tt(brt,null,s,l),r.cloneAllDimensionInfo=tt(xrt,null,s),r}function mrt(e){var t=e.sourceFormat;if(!UL(t)){var r="";wr(r)}return e.data}function yrt(e){var t=e.sourceFormat,r=e.data;if(!UL(t)){var n="";wr(n)}if(t===za){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===ko){for(var a=[],i=0,o=r.length;i<o;i++)a.push(Me({},r[i]));return a}}function brt(e,t,r){if(r!=null){if(cr(r)||!isNaN(r)&&!at(t,r))return e[r];if(at(t,r))return t[r]}}function xrt(e){return Bt(e)}var ene=At();function wrt(e){e=Bt(e);var t=e.type,r="";t||wr(r);var n=t.split(":");n.length!==2&&wr(r);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,ene.set(t,e)}function Crt(e,t,r){var n=$r(e),a=n.length,i="";a||wr(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=Srt(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Srt(e,t,r,n){var a="";t.length||wr(a),St(e)||wr(a);var i=e.type,o=ene.get(i);o||wr(a);var s=$e(t,function(u){return grt(u,o)}),l=$r(o.transform({upstream:s[0],upstreamList:s,config:Bt(e.config)}));return $e(l,function(u,c){var d="";St(u)||wr(d),u.data||wr(d);var f=Wre(u.data);UL(f)||wr(d);var A,h=t[0];if(h&&c===0&&!u.dimensions){var v=h.startIndex;v&&(u.data=h.data.slice(0,v).concat(u.data)),A={seriesLayoutBy:Ys,sourceHeader:v,dimensions:h.metaRawOption.dimensions}}else A={seriesLayoutBy:Ys,sourceHeader:0,dimensions:u.dimensions};return gF(u.data,A,null)})}function UL(e){return e===za||e===ko}var R_="undefined",_rt=typeof Uint32Array===R_?Array:Uint32Array,Brt=typeof Uint16Array===R_?Array:Uint16Array,tne=typeof Int32Array===R_?Array:Int32Array,VN=typeof Float64Array===R_?Array:Float64Array,rne={float:VN,int:tne,ordinal:Array,number:Array,time:VN},_T;function jp(e){return e>65535?_rt:Brt}function rh(){return[1/0,-1/0]}function Trt(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function WN(e,t,r,n,a){var i=rne[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new i(n)}var mF=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=At()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=_T[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Gre(a),this._dimensions=$e(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(t,i),this._chunks[i]=new rne[r||"float"](this._rawCount),this._rawExtent[i]=rh(),i},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=rh());for(var l=i[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<i;u++){var c=a[u];WN(n,u,c.type,l,!0)}for(var d=[],f=s;f<l;f++)for(var A=f-s,h=0;h<i;h++){var c=a[h],v=_T.arrayRows.call(this,t[A]||d,c.property,A,h);n[h][f]=v;var p=o[h];v<p[0]&&(p[0]=v),v>p[1]&&(p[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=$e(o,function(m){return m.property}),c=0;c<s;c++){var d=o[c];l[c]||(l[c]=rh()),WN(i,c,d.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,i,l);else for(var f=[],A=t;A<r;A++){f=a.getItem(A,f);for(var h=0;h<s;h++){var v=i[h],p=this._dimValueGetter(f,u[h],A,h);v[A]=p;var g=l[h];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<t)a=o+1;else if(r[o]>t)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,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,d=this.count();c<d;c++){var f=this.getRawIndex(c),A=r-i[f],h=Math.abs(A);h<=n&&((h<s||h===s&&A>=0&&l<0)&&(s=h,l=A,u=0),A===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=r[i]}else t=new n(r.buffer,0,a)}else{var n=jp(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=jp(n._rawCount),o=new i(a),s=[],l=t.length,u=0,c=t[0],d=n._chunks,f=0;f<a;f++){var A=void 0,h=n.getRawIndex(f);if(l===0)A=r(f);else if(l===1){var v=d[c][h];A=r(v,f)}else{for(var p=0;p<l;p++)s[p]=d[t[p]][h];s[p]=f,A=r.apply(null,s)}A&&(o[u++]=h)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=tr(t),i=a.length;if(!i)return this;var o=r.count(),s=jp(r._rawCount),l=new s(o),u=0,c=a[0],d=t[c][0],f=t[c][1],A=r._chunks,h=!1;if(!r._indices){var v=0;if(i===1){for(var p=A[a[0]],g=0;g<n;g++){var m=p[g];(m>=d&&m<=f||isNaN(m))&&(l[u++]=v),v++}h=!0}else if(i===2){for(var p=A[a[0]],y=A[a[1]],b=t[a[1]][0],w=t[a[1]][1],g=0;g<n;g++){var m=p[g],x=y[g];(m>=d&&m<=f||isNaN(m))&&(x>=b&&x<=w||isNaN(x))&&(l[u++]=v),v++}h=!0}}if(!h)if(i===1)for(var g=0;g<o;g++){var S=r.getRawIndex(g),m=A[a[0]][S];(m>=d&&m<=f||isNaN(m))&&(l[u++]=S)}else for(var g=0;g<o;g++){for(var _=!0,S=r.getRawIndex(g),B=0;B<i;B++){var T=a[B],m=A[T][S];(m<t[T][0]||m>t[T][1])&&(_=!1)}_&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,i=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=rh();for(var d=0;d<s;d++){for(var f=t.getRawIndex(d),A=0;A<o;A++)l[A]=a[r[A]][f];l[o]=d;var h=n&&n.apply(null,l);if(h!=null){typeof h!="object"&&(i[0]=h,h=i);for(var c=0;c<h.length;c++){var v=r[c],p=h[c],g=u[v],m=a[v];m&&(m[f]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,d,f,A=new(jp(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));A[s++]=u;for(var h=1;h<o-1;h+=l){for(var v=Math.min(h+l,o-1),p=Math.min(h+l*2,o),g=(p+v)/2,m=0,y=v;y<p;y++){var b=this.getRawIndex(y),w=i[b];isNaN(w)||(m+=w)}m/=p-v;var x=h,S=Math.min(h+l,o),_=h-1,B=i[u];c=-1,f=x;for(var T=-1,E=0,y=x;y<S;y++){var b=this.getRawIndex(y),w=i[b];if(isNaN(w)){E++,T<0&&(T=b);continue}d=Math.abs((_-g)*(w-B)-(_-y)*(m-B)),d>c&&(c=d,f=b)}E>0&&E<S-x&&(A[s++]=Math.min(T,f),f=Math.max(T,f)),A[s++]=f,u=f}return A[s++]=this.getRawIndex(o-1),n._count=s,n._indices=A,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),d=i._rawExtent[t]=rh(),f=new(jp(this._rawCount))(Math.ceil(c/l)),A=0,h=0;h<c;h+=l){l>c-h&&(l=c-h,s.length=l);for(var v=0;v<l;v++){var p=this.getRawIndex(h+v);s[v]=u[p]}var g=n(s),m=this.getRawIndex(Math.min(h+a(s,g)||0,c-1));u[m]=g,g<d[0]&&(d[0]=g),g>d[1]&&(d[1]=g),f[A++]=m}return i._count=A,i._indices=f,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(!!this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[t[0]][s],i);break;case 2:r(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=rh();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),d=r[c];d<s&&(s=d),d>l&&(l=d)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,i=t&&So(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?Trt(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Bt(this._extent),t._rawExtent=Bt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,a,i){return bc(r[i],this._dimensions[i])}_T={arrayRows:t,objectRows:function(r,n,a,i){return bc(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return bc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),e}(),nne=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(h1(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=yi(s)?yc:Mo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},A=Yt(d.seriesLayoutBy,f.seriesLayoutBy)||null,h=Yt(d.sourceHeader,f.sourceHeader),v=Yt(d.dimensions,f.dimensions),p=A!==f.seriesLayoutBy||!!h!=!!f.sourceHeader||v;a=p?[gF(s,{seriesLayoutBy:A,sourceHeader:h,dimensions:v},l)]:[]}else{var g=t;if(n){var m=this._applyTransform(r);a=m.sourceList,i=m.upstreamSignList}else{var y=g.get("source",!0);a=[gF(y,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&KN(i)}var o,s=[],l=[];return z(t,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&KN(d),s.push(c),l.push(u._getVersionSign())}),n?o=Crt(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[art(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];h1(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new mF,s.initData(new Kre(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(h1(t)){var r=ML(t);return r?[r.getSourceManager()]:[]}else return $e(Rtt(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(h1(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function GN(e){var t=e.option.transform;t&&nm(e.option.transform)}function h1(e){return e.mainType==="series"}function KN(e){throw new Error(e)}var ane="line-height:1";function ine(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,a=e.fontWeight||"400",i=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ci(n+"")+"px;color:"+ci(r)+";font-weight:"+ci(a+""),valueStyle:"font-size:"+ci(o+"")+"px;color:"+ci(i)+";font-weight:"+ci(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var Ert=[0,10,20,30],Irt=["",`
|
|
`,`
|
|
|
|
`,`
|
|
|
|
|
|
`];function aa(e,t){return t.type=e,t}function yF(e){return e.type==="section"}function one(e){return yF(e)?Rrt:Drt}function sne(e){if(yF(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return z(e.blocks,function(a){var i=sne(a);i>=t&&(t=i+ +(n&&(!i||yF(a)&&!a.noHeader)))}),t}return 0}function Rrt(e,t,r,n){var a=t.noHeader,i=Frt(sne(t)),o=[],s=t.blocks||[];Ha(!s||Pe(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(at(u,l)){var c=new Jre(u[l],null);s.sort(function(h,v){return c.evaluate(h.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}z(s,function(h,v){var p=t.valueFormatter,g=one(h)(p?Me(Me({},e),{valueFormatter:p}):e,h,v>0?i.html:0,n);g!=null&&o.push(g)});var d=e.renderMode==="richText"?o.join(i.richText):bF(o.join(""),a?r:i.html);if(a)return d;var f=hF(t.header,"ordinal",e.useUTC),A=ine(n,e.renderMode).nameStyle;return e.renderMode==="richText"?lne(e,f,A)+i.richText+d:bF('<div style="'+A+";"+ane+';">'+ci(f)+"</div>"+d,r)}function Drt(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=Pe(b)?b:[b],$e(b,function(w,x){return hF(w,Pe(A)?A[x]:A,u)})};if(!(i&&o)){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),f=i?"":hF(l,"ordinal",u),A=t.valueType,h=o?[]:c(t.value),v=!s||!i,p=!s&&i,g=ine(n,a),m=g.nameStyle,y=g.valueStyle;return a==="richText"?(s?"":d)+(i?"":lne(e,f,m))+(o?"":Prt(e,h,v,p,y)):bF((s?"":d)+(i?"":Mrt(f,!s,m))+(o?"":krt(h,v,p,y)),r)}}function jN(e,t,r,n,a,i){if(!!e){var o=one(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function Frt(e){return{html:Ert[e],richText:Irt[e]}}function bF(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+ane+';">'+e+r+"</div>"}function Mrt(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+ci(e)+"</span>"}function krt(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=Pe(e)?e:[e],'<span style="'+i+";"+n+'">'+$e(e,function(o){return ci(o)}).join(" ")+"</span>"}function lne(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Prt(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Pe(t)?t.join(" "):t,i)}function une(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Xf(n)}function cne(e,t){var r=e.get("padding");return r!=null?r:t==="richText"?[8,10]:10}var BT=function(){function e(){this.richTextStyles={},this._nextStyleNameId=cte()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=Ire({color:r,type:t,renderMode:n,markerId:a});return Ze(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Pe(r)?z(r,function(i){return Me(n,i)}):Me(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function dne(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=Pe(s),u=une(t,r),c,d,f,A;if(o>1||l&&!o){var h=Lrt(s,t,r,i,u);c=h.inlineValues,d=h.inlineValueTypes,f=h.blocks,A=h.inlineValues[0]}else if(o){var v=a.getDimensionInfo(i[0]);A=c=Tv(a,r,i[0]),d=v.type}else A=c=l?s[0]:s;var p=sL(t),g=p&&t.name||"",m=a.getName(r),y=n?g:m;return aa("section",{header:g,noHeader:n||!p,sortParam:A,blocks:[aa("nameValue",{markerType:"item",markerColor:u,name:y,noName:!po(y),value:c,valueType:d})].concat(f||[])})}function Lrt(e,t,r,n,a){var i=t.getData(),o=So(e,function(d,f,A){var h=i.getDimensionInfo(A);return d=d||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];n.length?z(n,function(d){c(Tv(i,r,d),d)}):z(e,c);function c(d,f){var A=i.getDimensionInfo(f);!A||A.otherDims.tooltip===!1||(o?u.push(aa("nameValue",{markerType:"subItem",markerColor:a,name:A.displayName,value:d,valueType:A.type})):(s.push(d),l.push(A.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Tu=hr();function v1(e,t){return e.getName(t)||e.getId(t)}var Ix="__universalTransitionEnabled",D_=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=C0({count:$rt,reset:Urt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=Tu(this).sourceManager=new nne(this);i.prepareSource();var o=this.getInitialData(r,a);XN(o,this),this.dataTask.context.data=o,Tu(this).dataBeforeProcessed=o,YN(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=mm(this),i=a?fp(r):{},o=this.subType;ir.hasClass(o)&&(o+="Series"),Ut(r,n.getTheme().get(this.subType)),Ut(r,this.getDefaultOption()),Gf(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Nc(r,i,a)},t.prototype.mergeOption=function(r,n){r=Ut(this.option,r,!0),this.fillDataTextStyle(r.data);var a=mm(this);a&&Nc(this.option,r,a);var i=Tu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);XN(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Tu(this).dataBeforeProcessed=o,YN(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!yi(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Gf(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=xF(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}else return Tu(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=xF(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}Tu(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return At(r)},t.prototype.getSourceManager=function(){return Tu(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Tu(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,a){return dne({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(vr.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=kL.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,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<r.length;s++){var l=r[s],u=v1(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=tr(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[v1(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ix])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,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"){St(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var d=n[c],f=v1(r,d);u[f]=!0,this._selectedDataIndicesMap[f]=r.getRawIndex(d)}}else if(s==="single"||s===!0){var A=n[l-1],f=v1(r,A);o.selectedMap=(a={},a[f]=!0,a),this._selectedDataIndicesMap=(i={},i[f]=r.getRawIndex(A),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return ir.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(ir);xn(D_,$L);xn(D_,kL);yte(D_,ir);function YN(e){var t=e.name;sL(e)||(e.name=Ort(e)||t)}function Ort(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return z(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function $rt(e){return e.model.getRawData().count()}function Urt(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Hrt}function Hrt(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function XN(e,t){z(am(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Lt(zrt,t))})}function zrt(e,t){var r=xF(e);return r&&r.setOutputEnd((t||this).count()),t}function xF(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}var Yr=D_,HL=function(){function e(){this.group=new It,this.uid=dp("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();uL(HL);f_(HL);var en=HL;function pp(){var e=hr();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var fne=hr(),Nrt=pp(),zL=function(){function e(){this.group=new It,this.uid=dp("viewChart"),this.renderTask=C0({plan:Qrt,reset:Vrt}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);!i||ZN(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);!i||ZN(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){sd(this.group,t)},e.markUpdateMethod=function(t,r){fne(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function qN(e,t,r){e&&hm(e)&&(t==="emphasis"?Jl:eu)(e,r)}function ZN(e,t,r){var n=Kf(e,t),a=t&&t.highlightKey!=null?het(t.highlightKey):null;n!=null?z($r(n),function(i){qN(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){qN(i,r,a)})}uL(zL);f_(zL);function Qrt(e){return Nrt(e.model)}function Vrt(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&fne(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),Wrt[l]}var Wrt={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ur=zL,Jw="\0__throttleOriginMethod",JN="\0__throttleRate",e8="\0__throttleType";function F_(e,t,r){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function d(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var f=function(){for(var A=[],h=0;h<arguments.length;h++)A[h]=arguments[h];n=new Date().getTime(),l=this,u=A;var v=c||t,p=c||r;c=null,s=n-(p?a:i)-v,clearTimeout(o),p?o=setTimeout(d,v):s>=0?d():o=setTimeout(d,-s),a=n};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(A){c=A},f}function gp(e,t,r,n){var a=e[t];if(!!a){var i=a[Jw]||a,o=a[e8],s=a[JN];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=F_(i,r,n==="debounce"),a[Jw]=i,a[e8]=n,a[JN]=r}return a}}function bm(e,t){var r=e[t];r&&r[Jw]&&(r.clear&&r.clear(),e[t]=r[Jw])}var t8=hr(),r8={itemStyle:jf(yre,!0),lineStyle:jf(mre,!0)},Grt={lineStyle:"stroke",itemStyle:"fill"};function Ane(e,t){var r=e.visualStyleMapper||r8[t];return r||(console.warn("Unkown style type '"+t+"'."),r8.itemStyle)}function hne(e,t){var r=e.visualDrawType||Grt[t];return r||(console.warn("Unkown style type '"+t+"'."),"fill")}var Krt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=Ane(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=hne(e,n),u=o[l],c=pt(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=f,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||pt(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||pt(o.stroke)?f:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(A,h){var v=e.getDataParams(h),p=Me({},o);p[l]=c(v),A.setItemVisual(h,"style",p)}}}},Yp=new Or,jrt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=Ane(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Yp.option=l[n];var u=a(Yp),c=o.ensureUniqueItemVisual(s,"style");Me(c,u),Yp.option.decal&&(o.setItemVisual(s,"decal",Yp.option.decal),Yp.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Yrt={performRawSeries:!0,overallReset:function(e){var t=At();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),t8(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=t8(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=hne(r,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),A=n.getName(u)||u+"",h=n.count();f[l]=r.getColorFromPalette(A,o,h)}})}})}},p1=Math.PI;function Xrt(e,t){t=t||{},yt(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 r=new It,n=new lr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new dr({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 lr({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new y_({shape:{startAngle:-p1/2,endAngle:-p1/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:p1*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:p1*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.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=e.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:e.getWidth(),height:e.getHeight()})},r.resize(),r}var qrt=function(){function e(t,r,n,a){this._stageTaskMap=At(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&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}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&r.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}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=At();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}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;z(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Ha(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;z(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var A,h=f.agentStubMap;h.each(function(p){s(a,p)&&(p.dirty(),A=!0)}),A&&f.dirty(),o.updatePayload(f,n);var v=o.getPerformArgs(f,a.block);h.each(function(p){p.perform(v)}),f.perform(v)&&(i=!0)}else d&&d.each(function(p,g){s(a,p)&&p.dirty();var m=o.getPerformArgs(p,a.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=At(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(d){var f=d.uid,A=s.set(f,o&&o.get(f)||C0({plan:rnt,reset:nnt,count:int}));A.context={model:d,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(d,A)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||C0({reset:Zrt});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=At(),u=t.seriesType,c=t.getTargetSeries,d=!0,f=!1,A="";Ha(!t.createOnAllSeries,A),u?n.eachRawSeriesByType(u,h):c?c(n,a).each(h):(d=!1,z(n.getSeries(),h));function h(v){var p=v.uid,g=l.set(p,s&&s.get(p)||(f=!0,C0({reset:Jrt,onDirty:tnt})));g.context={model:v,overallProgress:d},g.agent=o,g.__block=d,i._pipe(v,g)}f&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return pt(t)&&(t={overallReset:t,seriesType:ont(t)}),t.uid=dp("stageHandler"),r&&(t.visualType=r),t},e}();function Zrt(e){e.overallReset(e.ecModel,e.api,e.payload)}function Jrt(e){return e.overallProgress&&ent}function ent(){this.agent.dirty(),this.getDownstream().dirty()}function tnt(){this.agent&&this.agent.dirty()}function rnt(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function nnt(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=$r(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?$e(t,function(r,n){return vne(n)}):ant}var ant=vne(0);function vne(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function int(e){return e.data.count()}function ont(e){eC=null;try{e(xm,pne)}catch(t){}return eC}var xm={},pne={},eC;gne(xm,zre);gne(pne,Nre);xm.eachSeriesByType=xm.eachRawSeriesByType=function(e){eC=e};xm.eachComponent=function(e){e.mainType==="series"&&e.subType&&(eC=e.subType)};function gne(e,t){for(var r in t.prototype)e[r]=En}var mne=qrt,n8=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],snt={color:n8,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n8]},Va="#B9B8CE",a8="#100C2A",g1=function(){return{axisLine:{lineStyle:{color:Va}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},i8=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],yne={darkMode:!0,color:i8,backgroundColor:a8,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Va}},textStyle:{color:Va},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Va}},dataZoom:{borderColor:"#71708A",textStyle:{color:Va},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Va}},timeline:{lineStyle:{color:Va},label:{color:Va},controlStyle:{color:Va,borderColor:Va}},calendar:{itemStyle:{color:a8},dayLabel:{color:Va},monthLabel:{color:Va},yearLabel:{color:Va}},timeAxis:g1(),logAxis:g1(),valueAxis:g1(),categoryAxis:g1(),line:{symbol:"circle"},graph:{color:i8},gauge:{title:{color:Va},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Va},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};yne.categoryAxis.splitLine.show=!1;var lnt=yne,unt=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(Ze(t)){var i=Os(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};z(t,function(l,u){for(var c=!1,d=0;d<o.length;d++){var f=o[d],A=u.lastIndexOf(f);if(A>0&&A===u.length-f.length){var h=u.slice(0,A);h!=="data"&&(r.mainType=h,r[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){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=r.cptQuery,u=r.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,r.otherQuery,a,i));function c(d,f,A,h){return d[A]==null||f[h||A]===d[A]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),wF=["symbol","symbolSize","symbolRotate","symbolOffset"],o8=wF.concat(["symbolKeepAspect"]),cnt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<wF.length;o++){var s=wF[o],l=e.get(s);pt(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Me({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=tr(a);function c(d,f){for(var A=e.getRawValue(f),h=e.getDataParams(f),v=0;v<u.length;v++){var p=u[v];d.setItemVisual(f,p,a[p](A,h))}}return{dataEach:i?c:null}}},dnt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<o8.length;s++){var l=o8[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function NL(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function Cy(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function bne(e,t,r,n){switch(r){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function xne(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}z([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=Me({},a),o.dispatchAction(Me(a,{type:n[1],seriesIndex:r(i,a)}))})})}function nh(e,t,r,n,a){var i=e+t;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var d=o.getData(),f=Kf(d,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:Pe(f)?d.getName(f[0]):d.getName(f),selected:Ze(l)?l:Me({},l)})}})}function fnt(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(nh("map","selectchanged",t,a,n),nh("pie","selectchanged",t,a,n)):n.fromAction==="select"?(nh("map","selected",t,a,n),nh("pie","selected",t,a,n)):n.fromAction==="unselect"&&(nh("map","unselected",t,a,n),nh("pie","unselected",t,a,n))})}function Ph(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var Ant=Math.round(Math.random()*9),hnt=typeof Object.defineProperty=="function",vnt=function(){function e(){this._id="__ec_inner_"+Ant++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return hnt?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),pnt=vnt,gnt=qt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),mnt=qt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),ynt=qt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),f=Math.cos(u),A=o*.6,h=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-d*A,l+s+f*A,r,n-h,r,n),e.bezierCurveTo(r,n-h,r-c+d*A,l+s+f*A,r-c,l+s),e.closePath()}}),bnt=qt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),xnt={line:ta,rect:lr,roundRect:lr,square:lr,circle:cs,diamond:mnt,pin:ynt,arrow:bnt,triangle:gnt},wnt={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},tC={};z(xnt,function(e,t){tC[t]=new e});var Cnt=qt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Vw(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=tC[n];a||(n="rect",a=tC[n]),wnt[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function Snt(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Fn(e,t,r,n,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=yL(e.slice(8),new Kt(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=yy(e.slice(7),{},new Kt(t,r,n,a),o?"center":"cover"):l=new Cnt({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=Snt,i&&l.setColor(i),l}function Sy(e){return Pe(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function mp(e,t){if(e!=null)return Pe(e)||(e=[e,e]),[Ye(e[0],t[0])||0,Ye(Yt(e[1],e[0]),t[1])||0]}function yf(e){return isFinite(e)}function _nt(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=yf(n)?n:0,a=yf(a)?a:1,i=yf(i)?i:0,o=yf(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function Bnt(e,t,r){var n=r.width,a=r.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=yf(o)?o:.5,s=yf(s)?s:.5,l=l>=0&&yf(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function CF(e,t,r){for(var n=t.type==="radial"?Bnt(e,t,r):_nt(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function Tnt(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function m1(e){return parseInt(e,10)}function Lh(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||m1(s[n])||m1(e.style[n]))-(m1(s[i])||0)-(m1(s[o])||0)|0}function Ent(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:cr(e)?[e]:Pe(e)?e:null}function QL(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Ent(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=$e(r,function(i){return i/a}),n/=a)}return[r,n]}var Int=new nl(!0);function rC(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function s8(e){return typeof e=="string"&&e!=="none"}function nC(e){var t=e.fill;return t!=null&&t!=="none"}function l8(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 u8(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 SF(e,t,r){var n=cL(t.image,t.__image,r);if(A_(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*A0),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function Rnt(e,t,r,n){var a,i=rC(r),o=nC(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Int,d=t.__dirty;if(!n){var f=r.fill,A=r.stroke,h=o&&!!f.colorStops,v=i&&!!A.colorStops,p=o&&!!f.image,g=i&&!!A.image,m=void 0,y=void 0,b=void 0,w=void 0,x=void 0;(h||v)&&(x=t.getBoundingRect()),h&&(m=d?CF(e,f,x):t.__canvasFillGradient,t.__canvasFillGradient=m),v&&(y=d?CF(e,A,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),p&&(b=d||!t.__canvasFillPattern?SF(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),g&&(w=d||!t.__canvasStrokePattern?SF(e,A,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),h?e.fillStyle=m:p&&(b?e.fillStyle=b:o=!1),v?e.strokeStyle=y:g&&(w?e.strokeStyle=w:i=!1)}var S=t.getGlobalScale();c.setScale(S[0],S[1],t.segmentIgnoreThreshold);var _,B;e.setLineDash&&r.lineDash&&(a=QL(t),_=a[0],B=a[1]);var T=!0;(u||d&Bh)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),T=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(e,l?s:1),_&&(e.setLineDash(_),e.lineDashOffset=B),n||(r.strokeFirst?(i&&u8(e,r),o&&l8(e,r)):(o&&l8(e,r),i&&u8(e,r))),_&&e.setLineDash([])}function Dnt(e,t,r){var n=t.__image=cL(r.image,t.__image,t,t.onload);if(!(!n||!A_(n))){var a=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,d=o-u,f=s-c;e.drawImage(n,u,c,d,f,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function Fnt(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||Uc,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=QL(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(rC(r)&&e.strokeText(a,r.x,r.y),nC(r)&&e.fillText(a,r.x,r.y)):(nC(r)&&e.fillText(a,r.x,r.y),rC(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var c8=["shadowBlur","shadowOffsetX","shadowOffsetY"],d8=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function wne(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){hi(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Ff.opacity:o}(n||t.blend!==r.blend)&&(i||(hi(e,a),i=!0),e.globalCompositeOperation=t.blend||Ff.blend);for(var s=0;s<c8.length;s++){var l=c8[s];(n||t[l]!==r[l])&&(i||(hi(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(hi(e,a),i=!0),e.shadowColor=t.shadowColor||Ff.shadowColor),i}function f8(e,t,r,n,a){var i=wm(t,a.inHover),o=n?null:r&&wm(r,a.inHover)||{};if(i===o)return!1;var s=wne(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(hi(e,a),s=!0),s8(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(hi(e,a),s=!0),s8(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(hi(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(hi(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<d8.length;c++){var d=d8[c],f=d[0];(n||i[f]!==o[f])&&(s||(hi(e,a),s=!0),e[f]=i[f]||d[1])}return s}function Mnt(e,t,r,n,a){return wne(e,wm(t,a.inHover),r&&wm(r,a.inHover),n,a)}function Cne(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function knt(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),Cne(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function Pnt(e,t){return e&&t?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&&!t)}var A8=1,h8=2,v8=3,p8=4;function Lnt(e){var t=nC(e),r=rC(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function hi(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function wm(e,t){return t&&e.__hoverStyle||e.style}function VL(e,t){bf(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function bf(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Mi,t.__isRendered=!1;return}var i=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||Tnt(i,o))&&(o&&o.length&&(hi(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(hi(e,r),e.save(),knt(i,e,r),s=!0),r.prevElClipPaths=i),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof qt&&t.autoBatch&&Lnt(t.style);s||Pnt(a,u.transform)?(hi(e,r),Cne(e,t)):c||hi(e,r);var d=wm(t,r.inHover);t instanceof qt?(r.lastDrawType!==A8&&(l=!0,r.lastDrawType=A8),f8(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),Rnt(e,t,d,c),c&&(r.batchFill=d.fill||"",r.batchStroke=d.stroke||"")):t instanceof fm?(r.lastDrawType!==v8&&(l=!0,r.lastDrawType=v8),f8(e,t,u,l,r),Fnt(e,t,d)):t instanceof Aa?(r.lastDrawType!==h8&&(l=!0,r.lastDrawType=h8),Mnt(e,t,u,l,r),Dnt(e,t,d)):t.getTemporalDisplayables&&(r.lastDrawType!==p8&&(l=!0,r.lastDrawType=p8),Ont(e,t,r)),c&&n&&hi(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Ont(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),bf(e,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),bf(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var TT=new pnt,g8=new fy(100),m8=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ev(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&TT.delete(e);var i=TT.get(e);if(i)return i;var o=yt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,TT.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],d=!0,f=0;f<m8.length;++f){var A=o[m8[f]];if(A!=null&&!Pe(A)&&!Ze(A)&&!cr(A)&&typeof A!="boolean"){d=!1;break}c.push(A)}var h;if(d){h=c.join(",")+(a?"-svg":"");var v=g8.get(h);v&&(a?u.svgElement=v:u.image=v)}var p=_ne(o.dashArrayX),g=$nt(o.dashArrayY),m=Sne(o.symbol),y=Unt(p),b=Bne(g),w=!a&&ss.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},S=B(),_;w&&(w.width=S.width*r,w.height=S.height*r,_=w.getContext("2d")),T(),d&&g8.put(h,w||x),u.image=w,u.svgElement=x,u.svgWidth=S.width,u.svgHeight=S.height;function B(){for(var E=1,I=0,R=y.length;I<R;++I)E=Mz(E,y[I]);for(var D=1,I=0,R=m.length;I<R;++I)D=Mz(D,m[I].length);E*=D;var k=b*y.length*m.length;return{width:Math.max(1,Math.min(E,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function T(){_&&(_.clearRect(0,0,w.width,w.height),o.backgroundColor&&(_.fillStyle=o.backgroundColor,_.fillRect(0,0,w.width,w.height)));for(var E=0,I=0;I<g.length;++I)E+=g[I];if(E<=0)return;for(var R=-b,D=0,k=0,F=0;R<S.height;){if(D%2===0){for(var P=k/2%m.length,O=0,H=0,V=0;O<S.width*2;){for(var W=0,I=0;I<p[F].length;++I)W+=p[F][I];if(W<=0)break;if(H%2===0){var Z=(1-o.symbolSize)*.5,ee=O+p[F][H]*Z,ae=R+g[D]*Z,ne=p[F][H]*o.symbolSize,le=g[D]*o.symbolSize,se=V/2%m[P].length;ce(ee,ae,ne,le,m[P][se])}O+=p[F][H],++V,++H,H===p[F].length&&(H=0)}++F,F===p.length&&(F=0)}R+=g[D],++k,++D,D===g.length&&(D=0)}function ce(ye,fe,Q,J,U){var K=a?1:r,q=Fn(U,ye*K,fe*K,Q*K,J*K,o.color,o.symbolKeepAspect);if(a){var ie=n.painter.renderOneToVNode(q);ie&&x.children.push(ie)}else VL(_,q)}}}}function Sne(e){if(!e||e.length===0)return[["rect"]];if(Ze(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Ze(e[r])){t=!1;break}if(t)return Sne([e]);for(var n=[],r=0;r<e.length;++r)Ze(e[r])?n.push([e[r]]):n.push(e[r]);return n}function _ne(e){if(!e||e.length===0)return[[0,0]];if(cr(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!cr(e[n])){r=!1;break}if(r)return _ne([e]);for(var a=[],n=0;n<e.length;++n)if(cr(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=$e(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function $nt(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(cr(e)){var t=Math.ceil(e);return[t,t]}var r=$e(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function Unt(e){return $e(e,function(t){return Bne(t)})}function Bne(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function Hnt(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Ev(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Ev(a,t)}}})}var znt=new Do,Qo=znt,Tne={};function Nnt(e,t){Tne[e]=t}function Ene(e){return Tne[e]}var Qnt=typeof window!="undefined",Vnt="5.3.3",Wnt={zrender:"5.3.2"},Gnt=1,Knt=800,jnt=900,Ynt=1e3,Xnt=2e3,qnt=5e3,Ine=1e3,Znt=1100,WL=2e3,Rne=3e3,Jnt=4e3,M_=4500,eat=4600,tat=5e3,rat=6e3,Dne=7e3,Fne={PROCESSOR:{FILTER:Ynt,SERIES_FILTER:Knt,STATISTIC:qnt},VISUAL:{LAYOUT:Ine,PROGRESSIVE_LAYOUT:Znt,GLOBAL:WL,CHART:Rne,POST_CHART_LAYOUT:eat,COMPONENT:Jnt,BRUSH:tat,CHART_ITEM:M_,ARIA:rat,DECAL:Dne}},Da="__flagInMainProcess",ni="__pendingUpdate",ET="__needsUpdateStatus",y8=/^[a-zA-Z0-9_]+$/,IT="__connectUpdateStatus",b8=0,nat=1,aat=2;function Mne(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return Pne(this,e,t)}}function kne(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Pne(this,e,t)}}function Pne(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Do.prototype[t].apply(e,r)}var Lne=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Do),One=Lne.prototype;One.on=kne("on");One.off=kne("off");var ah,RT,y1,Eu,DT,FT,MT,Xp,qp,x8,w8,kT,C8,b1,S8,$ne,qi,_8,aC=function(e){xe(t,e);function t(r,n,a){var i=e.call(this,new unt)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},Ze(n)&&(n=Une[n]),i._dom=r;var o="canvas",s=!1,l=i._zr=ZD(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:a.useDirtyRect==null?s:a.useDirtyRect});i._ssr=a.ssr,i._throttledZrFlush=F_(tt(l.flush,l),17),n=Bt(n),n&&Vre(n,!0),i._theme=n,i._locale=ftt(a.locale||bre),i._coordSysMgr=new vp;var u=i._api=S8(i);function c(d,f){return d.__prio-f.__prio}return px(oC,c),px(_F,c),i._scheduler=new mne(i,u,_F,oC),i._messageCenter=new Lne,i._initEvents(),i.resize=tt(i.resize,i),l.animation.on("frame",i._onframe,i),x8(l,i),w8(l,i),nm(i),i}return t.prototype._onframe=function(){if(!this._disposed){_8(this);var r=this._scheduler;if(this[ni]){var n=this[ni].silent;this[Da]=!0;try{ah(this),Eu.update.call(this,null,this[ni].updateParams)}catch(l){throw this[Da]=!1,this[ni]=null,l}this._zr.flush(),this[Da]=!1,this[ni]=null,Xp.call(this,n),qp.call(this,n)}else if(r.unfinished){var a=Gnt,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),FT(this,i),r.performVisualTasks(i),b1(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.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(r,n,a){if(!this[Da]){if(this._disposed){this.id;return}var i,o,s;if(St(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Da]=!0,!this._model||n){var l=new jtt(this._api),u=this._theme,c=this._model=new zre;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},BF);var d={seriesTransition:s,optionChanged:!0};if(a)this[ni]={silent:i,updateParams:d},this[Da]=!1,this.getZr().wakeUp();else{try{ah(this),Eu.update.call(this,null,d)}catch(f){throw this[ni]=null,this[Da]=!1,f}this._ssr||this._zr.flush(),this[ni]=null,this[Da]=!1,Xp.call(this,i),qp.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||Qnt&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!vr.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return z(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;z(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(r).toDataURL("image/"+(r&&r.type||"png"));return z(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(sC[a]){var l=s,u=s,c=-s,d=-s,f=[],A=r&&r.pixelRatio||this.getDevicePixelRatio();z(Pf,function(y,b){if(y.group===a){var w=n?y.getZr().painter.getSvgDom().innerHTML:y.renderToCanvas(Bt(r)),x=y.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),c=o(x.right,c),d=o(x.bottom,d),f.push({dom:w,left:x.left,top:x.top})}}),l*=A,u*=A,c*=A,d*=A;var h=c-l,v=d-u,p=ss.createCanvas(),g=ZD(p,{renderer:n?"svg":"canvas"});if(g.resize({width:h,height:v}),n){var m="";return z(f,function(y){var b=y.left-l,w=y.top-u;m+='<g transform="translate('+b+","+w+')">'+y.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new lr({shape:{x:0,y:0,width:h,height:v},style:{fill:r.connectedBackgroundColor}})),z(f,function(y){var b=new Aa({style:{x:y.left*A-l,y:y.top*A-u,image:y.dom}});g.add(b)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return DT(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return DT(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=m0(a,r);return z(o,function(s,l){l.indexOf("Models")>=0&&z(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=m0(a,r,{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?NL(s,l,n):Cy(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;z(iat,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&Ph(s,function(h){var v=kt(h);if(v&&v.dataIndex!=null){var p=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=p&&p.getDataParams(v.dataIndex,v.dataType)||{},!0}else if(v.eventData)return l=Me({},v.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),A=f&&r[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:A},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),z(S0,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),z(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),fnt(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 r=this.getDom();r&&pte(this.getDom(),KL,"");var n=this,a=n._api,i=n._model;z(n._componentsViews,function(o){o.dispose(i,a)}),z(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 Pf[n.id]},t.prototype.resize=function(r){if(!this[Da]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[ni]&&(i==null&&(i=this[ni].silent),a=!0,this[ni]=null),this[Da]=!0;try{a&&ah(this),Eu.update.call(this,{type:"resize",animation:Me({duration:0},r&&r.animation)})}catch(o){throw this[Da]=!1,o}this[Da]=!1,Xp.call(this,i),qp.call(this,i)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(St(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!TF[r]){var a=TF[r](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(r){var n=Me({},r);return n.type=S0[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(St(n)||(n={silent:!!n}),!!iC[r.type]&&!!this._model){if(this[Da]){this._pendingActions.push(r);return}var a=n.silent;MT.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&vr.browser.weChat&&this._throttledZrFlush(),Xp.call(this,a),qp.call(this,a)}},t.prototype.updateLabelLayout=function(){Qo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ah=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),RT(d,!0),RT(d,!1),f.plan()},RT=function(d,f){for(var A=d._model,h=d._scheduler,v=f?d._componentsViews:d._chartsViews,p=f?d._componentsMap:d._chartsMap,g=d._zr,m=d._api,y=0;y<v.length;y++)v[y].__alive=!1;f?A.eachComponent(function(x,S){x!=="series"&&b(S)}):A.eachSeries(b);function b(x){var S=x.__requireNewView;x.__requireNewView=!1;var _="_ec_"+x.id+"_"+x.type,B=!S&&p[_];if(!B){var T=Os(x.type),E=f?en.getClass(T.main,T.sub):Ur.getClass(T.sub);B=new E,B.init(A,m),p[_]=B,v.push(B),g.add(B.group)}x.__viewId=B.__id=_,B.__alive=!0,B.__model=x,B.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!f&&h.prepareView(B,x,A,m)}for(var y=0;y<v.length;){var w=v[y];w.__alive?y++:(!f&&w.renderTask.dispose(),g.remove(w.group),w.dispose(A,m),v.splice(y,1),p[w.__id]===w&&delete p[w.__id],w.__id=w.group.__ecComponentInfo=null)}},y1=function(d,f,A,h,v){var p=d._model;if(p.setUpdatePayload(A),!h){z([].concat(d._componentsViews).concat(d._chartsViews),w);return}var g={};g[h+"Id"]=A[h+"Id"],g[h+"Index"]=A[h+"Index"],g[h+"Name"]=A[h+"Name"];var m={mainType:h,query:g};v&&(m.subType=v);var y=A.excludeSeriesId,b;y!=null&&(b=At(),z($r(y),function(x){var S=Kn(x,null);S!=null&&b.set(S,!0)})),p&&p.eachComponent(m,function(x){var S=b&&b.get(x.id)!==null;if(!S)if(sN(A))if(x instanceof Yr)A.type===Mf&&!A.notBlur&&!x.get(["emphasis","disabled"])&&iet(x,A,d._api);else{var _=vL(x.mainType,x.componentIndex,A.name,d._api),B=_.focusSelf,T=_.dispatchers;A.type===Mf&&B&&!A.notBlur&&sF(x.mainType,x.componentIndex,d._api),T&&z(T,function(E){A.type===Mf?Jl(E):eu(E)})}else uF(A)&&x instanceof Yr&&(uet(x,A,d._api),iN(x),qi(d))},d),p&&p.eachComponent(m,function(x){var S=b&&b.get(x.id)!==null;S||w(d[h==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},d);function w(x){x&&x.__alive&&x[f]&&x[f](x.__model,p,d._api,A)}},Eu={prepareAndUpdate:function(d){ah(this),Eu.update.call(this,d,{optionChanged:d.newOption!=null})},update:function(d,f){var A=this._model,h=this._api,v=this._zr,p=this._coordSysMgr,g=this._scheduler;if(!!A){A.setUpdatePayload(d),g.restoreData(A,d),g.performSeriesTasks(A),p.create(A,h),g.performDataProcessorTasks(A,d),FT(this,A),p.update(A,h),r(A),g.performVisualTasks(A,d),kT(this,A,h,d,f);var m=A.get("backgroundColor")||"transparent",y=A.get("darkMode");v.setBackgroundColor(m),y!=null&&y!=="auto"&&v.setDarkMode(y),Qo.trigger("afterupdate",A,h)}},updateTransform:function(d){var f=this,A=this._model,h=this._api;if(!!A){A.setUpdatePayload(d);var v=[];A.eachComponent(function(g,m){if(g!=="series"){var y=f.getViewOfComponentModel(m);if(y&&y.__alive)if(y.updateTransform){var b=y.updateTransform(m,A,h,d);b&&b.update&&v.push(y)}else v.push(y)}});var p=At();A.eachSeries(function(g){var m=f._chartsMap[g.__viewId];if(m.updateTransform){var y=m.updateTransform(g,A,h,d);y&&y.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),r(A),this._scheduler.performVisualTasks(A,d,{setDirty:!0,dirtyMap:p}),b1(this,A,h,d,{},p),Qo.trigger("afterupdate",A,h)}},updateView:function(d){var f=this._model;!f||(f.setUpdatePayload(d),Ur.markUpdateMethod(d,"updateView"),r(f),this._scheduler.performVisualTasks(f,d,{setDirty:!0}),kT(this,f,this._api,d,{}),Qo.trigger("afterupdate",f,this._api))},updateVisual:function(d){var f=this,A=this._model;!A||(A.setUpdatePayload(d),A.eachSeries(function(h){h.getData().clearAllVisual()}),Ur.markUpdateMethod(d,"updateVisual"),r(A),this._scheduler.performVisualTasks(A,d,{visualType:"visual",setDirty:!0}),A.eachComponent(function(h,v){if(h!=="series"){var p=f.getViewOfComponentModel(v);p&&p.__alive&&p.updateVisual(v,A,f._api,d)}}),A.eachSeries(function(h){var v=f._chartsMap[h.__viewId];v.updateVisual(h,A,f._api,d)}),Qo.trigger("afterupdate",A,this._api))},updateLayout:function(d){Eu.update.call(this,d)}},DT=function(d,f,A,h){if(d._disposed){d.id;return}for(var v=d._model,p=d._coordSysMgr.getCoordinateSystems(),g,m=m0(v,A),y=0;y<p.length;y++){var b=p[y];if(b[f]&&(g=b[f](v,m,h))!=null)return g}},FT=function(d,f){var A=d._chartsMap,h=d._scheduler;f.eachSeries(function(v){h.updateStreamModes(v,A[v.__viewId])})},MT=function(d,f){var A=this,h=this.getModel(),v=d.type,p=d.escapeConnect,g=iC[v],m=g.actionInfo,y=(m.update||"update").split(":"),b=y.pop(),w=y[0]!=null&&Os(y[0]);this[Da]=!0;var x=[d],S=!1;d.batch&&(S=!0,x=$e(d.batch,function(D){return D=yt(Me({},D),d),D.batch=null,D}));var _=[],B,T=uF(d),E=sN(d);if(E&&Qte(this._api),z(x,function(D){if(B=g.action(D,A._model,A._api),B=B||Me({},D),B.type=m.event||B.type,_.push(B),E){var k=lL(d),F=k.queryOptionMap,P=k.mainTypeSpecified,O=P?F.keys()[0]:"series";y1(A,b,D,O),qi(A)}else T?(y1(A,b,D,"series"),qi(A)):w&&y1(A,b,D,w.main,w.sub)}),b!=="none"&&!E&&!T&&!w)try{this[ni]?(ah(this),Eu.update.call(this,d),this[ni]=null):Eu[b].call(this,d)}catch(D){throw this[Da]=!1,D}if(S?B={type:m.event||v,escapeConnect:p,batch:_}:B=_[0],this[Da]=!1,!f){var I=this._messageCenter;if(I.trigger(B.type,B),T){var R={type:"selectchanged",escapeConnect:p,selected:cet(h),isFromClick:d.isFromClick||!1,fromAction:d.type,fromActionPayload:d};I.trigger(R.type,R)}}},Xp=function(d){for(var f=this._pendingActions;f.length;){var A=f.shift();MT.call(this,A,d)}},qp=function(d){!d&&this.trigger("updated")},x8=function(d,f){d.on("rendered",function(A){f.trigger("rendered",A),d.animation.isFinished()&&!f[ni]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},w8=function(d,f){d.on("mouseover",function(A){var h=A.target,v=Ph(h,hm);v&&(oet(v,A,f._api),qi(f))}).on("mouseout",function(A){var h=A.target,v=Ph(h,hm);v&&(set(v,A,f._api),qi(f))}).on("click",function(A){var h=A.target,v=Ph(h,function(m){return kt(m).dataIndex!=null},!0);if(v){var p=v.selected?"unselect":"select",g=kt(v);f._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function r(d){d.clearColorPalette(),d.eachSeries(function(f){f.clearColorPalette()})}function n(d){var f=[],A=[],h=!1;if(d.eachComponent(function(m,y){var b=y.get("zlevel")||0,w=y.get("z")||0,x=y.getZLevelKey();h=h||!!x,(m==="series"?A:f).push({zlevel:b,z:w,idx:y.componentIndex,type:m,key:x})}),h){var v=f.concat(A),p,g;px(v,function(m,y){return m.zlevel===y.zlevel?m.z-y.z:m.zlevel-y.zlevel}),z(v,function(m){var y=d.getComponent(m.type,m.idx),b=m.zlevel,w=m.key;p!=null&&(b=Math.max(p,b)),w?(b===p&&w!==g&&b++,g=w):g&&(b===p&&b++,g=""),p=b,y.setZLevel(b)})}}kT=function(d,f,A,h,v){n(f),C8(d,f,A,h,v),z(d._chartsViews,function(p){p.__alive=!1}),b1(d,f,A,h,v),z(d._chartsViews,function(p){p.__alive||p.remove(f,A)})},C8=function(d,f,A,h,v,p){z(p||d._componentsViews,function(g){var m=g.__model;u(m,g),g.render(m,f,A,h),s(m,g),c(m,g)})},b1=function(d,f,A,h,v,p){var g=d._scheduler;v=Me(v||{},{updatedSeries:f.getSeries()}),Qo.trigger("series:beforeupdate",f,A,v);var m=!1;f.eachSeries(function(y){var b=d._chartsMap[y.__viewId];b.__alive=!0;var w=b.renderTask;g.updatePayload(w,h),u(y,b),p&&p.get(y.uid)&&w.dirty(),w.perform(g.getPerformArgs(w))&&(m=!0),b.group.silent=!!y.get("silent"),o(y,b),iN(y)}),g.unfinished=m||g.unfinished,Qo.trigger("series:layoutlabels",f,A,v),Qo.trigger("series:transition",f,A,v),f.eachSeries(function(y){var b=d._chartsMap[y.__viewId];s(y,b),c(y,b)}),i(d,f),Qo.trigger("series:afterupdate",f,A,v)},qi=function(d){d[ET]=!0,d.getZr().wakeUp()},_8=function(d){!d[ET]||(d.getZr().storage.traverse(function(f){Zh(f)||a(f)}),d[ET]=!1)};function a(d){for(var f=[],A=d.currentStates,h=0;h<A.length;h++){var v=A[h];v==="emphasis"||v==="blur"||v==="select"||f.push(v)}d.selected&&d.states.select&&f.push("select"),d.hoverState===p_&&d.states.emphasis?f.push("emphasis"):d.hoverState===py&&d.states.blur&&f.push("blur"),d.useStates(f)}function i(d,f){var A=d._zr,h=A.storage,v=0;h.traverse(function(p){p.isGroup||v++}),v>f.get("hoverLayerThreshold")&&!vr.node&&!vr.worker&&f.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=d._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var A=d.get("blendMode")||null;f.eachRendered(function(h){h.isGroup||(h.style.blend=A)})}function s(d,f){if(!d.preventAutoZ){var A=d.get("z")||0,h=d.get("zlevel")||0;f.eachRendered(function(v){return l(v,A,h,-1/0),!0})}}function l(d,f,A,h){var v=d.getTextContent(),p=d.getTextGuideLine(),g=d.isGroup;if(g)for(var m=d.childrenRef(),y=0;y<m.length;y++)h=Math.max(l(m[y],f,A,h),h);else d.z=f,d.zlevel=A,h=Math.max(d.z2,h);if(v&&(v.z=f,v.zlevel=A,isFinite(h)&&(v.z2=h+2)),p){var b=d.textGuideLineConfig;p.z=f,p.zlevel=A,isFinite(h)&&(p.z2=h+(b&&b.showAbove?1:-1))}return h}function u(d,f){f.eachRendered(function(A){if(!Zh(A)){var h=A.getTextContent(),v=A.getTextGuideLine();A.stateTransition&&(A.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),A.hasState()?(A.prevStates=A.currentStates,A.clearStates()):A.prevStates&&(A.prevStates=null)}})}function c(d,f){var A=d.getModel("stateAnimation"),h=d.isAnimationEnabled(),v=A.get("duration"),p=v>0?{duration:v,delay:A.get("delay"),easing:A.get("easing")}:null;f.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Zh(g))return;if(g instanceof qt&&vet(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(h){g.stateTransition=p;var y=g.getTextContent(),b=g.getTextGuideLine();y&&(y.stateTransition=p),b&&(b.stateTransition=p)}g.__dirty&&a(g)}})}S8=function(d){return new(function(f){xe(A,f);function A(){return f!==null&&f.apply(this,arguments)||this}return A.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},A.prototype.getComponentByElement=function(h){for(;h;){var v=h.__ecComponentInfo;if(v!=null)return d._model.getComponent(v.mainType,v.index);h=h.parent}},A.prototype.enterEmphasis=function(h,v){Jl(h,v),qi(d)},A.prototype.leaveEmphasis=function(h,v){eu(h,v),qi(d)},A.prototype.enterBlur=function(h){Ute(h),qi(d)},A.prototype.leaveBlur=function(h){hL(h),qi(d)},A.prototype.enterSelect=function(h){Hte(h),qi(d)},A.prototype.leaveSelect=function(h){zte(h),qi(d)},A.prototype.getModel=function(){return d.getModel()},A.prototype.getViewOfComponentModel=function(h){return d.getViewOfComponentModel(h)},A.prototype.getViewOfSeriesModel=function(h){return d.getViewOfSeriesModel(h)},A}(Nre))(d)},$ne=function(d){function f(A,h){for(var v=0;v<A.length;v++){var p=A[v];p[IT]=h}}z(S0,function(A,h){d._messageCenter.on(h,function(v){if(sC[d.group]&&d[IT]!==b8){if(v&&v.escapeConnect)return;var p=d.makeActionFromEvent(v),g=[];z(Pf,function(m){m!==d&&m.group===d.group&&g.push(m)}),f(g,b8),z(g,function(m){m[IT]!==nat&&m.dispatchAction(p)}),f(g,aat)}})})}}(),t}(Do),GL=aC.prototype;GL.on=Mne("on");GL.off=Mne("off");GL.one=function(e,t,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var iat=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var iC={},S0={},_F=[],BF=[],oC=[],Une={},TF={},Pf={},sC={},oat=+new Date-0,sat=+new Date-0,KL="_echarts_instance_";function lat(e,t,r){var n=!(r&&r.ssr);if(n){var a=jL(e);if(a)return a}var i=new aC(e,t,r);return i.id="ec_"+oat++,Pf[i.id]=i,n&&pte(e,KL,i.id),$ne(i),Qo.trigger("afterinit",i),i}function uat(e){if(Pe(e)){var t=e;e=null,z(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+sat++,z(t,function(r){r.group=e})}return sC[e]=!0,e}function Hne(e){sC[e]=!1}var cat=Hne;function dat(e){Ze(e)?e=Pf[e]:e instanceof aC||(e=jL(e)),e instanceof aC&&!e.isDisposed()&&e.dispose()}function jL(e){return Pf[eJe(e,KL)]}function fat(e){return Pf[e]}function YL(e,t){Une[e]=t}function XL(e){Gt(BF,e)<0&&BF.push(e)}function qL(e,t){ZL(_F,e,t,Xnt)}function zne(e){k_("afterinit",e)}function Nne(e){k_("afterupdate",e)}function k_(e,t){Qo.on(e,t)}function vs(e,t,r){pt(t)&&(r=t,t="");var n=St(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!S0[t]&&(Ha(y8.test(n)&&y8.test(t)),iC[n]||(iC[n]={action:r,actionInfo:e}),S0[t]=n)}function Qne(e,t){vp.register(e,t)}function Aat(e){var t=vp.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Vne(e,t){ZL(oC,e,t,Ine,"layout")}function ud(e,t){ZL(oC,e,t,Rne,"visual")}var B8=[];function ZL(e,t,r,n,a){if((pt(t)||St(t))&&(r=t,t=n),!(Gt(B8,r)>=0)){B8.push(r);var i=mne.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function JL(e,t){TF[e]=t}function hat(e){xee({createCanvas:e})}function Wne(e,t,r){var n=Ene("registerMap");n&&n(e,t,r)}function vat(e){var t=Ene("getMap");return t&&t(e)}var Gne=wrt;ud(WL,Krt);ud(M_,jrt);ud(M_,Yrt);ud(WL,cnt);ud(M_,dnt);ud(Dne,Hnt);XL(Vre);qL(jnt,rrt);JL("default",Xrt);vs({type:Mf,event:Mf,update:Mf},En);vs({type:Sx,event:Sx,update:Sx},En);vs({type:y0,event:y0,update:y0},En);vs({type:_x,event:_x,update:_x},En);vs({type:b0,event:b0,update:b0},En);YL("light",snt);YL("dark",lnt);var pat={},T8=[],gat={registerPreprocessor:XL,registerProcessor:qL,registerPostInit:zne,registerPostUpdate:Nne,registerUpdateLifecycle:k_,registerAction:vs,registerCoordinateSystem:Qne,registerLayout:Vne,registerVisual:ud,registerTransform:Gne,registerLoading:JL,registerMap:Wne,registerImpl:Nnt,PRIORITY:Fne,ComponentModel:ir,ComponentView:en,SeriesModel:Yr,ChartView:Ur,registerComponentModel:function(e){ir.registerClass(e)},registerComponentView:function(e){en.registerClass(e)},registerSeriesModel:function(e){Yr.registerClass(e)},registerChartView:function(e){Ur.registerClass(e)},registerSubTypeDefaulter:function(e,t){ir.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){ite(e,t)}};function Xt(e){if(Pe(e)){z(e,function(t){Xt(t)});return}Gt(T8,e)>=0||(T8.push(e),pt(e)&&(e={install:e}),e.install(gat))}function Zp(e){return e==null?0:e.length||1}function E8(e){return e}var mat=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||E8,this._newKeyGetter=a||E8,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=Zp(l);if(u>1){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)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],c=a[l],d=Zp(u),f=Zp(c);if(d>1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var A=0;A<d;A++)this._remove&&this._remove(u[A]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=Zp(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=Zp(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),tu=mat,yat=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function bat(e,t){var r={},n=r.encode={},a=At(),i=[],o=[],s={};z(e.dimensions,function(f){var A=e.getDimensionInfo(f),h=A.coordDim;if(h){var v=A.coordDimIndex;PT(n,h)[v]=f,A.isExtraCoord||(a.set(h,1),xat(A.type)&&(i[0]=f),PT(s,h)[v]=e.getDimensionIndex(A.name)),A.defaultTooltip&&o.push(f)}Mre.each(function(p,g){var m=PT(n,g),y=A.otherDims[g];y!=null&&y!==!1&&(m[y]=A.name)})});var l=[],u={};a.each(function(f,A){var h=n[A];u[A]=h[0],l=l.concat(h)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=$e(l,function(f){return e.getDimensionInfo(f).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(i=c.slice());var d=n.tooltip;return d&&d.length?o=d.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new yat(s,t),r}function PT(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function lC(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function xat(e){return!(e==="ordinal"||e==="time")}var wat=function(){function e(t){this.otherDims={},t!=null&&Me(this,t)}return e}(),Rx=wat,Cat=hr(),Sat={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Kne=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Xne(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Yt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=Gre(this.source),n=!qne(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===o)l=r?d.name:null,u=d.type,c=d.ordinalMeta,s++;else{var f=this.getSourceDimension(o);f&&(l=r?f.name:null,u=f.type)}i.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!d||!d.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=Sat[u]||"f",c&&(a+=c.uid),a+="$"}var A=this.source,h=[A.seriesLayoutBy,A.startIndex,a].join("$$");return{dimensions:i,hash:h}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function jne(e){return e instanceof Kne}function Yne(e){for(var t=At(),r=0;r<(e||[]).length;r++){var n=e[r],a=St(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function Xne(e){var t=Cat(e);return t.dimNameMap||(t.dimNameMap=Yne(e.dimensionsDefine))}function qne(e){return e>30}var Jp=St,Iu=$e,_at=typeof Int32Array=="undefined"?Array:Int32Array,Bat="e\0\0",I8=-1,Tat=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Eat=["_approximateExtent"],R8,x1,eg,tg,LT,w1,OT,Iat=function(){function e(t,r){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;jne(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<n.length;c++){var d=n[c],f=Ze(d)?new Rx({name:d}):d instanceof Rx?d:new Rx(d),A=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=A,f.coordDimIndex=0);var h=f.otherDims=f.otherDims||{};o.push(A),i[A]=f,u[A]!=null&&(l=!0),f.createInvertedIndices&&(s[A]=[]),h.itemName===0&&(this._nameDimIdx=c),h.itemId===0&&(this._idDimIdx=c),a&&(f.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=At();z(o,function(p){v.set(i[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(cr(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,i;if(t instanceof mF&&(i=t),!i){var o=this.dimensions,s=PL(t)||Sa(t)?new Kre(t,o.length):t;i=new mF;var l=Iu(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=bat(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&OT(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==yc&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Mo;if(l&&!a.pure)for(var u=[],c=t;c<r;c++){var d=a.getItem(c,u);if(!this.hasItemOption&&zZe(d)&&(this.hasItemOption=!0),d){var f=d.name;i[c]==null&&f!=null&&(i[c]=Kn(f,null));var A=d.id;o[c]==null&&A!=null&&(o[c]=Kn(A,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)OT(this,c);R8(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Jp(t)?Me(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=eg(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return x1(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return Pe(t)?a.getValues(Iu(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],a=n[r];return a==null||isNaN(a)?I8:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){pt(t)&&(n=r,r=t,t=[]);var a=n||this,i=Iu(tg(t),this._getStoreDimIndex,this);this._store.each(i,a?tt(r,a):r)},e.prototype.filterSelf=function(t,r,n){pt(t)&&(n=r,r=t,t=[]);var a=n||this,i=Iu(tg(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?tt(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=tr(t);return z(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){pt(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=Iu(tg(t),this._getStoreDimIndex,this),s=w1(this);return s._store=this._store.map(o,i?tt(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=n||a||this,o=Iu(tg(t),this._getStoreDimIndex,this);this._store.modify(o,i?tt(r,i):r)},e.prototype.downSample=function(t,r,n,a){var i=w1(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.lttbDownSample=function(t,r){var n=w1(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Or(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new tu(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return x1(t,n)},function(n){return x1(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Jp(t)?Me(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a==null?this.getVisual(r):a},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),Pe(i)?i=i.slice():Jp(i)&&(i=Me({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Jp(r)?Me(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Jp(t)?Me(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?Me(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;iF(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){z(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Iu(this.dimensions,this._getDimInfo,this),this.hostModel)),LT(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];!pt(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(i_(arguments)))})},e.internalField=function(){R8=function(t){var r=t._invertedIndicesMap;z(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new _at(o.categories.length);for(var l=0;l<n.length;l++)n[l]=I8;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},eg=function(t,r,n){return Kn(t._getCategory(r,n),null)},x1=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=eg(t,t._idDimIdx,r)),n==null&&(n=Bat+r),n},tg=function(t){return Pe(t)||(t=t!=null?[t]:[]),t},w1=function(t){var r=new e(t._schema?t._schema:Iu(t.dimensions,t._getDimInfo,t),t.hostModel);return LT(r,t),r},LT=function(t,r){z(Tat.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,z(Eat,function(n){t[n]=Bt(r[n])}),t._calculationInfo=Me({},r._calculationInfo)},OT=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=eg(t,i,r)),l==null&&o!=null&&(a[r]=l=eg(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[r]=l}}}(),e}(),Ua=Iat;function Rat(e,t){return yp(e,t).dimensions}function yp(e,t){PL(e)||(e=LL(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=At(),i=[],o=Fat(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&qne(o),l=n===e.dimensionsDefine,u=l?Xne(e):Yne(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var d=At(c),f=new tne(o),A=0;A<f.length;A++)f[A]=-1;function h(B){var T=f[B];if(T<0){var E=n[B],I=St(E)?E:{name:E},R=new Rx,D=I.name;D!=null&&u.get(D)!=null&&(R.name=R.displayName=D),I.type!=null&&(R.type=I.type),I.displayName!=null&&(R.displayName=I.displayName);var k=i.length;return f[B]=k,R.storeDimIndex=B,i.push(R),R}return i[T]}if(!s)for(var A=0;A<o;A++)h(A);d.each(function(B,T){var E=$r(B).slice();if(E.length===1&&!Ze(E[0])&&E[0]<0){d.set(T,!1);return}var I=d.set(T,[]);z(E,function(R,D){var k=Ze(R)?u.get(R):R;k!=null&&k<o&&(I[D]=k,p(h(k),T,D))})});var v=0;z(r,function(B){var T,E,I,R;if(Ze(B))T=B,R={};else{R=B,T=R.name;var D=R.ordinalMeta;R.ordinalMeta=null,R=Me({},R),R.ordinalMeta=D,E=R.dimsDef,I=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var k=d.get(T);if(k!==!1){if(k=$r(k),!k.length)for(var F=0;F<(E&&E.length||1);F++){for(;v<o&&h(v).coordDim!=null;)v++;v<o&&k.push(v++)}z(k,function(P,O){var H=h(P);if(l&&R.type!=null&&(H.type=R.type),p(yt(H,R),T,O),H.name==null&&E){var V=E[O];!St(V)&&(V={name:V}),H.name=H.displayName=V.name,H.defaultTooltip=V.defaultTooltip}I&&yt(H.otherDims,I)})}});function p(B,T,E){Mre.get(T)!=null?B.otherDims[T]=E:(B.coordDim=T,B.coordDimIndex=E,a.set(T,!0))}var g=t.generateCoord,m=t.generateCoordCount,y=m!=null;m=g?m||1:0;var b=g||"value";function w(B){B.name==null&&(B.name=B.coordDim)}if(s)z(i,function(B){w(B)}),i.sort(function(B,T){return B.storeDimIndex-T.storeDimIndex});else for(var x=0;x<o;x++){var S=h(x),_=S.coordDim;_==null&&(S.coordDim=Mat(b,a,y),S.coordDimIndex=0,(!g||m<=0)&&(S.isExtraCoord=!0),m--),w(S),S.type==null&&(Ore(e,x)===ga.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return Dat(i),new Kne({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function Dat(e){for(var t=At(),r=0;r<e.length;r++){var n=e[r],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function Fat(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return z(t,function(i){var o;St(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function Mat(e,t,r){var n=t.data;if(r||n.hasOwnProperty(e)){for(var a=0;n.hasOwnProperty(e+a);)a++;e+=a}return t.set(e,!0),e}var kat=function(){function e(t){this.coordSysDims=[],this.axisMap=At(),this.categoryAxisMap=At(),this.coordSysName=t}return e}();function Pat(e){var t=e.get("coordinateSystem"),r=new kat(t),n=Lat[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Lat={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",Hn).models[0],i=e.getReferringComponents("yAxis",Hn).models[0];t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),ih(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),ih(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",Hn).models[0];t.coordSysDims=["single"],r.set("single",a),ih(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",Hn).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),ih(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),ih(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();z(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];r.set(c,u),ih(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ih(e){return e.get("type")==="category"}function Zne(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;Oat(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,d,f;if(z(i,function(m,y){Ze(m)&&(i[y]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(c=m))}),c&&!n&&!u&&(n=!0),c){d="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var A=c.coordDim,h=c.type,v=0;z(i,function(m){m.coordDim===A&&v++});var p={name:d,coordDim:A,coordDimIndex:v,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:f,coordDim:f,coordDimIndex:v+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(f,h),g.storeDimIndex=s.ensureCalculationDimension(d,h)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(i.push(p),i.push(g))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:f,stackResultDimension:d}}function Oat(e){return!jne(e.schema)}function ru(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function e4(e,t){return ru(e,t)?e.getCalculationInfo("stackResultDimension"):t}function $at(e,t){var r=e.get("coordinateSystem"),n=vp.get(r),a;return t&&t.coordSysDims&&(a=$e(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=lC(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Uat(e,t,r){var n,a;return r&&z(e,function(i,o){var s=i.coordDim,l=r.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&&(e[n].otherDims.itemName=0),n}function Al(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=LL(e)):(a=n.getSource(),i=a.sourceFormat===Mo);var o=Pat(t),s=$at(t,o),l=r.useEncodeDefaulter,u=pt(l)?l:l?Lt(Lre,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=yp(a,c),f=Uat(d.dimensions,r.createInvertedIndices,o),A=i?null:n.getSharedDataStore(d),h=Zne(t,{schema:d,store:A}),v=new Ua(d,t);v.setCalculationInfo(h);var p=f!=null&&Hat(a)?function(g,m,y,b){return b===f?y:this.defaultDimValueGetter(g,m,y,b)}:null;return v.hasItemOption=!1,v.initData(i?a:A,null,p),v}function Hat(e){if(e.sourceFormat===Mo){var t=zat(e.data||[]);return!Pe(ap(t))}}function zat(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Jne=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();f_(Jne);var Au=Jne,Nat=0,Qat=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Nat}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&$e(n,Vat);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Ze(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=At(this.categories))},e}();function Vat(e){return St(e)&&e.value!=null?e.value:e+""}var EF=Qat;function IF(e){return e.type==="interval"||e.type==="log"}function Wat(e,t,r,n){var a={},i=e[1]-e[0],o=a.interval=iL(i/t,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=eae(o),l=a.niceTickExtent=[hn(Math.ceil(e[0]/o)*o,s),hn(Math.floor(e[1]/o)*o,s)];return Gat(l,e),a}function $T(e){var t=Math.pow(10,d_(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,hn(r*t)}function eae(e){return Xo(e)+2}function D8(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Gat(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),D8(e,0,t),D8(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function P_(e,t){return e>=t[0]&&e<=t[1]}function L_(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function O_(e,t){return e*(t[1]-t[0])+t[0]}var tae=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new EF({})),Pe(a)&&(a=new EF({categories:$e(a,function(i){return St(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Ze(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),P_(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),L_(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(O_(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Au);Au.registerClass(tae);var t4=tae,Hd=hn,rae=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return P_(r,this._extent)},t.prototype.normalize=function(r){return L_(r,this._extent)},t.prototype.scale=function(r){return O_(r,this._extent)},t.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=eae(r)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(r?s.push({value:Hd(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Hd(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(r?s.push({value:Hd(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],d=s.value-l.value,f=d/r;u<r-1;){var A=Hd(l.value+(u+1)*f);A>i[0]&&A<i[1]&&c.push(A),u++}a.push(c)}return a},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=Xo(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Hd(r.value,a,!0);return EL(i)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent,o=i[1]-i[0];if(!!isFinite(o)){o<0&&(o=-o,i.reverse());var s=Wat(i,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=n[0];r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Hd(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Hd(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Au);Au.registerClass(rae);var Qc=rae,nae=typeof Float32Array!="undefined",Kat=nae?Float32Array:Array;function $s(e){return Pe(e)?nae?new Float32Array(e):e:new Kat(e)}var RF="__ec_stack_";function r4(e){return e.get("stack")||RF+e.seriesIndex}function n4(e){return e.dim+e.index}function jat(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<e.count;i++)t.push(yt({bandWidth:a,axisKey:n,stackId:RF+i},e));for(var o=oae(t),s=[],i=0;i<e.count;i++){var l=o[n][RF+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function aae(e,t){var r=[];return t.eachSeriesByType(e,function(n){uae(n)&&r.push(n)}),r}function Yat(e){var t={};z(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var d=l.getData(),f=c.dim+"_"+c.index,A=d.getDimensionIndex(d.mapDimension(c.dim)),h=d.getStore(),v=0,p=h.count();v<p;++v){var g=h.get(A,v);t[f]?t[f].push(g):t[f]=[g]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function iae(e){var t=Yat(e),r=[];return z(e,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]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var A=n.getData();s=Math.abs(o[1]-o[0])/A.count()}var h=Ye(n.get("barWidth"),s),v=Ye(n.get("barMaxWidth"),s),p=Ye(n.get("barMinWidth")||(cae(n)?.5:1),s),g=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:h,barMaxWidth:v,barMinWidth:p,barGap:g,barCategoryGap:m,axisKey:n4(i),stackId:r4(n)})}),oae(r)}function oae(e){var t={};z(e,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 d=n.barMaxWidth;d&&(l[u].maxWidth=d);var f=n.barMinWidth;f&&(l[u].minWidth=f);var A=n.barGap;A!=null&&(s.gap=A);var h=n.barCategoryGap;h!=null&&(s.categoryGap=h)});var r={};return z(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=tr(i).length;s=Math.max(35-l*4,15)+"%"}var u=Ye(s,o),c=Ye(n.gap,1),d=n.remainedWidth,f=n.autoWidthCount,A=(d-u)/(f+(f-1)*c);A=Math.max(A,0),z(i,function(g){var m=g.maxWidth,y=g.minWidth;if(g.width){var b=g.width;m&&(b=Math.min(b,m)),y&&(b=Math.max(b,y)),g.width=b,d-=b+c*b,f--}else{var b=A;m&&m<b&&(b=Math.min(m,d)),y&&y>b&&(b=y),b!==A&&(g.width=b,d-=b+c*b,f--)}}),A=(d-u)/(f+(f-1)*c),A=Math.max(A,0);var h=0,v;z(i,function(g,m){g.width||(g.width=A),v=g,h+=g.width*(1+c)}),v&&(h-=v.width*c);var p=-h/2;z(i,function(g,m){r[a][m]=r[a][m]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+c)})}),r}function Xat(e,t,r){if(e&&t){var n=e[n4(t)];return n!=null&&r!=null?n[r4(r)]:n}}function sae(e,t){var r=aae(e,t),n=iae(r);z(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=r4(a),u=n[n4(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function lae(e){return{seriesType:e,plan:pp(),reset:function(t){if(!!uae(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(i.dim),c=r.getCalculationInfo("stackResultDimension"),d=ru(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),A=qat(a,i),h=cae(t),v=t.get("barMinHeight")||0,p=c&&r.getDimensionIndex(c),g=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(y,b){for(var w=y.count,x=h&&$s(w*3),S=h&&l&&$s(w*3),_=h&&$s(w),B=n.master.getRect(),T=f?B.width:B.height,E,I=b.getStore(),R=0;(E=y.next())!=null;){var D=I.get(d?p:o,E),k=I.get(s,E),F=A,P=void 0;d&&(P=+D-I.get(o,E));var O=void 0,H=void 0,V=void 0,W=void 0;if(f){var Z=n.dataToPoint([D,k]);if(d){var ee=n.dataToPoint([P,k]);F=ee[0]}O=F,H=Z[1]+m,V=Z[0]-F,W=g,Math.abs(V)<v&&(V=(V<0?-1:1)*v)}else{var Z=n.dataToPoint([k,D]);if(d){var ee=n.dataToPoint([k,P]);F=ee[1]}O=Z[0]+m,H=F,V=g,W=Z[1]-F,Math.abs(W)<v&&(W=(W<=0?-1:1)*v)}h?(x[R]=O,x[R+1]=H,x[R+2]=f?V:W,S&&(S[R]=f?B.x:O,S[R+1]=f?H:B.y,S[R+2]=T),_[E]=E):b.setItemLayout(E,{x:O,y:H,width:V,height:W}),R+=3}h&&b.setLayout({largePoints:x,largeDataIndices:_,largeBackgroundPoints:S,valueAxisHorizontal:f})}}}}}}function uae(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function cae(e){return e.pipelineContext&&e.pipelineContext.large}function qat(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var Zat=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},dae=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return wy(r.value,wN[vtt(Jh(this._minLevelUnit))]||wN.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return ptt(r,n,a,o,i)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=iit(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=fo,n[1]+=fo),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-fo}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=C1.length,l=Math.min(Zat(C1,this._approxInterval,0,s),s-1);this._interval=C1[l][1],this._minLevelUnit=C1[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return cr(r)?r:+Ki(r)},t.prototype.contain=function(r){return P_(this.parse(r),this._extent)},t.prototype.normalize=function(r){return L_(this.parse(r),this._extent)},t.prototype.scale=function(r){return O_(r,this._extent)},t.type="time",t}(Qc),C1=[["second",_L],["minute",BL],["hour",w0],["quarter-day",w0*6],["half-day",w0*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",xN/2],["year",xN]];function Jat(e,t,r,n){var a=Ki(t),i=Ki(r),o=function(h){return CN(a,h,n)===CN(i,h,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},A=function(){return f()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return A()}}function eit(e,t){return e/=fo,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function tit(e){var t=30*fo;return e/=t,e>6?6:e>3?3:e>2?2:1}function rit(e){return e/=w0,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function F8(e,t){return e/=t?BL:_L,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function nit(e){return iL(e,!0)}function ait(e,t,r){var n=new Date(e);switch(Jh(t)){case"year":case"month":n[Cre(r)](0);case"day":n[Sre(r)](1);case"hour":n[_re(r)](0);case"minute":n[Bre(r)](0);case"second":n[Tre(r)](0),n[Ere(r)](0)}return n.getTime()}function iit(e,t,r,n){var a=1e4,i=xre,o=0;function s(T,E,I,R,D,k,F){for(var P=new Date(E),O=E,H=P[R]();O<I&&O<=n[1];)F.push({value:O}),H+=T,P[D](H),O=P.getTime();F.push({value:O,notAdd:!0})}function l(T,E,I){var R=[],D=!E.length;if(!Jat(Jh(T),n[0],n[1],r)){D&&(E=[{value:ait(new Date(n[0]),T,r)},{value:n[1]}]);for(var k=0;k<E.length-1;k++){var F=E[k].value,P=E[k+1].value;if(F!==P){var O=void 0,H=void 0,V=void 0,W=!1;switch(T){case"year":O=Math.max(1,Math.round(t/fo/365)),H=TL(r),V=gtt(r);break;case"half-year":case"quarter":case"month":O=tit(t),H=ev(r),V=Cre(r);break;case"week":case"half-week":case"day":O=eit(t),H=S_(r),V=Sre(r),W=!0;break;case"half-day":case"quarter-day":case"hour":O=rit(t),H=gm(r),V=_re(r);break;case"minute":O=F8(t,!0),H=__(r),V=Bre(r);break;case"second":O=F8(t,!1),H=B_(r),V=Tre(r);break;case"millisecond":O=nit(t),H=T_(r),V=Ere(r);break}s(O,F,P,H,V,W,R),T==="year"&&I.length>1&&k===0&&I.unshift({value:I[0].value-O})}}for(var k=0;k<R.length;k++)I.push(R[k]);return R}}for(var u=[],c=[],d=0,f=0,A=0;A<i.length&&o++<a;++A){var h=Jh(i[A]);if(!!htt(i[A])){l(i[A],u[u.length-1]||[],c);var v=i[A+1]?Jh(i[A+1]):null;if(h!==v){if(c.length){f=d,c.sort(function(T,E){return T.value-E.value});for(var p=[],g=0;g<c.length;++g){var m=c[g].value;(g===0||c[g-1].value!==m)&&(p.push(c[g]),m>=n[0]&&m<=n[1]&&d++)}var y=(n[1]-n[0])/t;if(d>y*1.5&&f>y/1.5||(u.push(p),d>y||e===i[A]))break}c=[]}}}for(var b=Rr($e(u,function(T){return Rr(T,function(E){return E.value>=n[0]&&E.value<=n[1]&&!E.notAdd})}),function(T){return T.length>0}),w=[],x=b.length-1,A=0;A<b.length;++A)for(var S=b[A],_=0;_<S.length;++_)w.push({value:S[_].value,level:x-A});w.sort(function(T,E){return T.value-E.value});for(var B=[],A=0;A<w.length;++A)(A===0||w[A].value!==w[A-1].value)&&B.push(w[A]);return B}Au.registerClass(dae);var fae=dae,M8=Au.prototype,_0=Qc.prototype,oit=hn,sit=Math.floor,lit=Math.ceil,S1=Math.pow,Zi=Math.log,a4=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Qc,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=_0.getTicks.call(this,r);return $e(o,function(s){var l=s.value,u=hn(S1(this.base,l));return u=l===a[0]&&this._fixMin?_1(u,i[0]):u,u=l===a[1]&&this._fixMax?_1(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var a=this.base;r=Zi(r)/Zi(a),n=Zi(n)/Zi(a),_0.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=M8.getExtent.call(this);n[0]=S1(r,n[0]),n[1]=S1(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=_1(n[0],i[0])),this._fixMax&&(n[1]=_1(n[1],i[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Zi(r[0])/Zi(n),r[1]=Zi(r[1])/Zi(n),M8.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=ute(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[hn(lit(n[0]/i)*i),hn(sit(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){_0.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Zi(r)/Zi(this.base),P_(r,this._extent)},t.prototype.normalize=function(r){return r=Zi(r)/Zi(this.base),L_(r,this._extent)},t.prototype.scale=function(r){return r=O_(r,this._extent),S1(this.base,r)},t.type="log",t}(Au),Aae=a4.prototype;Aae.getMinorTicks=_0.getMinorTicks;Aae.getLabel=_0.getLabel;function _1(e,t){return oit(e,Xo(t))}Au.registerClass(a4);var uit=a4,cit=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=this._modelMinRaw=r.get("min",!0);pt(i)?this._modelMinNum=B1(t,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=B1(t,i));var o=this._modelMaxRaw=r.get("max",!0);if(pt(o)?this._modelMaxNum=B1(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=B1(t,o)),a)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=Pe(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[us(l[0],1),us(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:r-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var d=Sv(s)||Sv(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,A=this._determinedMax;return f!=null&&(s=f,u=!0),A!=null&&(l=A,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},e.prototype.modifyDataMinMax=function(t,r){this[fit[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=dit[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),dit={min:"_determinedMin",max:"_determinedMax"},fit={min:"_dataMin",max:"_dataMax"};function hae(e,t,r){var n=e.rawExtentInfo;return n||(n=new cit(e,t,r),e.rawExtentInfo=n,n)}function B1(e,t){return t==null?null:Sv(t)?NaN:e.parse(t)}function vae(e,t){var r=e.type,n=hae(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&r==="time"){var s=aae("bar",o),l=!1;if(z(s,function(d){l=l||d.getBaseAxis()===t.axis}),l){var u=iae(s),c=Ait(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function Ait(e,t,r,n){var a=r.axis.getExtent(),i=a[1]-a[0],o=Xat(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;z(o,function(A){s=Math.min(A.offset,s)});var l=-1/0;z(o,function(A){l=Math.max(A.offset+A.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=1-(s+l)/i,f=c/d-c;return t+=f*(l/u),e-=f*(s/u),{min:e,max:t}}function qf(e,t){var r=t,n=vae(e,r),a=n.extent,i=r.get("splitNumber");e instanceof uit&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function _y(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new t4({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new fae({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Au.getClass(t)||Qc)}}function hit(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function By(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(a,i){return e.scale.getFormattedLabel(a,i,n)}}(t):Ze(t)?function(n){return function(a){var i=e.scale.getLabel(a),o=n.replace("{value}",i!=null?i:"");return o}}(t):pt(t)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(i4(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function i4(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function vit(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof t4?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=By(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var d=n?n[c]:{value:i[0]+c},f=s(d,c),A=o.getTextRect(f),h=pit(A,o.get("rotate")||0);l?l.union(h):l=h}return l}}function pit(e,t){var r=t*Math.PI/180,n=e.width,a=e.height,i=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new Kt(e.x,e.y,i,o);return s}function o4(e){var t=e.get("interval");return t==null?"auto":t}function pae(e){return e.type==="category"&&o4(e.getLabelModel())===0}function uC(e,t){var r={};return z(e.mapDimensionsAll(t),function(n){r[e4(e,n)]=!0}),tr(r)}function git(e,t,r){t&&z(uC(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}var bp=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function mit(e){return Al(null,e)}var yit={isDimensionStacked:ru,enableDataStack:Zne,getStackedDimension:e4};function bit(e,t){var r=t;t instanceof Or||(r=new Or(t));var n=_y(r);return n.setExtent(e[0],e[1]),qf(n,r),n}function xit(e){xn(e,bp)}function wit(e,t){return t=t||{},Jr(e,null,null,t.state!=="normal")}var Cit=Object.freeze(Object.defineProperty({__proto__:null,createList:mit,getLayoutRect:zn,dataStack:yit,createScale:bit,mixinAxisModelCommonMethods:xit,getECData:kt,createTextStyle:wit,createDimensions:Rat,createSymbol:Fn,enableHoverEmphasis:gc},Symbol.toStringTag,{value:"Module"})),Sit=1e-8;function k8(e,t){return Math.abs(e-t)<Sit}function af(e,t,r){var n=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];n+=Tl(a[0],a[1],o[0],o[1],t,r),a=o}var s=e[0];return(!k8(a[0],s[0])||!k8(a[1],s[1]))&&(n+=Tl(a[0],a[1],s[0],s[1],t,r)),n!==0}var _it=[];function UT(e,t){for(var r=0;r<e.length;r++)ua(e[r],e[r],t)}function P8(e,t,r,n){for(var a=0;a<e.length;a++){var i=e[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Ml(t,t,i),kl(r,r,i))}}function Bit(e){for(var t=0,r=0,n=0,a=e.length,i=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var l=e[s][0],u=e[s][1],c=i*u-l*o;t+=c,r+=(i+l)*c,n+=(o+u)*c,i=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var gae=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),L8=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),O8=function(){function e(t){this.type="linestring",this.points=t}return e}(),mae=function(e){xe(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return Bit(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return z(o,function(s){s.type==="polygon"?P8(s.exterior,a,i,r):z(s.points,function(l){P8(l,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Kt(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(af(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(af(u[c],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new Kt(r,n,a,i),u=o.calculateTransform(l),c=this.geometries,d=0;d<c.length;d++){var f=c[d];f.type==="polygon"?(UT(f.exterior,u),z(f.interiors,function(A){UT(A,u)})):z(f.points,function(A){UT(A,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(gae),Tit=function(e){xe(t,e);function t(r,n){var a=e.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Ay(_it),o=r;o&&!o.isGeoSVGGraphicRoot;)js(i,o.getLocalTransform(),i),o=o.parent;return bA(i,i),ua(a,a,i),a},t}(gae);function Eit(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return z(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(!!o)switch(i.type){case"LineString":i.coordinates=yae(s,o,r);break;case"Polygon":HT(s,o,r);break;case"MultiLineString":HT(s,o,r);break;case"MultiPolygon":z(s,function(l,u){return HT(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function HT(e,t,r){for(var n=0;n<e.length;n++)e[n]=yae(e[n],t[n],r)}function yae(e,t,r){for(var n=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/r,l/r])}return n}function DF(e,t){return e=Eit(e),$e(Rr(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new L8(o[0],o.slice(1)));break;case"MultiPolygon":z(a.coordinates,function(l){l[0]&&i.push(new L8(l[0],l.slice(1)))});break;case"LineString":i.push(new O8([a.coordinates]));break;case"MultiLineString":i.push(new O8(a.coordinates))}var s=new mae(n[t||"name"],i,n.cp);return s.properties=n,s})}var Iit=Object.freeze(Object.defineProperty({__proto__:null,linearMap:Tr,round:hn,asc:Ui,getPrecision:Xo,getPrecisionSafe:ste,getPixelPrecision:nL,getPercentWithPrecision:lte,MAX_SAFE_INTEGER:JD,remRadian:aL,isRadianAroundZero:cm,parseDate:Ki,quantity:ute,quantityExponent:d_,nice:iL,quantile:Cx,reformIntervals:eF,isNumeric:oL,numericToNumber:rl},Symbol.toStringTag,{value:"Module"})),Rit=Object.freeze(Object.defineProperty({__proto__:null,parse:Ki,format:wy},Symbol.toStringTag,{value:"Module"})),Dit=Object.freeze(Object.defineProperty({__proto__:null,extendShape:ure,extendPath:cre,makePath:yy,makeImage:yL,mergePath:ki,resizePath:bL,createIcon:lp,updateProps:fr,initProps:Zr,getTransform:mc,clipPointsByRect:xL,clipRectByRect:fre,registerShape:Fo,getShapeClass:x_,Group:It,Image:Aa,Text:dr,Circle:cs,Ellipse:m_,Sector:Za,Ring:gy,Polygon:Ja,Polyline:ei,Rect:lr,Line:ta,BezierCurve:my,Arc:y_,IncrementalDisplayable:sre,CompoundPath:b_,LinearGradient:op,RadialGradient:gL,BoundingRect:Kt},Symbol.toStringTag,{value:"Module"})),Fit=Object.freeze(Object.defineProperty({__proto__:null,addCommas:EL,toCamelCase:IL,normalizeCssArray:wA,encodeHTML:ci,formatTpl:RL,getTooltipMarker:Ire,formatTime:wtt,capitalFirst:Ctt,truncateText:bte,getTextRect:mtt},Symbol.toStringTag,{value:"Module"})),Mit=Object.freeze(Object.defineProperty({__proto__:null,map:$e,each:z,indexOf:Gt,inherits:YP,reduce:So,filter:Rr,bind:tt,curry:Lt,isArray:Pe,isString:Ze,isObject:St,isFunction:pt,extend:Me,defaults:yt,clone:Bt,merge:Ut},Symbol.toStringTag,{value:"Module"})),Cm=hr();function kit(e){return e.type==="category"?Lit(e):$it(e)}function Pit(e,t){return e.type==="category"?Oit(e,t):{ticks:$e(e.scale.getTicks(),function(r){return r.value})}}function Lit(e){var t=e.getLabelModel(),r=bae(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function bae(e,t){var r=xae(e,"labels"),n=o4(t),a=wae(r,n);if(a)return a;var i,o;return pt(n)?i=_ae(e,n):(o=n==="auto"?Uit(e):n,i=Sae(e,o)),Cae(r,n,{labels:i,labelCategoryInterval:o})}function Oit(e,t){var r=xae(e,"ticks"),n=o4(t),a=wae(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),pt(n))i=_ae(e,n,!0);else if(n==="auto"){var s=bae(e,e.getLabelModel());o=s.labelCategoryInterval,i=$e(s.labels,function(l){return l.tickValue})}else o=n,i=Sae(e,o,!0);return Cae(r,n,{ticks:i,tickCategoryInterval:o})}function $it(e){var t=e.scale.getTicks(),r=By(e);return{labels:$e(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function xae(e,t){return Cm(e)[t]||(Cm(e)[t]=[])}function wae(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function Cae(e,t,r){return e.push({key:t,value:r}),r}function Uit(e){var t=Cm(e).autoInterval;return t!=null?t:Cm(e).autoInterval=e.calculateCategoryInterval()}function Hit(e){var t=zit(e),r=By(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),d=Math.abs(u*Math.sin(n)),f=0,A=0;l<=i[1];l+=s){var h=0,v=0,p=hy(r({value:l}),t.font,"center","top");h=p.width*1.3,v=p.height*1.3,f=Math.max(f,h,7),A=Math.max(A,v,7)}var g=f/c,m=A/d;isNaN(g)&&(g=1/0),isNaN(m)&&(m=1/0);var y=Math.max(0,Math.floor(Math.min(g,m))),b=Cm(e.model),w=e.getExtent(),x=b.lastAutoInterval,S=b.lastTickCount;return x!=null&&S!=null&&Math.abs(x-y)<=1&&Math.abs(S-o)<=1&&x>y&&b.axisExtent0===w[0]&&b.axisExtent1===w[1]?y=x:(b.lastTickCount=o,b.lastAutoInterval=y,b.axisExtent0=w[0],b.axisExtent1=w[1]),y}function zit(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Sae(e,t,r){var n=By(e),a=e.scale,i=a.getExtent(),o=e.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 d=pae(e),f=o.get("showMinLabel")||d,A=o.get("showMaxLabel")||d;f&&u!==i[0]&&v(i[0]);for(var h=u;h<=i[1];h+=l)v(h);A&&h-l!==i[1]&&v(i[1]);function v(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:p})}return s}function _ae(e,t,r){var n=e.scale,a=By(e),i=[];return z(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var $8=[0,1],Nit=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return nL(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),U8(n,a.count())),Tr(t,$8,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),U8(n,a.count()));var i=Tr(t,n,$8,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Pit(this,r),a=n.ticks,i=$e(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Qit(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=$e(n,function(i){return $e(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return kit(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(){return Hit(this)},e}();function U8(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function Qit(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[0]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;z(t,function(A){A.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var d=i[0]>i[1];f(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&f(i[0],t[0].coord)&&t.unshift({coord:i[0]}),f(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&f(o.coord,i[1])&&t.push({coord:i[1]});function f(A,h){return A=hn(A),h=hn(h),d?A>h:A<h}}var Po=Nit;function Vit(e){var t=ir.extend(e);return ir.registerClass(t),t}function Wit(e){var t=en.extend(e);return en.registerClass(t),t}function Git(e){var t=Yr.extend(e);return Yr.registerClass(t),t}function Kit(e){var t=Ur.extend(e);return Ur.registerClass(t),t}var rg=Math.PI*2,zd=nl.CMD,jit=["top","right","bottom","left"];function Yit(e,t,r,n,a){var i=r.width,o=r.height;switch(e){case"top":n.set(r.x+i/2,r.y-t),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+t),a.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+t,r.y+o/2),a.set(1,0);break}}function Xit(e,t,r,n,a,i,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,d=s*r+t;if(Math.abs(n-a)%rg<1e-4)return l[0]=c,l[1]=d,u-r;if(i){var f=n;n=nc(a),a=nc(f)}else n=nc(n),a=nc(a);n>a&&(a+=rg);var A=Math.atan2(s,o);if(A<0&&(A+=rg),A>=n&&A<=a||A+rg>=n&&A+rg<=a)return l[0]=c,l[1]=d,u-r;var h=r*Math.cos(n)+e,v=r*Math.sin(n)+t,p=r*Math.cos(a)+e,g=r*Math.sin(a)+t,m=(h-o)*(h-o)+(v-s)*(v-s),y=(p-o)*(p-o)+(g-s)*(g-s);return m<y?(l[0]=h,l[1]=v,Math.sqrt(m)):(l[0]=p,l[1]=g,Math.sqrt(y))}function cC(e,t,r,n,a,i,o,s){var l=a-e,u=i-t,c=r-e,d=n-t,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var A=l*c+u*d,h=A/f;s&&(h=Math.min(Math.max(h,0),1)),h*=f;var v=o[0]=e+h*c,p=o[1]=t+h*d;return Math.sqrt((v-a)*(v-a)+(p-i)*(p-i))}function Bae(e,t,r,n,a,i,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(a,e),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Go=[];function qit(e,t,r){var n=Bae(t.x,t.y,t.width,t.height,e.x,e.y,Go);return r.set(Go[0],Go[1]),n}function Zit(e,t,r){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,d=e.x,f=e.y,A=0;A<c.length;){var h=c[A++];A===1&&(n=c[A],a=c[A+1],i=n,o=a);var v=u;switch(h){case zd.M:i=c[A++],o=c[A++],n=i,a=o;break;case zd.L:v=cC(n,a,c[A],c[A+1],d,f,Go,!0),n=c[A++],a=c[A++];break;case zd.C:v=zee(n,a,c[A++],c[A++],c[A++],c[A++],c[A],c[A+1],d,f,Go),n=c[A++],a=c[A++];break;case zd.Q:v=Qee(n,a,c[A++],c[A++],c[A],c[A+1],d,f,Go),n=c[A++],a=c[A++];break;case zd.A:var p=c[A++],g=c[A++],m=c[A++],y=c[A++],b=c[A++],w=c[A++];A+=1;var x=!!(1-c[A++]);s=Math.cos(b)*m+p,l=Math.sin(b)*y+g,A<=1&&(i=s,o=l);var S=(d-p)*y/m+p;v=Xit(p,g,y,b,b+w,x,S,f,Go),n=Math.cos(b+w)*m+p,a=Math.sin(b+w)*y+g;break;case zd.R:i=n=c[A++],o=a=c[A++];var _=c[A++],B=c[A++];v=Bae(i,o,_,B,d,f,Go);break;case zd.Z:v=cC(n,a,i,o,d,f,Go,!0),n=i,a=o;break}v<u&&(u=v,r.set(Go[0],Go[1]))}return u}var qo=new zt,Gr=new zt,Sn=new zt,Us=new zt,Ps=new zt;function H8(e,t){if(!!e){var r=e.getTextGuideLine(),n=e.getTextContent();if(!!(n&&r)){var a=e.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||jit,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,c=e.getComputedTransform(),d=c&&bA([],c),f=t.get("length2")||0;u&&Sn.copy(u);for(var A=0;A<o.length;A++){var h=o[A];Yit(h,0,s,qo,Us),zt.scaleAndAdd(Gr,qo,Us,f),Gr.transform(d);var v=e.getBoundingRect(),p=u?u.distance(Gr):e instanceof qt?Zit(Gr,e.path,Sn):qit(Gr,v,Sn);p<l&&(l=p,Gr.transform(c),Sn.transform(c),Sn.toArray(i[0]),Gr.toArray(i[1]),qo.toArray(i[2]))}Tae(i,t.get("minTurnAngle")),r.setShape({points:i})}}}var dC=[],ja=new zt;function Tae(e,t){if(t<=180&&t>0){t=t/180*Math.PI,qo.fromArray(e[0]),Gr.fromArray(e[1]),Sn.fromArray(e[2]),zt.sub(Us,qo,Gr),zt.sub(Ps,Sn,Gr);var r=Us.len(),n=Ps.len();if(!(r<.001||n<.001)){Us.scale(1/r),Ps.scale(1/n);var a=Us.dot(Ps),i=Math.cos(t);if(i<a){var o=cC(Gr.x,Gr.y,Sn.x,Sn.y,qo.x,qo.y,dC,!1);ja.fromArray(dC),ja.scaleAndAdd(Ps,o/Math.tan(Math.PI-t));var s=Sn.x!==Gr.x?(ja.x-Gr.x)/(Sn.x-Gr.x):(ja.y-Gr.y)/(Sn.y-Gr.y);if(isNaN(s))return;s<0?zt.copy(ja,Gr):s>1&&zt.copy(ja,Sn),ja.toArray(e[1])}}}}function Jit(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,qo.fromArray(e[0]),Gr.fromArray(e[1]),Sn.fromArray(e[2]),zt.sub(Us,Gr,qo),zt.sub(Ps,Sn,Gr);var n=Us.len(),a=Ps.len();if(!(n<.001||a<.001)){Us.scale(1/n),Ps.scale(1/a);var i=Us.dot(t),o=Math.cos(r);if(i<o){var s=cC(Gr.x,Gr.y,Sn.x,Sn.y,qo.x,qo.y,dC,!1);ja.fromArray(dC);var l=Math.PI/2,u=Math.acos(Ps.dot(t)),c=l+u-r;if(c>=l)zt.copy(ja,Sn);else{ja.scaleAndAdd(Ps,s/Math.tan(Math.PI/2-c));var d=Sn.x!==Gr.x?(ja.x-Gr.x)/(Sn.x-Gr.x):(ja.y-Gr.y)/(Sn.y-Gr.y);if(isNaN(d))return;d<0?zt.copy(ja,Gr):d>1&&zt.copy(ja,Sn)}ja.toArray(e[1])}}}}function z8(e,t,r,n){var a=r==="normal",i=a?e:e.ensureState(r);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?e.useStyle(s):i.style=s}function eot(e,t){var r=t.smooth,n=t.points;if(!!n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=Fl(n[0],n[1]),i=Fl(n[1],n[2]);if(!a||!i){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=h0([],n[1],n[0],o/a),l=h0([],n[1],n[2],o/i),u=h0([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function s4(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<Am.length;l++){var u=Am[l],c=t[u],d=u==="normal";if(c){var f=c.get("show"),A=d?s:Yt(a.states[u]&&a.states[u].ignore,s);if(A||!Yt(f,o)){var h=d?n:n&&n.states[u];h&&(h.ignore=!0);continue}n||(n=new ei,e.setTextGuideLine(n),!d&&(s||!o)&&z8(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),z8(n,!1,u,c)}}if(n){yt(n.style,r),n.style.fill=null;var v=i.get("showAbove"),p=e.textGuideLineConfig=e.textGuideLineConfig||{};p.showAbove=v||!1,n.buildPath=eot}}function l4(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<qa.length;n++){var a=qa[n];r[a]=e.getModel([a,t])}return r}function Eae(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Kw(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function Iae(e,t,r,n,a,i){var o=e.length;if(o<2)return;e.sort(function(_,B){return _.rect[t]-B.rect[t]});for(var s=0,l,u=!1,c=0,d=0;d<o;d++){var f=e[d],A=f.rect;l=A[t]-s,l<0&&(A[t]-=l,f.label[t]-=l,u=!0);var h=Math.max(-l,0);c+=h,s=A[t]+A[r]}c>0&&i&&w(-c/o,0,o);var v=e[0],p=e[o-1],g,m;y(),g<0&&x(-g,.8),m<0&&x(m,.8),y(),b(g,m,1),b(m,g,-1),y(),g<0&&S(-g),m<0&&S(m);function y(){g=v.rect[t]-n,m=a-p.rect[t]-p.rect[r]}function b(_,B,T){if(_<0){var E=Math.min(B,-_);if(E>0){w(E*T,0,o);var I=E+_;I<0&&x(-I*T,1)}else x(-_*T,1)}}function w(_,B,T){_!==0&&(u=!0);for(var E=B;E<T;E++){var I=e[E],R=I.rect;R[t]+=_,I.label[t]+=_}}function x(_,B){for(var T=[],E=0,I=1;I<o;I++){var R=e[I-1].rect,D=Math.max(e[I].rect[t]-R[t]-R[r],0);T.push(D),E+=D}if(!!E){var k=Math.min(Math.abs(_)/E,B);if(_>0)for(var I=0;I<o-1;I++){var F=T[I]*k;w(F,0,I+1)}else for(var I=o-1;I>0;I--){var F=T[I-1]*k;w(-F,I,o)}}}function S(_){var B=_<0?-1:1;_=Math.abs(_);for(var T=Math.ceil(_/(o-1)),E=0;E<o-1;E++)if(B>0?w(T,0,E+1):w(-T,o-E-1,o),_-=T,_<=0)return}return u}function tot(e,t,r,n){return Iae(e,"x","width",t,r,n)}function Rae(e,t,r,n){return Iae(e,"y","height",t,r,n)}function Dae(e){var t=[];e.sort(function(v,p){return p.priority-v.priority});var r=new Kt(0,0,0,0);function n(v){if(!v.ignore){var p=v.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}v.ignore=!0}for(var a=0;a<e.length;a++){var i=e[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var d=i.obb,f=!1,A=0;A<t.length;A++){var h=t[A];if(!!r.intersect(h.rect)){if(o&&h.axisAligned){f=!0;break}if(h.obb||(h.obb=new Kw(h.localRect,h.transform)),d||(d=new Kw(s,l)),d.intersect(h.obb)){f=!0;break}}}f?(n(u),c&&n(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function rot(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function not(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:rot(n&&n.shape.points)}}var N8=["align","verticalAlign","width","height","fontSize"],_i=new Pl,zT=hr(),aot=hr();function T1(e,t,r){for(var n=0;n<r.length;n++){var a=r[n];t[a]!=null&&(e[a]=t[a])}}var E1=["x","y","rotation"],iot=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();Kt.applyTransform(c,c,u),u?_i.setLocalTransform(u):(_i.x=_i.y=_i.rotation=_i.originX=_i.originY=0,_i.scaleX=_i.scaleY=1);var d=a.__hostTarget,f;if(d){f=d.getBoundingRect().plain();var A=d.getComputedTransform();Kt.applyTransform(f,f,A)}var h=f&&d.getTextGuideLine();this._labelList.push({label:a,labelLine:h,seriesModel:n,dataIndex:t,dataType:r,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:h&&h.ignore,x:_i.x,y:_i.y,scaleX:_i.scaleX,scaleY:_i.scaleY,rotation:_i.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");!(pt(a)||tr(a).length)||t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=kt(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function a(y,b){return function(){H8(y,b)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;pt(o.layoutOption)?c=o.layoutOption(not(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*d:u.attachedRot,offset:[c.dx||0,c.dy||0]});var f=!1;if(c.x!=null?(s.x=Ye(c.x,r),s.setStyle("x",0),f=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Ye(c.y,n),s.setStyle("y",0),f=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var A=l.getTextGuideLine();A&&(A.setShape({points:c.labelLinePoints}),f=!1)}var h=zT(s);h.needsUpdateLabelLine=f,s.rotation=c.rotate!=null?c.rotate*d:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<N8.length;v++){var p=N8[v];s.setStyle(p,c[p]!=null?c[p]:u.style[p])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);g=m.getItemModel(o.dataIndex)}s.on("drag",a(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),a=Eae(this._labelList),i=Rr(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Rr(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});tot(i,0,r),Rae(o,0,n);var s=Rr(a,function(l){return l.layoutOption.hideOverlap});Dae(s)},e.prototype.processLabelsOverall=function(){var t=this;z(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=zT(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),a=kt(t),i=a.dataIndex;if(n&&i!=null){var o=r.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style"),c=o.getVisual("drawType");l.stroke=u[c];var d=s.getModel("labelLine");s4(t,l4(s),l),H8(t,d)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Zh(t))){var i=zT(n),o=i.oldLayout,s=kt(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var f=t.prevStates;f&&(Gt(f,"select")>=0&&n.attr(i.oldLayoutSelect),Gt(f,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),fr(n,u,r,l)}else if(n.attr(u),!cp(n).valueAnimation){var d=Yt(n.style.opacity,1);n.style.opacity=0,Zr(n,{style:{opacity:d}},r,l)}if(i.oldLayout=u,n.states.select){var A=i.oldLayoutSelect={};T1(A,u,E1),T1(A,n.states.select,E1)}if(n.states.emphasis){var h=i.oldLayoutEmphasis={};T1(h,u,E1),T1(h,n.states.emphasis,E1)}gre(n,l,c,r,r)}if(a&&!a.ignore&&!a.invisible){var i=aot(a),o=i.oldLayout,v={points:a.shape.points};o?(a.attr({shape:o}),fr(a,{shape:v},r)):(a.setShape(v),a.style.strokePercent=0,Zr(a,{style:{strokePercent:1}},r)),i.oldLayout=v}},e}(),oot=iot,NT=hr();function sot(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var a=NT(r).labelManager;a||(a=NT(r).labelManager=new oot),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var a=NT(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var QT=Math.sin,VT=Math.cos,Fae=Math.PI,Nd=Math.PI*2,lot=180/Fae,uot=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){this._add("C",t,r,n,a,i,o)},e.prototype.quadraticCurveTo=function(t,r,n,a){this._add("Q",t,r,n,a)},e.prototype.arc=function(t,r,n,a,i,o){this.ellipse(t,r,n,n,0,a,i,o)},e.prototype.ellipse=function(t,r,n,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=rc(d-Nd)||(c?u>=Nd:-u>=Nd),A=u>0?u%Nd:u%Nd+Nd,h=!1;f?h=!0:rc(d)?h=!1:h=A>=Fae==!!c;var v=t+n*VT(o),p=r+a*QT(o);this._start&&this._add("M",v,p);var g=Math.round(i*lot);if(f){var m=1/this._p,y=(c?1:-1)*(Nd-m);this._add("A",n,a,g,1,+c,t+n*VT(o+y),r+a*QT(o+y)),m>.01&&this._add("A",n,a,g,0,+c,v,p)}else{var b=t+n*VT(s),w=r+a*QT(s);this._add("A",n,a,g,+h,+c,b,w)}},e.prototype.rect=function(t,r,n,a){this._add("M",t,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f<arguments.length;f++){var A=arguments[f];if(isNaN(A)){this._invalid=!0;return}c.push(Math.round(A*d)/d)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),Mae=uot,B0="none",cot=Math.round;function dot(e){var t=e.fill;return t!=null&&t!==B0}function fot(e){var t=e.stroke;return t!=null&&t!==B0}var FF=["lineCap","miterLimit","lineJoin"],Aot=$e(FF,function(e){return"stroke-"+e.toLowerCase()});function hot(e,t,r,n){var a=t.opacity==null?1:t.opacity;if(r instanceof Aa){e("opacity",a);return}if(dot(t)){var i=Bv(t.fill);e("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;(n||o<1)&&e("fill-opacity",o)}else e("fill",B0);if(fot(t)){var s=Bv(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,d=t.strokeFirst;if((n||u!==1)&&e("stroke-width",u),(n||d)&&e("paint-order",d?"stroke":"fill"),(n||c<1)&&e("stroke-opacity",c),t.lineDash){var f=QL(r),A=f[0],h=f[1];A&&(h=cot(h||0),e("stroke-dasharray",A.join(",")),(h||n)&&e("stroke-dashoffset",h))}else n&&e("stroke-dasharray",B0);for(var v=0;v<FF.length;v++){var p=FF[v];if(n||t[p]!==Ww[p]){var g=t[p]||Ww[p];g&&e(Aot[v],g)}}}else n&&e("stroke",B0)}var kae="http://www.w3.org/2000/svg",Pae="http://www.w3.org/1999/xlink",vot="http://www.w3.org/2000/xmlns/",pot="http://www.w3.org/XML/1998/namespace";function Lae(e){return document.createElementNS(kae,e)}function Jn(e,t,r,n,a){return{tag:e,attrs:r||{},children:n,text:a,key:t}}function got(e,t){var r=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),r.push(i))}return"<"+e+" "+r.join(" ")+">"}function mot(e){return"</"+e+">"}function u4(e,t){t=t||{};var r=t.newline?`
|
|
`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs;return got(o,s)+(a.text||"")+(i?""+r+$e(i,function(l){return n(l)}).join(r)+r:"")+mot(o)}return n(e)}function yot(e,t,r){r=r||{};var n=r.newline?`
|
|
`:"",a=" {"+n,i=n+"}",o=$e(tr(e),function(l){return l+a+$e(tr(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+i}).join(n),s=$e(tr(t),function(l){return"@keyframes "+l+a+$e(tr(t[l]),function(u){return u+a+$e(tr(t[l][u]),function(c){var d=t[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function MF(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Q8(e,t,r,n){return Jn("svg","root",{width:e,height:t,xmlns:kae,"xmlns:xlink":Pae,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var V8={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Xd="transform-origin";function bot(e,t,r){var n=Me({},e.shape);Me(n,t),e.buildPath(r,n);var a=new Mae;return a.reset(Yee(e)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function xot(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Xd]=r+"px "+n+"px")}var wot={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Oae(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Cot(e,t,r){var n=e.shape.paths,a={},i,o;if(z(n,function(l){var u=MF(r.zrId);u.animation=!0,$_(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=tr(c),A=f.length;if(!!A){o=f[A-1];var h=c[o];for(var v in h){var p=h[v];a[v]=a[v]||{d:""},a[v].d+=p.d||""}for(var g in d){var m=d[g].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=Oae(a,r);return i.replace(o,s)}}function W8(e){return Ze(e)?V8[e]?"cubic-bezier("+V8[e]+")":JP(e)?e:"":""}function $_(e,t,r,n){var a=e.animators,i=a.length,o=[];if(e instanceof b_){var s=Cot(e,t,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=a[u],d=[c.getMaxTime()/1e3+"s"],f=W8(c.getClip().easing),A=c.getDelay();f?d.push(f):d.push("linear"),A&&d.push(A/1e3+"s"),c.getLoop()&&d.push("infinite");var h=d.join(" ");l[h]=l[h]||[h,[]],l[h][1].push(c)}function v(m){var y=m[1],b=y.length,w={},x={},S={},_="animation-timing-function";function B(ce,ye,fe){for(var Q=ce.getTracks(),J=ce.getMaxTime(),U=0;U<Q.length;U++){var K=Q[U];if(K.needsAnimate()){var q=K.keyframes,ie=K.propName;if(fe&&(ie=fe(ie)),ie)for(var $=0;$<q.length;$++){var re=q[$],ve=Math.round(re.time/J*100)+"%",he=W8(re.easing),oe=re.rawValue;(Ze(oe)||cr(oe))&&(ye[ve]=ye[ve]||{},ye[ve][ie]=re.rawValue,he&&(ye[ve][_]=he))}}}}for(var T=0;T<b;T++){var E=y[T],I=E.targetName;I?I==="shape"&&B(E,x):!n&&B(E,w)}for(var R in w){var D={};tte(D,e),Me(D,w[R]);var k=Xee(D),F=w[R][_];S[R]=k?{transform:k}:{},xot(S[R],D),F&&(S[R][_]=F)}var P,O=!0;for(var R in x){S[R]=S[R]||{};var H=!P,F=x[R][_];H&&(P=new nl);var V=P.len();P.reset(),S[R].d=bot(e,x[R],P);var W=P.len();if(!H&&V!==W){O=!1;break}F&&(S[R][_]=F)}if(!O)for(var R in S)delete S[R].d;if(!n)for(var T=0;T<b;T++){var E=y[T],I=E.targetName;I==="style"&&B(E,S,function(Q){return wot[Q]})}for(var Z=tr(S),ee=!0,ae,T=1;T<Z.length;T++){var ne=Z[T-1],le=Z[T];if(S[ne][Xd]!==S[le][Xd]){ee=!1;break}ae=S[ne][Xd]}if(ee&&ae){for(var R in S)S[R][Xd]&&delete S[R][Xd];t[Xd]=ae}if(Rr(Z,function(ce){return tr(S[ce]).length>0}).length){var se=Oae(S,r);return se+" "+m[0]+" both"}}for(var p in l){var s=v(l[p]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+g]={animation:o.join(",")},t.class=g}}var Sm=Math.round;function $ae(e){return e&&Ze(e.src)}function Uae(e){return e&&pt(e.toDataURL)}function c4(e,t,r,n){hot(function(a,i){var o=a==="fill"||a==="stroke";o&&rZe(i)?Dot(t,e,a,n):o&&tZe(i)?Fot(r,e,a,n):e[a]=i},t,r,!1),Rot(r,e,n)}function G8(e){return rc(e[0]-1)&&rc(e[1])&&rc(e[2])&&rc(e[3]-1)}function Sot(e){return rc(e[4])&&rc(e[5])}function d4(e,t,r){if(t&&!(Sot(t)&&G8(t))){var n=r?10:1e4;e.transform=G8(t)?"translate("+Sm(t[4]*n)/n+" "+Sm(t[5]*n)/n+")":Yqe(t)}}function K8(e,t,r){for(var n=e.points,a=[],i=0;i<n.length;i++)a.push(Sm(n[i][0]*r)/r),a.push(Sm(n[i][1]*r)/r);t.points=a.join(" ")}function j8(e){return!e.smooth}function _ot(e){var t=$e(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=r[o[0]];s!=null&&(n[o[1]]=Sm(s*a)/a)}}}var Bot={circle:[_ot(["cx","cy","r"])],polyline:[K8,j8],polygon:[K8,j8]};function Tot(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function Hae(e,t){var r=e.style,n=e.shape,a=Bot[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&Yee(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&Tot(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);a[0](n,i,c)}else{e.path||e.createPathProxy();var d=e.path;e.shapeChanged()&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var f=d.getVersion(),A=e,h=A.__svgPathBuilder;(A.__svgPathVersion!==f||!h||l!==A.__svgPathStrokePercent)&&(h||(h=A.__svgPathBuilder=new Mae),h.reset(u),d.rebuildPath(h,l),h.generateStr(),A.__svgPathVersion=f,A.__svgPathStrokePercent=l),i.d=h.getStr()}return d4(i,e.transform),c4(i,r,e,t),t.animation&&$_(e,i,t),Jn(s,e.id+"",i)}function Eot(e,t){var r=e.style,n=r.image;if(n&&!Ze(n)&&($ae(n)?n=n.src:Uae(n)&&(n=n.toDataURL())),!!n){var a=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),d4(l,e.transform),c4(l,r,e,t),t.animation&&$_(e,l,t),Jn("image",e.id+"",l)}}function Iot(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var a=r.font||Uc,i=r.x||0,o=qqe(r.y||0,c_(a),r.textBaseline),s=Xqe[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(kte(r)){var u="",c=r.fontStyle,d=Mte(r.fontSize);if(!parseFloat(d))return;var f=r.fontFamily||bee,A=r.fontWeight;u+="font-size:"+d+";font-family:"+f+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),A&&A!=="normal"&&(u+="font-weight:"+A+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),d4(l,e.transform),c4(l,r,e,t),t.animation&&$_(e,l,t),Jn("text",e.id+"",l,void 0,n)}}function Y8(e,t){if(e instanceof qt)return Hae(e,t);if(e instanceof Aa)return Eot(e,t);if(e instanceof fm)return Iot(e,t)}function Rot(e,t,r){var n=e.style;if(Zqe(n)){var a=Jqe(e),i=r.shadowCache,o=i[a];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,d=n.shadowOffsetY||0,f=n.shadowBlur,A=Bv(n.shadowColor),h=A.opacity,v=A.color,p=f/2/l,g=f/2/u,m=p+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Jn("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Jn("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:m,"flood-color":v,"flood-opacity":h})]),i[a]=o}t.filter=s_(o)}}function Dot(e,t,r,n){var a=e[r],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Kee(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(jee(a))i="radialGradient",o.cx=Yt(a.x,.5),o.cy=Yt(a.y,.5),o.r=Yt(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var d=QD(s[u].offset)*100+"%",f=s[u].color,A=Bv(f),h=A.color,v=A.opacity,p={offset:d};p["stop-color"]=h,v<1&&(p["stop-opacity"]=v),l.push(Jn("stop",u+"",p))}var g=Jn(i,"",o,l),m=u4(g),y=n.gradientCache,b=y[m];b||(b=n.zrId+"-g"+n.gradientIdx++,y[m]=b,o.id=b,n.defs[b]=Jn(i,b,o,l)),t[r]=s_(b)}function Fot(e,t,r,n){var a=e.style[r],i={patternUnits:"userSpaceOnUse"},o;if(Gee(a)){var s=a.imageWidth,l=a.imageHeight,u=void 0,c=a.image;if(Ze(c)?u=c:$ae(c)?u=c.src:Uae(c)&&(u=c.toDataURL()),typeof Image=="undefined"){var d="Image width/height must been given explictly in svg-ssr renderer.";Ha(s,d),Ha(l,d)}else if(s==null||l==null){var f=function(m,y){if(m){var b=m.elm,w=m.attrs.width=s||y.width,x=m.attrs.height=l||y.height;b&&(b.setAttribute("width",w),b.setAttribute("height",x))}},A=cL(u,null,e,function(m){f(h,m),f(o,m)});A&&A.width&&A.height&&(s=s||A.width,l=l||A.height)}o=Jn("image","img",{href:u,width:s,height:l}),i.width=s,i.height=l}else a.svgElement&&(o=Bt(a.svgElement),i.width=a.svgWidth,i.height=a.svgHeight);if(!!o){i.patternTransform=Xee(a);var h=Jn("pattern","",i,[o]),v=u4(h),p=n.patternCache,g=p[v];g||(g=n.zrId+"-p"+n.patternIdx++,p[v]=g,i.id=g,h=n.defs[g]=Jn("pattern",g,i,[o])),t[r]=s_(g)}}function Mot(e,t,r){var n=r.clipPathCache,a=r.defs,i=n[e.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[e.id]=i,a[i]=Jn("clipPath",i,o,[Hae(e,r)])}t["clip-path"]=s_(i)}function X8(e){return document.createTextNode(e)}function of(e,t,r){e.insertBefore(t,r)}function q8(e,t){e.removeChild(t)}function Z8(e,t){e.appendChild(t)}function zae(e){return e.parentNode}function Nae(e){return e.nextSibling}function WT(e,t){e.textContent=t}var J8=58,kot=120,Pot=Jn("","");function kF(e){return e===void 0}function Rs(e){return e!==void 0}function Lot(e,t,r){for(var n={},a=t;a<=r;++a){var i=e[a].key;i!==void 0&&(n[i]=a)}return n}function Lg(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function _m(e){var t,r=e.children,n=e.tag;if(Rs(n)){var a=e.elm=Lae(n);if(f4(Pot,e),Pe(r))for(t=0;t<r.length;++t){var i=r[t];i!=null&&Z8(a,_m(i))}else Rs(e.text)&&!St(e.text)&&Z8(a,X8(e.text))}else e.elm=X8(e.text);return e.elm}function Qae(e,t,r,n,a){for(;n<=a;++n){var i=r[n];i!=null&&of(e,_m(i),t)}}function fC(e,t,r,n){for(;r<=n;++r){var a=t[r];if(a!=null)if(Rs(a.tag)){var i=zae(a.elm);q8(i,a.elm)}else q8(e,a.elm)}}function f4(e,t){var r,n=t.elm,a=e&&e.attrs||{},i=t.attrs||{};if(a!==i){for(r in i){var o=i[r],s=a[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r.charCodeAt(0)!==kot?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(vot,r,o):r.charCodeAt(3)===J8?n.setAttributeNS(pot,r,o):r.charCodeAt(5)===J8?n.setAttributeNS(Pae,r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}function Oot(e,t,r){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=r.length-1,u=r[0],c=r[l],d,f,A,h;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=r[++a]:c==null?c=r[--l]:Lg(o,u)?(Eh(o,u),o=t[++n],u=r[++a]):Lg(s,c)?(Eh(s,c),s=t[--i],c=r[--l]):Lg(o,c)?(Eh(o,c),of(e,o.elm,Nae(s.elm)),o=t[++n],c=r[--l]):Lg(s,u)?(Eh(s,u),of(e,s.elm,o.elm),s=t[--i],u=r[++a]):(kF(d)&&(d=Lot(t,n,i)),f=d[u.key],kF(f)?of(e,_m(u),o.elm):(A=t[f],A.tag!==u.tag?of(e,_m(u),o.elm):(Eh(A,u),t[f]=void 0,of(e,A.elm,o.elm))),u=r[++a]);(n<=i||a<=l)&&(n>i?(h=r[l+1]==null?null:r[l+1].elm,Qae(e,h,r,a,l)):fC(e,t,n,i))}function Eh(e,t){var r=t.elm=e.elm,n=e.children,a=t.children;e!==t&&(f4(e,t),kF(t.text)?Rs(n)&&Rs(a)?n!==a&&Oot(r,n,a):Rs(a)?(Rs(e.text)&&WT(r,""),Qae(r,null,a,0,a.length-1)):Rs(n)?fC(r,n,0,n.length-1):Rs(e.text)&&WT(r,""):e.text!==t.text&&(Rs(n)&&fC(r,n,0,n.length-1),WT(r,t.text)))}function $ot(e,t){if(Lg(e,t))Eh(e,t);else{var r=e.elm,n=zae(r);_m(t),n!==null&&(of(n,t.elm,Nae(r)),fC(n,[e],0,0))}return t}var Uot=0,Hot=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=e6(),this.configLayer=e6(),this.storage=r,this._opts=n=Me({},n),this.root=t,this._id="zr"+Uot++,this._oldVNode=Q8(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Lae("svg");f4(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",$ot(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return Y8(t,MF(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._backgroundColor,a=this._width,i=this._height,o=MF(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var s=[];if(n&&n!=="none"){var l=Bv(n),u=l.color,c=l.opacity;this._bgVNode=Jn("rect","bg",{width:a,height:i,x:"0",y:"0",id:"0",fill:u,"fill-opacity":c}),s.push(this._bgVNode)}else this._bgVNode=null;var d=t.compress?null:this._mainVNode=Jn("g","main",{},[]);this._paintList(r,o,d?d.children:s),d&&s.push(d);var f=$e(tr(o.defs),function(v){return o.defs[v]});if(f.length&&s.push(Jn("defs","defs",{},f)),t.animation){var A=yot(o.cssNodes,o.cssAnims,{newline:!0});if(A){var h=Jn("style","stl",{},[],A);s.push(h)}}return Q8(a,i,s,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},u4(this.renderToVNode({animation:Yt(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Yt(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var r=this._bgVNode;if(r&&r.elm){var n=Bv(t),a=n.color,i=n.opacity;r.elm.setAttribute("fill",a),i<1&&r.elm.setAttribute("fill-opacity",i)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var d=t[c];if(!d.invisible){var f=d.__clipPaths,A=f&&f.length||0,h=l&&l.length||0,v=void 0;for(v=Math.max(A-1,h-1);v>=0&&!(f&&l&&f[v]===l[v]);v--);for(var p=h-1;p>v;p--)o--,s=i[o-1];for(var g=v+1;g<A;g++){var m={};Mot(f[g],m,r);var y=Jn("g","clip-g-"+u++,m,[]);(s?s.children:n).push(y),i[o++]=y,s=y}l=f;var b=Y8(d,r);b&&(s?s.children:n).push(b)}}},e.prototype.resize=function(t,r){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),a&&i&&(i.style.display="none",t=Lh(a,0,n),r=Lh(a,1,n),i.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,i){var o=i.style;o.width=t+"px",o.height=r+"px"}var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r))}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return t?(r=nZe(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+r},e}();function e6(e){return function(){}}var zot=Hot;function Not(e){e.registerPainter("svg",zot)}function t6(e,t,r){var n=ss.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=i*r,n}var Qot=function(e){xe(t,e);function t(r,n,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||Qw,typeof r=="string"?o=t6(r,n,a):St(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(XP(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=t6("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Kt(0,0,0,0);function c(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var y=new Kt(0,0,0,0);y.copy(m),o.push(y)}else{for(var b=!1,w=1/0,x=0,S=0;S<o.length;++S){var _=o[S];if(_.intersect(m)){var B=new Kt(0,0,0,0);B.copy(_),B.union(m),o[S]=B,b=!0;break}else if(l){u.copy(m),u.union(_);var T=m.width*m.height,E=_.width*_.height,I=u.width*u.height,R=I-T-E;R<w&&(w=R,x=S)}}if(l&&(o[x].union(m),b=!0),!b){var y=new Kt(0,0,0,0);y.copy(m),o.push(y)}l||(l=o.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var f=r[d];if(f){var A=f.shouldBePainted(a,i,!0,!0),h=f.__isRendered&&(f.__dirty&Mi||!A)?f.getPrevPaintRect():null;h&&c(h);var v=A&&(f.__dirty&Mi||!f.__isRendered)?f.getPaintRect():null;v&&c(v)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var f=n[d],A=f.shouldBePainted(a,i,!0,!0);if(f&&(!A||!f.__zr)&&f.__isRendered){var h=f.getPrevPaintRect();h&&c(h)}}var p;do{p=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var g=d+1;g<o.length;)o[d].intersect(o[g])?(p=!0,o[d].union(o[g]),o.splice(g,1)):g++;d++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,d=this.dpr,f=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/d,l/d));var A=this.domBack;function h(v,p,g,m){if(o.clearRect(v,p,g,m),n&&n!=="transparent"){var y=void 0;cy(n)?(y=n.__canvasGradient||CF(o,n,{x:0,y:0,width:g,height:m}),n.__canvasGradient=y):_ee(n)&&(y=SF(o,n,{dirty:function(){f.setUnpainted(),f.__painter.refresh()}})),o.save(),o.fillStyle=y||n,o.fillRect(v,p,g,m),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(A,v,p,g,m),o.restore())}!a||u?h(0,0,s,l):a.length&&z(a,function(v){h(v.x*d,v.y*d,v.width*d,v.height*d)})},t}(Do),GT=Qot,r6=1e5,Qd=314159,I1=.01,Vot=.001;function Wot(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Got(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var Kot=function(){function e(t,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=Me({},n||{}),this.dpr=n.devicePixelRatio||Qw,this._singleCanvas=i,this.root=t;var o=t.style;o&&(XP(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=t,d=c.width,f=c.height;n.width!=null&&(d=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,c.width=d*this.dpr,c.height=f*this.dpr,this._width=d,this._height=f;var A=new GT(c,this,this.dpr);A.__builtin__=!0,A.initContext(),l[Qd]=A,A.zlevel=Qd,s.push(Qd),this._domRoot=t}else{this._width=Lh(t,0,n),this._height=Lh(t,1,n);var u=this._domRoot=Got(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(r6)),i||(i=n.ctx,i.save()),bf(i,s,a,o===r-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(r6)},e.prototype.paintOne=function(t,r){VL(t,r)},e.prototype._paintList=function(t,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;UD(function(){l._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Qd).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var c=!0,d=!1,f=function(v){var p=i[v],g=p.ctx,m=o&&p.createRepaintRects(t,r,A._width,A._height),y=n?p.__startIndex:p.__drawIndex,b=!n&&p.incremental&&Date.now,w=b&&Date.now(),x=p.zlevel===A._zlevelList[0]?A._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,x,m);else if(y===p.__startIndex){var S=t[y];(!S.incremental||!S.notClear||n)&&p.clear(!1,x,m)}y===-1&&(console.error("For some unknown reason. drawIndex is -1"),y=p.__startIndex);var _,B=function(R){var D={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(_=y;_<p.__endIndex;_++){var k=t[_];if(k.__inHover&&(d=!0),a._doPaintEl(k,p,o,R,D,_===p.__endIndex-1),b){var F=Date.now()-w;if(F>15)break}}D.prevElClipPaths&&g.restore()};if(m)if(m.length===0)_=p.__endIndex;else for(var T=A.dpr,E=0;E<m.length;++E){var I=m[E];g.save(),g.beginPath(),g.rect(I.x*T,I.y*T,I.width*T,I.height*T),g.clip(),B(I),g.restore()}else g.save(),B(),g.restore();p.__drawIndex=_,p.__drawIndex<p.__endIndex&&(c=!1)},A=this,h=0;h<i.length;h++)f(h);return vr.wxa&&z(this._layers,function(v){v&&v.ctx&&v.ctx.draw&&v.ctx.draw()}),{finished:c,needsRefreshHover:d}},e.prototype._doPaintEl=function(t,r,n,a,i,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(bf(s,t,i,o),t.setPrevPaintRect(l))}else bf(s,t,i,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Qd);var n=this._layers[t];return n||(n=new GT("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Ut(n,this._layerConfig[t],!0):this._layerConfig[t-I1]&&Ut(n,this._layerConfig[t-I1],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&!!Wot(r)){if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.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 n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(r,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(r,o,i)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(r,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(d,f){d.__dirty=d.__used=!1});function r(d){i&&(i.__endIndex!==d&&(i.__dirty=!0),i.__endIndex=d)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+Vot,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?I1:0),this._needsManuallyCompositing),c.__builtin__||n_("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),i=c),a.__dirty&Mi&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__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,z(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Ut(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+I1){var o=this._layers[i];Ut(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,a=r[t];!a||(a.dom.parentNode.removeChild(a.dom),delete r[t],n.splice(Gt(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=Lh(i,0,a),r=Lh(i,1,a),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Qd).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Qd].dom;var r=new GT("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(d){d.__builtin__?n.drawImage(d.dom,0,0,a,i):d.renderToCanvas&&(n.save(),d.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];bf(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),jot=Kot;function Yot(e){e.registerPainter("canvas",jot)}var Xot=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return Al(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new It,a=Fn("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=Fn(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-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}(Yr),qot=Xot;function Iv(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Tv(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(Tv(e,t,r[o]));return i.join(" ")}}function Vae(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!Pe(t))return t+"";for(var n=[],a=0;a<r.length;a++){var i=e.getDimensionIndex(r[a]);i>=0&&n.push(t[i])}return n.join(" ")}var Zot=function(e){xe(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=Fn(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=Jot,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Jl(this.childAt(0))},t.prototype.downplay=function(){eu(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,d)}else{var f=this.childAt(0);f.silent=!1;var A={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(A):fr(f,A,s,n),ds(f)}if(this._updateCommon(r,n,l,a,i),u){var f=this.childAt(0);if(!c){var A={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Zr(f,A,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,c,d,f,A,h,v,p,g;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,A=i.blurScope,v=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,h=i.emphasisDisabled),!i||r.hasItemOption){var m=i&&i.itemModel?i.itemModel:r.getItemModel(n),y=m.getModel("emphasis");u=y.getModel("itemStyle").getItemStyle(),d=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),f=y.get("focus"),A=y.get("blurScope"),h=y.get("disabled"),v=ca(m),p=y.getShallow("scale"),g=m.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var w=mp(r.getItemVisual(n,"symbolOffset"),a);w&&(s.x=w[0],s.y=w[1]),g&&s.attr("cursor",g);var x=r.getItemVisual(n,"style"),S=x.fill;if(s instanceof Aa){var _=s.style;s.useStyle(Me({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},x))}else s.__isEmptyBrush?s.useStyle(Me({},x)):s.useStyle(x),s.style.decal=null,s.setColor(S,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var B=r.getItemVisual(n,"liftZ"),T=this._z2;B!=null?T==null&&(this._z2=s.z2,s.z2+=B):T!=null&&(s.z2=T,this._z2=null);var E=o&&o.useNameLabel;Na(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:S,defaultOpacity:x.opacity});function I(k){return E?r.getName(k):Iv(r,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");if(R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c,p){var D=Math.max(cr(p)?p:1.1,3/this._sizeY);R.scaleX=this._sizeX*D,R.scaleY=this._sizeY*D}this.setSymbolScale(1),bn(this,f,A,h)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=kt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&zc(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();zc(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Sy(r.getItemVisual(n,"symbolSize"))},t}(It);function Jot(e,t){this.parent.drift(e,t)}var Ty=Zot;function KT(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function n6(e){return e!=null&&!St(e)&&(e={isIgnore:e}),e||{}}function a6(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:ca(t),cursorStyle:t.get("cursor")}}var est=function(){function e(t){this.group=new It,this._SymbolCtor=t||Ty}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=n6(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=a6(t),u={disableAnimation:s},c=r.getSymbolPoint||function(d){return t.getItemLayout(d)};i||n.removeAll(),t.diff(i).add(function(d){var f=c(d);if(KT(t,f,d,r)){var A=new o(t,d,l,u);A.setPosition(f),t.setItemGraphicEl(d,A),n.add(A)}}).update(function(d,f){var A=i.getItemGraphicEl(f),h=c(d);if(!KT(t,h,d,r)){n.remove(A);return}var v=t.getItemVisual(d,"symbol")||"circle",p=A&&A.getSymbolType&&A.getSymbolType();if(!A||p&&p!==v)n.remove(A),A=new o(t,d,l,u),A.setPosition(h);else{A.updateData(t,d,l,u);var g={x:h[0],y:h[1]};s?A.attr(g):fr(A,g,a)}n.add(A),t.setItemGraphicEl(d,A)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){n.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=a6(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=n6(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=r.getItemLayout(i);if(KT(r,o,i,n)){var s=new this._SymbolCtor(r,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){sd(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e}(),Ey=est;function Wae(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=tst(a,r),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,d=$e(e.dimensions,function(h){return t.mapDimension(h)}),f=!1,A=t.getCalculationInfo("stackResultDimension");return ru(t,d[0])&&(f=!0,d[0]=A),ru(t,d[1])&&(f=!0,d[1]=A),{dataDimsForPoint:d,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function tst(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:cr(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Gae(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function rst(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function nst(e,t,r,n,a,i,o,s){for(var l=rst(e,t),u=[],c=[],d=[],f=[],A=[],h=[],v=[],p=Wae(a,t,o),g=e.getLayout("points")||[],m=t.getLayout("points")||[],y=0;y<l.length;y++){var b=l[y],w=!0,x=void 0,S=void 0;switch(b.cmd){case"=":x=b.idx*2,S=b.idx1*2;var _=g[x],B=g[x+1],T=m[S],E=m[S+1];(isNaN(_)||isNaN(B))&&(_=T,B=E),u.push(_,B),c.push(T,E),d.push(r[x],r[x+1]),f.push(n[S],n[S+1]),v.push(t.getRawIndex(b.idx1));break;case"+":var I=b.idx,R=p.dataDimsForPoint,D=a.dataToPoint([t.get(R[0],I),t.get(R[1],I)]);S=I*2,u.push(D[0],D[1]),c.push(m[S],m[S+1]);var k=Gae(p,a,t,I);d.push(k[0],k[1]),f.push(n[S],n[S+1]),v.push(t.getRawIndex(I));break;case"-":w=!1}w&&(A.push(b),h.push(h.length))}h.sort(function(ne,le){return v[ne]-v[le]});for(var F=u.length,P=$s(F),O=$s(F),H=$s(F),V=$s(F),W=[],y=0;y<h.length;y++){var Z=h[y],ee=y*2,ae=Z*2;P[ee]=u[ae],P[ee+1]=u[ae+1],O[ee]=c[ae],O[ee+1]=c[ae+1],H[ee]=d[ae],H[ee+1]=d[ae+1],V[ee]=f[ae],V[ee+1]=f[ae+1],W[y]=A[Z]}return{current:P,next:O,stackedOnCurrent:H,stackedOnNext:V,status:W}}var Ru=Math.min,Du=Math.max;function Lf(e,t){return isNaN(e)||isNaN(t)}function PF(e,t,r,n,a,i,o,s,l){for(var u,c,d,f,A,h,v=r,p=0;p<n;p++){var g=t[v*2],m=t[v*2+1];if(v>=a||v<0)break;if(Lf(g,m)){if(l){v+=i;continue}break}if(v===r)e[i>0?"moveTo":"lineTo"](g,m),d=g,f=m;else{var y=g-u,b=m-c;if(y*y+b*b<.5){v+=i;continue}if(o>0){for(var w=v+i,x=t[w*2],S=t[w*2+1];x===g&&S===m&&p<n;)p++,w+=i,v+=i,x=t[w*2],S=t[w*2+1],g=t[v*2],m=t[v*2+1],y=g-u,b=m-c;var _=p+1;if(l)for(;Lf(x,S)&&_<n;)_++,w+=i,x=t[w*2],S=t[w*2+1];var B=.5,T=0,E=0,I=void 0,R=void 0;if(_>=n||Lf(x,S))A=g,h=m;else{T=x-u,E=S-c;var D=g-u,k=x-g,F=m-c,P=S-m,O=void 0,H=void 0;if(s==="x"){O=Math.abs(D),H=Math.abs(k);var V=T>0?1:-1;A=g-V*O*o,h=m,I=g+V*H*o,R=m}else if(s==="y"){O=Math.abs(F),H=Math.abs(P);var W=E>0?1:-1;A=g,h=m-W*O*o,I=g,R=m+W*H*o}else O=Math.sqrt(D*D+F*F),H=Math.sqrt(k*k+P*P),B=H/(H+O),A=g-T*o*(1-B),h=m-E*o*(1-B),I=g+T*o*B,R=m+E*o*B,I=Ru(I,Du(x,g)),R=Ru(R,Du(S,m)),I=Du(I,Ru(x,g)),R=Du(R,Ru(S,m)),T=I-g,E=R-m,A=g-T*O/H,h=m-E*O/H,A=Ru(A,Du(u,g)),h=Ru(h,Du(c,m)),A=Du(A,Ru(u,g)),h=Du(h,Ru(c,m)),T=g-A,E=m-h,I=g+T*H/O,R=m+E*H/O}e.bezierCurveTo(d,f,A,h,g,m),d=I,f=R}else e.lineTo(g,m)}u=g,c=m,v+=i}return p}var Kae=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),ast=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Kae},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Lf(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Lf(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=PF(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=nl.CMD,s,l,u=n==="x",c=[],d=0;d<i.length;){var f=i[d++],A=void 0,h=void 0,v=void 0,p=void 0,g=void 0,m=void 0,y=void 0;switch(f){case o.M:s=i[d++],l=i[d++];break;case o.L:if(A=i[d++],h=i[d++],y=u?(r-s)/(A-s):(r-l)/(h-l),y<=1&&y>=0){var b=u?(h-l)*y+l:(A-s)*y+s;return u?[r,b]:[b,r]}s=A,l=h;break;case o.C:A=i[d++],h=i[d++],v=i[d++],p=i[d++],g=i[d++],m=i[d++];var w=u?Hw(s,A,v,g,r,c):Hw(l,h,p,m,r,c);if(w>0)for(var x=0;x<w;x++){var S=c[x];if(S<=1&&S>=0){var b=u?Xn(l,h,p,m,S):Xn(s,A,v,g,S);return u?[r,b]:[b,r]}}s=g,l=m;break}}},t}(qt),ist=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Kae),jae=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new ist},t.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Lf(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Lf(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=PF(r,a,o,s,s,1,n.smooth,l,n.connectNulls);PF(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(qt);function Yae(e,t,r,n,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var d=new lr({shape:{x:o,y:s,width:l,height:u}});if(t){var f=e.getBaseAxis(),A=f.isHorizontal(),h=f.inverse;A?(h&&(d.shape.x+=l),d.shape.width=0):(h||(d.shape.y+=u),d.shape.height=0);var v=pt(a)?function(p){a(p,d)}:null;Zr(d,{shape:{width:l,height:u,x:o,y:s}},r,null,n,v)}return d}function Xae(e,t,r){var n=e.getArea(),a=hn(n.r0,1),i=hn(n.r,1),o=new Za({shape:{cx:hn(e.cx,1),cy:hn(e.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Zr(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function U_(e,t,r,n,a){if(e){if(e.type==="polar")return Xae(e,t,r);if(e.type==="cartesian2d")return Yae(e,t,r,n,a)}else return null;return null}function CA(e,t){return e.type===t}function i6(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function o6(e){for(var t=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<e.length;){var o=e[i++],s=e[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[t,r],[n,a]]}function s6(e,t){var r=o6(e),n=r[0],a=r[1],i=o6(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function l6(e){return cr(e)?e:e?.5:0}function ost(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=$s(n*2),i=0;i<n;i++){var o=Gae(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Fu(e,t,r,n){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],d=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&d.push(e[s],e[s+1]);e=d}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var f=(u[i]+c[i])/2,A=[];l[i]=A[i]=f,l[1-i]=u[1-i],A[1-i]=c[1-i],o.push(l[0],l[1]),o.push(A[0],A[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function sst(e,t){var r=[],n=e.length,a,i;function o(c,d,f){var A=c.coord,h=(f-A)/(d.coord-A),v=eL(h,[c.color,d.color]);return{coord:f,color:v}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?r.push(o(i,l,t)):a&&r.push(o(a,l,0),o(a,l,t));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function lst(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=e.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=$e(i.stops,function(y){return{coord:l.toGlobalCoord(l.dataToCoord(y.value)),color:y.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=sst(u,a==="x"?r.getWidth():r.getHeight()),A=f.length;if(!A&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var h=10,v=f[0].coord-h,p=f[A-1].coord+h,g=p-v;if(g<.001)return"transparent";z(f,function(y){y.offset=(y.coord-v)/g}),f.push({offset:A?f[A-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:A?f[0].offset:.5,color:d[0]||"transparent"});var m=new op(0,0,0,0,f,!0);return m[a]=v,m[a+"2"]=p,m}}}function ust(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(!!i&&!(a&&cst(i,t))){var o=t.mapDimension(i.dim),s={};return z(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function cst(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Ty.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function dst(e,t){return isNaN(e)||isNaN(t)}function fst(e){for(var t=e.length/2;t>0&&dst(e[t*2-2],e[t*2-1]);t--);return t-1}function u6(e,t){return[e[t*2],e[t*2+1]]}function Ast(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+a],!(isNaN(o)||isNaN(e[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function qae(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<qa.length;t++)if(e.get([qa[t],"endLabel","show"]))return!0;return!1}function jT(e,t,r,n){if(CA(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=qae(n)?function(A,h){e._endLabelOnDuring(A,h,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Yae(t,r,n,function(){var A=e._endLabel;A&&r&&s.originalX!=null&&A.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var d=c.shape,f=Math.max(d.width,d.height);u?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return l&&l(1,c),c}else return Xae(t,r,n)}function hst(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var vst=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new It,n=new Ey;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),d=l.getLayout("points")||[],f=o.type==="polar",A=this._coordSys,h=this._symbolDraw,v=this._polyline,p=this._polygon,g=this._lineGroup,m=r.get("animation"),y=!c.isEmpty(),b=c.get("origin"),w=Wae(o,l,b),x=y&&ost(o,l,w),S=r.get("showSymbol"),_=r.get("connectNulls"),B=S&&!f&&ust(r,l,o),T=this._data;T&&T.eachItemGraphicEl(function(le,se){le.__temp&&(s.remove(le),T.setItemGraphicEl(se,null))}),S||h.remove(),s.add(g);var E=f?!1:r.get("step"),I;o&&o.getArea&&r.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var R=lst(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&A.type===o.type&&E===this._step))S&&h.updateData(l,{isIgnore:B,clipShape:I,disableAnimation:!0,getSymbolPoint:function(le){return[d[le*2],d[le*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),E&&(d=Fu(d,o,E,_),x&&(x=Fu(x,o,E,_))),v=this._newPolyline(d),y?p=this._newPolygon(d,x):p&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(r,o,Xf(R)),g.setClipPath(jT(this,o,!0,r));else{y&&!p?p=this._newPolygon(d,x):p&&!y&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(r,o,Xf(R));var D=g.getClipPath();if(D){var k=jT(this,o,!1,r);Zr(D,{shape:k.shape},r)}else g.setClipPath(jT(this,o,!0,r));S&&h.updateData(l,{isIgnore:B,clipShape:I,disableAnimation:!0,getSymbolPoint:function(le){return[d[le*2],d[le*2+1]]}}),(!i6(this._stackedOnPoints,x)||!i6(this._points,d))&&(m?this._doUpdateAnimation(l,x,o,a,E,b,_):(E&&(d=Fu(d,o,E,_),x&&(x=Fu(x,o,E,_))),v.setShape({points:d}),p&&p.setShape({points:d,stackedOnPoints:x})))}var F=r.getModel("emphasis"),P=F.get("focus"),O=F.get("blurScope"),H=F.get("disabled");if(v.useStyle(yt(u.getLineStyle(),{fill:"none",stroke:R,lineJoin:"bevel"})),_a(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var V=v.getState("emphasis").style;V.lineWidth=+v.style.lineWidth+1}kt(v).seriesIndex=r.seriesIndex,bn(v,P,O,H);var W=l6(r.get("smooth")),Z=r.get("smoothMonotone");if(v.setShape({smooth:W,smoothMonotone:Z,connectNulls:_}),p){var ee=l.getCalculationInfo("stackedOnSeries"),ae=0;p.useStyle(yt(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ee&&(ae=l6(ee.get("smooth"))),p.setShape({smooth:W,stackedOnSmooth:ae,smoothMonotone:Z,connectNulls:_}),_a(p,r,"areaStyle"),kt(p).seriesIndex=r.seriesIndex,bn(p,P,O,H)}var ne=function(le){i._changePolyState(le)};l.eachItemGraphicEl(function(le){le&&(le.onHoverStateChange=ne)}),this._polyline.onHoverStateChange=ne,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=d,this._step=E,this._valueOrigin=b,r.get("triggerLineEvent")&&(this.packEventData(r,v),p&&this.packEventData(r,p))},t.prototype.packEventData=function(r,n){kt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=Kf(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],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=r.get("zlevel"),A=r.get("z");u=new Ty(o,s),u.x=c,u.y=d,u.setZ(f,A);var h=u.getSymbolPath().getTextContent();h&&(h.zlevel=f,h.z=A,h.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ur.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=Kf(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 Ur.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;Gw(this._polyline,r),n&&Gw(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new ast({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new jae({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,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=r.hostModel,c=u.get("animationDuration");pt(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=pt(d)?d(null):d;r.eachItemGraphicEl(function(A,h){var v=A;if(v){var p=[A.x,A.y],g=void 0,m=void 0,y=void 0;if(a)if(o){var b=a,w=n.pointToCoord(p);i?(g=b.startAngle,m=b.endAngle,y=-w[1]/180*Math.PI):(g=b.r0,m=b.r,y=w[0])}else{var x=a;i?(g=x.x,m=x.x+x.width,y=A.x):(g=x.y+x.height,m=x.y,y=A.y)}var S=m===g?0:(y-g)/(m-g);l&&(S=1-S);var _=pt(d)?d(h):c*S+f,B=v.getSymbolPath(),T=B.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:_}),B.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(qae(r)){var o=r.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 dr({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=fst(l);c>=0&&(Na(s,ca(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(d,f,A){return A!=null?Vae(o,A):Iv(o,d)},enableTextSetter:!0},hst(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,A=f.get("connectNulls"),h=s.get("precision"),v=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,y=n.shape,b=m?g?y.x:y.y+y.height:g?y.x+y.width:y.y,w=(g?v:0)*(m?-1:1),x=(g?0:-v)*(m?-1:1),S=g?"x":"y",_=Ast(d,b,S),B=_.range,T=B[1]-B[0],E=void 0;if(T>=1){if(T>1&&!A){var I=u6(d,B[0]);u.attr({x:I[0]+w,y:I[1]+x}),o&&(E=f.getRawValue(B[0]))}else{var I=c.getPointOn(b,S);I&&u.attr({x:I[0]+w,y:I[1]+x});var R=f.getRawValue(B[0]),D=f.getRawValue(B[1]);o&&(E=gte(a,h,R,D,_.t))}i.lastFrameIndex=B[0]}else{var k=r===1||i.lastFrameIndex>0?B[0]:0,I=u6(d,k);o&&(E=f.getRawValue(k)),u.attr({x:I[0]+w,y:I[1]+x})}o&&cp(u).setLabelText(E)}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=r.hostModel,f=nst(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),A=f.current,h=f.stackedOnCurrent,v=f.next,p=f.stackedOnNext;if(o&&(A=Fu(f.current,a,o,l),h=Fu(f.stackedOnCurrent,a,o,l),v=Fu(f.next,a,o,l),p=Fu(f.stackedOnNext,a,o,l)),s6(A,v)>3e3||c&&s6(h,p)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:p}));return}u.shape.__points=f.current,u.shape.points=A;var g={shape:{points:v}};f.current!==A&&(g.shape.__points=f.next),u.stopAnimation(),fr(u,g,d),c&&(c.setShape({points:A,stackedOnPoints:h}),c.stopAnimation(),fr(c,{shape:{stackedOnPoints:p}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],y=f.status,b=0;b<y.length;b++){var w=y[b].cmd;if(w==="="){var x=r.getItemGraphicEl(y[b].idx1);x&&m.push({el:x,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var S=u.shape.__points,_=0;_<m.length;_++){var B=m[_].el,T=m[_].ptIdx*2;B.x=S[T],B.y=S[T+1],B.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Ur),pst=vst;function Iy(e,t){return{seriesType:e,plan:pp(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=t||i.large;if(!!a){var s=$e(a.dimensions,function(A){return n.mapDimension(A)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");ru(n,s[0])&&(s[0]=u),ru(n,s[1])&&(s[1]=u);var c=n.getStore(),d=n.getDimensionIndex(s[0]),f=n.getDimensionIndex(s[1]);return l&&{progress:function(A,h){for(var v=A.end-A.start,p=o&&$s(v*l),g=[],m=[],y=A.start,b=0;y<A.end;y++){var w=void 0;if(l===1){var x=c.get(d,y);w=a.dataToPoint(x,null,m)}else g[0]=c.get(d,y),g[1]=c.get(f,y),w=a.dataToPoint(g,null,m);o?(p[b++]=w[0],p[b++]=w[1]):h.setItemLayout(y,w.slice())}o&&h.setLayout("points",p)}}}}}}var gst={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},mst=function(e){return Math.round(e.length/2)};function Zae(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=n.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),A=Math.round(s/f);if(isFinite(A)&&A>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/A));var h=void 0;Ze(i)?h=gst[i]:pt(i)&&(h=i),h&&t.setData(a.downSample(a.mapDimension(u.dim),1/A,h,mst))}}}}}function yst(e){e.registerChartView(pst),e.registerSeriesModel(qot),e.registerLayout(Iy("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Zae("line"))}var Jae=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Al(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r){var n=this.coordinateSystem;if(n&&n.clampData){var a=n.dataToPoint(n.clampData(r)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size"),l=n.getBaseAxis().isHorizontal()?0:1;return a[l]+=o+s/2,a}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}(Yr);Yr.registerClass(Jae);var AC=Jae,bst=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Al(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 r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ld(AC.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}(AC),xst=bst,wst=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}return e}(),Cst=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new wst},t.prototype.buildPath=function(r,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,d=n.endAngle,f=n.clockwise,A=Math.PI*2,h=f?d-c<A:c-d<A;h||(c=d-(f?A:-A));var v=Math.cos(c),p=Math.sin(c),g=Math.cos(d),m=Math.sin(d);h?(r.moveTo(v*o+a,p*o+i),r.arc(v*u+a,p*u+i,l,-Math.PI+c,c,!f)):r.moveTo(v*s+a,p*s+i),r.arc(a,i,s,c,d,!f),r.arc(g*u+a,m*u+i,l,d-Math.PI*2,d-Math.PI,!f),o!==0&&r.arc(a,i,o,d,c,f)},t}(qt),hC=Cst;function Sst(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Vw(n,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,d=u.cy,f=u.r,A=u.r0,h=(f+A)/2,v=u.startAngle,p=u.endAngle,g=(v+p)/2,m=r?Math.abs(f-A)/2:0,y=Math.cos,b=Math.sin,w=c+f*y(v),x=d+f*b(v),S="left",_="top";switch(s){case"startArc":w=c+(A-l)*y(g),x=d+(A-l)*b(g),S="center",_="top";break;case"insideStartArc":w=c+(A+l)*y(g),x=d+(A+l)*b(g),S="center",_="bottom";break;case"startAngle":w=c+h*y(v)+R1(v,l+m,!1),x=d+h*b(v)+D1(v,l+m,!1),S="right",_="middle";break;case"insideStartAngle":w=c+h*y(v)+R1(v,-l+m,!1),x=d+h*b(v)+D1(v,-l+m,!1),S="left",_="middle";break;case"middle":w=c+h*y(g),x=d+h*b(g),S="center",_="middle";break;case"endArc":w=c+(f+l)*y(g),x=d+(f+l)*b(g),S="center",_="bottom";break;case"insideEndArc":w=c+(f-l)*y(g),x=d+(f-l)*b(g),S="center",_="top";break;case"endAngle":w=c+h*y(p)+R1(p,l+m,!0),x=d+h*b(p)+D1(p,l+m,!0),S="left",_="middle";break;case"insideEndAngle":w=c+h*y(p)+R1(p,-l+m,!0),x=d+h*b(p)+D1(p,-l+m,!0),S="right",_="middle";break;default:return Vw(n,a,i)}return n=n||{},n.x=w,n.y=x,n.align=S,n.verticalAlign=_,n}}function _st(e,t,r,n){if(cr(n)){e.setTextConfig({rotation:n});return}else if(Pe(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function R1(e,t,r){return t*Math.sin(e)*(r?-1:1)}function D1(e,t,r){return t*Math.cos(e)*(r?1:-1)}var YT=Math.max,XT=Math.min;function Bst(e,t){var r=e.getArea&&e.getArea();if(CA(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var Tst=function(e){xe(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){sd(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),d;u.type==="cartesian2d"?d=c.isHorizontal():u.type==="polar"&&(d=c.dim==="angle");var f=r.isAnimationEnabled()?r:null,A=Est(r,u);A&&this._enableRealtimeSort(A,s,a);var h=r.get("clip",!0)||A,v=Bst(u,s);o.removeClipPath();var p=r.get("roundCap",!0),g=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),y=m.get("borderRadius")||0,b=[],w=this._backgroundEls,x=i&&i.isInitSort,S=i&&i.type==="changeAxisOrder";function _(E){var I=F1[u.type](s,E),R=Pst(u,d,I);return R.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&R.setShape("r",y),b[E]=R,R}s.diff(l).add(function(E){var I=s.getItemModel(E),R=F1[u.type](s,E,I);if(g&&_(E),!(!s.hasValue(E)||!h6[u.type](R))){var D=!1;h&&(D=c6[u.type](v,R));var k=d6[u.type](r,s,E,R,d,f,c.model,!1,p);A&&(k.forceLabelAnimation=!0),v6(k,s,E,I,R,r,d,u.type==="polar"),x?k.attr({shape:R}):A?f6(A,f,k,R,E,d,!1,!1):Zr(k,{shape:R},r,E),s.setItemGraphicEl(E,k),o.add(k),k.ignore=D}}).update(function(E,I){var R=s.getItemModel(E),D=F1[u.type](s,E,R);if(g){var k=void 0;w.length===0?k=_(I):(k=w[I],k.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&k.setShape("r",y),b[E]=k);var F=F1[u.type](s,E),P=tie(d,F,u);fr(k,{shape:P},f,E)}var O=l.getItemGraphicEl(I);if(!s.hasValue(E)||!h6[u.type](D)){o.remove(O);return}var H=!1;if(h&&(H=c6[u.type](v,D),H&&o.remove(O)),O?ds(O):O=d6[u.type](r,s,E,D,d,f,c.model,!!O,p),A&&(O.forceLabelAnimation=!0),S){var V=O.getTextContent();if(V){var W=cp(V);W.prevValue!=null&&(W.prevValue=W.value)}}else v6(O,s,E,R,D,r,d,u.type==="polar");x?O.attr({shape:D}):A?f6(A,f,O,D,E,d,!0,S):fr(O,{shape:D},r,E,null),s.setItemGraphicEl(E,O),O.ignore=H,o.add(O)}).remove(function(E){var I=l.getItemGraphicEl(E);I&&vm(I,r,E)}).execute();var B=this._backgroundGroup||(this._backgroundGroup=new It);B.removeAll();for(var T=0;T<b.length;++T)B.add(b[T]);o.add(B),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),g6(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),g6(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&U_(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(!!n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=a(s);l=l==null?NaN:l,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:$e(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),d=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(d>s)return!0;s=d}return!1},t.prototype._isOrderDifferentInView=function(r,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(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(!!this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,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(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){vm(i,r,kt(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}(Ur),c6={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=YT(t.x,e.x),s=XT(t.x+t.width,a),l=YT(t.y,e.y),u=XT(t.y+t.height,i),c=s<o,d=u<l;return t.x=c&&o>a?s:o,t.y=d&&l>i?u:l,t.width=c?0:s-o,t.height=d?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=XT(t.r,e.r),i=YT(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},d6={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new lr({shape:Me({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?hC:Za,c=new u({shape:n,z2:1});c.name="item";var d=eie(a);if(c.calculateTextPosition=Sst(d,{isRoundCap:u===hC}),i){var f=c.shape,A=a?"r":"endAngle",h={};f[A]=a?0:n.startAngle,h[A]=n[A],(s?fr:Zr)(c,{shape:h},i)}return c}};function Est(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function f6(e,t,r,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?fr:Zr)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?fr:Zr)(r,{shape:u},c,a)}function A6(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var Ist=["x","y","width","height"],Rst=["cx","cy","r","startAngle","endAngle"],h6={cartesian2d:function(e){return!A6(e,Ist)},polar:function(e){return!A6(e,Rst)}},F1={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?Fst(r,n):0,i=n.width>0?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(e,t,r){var n=e.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 Dst(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function eie(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function v6(e,t,r,n,a,i,o,s){var l=t.getItemVisual(r,"style");s||e.setShape("r",n.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=n.getShallow("cursor");u&&e.attr("cursor",u);var c=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=ca(n);Na(e,d,{labelFetcher:i,labelDataIndex:r,defaultText:Iv(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var f=e.getTextContent();if(s&&f){var A=n.get(["label","position"]);e.textConfig.inside=A==="middle"?!0:null,_st(e,A==="outside"?c:A,eie(o),n.get(["label","rotate"]))}pre(f,d,i.getRawValue(r),function(v){return Vae(t,v)});var h=n.getModel(["emphasis"]);bn(e,h.get("focus"),h.get("blurScope"),h.get("disabled")),_a(e,n),Dst(a)&&(e.style.fill="none",e.style.stroke="none",z(e.states,function(v){v.style&&(v.style.fill=v.style.stroke="none")}))}function Fst(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.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 Mst=function(){function e(){}return e}(),p6=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new Mst},t.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(qt);function g6(e,t,r,n){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new p6({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var d=new p6({shape:{points:a.getLayout("largePoints")},incremental:!!n,z2:1});d.baseDimIdx=i,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(a.getVisual("style")),kt(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",m6),d.on("mousemove",m6)),r&&r.push(d)}var m6=F_(function(e){var t=this,r=kst(t,e.offsetX,e.offsetY);kt(t).dataIndex=r>=0?r:null},30,!1);function kst(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=i.length/3;c<d;c++){var f=c*3;if(l[n]=u,l[a]=i[f+2],s[n]=i[f+n],s[a]=i[f+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function tie(e,t,r){if(CA(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function Pst(e,t,r){var n=e.type==="polar"?Za:lr;return new n({shape:tie(t,r,e),silent:!0,z2:0})}var Lst=Tst;function Ost(e){e.registerChartView(Lst),e.registerSeriesModel(xst),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Lt(sae,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lae("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Zae("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var M1=Math.PI*2,y6=Math.PI/180;function rie(e,t){return zn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function nie(e,t){var r=rie(e,t),n=e.get("center"),a=e.get("radius");Pe(a)||(a=[0,a]),Pe(n)||(n=[n,n]);var i=Ye(r.width,t.getWidth()),o=Ye(r.height,t.getHeight()),s=Math.min(i,o),l=Ye(n[0],i)+r.x,u=Ye(n[1],o)+r.y,c=Ye(a[0],s/2),d=Ye(a[1],s/2);return{cx:l,cy:u,r0:c,r:d}}function $st(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),i=a.mapDimension("value"),o=rie(n,r),s=nie(n,r),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-n.get("startAngle")*y6,A=n.get("minAngle")*y6,h=0;a.each(i,function(T){!isNaN(T)&&h++});var v=a.getSum(i),p=Math.PI/(v||h)*2,g=n.get("clockwise"),m=n.get("roseType"),y=n.get("stillShowZeroSum"),b=a.getDataExtent(i);b[0]=0;var w=M1,x=0,S=f,_=g?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(T,E){var I;if(isNaN(T)){a.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:d,r:m?NaN:c});return}m!=="area"?I=v===0&&y?p:T*p:I=M1/h,I<A?(I=A,w-=A):x+=T;var R=S+_*I;a.setItemLayout(E,{angle:I,startAngle:S,endAngle:R,clockwise:g,cx:l,cy:u,r0:d,r:m?Tr(T,b,[d,c]):c}),S=R}),w<M1&&h)if(w<=.001){var B=M1/h;a.each(i,function(T,E){if(!isNaN(T)){var I=a.getItemLayout(E);I.angle=B,I.startAngle=f+_*E*B,I.endAngle=f+_*(E+1)*B}})}else p=w/x,S=f,a.each(i,function(T,E){if(!isNaN(T)){var I=a.getItemLayout(E),R=I.angle===A?A:T*p;I.startAngle=S,I.endAngle=S+_*R,S+=_*R}})})}function Ry(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Ust=Math.PI/180;function b6(e,t,r,n,a,i,o,s,l,u){if(e.length<2)return;function c(v){for(var p=v.rB,g=p*p,m=0;m<v.list.length;m++){var y=v.list[m],b=Math.abs(y.label.y-r),w=n+y.len,x=w*w,S=Math.sqrt((1-Math.abs(b*b/g))*x),_=t+(S+y.len2)*a,B=_-y.label.x,T=y.targetTextWidth-B*a;aie(y,T,!0),y.label.x=_}}function d(v){for(var p={list:[],maxY:0},g={list:[],maxY:0},m=0;m<v.length;m++)if(v[m].labelAlignTo==="none"){var y=v[m],b=y.label.y>r?g:p,w=Math.abs(y.label.y-r);if(w>=b.maxY){var x=y.label.x-t-y.len2*a,S=n+y.len,_=Math.abs(x)<S?Math.sqrt(w*w/(1-x*x/S/S)):S;b.rB=_,b.maxY=w}b.list.push(y)}c(p),c(g)}for(var f=e.length,A=0;A<f;A++)if(e[A].position==="outer"&&e[A].labelAlignTo==="labelLine"){var h=e[A].label.x-u;e[A].linePoints[1][0]+=h,e[A].label.x=u}Rae(e,l,l+o)&&d(e)}function Hst(e,t,r,n,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var A=e[f].label;qT(e[f])||(A.x<t?(c=Math.min(c,A.x),l.push(e[f])):(d=Math.max(d,A.x),u.push(e[f])))}for(var f=0;f<e.length;f++){var h=e[f];if(!qT(h)&&h.linePoints){if(h.labelStyleWidth!=null)continue;var A=h.label,v=h.linePoints,p=void 0;h.labelAlignTo==="edge"?A.x<t?p=v[2][0]-h.labelDistance-o-h.edgeDistance:p=o+a-h.edgeDistance-v[2][0]-h.labelDistance:h.labelAlignTo==="labelLine"?A.x<t?p=c-o-h.bleedMargin:p=o+a-d-h.bleedMargin:A.x<t?p=A.x-o-h.bleedMargin:p=o+a-A.x-h.bleedMargin,h.targetTextWidth=p,aie(h,p)}}b6(u,t,r,n,1,a,i,o,s,d),b6(l,t,r,n,-1,a,i,o,s,c);for(var f=0;f<e.length;f++){var h=e[f];if(!qT(h)&&h.linePoints){var A=h.label,v=h.linePoints,g=h.labelAlignTo==="edge",m=A.style.padding,y=m?m[1]+m[3]:0,b=A.style.backgroundColor?0:y,w=h.rect.width+b,x=v[1][0]-v[2][0];g?A.x<t?v[2][0]=o+h.edgeDistance+w+h.labelDistance:v[2][0]=o+a-h.edgeDistance-w-h.labelDistance:(A.x<t?v[2][0]=A.x+h.labelDistance:v[2][0]=A.x-h.labelDistance,v[1][0]=v[2][0]+x),v[1][1]=v[2][1]=A.y}}}function aie(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,a=n.style,i=e.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(t<c||r){var d=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var f=n.getBoundingRect();n.setStyle("width",Math.ceil(f.width)),n.setStyle("backgroundColor",o)}else{var A=t-l,h=t<c?A:r?A>e.unconstrainedWidth?null:A:null;n.setStyle("width",h)}var v=n.getBoundingRect();i.width=v.width;var p=(n.style.margin||0)+2.1;i.height=v.height+p,i.y-=(i.height-d)/2}}}function qT(e){return e.position==="center"}function zst(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*Ust,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function A(x){x.ignore=!0}function h(x){if(!x.ignore)return!0;for(var S in x.states)if(x.states[S].ignore===!1)return!0;return!1}t.each(function(x){var S=t.getItemGraphicEl(x),_=S.shape,B=S.getTextContent(),T=S.getTextGuideLine(),E=t.getItemModel(x),I=E.getModel("label"),R=I.get("position")||E.get(["emphasis","label","position"]),D=I.get("distanceToLabelLine"),k=I.get("alignTo"),F=Ye(I.get("edgeDistance"),u),P=I.get("bleedMargin"),O=E.getModel("labelLine"),H=O.get("length");H=Ye(H,u);var V=O.get("length2");if(V=Ye(V,u),Math.abs(_.endAngle-_.startAngle)<o){z(B.states,A),B.ignore=!0;return}if(!!h(B)){var W=(_.startAngle+_.endAngle)/2,Z=Math.cos(W),ee=Math.sin(W),ae,ne,le,se;n=_.cx,a=_.cy;var ce=R==="inside"||R==="inner";if(R==="center")ae=_.cx,ne=_.cy,se="center";else{var ye=(ce?(_.r+_.r0)/2*Z:_.r*Z)+n,fe=(ce?(_.r+_.r0)/2*ee:_.r*ee)+a;if(ae=ye+Z*3,ne=fe+ee*3,!ce){var Q=ye+Z*(H+l-_.r),J=fe+ee*(H+l-_.r),U=Q+(Z<0?-1:1)*V,K=J;k==="edge"?ae=Z<0?c+F:c+u-F:ae=U+(Z<0?-D:D),ne=K,le=[[ye,fe],[Q,J],[U,K]]}se=ce?"center":k==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var q=Math.PI,ie=0,$=I.get("rotate");if(cr($))ie=$*(q/180);else if(R==="center")ie=0;else if($==="radial"||$===!0){var re=Z<0?-W+q:-W;ie=re}else if($==="tangential"&&R!=="outside"&&R!=="outer"){var ve=Math.atan2(Z,ee);ve<0&&(ve=q*2+ve);var he=ee>0;he&&(ve=q+ve),ie=ve-q}if(i=!!ie,B.x=ae,B.y=ne,B.rotation=ie,B.setStyle({verticalAlign:"middle"}),ce){B.setStyle({align:se});var te=B.states.select;te&&(te.x+=B.x,te.y+=B.y)}else{var oe=B.getBoundingRect().clone();oe.applyTransform(B.getComputedTransform());var Y=(B.style.margin||0)+2.1;oe.y-=Y/2,oe.height+=Y,r.push({label:B,labelLine:T,position:R,len:H,len2:V,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new zt(Z,ee),linePoints:le,textAlign:se,labelDistance:D,labelAlignTo:k,edgeDistance:F,bleedMargin:P,rect:oe,unconstrainedWidth:oe.width,labelStyleWidth:B.style.width})}S.setTextConfig({inside:ce})}}),!i&&e.get("avoidLabelOverlap")&&Hst(r,n,a,l,u,f,c,d);for(var v=0;v<r.length;v++){var p=r[v],g=p.label,m=p.labelLine,y=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),y&&(z(g.states,A),g.ignore=!0);var b=g.states.select;b&&(b.x+=g.x,b.y+=g.y)}if(m){var w=p.linePoints;y||!w?(z(m.states,A),m.ignore=!0):(Tae(w,p.minTurnAngle),Jit(w,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:w}),g.__hostTarget.textGuideLineConfig={anchor:new zt(w[0][0],w[0][1])})}}}function Oh(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Pe(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:$e(n,function(i){return us(i,a)})}}var Nst=function(e){xe(t,e);function t(r,n,a){var i=e.call(this)||this;i.z2=2;var o=new dr;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),d=Me(Oh(l.getModel("itemStyle"),c,!0),c);if(isNaN(d.startAngle)){o.setShape(d);return}if(i){o.setShape(d);var f=s.getShallow("animationType");s.ecModel.ssr?(Zr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=d.cx,o.originY=d.cy):f==="scale"?(o.shape.r=c.r0,Zr(o,{shape:{r:c.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Zr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,fr(o,{shape:{endAngle:c.endAngle}},s,n))}else ds(o),fr(o,{shape:d},s,n);o.useStyle(r.getItemVisual(n,"style")),_a(o,l);var A=(c.startAngle+c.endAngle)/2,h=s.get("selectedOffset"),v=Math.cos(A)*h,p=Math.sin(A)*h,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=Me({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Oh(u.getModel("itemStyle"),c)),Me(o.ensureState("select"),{x:v,y:p,shape:Oh(l.getModel(["select","itemStyle"]),c)}),Me(o.ensureState("blur"),{shape:Oh(l.getModel(["blur","itemStyle"]),c)});var m=o.getTextGuideLine(),y=o.getTextContent();m&&Me(m.ensureState("select"),{x:v,y:p}),Me(y.ensureState("select"),{x:v,y:p}),bn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;Na(i,ca(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var d=i.getTextContent();i.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var f=r.get(["label","position"]);if(f!=="outside"&&f!=="outer")i.removeTextGuideLine();else{var A=this.getTextGuideLine();A||(A=new ei,this.setTextGuideLine(A)),s4(this,l4(o),{stroke:u,opacity:Gs(s.get(["lineStyle","opacity"]),c,1)})}},t}(Za),Qst=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d<o.count();++d)c=o.getItemLayout(d);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var f=new Za({shape:nie(r,a)});f.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=f,l.add(f)}o.diff(s).add(function(A){var h=new Nst(o,A,u);o.setItemGraphicEl(A,h),l.add(h)}).update(function(A,h){var v=s.getItemGraphicEl(h);v.updateData(o,A,u),v.off("click"),l.add(v),o.setItemGraphicEl(A,v)}).remove(function(A){var h=s.getItemGraphicEl(A);vm(h,r,A)}).execute(),zst(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(Ur),Vst=Qst;function xp(e,t,r){t=Pe(t)&&{coordDimensions:t}||Me({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=yp(n,t).dimensions,i=new Ua(a,e);return i.initData(n,r),i}var Wst=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),Dy=Wst,Gst=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Dy(tt(this.getData,this),tt(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return xp(this,{coordDimensions:["value"],encodeDefaulter:Lt(FL,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=e.prototype.getDataParams.call(this,r),i=[];return n.each(n.mapDimension("value"),function(o){i.push(o)}),a.percent=lte(i,r,n.hostModel.get("percentPrecision")),a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(r){Gf(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.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}(Yr),Kst=Gst;function jst(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(cr(o)&&!isNaN(o)&&o<0)})}}}function Yst(e){e.registerChartView(Vst),e.registerSeriesModel(Kst),xne("pie",e.registerAction),e.registerLayout(Lt($st,"pie")),e.registerProcessor(Ry("pie")),e.registerProcessor(jst("pie"))}var Xst=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return Al(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r==null?this.option.large?5e3:this.get("progressive"):r},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r==null?this.option.large?1e4:this.get("progressiveThreshold"):r},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},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}(Yr),qst=Xst,iie=4,Zst=function(){function e(){}return e}(),Jst=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new Zst},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&i[0]<iie,c=this.softClipShape,d;if(u){this._ctx=l;return}for(this._ctx=null,d=this._off;d<a.length;){var f=a[d++],A=a[d++];isNaN(f)||isNaN(A)||c&&!c.contain(f,A)||(s.x=f-i[0]/2,s.y=A-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=d,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,a=r.size,i=this._ctx,o=this.softClipShape,s;if(!!i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(r>=d&&n>=f&&r<=d+s&&n<=f+l)return u}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){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,d=-1/0,f=0;f<a.length;){var A=a[f++],h=a[f++];l=Math.min(A,l),c=Math.max(A,c),u=Math.min(h,u),d=Math.max(h,d)}r=this._rect=new Kt(l-o/2,u-s/2,c-l+o,d-u+s)}return r},t}(qt),elt=function(){function e(){this.group=new It}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;r=new Float32Array(r.buffer,i,a)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var a=this._newAdded[0],i=r.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new Jst({cursor:"default"});return this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;n=n||{};var i=r.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=Fn(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<iie;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=kt(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var d=t.hoverDataIdx;d>=0&&(u.dataIndex=d+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),tlt=elt,rlt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,a){var i=r.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Iy("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(r,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new tlt:new Ey,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Ur),nlt=rlt,alt=function(e){xe(t,e);function t(){return e!==null&&e.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}(ir),ilt=alt,LF=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Hn).models[0]},t.type="cartesian2dAxis",t}(ir);xn(LF,bp);var oie={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)"]}}},olt=Ut({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},oie),A4=Ut({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}}},oie),slt=Ut({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},A4),llt=yt({logBase:10},A4),sie={category:olt,value:A4,time:slt,log:llt},ult={value:1,category:1,time:1,log:1};function Rv(e,t,r,n){z(ult,function(a,i){var o=Ut(Ut({},sie[i],!0),n,!0),s=function(l){xe(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,d){var f=mm(this),A=f?fp(c):{},h=d.getTheme();Ut(c,h.get(i+"Axis")),Ut(c,this.getDefaultOption()),c.type=x6(c),f&&Nc(c,A,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=EF.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",x6)}function x6(e){return e.type||(e.data?"category":"value")}var clt=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return $e(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Rr(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),dlt=clt,OF=["x","y"];function w6(e){return e.type==="interval"||e.type==="time"}var flt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=OF,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!w6(r)||!w6(n))){var a=r.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,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,A=o[1]-i[0]*d,h=this._transform=[c,0,0,d,f,A];this._invTransform=bA([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new Kt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ua(a,r,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(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[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(r,n){var a=[];if(this._invTransform)return ua(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1]),i=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-a,s=Math.max(n[0],n[1])-i;return new Kt(a,i,o,s)},t}(dlt),Alt=flt,hlt=function(e){xe(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Po),vlt=hlt;function $F(e,t,r){r=r||{};var n=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},A=t.get("offset")||0,h=u==="x"?[d[2]-A,d[3]+A]:[d[0]-A,d[1]+A];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}i.position=[u==="y"?h[f[l]]:d[0],u==="x"?h[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[s],i.labelOffset=o?h[f[s]]-h[f.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ea(r.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 C6(e){return e.get("coordinateSystem")==="cartesian2d"}function S6(e){var t={xAxisModel:null,yAxisModel:null};return z(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,Hn).models[0];t[n]=i}),t}var ZT=Math.log;function lie(e,t,r){var n=Qc.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=vae(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if(e.type==="log"){var f=ZT(e.base);u=[ZT(u[0])/f,ZT(u[1])/f]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var A=n.getExtent.call(e);c&&(u[0]=A[0]),d&&(u[1]=A[1]);var h=n.getInterval.call(e),v=u[0],p=u[1];if(c&&d)h=(p-v)/o;else if(c)for(p=u[0]+h*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)h=$T(h),p=u[0]+h*o;else if(d)for(v=u[1]-h*o;v>u[0]&&isFinite(v)&&isFinite(u[0]);)h=$T(h),v=u[1]-h*o;else{var g=e.getTicks().length-1;g>o&&(h=$T(h));var m=h*o;p=Math.ceil(u[1]/h)*h,v=hn(p-m),v<0&&u[0]>=0?(v=0,p=hn(m)):p>0&&u[1]<=0&&(p=0,v=-hn(m))}var y=(a[0].value-i[0].value)/s,b=(a[o].value-i[o].value)/s;n.setExtent.call(e,v+h*y,p+h*b),n.setInterval.call(e,h),(y||b)&&n.setNiceExtent.call(e,v+h,p-h)}var plt=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=OF,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=tr(o),u=l.length;if(!!u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],A=o[f],h=A.model,v=A.scale;IF(v)&&h.get("alignTicks")&&h.get("interval")==null?c.push(A):(qf(v,h),IF(v)&&(s=A))}c.length&&(s||(s=c.pop(),qf(s.scale,s.model)),z(c,function(p){lie(p.scale,p.model,s.scale)}))}}a(n.x),a(n.y);var i={};z(n.x,function(o){_6(n,"y",o,i)}),z(n.y,function(o){_6(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=zn(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(z(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=vit(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),z(this._coordsList,function(u){u.calcAffineTransform()});function l(){z(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),glt(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}St(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===r)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Hn).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",Hn).models[0],i=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Gt(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,z(s.x,function(c,d){z(s.y,function(f,A){var h="x"+d+"y"+A,v=new Alt(h);v.master=a,v.model=t,a._coordsMap[h]=v,a._coordsList.push(v),v.addAxis(c),v.addAxis(f)})});function u(c){return function(d,f){if(!!JT(d,t)){var A=d.get("position");c==="x"?A!=="top"&&A!=="bottom"&&(A=o.bottom?"top":"bottom"):A!=="left"&&A!=="right"&&(A=o.left?"right":"left"),o[A]=!0;var h=new vlt(c,_y(d),[0,0],d.get("type"),A),v=h.type==="category";h.onBand=v&&d.get("boundaryGap"),h.inverse=d.get("inverse"),d.axis=h,h.model=d,h.grid=i,h.index=f,i._axesList.push(h),s[c][f]=h,l[c]++}}}},e.prototype._updateScale=function(t,r){z(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(C6(a)){var i=S6(a),o=i.xAxisModel,s=i.yAxisModel;if(!JT(o,r)||!JT(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),d=l.getAxis("y");n(u,c),n(u,d)}},this);function n(a,i){z(uC(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return z(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);Gt(r,i)<0&&r.push(i),Gt(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(!!C6(a)){var i=S6(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=OF,e}();function JT(e,t){return e.getCoordSysModel()===t}function _6(e,t,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)B6(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&B6(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(d){return d.dim+"_"+d.index}}function B6(e){return e&&e.type!=="category"&&e.type!=="time"&&hit(e)}function glt(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}var mlt=plt,ac=Math.PI,Of=function(){function e(t,r){this.group=new It,this.opt=r,this.axisModel=t,yt(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new It({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!T6[t]},e.prototype.add=function(t){T6[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=aL(r-t),i,o;return cm(a)?(o=n>0?"top":"bottom",i="center"):cm(a-ac)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<ac?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),T6={axisLine:function(e,t,r,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0];o&&(ua(s,s,o),ua(l,l,o));var u=Me({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new ta({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",r.add(c);var d=t.get(["axisLine","symbol"]);if(d!=null){var f=t.get(["axisLine","symbolSize"]);Ze(d)&&(d=[d,d]),(Ze(f)||cr(f))&&(f=[f,f]);var A=mp(t.get(["axisLine","symbolOffset"])||0,f),h=f[0],v=f[1];z([{rotate:e.rotation+Math.PI/2,offset:A[0],r:0},{rotate:e.rotation-Math.PI/2,offset:A[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(p,g){if(d[g]!=="none"&&d[g]!=null){var m=Fn(d[g],-h/2,-v/2,h,v,u.stroke,!0),y=p.r+p.offset;m.attr({rotation:p.rotate,x:s[0]+y*Math.cos(e.rotation),y:s[1]-y*Math.sin(e.rotation),silent:!0,z2:11}),r.add(m)}})}}},axisTickLabel:function(e,t,r,n){var a=xlt(r,n,t,e),i=Clt(r,n,t,e);if(blt(t,i,a),wlt(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Eae($e(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Dae(o)}},axisName:function(e,t,r,n){var a=ea(e.axisName,t.get("name"));if(!!a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,I6(i)?e.labelOffset+o*l:0],f,A=t.get("nameRotate");A!=null&&(A=A*ac/180);var h;I6(i)?f=Of.innerTextLayout(e.rotation,A!=null?A:e.rotation,o):(f=ylt(e.rotation,i,A||0,u),h=e.axisNameAvailableWidth,h!=null&&(h=Math.abs(h/Math.sin(f.rotation)),!isFinite(h)&&(h=null)));var v=s.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,m=ea(e.nameTruncateMaxWidth,p.maxWidth,h),y=new dr({x:d[0],y:d[1],rotation:f.rotation,silent:Of.isLabelSilent(t),style:Jr(s,{text:a,font:v,overflow:"truncate",width:m,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(up({el:y,componentModel:t,itemName:a}),y.__fullText=a,y.anid="name",t.get("triggerEvent")){var b=Of.makeAxisEventDataBase(t);b.targetType="axisName",b.name=a,kt(y).eventData=b}n.add(y),y.updateTransform(),r.add(y),y.decomposeTransform()}}};function ylt(e,t,r,n){var a=aL(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return cm(a-ac/2)?(o=l?"bottom":"top",i="center"):cm(a-ac*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<ac*1.5&&a>ac/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function blt(e,t,r){if(!pae(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],d=r[r.length-1],f=r[r.length-2];n===!1?(Ji(i),Ji(u)):E6(i,o)&&(n?(Ji(o),Ji(c)):(Ji(i),Ji(u))),a===!1?(Ji(s),Ji(d)):E6(l,s)&&(a?(Ji(l),Ji(f)):(Ji(s),Ji(d)))}}function Ji(e){e&&(e.ignore=!0)}function E6(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=Ay([]);return od(a,a,-e.rotation),r.applyTransform(js([],a,e.getLocalTransform())),n.applyTransform(js([],a,t.getLocalTransform())),r.intersect(n)}}function I6(e){return e==="middle"||e==="center"}function uie(e,t,r,n,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(ua(o,o,t),ua(s,s,t));var c=new ta({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function xlt(e,t,r,n){var a=r.axis,i=r.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),c=uie(u,t.transform,l,yt(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<c.length;d++)e.add(c[d]);return c}}function wlt(e,t,r,n){var a=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(!!o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=yt(s.getLineStyle(),yt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var d=uie(o[c],t.transform,l,u,"minorticks_"+c),f=0;f<d.length;f++)e.add(d[f])}}function Clt(e,t,r,n){var a=r.axis,i=ea(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(ea(n.labelRotate,o.get("rotate"))||0)*ac/180,c=Of.innerTextLayout(n.rotation,u,n.labelDirection),d=r.getCategories&&r.getCategories(!0),f=[],A=Of.isLabelSilent(r),h=r.get("triggerEvent");return z(l,function(v,p){var g=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(v.tickValue):v.tickValue,m=v.formattedLabel,y=v.rawLabel,b=o;if(d&&d[g]){var w=d[g];St(w)&&w.textStyle&&(b=new Or(w.textStyle,o,r.ecModel))}var x=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),S=a.dataToCoord(g),_=new dr({x:S,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:A,z2:10+(v.level||0),style:Jr(b,{text:m,align:b.getShallow("align",!0)||c.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,fill:pt(x)?x(a.type==="category"?y:a.type==="value"?g+"":g,p):x})});if(_.anid="label_"+g,h){var B=Of.makeAxisEventDataBase(r);B.targetType="axisLabel",B.value=y,B.tickIndex=p,a.type==="category"&&(B.dataIndex=g),kt(_).eventData=B}t.add(_),_.updateTransform(),f.push(_),e.add(_),_.decomposeTransform()}),f}}var nu=Of;function Slt(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return _lt(r,e,t),r.seriesInvolved&&Tlt(r,e),r}function _lt(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];z(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Bm(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,d=c.getModel("tooltip",n);if(z(s.getAxes(),Lt(v,!1,null)),s.getTooltipAxes&&n&&d.get("show")){var f=d.get("trigger")==="axis",A=d.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(d.get(["axisPointer","axis"]));(f||A)&&z(h.baseAxes,Lt(v,A?"cross":!0,f)),A&&z(h.otherAxes,Lt(v,"cross",!1))}function v(p,g,m){var y=m.model.getModel("axisPointer",a),b=y.get("show");if(!(!b||b==="auto"&&!p&&!UF(y))){g==null&&(g=y.get("triggerTooltip")),y=p?Blt(m,d,a,t,p,g):y;var w=y.get("snap"),x=Bm(m.model),S=g||w||m.type==="category",_=e.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:y,triggerTooltip:g,involveSeries:S,snap:w,useHandle:UF(y),seriesModels:[],linkGroup:null};u[x]=_,e.seriesInvolved=e.seriesInvolved||S;var B=Elt(i,m);if(B!=null){var T=o[B]||(o[B]={axesInfo:{}});T.axesInfo[x]=_,T.mapper=i[B].mapper,_.linkGroup=T}}}})}function Blt(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};z(s,function(f){l[f]=Bt(o.get(f))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c!=null?c:!0,!i){var d=l.lineStyle=o.get("crossStyle");d&&yt(u,d.textStyle)}}return e.model.getModel("axisPointer",new Or(l,r,n))}function Tlt(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||z(e.coordSysAxesInfo[Bm(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Elt(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(eE(i[n+"AxisId"],r.id)||eE(i[n+"AxisIndex"],r.componentIndex)||eE(i[n+"AxisName"],r.name))return a}}function eE(e,t){return e==="all"||Pe(e)&&Gt(e,t)>=0||e===t}function Ilt(e){var t=h4(e);if(!!t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=UF(r);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]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function h4(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Bm(e)]}function Rlt(e){var t=h4(e);return t&&t.axisPointerModel}function UF(e){return!!e.get(["handle","show"])}function Bm(e){return e.type+"||"+e.id}var R6={},Dlt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.axisPointerClass&&Ilt(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(!!i){var o=Rlt(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){R6[r]=n},t.getAxisPointerClass=function(r){return r&&R6[r]},t.type="axis",t}(en),SA=Dlt,HF=hr();function cie(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(!!u.length){var c=s.length,d=HF(e).splitAreaColors,f=At(),A=0;if(d)for(var h=0;h<u.length;h++){var v=d.get(u[h].tickValue);if(v!=null){A=(v+(c-1)*h)%c;break}}var p=a.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=Pe(s)?s:[s];for(var h=1;h<u.length;h++){var m=a.toGlobalCoord(u[h].coord),y=void 0,b=void 0,w=void 0,x=void 0;a.isHorizontal()?(y=p,b=l.y,w=m-y,x=l.height,p=y+w):(y=l.x,b=p,w=l.width,x=m-b,p=b+x);var S=u[h-1].tickValue;S!=null&&f.set(S,A),t.add(new lr({anid:S!=null?"area_"+S:null,shape:{x:y,y:b,width:w,height:x},style:yt({fill:s[A]},g),autoBatch:!0,silent:!0})),A=(A+1)%c}HF(e).splitAreaColors=f}}}function die(e){HF(e).splitAreaColors=null}var Flt=["axisLine","axisTickLabel","axisName"],Mlt=["splitArea","splitLine","minorSplitLine"],fie=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new It,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=$F(s,r),u=new nu(r,Me({handleAutoShown:function(d){for(var f=s.coordinateSystem.getCartesians(),A=0;A<f.length;A++)if(IF(f[A].getOtherAxis(r.axis).scale))return!0;return!1}},l));z(Flt,u.add,u),this._axisGroup.add(u.getGroup()),z(Mlt,function(d){r.get([d,"show"])&&klt[d](this,this._axisGroup,r,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||by(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){die(this)},t.type="cartesianAxis",t}(SA),klt={splitLine:function(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=Pe(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,d=a.getTicksCoords({tickModel:i}),f=[],A=[],h=o.getLineStyle(),v=0;v<d.length;v++){var p=a.toGlobalCoord(d[v].coord);u?(f[0]=p,f[1]=l.y,A[0]=p,A[1]=l.y+l.height):(f[0]=l.x,f[1]=p,A[0]=l.x+l.width,A[1]=p);var g=c++%s.length,m=d[v].tickValue;t.add(new ta({anid:m!=null?"line_"+d[v].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:A[0],y2:A[1]},style:yt({stroke:s[g]},h),silent:!0}))}}},minorSplitLine:function(e,t,r,n){var a=r.axis,i=r.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(!!u.length)for(var c=[],d=[],f=o.getLineStyle(),A=0;A<u.length;A++)for(var h=0;h<u[A].length;h++){var v=a.toGlobalCoord(u[A][h].coord);l?(c[0]=v,c[1]=s.y,d[0]=v,d[1]=s.y+s.height):(c[0]=s.x,c[1]=v,d[0]=s.x+s.width,d[1]=v),t.add(new ta({anid:"minor_line_"+u[A][h].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:f,silent:!0}))}},splitArea:function(e,t,r,n){cie(e,t,r,n)}},Aie=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(fie),Plt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Aie.type,r}return t.type="yAxis",t}(fie),Llt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new lr({shape:r.coordinateSystem.getRect(),style:yt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(en),D6={offset:0};function hie(e){e.registerComponentView(Llt),e.registerComponentModel(ilt),e.registerCoordinateSystem("cartesian2d",mlt),Rv(e,"x",LF,D6),Rv(e,"y",LF,D6),e.registerComponentView(Aie),e.registerComponentView(Plt),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Olt(e){Xt(hie),e.registerSeriesModel(qst),e.registerChartView(nlt),e.registerLayout(Iy("scatter"))}function $lt(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],a=t.coordinateSystem;if(!!a){var i=a.getIndicatorAxes();z(i,function(o,s){r.each(r.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var c=a.dataToPoint(l,s);n[u][s]=F6(c)?c:M6(a)})}),r.each(function(o){var s=See(n[o],function(l){return F6(l)})||M6(a);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function F6(e){return!isNaN(e[0])&&!isNaN(e[1])}function M6(e){return[e.cx,e.cy]}function Ult(e){var t=e.polar;if(t){Pe(t)||(t=[t]);var r=[];z(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],Pe(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}z(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Hlt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(f,A){var h=f.getItemVisual(A,"symbol")||"circle";if(h!=="none"){var v=Sy(f.getItemVisual(A,"symbolSize")),p=Fn(h,-1,-1,2,2),g=f.getItemVisual(A,"symbolRotate")||0;return p.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:g*Math.PI/180||0}),p}}function c(f,A,h,v,p,g){h.removeAll();for(var m=0;m<A.length-1;m++){var y=u(v,p);y&&(y.__dimIdx=m,f[m]?(y.setPosition(f[m]),xy[g?"initProps":"updateProps"](y,{x:A[m][0],y:A[m][1]},r,p)):y.setPosition(A[m]),h.add(y))}}function d(f){return $e(f,function(A){return[i.cx,i.cy]})}s.diff(l).add(function(f){var A=s.getItemLayout(f);if(!!A){var h=new Ja,v=new ei,p={shape:{points:A}};h.shape.points=d(A),v.shape.points=d(A),Zr(h,p,r,f),Zr(v,p,r,f);var g=new It,m=new It;g.add(v),g.add(h),g.add(m),c(v.shape.points,A,m,s,f,!0),s.setItemGraphicEl(f,g)}}).update(function(f,A){var h=l.getItemGraphicEl(A),v=h.childAt(0),p=h.childAt(1),g=h.childAt(2),m={shape:{points:s.getItemLayout(f)}};!m.shape.points||(c(v.shape.points,m.shape.points,g,s,f,!1),ds(p),ds(v),fr(v,m,r),fr(p,m,r),s.setItemGraphicEl(f,h))}).remove(function(f){o.remove(l.getItemGraphicEl(f))}).execute(),s.eachItemGraphicEl(function(f,A){var h=s.getItemModel(A),v=f.childAt(0),p=f.childAt(1),g=f.childAt(2),m=s.getItemVisual(A,"style"),y=m.fill;o.add(f),v.useStyle(yt(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:y})),_a(v,h,"lineStyle"),_a(p,h,"areaStyle");var b=h.getModel("areaStyle"),w=b.isEmpty()&&b.parentModel.isEmpty();p.ignore=w,z(["emphasis","select","blur"],function(_){var B=h.getModel([_,"areaStyle"]),T=B.isEmpty()&&B.parentModel.isEmpty();p.ensureState(_).ignore=T&&w}),p.useStyle(yt(b.getAreaStyle(),{fill:y,opacity:.7,decal:m.decal}));var x=h.getModel("emphasis"),S=x.getModel("itemStyle").getItemStyle();g.eachChild(function(_){if(_ instanceof Aa){var B=_.style;_.useStyle(Me({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},m))}else _.useStyle(m),_.setColor(y),_.style.strokeNoScale=!0;var T=_.ensureState("emphasis");T.style=Bt(S);var E=s.getStore().get(s.getDimensionIndex(_.__dimIdx),A);(E==null||isNaN(E))&&(E=""),Na(_,ca(h),{labelFetcher:s.hostModel,labelDataIndex:A,labelDimIndex:_.__dimIdx,defaultText:E,inheritColor:y,defaultOpacity:m.opacity})}),bn(f,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Ur),zlt=Hlt,Nlt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Dy(tt(this.getData,this),tt(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return xp(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=une(this,r);return aa("section",{header:u,sortBlocks:!0,blocks:$e(s,function(d){var f=i.get(i.mapDimension(d.dim),r);return aa("nameValue",{markerType:"subItem",markerColor:c,name:d.name,value:f,sortParam:f})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues($e(a.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Yr),Qlt=Nlt,ng=sie.value;function k1(e,t){return yt({show:t},e)}var Vlt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),f=this.get("triggerEvent"),A=$e(this.get("indicator")||[],function(h){h.max!=null&&h.max>0&&!h.min?h.min=0:h.min!=null&&h.min<0&&!h.max&&(h.max=0);var v=l;h.color!=null&&(v=yt({color:h.color},l));var p=Ut(Bt(h),{boundaryGap:r,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:h.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:v,triggerEvent:f},!1);if(Ze(c)){var g=p.name;p.name=c.replace("{value}",g!=null?g:"")}else pt(c)&&(p.name=c(p.name,p));var m=new Or(p,null,this.ecModel);return xn(m,bp.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=A},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ut({lineStyle:{color:"#bbb"}},ng.axisLine),axisLabel:k1(ng.axisLabel,!1),axisTick:k1(ng.axisTick,!1),splitLine:k1(ng.splitLine,!0),splitArea:k1(ng.splitArea,!0),indicator:[]},t}(ir),Wlt=Vlt,Glt=["axisLine","axisTickLabel","axisName"],Klt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes(),i=$e(a,function(o){var s=o.model.get("showName")?o.name:"",l=new nu(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});z(i,function(o){z(Glt,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),A=u.get("color"),h=Pe(f)?f:[f],v=Pe(A)?A:[A],p=[],g=[];function m(k,F,P){var O=P%F.length;return k[O]=k[O]||[],O}if(i==="circle")for(var y=a[0].getTicksCoords(),b=n.cx,w=n.cy,x=0;x<y.length;x++){if(c){var S=m(p,h,x);p[S].push(new cs({shape:{cx:b,cy:w,r:y[x].coord}}))}if(d&&x<y.length-1){var S=m(g,v,x);g[S].push(new gy({shape:{cx:b,cy:w,r0:y[x].coord,r:y[x+1].coord}}))}}else for(var _,B=$e(a,function(k,F){var P=k.getTicksCoords();return _=_==null?P.length-1:Math.min(P.length-1,_),$e(P,function(O){return n.coordToPoint(O.coord,F)})}),T=[],x=0;x<=_;x++){for(var E=[],I=0;I<a.length;I++)E.push(B[I][x]);if(E[0]&&E.push(E[0].slice()),c){var S=m(p,h,x);p[S].push(new ei({shape:{points:E}}))}if(d&&T){var S=m(g,v,x-1);g[S].push(new Ja({shape:{points:E.concat(T)}}))}T=E.slice().reverse()}var R=l.getLineStyle(),D=u.getAreaStyle();z(g,function(k,F){this.group.add(ki(k,{style:yt({stroke:"none",fill:v[F%v.length]},D),silent:!0}))},this),z(p,function(k,F){this.group.add(ki(k,{style:yt({fill:"none",stroke:h[F%h.length]},R),silent:!0}))},this)},t.type="radar",t}(en),jlt=Klt,Ylt=function(e){xe(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(Po),Xlt=Ylt,qlt=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=$e(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new Xlt(o,new Qc);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(r*r+n*n);r/=a,n/=a;for(var i=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],d=Math.abs(i-c.angle);d<o&&(s=c,l=u,o=d)}return[l,+(s&&s.coordToData(a))]},e.prototype.resize=function(t,r){var n=t.get("center"),a=r.getWidth(),i=r.getHeight(),o=Math.min(a,i)/2;this.cx=Ye(n[0],a),this.cy=Ye(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(Ze(s)||cr(s))&&(s=[0,s]),this.r0=Ye(s[0],o),this.r=Ye(s[1],o),z(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,a=this._model;z(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();z(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new Qc;o.setExtent(0,i),o.setInterval(1),z(n,function(s,l){lie(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},e.dimensions=[],e}(),Zlt=qlt;function Jlt(e){e.registerCoordinateSystem("radar",Zlt),e.registerComponentModel(Wlt),e.registerComponentView(jlt),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function eut(e){Xt(Jlt),e.registerChartView(zlt),e.registerSeriesModel(Qlt),e.registerLayout($lt),e.registerProcessor(Ry("radar")),e.registerPreprocessor(Ult)}var k6="\0_ec_interaction_mutex";function tut(e,t,r){var n=v4(e);n[t]=r}function rut(e,t,r){var n=v4(e),a=n[t];a===r&&(n[t]=null)}function P6(e,t){return!!v4(e)[t]}function v4(e){return e[k6]||(e[k6]={})}vs({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},En);var nut=function(e){xe(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=tt(n._mousedownHandler,n),i=tt(n._mousemoveHandler,n),o=tt(n._mouseupHandler,n),s=tt(n._mousewheelHandler,n),l=tt(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=yt(Bt(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",a),r.on("mousemove",i),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",a),r.off("mousemove",i),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!(fz(r)||r.target&&r.target.draggable)){var n=r.offsetX,a=r.offsetY;this.pointerChecker&&this.pointerChecker(r,n,a)&&(this._x=n,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!Dx("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||P6(this._zr,"globalPan"))){var n=r.offsetX,a=r.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Zl(r.event),vie(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){fz(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=Dx("zoomOnMouseWheel",r,this._opt),a=Dx("moveOnMouseWheel",r,this._opt),i=r.wheelDelta,o=Math.abs(i),s=r.offsetX,l=r.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;tE(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);tE(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!P6(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;tE(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Do);function tE(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(Zl(n.event),vie(e,t,r,n,a))}function vie(e,t,r,n,a){a.isAvailableBehavior=tt(Dx,null,r,n),e.trigger(t,a)}function Dx(e,t,r){var n=r[e];return!e||n&&(!Ze(n)||t.event[n+"Key"])}var Fy=nut;function p4(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function g4(e,t,r,n){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,a.x-=(r-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var aut={axisPointer:1,tooltip:1,brush:1};function H_(e,t,r){var n=t.getComponentByElement(e.topTarget),a=n&&n.coordinateSystem;return n&&n!==r&&!aut.hasOwnProperty(n.mainType)&&a&&a.model!==r}function pie(e){if(Ze(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var rE,vC={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},L6=tr(vC),pC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},O6=tr(pC),iut=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=pie(t);this._defsUsePending=[];var a=new It;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Bi(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;lut(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=z_(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=mie(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var A=a;a=new It,a.add(A),A.scaleX=A.scaleY=d.scale,A.x=d.x,A.y=d.y}return!r.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new lr({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},e.prototype._parseNode=function(t,r,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!i){var c=rE[s];if(c&&at(rE,s)){l=c.call(this,t,r);var d=t.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};n.push(f),s==="g"&&(u=f)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});r.add(l)}}var A=$6[s];if(A&&at($6,s)){var h=A.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=h)}}if(l&&l.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,l,n,u,i,o):p.nodeType===3&&o&&this._parseText(p,l),p=p.nextSibling},e.prototype._parseText=function(t,r){var n=new fm({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});eo(r,n),Bi(t,n,this._defsUsePending,!1,!1),out(n,r);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){rE={g:function(t,r){var n=new It;return eo(r,n),Bi(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new lr;return eo(r,n),Bi(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new cs;return eo(r,n),Bi(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new ta;return eo(r,n),Bi(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new m_;return eo(r,n),Bi(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),a;n&&(a=z6(n));var i=new Ja({shape:{points:a||[]},silent:!0});return eo(r,i),Bi(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,r){var n=t.getAttribute("points"),a;n&&(a=z6(n));var i=new ei({shape:{points:a||[]},silent:!0});return eo(r,i),Bi(t,i,this._defsUsePending,!1,!1),i},image:function(t,r){var n=new Aa;return eo(r,n),Bi(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new It;return eo(r,s),Bi(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new It;return eo(r,s),Bi(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",a=jte(n);return eo(r,a),Bi(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),$6={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new op(t,r,n,a);return U6(e,i),H6(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),a=new gL(t,r,n);return U6(e,a),H6(e,a),a}};function U6(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function H6(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};gie(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}r=r.nextSibling}}function eo(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),yt(t.__inheritedStyle,e.__inheritedStyle))}function z6(e){for(var t=z_(e),r=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);r.push([a,i])}return r}function Bi(e,t,r,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(dut(e,t),gie(e,o,s),n||fut(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=N6(i,"fill",o.fill,r)),o.stroke!=null&&(i.style.stroke=N6(i,"stroke",o.stroke,r)),z(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),z(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=$e(z_(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function out(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),e.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var sut=/^url\(\s*#(.*?)\)/;function N6(e,t,r,n){var a=r&&r.match(sut);if(a){var i=po(a[1]);n.push([e,t,i]);return}return r==="none"&&(r=null),r}function lut(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var uut=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function z_(e){return e.match(uut)||[]}var cut=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,nE=Math.PI/180;function dut(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],a=null;r.replace(cut,function(d,f,A){return n.push(f,A),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=z_(o);switch(a=a||Gi(),s){case"translate":ls(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":u_(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":od(a,a,-parseFloat(l[0])*nE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*nE);js(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*nE);js(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var Q6=/([^\s:;]+)\s*:\s*([^:;]+)/g;function gie(e,t,r){var n=e.getAttribute("style");if(!!n){Q6.lastIndex=0;for(var a;(a=Q6.exec(n))!=null;){var i=a[1],o=at(vC,i)?vC[i]:null;o&&(t[o]=a[2]);var s=at(pC,i)?pC[i]:null;s&&(r[s]=a[2])}}}function fut(e,t,r){for(var n=0;n<L6.length;n++){var a=L6[n],i=e.getAttribute(a);i!=null&&(t[vC[a]]=i)}for(var n=0;n<O6.length;n++){var a=O6[n],i=e.getAttribute(a);i!=null&&(r[pC[a]]=i)}}function mie(e,t){var r=t.width/e.width,n=t.height/e.height,a=Math.min(r,n);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function Aut(e,t){var r=new iut;return r.parse(e,t)}var hut=At(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),vut=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=At(),this._freedGraphics=[],this._mapName=t,this._parsedXML=pie(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=gut(t.named),n=r.regions,a=r.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&Aut(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,Ha(n!=null)}catch(p){throw new Error(`Invalid svg format
|
|
`+p.message)}var a=new It;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,d=void 0,f=void 0;if(i!=null?(u=0,d=i):s&&(u=s.x,d=s.width),o!=null?(c=0,f=o):s&&(c=s.y,f=s.height),u==null||c==null){var A=n.getBoundingRect();u==null&&(u=A.x,d=A.width),c==null&&(c=A.y,f=A.height)}l=this._boundingRect=new Kt(u,c,d,f)}if(s){var h=mie(s,l);n.scaleX=n.scaleY=h.scale,n.x=h.x,n.y=h.y}a.setClipPath(new lr({shape:l.plain()}));var v=[];return z(r.named,function(p){hut.get(p.svgNodeTagLower)!=null&&(v.push(p),put(p.el))}),{root:a,boundingRect:l,named:v}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function put(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function gut(e){var t=[],r=At();return z(e,function(n){if(n.namedFrom==null){var a=new Tit(n.name,n.el);t.push(a),r.set(n.name,a)}}),{regions:t,regionsMap:r}}var zF=[126,25],V6="\u5357\u6D77\u8BF8\u5C9B",qd=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Vd=0;Vd<qd.length;Vd++)for(var oh=0;oh<qd[Vd].length;oh++)qd[Vd][oh][0]/=10.5,qd[Vd][oh][1]/=-10.5/.75,qd[Vd][oh][0]+=zF[0],qd[Vd][oh][1]+=zF[1];function mut(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===V6)return;t.push(new mae(V6,$e(qd,function(n){return{type:"polygon",exterior:n}}),zF))}}var yut={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function but(e,t){if(e==="china"){var r=yut[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var xut=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function wut(e,t){e==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:xut[0]})}var Cut="name",Sut=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=At(),this._mapName=t,this._specialAreas=n,this._geoJSON=But(r)}return e.prototype.load=function(t,r){r=r||Cut;var n=this._parsedMap.get(r);if(!n){var a=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:a,boundingRect:_ut(a)})}var i=At(),o=[];return z(n.regions,function(s){var l=s.name;t&&at(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Kt(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,a;try{a=n?DF(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
|
|
`+i.message)}return mut(r,a),z(a,function(i){var o=i.name;but(r,i),wut(r,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function _ut(e){for(var t,r=0;r<e.length;r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function But(e){return Ze(e)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var ag=At(),au={registerMap:function(e,t,r){if(t.svg){var n=new vut(e,t.svg);ag.set(e,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?r=t.specialAreas:a=t;var n=new Sut(e,a,r);ag.set(e,n)}},getGeoResource:function(e){return ag.get(e)},getMapForUser:function(e){var t=ag.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=ag.get(e);if(!!n)return n.load(t,r)}},m4=["rect","circle","line","ellipse","polygon","polyline","path"],Tut=At(m4),Eut=At(m4.concat(["g"])),Iut=At(m4.concat(["g"])),yie=hr();function P1(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function W6(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Rut=function(){function e(t){var r=new It;this.uid=dp("ec_map_draw"),this._controller=new Fy(t.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new It),r.add(this._svgGroup=new It)}return e.prototype.draw=function(t,r,n,a,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(g){!s&&g.getHostGeoModel()===t&&(s=g.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,d=l.getTransformInfo(),f=d.raw,A=d.roam,h=!u.childAt(0)||i;h?(c.x=A.x,c.y=A.y,c.scaleX=A.scaleX,c.scaleY=A.scaleY,c.dirty()):fr(c,A,t);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,p={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(p):l.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,a)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=At(),n=At(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(A,h){return h&&(A=h(A)),A&&[A[0]*i.scaleX+i.x,A[1]*i.scaleY+i.y]}function d(A){for(var h=[],v=!u&&l&&l.project,p=0;p<A.length;++p){var g=c(A[p],v);g&&h.push(g)}return h}function f(A){return{shape:{points:d(A)}}}a.removeAll(),z(t.geo.regions,function(A){var h=A.name,v=r.get(h),p=n.get(h)||{},g=p.dataIdx,m=p.regionModel;v||(v=r.set(h,new It),a.add(v),g=s?s.indexOfName(h):null,m=t.isGeo?o.getRegionModel(h):s?s.getItemModel(g):null,n.set(h,{dataIdx:g,regionModel:m}));var y=[],b=[];z(A.geometries,function(S){if(S.type==="polygon"){var _=[S.exterior].concat(S.interiors||[]);u&&(_=q6(_,u)),z(_,function(T){y.push(new Ja(f(T)))})}else{var B=S.points;u&&(B=q6(B,u,!0)),z(B,function(T){b.push(new ei(f(T)))})}});var w=c(A.getCenter(),l&&l.project);function x(S,_){if(!!S.length){var B=new b_({culling:!0,segmentIgnoreThreshold:1,shape:{paths:S}});v.add(B),G6(t,B,g,m),K6(t,B,h,m,o,g,w),_&&(W6(B),z(B.states,W6))}}x(y),x(b,!0)}),r.each(function(A,h){var v=n.get(h),p=v.dataIdx,g=v.regionModel;j6(t,A,h,g,o,p),Y6(t,A,h,g,o),X6(t,A,h,g,o)},this)},e.prototype._buildSVG=function(t){var r=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var a=this._svgDispatcherMap=At(),i=!1;z(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,d=o.el,f=u?u.indexOfName(s):null,A=l.getRegionModel(s);if(Tut.get(c)!=null&&d instanceof _o&&G6(t,d,f,A),d instanceof _o&&(d.culling=!0),d.z2EmphasisLift=0,!o.namedFrom&&(Iut.get(c)!=null&&K6(t,d,s,A,l,f,null),j6(t,d,s,A,l,f),Y6(t,d,s,A,l),Eut.get(c)!=null)){var h=X6(t,d,s,A,l);h==="self"&&(i=!0);var v=a.get(s)||a.set(s,[]);v.push(d)}},this),this._enableBlurEntireSVG(i,t)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Yf(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=au.getGeoResource(t);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var r=au.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,r,n){var a=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,p4(o,u.dx,u.dy),n.dispatchAction(Me(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,g4(o,u.scale,u.originX,u.originY),n.dispatchAction(Me(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,d){return a.containPoint([c,d])&&!H_(u,n,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=yie(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,a){var i=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){i._mouseDownFlag=!0}),r.on("click",function(o){!i._mouseDownFlag||(i._mouseDownFlag=!1)}))},e}();function G6(e,t,r,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=P1(a),u=P1(i),c=P1(s),d=P1(o),f=e.data;if(f){var A=f.getItemVisual(r,"style"),h=f.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&A.fill&&(l.fill=A.fill),h&&(l.decal=Ev(h,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,Yf(t)}function K6(e,t,r,n,a,i,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var d=l?r:i,f=void 0;(!s||i>=0)&&(f=a);var A=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Na(t,ca(n),{labelFetcher:f,labelDataIndex:d,defaultText:r},A);var h=t.getTextContent();if(h&&(yie(h).ignore=h.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function j6(e,t,r,n,a,i){e.data?e.data.setItemGraphicEl(i,t):kt(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:r,region:n&&n.option||{}}}function Y6(e,t,r,n,a){e.data||up({el:t,componentModel:a,itemName:r,itemTooltipOption:n.get("tooltip")})}function X6(e,t,r,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return bn(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&Aet(t,a,r),o}function q6(e,t,r){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),z(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}var bie=Rut,Dut=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===r.id){var s=this._mapDraw;s&&o.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new bie(a);o.add(s.group),s.draw(r,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,a)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(r,n,a){var i=r.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,d=u.offset,f=new cs({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+d*9,cy:c[1],r:3},silent:!0,z2:8+(d?0:ip+1)});if(!d){var A=r.mainSeries.getData(),h=i.getName(l),v=A.indexOfName(h),p=i.getItemModel(l),g=p.getModel("label"),m=A.getItemGraphicEl(v);Na(f,ca(p),{labelFetcher:{getFormattedLabel:function(y,b){return r.getFormattedLabel(v,b)}},defaultText:h}),f.disableLabelAnimation=!0,g.get("position")||f.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(y){Gw(f,y)}}o.add(f)}}})},t.type="map",t}(Ur),Fut=Dut,Mut=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.needsDrawMap=!1,r.seriesGroup=[],r.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=xp(this,{coordDimensions:["value"],encodeDefaulter:Lt(FL,this)}),a=At(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,!0)}var u=au.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return z(u.regions,function(c){var d=c.name;a.get(d)||i.push(d)}),n.appendValues([],i),n},t.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData(),o=this.getRawValue(r),s=i.getName(r),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var d=l[c].originalData.indexOfName(s),f=i.mapDimension("value");isNaN(l[c].originalData.get(f,d))||u.push(l[c].name)}return aa("section",{header:u.join(", "),noHeader:!u.length,blocks:[aa("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",a=Fn(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return a.setStyle(r.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Yr),kut=Mut;function Put(e,t){var r={};return z(e,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);r[o]=r[o]||[],isNaN(a)||r[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(n,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=r[i].length,c=0;c<u;c++)s=Math.min(s,r[i][c]),l=Math.max(l,r[i][c]),o+=r[i][c];var d;return t==="min"?d=s:t==="max"?d=l:t==="average"?d=o/u:d=o,u===0?NaN:d})}function Lut(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),a=n?"o"+n.id:"i"+r.getMapType();(t[a]=t[a]||[]).push(r)}),z(t,function(r,n){for(var a=Put($e(r,function(o){return o.getData()}),r[0].get("mapValueCalculation")),i=0;i<r.length;i++)r[i].originalData=r[i].getData();for(var i=0;i<r.length;i++)r[i].seriesGroup=r,r[i].needsDrawMap=i===0&&!r[i].getHostGeoModel(),r[i].setData(a.cloneShallow()),r[i].mainSeries=r[0]})}function Out(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var a={};z(r.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var d=l.getName(c),f=s.getRegion(d);if(!(!f||isNaN(u))){var A=a[d]||0,h=s.dataToPoint(f.getCenter());a[d]=A+1,l.setItemLayout(c,{point:h,offset:A})}})});var i=r.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),t[n]=!0}})}var Z6=ua,$ut=function(e){xe(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Pl,n._rawTransformable=new Pl,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,a,i){return this._rect=new Kt(r,n,a,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,a,i){this._transformTo(r,n,a,i),this._viewRect=new Kt(r,n,a,i)},t.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Kt(r,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){!r||(this._center=[Ye(r[0],n.getWidth()),Ye(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,a=r.y+r.height/2;return[n,a]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=ua([],i,r),a=ua([],a,r),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),l_(this.transform||(this.transform=[]),n.transform||Gi()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],bA(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,a=new Pl;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?Z6(a,r,i):Ma(a,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?Z6([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,a){var i=J6(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=J6(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(Pl);function J6(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var My=$ut,Uut={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},xie=["lng","lat"],wie=function(e){xe(t,e);function t(r,n,a){var i=e.call(this,r)||this;i.dimensions=xie,i.type="geo",i._nameCoordMap=At(),i.map=n;var o=a.projection,s=au.load(n,a.nameMap,a.nameProperty),l=au.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=Uut[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var d;if(o)for(var f=0;f<u.length;f++){var A=u[f].getBoundingRect(o);d=d||A.clone(),d.union(A)}else d=s.boundingRect;return i.setBoundingRect(d.x,d.y,d.width,d.height),i.aspectScale=o?1:Yt(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return t.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Kt(r,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(r))return n[a]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,a){if(Ze(r)&&(r=this.getGeoCoord(r)),r){var i=this.projection;return i&&(r=i.project(r)),r&&this.projectedToPoint(r,n,a)}},t.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},t.prototype.pointToProjected=function(r){return e.prototype.pointToData.call(this,r)},t.prototype.projectedToPoint=function(r,n,a){return e.prototype.dataToPoint.call(this,r,n,a)},t.prototype.convertToPixel=function(r,n,a){var i=eQ(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=eQ(n);return i===this?i.pointToData(a):null},t}(My);xn(wie,My);function eQ(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",Hn).models[0]||{}).coordinateSystem:null}var tQ=wie;function rQ(e,t){var r=e.get("boundingCoords");if(r!=null){var n=r[0],a=r[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var c=function(x,S,_,B){for(var T=_-x,E=B-S,I=0;I<=100;I++){var R=I/100,D=i.project([x+T*R,S+E*R]);Ml(n,n,D),kl(a,a,D)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var d=this.getBoundingRect(),f=e.get("layoutCenter"),A=e.get("layoutSize"),h=t.getWidth(),v=t.getHeight(),p=d.width/d.height*this.aspectScale,g=!1,m,y;f&&A&&(m=[Ye(f[0],h),Ye(f[1],v)],y=Ye(A,Math.min(h,v)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(y)&&(g=!0));var b;if(g)b={},p>1?(b.width=y,b.height=y/p):(b.height=y,b.width=y*p),b.y=m[1]-b.height/2,b.x=m[0]-b.width/2;else{var w=e.getBoxLayoutParams();w.aspect=p,b=zn(w,{width:h,height:v})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Hut(e,t){z(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var zut=function(){function e(){this.dimensions=xie}return e.prototype.create=function(t,r){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new tQ(l+s,l,Me({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=rQ,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),z(i,function(o,s){var l=$e(o,function(c){return c.get("nameMap")}),u=new tQ(s,s,Me({nameMap:a_(l)},a(o[0])));u.zoomLimit=ea.apply(null,$e(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=rQ,u.resize(o[0],r),z(o,function(c){c.coordinateSystem=u,Hut(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,a){for(var i=(t||[]).slice(),o=At(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=au.load(r,n,a);return z(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},e}(),Nut=new zut,Cie=Nut,Qut=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=au.getGeoResource(r.map);if(i&&i.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,a),Gf(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=Cie.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=So(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Or(o,r,r.ecModel)),o.selected&&(a[s]=!0)),i},At()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new Or(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var a=this.getRegionModel(r),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:r};if(pt(i))return o.status=n,i(o);if(Ze(i))return i.replace("{a}",r!=null?r:"")},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.select=function(r){var n=this.option,a=n.selectedMode;if(!!a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(ir),Vut=Qut;function nQ(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function y4(e,t,r,n){var a=e.getZoom(),i=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(nQ(e,s),n)),o!=null){if(r){var l=r.min||0,u=r.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),d=(t.originY-e.y)*(o-1);e.x-=c,e.y-=d,e.updateTransform(),e.setCenter(nQ(e,s),n),e.setZoom(o*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var Wut=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,a,i){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new bie(a));var o=this._mapDraw;o.draw(r,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,a)},t.prototype._handleRegionClick=function(r){var n;Ph(r.target,function(a){return(n=kt(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=kt(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(en),Gut=Wut;function Kut(e,t,r){au.registerMap(e,t,r)}function Sie(e){e.registerCoordinateSystem("geo",Cie),e.registerComponentModel(Vut),e.registerComponentView(Gut),e.registerImpl("registerMap",Kut),e.registerImpl("getMap",function(r){return au.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[r](a.name);var u=l.coordinateSystem;z(u.regions,function(d){o[d.name]=l.isSelected(d.name)||!1});var c=[];z(o,function(d,f){o[f]&&c.push(f)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(r,n,a){var i=r.componentType||"series";n.eachComponent({mainType:i,query:r},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=y4(s,r,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&z(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function jut(e){Xt(Sie),e.registerChartView(Fut),e.registerSeriesModel(kut),e.registerLayout(Out),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Lut),xne("map",e.registerAction)}function Yut(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,a;n=r.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function Xut(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,a=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){Jut(e);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=ect(e,a,e.parentNode.hierNode.defaultAncestor||n[0],t)}function qut(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function aQ(e){return arguments.length?e:nct}function Og(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Zut(e,t){return zn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Jut(e){for(var t=e.children,r=t.length,n=0,a=0;--r>=0;){var i=t[r];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function ect(e,t,r,n){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=aE(s),i=iE(i),s&&i;){a=aE(a),o=iE(o),a.hierNode.ancestor=e;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+n(s,i);f>0&&(rct(tct(s,e,r),e,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!aE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!iE(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,r=e)}return r}function aE(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function iE(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function tct(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function rct(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function nct(e,t){return e.parentNode===t.parentNode?1:2}var act=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),ict=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new act},t.prototype.buildPath=function(r,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=Ye(n.forkPosition,1),A=[];A[c]=o[c],A[d]=o[d]+(l[d]-o[d])*f,r.moveTo(o[0],o[1]),r.lineTo(A[0],A[1]),r.moveTo(s[0],s[1]),A[c]=s[c],r.lineTo(A[0],A[1]),A[c]=l[c],r.lineTo(A[0],A[1]),r.lineTo(l[0],l[1]);for(var h=1;h<i-1;h++){var v=a[h];r.moveTo(v[0],v[1]),A[c]=v[c],r.lineTo(A[0],A[1])}},t}(qt),oct=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new It,r}return t.prototype.init=function(r,n){this._controller=new Fy(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,a){var i=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,a),this._updateController(r,n,a);var u=this._data;i.diff(u).add(function(c){iQ(i,c)&&oQ(i,c,null,s,r)}).update(function(c,d){var f=u.getItemGraphicEl(d);if(!iQ(i,c)){f&&lQ(u,d,f,s,r);return}oQ(i,c,f,s,r)}).remove(function(c){var d=u.getItemGraphicEl(c);d&&lQ(u,c,d,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,d){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:d})})}),this._data=i},t.prototype._updateViewCoordSys=function(r,n){var a=r.getData(),i=[];a.each(function(d){var f=a.getItemLayout(d);f&&!isNaN(f.x)&&!isNaN(f.y)&&i.push([+f.x,+f.y])});var o=[],s=[];v_(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=r.coordinateSystem=new My;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(r,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!H_(u,a,r)}),o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){p4(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){g4(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(r),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),a=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Ur);function iQ(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function oQ(e,t,r,n,a){var i=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,d=o.parentNode===c?o:o.parentNode||o,f=e.getItemGraphicEl(d.dataIndex),A=d.getLayout(),h=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:A,v=o.getLayout();i?(r=new Ty(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=h.x,r.y=h.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=v.rawX,r.__radialRawY=v.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,fr(r,{x:v.x,y:v.y},a);var p=r.getSymbolPath();if(a.get("layout")==="radial"){var g=c.children[0],m=g.getLayout(),y=g.children.length,b=void 0,w=void 0;if(v.x===m.x&&o.isExpand===!0&&g.children.length){var x={x:(g.children[0].getLayout().x+g.children[y-1].getLayout().x)/2,y:(g.children[0].getLayout().y+g.children[y-1].getLayout().y)/2};b=Math.atan2(x.y-m.y,x.x-m.x),b<0&&(b=Math.PI*2+b),w=x.x<m.x,w&&(b=b-Math.PI)}else b=Math.atan2(v.y-m.y,v.x-m.x),b<0&&(b=Math.PI*2+b),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(w=v.x<m.x,w&&(b=b-Math.PI)):(w=v.x>m.x,w||(b=b-Math.PI));var S=w?"left":"right",_=s.getModel("label"),B=_.get("rotate"),T=B*(Math.PI/180),E=p.getTextContent();E&&(p.setTextConfig({position:_.get("position")||S,rotation:B==null?-b:T,origin:"center"}),E.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),R=I==="relative"?am(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;R&&(kt(r).focus=R),sct(a,o,c,r,h,A,v,n),r.__edge&&(r.onHoverStateChange=function(D){if(D!=="blur"){var k=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===py||Gw(r.__edge,D)}})}function sct(e,t,r,n,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),d=e.getOrient(),f=e.get(["lineStyle","curveness"]),A=e.get("edgeForkPosition"),h=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(v||(v=n.__edge=new my({shape:NF(c,d,f,a,a)})),fr(v,{shape:NF(c,d,f,i,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,g=[],m=0;m<p.length;m++){var y=p[m].getLayout();g.push([y.x,y.y])}v||(v=n.__edge=new ict({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:A}})),fr(v,{shape:{parentPoint:[o.x,o.y],childPoints:g}},e)}v&&!(u==="polyline"&&!t.isExpand)&&(v.useStyle(yt({strokeNoScale:!0,fill:null},h)),_a(v,l,"lineStyle"),Yf(v),s.add(v))}function sQ(e,t,r,n,a){var i=t.tree.root,o=_ie(i,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(!!u){var c=t.getItemGraphicEl(s.dataIndex),d=c.__edge,f=u.__edge||(s.isExpand===!1||s.children.length===1?d:void 0),A=n.get("edgeShape"),h=n.get("layout"),v=n.get("orient"),p=n.get(["lineStyle","curveness"]);f&&(A==="curve"?zc(f,{shape:NF(h,v,p,l,l),style:{opacity:0}},n,{cb:function(){r.remove(f)},removeOpt:a}):A==="polyline"&&n.get("layout")==="orthogonal"&&zc(f,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(f)},removeOpt:a}))}}function _ie(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function lQ(e,t,r,n,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=_ie(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};zc(r,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){sQ(u,e,n,a,l)}),sQ(i,e,n,a,l)}function NF(e,t,r,n,a){var i,o,s,l,u,c,d,f;if(e==="radial"){u=n.rawX,d=n.rawY,c=a.rawX,f=a.rawY;var A=Og(u,d),h=Og(u,d+(f-d)*r),v=Og(c,f+(d-f)*r),p=Og(c,f);return{x1:A.x||0,y1:A.y||0,x2:p.x||0,y2:p.y||0,cpx1:h.x||0,cpy1:h.y||0,cpx2:v.x||0,cpy2:v.y||0}}else u=n.x,d=n.y,c=a.x,f=a.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*r,o=d,s=c+(u-c)*r,l=f),(t==="TB"||t==="BT")&&(i=u,o=d+(f-d)*r,s=c,l=f+(d-f)*r);return{x1:u,y1:d,x2:c,y2:f,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var lct=oct,mo=hr();function Bie(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,Tie(t,r,e),z(r,function(n){z(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,Lt(uct,e))})}),t.wrapMethod("cloneShallow",Lt(dct,e)),z(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,Lt(cct,e))}),Ha(r[t.dataType]===t)}function uct(e,t){if(hct(this)){var r=Me({},mo(this).datas);r[this.dataType]=t,Tie(t,r,e)}else b4(t,this.dataType,mo(this).mainData,e);return t}function cct(e,t){return e.struct&&e.struct.update(),t}function dct(e,t){return z(mo(t).datas,function(r,n){r!==t&&b4(r.cloneShallow(),n,t,e)}),t}function fct(e){var t=mo(this).mainData;return e==null||t==null?t:mo(t).datas[e]}function Act(){var e=mo(this).mainData;return e==null?[{data:e}]:$e(tr(mo(e).datas),function(t){return{type:t,data:mo(e).datas[t]}})}function hct(e){return mo(e).mainData===e}function Tie(e,t,r){mo(e).datas={},z(t,function(n,a){b4(n,a,e,r)})}function b4(e,t,r,n){mo(r).datas[t]=e,mo(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=fct,e.getLinkedDataAll=Act}var vct=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){pt(t)&&(n=r,r=t,t=null),t=t||{},Ze(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,r,n);a==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(t+1),a.height>r&&(r=a.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].getNodeById(t);if(i)return i}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].contains(t);if(i)return i}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),pct=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,a=r.length;n<a;n++)r[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var a=new e(r),i=[],o=1;s(t);function s(c,d){var f=c.value;o=Math.max(o,Pe(f)?f.length:1),i.push(c);var A=new vct(Kn(c.name,""),a);d?gct(A,d):a.root=A,a._nodes.push(A);var h=c.children;if(h)for(var v=0;v<h.length;v++)s(h[v],A)}a.root.updateDepthAndHeight(0);var l=yp(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Ua(l,r);return u.initData(i),n&&n(u),Bie({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function gct(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}var x4=pct;function Tm(e,t,r){if(e&&Gt(t,e.type)>=0){var n=r.getData().tree.root,a=e.targetNode;if(Ze(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function Eie(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function w4(e,t){var r=Eie(e);return Gt(r,t)>=0}function N_(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var mct=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},a=r.leaves||{},i=new Or(a,this,this.ecModel),o=x4.createTree(n,this,s);function s(d){d.wrapMethod("getItemModel",function(f,A){var h=o.getNodeByDataIndex(A);return h&&h.children.length&&h.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return aa("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=N_(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Yr),yct=mct;function bct(e,t,r){for(var n=[e],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)t(i,r)}function ig(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)r.push(a[i])}}function xct(e,t){e.eachSeriesByType("tree",function(r){wct(r,t)})}function wct(e,t){var r=Zut(e,t);e.layoutInfo=r;var n=e.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(r.height,r.width)/2,o=aQ(function(y,b){return(y.parentNode===b.parentNode?1:2)/y.depth})):(a=r.width,i=r.height,o=aQ());var s=e.getData().tree.root,l=s.children[0];if(l){Yut(s),bct(l,Xut,o),s.hierNode.modifier=-l.hierNode.prelim,ig(l,qut);var u=l,c=l,d=l;ig(l,function(y){var b=y.getLayout().x;b<u.getLayout().x&&(u=y),b>c.getLayout().x&&(c=y),y.depth>d.depth&&(d=y)});var f=u===c?1:o(u,c)/2,A=f-u.getLayout().x,h=0,v=0,p=0,g=0;if(n==="radial")h=a/(c.getLayout().x+f+A),v=i/(d.depth-1||1),ig(l,function(y){p=(y.getLayout().x+A)*h,g=(y.depth-1)*v;var b=Og(p,g);y.setLayout({x:b.x,y:b.y,rawX:p,rawY:g},!0)});else{var m=e.getOrient();m==="RL"||m==="LR"?(v=i/(c.getLayout().x+f+A),h=a/(d.depth-1||1),ig(l,function(y){g=(y.getLayout().x+A)*v,p=m==="LR"?(y.depth-1)*h:a-(y.depth-1)*h,y.setLayout({x:p,y:g},!0)})):(m==="TB"||m==="BT")&&(h=a/(c.getLayout().x+f+A),v=i/(d.depth-1||1),ig(l,function(y){p=(y.getLayout().x+A)*h,g=m==="TB"?(y.depth-1)*v:i-(y.depth-1)*v,y.setLayout({x:p,y:g},!0)}))}}}function Cct(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(a.dataIndex,"style");Me(s,o)})})}function Sct(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=y4(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function _ct(e){e.registerChartView(lct),e.registerSeriesModel(yct),e.registerLayout(xct),e.registerVisual(Cct),Sct(e)}var uQ=["treemapZoomToNode","treemapRender","treemapMove"];function Bct(e){for(var t=0;t<uQ.length;t++)e.registerAction({type:uQ[t],update:"updateView"},En);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Tm(r,s,i);if(l){var u=i.getViewRoot();u&&(r.direction=w4(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function Iie(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=pF(e.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var Tct=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};Rie(a);var i=r.levels||[],o=this.designatedVisualItemStyle={},s=new Or({itemStyle:o},this,n);i=r.levels=Ect(i,n);var l=$e(i||[],function(d){return new Or(d,s,n)},this),u=x4.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,A){var h=u.getNodeByDataIndex(A),v=h?l[h.depth]:null;return f.parentModel=v||s,f})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return aa("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=N_(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Me(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=At(),this._idIndexMapCount=0);var a=n.get(r);return a==null&&n.set(r,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){Iie(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Yr);function Rie(e){var t=0;z(e.children,function(n){Rie(n);var a=n.value;Pe(a)&&(a=a[0]),t+=a});var r=e.value;Pe(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Pe(e.value)?e.value[0]=r:e.value=r}function Ect(e,t){var r=$r(t.get("color")),n=$r(t.get(["aria","decal","decals"]));if(!!r){e=e||[];var a,i;z(e,function(s){var l=new Or(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=r.slice()),!i&&n&&(o.decal=n.slice()),e}}var Ict=Tct,Rct=8,cQ=8,oE=5,Dct=function(){function e(t){this.group=new It,t.add(this.group)}return e.prototype.render=function(t,r,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,s,l,a),E_(o,u.pos,u.box)}},e.prototype._prepare=function(t,r,n){for(var a=t;a;a=a.parentNode){var i=Kn(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+Rct*2,r.emptyItemWidth);r.totalWidth+=s+cQ,r.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,r,n,a,i){for(var o=0,s=r.emptyItemWidth,l=t.get(["breadcrumb","height"]),u=Stt(r.pos,r.box),c=r.totalWidth,d=r.renderList,f=d.length-1;f>=0;f--){var A=d[f],h=A.node,v=A.width,p=A.text;c>u.width&&(c-=v-s,v=s,p=null);var g=new Ja({shape:{points:Fct(o,0,v,l,f===d.length-1,f===0)},style:yt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new dr({style:{text:p,fill:a.getTextColor(),font:a.getFont()}}),textConfig:{position:"inside"},z2:ip*1e4,onclick:Lt(i,h)});g.disableLabelAnimation=!0,this.group.add(g),Mct(g,t,h),o+=v+cQ}},e.prototype.remove=function(){this.group.removeAll()},e}();function Fct(e,t,r,n,a,i){var o=[[a?e:e-oE,t],[e+r,t],[e+r,t+n],[a?e:e-oE,t+n]];return!i&&o.splice(2,0,[e+r+oE,t+n/2]),!a&&o.push([e,t+n/2]),o}function Mct(e,t,r){kt(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&N_(r,t)}}var kct=Dct,Pct=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function Lct(){return new Pct}var QF=It,dQ=lr,fQ=3,AQ="label",hQ="upperLabel",Oct=ip*10,$ct=ip*2,Uct=ip*3,Zd=jf([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),vQ=function(e){var t=Zd(e);return t.stroke=t.fill=t.lineWidth=null,t},gC=hr(),Hct=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=og(),r}return t.prototype.render=function(r,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Gt(o,r)<0)){this.seriesModel=r,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Tm(i,s,r),u=i&&i.type,c=r.layoutInfo,d=!this._oldTree,f=this._storage,A=u==="treemapRootToNode"&&l&&f?{rootNodeGroup:f.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(c),v=r.get("animation"),p=this._doRender(h,r,A);v&&!d&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(h,p,r,A):p.renderFinally(),this._resetController(a),this._renderBreadcrumb(r,a,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new QF,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,a){var i=n.getData().tree,o=this._oldTree,s=og(),l=og(),u=this._storage,c=[];function d(p,g,m,y){return zct(n,l,u,a,s,c,p,g,m,y)}A(i.root?[i.root]:[],o&&o.root?[o.root]:[],r,i===o||!o,0);var f=h(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:f,renderFinally:v};function A(p,g,m,y,b){y?(g=p,z(p,function(S,_){!S.isRemoved()&&x(_,_)})):new tu(g,p,w,w).add(x).update(x).remove(Lt(x,null)).execute();function w(S){return S.getId()}function x(S,_){var B=S!=null?p[S]:null,T=_!=null?g[_]:null,E=d(B,T,m,b);E&&A(B&&B.viewChildren||[],T&&T.viewChildren||[],E,y,b+1)}}function h(p){var g=og();return p&&z(p,function(m,y){var b=g[y];z(m,function(w){w&&(b.push(w),gC(w).willDelete=!0)})}),g}function v(){z(f,function(p){z(p,function(g){g.parent&&g.parent.remove(g)})}),z(c,function(p){p.invisible=!0,p.dirty()})}},t.prototype._doAnimation=function(r,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(pt(o)?0:o)||0,u=(pt(s)?null:s)||"cubicOut",c=Lct();z(n.willDeleteEls,function(d,f){z(d,function(A,h){if(!A.invisible){var v=A.parent,p,g=gC(v);if(i&&i.direction==="drillDown")p=v===i.rootNodeGroup?{shape:{x:0,y:0,width:g.nodeWidth,height:g.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,y=0;g.willDelete||(m=g.nodeWidth/2,y=g.nodeHeight/2),p=f==="nodeGroup"?{x:m,y,style:{opacity:0}}:{shape:{x:m,y,width:0,height:0},style:{opacity:0}}}p&&c.add(A,p,l,0,u)}})}),z(this._storage,function(d,f){z(d,function(A,h){var v=n.lastsForAnimation[f][h],p={};!v||(A instanceof It?v.oldX!=null&&(p.x=A.x,p.y=A.y,A.x=v.oldX,A.y=v.oldY):(v.oldShape&&(p.shape=Me({},A.shape),A.setShape(v.oldShape)),v.fadein?(A.setStyle("opacity",0),p.style={opacity:1}):A.style.opacity!==1&&(p.style={opacity:1})),c.add(A,p,l,0,u))})},this),this._state="animating",c.finished(tt(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this._controller;n||(n=this._controller=new Fy(r.getZr()),n.enable(this.seriesModel.get("roam")),n.on("pan",tt(this._onPan,this)),n.on("zoom",tt(this._onZoom,this)));var a=new Kt(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(i,o,s){return a.contain(o,s)})},t.prototype._clearController=function(){var r=this._controller;r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>fQ||Math.abs(r.dy)>fQ)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+r.dx,y:a.y+r.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(r){var n=r.originX,a=r.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new Kt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,a-=l.y;var u=Gi();ls(u,u,[-n,-a]),u_(u,u,[r.scale,r.scale]),ls(u,u,[n,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(!!i){var o=n.findTarget(a.offsetX,a.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Zw(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,a){var i=this;a||(a=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new kct(this.group))).render(r,n,a.node,function(o){i._state!=="animating"&&(w4(r.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=og(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(Ur);function og(){return{nodeGroup:[],background:[],content:[]}}function zct(e,t,r,n,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var A=c.width,h=c.height,v=c.borderWidth,p=c.invisible,g=o.getRawIndex(),m=s&&s.getRawIndex(),y=o.viewChildren,b=c.upperHeight,w=y&&y.length,x=f.getModel("itemStyle"),S=f.getModel(["emphasis","itemStyle"]),_=f.getModel(["blur","itemStyle"]),B=f.getModel(["select","itemStyle"]),T=x.get("borderRadius")||0,E=ae("nodeGroup",QF);if(!E)return;if(l.add(E),E.x=c.x||0,E.y=c.y||0,E.markRedraw(),gC(E).nodeWidth=A,gC(E).nodeHeight=h,c.isAboveViewRoot)return E;var I=ae("background",dQ,u,$ct);I&&H(E,I,w&&c.upperLabelHeight);var R=f.getModel("emphasis"),D=R.get("focus"),k=R.get("blurScope"),F=R.get("disabled"),P=D==="ancestor"?o.getAncestorsIndices():D==="descendant"?o.getDescendantIndices():D;if(w)hm(E)&&gf(E,!1),I&&(gf(I,!F),d.setItemGraphicEl(o.dataIndex,I),lF(I,P,k));else{var O=ae("content",dQ,u,Uct);O&&V(E,O),I.disableMorphing=!0,I&&hm(I)&&gf(I,!1),gf(E,!F),d.setItemGraphicEl(o.dataIndex,E),lF(E,P,k)}return E;function H(se,ce,ye){var fe=kt(ce);if(fe.dataIndex=o.dataIndex,fe.seriesIndex=e.seriesIndex,ce.setShape({x:0,y:0,width:A,height:h,r:T}),p)W(ce);else{ce.invisible=!1;var Q=o.getVisual("style"),J=Q.stroke,U=vQ(x);U.fill=J;var K=Zd(S);K.fill=S.get("borderColor");var q=Zd(_);q.fill=_.get("borderColor");var ie=Zd(B);if(ie.fill=B.get("borderColor"),ye){var $=A-2*v;Z(ce,J,Q.opacity,{x:v,y:0,width:$,height:b})}else ce.removeTextContent();ce.setStyle(U),ce.ensureState("emphasis").style=K,ce.ensureState("blur").style=q,ce.ensureState("select").style=ie,Yf(ce)}se.add(ce)}function V(se,ce){var ye=kt(ce);ye.dataIndex=o.dataIndex,ye.seriesIndex=e.seriesIndex;var fe=Math.max(A-2*v,0),Q=Math.max(h-2*v,0);if(ce.culling=!0,ce.setShape({x:v,y:v,width:fe,height:Q,r:T}),p)W(ce);else{ce.invisible=!1;var J=o.getVisual("style"),U=J.fill,K=vQ(x);K.fill=U,K.decal=J.decal;var q=Zd(S),ie=Zd(_),$=Zd(B);Z(ce,U,J.opacity,null),ce.setStyle(K),ce.ensureState("emphasis").style=q,ce.ensureState("blur").style=ie,ce.ensureState("select").style=$,Yf(ce)}se.add(ce)}function W(se){!se.invisible&&i.push(se)}function Z(se,ce,ye,fe){var Q=f.getModel(fe?hQ:AQ),J=Kn(f.get("name"),null),U=Q.getShallow("show");Na(se,ca(f,fe?hQ:AQ),{defaultText:U?J:null,inheritColor:ce,defaultOpacity:ye,labelFetcher:e,labelDataIndex:o.dataIndex});var K=se.getTextContent();if(!!K){var q=K.style,ie=o_(q.padding||0);fe&&(se.setTextConfig({layoutRect:fe}),K.disableLabelLayout=!0),K.beforeUpdate=function(){var re=Math.max((fe?fe.width:se.shape.width)-ie[1]-ie[3],0),ve=Math.max((fe?fe.height:se.shape.height)-ie[0]-ie[2],0);(q.width!==re||q.height!==ve)&&K.setStyle({width:re,height:ve})},q.truncateMinChar=2,q.lineOverflow="truncate",ee(q,fe,c);var $=K.getState("emphasis");ee($?$.style:null,fe,c)}}function ee(se,ce,ye){var fe=se?se.text:null;if(!ce&&ye.isLeafRoot&&fe!=null){var Q=e.get("drillDownIcon",!0);se.text=Q?Q+" "+fe:fe}}function ae(se,ce,ye,fe){var Q=m!=null&&r[se][m],J=a[se];return Q?(r[se][m]=null,ne(J,Q)):p||(Q=new ce,Q instanceof _o&&(Q.z2=Nct(ye,fe)),le(J,Q)),t[se][g]=Q}function ne(se,ce){var ye=se[g]={};ce instanceof QF?(ye.oldX=ce.x,ye.oldY=ce.y):ye.oldShape=Me({},ce.shape)}function le(se,ce){var ye=se[g]={},fe=o.parentNode,Q=ce instanceof It;if(fe&&(!n||n.direction==="drillDown")){var J=0,U=0,K=a.background[fe.getRawIndex()];!n&&K&&K.oldShape&&(J=K.oldShape.width,U=K.oldShape.height),Q?(ye.oldX=0,ye.oldY=U):ye.oldShape={x:J,y:U,width:0,height:0}}ye.fadein=!Q}}function Nct(e,t){return e*Oct+t}var Qct=Hct,Em=z,Vct=St,mC=-1,C4=function(){function e(t){var r=t.mappingMethod,n=t.type,a=this.option=Bt(t);this.type=n,this.mappingMethod=r,this._normalizeData=Kct[r];var i=e.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],r==="piecewise"?(sE(a),Wct(a)):r==="category"?a.categories?Gct(a):sE(a,!0):(Ha(r!=="linear"||a.dataExtent),sE(a))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return tt(this._normalizeData,this)},e.listVisualTypes=function(){return tr(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){St(t)?z(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var a,i=Pe(t)?[]:St(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var r={},n;return t&&Em(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Pe(t))t=t.slice();else if(Vct(t)){var r=[];Em(t,function(n,a){r.push(a)}),t=r}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var a,i=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||Ze(l)&&l===t+"")return o;n&&f(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],c=u.interval,d=u.close;if(c){if(c[0]===-1/0){if(O1(d[1],t,c[1]))return o}else if(c[1]===1/0){if(O1(d[0],c[0],t))return o}else if(O1(d[0],c[0],t)&&O1(d[1],t,c[1]))return o;n&&f(c[0],o),n&&f(c[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:a;function f(A,h){var v=Math.abs(A-t);v<i&&(i=v,a=h)}},e.visualHandlers={color:{applyVisual:sg("color"),getColorMapper:function(){var t=this.option;return tt(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),$g.call(this,r)}:function(r,n,a){var i=!!a;return!n&&(r=this._normalizeData(r)),a=v0(r,t.parsedVisual,a),i?a:es(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return es(v0(t,this.option.parsedVisual),"rgba")},category:$g,piecewise:function(t,r){var n=WF.call(this,r);return n==null&&(n=es(v0(t,this.option.parsedVisual),"rgba")),n},fixed:Jd}},colorHue:L1(function(t,r){return qh(t,r)}),colorSaturation:L1(function(t,r){return qh(t,null,r)}),colorLightness:L1(function(t,r){return qh(t,null,null,r)}),colorAlpha:L1(function(t,r){return lm(t,r)}),decal:{applyVisual:sg("decal"),_normalizedToVisual:{linear:null,category:$g,piecewise:null,fixed:null}},opacity:{applyVisual:sg("opacity"),_normalizedToVisual:VF([0,1])},liftZ:{applyVisual:sg("liftZ"),_normalizedToVisual:{linear:Jd,category:Jd,piecewise:Jd,fixed:Jd}},symbol:{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:pQ,category:$g,piecewise:function(t,r){var n=WF.call(this,r);return n==null&&(n=pQ.call(this,t)),n},fixed:Jd}},symbolSize:{applyVisual:sg("symbolSize"),_normalizedToVisual:VF([0,1])}},e}();function Wct(e){var t=e.pieceList;e.hasSpecialVisual=!1,z(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function Gct(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(Em(t,function(o,s){r[o]=s}),!Pe(n)){var a=[];St(n)?Em(n,function(o,s){var l=r[s];a[l!=null?l:mC]=o}):a[mC]=n,n=Die(e,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete r[t[i]],t.pop())}function sE(e,t){var r=e.visual,n=[];St(r)?Em(r,function(i){n.push(i)}):r!=null&&n.push(r);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(e.type)&&(n[1]=n[0]),Die(e,n)}function L1(e){return{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("color",e(r("color"),a))},_normalizedToVisual:VF([0,1])}}function pQ(e){var t=this.option.visual;return t[Math.round(Tr(e,[0,1],[0,t.length-1],!0))]||{}}function sg(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function $g(e){var t=this.option.visual;return t[this.option.loop&&e!==mC?e%t.length:e]}function Jd(){return this.option.visual[0]}function VF(e){return{linear:function(t){return Tr(t,e,this.option.visual,!0)},category:$g,piecewise:function(t,r){var n=WF.call(this,r);return n==null&&(n=Tr(t,e,this.option.visual,!0)),n},fixed:Jd}}function WF(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=C4.findPieceIndex(e,r),a=r[n];if(a&&a.visual)return a.visual[this.type]}}function Die(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=$e(t,function(r){var n=Xa(r);return n||[0,0,0,1]})),t}var Kct={linear:function(e){return Tr(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=C4.findPieceIndex(e,t,!0);if(r!=null)return Tr(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t==null?mC:t},fixed:En};function O1(e,t,r){return e?t<=r:t<r}var xa=C4,jct="itemStyle",Fie=hr(),Yct={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||Mie(r,{},e.getViewRoot().getAncestors(),e)}};function Mie(e,t,r,n){var a=e.getModel(),i=e.getLayout(),o=e.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(jct),l=Xct(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),d=s.get("borderColorSaturation"),f;d!=null&&(f=gQ(l),c=qct(d,f)),u.stroke=c;var A=e.viewChildren;if(!A||!A.length)f=gQ(l),u.fill=f;else{var h=Zct(e,a,i,s,l,A);z(A,function(v,p){if(v.depth>=r.length||v===r[v.depth]){var g=Jct(a,l,v,p,h,n);Mie(v,g,r,n)}})}}}function Xct(e,t,r){var n=Me({},t),a=r.designatedVisualItemStyle;return z(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function gQ(e){var t=lE(e,"color");if(t){var r=lE(e,"colorAlpha"),n=lE(e,"colorSaturation");return n&&(t=qh(t,null,null,n)),r&&(t=lm(t,r)),t}}function qct(e,t){return t!=null?qh(t,null,null,e):null}function lE(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function Zct(e,t,r,n,a,i){if(!(!i||!i.length)){var o=uE(t,"color")||a.color!=null&&a.color!=="none"&&(uE(t,"colorAlpha")||uE(t,"colorSaturation"));if(!!o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new xa(d);return Fie(f).drColorMappingBy=c,f}}}function uE(e,t){var r=e.get(t);return Pe(r)&&r.length?{name:t,range:r}:null}function Jct(e,t,r,n,a,i){var o=Me({},t);if(a){var s=a.type,l=s==="color"&&Fie(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Im=Math.max,yC=Math.min,mQ=ea,S4=z,kie=["itemStyle","borderWidth"],edt=["itemStyle","gapWidth"],tdt=["upperLabel","show"],rdt=["upperLabel","height"],ndt={seriesType:"treemap",reset:function(e,t,r,n){var a=r.getWidth(),i=r.getHeight(),o=e.option,s=zn(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Ye(mQ(s.width,l[0]),a),c=Ye(mQ(s.height,l[1]),i),d=n&&n.type,f=["treemapZoomToNode","treemapRootToNode"],A=Tm(n,f,e),h=d==="treemapRender"||d==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),p=Eie(v);if(d!=="treemapMove"){var g=d==="treemapZoomToNode"?udt(e,A,v,u,c):h?[h.width,h.height]:[u,c],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var y={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var b={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};v.setLayout(b),Pie(v,y,!1,0),b=v.getLayout(),S4(p,function(x,S){var _=(p[S+1]||v).getValue();x.setLayout(Me({dataExtent:[_,_],borderWidth:0,upperHeight:0},b))})}var w=e.getData().tree.root;w.setLayout(cdt(s,h,A),!0),e.setLayoutInfo(s),Lie(w,new Kt(-s.x,-s.y,a,i),p,v,0)}};function Pie(e,t,r,n){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(kie),u=s.get(edt)/2,c=Oie(s),d=Math.max(l,c),f=l-u,A=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Im(a-2*f,0),i=Im(i-f-A,0);var h=a*i,v=adt(e,s,h,t,r,n);if(!!v.length){var p={x:f,y:A,width:a,height:i},g=yC(a,i),m=1/0,y=[];y.area=0;for(var b=0,w=v.length;b<w;){var x=v[b];y.push(x),y.area+=x.getLayout().area;var S=ldt(y,g,t.squareRatio);S<=m?(b++,m=S):(y.area-=y.pop().getLayout().area,yQ(y,g,p,u,!1),g=yC(p.width,p.height),y.length=y.area=0,m=1/0)}if(y.length&&yQ(y,g,p,u,!0),!r){var _=s.get("childrenVisibleMin");_!=null&&h<_&&(r=!0)}for(var b=0,w=v.length;b<w;b++)Pie(v[b],t,r,n+1)}}}function adt(e,t,r,n,a,i){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return e.viewChildren=[];o=Rr(o,function(A){return!A.isRemoved()}),odt(o,s);var u=sdt(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=idt(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var c=0,d=o.length;c<d;c++){var f=o[c].getValue()/u.sum*r;o[c].setLayout({area:f})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function idt(e,t,r,n,a){if(!n)return r;for(var i=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/r*t<i&&(s=l,r-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),r}function odt(e,t){return t&&e.sort(function(r,n){var a=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return a===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:a}),e}function sdt(e,t,r){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],S4(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function ldt(e,t,r){for(var n=0,a=1/0,i=0,o=void 0,s=e.length;i<s;i++)o=e[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Im(u*n/l,l/(u*a)):1/0}function yQ(e,t,r,n,a){var i=t===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=r[s[i]],c=t?e.area/t:0;(a||c>r[l[o]])&&(c=r[l[o]]);for(var d=0,f=e.length;d<f;d++){var A=e[d],h={},v=c?A.getLayout().area/c:0,p=h[l[o]]=Im(c-2*n,0),g=r[s[i]]+r[l[i]]-u,m=d===f-1||g<v?g:v,y=h[l[i]]=Im(m-2*n,0);h[s[o]]=r[s[o]]+yC(n,p/2),h[s[i]]=u+yC(n,y/2),u+=m,A.setLayout(h,!0)}r[s[o]]+=c,r[l[o]]-=c}function udt(e,t,r,n,a){var i=(t||{}).node,o=[n,a];if(!i||i===r)return o;for(var s,l=n*a,u=l*e.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,d=s.children,f=0,A=d.length;f<A;f++)c+=d[f].getValue();var h=i.getValue();if(h===0)return o;u*=c/h;var v=s.getModel(),p=v.get(kie),g=Math.max(p,Oie(v));u+=4*p*p+(3*p+g)*Math.pow(u,.5),u>JD&&(u=JD),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,a*m]}function cdt(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var a=r.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function Lie(e,t,r,n,a){var i=e.getLayout(),o=r[a],s=o&&o===e;if(!(o&&!s||a===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new Kt(t.x-i.x,t.y-i.y,t.width,t.height);S4(e.viewChildren||[],function(u){Lie(u,l,r,n,a+1)})}}function Oie(e){return e.get(tdt)?e.get(rdt):0}function ddt(e){e.registerSeriesModel(Ict),e.registerChartView(Qct),e.registerVisual(Yct),e.registerLayout(ndt),Bct(e)}function fdt(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),a=r.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){cr(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function Adt(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),a=r.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],d=0;d<c.length;d++){var f=l.getShallow(c[d],!0);f!=null&&n.setItemVisual(o,c[d],f)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){Ze(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");Me(c,u);for(var d=["symbol","symbolSize","symbolKeepAspect"],f=0;f<d.length;f++)a.setItemVisual(o,d[f],n.getItemVisual(l,d[f]))}})})}function $1(e){return e instanceof Array||(e=[e,e]),e}function hdt(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),a=$1(t.get("edgeSymbol")),i=$1(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=$1(s.getShallow("symbol",!0)),c=$1(s.getShallow("symbolSize",!0)),d=s.getModel("lineStyle").getLineStyle(),f=n.ensureUniqueItemVisual(o,"style");switch(Me(f,d),f.stroke){case"source":{var A=l.node1.getVisual("style");f.stroke=A&&A.fill;break}case"target":{var A=l.node2.getVisual("style");f.stroke=A&&A.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var GF="-->",Q_=function(e){return e.get("autoCurveness")||null},$ie=function(e,t){var r=Q_(e),n=20,a=[];if(cr(r))n=r;else if(Pe(r)){e.__curvenessList=r;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},Rm=function(e,t,r){var n=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[r.uid,n,a].join(GF)},Uie=function(e){var t=e.split(GF);return[t[0],t[2],t[1]].join(GF)},vdt=function(e,t){var r=Rm(e.node1,e.node2,t);return t.__edgeMap[r]},pdt=function(e,t){var r=KF(Rm(e.node1,e.node2,t),t),n=KF(Rm(e.node2,e.node1,t),t);return r+n},KF=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function gdt(e){!Q_(e)||(e.__curvenessList=[],e.__edgeMap={},$ie(e))}function mdt(e,t,r,n){if(!!Q_(r)){var a=Rm(e,t,r),i=r.__edgeMap,o=i[Uie(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function _4(e,t,r,n){var a=Q_(t),i=Pe(a);if(!a)return null;var o=vdt(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=pdt(e,t);$ie(t,u),e.lineStyle=e.lineStyle||{};var c=Rm(e.node1,e.node2,t),d=t.__curvenessList,f=i||u%2?0:1;if(o.isForward)return d[f+s];var A=Uie(c),h=KF(A,t),v=d[s+h+f];return n?i?a&&a[0]===0?(h+f)%2?v:-v:((h%2?0:1)+f)%2?v:-v:(h+f)%2?v:-v:d[s+h+f]}function Hie(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),zie(r,e)}}function zie(e,t){e.eachEdge(function(r,n){var a=Gs(r.getModel().get(["lineStyle","curveness"]),-_4(r,t,n,!0),0),i=Ks(r.node1.getLayout()),o=Ks(r.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),r.setLayout(s)})}function ydt(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),a=r.coordinateSystem;if(a&&a.type!=="view"){var i=r.getData(),o=[];z(a.dimensions,function(f){o=o.concat(i.mapDimensionsAll(f))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var d=i.get(o[c],s);isNaN(d)||(u=!0),l.push(d)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}zie(i.graph,r)}else(!n||n==="none")&&Hie(r)})}function Ug(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,a=t.getZoom(),i=(a-1)*r+1;return i/n}function Hg(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var bQ=Math.PI,cE=[];function Nie(e,t){var r=e.coordinateSystem;if(!(r&&r.type!=="view")){var n=r.getBoundingRect(),a=e.getData(),i=a.graph,o=n.width/2+n.x,s=n.height/2+n.y,l=Math.min(n.width,n.height)/2,u=a.count();a.setLayout({cx:o,cy:s}),u&&(bdt[t](e,i,a,l,o,s,u),i.eachEdge(function(c,d){var f=Gs(c.getModel().get(["lineStyle","curveness"]),_4(c,e,d),0),A=Ks(c.node1.getLayout()),h=Ks(c.node2.getLayout()),v,p=(A[0]+h[0])/2,g=(A[1]+h[1])/2;+f&&(f*=3,v=[o*f+p*(1-f),s*f+g*(1-f)]),c.setLayout([A,h,v])}))}}var bdt={value:function(e,t,r,n,a,i,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var d=c.getValue("value"),f=u*(l?d:1)/2;s+=f,c.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=f})},symbolSize:function(e,t,r,n,a,i,o){var s=0;cE.length=o;var l=Ug(e);t.eachNode(function(d){var f=Hg(d);isNaN(f)&&(f=2),f<0&&(f=0),f*=l;var A=Math.asin(f/2/n);isNaN(A)&&(A=bQ/2),cE[d.dataIndex]=A,s+=A*2});var u=(2*bQ-s)/o/2,c=0;t.eachNode(function(d){var f=u+cE[d.dataIndex];c+=f,d.setLayout([n*Math.cos(c)+a,n*Math.sin(c)+i]),c+=f})}};function xdt(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&Nie(t,"symbolSize")})}var sh=Ow;function wdt(e,t,r){for(var n=e,a=t,i=r.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var d=n[c];d.p||(d.p=id(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=Ks(d.p),d.edges=null}var f=r.friction==null?.6:r.friction,A=f,h,v;return{warmUp:function(){A=f*.8},setFixed:function(p){n[p].fixed=!0},setUnfixed:function(p){n[p].fixed=!1},beforeStep:function(p){h=p},afterStep:function(p){v=p},step:function(p){h&&h(n,a);for(var g=[],m=n.length,y=0;y<a.length;y++){var b=a[y];if(!b.ignoreForceLayout){var w=b.n1,x=b.n2;Ju(g,x.p,w.p);var S=im(g)-b.d,_=x.w/(w.w+x.w);isNaN(_)&&(_=0),np(g,g),!w.fixed&&sh(w.p,w.p,g,_*S*A),!x.fixed&&sh(x.p,x.p,g,-(1-_)*S*A)}}for(var y=0;y<m;y++){var B=n[y];B.fixed||(Ju(g,l,B.p),sh(B.p,B.p,g,u*A))}for(var y=0;y<m;y++)for(var w=n[y],T=y+1;T<m;T++){var x=n[T];Ju(g,x.p,w.p);var S=im(g);S===0&&(Iee(g,Math.random()-.5,Math.random()-.5),S=1);var E=(w.rep+x.rep)/S/S;!w.fixed&&sh(w.pp,w.pp,g,E),!x.fixed&&sh(x.pp,x.pp,g,-E)}for(var I=[],y=0;y<m;y++){var B=n[y];B.fixed||(Ju(I,B.p,B.pp),sh(B.p,B.p,I,A),Ma(B.pp,B.p))}A=A*.992;var R=A<.01;v&&v(n,a,R),p&&p(R)}}}function Cdt(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(y){var b=i.getId(y);i.setItemLayout(y,n[b]||[NaN,NaN])}):!l||l==="none"?Hie(t):l==="circular"&&Nie(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),d=s.get("repulsion"),f=s.get("edgeLength"),A=Pe(d)?d:[d,d],h=Pe(f)?f:[f,f];h=[h[1],h[0]];var v=i.mapArray("value",function(y,b){var w=i.getItemLayout(b),x=Tr(y,u,A);return isNaN(x)&&(x=(A[0]+A[1])/2),{w:x,rep:x,fixed:i.getItemModel(b).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),p=o.mapArray("value",function(y,b){var w=a.getEdgeByIndex(b),x=Tr(y,c,h);isNaN(x)&&(x=(h[0]+h[1])/2);var S=w.getModel(),_=Gs(w.getModel().get(["lineStyle","curveness"]),-_4(w,t,b,!0),0);return{n1:v[w.node1.dataIndex],n2:v[w.node2.dataIndex],d:x,curveness:_,ignoreForceLayout:S.get("ignoreForceLayout")}}),g=r.getBoundingRect(),m=wdt(v,p,{rect:g,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(y,b){for(var w=0,x=y.length;w<x;w++)y[w].fixed&&Ma(y[w].p,a.getNodeByIndex(w).getLayout())}),m.afterStep(function(y,b,w){for(var x=0,S=y.length;x<S;x++)y[x].fixed||a.getNodeByIndex(x).setLayout(y[x].p),n[i.getId(x)]=y[x].p;for(var x=0,S=b.length;x<S;x++){var _=b[x],B=a.getEdgeByIndex(x),T=_.n1.p,E=_.n2.p,I=B.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Ma(I[0],T),Ma(I[1],E),+_.curveness&&(I[2]=[(T[0]+E[0])/2-(T[1]-E[1])*_.curveness,(T[1]+E[1])/2-(E[0]-T[0])*_.curveness]),B.setLayout(I)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function Sdt(e,t,r){var n=Me(e.getBoxLayoutParams(),{aspect:r});return zn(n,{width:t.getWidth(),height:t.getHeight()})}function _dt(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(p){var g=i.getItemModel(p);return[+g.get("x"),+g.get("y")]}),s=[],l=[];v_(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=Sdt(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var d=l[0]-s[0],f=l[1]-s[1],A=c.width,h=c.height,v=n.coordinateSystem=new My;v.zoomLimit=n.get("scaleLimit"),v.setBoundingRect(s[0],s[1],d,f),v.setViewRect(c.x,c.y,A,h),v.setCenter(n.get("center"),t),v.setZoom(n.get("zoom")),r.push(v)}}),r}var xQ=ta.prototype,dE=my.prototype,Qie=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Qie);function fE(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Bdt=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Qie},t.prototype.buildPath=function(r,n){fE(n)?xQ.buildPath.call(this,r,n):dE.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return fE(this.shape)?xQ.pointAt.call(this,r):dE.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=fE(n)?[n.x2-n.x1,n.y2-n.y1]:dE.tangentAt.call(this,r);return np(a,a)},t}(qt),Tdt=Bdt,AE=["fromSymbol","toSymbol"];function wQ(e){return"_"+e+"Type"}function CQ(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Sy(a),u=mp(o||0,l),c=Fn(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=e,c}}function Edt(e){var t=new Tdt({name:"line",subPixelOptimize:!0});return jF(t.shape,e),t}function jF(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var Idt=function(e){xe(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createLine(r,n,a),i}return t.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=Edt(o);s.shape.percent=0,Zr(s,{shape:{percent:1}},i,n),this.add(s),z(AE,function(l){var u=CQ(l,r,n);this.add(u),this[wQ(l)]=r.getItemVisual(n,l)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};jF(l.shape,s),fr(o,l,i,n),z(AE,function(u){var c=r.getItemVisual(n,u),d=wQ(u);if(this[d]!==c){this.remove(this.childOfName(u));var f=CQ(u,r,n);this.add(f)}this[d]=c},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,d=a&&a.emphasisDisabled,f=a&&a.focus,A=a&&a.blurScope;if(!a||r.hasItemOption){var h=r.getItemModel(n),v=h.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=h.getModel(["blur","lineStyle"]).getLineStyle(),u=h.getModel(["select","lineStyle"]).getLineStyle(),d=v.get("disabled"),f=v.get("focus"),A=v.get("blurScope"),c=ca(h)}var p=r.getItemVisual(n,"style"),g=p.stroke;o.useStyle(p),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,z(AE,function(x){var S=this.childOfName(x);if(S){S.setColor(g),S.style.opacity=p.opacity;for(var _=0;_<qa.length;_++){var B=qa[_],T=o.getState(B);if(T){var E=T.style||{},I=S.ensureState(B),R=I.style||(I.style={});E.stroke!=null&&(R[S.__isEmptyBrush?"stroke":"fill"]=E.stroke),E.opacity!=null&&(R.opacity=E.opacity)}}S.markRedraw()}},this);var m=i.getRawValue(n);Na(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,S){return i.getFormattedLabel(x,S,r.dataType)}},inheritColor:g||"#000",defaultOpacity:p.opacity,defaultText:(m==null?r.getName(n):isFinite(m)?hn(m):m)+""});var y=this.getTextContent();if(y){var b=c.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=b.get("position")||"middle";var w=b.get("distance");Pe(w)||(w=[w,w]),y.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),bn(this,f,A,d)},t.prototype.highlight=function(){Jl(this)},t.prototype.downplay=function(){eu(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");jF(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),i=r.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),d=l.pointAt(u),f=Ju([],d,c);np(f,f);function A(T,E){var I=T.__specifiedRotation;if(I==null){var R=l.tangentAt(E);T.attr("rotation",(E===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else T.attr("rotation",I)}if(n&&(n.setPosition(c),A(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(d),A(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,v=void 0,p=i.__labelDistance,g=p[0]*o,m=p[1]*o,y=u/2,b=l.tangentAt(y),w=[b[1],-b[0]],x=l.pointAt(y);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var S=b[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var _=-Math.atan2(b[1],b[0]);d[0]<c[0]&&(_=Math.PI+_),i.rotation=_}var B=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":B=-m,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":B=m,v="top";break;default:B=0,v="middle"}switch(i.__position){case"end":i.x=f[0]*g+d[0],i.y=f[1]*m+d[1],h=f[0]>.8?"left":f[0]<-.8?"right":"center",v=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*g+c[0],i.y=-f[1]*m+c[1],h=f[0]>.8?"right":f[0]<-.8?"left":"center",v=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*S+c[0],i.y=c[1]+B,h=b[0]<0?"right":"left",i.originX=-g*S,i.originY=-B;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+B,h="center",i.originY=-B;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*S+d[0],i.y=d[1]+B,h=b[0]>=0?"right":"left",i.originX=g*S,i.originY=-B;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||v,align:i.__align||h})}},t}(It),B4=Idt,Rdt=function(){function e(t){this.group=new It,this._LineCtor=t||B4}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=SQ(t);t.diff(i).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;!t||t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=SQ(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!Ddt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=r.getItemLayout(a);if(hE(i)){var o=new this._LineCtor(r,a,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){sd(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(!!hE(a)){var i=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,i),this.group.add(i)}},e.prototype._doUpdate=function(t,r,n,a,i){var o=t.getItemGraphicEl(n);if(!hE(r.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(r,a,i):o=new this._LineCtor(r,a,i),r.setItemGraphicEl(a,o),this.group.add(o)},e}();function Ddt(e){return e.animators&&e.animators.length>0}function SQ(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:ca(t)}}function _Q(e){return isNaN(e[0])||isNaN(e[1])}function hE(e){return e&&!_Q(e[0])&&!_Q(e[1])}var T4=Rdt,vE=[],pE=[],gE=[],lh=la,mE=vc,BQ=Math.abs;function TQ(e,t,r){for(var n=e[0],a=e[1],i=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){vE[0]=lh(n[0],a[0],i[0],c),vE[1]=lh(n[1],a[1],i[1],c);var d=BQ(mE(vE,t)-l);d<o&&(o=d,s=c)}for(var f=0;f<32;f++){var A=s+u;pE[0]=lh(n[0],a[0],i[0],s),pE[1]=lh(n[1],a[1],i[1],s),gE[0]=lh(n[0],a[0],i[0],A),gE[1]=lh(n[1],a[1],i[1],A);var d=mE(pE,t)-l;if(BQ(d)<.01)break;var h=mE(gE,t)-l;u/=2,d<0?h>=0?s=s+u:s=s-u:h>=0?s=s-u:s=s+u}return s}function yE(e,t){var r=[],n=om,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[Ks(u[0]),Ks(u[1])],u[2]&&u.__original.push(Ks(u[2])));var f=u.__original;if(u[2]!=null){if(Ma(a[0],f[0]),Ma(a[1],f[2]),Ma(a[2],f[1]),c&&c!=="none"){var A=Hg(s.node1),h=TQ(a,f[0],A*t);n(a[0][0],a[1][0],a[2][0],h,r),a[0][0]=r[3],a[1][0]=r[4],n(a[0][1],a[1][1],a[2][1],h,r),a[0][1]=r[3],a[1][1]=r[4]}if(d&&d!=="none"){var A=Hg(s.node2),h=TQ(a,f[1],A*t);n(a[0][0],a[1][0],a[2][0],h,r),a[1][0]=r[1],a[2][0]=r[2],n(a[0][1],a[1][1],a[2][1],h,r),a[1][1]=r[1],a[2][1]=r[2]}Ma(u[0],a[0]),Ma(u[1],a[2]),Ma(u[2],a[1])}else{if(Ma(i[0],f[0]),Ma(i[1],f[1]),Ju(o,i[1],i[0]),np(o,o),c&&c!=="none"){var A=Hg(s.node1);Ow(i[0],i[0],o,A*t)}if(d&&d!=="none"){var A=Hg(s.node2);Ow(i[1],i[1],o,-A*t)}Ma(u[0],i[0]),Ma(u[1],i[1])}})}function EQ(e){return e.type==="view"}var Fdt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var a=new Ey,i=new T4,o=this.group;this._controller=new Fy(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(EQ(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):fr(u,c,r)}yE(r.getGraph(),Ug(r));var d=r.getData();s.updateData(d);var f=r.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(r,n,a),clearTimeout(this._layoutTimeout);var A=r.forceLayout,h=r.get(["force","layoutAnimation"]);A&&this._startForceLayoutIteration(A,h),d.graph.eachNode(function(m){var y=m.dataIndex,b=m.getGraphicEl(),w=m.getModel();if(!!b){b.off("drag").off("dragend");var x=w.get("draggable");x&&b.on("drag",function(){A&&(A.warmUp(),!i._layouting&&i._startForceLayoutIteration(A,h),A.setFixed(y),d.setItemLayout(y,[b.x,b.y]))}).on("dragend",function(){A&&A.setUnfixed(y)}),b.setDraggable(x&&!!A,!!w.get("cursor"));var S=w.get(["emphasis","focus"]);S==="adjacency"&&(kt(b).focus=m.getAdjacentDataIndices())}}),d.graph.eachEdge(function(m){var y=m.getGraphicEl(),b=m.getModel().get(["emphasis","focus"]);!y||b==="adjacency"&&(kt(y).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var v=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),p=d.getLayout("cx"),g=d.getLayout("cy");d.eachItemGraphicEl(function(m,y){var b=d.getItemModel(y),w=b.get(["label","rotate"])||0,x=m.getSymbolPath();if(v){var S=d.getItemLayout(y),_=Math.atan2(S[1]-g,S[0]-p);_<0&&(_=Math.PI*2+_);var B=S[0]<p;B&&(_=_-Math.PI);var T=B?"left":"right";x.setTextConfig({rotation:-_,position:T,origin:"center"});var E=x.ensureState("emphasis");Me(E.textConfig||(E.textConfig={}),{position:T})}else x.setTextConfig({rotation:w*=Math.PI/180})}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var a=this;(function i(){r.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(r,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!H_(u,a,r)}),!EQ(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){p4(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){g4(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),yE(r.getGraph(),Ug(r)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),a=Ug(r);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(r){yE(r.getGraph(),Ug(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Ur),Mdt=Fdt;function uh(e){return"_EC_"+e}var kdt=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[uh(t)]){var a=new ef(t,r);return a.hostGraph=this,this.nodes.push(a),n[uh(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[uh(t)]},e.prototype.addEdge=function(t,r,n){var a=this._nodesMap,i=this._edgesMap;if(cr(t)&&(t=this.nodes[t]),cr(r)&&(r=this.nodes[r]),t instanceof ef||(t=a[uh(t)]),r instanceof ef||(r=a[uh(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new Vie(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof ef&&(t=t.id),r instanceof ef&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(r,n[i],i)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(r,n[i],i)},e.prototype.breadthFirstTraverse=function(t,r,n,a){if(r instanceof ef||(r=this._nodesMap[uh(r)]),!!r){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],d=c.node1===l?c.node2:c.node1;if(!d.__visited){if(t.call(a,d,l))return;s.push(d),d.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;r.filterSelf(function(s){var l=a[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=r.count();i<o;i++)a[r.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,a=0;a<r.length;a++)t.addNode(r[a].id,r[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e}(),ef=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t==null?"":t,this.dataIndex=r==null?-1:r}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e}(),Vie=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n==null?-1:n}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function Wie(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}xn(ef,Wie("hostGraph","data"));xn(Vie,Wie("hostGraph","edgeData"));var Pdt=kdt;function Gie(e,t,r,n,a){for(var i=new Pdt(n),o=0;o<e.length;o++)i.addNode(ea(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],d=c.source,f=c.target;i.addEdge(d,f,u)&&(l.push(c),s.push(ea(Kn(c.id,null),d+" > "+f)),u++)}var A=r.get("coordinateSystem"),h;if(A==="cartesian2d"||A==="polar")h=Al(e,r);else{var v=vp.get(A),p=v?v.dimensions||[]:[];Gt(p,"value")<0&&p.concat(["value"]);var g=yp(e,{coordDimensions:p,encodeDefine:r.getEncode()}).dimensions;h=new Ua(g,r),h.initData(e)}var m=new Ua(["value"],r);return m.initData(l,s),a&&a(h,m),Bie({mainData:h,struct:i,structAttr:"graph",datas:{node:h,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ldt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Dy(a,a),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Gf(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=this;if(i&&a){gdt(this);var s=Gie(i,a,this,!0,l);return z(s.edges,function(u){mdt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(h){var v=o._categoriesModels,p=h.getShallow("category"),g=v[p];return g&&(g.parentModel=h.parentModel,h.parentModel=g),h});var d=Or.prototype.getModel;function f(h,v){var p=d.call(this,h,v);return p.resolveParentPath=A,p}c.wrapMethod("getItemModel",function(h){return h.resolveParentPath=A,h.getModel=f,h});function A(h){if(h&&(h[0]==="label"||h[1]==="label")){var v=h.slice();return h[0]==="label"?v[0]="edgeLabel":h[1]==="label"&&(v[1]="edgeLabel"),v}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(r,a),s=i.graph.getEdgeByIndex(r),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),aa("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=dne({series:this,dataIndex:r,multipleSeries:n});return d},t.prototype._updateCategoriesData=function(){var r=$e(this.option.categories||[],function(a){return a.value!=null?a:Me({value:0},a)}),n=new Ua(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Yr),Odt=Ldt,$dt={type:"graphRoam",event:"graphRoam",update:"none"};function Udt(e){e.registerChartView(Mdt),e.registerSeriesModel(Odt),e.registerProcessor(fdt),e.registerVisual(Adt),e.registerVisual(hdt),e.registerLayout(ydt),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,xdt),e.registerLayout(Cdt),e.registerCoordinateSystem("graphView",{dimensions:My.dimensions,create:_dt}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},En),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},En),e.registerAction($dt,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=y4(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Hdt=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),zdt=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new Hdt},t.prototype.buildPath=function(r,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),c=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+a(l)*s,n.y+i(l)*s),r.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),r.lineTo(n.x-a(l)*s,n.y-i(l)*s),r.lineTo(u,c)},t}(qt),Ndt=zdt;function Qdt(e,t){var r=e.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=Ye(r[0],t.getWidth()),s=Ye(r[1],t.getHeight()),l=Ye(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function U1(e,t){var r=e==null?"":e+"";return t&&(Ze(t)?r=t.replace("{value}",r):pt(t)&&(r=t(e))),r}var Vdt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=Qdt(r,a);this._renderMain(r,n,a,i,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,a,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,d=r.getModel("axisLine"),f=d.get("roundCap"),A=f?hC:Za,h=d.get("show"),v=d.getModel("lineStyle"),p=v.get("width"),g=[u,c];Ste(g,!l),u=g[0],c=g[1];for(var m=c-u,y=u,b=0;h&&b<i.length;b++){var w=Math.min(Math.max(i[b][0],0),1);c=u+m*w;var x=new A({shape:{startAngle:y,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-p,r:o.r},silent:!0});x.setStyle({fill:i[b][1]}),x.setStyle(v.getLineStyle(["color","width"])),s.add(x),y=c}var S=function(_){if(_<=0)return i[0][1];var B;for(B=0;B<i.length;B++)if(i[B][0]>=_&&(B===0?0:i[B-1][0])<_)return i[B][1];return i[B-1][1]};this._renderTicks(r,n,a,S,o,u,c,l,p),this._renderTitleAndDetail(r,n,a,S,o),this._renderAnchor(r,o),this._renderPointer(r,n,a,S,o,u,c,l,p)},t.prototype._renderTicks=function(r,n,a,i,o,s,l,u,c){for(var d=this.group,f=o.cx,A=o.cy,h=o.r,v=+r.get("min"),p=+r.get("max"),g=r.getModel("splitLine"),m=r.getModel("axisTick"),y=r.getModel("axisLabel"),b=r.get("splitNumber"),w=m.get("splitNumber"),x=Ye(g.get("length"),h),S=Ye(m.get("length"),h),_=s,B=(l-s)/b,T=B/w,E=g.getModel("lineStyle").getLineStyle(),I=m.getModel("lineStyle").getLineStyle(),R=g.get("distance"),D,k,F=0;F<=b;F++){if(D=Math.cos(_),k=Math.sin(_),g.get("show")){var P=R?R+c:c,O=new ta({shape:{x1:D*(h-P)+f,y1:k*(h-P)+A,x2:D*(h-x-P)+f,y2:k*(h-x-P)+A},style:E,silent:!0});E.stroke==="auto"&&O.setStyle({stroke:i(F/b)}),d.add(O)}if(y.get("show")){var P=y.get("distance")+R,H=U1(hn(F/b*(p-v)+v),y.get("formatter")),V=i(F/b);d.add(new dr({style:Jr(y,{text:H,x:D*(h-x-P)+f,y:k*(h-x-P)+A,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:D<-.4?"left":D>.4?"right":"center"},{inheritColor:V}),silent:!0}))}if(m.get("show")&&F!==b){var P=m.get("distance");P=P?P+c:c;for(var W=0;W<=w;W++){D=Math.cos(_),k=Math.sin(_);var Z=new ta({shape:{x1:D*(h-P)+f,y1:k*(h-P)+A,x2:D*(h-S-P)+f,y2:k*(h-S-P)+A},silent:!0,style:I});I.stroke==="auto"&&Z.setStyle({stroke:i((F+W/w)/b)}),d.add(Z),_+=T}_-=T}else _+=B}},t.prototype._renderPointer=function(r,n,a,i,o,s,l,u,c){var d=this.group,f=this._data,A=this._progressEls,h=[],v=r.get(["pointer","show"]),p=r.getModel("progress"),g=p.get("show"),m=r.getData(),y=m.mapDimension("value"),b=+r.get("min"),w=+r.get("max"),x=[b,w],S=[s,l];function _(T,E){var I=m.getItemModel(T),R=I.getModel("pointer"),D=Ye(R.get("width"),o.r),k=Ye(R.get("length"),o.r),F=r.get(["pointer","icon"]),P=R.get("offsetCenter"),O=Ye(P[0],o.r),H=Ye(P[1],o.r),V=R.get("keepAspect"),W;return F?W=Fn(F,O-D/2,H-k,D,k,null,V):W=new Ndt({shape:{angle:-Math.PI/2,width:D,r:k,x:O,y:H}}),W.rotation=-(E+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function B(T,E){var I=p.get("roundCap"),R=I?hC:Za,D=p.get("overlap"),k=D?p.get("width"):c/m.count(),F=D?o.r-k:o.r-(T+1)*k,P=D?o.r:o.r-T*k,O=new R({shape:{startAngle:s,endAngle:E,cx:o.cx,cy:o.cy,clockwise:u,r0:F,r:P}});return D&&(O.z2=w-m.get(y,T)%w),O}(g||v)&&(m.diff(f).add(function(T){var E=m.get(y,T);if(v){var I=_(T,s);Zr(I,{rotation:-((isNaN(+E)?S[0]:Tr(E,x,S,!0))+Math.PI/2)},r),d.add(I),m.setItemGraphicEl(T,I)}if(g){var R=B(T,s),D=p.get("clip");Zr(R,{shape:{endAngle:Tr(E,x,S,D)}},r),d.add(R),iF(r.seriesIndex,m.dataType,T,R),h[T]=R}}).update(function(T,E){var I=m.get(y,T);if(v){var R=f.getItemGraphicEl(E),D=R?R.rotation:s,k=_(T,D);k.rotation=D,fr(k,{rotation:-((isNaN(+I)?S[0]:Tr(I,x,S,!0))+Math.PI/2)},r),d.add(k),m.setItemGraphicEl(T,k)}if(g){var F=A[E],P=F?F.shape.endAngle:s,O=B(T,P),H=p.get("clip");fr(O,{shape:{endAngle:Tr(I,x,S,H)}},r),d.add(O),iF(r.seriesIndex,m.dataType,T,O),h[T]=O}}).execute(),m.each(function(T){var E=m.getItemModel(T),I=E.getModel("emphasis"),R=I.get("focus"),D=I.get("blurScope"),k=I.get("disabled");if(v){var F=m.getItemGraphicEl(T),P=m.getItemVisual(T,"style"),O=P.fill;if(F instanceof Aa){var H=F.style;F.useStyle(Me({image:H.image,x:H.x,y:H.y,width:H.width,height:H.height},P))}else F.useStyle(P),F.type!=="pointer"&&F.setColor(O);F.setStyle(E.getModel(["pointer","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",i(Tr(m.get(y,T),x,[0,1],!0))),F.z2EmphasisLift=0,_a(F,E),bn(F,R,D,k)}if(g){var V=h[T];V.useStyle(m.getItemVisual(T,"style")),V.setStyle(E.getModel(["progress","itemStyle"]).getItemStyle()),V.z2EmphasisLift=0,_a(V,E),bn(V,R,D,k)}}),this._progressEls=h)},t.prototype._renderAnchor=function(r,n){var a=r.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=Fn(s,n.cx-o/2+Ye(l[0],n.r),n.cy-o/2+Ye(l[1],n.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,a,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),d=+r.get("max"),f=new It,A=[],h=[],v=r.isAnimationEnabled(),p=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){A[g]=new dr({silent:!0}),h[g]=new dr({silent:!0})}).update(function(g,m){A[g]=s._titleEls[m],h[g]=s._detailEls[m]}).execute(),l.each(function(g){var m=l.getItemModel(g),y=l.get(u,g),b=new It,w=i(Tr(y,[c,d],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var S=x.get("offsetCenter"),_=o.cx+Ye(S[0],o.r),B=o.cy+Ye(S[1],o.r),T=A[g];T.attr({z2:p?0:2,style:Jr(x,{x:_,y:B,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:w})}),b.add(T)}var E=m.getModel("detail");if(E.get("show")){var I=E.get("offsetCenter"),R=o.cx+Ye(I[0],o.r),D=o.cy+Ye(I[1],o.r),k=Ye(E.get("width"),o.r),F=Ye(E.get("height"),o.r),P=r.get(["progress","show"])?l.getItemVisual(g,"style").fill:w,T=h[g],O=E.get("formatter");T.attr({z2:p?0:2,style:Jr(E,{x:R,y:D,text:U1(y,O),width:isNaN(k)?null:k,height:isNaN(F)?null:F,align:"center",verticalAlign:"middle"},{inheritColor:P})}),pre(T,{normal:E},y,function(V){return U1(V,O)}),v&&gre(T,g,l,r,{getFormattedLabel:function(V,W,Z,ee,ae,ne){return U1(ne?ne.interpolatedValue:y,O)}}),b.add(T)}f.add(b)}),this.group.add(f),this._titleEls=A,this._detailEls=h},t.type="gauge",t}(Ur),Wdt=Vdt,Gdt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return xp(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Yr),Kdt=Gdt;function jdt(e){e.registerChartView(Wdt),e.registerSeriesModel(Kdt)}var Ydt=["itemStyle","opacity"],Xdt=function(e){xe(t,e);function t(r,n){var a=e.call(this)||this,i=a,o=new ei,s=new dr;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(r,n,!0),a}return t.prototype.updateData=function(r,n,a){var i=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(Ydt);c=c==null?1:c,a||ds(i),i.useStyle(r.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Zr(i,{style:{opacity:c}},o,n)):fr(i,{style:{opacity:c},shape:{points:l.points}},o,n),_a(i,s),this._updateLabel(r,n),bn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,d=r.getItemVisual(n,"style"),f=d.fill;Na(o,ca(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:d.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var A=c.linePoints;i.setShape({points:A}),a.textGuideLineConfig={anchor:A?new zt(A[0][0],A[0][1]):null},fr(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),s4(a,l4(l),{stroke:f})},t}(Ja),qdt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Xdt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);vm(u,r,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Ur),Zdt=qdt,Jdt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Dy(tt(this.getData,this),tt(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return xp(this,{coordDimensions:["value"],encodeDefaulter:Lt(FL,this)})},t.prototype._defaultLabelLine=function(r){Gf(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),a=e.prototype.getDataParams.call(this,r),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,r)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Yr),eft=Jdt;function tft(e,t){return zn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function rft(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();o<s;o++)a[o]=o;return pt(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function nft(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var a=e.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",d,f,A,h;if(c)o==="insideLeft"?(f=(u[0][0]+u[3][0])/2+5,A=(u[0][1]+u[3][1])/2,d="left"):o==="insideRight"?(f=(u[1][0]+u[2][0])/2-5,A=(u[1][1]+u[2][1])/2,d="right"):(f=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,A=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,d="center"),h=[[f,A],[f,A]];else{var v=void 0,p=void 0,g=void 0,m=void 0,y=s.get("length");o==="left"?(v=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,g=v-y,f=g-5,d="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,g=v+y,f=g+5,d="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,m=p-y,A=m-5,d="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,m=p+y,A=m+5,d="center"):o==="rightTop"?(v=r==="horizontal"?u[3][0]:u[1][0],p=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(m=p-y,A=m-5,d="center"):(g=v+y,f=g+5,d="top")):o==="rightBottom"?(v=u[2][0],p=u[2][1],r==="horizontal"?(m=p+y,A=m+5,d="center"):(g=v+y,f=g+5,d="bottom")):o==="leftTop"?(v=u[0][0],p=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(m=p-y,A=m-5,d="center"):(g=v-y,f=g-5,d="right")):o==="leftBottom"?(v=r==="horizontal"?u[1][0]:u[3][0],p=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(m=p+y,A=m+5,d="center"):(g=v-y,f=g-5,d="right")):(v=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,r==="horizontal"?(m=p+y,A=m+5,d="center"):(g=v+y,f=g+5,d="left")),r==="horizontal"?(g=v,f=g):(m=p,A=m),h=[[v,p],[g,m]]}l.label={linePoints:h,x:f,y:A,verticalAlign:"middle",textAlign:d,inside:c}})}function aft(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),a=n.mapDimension("value"),i=r.get("sort"),o=tft(r,t),s=r.get("orient"),l=o.width,u=o.height,c=rft(n,i),d=o.x,f=o.y,A=s==="horizontal"?[Ye(r.get("minSize"),u),Ye(r.get("maxSize"),u)]:[Ye(r.get("minSize"),l),Ye(r.get("maxSize"),l)],h=n.getDataExtent(a),v=r.get("min"),p=r.get("max");v==null&&(v=Math.min(h[0],0)),p==null&&(p=h[1]);var g=r.get("funnelAlign"),m=r.get("gap"),y=s==="horizontal"?l:u,b=(y-m*(n.count()-1))/n.count(),w=function(D,k){if(s==="horizontal"){var F=n.get(a,D)||0,P=Tr(F,[v,p],A,!0),O=void 0;switch(g){case"top":O=f;break;case"center":O=f+(u-P)/2;break;case"bottom":O=f+(u-P);break}return[[k,O],[k,O+P]]}var H=n.get(a,D)||0,V=Tr(H,[v,p],A,!0),W;switch(g){case"left":W=d;break;case"center":W=d+(l-V)/2;break;case"right":W=d+l-V;break}return[[W,k],[W+V,k]]};i==="ascending"&&(b=-b,m=-m,s==="horizontal"?d+=l:f+=u,c=c.reverse());for(var x=0;x<c.length;x++){var S=c[x],_=c[x+1],B=n.getItemModel(S);if(s==="horizontal"){var T=B.get(["itemStyle","width"]);T==null?T=b:(T=Ye(T,l),i==="ascending"&&(T=-T));var E=w(S,d),I=w(_,d+T);d+=T+m,n.setItemLayout(S,{points:E.concat(I.slice().reverse())})}else{var R=B.get(["itemStyle","height"]);R==null?R=b:(R=Ye(R,u),i==="ascending"&&(R=-R));var E=w(S,f),I=w(_,f+R);f+=R+m,n.setItemLayout(S,{points:E.concat(I.slice().reverse())})}}nft(n)})}function ift(e){e.registerChartView(Zdt),e.registerSeriesModel(eft),e.registerLayout(aft),e.registerProcessor(Ry("funnel"))}var oft=.3,sft=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new It,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,d=RQ(r);s.diff(l).add(f).update(A).remove(h).execute();function f(p){var g=IQ(s,o,p,c,u);bE(g,s,p,d)}function A(p,g){var m=l.getItemGraphicEl(g),y=Kie(s,p,c,u);s.setItemGraphicEl(p,m),fr(m,{shape:{points:y}},r,p),ds(m),bE(m,s,p,d)}function h(p){var g=l.getItemGraphicEl(p);o.remove(g)}if(!this._initialized){this._initialized=!0;var v=lft(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(v)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=RQ(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var d=IQ(i,this._dataGroup,c,s,o);d.incremental=!0,bE(d,i,c,l),u.push(d)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Ur);function lft(e,t,r){var n=e.model,a=e.getRect(),i=new lr({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Zr(i,{shape:{width:a.width,height:a.height}},t,r),i}function Kie(e,t,r,n){for(var a=[],i=0;i<r.length;i++){var o=r[i],s=e.get(e.mapDimension(o),t);uft(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function IQ(e,t,r,n,a){var i=Kie(e,r,n,a),o=new ei({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function RQ(e){var t=e.get("smooth",!0);return t===!0&&(t=oft),t=rl(t),Sv(t)&&(t=0),{smooth:t}}function bE(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var a=t.getItemModel(r),i=a.getModel("emphasis");_a(e,a,"lineStyle"),bn(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function uft(e,t){return t==="category"?e==null:e==null||isNaN(e)}var cft=sft,dft=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.getInitialData=function(r,n){return Al(null,this,{useEncodeDefaulter:tt(fft,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){r===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Yr);function fft(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(!!t){var r={};return z(t.dimensions,function(n){var a=Aft(n);r[n]=a}),r}}function Aft(e){return+e.replace("dim","")}var hft=dft,vft=["lineStyle","opacity"],pft={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(a,i){r.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(vft,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}},gft=pft;function mft(e){yft(e),bft(e)}function yft(e){if(!e.parallel){var t=!1;z(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function bft(e){var t=$r(e.parallelAxis);z(t,function(r){if(!!St(r)){var n=r.parallelIndex||0,a=$r(e.parallel)[n];a&&a.parallelAxisDefault&&Ut(r,a.parallelAxisDefault,!1)}})}var xft=5,wft=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this._model=r,this._api=a,this._handlers||(this._handlers={},z(Cft,function(i,o){a.getZr().on(o,this._handlers[o]=tt(i,this))},this)),gp(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){bm(this,"_throttledDispatchExpand"),z(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(Me({type:"parallelAxisExpand"},r))},t.type="parallel",t}(en),Cft={mousedown:function(e){xE(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(xE(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>xft)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!xE(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function xE(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var Sft=wft,_ft=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&Ut(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var a=r.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(r){z(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],a=Rr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);z(a,function(i){r.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(ir),Bft=_ft,Tft=function(e){xe(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Po),Eft=Tft;function _A(e,t,r,n,a,i){e=e||0;var o=r[1]-r[0];if(a!=null&&(a=ch(a,[0,o])),i!=null&&(i=Math.max(i,a!=null?a:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=ch(s,[0,o]),a=i=ch(s,[a,i]),n=0}t[0]=ch(t[0],r),t[1]=ch(t[1],r);var l=wE(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=ch(t[n],c);var d;return d=wE(t,n),a!=null&&(d.sign!==l.sign||d.span<a)&&(t[1-n]=t[n]+l.sign*a),d=wE(t,n),i!=null&&d.span>i&&(t[1-n]=t[n]+d.sign*i),t}function wE(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function ch(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var CE=z,jie=Math.min,Yie=Math.max,DQ=Math.floor,Ift=Math.ceil,FQ=hn,Rft=Math.PI,Dft=function(){function e(t,r,n){this.type="parallel",this._axesMap=At(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=t.dimensions,i=t.parallelAxisIndex;CE(a,function(o,s){var l=i[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Eft(o,_y(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,a=r.layoutBase,i=r.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+r.axisLength&&s>=a&&s<=a+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(!!t.contains(n,r)){var a=n.getData();CE(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),qf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=zn(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=r[a[o]],l=[0,s],u=this.dimensions.length,c=H1(t.get("axisExpandWidth"),l),d=H1(t.get("axisExpandCount")||0,[0,u]),f=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,A=t.get("axisExpandWindow"),h;if(A)h=H1(A[1]-A[0],l),A[1]=A[0]+h;else{h=H1(c*(d-1),l);var v=t.get("axisExpandCenter")||DQ(u/2);A=[c*v-h/2],A[1]=A[0]+h}var p=(s-h)/(u-d);p<3&&(p=0);var g=[DQ(FQ(A[0]/c,1))+1,Ift(FQ(A[1]/c,1))-1],m=p/c*A[0];return{layout:i,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:A,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;r.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),CE(n,function(o,s){var l=(a.axisExpandable?Mft:Fft)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Rft/2,vertical:0},d=[u[i].x+t.x,u[i].y+t.y],f=c[i],A=Gi();od(A,A,f),ls(A,A,d),this._axesLayout[o]={position:d,rotation:f,transform:A,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];z(o,function(p){s.push(t.mapDimension(p)),l.push(i.get(p).model)});for(var u=this.hasAxisBrushed(),c=n;c<a;c++){var d=void 0;if(!u)d="normal";else{d="active";for(var f=t.getValues(s,c),A=0,h=o.length;A<h;A++){var v=l[A].getActiveState(f[A]);if(v==="inactive"){d="inactive";break}}}r(d,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)r.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return ts([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return Bt(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,a=r.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),f=d[0]!=null;if(c)f&&c&&s<i*d[0]?(u="jump",l=s-i*d[2]):f&&c&&s>i*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?_A(l,a,o,"all"):u="none";else{var A=a[1]-a[0],h=o[1]*s/A;a=[Yie(0,h-A/2)],a[1]=jie(o[1],a[0]+A),a[0]=a[1]-A}return{axisExpandWindow:a,behavior:u}},e}();function H1(e,t){return jie(Yie(e,t[0]),t[1])}function Fft(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function Mft(e,t){var r=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return e<o[0]?(s=e*i,c=i):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(a-1-e)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}var kft=Dft;function Pft(e,t){var r=[];return e.eachComponent("parallel",function(n,a){var i=new kft(n,e,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",Hn).models[0];n.coordinateSystem=a.coordinateSystem}}),r}var Lft={create:Pft},Oft=Lft,Xie=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return jf([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=Bt(r);if(n)for(var a=n.length-1;a>=0;a--)Ui(n[a])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=r&&r<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=r&&r<=n[i][1])return"active";return"inactive"},t}(ir);xn(Xie,bp);var MQ=Xie,Zf=!0,Dm=Math.min,Dv=Math.max,$ft=Math.pow,Uft=1e4,Hft=6,zft=6,kQ="globalPan",Nft={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Qft={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},PQ={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Vft=0,Wft=function(e){xe(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new It,n._uid="brushController_"+Vft++,z(Zft,function(a,i){this._handlers[i]=tt(a,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||tut(n,kQ,this._uid),z(this._handlers,function(a,i){n.on(i,a)}),this._brushType=r.brushType,this._brushOption=Ut(Bt(PQ),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;rut(r,kQ,this._uid),z(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};z(r,function(a){n[a.panelId]=Bt(a)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=$e(r,function(f){return Ut(Bt(PQ),f,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new tu(a,r,u,l).add(c).update(c).remove(d).execute(),this;function l(f,A){return(f.id!=null?f.id:n+A)+"-"+f.brushType}function u(f,A){return l(f.__brushOption,A)}function c(f,A){var h=r[f];if(A!=null&&a[A]===s)i[f]=a[A];else{var v=i[f]=A!=null?(a[A].__brushOption=h,a[A]):Zie(o,qie(o,h));E4(o,v)}}function d(f){a[f]!==s&&o.group.remove(a[f])}},t.prototype.unmount=function(){return this.enableBrush(!1),YF(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Do);function qie(e,t){var r=V_[t.brushType].createCover(e,t);return r.__brushOption=t,eoe(r,t),e.group.add(r),r}function Zie(e,t){var r=I4(t);return r.endCreating&&(r.endCreating(e,t),eoe(t,t.__brushOption)),t}function Jie(e,t){var r=t.__brushOption;I4(t).updateCoverShape(e,t,r.range,r)}function eoe(e,t){var r=t.z;r==null&&(r=Uft),e.traverse(function(n){n.z=r,n.z2=r})}function E4(e,t){I4(t).updateCommon(e,t),Jie(e,t)}function I4(e){return V_[e.__brushOption.brushType]}function R4(e,t,r){var n=e._panels;if(!n)return Zf;var a,i=e._transform;return z(n,function(o){o.isTargetByCursor(t,r,i)&&(a=o)}),a}function toe(e,t){var r=e._panels;if(!r)return Zf;var n=t.__brushOption.panelId;return n!=null?r[n]:Zf}function YF(e){var t=e._covers,r=t.length;return z(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function Jf(e,t){var r=$e(e._covers,function(n){var a=n.__brushOption,i=Bt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Gft(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],a=r[0]-n[0],i=r[1]-n[1],o=$ft(a*a+i*i,.5);return o>Hft}function roe(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function noe(e,t,r,n){var a=new It;return a.add(new lr({name:"main",style:D4(r),silent:!0,draggable:!0,cursor:"move",drift:Lt(LQ,e,t,a,["n","s","w","e"]),ondragend:Lt(Jf,t,{isEnd:!0})})),z(n,function(i){a.add(new lr({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Lt(LQ,e,t,a,i),ondragend:Lt(Jf,t,{isEnd:!0})}))}),a}function aoe(e,t,r,n){var a=n.brushStyle.lineWidth||0,i=Dv(a,zft),o=r[0][0],s=r[1][0],l=o-a/2,u=s-a/2,c=r[0][1],d=r[1][1],f=c-i+a/2,A=d-i+a/2,h=c-o,v=d-s,p=h+a,g=v+a;wl(e,t,"main",o,s,h,v),n.transformable&&(wl(e,t,"w",l,u,i,g),wl(e,t,"e",f,u,i,g),wl(e,t,"n",l,u,p,i),wl(e,t,"s",l,A,p,i),wl(e,t,"nw",l,u,i,i),wl(e,t,"ne",f,u,i,i),wl(e,t,"sw",l,A,i,i),wl(e,t,"se",f,A,i,i))}function XF(e,t){var r=t.__brushOption,n=r.transformable,a=t.childAt(0);a.useStyle(D4(r)),a.attr({silent:!n,cursor:n?"move":"default"}),z([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?qF(e,i[0]):jft(e,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Qft[s]+"-resize":null})})}function wl(e,t,r,n,a,i,o){var s=t.childOfName(r);s&&s.setShape(Xft(F4(e,t,[[n,a],[n+i,a+o]])))}function D4(e){return yt({strokeNoScale:!0},e.brushStyle)}function ioe(e,t,r,n){var a=[Dm(e,r),Dm(t,n)],i=[Dv(e,r),Dv(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Kft(e){return mc(e.group)}function qF(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=w_(r[t],Kft(e));return n[a]}function jft(e,t){var r=[qF(e,t[0]),qF(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function LQ(e,t,r,n,a,i){var o=r.__brushOption,s=e.toRectRange(o.range),l=ooe(t,a,i);z(n,function(u){var c=Nft[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(ioe(s[0][0],s[1][0],s[0][1],s[1][1])),E4(t,r),Jf(t,{isEnd:!1})}function Yft(e,t,r,n){var a=t.__brushOption.range,i=ooe(e,r,n);z(a,function(o){o[0]+=i[0],o[1]+=i[1]}),E4(e,t),Jf(e,{isEnd:!1})}function ooe(e,t,r){var n=e.group,a=n.transformCoordToLocal(t,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function F4(e,t,r){var n=toe(e,t);return n&&n!==Zf?n.clipPath(r,e._transform):Bt(r)}function Xft(e){var t=Dm(e[0][0],e[1][0]),r=Dm(e[0][1],e[1][1]),n=Dv(e[0][0],e[1][0]),a=Dv(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:a-r}}function qft(e,t,r){if(!(!e._brushType||Jft(e,t.offsetX,t.offsetY))){var n=e._zr,a=e._covers,i=R4(e,t,r);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Zf||s.panelId===i.panelId)&&V_[s.brushType].contain(a[o],r[0],r[1]))return}i&&n.setCursorStyle("crosshair")}}function ZF(e){var t=e.event;t.preventDefault&&t.preventDefault()}function JF(e,t,r){return e.childOfName("main").contain(t,r)}function soe(e,t,r,n){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),Gft(e)||a){if(i&&!a){o.brushMode==="single"&&YF(e);var l=Bt(o);l.brushType=OQ(l.brushType,i),l.panelId=i===Zf?null:i.panelId,a=e._creatingCover=qie(e,l),e._covers.push(a)}if(a){var u=V_[OQ(e._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(F4(e,a,e._track)),n&&(Zie(e,a),u.updateCommon(e,a)),Jie(e,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&R4(e,t,r)&&YF(e)&&(s={isEnd:n,removeOnClick:!0});return s}function OQ(e,t){return e==="auto"?t.defaultBrushType:e}var Zft={mousedown:function(e){if(this._dragging)$Q(this,e);else if(!e.target||!e.target.draggable){ZF(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=R4(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(qft(this,e,n),this._dragging){ZF(e);var a=soe(this,e,n,!1);a&&Jf(this,a)}},mouseup:function(e){$Q(this,e)}};function $Q(e,t){if(e._dragging){ZF(t);var r=t.offsetX,n=t.offsetY,a=e.group.transformCoordToLocal(r,n),i=soe(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&Jf(e,i)}}function Jft(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var V_={lineX:UQ(0),lineY:UQ(1),rect:{createCover:function(e,t){function r(n){return n}return noe({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=roe(e);return ioe(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){aoe(e,t,r,n)},updateCommon:XF,contain:JF},polygon:{createCover:function(e,t){var r=new It;return r.add(new ei({name:"main",style:D4(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ja({name:"main",draggable:!0,drift:Lt(Yft,e,t),ondragend:Lt(Jf,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:F4(e,t,r)})},updateCommon:XF,contain:JF}};function UQ(e){return{createCover:function(t,r){return noe({toRectRange:function(n){var a=[n,[0,100]];return e&&a.reverse(),a},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=roe(t),n=Dm(r[0][e],r[1][e]),a=Dv(r[0][e],r[1][e]);return[n,a]},updateCoverShape:function(t,r,n,a){var i,o=toe(t,r);if(o!==Zf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,i];e&&l.reverse(),aoe(t,r,l,a)},updateCommon:XF,contain:JF}}var M4=Wft;function loe(e){return e=k4(e),function(t){return xL(t,e)}}function uoe(e,t){return e=k4(e),function(r){var n=t!=null?t:r,a=n?e.width:e.height,i=n?e.x:e.y;return[i,i+(a||0)]}}function coe(e,t,r){var n=k4(e);return function(a,i){return n.contain(i[0],i[1])&&!H_(a,t,r)}}function k4(e){return Kt.create(e)}var eAt=["axisLine","axisTickLabel","axisName"],tAt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new M4(n.getZr())).on("brush",tt(this._onBrush,this))},t.prototype.render=function(r,n,a,i){if(!rAt(r,n,i)){this.axisModel=r,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new It,this.group.add(this._axisGroup),!!r.get("show")){var s=aAt(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,d=r.axis.dim,f=l.getAxisLayout(d),A=Me({strokeContainThreshold:c},f),h=new nu(r,A);z(eAt,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(A,u,r,s,c,a),by(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=Kt.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:loe(d),isTargetByCursor:coe(d,s,i),getLinearBrushOtherExtent:uoe(d,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(nAt(a))},t.prototype._onBrush=function(r){var n=r.areas,a=this.axisModel,i=a.axis,o=$e(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(en);function rAt(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function nAt(e){var t=e.axis;return $e(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function aAt(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var iAt=tAt,oAt={type:"axisAreaSelect",event:"axisAreaSelected"};function sAt(e){e.registerAction(oAt,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var lAt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function doe(e){e.registerComponentView(Sft),e.registerComponentModel(Bft),e.registerCoordinateSystem("parallel",Oft),e.registerPreprocessor(mft),e.registerComponentModel(MQ),e.registerComponentView(iAt),Rv(e,"parallel",MQ,lAt),sAt(e)}function uAt(e){Xt(doe),e.registerChartView(cft),e.registerSeriesModel(hft),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,gft)}var cAt=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),dAt=function(e){xe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new cAt},t.prototype.buildPath=function(r,n){var a=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+a,n.y2),r.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(r.lineTo(n.x2,n.y2+a),r.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),r.closePath()},t.prototype.highlight=function(){Jl(this)},t.prototype.downplay=function(){eu(this)},t}(qt),fAt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,a){var i=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,d=r.getData(),f=r.getData("edge"),A=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(h){var v=new dAt,p=kt(v);p.dataIndex=h.dataIndex,p.seriesIndex=r.seriesIndex,p.dataType="edge";var g=h.getModel(),m=g.getModel("lineStyle"),y=m.get("curveness"),b=h.node1.getLayout(),w=h.node1.getModel(),x=w.get("localX"),S=w.get("localY"),_=h.node2.getLayout(),B=h.node2.getModel(),T=B.get("localX"),E=B.get("localY"),I=h.getLayout(),R,D,k,F,P,O,H,V;switch(v.shape.extent=Math.max(1,I.dy),v.shape.orient=A,A==="vertical"?(R=(x!=null?x*u:b.x)+I.sy,D=(S!=null?S*c:b.y)+b.dy,k=(T!=null?T*u:_.x)+I.ty,F=E!=null?E*c:_.y,P=R,O=D*(1-y)+F*y,H=k,V=D*y+F*(1-y)):(R=(x!=null?x*u:b.x)+b.dx,D=(S!=null?S*c:b.y)+I.sy,k=T!=null?T*u:_.x,F=(E!=null?E*c:_.y)+I.ty,P=R*(1-y)+k*y,O=D,H=R*y+k*(1-y),V=F),v.setShape({x1:R,y1:D,x2:k,y2:F,cpx1:P,cpy1:O,cpx2:H,cpy2:V}),v.useStyle(m.getItemStyle()),v.style.fill){case"source":v.style.fill=h.node1.getVisual("color"),v.style.decal=h.node1.getVisual("style").decal;break;case"target":v.style.fill=h.node2.getVisual("color"),v.style.decal=h.node2.getVisual("style").decal;break;case"gradient":var W=h.node1.getVisual("color"),Z=h.node2.getVisual("color");Ze(W)&&Ze(Z)&&(v.style.fill=new op(0,0,+(A==="horizontal"),+(A==="vertical"),[{color:W,offset:0},{color:Z,offset:1}]))}var ee=g.getModel("emphasis");_a(v,g,"lineStyle",function(ne){return ne.getItemStyle()}),s.add(v),f.setItemGraphicEl(h.dataIndex,v);var ae=ee.get("focus");bn(v,ae==="adjacency"?h.getAdjacentDataIndices():ae,ee.get("blurScope"),ee.get("disabled")),kt(v).dataType="edge"}),o.eachNode(function(h){var v=h.getLayout(),p=h.getModel(),g=p.get("localX"),m=p.get("localY"),y=p.getModel("emphasis"),b=new lr({shape:{x:g!=null?g*u:v.x,y:m!=null?m*c:v.y,width:v.dx,height:v.dy},style:p.getModel("itemStyle").getItemStyle(),z2:10});Na(b,ca(p),{labelFetcher:r,labelDataIndex:h.dataIndex,defaultText:h.id}),b.disableLabelAnimation=!0,b.setStyle("fill",h.getVisual("color")),b.setStyle("decal",h.getVisual("style").decal),_a(b,p),s.add(b),d.setItemGraphicEl(h.dataIndex,b),kt(b).dataType="node";var w=y.get("focus");bn(b,w==="adjacency"?h.getAdjacentDataIndices():w,y.get("blurScope"),y.get("disabled"))}),d.eachItemGraphicEl(function(h,v){var p=d.getItemModel(v);p.get("draggable")&&(h.drift=function(g,m){i._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=m,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:d.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},h.ondragend=function(){i._focusAdjacencyDisabled=!1},h.draggable=!0,h.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(AAt(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Ur);function AAt(e,t,r){var n=new lr({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Zr(n,{shape:{width:e.width+20}},t,r),n}var hAt=fAt,vAt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var a=r.edges||r.links,i=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Or(o[l],this,n));if(i&&a){var u=Gie(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(A,h){var v=A.parentModel,p=v.getData().getItemLayout(h);if(p){var g=p.depth,m=v.levelModels[g];m&&(A.parentModel=m)}return A}),f.wrapMethod("getItemModel",function(A,h){var v=A.parentModel,p=v.getGraph().getEdgeByIndex(h),g=p.node1.getLayout();if(g){var m=g.depth,y=v.levelModels[m];y&&(A.parentModel=y)}return A})}},t.prototype.setNodePosition=function(r,n){var a=this.option.data||this.option.nodes,i=a[r];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,a){function i(A){return isNaN(A)||A==null}if(a==="edge"){var o=this.getDataParams(r,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return aa("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(r),d=c.getLayout().value,f=this.getDataParams(r,a).data.name;return aa("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var a=e.prototype.getDataParams.call(this,r,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(r),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Yr),pAt=vAt;function gAt(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),a=r.get("nodeGap"),i=mAt(r,t);r.layoutInfo=i;var o=i.width,s=i.height,l=r.getGraph(),u=l.nodes,c=l.edges;bAt(u);var d=Rr(u,function(v){return v.getLayout().value===0}),f=d.length!==0?0:r.get("layoutIterations"),A=r.get("orient"),h=r.get("nodeAlign");yAt(u,c,n,a,o,s,f,A,h)})}function mAt(e,t){return zn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function yAt(e,t,r,n,a,i,o,s,l){xAt(e,t,r,a,i,s,l),_At(e,t,i,a,n,o,s),kAt(e,s)}function bAt(e){z(e,function(t){var r=xc(t.outEdges,bC),n=xc(t.inEdges,bC),a=t.getValue()||0,i=Math.max(r,n,a);t.setLayout({value:i},!0)})}function xAt(e,t,r,n,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f<t.length;f++)s[f]=1;for(var f=0;f<e.length;f++)l[f]=e[f].inEdges.length,l[f]===0&&u.push(e[f]);for(var A=-1;u.length;){for(var h=0;h<u.length;h++){var v=u[h],p=v.hostGraph.data.getRawDataItem(v.dataIndex),g=p.depth!=null&&p.depth>=0;g&&p.depth>A&&(A=p.depth),v.setLayout({depth:g?p.depth:d},!0),i==="vertical"?v.setLayout({dy:r},!0):v.setLayout({dx:r},!0);for(var m=0;m<v.outEdges.length;m++){var y=v.outEdges[m],b=t.indexOf(y);s[b]=0;var w=y.node2,x=e.indexOf(w);--l[x]===0&&c.indexOf(w)<0&&c.push(w)}}++d,u=c,c=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var S=A>d-1?A:d-1;o&&o!=="left"&&wAt(e,o,i,S);var _=i==="vertical"?(a-r)/S:(n-r)/S;SAt(e,_,i)}function foe(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function wAt(e,t,r,n){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}z(e,function(d){foe(d)||d.setLayout({depth:Math.max(0,n-d.getLayout().skNodeHeight)},!0)})}else t==="justify"&&CAt(e,n)}function CAt(e,t){z(e,function(r){!foe(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function SAt(e,t,r){z(e,function(n){var a=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function _At(e,t,r,n,a,i,o){var s=BAt(e,o);TAt(s,t,r,n,a,o),SE(s,a,r,n,o);for(var l=1;i>0;i--)l*=.99,EAt(s,l,o),SE(s,a,r,n,o),MAt(s,l,o),SE(s,a,r,n,o)}function BAt(e,t){var r=[],n=t==="vertical"?"y":"x",a=tF(e,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),z(a.keys,function(i){r.push(a.buckets.get(i))}),r}function TAt(e,t,r,n,a,i){var o=1/0;z(e,function(s){var l=s.length,u=0;z(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(n-(l-1)*a)/u:(r-(l-1)*a)/u;c<o&&(o=c)}),z(e,function(s){z(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),z(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function SE(e,t,r,n,a){var i=a==="vertical"?"x":"y";z(e,function(o){o.sort(function(v,p){return v.getLayout()[i]-p.getLayout()[i]});for(var s,l,u,c=0,d=o.length,f=a==="vertical"?"dx":"dy",A=0;A<d;A++)l=o[A],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+t;var h=a==="vertical"?n:r;if(u=c-t-h,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var A=d-2;A>=0;--A)l=o[A],u=l.getLayout()[i]+l.getLayout()[f]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function EAt(e,t,r){z(e.slice().reverse(),function(n){z(n,function(a){if(a.outEdges.length){var i=xc(a.outEdges,IAt,r)/xc(a.outEdges,bC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,RAt,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-Vc(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Vc(a,r))*t;a.setLayout({y:l},!0)}}})})}function IAt(e,t){return Vc(e.node2,t)*e.getValue()}function RAt(e,t){return Vc(e.node2,t)}function DAt(e,t){return Vc(e.node1,t)*e.getValue()}function FAt(e,t){return Vc(e.node1,t)}function Vc(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function bC(e){return e.getValue()}function xc(e,t,r){for(var n=0,a=e.length,i=-1;++i<a;){var o=+t(e[i],r);isNaN(o)||(n+=o)}return n}function MAt(e,t,r){z(e,function(n){z(n,function(a){if(a.inEdges.length){var i=xc(a.inEdges,DAt,r)/xc(a.inEdges,bC);if(isNaN(i)){var o=a.inEdges.length;i=o?xc(a.inEdges,FAt,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-Vc(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Vc(a,r))*t;a.setLayout({y:l},!0)}}})})}function kAt(e,t){var r=t==="vertical"?"x":"y";z(e,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[r]-i.node2.getLayout()[r]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[r]-i.node1.getLayout()[r]})}),z(e,function(n){var a=0,i=0;z(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),z(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function PAt(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),n=r.nodes;if(n.length){var a=1/0,i=-1/0;z(n,function(o){var s=o.getLayout().value;s<a&&(a=s),s>i&&(i=s)}),z(n,function(o){var s=new xa({type:"color",mappingMethod:"linear",dataExtent:[a,i],visual:t.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}})}function LAt(e){e.registerChartView(hAt),e.registerSeriesModel(pAt),e.registerLayout(gAt),e.registerVisual(PAt),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var Aoe=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,a=r.getComponent("xAxis",this.get("xAxisIndex")),i=r.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,d=this._baseAxisDim=u[c],f=u[1-c],A=[a,i],h=A[c].get("type"),v=A[1-c].get("type"),p=t.data;if(p&&l){var g=[];z(p,function(b,w){var x;Pe(b)?(x=b.slice(),b.unshift(w)):Pe(b.value)?(x=Me({},b),x.value=x.value.slice(),b.value.unshift(w)):x=b,g.push(x)}),t.data=g}var m=this.defaultValueDimensions,y=[{name:d,type:lC(h),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:lC(v),dimsDef:m.slice()}];return xp(this,{coordDimensions:y,dimensionsCount:m.length+1,encodeDefaulter:Lt(Lre,y,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),hoe=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Yr);xn(hoe,Aoe,!0);var OAt=hoe,$At=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=HQ(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(ds(d),voe(f,d,i,u)):d=HQ(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(r){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(Ur),UAt=function(){function e(){}return e}(),HAt=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new UAt},t.prototype.buildPath=function(r,n){var a=n.points,i=0;for(r.moveTo(a[i][0],a[i][1]),i++;i<4;i++)r.lineTo(a[i][0],a[i][1]);for(r.closePath();i<a.length;i++)r.moveTo(a[i][0],a[i][1]),i++,r.lineTo(a[i][0],a[i][1])},t}(qt);function HQ(e,t,r,n,a){var i=e.ends,o=new HAt({shape:{points:a?zAt(i,n,e):i}});return voe(e,o,t,r,a),o}function voe(e,t,r,n,a){var i=r.hostModel,o=xy[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},i,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");_a(t,s),bn(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function zAt(e,t,r){return $e(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}var NAt=$At;function QAt(e,t){}var T0=z;function VAt(e){var t=WAt(e);T0(t,function(r){var n=r.seriesModels;!n.length||(GAt(r),T0(n,function(a,i){KAt(a,r.boxOffsetList[i],r.boxWidthList[i])}))})}function WAt(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=Gt(r,a);i<0&&(i=r.length,r[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(n)}),t}function GAt(e){var t=e.axis,r=e.seriesModels,n=r.length,a=e.boxWidthList=[],i=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;T0(r,function(h){l=Math.max(l,h.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}T0(r,function(h){var v=h.get("boxWidth");Pe(v)||(v=[v,v]),o.push([Ye(v[0],s)||0,Ye(v[1],s)||0])});var c=s*.8-2,d=c/n*.3,f=(c-d*(n-1))/n,A=f/2-c/2;T0(r,function(h,v){i.push(A),A+=d+f,a.push(Math.min(Math.max(f,o[v][0]),o[v][1]))})}function KAt(e,t,r){var n=e.coordinateSystem,a=e.getData(),i=r/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var d=0;d<a.count();d++){var f=a.get(u,d),A=y(f,c[2],d),h=y(f,c[0],d),v=y(f,c[1],d),p=y(f,c[3],d),g=y(f,c[4],d),m=[];b(m,v,!1),b(m,p,!0),m.push(h,v,g,p),w(m,h),w(m,g),w(m,A),a.setItemLayout(d,{initBaseline:A[s],ends:m})}function y(x,S,_){var B=a.get(S,_),T=[];T[o]=x,T[s]=B;var E;return isNaN(x)||isNaN(B)?E=[NaN,NaN]:(E=n.dataToPoint(T),E[o]+=t),E}function b(x,S,_){var B=S.slice(),T=S.slice();B[o]+=i,T[o]-=i,_?x.push(B,T):x.push(T,B)}function w(x,S){var _=S.slice(),B=S.slice();_[o]-=i,B[o]+=i,x.push(_,B)}}function jAt(e,t){t=t||{};for(var r=[],n=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=Ui(e[o].slice()),l=Cx(s,.25),u=Cx(s,.5),c=Cx(s,.75),d=s[0],f=s[s.length-1],A=(a==null?1.5:a)*(c-l),h=i?d:Math.max(d,l-A),v=i?f:Math.min(f,c+A),p=t.itemNameFormatter,g=pt(p)?p({value:o}):Ze(p)?p.replace("{value}",o+""):o+"";r.push([g,h,l,u,c,v]);for(var m=0;m<s.length;m++){var y=s[m];if(y<h||y>v){var b=[g,y];n.push(b)}}}return{boxData:r,outliers:n}}var YAt={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==za){var n="";wr(n)}var a=jAt(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function XAt(e){e.registerSeriesModel(OAt),e.registerChartView(NAt),e.registerVisual(QAt),e.registerLayout(VAt),e.registerTransform(YAt)}var qAt=["color","borderColor"],ZAt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,a){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){sd(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var d=n.getItemLayout(c);if(s&&zQ(u,d))return;var f=_E(d,c,!0);Zr(f,{shape:{points:d.ends}},r,c),BE(f,n,c,o),i.add(f),n.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!n.hasValue(c)){i.remove(f);return}var A=n.getItemLayout(c);if(s&&zQ(u,A)){i.remove(f);return}f?(fr(f,{shape:{points:A.ends}},r,c),ds(f)):f=_E(A),BE(f,n,c,o),i.add(f),n.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),QQ(r,this.group);var n=r.get("clip",!0)?U_(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=a.getItemLayout(o),l=_E(s);BE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){QQ(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Ur),JAt=function(){function e(){}return e}(),eht=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new JAt},t.prototype.buildPath=function(r,n){var a=n.points;this.__simpleBox?(r.moveTo(a[4][0],a[4][1]),r.lineTo(a[6][0],a[6][1])):(r.moveTo(a[0][0],a[0][1]),r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]),r.lineTo(a[3][0],a[3][1]),r.closePath(),r.moveTo(a[4][0],a[4][1]),r.lineTo(a[5][0],a[5][1]),r.moveTo(a[6][0],a[6][1]),r.lineTo(a[7][0],a[7][1]))},t}(qt);function _E(e,t,r){var n=e.ends;return new eht({shape:{points:r?tht(n,e):n},z2:100})}function zQ(e,t){for(var r=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){r=!1;break}return r}function BE(e,t,r,n){var a=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,_a(e,a)}function tht(e,t){return $e(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var rht=function(){function e(){}return e}(),NQ=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new rht},t.prototype.buildPath=function(r,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];r.moveTo(o,a[i++]),r.lineTo(o,a[i++])}else i+=3},t}(qt);function QQ(e,t,r,n){var a=e.getData(),i=a.getLayout("largePoints"),o=new NQ({shape:{points:i},__sign:1});t.add(o);var s=new NQ({shape:{points:i},__sign:-1});t.add(s),VQ(1,o,e),VQ(-1,s,e),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function VQ(e,t,r,n){var a=r.get(["itemStyle",e>0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]),i=r.getModel("itemStyle").getItemStyle(qAt);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var nht=ZAt,poe=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,a){var i=n.getItemLayout(r);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",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}(Yr);xn(poe,Aoe,!0);var aht=poe;function iht(e){!e||!Pe(e.series)||z(e.series,function(t){St(t)&&t.type==="k"&&(t.type="candlestick")})}var oht=["itemStyle","borderColor"],sht=["itemStyle","borderColor0"],lht=["itemStyle","color"],uht=["itemStyle","color0"],cht={seriesType:"candlestick",plan:pp(),performRawSeries:!0,reset:function(e,t){function r(i,o){return o.get(i>0?lht:uht)}function n(i,o){return o.get(i>0?oht:sht)}if(!t.isSeriesFiltered(e)){var a=e.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=r(u,l),c.stroke=n(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");Me(d,c)}}}}}},dht=cht,fht={seriesType:"candlestick",plan:pp(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=Aht(e,r),a=0,i=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[a])),l=$e(r.mapDimensionsAll(o[i]),r.getDimensionIndex,r),u=l[0],c=l[1],d=l[2],f=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?h:A};function A(v,p){for(var g,m=p.getStore();(g=v.next())!=null;){var y=m.get(s,g),b=m.get(u,g),w=m.get(c,g),x=m.get(d,g),S=m.get(f,g),_=Math.min(b,w),B=Math.max(b,w),T=k(_,y),E=k(B,y),I=k(x,y),R=k(S,y),D=[];F(D,E,0),F(D,T,1),D.push(O(R),O(E),O(I),O(T)),p.setItemLayout(g,{sign:WQ(m,g,b,w,c),initBaseline:b>w?E[i]:T[i],ends:D,brushRect:P(x,S,y)})}function k(H,V){var W=[];return W[a]=V,W[i]=H,isNaN(V)||isNaN(H)?[NaN,NaN]:t.dataToPoint(W)}function F(H,V,W){var Z=V.slice(),ee=V.slice();Z[a]=Bx(Z[a]+n/2,1,!1),ee[a]=Bx(ee[a]-n/2,1,!0),W?H.push(Z,ee):H.push(ee,Z)}function P(H,V,W){var Z=k(H,W),ee=k(V,W);return Z[a]-=n/2,ee[a]-=n/2,{x:Z[0],y:Z[1],width:n,height:ee[1]-Z[1]}}function O(H){return H[a]=Bx(H[a],1),H}}function h(v,p){for(var g=$s(v.count*4),m=0,y,b=[],w=[],x,S=p.getStore();(x=v.next())!=null;){var _=S.get(s,x),B=S.get(u,x),T=S.get(c,x),E=S.get(d,x),I=S.get(f,x);if(isNaN(_)||isNaN(E)||isNaN(I)){g[m++]=NaN,m+=3;continue}g[m++]=WQ(S,x,B,T,c),b[a]=_,b[i]=E,y=t.dataToPoint(b,null,w),g[m++]=y?y[0]:NaN,g[m++]=y?y[1]:NaN,b[i]=I,y=t.dataToPoint(b,null,w),g[m++]=y?y[1]:NaN}p.setLayout("largePoints",g)}}};function WQ(e,t,r,n,a){var i;return r>n?i=-1:r<n?i=1:i=t>0?e.get(a,t-1)<=n?1:-1:1,i}function Aht(e,t){var r=e.getBaseAxis(),n,a=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=Ye(Yt(e.get("barMaxWidth"),a),a),o=Ye(Yt(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?Ye(s,a):Math.max(Math.min(a/2,i),o)}var hht=fht;function vht(e){e.registerChartView(nht),e.registerSeriesModel(aht),e.registerPreprocessor(iht),e.registerVisual(dht),e.registerLayout(hht)}function GQ(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var pht=function(e){xe(t,e);function t(r,n){var a=e.call(this)||this,i=new Ty(r,n),o=new It;return a.add(i),a.add(o),a.updateData(r,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,a=r.color,i=r.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Fn(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}GQ(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}GQ(a,r)},t.prototype.highlight=function(){Jl(this)},t.prototype.downplay=function(){eu(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var a=this,i=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=Sy(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),d=c&&c.fill,f=s.getModel("emphasis");o.setScale(u),o.traverse(function(p){p.setStyle("fill",d)});var A=mp(r.getItemVisual(n,"symbolOffset"),u);A&&(o.x=A[0],o.y=A[1]);var h=r.getItemVisual(n,"symbolRotate");o.rotation=(h||0)*Math.PI/180||0;var v={};v.showEffectOn=i.get("showEffectOn"),v.rippleScale=s.get(["rippleEffect","scale"]),v.brushType=s.get(["rippleEffect","brushType"]),v.period=s.get(["rippleEffect","period"])*1e3,v.effectOffset=n/r.count(),v.z=i.getShallow("z")||0,v.zlevel=i.getShallow("zlevel")||0,v.symbolType=l,v.color=d,v.rippleEffectColor=s.get(["rippleEffect","color"]),v.rippleNumber=s.get(["rippleEffect","number"]),v.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(v):this.startEffectAnimation(v),this._effectCfg=v):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(p){p==="emphasis"?v.showEffectOn!=="render"&&a.startEffectAnimation(v):p==="normal"&&v.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=v,bn(this,f.get("focus"),f.get("blurScope"),f.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(It),ght=pht,mht=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._symbolDraw=new Ey(ght)},t.prototype.render=function(r,n,a){var i=r.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(r)}),this.group.add(o.group)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},t.prototype.updateTransform=function(r,n,a){var i=r.getData();this.group.dirty();var o=Iy("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=ete(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Ur),yht=mht,bht=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return Al(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Yr),xht=bht;function wht(e){e.registerChartView(yht),e.registerSeriesModel(xht),e.registerLayout(Iy("effectScatter"))}var Cht=function(e){xe(t,e);function t(r,n,a){var i=e.call(this)||this;return i.add(i.createLine(r,n,a)),i._updateEffectSymbol(r,n),i}return t.prototype.createLine=function(r,n,a){return new B4(r,n,a)},t.prototype._updateEffectSymbol=function(r,n){var a=r.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Pe(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Fn(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,i,n))},t.prototype._updateEffectAnimation=function(r,n,a){var i=this.childAt(1);if(!!i){var o=r.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("constantSpeed"),c=ea(n.get("delay"),function(f){return f/r.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),u>0&&(s=this._getLineLength(i)/u*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var d=void 0;pt(c)?d=c(a):d=c,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l)}this._period=s,this._loop=l}},t.prototype._animateSymbol=function(r,n,a,i){if(n>0){r.__t=0;var o=this,s=r.animate("",i).when(n,{__t:1}).delay(a).during(function(){o._updateSymbolPosition(r)});i||s.done(function(){o.remove(r)}),s.start()}},t.prototype._getLineLength=function(r){return Fl(r.__p1,r.__cp1)+Fl(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,a){this.childAt(0).updateData(r,n,a),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,a=r.__p2,i=r.__cp1,o=r.__t,s=[r.x,r.y],l=s.slice(),u=la,c=HD;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var d=c(n[0],i[0],a[0],o),f=c(n[1],i[1],a[1],o);r.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=Fl(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*Fl(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var a=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,a,n)},t}(It),goe=Cht,Sht=function(e){xe(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createPolyline(r,n,a),i}return t.prototype._createPolyline=function(r,n,a){var i=r.getItemLayout(n),o=new ei({shape:{points:i}});this.add(o),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};fr(o,s,i,n),this._updateCommonStl(r,n,a)},t.prototype._updateCommonStl=function(r,n,a){var i=this.childAt(0),o=r.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||r.hasItemOption){var d=o.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),c=d.get("disabled"),l=d.get("focus"),u=d.get("blurScope")}i.useStyle(r.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var f=i.ensureState("emphasis");f.style=s,bn(this,l,u,c)},t.prototype.updateLayout=function(r,n){var a=this.childAt(0);a.setShape("points",r.getItemLayout(n))},t}(It),moe=Sht,_ht=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,a){return new moe(r,n,a)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Fl(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t,a=this._points,i=this._offsets,o=a.length;if(!!i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];r.x=d[0]*(1-c)+c*f[0],r.y=d[1]*(1-c)+c*f[1];var A=f[0]-d[0],h=f[1]-d[1];r.rotation=-Math.atan2(h,A)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(goe),Bht=_ht,Tht=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),Eht=function(e){xe(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Tht},t.prototype.buildPath=function(r,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){r.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)r.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],c=a[o++],d=a[o++],f=a[o++];if(r.moveTo(u,c),i>0){var A=(u+d)/2-(c-f)*i,h=(c+f)/2-(d-u)*i;r.quadraticCurveTo(A,h,d,f)}else r.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var d=i[u++],f=i[u++],A=1;A<c;A++){var h=i[u++],v=i[u++];if(Wu(d,f,h,v,s,r,n))return l}l++}else for(var l=0,u=0;u<i.length;){var d=i[u++],f=i[u++],h=i[u++],v=i[u++];if(o>0){var p=(d+h)/2-(f-v)*o,g=(f+v)/2-(h-d)*o;if(_te(d,f,p,g,h,v,s,r,n))return l}else if(Wu(d,f,h,v,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var c=a[u++],d=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(d,o),l=Math.max(d,l)}r=this._rect=new Kt(i,o,s,l)}return r},t}(qt),Iht=function(){function e(){this.group=new It}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r){var n=this._newAdded[0],a=r.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,r),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new Eht({cursor:"default"});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=r.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=kt(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Rht=Iht,Dht={seriesType:"lines",plan:pp(),reset:function(e){var t=e.coordinateSystem;if(!!t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(r){for(var u=0,c=a.start;c<a.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var d=0,f=[],c=a.start;c<a.end;c++){var A=e.getLineCoords(c,o);r&&(s[d++]=A);for(var h=0;h<A;h++)f=t.dataToPoint(o[h],!1,f),s[d++]=f[0],s[d++]=f[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var v=i.getItemModel(c),A=e.getLineCoords(c,o),p=[];if(r)for(var g=0;g<A;g++)p.push(t.dataToPoint(o[g]));else{p[0]=t.dataToPoint(o[0]),p[1]=t.dataToPoint(o[1]);var m=v.get(["lineStyle","curveness"]);+m&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*m,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*m])}i.setItemLayout(c,p)}}}}}},yoe=Dht,Fht=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=a.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=r.get("clip",!0)&&U_(r.coordinateSystem,!1,r);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,a){var i=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=yoe.reset(r,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(r,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new Rht:new T4(o?i?Bht:moe:i?goe:B4),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Ur),Mht=Fht,kht=typeof Uint32Array=="undefined"?Array:Uint32Array,Pht=typeof Float64Array=="undefined"?Array:Float64Array;function KQ(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=$e(t,function(r){var n=[r[0].coord,r[1].coord],a={coords:n};return r[0].name&&(a.fromName=r[0].name),r[1].name&&(a.toName=r[1].name),a_([a,r[0],r[1]])}))}var Lht=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],KQ(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(KQ(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=am(this._flatCoords,n.flatCoords),this._flatCoordsOffset=am(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[r*2],i=this._flatCoordsOffset[r*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),cr(r[0])){for(var a=r.length,i=new kht(a),o=new Pht(a),s=0,l=0,u=0,c=0;c<a;){u++;var d=r[c++];i[l++]=s+n,i[l++]=d;for(var f=0;f<d;f++){var A=r[c++],h=r[c++];o[s++]=A,o[s++]=h}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var a=new Ua(["value"],this);return a.hasItemOption=!1,a.initData(r.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getItemModel(r),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),aa("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r==null?this.option.large?1e4:this.get("progressive"):r},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r==null?this.option.large?2e4:this.get("progressiveThreshold"):r},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Yr),Oht=Lht;function z1(e){return e instanceof Array||(e=[e,e]),e}var $ht={seriesType:"lines",reset:function(e){var t=z1(e.get("symbol")),r=z1(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function a(i,o){var s=i.getItemModel(o),l=z1(s.getShallow("symbol",!0)),u=z1(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}},Uht=$ht;function Hht(e){e.registerChartView(Mht),e.registerSeriesModel(Oht),e.registerLayout(yoe),e.registerVisual(Uht)}var zht=256,Nht=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ss.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),A=t.length;d.width=r,d.height=n;for(var h=0;h<A;++h){var v=t[h],p=v[0],g=v[1],m=v[2],y=a(m);f.globalAlpha=y,f.drawImage(s,p-c,g-c)}if(!d.width||!d.height)return d;for(var b=f.getImageData(0,0,d.width,d.height),w=b.data,x=0,S=w.length,_=this.minOpacity,B=this.maxOpacity,T=B-_;x<S;){var y=w[x+3]/256,E=Math.floor(y*(zht-1))*4;if(y>0){var I=o(y)?l:u;y>0&&(y=y*T+_),w[x++]=I[E],w[x++]=I[E+1],w[x++]=I[E+2],w[x++]=I[E+3]*y*256}else x+=4}return f.putImageData(b,0,0),d},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ss.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-r,r,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,a=n[r]||(n[r]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}(),Qht=Nht;function Vht(e,t,r){var n=e[1]-e[0];t=$e(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&r[s]}}function Wht(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(n){return n>=t[0]&&n<=t[1]}}function jQ(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Ght=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,a,0,r.getData().count()):jQ(o)&&this._renderOnGeo(o,r,i,a)},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,a,i){var o=n.coordinateSystem;o&&(jQ(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){sd(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,a,i,o){var s=r.coordinateSystem,l=CA(s,"cartesian2d"),u,c,d,f;if(l){var A=s.getAxis("x"),h=s.getAxis("y");u=A.getBandWidth()+.5,c=h.getBandWidth()+.5,d=A.scale.getExtent(),f=h.scale.getExtent()}for(var v=this.group,p=r.getData(),g=r.getModel(["emphasis","itemStyle"]).getItemStyle(),m=r.getModel(["blur","itemStyle"]).getItemStyle(),y=r.getModel(["select","itemStyle"]).getItemStyle(),b=r.get(["itemStyle","borderRadius"]),w=ca(r),x=r.getModel("emphasis"),S=x.get("focus"),_=x.get("blurScope"),B=x.get("disabled"),T=l?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],E=a;E<i;E++){var I=void 0,R=p.getItemVisual(E,"style");if(l){var D=p.get(T[0],E),k=p.get(T[1],E);if(isNaN(p.get(T[2],E))||D<d[0]||D>d[1]||k<f[0]||k>f[1])continue;var F=s.dataToPoint([D,k]);I=new lr({shape:{x:F[0]-u/2,y:F[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(p.get(T[1],E)))continue;I=new lr({z2:1,shape:s.dataToRect([p.get(T[0],E)]).contentShape,style:R})}if(p.hasItemOption){var P=p.getItemModel(E),O=P.getModel("emphasis");g=O.getModel("itemStyle").getItemStyle(),m=P.getModel(["blur","itemStyle"]).getItemStyle(),y=P.getModel(["select","itemStyle"]).getItemStyle(),b=P.get(["itemStyle","borderRadius"]),S=O.get("focus"),_=O.get("blurScope"),B=O.get("disabled"),w=ca(P)}I.shape.r=b;var H=r.getRawValue(E),V="-";H&&H[2]!=null&&(V=H[2]+""),Na(I,w,{labelFetcher:r,labelDataIndex:E,defaultOpacity:R.opacity,defaultText:V}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=m,I.ensureState("select").style=y,bn(I,S,_,B),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),p.setItemGraphicEl(E,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(r,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new Qht;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),d=r.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),A=Math.max(c.y,0),h=Math.min(c.width+c.x,i.getWidth()),v=Math.min(c.height+c.y,i.getHeight()),p=h-f,g=v-A,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],y=l.mapArray(m,function(S,_,B){var T=r.dataToPoint([S,_]);return T[0]-=f,T[1]-=A,T.push(B),T}),b=a.getExtent(),w=a.type==="visualMap.continuous"?Wht(b,a.option.range):Vht(b,a.getPieceList(),a.option.selected);u.update(y,p,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var x=new Aa({style:{width:p,height:g,x:f,y:A,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(Ur),Kht=Ght,jht=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Al(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=vp.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Yr),Yht=jht;function Xht(e){e.registerChartView(Kht),e.registerSeriesModel(Yht)}var qht=["itemStyle","borderWidth"],YQ=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],TE=new cs,Zht=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:YQ[+c],categoryDim:YQ[1-+c]};return o.diff(s).add(function(A){if(!!o.hasValue(A)){var h=qQ(o,A),v=XQ(o,A,h,f),p=ZQ(o,f,v);o.setItemGraphicEl(A,p),i.add(p),eV(p,f,v)}}).update(function(A,h){var v=s.getItemGraphicEl(h);if(!o.hasValue(A)){i.remove(v);return}var p=qQ(o,A),g=XQ(o,A,p,f),m=_oe(o,g);v&&m!==v.__pictorialShapeStr&&(i.remove(v),o.setItemGraphicEl(A,null),v=null),v?ivt(v,f,g):v=ZQ(o,f,g,!0),o.setItemGraphicEl(A,v),v.__pictorialSymbolMeta=g,i.add(v),eV(v,f,g)}).remove(function(A){var h=s.getItemGraphicEl(A);h&&JQ(s,A,h.__pictorialSymbolMeta.animationModel,h)}).execute(),this._data=o,this.group},t.prototype.remove=function(r,n){var a=this.group,i=this._data;r.get("animation")?i&&i.eachItemGraphicEl(function(o){JQ(i,kt(o).dataIndex,r,o)}):a.removeAll()},t.type="pictorialBar",t}(Ur);function XQ(e,t,r,n){var a=e.getItemLayout(t),i=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,d=r.isAnimationEnabled(),f={dataIndex:t,layout:a,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?r:null,hoverScale:d&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};Jht(r,i,a,n,f),evt(e,t,a,i,o,f.boundingLength,f.pxSign,c,n,f),tvt(r,f.symbolScale,u,n,f);var A=f.symbolSize,h=mp(r.get("symbolOffset"),A);return rvt(r,A,a,i,o,h,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,n,f),f}function Jht(e,t,r,n,a){var i=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[i.wh]<=0),c;if(Pe(o)){var d=[EE(s,o[0])-l,EE(s,o[1])-l];d[1]<d[0]&&d.reverse(),c=d[u]}else o!=null?c=EE(s,o)-l:t?c=n.coordSysExtent[i.index][u]-l:c=r[i.wh];a.boundingLength=c,t&&(a.repeatCutLength=r[i.wh]),a.pxSign=c>0?1:-1}function EE(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function evt(e,t,r,n,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(r[d.wh]),A=e.getItemVisual(t,"symbolSize"),h;Pe(A)?h=A.slice():A==null?h=["100%","100%"]:h=[A,A],h[d.index]=Ye(h[d.index],f),h[c.index]=Ye(h[c.index],n?f:Math.abs(i)),u.symbolSize=h;var v=u.symbolScale=[h[0]/s,h[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function tvt(e,t,r,n,a){var i=e.get(qht)||0;i&&(TE.attr({scaleX:t[0],scaleY:t[1],rotation:r}),TE.updateTransform(),i/=TE.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function rvt(e,t,r,n,a,i,o,s,l,u,c,d){var f=c.categoryDim,A=c.valueDim,h=d.pxSign,v=Math.max(t[A.index]+s,0),p=v;if(n){var g=Math.abs(l),m=ea(e.get("symbolMargin"),"15%")+"",y=!1;m.lastIndexOf("!")===m.length-1&&(y=!0,m=m.slice(0,m.length-1));var b=Ye(m,t[A.index]),w=Math.max(v+b*2,0),x=y?0:b*2,S=oL(n),_=S?n:tV((g+x)/w),B=g-_*v;b=B/2/(y?_:Math.max(_-1,1)),w=v+b*2,x=y?0:b*2,!S&&n!=="fixed"&&(_=u?tV((Math.abs(u)+x)/w):0),p=_*w-x,d.repeatTimes=_,d.symbolMargin=b}var T=h*(p/2),E=d.pathPosition=[];E[f.index]=r[f.wh]/2,E[A.index]=o==="start"?T:o==="end"?l-T:l/2,i&&(E[0]+=i[0],E[1]+=i[1]);var I=d.bundlePosition=[];I[f.index]=r[f.xy],I[A.index]=r[A.xy];var R=d.barRectShape=Me({},r);R[A.wh]=h*Math.max(Math.abs(r[A.wh]),Math.abs(E[A.index]+T)),R[f.wh]=r[f.wh];var D=d.clipShape={};D[f.xy]=-r[f.xy],D[f.wh]=c.ecSize[f.wh],D[A.xy]=0,D[A.wh]=r[A.wh]}function boe(e){var t=e.symbolPatternSize,r=Fn(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function xoe(e,t,r,n){var a=e.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,d=i[t.valueDim.index]+o+r.symbolMargin*2;for(P4(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c<u?tv(v,null,h(c),r,n):tv(v,null,{scaleX:0,scaleY:0},r,n,function(){a.remove(v)}),c++});c<u;c++){var f=boe(r);f.__pictorialAnimationIndex=c,f.__pictorialRepeatTimes=u,a.add(f);var A=h(c);tv(f,{x:A.x,y:A.y,scaleX:0,scaleY:0},{scaleX:A.scaleX,scaleY:A.scaleY,rotation:A.rotation},r,n)}function h(v){var p=s.slice(),g=r.pxSign,m=v;return(r.symbolRepeatDirection==="start"?g>0:g<0)&&(m=u-1-v),p[l.index]=d*(m-u/2+.5)+s[l.index],{x:p[0],y:p[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function woe(e,t,r,n){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?tv(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(i=e.__pictorialMainPath=boe(r),a.add(i),tv(i,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function Coe(e,t,r){var n=Me({},t.barRectShape),a=e.__pictorialBarRect;a?tv(a,null,{shape:n},t,r):(a=e.__pictorialBarRect=new lr({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function Soe(e,t,r,n){if(r.symbolClip){var a=e.__pictorialClipPath,i=Me({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(a)fr(a,{shape:i},s,l);else{i[o.wh]=0,a=new lr({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=r.clipShape[o.wh],xy[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function qQ(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=nvt,r.isAnimationEnabled=avt,r}function nvt(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function avt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function ZQ(e,t,r,n){var a=new It,i=new It;return a.add(i),a.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?xoe(a,t,r):woe(a,t,r),Coe(a,r,n),Soe(a,t,r,n),a.__pictorialShapeStr=_oe(e,r),a.__pictorialSymbolMeta=r,a}function ivt(e,t,r){var n=r.animationModel,a=r.dataIndex,i=e.__pictorialBundle;fr(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,a),r.symbolRepeat?xoe(e,t,r,!0):woe(e,t,r,!0),Coe(e,r,!0),Soe(e,t,r,!0)}function JQ(e,t,r,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];P4(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),z(i,function(o){zc(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function _oe(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function P4(e,t,r){z(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function tv(e,t,r,n,a,i){t&&e.attr(t),n.symbolClip&&!a?r&&e.attr(r):r&&xy[a?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,i)}function eV(e,t,r){var n=r.dataIndex,a=r.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"),d=i.get("blurScope"),f=i.get("scale");P4(e,function(v){if(v instanceof Aa){var p=v.style;v.useStyle(Me({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},r.style))}else v.useStyle(r.style);var g=v.ensureState("emphasis");g.style=o,f&&(g.scaleX=v.scaleX*1.1,g.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=r.z2});var A=t.valueDim.posDesc[+(r.boundingLength>0)],h=e.__pictorialBarRect;Na(h,ca(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Iv(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:A}),bn(e,c,d,i.get("disabled"))}function tV(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var ovt=Zht,svt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=ld(AC.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}(AC),lvt=svt;function uvt(e){e.registerChartView(ovt),e.registerSeriesModel(lvt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Lt(sae,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lae("pictorialBar"))}var cvt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(p){return p.name}var A=new tu(this._layersSeries||[],l,f,f),h=[];A.add(tt(v,this,"add")).update(tt(v,this,"update")).remove(tt(v,this,"remove")).execute();function v(p,g,m){var y=o._layers;if(p==="remove"){s.remove(y[g]);return}for(var b=[],w=[],x,S=l[g].indices,_=0;_<S.length;_++){var B=i.getItemLayout(S[_]),T=B.x,E=B.y0,I=B.y;b.push(T,E),w.push(T,E+I),x=i.getItemVisual(S[_],"style")}var R,D=i.getItemLayout(S[0]),k=r.getModel("label"),F=k.get("margin"),P=r.getModel("emphasis");if(p==="add"){var O=h[g]=new It;R=new jae({shape:{points:b,stackedOnPoints:w,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(R),s.add(O),r.isAnimationEnabled()&&R.setClipPath(dvt(R.getBoundingRect(),r,function(){R.removeClipPath()}))}else{var O=y[m];R=O.childAt(0),s.add(O),h[g]=O,fr(R,{shape:{points:b,stackedOnPoints:w}},r),ds(R)}Na(R,ca(r),{labelDataIndex:S[_-1],defaultText:i.getName(S[_-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),R.setTextConfig({position:null,local:!0});var H=R.getTextContent();H&&(H.x=D.x-F,H.y=D.y0+D.y/2),R.useStyle(x),i.setItemGraphicEl(g,R),_a(R,r),bn(R,P.get("focus"),P.get("blurScope"),P.get("disabled"))}this._layersSeries=l,this._layers=h},t.type="themeRiver",t}(Ur);function dvt(e,t,r){var n=new lr({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Zr(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}var fvt=cvt,IE=2,Avt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Dy(tt(this.getData,this),tt(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,a={},i=tF(r,function(f){return a.hasOwnProperty(f[0]+"")||(a[f[0]+""]=-1),f[2]}),o=[];i.buckets.each(function(f,A){o.push({name:A,dataList:f})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var d=o[l].dataList[c][0]+"";a[d]=l}for(var d in a)a.hasOwnProperty(d)&&a[d]!==l&&(a[d]=l,r[n]=[d,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var a=this.getReferringComponents("singleAxis",Hn).models[0],i=a.get("type"),o=Rr(r.data,function(h){return h[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=At(),c=0,d=0;d<s.length;++d)l.push(s[d][IE]),u.get(s[d][IE])||(u.set(s[d][IE],c),c++);var f=yp(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:lC(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,A=new Ua(f,this);return A.initData(s),A},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),a=[],i=0;i<n;++i)a[i]=i;var o=r.mapDimension("single"),s=tF(a,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(d,f){return r.get(o,d)-r.get(o,f)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,a){Pe(r)||(r=r?[r]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var d=Number.MAX_VALUE,f=-1,A=o[c].indices.length,h=0;h<A;++h){var v=i.get(r[0],o[c].indices[h]),p=Math.abs(v-n);p<=d&&(u=v,d=p,f=o[c].indices[h])}s.push(f)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getName(r),s=i.get(i.mapDimension("value"),r);return aa("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Yr),hvt=Avt;function vvt(e,t){e.eachSeriesByType("themeRiver",function(r){var n=r.getData(),a=r.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=r.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=Ye(s[0],o.height),s[1]=Ye(s[1],o.height);var u=o.height-s[0]-s[1];rV(n,r,u)}else{s[0]=Ye(s[0],o.width),s[1]=Ye(s[1],o.width);var c=o.width-s[0]-s[1];rV(n,r,c)}n.setLayout("layoutInfo",i)})}function rV(e,t,r){if(!!e.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=$e(a,function(p){return $e(p.indices,function(g){var m=n.dataToPoint(e.get(i,g));return m[1]=e.get(o,g),m})}),l=pvt(s),u=l.y0,c=r/l.max,d=a.length,f=a[0].indices.length,A,h=0;h<f;++h){A=u[h]*c,e.setItemLayout(a[0].indices[h],{layerIndex:0,x:s[0][h][0],y0:A,y:s[0][h][1]*c});for(var v=1;v<d;++v)A+=s[v-1][h][1]*c,e.setItemLayout(a[v].indices[h],{layerIndex:v,x:s[v][h][0],y0:A,y:s[v][h][1]*c})}}function pvt(e){for(var t=e.length,r=e[0].length,n=[],a=[],i=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<r;++u)a[u]=(i-n[u])/2;i=0;for(var c=0;c<r;++c){var d=n[c]+a[c];d>i&&(i=d)}return{y0:a,max:i}}function gvt(e){e.registerChartView(fvt),e.registerSeriesModel(hvt),e.registerLayout(vvt),e.registerProcessor(Ry("themeRiver"))}var mvt=2,yvt=4,bvt=function(e){xe(t,e);function t(r,n,a,i){var o=e.call(this)||this;o.z2=mvt,o.textConfig={inside:!0},kt(o).seriesIndex=n.seriesIndex;var s=new dr({z2:yvt,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,a,i),o}return t.prototype.updateData=function(r,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;kt(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),d=Me({},c);d.label=null;var f=n.getVisual("style");f.lineJoin="bevel";var A=n.getVisual("decal");A&&(f.decal=Ev(A,o));var h=Oh(l.getModel("itemStyle"),d,!0);Me(d,h),z(qa,function(m){var y=s.ensureState(m),b=l.getModel([m,"itemStyle"]);y.style=b.getItemStyle();var w=Oh(b,d);w&&(y.shape=w)}),r?(s.setShape(d),s.shape.r=c.r0,fr(s,{shape:{r:c.r}},a,n.dataIndex)):(fr(s,{shape:d},a),ds(s)),s.useStyle(f),this._updateLabel(a);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=u.get("focus"),g=p==="ancestor"?n.getAncestorsIndices():p==="descendant"?n.getDescendantIndices():p;bn(this,g,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),A=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,v=i.get("show")&&!(h!=null&&Math.abs(s)<h);f.ignore=!v,z(Am,function(g){var m=g==="normal"?a.getModel("label"):a.getModel([g,"label"]),y=g==="normal",b=y?f:f.ensureState(g),w=r.getFormattedLabel(A,g);y&&(w=w||n.node.name),b.style=Jr(m,{},null,g!=="normal",!0),w&&(b.style.text=w);var x=m.get("show");x!=null&&!y&&(b.ignore=!x);var S=p(m,"position"),_=y?d:d.states[g],B=_.style.fill;_.textConfig={outsideFill:m.get("color")==="inherit"?B:null,inside:S!=="outside"};var T,E=p(m,"distance")||0,I=p(m,"align");S==="outside"?(T=o.r+E,I=l>Math.PI/2?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,I="center"):I==="left"?(T=o.r0+E,l>Math.PI/2&&(I="right")):I==="right"&&(T=o.r-E,l>Math.PI/2&&(I="left")),b.style.align=I,b.style.verticalAlign=p(m,"verticalAlign")||"middle",b.x=T*u+o.cx,b.y=T*c+o.cy;var R=p(m,"rotate"),D=0;R==="radial"?(D=-l,D<-Math.PI/2&&(D+=Math.PI)):R==="tangential"?(D=Math.PI/2-l,D>Math.PI/2?D-=Math.PI:D<-Math.PI/2&&(D+=Math.PI)):cr(R)&&(D=R*Math.PI/180),b.rotation=D});function p(g,m){var y=g.get(m);return y==null?i.get(m):y}f.dirtyStyle()},t}(Za),nV=bvt,eM="sunburstRootToNode",aV="sunburstHighlight",xvt="sunburstUnhighlight";function wvt(e){e.registerAction({type:eM,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=Tm(t,[eM],a);if(o){var s=a.getViewRoot();s&&(t.direction=w4(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:aV,update:"none"},function(t,r,n){t=Me({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Tm(t,[aV],i);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Me(t,{type:"highlight"}))}),e.registerAction({type:xvt,update:"updateView"},function(t,r,n){t=Me({},t),n.dispatchAction(Me(t,{type:"downplay"}))})}var Cvt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){var o=this;this.seriesModel=r,this.api=a,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,d=r.get("renderLabelForZeroData"),f=[];u.eachNode(function(m){f.push(m)});var A=this._oldChildren||[];h(f,A),g(l,u),this._initEvents(),this._oldChildren=f;function h(m,y){if(m.length===0&&y.length===0)return;new tu(y,m,b,b).add(w).update(w).remove(Lt(w,null)).execute();function b(x){return x.getId()}function w(x,S){var _=x==null?null:m[x],B=S==null?null:y[S];v(_,B)}}function v(m,y){if(!d&&m&&!m.getValue()&&(m=null),m!==l&&y!==l){if(y&&y.piece)m?(y.piece.updateData(!1,m,r,n,a),s.setItemGraphicEl(m.dataIndex,y.piece)):p(y);else if(m){var b=new nV(m,r,n,a);c.add(b),s.setItemGraphicEl(m.dataIndex,b)}}}function p(m){!m||m.piece&&(c.remove(m.piece),m.piece=null)}function g(m,y){y.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,r,n,a):(o.virtualPiece=new nV(m,r,n,a),c.add(o.virtualPiece)),y.piece.off("click"),o.virtualPiece.on("click",function(b){o._rootToNode(y.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=r.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Zw(u,c)}}a=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:eM,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Ur),Svt=Cvt,_vt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};Boe(a);var i=this._levelModels=$e(r.levels||[],function(l){return new Or(l,this,n)},this),o=x4.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=N_(a,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){Iie(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Yr);function Boe(e){var t=0;z(e.children,function(n){Boe(n);var a=n.value;Pe(a)&&(a=a[0]),t+=a});var r=e.value;Pe(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Pe(e.value)?e.value[0]=r:e.value=r}var Bvt=_vt,iV=Math.PI/180;function Tvt(e,t,r){t.eachSeriesByType(e,function(n){var a=n.get("center"),i=n.get("radius");Pe(i)||(i=[0,i]),Pe(a)||(a=[a,a]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=Ye(a[0],o),c=Ye(a[1],s),d=Ye(i[0],l/2),f=Ye(i[1],l/2),A=-n.get("startAngle")*iV,h=n.get("minAngle")*iV,v=n.getData().tree.root,p=n.getViewRoot(),g=p.depth,m=n.get("sort");m!=null&&Toe(p,m);var y=0;z(p.children,function(F){!isNaN(F.getValue())&&y++});var b=p.getValue(),w=Math.PI/(b||y)*2,x=p.depth>0,S=p.height-(x?-1:1),_=(f-d)/(S||1),B=n.get("clockwise"),T=n.get("stillShowZeroSum"),E=B?1:-1,I=function(F,P){if(!!F){var O=P;if(F!==v){var H=F.getValue(),V=b===0&&T?w:H*w;V<h&&(V=h),O=P+E*V;var W=F.depth-g-(x?-1:1),Z=d+_*W,ee=d+_*(W+1),ae=n.getLevelModel(F);if(ae){var ne=ae.get("r0",!0),le=ae.get("r",!0),se=ae.get("radius",!0);se!=null&&(ne=se[0],le=se[1]),ne!=null&&(Z=Ye(ne,l/2)),le!=null&&(ee=Ye(le,l/2))}F.setLayout({angle:V,startAngle:P,endAngle:O,clockwise:B,cx:u,cy:c,r0:Z,r:ee})}if(F.children&&F.children.length){var ce=0;z(F.children,function(ye){ce+=I(ye,P+ce)})}return O-P}};if(x){var R=d,D=d+_,k=Math.PI*2;v.setLayout({angle:k,startAngle:A,endAngle:A+k,clockwise:B,cx:u,cy:c,r0:R,r:D})}I(p,A)})}function Toe(e,t){var r=e.children||[];e.children=Evt(r,t),r.length&&z(e.children,function(n){Toe(n,t)})}function Evt(e,t){if(pt(t)){var r=$e(e,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return r.sort(function(a,i){return t(a.params,i.params)}),$e(r,function(a){return e[a.index]})}else{var n=t==="asc";return e.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function Ivt(e){var t={};function r(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&Ze(s)&&(s=zw(s,(n.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");Me(u,l)})})}function Rvt(e){e.registerChartView(Svt),e.registerSeriesModel(Bvt),e.registerLayout(Lt(Tvt,"sunburst")),e.registerProcessor(Lt(Ry,"sunburst")),e.registerVisual(Ivt),wvt(e)}var oV={color:"fill",borderColor:"stroke"},Dvt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ql=hr(),Fvt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Al(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=Ql(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Yr),Mvt=Fvt;function kvt(e,t){return t=t||[0,0],$e(["x","y"],function(r,n){var a=this.getAxis(r),i=t[n],o=e[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function Pvt(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:tt(kvt,e)}}}function Lvt(e,t){return t=t||[0,0],$e([0,1],function(r){var n=t[r],a=e[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function Ovt(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:tt(Lvt,e)}}}function $vt(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function Uvt(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:tt($vt,e)}}}function Hvt(e,t){return t=t||[0,0],$e(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=t[n],s=e[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function zvt(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:tt(Hvt,e)}}}function Nvt(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return e.dataToPoint(n,a)}}}}function Eoe(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||at(e,"text")))}function Ioe(e,t,r){var n=e,a,i,o;if(t==="text")o=n;else{o={},at(n,"text")&&(o.text=n.text),at(n,"rich")&&(o.rich=n.rich),at(n,"textFill")&&(o.fill=n.textFill),at(n,"textStroke")&&(o.stroke=n.textStroke),at(n,"fontFamily")&&(o.fontFamily=n.fontFamily),at(n,"fontSize")&&(o.fontSize=n.fontSize),at(n,"fontStyle")&&(o.fontStyle=n.fontStyle),at(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=at(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),at(n,"textPosition")&&(a.position=n.textPosition),at(n,"textOffset")&&(a.offset=n.textOffset),at(n,"textRotation")&&(a.rotation=n.textRotation),at(n,"textDistance")&&(a.distance=n.textDistance)}return sV(o,e),z(o.rich,function(l){sV(l,l)}),{textConfig:a,textContent:i}}function sV(e,t){!t||(t.font=t.textFont||t.font,at(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),at(t,"textAlign")&&(e.align=t.textAlign),at(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),at(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),at(t,"textWidth")&&(e.width=t.textWidth),at(t,"textHeight")&&(e.height=t.textHeight),at(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),at(t,"textPadding")&&(e.padding=t.textPadding),at(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),at(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),at(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),at(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),at(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),at(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),at(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function lV(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,i=e.fill||"#000";uV(n,t);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,z(t.rich,function(s){uV(s,s)}),n}function uV(e,t){!t||(at(t,"fill")&&(e.textFill=t.fill),at(t,"stroke")&&(e.textStroke=t.fill),at(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),at(t,"font")&&(e.font=t.font),at(t,"fontStyle")&&(e.fontStyle=t.fontStyle),at(t,"fontWeight")&&(e.fontWeight=t.fontWeight),at(t,"fontSize")&&(e.fontSize=t.fontSize),at(t,"fontFamily")&&(e.fontFamily=t.fontFamily),at(t,"align")&&(e.textAlign=t.align),at(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),at(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),at(t,"width")&&(e.textWidth=t.width),at(t,"height")&&(e.textHeight=t.height),at(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),at(t,"padding")&&(e.textPadding=t.padding),at(t,"borderColor")&&(e.textBorderColor=t.borderColor),at(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),at(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),at(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),at(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),at(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),at(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),at(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),at(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),at(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),at(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var Roe={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},cV=tr(Roe);So(tl,function(e,t){return e[t]=1,e},{});tl.join(", ");var xC=["","style","shape","extra"],Fv=hr();function L4(e,t,r,n,a){var i=e+"Animation",o=sp(e,n,a)||{},s=Fv(t).userDuring;return o.duration>0&&(o.during=s?tt(Kvt,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Me(o,r[i]),o}function Fx(e,t,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Fv(e),u=t.style;l.userDuring=t.during;var c={},d={};if(Yvt(e,t,d),fV("shape",t,d),fV("extra",t,d),!i&&s&&(jvt(e,t,c),dV("shape",e,t,c),dV("extra",e,t,c),Xvt(e,t,u,c)),d.style=u,Qvt(e,d,o),Wvt(e,t),s)if(i){var f={};z(xC,function(h){var v=h?t[h]:t;v&&v.enterFrom&&(h&&(f[h]=f[h]||{}),Me(h?f[h]:f,v.enterFrom))});var A=L4("enter",e,t,r,a);A.duration>0&&e.animateFrom(f,A)}else Vvt(e,t,a||0,r,c);Doe(e,t),u?e.dirty():e.markRedraw()}function Doe(e,t){for(var r=Fv(e).leaveToProps,n=0;n<xC.length;n++){var a=xC[n],i=a?t[a]:t;i&&i.leaveTo&&(r||(r=Fv(e).leaveToProps={}),a&&(r[a]=r[a]||{}),Me(a?r[a]:r,i.leaveTo))}}function W_(e,t,r,n){if(e){var a=e.parent,i=Fv(e).leaveToProps;if(i){var o=L4("update",e,t,r,0);o.done=function(){a.remove(e),n&&n()},e.animateTo(i,o)}else a.remove(e),n&&n()}}function $f(e){return e==="all"}function Qvt(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function Vvt(e,t,r,n,a){if(a){var i=L4("update",e,t,n,r);i.duration>0&&e.animateFrom(a,i)}}function Wvt(e,t){at(t,"silent")&&(e.silent=t.silent),at(t,"ignore")&&(e.ignore=t.ignore),e instanceof _o&&at(t,"invisible")&&(e.invisible=t.invisible),e instanceof qt&&at(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Ts={},Gvt={setTransform:function(e,t){return Ts.el[e]=t,this},getTransform:function(e){return Ts.el[e]},setShape:function(e,t){var r=Ts.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=Ts.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=Ts.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=Ts.el.style;if(t)return t[e]},setExtra:function(e,t){var r=Ts.el.extra||(Ts.el.extra={});return r[e]=t,this},getExtra:function(e){var t=Ts.el.extra;if(t)return t[e]}};function Kvt(){var e=this,t=e.el;if(!!t){var r=Fv(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Ts.el=t,n(Gvt)}}function dV(e,t,r,n){var a=r[e];if(!!a){var i=t[e],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[e]={}),$f(l))Me(o,i);else for(var u=$r(l),c=0;c<u.length;c++){var d=u[c],f=i[d];o[d]=f}else if($f(s)||Gt(s,e)>=0){!o&&(o=n[e]={});for(var A=tr(i),c=0;c<A.length;c++){var d=A[c],f=i[d];qvt(a[d],f)&&(o[d]=f)}}}}}function fV(e,t,r){var n=t[e];if(!!n)for(var a=r[e]={},i=tr(n),o=0;o<i.length;o++){var s=i[o];a[s]=p0(n[s])}}function jvt(e,t,r){for(var n=t.transition,a=$f(n)?tl:$r(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function Yvt(e,t,r){for(var n=0;n<cV.length;n++){var a=cV[n],i=Roe[a],o=t[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<tl.length;n++){var s=tl[n];t[s]!=null&&(r[s]=t[s])}}function Xvt(e,t,r,n){if(!!r){var a=e.style,i;if(a){var o=r.transition,s=t.transition;if(o&&!$f(o)){var l=$r(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var c=l[u],d=a[c];i[c]=d}}else if(e.getAnimationStyleProps&&($f(s)||$f(o)||Gt(s,"style")>=0)){var f=e.getAnimationStyleProps(),A=f?f.style:null;if(A){!i&&(i=n.style={});for(var h=tr(r),u=0;u<h.length;u++){var c=h[u];if(A[c]){var d=a[c];i[c]=d}}}}}}}function qvt(e,t){return Sa(e)?e!==t:e!=null&&isFinite(e)}var Foe=hr(),Zvt=["percent","easing","shape","style","extra"];function Moe(e){e.stopAnimation("keyframe"),e.attr(Foe(e))}function wC(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(Pe(t)){z(t,function(s){wC(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var i=sp("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=Foe(e);z(xC,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),z(n,function(u){var c=e.animators,d=s?u[s]:u;if(!!d){var f=tr(d);if(s||(f=Rr(f,function(v){return Gt(Zvt,v)<0})),!!f.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var A=0;A<c.length;A++)c[A]!==l&&c[A].targetName===l.targetName&&c[A].stopTracks(f);s&&(o[s]=o[s]||{});var h=s?o[s]:o;z(f,function(v){h[v]=((s?e[s]:e)||{})[v]}),l.whenWithKeys(a*u.percent,d,f,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var Vl="emphasis",ic="normal",O4="blur",$4="select",Wc=[ic,Vl,O4,$4],RE={normal:["itemStyle"],emphasis:[Vl,"itemStyle"],blur:[O4,"itemStyle"],select:[$4,"itemStyle"]},DE={normal:["label"],emphasis:[Vl,"label"],blur:[O4,"label"],select:[$4,"label"]},Jvt=["x","y"],ept="e\0\0",to={normal:{},emphasis:{},blur:{},select:{}},tpt={cartesian2d:Pvt,geo:Ovt,single:Uvt,polar:zvt,calendar:Nvt};function tM(e){return e instanceof qt}function rM(e){return e instanceof _o}function rpt(e,t){t.copyTransform(e),rM(t)&&rM(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,tM(t)&&tM(e)&&t.setShape(e.shape))}var npt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=AV(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(d){FE(a,null,d,u(d,i),r,l,s)}).remove(function(d){var f=o.getItemGraphicEl(d);W_(f,Ql(f).option,r)}).update(function(d,f){var A=o.getItemGraphicEl(f);FE(a,A,d,u(d,i),r,l,s)}).execute();var c=r.get("clip",!0)?U_(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=AV(n,s,a,i),u=this._progressiveEls=[];function c(A){A.isGroup||(A.incremental=!0,A.ensureState("emphasis").hoverLayer=!0)}for(var d=r.start;d<r.end;d++){var f=FE(null,null,d,l(d,o),n,this.group,s);f&&(f.traverse(c),u.push(f))}},t.prototype.eachRendered=function(r){sd(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(Ur),apt=npt;function U4(e){var t=e.type,r;if(t==="path"){var n=e.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=Loe(n);r=yy(i,null,a,n.layout||"center"),Ql(r).customPathData=i}else if(t==="image")r=new Aa({}),Ql(r).customImagePath=e.style.image;else if(t==="text")r=new dr({});else if(t==="group")r=new It;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=x_(t);if(!o){var s="";wr(s)}r=new o}return Ql(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function H4(e,t,r,n,a,i,o){Moe(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=Jvt);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;at(u,"textFill")&&(u.fill=u.textFill),at(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=tM(t)?l.decal:null;e&&d&&(d.dirty=!0,c=Ev(d,e)),l.__decalPattern=c}if(rM(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Fx(t,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),wC(t,n.keyframeAnimation,i)}function koe(e,t,r,n,a){var i=t.isGroup?null:t,o=a&&a[e].cfg;if(i){var s=i.ensureState(e);if(n===!1){var l=i.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Yf(i)}}function ipt(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Wc.length;s++)opt(n,t,Wc[s])}}function opt(e,t,r){var n=r===ic,a=n?t:CC(t,r),i=a?a.z2:null,o;i!=null&&(o=n?e:e.ensureState(r),o.z2=i||0)}function AV(e,t,r,n){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):tpt[i.type](i));for(var s=yt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:b,style:x,ordinalRawValue:w,styleEmphasis:S,visual:T,barLayout:E,currentSeriesIndices:I,font:R},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:spt(e.getData())},u,c,d={},f={},A={},h={},v=0;v<Wc.length;v++){var p=Wc[v];A[p]=e.getModel(RE[p]),h[p]=e.getModel(DE[p])}function g(D){return D===u?c||(c=t.getItemModel(D)):t.getItemModel(D)}function m(D,k){return t.hasItemOption?D===u?d[k]||(d[k]=g(D).getModel(RE[k])):g(D).getModel(RE[k]):A[k]}function y(D,k){return t.hasItemOption?D===u?f[k]||(f[k]=g(D).getModel(DE[k])):g(D).getModel(DE[k]):h[k]}return function(D,k){return u=D,c=null,d={},f={},a&&a(yt({dataIndexInside:D,dataIndex:t.getRawIndex(D),actionType:k?k.type:null},l),s)};function b(D,k){return k==null&&(k=u),t.getStore().get(t.getDimensionIndex(D||0),k)}function w(D,k){k==null&&(k=u),D=D||0;var F=t.getDimensionInfo(D);if(!F){var P=t.getDimensionIndex(D);return P>=0?t.getStore().get(P,k):void 0}var O=t.get(F.name,k),H=F&&F.ordinalMeta;return H?H.categories[O]:O}function x(D,k){k==null&&(k=u);var F=t.getItemVisual(k,"style"),P=F&&F.fill,O=F&&F.opacity,H=m(k,ic).getItemStyle();P!=null&&(H.fill=P),O!=null&&(H.opacity=O);var V={inheritColor:Ze(P)?P:"#000"},W=y(k,ic),Z=Jr(W,null,V,!1,!0);Z.text=W.getShallow("show")?Yt(e.getFormattedLabel(k,ic),Iv(t,k)):null;var ee=Xw(W,V,!1);return B(D,H),H=lV(H,Z,ee),D&&_(H,D),H.legacy=!0,H}function S(D,k){k==null&&(k=u);var F=m(k,Vl).getItemStyle(),P=y(k,Vl),O=Jr(P,null,null,!0,!0);O.text=P.getShallow("show")?Gs(e.getFormattedLabel(k,Vl),e.getFormattedLabel(k,ic),Iv(t,k)):null;var H=Xw(P,null,!0);return B(D,F),F=lV(F,O,H),D&&_(F,D),F.legacy=!0,F}function _(D,k){for(var F in k)at(k,F)&&(D[F]=k[F])}function B(D,k){D&&(D.textFill&&(k.textFill=D.textFill),D.textPosition&&(k.textPosition=D.textPosition))}function T(D,k){if(k==null&&(k=u),at(oV,D)){var F=t.getItemVisual(k,"style");return F?F[oV[D]]:null}if(at(Dvt,D))return t.getItemVisual(k,D)}function E(D){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return jat(yt({axis:k},D))}}function I(){return r.getCurrentSeriesIndices()}function R(D){return vre(D,r)}}function spt(e){var t={};return z(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function FE(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=z4(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&bn(s,n.focus,n.blurScope,n.emphasisDisabled),s}function z4(e,t,r,n,a,i){var o=-1,s=t;t&&Poe(t,n,a)&&(o=Gt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=U4(n),s&&rpt(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),to.normal.cfg=to.normal.conOpt=to.emphasis.cfg=to.emphasis.conOpt=to.blur.cfg=to.blur.conOpt=to.select.cfg=to.select.conOpt=null,to.isLegacy=!1,upt(u,r,n,a,l,to),lpt(u,r,n,a,l),H4(e,u,r,n,to,a,l),at(n,"info")&&(Ql(u).info=n.info);for(var c=0;c<Wc.length;c++){var d=Wc[c];if(d!==ic){var f=CC(n,d),A=N4(n,f,d);koe(d,u,f,A,to)}}return ipt(u,n,a),n.type==="group"&&cpt(e,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function Poe(e,t,r){var n=Ql(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&Apt(i)&&Loe(i)!==n.customPathData||a==="image"&&at(o,"image")&&o.image!==n.customImagePath}function lpt(e,t,r,n,a){var i=r.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&Poe(o,i,n)&&(o=null),o||(o=U4(i),e.setClipPath(o)),H4(null,o,t,i,null,n,a)}}function upt(e,t,r,n,a,i){if(!e.isGroup){hV(r,null,i),hV(r,Vl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=U4(o),e.setTextContent(c)),H4(null,c,t,o,null,n,a);for(var d=o&&o.style,f=0;f<Wc.length;f++){var A=Wc[f];if(A!==ic){var h=i[A].conOpt;koe(A,c,h,N4(o,h,A),null)}}d?c.dirty():c.markRedraw()}}}}function hV(e,t,r){var n=t?CC(e,t):e,a=t?N4(e,n,Vl):e.style,i=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?CC(s,t):s:null;if(a&&(r.isLegacy||Eoe(a,i,!!o,!!l))){r.isLegacy=!0;var u=Ioe(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var d=t?r[t]:r.normal;d.cfg=o,d.conOpt=l}function CC(e,t){return t?e?e[t]:null:e}function N4(e,t,r){var n=t&&t.style;return n==null&&r===Vl&&e&&(n=e.styleEmphasis),n}function cpt(e,t,r,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){dpt({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++)i[c]&&z4(e,t.childAt(c),r,i[c],a,t);for(var d=t.childCount()-1;d>=c;d--){var f=t.childAt(d);W_(f,Ql(t).option,a)}}}function dpt(e){new tu(e.oldChildren,e.newChildren,vV,vV,e).add(pV).update(pV).remove(fpt).execute()}function vV(e,t){var r=e&&e.name;return r!=null?r:ept+t}function pV(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;z4(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function fpt(e){var t=this.context,r=t.oldChildren[e];W_(r,Ql(r).option,t.seriesModel)}function Loe(e){return e&&(e.pathData||e.d)}function Apt(e){return e&&(at(e,"pathData")||at(e,"d"))}function hpt(e){e.registerChartView(apt),e.registerSeriesModel(Mvt)}var sf=hr(),gV=Bt,ME=tt,vpt=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new It,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var f=Lt(mV,r,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,r)}bV(s,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=h4(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=sf(t).pointerEl=new xy[i.type](gV(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=sf(t).labelEl=new dr(gV(r.label));t.add(i),yV(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=sf(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=sf(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),yV(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.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=lp(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Zl(u.event)},onmousedown:ME(this._onHandleDragMove,this,0,0),drift:ME(this._onHandleDragMove,this),ondragend:ME(this._onHandleDragEnd,this)}),n.add(a)),bV(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Pe(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,gp(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){mV(this._axisPointerModel,!r&&this._moveAnimation,this._handle,kE(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(!!n){this._dragging=!0;var a=this.updateHandleTransform(kE(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(kE(a)),sf(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),bm(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function mV(e,t,r,n){Ooe(sf(r).lastProp,n)||(sf(r).lastProp=n,t?fr(r,n,e):(r.stopAnimation(),r.attr(n)))}function Ooe(e,t){if(St(e)&&St(t)){var r=!0;return z(t,function(n,a){r=r&&Ooe(e[a],n)}),!!r}else return e===t}function yV(e,t){e[t.get(["label","show"])?"show":"hide"]()}function kE(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function bV(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}var Q4=vpt;function V4(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function $oe(e,t,r,n,a){var i=r.get("value"),o=Uoe(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=wA(s.get("padding")||0),u=s.getFont(),c=hy(o,u),d=a.position,f=c.width+l[1]+l[3],A=c.height+l[0]+l[2],h=a.align;h==="right"&&(d[0]-=f),h==="center"&&(d[0]-=f/2);var v=a.verticalAlign;v==="bottom"&&(d[1]-=A),v==="middle"&&(d[1]-=A/2),ppt(d,f,A,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:Jr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function ppt(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Uoe(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:i4(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};z(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),Ze(o)?i=o.replace("{value}",i):pt(o)&&(i=o(s))}return i}function W4(e,t,r){var n=Gi();return od(n,n,r.rotation),ls(n,n,r.position),ts([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function Hoe(e,t,r,n,a,i){var o=nu.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),$oe(t,n,a,i,{position:W4(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function G4(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function zoe(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function xV(e,t,r,n,a,i){return{cx:e,cy:t,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}var gpt=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=wV(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var f=V4(i),A=mpt[u](s,d,c);A.style=f,r.graphicKey=A.type,r.pointer=A}var h=$F(l.model,a);Hoe(n,r,h,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=$F(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=W4(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=wV(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[r.x,r.y];d[c]+=n[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,A=[f,f];A[c]=d[c];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:r.rotation,cursorPoint:A,tooltipOption:h[c]}},t}(Q4);function wV(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var mpt={line:function(e,t,r){var n=G4([t,r[0]],[t,r[1]],CV(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:zoe([t-n/2,r[0]],[n,a],CV(e))}}};function CV(e){return e.dim==="x"?0:1}var ypt=gpt,bpt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!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}(ir),xpt=bpt,Ll=hr(),wpt=z;function Noe(e,t,r){if(!vr.node){var n=t.getZr();Ll(n).records||(Ll(n).records={}),Cpt(n,t);var a=Ll(n).records[e]||(Ll(n).records[e]={});a.handler=r}}function Cpt(e,t){if(Ll(e).initialized)return;Ll(e).initialized=!0,r("click",Lt(SV,"click")),r("mousemove",Lt(SV,"mousemove")),r("globalout",_pt);function r(n,a){e.on(n,function(i){var o=Bpt(t);wpt(Ll(e).records,function(s){s&&a(s,i,o.dispatchAction)}),Spt(o.pendings,t)})}}function Spt(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function _pt(e,t,r){e.handler("leave",null,r)}function SV(e,t,r,n){t.handler(e,r,n)}function Bpt(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function nM(e,t){if(!vr.node){var r=t.getZr(),n=(Ll(r).records||{})[e];n&&(Ll(r).records[e]=null)}}var Tpt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Noe("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(r,n){nM("axisPointer",n)},t.prototype.dispose=function(r,n){nM("axisPointer",n)},t.type="axisPointer",t}(en),Ept=Tpt;function Qoe(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Kf(i,e);if(o==null||o<0||Pe(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,A=d==="x"||d==="radius"?1:0,h=i.mapDimension(f),v=[];v[A]=i.get(h,o),v[1-A]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(i.getValues($e(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var _V=hr();function Ipt(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||tt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Mx(a)&&(a=Qoe({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Mx(a),u=i.axesInfo,c=s.axesInfo,d=n==="leave"||Mx(a),f={},A={},h={list:[],map:{}},v={showPointer:Lt(Dpt,A),showTooltip:Lt(Fpt,h)};z(s.coordSysMap,function(g,m){var y=l||g.containPoint(a);z(s.coordSysAxesInfo[m],function(b,w){var x=b.axis,S=Lpt(u,b);if(!d&&y&&(!u||S)){var _=S&&S.value;_==null&&!l&&(_=x.pointToData(a)),_!=null&&BV(b,_,v,!1,f)}})});var p={};return z(c,function(g,m){var y=g.linkGroup;y&&!A[m]&&z(y.axesInfo,function(b,w){var x=A[w];if(b!==g&&x){var S=x.value;y.mapper&&(S=g.axis.scale.parse(y.mapper(S,TV(b),TV(g)))),p[g.key]=S}})}),z(p,function(g,m){BV(c[m],g,v,!0,f)}),Mpt(A,c,f),kpt(h,a,e,o),Ppt(c,o,r),f}}function BV(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=Rpt(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Me(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function Rpt(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return z(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),d,f;if(l.getAxisTooltipData){var A=l.getAxisTooltipData(c,e,r);f=A.dataIndices,d=A.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var h=e-d,v=Math.abs(h);v<=o&&((v<o||h>=0&&s<0)&&(o=v,s=h,a=d,i.length=0),z(f,function(p){i.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function Dpt(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Fpt(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Bm(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.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 Mpt(e,t,r){var n=r.axesInfo=[];z(t,function(a,i){var o=a.axisPointerModel.option,s=e[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 kpt(e,t,r,n){if(Mx(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function Ppt(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=_V(n)[a]||{},o=_V(n)[a]={};z(e,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&z(d.seriesDataIndices,function(f){var A=f.seriesIndex+" | "+f.dataIndex;o[A]=f})});var s=[],l=[];z(i,function(u,c){!o[c]&&l.push(u)}),z(o,function(u,c){!i[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Lpt(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function TV(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Mx(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function ky(e){SA.registerAxisPointerClass("CartesianAxisPointer",ypt),e.registerComponentModel(xpt),e.registerComponentView(Ept),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Pe(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Slt(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ipt)}function Opt(e){Xt(hie),Xt(ky)}var $pt=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(n),f=i.get("type");if(f&&f!=="none"){var A=V4(i),h=Hpt[f](s,l,d,c);h.style=A,r.graphicKey=h.type,r.pointer=h}var v=i.get(["label","margin"]),p=Upt(n,a,i,l,v);$oe(r,a,i,o,p)},t}(Q4);function Upt(e,t,r,n,a){var i=t.axis,o=i.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=Gi();od(f,f,s),ls(f,f,[n.cx,n.cy]),u=ts([o,-a],f);var A=t.getModel("axisLabel").get("rotate")||0,h=nu.innerTextLayout(s,A*Math.PI/180,-1);c=h.textAlign,d=h.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+a,o]);var p=n.cx,g=n.cy;c=Math.abs(u[0]-p)/v<.3?"center":u[0]>p?"left":"right",d=Math.abs(u[1]-g)/v<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Hpt={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:G4(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:xV(t.cx,t.cy,n[0],n[1],(-r-a/2)*i,(-r+a/2)*i)}:{type:"Sector",shape:xV(t.cx,t.cy,r-a/2,r+a/2,0,Math.PI*2)}}},zpt=$pt,Npt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,a=this.ecModel;return a.eachComponent(r,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(ir),Qpt=Npt,K4=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Hn).models[0]},t.type="polarAxis",t}(ir);xn(K4,bp);var Vpt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(K4),Wpt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(K4),j4=function(e){xe(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Po);j4.prototype.dataToRadius=Po.prototype.dataToCoord;j4.prototype.radiusToData=Po.prototype.coordToData;var Gpt=j4,Kpt=hr(),Y4=function(e){xe(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=hy(s==null?"":s+"",n.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var A=Math.max(0,Math.floor(f)),h=Kpt(r.model),v=h.lastAutoInterval,p=h.lastTickCount;return v!=null&&p!=null&&Math.abs(v-A)<=1&&Math.abs(p-o)<=1&&v>A?A=v:(h.lastTickCount=o,h.lastAutoInterval=A),A},t}(Po);Y4.prototype.dataToAngle=Po.prototype.dataToCoord;Y4.prototype.angleToData=Po.prototype.coordToData;var jpt=Y4,Voe=["radius","angle"],Ypt=function(){function e(t){this.dimensions=Voe,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Gpt,this._angleAxis=new jpt,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&r.push(n),a.scale.type===t&&r.push(a),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*r+this.cx,i=-Math.sin(n)*r+this.cy;return[a,i]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},e.prototype.convertToPixel=function(t,r,n){var a=EV(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=EV(r);return a===this?this.pointToData(n):null},e}();function EV(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}var Xpt=Ypt;function qpt(e,t,r){var n=t.get("center"),a=r.getWidth(),i=r.getHeight();e.cx=Ye(n[0],a),e.cy=Ye(n[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:Pe(l)||(l=[0,l]);var u=[Ye(l[0],s),Ye(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Zpt(e,t){var r=this,n=r.getAngleAxis(),a=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();z(uC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),z(uC(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),qf(n.scale,n.model),qf(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function Jpt(e){return e.mainType==="angleAxis"}function IV(e,t){if(e.type=t.get("type"),e.scale=_y(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Jpt(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var egt={dimensions:Voe,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,a){var i=new Xpt(a+"");i.update=Zpt;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");IV(o,l),IV(s,u),qpt(i,n,t),r.push(i),n.coordinateSystem=i,i.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",Hn).models[0];n.coordinateSystem=a.coordinateSystem}}),r}},tgt=egt,rgt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function N1(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),a=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Q1(e){var t=e.getRadiusAxis();return t.inverse?0:1}function RV(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var ngt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=r.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=$e(a.getViewLabels(),function(c){c=Bt(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});RV(u),RV(s),z(rgt,function(c){r.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&agt[c](this.group,r,i,s,l,o,u)},this)}},t.type="angleAxis",t}(SA),agt={axisLine:function(e,t,r,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=Q1(r),l=s?0:1,u;i[l]===0?u=new cs({shape:{cx:r.cx,cy:r.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new gy({shape:{cx:r.cx,cy:r.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Q1(r)],u=$e(n,function(c){return new ta({shape:N1(r,[l,l+s],c.coord)})});e.add(ki(u,{style:yt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,a,i){if(!!a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Q1(r)],c=[],d=0;d<a.length;d++)for(var f=0;f<a[d].length;f++)c.push(new ta({shape:N1(r,[u,u+l],a[d][f].coord)}));e.add(ki(c,{style:yt(s.getModel("lineStyle").getLineStyle(),yt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");z(o,function(d,f){var A=l,h=d.tickValue,v=i[Q1(r)],p=r.coordToPoint([v+u,d.coord]),g=r.cx,m=r.cy,y=Math.abs(p[0]-g)/v<.3?"center":p[0]>g?"left":"right",b=Math.abs(p[1]-m)/v<.3?"middle":p[1]>m?"top":"bottom";if(s&&s[h]){var w=s[h];St(w)&&w.textStyle&&(A=new Or(w.textStyle,l,l.ecModel))}var x=new dr({silent:nu.isLabelSilent(t),style:Jr(A,{x:p[0],y:p[1],fill:A.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:y,verticalAlign:b})});if(e.add(x),c){var S=nu.makeAxisEventDataBase(t);S.targetType="axisLabel",S.value=d.rawLabel,kt(x).eventData=S}},this)},splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<n.length;d++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new ta({shape:N1(r,i,n[d].coord)}))}for(var d=0;d<c.length;d++)e.add(ki(c[d],{style:yt({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,a,i){if(!!a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new ta({shape:N1(r,i,a[u][c].coord)}));e.add(ki(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,a,i){if(!!n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=Math.PI/180,f=-n[0].coord*d,A=Math.min(i[0],i[1]),h=Math.max(i[0],i[1]),v=t.get("clockwise"),p=1,g=n.length;p<=g;p++){var m=p===g?n[0].coord:n[p].coord,y=u++%l.length;c[y]=c[y]||[],c[y].push(new Za({shape:{cx:r.cx,cy:r.cy,r0:A,r:h,startAngle:f,endAngle:-m*d,clockwise:v},silent:!0})),f=-m*d}for(var p=0;p<c.length;p++)e.add(ki(c[p],{style:yt({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}},igt=ngt,ogt=["axisLine","axisTickLabel","axisName"],sgt=["splitLine","splitArea","minorSplitLine"],lgt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=this._axisGroup,i=this._axisGroup=new It;this.group.add(i);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),d=l.getExtent()[0],f=o.getExtent(),A=cgt(s,r,d),h=new nu(r,A);z(ogt,h.add,h),i.add(h.getGroup()),by(a,i,r),z(sgt,function(v){r.get([v,"show"])&&!o.scale.isBlank()&&ugt[v](this.group,r,s,d,f,u,c)},this)}},t.type="radiusAxis",t}(SA),ugt={splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<i.length;d++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new cs({shape:{cx:r.cx,cy:r.cy,r:Math.max(i[d].coord,0)}}))}for(var d=0;d<c.length;d++)e.add(ki(c[d],{style:yt({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,a,i,o){if(!!o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var d=0;d<o[c].length;d++)u.push(new cs({shape:{cx:r.cx,cy:r.cy,r:o[c][d].coord}}));e.add(ki(u,{style:yt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,a,i){if(!!i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=i[0].coord,f=1;f<i.length;f++){var A=u++%l.length;c[A]=c[A]||[],c[A].push(new Za({shape:{cx:r.cx,cy:r.cy,r0:d,r:i[f].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),d=i[f].coord}for(var f=0;f<c.length;f++)e.add(ki(c[f],{style:yt({fill:l[f%l.length]},s.getAreaStyle()),silent:!0}))}}};function cgt(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var dgt=lgt;function Woe(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function Goe(e,t){return t.dim+e.model.componentIndex}function fgt(e,t,r){var n={},a=Agt(Rr(t.getSeriesByType(e),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=Goe(s,l),c=Woe(i),d=a[u][c],f=d.offset,A=d.width,h=s.getOtherAxis(l),v=i.coordinateSystem.cx,p=i.coordinateSystem.cy,g=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;n[c]=n[c]||[];for(var y=o.mapDimension(h.dim),b=o.mapDimension(l.dim),w=ru(o,y),x=l.dim!=="radius"||!i.get("roundCap",!0),S=h.dataToCoord(0),_=0,B=o.count();_<B;_++){var T=o.get(y,_),E=o.get(b,_),I=T>=0?"p":"n",R=S;w&&(n[c][E]||(n[c][E]={p:S,n:S}),R=n[c][E][I]);var D=void 0,k=void 0,F=void 0,P=void 0;if(h.dim==="radius"){var O=h.dataToCoord(T)-S,H=l.dataToCoord(E);Math.abs(O)<g&&(O=(O<0?-1:1)*g),D=R,k=R+O,F=H-f,P=F-A,w&&(n[c][E][I]=k)}else{var V=h.dataToCoord(T,x)-S,W=l.dataToCoord(E);Math.abs(V)<m&&(V=(V<0?-1:1)*m),D=W+f,k=D+A,F=R,P=R+V,w&&(n[c][E][I]=P)}o.setItemLayout(_,{cx:v,cy:p,r0:D,r:k,startAngle:-F*Math.PI/180,endAngle:-P*Math.PI/180,clockwise:F>=P})}}})}function Agt(e){var t={};z(e,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Goe(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;t[l]=d;var A=Woe(n);f[A]||d.autoWidthCount++,f[A]=f[A]||{width:0,maxWidth:0};var h=Ye(n.get("barWidth"),c),v=Ye(n.get("barMaxWidth"),c),p=n.get("barGap"),g=n.get("barCategoryGap");h&&!f[A].width&&(h=Math.min(d.remainedWidth,h),f[A].width=h,d.remainedWidth-=h),v&&(f[A].maxWidth=v),p!=null&&(d.gap=p),g!=null&&(d.categoryGap=g)});var r={};return z(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=Ye(n.categoryGap,o),l=Ye(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),z(i,function(v,p){var g=v.maxWidth;g&&g<d&&(g=Math.min(g,u),v.width&&(g=Math.min(g,v.width)),u-=g,v.width=g,c--)}),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var f=0,A;z(i,function(v,p){v.width||(v.width=d),A=v,f+=v.width*(1+l)}),A&&(f-=A.width*l);var h=-f/2;z(i,function(v,p){r[a][p]=r[a][p]||{offset:h,width:v.width},h+=v.width*(1+l)})}),r}var hgt={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},vgt={splitNumber:5},pgt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(en);function ggt(e){Xt(ky),SA.registerAxisPointerClass("PolarAxisPointer",zpt),e.registerCoordinateSystem("polar",tgt),e.registerComponentModel(Qpt),e.registerComponentView(pgt),Rv(e,"angle",Vpt,hgt),Rv(e,"radius",Wpt,vgt),e.registerComponentView(igt),e.registerComponentView(dgt),e.registerLayout(Lt(fgt,"bar"))}function aM(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,a={},i=n.position,o=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var d={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=d[i],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ea(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var f=t.rotate;return f==null&&(f=e.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-f:f,a.z2=1,a}var mgt=["axisLine","axisTickLabel","axisName"],ygt=["splitArea","splitLine"],bgt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new It;var l=aM(r),u=new nu(r,l);z(mgt,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),z(ygt,function(c){r.get([c,"show"])&&xgt[c](this,this.group,this._axisGroup,r)},this),by(s,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)},t.prototype.remove=function(){die(this)},t.type="singleAxis",t}(SA),xgt={splitLine:function(e,t,r,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=[],d=0,f=a.getTicksCoords({tickModel:i}),A=[],h=[],v=0;v<f.length;++v){var p=a.toGlobalCoord(f[v].coord);u?(A[0]=p,A[1]=l.y,h[0]=p,h[1]=l.y+l.height):(A[0]=l.x,A[1]=p,h[0]=l.x+l.width,h[1]=p);var g=d++%s.length;c[g]=c[g]||[],c[g].push(new ta({subPixelOptimize:!0,shape:{x1:A[0],y1:A[1],x2:h[0],y2:h[1]},silent:!0}))}for(var m=o.getLineStyle(["color"]),v=0;v<c.length;++v)t.add(ki(c[v],{style:yt({stroke:s[v%s.length]},m),silent:!0}))}},splitArea:function(e,t,r,n){cie(e,r,n,n)}},wgt=bgt,Koe=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(ir);xn(Koe,bp.prototype);var PE=Koe,Cgt=function(e){xe(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(Po),Sgt=Cgt,joe=["single"],_gt=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=joe,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=this.dimension,i=new Sgt(a,_y(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(t,r){t.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();z(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),qf(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,r){this._rect=zn({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),a=n?[0,t.width]:[0,t.height],i=r.reverse?1:0;r.setExtent(a[i],a[1-i]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+r}:function(o){return a-o+r},t.toLocalCoord=i?function(o){return o-r}:function(o){return a-o+r}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var r=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),a=[],i=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=r.toGlobalCoord(r.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},e.prototype.convertToPixel=function(t,r,n){var a=DV(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=DV(r);return a===this?this.pointToData(n):null},e}();function DV(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function Bgt(e,t){var r=[];return e.eachComponent("singleAxis",function(n,a){var i=new _gt(n,e,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",Hn).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),r}var Tgt={create:Bgt,dimensions:joe},Egt=Tgt,FV=["x","y"],Igt=["width","height"],Rgt=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=LE(l,1-SC(s)),c=l.dataToPoint(n)[0],d=i.get("type");if(d&&d!=="none"){var f=V4(i),A=Dgt[d](s,c,u);A.style=f,r.graphicKey=A.type,r.pointer=A}var h=aM(a);Hoe(n,r,h,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=aM(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=W4(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.coordinateSystem,l=SC(o),u=LE(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=LE(s,1-l),f=(d[1]+d[0])/2,A=[f,f];return A[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:A,tooltipOption:{verticalAlign:"middle"}}},t}(Q4),Dgt={line:function(e,t,r){var n=G4([t,r[0]],[t,r[1]],SC(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),a=r[1]-r[0];return{type:"Rect",shape:zoe([t-n/2,r[0]],[n,a],SC(e))}}};function SC(e){return e.isHorizontal()?0:1}function LE(e,t){var r=e.getRect();return[r[FV[t]],r[FV[t]]+r[Igt[t]]]}var Fgt=Rgt,Mgt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(en);function kgt(e){Xt(ky),SA.registerAxisPointerClass("SingleAxisPointer",Fgt),e.registerComponentView(Mgt),e.registerComponentView(wgt),e.registerComponentModel(PE),Rv(e,"single",PE,PE.defaultOption),e.registerCoordinateSystem("single",Egt)}var Pgt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=fp(r);e.prototype.init.apply(this,arguments),MV(r,i)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),MV(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(ir);function MV(e,t){var r=e.cellSize,n;Pe(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var a=$e([0,1],function(i){return _tt(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Nc(e,t,{type:"box",ignoreSize:a})}var Lgt=Pgt,Ogt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,i),this._renderLines(r,s,l,i),this._renderYearText(r,s,l,i),this._renderMonthText(r,u,l,i),this._renderWeekText(r,u,s,l,i)},t.prototype._renderDayRect=function(r,n,a){for(var i=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new lr({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},t.prototype._renderLines=function(r,n,a,i){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=n.start,f=0;d.time<=n.end.time;f++){h(d.formatedDate),f===0&&(d=s.getDateInfo(n.start.y+"-"+n.start.m));var A=d.date;A.setMonth(A.getMonth()+1),d=s.getDateInfo(A)}h(s.getNextNDay(n.end.time,1).formatedDate);function h(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var p=o._getLinePointsOfOneWeek(r,v,a);o._tlpoints.push(p[0]),o._blpoints.push(p[p.length-1]),u&&o._drawSplitline(p,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(r,n,a){var i=[r[0].slice(),r[r.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(r,n,a){var i=new ei({z2:20,shape:{points:r},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(r,n,a){for(var i=r.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return Ze(r)&&r?xtt(r,n):pt(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,a,i){var o=r.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,A={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},h=n.start.y;+n.end.y>+n.start.y&&(h=h+"-"+n.end.y);var v=o.get("formatter"),p={start:n.start.y,end:n.end.y,nameMap:h},g=this._formatterLabel(v,p),m=new dr({z2:30,style:Jr(o,{text:g})});m.attr(this._yearTextPositionControl(m,A[l],a,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(r,n,a,i,o){var s="left",l="top",u=r[0],c=r[1];return a==="horizontal"?(c=c+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,a,i){var o=r.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||Ze(s))&&(s&&(n=AF(s)||n),s=n.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,A=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var h=c==="center",v=0;v<d[f].length-1;v++){var p=d[f][v].slice(),g=this._firstDayOfMonth[v];if(h){var m=this._firstDayPoints[v];p[A]=(m[A]+d[0][v+1][A])/2}var y=o.get("formatter"),b=s[+g.m-1],w={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:b},x=this._formatterLabel(y,w),S=new dr({z2:30,style:Me(Jr(o,{text:x}),this._monthTextPositionControl(p,h,a,u,l))});i.add(S)}}},t.prototype._weekTextPositionControl=function(r,n,a,i,o){var s="center",l="middle",u=r[0],c=r[1],d=a==="start";return n==="horizontal"?(u=u+i+(d?1:-1)*o[0]/2,s=d?"right":"left"):(c=c+i+(d?1:-1)*o[1]/2,l=d?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,a,i,o){var s=r.getModel("dayLabel");if(!!s.get("show")){var l=r.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),d=s.get("margin"),f=l.getFirstDayOfWeek();if(!c||Ze(c)){c&&(n=AF(c)||n);var A=n.get(["time","dayOfWeekShort"]);c=A||$e(n.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var h=l.getNextNDay(a.end.time,7-a.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];d=Ye(d,Math.min(v[1],v[0])),u==="start"&&(h=l.getNextNDay(a.start.time,-(7+a.fweek)).time,d=-d);for(var p=0;p<7;p++){var g=l.getNextNDay(h,p),m=l.dataToRect([g.time],!1).center,y=p;y=Math.abs((p+f)%7);var b=new dr({z2:30,style:Me(Jr(s,{text:c[y]}),this._weekTextPositionControl(m,i,u,d,v))});o.add(b)}}},t.type="calendar",t}(en),$gt=Ogt,OE=864e5,Ugt=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=Ki(t);var r=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+a+"-"+o,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype.update=function(t,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];z([0,1],function(d){c(i,d)&&(o[a[d]]=i[d]*s[d])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=zn(o,l);z([0,1],function(d){c(i,d)||(i[d]=u[a[d]]/s[d])});function c(d,f){return d[f]!=null&&d[f]!=="auto"}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(t,r){Pe(t)&&(t=t[0]),r==null&&(r=!0);var n=this.getDateInfo(t),a=this._rangeInfo,i=n.formatedDate;if(r&&!(n.time>=a.start.time&&n.time<a.end.time+OE))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToRect=function(t,r){var n=this.dataToPoint(t,r);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,a):this._getDateByWeeksAndDay(r,n-1,a)},e.prototype.convertToPixel=function(t,r,n){var a=kV(r);return a===this?a.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=kV(r);return a===this?a.pointToData(n):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(Pe(t)&&t.length===1&&(t=t[0]),Pe(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);r=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var a=Math.floor(r[1].time/OE)-Math.floor(r[0].time/OE)+1,i=new Date(r[0].time),o=i.getDate(),s=r[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-r[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-r[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+r[0].day+6)/7),d=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:a,weeks:c,nthWeek:d,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&r<a.fweek||t===a.weeks&&r>a.lweek)return null;var i=(t-1)*7-a.fweek+r,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(a){var i=new e(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function kV(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}var Hgt=Ugt;function zgt(e){e.registerComponentModel(Lgt),e.registerComponentView($gt),e.registerCoordinateSystem("calendar",Hgt)}function Ngt(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function PV(e,t){var r;return z(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function Qgt(e,t,r){var n=Me({},r),a=e[t],i=r.$action||"merge";i==="merge"?a?(Ut(a,n,!0),Nc(a,n,{ignoreSize:!0}),Dre(r,a),V1(r,a),V1(r,a,"shape"),V1(r,a,"style"),V1(r,a,"extra"),r.clipPath=a.clipPath):e[t]=n:i==="replace"?e[t]=n:i==="remove"&&a&&(e[t]=null)}var Yoe=["transition","enterFrom","leaveTo"],Vgt=Yoe.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function V1(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?Yoe:Vgt,a=0;a<n.length;a++){var i=n[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function Wgt(e,t){if(!!e&&(e.hv=t.hv=[PV(t,["left","right"]),PV(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var Ggt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=a},t.prototype.optionUpdated=function(r,n){var a=this.option,i=(n?a:r).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=hte(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];z(l,function(c,d){var f=c.newOption;!f||(u.push(f),Ngt(c,f),Qgt(o,d,f),Wgt(o[d],f))},this),a.elements=Rr(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(r,n,a){z(r,function(i){if(!!i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(ir),LV={path:null,compoundPath:null,group:It,image:Aa,text:dr},so=hr(),Kgt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=At()},t.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(!!n){var a=this._elMap,i=this.group,o=r.get("z"),s=r.get("zlevel");z(n,function(l){var u=Kn(l.id,null),c=u!=null?a.get(u):null,d=Kn(l.parentId,null),f=d!=null?a.get(d):i,A=l.type,h=l.style;A==="text"&&h&&l.hv&&l.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var v=l.textContent,p=l.textConfig;if(h&&Eoe(h,A,!!p,!!v)){var g=Ioe(h,A,!0);!p&&g.textConfig&&(p=l.textConfig=g.textConfig),!v&&g.textContent&&(v=g.textContent)}var m=jgt(l),y=l.$action||"merge",b=y==="merge",w=y==="replace";if(b){var x=!c,S=c;x?S=OV(u,f,l.type,a):(S&&(so(S).isNew=!1),Moe(S)),S&&(Fx(S,m,r,{isInit:x}),$V(S,l,o,s))}else if(w){kx(c,l,a,r);var _=OV(u,f,l.type,a);_&&(Fx(_,m,r,{isInit:!0}),$V(_,l,o,s))}else y==="remove"&&(Doe(c,l),kx(c,l,a,r));var B=a.get(u);if(B&&v)if(b){var T=B.getTextContent();T?T.attr(v):B.setTextContent(new dr(v))}else w&&B.setTextContent(new dr(v));if(B){var E=l.clipPath;if(E){var I=E.type,R=void 0,x=!1;if(b){var D=B.getClipPath();x=!D||so(D).type!==I,R=x?iM(I):D}else w&&(x=!0,R=iM(I));B.setClipPath(R),Fx(R,E,r,{isInit:x}),wC(R,E.keyframeAnimation,r)}var k=so(B);B.setTextConfig(p),k.option=l,Ygt(B,r,l),up({el:B,componentModel:r,itemName:B.name,itemTooltipOption:l.tooltip}),wC(B,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var a=r.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<a.length;c++){var d=a[c],f=Kn(d.id,null),A=f!=null?o.get(f):null;if(!(!A||!A.isGroup)){var h=A.parent,v=h===i,p=so(A),g=so(h);p.width=Ye(p.option.width,v?s:g.width)||0,p.height=Ye(p.option.height,v?l:g.height)||0}}for(var c=a.length-1;c>=0;c--){var d=a[c],f=Kn(d.id,null),A=f!=null?o.get(f):null;if(!!A){var h=A.parent,g=so(h),m=h===i?{width:s,height:l}:{width:g.width,height:g.height},y={},b=E_(A,d,m,null,{hv:d.hv,boundingMode:d.bounding},y);if(!so(A).isNew&&b){for(var w=d.transition,x={},S=0;S<u.length;S++){var _=u[S],B=y[_];w&&($f(w)||Gt(w,_)>=0)?x[_]=B:A[_]=B}fr(A,x,r,0)}else A.attr(y)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){kx(a,so(a).option,n,r._lastGraphicModel)}),this._elMap=At()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(en);function iM(e){var t=at(LV,e)?LV[e]:x_(e),r=new t({});return so(r).type=e,r}function OV(e,t,r,n){var a=iM(r);return t.add(a),n.set(e,a),so(a).id=e,so(a).isNew=!0,a}function kx(e,t,r,n){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){kx(i,t,r,n)}),W_(e,t,n),r.removeKey(so(e).id))}function $V(e,t,r,n){e.isGroup||z([["cursor",_o.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];at(t,i)?e[i]=Yt(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),z(tr(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=pt(i)?i:null}}),at(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function jgt(e){return e=Me({},e),z(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Rre),function(t){delete e[t]}),e}function Ygt(e,t,r){var n=kt(e).eventData;!e.silent&&!e.ignore&&!n&&(n=kt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function Xgt(e){e.registerComponentModel(Ggt),e.registerComponentView(Kgt),e.registerPreprocessor(function(t){var r=t.graphic;Pe(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var UV=["x","y","radius","angle","single"],qgt=["cartesian2d","polar","singleAxis"];function Zgt(e){var t=e.get("coordinateSystem");return Gt(qgt,t)>=0}function oc(e){return e+"Axis"}function Jgt(e,t){var r=At(),n=[],a=At();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.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 d=!1;return c.eachTargetAxis(function(f,A){var h=r.get(f);h&&h[A]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(r.get(d)||r.set(d,[]))[f]=!0})}return n}function Xoe(e){var t=e.ecModel,r={infoList:[],infoMap:At()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(oc(n),a);if(!!i){var o=i.getCoordSysModel();if(!!o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(i)}}}),r}var $E=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),e0t=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var i=HV(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=HV(r);Ut(this.option,r,!0),Ut(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;z([["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 r=this.get("orient",!0),n=this._targetAxisInfoMap=At(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return z(UV,function(a){var i=this.getReferringComponents(oc(a),JZe);if(!!i.specified){n=!0;var o=new $E;z(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,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 d=u[0];if(!!d){var f=new $E;if(f.add(d.componentIndex),r.set(c,f),i=!1,c==="x"||c==="y"){var A=d.getReferringComponents("grid",Hn).models[0];A&&z(u,function(h){d.componentIndex!==h.componentIndex&&A===h.getReferringComponents("grid",Hn).models[0]&&f.add(h.componentIndex)})}}}i&&z(UV,function(u){if(!!i){var c=a.findComponents({mainType:oc(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new $E;d.add(c[0].componentIndex),r.set(u,d),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.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(r){var n=this._rangePropMode,a=this.get("rangeMode");z([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[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 r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(oc(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){z(a.indexList,function(o){r.call(n,i,o)})})},t.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(oc(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;z([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;z(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(ir);function HV(e){var t={};return z(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var Fm=e0t,t0t=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(Fm),r0t=t0t,n0t=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(en),X4=n0t,a0t=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(X4),i0t=a0t,Ih=z,zV=Ui,o0t=function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(Zgt(r)){var n=oc(this._dimName),a=r.getReferringComponents(n,Hn).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return Bt(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Ih(["start","end"],function(f,A){var h=t[f],v=t[f+"Value"];i[A]==="percent"?(h==null&&(h=o[A]),v=a.parse(Tr(h,o,r))):(u=!0,v=v==null?r[A]:a.parse(v),h=Tr(v,r,o)),l[A]=v,s[A]=h}),zV(l),zV(s);var c=this._minMaxSpan;u?d(l,s,r,o,!1):d(s,l,o,r,!0);function d(f,A,h,v,p){var g=p?"Span":"ValueSpan";_A(0,f,h,"all",c["min"+g],c["max"+g]);for(var m=0;m<2;m++)A[m]=Tr(f[m],h,v,!0),p&&(A[m]=a.parse(A[m]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=s0t(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;Ih(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(!!c.length){if(i==="weakFilter"){var d=u.getStore(),f=$e(c,function(A){return u.getDimensionIndex(A)},u);u.filterSelf(function(A){for(var h,v,p,g=0;g<c.length;g++){var m=d.get(f[g],A),y=!isNaN(m),b=m<o[0],w=m>o[1];if(y&&!b&&!w)return!0;y&&(p=!0),b&&(h=!0),w&&(v=!0)}return p&&h&&v})}else Ih(c,function(A){if(i==="empty")l.setData(u=u.map(A,function(v){return s(v)?v:NaN}));else{var h={};h[A]=o,u.selectRange(h)}});Ih(c,function(A){u.setApproximateExtent(o,A)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Ih(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Tr(n[0]+o,n,[0,100],!0):i!=null&&(o=Tr(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(!!r){var a=nL(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;r[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},e}();function s0t(e,t,r){var n=[1/0,-1/0];Ih(r,function(o){git(n,o.getData(),t)});var a=e.getAxisModel(),i=hae(a.axis.scale,a,n).calculate();return[i.min,i.max]}var l0t=o0t,u0t={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(oc(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new l0t(a,i,s,e),r.push(o.__dzAxisProxy))});var n=At();return z(r,function(a){z(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}},c0t=u0t;function d0t(e){e.registerAction("dataZoom",function(t,r){var n=Jgt(r,t);z(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var NV=!1;function q4(e){NV||(NV=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,c0t),d0t(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function f0t(e){e.registerComponentModel(r0t),e.registerComponentView(i0t),q4(e)}var co=function(){function e(){}return e}(),qoe={};function Rh(e,t){qoe[e]=t}function Zoe(e){return qoe[e]}var A0t=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;z(this.option.feature,function(n,a){var i=Zoe(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(r)),Ut(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}(ir),h0t=A0t;function v0t(e,t,r){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:r.getWidth(),height:r.getHeight()},o=zn(n,i,a);kf(t.get("orient"),e,t.get("itemGap"),o.width,o.height),E_(e,n,i,a)}function Joe(e,t){var r=wA(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new lr({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var p0t=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),d=[];z(u,function(h,v){d.push(v)}),new tu(this._featureNames||[],d).add(f).update(f).remove(Lt(f,null)).execute(),this._featureNames=d;function f(h,v){var p=d[h],g=d[v],m=u[p],y=new Or(m,r,r.ecModel),b;if(i&&i.newTitle!=null&&i.featureName===p&&(m.title=i.newTitle),p&&!g){if(g0t(p))b={onclick:y.option.onclick,featureName:p};else{var w=Zoe(p);if(!w)return;b=new w}c[p]=b}else if(b=c[g],!b)return;b.uid=dp("toolbox-feature"),b.model=y,b.ecModel=n,b.api=a;var x=b instanceof co;if(!p&&g){x&&b.dispose&&b.dispose(n,a);return}if(!y.get("show")||x&&b.unusable){x&&b.remove&&b.remove(n,a);return}A(y,b,p),y.setIconStatus=function(S,_){var B=this.option,T=this.iconPaths;B.iconStatus=B.iconStatus||{},B.iconStatus[S]=_,T[S]&&(_==="emphasis"?Jl:eu)(T[S])},b instanceof co&&b.render&&b.render(y,n,a,i)}function A(h,v,p){var g=h.getModel("iconStyle"),m=h.getModel(["emphasis","iconStyle"]),y=v instanceof co&&v.getIcons?v.getIcons():h.get("icon"),b=h.get("title")||{},w,x;Ze(y)?(w={},w[p]=y):w=y,Ze(b)?(x={},x[p]=b):x=b;var S=h.iconPaths={};z(w,function(_,B){var T=lp(_,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(g.getItemStyle());var E=T.ensureState("emphasis");E.style=m.getItemStyle();var I=new dr({style:{text:x[B],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),up({el:T,componentModel:r,itemName:B,formatterParamsExtra:{title:x[B]}}),T.__title=x[B],T.on("mouseover",function(){var R=m.getItemStyle(),D=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),T.setTextConfig({position:m.get("textPosition")||D}),I.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){h.get(["iconStatus",B])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(h.get(["iconStatus",B])==="emphasis"?Jl:eu)(T),o.add(T),T.on("click",tt(v.onclick,v,n,a,B)),S[B]=T})}v0t(o,r,a),o.add(Joe(o.getBoundingRect(),r)),l||o.eachChild(function(h){var v=h.__title,p=h.ensureState("emphasis"),g=p.textConfig||(p.textConfig={}),m=h.getTextContent(),y=m&&m.ensureState("emphasis");if(y&&!pt(y)&&v){var b=y.style||(y.style={}),w=hy(v,dr.makeFont(b)),x=h.x+o.x,S=h.y+o.y+s,_=!1;S+w.height>a.getHeight()&&(g.position="top",_=!0);var B=_?-5-w.height:s+10;x+w.width/2>a.getWidth()?(g.position=["100%",B],b.align="right"):x-w.width/2<0&&(g.position=[0,B],b.align="left")}})},t.prototype.updateView=function(r,n,a,i){z(this._features,function(o){o instanceof co&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(r,n){z(this._features,function(a){a instanceof co&&a.remove&&a.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){z(this._features,function(a){a instanceof co&&a.dispose&&a.dispose(r,n)})},t.type="toolbox",t}(en);function g0t(e){return e.indexOf("my")===0}var m0t=p0t,y0t=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var a=this.model,i=a.get("name")||r.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)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=vr.browser;if(pt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),A=f[0].indexOf("base64")>-1,h=o?decodeURIComponent(f[1]):f[1];A&&(h=window.atob(h));var v=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=h.length,g=new Uint8Array(p);p--;)g[p]=h.charCodeAt(p);var m=new Blob([g]);window.navigator.msSaveOrOpenBlob(m,v)}else{var y=document.createElement("iframe");document.body.appendChild(y);var b=y.contentWindow,w=b.document;w.open("image/svg+xml","replace"),w.write(h),w.close(),b.focus(),w.execCommand("SaveAs",!0,v),document.body.removeChild(y)}}else{var x=a.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',_=window.open();_.document.write(S),_.document.title=i}},t.getDefaultOption=function(r){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:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(co),b0t=y0t,QV="__ec_magicType_stack__",x0t=[["line","bar"],["stack"]],w0t=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),a={};return z(r.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(r){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:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(!!VV[a]){var s={series:[]},l=function(d){var f=d.subType,A=d.id,h=VV[a](f,A,d,i);h&&(yt(h,d.option),s.series.push(h));var v=d.coordinateSystem;if(v&&v.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=v.getAxesByScale("ordinal")[0];if(p){var g=p.dim,m=g+"Axis",y=d.getReferringComponents(m,Hn).models[0],b=y.componentIndex;s[m]=s[m]||[];for(var w=0;w<=b;w++)s[m][b]=s[m][b]||{};s[m][b].boundaryGap=a==="bar"}}};z(x0t,function(d){Gt(d,a)>=0&&z(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Ut({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}(co),VV={line:function(e,t,r,n){if(e==="bar")return Ut({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return Ut({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var a=r.get("stack")===QV;if(e==="line"||e==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Ut({id:t,stack:a?"":QV},n.get(["option","stack"])||{},!0)}};vs({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var C0t=w0t,G_=new Array(60).join("-"),Mv=" ";function S0t(e){var t={},r=[],n=[];return e.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 r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function _0t(e){var t=[];return z(e,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat($e(r.series,function(A){return A.name})),l=[a.model.getCategories()];z(r.series,function(A){var h=A.getRawData();l.push(A.getRawData().mapArray(h.mapDimension(o),function(v){return v}))});for(var u=[s.join(Mv)],c=0;c<l[0].length;c++){for(var d=[],f=0;f<l.length;f++)d.push(l[f][c]);u.push(d.join(Mv))}t.push(u.join(`
|
|
`))}),t.join(`
|
|
|
|
`+G_+`
|
|
|
|
`)}function B0t(e){return $e(e,function(t){var r=t.getRawData(),n=[t.name],a=[];return r.each(r.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=r.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+Mv:"")+a.join(Mv))}),n.join(`
|
|
`)}).join(`
|
|
|
|
`+G_+`
|
|
|
|
`)}function T0t(e){var t=S0t(e);return{value:Rr([_0t(t.seriesGroupByCategoryAxis),B0t(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
|
|
|
|
`+G_+`
|
|
|
|
`),meta:t.meta}}function _C(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function E0t(e){var t=e.slice(0,e.indexOf(`
|
|
`));if(t.indexOf(Mv)>=0)return!0}var oM=new RegExp("["+Mv+"]+","g");function I0t(e){for(var t=e.split(/\n+/g),r=_C(t.shift()).split(oM),n=[],a=$e(r,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=_C(t[i]).split(oM);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function R0t(e){for(var t=e.split(/\n+/g),r=_C(t.shift()),n=[],a=0;a<t.length;a++){var i=_C(t[a]);if(!!i){var o=i.split(oM),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:r,data:n}}function D0t(e,t){var r=e.split(new RegExp(`
|
|
*`+G_+`
|
|
*`,"g")),n={series:[]};return z(r,function(a,i){if(E0t(a)){var o=I0t(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=R0t(a);n.series.push(o)}}),n}var F0t=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,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 d=i.get("optionToContent"),f=i.get("contentToOption"),A=T0t(r);if(pt(d)){var h=d(n.getOption());Ze(h)?u.innerHTML=h:Cv(h)&&u.appendChild(h)}else{c.readOnly=i.get("readOnly");var v=c.style;v.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",v.color=i.get("textColor"),v.borderColor=i.get("textareaBorderColor"),v.backgroundColor=i.get("textareaColor"),c.value=A.value,u.appendChild(c)}var p=A.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),b=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var w=this;function x(){a.removeChild(o),w._dom=null}$D(y,"click",x),$D(b,"click",function(){if(f==null&&d!=null||f!=null&&d==null){x();return}var S;try{pt(f)?S=f(u,n.getOption()):S=D0t(c.value,p)}catch(_){throw x(),new Error("Data view format error "+_)}S&&n.dispatchAction({type:"changeDataView",newOption:S}),x()}),y.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=y.style.cssText=m,!i.get("readOnly")&&g.appendChild(b),g.appendChild(y),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(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){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:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(co);function M0t(e,t){return $e(e,function(r,n){var a=t&&t[n];if(St(a)&&!Pe(a)){var i=St(r)&&!Pe(r);i||(r={value:r});var o=a.name!=null&&r.name==null;return r=yt(r,a),o&&delete r.name,r}else return r})}vs({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];z(e.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)r.push(Me({type:"scatter"},n));else{var i=a.get("data");r.push({name:n.name,data:M0t(n.data,i)})}}),t.mergeOption(yt({series:r},e.newOption))});var k0t=F0t,ese=z,tse=hr();function P0t(e,t){var r=Z4(e);ese(t,function(n,a){for(var i=r.length-1;i>=0;i--){var o=r[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();r[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),r.push(t)}function L0t(e){var t=Z4(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return ese(r,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function O0t(e){tse(e).snapshots=null}function $0t(e){return Z4(e).length}function Z4(e){var t=tse(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var U0t=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){O0t(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){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:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(co);vs({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var H0t=U0t,z0t=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],N0t=function(){function e(t,r,n){var a=this;this._targetInfoList=[];var i=WV(r,t);z(Q0t,function(o,s){(!n||!n.include||Gt(n.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=UE[n.brushType](0,i,a);n.__rangeOffset={offset:YV[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){z(t,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&z(i.coordSyses,function(o){var s=UE[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){z(t,function(n){var a=this.findTargetInfo(n,r);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=UE[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?YV[n.brushType](i.values,o.offset,V0t(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,r){return $e(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:loe(a),isTargetByCursor:coe(a,t,n.coordSysModel),getLinearBrushOtherExtent:uoe(a)}})},e.prototype.controlSeries=function(t,r,n){var a=this.findTargetInfo(t,n);return a===!0||a&&Gt(a.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,a=WV(r,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<GV.length;l++)if(GV[l](a,o))return o}return!0},e}();function sM(e){return e[0]>e[1]&&e.reverse(),e}function WV(e,t){return m0(e,t,{includeMainTypes:z0t})}var Q0t={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,a=e.gridModels,i=At(),o={},s={};!r&&!n&&!a||(z(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),z(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),z(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=[];z(u.getCartesians(),function(d,f){(Gt(r,d.getAxis("x").model)>=0||Gt(n,d.getAxis("y").model)>=0)&&c.push(d)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:KV.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){z(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:KV.geo})})}},GV=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,a=e.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],KV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(mc(e)),t}},UE={lineX:Lt(jV,0),lineY:Lt(jV,1),rect:function(e,t,r,n){var a=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),i=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[sM([a[0],i[0]]),sM([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=$e(r,function(o){var s=e?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 jV(e,t,r,n){var a=r.getAxis(["x","y"][e]),i=sM($e([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var YV={lineX:Lt(XV,0),lineY:Lt(XV,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return $e(e,function(n,a){return[n[0]-r[0]*t[a][0],n[1]-r[1]*t[a][1]]})}};function XV(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function V0t(e,t){var r=qV(e),n=qV(t),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function qV(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var J4=N0t,lM=z,W0t=jZe("toolbox-dataZoom_"),G0t=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new M4(a.getZr()),this._brushController.on("brush",tt(this._onBrush,this)).mount()),Y0t(r,n,this,i,a),j0t(r,n)},t.prototype.onclick=function(r,n,a){K0t[a].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new J4(e5(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),P0t(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),A=f.model,h=l(u,A,i),v=h.findRepresentativeAxisProxy(A).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(d=_A(0,d.slice(),f.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),h&&(a[h.id]={dataZoomId:h.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(A){var h=A.getAxisModel(u,c.componentIndex);h&&(f=A)}),f}},t.prototype._dispatchZoomAction=function(r){var n=[];lM(r,function(a,i){n.push(Bt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){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:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(co),K0t={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(L0t(this.ecModel))}};function e5(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function j0t(e,t){e.setIconStatus("back",$0t(t)>1?"emphasis":"normal")}function Y0t(e,t,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new J4(e5(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Dtt("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),a=[],i=e5(n),o=m0(e,i);lM(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),lM(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:W0t+u+d};f[c]=d,a.push(f)}return a});var X0t=G0t;function q0t(e){e.registerComponentModel(h0t),e.registerComponentView(m0t),Rh("saveAsImage",b0t),Rh("magicType",C0t),Rh("dataView",k0t),Rh("dataZoom",X0t),Rh("restore",H0t),Xt(f0t)}var Z0t=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(ir),J0t=Z0t;function rse(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function nse(e){if(!!vr.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var ase=nse(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),emt=nse(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function ise(e,t){if(!e)return t;t=IL(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function tmt(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var rmt=ise(emt,"transition"),t5=ise(ase,"transform"),nmt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(vr.transform3dSupported?"will-change:transform;":"");function amt(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function imt(e,t,r){if(!Ze(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=Xf(t);var i=amt(r),o=Math.max(Math.round(a)*1.5,6),s="",l=t5+":",u;Gt(["left","right"],i)>-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,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),A=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+A+"px";var h=t+" solid "+a+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+n+";"];return'<div style="'+v.join("")+'"></div>'}function omt(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,a="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,a+=vr.transformSupported?","+t5+n:",left"+n+",top"+n),rmt+":"+a}function ZV(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!vr.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=vr.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+t5+":"+o+";":[["top",0],["left",0],[ase,o]]}function smt(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),z(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function lmt(e,t,r){var n=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=cne(e,"html"),f=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+f),t&&a&&n.push(omt(a,r)),i&&n.push("background-color:"+i),z(["width","color","radius"],function(A){var h="border-"+A,v=IL(h),p=e.get(v);p!=null&&n.push(h+":"+p+(A==="color"?"":"px"))}),n.push(smt(c)),d!=null&&n.push("padding:"+wA(d).join("px ")+"px"),n.join(";")+";"}function JV(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&hqe(e,o,document.body,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var umt=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,vr.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;JV(this._styleCoord,i,o,r.getWidth()/2,r.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();ao(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=tmt(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=nmt+lmt(t,!this._firstShow,this._longHide)+ZV(i[0],i[1],!0)+("border-color:"+Xf(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ze(i)&&n.get("trigger")==="item"&&!rse(n)&&(s=imt(n,a,i)),Ze(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Pe(t)||(t=[t]);for(var l=0;l<t.length;l++)Cv(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(JV(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=ZV(n[0],n[1]);z(i,function(o){a[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",vr.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}(),cmt=umt,dmt=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),t7(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,i){var o=this;St(t)&&wr(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new dr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:cne(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),z(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),z(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=e7(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;t7(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=Uu(i.borderWidth||0),s=e7(i);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Uu(e){return Math.max(0,e)}function e7(e){var t=Uu(e.shadowBlur||0),r=Uu(e.shadowOffsetX||0),n=Uu(e.shadowOffsetY||0);return{left:Uu(t-r),right:Uu(t+r),top:Uu(t-n),bottom:Uu(t+n)}}function t7(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var fmt=dmt,Amt=new lr({shape:{x:-1,y:-1,width:2,height:2}}),hmt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(vr.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=tJe(a.get("renderMode"));this._tooltipContent=i==="richText"?new fmt(n):new cmt(n.getDom(),n,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(r,n,a){if(!(vr.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a,this._alwaysShowContent=r.get("alwaysShowContent");var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?gp(this,"_updatePosition",50,"fixRate"):bm(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");Noe("itemTooltip",this._api,tt(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.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(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||vr.node||!a.getDom())){var o=r7(i,a);this._ticket="";var s=i.dataByCoordSys,l=mmt(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=Amt;c.x=i.x,c.y=i.y,c.update(),kt(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(r,n,a,i))return;var d=Qoe(i,n),f=d.point[0],A=d.point[1];f!=null&&A!=null&&this._tryShow({offsetX:f,offsetY:A,target:d.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(r,n,a,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(r7(i,a))},t.prototype._manuallyAxisShowTip=function(r,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(),d=lg([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(!!i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){this._lastDataByCoordSys=null;var s,l;Ph(a,function(u){if(kt(u).dataIndex!=null)return s=u,!0;if(kt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=tt(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=lg([n.tooltipOption],i),l=this._renderMode,u=[],c=aa("section",{blocks:[],noHeader:!0}),d=[],f=new BT;z(r,function(m){z(m.dataByAxis,function(y){var b=a.getComponent(y.axisDim+"Axis",y.axisIndex),w=y.value;if(!(!b||w==null)){var x=Uoe(w,b.axis,a,y.seriesDataIndices,y.valueLabelOpt),S=aa("section",{header:x,noHeader:!po(x),sortBlocks:!0,blocks:[]});c.blocks.push(S),z(y.seriesDataIndices,function(_){var B=a.getSeriesByIndex(_.seriesIndex),T=_.dataIndexInside,E=B.getDataParams(T);if(!(E.dataIndex<0)){E.axisDim=y.axisDim,E.axisIndex=y.axisIndex,E.axisType=y.axisType,E.axisId=y.axisId,E.axisValue=i4(b.axis,{value:w}),E.axisValueLabel=x,E.marker=f.makeTooltipMarker("item",Xf(E.color),l);var I=NN(B.formatTooltip(T,!0,null)),R=I.frag;if(R){var D=lg([B],i).get("valueFormatter");S.blocks.push(D?Me({valueFormatter:D},R):R)}I.text&&d.push(I.text),u.push(E)}})}})}),c.blocks.reverse(),d.reverse();var A=n.position,h=s.get("order"),v=jN(c,f,l,h,a.get("useUTC"),s.get("textStyle"));v&&d.unshift(v);var p=l==="richText"?`
|
|
|
|
`:"<br/>",g=d.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,A,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],A,null,f)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=kt(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),A=this._renderMode,h=r.positionDefault,v=lg([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),p=v.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(c,d),m=new BT;g.marker=m.makeTooltipMarker("item",Xf(g.color),A);var y=NN(u.formatTooltip(c,!1,d)),b=v.get("order"),w=v.get("valueFormatter"),x=y.frag,S=x?jN(w?Me({valueFormatter:w},x):x,m,A,b,i.get("useUTC"),v.get("textStyle")):y.text,_="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,S,g,_,r.offsetX,r.offsetY,r.position,r.target,m)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=kt(n),o=i.tooltipConfig,s=o.option||{};if(Ze(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 d=r.positionDefault,f=lg(u,this._tooltipModel,d?{position:d}:null),A=f.get("content"),h=Math.random()+"",v=new BT;this._showOrMove(f,function(){var p=Bt(f.get("formatterParams")||{});this._showTooltipContent(f,A,p,h,r.offsetX,r.offsetY,r.position,n,v)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var d=this._tooltipContent;d.setEnterable(r.get("enterable"));var f=r.get("formatter");l=l||r.get("position");var A=n,h=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),v=h.color;if(f)if(Ze(f)){var p=r.ecModel.get("useUTC"),g=Pe(a)?a[0]:a,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;A=f,m&&(A=wy(g.axisValue,A,p)),A=RL(A,a,!0)}else if(pt(f)){var y=tt(function(b,w){b===this._ticket&&(d.setContent(w,c,r,v,l),this._updatePosition(r,l,o,s,d,a,u))},this);this._ticket=i,A=f(a,i,y)}else A=f;d.setContent(A,c,r,v,l),d.show(r,v),this._updatePosition(r,l,o,s,d,a,u)}},t.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||Pe(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Pe(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var d=o.getSize(),f=r.get("align"),A=r.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),pt(n)&&(n=n([a,i],s,o.el,h,{viewSize:[u,c],contentSize:d.slice()})),Pe(n))a=Ye(n[0],u),i=Ye(n[1],c);else if(St(n)){var v=n;v.width=d[0],v.height=d[1];var p=zn(v,{width:u,height:c});a=p.x,i=p.y,f=null,A=null}else if(Ze(n)&&l){var g=gmt(n,h,d,r.get("borderWidth"));a=g[0],i=g[1]}else{var g=vmt(a,i,o,u,c,f?null:20,A?null:20);a=g[0],i=g[1]}if(f&&(a-=n7(f)?d[0]/2:f==="right"?d[0]:0),A&&(i-=n7(A)?d[1]/2:A==="bottom"?d[1]:0),rse(r)){var g=pmt(a,i,o,u,c);a=g[0],i=g[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&z(a,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&z(u,function(f,A){var h=d[A]||{},v=f.seriesDataIndices||[],p=h.seriesDataIndices||[];o=o&&f.value===h.value&&f.axisType===h.axisType&&f.axisId===h.axisId&&v.length===p.length,o&&z(v,function(g,m){var y=p[m];o=o&&g.seriesIndex===y.seriesIndex&&g.dataIndex===y.dataIndex}),i&&z(f.seriesDataIndices,function(g){var m=g.seriesIndex,y=n[m],b=i[m];y&&b&&b.data!==y.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){vr.node||!n.getDom()||(bm(this,"_updatePosition"),this._tooltipContent.dispose(),nM("itemTooltip",n))},t.type="tooltip",t}(en);function lg(e,t,r){var n=t.ecModel,a;r?(a=new Or(r,n,n),a=new Or(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Or&&(o=o.get("tooltip",!0)),Ze(o)&&(o={formatter:o}),o&&(a=new Or(o,a,n)))}return a}function r7(e,t){return e.dispatchAction||tt(t.dispatchAction,t)}function vmt(e,t,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>n?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function pmt(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function gmt(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){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 n7(e){return e==="center"||e==="middle"}function mmt(e,t,r){var n=lL(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=vy(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=kt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}var ymt=hmt;function bmt(e){Xt(ky),e.registerComponentModel(J0t),e.registerComponentView(ymt),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},En),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},En)}var xmt=["rect","polygon","keep","clear"];function wmt(e,t){var r=$r(e?e.brush:[]);if(!!r.length){var n=[];z(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=e&&e.toolbox;Pe(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Cmt(s),t&&!s.length&&s.push.apply(s,xmt)}}function Cmt(e){var t={};z(e,function(r){t[r]=1}),e.length=0,z(t,function(r,n){e.push(n)})}var a7=z;function i7(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function uM(e,t,r){var n={};return a7(t,function(i){var o=n[i]=a();a7(e[i],function(s,l){if(!!xa.isValidType(l)){var u={type:l,visual:s};r&&r(u,i),o[l]=new xa(u),l==="opacity"&&(u=Bt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new xa(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function ose(e,t,r){var n;z(r,function(a){t.hasOwnProperty(a)&&i7(t[a])&&(n=!0)}),n&&z(r,function(a){t.hasOwnProperty(a)&&i7(t[a])?e[a]=Bt(t[a]):delete e[a]})}function Smt(e,t,r,n,a,i){var o={};z(e,function(d){var f=xa.prepareVisualTypes(t[d]);o[d]=f});var s;function l(d){return NL(r,s,d)}function u(d,f){bne(r,s,d,f)}i==null?r.each(c):r.each([i],c);function c(d,f){s=i==null?d:f;var A=r.getRawDataItem(s);if(!(A&&A.visualMap===!1))for(var h=n.call(a,d),v=t[h],p=o[h],g=0,m=p.length;g<m;g++){var y=p[g];v[y]&&v[y].applyVisual(d,l,u)}}}function _mt(e,t,r,n){var a={};return z(e,function(i){var o=xa.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(w){return NL(s,d,w)}function c(w,x){bne(s,d,w,x)}for(var d,f=s.getStore();(d=o.next())!=null;){var A=s.getRawDataItem(d);if(!(A&&A.visualMap===!1))for(var h=n!=null?f.get(l,d):d,v=r(h),p=t[v],g=a[v],m=0,y=g.length;m<y;m++){var b=g[m];p[b]&&p[b].applyVisual(h,u,c)}}}}}function Bmt(e){var t=e.brushType,r={point:function(n){return o7[t].point(n,r,e)},rect:function(n){return o7[t].rect(n,r,e)}};return r}var o7={lineX:s7(0),lineY:s7(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&af(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var a=e.x,i=e.y,o=e.width,s=e.height,l=n[0];if(af(n,a,i)||af(n,a+o,i)||af(n,a,i+s)||af(n,a+o,i+s)||Kt.create(e).contain(l[0],l[1])||Mg(a,i,a+o,i,n)||Mg(a,i,a,i+s,n)||Mg(a+o,i,a+o,i+s,n)||Mg(a,i+s,a+o,i+s,n))return!0}}};function s7(e){var t=["x","y"],r=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[e];return ug(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),ug(s[0],o)||ug(s[1],o)||ug(o[0],s)||ug(o[1],s)}}}}function ug(e,t){return t[0]<=e&&e<=t[1]}var l7=["inBrush","outOfBrush"],HE="__ecBrushSelect",cM="__ecInBrushSelectEvent";function sse(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new J4(t.option,e);r.setInputRanges(t.areas,e)})}function Tmt(e,t,r){var n=[],a,i;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),sse(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Bt(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,d=[],f=[],A=[],h=!1;s||(a=u.throttleType,i=u.throttleDelay);var v=$e(o.areas,function(w){var x=Dmt[w.brushType],S=yt({boundingRect:x?x(w):void 0},w);return S.selectors=Bmt(S),S}),p=uM(o.option,l7,function(w){w.mappingMethod="fixed"});Pe(c)&&z(c,function(w){d[w]=1});function g(w){return c==="all"||!!d[w]}function m(w){return!!w.length}e.eachSeries(function(w,x){var S=A[x]=[];w.subType==="parallel"?y(w,x):b(w,x,S)});function y(w,x){var S=w.coordinateSystem;h=h||S.hasAxisBrushed(),g(x)&&S.eachActiveState(w.getData(),function(_,B){_==="active"&&(f[B]=1)})}function b(w,x,S){if(!(!w.brushSelector||Rmt(o,x))&&(z(v,function(B){o.brushTargetManager.controlSeries(B,w,e)&&S.push(B),h=h||m(S)}),g(x)&&m(S))){var _=w.getData();_.each(function(B){u7(w,S,_,B)&&(f[B]=1)})}}e.eachSeries(function(w,x){var S={seriesId:w.id,seriesIndex:x,seriesName:w.name,dataIndex:[]};l.selected.push(S);var _=A[x],B=w.getData(),T=g(x)?function(E){return f[E]?(S.dataIndex.push(B.getRawIndex(E)),"inBrush"):"outOfBrush"}:function(E){return u7(w,_,B,E)?(S.dataIndex.push(B.getRawIndex(E)),"inBrush"):"outOfBrush"};(g(x)?h:m(_))&&Smt(l7,p,B,T)})}),Emt(t,a,i,n,r)}function Emt(e,t,r,n,a){if(!!a){var i=e.getZr();if(!i[cM]){i[HE]||(i[HE]=Imt);var o=gp(i,HE,r,t);o(e,n)}}}function Imt(e,t){if(!e.isDisposed()){var r=e.getZr();r[cM]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[cM]=!1}}function u7(e,t,r,n){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(e.brushSelector(n,r,o.selectors,o))return!0}}function Rmt(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(Pe(r)?Gt(r,t)<0:t!==r)}var Dmt={rect:function(e){return c7(e.range)},polygon:function(e){for(var t,r=e.range,n=0,a=r.length;n<a;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=r[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&c7(t)}};function c7(e){return new Kt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Fmt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new M4(n.getZr())).on("brush",tt(this._onBrush,this)).mount()},t.prototype.render=function(r,n,a,i){this.model=r,this._updateController(r,n,a,i)},t.prototype.updateTransform=function(r,n,a,i){sse(n),this._updateController(r,n,a,i)},t.prototype.updateVisual=function(r,n,a,i){this.updateTransform(r,n,a,i)},t.prototype.updateView=function(r,n,a,i){this._updateController(r,n,a,i)},t.prototype._updateController=function(r,n,a,i){(!i||i.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(a)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Bt(a),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Bt(a),$from:n})},t.type="brush",t}(en),Mmt=Fmt,kmt="#ddd",Pmt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&ose(a,r,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:kmt},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(r){!r||(this.areas=$e(r,function(n){return d7(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=d7(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(ir);function d7(e,t){return Ut({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Or(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Lmt=Pmt,Omt=["rect","polygon","lineX","lineY","keep","clear"],$mt=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,z(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,a){this.render(r,n,a)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),a={};return z(r.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(r,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:Omt.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(co),Umt=$mt;function Hmt(e){e.registerComponentView(Mmt),e.registerComponentModel(Lmt),e.registerPreprocessor(wmt),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Tmt),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},En),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},En),Rh("brush",Umt)}var zmt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}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}(ir),Nmt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Yt(r.get("textBaseline"),r.get("textVerticalAlign")),c=new dr({style:Jr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=r.get("subtext"),A=new dr({style:Jr(s,{text:f,fill:s.getTextColor(),y:d.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=r.get("link"),v=r.get("sublink"),p=r.get("triggerEvent",!0);c.silent=!h&&!p,A.silent=!v&&!p,h&&c.on("click",function(){Zw(h,"_"+r.get("target"))}),v&&A.on("click",function(){Zw(v,"_"+r.get("subtarget"))}),kt(c).eventData=kt(A).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(c),f&&i.add(A);var g=i.getBoundingRect(),m=r.getBoxLayoutParams();m.width=g.width,m.height=g.height;var y=zn(m,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?y.x+=y.width:l==="center"&&(y.x+=y.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?y.y+=y.height:u==="middle"&&(y.y+=y.height/2),u=u||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),A.setStyle(b),g=i.getBoundingRect();var w=y.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var S=new lr({shape:{x:g.x-w[3],y:g.y-w[0],width:g.width+w[1]+w[3],height:g.height+w[0]+w[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(S)}},t.type="title",t}(en);function Qmt(e){e.registerComponentModel(zmt),e.registerComponentView(Nmt)}var Vmt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],a=r.axisType,i=this._names=[],o;a==="category"?(o=[],z(n,function(u,c){var d=Kn(ap(u),""),f;St(u)?(f=Bt(u),f.value=c):f=c,o.push(f),i.push(d)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Ua([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(ir),f7=Vmt,lse=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=ld(f7.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(f7);xn(lse,$L.prototype);var Wmt=lse,Gmt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(en),Kmt=Gmt,jmt=function(e){xe(t,e);function t(r,n,a,i){var o=e.call(this,r,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Po),Ymt=jmt,zE=Math.PI,A7=hr(),Xmt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,a){if(this.model=r,this.api=a,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var i=this._layout(r,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return aa("nameValue",{noName:!0,value:c})},z(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,r)},this),this._renderAxisLabel(i,s,l,r),this._position(i,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var a=r.get(["label","position"]),i=r.get("orient"),o=Zmt(r,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":Ze(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:zE/2},d=i==="vertical"?o.height:o.width,f=r.getModel("controlStyle"),A=f.get("show",!0),h=A?f.get("itemSize"):0,v=A?f.get("itemGap"):0,p=h+v,g=r.get(["label","rotate"])||0;g=g*zE/180;var m,y,b,w=f.get("position",!0),x=A&&f.get("showPlayBtn",!0),S=A&&f.get("showPrevBtn",!0),_=A&&f.get("showNextBtn",!0),B=0,T=d;w==="left"||w==="bottom"?(x&&(m=[0,0],B+=p),S&&(y=[B,0],B+=p),_&&(b=[T-h,0],T-=p)):(x&&(m=[T-h,0],T-=p),S&&(y=[0,0],B+=p),_&&(b=[T-h,0],T-=p));var E=[B,T];return r.get("inverse")&&E.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:g,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[i],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:y,nextBtnPosition:b,axisExtent:E,controlSize:h,controlGap:v}},t.prototype._position=function(r,n){var a=this._mainGroup,i=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Gi(),l=o.x,u=o.y+o.height;ls(s,s,[-l,-u]),od(s,s,-zE/2),ls(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),d=m(a.getBoundingRect()),f=m(i.getBoundingRect()),A=[a.x,a.y],h=[i.x,i.y];h[0]=A[0]=c[0][0];var v=r.labelPosOpt;if(v==null||Ze(v)){var p=v==="+"?0:1;y(A,d,c,1,p),y(h,f,c,1,1-p)}else{var p=v>=0?0:1;y(A,d,c,1,p),h[1]=A[1]+v}a.setPosition(A),i.setPosition(h),a.rotation=i.rotation=r.rotation,g(a),g(i);function g(b){b.originX=c[0][0]-b.x,b.originY=c[1][0]-b.y}function m(b){return[[b.x,b.x+b.width],[b.y,b.y+b.height]]}function y(b,w,x,S,_){b[S]+=x[S][_]-w[S][_]}},t.prototype._createAxis=function(r,n){var a=n.getData(),i=n.get("axisType"),o=qmt(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Ymt("value",o,r.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new It;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,a,i){var o=a.getExtent();if(!!i.get(["lineStyle","show"])){var s=new ta({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Me({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new ta({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:yt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],z(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),A=d.getModel(["emphasis","itemStyle"]),h=d.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:tt(o._changeTimeline,o,u.value)},p=h7(d,f,n,v);p.ensureState("emphasis").style=A.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),gc(p);var g=kt(p);d.get("tooltip")?(g.dataIndex=u.value,g.dataModel=i):g.dataIndex=g.dataModel=null,o._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(r,n,a,i){var o=this,s=a.getLabelModel();if(!!s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],z(u,function(c){var d=c.tickValue,f=l.getItemModel(d),A=f.getModel("label"),h=f.getModel(["emphasis","label"]),v=f.getModel(["progress","label"]),p=a.dataToCoord(c.tickValue),g=new dr({x:p,y:0,rotation:r.labelRotation-r.rotation,onclick:tt(o._changeTimeline,o,d),silent:!1,style:Jr(A,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});g.ensureState("emphasis").style=Jr(h),g.ensureState("progress").style=Jr(v),n.add(g),gc(g),A7(g).dataIndex=d,o._tickLabels.push(g)})}},t.prototype._renderControl=function(r,n,a,i){var o=r.controlSize,s=r.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(r.nextBtnPosition,"next",tt(this._changeTimeline,this,d?"-":"+")),f(r.prevBtnPosition,"prev",tt(this._changeTimeline,this,d?"+":"-")),f(r.playPosition,c?"stop":"play",tt(this._handlePlayClick,this,!c),!0);function f(A,h,v,p){if(!!A){var g=us(Yt(i.get(["controlStyle",h+"BtnSize"]),o),o),m=[0,-g/2,g,g],y=Jmt(i,h+"Icon",m,{x:A[0],y:A[1],originX:o/2,originY:0,rotation:p?-s:0,rectHover:!0,style:l,onclick:v});y.ensureState("emphasis").style=u,n.add(y),gc(y)}}},t.prototype._renderCurrentPointer=function(r,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=tt(u._handlePointerDrag,u),d.ondragend=tt(u._handlePointerDragend,u),v7(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){v7(d,u._progressLine,s,a,i)}};this._currentPointer=h7(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],i=this._axis,o=Ui(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw(),this._progressLine.shape.x2=a,this._progressLine.dirty();var s=this._findNearestTick(a),l=this.model;(n||s!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(s)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return ts(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<a&&(a=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<r);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",A7(a[i]).dataIndex<=r)},t.type="timeline.slider",t}(Kmt);function qmt(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new t4({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new fae({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Qc}}function Zmt(e,t){return zn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function Jmt(e,t,r,n){var a=n.style,i=lp(e.get(["controlStyle",t]),n||{},new Kt(r[0],r[1],r[2],r[3]));return a&&i.setStyle(a),i}function h7(e,t,r,n,a,i){var o=t.get("color");if(a)a.setColor(o),r.add(a),i&&i.onUpdate(a);else{var s=e.get("symbol");a=Fn(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),r.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),n=Ut({rectHover:!0,z2:100},n,!0);var u=Sy(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=mp(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var d=e.get("symbolRotate");return n.rotation=(d||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function v7(e,t,r,n,a,i){if(!e.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",r));if(i||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var eyt=Xmt;function tyt(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var a=r.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),yt({currentIndex:a.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function ryt(e){var t=e&&e.timeline;Pe(t)||(t=t?[t]:[]),z(t,function(r){!r||nyt(r)})}function nyt(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),p7(e),lf(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});lf(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!lf(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}z(e.data||[],function(a){St(a)&&!Pe(a)&&(!lf(a,"value")&&lf(a,"name")&&(a.value=a.name),p7(a))})}function p7(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};z(n,function(o,s){!i[s]&&!lf(a,s)&&(a[s]=o)}),r.label&&!lf(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function lf(e,t){return e.hasOwnProperty(t)}function ayt(e){e.registerComponentModel(Wmt),e.registerComponentView(eyt),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),tyt(e),e.registerPreprocessor(ryt)}function r5(e,t){if(!e)return!1;for(var r=Pe(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function W1(e){Gf(e,"label",["show"])}var G1=hr(),use=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(vr.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=G1(s)[o];if(!l||!l.data){G1(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&W1(l),z(l.data,function(c){c instanceof Array?(W1(c[0]),W1(c[1])):W1(c)}),u=this.createMarkerModelFromSeries(l,this,n),Me(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),G1(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return aa("section",{header:this.name,blocks:[aa("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.getMarkerModelFromSeries=function(r,n){return G1(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(ir);xn(use,$L.prototype);var Gc=use,iyt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Gc),oyt=iyt;function dM(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function syt(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function K1(e,t,r,n,a,i){var o=[],s=ru(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=n5(t,l,e),c=t.indicesOfNearest(l,u)[0];o[a]=t.get(r,c),o[i]=t.get(l,c);var d=t.get(n,c),f=Xo(t.get(n,c));return f=Math.min(f,20),f>=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var NE={min:Lt(K1,"min"),max:Lt(K1,"max"),average:Lt(K1,"average"),median:Lt(K1,"median")};function Mm(e,t){var r=e.getData(),n=e.coordinateSystem;if(t&&!syt(t)&&!Pe(t.coord)&&n){var a=n.dimensions,i=cse(t,r,n,e);if(t=Bt(t),t.type&&NE[t.type]&&i.baseAxis&&i.valueAxis){var o=Gt(a,i.baseAxis.dim),s=Gt(a,i.valueAxis.dim),l=NE[t.type](r,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else{for(var u=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis],c=0;c<2;c++)NE[u[c]]&&(u[c]=n5(r,r.mapDimension(a[c]),u[c]));t.coord=u}}return t}function cse(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(lyt(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function lyt(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function km(e,t){return e&&e.containData&&t.coord&&!dM(t)?e.containData(t.coord):!0}function uyt(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!dM(t)&&!dM(r)?e.containZone(t.coord,r.coord):!0}function dse(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return bc(o,t[i])}:function(r,n,a,i){return bc(r.value,t[i])}}function n5(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var QE=hr(),cyt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=At()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){QE(s).keep=!1}),n.eachSeries(function(s){var l=Gc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!QE(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(r){QE(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;z(r,function(i){var o=Gc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?Ute(l):hL(l))})}})},t.type="marker",t}(en),a5=cyt;function g7(e,t,r){var n=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=Ye(i.get("x"),r.getWidth()),l=Ye(i.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(n){var u=e.get(n.dimensions[0],a),c=e.get(n.dimensions[1],a);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var dyt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=Gc.getMarkerModelFromSeries(i,"markPoint");o&&(g7(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Ey),d=fyt(o,r,n);n.setData(d),g7(n.getData(),r,i),d.each(function(f){var A=d.getItemModel(f),h=A.getShallow("symbol"),v=A.getShallow("symbolSize"),p=A.getShallow("symbolRotate"),g=A.getShallow("symbolOffset"),m=A.getShallow("symbolKeepAspect");if(pt(h)||pt(v)||pt(p)||pt(g)){var y=n.getRawValue(f),b=n.getDataParams(f);pt(h)&&(h=h(y,b)),pt(v)&&(v=v(y,b)),pt(p)&&(p=p(y,b)),pt(g)&&(g=g(y,b))}var w=A.getModel("itemStyle").getItemStyle(),x=Cy(l,"color");w.fill||(w.fill=x),d.setItemVisual(f,{symbol:h,symbolSize:v,symbolRotate:p,symbolOffset:g,symbolKeepAspect:m,style:w})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(A){kt(A).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(a5);function fyt(e,t,r){var n;e?n=$e(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Me(Me({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Ua(n,r),i=$e(r.get("data"),Lt(Mm,t));e&&(i=Rr(i,Lt(km,e)));var o=dse(!!e,n);return a.initData(i,null,o),a}var Ayt=dyt;function hyt(e){e.registerComponentModel(oyt),e.registerComponentView(Ayt),e.registerPreprocessor(function(t){r5(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var vyt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Gc),pyt=vyt,j1=hr(),gyt=function(e,t,r,n){var a=e.getData(),i;if(Pe(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=ea(n.yAxis,n.xAxis);else{var u=cse(n,a,t,e);s=u.valueAxis;var c=e4(a,u.valueDataDim);l=n5(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,A=Bt(n),h={coord:[]};A.type=null,A.coord=[],A.coord[f]=-1/0,h.coord[f]=1/0;var v=r.get("precision");v>=0&&cr(l)&&(l=+l.toFixed(Math.min(v,20))),A.coord[d]=h.coord[d]=l,i=[A,h,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var p=[Mm(e,i[0]),Mm(e,i[1]),Me({},i[2])];return p[2].type=p[2].type||null,Ut(p[2],p[0]),Ut(p[2],p[1]),p};function BC(e){return!isNaN(e)&&!isFinite(e)}function m7(e,t,r,n){var a=1-e,i=n.dimensions[e];return BC(t[a])&&BC(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function myt(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(m7(1,r,n,e)||m7(0,r,n,e)))return!0}return km(e,t[0])&&km(e,t[1])}function VE(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=Ye(o.get("x"),a.getWidth()),u=Ye(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,d=e.get(c[0],t),f=e.get(c[1],t);s=i.dataToPoint([d,f])}if(CA(i,"cartesian2d")){var A=i.getAxis("x"),h=i.getAxis("y"),c=i.dimensions;BC(e.get(c[0],t))?s[0]=A.toGlobalCoord(A.getExtent()[r?0:1]):BC(e.get(c[1],t))&&(s[1]=h.toGlobalCoord(h.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var yyt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=Gc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=j1(o).from,u=j1(o).to;l.each(function(c){VE(l,c,!0,i,a),VE(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new T4);this.group.add(c.group);var d=byt(o,r,n),f=d.from,A=d.to,h=d.line;j1(n).from=f,j1(n).to=A,n.setData(h);var v=n.get("symbol"),p=n.get("symbolSize"),g=n.get("symbolRotate"),m=n.get("symbolOffset");Pe(v)||(v=[v,v]),Pe(p)||(p=[p,p]),Pe(g)||(g=[g,g]),Pe(m)||(m=[m,m]),d.from.each(function(b){y(f,b,!0),y(A,b,!1)}),h.each(function(b){var w=h.getItemModel(b).getModel("lineStyle").getLineStyle();h.setItemLayout(b,[f.getItemLayout(b),A.getItemLayout(b)]),w.stroke==null&&(w.stroke=f.getItemVisual(b,"style").fill),h.setItemVisual(b,{fromSymbolKeepAspect:f.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(b,"symbolOffset"),fromSymbolRotate:f.getItemVisual(b,"symbolRotate"),fromSymbolSize:f.getItemVisual(b,"symbolSize"),fromSymbol:f.getItemVisual(b,"symbol"),toSymbolKeepAspect:A.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:A.getItemVisual(b,"symbolOffset"),toSymbolRotate:A.getItemVisual(b,"symbolRotate"),toSymbolSize:A.getItemVisual(b,"symbolSize"),toSymbol:A.getItemVisual(b,"symbol"),style:w})}),c.updateData(h),d.line.eachItemGraphicEl(function(b){kt(b).dataModel=n,b.traverse(function(w){kt(w).dataModel=n})});function y(b,w,x){var S=b.getItemModel(w);VE(b,w,x,r,i);var _=S.getModel("itemStyle").getItemStyle();_.fill==null&&(_.fill=Cy(l,"color")),b.setItemVisual(w,{symbolKeepAspect:S.get("symbolKeepAspect"),symbolOffset:Yt(S.get("symbolOffset",!0),m[x?0:1]),symbolRotate:Yt(S.get("symbolRotate",!0),g[x?0:1]),symbolSize:Yt(S.get("symbolSize"),p[x?0:1]),symbol:Yt(S.get("symbol",!0),v[x?0:1]),style:_})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(a5);function byt(e,t,r){var n;e?n=$e(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Me(Me({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Ua(n,r),i=new Ua(n,r),o=new Ua([],r),s=$e(r.get("data"),Lt(gyt,t,e,r));e&&(s=Rr(s,Lt(myt,e)));var l=dse(!!e,n);return a.initData($e(s,function(u){return u[0]}),null,l),i.initData($e(s,function(u){return u[1]}),null,l),o.initData($e(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}var xyt=yyt;function wyt(e){e.registerComponentModel(pyt),e.registerComponentView(xyt),e.registerPreprocessor(function(t){r5(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Cyt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Gc),Syt=Cyt,Y1=hr(),_yt=function(e,t,r,n){var a=Mm(e,n[0]),i=Mm(e,n[1]),o=a.coord,s=i.coord;o[0]=ea(o[0],-1/0),o[1]=ea(o[1],-1/0),s[0]=ea(s[0],1/0),s[1]=ea(s[1],1/0);var l=a_([{},a,i]);return l.coord=[a.coord,i.coord],l.x0=a.x,l.y0=a.y,l.x1=i.x,l.y1=i.y,l};function TC(e){return!isNaN(e)&&!isFinite(e)}function y7(e,t,r,n){var a=1-e;return TC(t[a])&&TC(r[a])}function Byt(e,t){var r=t.coord[0],n=t.coord[1],a={coord:r,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return CA(e,"cartesian2d")?r&&n&&(y7(1,r,n)||y7(0,r,n))?!0:uyt(e,a,i):km(e,a)||km(e,i)}function b7(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=Ye(o.get(r[0]),a.getWidth()),u=Ye(o.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(r,t));else{var c=e.get(r[0],t),d=e.get(r[1],t),f=[c,d];i.clampData&&i.clampData(f,f),s=i.dataToPoint(f,!0)}if(CA(i,"cartesian2d")){var A=i.getAxis("x"),h=i.getAxis("y"),c=e.get(r[0],t),d=e.get(r[1],t);TC(c)?s[0]=A.toGlobalCoord(A.getExtent()[r[0]==="x0"?0:1]):TC(d)&&(s[1]=h.toGlobalCoord(h.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var x7=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Tyt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=Gc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=$e(x7,function(d){return b7(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new It});this.group.add(c.group),this.markKeep(c);var d=Eyt(o,r,n);n.setData(d),d.each(function(f){var A=$e(x7,function(_){return b7(d,f,_,r,i)}),h=o.getAxis("x").scale,v=o.getAxis("y").scale,p=h.getExtent(),g=v.getExtent(),m=[h.parse(d.get("x0",f)),h.parse(d.get("x1",f))],y=[v.parse(d.get("y0",f)),v.parse(d.get("y1",f))];Ui(m),Ui(y);var b=!(p[0]>m[1]||p[1]<m[0]||g[0]>y[1]||g[1]<y[0]),w=!b;d.setItemLayout(f,{points:A,allClipped:w});var x=d.getItemModel(f).getModel("itemStyle").getItemStyle(),S=Cy(l,"color");x.fill||(x.fill=S,Ze(x.fill)&&(x.fill=lm(x.fill,.4))),x.stroke||(x.stroke=S),d.setItemVisual(f,"style",x)}),d.diff(Y1(c).data).add(function(f){var A=d.getItemLayout(f);if(!A.allClipped){var h=new Ja({shape:{points:A.points}});d.setItemGraphicEl(f,h),c.group.add(h)}}).update(function(f,A){var h=Y1(c).data.getItemGraphicEl(A),v=d.getItemLayout(f);v.allClipped?h&&c.group.remove(h):(h?fr(h,{shape:{points:v.points}},n,f):h=new Ja({shape:{points:v.points}}),d.setItemGraphicEl(f,h),c.group.add(h))}).remove(function(f){var A=Y1(c).data.getItemGraphicEl(f);c.group.remove(A)}).execute(),d.eachItemGraphicEl(function(f,A){var h=d.getItemModel(A),v=d.getItemVisual(A,"style");f.useStyle(d.getItemVisual(A,"style")),Na(f,ca(h),{labelFetcher:n,labelDataIndex:A,defaultText:d.getName(A)||"",inheritColor:Ze(v.fill)?lm(v.fill,1):"#000"}),_a(f,h),bn(f,null,null,h.get(["emphasis","disabled"])),kt(f).dataModel=n}),Y1(c).data=d,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(a5);function Eyt(e,t,r){var n,a,i=["x0","y0","x1","y1"];if(e){var o=$e(e&&e.dimensions,function(u){var c=t.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return Me(Me({},d),{name:u,ordinalMeta:null})});a=$e(i,function(u,c){return{name:u,type:o[c%2].type}}),n=new Ua(a,r)}else a=[{name:"value",type:"float"}],n=new Ua(a,r);var s=$e(r.get("data"),Lt(_yt,t,e,r));e&&(s=Rr(s,Lt(Byt,e)));var l=e?function(u,c,d,f){var A=u.coord[Math.floor(f/2)][f%2];return bc(A,a[f])}:function(u,c,d,f){return bc(u.value,a[f])};return n.initData(s,null,l),n.hasItemOption=!0,n}var Iyt=Tyt;function Ryt(e){e.registerComponentModel(Syt),e.registerComponentView(Iyt),e.registerPreprocessor(function(t){r5(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Dyt=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},Fyt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Pe(n)&&z(n,function(i,o){Ze(i)&&(i={type:i}),n[o]=Ut(i,Dyt(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(s){var l=s.name;a.push(l);var u;if(s.legendVisualProvider){var c=s.legendVisualProvider,d=c.getAllNames();r.isSeriesFiltered(s)||(a=a.concat(d)),d.length?n=n.concat(d):u=!0}else u=!0;u&&sL(s)&&n.push(s.name)}),this._availableNames=a;var i=this.get("data")||n,o=$e(i,function(s){return(Ze(s)||cr(s))&&(s={name:s}),new Or(s,this,this.ecModel)},this);this._data=o},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;z(i,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;z(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;z(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Gt(this._availableNames,r)>=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}(ir),fM=Fyt,dh=Lt,AM=z,X1=It,Myt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new X1),this.group.add(this._selectorGroup=new X1),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var c=r.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=r.get("padding"),A=zn(c,d,f),h=this.layoutInner(r,o,A,i,l,u),v=zn(yt({width:h.width,height:h.height},c),d,f);this.group.x=v.x-h.x,this.group.y=v.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Joe(h,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),c=At(),d=n.get("selectedMode"),f=[];a.eachRawSeries(function(A){!A.get("legendHoverLink")&&f.push(A.id)}),AM(n.getData(),function(A,h){var v=A.get("name");if(!this.newlineDisabled&&(v===""||v===`
|
|
`)){var p=new X1;p.newline=!0,u.add(p);return}var g=a.getSeriesByName(v)[0];if(!c.get(v))if(g){var m=g.getData(),y=m.getVisual("legendLineStyle")||{},b=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(g,v,h,A,n,r,y,w,b,d,i);x.on("click",dh(w7,v,null,i,f)).on("mouseover",dh(hM,g.name,null,i,f)).on("mouseout",dh(vM,g.name,null,i,f)),c.set(v,!0)}else a.eachRawSeries(function(S){if(!c.get(v)&&S.legendVisualProvider){var _=S.legendVisualProvider;if(!_.containName(v))return;var B=_.indexOfName(v),T=_.getItemVisual(B,"style"),E=_.getItemVisual(B,"legendIcon"),I=Xa(T.fill);I&&I[3]===0&&(I[3]=.2,T=Me(Me({},T),{fill:es(I,"rgba")}));var R=this._createItem(S,v,h,A,n,r,{},T,E,d,i);R.on("click",dh(w7,null,v,i,f)).on("mouseover",dh(hM,null,v,i,f)).on("mouseout",dh(vM,null,v,i,f)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();AM(r,function(u){var c=u.type,d=new dr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=n.getModel("selectorLabel"),A=n.getModel(["emphasis","selectorLabel"]);Na(d,{normal:f,emphasis:A},{defaultText:u.title}),gc(d)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,c,d,f){var A=r.visualDrawType,h=o.get("itemWidth"),v=o.get("itemHeight"),p=o.isSelected(n),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),y=i.get("icon");c=y||c||"roundRect";var b=kyt(c,i,l,u,A,p,f),w=new X1,x=i.getModel("textStyle");if(pt(r.getLegendIcon)&&(!y||y==="inherit"))w.add(r.getLegendIcon({itemWidth:h,itemHeight:v,icon:c,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}));else{var S=y==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;w.add(Pyt({itemWidth:h,itemHeight:v,icon:c,iconRotate:S,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}))}var _=s==="left"?h+5:-5,B=s,T=o.get("formatter"),E=n;Ze(T)&&T?E=T.replace("{name}",n!=null?n:""):pt(T)&&(E=T(n));var I=i.get("inactiveColor");w.add(new dr({style:Jr(x,{text:E,x:_,y:v/2,fill:p?x.getTextColor():I,align:B,verticalAlign:"middle"})}));var R=new lr({shape:w.getBoundingRect(),invisible:!0}),D=i.getModel("tooltip");return D.get("show")&&up({el:R,componentModel:o,itemName:n,itemTooltipOption:D.option}),w.add(R),w.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(w),gc(w),w.__legendDataIndex=a,w},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();kf(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){kf("horizontal",u,r.get("selectorItemGap",!0));var f=u.getBoundingRect(),A=[-f.x,-f.y],h=r.get("selectorButtonGap",!0),v=r.getOrient().index,p=v===0?"width":"height",g=v===0?"height":"width",m=v===0?"y":"x";s==="end"?A[v]+=c[p]+h:d[v]+=f[p]+h,A[1-v]+=c[g]/2-f[g]/2,u.x=A[0],u.y=A[1],l.x=d[0],l.y=d[1];var y={x:0,y:0};return y[p]=c[p]+h+f[p],y[g]=Math.max(c[g],f[g]),y[m]=Math.min(0,f[m]+A[1-v]),y}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(en);function kyt(e,t,r,n,a,i,o){function s(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),AM(p,function(m,y){p[y]==="inherit"&&(p[y]=g[y])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?n.decal:Ev(d,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var f=t.getModel("lineStyle"),A=f.getLineStyle();if(s(A,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),A.stroke==="auto"&&(A.stroke=n.fill),!i){var h=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=h==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),A.stroke=f.get("inactiveColor"),A.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:A}}function Pyt(e){var t=e.icon||"roundRect",r=Fn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function w7(e,t,r,n){vM(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e!=null?e:t}),hM(e,t,r,n)}function fse(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;n<a&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function hM(e,t,r,n){fse(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function vM(e,t,r,n){fse(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}var Ase=Myt;function Lyt(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function cg(e,t,r){var n={},a=e==="toggleSelected",i;return r.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();z(s,function(l){var u=l.get("name");if(!(u===`
|
|
`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function Oyt(e){e.registerAction("legendToggleSelect","legendselectchanged",Lt(cg,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Lt(cg,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Lt(cg,"inverseSelect")),e.registerAction("legendSelect","legendselected",Lt(cg,"select")),e.registerAction("legendUnSelect","legendunselected",Lt(cg,"unSelect"))}function hse(e){e.registerComponentModel(fM),e.registerComponentView(Ase),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Lyt),e.registerSubTypeDefaulter("legend",function(){return"plain"}),Oyt(e)}var $yt=function(e){xe(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,a){var i=fp(r);e.prototype.init.call(this,r,n,a),C7(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),C7(this,this.option,r)},t.type="legend.scroll",t.defaultOption=ld(fM.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}(fM);function C7(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,Nc(t,r,{type:"box",ignoreSize:!!a})}var Uyt=$yt,S7=It,WE=["width","height"],GE=["x","y"],Hyt=function(e){xe(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 S7),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new S7)},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,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,i,o,s,l);var c=this._controllerGroup,d=n.get("pageIconSize",!0),f=Pe(d)?d:[d,d];h("pagePrev",0);var A=n.getModel("pageTextStyle");c.add(new dr({name:"pageText",style:{text:"xx/xx",fill:A.getTextColor(),font:A.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1);function h(v,p){var g=v+"DataIndex",m=lp(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:tt(u._pageGo,u,g,n,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});m.name=v,c.add(m)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=WE[u],d=GE[u],f=WE[1-u],A=GE[1-u];o&&kf("horizontal",l,r.get("selectorItemGap",!0));var h=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),p=[-v.x,-v.y],g=Bt(a);o&&(g[c]=a[c]-v[c]-h);var m=this._layoutContentAndController(r,i,g,u,c,f,A,d);if(o){if(s==="end")p[u]+=m[c]+h;else{var y=v[c]+h;p[u]-=y,m[d]-=y}m[c]+=v[c]+h,p[1-u]+=m[A]+m[f]/2-v[f]/2,m[f]=Math.max(m[f],v[f]),m[A]=Math.min(m[A],v[A]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var c=this.getContentGroup(),d=this._containerGroup,f=this._controllerGroup;kf(r.get("orient"),c,r.get("itemGap"),i?a.width:null,i?null:a.height),kf("horizontal",f,r.get("pageButtonItemGap",!0));var A=c.getBoundingRect(),h=f.getBoundingRect(),v=this._showController=A[o]>a[o],p=[-A.x,-A.y];n||(p[i]=c[u]);var g=[0,0],m=[-h.x,-h.y],y=Yt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var b=r.get("pageButtonPosition",!0);b==="end"?m[i]+=a[o]-h[o]:g[i]+=h[o]+y}m[1-i]+=A[s]/2-h[s]/2,c.setPosition(p),d.setPosition(g),f.setPosition(m);var w={x:0,y:0};if(w[o]=v?a[o]:A[o],w[s]=Math.max(A[s],h[s]),w[l]=Math.min(0,h[l]+m[1-i]),d.__rectSize=a[o],v){var x={x:0,y:0};x[o]=Math.max(a[o]-h[o]-y,0),x[s]=w[s],d.setClipPath(new lr({shape:x})),d.__rectSize=x[o]}else f.eachChild(function(_){_.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(r);return S.pageIndex!=null&&fr(c,{x:S.contentPosition[0],y:S.contentPosition[1]},v?r:null),this._updatePageInfoView(r,S),w},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;z(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=n[d]!=null,A=a.childOfName(c);A&&(A.setStyle("fill",f?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),A.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",Ze(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=WE[o],l=GE[o],u=this._findTargetItemIndex(n),c=a.children(),d=c[u],f=c.length,A=f?1:0,h={contentPosition:[a.x,a.y],pageCount:A,pageIndex:A-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return h;var v=b(d);h.contentPosition[o]=-v.s;for(var p=u+1,g=v,m=v,y=null;p<=f;++p)y=b(c[p]),(!y&&m.e>g.s+i||y&&!w(y,g.s))&&(m.i>g.i?g=m:g=y,g&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=g.i),++h.pageCount)),m=y;for(var p=u-1,g=v,m=v,y=null;p>=-1;--p)y=b(c[p]),(!y||!w(m,y.s))&&g.i<m.i&&(m=g,h.pagePrevDataIndex==null&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=y;return h;function b(x){if(x){var S=x.getBoundingRect(),_=S[l]+x[l];return{s:_,e:_+S[s],i:x.__legendDataIndex}}}function w(x,S){return x.e>=S&&x.s<=S+i}},t.prototype._findTargetItemIndex=function(r){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===r&&(n=s)}),n!=null?n:i},t.type="legend.scroll",t}(Ase),zyt=Hyt;function Nyt(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Qyt(e){Xt(hse),e.registerComponentModel(Uyt),e.registerComponentView(zyt),Nyt(e)}function Vyt(e){Xt(hse),Xt(Qyt)}var Wyt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=ld(Fm.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Fm),Gyt=Wyt,i5=hr();function Kyt(e,t,r){i5(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function jyt(e,t){for(var r=i5(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var i=n[a],o=r.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||vse(r,o))}}}function vse(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function Yyt(e,t){var r={model:t,containsPoint:Lt(qyt,t),dispatchAction:Lt(Xyt,e),dataZoomInfoMap:null,controller:null},n=r.controller=new Fy(e.getZr());return z(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];r.dataZoomInfoMap.each(function(s){if(!!i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function Xyt(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function qyt(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function Zyt(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Jyt(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=i5(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=At());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Xoe(i);z(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Yyt(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=At());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){vse(a,i);return}var c=Zyt(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),gp(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var ebt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),Kyt(a,r,{pan:tt(KE.pan,this),zoom:tt(KE.zoom,this),scrollMove:tt(KE.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){jyt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(X4),KE={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(!!o){var s=jE[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(_A(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:_7(function(e,t,r,n,a,i){var o=jE[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:_7(function(e,t,r,n,a,i){var o=jE[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function _7(e){return function(t,r,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(!!s){var l=e(o,s,t,r,n,a);if(_A(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var jE={grid:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}},tbt=ebt;function pse(e){q4(e),e.registerComponentModel(Gyt),e.registerComponentView(tbt),Jyt(e)}var rbt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ld(Fm.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Fm),nbt=rbt,dg=lr,B7=7,abt=1,YE=30,ibt=7,fg="horizontal",T7="vertical",obt=5,sbt=["line","bar","candlestick","scatter"],lbt={easing:"cubicOut",duration:100,delay:0},ubt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=tt(this._onBrush,this),this._onBrushEnd=tt(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,i){if(e.prototype.render.apply(this,arguments),gp(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){bm(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new It;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?ibt:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===fg?{right:s.width-o.x-o.width,top:s.height-YE-B7-i,width:o.width,height:YE}:{right:B7,top:o.y,width:YE,height:o.height},u=fp(r.option);z(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=zn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===T7&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===fg&&!o?{scaleY:l?1:-1,scaleX:1}:a===fg&&o?{scaleY:l?1:-1,scaleX:-1}:a===T7&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new dg({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new dg({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:tt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],i=r.series,o=i.getRawData(),s=i.getShadowDim?i.getShadowDim():r.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(s),d=(c[1]-c[0])*.3;c=[c[0]-d,c[1]+d];var f=[0,n[1]],A=[0,n[0]],h=[[n[0],0],[0,0]],v=[],p=A[1]/(o.count()-1),g=0,m=Math.round(o.count()/n[0]),y;o.each([s],function(_,B){if(m>0&&B%m){g+=p;return}var T=_==null||isNaN(_)||_==="",E=T?0:Tr(_,c,f,!0);T&&!y&&B?(h.push([h[h.length-1][0],0]),v.push([v[v.length-1][0],0])):!T&&y&&(h.push([g,0]),v.push([g,0])),h.push([g,E]),v.push([g,E]),g+=p,y=T}),l=this._shadowPolygonPts=h,u=this._shadowPolylinePts=v}this._shadowData=o,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var b=this.dataZoomModel;function w(_){var B=b.getModel(_?"selectedDataBackground":"dataBackground"),T=new It,E=new Ja({shape:{points:l},segmentIgnoreThreshold:1,style:B.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new ei({shape:{points:u},segmentIgnoreThreshold:1,style:B.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return T.add(E),T.add(I),T}for(var x=0;x<3;x++){var S=w(x===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();z(l,function(u){if(!a&&!(n!==!0&&Gt(sbt,u.get("type"))<0)){var c=i.getComponent(oc(o),s).axis,d=cbt(o),f,A=u.coordinateSystem;d!=null&&A.getOtherAxis&&(f=A.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=n.filler=new dg({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new dg({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:abt,fill:"rgba(0,0,0,0)"}})),z([0,1],function(y){var b=l.get("handleIcon");!tC[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b);var w=Fn(b,-1,0,2,2,null,!0);w.attr({cursor:E7(this._orient),draggable:!0,drift:tt(this._onDragMove,this,y),ondragend:tt(this._onDragEnd,this),onmouseover:tt(this._showDataInfo,this,!0),onmouseout:tt(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),S=l.get("handleSize");this._handleHeight=Ye(S,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),gc(w);var _=l.get("handleColor");_!=null&&(w.style.fill=_),o.add(a[y]=w);var B=l.getModel("textStyle");r.add(i[y]=new dr({silent:!0,invisible:!0,style:Jr(B,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:B.getTextColor(),font:B.getFont()}),z2:10}))},this);var A=f;if(d){var h=Ye(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new lr({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:h}}),p=h*.8,g=n.moveHandleIcon=Fn(l.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=s[1]+h/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(h,10));A=n.moveZone=new lr({invisible:!0,shape:{y:s[1]-m,height:h+m}}),A.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(g),o.add(A)}A.attr({draggable:!0,cursor:E7(this._orient),drift:tt(this._onDragMove,this,"all"),ondragstart:tt(this._showDataInfo,this,!0),ondragend:tt(this._onDragEnd,this),onmouseover:tt(this._showDataInfo,this,!0),onmouseout:tt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Tr(r[0],[0,100],n,!0),Tr(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];_A(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?Tr(s.minSpan,l,o,!0):null,s.maxSpan!=null?Tr(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ui([Tr(i[0],o,l,!0),Tr(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=Ui(a.slice()),o=this._size;z([0,1],function(A){var h=n.handles[A],v=this._handleHeight;h.attr({scaleX:v/2,scaleY:v/2,x:a[A]+(A?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var d=l[c],f=d.getClipPath();f||(f=new lr,d.setClipPath(f)),f.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,d=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(d[0],u),this._formatLabel(d[1],u)]}}var f=Ui(this._handleEnds.slice());A.call(this,0),A.call(this,1);function A(h){var v=mc(a.handles[h].parent,this.group),p=w_(h===0?"right":"left",v),g=this._handleWidth/2+obt,m=ts([f[h]+(h===0?-g:g),this._size[1]/2],v);i[h].setStyle({x:m[0],y:m[1],verticalAlign:o===fg?"middle":p,align:o===fg?p:"center",text:s[h]})}},t.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return pt(i)?i(r,s):Ze(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!r),a[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,a,i){this._dragging=!0,Zl(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ts([n,a],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new zt(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(!!this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ui([Tr(a.x,o,s,!0),Tr(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(Zl(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new dg({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?lbt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=Xoe(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var i=this.api.getWidth(),o=this.api.getHeight();r={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(X4);function cbt(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function E7(e){return e==="vertical"?"ns-resize":"ew-resize"}var dbt=ubt;function gse(e){e.registerComponentModel(nbt),e.registerComponentView(dbt),q4(e)}function fbt(e){Xt(pse),Xt(gse)}var Abt={get:function(e,t,r){var n=Bt((hbt[e]||{})[t]);return r&&Pe(n)?n[n.length-1]:n}},hbt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},mse=Abt,I7=xa.mapVisual,vbt=xa.eachVisual,pbt=Pe,R7=z,gbt=Ui,mbt=Tr,ybt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&ose(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=tt(r,this),this.controllerVisuals=uM(this.option.controller,n,r),this.targetVisuals=uM(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=$r(r),n},t.prototype.eachTargetSeries=function(r,n){z(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&r.call(n,i)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(a){a===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Pe(r)&&(r=r.slice(),u=!0);var c=n?r:u?[d(r[0]),d(r[1])]:d(r);if(Ze(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(pt(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?a[0]+" "+c[1]:r[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=gbt([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var a=r.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Ut(i,a),Ut(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){pbt(n.color)&&!d.inRange&&(d.inRange={color:n.color.slice().reverse()}),d.inRange=d.inRange||{color:r.get("gradientColor")}}function u(d,f,A){var h=d[f],v=d[A];h&&!v&&(v=d[A]={},R7(h,function(p,g){if(!!xa.isValidType(g)){var m=mse.get(g,"inactive",s);m!=null&&(v[g]=m,g==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,A=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,h=this.get("inactiveColor"),v=this.getItemSymbol(),p=v||"roundRect";R7(this.stateList,function(g){var m=this.itemSize,y=d[g];y||(y=d[g]={color:s?h:[h]}),y.symbol==null&&(y.symbol=f&&Bt(f)||(s?p:[p])),y.symbolSize==null&&(y.symbolSize=A&&Bt(A)||(s?m[0]:[m[0],m[0]])),y.symbol=I7(y.symbol,function(x){return x==="none"?p:x});var b=y.symbolSize;if(b!=null){var w=-1/0;vbt(b,function(x){x>w&&(w=x)}),y.symbolSize=I7(b,function(x){return mbt(x,[0,w],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(ir),EC=ybt,D7=[20,140],bbt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=D7[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=D7[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Pe(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),z(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=Ui((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,a=this.getExtent();return(n[0]<=a[0]||n[0]<=r)&&(n[1]>=a[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(r){var n=F7(this,"outOfRange",this.getExtent()),a=F7(this,"inRange",this.option.range.slice()),i=[];function o(A,h){i.push({value:A,color:r(A,h)})}for(var s=0,l=0,u=a.length,c=n.length;l<c&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var d=1;s<u;s++,d=0)d&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var d=1;l<c;l++)(!a.length||a[a.length-1]<n[l])&&(d&&(i.length&&o(i[i.length-1].value,"outOfRange"),d=0),o(n[l],"outOfRange"));var f=i.length;return{stops:i,outerColors:[f?i[0].color:"transparent",f?i[f-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=ld(EC.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(EC);function F7(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,a=(r[1]-r[0])/n,i=r[0],o=[],s=0;s<=n&&i<r[1];s++)o.push(i),i+=a;return o.push(r[1]),o}var xbt=bbt,wbt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,a,i){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,a,i)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,a=wA(n.get("padding")||0),i=r.getBoundingRect();r.add(new lr({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(A){return s[A]}function c(A,h){s[A]=h}var d=o.controllerVisuals[i||o.getValueState(r)],f=xa.prepareVisualTypes(d);return z(f,function(A){var h=d[A];a.convertOpacityToAlpha&&A==="opacity"&&(A="colorAlpha",h=d.__alphaForOpacity),xa.dependsOn(A,n)&&h&&h.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,a=this.api;E_(r,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(r,n,a,i){},t.type="visualMap",t}(en),yse=wbt,M7=[["left","right","width"],["top","bottom","height"]];function bse(e,t,r){var n=e.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=M7[o],l=[0,null,10],u={},c=0;c<3;c++)u[M7[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var d=[["x","width",3],["y","height",0]][o],f=zn(u,i,n.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<i[d[1]]*.5?0:1]}function Px(e,t){return z(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Es=Tr,Cbt=z,k7=Math.min,XE=Math.max,Sbt=12,_bt=6,Bbt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.doRender=function(r,n,a,i){this._api=a,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var a=r.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,a){if(!!n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),d=this._applyTransform(a===0?"bottom":"top",u),f=this._orient,A=this.visualMapModel.textStyleModel;this.group.add(new dr({style:Jr(A,{x:c[0],y:c[1],verticalAlign:f==="horizontal"?"middle":d,align:f==="horizontal"?d:"center",text:i})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=bse(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new It;u.add(c),c.add(a.outOfRange=P7()),c.add(a.inRange=P7(null,s?O7(this._orient):null,tt(this._dragHandle,this,"all",!1),tt(this._dragHandle,this,"all",!0))),c.setClipPath(new lr({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var d=n.textStyleModel.getTextRect("\u56FD"),f=XE(d.width,d.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,f,o),this._createHandle(n,u,1,i,f,o)),this._createIndicator(n,u,i,f,o),r.add(u)},t.prototype._createHandle=function(r,n,a,i,o,s){var l=tt(this._dragHandle,this,a,!1),u=tt(this._dragHandle,this,a,!0),c=us(r.get("handleSize"),i[0]),d=Fn(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),f=O7(this._orient);d.attr({cursor:f,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){Zl(g.event)}}),d.x=i[0]/2,d.useStyle(r.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),gf(d,!0),n.add(d);var A=this.visualMapModel.textStyleModel,h=new dr({cursor:f,draggable:!0,drift:l,onmousemove:function(g){Zl(g.event)},ondragend:u,style:Jr(A,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var v=[c,0],p=this._shapes;p.handleThumbs[a]=d,p.handleLabelPoints[a]=v,p.handleLabels[a]=h},t.prototype._createIndicator=function(r,n,a,i,o){var s=us(r.get("indicatorSize"),a[0]),l=Fn(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof Aa){var c=l.style;l.useStyle(Me({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var d=this.visualMapModel.textStyleModel,f=new dr({silent:!0,invisible:!0,style:Jr(d,{x:0,y:0,text:""})});this.group.add(f);var A=[(o==="horizontal"?i/2:_bt)+a[0]/2,0],h=this._shapes;h.indicator=l,h.indicatorLabel=f,h.indicatorLabelPoint=A,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,a,i){if(!!this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():L7(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),a=r.getExtent(),i=[0,r.itemSize[1]];this._handleEnds=[Es(n[0],a,i,!0),Es(n[1],a,i,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];_A(n,i,o,r,0);var s=a.getExtent();this._dataInterval=[Es(i[0],o,s,!0),Es(i[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new op(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var a=100,i=[],o=(r[1]-r[0])/a;i.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=r[0]+o*s;if(l>r[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(r,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],r[0]],[a[0],r[0]],[a[0],r[1]],[a[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,a=this.visualMapModel.get("inverse");return new It(n==="horizontal"&&!a?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(!!this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();Cbt([0,1],function(c){var d=o[c];d.setStyle("fill",n.handlesColor[c]),d.y=r[c];var f=Es(r[c],[0,l[1]],u,!0),A=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=A/l[0],d.x=l[0]-A/2;var h=ts(a.handleLabelPoints[c],mc(d,this.group));s[c].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(!!d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},A=this.getControllerVisual(r,"color",f),h=this.getControllerVisual(r,"symbolSize"),v=Es(r,s,u,!0),p=l[0]-h/2,g={x:d.x,y:d.y};d.y=v,d.x=p;var m=ts(c.indicatorLabelPoint,mc(d,this.group)),y=c.indicatorLabel;y.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),w=this._orient,x=w==="horizontal";y.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?b:"middle",align:x?"center":b});var S={x:p,y:v,style:{fill:A}},_={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var B={duration:100,easing:"cubicInOut",additive:!0};d.x=g.x,d.y=g.y,d.animateTo(S,B),y.animateTo(_,B)}else d.attr(S),y.attr(_);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var E=0;E<T.length;E++)this._api.enterBlur(T[E])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var a=r.visualMapModel.itemSize,i=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);i[1]=k7(XE(0,i[1]),a[1]),r._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var a=this.visualMapModel,i=a.itemSize;if(!!a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();r=k7(XE(o[0],r),o[1]);var l=Tbt(a,s,o),u=[r-l,r+l],c=Es(r,o,s,!0),d=[Es(u[0],o,s,!0),Es(u[1],o,s,!0)];u[0]<o[0]&&(d[0]=-1/0),u[1]>o[1]&&(d[1]=1/0),n&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var f=this._hoverLinkDataIndices,A=[];(n||L7(a))&&(A=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var h=qZe(f,A);this._dispatchHighDown("downplay",Px(h[0],a)),this._dispatchHighDown("highlight",Px(h[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n=r.target,a=this.visualMapModel;if(!(!n||kt(n).dataIndex==null)){var i=kt(n),o=this.ecModel.getSeriesByIndex(i.seriesIndex);if(!!a.isTargetSeries(o)){var s=o.getData(i.dataType),l=s.getStore().get(a.getDataDimensionIndex(s),i.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this._api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Px(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,a,i){var o=mc(n,i?null:this.group);return Pe(r)?ts(r,o,a):w_(r,o,a)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(yse);function P7(e,t,r,n){return new Ja({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(a){Zl(a.event)},ondragend:n})}function Tbt(e,t,r){var n=Sbt/2,a=e.get("hoverLinkDataSize");return a&&(n=Es(a,t,r,!0)/2),n}function L7(e){var t=e.get("hoverLinkOnHandle");return!!(t==null?e.get("realtime"):t)}function O7(e){return e==="vertical"?"ns-resize":"ew-resize"}var Ebt=Bbt,Ibt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Rbt=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},Dbt=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var a=e.pipelineContext;!n.isTargetSeries(e)||a&&a.large||r.push(_mt(n.stateList,n.targetVisuals,tt(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(e)){var i=a.getVisualMeta(tt(Fbt,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(r);o>=0&&(i.dimension=o,n.push(i))}}),e.getData().setVisual("visualMeta",n)}}];function Fbt(e,t,r,n){for(var a=t.targetVisuals[n],i=xa.prepareVisualTypes(a),o={color:Cy(e.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,d,f)}return o.color;function d(A){return o[A]}function f(A,h){o[A]=h}}var $7=z;function Mbt(e){var t=e&&e.visualMap;Pe(t)||(t=t?[t]:[]),$7(t,function(r){if(!!r){fh(r,"splitList")&&!fh(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Pe(n)&&$7(n,function(a){St(a)&&(fh(a,"start")&&!fh(a,"min")&&(a.min=a.start),fh(a,"end")&&!fh(a,"max")&&(a.max=a.end))})}})}function fh(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var U7=!1;function xse(e){U7||(U7=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(Ibt,Rbt),z(Dbt,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Mbt))}function wse(e){e.registerComponentModel(xbt),e.registerComponentView(Ebt),xse(e)}var kbt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Pbt[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Bt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=$e(this._pieceList,function(l){return l=Bt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},a=xa.listVisualTypes(),i=this.isCategory();z(r.pieces,function(s){z(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),z(n,function(s,l){var u=!1;z(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&z(this.stateList,function(c){(r[c]||(r[c]={}))[l]=mse.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var a=this.option,i=this._pieceList,o=(n?a:r).selected||{};if(a.selected=o,z(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;z(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Bt(r)},t.prototype.getValueState=function(r){var n=xa.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=xa.findPieceIndex(l,a);c===r&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var a=r.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var A=r(f,d);c[0]===-1/0?a[0]=A:c[1]===1/0?a[1]=A:n.push({value:c[0],color:A},{value:c[1],color:A})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return z(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=ld(EC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(EC),Pbt={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(r)!==i&&r<5;)r++;t.precision=r,i=+i.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),eF(e),z(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;z(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),H7(t,e)},pieces:function(e){var t=this.option;z(t.pieces,function(r,n){St(r)||(r={value:r});var a={text:"",index:n};if(r.label!=null&&(a.text=r.label),r.hasOwnProperty("value")){var i=a.value=r.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],d=0;d<2;d++){for(var f=[["gte","gt","min"],["lte","lt","max"]][d],A=0;A<3&&o[d]==null;A++)o[d]=r[f[A]],s[d]=l[A],c[d]=A===2;o[d]==null&&(o[d]=u[d])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=xa.retrieveVisuals(r),e.push(a)},this),H7(t,e),eF(e),z(e,function(r){var n=r.close,a=[["<","\u2264"][n[1]],[">","\u2265"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,a)},this)}};function H7(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var Lbt=kbt,Obt=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),d=c.endsText,f=ea(n.get("showLabel",!0),!d);d&&this._renderEndsText(r,d[0],u,f,l),z(c.viewPieceList,function(A){var h=A.piece,v=new It;v.onclick=tt(this._onItemClick,this,h),this._enableHoverLink(v,A.indexInModelPieceList);var p=n.getRepresentValue(h);if(this._createItemSymbol(v,p,[0,0,u[0],u[1]]),f){var g=this.visualMapModel.getValueState(p);v.add(new dr({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:h.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:g==="outOfRange"?.5:1}}))}r.add(v)},this),d&&this._renderEndsText(r,d[1],u,f,l),kf(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var a=this;r.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:Px(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return bse(r,this.api,r.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(r,n,a,i,o){if(!!n){var s=new It,l=this.visualMapModel.textStyleModel;s.add(new dr({style:Jr(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=$e(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=r.get("text"),i=r.get("orient"),o=r.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(r,n,a){r.add(Fn(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(!!i){var o=Bt(a.selected),s=n.getSelectedMapKey(r);i==="single"||i===!0?(o[s]=!0,z(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(yse),$bt=Obt;function Cse(e){e.registerComponentModel(Lbt),e.registerComponentView($bt),xse(e)}function Ubt(e){Xt(wse),Xt(Cse)}var Hbt={label:{enabled:!0},decal:{show:!1}},z7=hr(),zbt={};function Nbt(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Bt(Hbt);Ut(n.label,e.getLocaleModel().get("aria"),!1),Ut(r.option,n,!1),a(),i();function a(){var u=r.getModel("decal"),c=u.get("show");if(c){var d=At();e.eachSeries(function(f){if(!f.isColorBySeries()){var A=d.get(f.type);A||(A={},d.set(f.type,A)),z7(f).scope=A}}),e.eachRawSeries(function(f){if(e.isSeriesFiltered(f))return;if(pt(f.enableAriaDecal)){f.enableAriaDecal();return}var A=f.getData();if(f.isColorBySeries()){var m=pF(f.ecModel,f.name,zbt,e.getSeriesCount()),y=A.getVisual("decal");A.setVisual("decal",b(y,m))}else{var h=f.getRawData(),v={},p=z7(f).scope;A.each(function(w){var x=A.getRawIndex(w);v[x]=w});var g=h.count();h.each(function(w){var x=v[w],S=h.getName(w)||w+"",_=pF(f.ecModel,S,p,g),B=A.getItemVisual(x,"decal");A.setItemVisual(x,"decal",b(B,_))})}function b(w,x){var S=w?Me(Me({},x),w):x;return S.dirty=!0,S}})}}function i(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=yt(c.option,u),!!c.get("enabled")){var d=t.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=e.getSeriesCount(),A=c.get(["data","maxCount"])||10,h=c.get(["series","maxCount"])||10,v=Math.min(f,h),p;if(!(f<1)){var g=s();if(g){var m=c.get(["general","withTitle"]);p=o(m,{title:g})}else p=c.get(["general","withoutTitle"]);var y=[],b=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);p+=o(b,{seriesCount:f}),e.eachSeries(function(_,B){if(B<v){var T=void 0,E=_.get("name"),I=E?"withName":"withoutName";T=f>1?c.get(["series","multiple",I]):c.get(["series","single",I]),T=o(T,{seriesId:_.seriesIndex,seriesName:_.get("name"),seriesType:l(_.subType)});var R=_.getData();if(R.count()>A){var D=c.get(["data","partialData"]);T+=o(D,{displayCnt:A})}else T+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),F=c.get(["data","separator","end"]),P=[],O=0;O<R.count();O++)if(O<A){var H=R.getName(O),V=R.getValues(O),W=c.get(["data",H?"withName":"withoutName"]);P.push(o(W,{name:H,value:V.join(k)}))}T+=P.join(k)+F,y.push(T)}});var w=c.getModel(["series","multiple","separator"]),x=w.get("middle"),S=w.get("end");p+=y.join(x)+S,d.setAttribute("aria-label",p)}}}function o(u,c){if(!Ze(u))return u;var d=u;return z(c,function(f,A){d=d.replace(new RegExp("\\{\\s*"+A+"\\s*\\}","g"),f)}),d}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return e.getLocaleModel().get(["series","typeNames"])[u]||"\u81EA\u5B9A\u4E49\u56FE"}}function Qbt(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},z(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function Vbt(e){e.registerPreprocessor(Qbt),e.registerVisual(e.PRIORITY.VISUAL.ARIA,Nbt)}var N7={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Wbt=function(){function e(t){var r=this._condVal=Ze(t)?new RegExp(t):Bee(t)?t:null;if(r==null){var n="";wr(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return Ze(r)?this._condVal.test(t):cr(r)?this._condVal.test(t+""):!1},e}(),Gbt=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Kbt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),jbt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),Ybt=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),Xbt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},e}();function o5(e,t){if(e===!0||e===!1){var r=new Gbt;return r.value=e,r}var n="";return Sse(e)||wr(n),e.and?Q7("and",e,t):e.or?Q7("or",e,t):e.not?qbt(e,t):Zbt(e,t)}function Q7(e,t,r){var n=t[e],a="";Pe(n)||wr(a),n.length||wr(a);var i=e==="and"?new Kbt:new jbt;return i.children=$e(n,function(o){return o5(o,r)}),i.children.length||wr(a),i}function qbt(e,t){var r=e.not,n="";Sse(r)||wr(n);var a=new Ybt;return a.child=o5(r,t),a.child||wr(n),a}function Zbt(e,t){for(var r="",n=t.prepareGetValue(e),a=[],i=tr(e),o=e.parser,s=o?qre(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=at(N7,u)?N7[u]:u,d=e[u],f=s?s(d):d,A=vrt(c,f)||c==="reg"&&new Wbt(f);A||wr(r),a.push(A)}}a.length||wr(r);var h=new Xbt;return h.valueGetterParam=n,h.valueParser=s,h.getValue=t.getValue,h.subCondList=a,h}function Sse(e){return St(e)&&!Sa(e)}var Jbt=function(){function e(t,r){this._cond=o5(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function e1t(e,t){return new Jbt(e,t)}var t1t={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=e1t(e.config,{valueGetterAttrMap:At({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;at(s,"dimension")||wr(l);var c=t.getDimensionInfo(u);return c||wr(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)r=t.getRawDataItem(i),n.evaluate()&&a.push(r);return{data:a}}},r1t={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",a=$r(r);a.length||wr(n);var i=[];z(a,function(c){var d=c.dimension,f=c.order,A=c.parser,h=c.incomparable;if(d==null&&wr(n),f!=="asc"&&f!=="desc"&&wr(n),h&&h!=="min"&&h!=="max"){var v="";wr(v)}if(f!=="asc"&&f!=="desc"){var p="";wr(p)}var g=t.getDimensionInfo(d);g||wr(n);var m=A?qre(A):null;A&&!m&&wr(n),i.push({dimIdx:g.index,parser:m,comparator:new Jre(f,h)})});var o=t.sourceFormat;o!==za&&o!==ko&&wr(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,d){for(var f=0;f<i.length;f++){var A=i[f],h=t.retrieveValueFromItem(c,A.dimIdx),v=t.retrieveValueFromItem(d,A.dimIdx);A.parser&&(h=A.parser(h),v=A.parser(v));var p=A.comparator.evaluate(h,v);if(p!==0)return p}return 0}),{data:s}}};function n1t(e){e.registerTransform(t1t),e.registerTransform(r1t)}var a1t=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,a){e.prototype.init.call(this,r,n,a),this._sourceManager=new nne(this),GN(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),GN(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Ys},t}(ir),i1t=function(e){xe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(en);function o1t(e){e.registerComponentModel(a1t),e.registerComponentView(i1t)}var Bs=nl.CMD;function $h(e,t){return Math.abs(e-t)<1e-5}function pM(e){var t=e.data,r=e.len(),n=[],a,i=0,o=0,s=0,l=0;function u(R,D){a&&a.length>2&&n.push(a),a=[R,D]}function c(R,D,k,F){$h(R,k)&&$h(D,F)||a.push(R,D,k,F,k,F)}function d(R,D,k,F,P,O){var H=Math.abs(D-R),V=Math.tan(H/4)*4/3,W=D<R?-1:1,Z=Math.cos(R),ee=Math.sin(R),ae=Math.cos(D),ne=Math.sin(D),le=Z*P+k,se=ee*O+F,ce=ae*P+k,ye=ne*O+F,fe=P*V*W,Q=O*V*W;a.push(le-fe*ee,se+Q*Z,ce+fe*ne,ye-Q*ae,ce,ye)}for(var f,A,h,v,p=0;p<r;){var g=t[p++],m=p===1;switch(m&&(i=t[p],o=t[p+1],s=i,l=o,(g===Bs.L||g===Bs.C||g===Bs.Q)&&(a=[s,l])),g){case Bs.M:i=s=t[p++],o=l=t[p++],u(s,l);break;case Bs.L:f=t[p++],A=t[p++],c(i,o,f,A),i=f,o=A;break;case Bs.C:a.push(t[p++],t[p++],t[p++],t[p++],i=t[p++],o=t[p++]);break;case Bs.Q:f=t[p++],A=t[p++],h=t[p++],v=t[p++],a.push(i+2/3*(f-i),o+2/3*(A-o),h+2/3*(f-h),v+2/3*(A-v),h,v),i=h,o=v;break;case Bs.A:var y=t[p++],b=t[p++],w=t[p++],x=t[p++],S=t[p++],_=t[p++]+S;p+=1;var B=!t[p++];f=Math.cos(S)*w+y,A=Math.sin(S)*x+b,m?(s=f,l=A,u(s,l)):c(i,o,f,A),i=Math.cos(_)*w+y,o=Math.sin(_)*x+b;for(var T=(B?-1:1)*Math.PI/2,E=S;B?E>_:E<_;E+=T){var I=B?Math.max(E+T,_):Math.min(E+T,_);d(E,I,y,b,w,x)}break;case Bs.R:s=i=t[p++],l=o=t[p++],f=s+t[p++],A=l+t[p++],u(f,l),c(f,l,f,A),c(f,A,s,A),c(s,A,s,l),c(s,l,f,l);break;case Bs.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function gM(e,t,r,n,a,i,o,s,l,u){if($h(e,r)&&$h(t,n)&&$h(a,o)&&$h(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-e,A=s-t,h=Math.sqrt(f*f+A*A);f/=h,A/=h;var v=r-e,p=n-t,g=a-o,m=i-s,y=v*v+p*p,b=g*g+m*m;if(y<d&&b<d){l.push(o,s);return}var w=f*v+A*p,x=-f*g-A*m,S=y-w*w,_=b-x*x;if(S<d&&w>=0&&_<d&&x>=0){l.push(o,s);return}var B=[],T=[];Hc(e,r,a,o,.5,B),Hc(t,n,i,s,.5,T),gM(B[0],T[0],B[1],T[1],B[2],T[2],B[3],T[3],l,u),gM(B[4],T[4],B[5],T[5],B[6],T[6],B[7],T[7],l,u)}function s1t(e,t){var r=pM(e),n=[];t=t||1;for(var a=0;a<r.length;a++){var i=r[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],d=i[u++],f=i[u++],A=i[u++],h=i[u++],v=i[u++];gM(s,l,c,d,f,A,h,v,o,t),s=h,l=v}n.push(o)}return n}function _se(e,t,r){var n=e[t],a=e[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,d=r-c;if(d>0)for(var u=0;u<d;u++)l[u%o]+=1;return l}function V7(e,t,r){for(var n=e.r0,a=e.r,i=e.startAngle,o=e.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,c=l>Math.abs(u),d=_se([l,u],c?0:1,t),f=(c?s:u)/d.length,A=0;A<d.length;A++)for(var h=(c?u:s)/d[A],v=0;v<d[A];v++){var p={};c?(p.startAngle=i+f*A,p.endAngle=i+f*(A+1),p.r0=n+h*v,p.r=n+h*(v+1)):(p.startAngle=i+h*v,p.endAngle=i+h*(v+1),p.r0=n+f*A,p.r=n+f*(A+1)),p.clockwise=e.clockwise,p.cx=e.cx,p.cy=e.cy,r.push(p)}}function l1t(e,t,r){for(var n=e.width,a=e.height,i=n>a,o=_se([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=e[s]/o.length,f=0;f<o.length;f++)for(var A=e[l]/o[f],h=0;h<o[f];h++){var v={};v[u]=f*d,v[c]=h*A,v[s]=d,v[l]=A,v.x+=e.x,v.y+=e.y,r.push(v)}}function W7(e,t,r,n){return e*n-r*t}function u1t(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,d=s-i,f=W7(c,d,l,u);if(Math.abs(f)<1e-6)return null;var A=e-a,h=t-i,v=W7(A,h,c,d)/f;return v<0||v>1?null:new zt(v*l+e,v*u+t)}function c1t(e,t,r){var n=new zt;zt.sub(n,r,t),n.normalize();var a=new zt;zt.sub(a,e,t);var i=a.dot(n);return i}function Ah(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function d1t(e,t,r){for(var n=e.length,a=[],i=0;i<n;i++){var o=e[i],s=e[(i+1)%n],l=u1t(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&a.push({projPt:c1t(l,t,r),pt:l,idx:i})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(p,g){return p.projPt-g.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}for(var f=[u.pt.x,u.pt.y],A=[c.pt.x,c.pt.y],h=[f],v=[A],i=u.idx+1;i<=c.idx;i++)Ah(h,e[i].slice());Ah(h,A),Ah(h,f);for(var i=c.idx+1;i<=u.idx+n;i++)Ah(v,e[i%n].slice());return Ah(v,f),Ah(v,A),[{points:h},{points:v}]}function G7(e){var t=e.points,r=[],n=[];v_(t,r,n);var a=new Kt(r[0],r[1],n[0]-r[0],n[1]-r[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new zt,c=new zt;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),d1t(t,u,c)}function IC(e,t,r,n){if(r===1)n.push(t);else{var a=Math.floor(r/2),i=e(t);IC(e,i[0],a,n),IC(e,i[1],r-a,n)}return n}function f1t(e,t){for(var r=[],n=0;n<t;n++)r.push(pL(e));return r}function A1t(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function h1t(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function v1t(e,t){var r=[],n=e.shape,a;switch(e.type){case"rect":l1t(n,t,r),a=lr;break;case"sector":V7(n,t,r),a=Za;break;case"circle":V7({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),a=Za;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=$e(s1t(e.getUpdatedPathProxy(),o),function(g){return h1t(g)}),l=s.length;if(l===0)IC(G7,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,d=$e(s,function(g){var m=[],y=[];v_(g,m,y);var b=(y[1]-m[1])*(y[0]-m[0]);return c+=b,{poly:g,area:b}});d.sort(function(g,m){return m.area-g.area});for(var f=t,u=0;u<l;u++){var A=d[u];if(f<=0)break;var h=u===l-1?f:Math.ceil(A.area/c*t);h<0||(IC(G7,{points:A.poly},h,r),f-=h)}}a=Ja;break}if(!a)return f1t(e,t);for(var v=[],u=0;u<r.length;u++){var p=new a;p.setShape(r[u]),A1t(e,p),v.push(p)}return v}function p1t(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var a=[],i=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[o[0],o[1]],f=l,A=2;A<s;){var h=o[A-2],v=o[A-1],p=o[A++],g=o[A++],m=o[A++],y=o[A++],b=o[A++],w=o[A++];if(f<=0){d.push(p,g,m,y,b,w);continue}for(var x=Math.min(f,c-1)+1,S=1;S<=x;S++){var _=S/x;Hc(h,p,m,b,_,a),Hc(v,g,y,w,_,i),h=a[3],v=i[3],d.push(a[1],i[1],a[2],i[2],h,v),p=a[5],g=i[5],m=a[6],y=i[6]}f-=x-1}return o===e?[d,t]:[e,d]}function K7(e,t){for(var r=e.length,n=e[r-2],a=e[r-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function g1t(e,t){for(var r,n,a,i=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,d=void 0;l?u?(r=p1t(l,u),c=r[0],d=r[1],n=c,a=d):(d=K7(a||l,l),c=l):(c=K7(n||u,u),d=u),i.push(c),o.push(d)}return[i,o]}function j7(e){for(var t=0,r=0,n=0,a=e.length,i=0,o=a-2;i<a;o=i,i+=2){var s=e[o],l=e[o+1],u=e[i],c=e[i+1],d=s*c-u*l;t+=d,r+=(s+u)*d,n+=(l+c)*d}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function m1t(e,t,r,n){for(var a=(e.length-2)/6,i=1/0,o=0,s=e.length,l=s-2,u=0;u<a;u++){for(var c=u*6,d=0,f=0;f<s;f+=2){var A=f===0?c:(c+f-2)%l+2,h=e[A]-r[0],v=e[A+1]-r[1],p=t[f]-n[0],g=t[f+1]-n[1],m=p-h,y=g-v;d+=m*m+y*y}d<i&&(i=d,o=u)}return o}function y1t(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function b1t(e,t,r,n){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=j7(s),c=j7(l);i==null&&(i=u[2]<0!=c[2]<0);var d=[],f=[],A=0,h=1/0,v=[],p=s.length;i&&(s=y1t(s));for(var g=m1t(s,l,u,c)*6,m=p-2,y=0;y<m;y+=2){var b=(g+y)%m+2;d[y+2]=s[b]-u[0],d[y+3]=s[b+1]-u[1]}if(d[0]=s[g]-u[0],d[1]=s[g+1]-u[1],r>0)for(var w=n/r,x=-n/2;x<=n/2;x+=w){for(var S=Math.sin(x),_=Math.cos(x),B=0,y=0;y<s.length;y+=2){var T=d[y],E=d[y+1],I=l[y]-c[0],R=l[y+1]-c[1],D=I*_-R*S,k=I*S+R*_;v[y]=D,v[y+1]=k;var F=D-T,P=k-E;B+=F*F+P*P}if(B<h){h=B,A=x;for(var O=0;O<v.length;O++)f[O]=v[O]}}else for(var H=0;H<p;H+=2)f[H]=l[H]-c[0],f[H+1]=l[H+1]-c[1];a.push({from:d,to:f,fromCp:u,toCp:c,rotation:-A})}return a}function RC(e){return e.__isCombineMorphing}var Bse="__mOriginal_";function DC(e,t,r){var n=Bse+t,a=e[n]||e[t];e[n]||(e[n]=e[t]);var i=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function E0(e,t){var r=Bse+t;e[r]&&(e[t]=e[r],e[r]=null)}function Y7(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function Tse(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=g1t(pM(r),pM(n)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&Y7(i,s),l&&Y7(o,l),DC(t,"updateTransform",{replace:u}),t.transform=null;var c=b1t(i,o,10,Math.PI),d=[];DC(t,"buildPath",{replace:function(f){for(var A=t.__morphT,h=1-A,v=[],p=0;p<c.length;p++){var g=c[p],m=g.from,y=g.to,b=g.rotation*A,w=g.fromCp,x=g.toCp,S=Math.sin(b),_=Math.cos(b);h0(v,w,x,A);for(var B=0;B<m.length;B+=2){var T=m[B],E=m[B+1],I=y[B],R=y[B+1],D=T*h+I*A,k=E*h+R*A;d[B]=D*_-k*S+v[0],d[B+1]=D*S+k*_+v[1]}var F=d[0],P=d[1];f.moveTo(F,P);for(var B=2;B<m.length;){var I=d[B++],R=d[B++],O=d[B++],H=d[B++],V=d[B++],W=d[B++];F===I&&P===R&&O===V&&H===W?f.lineTo(V,W):f.bezierCurveTo(I,R,O,H,V,W),F=V,P=W}}}})}function s5(e,t,r){if(!e||!t)return t;var n=r.done,a=r.during;Tse(e,t),t.__morphT=0;function i(){E0(t,"buildPath"),E0(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},yt({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),t}function x1t(e,t,r,n,a,i){var o=16;e=a===r?0:Math.round(32767*(e-r)/(a-r)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,d=0;(e&u)>0&&(c=1),(t&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function FC(e){var t=1/0,r=1/0,n=-1/0,a=-1/0,i=$e(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(d,r),n=Math.max(c,n),a=Math.max(d,a),[c,d]}),o=$e(i,function(s,l){return{cp:s,z:x1t(s[0],s[1],t,r,n,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Ese(e){return v1t(e.path,e.count)}function mM(){return{fromIndividuals:[],toIndividuals:[],count:0}}function w1t(e,t,r){var n=[];function a(w){for(var x=0;x<w.length;x++){var S=w[x];RC(S)?a(S.childrenRef()):S instanceof qt&&n.push(S)}}a(e);var i=n.length;if(!i)return mM();var o=r.dividePath||Ese,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),mM();n=FC(n),s=FC(s);for(var l=r.done,u=r.during,c=r.individualDelay,d=new Pl,f=0;f<i;f++){var A=n[f],h=s[f];h.parent=t,h.copyTransform(d),c||Tse(A,h)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function v(w){for(var x=0;x<s.length;x++)s[x].addSelfToZr(w)}DC(t,"addSelfToZr",{after:function(w){v(w)}}),DC(t,"removeSelfFromZr",{after:function(w){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(w)}});function p(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,E0(t,"addSelfToZr"),E0(t,"removeSelfFromZr")}var g=s.length;if(c)for(var m=g,y=function(){m--,m===0&&(p(),l&&l())},f=0;f<g;f++){var b=c?yt({delay:(r.delay||0)+c(f,g,n[f],s[f]),done:y},r):r;s5(n[f],s[f],b)}else t.__morphT=0,t.animateTo({__morphT:1},yt({during:function(w){for(var x=0;x<g;x++){var S=s[x];S.__morphT=t.__morphT,S.dirtyShape()}u&&u(w)},done:function(){p();for(var w=0;w<e.length;w++)E0(e[w],"updateTransform");l&&l()}},r));return t.__zr&&v(t.__zr),{fromIndividuals:n,toIndividuals:s,count:g}}function C1t(e,t,r){var n=t.length,a=[],i=r.dividePath||Ese;function o(A){for(var h=0;h<A.length;h++){var v=A[h];RC(v)?o(v.childrenRef()):v instanceof qt&&a.push(v)}}if(RC(e)){o(e.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(pL(a[l++%s]));a.length=n}else{a=i({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),mM()}a=FC(a),t=FC(t);for(var d=r.individualDelay,u=0;u<n;u++){var f=d?yt({delay:(r.delay||0)+d(u,n,a[u],t[u])},r):r;s5(a[u],t[u],f)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function X7(e){return Pe(e[0])}function q7(e,t){for(var r=[],n=e.length,a=0;a<n;a++)r.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!r[a].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var i=l.length,u=Math.ceil(i/2);r[a].many=l.slice(u,i),r[s].many=l.slice(0,u),s++}return r}var S1t={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var a=pL(e.path);a.setStyle("opacity",r),t.push(a)}return t},split:null};function qE(e,t,r,n,a,i){if(!e.length||!t.length)return;var o=sp("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;X7(e)&&(u=e,c=t),X7(t)&&(u=t,c=e);function d(g,m,y,b,w){var x=g.many,S=g.one;if(x.length===1&&!w){var _=m?x[0]:S,B=m?S:x[0];if(RC(_))d({many:[_],one:B},!0,y,b,!0);else{var T=s?yt({delay:s(y,b)},l):l;s5(_,B,T),i(_,B,_,B,T)}}else for(var E=yt({dividePath:S1t[r],individualDelay:s&&function(P,O,H,V){return s(P+y,b)}},l),I=m?w1t(x,S,E):C1t(S,x,E),R=I.fromIndividuals,D=I.toIndividuals,k=R.length,F=0;F<k;F++){var T=s?yt({delay:s(F,k)},l):l;i(R[F],D[F],m?x[F]:g.one,m?g.one:x[F],T)}}for(var f=u?u===e:e.length>t.length,A=u?q7(c,u):q7(f?t:e,[f?e:t]),h=0,v=0;v<A.length;v++)h+=A[v].many.length;for(var p=0,v=0;v<A.length;v++)d(A[v],f,p,h),p+=A[v].many.length}function tf(e){if(!e)return[];if(Pe(e)){for(var t=[],r=0;r<e.length;r++)t.push(tf(e[r]));return t}var n=[];return e.traverse(function(a){a instanceof qt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var Ise=1e4,_1t=hr();function B1t(e){for(var t=e.dimensions,r=0;r<t.length;r++){var n=e.getDimensionInfo(t[r]);if(n&&n.otherDims.itemGroupId===0)return t[r]}}function Z7(e){var t=[];return z(e,function(r){var n=r.data;if(!(n.count()>Ise))for(var a=n.getIndices(),i=B1t(n),o=0;o<a.length;o++)t.push({data:n,dim:r.dim||i,divide:r.divide,dataIndex:o})}),t}function ZE(e,t,r){e.traverse(function(n){n instanceof qt&&Zr(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function JE(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function hh(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function T1t(e,t,r){var n=sp("update",r,t);n&&e.traverse(function(a){if(a instanceof _o){var i=Get(a);i&&a.animateFrom({style:i},n)}})}function E1t(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var a=e[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Rse(e,t,r){var n=Z7(e),a=Z7(t);function i(g,m,y,b,w){(y||g)&&m.animateFrom({style:y&&y!==g?Me(Me({},y.style),g.style):g.style},w)}function o(g){for(var m=0;m<g.length;m++)if(g[m].dim)return g[m].dim}var s=o(n),l=o(a),u=!1;function c(g,m){return function(y){var b=y.data,w=y.dataIndex;if(m)return b.getId(w);var x=b.hostModel&&b.hostModel.get("dataGroupId"),S=g?s||l:l||s,_=S&&b.getDimensionInfo(S),B=_&&_.ordinalMeta;if(_){var T=b.get(_.name,w);return B&&B.categories[T]||T+""}var E=b.getRawDataItem(w);return E&&E.groupId?E.groupId+"":x||b.getId(w)}}var d=E1t(n,a),f={};if(!d)for(var A=0;A<a.length;A++){var h=a[A],v=h.data.getItemGraphicEl(h.dataIndex);v&&(f[v.id]=!0)}function p(g,m){var y=n[m],b=a[g],w=b.data.hostModel,x=y.data.getItemGraphicEl(y.dataIndex),S=b.data.getItemGraphicEl(b.dataIndex);if(x===S){S&&T1t(S,b.dataIndex,w);return}x&&f[x.id]||S&&(hh(S),x?(hh(x),JE(x),u=!0,qE(tf(x),tf(S),b.divide,w,g,i)):ZE(S,w,g))}new tu(n,a,c(!0,d),c(!1,d),null,"multiple").update(p).updateManyToOne(function(g,m){var y=a[g],b=y.data,w=b.hostModel,x=b.getItemGraphicEl(y.dataIndex),S=Rr($e(m,function(_){return n[_].data.getItemGraphicEl(n[_].dataIndex)}),function(_){return _&&_!==x&&!f[_.id]});x&&(hh(x),S.length?(z(S,function(_){hh(_),JE(_)}),u=!0,qE(tf(S),tf(x),y.divide,w,g,i)):ZE(x,w,y.dataIndex))}).updateOneToMany(function(g,m){var y=n[m],b=y.data.getItemGraphicEl(y.dataIndex);if(!(b&&f[b.id])){var w=Rr($e(g,function(S){return a[S].data.getItemGraphicEl(a[S].dataIndex)}),function(S){return S&&S!==b}),x=a[g[0]].data.hostModel;w.length&&(z(w,function(S){return hh(S)}),b?(hh(b),JE(b),u=!0,qE(tf(b),tf(w),y.divide,x,g[0],i)):z(w,function(S){return ZE(S,x,g[0])}))}}).updateManyToMany(function(g,m){new tu(m,g,function(y){return n[y].data.getId(n[y].dataIndex)},function(y){return a[y].data.getId(a[y].dataIndex)}).update(function(y,b){p(g[y],m[b])}).execute()}).execute(),u&&z(t,function(g){var m=g.data,y=m.hostModel,b=y&&r.getViewOfSeriesModel(y),w=sp("update",y,0);b&&y.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(x){x instanceof qt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},w)})})}function J7(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function e9(e){return Pe(e)?e.sort().join(","):e}function Gu(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function I1t(e,t){var r=At(),n=At(),a=At();return z(e.oldSeries,function(i,o){var s=e.oldData[o],l=J7(i),u=e9(l);n.set(u,s),Pe(l)&&z(l,function(c){a.set(c,{data:s,key:u})})}),z(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.getData(),s=J7(i),l=e9(s),u=n.get(l);if(u)r.set(l,{oldSeries:[{divide:Gu(u),data:u}],newSeries:[{divide:Gu(o),data:o}]});else if(Pe(s)){var c=[];z(s,function(A){var h=n.get(A);h&&c.push({divide:Gu(h),data:h})}),c.length&&r.set(l,{oldSeries:c,newSeries:[{data:o,divide:Gu(o)}]})}else{var d=a.get(s);if(d){var f=r.get(d.key);f||(f={oldSeries:[{data:d.data,divide:Gu(d.data)}],newSeries:[]},r.set(d.key,f)),f.newSeries.push({data:o,divide:Gu(o)})}}}}),r}function t9(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function R1t(e,t,r,n){var a=[],i=[];z($r(e.from),function(o){var s=t9(t.oldSeries,o);s>=0&&a.push({data:t.oldData[s],divide:Gu(t.oldData[s]),dim:o.dimension})}),z($r(e.to),function(o){var s=t9(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({data:l,divide:Gu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Rse(a,i,n)}function D1t(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){z($r(n.seriesTransition),function(a){z($r(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Ix]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var a=_1t(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)z($r(i),function(f){R1t(f,a,n,r)});else{var o=I1t(a,n);z(o.keys(),function(f){var A=o.get(f);Rse(A.oldSeries,A.newSeries,r)})}z(n.updatedSeries,function(f){f[Ix]&&(f[Ix]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldData=[],c=0;c<s.length;c++){var d=s[c].getData();d.count()<Ise&&(l.push(s[c]),u.push(d))}})}Xt([Yot]);Xt([Not]);Xt([yst,Ost,Yst,Olt,eut,jut,_ct,ddt,Udt,jdt,ift,uAt,LAt,XAt,vht,wht,Hht,Xht,uvt,gvt,Rvt,hpt]);Xt(Opt);Xt(ggt);Xt(Sie);Xt(kgt);Xt(doe);Xt(zgt);Xt(Xgt);Xt(q0t);Xt(bmt);Xt(ky);Xt(Hmt);Xt(Qmt);Xt(ayt);Xt(hyt);Xt(wyt);Xt(Ryt);Xt(Vyt);Xt(fbt);Xt(pse);Xt(gse);Xt(Ubt);Xt(wse);Xt(Cse);Xt(Vbt);Xt(n1t);Xt(o1t);Xt(D1t);Xt(sot);var Gxt=Object.freeze(Object.defineProperty({__proto__:null,registerLocale:SL,version:Vnt,dependencies:Wnt,PRIORITY:Fne,init:lat,connect:uat,disConnect:Hne,disconnect:cat,dispose:dat,getInstanceByDom:jL,getInstanceById:fat,registerTheme:YL,registerPreprocessor:XL,registerProcessor:qL,registerPostInit:zne,registerPostUpdate:Nne,registerUpdateLifecycle:k_,registerAction:vs,registerCoordinateSystem:Qne,getCoordinateSystemDimensions:Aat,registerLayout:Vne,registerVisual:ud,registerLoading:JL,setCanvasCreator:hat,registerMap:Wne,getMap:vat,registerTransform:Gne,dataTool:pat,throttle:F_,use:Xt,setPlatformAPI:xee,parseGeoJSON:DF,parseGeoJson:DF,env:vr,Model:Or,Axis:Po,innerDrawElementOnCanvas:VL,zrender:OZe,matrix:xZe,vector:uqe,zrUtil:rqe,color:jqe,helper:Cit,number:Iit,time:Rit,graphic:Dit,format:Fit,util:Mit,List:Ua,ComponentModel:ir,ComponentView:en,SeriesModel:Yr,ChartView:Ur,extendComponentModel:Vit,extendComponentView:Wit,extendSeriesModel:Git,extendChartView:Kit},Symbol.toStringTag,{value:"Module"})),F1t={desc:"\u767B\u5F55",form_auto:"\u81EA\u52A8\u767B\u5F55",form_button:"\u767B\u5F55",login_success:"\u767B\u5F55\u6210\u529F",login_message:"\u8BF7\u586B\u5199\u5B8C\u6574\u4FE1\u606F"},M1t={create_btn:"\u65B0\u5EFA",create_tip:"\u4ECE\u54EA\u91CC\u51FA\u53D1\u597D\u5462\uFF1F",project:"\u9879\u76EE",my:"\u6211\u7684",new_project:"\u65B0\u9879\u76EE",all_project:"\u5168\u90E8\u9879\u76EE",my_templete:"\u6211\u7684\u6A21\u677F",template_market:"\u6A21\u677F\u5E02\u573A",release:"\u5DF2\u53D1\u5E03",unreleased:"\u672A\u53D1\u5E03",last_edit:"\u6700\u540E\u7F16\u8F91"};const k1t={doc_addr:"\u6587\u6863\u5730\u5740",code_addr:"\u4ED3\u5E93\u5730\u5740",form_account:"\u8BF7\u8F93\u5165\u8D26\u53F7\u6216\u90AE\u7BB1",form_password:"\u8BF7\u8F93\u5165\u5BC6\u7801",doc:"\u8BF4\u660E\u6587\u6863",help:"\u5E2E\u52A9\u4E2D\u5FC3",contact:"\u5173\u4E8E\u8F6F\u4EF6",logout:"\u9000\u51FA\u767B\u5F55",sys_set:"\u7CFB\u7EDF\u8BBE\u7F6E",lang_set:"\u8BED\u8A00\u8BBE\u7F6E",r_edit:"\u7F16\u8F91",r_preview:"\u9884\u89C8",r_copy:"\u514B\u9686",r_rename:"\u91CD\u547D\u540D",r_publish:"\u53D1\u5E03",r_unpublish:"\u53D6\u6D88\u53D1\u5E03",r_download:"\u4E0B\u8F7D",r_delete:"\u5220\u9664",r_more:"\u66F4\u591A"};var P1t={global:k1t,login:F1t,project:M1t},L1t={desc:"Login",form_auto:"Sign in automatically",form_button:"Login",login_success:"Login success",login_message:"Please complete the letter"},O1t={create_btn:"Creat",create_tip:"Please select a content for development",project:"Project",my:"My",new_project:"New Project",all_project:"All Project",my_templete:"My Templete",template_market:"Template Market",release:"Release",unreleased:"Unrelease",last_edit:"Last edit time"};const $1t={doc_addr:"Document",code_addr:"Code",form_account:"Please enter your account or email",form_password:"Please enter your password",doc:"Document",help:"Help",contact:"About Software",logout:"Logout",sys_set:"System Setting",lang_set:"Language Setting",r_edit:"Edit",r_preview:"Preview",r_copy:"Clone",r_rename:"Rename",r_publish:"Publish",r_unpublish:"Unpublish",r_download:"Download",r_delete:"Delete",r_more:"More"};var U1t={global:$1t,login:L1t,project:O1t};const vh=GS(ep.GO_LANG_STORE),Kxt=[{label:"\u4E2D\u6587",key:Lc.ZH},{label:"English",key:Lc.EN}],Dse=f4e({locale:(vh==null?void 0:vh.lang)||VR,fallbackLocale:(vh==null?void 0:vh.lang)||VR,messages:{[Lc.ZH]:P1t,[Lc.EN]:U1t}});var Fse=(e=>(e.DOCK="dock",e.ASIDE="aside",e))(Fse||{}),Hu=(e=>(e.HIDE_PACKAGE_ONE_CATEGORY="hidePackageOneCategory",e.CHANGE_LANG_RELOAD="changeLangReload",e.ASIDE_ALL_COLLAPSED="asideAllCollapsed",e.CHART_MOVE_DISTANCE="chartMoveDistance",e.CHART_ALIGN_RANGE="chartAlignRange",e.CHART_TOOLS_STATUS="chartToolsStatus",e.CHART_TOOLS_STATUS_HIDE="chartToolsStatusHide",e))(Hu||{});const H1t={[Hu.ASIDE_ALL_COLLAPSED]:!0,[Hu.HIDE_PACKAGE_ONE_CATEGORY]:!0,[Hu.CHANGE_LANG_RELOAD]:!1,[Hu.CHART_MOVE_DISTANCE]:5,[Hu.CHART_ALIGN_RANGE]:10,[Hu.CHART_TOOLS_STATUS]:Fse.ASIDE,[Hu.CHART_TOOLS_STATUS_HIDE]:!1},{GO_SYSTEM_SETTING_STORE:Mse}=ep,z1t=GS(Mse),N1t=lP({id:"useSettingStore",state:()=>z1t||H1t,getters:{getHidePackageOneCategory(){return this.hidePackageOneCategory},getChangeLangReload(){return this.changeLangReload},getAsideAllCollapsed(){return this.asideAllCollapsed},getAsideCollapsedWidth(){return this.asideAllCollapsed?0:E4e},getChartMoveDistance(){return this.chartMoveDistance},getChartAlignRange(){return this.chartAlignRange},getChartToolsStatus(){return this.chartToolsStatus},getChartToolsStatusHide(){return this.chartToolsStatusHide}},actions:{setItem(e,t){this.$patch(r=>{r[e]=t}),Rw(Mse,this.$state)}}}),{GO_LANG_STORE:kse}=ep,Q1t=GS(kse),V1t=lP({id:"useLangStore",state:()=>Q1t||{lang:VR},getters:{getLang(){return this.lang}},actions:{changeLang(e){const t=N1t();this.lang!==e&&(this.lang=e,Dse.global.locale=e,Rw(kse,this.$state),t.getChangeLangReload&&ZGe())}}}),W1t=()=>{const e=V1t(),t=L(()=>e.getLang===Lc.ZH?Cme:uK),r=L(()=>e.getLang===Lc.ZH?lye:dK);return{locale:t,dateLocale:r}},G1t=ge({__name:"App",setup(e){const t=wje(),r=xje(),n=xYe(),{locale:a,dateLocale:i}=W1t();return(o,s)=>{const l=Hf("router-view");return $a(),Pv($n(Bj),{theme:$n(t),hljs:$n(n),locale:$n(a),"date-locale":$n(i),"theme-overrides":$n(r)},{default:Dl(()=>[nr($n(zX),null,{default:Dl(()=>[nr($n(h4e)),nr(l)]),_:1})]),_:1},8,["theme","hljs","locale","date-locale","theme-overrides"])}}}),K1t=p4e();function j1t(e){e.use(K1t)}function Y1t(){return rB(this,null,function*(){const e=yI(zX),t=yI(G1t);if(bKe(t),FKe(t),gje(t),j1t(t),e.mount("#appProvider",!0),YGe(t),yield $c.isReady(),window.previewApi)try{const n=document.location.hash.split("/"),a=n&&n[n.length-1],o=yield(yield fetch(window.previewApi.replace("{id}",a))).json();window.chartData=o}catch(r){console.log()}mKe(),t.use(Dse),t.mount("#app",!0),window.$vue=t})}Y1t();export{mn as $,F5e as A,Bue as B,Dxt as C,ED as D,Pv as E,rr as F,mKe as G,V1t as H,Kxt as I,mle as J,yle as K,mt as L,Oi as M,FM as N,L as O,Kr as P,rce as Q,rs as R,ep as S,qC as T,_Ge as U,Fxt as V,Due as W,Eue as X,xxt as Y,CD as Z,WQe as _,mP as a,F_ as a$,yxt as a0,XGe as a1,Pxt as a2,jr as a3,Bn as a4,Oxt as a5,$xt as a6,C as a7,bxt as a8,mGe as a9,rxt as aA,lP as aB,fxt as aC,lxt as aD,cxt as aE,dxt as aF,pxt as aG,B5e as aH,D5e as aI,Nxt as aJ,Qxt as aK,Vxt as aL,Wxt as aM,An as aN,kue as aO,mq as aP,pWe as aQ,Mxt as aR,kxt as aS,Gxt as aT,Uxt as aU,Ext as aV,Ixt as aW,b9 as aX,We as aY,yr as aZ,lat as a_,N1t as aa,iA as ab,axt as ac,zr as ad,Hu as ae,Fse as af,yxe as ag,Qke as ah,Lxt as ai,LKe as aj,yWe as ak,wxt as al,eA as am,lde as an,nxt as ao,ixt as ap,gWe as aq,_r as ar,yH as as,ar as at,x4e as au,C4e as av,Dh as aw,w4e as ax,S4e as ay,txt as az,KS as b,Fn as b$,EZ as b0,_Z as b1,kZ as b2,Gv as b3,iy as b4,OZ as b5,zS as b6,wP as b7,hD as b8,p7e as b9,Sie as bA,wht as bB,Ubt as bC,Wne as bD,ift as bE,Xht as bF,y9 as bG,gxt as bH,eut as bI,ddt as bJ,sot as bK,Git as bL,Rat as bM,Ua as bN,ure as bO,Kit as bP,Zr as bQ,fr as bR,It as bS,gc as bT,wit as bU,lr as bV,dr as bW,b_ as bX,Ye as bY,yy as bZ,Kt as b_,X7e as ba,i6e as bb,Ew as bc,BZ as bd,du as be,j6e as bf,M8e as bg,$8e as bh,f6e as bi,f5e as bj,b8e as bk,uP as bl,IZ as bm,DZ as bn,LZ as bo,Xt as bp,o1t as bq,Yot as br,Ost as bs,Opt as bt,bmt as bu,Vyt as bv,yst as bw,op as bx,sr as by,jut as bz,Xs as c,cs as c0,ize as c1,Yst as c2,Qmt as c3,Olt as c4,wyt as c5,Ryt as c6,hyt as c7,n1t as c8,D1t as c9,_xt as cA,Bxt as cB,Fue as cC,IVe as cD,uWe as cE,vWe as cF,Cxt as cG,ext as cH,Axt as cI,vxt as cJ,Txt as cK,hxt as cL,c0 as cM,uxt as cN,sxt as cO,Sxt as cP,Z1t as cQ,oze as cR,_4e as cS,J1t as cT,mxt as cU,Gne as ca,LH as cb,Yce as cc,tce as cd,Vne as ce,XL as cf,Pe as cg,z as ch,Ctt as ci,zn as cj,Tr as ck,B4e as cl,yee as cm,kr as cn,zxt as co,VZ as cp,mWe as cq,Rxt as cr,GS as cs,SD as ct,cde as cu,Hxt as cv,Hk as cw,KLe as cx,hS as cy,hWe as cz,ge as d,Qm as e,nr as f,jl as g,BGe as h,aze as i,X as j,xP as k,RP as l,Ar as m,Bo as n,$a as o,pi as p,Q9 as q,Hf as r,oxt as s,yM as t,$n as u,R9 as v,Dl as w,D9 as x,Rw as y,jS as z};
|